gtk.tool_item_group

Module for [ToolItemGroup] class

Types 3

A #GtkToolItemGroup is used together with #GtkToolPalette to add #GtkToolItems to a palette like container with different categories and drag and drop support.

CSS nodes

GtkToolItemGroup has a single CSS node named toolitemgroup.

Methods
GType _gType() @property
ToolItemGroup self()Returns `this`, for use in `with` statements.
ToolItemGroupGidBuilder builder()Get builder for [gtk.toolitemgroup.ToolItemGroup] Returns: New builder object
bool collapsed() @property
void collapsed(bool propval) @property
void ellipsize(pango.types.EllipsizeMode propval) @property
void headerRelief(gtk.types.ReliefStyle propval) @property
string label() @property
void label(string propval) @property
void labelWidget(gtk.widget.Widget propval) @property
bool getCollapsed()Gets whether group is collapsed or expanded. Returns: true if group is collapsed, false if it is expanded
gtk.tool_item.ToolItem getDropItem(int x, int y)Gets the tool item at position (x, y).
pango.types.EllipsizeMode getEllipsize()Gets the ellipsization mode of group. Returns: the #PangoEllipsizeMode of group
gtk.types.ReliefStyle getHeaderRelief()Gets the relief mode of the header button of group. Returns: the #GtkReliefStyle
int getItemPosition(gtk.tool_item.ToolItem item)Gets the position of item in group as index.
string getLabel()Gets the label of group. Returns: 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.toolitem...
gtk.widget.Widget getLabelWidget()Gets the label widget of group. See [gtk.toolitemgroup.ToolItemGroup.setLabelWidget]. Returns: the label widget of group
uint getNItems()Gets the number of tool items in group. Returns: the number of tool items in group
gtk.tool_item.ToolItem getNthItem(uint index)Gets the tool item at index in group.
void insert(gtk.tool_item.ToolItem item, int position)Inserts item at position in the list of children of group.
void setCollapsed(bool collapsed)Sets whether the group should be collapsed or expanded.
void setEllipsize(pango.types.EllipsizeMode ellipsize)Sets the ellipsization mode which should be used by labels in group.
void setHeaderRelief(gtk.types.ReliefStyle style)Set the button relief of the group header. See [gtk.button.Button.setRelief] for details.
void setItemPosition(gtk.tool_item.ToolItem item, int position)Sets the position of item in the list of children of group.
void setLabel(string label)Sets the label of the tool item group. The label is displayed in the header of the group.
void setLabelWidget(gtk.widget.Widget labelWidget)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.
Constructors
this(void * ptr, Flag!"Take" take)
this(string label)Creates a new tool item group with label label.

Fluent builder for [gtk.tool_item_group.ToolItemGroup]