GiGaMaskTime/GIGA/Common/LXDanMuManager/LXDanMuTrackView.h

48 lines
1.0 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// LXDanMuTrackView.h
// LXAnimationTest
//
// Created by lianxiang on 2018/8/14.
// Copyright © 2018年 com.giga.ios. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LXDanMuManagerConfig.h"
@interface LXDanMuTrackView : UIView
/**
等待出现到屏幕中的弹幕view数组
*/
@property (nonatomic,strong) NSMutableArray *waitShowArray;
/**
正在展示的弹幕view数组
*/
@property (nonatomic,strong) NSMutableArray *showingArray;
/**
向轨道中插入一条自定义的view
@param view 自定义的view高度不可超过轨道的高否则出问题
*/
- (void)appendWithCustomView:(UIView *)view;
/**
当前轨道右侧出屏幕的距离+等待出现到屏幕中的弹幕view的总长度和
@return 等待弹幕+右侧出屏幕弹幕的和
*/
- (float)rightOutScreenWidth;
/**
清理轨道,移除所有弹幕
*/
- (void)cleanTrack;
/**
根据速度移动轨道中所有弹幕的位置
@param speed 每0.01秒弹幕向左移动的距离
*/
- (void)moveViewWithSpeed:(float)speed;
@end