VQ_FUAPIDemoBar.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // FUDemoBar.h
  3. // VQ_FUAPIDemoBar
  4. //
  5. // Created by L on 2018/6/26.
  6. // Copyright © 2018年 L. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "VQ_FUBeautyParam.h"
  10. @protocol FUAPIDemoBarDelegate <NSObject>
  11. // 滤镜程度改变
  12. - (void)vqf_filterValueChange:(VQ_FUBeautyParam *)param;
  13. - (void)vqf_beautyParamValueChange:(VQ_FUBeautyParam *)param;
  14. // 显示提示语
  15. - (void)vqf_filterShowMessage:(NSString *)message ;
  16. // 显示上半部分View
  17. -(void)showTopView:(BOOL)shown;
  18. -(void)vqf_restDefaultValue:(int)type;
  19. @end
  20. @interface VQ_FUAPIDemoBar : UIView
  21. @property (nonatomic, assign) id<FUAPIDemoBarDelegate>mDelegate ;
  22. // 上半部分
  23. @property (weak, nonatomic) IBOutlet UIView *topView;
  24. @property (weak, nonatomic) IBOutlet UIView *bottomView;
  25. @property (nonatomic, assign) int selBottomIndex;
  26. -(void)reloadSkinView:(NSArray<VQ_FUBeautyParam *> *)skinParams;
  27. -(void)reloadShapView:(NSArray<VQ_FUBeautyParam *> *)shapParams;
  28. -(void)reloadFilterView:(NSArray<VQ_FUBeautyParam *> *)filterParams;
  29. /* 风格 */
  30. -(void)reloadStyleView:(NSArray<VQ_FUBeautyParam *> *)styleParams defaultStyle:(VQ_FUBeautyParam *)selStyle;
  31. // 关闭上半部分
  32. -(void)vqf_hiddenTopViewWithAnimation:(BOOL)animation;
  33. // 上半部是否显示
  34. @property (nonatomic, assign) BOOL isTopViewShow ;
  35. -(void)setDefaultFilter:(VQ_FUBeautyParam *)filter;
  36. -(void)setDefaultStyle:(int)index;
  37. - (void)vqf_restBeautyDefaultValue;
  38. @end