mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:18:11 +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
23 changed files with 127 additions and 111 deletions
|
@ -62,12 +62,12 @@ void Splitter::override_cursor(bool do_override)
|
|||
{
|
||||
if (do_override) {
|
||||
if (!m_overriding_cursor) {
|
||||
window()->set_override_cursor(m_orientation == Orientation::Horizontal ? StandardCursor::ResizeColumn : StandardCursor::ResizeRow);
|
||||
window()->set_override_cursor(m_orientation == Orientation::Horizontal ? Gfx::StandardCursor::ResizeColumn : Gfx::StandardCursor::ResizeRow);
|
||||
m_overriding_cursor = true;
|
||||
}
|
||||
} else {
|
||||
if (m_overriding_cursor) {
|
||||
window()->set_override_cursor(StandardCursor::None);
|
||||
window()->set_override_cursor(Gfx::StandardCursor::None);
|
||||
m_overriding_cursor = false;
|
||||
}
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ void Splitter::mouseup_event(MouseEvent& event)
|
|||
m_first_resizee = nullptr;
|
||||
m_second_resizee = nullptr;
|
||||
if (!rect().contains(event.position()))
|
||||
window()->set_override_cursor(StandardCursor::None);
|
||||
window()->set_override_cursor(Gfx::StandardCursor::None);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue