Pixmap.this

Create a new pixmap with a given size and depth. Please use gdk_window_create_similar_surface() instead of this function if you're not forced to use a GdkPixmap. It is intended as the replacement function for this function in GTK 3.

  1. this(GdkPixmap* gdkPixmap)
  2. this(Drawable drawable, int width, int height, int depth)
    class Pixmap
    this

Parameters

drawable Drawable

A GdkDrawable, used to determine default values for the new pixmap. Can be NULL if depth is specified,

width int

The width of the new pixmap in pixels.

height int

The height of the new pixmap in pixels.

depth int

The depth (number of bits per pixel) of the new pixmap. If -1, and drawable is not NULL, the depth of the new pixmap will be equal to that of drawable.

Throws

ConstructionException GTK+ fails to create the object.

Meta