FreeRDP
Loading...
Searching...
No Matches
AdvancedKeyboardView.h
1/*
2 Advanced keyboard view interface
3
4 Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
5
6 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 If a copy of the MPL was not distributed with this file, You can obtain one at
8 http://mozilla.org/MPL/2.0/.
9 */
10
11#import <UIKit/UIKit.h>
12
13// forward declaration
14@protocol AdvancedKeyboardDelegate <NSObject>
15@optional
16// called when a function key was pressed and a virtual keycode is provided
17// @key: virtual key code
18- (void)advancedKeyPressedVKey:(NSInteger)key;
19@end
20
21@interface AdvancedKeyboardView : UIInputView <UIInputViewAudioFeedback>
22{
23 @private
24 NSMutableArray *_key_buttons;
25 NSMutableArray *_tab_buttons;
26 NSMutableArray *_separators;
27
28 // selected page and the layout the views were built for
29 NSInteger _page;
30 BOOL _wide_layout;
31 BOOL _has_layout;
32
33 // auto repeat of a held key
34 NSTimer *_repeat_timer;
35 NSInteger _repeat_key;
36
37 // delegate
38 NSObject<AdvancedKeyboardDelegate> *_delegate;
39}
40
41@property(assign) NSObject<AdvancedKeyboardDelegate> *delegate;
42
43// init keyboard view with frame and delegate
44- (id)initWithFrame:(CGRect)frame delegate:(NSObject<AdvancedKeyboardDelegate> *)delegate;
45
46@end