| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // Copyright (c) 2019 Tencent. All rights reserved.
- #import <UIKit/UIKit.h>
- #import "UGCKitTheme.h"
- typedef NS_ENUM(NSInteger,UGCKitPasterType)
- {
- UGCKitPasterType_Qipao,
- UGCKitPasterType_Animate,
- UGCKitPasterType_static,
- };
- @interface UGCKitPasterQipaoInfo : NSObject
- @property(nonatomic,strong) UIImage *image;
- @property(nonatomic,strong) UIImage *iconImage;
- @property(nonatomic,assign) CGFloat width;
- @property(nonatomic,assign) CGFloat height;
- @property(nonatomic,assign) CGFloat textTop;
- @property(nonatomic,assign) CGFloat textLeft;
- @property(nonatomic,assign) CGFloat textRight;
- @property(nonatomic,assign) CGFloat textBottom;
- @end
- @interface UGCKitPasterAnimateInfo : NSObject
- @property(nonatomic,strong) NSString *path;
- @property(nonatomic,strong) UIImage *iconImage;
- @property(nonatomic,strong) NSMutableArray *imageList;
- @property(nonatomic,assign) CGFloat duration; //s
- @property(nonatomic,assign) CGFloat width;
- @property(nonatomic,assign) CGFloat height;
- @end
- @interface UGCKitPasterStaticInfo : NSObject
- @property(nonatomic,strong) UIImage *image;
- @property(nonatomic,strong) UIImage *iconImage;
- @property(nonatomic,assign) CGFloat width;
- @property(nonatomic,assign) CGFloat height;
- @end
- @protocol UGCKitPasterAddViewDelegate <NSObject>
- @optional
- - (void)onPasterQipaoSelect:(UGCKitPasterQipaoInfo *)info;
- @optional
- - (void)onPasterAnimateSelect:(UGCKitPasterAnimateInfo *)info;
- @optional
- - (void)onPasterStaticSelect:(UGCKitPasterStaticInfo *)info;
- @end
- @interface UGCKitPasterAddView : UIView
- @property(nonatomic,weak) id <UGCKitPasterAddViewDelegate> delegate;
- - (instancetype) initWithFrame:(CGRect)frame theme:(UGCKitTheme *)theme;
- - (void) setUGCKitPasterType:(UGCKitPasterType)pasterType;
- @end
|