Gtk2HsContentsIndex
Graphics.UI.Gtk.Display.Image
Description

This widget displays an image.

  • Because Haskell is not the best language to modify large images directly only functions are bound that allow loading images from disc or by stock names.
  • Another function for extracting the Pixbuf is added for CellRenderer.

TODO

  • Figure out what other functions are useful within Haskell. Maybe we should support loading Pixmaps without exposing them.
Synopsis
data Image
class MiscClass o => ImageClass o
castToImage :: GObjectClass obj => obj -> Image
imageNewFromFile :: FilePath -> IO Image
type IconSize = Int
iconSizeMenu :: IconSize
iconSizeSmallToolbar :: IconSize
iconSizeLargeToolbar :: IconSize
iconSizeButton :: IconSize
iconSizeDialog :: IconSize
imageNewFromStock :: String -> IconSize -> IO Image
imageGetPixbuf :: Image -> IO Pixbuf
imageNewFromPixbuf :: Pixbuf -> IO Image
Documentation
data Image
Instances
ImageClass Image
MiscClass Image
WidgetClass Image
ObjectClass Image
GObjectClass Image
class MiscClass o => ImageClass o
Instances
ImageClass Image
castToImage :: GObjectClass obj => obj -> Image
imageNewFromFile :: FilePath -> IO Image
Create an image by loading a file.
type IconSize = Int
iconSizeMenu :: IconSize
iconSizeSmallToolbar :: IconSize
iconSizeLargeToolbar :: IconSize
iconSizeButton :: IconSize
iconSizeDialog :: IconSize
imageNewFromStock :: String -> IconSize -> IO Image
Create a set of images by specifying a stock object.
imageGetPixbuf :: Image -> IO Pixbuf
Extract the Pixbuf from the Image.
imageNewFromPixbuf :: Pixbuf -> IO Image
Create an Image from a Pixbuf.
Produced by Haddock version 0.6