aboutsummaryrefslogtreecommitdiff
path: root/include/cru/osx/gui
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-20 22:43:30 +0800
committercrupest <crupest@outlook.com>2021-11-20 22:43:30 +0800
commita60910cb3db6f47fd8f3b7f31648a9d0514d4f2c (patch)
tree32c01c22e21742ae0c9febb2cbc26339f99eec1d /include/cru/osx/gui
parent1a53ed0791d9793ed8030d3a44e833e5e7c4542b (diff)
downloadcru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.tar.gz
cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.tar.bz2
cru-a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c.zip
...
Diffstat (limited to 'include/cru/osx/gui')
-rw-r--r--include/cru/osx/gui/InputMethod.hpp4
-rw-r--r--include/cru/osx/gui/Window.hpp7
2 files changed, 7 insertions, 4 deletions
diff --git a/include/cru/osx/gui/InputMethod.hpp b/include/cru/osx/gui/InputMethod.hpp
index aa013338..d184a722 100644
--- a/include/cru/osx/gui/InputMethod.hpp
+++ b/include/cru/osx/gui/InputMethod.hpp
@@ -7,12 +7,14 @@ namespace cru::platform::gui::osx {
class OsxWindow;
namespace details {
+class OsxWindowPrivate;
class OsxInputMethodContextPrivate;
-}
+} // namespace details
class OsxInputMethodContext : public OsxGuiResource,
public virtual IInputMethodContext {
friend OsxWindow;
+ friend details::OsxWindowPrivate;
friend details::OsxInputMethodContextPrivate;
public:
diff --git a/include/cru/osx/gui/Window.hpp b/include/cru/osx/gui/Window.hpp
index 406c133f..7ea21926 100644
--- a/include/cru/osx/gui/Window.hpp
+++ b/include/cru/osx/gui/Window.hpp
@@ -39,6 +39,9 @@ class OsxWindow : public OsxGuiResource, public INativeWindow {
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;
@@ -55,6 +58,7 @@ class OsxWindow : public OsxGuiResource, public INativeWindow {
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<Size>* ResizeEvent() override;
@@ -70,9 +74,6 @@ class OsxWindow : public OsxGuiResource, public INativeWindow {
IInputMethodContext* GetInputMethodContext() override;
private:
- void CreateWindow();
-
- private:
std::unique_ptr<details::OsxWindowPrivate> p_;
};
} // namespace cru::platform::gui::osx