diff options
author | Linus Groh <mail@linusgroh.de> | 2020-07-07 19:19:56 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-07 23:11:39 +0200 |
commit | 62866208eed3056e93ad745edcdd4a72dbd4dcf5 (patch) | |
tree | 114d1bd5ed43e09b985c023b271e0d369a966250 /Services/WindowServer | |
parent | 2dd40aac4d5daa1f98a24bd85a620d9adebff71c (diff) | |
download | serenity-62866208eed3056e93ad745edcdd4a72dbd4dcf5.zip |
WindowServer+LibGUI: Add "resize row/column" cursors
Diffstat (limited to 'Services/WindowServer')
-rw-r--r-- | Services/WindowServer/Cursor.cpp | 4 | ||||
-rw-r--r-- | Services/WindowServer/Cursor.h | 2 | ||||
-rw-r--r-- | Services/WindowServer/WindowManager.cpp | 2 | ||||
-rw-r--r-- | Services/WindowServer/WindowManager.h | 4 |
4 files changed, 12 insertions, 0 deletions
diff --git a/Services/WindowServer/Cursor.cpp b/Services/WindowServer/Cursor.cpp index 43db849731..da649f94af 100644 --- a/Services/WindowServer/Cursor.cpp +++ b/Services/WindowServer/Cursor.cpp @@ -66,6 +66,10 @@ RefPtr<Cursor> Cursor::create(StandardCursor standard_cursor) return WindowManager::the().resize_diagonally_tlbr_cursor(); case StandardCursor::ResizeDiagonalBLTR: return WindowManager::the().resize_diagonally_bltr_cursor(); + case StandardCursor::ResizeColumn: + return WindowManager::the().resize_column_cursor(); + case StandardCursor::ResizeRow: + return WindowManager::the().resize_row_cursor(); case StandardCursor::Hand: return WindowManager::the().hand_cursor(); case StandardCursor::Drag: diff --git a/Services/WindowServer/Cursor.h b/Services/WindowServer/Cursor.h index 2abbb21aad..0d1e35418f 100644 --- a/Services/WindowServer/Cursor.h +++ b/Services/WindowServer/Cursor.h @@ -38,6 +38,8 @@ enum class StandardCursor { ResizeVertical, ResizeDiagonalTLBR, ResizeDiagonalBLTR, + ResizeColumn, + ResizeRow, Hand, Drag, Move, diff --git a/Services/WindowServer/WindowManager.cpp b/Services/WindowServer/WindowManager.cpp index a1e98571dd..ac2f3740f0 100644 --- a/Services/WindowServer/WindowManager.cpp +++ b/Services/WindowServer/WindowManager.cpp @@ -117,6 +117,8 @@ void WindowManager::reload_config(bool set_screen) m_resize_vertically_cursor = get_cursor("ResizeV"); m_resize_diagonally_tlbr_cursor = get_cursor("ResizeDTLBR"); m_resize_diagonally_bltr_cursor = get_cursor("ResizeDBLTR"); + m_resize_column_cursor = get_cursor("ResizeColumn"); + m_resize_row_cursor = get_cursor("ResizeRow"); m_i_beam_cursor = get_cursor("IBeam"); m_disallowed_cursor = get_cursor("Disallowed"); m_move_cursor = get_cursor("Move"); diff --git a/Services/WindowServer/WindowManager.h b/Services/WindowServer/WindowManager.h index 3f4707032b..f57d21a3e5 100644 --- a/Services/WindowServer/WindowManager.h +++ b/Services/WindowServer/WindowManager.h @@ -126,6 +126,8 @@ public: const Cursor& resize_vertically_cursor() const { return *m_resize_vertically_cursor; } const Cursor& resize_diagonally_tlbr_cursor() const { return *m_resize_diagonally_tlbr_cursor; } const Cursor& resize_diagonally_bltr_cursor() const { return *m_resize_diagonally_bltr_cursor; } + const Cursor& resize_column_cursor() const { return *m_resize_column_cursor; } + const Cursor& resize_row_cursor() const { return *m_resize_row_cursor; } const Cursor& i_beam_cursor() const { return *m_i_beam_cursor; } const Cursor& disallowed_cursor() const { return *m_disallowed_cursor; } const Cursor& move_cursor() const { return *m_move_cursor; } @@ -206,6 +208,8 @@ private: RefPtr<Cursor> m_resize_vertically_cursor; RefPtr<Cursor> m_resize_diagonally_tlbr_cursor; RefPtr<Cursor> m_resize_diagonally_bltr_cursor; + RefPtr<Cursor> m_resize_column_cursor; + RefPtr<Cursor> m_resize_row_cursor; RefPtr<Cursor> m_i_beam_cursor; RefPtr<Cursor> m_disallowed_cursor; RefPtr<Cursor> m_move_cursor; |