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
ToolItemGroup self()Returns `this`, for use in `with` statements.ToolItemGroupGidBuilder builder()Get builder for [gtk.toolitemgroup.ToolItemGroup] Returns: New builder objectbool collapsed() @propertyvoid collapsed(bool propval) @propertypango.types.EllipsizeMode ellipsize() @propertyvoid ellipsize(pango.types.EllipsizeMode propval) @propertygtk.types.ReliefStyle headerRelief() @propertyvoid headerRelief(gtk.types.ReliefStyle propval) @propertystring label() @propertyvoid label(string propval) @propertygtk.widget.Widget labelWidget() @propertyvoid labelWidget(gtk.widget.Widget propval) @propertybool getCollapsed()Gets whether group is collapsed or expanded. Returns: true if group is collapsed, false if it is expandedgtk.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 groupgtk.types.ReliefStyle getHeaderRelief()Gets the relief mode of the header button of group. Returns: the #GtkReliefStyleint 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 groupuint getNItems()Gets the number of tool items in group. Returns: the number of tool items in groupgtk.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.classToolItemGroupGidBuilderImpl(T) : gtk.container.ContainerGidBuilderImpl!T, gtk.tool_shell.ToolShellGidBuilderImpl!T
Methods
T collapsed(bool propval)T ellipsize(pango.types.EllipsizeMode propval)T headerRelief(gtk.types.ReliefStyle propval)T label(string propval)T labelWidget(gtk.widget.Widget propval)Fluent builder for [gtk.tool_item_group.ToolItemGroup]
Methods