aboutsummaryrefslogtreecommitdiff
path: root/src/osx/gui/InputMethodPrivate.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-21 22:15:52 +0800
committercrupest <crupest@outlook.com>2021-10-21 22:15:52 +0800
commite998a88b5ad6cc260836b3374e882e2ef67d5d35 (patch)
tree0bf82250bae0817370986a9a20750bae92a4922f /src/osx/gui/InputMethodPrivate.h
parent6f1edc1604341b32e13371c8a4ad431e9a00cc87 (diff)
downloadcru-e998a88b5ad6cc260836b3374e882e2ef67d5d35.tar.gz
cru-e998a88b5ad6cc260836b3374e882e2ef67d5d35.tar.bz2
cru-e998a88b5ad6cc260836b3374e882e2ef67d5d35.zip
...
Diffstat (limited to 'src/osx/gui/InputMethodPrivate.h')
-rw-r--r--src/osx/gui/InputMethodPrivate.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/osx/gui/InputMethodPrivate.h b/src/osx/gui/InputMethodPrivate.h
index 4b5478e1..d2fccb43 100644
--- a/src/osx/gui/InputMethodPrivate.h
+++ b/src/osx/gui/InputMethodPrivate.h
@@ -1,11 +1,7 @@
#pragma once
#include "cru/osx/gui/InputMethod.hpp"
-#import <AppKit/AppKit.h>
-
-@interface CruInputClient : NSObject <NSTextInputClient>
-- (id)init:(cru::platform::gui::osx::details::OsxInputMethodContextPrivate*)p;
-@end
+#include <AppKit/AppKit.h>
namespace cru::platform::gui::osx {
namespace details {
@@ -13,7 +9,8 @@ class OsxInputMethodContextPrivate {
friend OsxInputMethodContext;
public:
- OsxInputMethodContextPrivate(OsxInputMethodContext* input_method_context, OsxWindow* window);
+ OsxInputMethodContextPrivate(OsxInputMethodContext* input_method_context,
+ OsxWindow* window);
CRU_DELETE_COPY(OsxInputMethodContextPrivate)
CRU_DELETE_MOVE(OsxInputMethodContextPrivate)
@@ -30,10 +27,14 @@ class OsxInputMethodContextPrivate {
void RaiseTextEvent(StringView text);
Point GetCandidateWindowPosition() const { return candidate_window_point_; }
- void SetCandidateWindowPosition(const Point& p) { candidate_window_point_ = p; }
+ void SetCandidateWindowPosition(const Point& p) {
+ candidate_window_point_ = p;
+ }
Range GetSelectionRange() const { return selection_range_; }
- void SetSelectionRange(Range selection_range) { selection_range_ = selection_range; }
+ void SetSelectionRange(Range selection_range) {
+ selection_range_ = selection_range;
+ }
void PerformSel(SEL sel);
@@ -57,6 +58,5 @@ class OsxInputMethodContextPrivate {
Event<std::nullptr_t> composition_end_event_;
Event<StringView> text_event_;
};
-
-}
-}
+} // namespace details
+} // namespace cru::platform::gui::osx