Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.CheckMenuItem

Class CheckMenuItem

dui.MenuItem.MenuItem
        dui.CheckMenuItem.CheckMenuItem

Implemented interfaces:


public class

CheckMenuItem



Check menu item

Constructor Summary
protected (GtkWidget* gtkWidget)
          
public ()
          Create a new check menu item
(String label)
          Creates a new check menu item with a label
(MenuItemListener listener, String label, String action)
          Creates a new check menu item with a label an action and set the MenuItemListener
(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)
          

Methods Summary
bit getActive()
          Gets the current active state
void setActive(bit active)
          Sets the active state
void setShowToggle(bit always)
          Sets the show toggle policy
void toggled()
          Toggles the button state
gboolean getInconsistent()
          Gets the inconsistent state
void setInconsistent(bit setting)
          Sets the inconsisten state




protected ctor(CheckMenuItem)(GtkWidget* gtkWidget)



public ctor(CheckMenuItem)()
Create a new check menu item



ctor(CheckMenuItem)(String label)
Creates a new check menu item with a label

Parameters:
label - the label text



ctor(CheckMenuItem)(MenuItemListener listener, String label, String action)
Creates a new check menu item with a label an action and set the MenuItemListener

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



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



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



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



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

getActive

bit getActive()
Gets the current active state

Returns:
the current active state

setActive

void setActive(bit active)
Sets the active state

Parameters:
active - the active state

setShowToggle

void setShowToggle(bit always)
Sets the show toggle policy

Parameters:
always -

toggled

void toggled()
Toggles the button state

getInconsistent

gboolean getInconsistent()
Gets the inconsistent state

Returns:
true the the state is inconsistent

setInconsistent

void setInconsistent(bit setting)
Sets the inconsisten state

Parameters:
setting - the bew inconsistent state