Button Class Reference

Inheritance diagram for Button:

Bin ToggleButton CheckButton OptionMenu RadioButton List of all members.

Detailed Description

A Button.


Public Member Functions

 this ()
 creates a new button

 this (char[] label)
 creates a new button with a label

 this (Stock stockID)
 Creates a bitton from the stock of predefined buttons.

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

char[] getLabel ()
 Gets the label text for this button.

void setRelief (ReliefStyle newstyle)
 Sets the relief style of the edges for this button.

void gtk_button_pressed (GtkButton *button)
 not implemented use Dispatcher to listen to events

void gtk_button_released (GtkButton *button)
 not implemented use Dispatcher to listen to events

void gtk_button_clicked (GtkButton *button)
 not implemented use Dispatcher to listen to events

void gtk_button_enter (GtkButton *button)
 not implemented use Dispatcher to listen to events

void gtk_button_leave (GtkButton *button)
 not implemented use Dispatcher to listen to events

ReliefStyle getRelief ()
 Gets the current relief style.

void setLabel (char[] 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.


Member Function Documentation

char [] Button.getLabel  ) 
 

Gets the label text for this button.

Returns:
the label text for this button

ReliefStyle Button.getRelief  ) 
 

Gets the current relief style.

Returns:
the current relief style

bit Button.getUseStock  ) 
 

Returns whether the button label is a stock item.

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

bit Button.getUseUnderline  ) 
 

Returns whether an embedded underline in the button label indicates a mnemonic.

See also:
gtk_button_set_use_underline().
Returns:

void Button.gtk_button_clicked GtkButton *  button  ) 
 

not implemented use Dispatcher to listen to events

void Button.gtk_button_enter GtkButton *  button  ) 
 

not implemented use Dispatcher to listen to events

void Button.gtk_button_leave GtkButton *  button  ) 
 

not implemented use Dispatcher to listen to events

void Button.gtk_button_pressed GtkButton *  button  ) 
 

not implemented use Dispatcher to listen to events

void Button.gtk_button_released GtkButton *  button  ) 
 

not implemented use Dispatcher to listen to events

void Button.setLabel char[]  label  ) 
 

Sets the label text for this buttons.

Parameters:
label the new label text

void Button.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.

void Button.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 

void Button.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 

Button.this Stock  stockID,
bit  hideLabel
 

Creates a bitton from the stock of predefined buttons.

Parameters:
stockID 
hideLabel 

Button.this Stock  stockID  ) 
 

Creates a bitton from the stock of predefined buttons.

Button.this char[]  label  ) 
 

creates a new button with a label

Reimplemented in CheckButton, and ToggleButton.

Button.this  ) 
 

creates a new button

Reimplemented in CheckButton, OptionMenu, and ToggleButton.


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