aboutsummaryrefslogtreecommitdiff
path: root/include/cru/osx/gui/Window.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-21 14:12:26 +0800
committercrupest <crupest@outlook.com>2021-10-21 14:12:26 +0800
commit695031ac33acd398bd1492bcce813b8346574ae2 (patch)
treec2ad61bd3db4aa8f07ee0929c26ba70a42275d64 /include/cru/osx/gui/Window.hpp
parente0e786729df8114555fa3af9fffe256b067ea823 (diff)
downloadcru-695031ac33acd398bd1492bcce813b8346574ae2.tar.gz
cru-695031ac33acd398bd1492bcce813b8346574ae2.tar.bz2
cru-695031ac33acd398bd1492bcce813b8346574ae2.zip
...
Diffstat (limited to 'include/cru/osx/gui/Window.hpp')
-rw-r--r--include/cru/osx/gui/Window.hpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/include/cru/osx/gui/Window.hpp b/include/cru/osx/gui/Window.hpp
index 710246bc..24ebabca 100644
--- a/include/cru/osx/gui/Window.hpp
+++ b/include/cru/osx/gui/Window.hpp
@@ -17,7 +17,6 @@ class OsxInputMethodContext;
class OsxWindow : public OsxGuiResource, public INativeWindow {
friend details::OsxWindowPrivate;
- friend OsxInputMethodContext;
friend details::OsxInputMethodContextPrivate;
public:
@@ -96,43 +95,4 @@ class OsxWindow : public OsxGuiResource, public INativeWindow {
Event<NativeKeyEventArgs> key_down_event_;
Event<NativeKeyEventArgs> key_up_event_;
};
-
-class OsxInputMethodContext : public OsxGuiResource,
- public IInputMethodContext {
- friend details::OsxInputMethodContextPrivate;
-
- public:
- explicit OsxInputMethodContext(OsxWindow* window);
-
- CRU_DELETE_COPY(OsxInputMethodContext)
- CRU_DELETE_MOVE(OsxInputMethodContext)
-
- ~OsxInputMethodContext() override;
-
- public:
- bool ShouldManuallyDrawCompositionText() override;
-
- void EnableIME() override;
-
- void DisableIME() override;
-
- void CompleteComposition() override;
-
- void CancelComposition() override;
-
- CompositionText GetCompositionText() override;
-
- void SetCandidateWindowPosition(const Point& point) override;
-
- IEvent<std::nullptr_t>* CompositionStartEvent() override;
-
- IEvent<std::nullptr_t>* CompositionEndEvent() override;
-
- IEvent<std::nullptr_t>* CompositionEvent() override;
-
- IEvent<StringView>* TextEvent() override;
-
- private:
- std::unique_ptr<details::OsxInputMethodContextPrivate> p_;
-};
} // namespace cru::platform::gui::osx