mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibCore: Add CEvent and make LibGUI/GEvent inherit from it.
This commit is contained in:
parent
696ada2810
commit
b8062f69d8
31 changed files with 98 additions and 159 deletions
|
@ -97,13 +97,13 @@ void GButton::mouseup_event(GMouseEvent& event)
|
|||
GWidget::mouseup_event(event);
|
||||
}
|
||||
|
||||
void GButton::enter_event(GEvent&)
|
||||
void GButton::enter_event(CEvent&)
|
||||
{
|
||||
m_hovered = true;
|
||||
update();
|
||||
}
|
||||
|
||||
void GButton::leave_event(GEvent&)
|
||||
void GButton::leave_event(CEvent&)
|
||||
{
|
||||
m_hovered = false;
|
||||
update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue