|
|
|
|
|
| Description |
| This module provides access to image resources from files or base64
encoded strings. |
|
| Synopsis |
|
|
|
| Documentation |
|
| class (GUIObject w) => HasPhoto w where |
| Image containers instantiate the class HasPhoto. | | | Methods | | photo :: Image -> Config w | | Associates an image container (e.g. a label) with the given image. | | | getPhoto :: w -> IO (Maybe Image) | | Gets the image associated with the given image container. |
| | | Instances | |
|
|
| data Image |
| The Image datatype. |
|
| newImage |
| :: [Config Image] | the list of configuration options for this image
object. | | -> IO Image | An image object. | | Constructs a new image object and returns a handler.
The image object can be packed like a widget, then it is implicitely
displayed inside a label widget. |
|
|
| intToImage :: Int -> IO (Maybe Image) |
|
| imageToInt :: Image -> IO Int |
| Internal. |
|
| data Format |
| The Format datatype - represents the format of a base64
encoded image (see Image.imgData). | | Constructors | |
|
|
| imgData :: Format -> String -> Config Image |
| Sets the image data from a base64 encoded string. |
|
| Produced by Haddock version 0.3 |