| ||||||||||
| ||||||||||
| ||||||||||
Description | ||||||||||
A container which can hide its child
| ||||||||||
Synopsis | ||||||||||
Detail | ||||||||||
A Expander allows the user to hide or show its child by clicking on an expander triangle similar to the triangles used in a TreeView. Normally you use an expander as you would use any other descendant of Bin; you create the child widget and use containerAdd to add it to the expander. When the expander is toggled, it will take care of showing and hiding the child automatically. | ||||||||||
Class Hierarchy | ||||||||||
| GObject | +----Object | +----Widget | +----Container | +----Bin | +----Expander | ||||||||||
Types | ||||||||||
data Expander | ||||||||||
| ||||||||||
class BinClass o => ExpanderClass o | ||||||||||
| ||||||||||
castToExpander :: GObjectClass obj => obj -> Expander | ||||||||||
Constructors | ||||||||||
expanderNew :: String -> IO Expander | ||||||||||
Creates a new expander using the given string as the text of the label. | ||||||||||
expanderNewWithMnemonic | ||||||||||
| ||||||||||
Methods | ||||||||||
expanderSetExpanded :: Expander -> Bool -> IO () | ||||||||||
Sets the state of the expander. Set to True, if you want the child widget to be revealed, and False if you want the child widget to be hidden. | ||||||||||
expanderGetExpanded :: Expander -> IO Bool | ||||||||||
Queries a Expander and returns its current state. Returns True if the child widget is revealed. See expanderSetExpanded. | ||||||||||
expanderSetSpacing :: Expander -> Int -> IO () | ||||||||||
Sets the spacing field of expander, which is the number of pixels to place between expander and the child. | ||||||||||
expanderGetSpacing | ||||||||||
| ||||||||||
expanderSetLabel :: Expander -> String -> IO () | ||||||||||
Sets the text of the label of the expander to label. This will also clear any previously set labels. | ||||||||||
expanderGetLabel :: Expander -> IO String | ||||||||||
Fetches the text from the label of the expander, as set by expanderSetLabel. | ||||||||||
expanderSetUseUnderline | ||||||||||
| ||||||||||
expanderGetUseUnderline | ||||||||||
| ||||||||||
expanderSetUseMarkup | ||||||||||
| ||||||||||
expanderGetUseMarkup :: Expander -> IO Bool | ||||||||||
Returns whether the label's text is interpreted as marked up with the Pango text markup language. See expanderSetUseMarkup. | ||||||||||
expanderSetLabelWidget | ||||||||||
| ||||||||||
expanderGetLabelWidget | ||||||||||
| ||||||||||
Attributes | ||||||||||
expanderExpanded :: Attr Expander Bool | ||||||||||
Whether the expander has been opened to reveal the child widget. Default value: False | ||||||||||
expanderLabel :: Attr Expander String | ||||||||||
Text of the expander's label. | ||||||||||
expanderUseUnderline :: Attr Expander Bool | ||||||||||
If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key. Default value: False | ||||||||||
expanderUseMarkup :: Attr Expander Bool | ||||||||||
The text of the label includes XML markup. See pango_parse_markup(). Default value: False | ||||||||||
expanderSpacing :: Attr Expander Int | ||||||||||
Space to put between the label and the child. Allowed values: >= 0 Default value: 0 | ||||||||||
expanderLabelWidget :: WidgetClass labelWidget => ReadWriteAttr Expander Widget labelWidget | ||||||||||
A widget to display in place of the usual expander label. | ||||||||||
Signals | ||||||||||
onActivate :: Expander -> IO () -> IO (ConnectId Expander) | ||||||||||
afterActivate :: Expander -> IO () -> IO (ConnectId Expander) | ||||||||||
Produced by Haddock version 0.7 |