Gtk.Toggle_Tool_Button

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

A Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button is a Gtk.Tool_Item.Gtk_Tool_Item that contains a toggle button.

Use Gtk.Toggle_Tool_Button.Gtk_New to create a new GtkToggleToolButton.

# CSS nodes

GtkToggleToolButton has a single CSS node with name togglebutton.

"+"

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

"+"

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

"+"

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

"-"

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

"-"

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

"-"

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

Active_Property

Active_Property : constant Glib.Properties.Property_Boolean;

If the toggle tool button should be pressed in.

Cb_GObject_Void

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

Cb_Gtk_Toggle_Tool_Button_Void

type Cb_Gtk_Toggle_Tool_Button_Void is not null access procedure
  (Self : access Gtk_Toggle_Tool_Button_Record'Class);
Parameters
Self

Do_Set_Related_Action

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

Get_Action_Name

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

Get_Action_Target_Value

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

Get_Active

function Get_Active
   (Button : not null access Gtk_Toggle_Tool_Button_Record)
    return Boolean

Queries a Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button and returns its current state. Returns True if the toggle button is pressed in and False if it is raised. Since: gtk+ 2.4

Parameters
Button
Return Value

True if the toggle tool button is pressed in, False if not

Get_Related_Action

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

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Use_Action_Appearance

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

Gtk_New

procedure Gtk_New (Button : out Gtk_Toggle_Tool_Button)

Returns a new Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button Since: gtk+ 2.4 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button

Gtk_New_From_Stock

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

Creates a new Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button containing the image and text from a stock item. Some stock ids have preprocessor macros like GTK_STOCK_OK and GTK_STOCK_APPLY. It is an error if Stock_Id is not a name of a stock item. Since: gtk+ 2.4 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_Toggle_Tool_Button

type Gtk_Toggle_Tool_Button is access all Gtk_Toggle_Tool_Button_Record'Class;

Gtk_Toggle_Tool_Button_New

function Gtk_Toggle_Tool_Button_New return Gtk_Toggle_Tool_Button

Returns a new Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button Since: gtk+ 2.4

Return Value

Gtk_Toggle_Tool_Button_New_From_Stock

function Gtk_Toggle_Tool_Button_New_From_Stock
   (Stock_Id : UTF8_String) return Gtk_Toggle_Tool_Button

Creates a new Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button containing the image and text from a stock item. Some stock ids have preprocessor macros like GTK_STOCK_OK and GTK_STOCK_APPLY. It is an error if Stock_Id is not a name of a stock item. Since: gtk+ 2.4

Parameters
Stock_Id

the name of the stock item

Return Value

Gtk_Toggle_Tool_Button_Record

type Gtk_Toggle_Tool_Button_Record is new Gtk_Tool_Button_Record with null record;

Implements_Gtk_Actionable

package Implements_Gtk_Actionable is new Glib.Types.Implements
  (Gtk.Actionable.Gtk_Actionable, Gtk_Toggle_Tool_Button_Record, Gtk_Toggle_Tool_Button);

Implements_Gtk_Activatable

package Implements_Gtk_Activatable is new Glib.Types.Implements
  (Gtk.Activatable.Gtk_Activatable, Gtk_Toggle_Tool_Button_Record, Gtk_Toggle_Tool_Button);

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Toggle_Tool_Button_Record, Gtk_Toggle_Tool_Button);

Initialize

procedure Initialize
   (Button : not null access Gtk_Toggle_Tool_Button_Record'Class)

Returns a new Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button Since: gtk+ 2.4 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Button

Initialize_From_Stock

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

Creates a new Gtk.Toggle_Tool_Button.Gtk_Toggle_Tool_Button containing the image and text from a stock item. Some stock ids have preprocessor macros like GTK_STOCK_OK and GTK_STOCK_APPLY. It is an error if Stock_Id is not a name of a stock item. Since: gtk+ 2.4 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

On_Toggled

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

Emitted whenever the toggle tool button changes state.

Parameters
Self
Call
Slot
After

On_Toggled

procedure On_Toggled
   (Self  : not null access Gtk_Toggle_Tool_Button_Record;
    Call  : Cb_Gtk_Toggle_Tool_Button_Void;
    After : Boolean := False)

Emitted whenever the toggle tool button changes state.

Parameters
Self
Call
After

Set_Action_Name

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

Set_Action_Target_Value

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

Set_Active

procedure Set_Active
   (Button    : not null access Gtk_Toggle_Tool_Button_Record;
    Is_Active : Boolean)

Sets the status of the toggle tool button. Set to True if you want the GtkToggleButton to be "pressed in", and False to raise it. This action causes the toggled signal to be emitted. Since: gtk+ 2.4

Parameters
Button
Is_Active

whether Button should be active

Set_Detailed_Action_Name

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

Set_Related_Action

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

Set_Use_Action_Appearance

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

Signal_Toggled

Signal_Toggled : constant Glib.Signal_Name := "toggled";

Emitted whenever the toggle tool button changes state.

Sync_Action_Properties

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