Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Button

Class Button

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

Implemented interfaces:


public class

Button



A Button

Constructor Summary
(Button button)
          
()
          creates a new button
(char label)
          creates a new button with a label
(String label)
          creates a new button with a label
(char label, void delegate())
          creates a new button with a label
(String label, void delegate())
          creates a new button with a label
(char label, void delegate(Button))
          creates a new button with a label and OnButtonClicked delegate
(String label, void delegate(Button))
          creates a new button with a label and OnButtonClicked delegate
(char label, void delegate(Button), char action)
          creates a new button with a label, OnButtonClicked delegate and an action
(String label, void delegate(Button), String action)
          creates a new button with a label, OnButtonClicked delegate and an action
(Stock stockID)
          Creates a bitton from the stock of predefined buttons
(Stock stockID, void delegate())
          Creates a bitton from the stock of predefined buttons
(Stock stockID, void delegate(Button))
          Creates a bitton from the stock of predefined buttons
(Stock stockID, bit hideLabel)
          Creates a bitton from the stock of predefined buttons
(Stock stockID, bit hideLabel, void delegate())
          Creates a bitton from the stock of predefined buttons
(Stock stockID, bit hideLabel, void delegate(), char action)
          Creates a bitton from the stock of predefined buttons
(Stock stockID, bit hideLabel, void delegate(), String action)
          Creates a bitton from the stock of predefined buttons
(Stock stockID, bit hideLabel, void delegate(Button))
          Creates a bitton from the stock of predefined buttons
(Stock stockID, bit hideLabel, void delegate(Button), char action)
          Creates a bitton from the stock of predefined buttons
(Stock stockID, bit hideLabel, void delegate(Button), String action)
          Creates a bitton from the stock of predefined buttons
(Image image)
          

Methods Summary
protected alias EventHandler0!(Button )
          
alias EventHandler!(Button )
          
alias EventHandler!(Button )
          
alias EventHandler!(Button )
          
alias EventHandler!(Button )
          
alias EventHandler!(Button )
          
alias EventHandler!(Button )
          
: this(GtkWidget* gtkWidget)
          
public char toString()
          
public void addOnClick(void delegate())
          addOnClick
public void addOnButtonClicked(void delegate(Button))
          addOnBubttonClicked
public void addOnButtonPressed(void delegate(Button))
          addOnButtonPressed
public void addOnButtonReleased(void delegate(Button))
          addOnButtonReleased
public void addOnButtonEnter(void delegate(Button))
          addOnButtonEnter
public void addOnButtonLeave(void delegate(Button))
          addOnButtonLeave
public void addOnButtonActivate(void delegate(Button))
          addOnButtonActivate
String getLabel()
          Gets the label text for this button
void setRelief(ReliefStyle newstyle)
          Sets the relief style of the edges for this button.
ReliefStyle getRelief()
          
void setLabel(char label)
          Sets the label text for this buttons
void setLabel(String label)
          Sets the label text for this buttons
void setUseUnderline(gboolean use_underline)
          If true, an underline in the text of the button label indicates the next character should be used for the mnemonic accelerator key.
bit getUseUnderline()
          Returns whether an embedded underline in the button label indicates a mnemonic.
void setUseStock(gboolean use_stock)
          If true, the label set on the button is used as a stock id to select the stock item for the button.
bit getUseStock()
          Returns whether the button label is a stock item.


EventHandler0!

protected alias EventHandler0!(Button )

EventHandler!

alias EventHandler!(Button )

EventHandler!

alias EventHandler!(Button )

EventHandler!

alias EventHandler!(Button )

EventHandler!

alias EventHandler!(Button )

EventHandler!

alias EventHandler!(Button )

EventHandler!

alias EventHandler!(Button )

this

: this(GtkWidget* gtkWidget)

toString

public char toString()



ctor(Button)(Button button)

addOnClick

public void addOnClick(void delegate())
addOnClick

Parameters:
dlg - the method to add to the event

addOnButtonClicked

public void addOnButtonClicked(void delegate(Button))
addOnBubttonClicked

Parameters:
dlg - the method to add to the event

addOnButtonPressed

public void addOnButtonPressed(void delegate(Button))
addOnButtonPressed

