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
commit 72443bd1ab
Notes: sideshowbarker 2024-07-19 02:57:04 +09:00
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;