Mercurial > projects > dstep
comparison dstep/quartzcore/CACIFilterAdditions.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.quartzcore.CACIFilterAdditions; | |
8 | |
9 import dstep.foundation.NSString; | |
10 import dstep.objc.bridge.Bridge; | |
11 import dstep.objc.objc; | |
12 import dstep.quartzcore.CABase; | |
13 import dstep.quartzcore.CIFilter; | |
14 | |
15 const TCACIFilterAdditions = ` | |
16 | |
17 NSString name () | |
18 { | |
19 return invokeObjcMethod!(NSString, "name"); | |
20 } | |
21 | |
22 void name (NSString name) | |
23 { | |
24 return invokeObjcMethod!(void, "setName:", NSString)(name); | |
25 } | |
26 | |
27 alias name setName; | |
28 | |
29 bool enabled () | |
30 { | |
31 return invokeObjcMethod!(bool, "enabled"); | |
32 } | |
33 | |
34 void enabled (bool enabled) | |
35 { | |
36 return invokeObjcMethod!(void, "setEnabled:", bool)(enabled); | |
37 } | |
38 | |
39 alias enabled setEnabled; | |
40 `; |