Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.ToggleButton

Class ToggleButton

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Bin.Bin
                                        dui.Button.Button
                                                dui.ToggleButton.ToggleButton

Implemented interfaces:


public class

ToggleButton



A Toggle Button

Constructor Summary
(GtkWidget* gtkWidget)
          
(Button button)
          
public ()
          Creates a new toggle button
(char label)
          Creates a new toggle button with a label
(String label)
          

Methods Summary
public static GType getType()
          Gets this class type
void setMode(gboolean drawIndicator)
          Set the mode (whatever that is)
bit getMode()
          Get the mode (whatever that is)
void setActive(bit isActive)
          Set the button state
bit getActive()
          Get the state of the button
void toggled()
          Do something (change the state?)
void setInconsistent(bit setting)
          Sets the inconsistent state
bit getInconsistent()
          Check is the state is neither true or false


getType

public static GType getType()
Gets this class type

Returns:
this class type



ctor(ToggleButton)(GtkWidget* gtkWidget)



ctor(ToggleButton)(Button button)



public ctor(ToggleButton)()
Creates a new toggle button



ctor(ToggleButton)(char label)
Creates a new toggle button with a label



ctor(ToggleButton)(String label)

setMode

void setMode(gboolean drawIndicator)
Set the mode (whatever that is)

getMode

bit getMode()
Get the mode (whatever that is)

setActive

void setActive(bit isActive)
Set the button state

Parameters:
isActive - the new state

getActive

bit getActive()
Get the state of the button

Returns:
the button state as true or false

toggled

void toggled()
Do something (change the state?)

setInconsistent

void setInconsistent(bit setting)
Sets the inconsistent state

Parameters:
setting - the new state

getInconsistent

bit getInconsistent()
Check is the state is neither true or false

Returns:
true if the state is inconsistene