forked from zepouet/Xee-xCode-4.5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
XeeCropTool.h
45 lines (36 loc) · 997 Bytes
/
XeeCropTool.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
#import "XeeTool.h"
#define XeeOutsideArea 0
#define XeeInsideArea 1
#define XeeTopLeftArea 2
#define XeeTopRightArea 3
#define XeeBottomLeftArea 4
#define XeeBottomRightArea 5
#define XeeTopArea 6
#define XeeBottomArea 7
#define XeeLeftArea 8
#define XeeRightArea 9
#define XeeNoCropMode 0
#define XeeResizeCropMode 1
#define XeeVerticalResizeCropMode 2
#define XeeHorizontalResizeCropMode 3
#define XeeMoveCropMode 4
@interface XeeCropTool:XeeTool
{
float o,i;
int crop_x,crop_y,crop_width,crop_height;
int area,mode;
int start_x,start_y;
float offs_x,offs_y;
}
-(id)initWithView:(XeeView *)ownerview;
-(void)dealloc;
-(void)mouseDownAt:(NSPoint)position;
-(void)mouseUpAt:(NSPoint)position;
-(void)mouseDoubleClickedAt:(NSPoint)position;
-(void)mouseMovedTo:(NSPoint)position relative:(NSPoint)relative;
-(void)mouseDraggedTo:(NSPoint)position relative:(NSPoint)relative;
-(void)findAreaForPosition:(NSPoint)position;
-(NSCursor *)cursor;
-(void)draw;
-(NSRect)croppingRect;
@end