gi-gtk-4.0.1: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.RadioToolButton

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

class (GObject o, IsDescendantOf RadioToolButton o) => IsRadioToolButton o Source #

Type class for types which can be safely cast to RadioToolButton, for instance with toRadioToolButton.

Instances

Instances details
(GObject o, IsDescendantOf RadioToolButton o) => IsRadioToolButton o Source # 
Instance details

Defined in GI.Gtk.Objects.RadioToolButton

toRadioToolButton :: (MonadIO m, IsRadioToolButton o) => o -> m RadioToolButton Source #

Cast to RadioToolButton, for types for which this is known to be safe. For general casts, use castTo.

Methods

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

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.

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

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.

Properties

group

Sets a new group for a radio tool button.

clearRadioToolButtonGroup :: (MonadIO m, IsRadioToolButton o) => o -> m () Source #

Set the value of the “group” property to Nothing. When overloading is enabled, this is equivalent to

clear #group

constructRadioToolButtonGroup :: (IsRadioToolButton o, IsRadioToolButton a) => a -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “group” property. This is rarely needed directly, but it is used by new.

setRadioToolButtonGroup :: (MonadIO m, IsRadioToolButton o, IsRadioToolButton a) => o -> a -> m () Source #

Set the value of the “group” property. When overloading is enabled, this is equivalent to

set radioToolButton [ #group := value ]