Pixmaps are offscreen drawables. More...
Inherits Gdk::Drawable.
Inherited by Gdk::Bitmap.
Public Member Functions | |
virtual | ~Pixmap () |
GdkPixmap* | gobj () |
Provides access to the underlying C GObject. | |
const GdkPixmap* | gobj () const |
Provides access to the underlying C GObject. | |
GdkPixmap* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Static Public Member Functions | |
static Glib::RefPtr< Pixmap > | create (const Glib::RefPtr< Drawable >& drawable, int width, int height, int depth=-1) |
static Glib::RefPtr< Pixmap > | create (const Glib::RefPtr< Display >& display, NativeWindow anid) |
Protected Member Functions | |
Pixmap () | |
Pixmap (const Glib::RefPtr< Drawable >& drawable, int width, int height, int depth=-1) | |
Pixmap (const Glib::RefPtr< Display >& display, NativeWindow anid) | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gdk::Pixmap > | wrap (GdkPixmapObject* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
Pixmaps are offscreen drawables.
They can be drawn upon with the standard drawing primitives, then copied to another drawable (such as a Gdk::Window) with Gdk::Drawable::draw_drawable(). The depth of a pixmap is the number of bits per pixels. Bitmaps are simply pixmaps with a depth of 1. (That is, they are monochrome bitmaps - each pixel can be either on or off).
virtual Gdk::Pixmap::~Pixmap | ( | ) | [virtual] |
Gdk::Pixmap::Pixmap | ( | ) | [protected] |
Gdk::Pixmap::Pixmap | ( | const Glib::RefPtr< Drawable >& | drawable, | |
int | width, | |||
int | height, | |||
int | depth = -1 | |||
) | [protected] |
Gdk::Pixmap::Pixmap | ( | const Glib::RefPtr< Display >& | display, | |
NativeWindow | anid | |||
) | [protected] |
static Glib::RefPtr<Pixmap> Gdk::Pixmap::create | ( | const Glib::RefPtr< Display >& | display, | |
NativeWindow | anid | |||
) | [static] |
static Glib::RefPtr<Pixmap> Gdk::Pixmap::create | ( | const Glib::RefPtr< Drawable >& | drawable, | |
int | width, | |||
int | height, | |||
int | depth = -1 | |||
) | [static] |
const GdkPixmap* Gdk::Pixmap::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gdk::Drawable.
GdkPixmap* Gdk::Pixmap::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gdk::Drawable.
GdkPixmap* Gdk::Pixmap::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Reimplemented from Gdk::Drawable.
Glib::RefPtr< Gdk::Pixmap > wrap | ( | GdkPixmapObject * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |