Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Gdk::Pixmap Class Reference

#include <pixmap.h>

Inheritance diagram for Gdk::Pixmap:

Gdk::Drawable sigc::trackable Gdk::Bitmap

List of all members.


Detailed Description

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).

Definition at line 59 of file pixmap.h.


Public Types

typedef GdkPixmapObjectClass BaseClassType
typedef GdkPixmap BaseObjectType
typedef Pixmap_Class CppClassType
typedef Pixmap CppObjectType
typedef void(* DestroyNotify )(gpointer data)

Public Member Functions

bool _cpp_destruction_is_in_progress () const
void copy_to_image (const Glib::RefPtr< Image > &image, int src_x, int src_y, int dest_x, int dest_y, int width, int height) const
void draw_arc (const Glib::RefPtr< const GC > &gc, bool filled, int x, int y, int width, int height, int angle1, int angle2)
void draw_drawable (const Glib::RefPtr< const GC > &gc, const Glib::RefPtr< const Drawable > &src, int xsrc, int ysrc, int xdest, int ydest, int width=-1, int height=-1)
void draw_glyphs (const Glib::RefPtr< const GC > &gc, const Glib::RefPtr< const Pango::Font > &font, int x, int y, const Pango::GlyphString &glyphs)
void draw_gray_image (const Glib::RefPtr< const GC > &gc, int x, int y, int width, int height, RgbDither dith, const guchar *rgb_buf, int rowstride)
void draw_image (const Glib::RefPtr< const GC > &gc, const Glib::RefPtr< const Image > &image, int xsrc, int ysrc, int xdest, int ydest, int width=-1, int height=-1)
void draw_indexed_image (const Glib::RefPtr< const GC > &gc, int x, int y, int width, int height, RgbDither dith, const guchar *rgb_buf, int rowstride, const RgbCmap &cmap)
void draw_layout (const Glib::RefPtr< const GC > &gc, int x, int y, const Glib::RefPtr< const Pango::Layout > &layout, const Color &foreground, const Color &background)
void draw_layout (const Glib::RefPtr< const GC > &gc, int x, int y, const Glib::RefPtr< const Pango::Layout > &layout)
void draw_layout_line (const Glib::RefPtr< const GC > &gc, int x, int y, const Glib::RefPtr< const Pango::LayoutLine > &line, const Color &foreground, const Color &background)
void draw_layout_line (const Glib::RefPtr< const GC > &gc, int x, int y, const Glib::RefPtr< const Pango::LayoutLine > &line)
void draw_line (const Glib::RefPtr< const GC > &gc, int x1, int y1, int x2, int y2)
void draw_lines (const Glib::RefPtr< const GC > &gc, const Glib::ArrayHandle< Point > &points)
void draw_pixbuf (const Glib::RefPtr< const GC > &gc, const Glib::RefPtr< Pixbuf > &pixbuf, int src_x, int src_y, int dest_x, int dest_y, int width, int height, RgbDither dither, int x_dither, int y_dither)
void draw_point (const Glib::RefPtr< const GC > &gc, int x, int y)
void draw_points (const Glib::RefPtr< const GC > &gc, const Glib::ArrayHandle< Point > &points)
void draw_polygon (const Glib::RefPtr< const GC > &gc, bool filled, const Glib::ArrayHandle< Point > &points)
void draw_rectangle (const Glib::RefPtr< const GC > &gc, bool filled, int x, int y, int width, int height)
void draw_rgb_32_image (const Glib::RefPtr< const GC > &gc, int x, int y, int width, int height, RgbDither dith, const guchar *rgb_buf, int rowstride)
void draw_rgb_32_image_dithalign (const Glib::RefPtr< const GC > &gc, int x, int y, int width, int height, RgbDither dith, const guchar *buf, int rowstride, int xdith, int ydith)
void draw_rgb_image (const Glib::RefPtr< const GC > &gc, int x, int y, int width, int height, RgbDither dith, const guchar *rgb_buf, int rowstride)
void draw_rgb_image_dithalign (const Glib::RefPtr< const GC > &gc, int x, int y, int width, int height, RgbDither dith, const guchar *rgb_buf, int rowstride, int xdith, int ydith)
void draw_segments (const Glib::RefPtr< const GC > &gc, GdkSegment *segs, int nsegs)
Region get_clip_region () const
Glib::RefPtr< Colormapget_colormap ()
void * get_data (const QueryQuark &key)
int get_depth () const
Glib::RefPtr< const Displayget_display () const
Glib::RefPtr< Displayget_display ()
Glib::RefPtr< Imageget_image (int x, int y, int width, int height) const
template<class PropertyType>
void get_property (const Glib::ustring &property_name, PropertyType &value) const
 You probably want to use a specific property_*() accessor method instead.
void get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const
 You probably want to use a specific property_*() accessor method instead.
