-
public void get_alignment (out float xalign, out float yalign)
Gets the alignment of the child in the button.
-
public bool get_focus_on_click ()
Returns whether the button grabs focus when it is clicked with the mouse. See
set_focus_on_click.
-
public weak Widget get_image ()
Gets the widget that is currenty set as the image of button. This may have been
explicitly set by set_image or constructed by
Button.from_stock.
-
public PositionType get_image_position ()
Gets the position of the image relative to the text inside the button.
-
public unowned string get_label ()
Fetches the text from the label of the button, as set by
set_label. If the label text has not been set the return value will be
null. This will be the case if you create an empty button with
Button to use as a container.
-
public ReliefStyle get_relief ()
-
public bool get_use_stock ()
Returns whether the button label is a stock item.
-
public bool get_use_underline ()
Returns whether an embedded underline in the button label indicates a mnemonic. See
set_use_underline.
-
public void set_alignment (float xalign, float yalign)
Sets the alignment of the child. This property has no effect unless the child is a
Misc or a GtkAligment.
-
public void set_focus_on_click (bool focus_on_click)
Sets whether the button will grab focus when it is clicked with the mouse. Making mouse clicks not
grab focus is useful in places like toolbars where you don't want the keyboard focus removed from the main area of the application.
-
public void set_image (Widget image)
Set the image of button to the given widget. Note that it depends on the
GtkSettings:gtk-button-images setting whether the image will be displayed or not, you don't have to call
gtk_widget_show on image yourself.
-
public void set_image_position (PositionType position)
Sets the position of the image relative to the text inside the button.
-
public void set_label (string label)
Sets the text of the label of the button to str. This text is also used to select the
stock item if set_use_stock is used.
-
public void set_relief (ReliefStyle newstyle)
-
public void set_use_stock (bool use_stock)
If true, the label set on the button is used as a stock id to select the stock item for
the button.
-
public void set_use_underline (bool 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.