PasterAddView.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // PasterSelectView.h
  3. // TXLiteAVDemo
  4. //
  5. // Created by xiang zhang on 2017/10/31.
  6. // Copyright © 2017年 Tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger,PasterType)
  10. {
  11. PasterType_Qipao,
  12. PasterType_Animate,
  13. PasterType_static,
  14. };
  15. @interface PasterQipaoInfo : NSObject
  16. @property(nonatomic,strong) UIImage *image;
  17. @property(nonatomic,strong) UIImage *iconImage;
  18. @property(nonatomic,assign) CGFloat width;
  19. @property(nonatomic,assign) CGFloat height;
  20. @property(nonatomic,assign) CGFloat textTop;
  21. @property(nonatomic,assign) CGFloat textLeft;
  22. @property(nonatomic,assign) CGFloat textRight;
  23. @property(nonatomic,assign) CGFloat textBottom;
  24. @end
  25. @interface PasterAnimateInfo : NSObject
  26. @property(nonatomic,strong) NSString *path;
  27. @property(nonatomic,strong) UIImage *iconImage;
  28. @property(nonatomic,strong) NSMutableArray *imageList;
  29. @property(nonatomic,assign) CGFloat duration; //s
  30. @property(nonatomic,assign) CGFloat width;
  31. @property(nonatomic,assign) CGFloat height;
  32. @end
  33. @interface PasterStaticInfo : NSObject
  34. @property(nonatomic,strong) UIImage *image;
  35. @property(nonatomic,strong) UIImage *iconImage;
  36. @property(nonatomic,assign) CGFloat width;
  37. @property(nonatomic,assign) CGFloat height;
  38. @end
  39. @protocol PasterAddViewDelegate <NSObject>
  40. @optional
  41. - (void)onPasterQipaoSelect:(PasterQipaoInfo *)info;
  42. @optional
  43. - (void)onPasterAnimateSelect:(PasterAnimateInfo *)info;
  44. @optional
  45. - (void)onPasterStaticSelect:(PasterStaticInfo *)info;
  46. @end
  47. @interface PasterAddView : UIView
  48. @property(nonatomic,weak) id <PasterAddViewDelegate> delegate;
  49. - (void) setPasterType:(PasterType)pasterType;
  50. @end