-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
TiPoint.h
55 lines (44 loc) 路 1.11 KB
/
TiPoint.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
49
50
51
52
53
54
55
/**
* 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 "TiDimension.h"
#import "TiProxy.h"
/**
The class for point proxy.
*/
@interface TiPoint : TiProxy {
TiDimension xDimension;
TiDimension yDimension;
}
/**
Initializes the point object from point struct.
@param point_ The point struct.
*/
- (id)initWithPoint:(CGPoint)point_;
- (id)initWithObject:(id)object;
- (void)setValues:(id)object;
- (void)add:(TiPoint *)value;
/**
Provides access to point struct.
*/
@property (nonatomic, assign) CGPoint point;
/**
Provides access to the point x coordinate.
*/
@property (nonatomic, retain) NSNumber *x;
/**
Provides access to the point y coordiante.
*/
@property (nonatomic, retain) NSNumber *y;
/**
Returns the point x coordinate as a dimension.
*/
@property (nonatomic, assign) TiDimension xDimension;
/**
Returns the point y coordinate as a dimension.
*/
@property (nonatomic, assign) TiDimension yDimension;
@end