mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
Magnifier: Add option to display grid over the image
This commit is contained in:
parent
df30440117
commit
2b635b5330
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/frhun
Commit: 2b635b5330
Pull-request: https://github.com/SerenityOS/serenity/pull/16328
Issue: https://github.com/SerenityOS/serenity/issues/8370
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 45 additions and 1 deletions
|
@ -21,6 +21,8 @@ public:
|
|||
virtual ~MagnifierWidget() override = default;
|
||||
void set_scale_factor(int scale_factor);
|
||||
virtual void set_color_filter(OwnPtr<Gfx::ColorBlindnessFilter>) override;
|
||||
void show_grid(bool);
|
||||
|
||||
void pause_capture(bool pause)
|
||||
{
|
||||
m_pause_capture = pause;
|
||||
|
@ -47,4 +49,5 @@ private:
|
|||
ssize_t m_frame_offset_from_head { 0 };
|
||||
bool m_pause_capture { false };
|
||||
Optional<Gfx::IntPoint> m_locked_location {};
|
||||
bool m_show_grid { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue