Ardour  9.0-pre0-582-g084a23a80d
Gdk::Pixmap Class Reference

#include <pixmap.h>

Inheritance diagram for Gdk::Pixmap:
[legend]

Public Member Functions

virtual ~Pixmap ()
 
GdkPixmapgobj ()
 Provides access to the underlying C GObject. More...
 
const GdkPixmapgobj () const
 Provides access to the underlying C GObject. More...
 
GdkPixmapgobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
- Public Member Functions inherited from Gdk::Drawable
virtual ~Drawable ()
 
GdkDrawablegobj ()
 Provides access to the underlying C GObject. More...
 
const GdkDrawablegobj () const
 Provides access to the underlying C GObject. More...
 
GdkDrawablegobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
void get_size (int &width, int &height)
 
void get_size (int &width, int &height) const
 
int get_depth () const
 
void set_colormap (const Glib::RefPtr< Colormap > &colormap)
 
Glib::RefPtr< Colormapget_colormap ()
 
Glib::RefPtr< Visualget_visual ()
 
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_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_rectangle (const Glib::RefPtr< const GC > &gc, bool filled, int x, int y, int width, int height)
 
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_polygon (const Glib::RefPtr< const GC > &gc, bool filled, const Glib::ArrayHandle< Point > &points)
 
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_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_segments (const Glib::RefPtr< const GC > &gc, GdkSegment *segs, int n_segs)
 
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_layout_line (const Glib::RefPtr< const GC > &gc, int x, int y, const Glib::RefPtr< const Pango::LayoutLine > &line)
 
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 (const Glib::RefPtr< const GC > &gc, int x, int y, const Glib::RefPtr< const Pango::Layout > &layout)
 
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_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_pixbuf (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)
 
Glib::RefPtr< Imageget_image (int x, int y, int width, int height) 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
 
Region get_clip_region () const
 
Region get_visible_region () const
 
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_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_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_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)
 
Glib::RefPtr< Screenget_screen ()
 
Glib::RefPtr< const Screenget_screen () const
 
Glib::RefPtr< Displayget_display ()
 
Glib::RefPtr< const Displayget_display () const
 
Cairo::RefPtr< Cairo::Context > create_cairo_context ()
 

Static Public Member Functions

static GType get_type () G_GNUC_CONST
 
static Glib::RefPtr< Pixmapcreate (const Glib::RefPtr< Drawable > &drawable, int width, int height, int depth=-1)
 
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< Display > &display, NativeWindow anid)
 
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< const Drawable > &drawable, const Color &transparent_color, const std::string &filename)
 Create a Pixmap from a xpm file. More...
 
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 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. More...
 
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 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< Colormap > &colormap, Glib::RefPtr< Bitmap > &mask, const char *const *data)
 
- Static Public Member Functions inherited from Gdk::Drawable
static GType get_type () G_GNUC_CONST
 
static Glib::RefPtr< Drawablecreate ()
 

Protected Member Functions

 Pixmap ()
 
 Pixmap (const Glib::RefPtr< Drawable > &drawable, int width, int height, int depth=-1)
 
 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. More...
 
 Pixmap (const Glib::RefPtr< Display > &display, NativeWindow anid)
 
- Protected Member Functions inherited from Gdk::Drawable
 Drawable ()
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::Pixmapwrap (GdkPixmapObject *object, bool take_copy=false)
 

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 64 of file pixmap.h.

Constructor & Destructor Documentation

◆ ~Pixmap()

virtual Gdk::Pixmap::~Pixmap ( )
virtual

◆ Pixmap() [1/4]

Gdk::Pixmap::Pixmap ( )
protected

◆ Pixmap() [2/4]

Gdk::Pixmap::Pixmap ( const Glib::RefPtr< Drawable > &  drawable,
int  width,
int  height,
int  depth = -1 
)
protected

◆ Pixmap() [3/4]

Gdk::Pixmap::Pixmap ( const Glib::RefPtr< Drawable > &  drawable,
const char *  data,
int  width,
int  height,
int  depth,
const Color fg,
const Color bg 
)
protected

Initialize a Pixmap from data.

◆ Pixmap() [4/4]

Gdk::Pixmap::Pixmap ( const Glib::RefPtr< Display > &  display,
NativeWindow  anid 
)
protected

Member Function Documentation

◆ create() [1/3]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create ( const Glib::RefPtr< Display > &  display,
NativeWindow  anid 
)
static

◆ create() [2/3]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create ( const Glib::RefPtr< Drawable > &  drawable,
const char *  data,
int  width,
int  height,
int  depth,
const Color fg,
const Color bg 
)
static

◆ create() [3/3]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create ( const Glib::RefPtr< Drawable > &  drawable,
int  width,
int  height,
int  depth = -1 
)
static

◆ create_from_data()

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create_from_data ( const Glib::RefPtr< const Drawable > &  drawable,
const char *  data,
int  width,
int  height,
int  depth,
const Color fg,
const Color bg 
)
static

◆ create_from_xpm() [1/7]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create_from_xpm ( const Glib::RefPtr< Colormap > &  colormap,
Glib::RefPtr< Bitmap > &  mask,
const char *const *  data 
)
static

◆ create_from_xpm() [2/7]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create_from_xpm ( const Glib::RefPtr< Colormap > &  colormap,
Glib::RefPtr< Bitmap > &  mask,
const Color transparent_color,
const char *const *  data 
)
static

◆ create_from_xpm() [3/7]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create_from_xpm ( const Glib::RefPtr< const Drawable > &  drawable,
const Color transparent_color,
const std::string &  filename 
)
static

Create a Pixmap from a xpm file.

◆ create_from_xpm() [4/7]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create_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

◆ create_from_xpm() [5/7]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create_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 
)
static

Create a Pixmap from a xpm file with colormap.

◆ create_from_xpm() [6/7]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create_from_xpm ( const Glib::RefPtr< const Drawable > &  drawable,
Glib::RefPtr< Bitmap > &  mask,
const Color transparent_color,
const char *const *  data 
)
static

◆ create_from_xpm() [7/7]

static Glib::RefPtr<Pixmap> Gdk::Pixmap::create_from_xpm ( const Glib::RefPtr< const Drawable > &  drawable,
Glib::RefPtr< Bitmap > &  mask,
const Color transparent_color,
const std::string &  filename 
)
static

◆ get_type()

static GType Gdk::Pixmap::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

◆ gobj() [1/2]

GdkPixmap* Gdk::Pixmap::gobj ( )
inline

Provides access to the underlying C GObject.

Definition at line 104 of file pixmap.h.

◆ gobj() [2/2]

const GdkPixmap* Gdk::Pixmap::gobj ( ) const
inline

Provides access to the underlying C GObject.

Definition at line 107 of file pixmap.h.

◆ gobj_copy()

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.

Friends And Related Function Documentation

◆ wrap()

Glib::RefPtr< Gdk::Pixmap > wrap ( GdkPixmapObject object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

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