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

Safe HaskellNone
LanguageHaskell98

HTk.Toolkit.ScrollBox

Description

A simple scroll pane for a scrolled widget.

Synopsis

Documentation

data ScrollBox a Source #

The ScrollBox datatype.

Instances

Eq (ScrollBox a) Source #

Internal.

Methods

(==) :: ScrollBox a -> ScrollBox a -> Bool #

(/=) :: ScrollBox a -> ScrollBox a -> Bool #

Destroyable (ScrollBox a) Source #

A scrollbox can be destroyed.

Methods

destroy :: ScrollBox a -> IO () #

Synchronized (ScrollBox a) Source #

You can synchronize on a scrollbox.

Methods

synchronize :: ScrollBox a -> IO b -> IO b #

GUIObject (ScrollBox a) Source #

Internal.

HasBorder (ScrollBox a) Source #

A scrollbox has a configureable border.

HasSize (ScrollBox a) Source #

A scrollbox has a configureable size.

(HasColour a, HasScroller a) => HasColour (ScrollBox a) Source #

A scrollbox has a configureable foreground and background colour.

(Widget a, HasScroller a) => Widget (ScrollBox a) Source #

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

HasScroller a => HasScroller (ScrollBox a) Source #

A scrollbox has scrollbars.

newScrollBox Source #

Arguments

:: (Widget wid, HasScroller wid, Container par) 
=> par

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

-> (Frame -> IO wid)

a function that returns the scrollbox'es content for a given parent container.

-> [Config (ScrollBox wid)]

the list of configuration options for this scrollbox.

-> IO (ScrollBox wid, wid)

A scrollbox.

Constructs a new scrollbox and returns a handler.

getScrolledWidget :: (Widget a, HasScroller a) => ScrollBox a -> a Source #

Gets the scrolled widget from a scrollbox.

getScrollBars :: HasScroller a => ScrollBox a -> [ScrollBar] Source #

Gets the scrollbars from a scrollbox.