1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

PixelPaint: Add setter for the orientation of a Guide

Also add an additional value to the Orientation enum called "Unset".
This commit is contained in:
Tobias Christiansen 2021-08-31 18:28:10 +02:00 committed by Andreas Kling
parent c9e6afe6a8
commit e9595dcb79

View file

@ -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;