gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.RadioAction

Contents

Description

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

Synopsis

Exported types

Methods

getCurrentValue

radioActionGetCurrentValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioAction a) 
=> a

action: a RadioAction

-> m Int32

Returns: The value of the currently active group member

Deprecated: (Since version 3.10)

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

Since: 2.4

getGroup

radioActionGetGroup Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioAction a) 
=> a

action: the action object

-> m [RadioAction]

Returns: the list representing the radio group for this object

Deprecated: (Since version 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.

A common way to set up a group of radio group is the following:

C code

 GSList *group = NULL;
 GtkRadioAction *action;

 while ( ...more actions to add... /)
   {
      action = gtk_radio_action_new (...);
      
      gtk_radio_action_set_group (action, group);
      group = gtk_radio_action_get_group (action);
   }

Since: 2.4

joinGroup

radioActionJoinGroup Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioAction a, IsRadioAction b) 
=> a

action: the action object

-> Maybe b

groupSource: a radio action object whos group we are joining, or Nothing to remove the radio action from its group

-> m () 

Deprecated: (Since version 3.10)

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

Use this in language bindings instead of the radioActionGetGroup and radioActionSetGroup methods

A common way to set up a group of radio actions is the following:

C code

 GtkRadioAction *action;
 GtkRadioAction *last_action;

 while ( ...more actions to add... /)
   {
      action = gtk_radio_action_new (...);
      
      gtk_radio_action_join_group (action, last_action);
      last_action = action;
   }

Since: 3.0

new

radioActionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

name: A unique name for the action

-> Maybe Text

label: The label displayed in menu items and on buttons, or Nothing

-> Maybe Text

tooltip: A tooltip for this action, or Nothing

-> Maybe Text

stockId: The stock icon to display in widgets representing this action, or Nothing

-> Int32

value: The value which radioActionGetCurrentValue should return if this action is selected.

-> m RadioAction

Returns: a new RadioAction

Deprecated: (Since version 3.10)

Creates a new RadioAction object. To add the action to a ActionGroup and set the accelerator for the action, call actionGroupAddActionWithAccel.

Since: 2.4

setCurrentValue

radioActionSetCurrentValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioAction a) 
=> a

action: a RadioAction

-> Int32

currentValue: the new value

-> m () 

Deprecated: (Since version 3.10)

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

Since: 2.10

setGroup

radioActionSetGroup Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioAction a, IsRadioAction b) 
=> a

action: the action object

-> [b]

group: a list representing a radio group, or Nothing

-> m () 

Deprecated: (Since version 3.10)

Sets the radio group for the radio action object.

Since: 2.4

Properties

currentValue

data RadioActionCurrentValuePropertyInfo Source #

Instances

AttrInfo RadioActionCurrentValuePropertyInfo Source # 
type AttrOrigin RadioActionCurrentValuePropertyInfo Source # 
type AttrLabel RadioActionCurrentValuePropertyInfo Source # 
type AttrGetType RadioActionCurrentValuePropertyInfo Source # 
type AttrBaseTypeConstraint RadioActionCurrentValuePropertyInfo Source # 
type AttrSetTypeConstraint RadioActionCurrentValuePropertyInfo Source # 
type AttrAllowedOps RadioActionCurrentValuePropertyInfo Source # 

group

data RadioActionGroupPropertyInfo Source #

Instances

AttrInfo RadioActionGroupPropertyInfo Source # 
type AttrOrigin RadioActionGroupPropertyInfo Source # 
type AttrLabel RadioActionGroupPropertyInfo Source # 
type AttrGetType RadioActionGroupPropertyInfo Source # 
type AttrBaseTypeConstraint RadioActionGroupPropertyInfo Source # 
type AttrSetTypeConstraint RadioActionGroupPropertyInfo Source # 
type AttrAllowedOps RadioActionGroupPropertyInfo Source # 

value

data RadioActionValuePropertyInfo Source #

Instances

AttrInfo RadioActionValuePropertyInfo Source # 
type AttrOrigin RadioActionValuePropertyInfo Source # 
type AttrLabel RadioActionValuePropertyInfo Source # 
type AttrGetType RadioActionValuePropertyInfo Source # 
type AttrBaseTypeConstraint RadioActionValuePropertyInfo Source # 
type AttrSetTypeConstraint RadioActionValuePropertyInfo Source # 
type AttrAllowedOps RadioActionValuePropertyInfo Source # 

Signals

changed

type RadioActionChangedCallback = RadioAction -> IO () Source #

Deprecated: (Since version 3.10)