WMZBannerParam.m 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. //
  2. // WMZBannerParam.m
  3. // WMZBanner
  4. //
  5. // Created by wmz on 2019/9/6.
  6. // Copyright © 2019 wmz. All rights reserved.
  7. //
  8. #import "WMZBannerParam.h"
  9. @implementation WMZBannerParam
  10. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGRect, wFrame)
  11. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSArray*, wData)
  12. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wScaleFactor)
  13. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wCardOverMinAlpha)
  14. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wCardOverAlphaOpen)
  15. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wFadeOpen)
  16. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wEffect)
  17. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wVertical)
  18. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wImageFill)
  19. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wScale)
  20. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wRepeat)
  21. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wAutoScroll)
  22. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wHideBannerControl)
  23. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wCanFingerSliding)
  24. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wMarquee)
  25. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wCardOverLap)
  26. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wZindex)
  27. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wClickCenter)
  28. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSInteger, wCardOverLapCount)
  29. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wActiveDistance)
  30. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGSize, wItemSize)
  31. WMZBannerPropSetFuncImplementation(WMZBannerParam, int, wLineSpacing)
  32. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wEffectHeight)
  33. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wContentOffsetX)
  34. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wScreenScale)
  35. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerCellPosition, wPosition)
  36. WMZBannerPropSetFuncImplementation(WMZBannerParam, SpecialStyle, wSpecialStyle)
  37. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wPlaceholderImage)
  38. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSInteger, wSelectIndex)
  39. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wMyCellClassName)
  40. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerCellCallBlock, wMyCell)
  41. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerClickBlock, wEventClick)
  42. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerScrollEndBlock, wEventScrollEnd)
  43. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerCenterClickBlock, wEventCenterClick)
  44. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerScrollBlock, wEventDidScroll)
  45. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIColor*, wBannerControlColor)
  46. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIColor*, wBannerControlSelectColor)
  47. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wBannerControlImage)
  48. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wDataParamIconName)
  49. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wBannerControlSelectImage)
  50. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGSize, wBannerControlImageSize)
  51. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGSize, wBannerControlSelectImageSize)
  52. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wAutoScrollSecond)
  53. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wAlpha)
  54. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wBannerControlImageRadius)
  55. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIEdgeInsets, wSectionInset)
  56. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIScrollViewDecelerationRate, wDecelerationRate)
  57. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerControlPosition, wBannerControlPosition)
  58. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIColor*, wMarqueeTextColor)
  59. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerPageControl, wCustomControl)
  60. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerSpecialLine, wSpecialCustumLine)
  61. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wBannerControlSelectMargin)
  62. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wMarqueeRate)
  63. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wCustomImageRadio)
  64. WMZBannerPropSetFuncImplementation(WMZBannerParam, id, wMyCellClassNames)
  65. WMZBannerPropSetFuncImplementation(WMZBannerParam, id, wXibCellClassNames)
  66. WMZBannerParam * BannerParam(void){
  67. return [WMZBannerParam new];
  68. }
  69. - (instancetype)init{
  70. if (self = [super init]) {
  71. _wAlpha = 1;
  72. _wScaleFactor = 0.5f;
  73. _wLineSpacing = 0.0f;
  74. _wContentOffsetX = 0.5f;
  75. _wAutoScrollSecond = 3.0f;
  76. _wPosition = BannerCellPositionCenter;
  77. _wActiveDistance = 400.0f;
  78. _wScale = NO;
  79. _wRepeat = NO;
  80. _wSelectIndex = 0;
  81. _wImageFill = YES;
  82. _wBannerControlColor = [UIColor whiteColor];
  83. _wBannerControlSelectColor = [UIColor orangeColor];
  84. _wBannerControlImageSize = CGSizeMake(10, 10);
  85. _wBannerControlSelectImageSize = CGSizeMake(10, 10);
  86. _wCanFingerSliding = YES;
  87. _wSectionInset = UIEdgeInsetsMake(0,0, 0, 0);
  88. _wDecelerationRate = 0.1;
  89. _wScreenScale = 1;
  90. _wMarqueeTextColor = [UIColor redColor];
  91. _wEffectHeight = 1;
  92. _wDataParamIconName = @"icon";
  93. _wBannerControlSelectMargin = 3;
  94. _wMarqueeRate = 0.5;
  95. _wCardOverLapCount = 4;
  96. _wCardOverMinAlpha = 0.1;
  97. _wCustomImageRadio = 5.0f;
  98. }
  99. return self;
  100. }
  101. @end