mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
PixelPaint: Show image coordinates in the status bar
This commit is contained in:
parent
611370e7dc
commit
fb099ad38b
Notes:
sideshowbarker
2024-07-18 07:36:57 +09:00
Author: https://github.com/Lisible 🔰
Commit: fb099ad38b
Pull-request: https://github.com/SerenityOS/serenity/pull/9149
3 changed files with 30 additions and 0 deletions
|
@ -66,6 +66,10 @@ public:
|
|||
|
||||
Function<void(String const&)> on_image_title_change;
|
||||
|
||||
Function<void(Gfx::IntPoint const&)> on_image_mouse_position_change;
|
||||
|
||||
Function<void(void)> on_leave;
|
||||
|
||||
Gfx::FloatRect layer_rect_to_editor_rect(Layer const&, Gfx::IntRect const&) const;
|
||||
Gfx::FloatRect image_rect_to_editor_rect(Gfx::IntRect const&) const;
|
||||
Gfx::FloatRect editor_rect_to_image_rect(Gfx::IntRect const&) const;
|
||||
|
@ -86,6 +90,7 @@ private:
|
|||
virtual void keyup_event(GUI::KeyEvent&) override;
|
||||
virtual void context_menu_event(GUI::ContextMenuEvent&) override;
|
||||
virtual void resize_event(GUI::ResizeEvent&) override;
|
||||
virtual void leave_event(Core::Event&) override;
|
||||
|
||||
virtual void image_did_change(Gfx::IntRect const&) override;
|
||||
virtual void image_select_layer(Layer*) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue