|
vdk 2.4.0
|
Provides a menu item. More...
#include <menu.h>


Public Member Functions | |
| __rwproperty (VDKMenuItem, bool) Checked | |
| __rwproperty (VDKMenuItem, const char *) Caption | |
| VDKMenuItem (VDKMenu *menu, const char *prompt=NULL, char **pixmap=NULL, guint key=GDK_VoidSymbol, guint8 modkey=GDK_MOD1_MASK, bool accel=true) | |
| 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) | |
| virtual | ~VDKMenuItem () |
| guint | AccKey () |
| guint8 | ModKey () |
| void | Add (VDKMenu *submenu) |
| virtual void | SetFont (VDKFont *font) |
Public Member Functions inherited from VDKObject | |
| VDKRgb | GetBackground (GtkStateType state=GTK_STATE_NORMAL) |
| VDKRgb | GetForeground (GtkStateType state=GTK_STATE_NORMAL) |
| VDKObject (VDKForm *owner=NULL) | |
| VDKObject (VDKForm *owner, GtkWidget *widget) | |
| virtual | ~VDKObject () |
| bool | Destroy () |
| virtual int | isA () |
| VDKForm * | Owner () |
| virtual GtkWidget * | Widget () |
| GtkWidget * | ConnectingWidget () |
| GtkWidget * | WrappedWidget () |
| VDKFont * | GetFont () |
| void | SetVisible (bool visible) |
| bool | GetVisible () |
| void | SetCursor (VDKCursorType) |
| VDKCursorType | GetCursor () |
| virtual void | SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
| virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
| void | SetSize (int w, int h) |
| void | SetUsize (VDKPoint s) |
| virtual void | SetTip (char *) |
| virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0) |
| ItemList & | Items () |
| void | Draw (GdkRectangle *area=NULL) |
| virtual void | Setup () |
| void | SignalEmit (int signal) |
| void | SignalEmit (char *sig) |
| void | SignalEmitParent (int signal) |
| void | SignalEmitParent (char *sig) |
| void | GrabFocus () |
| VDKObject * | Parent (VDKObject *p=NULL) |
| int | SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
| int | SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
| bool | SignalDisconnect (int connection) |
| int | EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false) |
| int | EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false) |
| bool | EventDisconnect (int connection) |
Additional Inherited Members | |
Public Attributes inherited from VDKObject | |
| VDKReadWriteValueProp< VDKObject, VDKRgb > | NormalBackground |
| VDKReadWriteValueProp< VDKObject, VDKFont * > | Font |
| SizeObjectProp | Usize |
| VDKReadWriteValueProp< VDKObject, bool > | Enabled |
| VDKReadWriteValueProp< VDKObject, VDKCursorType > | Cursor |
| VDKReadWriteValueProp< VDKObject, bool > | Visible |
Protected Attributes inherited from VDKObject | |
| VDKObjectSignal | s_clicked |
| GtkWidget * | widget |
| GtkWidget * | sigwid |
| VDKObject * | parent |
Provides a menu item.
| 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 |
|
virtual |
Destructor
| VDKMenuItem::__rwproperty | ( | VDKMenuItem | , |
| bool | |||
| ) |
Sets/gets menu item marked state
| VDKMenuItem::__rwproperty | ( | VDKMenuItem | , |
| const char * | |||
| ) |
Sets/gets menu item caption
|
inline |
Returns accelerated key
| void VDKMenuItem::Add | ( | VDKMenu * | submenu | ) |
Adds a submenus to this menu
|
inline |
Returns accelerated key modifier
1.8.17