mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
LibGUI+WindowServer: Allow apps to use the "move" cursor :^)
This commit is contained in:
parent
23ee68c63e
commit
c2b5519ce2
3 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,8 @@ enum class StandardCursor {
|
|||
ResizeDiagonalTLBR,
|
||||
ResizeDiagonalBLTR,
|
||||
Hand,
|
||||
Drag,
|
||||
Move,
|
||||
};
|
||||
|
||||
class Window : public Core::Object {
|
||||
|
|
|
@ -70,6 +70,8 @@ RefPtr<Cursor> Cursor::create(StandardCursor standard_cursor)
|
|||
return WindowManager::the().hand_cursor();
|
||||
case StandardCursor::Drag:
|
||||
return WindowManager::the().drag_cursor();
|
||||
case StandardCursor::Move:
|
||||
return WindowManager::the().move_cursor();
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ enum class StandardCursor {
|
|||
ResizeDiagonalBLTR,
|
||||
Hand,
|
||||
Drag,
|
||||
Move,
|
||||
};
|
||||
|
||||
class Cursor : public RefCounted<Cursor> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue