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(void* ptr, Flag!"Take" take)
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.ActionGroup.addActionWithAccel.

Members

Functions

connectChanged
gulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.

getCurrentValue
int getCurrentValue()

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

getGroup
gtk.radio_action.RadioAction[] 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.

joinGroup
void joinGroup(gtk.radio_action.RadioAction groupSource)

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

self
RadioAction self()

Returns this, for use in with statements.

setCurrentValue
void setCurrentValue(int currentValue)

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

setGroup
void setGroup(gtk.radio_action.RadioAction[] group)

Sets the radio group for the radio action object.

Properties

_gType
GType _gType [@property getter]
currentValue
int currentValue [@property getter]

Get currentValue property.

currentValue
int currentValue [@property setter]

Set currentValue property.

group
gtk.radio_action.RadioAction group [@property setter]

Set group property.

value
int value [@property getter]

Get value property.

value
int value [@property setter]

Set value property.

Static functions

_getGType
GType _getGType()
builder
RadioActionGidBuilder builder()

Get builder for gtk.radio_action.RadioAction

Inherited Members

From ToggleAction

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
ToggleAction self()

Returns this, for use in with statements.

builder
ToggleActionGidBuilder builder()

Get builder for gtk.toggle_action.ToggleAction

active
bool active [@property getter]

Get active property.

active
bool active [@property setter]

Set active property.

drawAsRadio
bool drawAsRadio [@property getter]

Get drawAsRadio property.

drawAsRadio
bool drawAsRadio [@property setter]

Set drawAsRadio property.

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.

connectToggled
gulong connectToggled(T callback, Flag!"After" after)

Connect to Toggled signal.