-
Notifications
You must be signed in to change notification settings - Fork 0
/
AirSightResizeView.h
51 lines (38 loc) · 1.43 KB
/
AirSightResizeView.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
// Copyright (c) 2020 imagetasks
#import <Cocoa/Cocoa.h>
@class AirSightResizeView;
@protocol AirSightResizeViewDelegate <NSObject>
@optional
- (void) selectionDidChanged:(NSRect)selectedRect;
- (NSRect) selectionWillChange:(NSRect)selectedRect;
- (NSRect) selectionWillMove:(NSRect)selectedRect;
- (void) interactionDidStarted;
- (void) interactionDidEnded;
- (void) selectionDidChanged:(NSRect)selectedRect resizeView: (AirSightResizeView *) resizeView;
- (NSRect) selectionWillChange:(NSRect)selectedRect resizeView: (AirSightResizeView *) resizeView;
- (NSRect) selectionWillMove:(NSRect)selectedRect resizeView: (AirSightResizeView *) resizeView;
- (void) interactionDidStarted: (AirSightResizeView *) resizeView;
- (void) interactionDidEnded: (AirSightResizeView *) resizeView;
@end
@interface AirSightResizeView : NSView{
}
typedef NS_ENUM(NSUInteger, ASTracking) {
ASOut = 0,
ASTopLeft = 1,
ASTopRight = 2,
ASTop = 3,
ASLeft = 4,
ASRight = 5,
ASBottomLeft = 6,
ASBottom = 7,
ASBottomRight = 8,
ASCenter = 9
};
@property (nonatomic) IBInspectable BOOL animated;
@property (nonatomic) IBInspectable BOOL respectsProportion;
@property (nonatomic) IBInspectable BOOL squareSelection;
@property (nonatomic) IBInspectable NSColor* knobColor;
@property (nonatomic,weak) id<AirSightResizeViewDelegate> delegate;
@property (nonatomic) NSRect selectedFrame;
@property (nonatomic) NSRect selectableFrame;
@end