spiegel-keyman/mac/KeymanEngine4Mac/KeymanEngine4Mac/KME/OnScreenKeyboard/OSKView.h

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 */