gdk.Pixmap.Pixmap Class Reference

Inheritance diagram for gdk.Pixmap.Pixmap:

gdk.Drawable.Drawable gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GdkPixmapgetPixmapStruct ()
 this (GdkPixmap *gdkPixmap)
 Sets our main struct and passes it to the parent class.
 this (Drawable drawable, int width, int height, int depth)
 Create a new pixmap with a given size and depth.

Static Public Member Functions

static Pixmap createFromData (Drawable drawable, char[] data, int width, int height, int depth, Color fg, Color bg)
 Create a two-color pixmap from data in XBM data.
static Pixmap createFromXpm (Drawable drawable, GdkBitmap **mask, Color transparentColor, char[] filename)
 Create a pixmap from a XPM file.
static Pixmap colormapCreateFromXpm (Drawable drawable, Colormap colormap, GdkBitmap **mask, Color transparentColor, char[] filename)
 Create a pixmap from a XPM file using a particular colormap.
static Pixmap createFromXpmD (Drawable drawable, GdkBitmap **mask, Color transparentColor, char **data)
 Create a pixmap from data in XPM format.
static Pixmap colormapCreateFromXpmD (Drawable drawable, Colormap colormap, GdkBitmap **mask, Color transparentColor, char **data)
 Create a pixmap from data in XPM format using a particular colormap.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GdkPixmapgdkPixmap
 the main Gtk struct

Constructor & Destructor Documentation

gdk.Pixmap.Pixmap.this ( GdkPixmap gdkPixmap  ) 

Sets our main struct and passes it to the parent class.

gdk.Pixmap.Pixmap.this ( Drawable  drawable,
int  width,
int  height,
int  depth 
)

Create a new pixmap with a given size and depth.

drawable: A GdkDrawable, used to determine default values for the new pixmap. Can be NULL if depth is specified, width: The width of the new pixmap in pixels. height: The height of the new pixmap in pixels. depth: 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. Returns: the GdkPixmap


Member Function Documentation

static Pixmap gdk.Pixmap.Pixmap.colormapCreateFromXpm ( Drawable  drawable,
Colormap  colormap,
GdkBitmap **  mask,
Color  transparentColor,
char[]  filename 
) [static]

Create a pixmap from a XPM file using a particular colormap.

drawable: a GdkDrawable, used to determine default values for the new pixmap. Can be NULL if colormap is given. colormap: the GdkColormap that the new pixmap will be use. If omitted, the colormap for window will be used. mask: a pointer to a place to store a bitmap representing the transparency mask of the XPM file. Can be NULL, in which case transparency will be ignored. transparent_color: the color to be used for the pixels that are transparent in the input file. Can be NULL, in which case a default color will be used. filename: the filename of a file containing XPM data. Returns: the GdkPixmap.

static Pixmap gdk.Pixmap.Pixmap.colormapCreateFromXpmD ( Drawable  drawable,
Colormap  colormap,
GdkBitmap **  mask,
Color  transparentColor,
char **  data 
) [static]

Create a pixmap from data in XPM format using a particular colormap.

drawable: a GdkDrawable, used to determine default values for the new pixmap. Can be NULL if colormap is given. colormap: the GdkColormap that the new pixmap will be use. If omitted, the colormap for window will be used. mask: a pointer to a place to store a bitmap representing the transparency mask of the XPM file. Can be NULL, in which case transparency will be ignored. transparent_color: the color to be used for the pixels that are transparent in the input file. Can be NULL, in which case a default color will be used. data: Pointer to a string containing the XPM data. Returns: the GdkPixmap.

static Pixmap gdk.Pixmap.Pixmap.createFromData ( Drawable  drawable,
char[]  data,
int  width,
int  height,
int  depth,
Color  fg,
Color  bg 
) [static]

Create a two-color pixmap from data in XBM data.

drawable: a GdkDrawable, used to determine default values for the new pixmap. Can be NULL, if the depth is given. data: a pointer to the data. width: the width of the new pixmap in pixels. height: the height of the new pixmap in pixels. depth: the depth (number of bits per pixel) of the new pixmap. fg: the foreground color. bg: the background color. Returns: the GdkPixmap

static Pixmap gdk.Pixmap.Pixmap.createFromXpm ( Drawable  drawable,
GdkBitmap **  mask,
Color  transparentColor,
char[]  filename 
) [static]

Create a pixmap from a XPM file.

drawable: a GdkDrawable, used to determine default values for the new pixmap. mask: a pointer to a place to store a bitmap representing the transparency mask of the XPM file. Can be NULL, in which case transparency will be ignored. transparent_color: the color to be used for the pixels that are transparent in the input file. Can be NULL, in which case a default color will be used. filename: the filename of a file containing XPM data. Returns: the GdkPixmap

static Pixmap gdk.Pixmap.Pixmap.createFromXpmD ( Drawable  drawable,
GdkBitmap **  mask,
Color  transparentColor,
char **  data 
) [static]

Create a pixmap from data in XPM format.

drawable: a GdkDrawable, used to determine default values for the new pixmap. mask: Pointer to a place to store a bitmap representing the transparency mask of the XPM file. Can be NULL, in which case transparency will be ignored. transparent_color: This color will be used for the pixels that are transparent in the input file. Can be NULL in which case a default color will be used. data: Pointer to a string containing the XPM data. Returns: the GdkPixmap

GdkPixmap* gdk.Pixmap.Pixmap.getPixmapStruct (  ) 

void* gdk.Pixmap.Pixmap.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gdk.Drawable.Drawable.


Member Data Documentation

GdkPixmap* gdk.Pixmap.Pixmap.gdkPixmap [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo