Class: Gtk::Toolbar
- Inherits:
-
Object
- Object
- Gtk::Toolbar
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#get_drop_index(x, y) ⇒ Integer
Returns the position corresponding to the indicated point on toolbar.
-
#get_item_index(item) ⇒ Integer
Returns the position of item on the toolbar, starting from 0.
-
#get_nth_item(n) ⇒ Gtk::ToolItem
Returns the n’th item on toolbar, or nil if the toolbar does not contain an n’th item.
-
#icon_size ⇒ Gtk::IconSize
The size of the icons in a toolbar is normally determined by the toolbar-icon-size setting.
-
#icon_size=(icon_size) ⇒ Gtk::IconSize
The size of the icons in a toolbar is normally determined by the toolbar-icon-size setting.
-
#icon_size_set=(icon_size_set) ⇒ TrueClass
Is true if the icon-size property has been set.
-
#icon_size_set? ⇒ TrueClass
Is true if the icon-size property has been set.
-
#insert(item, pos) ⇒ nil
Insert a Gtk::ToolItem into the toolbar at position pos.
-
#n_items ⇒ Integer
Returns the number of items on the toolbar.
-
#new ⇒ Gtk::Widget
Creates a new toolbar.
-
#relief_style ⇒ Gtk::ReliefStyle
Returns the relief style of buttons on toolbar.
-
#set_drop_highlight_item(tool_item, index_) ⇒ nil
Highlights toolbar to give an idea of what it would look like if item was added to toolbar at the position indicated by index_.
-
#show_arrow ⇒ TrueClass
Returns whether the toolbar has an overflow menu.
- #show_arrow=(show_arrow) ⇒ TrueClass
-
#show_arrow? ⇒ TrueClass
Show-arrow.
-
#style ⇒ Gtk::ToolbarStyle
Retrieves whether the toolbar has text, icons, or both .
-
#style=(style) ⇒ nil
Alters the view of toolbar to display either icons only, text only, or both.
-
#toolbar_style ⇒ Gtk::ToolbarStyle
Toolbar-style.
- #toolbar_style=(toolbar_style) ⇒ Gtk::ToolbarStyle
-
#unset_icon_size ⇒ nil
Unsets toolbar icon size set with gtk_toolbar_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_toolbar_set_style(), so that user preferences will be used to determine the toolbar style.
Instance Method Details
#get_drop_index(x, y) ⇒ Integer
Returns the position corresponding to the indicated point on toolbar. This is useful when dragging items to the toolbar: this function returns the position a new item should be inserted.
x and y are in toolbar coordinates.
#get_item_index(item) ⇒ Integer
Returns the position of item on the toolbar, starting from 0. It is an error if item is not a child of the toolbar.
#get_nth_item(n) ⇒ Gtk::ToolItem
Returns the n’th item on toolbar, or nil if the toolbar does not contain an n’th item.
#icon_size ⇒ Gtk::IconSize
The size of the icons in a toolbar is normally determined by the toolbar-icon-size setting. When this property is set, it overrides the setting.
This should only be used for special-purpose toolbars, normal application toolbars should respect the user preferences for the size of icons.
#icon_size=(icon_size) ⇒ Gtk::IconSize
The size of the icons in a toolbar is normally determined by the toolbar-icon-size setting. When this property is set, it overrides the setting.
This should only be used for special-purpose toolbars, normal application toolbars should respect the user preferences for the size of icons.
#icon_size_set=(icon_size_set) ⇒ TrueClass
Is true if the icon-size property has been set.
#icon_size_set? ⇒ TrueClass
Is true if the icon-size property has been set.
#insert(item, pos) ⇒ nil
Insert a Gtk::ToolItem into the toolbar at position pos. If pos is 0 the item is prepended to the start of the toolbar. If pos is negative, the item is appended to the end of the toolbar.
#n_items ⇒ Integer
Returns the number of items on the toolbar.
#new ⇒ Gtk::Widget
Creates a new toolbar.
#relief_style ⇒ Gtk::ReliefStyle
Returns the relief style of buttons on toolbar. See gtk_button_set_relief().
#set_drop_highlight_item(tool_item, index_) ⇒ nil
Highlights toolbar to give an idea of what it would look like if item was added to toolbar at the position indicated by index_. If item is nil, highlighting is turned off. In that case index_ is ignored.
The tool_item passed to this function must not be part of any widget hierarchy. When an item is set as drop highlight item it can not added to any widget hierarchy or used as highlight item for another toolbar.
#show_arrow ⇒ TrueClass
Returns whether the toolbar has an overflow menu. See gtk_toolbar_set_show_arrow().
#show_arrow=(show_arrow) ⇒ TrueClass
#show_arrow? ⇒ TrueClass
Returns show-arrow.
#style ⇒ Gtk::ToolbarStyle
Retrieves whether the toolbar has text, icons, or both . See gtk_toolbar_set_style().
#style=(style) ⇒ nil
Alters the view of toolbar to display either icons only, text only, or both.
#toolbar_style ⇒ Gtk::ToolbarStyle
Returns toolbar-style.
#toolbar_style=(toolbar_style) ⇒ Gtk::ToolbarStyle
#unset_icon_size ⇒ nil
Unsets toolbar icon size set with gtk_toolbar_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_toolbar_set_style(), so that user preferences will be used to determine the toolbar style.