mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-25 03:31:55 +00:00
LibGfx: Move StandardCursor enum to LibGfx
This enum existed both in LibGUI and WindowServer which was silly and error-prone.
This commit is contained in:
parent
c063a02979
commit
0f9be82826
Notes:
sideshowbarker
2024-07-19 02:47:24 +09:00
Author: https://github.com/awesomekling
Commit: 0f9be82826
23 changed files with 127 additions and 111 deletions
|
@ -81,16 +81,16 @@ void KeyButton::mousemove_event(GUI::MouseEvent& event)
|
|||
Gfx::IntRect c = { rect().x() + 7, rect().y() + 4, rect().width() - 14, rect().height() - 14 };
|
||||
|
||||
if (c.contains(event.position())) {
|
||||
window()->set_override_cursor(GUI::StandardCursor::Hand);
|
||||
window()->set_override_cursor(Gfx::StandardCursor::Hand);
|
||||
return;
|
||||
}
|
||||
window()->set_override_cursor(GUI::StandardCursor::Arrow);
|
||||
window()->set_override_cursor(Gfx::StandardCursor::Arrow);
|
||||
|
||||
AbstractButton::mousemove_event(event);
|
||||
}
|
||||
|
||||
void KeyButton::leave_event(Core::Event& event)
|
||||
{
|
||||
window()->set_override_cursor(GUI::StandardCursor::Arrow);
|
||||
window()->set_override_cursor(Gfx::StandardCursor::Arrow);
|
||||
AbstractButton::leave_event(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue