Class: Gtk::ToolPalette
- Inherits:
-
Object
- Object
- Gtk::ToolPalette
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_drag_dest(widget, flags, targets, actions) ⇒ nil
Sets palette as drag source (see gtk_tool_palette_set_drag_source()) and sets widget as a drag destination for drags from palette.
-
#drag_source=(targets) ⇒ nil
Sets the tool palette as a drag source.
-
#get_drag_item(selection) ⇒ Gtk::Widget
Get the dragged item from the selection.
-
#get_drop_group(x, y) ⇒ Gtk::ToolItemGroup
Gets the group at position (x, y).
-
#get_drop_item(x, y) ⇒ Gtk::ToolItem
Gets the item at position (x, y).
-
#get_exclusive(group) ⇒ TrueClass
Gets whether group is exclusive or not.
-
#get_expand(group) ⇒ TrueClass
Gets whether group should be given extra space.
-
#get_group_position(group) ⇒ Integer
Gets the position of group in palette as index.
-
#hadjustment ⇒ Gtk::Adjustment
Gets the horizontal adjustment of the tool palette.
-
#icon_size ⇒ Gtk::IconSize
The size of the icons in a tool palette.
-
#icon_size=(icon_size) ⇒ Gtk::IconSize
The size of the icons in a tool palette.
-
#icon_size_set=(icon_size_set) ⇒ TrueClass
Is true if the Gtk::ToolPalette:icon-size property has been set.
-
#icon_size_set? ⇒ TrueClass
Is true if the Gtk::ToolPalette:icon-size property has been set.
-
#new ⇒ Gtk::Widget
Creates a new tool palette.
-
#set_exclusive(group, exclusive) ⇒ nil
Sets whether the group should be exclusive or not.
-
#set_expand(group, expand) ⇒ nil
Sets whether the group should be given extra space.
-
#set_group_position(group, position) ⇒ nil
Sets the position of the group as an index of the tool palette.
-
#style ⇒ Gtk::ToolbarStyle
Gets the style (icons, text or both) of items in the tool palette.
-
#style=(style) ⇒ nil
Sets the style (text, icons or both) of items in the tool palette.
-
#toolbar_style ⇒ Gtk::ToolbarStyle
The style of items in the tool palette.
-
#toolbar_style=(toolbar_style) ⇒ Gtk::ToolbarStyle
The style of items in the tool palette.
-
#unset_icon_size ⇒ nil
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 ⇒ nil
Unsets a toolbar style set with gtk_tool_palette_set_style(), so that user preferences will be used to determine the toolbar style.
-
#vadjustment ⇒ Gtk::Adjustment
Gets the vertical adjustment of the tool palette.
Instance Method Details
#add_drag_dest(widget, flags, targets, actions) ⇒ nil
Sets palette as drag source (see gtk_tool_palette_set_drag_source()) and sets widget as a drag destination for drags from palette. See gtk_drag_dest_set().
#drag_source=(targets) ⇒ nil
Sets the tool palette as a drag source. Enables all groups and items in the tool palette as drag sources on button 1 and button 3 press with copy and move actions. See gtk_drag_source_set().
#get_drag_item(selection) ⇒ Gtk::Widget
Get the dragged item from the selection. This could be a Gtk::ToolItem or a #GtkToolItemGroup.
#get_drop_group(x, y) ⇒ Gtk::ToolItemGroup
Gets the group at position (x, y). or nil if there is no such group
#get_drop_item(x, y) ⇒ Gtk::ToolItem
Gets the item at position (x, y). See gtk_tool_palette_get_drop_group().
#get_exclusive(group) ⇒ TrueClass
Gets whether group is exclusive or not. See gtk_tool_palette_set_exclusive().
#get_expand(group) ⇒ TrueClass
Gets whether group should be given extra space. See gtk_tool_palette_set_expand().
#get_group_position(group) ⇒ Integer
Gets the position of group in palette as index. See gtk_tool_palette_set_group_position().
#hadjustment ⇒ Gtk::Adjustment
Gets the horizontal adjustment of the tool palette.
#icon_size ⇒ Gtk::IconSize
The size of the icons in a tool palette. When this property is set, it overrides the default setting.
This should only be used for special-purpose tool palettes, normal application tool palettes should respect the user preferences for the size of icons.
#icon_size=(icon_size) ⇒ Gtk::IconSize
The size of the icons in a tool palette. When this property is set, it overrides the default setting.
This should only be used for special-purpose tool palettes, normal application tool palettes should respect the user preferences for the size of icons.
#icon_size_set=(icon_size_set) ⇒ TrueClass
Is true if the Gtk::ToolPalette:icon-size property has been set.
#icon_size_set? ⇒ TrueClass
Is true if the Gtk::ToolPalette:icon-size property has been set.
#new ⇒ Gtk::Widget
Creates a new tool palette.
#set_exclusive(group, exclusive) ⇒ nil
Sets whether the group should be exclusive or not. If an exclusive group is expanded all other groups are collapsed.
#set_expand(group, expand) ⇒ nil
Sets whether the group should be given extra space.
#set_group_position(group, position) ⇒ nil
Sets the position of the group as an index of the tool palette. If position is 0 the group will become the first child, if position is -1 it will become the last child.
#style ⇒ Gtk::ToolbarStyle
Gets the style (icons, text or both) of items in the tool palette.
#style=(style) ⇒ nil
Sets the style (text, icons or both) of items in the tool palette.
#toolbar_style ⇒ Gtk::ToolbarStyle
The style of items in the tool palette.
#toolbar_style=(toolbar_style) ⇒ Gtk::ToolbarStyle
The style of items in the tool palette.
#unset_icon_size ⇒ nil
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 ⇒ nil
Unsets a toolbar style set with gtk_tool_palette_set_style(), so that user preferences will be used to determine the toolbar style.
#vadjustment ⇒ Gtk::Adjustment
Gets the vertical adjustment of the tool palette.