diff options
Diffstat (limited to 'include/cru/osx/gui/Window.hpp')
-rw-r--r-- | include/cru/osx/gui/Window.hpp | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/include/cru/osx/gui/Window.hpp b/include/cru/osx/gui/Window.hpp deleted file mode 100644 index 904a0188..00000000 --- a/include/cru/osx/gui/Window.hpp +++ /dev/null @@ -1,90 +0,0 @@ -#pragma once -#include "Resource.hpp" -#include "cru/platform/gui/Base.hpp" -#include "cru/platform/gui/InputMethod.hpp" -#include "cru/platform/gui/Window.hpp" - -#include <memory> - -namespace cru::platform::gui::osx { -namespace details { -class OsxWindowPrivate; -class OsxInputMethodContextPrivate; -} // namespace details - -class OsxUiApplication; -class OsxInputMethodContext; - -class OsxWindow : public OsxGuiResource, public INativeWindow { - friend details::OsxWindowPrivate; - friend details::OsxInputMethodContextPrivate; - - public: - OsxWindow(OsxUiApplication* ui_application); - - CRU_DELETE_COPY(OsxWindow) - CRU_DELETE_MOVE(OsxWindow) - - ~OsxWindow() override; - - public: - void Close() override; - - INativeWindow* GetParent() override; - void SetParent(INativeWindow* parent) override; - - WindowStyleFlag GetStyleFlag() override; - void SetStyleFlag(WindowStyleFlag flag) override; - - String GetTitle() override; - void SetTitle(String title) override; - - WindowVisibilityType GetVisibility() override; - void SetVisibility(WindowVisibilityType visibility) override; - - Size GetClientSize() override; - void SetClientSize(const Size& size) override; - - Rect GetClientRect() override; - void SetClientRect(const Rect& rect) override; - - Rect GetWindowRect() override; - void SetWindowRect(const Rect& rect) override; - - bool RequestFocus() override; - - Point GetMousePosition() override; - - bool CaptureMouse() override; - bool ReleaseMouse() override; - - void SetCursor(std::shared_ptr<ICursor> cursor) override; - - void SetToForeground() override; - - void RequestRepaint() override; - - std::unique_ptr<graphics::IPainter> BeginPaint() override; - - IEvent<std::nullptr_t>* CreateEvent() override; - IEvent<std::nullptr_t>* DestroyEvent() override; - IEvent<std::nullptr_t>* PaintEvent() override; - - IEvent<WindowVisibilityType>* VisibilityChangeEvent() override; - IEvent<Size>* ResizeEvent() override; - IEvent<FocusChangeType>* FocusEvent() override; - - IEvent<MouseEnterLeaveType>* MouseEnterLeaveEvent() override; - IEvent<Point>* MouseMoveEvent() override; - IEvent<NativeMouseButtonEventArgs>* MouseDownEvent() override; - IEvent<NativeMouseButtonEventArgs>* MouseUpEvent() override; - IEvent<NativeMouseWheelEventArgs>* MouseWheelEvent() override; - IEvent<NativeKeyEventArgs>* KeyDownEvent() override; - IEvent<NativeKeyEventArgs>* KeyUpEvent() override; - - IInputMethodContext* GetInputMethodContext() override; - - private: - std::unique_ptr<details::OsxWindowPrivate> p_; -}; -} // namespace cru::platform::gui::osx |