3 #ifndef _LIBGNOMECANVASMM_ITEM_H
4 #define _LIBGNOMECANVASMM_ITEM_H
34 #include <gtkmm/object.h>
35 #include <gdkmm/cursor.h>
36 #include <libgnomecanvas/gnome-canvas.h>
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44 typedef struct _GnomeCanvasItem GnomeCanvasItem;
45 typedef struct _GnomeCanvasItemClass GnomeCanvasItemClass;
66 class Item :
public Gtk::Object
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 typedef Item CppObjectType;
71 typedef Item_Class CppClassType;
72 typedef GnomeCanvasItem BaseObjectType;
73 typedef GnomeCanvasItemClass BaseClassType;
78 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81 friend class Item_Class;
82 static CppClassType item_class_;
89 explicit Item(
const Glib::ConstructParams& construct_params);
90 explicit Item(GnomeCanvasItem* castitem);
95 #ifndef DOXYGEN_SHOULD_SKIP_THIS
96 static GType get_type() G_GNUC_CONST;
97 static GType get_base_type() G_GNUC_CONST;
101 GnomeCanvasItem*
gobj() {
return reinterpret_cast<GnomeCanvasItem*
>(gobject_); }
104 const GnomeCanvasItem*
gobj()
const {
return reinterpret_cast<GnomeCanvasItem*
>(gobject_); }
109 #ifdef GLIBMM_VFUNCS_ENABLED
110 #endif //GLIBMM_VFUNCS_ENABLED
114 #ifdef GLIBMM_VFUNCS_ENABLED
115 #endif //GLIBMM_VFUNCS_ENABLED
118 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
119 virtual bool on_event(GdkEvent* p1);
120 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
137 void move(
double dx,
double dy);
148 void raise(
int positions);
159 void lower(
int positions);
177 int grab(
unsigned int event_mask,
const Gdk::Cursor& cursor, guint32 etime);
178 int grab(
unsigned int event_mask, guint32 etime);
189 void ungrab(guint32 etime);
199 void w2i(
double& x,
double& y);
206 void i2w(
double& x,
double& y);
227 void get_bounds(
double& x1,
double& y1,
double& x2,
double& y2)
const;
270 #ifdef GLIBMM_VFUNCS_ENABLED
271 virtual void update_vfunc(
double* affine, ArtSVP* clip_path,
int flags);
272 #endif //GLIBMM_VFUNCS_ENABLED
274 #ifdef GLIBMM_VFUNCS_ENABLED
276 #endif //GLIBMM_VFUNCS_ENABLED
278 #ifdef GLIBMM_VFUNCS_ENABLED
280 #endif //GLIBMM_VFUNCS_ENABLED
282 #ifdef GLIBMM_VFUNCS_ENABLED
284 #endif //GLIBMM_VFUNCS_ENABLED
286 #ifdef GLIBMM_VFUNCS_ENABLED
288 #endif //GLIBMM_VFUNCS_ENABLED
290 #ifdef GLIBMM_VFUNCS_ENABLED
292 #endif //GLIBMM_VFUNCS_ENABLED
294 #ifdef GLIBMM_VFUNCS_ENABLED
295 virtual void draw_vfunc(
const Glib::RefPtr<Gdk::Drawable>& drawable,
int x,
int y,
int width,
int height);
296 #endif //GLIBMM_VFUNCS_ENABLED
298 #ifdef GLIBMM_VFUNCS_ENABLED
300 #endif //GLIBMM_VFUNCS_ENABLED
302 #ifdef GLIBMM_VFUNCS_ENABLED
303 virtual double point_vfunc(
double x,
double y,
int cx,
int cy, GnomeCanvasItem** actual_item);
304 #endif //GLIBMM_VFUNCS_ENABLED
306 #ifdef GLIBMM_VFUNCS_ENABLED
307 virtual void bounds_vfunc(
double* x1,
double* y1,
double* x2,
double* y2);
308 #endif //GLIBMM_VFUNCS_ENABLED
325 #ifdef GLIBMM_PROPERTIES_ENABLED
333 #endif //#GLIBMM_PROPERTIES_ENABLED
335 #ifdef GLIBMM_PROPERTIES_ENABLED
343 #endif //#GLIBMM_PROPERTIES_ENABLED
357 void set(
const gchar* first_arg_name, ...);
378 void update_svp(ArtSVP **p_svp, ArtSVP *new_svp);
386 void update_svp_clip(ArtSVP **p_svp, ArtSVP *new_svp, ArtSVP *clip_svp);