Safe Haskell | None |
---|---|
Language | Haskell98 |
A simple scroll pane for a scrolled widget.
- data ScrollBox a = ScrollBox {
- fScrollFrame :: Frame
- fPadFrames :: [Frame]
- fScrollBars :: [ScrollBar]
- fScrolledWidget :: a
- newScrollBox :: (Widget wid, HasScroller wid, Container par) => par -> (Frame -> IO wid) -> [Config (ScrollBox wid)] -> IO (ScrollBox wid, wid)
- getScrolledWidget :: (Widget a, HasScroller a) => ScrollBox a -> a
- getScrollBars :: HasScroller a => ScrollBox a -> [ScrollBar]
Documentation
The ScrollBox
datatype.
ScrollBox | |
|
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. |
:: (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.