HTk.Toolkit.IconBar
Description
A simple icon bar containing buttons and separators.
- data IconBar
- newIconBar :: Container par => par -> [Config IconBar] -> IO IconBar
- addSeparator :: IconBar -> IO Separator
- addButton :: IconBar -> [Config Button] -> IO Button
- data Button
- type Separator = Frame
- getIconButtons :: IconBar -> IO [Button]
- getIconBarItems :: IconBar -> IO [Either Frame Button]
Documentation
The IconBar datatype.
Instances
| Eq IconBar | Internal. |
| Destroyable IconBar | An icon bar can be destroyed. |
| Synchronized IconBar | You can synchronize on an icon bar object. |
| GUIObject IconBar | Internal. |
| HasEnable IconBar | An icon bar is a stateful widget, it can be enabled or disabled. |
| HasOrientation IconBar | An icon bar has either a vertical or horizontal orientation. |
| HasBorder IconBar | An icon bar has a configureable border. |
| HasSize IconBar | An icon bar has a configureable size. |
| HasColour IconBar | An icon bar has a configureable foreground and background colour. |
| Widget IconBar | An icon bar has standard widget properties (concerning focus, cursor). |
Arguments
| :: Container par | |
| => par | the parent widget (which has to be a container widget). |
| -> [Config IconBar] | the list of configuration options for this icon bar. |
| -> IO IconBar | An icon bar. |
Creates a new icon bar and returns a handler.
Adds a separator at the end of the icon bar.
Arguments
| :: IconBar | the concerned icon bar. |
| -> [Config Button] | the list of configuration options for the button to add. |
| -> IO Button | A button. |
Adds a button at the end of the icon bar.
The Button datatype.
Instances
| Eq Button | |
| Destroyable Button | A button widget can be destroyed. |
| Synchronized Button | You can synchronize on a button object. |
| GUIObject Button | Internal. |
| HasEnable Button | A button widget is a stateful widget, it can be enabled or disabled. |
| HasJustify Button | A button has a configureable text justification. |
| HasUnderline Button | You can set the index of a text character to underline. |
| HasFont Button | You can specify the font of a button. |
| HasBorder Button | A button widget has a configureable border. |
| HasSize Button | You can specify the size of a button. |
| HasColour Button | A button widget has a normal foreground and background colour and an active/disabled foreground and background colour. |
| HasAnchor Button | A button has a text anchor. |
| HasTooltip Button | A button can have a tooltip. |
| Widget Button | A button widget has standard widget properties (concerning focus, cursor). |
| HasCommand Button | When a button is clicked, a corresponding event is invoked. |
| ButtonWidget Button | A button widget can be flashed (redisplayed several times in alternate colours) and invoked (the associated event). |
| HasBitMap Button | A button widget can contain a bitmap. |
| HasPhoto Button | A button can contain an image. |
| GUIValue v => HasText Button v | A button can contain text. |
Gets the buttons from an icon bar.