gtk.radio_tool_button

Module for [RadioToolButton] class

Types 3

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.

Methods
GType _gType() @property
RadioToolButton self()Returns `this`, for use in `with` statements.
RadioToolButtonGidBuilder builder()Get builder for [gtk.radiotoolbutton.RadioToolButton] Returns: New builder object
void group(gtk.radio_tool_button.RadioToolButton propval) @propertySet `group` property. Params: propval = Sets a new group for a radio tool button.
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.
gtk.radio_tool_button.RadioToolButton newFromWidget(gtk.radio_tool_button.RadioToolButton group = null)Creates a new #GtkRadioToolButton adding it to the same group as gruup
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.
gtk.radio_button.RadioButton[] getGroup()Returns the radio button group button belongs to. Returns: The group button belongs to.
void setGroup(gtk.radio_button.RadioButton[] group = null)Adds button to group, removing it from the group it belonged to before.
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.radio_button.RadioButton[] group = null)Creates a new #GtkRadioToolButton, adding it to group.
Methods
T group(gtk.radio_tool_button.RadioToolButton propval)Set `group` property. Params: propval = Sets a new group for a radio tool button. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.radio_tool_button.RadioToolButton]