1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

LibGUI: Teach IconView to use AbstractView::move_cursor()

This makes it possible to manipulate the cursor programmatically via
the AbstractView interface.
This commit is contained in:
Andreas Kling 2020-09-01 14:43:16 +02:00
parent 22265f1445
commit 72443bd1ab
2 changed files with 61 additions and 77 deletions

View file

@ -64,6 +64,8 @@ private:
virtual void keydown_event(KeyEvent&) override;
virtual void drag_move_event(DragEvent&) override;
virtual void move_cursor(CursorMovement, SelectionUpdate) override;
struct ItemData {
Gfx::IntRect text_rect;
Gfx::IntRect icon_rect;