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

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

Graphics.UI.Gtk.Gdk.Pixmap

Contents

Description

Pixmaps -- Offscreen drawables

This module is empty when built with Gtk3 because Pixmap has been removed.

Synopsis

Detail

Class Hierarchy

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

Types

type Bitmap = Pixmap Source

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

pixmapNew Source

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.