diff options
Diffstat (limited to 'Libraries/LibGUI/Window.h')
-rw-r--r-- | Libraries/LibGUI/Window.h | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/Libraries/LibGUI/Window.h b/Libraries/LibGUI/Window.h index 88b7b39fa6..0249738802 100644 --- a/Libraries/LibGUI/Window.h +++ b/Libraries/LibGUI/Window.h @@ -36,26 +36,10 @@ #include <LibGfx/Color.h> #include <LibGfx/Forward.h> #include <LibGfx/Rect.h> +#include <LibGfx/StandardCursor.h> namespace GUI { -enum class StandardCursor { - None = 0, - Arrow, - IBeam, - ResizeHorizontal, - ResizeVertical, - ResizeDiagonalTLBR, - ResizeDiagonalBLTR, - ResizeColumn, - ResizeRow, - Hand, - Help, - Drag, - Move, - Wait, -}; - class Window : public Core::Object { C_OBJECT(Window) public: @@ -184,7 +168,7 @@ public: void set_no_resize_aspect_ratio() { set_resize_aspect_ratio({}); } void set_resize_aspect_ratio(const Optional<Gfx::IntSize>& ratio); - void set_override_cursor(StandardCursor); + void set_override_cursor(Gfx::StandardCursor); void set_override_cursor(const Gfx::Bitmap&); void set_icon(const Gfx::Bitmap*); @@ -257,7 +241,7 @@ private: Gfx::IntSize m_base_size; Color m_background_color { Color::WarmGray }; WindowType m_window_type { WindowType::Normal }; - StandardCursor m_override_cursor { StandardCursor::None }; + Gfx::StandardCursor m_override_cursor { Gfx::StandardCursor::None }; bool m_is_active { false }; bool m_is_active_input { false }; bool m_has_alpha_channel { false }; |