Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
Create widgets with a discrete toggle button
- data CheckButton
- class ToggleButtonClass o => CheckButtonClass o
- castToCheckButton :: GObjectClass obj => obj -> CheckButton
- gTypeCheckButton :: GType
- toCheckButton :: CheckButtonClass o => o -> CheckButton
- checkButtonNew :: IO CheckButton
- checkButtonNewWithLabel :: GlibString string => string -> IO CheckButton
- checkButtonNewWithMnemonic :: GlibString string => string -> IO CheckButton
Detail
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 ('toggled') is also inherited from ToggleButton
.
Class Hierarchy
|GObject
| +----Object
| +----Widget
| +----Container
| +----Bin
| +----Button
| +----ToggleButton
| +----CheckButton | +----RadioButton
Types
data CheckButton Source
class ToggleButtonClass o => CheckButtonClass o Source
castToCheckButton :: GObjectClass obj => obj -> CheckButton Source
toCheckButton :: CheckButtonClass o => o -> CheckButton Source
Constructors
checkButtonNew :: IO CheckButton Source
Creates a new CheckButton
.
checkButtonNewWithLabel Source
:: GlibString string | |
=> string |
|
-> IO CheckButton |
Creates a new CheckButton
with a Label
to the right of it.
checkButtonNewWithMnemonic Source
:: GlibString string | |
=> string |
|
-> IO CheckButton |
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.