//
//  NvPositionListView.h
//  SDKDemo
//
//  Created by Meicam on 2018/6/6.
//  Copyright © 2018年 刘东旭. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NVHeader.h"
@class NvPositionListView;

typedef NS_ENUM(NSUInteger, NvCaptionTextAlignment) {
    None,
    Left,
    Right,
    Up,
    Down,
    Vertical,
    Horizontal
};

@protocol NvPositionListViewDelegate
@optional
- (void)nvPositionListView:(NvPositionListView *)nvPositionListView leftClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)nvPositionListView:(NvPositionListView *)nvPositionListView rightClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)nvPositionListView:(NvPositionListView *)nvPositionListView upClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)nvPositionListView:(NvPositionListView *)nvPositionListView downClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)nvPositionListView:(NvPositionListView *)nvPositionListView verticalClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)nvPositionListView:(NvPositionListView *)nvPositionListView horizontalClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)applyStyleToAllCaption:(BOOL)applyToAllCaption withType:(NvCaptionTextAlignment)type;
- (void)positionOkButtonClick;
@end

@interface NvPositionListView : UIView

@property (nonatomic, weak)id delegate;

@property (nonatomic, strong) UIButton *leftButton;
@property (nonatomic, strong) UIButton *rightButton;
@property (nonatomic, strong) UIButton *upButton;
@property (nonatomic, strong) UIButton *downButton;
@property (nonatomic, strong) UIButton *verticalButton;
@property (nonatomic, strong) UIButton *horizontalButton;

@property (nonatomic, strong) NvButton *applyButton;
@property (nonatomic, assign) NvCaptionTextAlignment type;

//重置应用全部按钮
- (void)resetApplyButton;

@end
