mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
PixelPaint: Make the LineTool previews work while zoomed in
This commit is contained in:
parent
53b859c5ad
commit
f57df29724
4 changed files with 31 additions and 15 deletions
|
@ -68,6 +68,13 @@ public:
|
|||
|
||||
Function<void(const GUI::ModelIndex&)> on_active_layer_change;
|
||||
|
||||
Gfx::FloatRect layer_rect_to_editor_rect(const Layer&, const Gfx::Rect&) const;
|
||||
Gfx::FloatRect image_rect_to_editor_rect(const Gfx::Rect&) const;
|
||||
Gfx::FloatRect editor_rect_to_image_rect(const Gfx::Rect&) const;
|
||||
Gfx::FloatPoint layer_position_to_editor_position(const Layer&, const Gfx::Point&) const;
|
||||
Gfx::FloatPoint image_position_to_editor_position(const Gfx::Point&) const;
|
||||
Gfx::FloatPoint editor_position_to_image_position(const Gfx::Point&) const;
|
||||
|
||||
private:
|
||||
ImageEditor();
|
||||
|
||||
|
@ -84,11 +91,6 @@ private:
|
|||
virtual void context_menu_event(GUI::ContextMenuEvent&) override;
|
||||
virtual void resize_event(GUI::ResizeEvent&) override;
|
||||
|
||||
Gfx::FloatRect image_rect_to_editor_rect(const Gfx::Rect&) const;
|
||||
Gfx::FloatRect editor_rect_to_image_rect(const Gfx::Rect&) const;
|
||||
Gfx::FloatPoint image_position_to_editor_position(const Gfx::Point&) const;
|
||||
Gfx::FloatPoint editor_position_to_image_position(const Gfx::Point&) const;
|
||||
|
||||
GUI::MouseEvent event_adjusted_for_layer(const GUI::MouseEvent&, const Layer&) const;
|
||||
GUI::MouseEvent event_with_pan_and_scale_applied(const GUI::MouseEvent&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue