Gtk.Button

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

The Gtk.Button.Gtk_Button widget is generally used to trigger a callback function that is called when the button is pressed. The various signals and how to use them are outlined below.

The Gtk.Button.Gtk_Button widget can hold any valid child widget. That is, it can hold almost any other standard Gtk.Widget.Gtk_Widget. The most commonly used child is the Gtk.Label.Gtk_Label.

# CSS nodes

GtkButton has a single CSS node with name button. The node will get the style classes .image-button or .text-button, if the content is just an image or label, respectively. It may also receive the .flat style class.

Other style classes that are commonly used with GtkButton include .suggested-action and .destructive-action. In special cases, buttons can be made round by adding the .circular style class.

Button-like widgets like Gtk.Toggle_Button.Gtk_Toggle_Button, Gtk.Menu_Button.Gtk_Menu_Button, Gtk.Volume_Button.Gtk_Volume_Button, Gtk.Lock_Button.Gtk_Lock_Button, Gtk.Color_Button.Gtk_Color_Button, Gtk.Font_Button.Gtk_Font_Button or Gtk.File_Chooser_Button.Gtk_File_Chooser_Button use style classes such as .toggle, .popup, .scale, .lock, .color, .font, .file to differentiate themselves from a plain GtkButton.

<screenshot>gtk-button</screenshot> <group>Buttons and Toggles</group> <testgtk>create_buttons.adb</testgtk>

"+"

function "+"
  (Widget : access Gtk_Button_Record'Class)
return Gtk.Actionable.Gtk_Actionable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Button_Record'Class)
return Gtk.Activatable.Gtk_Activatable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Button_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Actionable.Gtk_Actionable)
return Gtk_Button
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Activatable.Gtk_Activatable)
return Gtk_Button
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Button
Parameters
Interf
Return Value

Always_Show_Image_Property

Always_Show_Image_Property : constant Glib.Properties.Property_Boolean;

If True, the button will ignore the Gtk.Settings.Gtk_Settings:gtk-button-images setting and always show the image, if available.

Use this property if the button would be useless or hard to use without the image.

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class);
Parameters
Self

Cb_Gtk_Button_Void

type Cb_Gtk_Button_Void is not null access procedure (Self : access Gtk_Button_Record'Class);
Parameters
Self

Clicked

procedure Clicked (Button : not null access Gtk_Button_Record)

Emits a Gtk.Button.Gtk_Button::clicked signal to the given Gtk.Button.Gtk_Button.

Parameters
Button

Do_Set_Related_Action

procedure Do_Set_Related_Action
   (Self   : not null access Gtk_Button_Record;
    Action : not null access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action

Enter

procedure Enter (Button : not null access Gtk_Button_Record)

Emits a Gtk.Button.Gtk_Button::enter signal to the given Gtk.Button.Gtk_Button. Deprecated since 2.20, 1

Parameters
Button

Get_Action_Name

function Get_Action_Name
   (Self : not null access Gtk_Button_Record) return UTF8_String
Parameters
Self
Return Value

Get_Action_Target_Value

function Get_Action_Target_Value
   (Self : not null access Gtk_Button_Record)
    return Glib.Variant.Gvariant
Parameters
Self
Return Value

Get_Alignment

procedure Get_Alignment
   (Button : not null access Gtk_Button_Record;
    Xalign : out Gfloat;
    Yalign : out Gfloat)

Gets the alignment of the child in the button. Since: gtk+ 2.4 Deprecated since 3.14, 1

Parameters
Button
Xalign

return location for horizontal alignment

Yalign

return location for vertical alignment

Get_Always_Show_Image

function Get_Always_Show_Image
   (Button : not null access Gtk_Button_Record) return Boolean

Returns whether the button will ignore the Gtk.Settings.Gtk_Settings:gtk-button-images setting and always show the image, if available. Since: gtk+ 3.6

Parameters
Button
Return Value

True if the button will always show the image

Get_Event_Window

function Get_Event_Window
   (Button : not null access Gtk_Button_Record) return Gdk.Gdk_Window

Returns the button's event window if it is realized, null otherwise. This function should be rarely needed. Since: gtk+ 2.22

Parameters
Button
Return Value

Button's event window.

Get_Focus_On_Click

function Get_Focus_On_Click
   (Button : not null access Gtk_Button_Record) return Boolean

Returns whether the button grabs focus when it is clicked with the mouse. See Gtk.Button.Set_Focus_On_Click. Since: gtk+ 2.4 Deprecated since 3.20, 1

Parameters
Button
Return Value

True if the button grabs focus when it is clicked with the mouse.

Get_Image

function Get_Image
   (Button : not null access Gtk_Button_Record)
    return Gtk.Widget.Gtk_Widget

Gets the widget that is currenty set as the image of Button. This may have been explicitly set by Gtk.Button.Set_Image or constructed by Gtk.Button.Gtk_New_From_Stock. Since: gtk+ 2.6

Parameters
Button
Return Value

a Gtk.Widget.Gtk_Widget or null in case there is no image

Get_Image_Position

function Get_Image_Position
   (Button : not null access Gtk_Button_Record)
    return Gtk.Enums.Gtk_Position_Type

Gets the position of the image relative to the text inside the button. Since: gtk+ 2.10

Parameters
Button
Return Value

the position

Get_Label

function Get_Label
   (Button : not null access Gtk_Button_Record) return UTF8_String

Fetches the text from the label of the button, as set by Gtk.Button.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 gtk_button_new to use as a container.

Parameters
Button
Return Value

The text of the label widget. This string is owned by the widget and must not be modified or freed.

Get_Related_Action

function Get_Related_Action
   (Self : not null access Gtk_Button_Record)
    return Gtk.Action.Gtk_Action
Parameters
Self
Return Value

Get_Relief

function Get_Relief
   (Button : not null access Gtk_Button_Record)
    return Gtk.Enums.Gtk_Relief_Style

Returns the current relief style of the given Gtk.Button.Gtk_Button.

Parameters
Button
Return Value

The current Gtk.Enums.Gtk_Relief_Style

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Use_Action_Appearance

function Get_Use_Action_Appearance
   (Self : not null access Gtk_Button_Record) return Boolean
Parameters
Self
Return Value

Get_Use_Stock

function Get_Use_Stock
   (Button : not null access Gtk_Button_Record) return Boolean

Returns whether the button label is a stock item. Deprecated since 3.10, 1

Parameters
Button
Return Value

True if the button label is used to select a stock item instead of being used directly as the label text.

Get_Use_Underline

function Get_Use_Underline
   (Button : not null access Gtk_Button_Record) return Boolean

Returns whether an embedded underline in the button label indicates a mnemonic. See gtk_button_set_use_underline ().

Parameters
Button
Return Value

True if an embedded underline in the button label indicates the mnemonic accelerator keys.

Gtk_Button

type Gtk_Button is access all Gtk_Button_Record'Class;

Gtk_Button_New_From_Icon_Name

function Gtk_Button_New_From_Icon_Name
   (Icon_Name : UTF8_String := "";
    Size      : Gtk.Enums.Gtk_Icon_Size) return Gtk_Button

Creates a new button containing an icon from the current icon theme. If the icon name isn't known, a "broken image" icon will be displayed instead. If the current icon theme is changed, the icon will be updated appropriately. This function is a convenience wrapper around gtk_button_new and Gtk.Button.Set_Image. Since: gtk+ 3.10

Parameters
Icon_Name

an icon name or null

Size

an icon size (Gtk.Enums.Gtk_Icon_Size)

Return Value

Gtk_Button_New_From_Stock

function Gtk_Button_New_From_Stock
   (Stock_Id : UTF8_String) return Gtk_Button

Creates a new Gtk.Button.Gtk_Button containing the image and text from a [stock item][gtkstock]. 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.Gtk_New_With_Mnemonic).

Parameters
Stock_Id

the name of the stock item

Return Value

Gtk_Button_New_With_Label

function Gtk_Button_New_With_Label
   (Label : UTF8_String := "") return Gtk_Button

Creates a Gtk.Button.Gtk_Button widget with a Gtk.Label.Gtk_Label child containing the given text.

Parameters
Label

The text you want the Gtk.Label.Gtk_Label to hold.

Return Value

Gtk_Button_New_With_Mnemonic

function Gtk_Button_New_With_Mnemonic
   (Label : UTF8_String) return Gtk_Button

Creates a new Gtk.Button.Gtk_Button 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.

Parameters
Label

The text of the button, with an underscore in front of the mnemonic character

Return Value

Gtk_Button_Record

type Gtk_Button_Record is new Gtk_Bin_Record with null record;

Gtk_New

procedure Gtk_New (Button : out Gtk_Button; Label : UTF8_String := "")

Creates a Gtk.Button.Gtk_Button widget with a Gtk.Label.Gtk_Label child containing the given text. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button
Label

The text you want the Gtk.Label.Gtk_Label to hold.

Gtk_New_From_Icon_Name

procedure Gtk_New_From_Icon_Name
   (Button    : out Gtk_Button;
    Icon_Name : UTF8_String := "";
    Size      : Gtk.Enums.Gtk_Icon_Size)

Creates a new button containing an icon from the current icon theme. If the icon name isn't known, a "broken image" icon will be displayed instead. If the current icon theme is changed, the icon will be updated appropriately. This function is a convenience wrapper around gtk_button_new and Gtk.Button.Set_Image. Since: gtk+ 3.10 Initialize_From_Icon_Name does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button
Icon_Name

an icon name or null

Size

an icon size (Gtk.Enums.Gtk_Icon_Size)

Gtk_New_From_Stock

procedure Gtk_New_From_Stock
   (Button   : out Gtk_Button;
    Stock_Id : UTF8_String)

Creates a new Gtk.Button.Gtk_Button containing the image and text from a [stock item][gtkstock]. 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.Gtk_New_With_Mnemonic). Initialize_From_Stock does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button
Stock_Id

