Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.MenuItem

Class MenuItem

Implemented interfaces:

Item
public class

MenuItem



A menu item

Constructor Summary
(GtkWidget* gtkWidget)
          
()
          Creates a new menu item
(char label)
          Creates a new menu item with a label
(String label)
          
(char label, void delegate(MenuItem)dlg)
          Creates a new menu item with a label and a listener
(String label, void delegate(MenuItem)dlg)
          
(char label, void delegate(MenuItem)dlg, char action)
          Creates a new menu item with a label and a listener and a action
(String label, void delegate(MenuItem)dlg, String action)
          
(MenuItemListener listener, char label, char action)
          Creates a new menu item with a label an action and set the MenuItemListener
(MenuItemListener listener, String label, String action)
          

Methods Summary
alias EventHandler!(MenuItem )
          
alias EventHandler!(MenuItem )
          
protected public static GType getType()
          Gets this class type
public void addOnActivate(void delegate(MenuItem))
          
void addOnActivateItem(void delegate(MenuItem))
          
void connect(MenuItemListener listener, String action)
          Connects this menu item to a listener
void setSubmenu(Widget subMenu)
          Sets a submenu for this item
Menu setSubmenu(String label)
          Creates a new submenu on this menu item.
Widget getSubmenu()
          getSubmenu
void removeSubmenu()
          removeSubmenu
void select()
          select
void deselect()
          deselect
void select(bit stat)
          select
void activateItem()
          activate
void toggleSizeRequest(gint* requisition)
          toggleSizeRequest
void toggleSizeAllocate(gint allocation)
          toggleSizeAllocate
void setRightJustified(ushort right)
          Set something to the right ???
bit getRightJustufued()
          
void setAccelPath(String accelPath)
          


EventHandler!

alias EventHandler!(MenuItem )

EventHandler!

alias EventHandler!(MenuItem )

getType

protected public static GType getType()
Gets this class type

Returns:
type



ctor(MenuItem)(GtkWidget* gtkWidget)

addOnActivate

public void addOnActivate(void delegate(MenuItem))

addOnActivateItem

void addOnActivateItem(void delegate(MenuItem))



ctor(MenuItem)()
Creates a new menu item



ctor(MenuItem)(char label)
Creates a new menu item with a label



ctor(MenuItem)(String label)



ctor(MenuItem)(char label, void delegate(MenuItem)dlg)
Creates a new menu item with a label and a listener



ctor(MenuItem)(String label, void delegate(MenuItem)dlg)



ctor(MenuItem)(char label, void delegate(MenuItem)dlg, char action)
Creates a new menu item with a label and a listener and a action



ctor(MenuItem)(String label, void delegate(MenuItem)dlg, String action)



ctor(MenuItem)(MenuItemListener listener, char label, char action)
Creates a new menu item with a label an action and set the MenuItemListener

Parameters:
listener - the MenuItemListener
label - the item label text
action - the item action text



ctor(MenuItem)(MenuItemListener listener, String label, String action)

connect

void connect(MenuItemListener listener, String action)
Connects this menu item to a listener

Parameters:
listener - the listener interested on this menu item actions
actino - the action identifier

setSubmenu

void setSubmenu(Widget subMenu)
Sets a submenu for this item

Parameters:
subMenu -

setSubmenu

Menu setSubmenu(String label)
Creates a new submenu on this menu item.

Parameters:
label - the label with mnemonic of the new menu

Returns:
a new menu

getSubmenu

Widget getSubmenu()
getSubmenu

Returns:
Widget

removeSubmenu

void removeSubmenu()
removeSubmenu

select

void select()
select

deselect

void deselect()
deselect

select

void select(bit stat)
select

Parameters:
stat - if true select else deselect

activateItem

void activateItem()
activate

toggleSizeRequest

void toggleSizeRequest(gint* requisition)
toggleSizeRequest

Parameters:
requisition -

toggleSizeAllocate

void toggleSizeAllocate(gint allocation)
toggleSizeAllocate

Parameters:
allocation -

setRightJustified

void setRightJustified(ushort right)
Set something to the right ???

Parameters:
right -

getRightJustufued

bit getRightJustufued()

setAccelPath

void setAccelPath(String accelPath)