//
//  EditPictureDragView.h
//  SDKDemo
//
//  Created by ms20180425 on 2018/8/8.
 //
//

#import <UIKit/UIKit.h>

//拖拽框属性
typedef enum {
    startMode = 0,
    endMode,
    areaMode
} DragViewMode;

@protocol EditPictureDragViewDelegate <NSObject>

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

@end

@interface EditPictureDragView : UIView
{
    CGPoint startPoint;
}

@property (weak, nonatomic) id <EditPictureDragViewDelegate> delegate;
@property (copy, nonatomic) NSString *text;
@property (assign, nonatomic) DragViewMode mode;
@property (assign, nonatomic) CGFloat scale;
@property (nonatomic, assign) CGSize imageSize;

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

@end
