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

#import <UIKit/UIKit.h>
#import "NvStyleListView.h"
#import "NvsTimeline.h"
#import "NvRectView.h"
#import "NvStyleListView.h"
#import "NvColorListview.h"
#import "NvStrokeListView.h"
#import "NvFontListView.h"
#import "NvPositionListView.h"
#import "NvTimelineDataModel.h"

@protocol NvStyleViewDelegate

- (void)styleOkClick;
- (void)applyStyleToAllCaption:(BOOL)applyToAllCaption;

- (void)moreStyleClick;
- (void)moreFontClick;
- (void)stylePlay;


@required
- (void)stylePlayFromTime:(int64_t)time;
- (void)nvseekTimeline;
- (NvRectView *)getRectView;
- (void)updateCaptionView:(NvsTimelineCaption*) caption;
- (CGPoint)liveWindowMap:(CGPoint)point;
- (void)applyStyleUpdateDefaultData:(NvsTimelineCaption *)currentCaption;

@end

@interface NvStyleView : UIView
@property (nonatomic, strong) NvStyleListView *styleListView;
@property (nonatomic, strong) NvColorListview *colorListView;
@property (nonatomic, strong) NvStrokeListView *strokeListView;
@property (nonatomic, strong) NvFontListView *fontListView;
@property (nonatomic, strong) NvPositionListView *positionListView;

@property (weak, nonatomic) id delegate;
@property (nonatomic, strong) NvsTimeline *timeline;
@property (nonatomic, strong) NvsTimelineCaption *caption;//字幕对像
@property (nonatomic, strong) NvCaptionInfoModel *model;//字幕数据结构
@property (nonatomic, strong) NSMutableArray *models;//字幕数据结构组，用于将样式应用所有字幕

@end
