RadioToolButton

A #GtkRadioToolButton is a #GtkToolItem that contains a radio button, that is, a button that is part of a group of toggle buttons where only one button can be active at a time.

Use gtk.radio_tool_button.RadioToolButton.new_ to create a new GtkRadioToolButton. Use gtk.radio_tool_button.RadioToolButton.newFromWidget to create a new GtkRadioToolButton that is part of the same group as an existing GtkRadioToolButton.

CSS nodes

GtkRadioToolButton has a single CSS node with name toolbutton.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gtk.radio_button.RadioButton[] group)

Creates a new #GtkRadioToolButton, adding it to group.

Members

Functions

getGroup
gtk.radio_button.RadioButton[] getGroup()

Returns the radio button group button belongs to.

self
RadioToolButton self()

Returns this, for use in with statements.

setGroup
void setGroup(gtk.radio_button.RadioButton[] group)

Adds button to group, removing it from the group it belonged to before.

Properties

_gType
GType _gType [@property getter]
group
gtk.radio_tool_button.RadioToolButton group [@property setter]

Set group property.

Static functions

_getGType
GType _getGType()
builder
RadioToolButtonGidBuilder builder()

Get builder for gtk.radio_tool_button.RadioToolButton

newFromStock
gtk.radio_tool_button.RadioToolButton newFromStock(gtk.radio_button.RadioButton[] group, string stockId)

Creates a new #GtkRadioToolButton, adding it to group. The new #GtkRadioToolButton will contain an icon and label from the stock item indicated by stock_id.

newFromWidget
gtk.radio_tool_button.RadioToolButton newFromWidget(gtk.radio_tool_button.RadioToolButton group)

Creates a new #GtkRadioToolButton adding it to the same group as gruup

newWithStockFromWidget
gtk.radio_tool_button.RadioToolButton newWithStockFromWidget(gtk.radio_tool_button.RadioToolButton group, string stockId)

Creates a new #GtkRadioToolButton adding it to the same group as group. The new #GtkRadioToolButton will contain an icon and label from the stock item indicated by stock_id.

Inherited Members

From ToggleToolButton

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
ToggleToolButton self()

Returns this, for use in with statements.

builder
ToggleToolButtonGidBuilder builder()

Get builder for gtk.toggle_tool_button.ToggleToolButton

active
bool active [@property getter]

Get active property.

active
bool active [@property setter]

Set active property.

newFromStock
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 #GTK_STOCK_OK and #GTK_STOCK_APPLY.

getActive
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.

setActive
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.

connectToggled
gulong connectToggled(T callback, Flag!"After" after)

Connect to Toggled signal.