Gtk.Separator_Tool_Item

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

A Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item is a Gtk.Tool_Item.Gtk_Tool_Item that separates groups of other Gtk_Tool_Items. Depending on the theme, a Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item will often look like a vertical line on horizontally docked toolbars.

If the Gtk.Toolbar.Gtk_Toolbar child property "expand" is True and the property Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item:draw is False, a Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item will act as a "spring" that forces other items to the ends of the toolbar.

Use Gtk.Separator_Tool_Item.Gtk_New to create a new Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item.

# CSS nodes

GtkSeparatorToolItem has a single CSS node with name separator.

<group>Menus and Toolbars</group>

"+"

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

"+"

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

"-"

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

"-"

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

Do_Set_Related_Action

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

Draw_Property

Draw_Property : constant Glib.Properties.Property_Boolean;

Get_Draw

function Get_Draw
   (Item : not null access Gtk_Separator_Tool_Item_Record) return Boolean

Returns whether Item is drawn as a line, or just blank. See Gtk.Separator_Tool_Item.Set_Draw. Since: gtk+ 2.4

Parameters
Item
Return Value

True if Item is drawn as a line, or just blank.

Get_Related_Action

function Get_Related_Action
   (Self : not null access Gtk_Separator_Tool_Item_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_Separator_Tool_Item_Record) return Boolean
Parameters
Self
Return Value

Gtk_New

procedure Gtk_New (Item : out Gtk_Separator_Tool_Item)

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

Parameters
Item

Gtk_Separator_Tool_Item

type Gtk_Separator_Tool_Item is access all Gtk_Separator_Tool_Item_Record'Class;

Gtk_Separator_Tool_Item_New

function Gtk_Separator_Tool_Item_New return Gtk_Separator_Tool_Item

Create a new Gtk.Separator_Tool_Item.Gtk_Separator_Tool_Item Since: gtk+ 2.4

Return Value

Gtk_Separator_Tool_Item_Record

type Gtk_Separator_Tool_Item_Record is new Gtk_Tool_Item_Record with null record;

Implements_Gtk_Activatable

package Implements_Gtk_Activatable is new Glib.Types.Implements
  (Gtk.Activatable.Gtk_Activatable, Gtk_Separator_Tool_Item_Record, Gtk_Separator_Tool_Item);

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Separator_Tool_Item_Record, Gtk_Separator_Tool_Item);

Initialize

procedure Initialize
   (Item : not null access Gtk_Separator_Tool_Item_Record'Class)

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

Parameters
Item

Set_Draw

procedure Set_Draw
   (Item : not null access Gtk_Separator_Tool_Item_Record;
    Draw : Boolean)

Whether Item is drawn as a vertical line, or just blank. Setting this to False along with Gtk.Tool_Item.Set_Expand is useful to create an item that forces following items to the end of the toolbar. Since: gtk+ 2.4

Parameters
Item
Draw

whether Item is drawn as a vertical line

Set_Related_Action

procedure Set_Related_Action
   (Self   : not null access Gtk_Separator_Tool_Item_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_Separator_Tool_Item_Record;
    Use_Appearance : Boolean)
Parameters
Self
Use_Appearance

Sync_Action_Properties

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