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 _getGType() static nothrow
GType _gType() @property nothrow
ToolItemGroup self() nothrowReturns `this`, for use in `with` statements.
ToolItemGroupGidBuilder builder() static nothrowGet builder for [gtk.tool_item_group.ToolItemGroup] Returns: New builder object
bool collapsed() @property nothrow
void collapsed(bool propval) @property nothrow
void ellipsize(pango.types.EllipsizeMode propval) @property nothrow
void headerRelief(gtk.types.ReliefStyle propval) @property nothrow
string label() @property nothrow
void label(string propval) @property nothrow
gtk.widget.Widget labelWidget() @property nothrow
void labelWidget(gtk.widget.Widget propval) @property nothrow
bool getCollapsed() nothrowGets 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) nothrowGets the tool item at position (x, y).
pango.types.EllipsizeMode getEllipsize() nothrowGets the ellipsization mode of group. Returns: the #PangoEllipsizeMode of group
gtk.types.ReliefStyle getHeaderRelief() nothrowGets the relief mode of the header button of group. Returns: the #GtkReliefStyle
int getItemPosition(gtk.tool_item.ToolItem item) nothrowGets the position of item in group as index.
string getLabel() nothrowGets 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.tool_ite...
gtk.widget.Widget getLabelWidget() nothrowGets the label widget of group. See [gtk.tool_item_group.ToolItemGroup.setLabelWidget]. Returns: the label widget of group
uint getNItems() nothrowGets the number of tool items in group. Returns: the number of tool items in group
gtk.tool_item.ToolItem getNthItem(uint index) nothrowGets the tool item at index in group.
void insert(gtk.tool_item.ToolItem item, int position) nothrowInserts item at position in the list of children of group.
void setCollapsed(bool collapsed) nothrowSets whether the group should be collapsed or expanded.
void setEllipsize(pango.types.EllipsizeMode ellipsize) nothrowSets the ellipsization mode which should be used by labels in group.
void setHeaderRelief(gtk.types.ReliefStyle style) nothrowSet the button relief of the group header. See [gtk.button.Button.setRelief] for details.
void setItemPosition(gtk.tool_item.ToolItem item, int position) nothrowSets the position of item in the list of children of group.
void setLabel(string label) nothrowSets the label of the tool item group. The label is displayed in the header of the group.
void setLabelWidget(gtk.widget.Widget labelWidget) nothrowSets 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 implementation template for gtk.tool_item_group.ToolItemGroup

Methods
T collapsed(bool propval) nothrow
T label(string propval) nothrow
T labelWidget(gtk.widget.Widget propval) nothrow
Methods
ToolItemGroup build() nothrowCreate object from builder. Returns: New object