Safe Haskell | None |
---|---|
Language | Haskell98 |
This module provides access to bitmap resources.
- data BitMap
- newBitMap :: [Config BitMap] -> IO BitMap
- data BitMapHandle
- class GUIObject w => HasBitMap w where
- class BitMapDesignator d where
- 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.
Eq BitMap Source # | |
Destroyable BitMap Source # | A bitmap object can be destroyed. |
Synchronized BitMap Source # | You can synchronize on a bitmap object. |
GUIObject BitMap Source # | Internal. |
HasFile BitMap Source # | Bitmaps can be read from files. |
HasBorder BitMap Source # | A bitmap object has a configureable border (if implicitely displayed inside a label widget). |
HasSize BitMap Source # | You can specify the size of the containing label, if the bitmap is implicitely displayed inside a label widget. |
HasColour BitMap Source # | A bitmap object has a configureable foreground and background colour (if implicitely displayed inside a label widget). |
Widget BitMap Source # | A bitmap object has standard widget properties (concerning focus, cursor / if implicitely displayed inside a label widget). |
BitMapDesignator BitMap Source # | Internal. |
:: [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.
BitMapDesignator BitMapHandle Source # | Internal. |
class GUIObject w => HasBitMap w where Source #
Containers for bitmaps instantiate the class HasBitMap
.
bitmap :: BitMapDesignator d => d -> Config w Source #
getBitMap :: w -> IO BitMapHandle Source #
HasBitMap MenuCascade Source # | A menu cascade item can contain a bitmap (instead of text or an image). |
HasBitMap MenuCheckButton Source # | A menu checkbutton can contain a bitmap (instead of text or an image). |
HasBitMap MenuCommand Source # | A menu command can contain a bitmap (instead of text or an image). |
HasBitMap MenuRadioButton Source # | A menu radiobutton can contain a bitmap (instead of text or an image). |
HasBitMap Button Source # | A button widget can contain a bitmap. |
HasBitMap Label Source # | A label can contain a bitmap. |
HasBitMap MenuButton Source # | A menubutton widget can contain a bitmap. |
HasBitMap BitMapItem Source # | A bitmap item is a container for a bitmap object. |
Window w => HasBitMap (Icon w) Source # | You can the the corresponding bitmap for an icon. |
HasBitMap (CheckButton a) Source # | A checkbutton widget can contain a bitmap. |
HasBitMap (RadioButton a) Source # | A radiobutton widget can contain a bitmap. |
class BitMapDesignator d where Source #
Internal.
toBitMap :: d -> BitMapHandle Source #
BitMapDesignator BitMap Source # | Internal. |
BitMapDesignator BitMapHandle Source # | Internal. |
BitMapDesignator [Char] Source # | A string is a handle for a bitmap file. |
errmap :: BitMapHandle Source #
A handle for the predefined "error" bitmap.
gray50 :: BitMapHandle Source #
A handle for the predefined "gray50" bitmap.
gray25 :: BitMapHandle Source #
A handle for the predefined "gray25" bitmap.
hourglass :: BitMapHandle Source #
A handle for the predefined "hourglass" bitmap.
info :: BitMapHandle Source #
A handle for the predefined "info" bitmap.
questhead :: BitMapHandle Source #
A handle for the predefined "questhead" bitmap.
question :: BitMapHandle Source #
A handle for the predefined "question" bitmap.
warning :: BitMapHandle Source #
A handle for the predefined "warning" bitmap.
setBitMapHandle :: GUIObject w => w -> ConfigID -> BitMapHandle -> Bool -> IO w Source #
Internal.
getBitMapHandle :: GUIObject w => w -> ConfigID -> IO BitMapHandle Source #
Internal.
stringToBitMapHandle :: String -> IO BitMapHandle Source #
Internal.