HTk.Components.BitMap
Description
This module provides access to bitmap resources.
- data BitMap
- newBitMap :: [Config BitMap] -> IO BitMap
- data BitMapHandle
- class GUIObject w => HasBitMap w where
- bitmap :: BitMapDesignator d => d -> Config w
- getBitMap :: w -> IO BitMapHandle
- class BitMapDesignator d where
- toBitMap :: d -> BitMapHandle
- errmap :: BitMapHandle
- gray50 :: BitMapHandle
- gray25 :: BitMapHandle
- hourglass :: BitMapHandle
- info :: BitMapHandle
- questhead :: BitMapHandle
- question :: BitMapHandle
- warning :: BitMapHandle
- setBitMapHandle :: GUIObject w => w -> ConfigID -> BitMapHandle -> Bool -> IO w
- getBitMapHandle :: GUIObject w => w -> ConfigID -> IO BitMapHandle
- stringToBitMapHandle :: String -> IO BitMapHandle
Documentation
The BitMap datatype.
Instances
| Eq BitMap | |
| Destroyable BitMap | A bitmap object can be destroyed. |
| Synchronized BitMap | You can synchronize on a bitmap object. |
| GUIObject BitMap | Internal. |
| HasFile BitMap | Bitmaps can be read from files. |
| HasBorder BitMap | A bitmap object has a configureable border (if implicitely displayed inside a label widget). |
| HasSize BitMap | You can specify the size of the containing label, if the bitmap is implicitely displayed inside a label widget. |
| HasColour BitMap | A bitmap object has a configureable foreground and background colour (if implicitely displayed inside a label widget). |
| Widget BitMap | A bitmap object has standard widget properties (concerning focus, cursor / if implicitely displayed inside a label widget). |
| BitMapDesignator BitMap | Internal. |
Arguments
| :: [Config BitMap] | the list of configuration options for this bitmap object. |
| -> IO BitMap | A bitmap object. |
Constructs a new bitmap object and returns a handler. The bitmap object can be packed like a widget, then it is implicitely displayed inside a label widget.
data BitMapHandle Source
The BitMapHandle datatype - a handle for a bitmap
resource.
Constructors
| Predefined String | |
| BitMapHandle BitMap | |
| BitMapFile String |
Instances
| BitMapDesignator BitMapHandle | Internal. |
class GUIObject w => HasBitMap w whereSource
Containers for bitmaps instantiate the class HasBitMap.
Instances
| HasBitMap MenuCascade | A menu cascade item can contain a bitmap (instead of text or an image). |
| HasBitMap MenuCheckButton | A menu checkbutton can contain a bitmap (instead of text or an image). |
| HasBitMap MenuCommand | A menu command can contain a bitmap (instead of text or an image). |
| HasBitMap MenuRadioButton | A menu radiobutton can contain a bitmap (instead of text or an image). |
| HasBitMap Button | A button widget can contain a bitmap. |
| HasBitMap BitMapItem | A bitmap item is a container for a bitmap object. |
| HasBitMap Label | A label can contain a bitmap. |
| HasBitMap MenuButton | A menubutton widget can contain a bitmap. |
| Window w => HasBitMap (Icon w) | You can the the corresponding bitmap for an icon. |
| HasBitMap (CheckButton a) | A checkbutton widget can contain a bitmap. |
| HasBitMap (RadioButton a) | A radiobutton widget can contain a bitmap. |
class BitMapDesignator d whereSource
Internal.
Methods
toBitMap :: d -> BitMapHandleSource
Instances
| BitMapDesignator BitMap | Internal. |
| BitMapDesignator BitMapHandle | Internal. |
| BitMapDesignator [Char] | A string is a handle for a bitmap file. |
A handle for the predefined "error" bitmap.
A handle for the predefined "gray50" bitmap.
A handle for the predefined "gray25" bitmap.
hourglass :: BitMapHandleSource
A handle for the predefined "hourglass" bitmap.
A handle for the predefined "info" bitmap.
questhead :: BitMapHandleSource
A handle for the predefined "questhead" bitmap.
question :: BitMapHandleSource
A handle for the predefined "question" bitmap.
A handle for the predefined "warning" bitmap.
setBitMapHandle :: GUIObject w => w -> ConfigID -> BitMapHandle -> Bool -> IO wSource
Internal.
getBitMapHandle :: GUIObject w => w -> ConfigID -> IO BitMapHandleSource
Internal.
stringToBitMapHandle :: String -> IO BitMapHandleSource
Internal.