Glib::RefPtr< const Screenget_screen () const
Glib::RefPtr< Screenget_screen ()
void get_size (int &width, int &height)
Region get_visible_region () const
Glib::RefPtr< Visualget_visual ()
const GdkPixmap * gobj () const
 Provides access to the underlying C GObject.
GdkPixmap * gobj ()
 Provides access to the underlying C GObject.
GObject * gobj_copy () const
GdkPixmap * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
virtual void reference () const
void remove_data (const QueryQuark &quark)
void set_colormap (const Glib::RefPtr< Colormap > &colormap)
void set_data (const Quark &key, void *data, DestroyNotify notify)
void set_data (const Quark &key, void *data)
template<class PropertyType>
void set_property (const Glib::ustring &property_name, const PropertyType &value)
 You probably want to use a specific property_*() accessor method instead.
void set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value)
 You probably want to use a specific property_*() accessor method instead.
void * steal_data (const QueryQuark &quark)
virtual void unreference () const

Static Public Member Functions

static ObjectBase * _get_current_wrapper (GObject *object)
static Glib::RefPtr< Drawablecreate ()
static Glib::RefPtr< Pixmapcreate (const Glib::RefPtr< Display > &display, NativeWindow anid)
static Glib::RefPtr< Pixmapcreate (const Glib::RefPtr< Drawable > &drawable, const char *data, int width, int height, int depth, const Color &fg, const Color &bg)
static Glib::RefPtr< Pixmapcreate (const Glib::RefPtr< Drawable > &drawable, int width, int height, int depth=-1)
static Glib::RefPtr< Pixmapcreate_from_data (const Glib::RefPtr< const Drawable > &drawable, const char *data, int width, int height, int depth, const Color &fg, const Color &bg)
static Glib::RefPtr< Pixmapcreate_from_xpm (const Glib::RefPtr< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const char *const *data)
static Glib::RefPtr< Pixmapcreate_from_xpm (const Glib::RefPtr< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const char *const *data)
static Glib::RefPtr< Pixmapcreate_from_xpm (const Glib::RefPtr< const Drawable > &drawable, const Glib::RefPtr< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const char *const *data)
static Glib::RefPtr< Pixmapcreate_from_xpm (const Glib::RefPtr< const Drawable > &drawable, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const char *const *data)
static Glib::RefPtr< Pixmapcreate_from_xpm (const Glib::RefPtr< const Drawable > &drawable, const Glib::RefPtr< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const std::string &filename)
 Create a Pixmap from a xpm file with colormap.
static Glib::RefPtr< Pixmapcreate_from_xpm (const Glib::RefPtr< const Drawable > &drawable, Glib::RefPtr< Bitmap > &mask, const Color &transparent_color, const std::string &filename)
static Glib::RefPtr< Pixmapcreate_from_xpm (const Glib::RefPtr< const Drawable > &drawable, const Color &transparent_color, const std::string &filename)
 Create a Pixmap from a xpm file.
static GType get_base_type () G_GNUC_CONST
static GType get_type () G_GNUC_CONST

Protected Member Functions

void _set_current_wrapper (GObject *object)
virtual void destroy_notify_ ()
void initialize (GObject *castitem)
bool is_anonymous_custom_ () const
bool is_derived_ () const
 Pixmap (const Glib::RefPtr< Display > &display, NativeWindow anid)
 Pixmap (const Glib::RefPtr< Drawable > &drawable, const char *data, int width, int height, int depth, const Color &fg, const Color &bg)
 Initialize a Pixmap from data.
 Pixmap (const Glib::RefPtr< Drawable > &drawable, int width, int height, int depth=-1)
 Pixmap (GdkPixmap *castitem)
 Pixmap (const Glib::ConstructParams &construct_params)

Static Protected Member Functions

static void destroy_notify_callback_ (void *data)

Protected Attributes

bool cpp_destruction_in_progress_
const char * custom_type_name_
GObject * gobject_

Package Functions

void add_destroy_notify_callback (void *data, func_destroy_notify func) const
void notify_callbacks ()
 Execute and remove all previously installed callbacks.
void remove_destroy_notify_callback (void *data) const

Package Attributes

 __pad0__:func_destroy_notify func_destroy_notify

Private Member Functions

Pixmapoperator= (const Pixmap &)
 Pixmap (const Pixmap &)

Static Private Attributes

static CppClassType pixmap_class_

Friends

class Glib::GSigConnectionNode
class Glib::Object_Class
class Pixmap_Class

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Glib::Object > wrap (GObject *object, bool take_copy=false)
Glib::RefPtr< Gdk::Drawablewrap (GdkDrawable *object, bool take_copy=false)
Glib::RefPtr< Gdk::Pixmapwrap (GdkPixmapObject *object, bool take_copy=false)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index