Rename SetWidthHeight to SetContentSize
This commit is contained in:
parent
bec7990562
commit
03f7c11ece
@ -88,13 +88,13 @@ TBarMenuBar::SmartResize(float width, float height)
|
||||
width -= 1;
|
||||
|
||||
if (fSeparatorItem != NULL)
|
||||
fDeskbarMenuItem->SetWidthHeight(width - kSepItemWidth, height);
|
||||
fDeskbarMenuItem->SetContentSize(width - kSepItemWidth, height);
|
||||
else {
|
||||
int32 count = CountItems();
|
||||
if (fDeskbarMenuItem)
|
||||
fDeskbarMenuItem->SetWidthHeight(width / count, height);
|
||||
fDeskbarMenuItem->SetContentSize(width / count, height);
|
||||
if (fAppListMenuItem)
|
||||
fAppListMenuItem->SetWidthHeight(width / count, height);
|
||||
fAppListMenuItem->SetContentSize(width / count, height);
|
||||
}
|
||||
|
||||
InvalidateLayout();
|
||||
|
@ -64,7 +64,7 @@ TBarMenuTitle::~TBarMenuTitle()
|
||||
|
||||
|
||||
void
|
||||
TBarMenuTitle::SetWidthHeight(float width, float height)
|
||||
TBarMenuTitle::SetContentSize(float width, float height)
|
||||
{
|
||||
fWidth = width;
|
||||
fHeight = height;
|
||||
|
@ -53,7 +53,7 @@ public:
|
||||
BMenu* menu, bool inexpando = false);
|
||||
virtual ~TBarMenuTitle();
|
||||
|
||||
void SetWidthHeight(float width, float height);
|
||||
void SetContentSize(float width, float height);
|
||||
void Draw();
|
||||
|
||||
status_t Invoke(BMessage* message);
|
||||
|
Loading…
Reference in New Issue
Block a user