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);
171 void lower_to_bottom();
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;
265 void reparent(
Group& new_group);
268 Canvas* get_canvas()
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 275 virtual void realize_vfunc();
276 #endif //GLIBMM_VFUNCS_ENABLED 278 #ifdef GLIBMM_VFUNCS_ENABLED 279 virtual void unrealize_vfunc();
280 #endif //GLIBMM_VFUNCS_ENABLED 282 #ifdef GLIBMM_VFUNCS_ENABLED 283 virtual void map_vfunc();
284 #endif //GLIBMM_VFUNCS_ENABLED 286 #ifdef GLIBMM_VFUNCS_ENABLED 287 virtual void unmap_vfunc();
288 #endif //GLIBMM_VFUNCS_ENABLED 290 #ifdef GLIBMM_VFUNCS_ENABLED 291 virtual ArtUta* coverage_vfunc();
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 299 virtual void render_vfunc(GnomeCanvasBuf* buf);
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 319 Glib::SignalProxy1< bool,GdkEvent* > signal_event();
322 Group* get_parent_group();
323 const Group* get_parent_group()
const;
325 #ifdef GLIBMM_PROPERTIES_ENABLED 332 Glib::PropertyProxy<Group*> property_parent() ;
333 #endif //#GLIBMM_PROPERTIES_ENABLED 335 #ifdef GLIBMM_PROPERTIES_ENABLED 342 Glib::PropertyProxy_ReadOnly<Group*> property_parent()
const;
343 #endif //#GLIBMM_PROPERTIES_ENABLED 349 void item_construct(
Group& group);
353 void item_construct(
Group& group,
const gchar* first_arg_name,
357 void set(
const gchar* first_arg_name, ...);
365 void request_update();
378 void update_svp(ArtSVP **p_svp, ArtSVP *new_svp);
386 void update_svp_clip(ArtSVP **p_svp, ArtSVP *new_svp, ArtSVP *clip_svp);
391 void request_redraw_svp(
const ArtSVP* svp);
400 void update_bbox(
int x1,
int y1,
int x2,
int y2);
Definition: affinetrans.h:29
Definition: affinetrans.h:36
Canvas functions usually operate in either World coordinates (units for the entire canvas)...
Definition: canvas.h:68
const GnomeCanvasItem * gobj() const
Provides access to the underlying C GtkObject.
Definition: item.h:104
GnomeCanvasItem * gobj()
Provides access to the underlying C GtkObject.
Definition: item.h:101