Gtk.ToolButton
const Gtk = imports.gi.Gtk; let tool_button = new Gtk.ToolButton({ icon_name: value, icon_widget: value, label: value, label_widget: value, stock_id: value, use_underline: value, });
Gtk.ToolButton<!-- -->s are #GtkToolItems containing buttons.
Use Gtk.new to create a new Gtk.ToolButton. Use Gtk.new_from_stock to create a Gtk.ToolButton containing a stock item.
The label of a Gtk.ToolButton is determined by the properties Gtk.label-widget, Gtk.label, and Gtk.stock-id. If Gtk.label-widget is non-null, then that widget is used as the label. Otherwise, if Gtk.label is non-null, that string is used as the label. Otherwise, if Gtk.stock-id is non-null, the label is determined by the stock item. Otherwise, the button does not have a label.
The icon of a Gtk.ToolButton is determined by the properties Gtk.icon-widget and Gtk.stock-id. If Gtk.icon-widget is non-null, then that widget is used as the icon. Otherwise, if Gtk.stock-id is non-null, the icon is determined by the stock item. Otherwise, the button does not have a icon.
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
-
Gtk.Bin
-
Gtk.ToolItem
- Gtk.ToolButton
-
-
-
-
-
Methods
- Gtk.ToolButton.prototype.get_icon_name
- Gtk.ToolButton.prototype.get_icon_widget
- Gtk.ToolButton.prototype.get_label
- Gtk.ToolButton.prototype.get_label_widget
- Gtk.ToolButton.prototype.get_stock_id
- Gtk.ToolButton.prototype.get_use_underline
- Gtk.ToolButton.prototype.set_icon_name
- Gtk.ToolButton.prototype.set_icon_widget
- Gtk.ToolButton.prototype.set_label
- Gtk.ToolButton.prototype.set_label_widget
- Gtk.ToolButton.prototype.set_stock_id
- Gtk.ToolButton.prototype.set_use_underline