| 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 |
GI.Gtk.Objects.CheckButton
Description
A CheckButton places a discrete ToggleButton next to a widget,
(usually a Label). See the section on ToggleButton widgets for
more information about toggle/check buttons.
The important signal ( ToggleButton::toggled ) is also inherited from
ToggleButton.
CSS nodes
plain code
checkbutton ├── check ╰── <child>
A GtkCheckButton with indicator (see toggleButtonSetMode) has a
main CSS node with name checkbutton and a subnode with name check.
plain code
button.check ├── check ╰── <child>
A GtkCheckButton without indicator changes the name of its main node to button and adds a .check style class to it. The subnode is invisible in this case.
Synopsis
- newtype CheckButton = CheckButton (ManagedPtr CheckButton)
- class GObject o => IsCheckButton o
- toCheckButton :: (MonadIO m, IsCheckButton o) => o -> m CheckButton
- noCheckButton :: Maybe CheckButton
- checkButtonNew :: (HasCallStack, MonadIO m) => m CheckButton
- checkButtonNewWithLabel :: (HasCallStack, MonadIO m) => Text -> m CheckButton
- checkButtonNewWithMnemonic :: (HasCallStack, MonadIO m) => Text -> m CheckButton
Exported types
newtype CheckButton Source #
Memory-managed wrapper type.
Constructors
| CheckButton (ManagedPtr CheckButton) |
Instances
| GObject CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton Methods gobjectType :: CheckButton -> IO GType # | |
| IsImplementorIface CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsObject CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsActionable CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsActivatable CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsBuildable CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsBin CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsButton CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsCheckButton CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsContainer CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsToggleButton CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsWidget CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
class GObject o => IsCheckButton o Source #
Type class for types which can be safely cast to CheckButton, for instance with toCheckButton.
Instances
| (GObject a, (UnknownAncestorError CheckButton a :: Constraint)) => IsCheckButton a Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsCheckButton CheckButton Source # | |
Defined in GI.Gtk.Objects.CheckButton | |
| IsCheckButton RadioButton Source # | |
Defined in GI.Gtk.Objects.RadioButton | |
toCheckButton :: (MonadIO m, IsCheckButton o) => o -> m CheckButton Source #
Cast to CheckButton, for types for which this is known to be safe. For general casts, use castTo.
noCheckButton :: Maybe CheckButton Source #
A convenience alias for Nothing :: Maybe CheckButton.
Methods
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m CheckButton | Returns: a |
Creates a new CheckButton.
newWithLabel
checkButtonNewWithLabel Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m CheckButton | Returns: a |
Creates a new CheckButton with a Label to the right of it.
newWithMnemonic
checkButtonNewWithMnemonic Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m CheckButton | Returns: a new |
Creates a new CheckButton containing a label. The label
will be created using labelNewWithMnemonic, so underscores
in label indicate the mnemonic for the check button.