Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
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
- newtype RadioToolButton = RadioToolButton (ManagedPtr RadioToolButton)
- class GObject o => IsRadioToolButton o
- toRadioToolButton :: (MonadIO m, IsRadioToolButton o) => o -> m RadioToolButton
- noRadioToolButton :: Maybe RadioToolButton
- radioToolButtonGetGroup :: (HasCallStack, MonadIO m, IsRadioToolButton a) => a -> m [RadioButton]
- radioToolButtonNew :: (HasCallStack, MonadIO m, IsRadioButton a) => [a] -> m RadioToolButton
- radioToolButtonNewFromStock :: (HasCallStack, MonadIO m, IsRadioButton a) => [a] -> Text -> m RadioToolButton
- radioToolButtonNewFromWidget :: (HasCallStack, MonadIO m, IsRadioToolButton a) => Maybe a -> m RadioToolButton
- radioToolButtonNewWithStockFromWidget :: (HasCallStack, MonadIO m, IsRadioToolButton a) => Maybe a -> Text -> m RadioToolButton
- radioToolButtonSetGroup :: (HasCallStack, MonadIO m, IsRadioToolButton a, IsRadioButton b) => a -> [b] -> m ()
- clearRadioToolButtonGroup :: (MonadIO m, IsRadioToolButton o) => o -> m ()
- constructRadioToolButtonGroup :: (IsRadioToolButton o, IsRadioToolButton a) => a -> IO (GValueConstruct o)
- setRadioToolButtonGroup :: (MonadIO m, IsRadioToolButton o, IsRadioToolButton a) => o -> a -> m ()
Exported types
newtype RadioToolButton Source #
Memory-managed wrapper type.
Instances
class GObject o => IsRadioToolButton o Source #
Type class for types which can be safely cast to RadioToolButton
, for instance with toRadioToolButton
.
Instances
(GObject a, (UnknownAncestorError RadioToolButton a :: Constraint)) => IsRadioToolButton a Source # | |
Defined in GI.Gtk.Objects.RadioToolButton | |
IsRadioToolButton RadioToolButton Source # | |
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
.
noRadioToolButton :: Maybe RadioToolButton Source #
A convenience alias for Nothing
:: Maybe
RadioToolButton
.
Methods
getGroup
radioToolButtonGetGroup Source #
:: (HasCallStack, MonadIO m, IsRadioToolButton a) | |
=> a |
|
-> m [RadioButton] | Returns: The group |
Returns the radio button group button
belongs to.
Since: 2.4
new
:: (HasCallStack, MonadIO m, IsRadioButton a) | |
=> [a] |
|
-> m RadioToolButton | Returns: The new |
Creates a new RadioToolButton
, adding it to group
.
Since: 2.4
newFromStock
radioToolButtonNewFromStock Source #
:: (HasCallStack, MonadIO m, IsRadioButton a) | |
=> [a] |
|
-> Text |
|
-> m RadioToolButton | Returns: The new |
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 #
:: (HasCallStack, MonadIO m, IsRadioToolButton a) | |
=> Maybe a |
|
-> m RadioToolButton | Returns: The new |
Creates a new RadioToolButton
adding it to the same group as gruup
Since: 2.4
newWithStockFromWidget
radioToolButtonNewWithStockFromWidget Source #
:: (HasCallStack, MonadIO m, IsRadioToolButton a) | |
=> Maybe a |
|
-> Text |
|
-> m RadioToolButton | Returns: A new |
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 #
:: (HasCallStack, MonadIO m, IsRadioToolButton a, IsRadioButton b) | |
=> a |
|
-> [b] |
|
-> m () |
Adds button
to group
, removing it from the group it belonged to before.
Since: 2.4
Properties
group
Sets a new group for a radio tool button.
Since: 2.4
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 ]