Gtk.ToolItem
const Gtk = imports.gi.Gtk; let tool_item = new Gtk.ToolItem({ is_important: value, visible_horizontal: value, visible_vertical: value, });
Gtk.ToolItem<!-- -->s are widgets that can appear on a toolbar. To create a toolbar item that contain something else than a button, use Gtk.new. Use Gtk.Container.prototype.add to add a child widget to the tool item.
For toolbar items that contain buttons, see the Gtk.ToolButton, Gtk.ToggleToolButton and Gtk.RadioToolButton classes.
See the Gtk.Toolbar class for a description of the toolbar widget, and Gtk.ToolShell for a description of the tool shell interface.
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
-
Gtk.Bin
- Gtk.ToolItem
-
-
-
-
Methods
- Gtk.ToolItem.prototype.get_ellipsize_mode
- Gtk.ToolItem.prototype.get_expand
- Gtk.ToolItem.prototype.get_homogeneous
- Gtk.ToolItem.prototype.get_icon_size
- Gtk.ToolItem.prototype.get_is_important
- Gtk.ToolItem.prototype.get_orientation
- Gtk.ToolItem.prototype.get_proxy_menu_item
- Gtk.ToolItem.prototype.get_relief_style
- Gtk.ToolItem.prototype.get_text_alignment
- Gtk.ToolItem.prototype.get_text_orientation
- Gtk.ToolItem.prototype.get_text_size_group
- Gtk.ToolItem.prototype.get_toolbar_style
- Gtk.ToolItem.prototype.get_use_drag_window
- Gtk.ToolItem.prototype.get_visible_horizontal
- Gtk.ToolItem.prototype.get_visible_vertical
- Gtk.ToolItem.prototype.rebuild_menu
- Gtk.ToolItem.prototype.retrieve_proxy_menu_item
- Gtk.ToolItem.prototype.set_expand
- Gtk.ToolItem.prototype.set_homogeneous
- Gtk.ToolItem.prototype.set_is_important
- Gtk.ToolItem.prototype.set_proxy_menu_item
- Gtk.ToolItem.prototype.set_tooltip_markup
- Gtk.ToolItem.prototype.set_tooltip_text
- Gtk.ToolItem.prototype.set_use_drag_window
- Gtk.ToolItem.prototype.set_visible_horizontal
- Gtk.ToolItem.prototype.set_visible_vertical
- Gtk.ToolItem.prototype.toolbar_reconfigured