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 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.
- newtype CheckButton = CheckButton (ManagedPtr CheckButton)
- class GObject o => IsCheckButton o
- toCheckButton :: IsCheckButton o => o -> IO 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 #
GObject CheckButton Source # | |
IsImplementorIface CheckButton Source # | |
IsObject CheckButton Source # | |
IsWidget CheckButton Source # | |
IsToggleButton CheckButton Source # | |
IsContainer CheckButton Source # | |
IsCheckButton CheckButton Source # | |
IsButton CheckButton Source # | |
IsBin CheckButton Source # | |
IsBuildable CheckButton Source # | |
IsActivatable CheckButton Source # | |
IsActionable CheckButton Source # | |
((~) * info (ResolveCheckButtonMethod t CheckButton), MethodInfo * info CheckButton p) => IsLabel t (CheckButton -> p) Source # | |
((~) * info (ResolveCheckButtonMethod t CheckButton), MethodInfo * info CheckButton p) => IsLabelProxy t (CheckButton -> p) Source # | |
HasAttributeList * CheckButton Source # | |
type AttributeList CheckButton Source # | |
type SignalList CheckButton Source # | |
class GObject o => IsCheckButton o Source #
toCheckButton :: IsCheckButton o => o -> IO CheckButton Source #
Methods
new
:: (HasCallStack, MonadIO m) | |
=> m CheckButton | Returns: a |
Creates a new CheckButton
.
newWithLabel
checkButtonNewWithLabel Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m CheckButton | Returns: a |
Creates a new CheckButton
with a Label
to the right of it.
newWithMnemonic
checkButtonNewWithMnemonic Source #
:: (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.