uni-htk-2.2.1.3: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Toolkit.SpinButton

Description

A spin button widget consisting of two button widgets.

Synopsis

Documentation

data Spin Source #

The Spin datatype.

Constructors

Down 
Up 

Instances

Eq Spin Source # 

Methods

(==) :: Spin -> Spin -> Bool #

(/=) :: Spin -> Spin -> Bool #

Ord Spin Source # 

Methods

compare :: Spin -> Spin -> Ordering #

(<) :: Spin -> Spin -> Bool #

(<=) :: Spin -> Spin -> Bool #

(>) :: Spin -> Spin -> Bool #

(>=) :: Spin -> Spin -> Bool #

max :: Spin -> Spin -> Spin #

min :: Spin -> Spin -> Spin #

data SpinButton Source #

The SpinButton datatype.

Instances

Eq SpinButton Source #

Internal.

Destroyable SpinButton Source #

A spin button can be destroyed.

Methods

destroy :: SpinButton -> IO () #

Synchronized SpinButton Source #

You can synchronize on a spin button.

Methods

synchronize :: SpinButton -> IO b -> IO b #

GUIObject SpinButton Source #

Internal.

HasEnable SpinButton Source #

A spin button is a stateful widget, it can be enabled or disabled.

HasFont SpinButton Source #

A spin button has a configureable font.

HasBorder SpinButton Source #

A spin button has a configureable border.

HasSize SpinButton Source #

A spin button has a configureable size.

HasColour SpinButton Source #

A spin button has a normal foreground and background colour and an active/disabled foreground and background colour.

Widget SpinButton Source #

A spin button has standard widget properties (concerning focus, cursor).

newSpinButton Source #

Arguments

:: Container par 
=> par

the parent widget, which has to be a container widget.

-> (Spin -> IO a)

the command to execute, when a button is pressed.

-> [Config SpinButton]

the list of configuration options for this spin button.

-> IO SpinButton

A spin button.

Constructs a new spin button and returns a handler.