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
function "+"
(Widget : access Gtk_Tool_Item_Group_Record'Class)
return Gtk.Tool_Shell.Gtk_Tool_Shell
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Tool_Item_Group
function "-"
(Interf : Gtk.Tool_Shell.Gtk_Tool_Shell)
return Gtk_Tool_Item_Group
Collapsed_Property : constant Glib.Properties.Property_Boolean;
Ellipsize_Property : constant Pango.Layout.Property_Pango_Ellipsize_Mode;
Type: Pango.Layout.Pango_Ellipsize_Mode
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
True if Group is collapsed, False if it is expanded
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
the x position
the y position
the Gtk.Tool_Item.Gtk_Tool_Item at position (x, y)
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
the Pango.Layout.Pango_Ellipsize_Mode of Group
function Get_Ellipsize_Mode
(Self : not null access Gtk_Tool_Item_Group_Record)
return Pango.Layout.Pango_Ellipsize_Mode
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
the Gtk.Enums.Gtk_Relief_Style
function Get_Icon_Size
(Self : not null access Gtk_Tool_Item_Group_Record)
return Gtk.Enums.Gtk_Icon_Size
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
a Gtk.Tool_Item.Gtk_Tool_Item
the index of Item in Group or -1 if Item is no child of Group
function Get_Label
(Self : not null access Gtk_Tool_Item_Group_Record) return UTF8_String
Gets the label of Group. Since: gtk+ 2.20
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
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
the label widget of Group
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
the number of tool items in Group
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
the index
the Gtk.Tool_Item.Gtk_Tool_Item at index
function Get_Orientation
(Self : not null access Gtk_Tool_Item_Group_Record)
return Gtk.Enums.Gtk_Orientation
function Get_Relief_Style
(Self : not null access Gtk_Tool_Item_Group_Record)
return Gtk.Enums.Gtk_Relief_Style
function Get_Style
(Self : not null access Gtk_Tool_Item_Group_Record)
return Gtk.Enums.Gtk_Toolbar_Style
function Get_Text_Alignment
(Self : not null access Gtk_Tool_Item_Group_Record) return Gfloat
function Get_Text_Orientation
(Self : not null access Gtk_Tool_Item_Group_Record)
return Gtk.Enums.Gtk_Orientation
function Get_Text_Size_Group
(Self : not null access Gtk_Tool_Item_Group_Record)
return Gtk.Size_Group.Gtk_Size_Group
function Get_Type return Glib.GType
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.
the label of the new group
type Gtk_Tool_Item_Group is access all Gtk_Tool_Item_Group_Record'Class;
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
the label of the new group
type Gtk_Tool_Item_Group_Record is new Gtk_Container_Record with null record;
Header_Relief_Property : constant Gtk.Enums.Property_Gtk_Relief_Style;
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Tool_Item_Group_Record, Gtk_Tool_Item_Group);
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);
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.
the label of the new group
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
the Gtk.Tool_Item.Gtk_Tool_Item to insert into Group
the position of Item in Group, starting with 0. The position -1 means end of list.
Label_Property : constant Glib.Properties.Property_String;
Label_Widget_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Widget.Gtk_Widget
procedure Rebuild_Menu
(Self : not null access Gtk_Tool_Item_Group_Record)
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
whether the Group should be collapsed or expanded
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
the Pango.Layout.Pango_Ellipsize_Mode labels in Group should use
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
the Gtk.Enums.Gtk_Relief_Style
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
the Gtk.Tool_Item.Gtk_Tool_Item to move to a new position, should be a child of Group.
the new position of Item in Group, starting with 0. The position -1 means end of list.
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
the new human-readable label of of the group
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
the widget to be displayed in place of the usual label