mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +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
|
@ -16,14 +16,14 @@ GSplitter::~GSplitter()
|
|||
{
|
||||
}
|
||||
|
||||
void GSplitter::enter_event(GEvent&)
|
||||
void GSplitter::enter_event(CEvent&)
|
||||
{
|
||||
set_background_color(Color::from_rgb(0xd6d2ce));
|
||||
window()->set_override_cursor(m_orientation == Orientation::Horizontal ? GStandardCursor::ResizeHorizontal : GStandardCursor::ResizeVertical);
|
||||
update();
|
||||
}
|
||||
|
||||
void GSplitter::leave_event(GEvent&)
|
||||
void GSplitter::leave_event(CEvent&)
|
||||
{
|
||||
set_background_color(Color::LightGray);
|
||||
if (!m_resizing)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue