Gtk.Tool_Item_Group

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

A Gtk.Tool_Item_Group.Gtk_Tool_Item_Group is used together with Gtk.Tool_Palette.Gtk_Tool_Palette to add Gtk_Tool_Items to a palette like container with different categories and drag and drop support.

# CSS nodes

GtkToolItemGroup has a single CSS node named toolitemgroup.

"+"

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

"+"

function "+"
  (Widget : access Gtk_Tool_Item_Group_Record'Class)
return Gtk.Tool_Shell.Gtk_Tool_Shell
Parameters
Widget
Return Value

"-"

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

"-"

function "-"
  (Interf : Gtk.Tool_Shell.Gtk_Tool_Shell)
return Gtk_Tool_Item_Group
Parameters
Interf
Return Value

Collapsed_Property

Collapsed_Property : constant Glib.Properties.Property_Boolean;

Ellipsize_Property

Ellipsize_Property : constant Pango.Layout.Property_Pango_Ellipsize_Mode;

Type: Pango.Layout.Pango_Ellipsize_Mode

Get_Collapsed

function Get_Collapsed
   (Self : not null access Gtk_Tool_Item_Group_Record) return Boolean

Gets whether Group is collapsed or expanded. Since: gtk+ 2.20

Parameters
Self
Return Value

True if Group is collapsed, False if it is expanded

Get_Drop_Item

function Get_Drop_Item
   (Self : not null access Gtk_Tool_Item_Group_Record;
    X    : Glib.Gint;
    Y    : Glib.Gint) return Gtk.Tool_Item.Gtk_Tool_Item

Gets the tool item at position (x, y). Since: gtk+ 2.20

Parameters
Self
X

the x position

Y

the y position

Return Value

the Gtk.Tool_Item.Gtk_Tool_Item at position (x, y)

Get_Ellipsize

function Get_Ellipsize
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Pango.Layout.Pango_Ellipsize_Mode

Gets the ellipsization mode of Group. Since: gtk+ 2.20

Parameters
Self
Return Value

the Pango.Layout.Pango_Ellipsize_Mode of Group

Get_Ellipsize_Mode

function Get_Ellipsize_Mode
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Pango.Layout.Pango_Ellipsize_Mode
Parameters
Self
Return Value

Get_Header_Relief

function Get_Header_Relief
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Gtk.Enums.Gtk_Relief_Style

Gets the relief mode of the header button of Group. Since: gtk+ 2.20

Parameters
Self
Return Value

the Gtk.Enums.Gtk_Relief_Style

Get_Icon_Size

function Get_Icon_Size
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Gtk.Enums.Gtk_Icon_Size
Parameters
Self
Return Value

Get_Item_Position

function Get_Item_Position
   (Self : not null access Gtk_Tool_Item_Group_Record;
    Item : not null access Gtk.Tool_Item.Gtk_Tool_Item_Record'Class)
    return Glib.Gint

Gets the position of Item in Group as index. Since: gtk+ 2.20

Parameters
Self
Item

a Gtk.Tool_Item.Gtk_Tool_Item

Return Value

the index of Item in Group or -1 if Item is no child of Group

Get_Label

function Get_Label
   (Self : not null access Gtk_Tool_Item_Group_Record) return UTF8_String

Gets the label of Group. Since: gtk+ 2.20

Parameters
Self
Return Value

the label of Group. The label is an internal string of Group and must not be modified. Note that null is returned if a custom label has been set with Gtk.Tool_Item_Group.Set_Label_Widget

Get_Label_Widget

function Get_Label_Widget
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Gtk.Widget.Gtk_Widget

Gets the label widget of Group. See Gtk.Tool_Item_Group.Set_Label_Widget. Since: gtk+ 2.20

Parameters
Self
Return Value

the label widget of Group

Get_N_Items

function Get_N_Items
   (Self : not null access Gtk_Tool_Item_Group_Record) return Guint

Gets the number of tool items in Group. Since: gtk+ 2.20

Parameters
Self
Return Value

the number of tool items in Group

Get_Nth_Item

function Get_Nth_Item
   (Self  : not null access Gtk_Tool_Item_Group_Record;
    Index : Guint) return Gtk.Tool_Item.Gtk_Tool_Item

Gets the tool item at Index in group. Since: gtk+ 2.20

Parameters
Self
Index

the index

Return Value

the Gtk.Tool_Item.Gtk_Tool_Item at index

Get_Orientation

function Get_Orientation
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Gtk.Enums.Gtk_Orientation
Parameters
Self
Return Value

Get_Relief_Style

function Get_Relief_Style
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Gtk.Enums.Gtk_Relief_Style
Parameters
Self
Return Value

Get_Style

function Get_Style
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Gtk.Enums.Gtk_Toolbar_Style
Parameters
Self
Return Value

Get_Text_Alignment

function Get_Text_Alignment
   (Self : not null access Gtk_Tool_Item_Group_Record) return Gfloat
Parameters
Self
Return Value

Get_Text_Orientation

function Get_Text_Orientation
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Gtk.Enums.Gtk_Orientation
Parameters
Self
Return Value

Get_Text_Size_Group

function Get_Text_Size_Group
   (Self : not null access Gtk_Tool_Item_Group_Record)
    return Gtk.Size_Group.Gtk_Size_Group
Parameters
Self
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_New

procedure Gtk_New (Self : out Gtk_Tool_Item_Group; Label : UTF8_String)

Creates a new tool item group with label Label. Since: gtk+ 2.20 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self
Label

the label of the new group

Gtk_Tool_Item_Group

type Gtk_Tool_Item_Group is access all Gtk_Tool_Item_Group_Record'Class;

Gtk_Tool_Item_Group_New

function Gtk_Tool_Item_Group_New
   (Label : UTF8_String) return Gtk_Tool_Item_Group

Creates a new tool item group with label Label. Since: gtk+ 2.20

Parameters
Label

the label of the new group

Return Value

Gtk_Tool_Item_Group_Record

type Gtk_Tool_Item_Group_Record is new Gtk_Container_Record with null record;

Header_Relief_Property

Header_Relief_Property : constant Gtk.Enums.Property_Gtk_Relief_Style;

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Tool_Item_Group_Record, Gtk_Tool_Item_Group);

Implements_Gtk_Tool_Shell

package Implements_Gtk_Tool_Shell is new Glib.Types.Implements
  (Gtk.Tool_Shell.Gtk_Tool_Shell, Gtk_Tool_Item_Group_Record, Gtk_Tool_Item_Group);

Initialize

procedure Initialize
   (Self  : not null access Gtk_Tool_Item_Group_Record'Class;
    Label : UTF8_String)

Creates a new tool item group with label Label. Since: gtk+ 2.20 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self
Label

the label of the new group

Insert

procedure Insert
   (Self     : not null access Gtk_Tool_Item_Group_Record;
    Item     : not null access Gtk.Tool_Item.Gtk_Tool_Item_Record'Class;
    Position : Glib.Gint)

Inserts Item at Position in the list of children of Group. Since: gtk+ 2.20

Parameters
Self
Item

the Gtk.Tool_Item.Gtk_Tool_Item to insert into Group

Position

the position of Item in Group, starting with 0. The position -1 means end of list.

Label_Property

Label_Property : constant Glib.Properties.Property_String;

Label_Widget_Property

Label_Widget_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Widget.Gtk_Widget

Rebuild_Menu

procedure Rebuild_Menu
   (Self : not null access Gtk_Tool_Item_Group_Record)
Parameters
Self

Set_Collapsed

procedure Set_Collapsed
   (Self      : not null access Gtk_Tool_Item_Group_Record;
    Collapsed : Boolean)

Sets whether the Group should be collapsed or expanded. Since: gtk+ 2.20

Parameters
Self
Collapsed

whether the Group should be collapsed or expanded

Set_Ellipsize

procedure Set_Ellipsize
   (Self      : not null access Gtk_Tool_Item_Group_Record;
    Ellipsize : Pango.Layout.Pango_Ellipsize_Mode)

Sets the ellipsization mode which should be used by labels in Group. Since: gtk+ 2.20

Parameters
Self
Ellipsize

the Pango.Layout.Pango_Ellipsize_Mode labels in Group should use

Set_Header_Relief

procedure Set_Header_Relief
   (Self  : not null access Gtk_Tool_Item_Group_Record;
    Style : Gtk.Enums.Gtk_Relief_Style)

Set the button relief of the group header. See Gtk.Button.Set_Relief for details. Since: gtk+ 2.20

Parameters
Self
Style

the Gtk.Enums.Gtk_Relief_Style

Set_Item_Position

procedure Set_Item_Position
   (Self     : not null access Gtk_Tool_Item_Group_Record;
    Item     : not null access Gtk.Tool_Item.Gtk_Tool_Item_Record'Class;
    Position : Glib.Gint)

Sets the position of Item in the list of children of Group. Since: gtk+ 2.20

Parameters
Self
Item

the Gtk.Tool_Item.Gtk_Tool_Item to move to a new position, should be a child of Group.

Position

the new position of Item in Group, starting with 0. The position -1 means end of list.

Set_Label

procedure Set_Label
   (Self  : not null access Gtk_Tool_Item_Group_Record;
    Label : UTF8_String)

Sets the label of the tool item group. The label is displayed in the header of the group. Since: gtk+ 2.20

Parameters
Self
Label

the new human-readable label of of the group

Set_Label_Widget

procedure Set_Label_Widget
   (Self         : not null access Gtk_Tool_Item_Group_Record;
    Label_Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)

Sets the label of the tool item group. The label widget is displayed in the header of the group, in place of the usual label. Since: gtk+ 2.20

Parameters
Self
Label_Widget

the widget to be displayed in place of the usual label