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_group | Gets the group at position (x, y). |
get_drop_item | Gets the item at position (x, y). |
get_exclusive | Gets whether group is exclusive or not. |
get_expand | Gets whether group should be given extra space. |
get_group_position | Gets the position of group in palette as index. |
get_hadjustment | Gets the horizontal adjustment of the tool palette. |
get_icon_size | Gets the size of icons in the tool palette. |
get_style | Gets the style (icons, text or both) of items in the tool palette. |
get_vadjustment | Gets the vertical adjustment of the tool palette. |
set_drag_source | Sets the tool palette as a drag source. |
set_exclusive | Sets whether the group should be exclusive or not. |
set_expand | Sets whether the group should be given extra space. |
set_group_position | Sets the position of the group as an index of the tool palette. |
set_icon_size | Sets the size of icons in the tool palette. |
set_style | Sets the style (text, icons or both) of items in the tool palette. |
signal_set_scroll_adjustments | Set the scroll adjustments for the viewport. |
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. |
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. |
Gets the group at position (x, y).
GtkToolPalette.get_drop_group( x, y )
x | the x position |
y | the y position |
Return | the GtkToolItemGroup at position or NULL if there is no such group |
Gets the item at position (x, y).
GtkToolPalette.get_drop_item( x, y )
x | the x position |
y | the y position |
Return | the GtkToolItem at position or NULL if there is no such item |
Gets whether group is exclusive or not.
GtkToolPalette.get_exclusive( group )
group | a GtkToolItemGroup which is a child of palette |
Return | TRUE if group is exclusive |
Gets whether group should be given extra space.
GtkToolPalette.get_expand( group )
group | a GtkToolItemGroup which is a child of palette |
Return | TRUE if group should be given extra space, FALSE otherwise |
Gets the position of group in palette as index.
GtkToolPalette.get_group_position( group )
group | a GtkToolItemGroup |
Return | the index of group or -1 if group is not a child of palette |
Gets the horizontal adjustment of the tool palette.
GtkToolPalette.get_hadjustment()
Return | the horizontal adjustment of palette (GtkAdjustment). |
Gets the size of icons in the tool palette.
GtkToolPalette.get_icon_size()
Return | the GtkIconSize of icons in the tool palette (GtkIconSize). |
Gets the style (icons, text or both) of items in the tool palette.
GtkToolPalette.get_style()
Return | the GtkToolbarStyle of items in the tool palette. |
Gets the vertical adjustment of the tool palette.
GtkToolPalette.get_vadjustment()
Return | the vertical adjustment of palette |
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.
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.
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 |
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.
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. |
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 |
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.
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()
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()