mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
LibGUI: Implement enter/leave events (with WindowServer support.)
Windows now learn when the mouse cursor leaves or enters them. Use this to implement GWidget::{enter,leave}_event() and use that to implement the CoolBar button effect. :^)
This commit is contained in:
parent
af7eb5c89c
commit
bf30502560
Notes:
sideshowbarker
2024-07-19 15:39:57 +09:00
Author: https://github.com/awesomekling
Commit: bf30502560
14 changed files with 103 additions and 5 deletions
|
@ -43,6 +43,8 @@ public:
|
|||
virtual void mouseup_event(GMouseEvent&);
|
||||
virtual void focusin_event(GEvent&);
|
||||
virtual void focusout_event(GEvent&);
|
||||
virtual void enter_event(GEvent&);
|
||||
virtual void leave_event(GEvent&);
|
||||
|
||||
Rect relative_rect() const { return m_relative_rect; }
|
||||
Point relative_position() const { return m_relative_rect.location(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue