3 #ifndef _GDKMM_DRAWABLE_H
4 #define _GDKMM_DRAWABLE_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
29 #include <pangomm/font.h>
30 #include <pangomm/layout.h>
31 #include <pangomm/layoutline.h>
32 #include <pangomm/glyphstring.h>
39 #include <cairomm/context.h>
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 {
class Drawable_Class; }
73 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81 static GType value_type() G_GNUC_CONST;
113 #ifndef DOXYGEN_SHOULD_SKIP_THIS
122 static CppClassType drawable_class_;
130 explicit Drawable(
const Glib::ConstructParams& construct_params);
142 #ifndef DOXYGEN_SHOULD_SKIP_THIS
145 static GType get_base_type() G_GNUC_CONST;
168 #ifndef GDKMM_DISABLE_DEPRECATED
189 #ifndef GDKMM_DISABLE_DEPRECATED
237 #ifndef GDKMM_DISABLE_DEPRECATED
249 #ifndef GDKMM_DISABLE_DEPRECATED
261 void draw_point(
const Glib::RefPtr<const GC>& gc,
int x,
int y);
265 #ifndef GDKMM_DISABLE_DEPRECATED
270 void draw_points(
const Glib::RefPtr<const GC>& gc,
const Glib::ArrayHandle<Point>& points);
274 #ifndef GDKMM_DISABLE_DEPRECATED
294 void draw_line(
const Glib::RefPtr<const GC>& gc,
int x1,
int y1,
int x2,
int y2);
298 #ifndef GDKMM_DISABLE_DEPRECATED
303 void draw_lines(
const Glib::RefPtr<const GC>& gc,
const Glib::ArrayHandle<Point>& points);
307 #ifndef GDKMM_DISABLE_DEPRECATED
335 #ifndef GDKMM_DISABLE_DEPRECATED
356 void draw_arc(
const Glib::RefPtr<const GC>& gc,
bool filled,
int x,
int y,
int width,
int height,
int angle1,
int angle2);
360 void draw_polygon(
const Glib::RefPtr<const GC>& gc,
bool filled,
const Glib::ArrayHandle<Point>& points);
363 #ifndef GDKMM_DISABLE_DEPRECATED
394 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);
398 #ifndef GDKMM_DISABLE_DEPRECATED
417 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);
425 #ifndef GDKMM_DISABLE_DEPRECATED
446 #ifndef GDKMM_DISABLE_DEPRECATED
465 void draw_glyphs(
const Glib::RefPtr<const GC>& gc,
const Glib::RefPtr<const Pango::Font>& font,
int x,
int y,
const Pango::GlyphString& glyphs);
469 #ifndef GDKMM_DISABLE_DEPRECATED
483 void draw_layout_line(
const Glib::RefPtr<const GC>& gc,
int x,
int y,
const Glib::RefPtr<const Pango::LayoutLine>& line);
487 #ifndef GDKMM_DISABLE_DEPRECATED
505 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);
509 #ifndef GDKMM_DISABLE_DEPRECATED
525 void draw_layout(
const Glib::RefPtr<const GC>& gc,
int x,
int y,
const Glib::RefPtr<const Pango::Layout>& layout);
529 #ifndef GDKMM_DISABLE_DEPRECATED
549 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);
556 #ifndef GDKMM_DISABLE_DEPRECATED
588 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);
592 #ifndef GDKMM_DISABLE_DEPRECATED
625 int src_x,
int src_y,
int dest_x,
int dest_y,
627 RgbDither dither,
int x_dither,
int y_dither);
702 #ifndef GDKMM_DISABLE_DEPRECATED
708 #ifndef GDKMM_DISABLE_DEPRECATED
714 #ifndef GDKMM_DISABLE_DEPRECATED
720 #ifndef GDKMM_DISABLE_DEPRECATED
742 #ifndef GDKMM_DISABLE_DEPRECATED
748 #ifndef GDKMM_DISABLE_DEPRECATED
754 #ifndef GDKMM_DISABLE_DEPRECATED
766 #ifndef GDKMM_DISABLE_DEPRECATED
778 #ifndef GDKMM_DISABLE_DEPRECATED
790 #ifndef GDKMM_DISABLE_DEPRECATED
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_arc(const Glib::RefPtr< const GC > &gc, bool filled, int x, int y, int width, int height, int angle1, int angle2)
void draw_layout(const Glib::RefPtr< const GC > &gc, int x, int y, const Glib::RefPtr< const Pango::Layout > &layout)
void draw_rectangle(const Glib::RefPtr< const GC > &gc, bool filled, int x, int y, int width, int height)
GdkDrawable * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
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_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)
Glib::RefPtr< Visual > get_visual()
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)
static GType get_type() G_GNUC_CONST
void draw_lines(const Glib::RefPtr< const GC > &gc, const Glib::ArrayHandle< Point > &points)
void draw_glyphs(const Glib::RefPtr< const GC > &gc, const Glib::RefPtr< const Pango::Font > &font, int x, int y, const Pango::GlyphString &glyphs)
static Glib::RefPtr< Drawable > create()
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)
Glib::RefPtr< Image > get_image(int x, int y, int width, int height) const
void draw_layout_line(const Glib::RefPtr< const GC > &gc, int x, int y, const Glib::RefPtr< const Pango::LayoutLine > &line)
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 set_colormap(const Glib::RefPtr< Colormap > &colormap)
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< const Display > get_display() const
void draw_line(const Glib::RefPtr< const GC > &gc, int x1, int y1, int x2, int y2)
Glib::RefPtr< const Screen > get_screen() const
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)
Region get_visible_region() const
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_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_point(const Glib::RefPtr< const GC > &gc, int x, int y)
Region get_clip_region() const
GdkDrawable * gobj()
Provides access to the underlying C GObject.
void get_size(int &width, int &height)
Cairo::RefPtr< Cairo::Context > create_cairo_context()
Glib::RefPtr< Colormap > get_colormap()
void get_size(int &width, int &height) const
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_points(const Glib::RefPtr< const GC > &gc, const Glib::ArrayHandle< Point > &points)
Glib::RefPtr< Gdk::Drawable > wrap(GdkDrawable *object, bool take_copy=false)
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_polygon(const Glib::RefPtr< const GC > &gc, bool filled, const Glib::ArrayHandle< Point > &points)
Glib::RefPtr< Screen > get_screen()
Glib::RefPtr< Display > get_display()
void draw_segments(const Glib::RefPtr< const GC > &gc, GdkSegment *segs, int n_segs)
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)
const GdkDrawable * gobj() const
Provides access to the underlying C GObject.
typedefG_BEGIN_DECLS struct _GdkDrawableClass GdkDrawableClass
GtkImagePixbufData pixbuf