YOUPAIOCBarrageTextDescriptor.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // YOUPAIOCBarrageTextDescriptor.h
  3. // TestApp
  4. //
  5. // Created by QMTV on 2017/8/23.
  6. // Copyright © 2017年 LFC. All rights reserved.
  7. //
  8. #import "YOUPAIOCBarrageDescriptor.h"
  9. #import "YOUPAILPIMNotificationModel.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface YOUPAIOCBarrageTextDescriptor : YOUPAIOCBarrageDescriptor {
  12. NSMutableDictionary *_textAttribute;
  13. }
  14. @property (nonatomic, strong, nullable) UIFont *textFont;
  15. @property (nonatomic, strong, nullable) UIColor *textColor;
  16. /*
  17. * 关闭文字阴影可大幅提升性能, 推荐使用strokeColor, 与shadowColor相比strokeColor性能更强悍
  18. */
  19. @property (nonatomic, assign) BOOL textShadowOpened;//默认NO
  20. @property (nonatomic, strong, nullable) UIColor *shadowColor;//默认黑色
  21. @property (nonatomic, assign) CGSize shadowOffset;//默认CGSizeZero
  22. @property (nonatomic, assign) CGFloat shadowRadius;//默认2.0
  23. @property (nonatomic, assign) CGFloat shadowOpacity;//默认0.5
  24. @property (nonatomic, strong, nullable) UIColor *strokeColor;
  25. @property (nonatomic, assign) int strokeWidth;//笔画宽度(粗细),取值为 NSNumber 对象(整数),负值填充效果,正值中空效果
  26. @property (nonatomic, copy, nullable) NSString *text;
  27. @property (nonatomic, copy, nullable) NSAttributedString *attributedText;
  28. @property(nonatomic,strong)YOUPAILPIMNotificationModel *dataModel;
  29. @property (nonatomic, strong, nullable) UIColor *gradientColor;
  30. //add by leo
  31. @end
  32. NS_ASSUME_NONNULL_END