diff options
| author | crupest <crupest@outlook.com> | 2022-02-08 16:53:51 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-02-08 16:53:51 +0800 |
| commit | 74bb9cd27242b9320f99ff4d2b50c3051576cc14 (patch) | |
| tree | 744bac5799c593d1d6f81e7b09581bea626f2cde /include/cru/osx/gui/InputMethod.hpp | |
| parent | b90c398de829d1ba5329651d75bae82f5e4085fe (diff) | |
| download | cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.gz cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.bz2 cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.zip | |
...
Diffstat (limited to 'include/cru/osx/gui/InputMethod.hpp')
| -rw-r--r-- | include/cru/osx/gui/InputMethod.hpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/include/cru/osx/gui/InputMethod.hpp b/include/cru/osx/gui/InputMethod.hpp deleted file mode 100644 index d184a722..00000000 --- a/include/cru/osx/gui/InputMethod.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#pragma once -#include "Resource.hpp" - -#include "cru/platform/gui/InputMethod.hpp" - -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: - 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; - - bool IsEnabled(); - - private: - std::unique_ptr<details::OsxInputMethodContextPrivate> p_; -}; -} // namespace cru::platform::gui::osx |
