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