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

#include <bitmap.h>

Inheritance diagram for Gdk::Bitmap:
[legend]

Static Public Member Functions

static Glib::RefPtr< Bitmapcreate (const char *data, int width, int height)
 
static Glib::RefPtr< Bitmapcreate (const Glib::RefPtr< Gdk::Drawable > &drawable, const char *data, int width, int height)
 
- Static Public Member Functions inherited from Gdk::Pixmap
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

 Bitmap (const char *data, int width, int height)
 
 Bitmap (const Glib::RefPtr< Gdk::Drawable > &drawable, const char *data, int width, int height)
 
- Protected Member Functions inherited from Gdk::Pixmap
 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 ()
 

Additional Inherited Members

- Public Member Functions inherited from Gdk::Pixmap
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 ()
 

Detailed Description

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 43 of file bitmap.h.

Constructor & Destructor Documentation

◆ Bitmap() [1/2]

Gdk::Bitmap::Bitmap ( const char *  data,
int  width,
int  height 
)
protected

◆ Bitmap() [2/2]

Gdk::Bitmap::Bitmap ( const Glib::RefPtr< Gdk::Drawable > &  drawable,
const char *  data,
int  width,
int  height 
)
protected

Member Function Documentation

◆ create() [1/2]

static Glib::RefPtr<Bitmap> Gdk::Bitmap::create ( const char *  data,
int  width,
int  height 
)
static

◆ create() [2/2]

static Glib::RefPtr<Bitmap> Gdk::Bitmap::create ( const Glib::RefPtr< Gdk::Drawable > &  drawable,
const char *  data,
int  width,
int  height 
)
static

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