gtk.toggle_tool_button

Module for [ToggleToolButton] class

Types 3

A #GtkToggleToolButton is a #GtkToolItem that contains a toggle button.

Use [gtk.toggle_tool_button.ToggleToolButton.new_] to create a new GtkToggleToolButton.

CSS nodes

GtkToggleToolButton has a single CSS node with name togglebutton.

Methods
GType _gType() @property
ToggleToolButton self()Returns `this`, for use in `with` statements.
ToggleToolButtonGidBuilder builder()Get builder for [gtk.toggletoolbutton.ToggleToolButton] Returns: New builder object
bool active() @propertyGet `active` property. Returns: If the toggle tool button should be pressed in.
void active(bool propval) @propertySet `active` property. Params: propval = If the toggle tool button should be pressed in.
gtk.toggle_tool_button.ToggleToolButton newFromStock(string stockId)Creates a new #GtkToggleToolButton containing the image and text from a stock item. Some stock ids have preprocessor macros like #GTKSTOCKOK and #GTKSTOCKAPPLY.
bool getActive()Queries a #GtkToggleToolButton and returns its current state. Returns true if the toggle button is pressed in and false if it is raised. Returns: true if the toggle tool button is pressed in, false...
void setActive(bool isActive)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.
gulong connectToggled(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.toggle_tool_button.ToggleToolButton))) && Parameters!T.length < 2)Connect to `Toggled` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Returns a new #GtkToggleToolButton Returns: a newly created #GtkToggleToolButton
Methods
T active(bool propval)Set `active` property. Params: propval = If the toggle tool button should be pressed in. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.toggle_tool_button.ToggleToolButton]