RadioToolButton

Description 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. Use gtk_radio_tool_button_new_from_stock() or gtk_radio_tool_button_new_from_widget_with_stock() to create a new GtkRAdioToolButton containing a stock item.

Constructors

this
this(GtkRadioToolButton* gtkRadioToolButton)

Sets our main struct and passes it to the parent class

this
this(ListSG group)

Creates a new GtkRadioToolButton, adding it to group. Since 2.4

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. Since 2.4

this
this(RadioToolButton group)

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

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. Since 2.4

Members

Functions

getGroup
ListSG getGroup()

Returns the radio button group button belongs to. Since 2.4

getRadioToolButtonStruct
GtkRadioToolButton* getRadioToolButtonStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
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. Since 2.4

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

Variables

gtkRadioToolButton
GtkRadioToolButton* gtkRadioToolButton;

the main Gtk struct

Inherited Members

From ToggleToolButton

gtkToggleToolButton
GtkToggleToolButton* gtkToggleToolButton;

the main Gtk struct

getToggleToolButtonStruct
GtkToggleToolButton* getToggleToolButtonStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
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.
connectedSignals
int[string] connectedSignals;
onToggledListeners
void delegate(ToggleToolButton)[] onToggledListeners;
Undocumented in source.
addOnToggled
void addOnToggled(void delegate(ToggleToolButton) dlg, ConnectFlags connectFlags)

Emitted whenever the toggle tool button changes state. See Also

callBackToggled
void callBackToggled(GtkToggleToolButton* toggleToolButtonStruct, ToggleToolButton _toggleToolButton)
Undocumented in source. Be warned that the author may not have intended to support it.
setActive
void setActive(int 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. Since 2.4

getActive
int getActive()

Queries a GtkToggleToolButton and returns its current state. Returns TRUE if the toggle button is pressed in and FALSE if it is raised. Since 2.4

Meta