mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-13 12:19:25 +00:00
36 lines
950 B
Objective-C
36 lines
950 B
Objective-C
//
|
|
// OSKView.h
|
|
// KeymanEngine4Mac
|
|
//
|
|
// Created by Serkan Kurt on 7/11/2014.
|
|
// Copyright (c) 2017 SIL International. All rights reserved.
|
|
//
|
|
|
|
#ifndef OSKView_h
|
|
#define OSKView_h
|
|
|
|
#import "KVKFile.h"
|
|
#import "KMkeyViewProtocol.h"
|
|
|
|
@interface OSKView : NSView <KMkeyView>
|
|
|
|
@property (weak, nonatomic) KVKFile *kvk;
|
|
|
|
+ (BOOL)isOskKeyDownEvent:(CGEventRef)event;
|
|
+ (NSEventModifierFlags)extractModifierFlagsFromOskEvent:(CGEventRef)event;
|
|
- (void)handleKeyEvent:(NSEvent *)event;
|
|
- (void)setPhysicalShiftState:(BOOL)shiftState;
|
|
- (void)setOskShiftState:(BOOL)oskShiftState;
|
|
- (void)setPhysicalOptionState:(BOOL)altState;
|
|
- (void)setOskOptionState:(BOOL)oskAltState;
|
|
- (void)setPhysicalControlState:(BOOL)ctrlState;
|
|
- (void)setOskControlState:(BOOL)oskCtrlState;
|
|
- (void)clearOskModifiers;
|
|
- (NSEventModifierFlags)getOskEventModifierFlags;
|
|
- (void)resetOSK;
|
|
- (void)resizeOSKLayout;
|
|
- (int64_t)createOskEventUserData;
|
|
|
|
@end
|
|
|
|
#endif /* OSKView_h */
|