Parameters:
dlg - the method to add to the event

addOnButtonReleased

public void addOnButtonReleased(void delegate(Button))
addOnButtonReleased

Parameters:
dlg - the method to add to the event

addOnButtonEnter

public void addOnButtonEnter(void delegate(Button))
addOnButtonEnter

Parameters:
dlg - the method to add to the event

addOnButtonLeave

public void addOnButtonLeave(void delegate(Button))
addOnButtonLeave

Parameters:
dlg - the method to add to the event

addOnButtonActivate

public void addOnButtonActivate(void delegate(Button))
addOnButtonActivate

Parameters:
dlg - the method to add to the event



ctor(Button)()
creates a new button



ctor(Button)(char label)
creates a new button with a label



ctor(Button)(String label)
creates a new button with a label



ctor(Button)(char label, void delegate())
creates a new button with a label



ctor(Button)(String label, void delegate())
creates a new button with a label



ctor(Button)(char label, void delegate(Button))
creates a new button with a label and OnButtonClicked delegate



ctor(Button)(String label, void delegate(Button))
creates a new button with a label and OnButtonClicked delegate



ctor(Button)(char label, void delegate(Button), char action)
creates a new button with a label, OnButtonClicked delegate and an action



ctor(Button)(String label, void delegate(Button), String action)
creates a new button with a label, OnButtonClicked delegate and an action



ctor(Button)(Stock stockID)
Creates a bitton from the stock of predefined buttons



ctor(Button)(Stock stockID, void delegate())
Creates a bitton from the stock of predefined buttons



ctor(Button)(Stock stockID, void delegate(Button))
Creates a bitton from the stock of predefined buttons



ctor(Button)(Stock stockID, bit hideLabel)
Creates a bitton from the stock of predefined buttons

Parameters:
stockID -
hideLabel -



ctor(Button)(Stock stockID, bit hideLabel, void delegate())
Creates a bitton from the stock of predefined buttons

Parameters:
stockID -
hideLabel -



ctor(Button)(Stock stockID, bit hideLabel, void delegate(), char action)
Creates a bitton from the stock of predefined buttons

Parameters:
stockID -
hideLabel -



ctor(Button)(Stock stockID, bit hideLabel, void delegate(), String action)
Creates a bitton from the stock of predefined buttons

Parameters:
stockID -
hideLabel -



ctor(Button)(Stock stockID, bit hideLabel, void delegate(Button))
Creates a bitton from the stock of predefined buttons

Parameters:
stockID -
hideLabel -



ctor(Button)(Stock stockID, bit hideLabel, void delegate(Button), char action)
Creates a bitton from the stock of predefined buttons

Parameters:
stockID -
hideLabel -



ctor(Button)(Stock stockID, bit hideLabel, void delegate(Button), String action)
Creates a bitton from the stock of predefined buttons

Parameters:
stockID -
hideLabel -



ctor(Button)(Image image)

getLabel

String getLabel()
Gets the label text for this button

Returns:
the label text for this button

setRelief

void setRelief(ReliefStyle newstyle)
Sets the relief style of the edges for this button.
Three styles exist, GTK_RELIEF_NORMAL, GTK_RELIEF_HALF, GTK_RELIEF_NONE. The default style is, as one can guess, GTK_RELIEF_NORMAL.

Parameters:
newstyle - the new relief style.

getRelief

ReliefStyle getRelief()

setLabel

void setLabel(char label)
Sets the label text for this buttons

Parameters:
label - the new label text

setLabel

void setLabel(String label)
Sets the label text for this buttons

Parameters:
label - the new label text

setUseUnderline

void setUseUnderline(gboolean use_underline)
If true, an underline in the text of the button label indicates the next character should be used for the mnemonic accelerator key.

Parameters:
use_underline -

getUseUnderline

bit getUseUnderline()
Returns whether an embedded underline in the button label indicates a mnemonic.
@see gtk_button_set_use_underline().

Returns:

setUseStock

void setUseStock(gboolean use_stock)
If true, the label set on the button is used as a stock id to select the stock item for the button.

Parameters:
use_stock -

getUseStock

bit getUseStock()
Returns whether the button label is a stock item.

Returns:
true if the button label is a stock item.