mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
LibGUI: Add "drag enter" and "drag leave" events
These events allow widgets to react when a drag enters/leaves their rectangle. The enter event carries position + mime type, while the leave event has no information.
This commit is contained in:
parent
4728d0dd6a
commit
9acb72e804
7 changed files with 60 additions and 3 deletions
|
@ -324,7 +324,9 @@ protected:
|
|||
virtual void leave_event(Core::Event&);
|
||||
virtual void child_event(Core::ChildEvent&) override;
|
||||
virtual void change_event(Event&);
|
||||
virtual void drag_enter_event(DragEvent&);
|
||||
virtual void drag_move_event(DragEvent&);
|
||||
virtual void drag_leave_event(Event&);
|
||||
virtual void drop_event(DropEvent&);
|
||||
virtual void theme_change_event(ThemeChangeEvent&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue