comparison dstep/qtkit/QTMovieLayer.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 b9de51448c6b
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 28, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.qtkit.QTMovieLayer;
8
9 import dstep.foundation.Foundation;
10 import dstep.objc.bridge.Bridge;
11 import dstep.objc.objc;
12 import dstep.qtkit.QTKitDefines;
13 import dstep.qtkit.QTMovie;
14 import dstep.quartzcore.CALayer;
15
16 class QTMovieLayer : CALayer
17 {
18 mixin (ObjcWrap);
19
20 static Object layerWithMovie (QTMovie movie)
21 {
22 return invokeObjcSelfClass!(Object, "layerWithMovie:", QTMovie)(movie);
23 }
24
25 QTMovieLayer initWithMovie (QTMovie movie)
26 {
27 id result = invokeObjcSelf!(id, "initWithMovie:", QTMovie)(movie);
28 return result is this.objcObject ? this : (result !is null ? new QTMovieLayer(result) : null);
29 }
30
31 this (QTMovie movie)
32 {
33 super(QTMovieLayer.alloc.initWithMovie(movie).objcObject);
34 }
35
36 void setMovie (QTMovie movie)
37 {
38 return invokeObjcSelf!(void, "setMovie:", QTMovie)(movie);
39 }
40
41 QTMovie movie ()
42 {
43 return invokeObjcSelf!(QTMovie, "movie");
44 }
45 }
46