mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-30 04:07:42 +00:00
34 lines
833 B
Objective-C
34 lines
833 B
Objective-C
//
|
|
// KMEngine.h
|
|
// KeymanEngine4Mac
|
|
//
|
|
// Created by Serkan Kurt on 22/12/2014.
|
|
// Copyright (c) 2017 SIL International. All rights reserved.
|
|
//
|
|
|
|
#ifndef KMEngine_h
|
|
#define KMEngine_h
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "KMXFile.h"
|
|
#import "CoreKeyOutput.h"
|
|
#import "CoreKeyboardInfo.h"
|
|
|
|
//#define USE_ALERT_SHOW_HELP_TO_FORCE_EASTER_EGG_CRASH_FROM_ENGINE
|
|
|
|
@interface KMEngine : NSObject
|
|
|
|
@property (weak, nonatomic) KMXFile *kmx;
|
|
|
|
- (id)initWithKMX:(KMXFile *)kmx context:(NSString *)ctxBuf;
|
|
- (CoreKeyboardInfo*)loadKeyboardFromKmxFile:(KMXFile*) kmxFile;
|
|
- (NSString *)getCoreContextDebug;
|
|
- (void)clearCoreContext;
|
|
- (void)setCoreContextIfNeeded:(NSString *)context;
|
|
|
|
- (void)setCoreOptions:(NSString *)key withValue:(NSString *)value;
|
|
- (CoreKeyOutput *)processEvent:(NSEvent *)event;
|
|
|
|
@end
|
|
|
|
#endif /* KMEngine_h */
|