the name of the stock item

Gtk_New_With_Mnemonic

procedure Gtk_New_With_Mnemonic
   (Button : out Gtk_Button;
    Label  : UTF8_String)

Creates a new Gtk.Button.Gtk_Button 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. Initialize_With_Mnemonic does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button
Label

The text of the button, with an underscore in front of the mnemonic character

Image_Position_Property

Image_Position_Property : constant Gtk.Enums.Property_Gtk_Position_Type;

The position of the image relative to the text inside the button.

Image_Property

Image_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Widget.Gtk_Widget The child widget to appear next to the button text.

Implements_Gtk_Actionable

package Implements_Gtk_Actionable is new Glib.Types.Implements
  (Gtk.Actionable.Gtk_Actionable, Gtk_Button_Record, Gtk_Button);

Implements_Gtk_Activatable

package Implements_Gtk_Activatable is new Glib.Types.Implements
  (Gtk.Activatable.Gtk_Activatable, Gtk_Button_Record, Gtk_Button);

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Button_Record, Gtk_Button);

Initialize

procedure Initialize
   (Button : not null access Gtk_Button_Record'Class;
    Label  : UTF8_String := "")

Creates a Gtk.Button.Gtk_Button widget with a Gtk.Label.Gtk_Label child containing the given text. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button
Label

The text you want the Gtk.Label.Gtk_Label to hold.

Initialize_From_Icon_Name

procedure Initialize_From_Icon_Name
   (Button    : not null access Gtk_Button_Record'Class;
    Icon_Name : UTF8_String := "";
    Size      : Gtk.Enums.Gtk_Icon_Size)

Creates a new button containing an icon from the current icon theme. If the icon name isn't known, a "broken image" icon will be displayed instead. If the current icon theme is changed, the icon will be updated appropriately. This function is a convenience wrapper around gtk_button_new and Gtk.Button.Set_Image. Since: gtk+ 3.10 Initialize_From_Icon_Name does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button
Icon_Name

an icon name or null

Size

an icon size (Gtk.Enums.Gtk_Icon_Size)

Initialize_From_Stock

procedure Initialize_From_Stock
   (Button   : not null access Gtk_Button_Record'Class;
    Stock_Id : UTF8_String)

Creates a new Gtk.Button.Gtk_Button containing the image and text from a [stock item][gtkstock]. 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.Gtk_New_With_Mnemonic). Initialize_From_Stock does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button
Stock_Id

the name of the stock item

Initialize_With_Mnemonic

procedure Initialize_With_Mnemonic
   (Button : not null access Gtk_Button_Record'Class;
    Label  : UTF8_String)

Creates a new Gtk.Button.Gtk_Button 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. Initialize_With_Mnemonic does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button
Label

The text of the button, with an underscore in front of the mnemonic character

Label_Property

Label_Property : constant Glib.Properties.Property_String;

Leave

procedure Leave (Button : not null access Gtk_Button_Record)

Emits a Gtk.Button.Gtk_Button::leave signal to the given Gtk.Button.Gtk_Button. Deprecated since 2.20, 1

Parameters
Button

On_Activate

procedure On_Activate
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

The ::activate signal on GtkButton is an action signal and emitting it causes the button to animate press then release. Applications should never connect to this signal, but use the Gtk.Button.Gtk_Button::clicked signal.

