|
vdk 2.4.0
|
Provides a menu item. More...
#include <menu.h>
Provides a menu item.
VDKMenuItem *item = new VDKMenuItem(menu,"_Accelerated"); // alt+a triggers activate_signal
| VDKMenuItem::VDKMenuItem | ( | VDKMenu * | menu, |
| const char * | prompt = NULL, |
||
| char ** | pixmap = NULL, |
||
| guint | key = GDK_VoidSymbol, |
||
| guint8 | modkey = GDK_MOD1_MASK, |
||
| bool | accel = true |
||
| ) |
Constructor, makes a menu item to be assigned to a menu
| menu | owner menu |
| prompt | menu caption |
| pixmap | pixmap data |
| key | accelerator key |
| modkey | accelerator key modifier |
| accel | wheter should contain an accelerator or not |
A pixmap will be packed at start if <pixmap> isn't NULL. Leaving <key> to default value makes <label> to be parsed for accelerators. For instance label == "_Quit" makes the accelerator as alt+q. Setting <key> other then default overrides label parsing, setting <modkey> to other than default overrides <alt> modifier.
| VDKMenuItem::VDKMenuItem | ( | VDKMenubar * | bar, |
| const char * | prompt = NULL, |
||
| char ** | pixmap = NULL, |
||
| int | align = l_justify, |
||
| guint | key = GDK_VoidSymbol, |
||
| guint8 | modkey = GDK_MOD1_MASK, |
||
| bool | accel = true |
||
| ) |
Constructor, makes a menu item to be assigned to a menu bar
| bar | owner menu bar |
| prompt | menu caption |
| pixmap | pixmap data |
| align | label alignement |
| key | accelerator key |
| modkey | accelerator key modifier |
| accel | wheter should contain an accelerator or not |
| VDKMenuItem::~VDKMenuItem | ( | ) | [virtual] |
Destructor
| VDKMenuItem::__rwproperty | ( | VDKMenuItem | , |
| bool | |||
| ) |
Sets/gets menu item marked state
| VDKMenuItem::__rwproperty | ( | VDKMenuItem | , |
| const char * | |||
| ) |
Sets/gets menu item caption
| guint VDKMenuItem::AccKey | ( | ) | [inline] |
Returns accelerated key
| void VDKMenuItem::Add | ( | VDKMenu * | submenu | ) |
Adds a submenus to this menu
| guint8 VDKMenuItem::ModKey | ( | ) | [inline] |
Returns accelerated key modifier
| void VDKMenuItem::SetFont | ( | VDKFont * | f | ) | [virtual] |
Sets object font
Reimplemented from VDKObject.
1.7.6.1