Source codeContentsIndex
ScrollBox
Description
A simple scroll pane for a scrolled widget.
Synopsis
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
data ScrollBox a
The ScrollBox datatype.
Constructors
ScrollBox
fScrollFrame :: Frame
fPadFrames :: [Frame]
fScrollBars :: [ScrollBar]
fScrolledWidget :: a
Instances
Eq (ScrollBox a)
GUIObject (ScrollBox a)
Destroyable (ScrollBox a)
(Widget a, HasScroller a) => Widget (ScrollBox a)
(HasColour a, HasScroller a) => HasColour (ScrollBox a)
HasBorder (ScrollBox a)
(HasScroller a) => HasScroller (ScrollBox a)
Synchronized (ScrollBox a)
HasSize (ScrollBox a)
newScrollBox
:: (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
getScrollBars :: (HasScroller a) => ScrollBox a -> [ScrollBar]
Gets the scrollbars from a scrollbox.
Produced by Haddock version 0.3