Merge pull request #10 from gunyarakun/fix-invalid-return
[cocotron.git] / Onyx2D / O2ClipPhase.h
blobe874575229445bc4d37199c35f1fbe6743a983b1
1 #import <Foundation/NSObject.h>
2 #import <Onyx2D/O2Geometry.h>
3 #import <Onyx2D/O2AffineTransform.h>
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
9 @class O2Path, O2Image;
11 typedef enum {
12 O2ClipPhaseNonZeroPath,
13 O2ClipPhaseEOPath,
14 O2ClipPhaseMask,
15 } O2ClipPhaseType;
17 @interface O2ClipPhase : NSObject {
18 O2ClipPhaseType _type;
19 id _object;
20 O2Rect _rect;
21 O2AffineTransform _transform;
24 O2ClipPhase *O2ClipPhaseInitWithNonZeroPath(O2ClipPhase *self, O2Path *path);
25 - initWithEOPath:(O2Path *)path;
26 - initWithMask:(O2Image *)mask rect:(O2Rect)rect transform:(O2AffineTransform)transform;
28 O2ClipPhaseType O2ClipPhasePhaseType(O2ClipPhase *self);
29 id O2ClipPhaseObject(O2ClipPhase *self);
31 @end
33 #ifdef __cplusplus
35 #endif