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:
parent
09d0a76b7b
commit
35384ab425
@ -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.
|
||||
*
|
||||
* Authors:
|
||||
@ -36,6 +36,7 @@ public:
|
||||
MenuPrivate(BMenu* menu);
|
||||
|
||||
menu_layout Layout() const;
|
||||
void SetLayout(menu_layout layout);
|
||||
|
||||
void ItemMarked(BMenuItem* item);
|
||||
void CacheFontInfo();
|
||||
|
@ -111,6 +111,13 @@ MenuPrivate::Layout() const
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
MenuPrivate::SetLayout(menu_layout layout)
|
||||
{
|
||||
fMenu->fLayout = layout;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
MenuPrivate::ItemMarked(BMenuItem *item)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user