From 2b28ec296fdc72050569b9fedc1664ada7791497 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 20 Nov 2021 23:02:54 +0800 Subject: ... --- include/cru/osx/gui/Window.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'include/cru/osx/gui/Window.hpp') diff --git a/include/cru/osx/gui/Window.hpp b/include/cru/osx/gui/Window.hpp index 7ea21926..5383ca1b 100644 --- a/include/cru/osx/gui/Window.hpp +++ b/include/cru/osx/gui/Window.hpp @@ -20,8 +20,7 @@ class OsxWindow : public OsxGuiResource, public INativeWindow { friend details::OsxInputMethodContextPrivate; public: - OsxWindow(OsxUiApplication* ui_application, INativeWindow* parent, - bool frame); + OsxWindow(OsxUiApplication* ui_application); CRU_DELETE_COPY(OsxWindow) CRU_DELETE_MOVE(OsxWindow) @@ -32,9 +31,13 @@ class OsxWindow : public OsxGuiResource, public INativeWindow { void Close() override; INativeWindow* GetParent() override; + void SetParent(INativeWindow* parent) override; - bool IsVisible() override; - void SetVisible(bool is_visible) override; + WindowStyleFlag GetShowFlag() override; + void SetShowFlag(WindowStyleFlag flag) override; + + WindowVisibilityType GetVisibility() override; + void SetVisibility(WindowVisibilityType visibility) override; Size GetClientSize() override; void SetClientSize(const Size& size) override; @@ -61,8 +64,11 @@ class OsxWindow : public OsxGuiResource, public INativeWindow { IEvent* CreateEvent() override; IEvent* DestroyEvent() override; IEvent* PaintEvent() override; + + IEvent* VisibilityChangeEvent() override; IEvent* ResizeEvent() override; IEvent* FocusEvent() override; + IEvent* MouseEnterLeaveEvent() override; IEvent* MouseMoveEvent() override; IEvent* MouseDownEvent() override; -- cgit v1.2.3