//
//  NvDragView.h
//  SDKDemo
//
//  Created by dx on 2018/6/21.
 //
//

#import <UIKit/UIKit.h>
#import "NvDragBarView.h"

@protocol NvDragViewDelegate <NSObject>

- (void)updateRect:(CGRect) rect; //拖拽框位置刷新委托函数

@end

@interface NvDragView : UIView

@property (weak, nonatomic) id <NvDragViewDelegate> delegate;
@property (assign, nonatomic) DragMode mode;
@property (assign, nonatomic) CGFloat scale;
@property (assign, nonatomic) CGRect originRect;

- (void) setDragMode:(DragMode)dragMode;
- (void) addDragBar;                                            //添加缩放按钮
- (void) updateDragBar;                                         //刷新缩放按钮

@end
