forked from rime/squirrel
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathSquirrelPanel.h
34 lines (25 loc) · 986 Bytes
/
SquirrelPanel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#import <Cocoa/Cocoa.h>
@class SquirrelConfig;
@interface SquirrelPanel : NSWindow
// Linear candidate list, as opposed to stacked candidate list.
@property(nonatomic, readonly) BOOL linear;
// Vertical text, as opposed to horizontal text.
@property(nonatomic, readonly) BOOL vertical;
// Show preedit text inline.
@property(nonatomic, readonly) BOOL inlinePreedit;
// Show first candidate inline
@property(nonatomic, readonly) BOOL inlineCandidate;
// position of input caret on screen.
@property(nonatomic, assign) NSRect position;
-(void)showPreedit:(NSString*)preedit
selRange:(NSRange)selRange
caretPos:(NSUInteger)caretPos
candidates:(NSArray*)candidates
comments:(NSArray*)comments
labels:(NSArray*)labels
highlighted:(NSUInteger)index;
-(void)hide;
-(void)updateStatusLong:(NSString*)messageLong statusShort:(NSString*)messageShort;
-(void)loadConfig:(SquirrelConfig*)config
forDarkMode:(BOOL)isDark;
@end