gtk.MenuItem.MenuItem Class Reference

Inheritance diagram for gtk.MenuItem.MenuItem:

gtk.Item.Item gtk.Bin.Bin gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG gtk.CheckMenuItem.CheckMenuItem gtk.ImageMenuItem.ImageMenuItem gtk.SeparatorMenuItem.SeparatorMenuItem gtk.TearoffMenuItem.TearoffMenuItem gtk.RadioMenuItem.RadioMenuItem List of all members.

Public Member Functions

GtkMenuItemgetMenuItemStruct ()
 this (GtkMenuItem *gtkMenuItem)
 Sets our main struct and passes it to the parent class.
char[] getActionName ()
 Gets the application set action code.
 this (char[] label, void delegate(MenuItem) dlg, char[] action)
 Creates a new menu item with a label and a listener and a action.
 this (void delegate(MenuItem) dlg, char[] label, char[] action, bit mnemonic=true)
 Creates a new Item associated with a "activate" delegate and with a action code.
 this (void delegate(MenuItem) dlg, char[] label, bit mnemonic=true)
 Creates a new Item associated with a "activate" delegate.
 this (char[] label, bit mnemonic=true)
 Creates a new GtkMenuItem whose child is a GtkLabel.
void itemActivate ()
 Emits the "activate" signal on the given item menu_item: the menu item.
void delegate (MenuItem)[] onActivateListeners
void addOnActivate (void delegate(MenuItem) dlg)
 extern (C) static void callBackActivate(GtkMenuItem *menuitemStruct
void addOnActivateItem (void delegate(MenuItem) dlg)
 extern (C) static void callBackActivateItem(GtkMenuItem *menuitemStruct
void addOnToggleSizeAllocate (void delegate(gint, MenuItem) dlg)
 extern (C) static void callBackToggleSizeAllocate(GtkMenuItem *menuitemStruct
void addOnToggleSizeRequest (void delegate(gpointer, MenuItem) dlg)
 extern (C) static void callBackToggleSizeRequest(GtkMenuItem *menuitemStruct

Public Attributes

int[char[]] connectedSignals
gint arg1
gpointer arg1

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkMenuItemgtkMenuItem
 the main Gtk struct

Private Attributes

char[] actionLabel
 store the action code passed in by the applcation

Constructor & Destructor Documentation

gtk.MenuItem.MenuItem.this ( GtkMenuItem gtkMenuItem  ) 

Sets our main struct and passes it to the parent class.

gtk.MenuItem.MenuItem.this ( char[]  label,
void delegate(MenuItem dlg,
char[]  action 
)

Creates a new menu item with a label and a listener and a action.

used for backward compatibily with DUI.

gtk.MenuItem.MenuItem.this ( void delegate(MenuItem dlg,
char[]  label,
char[]  action,
bit  mnemonic = true 
)

Creates a new Item associated with a "activate" delegate and with a action code.

gtk.MenuItem.MenuItem.this ( void delegate(MenuItem dlg,
char[]  label,
bit  mnemonic = true 
)

Creates a new Item associated with a "activate" delegate.

gtk.MenuItem.MenuItem.this ( char[]  label,
bit  mnemonic = true 
)

Creates a new GtkMenuItem whose child is a GtkLabel.

If mnemonic is true the label will be created using gtk_label_new_with_mnemonic(), so underscores in label indicate the mnemonic for the menu item. label: the text for the label Returns: the newly created GtkMenuItem

Reimplemented in gtk.CheckMenuItem.CheckMenuItem, and gtk.ImageMenuItem.ImageMenuItem.


Member Function Documentation

void gtk.MenuItem.MenuItem.addOnActivate ( void delegate(MenuItem dlg  ) 

void gtk.MenuItem.MenuItem.addOnActivateItem ( void delegate(MenuItem dlg  ) 

void gtk.MenuItem.MenuItem.addOnToggleSizeAllocate ( void delegate(gint, MenuItem dlg  ) 

void gtk.MenuItem.MenuItem.addOnToggleSizeRequest ( void delegate(gpointer, MenuItem dlg  ) 

void gtk.MenuItem.MenuItem.delegate ( MenuItem   ) 

gtk.MenuItem.MenuItem.extern (  ) 

Reimplemented from gtk.Item.Item.

Reimplemented in gtk.CheckMenuItem.CheckMenuItem, and gtk.RadioMenuItem.RadioMenuItem.

gtk.MenuItem.MenuItem.extern (  ) 

Reimplemented from gtk.Item.Item.

Reimplemented in gtk.CheckMenuItem.CheckMenuItem, and gtk.RadioMenuItem.RadioMenuItem.

gtk.MenuItem.MenuItem.extern (  ) 

Reimplemented from gtk.Item.Item.

Reimplemented in gtk.CheckMenuItem.CheckMenuItem, and gtk.RadioMenuItem.RadioMenuItem.

gtk.MenuItem.MenuItem.extern (  ) 

Reimplemented from gtk.Item.Item.

Reimplemented in gtk.CheckMenuItem.CheckMenuItem, and gtk.RadioMenuItem.RadioMenuItem.

char [] gtk.MenuItem.MenuItem.getActionName (  ) 

Gets the application set action code.

GtkMenuItem* gtk.MenuItem.MenuItem.getMenuItemStruct (  ) 

void* gtk.MenuItem.MenuItem.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.Item.Item.

Reimplemented in gtk.CheckMenuItem.CheckMenuItem, gtk.ImageMenuItem.ImageMenuItem, gtk.RadioMenuItem.RadioMenuItem, gtk.SeparatorMenuItem.SeparatorMenuItem, and gtk.TearoffMenuItem.TearoffMenuItem.

void gtk.MenuItem.MenuItem.itemActivate (  ) 

Emits the "activate" signal on the given item menu_item: the menu item.


Member Data Documentation

char [] gtk.MenuItem.MenuItem.actionLabel [private]

store the action code passed in by the applcation

gpointer gtk.MenuItem.MenuItem.arg1

Reimplemented from gtk.Widget.Widget.

gint gtk.MenuItem.MenuItem.arg1

Reimplemented from gtk.Widget.Widget.

int [char[]] gtk.MenuItem.MenuItem.connectedSignals

Reimplemented from gtk.Item.Item.

Reimplemented in gtk.CheckMenuItem.CheckMenuItem, and gtk.RadioMenuItem.RadioMenuItem.

GtkMenuItem* gtk.MenuItem.MenuItem.gtkMenuItem [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo