11.125Class GtkToolItemGroup

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_collapsedGets whether group is collapsed or expanded.
get_drop_itemGets the tool item at position (x, y).
get_ellipsizeGets the ellipsization mode of group.
get_header_reliefGets the relief mode of the header button of group.
get_item_positionGets the position of item in group as index.
get_labelGets the label of group.
get_label_widgetGets the label widget of group.
get_n_itemsGets the number of tool items in group.
get_nth_itemGets the tool item at index in group.
insertInserts item at position in the list of children of group.
set_collapsedSets whether the group should be collapsed or expanded.
set_ellipsizeSets the ellipsization mode which should be used by labels in group.
set_header_reliefSet the button relief of the group header.
set_item_positionSets the position of item in the list of children of group.
set_labelSets the label of the tool item group.
set_label_widgetSets the label of the tool item group.

Methods

get_collapsed

Gets whether group is collapsed or expanded.

GtkToolItemGroup.get_collapsed()
ReturnTRUE if group is collapsed, FALSE if it is expanded

get_drop_item

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

GtkToolItemGroup.get_drop_item( x, y )
x the x position
y the y position
Returnthe GtkToolItem at position (x, y)

get_ellipsize

Gets the ellipsization mode of group.

GtkToolItemGroup.get_ellipsize()
Returnthe PangoEllipsizeMode of group

get_header_relief

Gets the relief mode of the header button of group.

GtkToolItemGroup.get_header_relief()
Returnthe GtkReliefStyle

get_item_position

Gets the position of item in group as index.

GtkToolItemGroup.get_item_position( item )
item a GtkToolItem
Returnthe index of item in group or -1 if item is no child of group

get_label

Gets the label of group.

GtkToolItemGroup.get_label()
Returnthe label of group.

Note that NULL is returned if a custom label has been set with gtk_tool_item_group_set_label_widget().

get_label_widget

Gets the label widget of group.

GtkToolItemGroup.get_label_widget()
Returnthe label widget of group

get_n_items

Gets the number of tool items in group.

GtkToolItemGroup.get_n_items()
Returnthe number of tool items in group

get_nth_item

Gets the tool item at index in group.

GtkToolItemGroup.get_nth_item( index )
index the index
Returnthe GtkToolItem at index

insert

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.

set_collapsed

Sets whether the group should be collapsed or expanded.

GtkToolItemGroup.set_collapsed( collapsed )
collapsed whether the group should be collapsed or expanded

set_ellipsize

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_header_relief

Set the button relief of the group header.

GtkToolItemGroup.set_header_relief( style )
style the GtkReliefStyle

set_item_position

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.

set_label

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.

set_label_widget

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.

Made with http://www.falconpl.org