|
VSTGUI
3.6
|
#include <vstcontrols.h>
Inheritance diagram for CMenuItem:Public Types | |
| enum | Flags { kNoFlags = 0, kDisabled = 1 << 0, kTitle = 1 << 1, kChecked = 1 << 2, kSeparator = 1 << 3 } |
Public Member Functions | |
| ~CMenuItem () | |
Protected Attributes | |
| char * | title |
| char * | keycode |
| COptionMenu * | submenu |
| CBitmap * | icon |
| long | flags |
| long | keyModifiers |
Constructor | |
| CMenuItem (const char *title, long flags=kNoFlags, const char *keycode=0, long keyModifiers=0, CBitmap *icon=0) | |
| CMenuItem (const char *title, COptionMenu *submenu, CBitmap *icon=0) | |
| CMenuItem (const CMenuItem &item) | |
CMenuItem Methods | |
| virtual void | setTitle (const char *title) |
| set title of menu item More... | |
| virtual void | setSubmenu (COptionMenu *submenu) |
| set submenu of menu item More... | |
| virtual void | setKey (const char *keyCode, long keyModifiers=0) |
| set keycode and key modifiers of menu item More... | |
| virtual void | setEnabled (bool state=true) |
| set menu item enabled state More... | |
| virtual void | setChecked (bool state=true) |
| set menu item checked state More... | |
| virtual void | setIsTitle (bool state=true) |
| set menu item title state More... | |
| virtual void | setIsSeparator (bool state=true) |
| set menu item separator state More... | |
| virtual void | setIcon (CBitmap *icon) |
| set menu item icon More... | |
| bool | isEnabled () const |
| returns whether the item is enabled or not More... | |
| bool | isChecked () const |
| returns whether the item is checked or not More... | |
| bool | isTitle () const |
| returns whether the item is a title item or not More... | |
| bool | isSeparator () const |
| returns whether the item is a separator or not More... | |
| const char * | getTitle () const |
| returns the title of the item More... | |
| long | getKeyModifiers () const |
| returns the key modifiers of the item More... | |
| const char * | getKeycode () const |
| returns the keycode of the item More... | |
| COptionMenu * | getSubmenu () const |
| returns the submenu of the item More... | |
| CBitmap * | getIcon () const |
| returns the icon of the item More... | |
Reference Counting Methods | |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 More... | |
| virtual void | remember () |
| increase refcount More... | |
| long | getNbReference () const |
| get refcount More... | |
Message Methods | |
| virtual CMessageResult | notify (CBaseObject *sender, const char *message) |
Defines an item of a VSTGUI::COptionMenu
| enum Flags |
| CMenuItem | ( | const char * | inTitle, |
| long | inFlags = kNoFlags, |
||
| const char * | inKeycode = 0, |
||
| long | inKeyModifiers = 0, |
||
| CBitmap * | inIcon = 0 |
||
| ) |
CMenuItem constructor.
| inTitle | title of item |
| inFlags | CMenuItem::Flags of item |
| inKeycode | keycode of item |
| inKeyModifiers | keymodifiers of item |
| inIcon | icon of item |
| CMenuItem | ( | const char * | inTitle, |
| COptionMenu * | inSubmenu, | ||
| CBitmap * | inIcon = 0 |
||
| ) |
CMenuItem constructor.
| inTitle | title of item |
| inSubmenu | submenu of item |
| inIcon | icon of item |
| ~CMenuItem | ( | ) |
|
inlinevirtualinherited |
decrease refcount and delete object if refcount == 0
Reimplemented in CDrawContext.
|
inline |
returns the icon of the item
|
inline |
returns the keycode of the item
|
inline |
returns the key modifiers of the item
|
inlineinherited |
get refcount
|
inline |
returns the submenu of the item
|
inline |
returns the title of the item
|
inline |
returns whether the item is checked or not
|
inline |
returns whether the item is enabled or not
|
inline |
returns whether the item is a separator or not
|
inline |
returns whether the item is a title item or not
|
inlinevirtualinherited |
Reimplemented in CViewContainer, CView, CScrollbar, CDataBrowser, and CTooltipSupport.
|
inlinevirtualinherited |
increase refcount
|
virtual |
set menu item checked state
|
virtual |
set menu item enabled state
|
virtual |
set menu item icon
|
virtual |
set menu item separator state
|
virtual |
set menu item title state
|
virtual |
set keycode and key modifiers of menu item
|
virtual |
set submenu of menu item
|
virtual |
set title of menu item
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.7