From e9595dcb795bb3614672a193f30e53ee226717df Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Tue, 31 Aug 2021 18:28:10 +0200 Subject: [PATCH] PixelPaint: Add setter for the orientation of a Guide Also add an additional value to the Orientation enum called "Unset". --- Userland/Applications/PixelPaint/Guide.h | 2 ++ 1 file changed, 2 insertions(+) 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 { 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;