MenuItem Class Reference

Inheritance diagram for MenuItem:

Item CheckMenuItem ImageMenuItem SeparatorMenuItem TearoffMenuItem RadioMenuItem List of all members.

Detailed Description

A menu item.


Public Member Functions

 this ()
 Creates a new menu item.

 this (char[] label)
 Creates a new menu item with a label.

 this (MenuItemListener listener, char[] label, char[] action)
 Creates a new menu item with a label an action and set the MenuItemListener.

void connect (MenuItemListener listener, char[] action)
 Connects this menu item to a listener.

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

Menu setSubmenu (char[] 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 ???


Static Public Member Functions

GType getType ()
 Gets this class type.


Member Function Documentation

void MenuItem.activateItem  ) 
 

activate

void MenuItem.connect MenuItemListener  listener,
char[]  action
 

Connects this menu item to a listener.

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

void MenuItem.deselect  ) 
 

deselect

Reimplemented from Item.

Widget MenuItem.getSubmenu  ) 
 

getSubmenu

Returns:
Widget

GType MenuItem.getType  )  [static]
 

Gets this class type.

Returns:
type

Reimplemented from Item.

Reimplemented in ImageMenuItem, RadioMenuItem, SeparatorMenuItem, and TearoffMenuItem.

void MenuItem.removeSubmenu  ) 
 

removeSubmenu

void MenuItem.select bit  stat  ) 
 

select

Parameters:
stat if true select else deselect

void MenuItem.select  ) 
 

select

Reimplemented from Item.

void MenuItem.setRightJustified ushort  right  ) 
 

Set something to the right ???

Parameters:
right 

Menu MenuItem.setSubmenu char[]  label  ) 
 

Creates a new submenu on this menu item.

Parameters:
label the label with mnemonic of the new menu
Returns:
a new menu

void MenuItem.setSubmenu Widget  subMenu  ) 
 

Sets a submenu for this item.

Parameters:
subMenu 

MenuItem.this 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

Reimplemented in CheckMenuItem.

MenuItem.this char[]  label  ) 
 

Creates a new menu item with a label.

Reimplemented in CheckMenuItem, ImageMenuItem, and ImageMenuItem.

MenuItem.this  ) 
 

Creates a new menu item.

Reimplemented in CheckMenuItem, ImageMenuItem, SeparatorMenuItem, and TearoffMenuItem.

void MenuItem.toggleSizeAllocate gint  allocation  ) 
 

toggleSizeAllocate

Parameters:
allocation 

void MenuItem.toggleSizeRequest gint *  requisition  ) 
 

toggleSizeRequest

Parameters:
requisition 


Generated on Sun Dec 21 02:47:11 2003 for DUI by doxygen 1.3.4