Oolite
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@private
31 jsval _callback;
32 JSObject* _callbackThis;
34
35 NSString* _name;
36 NSDictionary* _registerKeys;
37}
38
39- (NSString*)name;
40- (void)setName:(NSString*)name;
41- (NSDictionary*)registerKeys;
42- (void)setRegisterKeys:(NSDictionary*)registerKeys;
43- (jsval)callback;
44- (void)setCallback:(jsval)callback;
45- (JSObject*)callbackThis;
46- (void)setCallbackThis:(JSObject*)callbackthis;
47
48- (void)runCallback:(NSString*)key;
49
50- (NSComparisonResult)interfaceCompare:(OOJSGuiScreenKeyDefinition*)other;
51
52@end