1234567891011121314151617181920212223242526272829303132333435 |
- //
- // KMBlankView.h
- // PDF Reader Pro Edition
- //
- // Created by zhipeng jiang on 2020/12/23.
- //
- #import <Cocoa/Cocoa.h>
- #import "KMPDFEditAppendCustomView.h"
- typedef NS_ENUM(NSUInteger, KMBlankViewMouseEventType) {
- KMBlankViewMouseEventType_MouseEnter,
- KMBlankViewMouseEventType_MouseExit,
- KMBlankViewMouseEventType_MouseDown,
- KMBlankViewMouseEventType_MouseUp
- };
- NS_ASSUME_NONNULL_BEGIN
- typedef void(^DragSuccessCallBack)(NSMutableArray *fileNames);
- @interface KMBlankView : NSView
- @property (nonatomic,assign) IBOutlet NSTextField *titleLabel;
- @property (nonatomic,assign) IBOutlet NSTextField *secondTitleLabel;
- @property (nonatomic,assign) IBOutlet NSImageView *imageView;
- @property (assign) IBOutlet KMPDFEditAppendCustomView *customView;
- @property (nonatomic, strong) NSArray *allowedFileTypes;
- @property (nonatomic, copy) void(^mouseActionCallBack)(KMBlankViewMouseEventType mouseType);
- @property(nonatomic , copy) DragSuccessCallBack dragSuccessBlock;
- @end
- NS_ASSUME_NONNULL_END
|