gtk.Button.Button Class Reference

Inheritance diagram for gtk.Button.Button:

gtk.Bin.Bin gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG gtk.ColorButton.ColorButton gtk.FontButton.FontButton gtk.ToggleButton.ToggleButton gtk.CheckButton.CheckButton gtk.RadioButton.RadioButton List of all members.

Public Member Functions

GtkButtongetButtonStruct ()
 this (GtkButton *gtkButton)
 Sets our main struct and passes it to the parent class.
void setActionName (char[] action)
char[] getActionName ()
 this (char[] label, bit mnemonic=true)
 Creates a new GtkButton containing a label.
 this (StockID stockID, bool hideLabel=false)
 Creates a new GtkButton containing the image and text from a stock item.
 this (StockID stockID, void delegate(Button) dlg, bool hideLabel=false)
 this (char[] label, void delegate(Button) dlg, bit mnemonic=true)
 this (char[] label, void delegate(Button) dlg, char[] action)
void delegate (Button)[] onActivateListeners
void addOnActivate (void delegate(Button) dlg)
 extern (C) static void callBackActivate(GtkButton *widgetStruct
void addOnClicked (void delegate(Button) dlg)
 extern (C) static void callBackClicked(GtkButton *buttonStruct
void addOnEnter (void delegate(Button) dlg)
 extern (C) static void callBackEnter(GtkButton *buttonStruct
void addOnLeave (void delegate(Button) dlg)
 extern (C) static void callBackLeave(GtkButton *buttonStruct
void addOnPressed (void delegate(Button) dlg)
 extern (C) static void callBackPressed(GtkButton *buttonStruct
void addOnReleased (void delegate(Button) dlg)
 extern (C) static void callBackReleased(GtkButton *buttonStruct

Static Public Member Functions

static void setIconSize (IconSize iconSize)
static IconSize getIconSize ()

Public Attributes

int[char[]] connectedSignals

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkButtongtkButton
 the main Gtk struct

Private Attributes

char[] action
 An arbitrary string to be used by the application.

Static Private Attributes

static IconSize currentIconSize = IconSize.BUTTON

Constructor & Destructor Documentation

gtk.Button.Button.this ( GtkButton gtkButton  ) 

Sets our main struct and passes it to the parent class.

gtk.Button.Button.this ( char[]  label,
bit  mnemonic = true 
)

Creates a new GtkButton containing a label.

If characters in label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic. Pressing Alt and that key activates the button. label: The text of the button, with an underscore in front of the mnemonic character Returns: a new GtkButton

Reimplemented in gtk.ToggleButton.ToggleButton.

gtk.Button.Button.this ( StockID  stockID,
bool  hideLabel = false 
)

Creates a new GtkButton containing the image and text from a stock item.

Some stock ids have preprocessor macros like GTK_STOCK_OK and GTK_STOCK_APPLY. If stock_id is unknown, then it will be treated as a mnemonic label (as for gtk_button_new_with_mnemonic()). stock_id: the name of the stock item Returns: a new GtkButton

gtk.Button.Button.this ( StockID  stockID,
void delegate(Button dlg,
bool  hideLabel = false 
)

gtk.Button.Button.this ( char[]  label,
void delegate(Button dlg,
bit  mnemonic = true 
)

gtk.Button.Button.this ( char[]  label,
void delegate(Button dlg,
char[]  action 
)


Member Function Documentation

void gtk.Button.Button.addOnActivate ( void delegate(Button dlg  ) 

void gtk.Button.Button.addOnClicked ( void delegate(Button dlg  ) 

void gtk.Button.Button.addOnEnter ( void delegate(Button dlg  ) 

void gtk.Button.Button.addOnLeave ( void delegate(Button dlg  ) 

void gtk.Button.Button.addOnPressed ( void delegate(Button dlg  ) 

void gtk.Button.Button.addOnReleased ( void delegate(Button dlg  ) 

void gtk.Button.Button.delegate ( Button   ) 

gtk.Button.Button.extern (  ) 

Reimplemented from gtk.Container.Container.

Reimplemented in gtk.ColorButton.ColorButton, gtk.FontButton.FontButton, gtk.RadioButton.RadioButton, and gtk.ToggleButton.ToggleButton.

gtk.Button.Button.extern (  ) 

Reimplemented from gtk.Container.Container.

Reimplemented in gtk.ColorButton.ColorButton, gtk.FontButton.FontButton, gtk.RadioButton.RadioButton, and gtk.ToggleButton.ToggleButton.

gtk.Button.Button.extern (  ) 

Reimplemented from gtk.Container.Container.

Reimplemented in gtk.ColorButton.ColorButton, gtk.FontButton.FontButton, gtk.RadioButton.RadioButton, and gtk.ToggleButton.ToggleButton.

gtk.Button.Button.extern (  ) 

Reimplemented from gtk.Container.Container.

Reimplemented in gtk.ColorButton.ColorButton, gtk.FontButton.FontButton, gtk.RadioButton.RadioButton, and gtk.ToggleButton.ToggleButton.

gtk.Button.Button.extern (  ) 

Reimplemented from gtk.Container.Container.

Reimplemented in gtk.ColorButton.ColorButton, gtk.FontButton.FontButton, gtk.RadioButton.RadioButton, and gtk.ToggleButton.ToggleButton.

gtk.Button.Button.extern (  ) 

Reimplemented from gtk.Container.Container.

Reimplemented in gtk.ColorButton.ColorButton, gtk.FontButton.FontButton, gtk.RadioButton.RadioButton, and gtk.ToggleButton.ToggleButton.

char [] gtk.Button.Button.getActionName (  ) 

GtkButton* gtk.Button.Button.getButtonStruct (  ) 

static IconSize gtk.Button.Button.getIconSize (  )  [static]

void* gtk.Button.Button.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.Bin.Bin.

Reimplemented in gtk.CheckButton.CheckButton, gtk.ColorButton.ColorButton, gtk.FontButton.FontButton, gtk.RadioButton.RadioButton, and gtk.ToggleButton.ToggleButton.

void gtk.Button.Button.setActionName ( char[]  action  ) 

static void gtk.Button.Button.setIconSize ( IconSize  iconSize  )  [static]


Member Data Documentation

char [] gtk.Button.Button.action [private]

An arbitrary string to be used by the application.

int [char[]] gtk.Button.Button.connectedSignals

Reimplemented from gtk.Container.Container.

Reimplemented in gtk.ColorButton.ColorButton, gtk.FontButton.FontButton, gtk.RadioButton.RadioButton, and gtk.ToggleButton.ToggleButton.

IconSize gtk.Button.Button.currentIconSize = IconSize.BUTTON [static, private]

GtkButton* gtk.Button.Button.gtkButton [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo