1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibGUI+Inspector: Highlight the currently remotely inspected widget

This patch adds a magenta rectangle around the currently inspected
widget. This allows you to browse an app's widget tree somewhat
visually using the Inspector. :^)
This commit is contained in:
Andreas Kling 2020-03-05 14:42:05 +01:00
parent d16f8214d8
commit e23c5b7e83
Notes: sideshowbarker 2024-07-19 08:54:01 +09:00
5 changed files with 29 additions and 0 deletions

View file

@ -293,6 +293,9 @@ protected:
virtual void drag_move_event(DragEvent&);
virtual void drop_event(DropEvent&);
virtual void did_begin_inspection() override;
virtual void did_end_inspection() override;
private:
void handle_paint_event(PaintEvent&);
void handle_resize_event(ResizeEvent&);