ToolItemGroup

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.

Constructors

this
this(GtkToolItemGroup* gtkToolItemGroup, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this(string label)

Creates a new tool item group with label label.

Members

Functions

getCollapsed
bool getCollapsed()

Gets whether group is collapsed or expanded.

getDropItem
ToolItem getDropItem(int x, int y)

Gets the tool item at position (x, y).

getEllipsize
PangoEllipsizeMode getEllipsize()

Gets the ellipsization mode of group.

getHeaderRelief
GtkReliefStyle getHeaderRelief()

Gets the relief mode of the header button of group.

getItemPosition
int getItemPosition(ToolItem item)

Gets the position of item in group as index.

getLabel
string getLabel()

Gets the label of group.

getLabelWidget
Widget getLabelWidget()

Gets the label widget of group. See gtk_tool_item_group_set_label_widget().

getNItems
uint getNItems()

Gets the number of tool items in group.

getNthItem
ToolItem getNthItem(uint index)

Gets the tool item at index in group.

getOrientation
GtkOrientation getOrientation()

Retrieves the current orientation for the tool shell. Tool items must not call this function directly, but rely on gtk_tool_item_get_orientation() instead. Since 2.14

getStruct
void* getStruct()

the main Gtk struct as a void*

getToolItemGroupStruct
GtkToolItemGroup* getToolItemGroupStruct(bool transferOwnership = false)

Get the main Gtk struct

insert
void insert(ToolItem item, int position)

Inserts item at position in the list of children of group.

setCollapsed
void setCollapsed(bool collapsed)

Sets whether the group should be collapsed or expanded.

setEllipsize
void setEllipsize(PangoEllipsizeMode ellipsize)

Sets the ellipsization mode which should be used by labels in group.

setHeaderRelief
void setHeaderRelief(GtkReliefStyle style)

Set the button relief of the group header. See gtk_button_set_relief() for details.

setItemPosition
void setItemPosition(ToolItem item, int position)

Sets the position of item in the list of children of group.

setLabel
void setLabel(string label)

Sets the label of the tool item group. The label is displayed in the header of the group.

setLabelWidget
void setLabelWidget(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.

Static functions

getType
GType getType()

Variables

gtkToolItemGroup
GtkToolItemGroup* gtkToolItemGroup;

the main Gtk struct

Meta

Since

2.20