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:
parent
23ee68c63e
commit
c2b5519ce2
3 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ enum class StandardCursor {
|
||||||
ResizeDiagonalBLTR,
|
ResizeDiagonalBLTR,
|
||||||
Hand,
|
Hand,
|
||||||
Drag,
|
Drag,
|
||||||
|
Move,
|
||||||
};
|
};
|
||||||
|
|
||||||
class Cursor : public RefCounted<Cursor> {
|
class Cursor : public RefCounted<Cursor> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue