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_new() to create a new GtkRadioToolButton. Use gtk_radio_tool_button_new_from_widget() 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(GtkRadioToolButton* gtkRadioToolButton, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(ListSG group)

Creates a new #GtkRadioToolButton, adding it to @group.

this
this(ListSG 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.

this
this(RadioToolButton group)

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

this
this(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.

Members

Functions

getGroup
ListSG getGroup()

Returns the radio button group @button belongs to.

getRadioToolButtonStruct
GtkRadioToolButton* getRadioToolButtonStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setGroup
void setGroup(ListSG group)

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

Static functions

getType
GType getType()

Variables

gtkRadioToolButton
GtkRadioToolButton* gtkRadioToolButton;

the main Gtk struct

Inherited Members

From ToggleToolButton

gtkToggleToolButton
GtkToggleToolButton* gtkToggleToolButton;

the main Gtk struct

getToggleToolButtonStruct
GtkToggleToolButton* getToggleToolButtonStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
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.

addOnToggled
gulong addOnToggled(void delegate(ToggleToolButton) dlg, ConnectFlags connectFlags)

Emitted whenever the toggle tool button changes state.

Meta