diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-18 10:55:55 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-06-18 10:55:55 (GMT) |
commit | e0c79b3b885f126a2a2a34cb0d5df90796821130 (patch) | |
tree | d53e7a822a02ebc7ae136d01db18475be4283854 /Swiften/Whiteboard/Elements/WhiteboardLineElement.h | |
parent | f3cc4c80787657ea770468915ec716dea2676d22 (diff) | |
download | swift-contrib-e0c79b3b885f126a2a2a34cb0d5df90796821130.zip swift-contrib-e0c79b3b885f126a2a2a34cb0d5df90796821130.tar.bz2 |
Completed serialization and parsing of line element
Diffstat (limited to 'Swiften/Whiteboard/Elements/WhiteboardLineElement.h')
-rw-r--r-- | Swiften/Whiteboard/Elements/WhiteboardLineElement.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/Swiften/Whiteboard/Elements/WhiteboardLineElement.h b/Swiften/Whiteboard/Elements/WhiteboardLineElement.h index b64e397..0088189 100644 --- a/Swiften/Whiteboard/Elements/WhiteboardLineElement.h +++ b/Swiften/Whiteboard/Elements/WhiteboardLineElement.h @@ -7,6 +7,7 @@ #pragma once #include <Swiften/Whiteboard/Elements/WhiteboardElement.h> +#include <Swiften/Whiteboard/Elements/Color.h> namespace Swift { class WhiteboardLineElement : public WhiteboardElement { @@ -36,12 +37,38 @@ namespace Swift { return y2_; } + const Color& getColor() const { + return color_; + } + + void setColor(const Color& color) { + color_ = color; + } + + std::string getID() const { + return id_; + } + + void setID(const std::string& id) { + id_ = id; + } + + int getPenWidth() const { + return penWidth_; + } + + void setPenWidth(const int penWidth) { + penWidth_ = penWidth; + } + void accept(WhiteboardElementVisitor& visitor) { visitor.visit(this); } private: int x1_, y1_, x2_, y2_; - std::string id; + Color color_; + int penWidth_; + std::string id_; }; } |