Source codeContentsIndex
BitMap
Description
This module provides access to bitmap resources.
Synopsis
data BitMap
newBitMap :: [Config BitMap] -> IO BitMap
data BitMapHandle
= Predefined String
| BitMapHandle BitMap
| BitMapFile String
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
data BitMap
The BitMap datatype.
newBitMap
:: [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
The BitMapHandle datatype - a handle for a bitmap resource.
Constructors
Predefined String
BitMapHandle BitMap
BitMapFile String
Instances
BitMapDesignator BitMapHandle
class (GUIObject w) => HasBitMap w where
Methods
bitmap :: (BitMapDesignator d) => d -> Config w
getBitMap :: w -> IO BitMapHandle
Instances
HasBitMap BitMapItem
HasBitMap Button
HasBitMap (CheckButton a)
(Window w) => HasBitMap (Icon w)
HasBitMap Label
HasBitMap MenuButton
HasBitMap MenuCascade
HasBitMap MenuCheckButton
HasBitMap MenuCommand
HasBitMap MenuRadioButton
HasBitMap (RadioButton a)
class BitMapDesignator d where
Internal.
Methods
toBitMap :: d -> BitMapHandle
Internal.
Instances
BitMapDesignator BitMapHandle
BitMapDesignator BitMap
BitMapDesignator [Char]
errmap :: BitMapHandle
A handle for the predefined "error" bitmap.
gray50 :: BitMapHandle
A handle for the predefined "gray50" bitmap.
gray25 :: BitMapHandle
A handle for the predefined "gray25" bitmap.
hourglass :: BitMapHandle
A handle for the predefined "hourglass" bitmap.
info :: BitMapHandle
A handle for the predefined "info" bitmap.
questhead :: BitMapHandle
A handle for the predefined "questhead" bitmap.
question :: BitMapHandle
A handle for the predefined "question" bitmap.
warning :: BitMapHandle
A handle for the predefined "warning" bitmap.
setBitMapHandle :: (GUIObject w) => w -> ConfigID -> BitMapHandle -> Bool -> IO w
getBitMapHandle :: (GUIObject w) => w -> ConfigID -> IO BitMapHandle
Internal.
stringToBitMapHandle :: String -> IO BitMapHandle
Internal.
Produced by Haddock version 0.3