MenuPrivate: Add SetItemMargins() method

This commit is contained in:
John Scipione 2016-04-19 13:59:48 -07:00
parent b75a2e9d22
commit e8d4db8e0b
2 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public:
BRect Padding() const;
void GetItemMargins(float*, float*, float*, float*)
const;
void SetItemMargins(float, float, float, float);
int State(BMenuItem** item = NULL) const;

View File

@ -161,6 +161,13 @@ MenuPrivate::GetItemMargins(float* left, float* top, float* right,
}
void
MenuPrivate::SetItemMargins(float left, float top, float right, float bottom)
{
fMenu->SetItemMargins(left, top, right, bottom);
}
int
MenuPrivate::State(BMenuItem** item) const
{