-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWTPoint.m
More file actions
executable file
·56 lines (49 loc) · 816 Bytes
/
WTPoint.m
File metadata and controls
executable file
·56 lines (49 loc) · 816 Bytes
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
56
//
// WTPoint.m
// CocoaPictionary
//
// Created by Jason on 10/17/09.
// Copyright 2009 TokBox Inc.. All rights reserved.
//
#import "WTPoint.h"
@implementation WTPoint
-(id)initWithArgs:(float)_opacity mIsErasing:(BOOL)_mIsErasing brushSize:(float)_brushSize currentLoc:(NSPoint)_currentLoc;
{
if ((self = [super init]) == nil) {
return self;
} // end if
opacity = _opacity;
mIsErasing = _mIsErasing;
brushSize = _brushSize;
currentLoc = _currentLoc;
return self;
}
-(float)opacity;
{
return opacity;
}
-(float)brushSize;
{
return brushSize;
}
-(BOOL)mIsErasing;
{
return mIsErasing;
}
-(NSPoint)mLastLoc;
{
return mLastLoc;
}
-(NSPoint)currentLoc;
{
return currentLoc;
}
- (float)x;
{
return currentLoc.x;
} // end x
- (float)y;
{
return currentLoc.y;
} // end y
@end