![]() |
Clapkit
|
Defines an item on the menubar. (e.g. "File", "Edit" ..) More...
#include <ckMenu.h>
Public Member Functions | |
| CKMenu (const char *text) | |
| virtual | ~CKMenu () |
| void | SetText (const char *text) |
| void | AddItem (CKMenuItem *item) |
| void | PrependItem (CKMenuItem *item) |
| void | DeleteItem (CKMenuItem *item) |
Public Member Functions inherited from CKObject | |
| CKObject () | |
| virtual | ~CKObject () |
| virtual void | AddHandler (CKEventType type, CKEventHandlerFunc cb) |
| virtual void | RemoveHandler (CKEventType type) |
| virtual bool | HasHandler (CKEventType type) const |
| virtual bool | HandleEvent (const CKEvent &evt) |
| virtual void | SetPropertyObserver (CKPropertyObserverFunc cb) |
| virtual void | UnsetPropertyObserver () |
| virtual void | RaisePropertyChange (const char *propertyName) |
Public Attributes | |
| CKProperty< bool > | enabled = true |
| CKProperty< std::vector< CKMenuItem * > > | items |
Protected Attributes | |
| char * | text = nullptr |
| short | __osMenuID |
| MenuHandle | __osMenuHandle |
Protected Attributes inherited from CKObject | |
| std::map< CKEventType, CKEventHandlerFunc > | __handlers |
| CKPropertyObserverFunc | propertyObserverCB = nullptr |
Friends | |
| class | CKApp |
Defines an item on the menubar. (e.g. "File", "Edit" ..)
| CKMenu::CKMenu | ( | const char * | text | ) |
|
virtual |
|
inline |
|
inline |
|
inline |
| void CKMenu::SetText | ( | const char * | text | ) |
|
friend |
|
protected |
|
protected |
| CKProperty<bool> CKMenu::enabled = true |
| CKProperty<std::vector<CKMenuItem*> > CKMenu::items |
|
protected |