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.RadioToolButton

Contents

Description

A RadioToolButton is a ToolItem that contains a radio button, that is, a button that is part of a group of toggle buttons where only one button can be active at a time.

Use radioToolButtonNew to create a new GtkRadioToolButton. Use radioToolButtonNewFromWidget to create a new GtkRadioToolButton that is part of the same group as an existing GtkRadioToolButton.

CSS nodes

GtkRadioToolButton has a single CSS node with name toolbutton.

Synopsis

Exported types

Methods

getGroup

radioToolButtonGetGroup Source #

Arguments

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

button: a RadioToolButton

-> m [RadioButton]

Returns: The group button belongs to.

Returns the radio button group button belongs to.

Since: 2.4

new

radioToolButtonNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioButton a) 
=> [a]

group: An existing radio button group, or Nothing if you are creating a new group

-> m RadioToolButton

Returns: The new RadioToolButton

Creates a new RadioToolButton, adding it to group.

Since: 2.4

newFromStock

radioToolButtonNewFromStock Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioButton a) 
=> [a]

group: an existing radio button group, or Nothing if you are creating a new group

-> Text

stockId: the name of a stock item

-> m RadioToolButton

Returns: The new RadioToolButton

Deprecated: (Since version 3.10)Use radioToolButtonNew instead.

Creates a new RadioToolButton, adding it to group. The new RadioToolButton will contain an icon and label from the stock item indicated by stockId.

Since: 2.4

newFromWidget

radioToolButtonNewFromWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioToolButton a) 
=> Maybe a

group: An existing RadioToolButton, or Nothing

-> m RadioToolButton

Returns: The new RadioToolButton

Creates a new RadioToolButton adding it to the same group as gruup

Since: 2.4

newWithStockFromWidget

radioToolButtonNewWithStockFromWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioToolButton a) 
=> Maybe a

group: An existing RadioToolButton.

-> Text

stockId: the name of a stock item

-> m RadioToolButton

Returns: A new RadioToolButton

Deprecated: (Since version 3.10)gtk_radio_tool_button_new_from_widget

Creates a new RadioToolButton adding it to the same group as group. The new RadioToolButton will contain an icon and label from the stock item indicated by stockId.

Since: 2.4

setGroup

radioToolButtonSetGroup Source #

Arguments

:: (HasCallStack, MonadIO m, IsRadioToolButton a, IsRadioButton b) 
=> a

button: a RadioToolButton

-> [b]

group: an existing radio button group, or Nothing

-> m () 

Adds button to group, removing it from the group it belonged to before.

Since: 2.4

Properties

group

data RadioToolButtonGroupPropertyInfo Source #

Instances

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