gtk-0.12.3: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Safe HaskellSafe-Infered

Graphics.UI.Gtk.Gdk.Pixmap

Contents

Description

Pixmaps -- Offscreen drawables

Synopsis

Detail

Class Hierarchy

 | GObject
 | +----Drawable
 | +----Pixmap

Types

type Bitmap = PixmapSource

A Bitmap is a special Pixmap in that the number of bits per pixel is one, that is, a pixel is either set or unset. Whenever a function expects a Bitmap, a Pixmap of depth one must be supplied.

Constructors

pixmapNewSource

Arguments

:: DrawableClass drawable 
=> Maybe drawable

drawable - drawable supplying default values for the pixmap

-> Int

width - width of the pixmap

-> Int

height - height of the pixmap

-> Maybe Int

depth - depth of the pixmap

-> IO Pixmap 

Create a new pixmap.

If drawable is Nothing, the depth of the pixmap is taken from the depth parameter, otherwise the pixmap has the same depth as the Drawable specified by drawable. Therefore, at least one of drawable and depth must not be Nothing.