mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:57:35 +00:00
PixelPaint: Add setter/getter for ImageEditor::m_pan_origin
This allows us to use tools to change the panned position, since right now this is only accessible internally to the editor.
This commit is contained in:
parent
189066d91d
commit
abefe2391d
2 changed files with 12 additions and 0 deletions
|
@ -58,6 +58,9 @@ public:
|
|||
void reset_scale_and_position();
|
||||
void scale_by(float);
|
||||
|
||||
void set_pan_origin(Gfx::FloatPoint const&);
|
||||
Gfx::FloatPoint pan_origin() const { return m_pan_origin; }
|
||||
|
||||
Color primary_color() const { return m_primary_color; }
|
||||
void set_primary_color(Color);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue