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()

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.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

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()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

OnToggledDelegateWrapper
class OnToggledDelegateWrapper
Undocumented in source.
onToggledListeners
OnToggledDelegateWrapper[] onToggledListeners;
Undocumented in source.
addOnToggled
gulong addOnToggled(void delegate(ToggleToolButton) dlg, ConnectFlags connectFlags)

Emitted whenever the toggle tool button changes state.

callBackToggled
void callBackToggled(GtkToggleToolButton* toggletoolbuttonStruct, OnToggledDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackToggledDestroy
void callBackToggledDestroy(OnToggledDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
internalRemoveOnToggled
void internalRemoveOnToggled(OnToggledDelegateWrapper source)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta