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, bool ownedRef)

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 RadioAction object. To add the action to a ActionGroup and set the accelerator for the action, call gtk.ActionGroup.ActionGroup.addActionWithAccel().

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

Members

Classes

OnChangedDelegateWrapper
class OnChangedDelegateWrapper
Undocumented in source.

Functions

addOnChanged
gulong addOnChanged(void delegate(RadioAction, 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.

getCurrentValue
int getCurrentValue()

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

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.

getRadioActionStruct
GtkRadioAction* getRadioActionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

joinGroup
void joinGroup(RadioAction groupSource)

Joins a radio action object to the group of another radio action object.

setCurrentValue
void setCurrentValue(int currentValue)

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

setGroup
void setGroup(ListSG group)

Sets the radio group for the radio action object.

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* radioactionStruct, GtkRadioAction* current, OnChangedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackChangedDestroy
void callBackChangedDestroy(OnChangedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
GType getType()

Variables

gtkRadioAction
GtkRadioAction* gtkRadioAction;

the main Gtk struct

onChangedListeners
OnChangedDelegateWrapper[] onChangedListeners;
Undocumented in source.

Inherited Members

From ToggleAction

gtkToggleAction
GtkToggleAction* gtkToggleAction;

the main Gtk struct

getToggleActionStruct
GtkToggleAction* getToggleActionStruct(bool transferOwnership)

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

Returns the checked state of the toggle action.

getDrawAsRadio
bool getDrawAsRadio()

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

setActive
void setActive(bool isActive)

Sets the checked state on the toggle action.

setDrawAsRadio
void setDrawAsRadio(bool drawAsRadio)

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

toggled
void toggled()

Emits the “toggled” signal on the toggle action.

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

Should be connected if you wish to perform an action whenever the #GtkToggleAction state is changed.

callBackToggled
void callBackToggled(GtkToggleAction* toggleactionStruct, 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.

Meta