gtkButtonNew(show = TRUE)
gtkButtonNewWithLabel(label, show = TRUE)
gtkButtonNewWithMnemonic(label, show = TRUE)
gtkButtonNewFromStock(stock.id, show = TRUE)
gtkButtonPressed(object)
gtkButtonReleased(object)
gtkButtonClicked(object)
gtkButtonEnter(object)
gtkButtonLeave(object)
gtkButtonSetRelief(object, newstyle)
gtkButtonGetRelief(object)
gtkButtonGetLabel(object)
gtkButtonSetLabel(object, label)
gtkButtonGetUseStock(object)
gtkButtonSetUseStock(object, use.stock)
gtkButtonGetUseUnderline(object)
gtkButtonSetUseUnderline(object, use.underline)
gtkButtonSetFocusOnClick(object, focus.on.click)
gtkButtonGetFocusOnClick(object)
gtkButtonSetAlignment(object, xalign, yalign)
gtkButtonGetAlignment(object)
gtkButtonSetImage(object, image)
gtkButtonGetImage(object)
gtkButtonSetImagePosition(object, position)
gtkButtonGetImagePosition(object)
gtkButton(label, stock.id, show = TRUE)
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkButton +----GtkToggleButton +----GtkColorButton +----GtkFontButton +----GtkLinkButton +----GtkOptionMenu +----GtkScaleButton
GtkBuildable
and GtkActivatable
.GtkButton
widget is generally used to attach a function to that
is called when the button is pressed. The various signals and how to use
them are outlined below. The GtkButton
widget can hold any valid child widget. That is it can
hold most any other standard GtkWidget
. The most commonly used child is
the GtkLabel
.gtkButton
is the result of collapsing the constructors of GtkButton
(gtkButtonNew
, gtkButtonNewWithLabel
, gtkButtonNewFromStock
, gtkButtonNewWithMnemonic
) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.activate(widget, user.data)
gtkButtonClicked
signal. widget
user.data
clicked(button, user.data)
button
user.data
enter(button, user.data)
button
user.data
leave(button, user.data)
button
user.data
pressed(button, user.data)
button
user.data
released(button, user.data)
button
user.data
focus-on-click
[logical : Read / Write]image
[GtkWidget
: * : Read / Write]image-position
[GtkPositionType
: Read / Write]label
[character : * : Read / Write / Construct]relief
[GtkReliefStyle
: Read / Write]use-stock
[logical : Read / Write / Construct]use-underline
[logical : Read / Write / Construct]xalign
[numeric : Read / Write]GtkMisc
or GtkAlignment
, this property
can be used to control it's horizontal alignment. 0.0 is left aligned,
1.0 is right aligned.
Allowed values: [0,1] Default value: 0.5 Since 2.4 yalign
[numeric : Read / Write]GtkMisc
or GtkAlignment
, this property
can be used to control it's vertical alignment. 0.0 is top aligned,
1.0 is bottom aligned.
Allowed values: [0,1] Default value: 0.5 Since 2.4 child-displacement-x
[integer : Read]child-displacement-y
[integer : Read]default-border
[GtkBorder
: * : Read]gtkWidgetGrabDefault
. default-outside-border
[GtkBorder
: * : Read]gtkWidgetGrabDefault
. displace-focus
[logical : Read]image-spacing
[integer : Read]inner-border
[GtkBorder
: * : Read]