11.126Class GtkToolPalette

A tool palette with categories

Class GtkToolPalette

A GtkToolPalette allows you to add GtkToolItems to a palette-like container with different categories and drag and drop support.

[...]

Methods
get_drop_groupGets the group at position (x, y).
get_drop_itemGets the item at position (x, y).
get_exclusiveGets whether group is exclusive or not.
get_expandGets whether group should be given extra space.
get_group_positionGets the position of group in palette as index.
get_hadjustmentGets the horizontal adjustment of the tool palette.
get_icon_sizeGets the size of icons in the tool palette.
get_styleGets the style (icons, text or both) of items in the tool palette.
get_vadjustmentGets the vertical adjustment of the tool palette.
set_drag_sourceSets the tool palette as a drag source.
set_exclusiveSets whether the group should be exclusive or not.
set_expandSets whether the group should be given extra space.
set_group_positionSets the position of the group as an index of the tool palette.
set_icon_sizeSets the size of icons in the tool palette.
set_styleSets the style (text, icons or both) of items in the tool palette.
signal_set_scroll_adjustmentsSet the scroll adjustments for the viewport.
unset_icon_sizeUnsets the tool palette icon size set with gtk_tool_palette_set_icon_size(), so that user preferences will be used to determine the icon size.
unset_styleUnsets a toolbar style set with gtk_tool_palette_set_style(), so that user preferences will be used to determine the toolbar style.

Methods

get_drop_group

Gets the group at position (x, y).

GtkToolPalette.get_drop_group( x, y )
x the x position
y the y position
Returnthe GtkToolItemGroup at position or NULL if there is no such group

get_drop_item

Gets the item at position (x, y).

GtkToolPalette.get_drop_item( x, y )
x the x position
y the y position
Returnthe GtkToolItem at position or NULL if there is no such item

get_exclusive

Gets whether group is exclusive or not.

GtkToolPalette.get_exclusive( group )
group a GtkToolItemGroup which is a child of palette
ReturnTRUE if group is exclusive

get_expand

Gets whether group should be given extra space.

GtkToolPalette.get_expand( group )
group a GtkToolItemGroup which is a child of palette
ReturnTRUE if group should be given extra space, FALSE otherwise

get_group_position

Gets the position of group in palette as index.

GtkToolPalette.get_group_position( group )
group a GtkToolItemGroup
Returnthe index of group or -1 if group is not a child of palette

get_hadjustment

Gets the horizontal adjustment of the tool palette.

GtkToolPalette.get_hadjustment()
Returnthe horizontal adjustment of palette (GtkAdjustment).

get_icon_size

Gets the size of icons in the tool palette.

GtkToolPalette.get_icon_size()
Returnthe GtkIconSize of icons in the tool palette (GtkIconSize).

get_style

Gets the style (icons, text or both) of items in the tool palette.

GtkToolPalette.get_style()
Returnthe GtkToolbarStyle of items in the tool palette.

get_vadjustment

Gets the vertical adjustment of the tool palette.

GtkToolPalette.get_vadjustment()
Returnthe vertical adjustment of palette

set_drag_source

Sets the tool palette as a drag source.

GtkToolPalette.set_drag_source( targets )
targets the GtkToolPaletteDragTargets which the widget should support

Enables all groups and items in the tool palette as drag sources on button 1 and button 3 press with copy and move actions.

set_exclusive

Sets whether the group should be exclusive or not.

GtkToolPalette.set_exclusive( group, exclusive )
group a GtkToolItemGroup which is a child of palette
exclusive whether the group should be exclusive or not

If an exclusive group is expanded all other groups are collapsed.

set_expand

Sets whether the group should be given extra space.

GtkToolPalette.set_expand( group, expand )
group a GtkToolItemGroup which is a child of palette
expand whether the group should be given extra space

set_group_position

Sets the position of the group as an index of the tool palette.

GtkToolPalette.set_group_position( group, position )
group a GtkToolItemGroup which is a child of palette
position a new index for group

If position is 0 the group will become the first child, if position is -1 it will become the last child.

set_icon_size

Sets the size of icons in the tool palette.

GtkToolPalette.set_icon_size( icon_size )
icon_size the GtkIconSize that icons in the tool palette shall have.

set_style

Sets the style (text, icons or both) of items in the tool palette.

GtkToolPalette.set_style( style )
style the GtkToolbarStyle that items in the tool palette shall have

signal_set_scroll_adjustments

Set the scroll adjustments for the viewport.

GtkToolPalette.signal_set_scroll_adjustments()

Usually scrolled containers like GtkScrolledWindow will emit this signal to connect two instances of GtkScrollbar to the scroll directions of the GtkToolpalette.

unset_icon_size

Unsets the tool palette icon size set with gtk_tool_palette_set_icon_size(), so that user preferences will be used to determine the icon size.

GtkToolPalette.unset_icon_size()

unset_style

Unsets a toolbar style set with gtk_tool_palette_set_style(), so that user preferences will be used to determine the toolbar style.

GtkToolPalette.unset_style()
Made with http://www.falconpl.org