Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOJSGuiScreenKeyDefinition.h
Go to the documentation of this file.
1/*
2
3OOJSGuiScreenKeyDefinition.h
4
5
6Oolite
7Copyright (C) 2004-2013 Giles C Williams and contributors
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22MA 02110-1301, USA.
23
24*/
25
26#import "OOJSScript.h"
27#include <jsapi.h>
28
30{
31@private
32 jsval _callback;
33 JSObject *_callbackThis;
35
36 NSString *_name;
37 NSDictionary *_registerKeys;
38}
39
40- (NSString *)name;
41- (void)setName:(NSString *)name;
42- (NSDictionary *)registerKeys;
43- (void)setRegisterKeys:(NSDictionary *)registerKeys;
44- (jsval)callback;
45- (void)setCallback:(jsval)callback;
46- (JSObject *)callbackThis;
47- (void)setCallbackThis:(JSObject *)callbackthis;
48
49- (void)runCallback:(NSString *)key;
50
51- (NSComparisonResult)interfaceCompare:(OOJSGuiScreenKeyDefinition *)other;
52
53@end
54