forked from coo-ona/cooViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomImageView.h
118 lines (86 loc) · 2.01 KB
/
CustomImageView.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#import <Cocoa/Cocoa.h>
#import "Controller.h"
#import "LoupeView.h"
@interface CustomImageView : NSImageView
{
IBOutlet id accessoryWindow;
IBOutlet id accessoryView;
BOOL needFirstScroll;
BOOL didFirst;
NSWindow *lensWindow;
int maxEnlargement;
//rotate
/*0=normal 1=left90 2=left180 3=left270(right90)*/
int rotateMode;
//lens
int lensSize;
float lensRate;
NSPoint lensOldPoint;
NSRect fRect;
NSRect sRect;
NSCursor *crossCursor;
NSRect lensRect;
/*#import <QuartzCore/QuartzCore.h>*/
/*OTHER_LDFLAGS -weak_framework QuartzCore*/
NSImage *_image;
NSPoint oldPoint;
NSPoint cursorMoved;
BOOL rightPage;
//id target;
Controller *target;
SEL selector;
double time;
NSTimer *timer;
float setting;
int interpolation;
int fitScreenMode;
BOOL images;
int tempPageNum;
NSMutableDictionary *dragScrollDic;
BOOL inDragScroll;
BOOL didDragScroll;
BOOL startFromEnd;
id filters;
BOOL useCalayer;
@private
NSMutableArray *urlRectArray;
float mt_rotation;
float mt_deltaZ;
BOOL mt_didAction;
}
-(void)setScreenFitMode:(int)mode;
-(void)setUseCalayer:(BOOL)use;
-(void)setInterpolation:(int)index;
-(void)setImages:(NSImage *)image;
-(BOOL)pageMover;
-(int)tempPageNum;
-(void)drawPageMover:(int)page;
-(void)drawImages:(NSImage*)image1 and:(NSImage*)image2;
-(void)drawImage:(NSImage*)image;
-(BOOL)scrollTo:(NSPoint)point;
-(void)scrollToPoint:(NSPoint)newOrigin;
-(void)_scrollToPoint:(NSPoint)point;
-(void)scrollUp;
-(void)scrollDown;
-(void)scrollToTop;
-(void)scrollToLast;
-(BOOL)firstScroll;
-(BOOL)next;
-(BOOL)prev;
-(void)setDragScroll:(NSArray*)array mode:(int)mode;
//-(void)setAccessory:(id)ac;
-(void)setStartFromEnd:(BOOL)boo;
-(void)setLoupe;
-(void)setLoupeRate;
-(void)drawLoupe;
-(BOOL)loupeIsVisible;
-(void)rotateRight;
-(void)rotateLeft;
-(void)setPageString:(NSString*)string;
-(NSString*)pageString;
-(void)drawPageBar;
-(void)setSlideshow:(BOOL)b;
-(void)setInfoString:(NSString*)string;
-(id)accessoryView;
-(void)setAccessoryWindowFrame;
@end