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

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)

Internal.

Destroyable (ScrollBox a)

A scrollbox can be destroyed.

Synchronized (ScrollBox a)

You can synchronize on a scrollbox.

GUIObject (ScrollBox a)

Internal.

HasBorder (ScrollBox a)

A scrollbox has a configureable border.

HasSize (ScrollBox a)

A scrollbox has a configureable size.

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

A scrollbox has a configureable foreground and background colour.

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

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

HasScroller a => HasScroller (ScrollBox a)

A scrollbox has scrollbars.

newScrollBoxSource

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 -> aSource

Gets the scrolled widget from a scrollbox.

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

Gets the scrollbars from a scrollbox.