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:
John Scipione 2015-02-20 14:35:36 -05:00
parent 09d0a76b7b
commit 35384ab425
2 changed files with 9 additions and 1 deletions

View File

@ -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();

View File

@ -111,6 +111,13 @@ MenuPrivate::Layout() const
}
void
MenuPrivate::SetLayout(menu_layout layout)
{
fMenu->fLayout = layout;
}
void
MenuPrivate::ItemMarked(BMenuItem *item)
{