RadioAction

Description A GtkRadioAction is similar to GtkRadioMenuItem. A number of radio actions can be linked together so that only one may be active at any one time.

Constructors

this
this(GtkRadioAction* gtkRadioAction)

Sets our main struct and passes it to the parent class

this
this(string name, string label, string tooltip, StockID stockId, int value)

Creates a new GtkRadioAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel(). Since 2.4

this
this(string name, string label, string tooltip, string stockId, int value)

Creates a new GtkRadioAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel(). Since 2.4

Members

Functions

addOnChanged
void addOnChanged(void delegate(GtkRadioAction*, RadioAction) dlg, ConnectFlags connectFlags)

The ::changed signal is emitted on every member of a radio group when the active member is changed. The signal gets emitted after the ::activate signals for the previous and current active members. Since 2.4

getCurrentValue
int getCurrentValue()

Obtains the value property of the currently active member of the group to which action belongs. Since 2.4

getGroup
ListSG getGroup()

Returns the list representing the radio group for this object. Note that the returned list is only valid until the next change to the group. Since 2.4

getRadioActionStruct
GtkRadioAction* getRadioActionStruct()
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*

setCurrentValue
void setCurrentValue(int currentValue)

Sets the currently active group member to the member with value property current_value. Since 2.10

setGroup
void setGroup(ListSG group)

Sets the radio group for the radio action object. Since 2.4

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

Static functions

callBackChanged
void callBackChanged(GtkRadioAction* actionStruct, GtkRadioAction* current, RadioAction _radioAction)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

connectedSignals
int[string] connectedSignals;
gtkRadioAction
GtkRadioAction* gtkRadioAction;

the main Gtk struct

onChangedListeners
void delegate(GtkRadioAction*, RadioAction)[] onChangedListeners;
Undocumented in source.

Inherited Members

From ToggleAction

gtkToggleAction
GtkToggleAction* gtkToggleAction;

the main Gtk struct

getToggleActionStruct
GtkToggleAction* getToggleActionStruct()
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(ToggleAction)[] onToggledListeners;
Undocumented in source.
addOnToggled
void addOnToggled(void delegate(ToggleAction) dlg, ConnectFlags connectFlags)
callBackToggled
void callBackToggled(GtkToggleAction* toggleactionStruct, ToggleAction _toggleAction)
Undocumented in source. Be warned that the author may not have intended to support it.
toggled
void toggled()

Emits the "toggled" signal on the toggle action. Since 2.4

setActive
void setActive(int isActive)

Sets the checked state on the toggle action. Since 2.4

getActive
int getActive()

Returns the checked state of the toggle action. Since 2.4

setDrawAsRadio
void setDrawAsRadio(int drawAsRadio)

Sets whether the action should have proxies like a radio action. Since 2.4

getDrawAsRadio
int getDrawAsRadio()

Returns whether the action should have proxies like a radio action. Since 2.4

Meta