mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 01:38:56 +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
Notes:
sideshowbarker
2024-07-18 04:58:13 +09:00
Author: https://github.com/TobyAsE
Commit: e9595dcb79
Pull-request: https://github.com/SerenityOS/serenity/pull/9706
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/mustafaquraish
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