RadioAction

A gtk.RadioAction is similar to gtk.RadioMenuItem 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 gtk.RadioAction object. To add the action to a gtk.ActionGroup and set the accelerator for the action, call Action.groupAddActionWithAccel.

Members

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.

Static functions

getType
GType getType()

Variables

gtkRadioAction
GtkRadioAction* gtkRadioAction;

the main Gtk struct

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*

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.

addOnToggled
gulong addOnToggled(void delegate(ToggleAction) dlg, ConnectFlags connectFlags)

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