RadioAction

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)

Warning gtk_radio_action_new is deprecated and should not be used in newly-written code. 3.10 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)

Warning GtkRadioAction::changed is deprecated and should not be used in newly-written code. 3.10 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()

Warning gtk_radio_action_get_current_value is deprecated and should not be used in newly-written code. 3.10 Obtains the value property of the currently active member of the group to which action belongs. Since 2.4

getGroup
ListSG getGroup()

Warning gtk_radio_action_get_group is deprecated and should not be used in newly-written code. 3.10 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*

joinGroup
void joinGroup(GtkRadioAction* groupSource)

Warning gtk_radio_action_join_group is deprecated and should not be used in newly-written code. 3.10 Joins a radio action object to the group of another radio action object. Use this in language bindings instead of the gtk_radio_action_get_group() and gtk_radio_action_set_group() methods

setCurrentValue
void setCurrentValue(int currentValue)

Warning gtk_radio_action_set_current_value is deprecated and should not be used in newly-written code. 3.10 Sets the currently active group member to the member with value property current_value. Since 2.10

setGroup
void setGroup(ListSG group)

Warning gtk_radio_action_set_group is deprecated and should not be used in newly-written code. 3.10 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)

Warning GtkToggleAction::toggled is deprecated and should not be used in newly-written code. 3.10 Should be connected if you wish to perform an action whenever the GtkToggleAction state is changed.

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

Warning gtk_toggle_action_toggled is deprecated and should not be used in newly-written code. 3.10 Emits the "toggled" signal on the toggle action. Since 2.4

setActive
void setActive(int isActive)

Warning gtk_toggle_action_set_active is deprecated and should not be used in newly-written code. 3.10 Sets the checked state on the toggle action. Since 2.4

getActive
int getActive()

Warning gtk_toggle_action_get_active is deprecated and should not be used in newly-written code. 3.10 Returns the checked state of the toggle action. Since 2.4

setDrawAsRadio
void setDrawAsRadio(int drawAsRadio)

Warning gtk_toggle_action_set_draw_as_radio is deprecated and should not be used in newly-written code. 3.10 Sets whether the action should have proxies like a radio action. Since 2.4

getDrawAsRadio
int getDrawAsRadio()

Warning gtk_toggle_action_get_draw_as_radio is deprecated and should not be used in newly-written code. 3.10 Returns whether the action should have proxies like a radio action. Since 2.4

Meta