A sub container used in a tool palette
Class GtkToolItemGroup( label )
label | the label of the new group |
A GtkToolItemGroup is used together with GtkToolPalette to add GtkToolItems to a palette like container with different categories and drag and drop support.
Methods | |
get_collapsed | Gets whether group is collapsed or expanded. |
get_drop_item | Gets the tool item at position (x, y). |
get_ellipsize | Gets the ellipsization mode of group. |
get_header_relief | Gets the relief mode of the header button of group. |
get_item_position | Gets the position of item in group as index. |
get_label | Gets the label of group. |
get_label_widget | Gets the label widget of group. |
get_n_items | Gets the number of tool items in group. |
get_nth_item | Gets the tool item at index in group. |
insert | Inserts item at position in the list of children of group. |
set_collapsed | Sets whether the group should be collapsed or expanded. |
set_ellipsize | Sets the ellipsization mode which should be used by labels in group. |
set_header_relief | Set the button relief of the group header. |
set_item_position | Sets the position of item in the list of children of group. |
set_label | Sets the label of the tool item group. |
set_label_widget | Sets the label of the tool item group. |
Gets whether group is collapsed or expanded.
GtkToolItemGroup.get_collapsed()
Return | TRUE if group is collapsed, FALSE if it is expanded |
Gets the tool item at position (x, y).
GtkToolItemGroup.get_drop_item( x, y )
x | the x position |
y | the y position |
Return | the GtkToolItem at position (x, y) |
Gets the ellipsization mode of group.
GtkToolItemGroup.get_ellipsize()
Return | the PangoEllipsizeMode of group |
Gets the relief mode of the header button of group.
GtkToolItemGroup.get_header_relief()
Return | the GtkReliefStyle |
Gets the position of item in group as index.
GtkToolItemGroup.get_item_position( item )
item | a GtkToolItem |
Return | the index of item in group or -1 if item is no child of group |
Gets the label of group.
GtkToolItemGroup.get_label()
Return | the label of group. |
Note that NULL is returned if a custom label has been set with gtk_tool_item_group_set_label_widget().
Gets the label widget of group.
GtkToolItemGroup.get_label_widget()
Return | the label widget of group |
Gets the number of tool items in group.
GtkToolItemGroup.get_n_items()
Return | the number of tool items in group |
Gets the tool item at index in group.
GtkToolItemGroup.get_nth_item( index )
index | the index |
Return | the GtkToolItem at index |
Inserts item at position in the list of children of group.
GtkToolItemGroup.insert( item, position )
item | the GtkToolItem to insert into group |
position | the position of item in group, starting with 0. The position -1 means end of list. |
Sets whether the group should be collapsed or expanded.
GtkToolItemGroup.set_collapsed( collapsed )
collapsed | whether the group should be collapsed or expanded |
Sets the ellipsization mode which should be used by labels in group.
GtkToolItemGroup.set_ellipsize( ellipsize )
ellipsize | the PangoEllipsizeMode labels in group should use |
Set the button relief of the group header.
GtkToolItemGroup.set_header_relief( style )
style | the GtkReliefStyle |
Sets the position of item in the list of children of group.
GtkToolItemGroup.set_item_position( item, position )
item | the GtkToolItem to move to a new position, should be a child of group. |
position | the new position of item in group, starting with 0. The position -1 means end of list. |
Sets the label of the tool item group.
GtkToolItemGroup.set_label( label )
label | the new human-readable label of of the group |
The label is displayed in the header of the group.
Sets the label of the tool item group.
GtkToolItemGroup.set_label_widget( label_widget )
label_widget | the widget to be displayed in place of the usual label |
The label widget is displayed in the header of the group, in place of the usual label.