Parameters
Self
Call
Slot
After

On_Activate

procedure On_Activate
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_Gtk_Button_Void;
    After : Boolean := False)

The ::activate signal on GtkButton is an action signal and emitting it causes the button to animate press then release. Applications should never connect to this signal, but use the Gtk.Button.Gtk_Button::clicked signal.

Parameters
Self
Call
After

On_Clicked

procedure On_Clicked
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

Emitted when the button has been activated (pressed and released).

Parameters
Self
Call
Slot
After

On_Clicked

procedure On_Clicked
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_Gtk_Button_Void;
    After : Boolean := False)

Emitted when the button has been activated (pressed and released).

Parameters
Self
Call
After

On_Enter

procedure On_Enter
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

Emitted when the pointer enters the button.

Parameters
Self
Call
Slot
After

On_Enter

procedure On_Enter
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_Gtk_Button_Void;
    After : Boolean := False)

Emitted when the pointer enters the button.

Parameters
Self
Call
After

On_Leave

procedure On_Leave
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

Emitted when the pointer leaves the button.

Parameters
Self
Call
Slot
After

On_Leave

procedure On_Leave
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_Gtk_Button_Void;
    After : Boolean := False)

Emitted when the pointer leaves the button.

Parameters
Self
Call
After

On_Pressed

procedure On_Pressed
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

Emitted when the button is pressed.

Parameters
Self
Call
Slot
After

On_Pressed

procedure On_Pressed
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_Gtk_Button_Void;
    After : Boolean := False)

Emitted when the button is pressed.

Parameters
Self
Call
After

On_Released

procedure On_Released
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

Emitted when the button is released.

Parameters
Self
Call
Slot
After

On_Released

procedure On_Released
   (Self  : not null access Gtk_Button_Record;
    Call  : Cb_Gtk_Button_Void;
    After : Boolean := False)

Emitted when the button is released.

Parameters
Self
Call
After

Pressed

procedure Pressed (Button : not null access Gtk_Button_Record)

Emits a Gtk.Button.Gtk_Button::pressed signal to the given Gtk.Button.Gtk_Button. Deprecated since 2.20, 1

Parameters
Button

Released

procedure Released (Button : not null access Gtk_Button_Record)

Emits a Gtk.Button.Gtk_Button::released signal to the given Gtk.Button.Gtk_Button. Deprecated since 2.20, 1

Parameters
Button

Relief_Property

Relief_Property : constant Gtk.Enums.Property_Gtk_Relief_Style;

Set_Action_Name

procedure Set_Action_Name
   (Self        : not null access Gtk_Button_Record;
    Action_Name : UTF8_String := "")
Parameters
Self
Action_Name

Set_Action_Target_Value

procedure Set_Action_Target_Value
   (Self         : not null access Gtk_Button_Record;
    Target_Value : Glib.Variant.Gvariant)
Parameters
Self
Target_Value

Set_Alignment

procedure Set_Alignment
   (Button : not null access Gtk_Button_Record;
    Xalign : Gfloat;
    Yalign : Gfloat)

Sets the alignment of the child. This property has no effect unless the child is a Gtk.Misc.Gtk_Misc or a Gtk.Alignment.Gtk_Alignment. Since: gtk+ 2.4 Deprecated since 3.14, 1

Parameters
Button
Xalign

the horizontal position of the child, 0.0 is left aligned, 1.0 is right aligned

Yalign

the vertical position of the child, 0.0 is top aligned, 1.0 is bottom aligned

Set_Always_Show_Image

procedure Set_Always_Show_Image
   (Button      : not null access Gtk_Button_Record;
    Always_Show : Boolean)

If True, the button will ignore the Gtk.Settings.Gtk_Settings:gtk-button-images setting and always show the image, if available. Use this property if the button would be useless or hard to use without the image. Since: gtk+ 3.6

Parameters
Button
Always_Show

True if the menuitem should always show the image

Set_Detailed_Action_Name

procedure Set_Detailed_Action_Name
   (Self                 : not null access Gtk_Button_Record;
    Detailed_Action_Name : UTF8_String)
Parameters
Self
Detailed_Action_Name

Set_Focus_On_Click

procedure Set_Focus_On_Click
   (Button         : not null access Gtk_Button_Record;
    Focus_On_Click : Boolean)

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. Since: gtk+ 2.4 Deprecated since 3.20, 1

Parameters
Button
Focus_On_Click

whether the button grabs focus when clicked with the mouse

