1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

Magnifier: Add option to display grid over the image

This commit is contained in:
FrHun 2022-12-04 21:25:34 +01:00 committed by Sam Atkins
parent df30440117
commit 2b635b5330
3 changed files with 45 additions and 1 deletions

View file

@ -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 };
};