MenuPrivate: Add a SetLayout() method to MenuPrivate
that allows you to set the menu_layout of the menu after construction.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2011, Haiku, Inc.
|
* Copyright 2006-2015 Haiku, Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -36,6 +36,7 @@ public:
|
|||||||
MenuPrivate(BMenu* menu);
|
MenuPrivate(BMenu* menu);
|
||||||
|
|
||||||
menu_layout Layout() const;
|
menu_layout Layout() const;
|
||||||
|
void SetLayout(menu_layout layout);
|
||||||
|
|
||||||
void ItemMarked(BMenuItem* item);
|
void ItemMarked(BMenuItem* item);
|
||||||
void CacheFontInfo();
|
void CacheFontInfo();
|
||||||
|
|||||||
@@ -111,6 +111,13 @@ MenuPrivate::Layout() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
MenuPrivate::SetLayout(menu_layout layout)
|
||||||
|
{
|
||||||
|
fMenu->fLayout = layout;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
MenuPrivate::ItemMarked(BMenuItem *item)
|
MenuPrivate::ItemMarked(BMenuItem *item)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user