Logo Search packages:      
Sourcecode: ardour version File versions

Gdk::Drawable Class Reference

#include <drawable.h>

Inheritance diagram for Gdk::Drawable:

sigc::trackable Gdk::Pixmap Gdk::Window Gdk::Bitmap

List of all members.


Detailed Description

Drawing Primitives. Gdk::Drawable is the base class for all of the objects that accept drawing commands. The available drawables include pixmaps, windows, and bitmaps. Drawable is abstract as there is no such type on the server side.

To use a drawable, create a concrete Drawable of the type you wish to use and a Gdk::GC (graphics context) for that Drawable. With the GC you can draw lines, text, arcs and such.

Definition at line 101 of file drawable.h.


Public Types

typedef GdkDrawableClass BaseClassType
typedef GdkDrawable BaseObjectType
typedef Drawable_Class CppClassType
typedef Drawable 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 GdkDrawable * gobj () const
 Provides access to the underlying C GObject.
GdkDrawable * gobj ()
 Provides access to the underlying C GObject.
GObject * gobj_copy () const
GdkDrawable * 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 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_ ()
 Drawable (GdkDrawable *castitem)
 Drawable (const Glib::ConstructParams &construct_params)
void initialize (GObject *castitem)
bool is_anonymous_custom_ () const
bool is_derived_ () const

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

 Drawable (const Drawable &)
Drawableoperator= (const Drawable &)

Static Private Attributes

static CppClassType drawable_class_

Friends

class Drawable_Class
class Glib::GSigConnectionNode
class Glib::Object_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)

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

Generated by  Doxygen 1.6.0   Back to index