Class

GtkToggleToolButton

[]

Description [src]

class Gtk.ToggleToolButton : Gtk.ToolButton
  implements Atk.ImplementorIface, Gtk.Actionable, Gtk.Activatable, Gtk.Buildable {
  /* No available fields */
}

A GtkToggleToolButton is a GtkToolItem that contains a toggle button.

Use gtk_toggle_tool_button_new() to create a new GtkToggleToolButton.

CSS nodes

GtkToggleToolButton has a single CSS node with name togglebutton.

[]

Hierarchy

hierarchy this GtkToggleToolButton implements_0 AtkImplementorIface this--implements_0 implements_1 GtkActionable this--implements_1 implements_2 GtkActivatable this--implements_2 implements_3 GtkBuildable this--implements_3 ancestor_0 GtkToolButton ancestor_0--this ancestor_1 GtkToolItem ancestor_1--ancestor_0 ancestor_2 GtkBin ancestor_2--ancestor_1 ancestor_3 GtkContainer ancestor_3--ancestor_2 ancestor_4 GtkWidget ancestor_4--ancestor_3 ancestor_5 GInitiallyUnowned ancestor_5--ancestor_4 ancestor_6 GObject ancestor_6--ancestor_5

Descendants

[]

Constructors

gtk_toggle_tool_button_new

Returns a new GtkToggleToolButton.

since: 2.4

gtk_toggle_tool_button_new_from_stock

Creates a new GtkToggleToolButton containing the image and text from a stock item. Some stock ids have preprocessor macros like #GTK_STOCK_OK and #GTK_STOCK_APPLY.

deprecated: 3.10 since: 2.4

[]

Instance methods

gtk_toggle_tool_button_get_active

Queries a GtkToggleToolButton and returns its current state. Returns TRUE if the toggle button is pressed in and FALSE if it is raised.

since: 2.4

gtk_toggle_tool_button_set_active

Sets the status of the toggle tool button. Set to TRUE if you want the GtkToggleButton to be “pressed in”, and FALSE to raise it. This action causes the toggled signal to be emitted.

since: 2.4

Methods inherited from GtkToolButton (12)
Methods inherited from GtkToolItem (27)
Methods inherited from GtkBin (1)
Methods inherited from GtkContainer (33)
Methods inherited from GtkWidget (263)
Methods inherited from GObject (43)
Methods inherited from GtkActionable (6)
Methods inherited from GtkActivatable (6)
Methods inherited from GtkBuildable (10)
[]

Properties

Gtk.ToggleToolButton:active

If the toggle tool button should be pressed in.

since: 2.8

Properties inherited from GtkToolButton (6)
Properties inherited from GtkToolItem (3)
Properties inherited from GtkContainer (3)
Properties inherited from GtkWidget (39)
Properties inherited from GtkActionable (2)
Properties inherited from GtkActivatable (2)
[]

Signals

Gtk.ToggleToolButton::toggled

Emitted whenever the toggle tool button changes state.

Signals inherited from GtkToolButton (1)
Signals inherited from GtkToolItem (2)
Signals inherited from GtkContainer (4)
Signals inherited from GtkWidget (69)
Signals inherited from GObject (1)

Class structure

[]

Virtual methods

Gtk.ToggleToolButtonClass.toggled

Signal emitted whenever the toggle tool button changes state.