summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-07-16 12:14:05 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-07-16 12:14:05 (GMT)
commitb2e11d7f32db65a6be001dfdf74b74f16f4c9ec3 (patch)
treee99331d9c20e8199fda582e5f1b603d01b368f2a /Swiften/Whiteboard/Elements/WhiteboardLineElement.h
parent0ba890e7e8c7e09c1257a7c3b1018f396e6896d1 (diff)
downloadswift-contrib-b2e11d7f32db65a6be001dfdf74b74f16f4c9ec3.zip
swift-contrib-b2e11d7f32db65a6be001dfdf74b74f16f4c9ec3.tar.bz2
Extended classes handling synchronization with update operation
Diffstat (limited to 'Swiften/Whiteboard/Elements/WhiteboardLineElement.h')
-rw-r--r--Swiften/Whiteboard/Elements/WhiteboardLineElement.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Swiften/Whiteboard/Elements/WhiteboardLineElement.h b/Swiften/Whiteboard/Elements/WhiteboardLineElement.h
index 20455b6..85e6302 100644
--- a/Swiften/Whiteboard/Elements/WhiteboardLineElement.h
+++ b/Swiften/Whiteboard/Elements/WhiteboardLineElement.h
@@ -37,6 +37,19 @@ namespace Swift {
return y2_;
}
+ int getXShift() const {
+ return xShift_;
+ }
+
+ int getYShift() const {
+ return yShift_;
+ }
+
+ void setShift(int x, int y) {
+ xShift_ = x;
+ yShift_ = y;
+ }
+
const Color& getColor() const {
return color_;
}
@@ -67,6 +80,7 @@ namespace Swift {
private:
int x1_, y1_, x2_, y2_;
+ int xShift_, yShift_;
Color color_;
int penWidth_;
std::string id_;