diff options
author | crupest <crupest@outlook.com> | 2020-10-28 21:28:15 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-28 21:28:15 +0800 |
commit | df4df679e157f974773dad7776b204e9d4f3009e (patch) | |
tree | bbc1e939a6e7cf38c2b982ad071e145e3f583caa /include/cru/win/native/InputMethod.hpp | |
parent | 6ce70ed4b08c7db20b6b384be26c7fc4e11c98de (diff) | |
download | cru-df4df679e157f974773dad7776b204e9d4f3009e.tar.gz cru-df4df679e157f974773dad7776b204e9d4f3009e.tar.bz2 cru-df4df679e157f974773dad7776b204e9d4f3009e.zip |
...
Diffstat (limited to 'include/cru/win/native/InputMethod.hpp')
-rw-r--r-- | include/cru/win/native/InputMethod.hpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/include/cru/win/native/InputMethod.hpp b/include/cru/win/native/InputMethod.hpp index 113f460d..f3dc15c0 100644 --- a/include/cru/win/native/InputMethod.hpp +++ b/include/cru/win/native/InputMethod.hpp @@ -72,31 +72,16 @@ class WinInputMethodContext : public WinNativeResource, std::u16string GetResultString(); - std::optional<AutoHIMC> TryGetHIMC(); + AutoHIMC GetHIMC(); private: - std::shared_ptr<INativeWindowResolver> native_window_resolver_; + WinNativeWindow* native_window_; - std::vector<EventRevokerGuard> event_revoker_guards_; + EventRevokerListGuard event_guard_; Event<std::nullptr_t> composition_start_event_; Event<std::nullptr_t> composition_end_event_; Event<std::nullptr_t> composition_event_; Event<std::u16string_view> text_event_; }; - -class WinInputMethodManager : public WinNativeResource, - public virtual IInputMethodManager { - public: - WinInputMethodManager(WinUiApplication* application); - - CRU_DELETE_COPY(WinInputMethodManager) - CRU_DELETE_MOVE(WinInputMethodManager) - - ~WinInputMethodManager() override; - - public: - std::unique_ptr<IInputMethodContext> GetContext( - INativeWindow* window) override; -}; } // namespace cru::platform::native::win |