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:
parent
c9e6afe6a8
commit
e9595dcb79
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue