Mercurial > projects > dstep
comparison dstep/quartzcore/CAMediaTiming.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.CAMediaTiming; | |
8 | |
9 import dstep.corefoundation.CFDate; | |
10 import dstep.foundation.NSString; | |
11 import dstep.objc.bridge.Bridge; | |
12 import dstep.objc.objc; | |
13 import dstep.quartzcore.CABase; | |
14 | |
15 import bindings = dstep.quartzcore.CAMediaTiming_bindings; | |
16 | |
17 private | |
18 { | |
19 NSString kCAFillModeForwards_; | |
20 NSString kCAFillModeBackwards_; | |
21 NSString kCAFillModeBoth_; | |
22 NSString kCAFillModeRemoved_; | |
23 } | |
24 | |
25 NSString kCAFillModeForwards () | |
26 { | |
27 if (kCAFillModeForwards_) | |
28 return kCAFillModeForwards_; | |
29 | |
30 return kCAFillModeForwards_ = new NSString(bindings.kCAFillModeForwards); | |
31 } | |
32 | |
33 NSString kCAFillModeBackwards () | |
34 { | |
35 if (kCAFillModeBackwards_) | |
36 return kCAFillModeBackwards_; | |
37 | |
38 return kCAFillModeBackwards_ = new NSString(bindings.kCAFillModeBackwards); | |
39 } | |
40 | |
41 NSString kCAFillModeBoth () | |
42 { | |
43 if (kCAFillModeBoth_) | |
44 return kCAFillModeBoth_; | |
45 | |
46 return kCAFillModeBoth_ = new NSString(bindings.kCAFillModeBoth); | |
47 } | |
48 | |
49 NSString kCAFillModeRemoved () | |
50 { | |
51 if (kCAFillModeRemoved_) | |
52 return kCAFillModeRemoved_; | |
53 | |
54 return kCAFillModeRemoved_ = new NSString(bindings.kCAFillModeRemoved); | |
55 } | |
56 | |
57 interface ICAMediaTiming | |
58 { | |
59 CFTimeInterval beginTime (); | |
60 void beginTime (CFTimeInterval time); | |
61 alias beginTime setBeginTime; | |
62 | |
63 CFTimeInterval duration (); | |
64 void duration (CFTimeInterval time); | |
65 alias duration setDuration; | |
66 | |
67 float speed (); | |
68 void speed (float f); | |
69 alias speed setSpeed; | |
70 | |
71 CFTimeInterval timeOffset (); | |
72 void timeOffset (CFTimeInterval time); | |
73 alias timeOffset setTimeOffset; | |
74 | |
75 float repeatCount (); | |
76 void repeatCount (float count); | |
77 alias repeatCount setRepeatCount; | |
78 | |
79 CFTimeInterval repeatDuration (); | |
80 void repeatDuration (CFTimeInterval time); | |
81 alias repeatDuration setRepeatCount; | |
82 | |
83 NSString fillMode (); | |
84 void fillMode (NSString mode); | |
85 alias fillMode setFillMode; | |
86 } |