diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-10 19:25:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-10 19:25:13 +0200 |
commit | 0f9be828264a44faa281a655754319c667f81aa6 (patch) | |
tree | d5e73bac994730e737d44b10a379dbf0ec8caa8e /Services/WindowServer/Cursor.cpp | |
parent | c063a02979a70ea66fd2aa56576bbb0b62c2745b (diff) | |
download | serenity-0f9be828264a44faa281a655754319c667f81aa6.zip |
LibGfx: Move StandardCursor enum to LibGfx
This enum existed both in LibGUI and WindowServer which was silly and
error-prone.
Diffstat (limited to 'Services/WindowServer/Cursor.cpp')
-rw-r--r-- | Services/WindowServer/Cursor.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Services/WindowServer/Cursor.cpp b/Services/WindowServer/Cursor.cpp index 876b92634e..c1c34df804 100644 --- a/Services/WindowServer/Cursor.cpp +++ b/Services/WindowServer/Cursor.cpp @@ -49,36 +49,36 @@ NonnullRefPtr<Cursor> Cursor::create(NonnullRefPtr<Gfx::Bitmap>&& bitmap, const return adopt(*new Cursor(move(bitmap), hotspot)); } -RefPtr<Cursor> Cursor::create(StandardCursor standard_cursor) +RefPtr<Cursor> Cursor::create(Gfx::StandardCursor standard_cursor) { switch (standard_cursor) { - case StandardCursor::None: + case Gfx::StandardCursor::None: return nullptr; - case StandardCursor::Arrow: + case Gfx::StandardCursor::Arrow: return WindowManager::the().arrow_cursor(); - case StandardCursor::IBeam: + case Gfx::StandardCursor::IBeam: return WindowManager::the().i_beam_cursor(); - case StandardCursor::ResizeHorizontal: + case Gfx::StandardCursor::ResizeHorizontal: return WindowManager::the().resize_horizontally_cursor(); - case StandardCursor::ResizeVertical: + case Gfx::StandardCursor::ResizeVertical: return WindowManager::the().resize_vertically_cursor(); - case StandardCursor::ResizeDiagonalTLBR: + case Gfx::StandardCursor::ResizeDiagonalTLBR: return WindowManager::the().resize_diagonally_tlbr_cursor(); - case StandardCursor::ResizeDiagonalBLTR: + case Gfx::StandardCursor::ResizeDiagonalBLTR: return WindowManager::the().resize_diagonally_bltr_cursor(); - case StandardCursor::ResizeColumn: + case Gfx::StandardCursor::ResizeColumn: return WindowManager::the().resize_column_cursor(); - case StandardCursor::ResizeRow: + case Gfx::StandardCursor::ResizeRow: return WindowManager::the().resize_row_cursor(); - case StandardCursor::Hand: + case Gfx::StandardCursor::Hand: return WindowManager::the().hand_cursor(); - case StandardCursor::Help: + case Gfx::StandardCursor::Help: return WindowManager::the().help_cursor(); - case StandardCursor::Drag: + case Gfx::StandardCursor::Drag: return WindowManager::the().drag_cursor(); - case StandardCursor::Move: + case Gfx::StandardCursor::Move: return WindowManager::the().move_cursor(); - case StandardCursor::Wait: + case Gfx::StandardCursor::Wait: return WindowManager::the().wait_cursor(); } ASSERT_NOT_REACHED(); |