mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +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:
parent
c9e6afe6a8
commit
e9595dcb79
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ namespace PixelPaint {
|
||||||
class Guide : public RefCounted<Guide> {
|
class Guide : public RefCounted<Guide> {
|
||||||
public:
|
public:
|
||||||
enum class Orientation {
|
enum class Orientation {
|
||||||
|
Unset,
|
||||||
Vertical,
|
Vertical,
|
||||||
Horizontal,
|
Horizontal,
|
||||||
};
|
};
|
||||||
|
@ -33,6 +34,7 @@ public:
|
||||||
float offset() const { return m_offset; }
|
float offset() const { return m_offset; }
|
||||||
|
|
||||||
void set_offset(float offset) { m_offset = offset; }
|
void set_offset(float offset) { m_offset = offset; }
|
||||||
|
void set_orientation(Orientation orientation) { m_orientation = orientation; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Orientation m_orientation;
|
Orientation m_orientation;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue