Gtk.ToggleToolButton

const Gtk = imports.gi.Gtk;

let toggle_tool_button = new Gtk.ToggleToolButton({
    active: value,
});
  

A Gtk.ToggleToolButton is a Gtk.ToolItem that contains a toggle button.

Use Gtk.new to create a new Gtk.ToggleToolButton. Use Gtk.new_from_stock to create a new Gtk.ToggleToolButton containing a stock item.

Hierarchy

  • GObject.Object
    • GObject.InitiallyUnowned
      • Gtk.Widget
        • Gtk.Container
          • Gtk.Bin
            • Gtk.ToolItem
              • Gtk.ToolButton
                • Gtk.ToggleToolButton