1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

LibGUI+WindowServer: Allow apps to use the "move" cursor :^)

This commit is contained in:
Andreas Kling 2020-05-13 00:16:40 +02:00
parent 23ee68c63e
commit c2b5519ce2
3 changed files with 5 additions and 0 deletions

View file

@ -47,6 +47,8 @@ enum class StandardCursor {
ResizeDiagonalTLBR, ResizeDiagonalTLBR,
ResizeDiagonalBLTR, ResizeDiagonalBLTR,
Hand, Hand,
Drag,
Move,
}; };
class Window : public Core::Object { class Window : public Core::Object {

View file

@ -70,6 +70,8 @@ RefPtr<Cursor> Cursor::create(StandardCursor standard_cursor)
return WindowManager::the().hand_cursor(); return WindowManager::the().hand_cursor();
case StandardCursor::Drag: case StandardCursor::Drag:
return WindowManager::the().drag_cursor(); return WindowManager::the().drag_cursor();
case StandardCursor::Move:
return WindowManager::the().move_cursor();
} }
ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED();
} }

View file

@ -40,6 +40,7 @@ enum class StandardCursor {
ResizeDiagonalBLTR, ResizeDiagonalBLTR,
Hand, Hand,
Drag, Drag,
Move,
}; };
class Cursor : public RefCounted<Cursor> { class Cursor : public RefCounted<Cursor> {