gtk3-0.14.8: Binding to the Gtk+ 3 graphical user interface library

Maintainergtk2hs-users@lists.sourceforge.net
Stabilityprovisional
Portabilityportable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

Graphics.UI.Gtk.Misc.Switch

Contents

Description

A "light switch" style toggle

Synopsis

Detail

Class Hierarchy

| GObject
| +----Object
| +----Widget
| +----Switch

Types

toSwitch :: SwitchClass o => o -> Switch Source #

Constructors

switchNew :: IO Switch Source #

Creates a new Switch.

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.