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

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

@protocol NvFontListViewDelegate
@optional
- (void)nvFontListView:(NvFontListView *)nvFontListView blodClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)nvFontListView:(NvFontListView *)nvFontListView italicClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)nvFontListView:(NvFontListView *)nvFontListView shadowClick:(UIButton *)sender isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)selectFont:(NvCaptionFontItem *)item isApplyToAllCaption:(BOOL)isApplyToAllCaption;
- (void)applyStyleToAllCaption:(BOOL)applyToAllCaption;

- (void)moreFontClick;

- (void)fontOkButtonClick;

@end

@interface NvFontListView : UIView

@property (weak, nonatomic) id delegate;

@property (nonatomic, strong) NSMutableArray *dataSource;
//设置渲染列表数据
- (void)renderListWithItems:(NSMutableArray <NvCaptionFontItem *>*)dataSource;
//设置默认列表数据
- (void)setDefauleDataSource:(NSMutableArray *)dataSource;
//设置默认按钮
- (void)setDefaultFontBoldButton:(BOOL)isBold italic:(BOOL)isItalic shadow:(BOOL)isShadow;

@property (nonatomic, strong) NvButton *applyButton;
@property (nonatomic, strong) NvCaptionFontItem *currentItem;

@property (nonatomic, strong) UIButton *boldButton;
@property (nonatomic, strong) UIButton *italicButton;
@property (nonatomic, strong) UIButton *shadowButton;

@end
