summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint
diff options
context:
space:
mode:
authorTobias Christiansen <tobyase@serenityos.org>2021-08-31 18:28:10 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-01 13:46:44 +0200
commite9595dcb795bb3614672a193f30e53ee226717df (patch)
tree0ec0a523765de6e8d8944bb3af47892964cc9026 /Userland/Applications/PixelPaint
parentc9e6afe6a8a18583766b6fa3c5669f8b9b028b94 (diff)
downloadserenity-e9595dcb795bb3614672a193f30e53ee226717df.zip
PixelPaint: Add setter for the orientation of a Guide
Also add an additional value to the Orientation enum called "Unset".
Diffstat (limited to 'Userland/Applications/PixelPaint')
-rw-r--r--Userland/Applications/PixelPaint/Guide.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Guide.h b/Userland/Applications/PixelPaint/Guide.h
index a1828f0ad6..9592069270 100644
--- a/Userland/Applications/PixelPaint/Guide.h
+++ b/Userland/Applications/PixelPaint/Guide.h
@@ -14,6 +14,7 @@ namespace PixelPaint {
class Guide : public RefCounted<Guide> {
public:
enum class Orientation {
+ Unset,
Vertical,
Horizontal,
};
@@ -33,6 +34,7 @@ public:
float offset() const { return m_offset; }
void set_offset(float offset) { m_offset = offset; }
+ void set_orientation(Orientation orientation) { m_orientation = orientation; }
private:
Orientation m_orientation;