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
ToggleToolButtonGidBuilder builder() static nothrowGet builder for [gtk.toggle_tool_button.ToggleToolButton] Returns: New builder objectbool active() @property nothrowGet `active` property. Returns: If the toggle tool button should be pressed in.void active(bool propval) @property nothrowSet `active` property. Params: propval = If the toggle tool button should be pressed in.gtk.toggle_tool_button.ToggleToolButton newFromStock(string stockId) static nothrowCreates 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.bool getActive() nothrowQueries 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) nothrowSets 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) nothrowConnect to `Toggled` signal.Fluent builder implementation template for gtk.toggle_tool_button.ToggleToolButton
Methods
T active(bool propval) nothrowSet `active` property. Params: propval = If the toggle tool button should be pressed in. Returns: Builder instance for fluent chainingFluent builder for gtk.toggle_tool_button.ToggleToolButton
Methods