1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 22:47:45 +00:00

PixelPaint: Use Mask internally in Selection

While the external API has not changed, this will allow us to have
non-rectangular selections in the future.
This commit is contained in:
Davipb 2021-06-20 10:48:43 -03:00 committed by Andreas Kling
parent 0828c75e57
commit d922e35579
3 changed files with 80 additions and 21 deletions

View file

@ -42,6 +42,7 @@ public:
Layer* layer_at_editor_position(Gfx::IntPoint const&);
float scale() const { return m_scale; }
void scale_centered_on_position(Gfx::IntPoint const&, float);
void reset_scale_and_position();
void scale_by(float);