1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-18 19:22:10 +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:
Andreas Kling 2020-09-10 19:25:13 +02:00
parent c063a02979
commit 0f9be82826
23 changed files with 127 additions and 111 deletions

View file

@ -497,22 +497,22 @@ void VBForm::set_cursor_type_from_grabber(Direction grabber)
switch (grabber) {
case Direction::Up:
case Direction::Down:
window()->set_override_cursor(GUI::StandardCursor::ResizeVertical);
window()->set_override_cursor(Gfx::StandardCursor::ResizeVertical);
break;
case Direction::Left:
case Direction::Right:
window()->set_override_cursor(GUI::StandardCursor::ResizeHorizontal);
window()->set_override_cursor(Gfx::StandardCursor::ResizeHorizontal);
break;
case Direction::UpLeft:
case Direction::DownRight:
window()->set_override_cursor(GUI::StandardCursor::ResizeDiagonalTLBR);
window()->set_override_cursor(Gfx::StandardCursor::ResizeDiagonalTLBR);
break;
case Direction::UpRight:
case Direction::DownLeft:
window()->set_override_cursor(GUI::StandardCursor::ResizeDiagonalBLTR);
window()->set_override_cursor(Gfx::StandardCursor::ResizeDiagonalBLTR);
break;
case Direction::None:
window()->set_override_cursor(GUI::StandardCursor::None);
window()->set_override_cursor(Gfx::StandardCursor::None);
break;
}