X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fobject.h;h=f8e895848f7ef17e17c59c1f535962a7a2dff12b;hb=7c98e23312cf01ce1fa6c1ffd8e36c22d2fa6110;hp=31eb879228d0076fa0bc47dad32b6ce01567ebca;hpb=bde934f7d5ba07a9442a305192e10024820d13ed;p=r2c2.git diff --git a/source/libr2c2/object.h b/source/libr2c2/object.h index 31eb879..f8e8958 100644 --- a/source/libr2c2/object.h +++ b/source/libr2c2/object.h @@ -11,10 +11,14 @@ class Layout; class Object { +public: + sigc::signal signal_moved; + protected: Layout &layout; Vector position; Angle rotation; + Angle tilt; Object(Layout &l): layout(l) { } public: @@ -25,8 +29,10 @@ public: Layout &get_layout() const { return layout; } virtual void set_position(const Vector &) = 0; virtual void set_rotation(const Angle &) = 0; + virtual void set_tilt(const Angle &) = 0; const Vector &get_position() const { return position; } const Angle &get_rotation() const { return rotation; } + const Angle &get_tilt() const { return tilt; } virtual Object *get_parent() const { return 0; } virtual unsigned get_n_snap_nodes() const { return 0; }