Gtk-- Reference: Gdk_Pixmap

Class Index | Cross Index | Namespace Index

# Class Gdk_Pixmap

Remote Pixmap Handle
Contained in: global
Derived from: Gdk_Drawable
Derived by: none

#include <gtk--/pixmap.h>

### public function member index:
`` | `Gdk_Pixmap` | `()`;
`` | `Gdk_Pixmap` | `(`GdkPixmap`* `pixmap`)`;
`` | `Gdk_Pixmap` | `(`Gdk_Pixmap` `const`& `pixmap`)`;
`` | `Gdk_Pixmap` | `(`const` `Gdk_Drawable`& `drawable`, `gint` `width`, `gint` `height`, `gint` `depth`=-1)`;
`` | `Gdk_Pixmap` | `(`gint` `width`, `gint` `height`, `gint` `depth`=-1)`;
`` | `Gdk_Pixmap` | `(`const` `Gdk_Drawable`& `drawable`, `const` `gchar`* `data`, `gint` `width`, `gint` `height`, `gint` `depth`, `const` `Gdk_Color`& `fg`, `const` `Gdk_Color`& `bg`)`;
`` | `Gdk_Pixmap` | `(`const` `Gdk_Drawable`& `drawable`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
`` | `Gdk_Pixmap` | `(`const` `Gdk_Drawable`& `drawable`, `Gdk_Bitmap`& `bitmap`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
`` | `Gdk_Pixmap` | `(`const` `Gdk_Drawable`& `drawable`, `Gdk_Colormap`& `colormap`, `Gdk_Bitmap`& `bitmap`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
``void`` | `create` | `(`const` `Gdk_Drawable`& `drawable`, `gint` `width`, `gint` `height`, `gint` `depth`=-1)`;
``void`` | `create` | `(`gint` `width`, `gint` `height`, `gint` `depth`=-1)`;
``void`` | `create_colormap_from_xpm` | `(`const` `Gdk_Drawable`& `drawable`, `Gdk_Colormap`& `colormap`, `Gdk_Bitmap`& `bitmap`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
``void`` | `create_colormap_from_xpm_d` | `(`const` `Gdk_Drawable`& `drawable`, `Gdk_Colormap`& `colormap`, `Gdk_Bitmap`& `mask`, `const` `Gdk_Color`& `transparent_color`, `const` `gchar`* `const`* `data`)`;
``void`` | `create_from_data` | `(`const` `Gdk_Drawable`& `drawable`, `const` `gchar`* `data`, `gint` `width`, `gint` `height`, `gint` `depth`, `const` `Gdk_Color`& `fg`, `const` `Gdk_Color`& `bg`)`;
``void`` | `create_from_xpm` | `(`const` `Gdk_Drawable`& `drawable`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
``void`` | `create_from_xpm` | `(`const` `Gdk_Drawable`& `drawable`, `Gdk_Bitmap`& `mask`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
``void`` | `create_from_xpm_d` | `(`const` `Gdk_Drawable`& `drawable`, `Gdk_Bitmap`& `bitmap`, `const` `Gdk_Color`& `transparent_color`, `const` `gchar`* `const`* `data`)`;
``Gdk_Pixmap`&` | `operator``=` | `(`const` `Gdk_Pixmap`&)`;
``static` `void`` | `warn_about_xpm_file_problem` | `(`const` `Gtk::string`& `filename`)`;
``virtual`` | `~Gdk_Pixmap` | `()`;
### private function member index:
``virtual` `void`` | `ref` | `()`;
``virtual` `void`` | `unref` | `()`;

## Description:

In all of the create and ctors the Drawable can be set to NULL in which case the pixmap will be based on the root window. Also the Colormap can be set to NULL, in which case it will build the colormap off of the windows colormap. Depth can be set to -1 which will cause the pixmap to take they depth of the window.

If there are not enough sonstrains specified the pixmap will warn and return an unconnected Pixmap.

## Function Member Descriptions:

Gdk_Pixmap::Gdk_Pixmap - Wrap an existing Gdk pixmap.

`` `Gdk_Pixmap``(`GdkPixmap`* `pixmap`)`;
Gdk_Pixmap::Gdk_Pixmap - Construct a pixmap handle from an existing one.

`` `Gdk_Pixmap``(`Gdk_Pixmap` `const`& `pixmap`)`;
Gdk_Pixmap::Gdk_Pixmap - Create a Pixmap based on window.

`` `Gdk_Pixmap``(`const` `Gdk_Drawable`& `drawable`, `gint` `width`, `gint` `height`, `gint` `depth`=-1)`;
Gdk_Pixmap::Gdk_Pixmap - Create a Pixmap based on root window.

`` `Gdk_Pixmap``(`gint` `width`, `gint` `height`, `gint` `depth`=-1)`;
Gdk_Pixmap::Gdk_Pixmap - Create a Pixmap from an array of data.

`` `Gdk_Pixmap``(`const` `Gdk_Drawable`& `drawable`, `const` `gchar`* `data`, `gint` `width`, `gint` `height`, `gint` `depth`, `const` `Gdk_Color`& `fg`, `const` `Gdk_Color`& `bg`)`;
Gdk_Pixmap::Gdk_Pixmap - Create a Pixmap from a xpm file.

`` `Gdk_Pixmap``(`const` `Gdk_Drawable`& `drawable`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
Gdk_Pixmap::Gdk_Pixmap - Create a Pixmap from a xpm file.

`` `Gdk_Pixmap``(`const` `Gdk_Drawable`& `drawable`, `Gdk_Bitmap`& `bitmap`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
Gdk_Pixmap::Gdk_Pixmap - Create a Pixmap from a xpm file with colormap.

`` `Gdk_Pixmap``(`const` `Gdk_Drawable`& `drawable`, `Gdk_Colormap`& `colormap`, `Gdk_Bitmap`& `bitmap`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
Gdk_Pixmap::create - Create a Pixmap for a specified window.

``void`` `create``(`const` `Gdk_Drawable`& `drawable`, `gint` `width`, `gint` `height`, `gint` `depth`=-1)`;

> depth defaults to that of the window.

Gdk_Pixmap::create - Create a Pixmap based off of root window.

``void`` `create``(`gint` `width`, `gint` `height`, `gint` `depth`=-1)`;

> depth defaults to that of root.

Gdk_Pixmap::create_colormap_from_xpm - Create a Pixmap from a xpm file with colormap.

``void`` `create_colormap_from_xpm``(`const` `Gdk_Drawable`& `drawable`, `Gdk_Colormap`& `colormap`, `Gdk_Bitmap`& `bitmap`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
Gdk_Pixmap::create_from_data - Create a Pixmap from an array of data.

``void`` `create_from_data``(`const` `Gdk_Drawable`& `drawable`, `const` `gchar`* `data`, `gint` `width`, `gint` `height`, `gint` `depth`, `const` `Gdk_Color`& `fg`, `const` `Gdk_Color`& `bg`)`;
Gdk_Pixmap::create_from_xpm - Create a Pixmap from a xpm file.

``void`` `create_from_xpm``(`const` `Gdk_Drawable`& `drawable`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
Gdk_Pixmap::create_from_xpm - Create a Pixmap from a xpm file.

``void`` `create_from_xpm``(`const` `Gdk_Drawable`& `drawable`, `Gdk_Bitmap`& `mask`, `const` `Gdk_Color`& `transparent_color`, `const` `Gtk::string`& `filename`)`;
Gdk_Pixmap::~Gdk_Pixmap - Destroy a pixmap handle.

``virtual`` `~Gdk_Pixmap``()`;

## Variable Member Descriptions: