You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

//
// OCBarrageTextDescriptor.h
// TestApp
//
// Created by QMTV on 2017/8/23.
// Copyright © 2017年 LFC. All rights reserved.
//
#import "OCBarrageDescriptor.h"
NS_ASSUME_NONNULL_BEGIN
@interface OCBarrageTextDescriptor : OCBarrageDescriptor {
NSMutableDictionary *_textAttribute;
}
@property (nonatomic, strong, nullable) UIFont *textFont;
@property (nonatomic, strong, nullable) UIColor *textColor;
/*
* , 使strokeColor, shadowColor相比strokeColor性能更强悍
*/
@property (nonatomic, assign) BOOL textShadowOpened;//默认NO
@property (nonatomic, strong, nullable) UIColor *shadowColor;//默认黑色
@property (nonatomic, assign) CGSize shadowOffset;//默认CGSizeZero
@property (nonatomic, assign) CGFloat shadowRadius;//默认2.0
@property (nonatomic, assign) CGFloat shadowOpacity;//默认0.5
@property (nonatomic, strong, nullable) UIColor *strokeColor;
@property (nonatomic, assign) int strokeWidth;//笔画宽度(粗细),取值为 NSNumber 对象(整数),负值填充效果,正值中空效果
@property (nonatomic, copy, nullable) NSString *text;
@property (nonatomic, copy, nullable) NSAttributedString *attributedText;
@end
NS_ASSUME_NONNULL_END