/
Ti2DMatrix.h
49 lines (41 loc) 路 1.19 KB
/
Ti2DMatrix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#import "TiProxy.h"
/**
The proxy class for 2D matrix.
*/
@interface Ti2DMatrix : TiProxy {
@protected
CGAffineTransform matrix;
}
/**
Initializes the proxy with properties.
@param dict_ The properties dictionary.
*/
-(id)initWithProperties:(NSDictionary*)dict_;
/**
Initializes the proxy with transform matrix.
@param matrix_ The transform matrix.
*/
-(id)initWithMatrix:(CGAffineTransform)matrix_;
/**
Returns transform matrix.
@return The transform matrix.
*/
-(CGAffineTransform)matrix;
-(Ti2DMatrix*)translate:(id)args;
-(Ti2DMatrix*)scale:(id)args;
-(Ti2DMatrix*)rotate:(id)args;
-(Ti2DMatrix*)invert:(id)args;
-(Ti2DMatrix*)multiply:(id)args;
@property(nonatomic,readwrite,retain) NSNumber* a;
@property(nonatomic,readwrite,retain) NSNumber* b;
@property(nonatomic,readwrite,retain) NSNumber* c;
@property(nonatomic,readwrite,retain) NSNumber* d;
@property(nonatomic,readwrite,retain) NSNumber* tx;
@property(nonatomic,readwrite,retain) NSNumber* ty;
@end