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
ToolItemGroupGidBuilder builder() static nothrowGet builder for [gtk.tool_item_group.ToolItemGroup] Returns: New builder objectbool getCollapsed() nothrowGets whether group is collapsed or expanded. Returns: true if group is collapsed, false if it is expandedpango.types.EllipsizeMode getEllipsize() nothrowGets the ellipsization mode of group. Returns: the #PangoEllipsizeMode of groupgtk.types.ReliefStyle getHeaderRelief() nothrowGets the relief mode of the header button of group. Returns: the #GtkReliefStyleint 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 groupuint getNItems() nothrowGets the number of tool items in group. Returns: the number of tool items in groupvoid insert(gtk.tool_item.ToolItem item, int position) nothrowInserts item at position in the list of children of group.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.classToolItemGroupGidBuilderImpl(T) : gtk.container.ContainerGidBuilderImpl!T, gtk.tool_shell.ToolShellGidBuilderImpl!T
Fluent builder implementation template for gtk.tool_item_group.ToolItemGroup
Methods
T collapsed(bool propval) nothrowT ellipsize(pango.types.EllipsizeMode propval) nothrowT headerRelief(gtk.types.ReliefStyle propval) nothrowT label(string propval) nothrowT labelWidget(gtk.widget.Widget propval) nothrowFluent builder for gtk.tool_item_group.ToolItemGroup
Methods