Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
A "light switch" style toggle
- data Switch
- castToSwitch :: GObjectClass obj => obj -> Switch
- gTypeSwitch :: GType
- toSwitch :: SwitchClass o => o -> Switch
- switchNew :: IO Switch
- switchSetActive :: SwitchClass self => self -> Bool -> IO ()
- switchGetActive :: SwitchClass self => self -> IO Bool
- switchActive :: SwitchClass self => Attr self Bool
- switchActivate :: SwitchClass self => Signal self (IO ())
Detail
Class Hierarchy
Types
castToSwitch :: GObjectClass obj => obj -> Switch Source #
gTypeSwitch :: GType Source #
Constructors
Methods
switchSetActive :: SwitchClass self => self -> Bool -> IO () Source #
Changes the state of control to the desired one.
See switchGetActive
.
switchGetActive :: SwitchClass self => self -> IO Bool Source #
Gets whether the GtkSwitch is in its on or off state.
Attributes
switchActive :: SwitchClass self => Attr self Bool Source #
Whether the switch is in its on or off state.
Default value: False
Signals
switchActivate :: SwitchClass self => Signal self (IO ()) Source #
This signal on GtkSwitch is an action signal and emitting it causes the switch to animate. Applications should never connect to this signal, but use the notify::active signal.