Set_Image

procedure Set_Image
   (Button : not null access Gtk_Button_Record;
    Image  : access Gtk.Widget.Gtk_Widget_Record'Class)

Set the image of Button to the given widget. The image will be displayed if the label text is null or if Gtk.Button.Gtk_Button:always-show-image is True. You don't have to call Gtk.Widget.Show on Image yourself. Since: gtk+ 2.6

Parameters
Button
Image

a widget to set as the image for the button, or null to unset

Set_Image_Position

procedure Set_Image_Position
   (Button   : not null access Gtk_Button_Record;
    Position : Gtk.Enums.Gtk_Position_Type)

Sets the position of the image relative to the text inside the button. Since: gtk+ 2.10

Parameters
Button
Position

the position

Set_Label

procedure Set_Label
   (Button : not null access Gtk_Button_Record;
    Label  : UTF8_String)

Sets the text of the label of the button to Str. This text is also used to select the stock item if Gtk.Button.Set_Use_Stock is used. This will also clear any previously set labels.

Parameters
Button
Label

a string

Set_Related_Action

procedure Set_Related_Action
   (Self   : not null access Gtk_Button_Record;
    Action : not null access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action

Set_Relief

procedure Set_Relief
   (Button : not null access Gtk_Button_Record;
    Relief : Gtk.Enums.Gtk_Relief_Style)

Sets the relief style of the edges of the given Gtk.Button.Gtk_Button widget. Two styles exist, Gtk.Enums.Relief_Normal and Gtk.Enums.Relief_None. The default style is, as one can guess, Gtk.Enums.Relief_Normal. The deprecated value Gtk.Enums.Relief_Half behaves the same as Gtk.Enums.Relief_Normal.

Parameters
Button
Relief

The GtkReliefStyle as described above

Set_Use_Action_Appearance

procedure Set_Use_Action_Appearance
   (Self           : not null access Gtk_Button_Record;
    Use_Appearance : Boolean)
Parameters
Self
Use_Appearance

Set_Use_Stock

procedure Set_Use_Stock
   (Button    : not null access Gtk_Button_Record;
    Use_Stock : Boolean)

If True, the label set on the button is used as a stock id to select the stock item for the button. Deprecated since 3.10, 1

Parameters
Button
Use_Stock

True if the button should use a stock item

Set_Use_Underline

procedure Set_Use_Underline
   (Button        : not null access Gtk_Button_Record;
    Use_Underline : Boolean)

If true, an underline in the text of the button label indicates the next character should be used for the mnemonic accelerator key.

Parameters
Button
Use_Underline

True if underlines in the text indicate mnemonics

Signal_Activate

Signal_Activate : constant Glib.Signal_Name := "activate";

The ::activate signal on GtkButton is an action signal and emitting it causes the button to animate press then release. Applications should never connect to this signal, but use the Gtk.Button.Gtk_Button::clicked signal.

Signal_Clicked

Signal_Clicked : constant Glib.Signal_Name := "clicked";

Emitted when the button has been activated (pressed and released).

Signal_Enter

Signal_Enter : constant Glib.Signal_Name := "enter";

Emitted when the pointer enters the button.

Signal_Leave

Signal_Leave : constant Glib.Signal_Name := "leave";

Emitted when the pointer leaves the button.

Signal_Pressed

Signal_Pressed : constant Glib.Signal_Name := "pressed";

Emitted when the button is pressed.

Signal_Released

Signal_Released : constant Glib.Signal_Name := "released";

Emitted when the button is released.

Sync_Action_Properties

procedure Sync_Action_Properties
   (Self   : not null access Gtk_Button_Record;
    Action : access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action

Use_Stock_Property

Use_Stock_Property : constant Glib.Properties.Property_Boolean;

Use_Underline_Property

Use_Underline_Property : constant Glib.Properties.Property_Boolean;

Xalign_Property

Xalign_Property : constant Glib.Properties.Property_Float;

If the child of the button is a Gtk.Misc.Gtk_Misc or Gtk.Alignment.Gtk_Alignment, this property can be used to control its horizontal alignment. 0.0 is left aligned, 1.0 is right aligned.

Yalign_Property

Yalign_Property : constant Glib.Properties.Property_Float;

If the child of the button is a Gtk.Misc.Gtk_Misc or Gtk.Alignment.Gtk_Alignment, this property can be used to control its vertical alignment. 0.0 is top aligned, 1.0 is bottom aligned.