WMZBannerParam.m 6.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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, BOOL, wFadeOpen)
  14. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wEffect)
  15. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wVertical)
  16. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wImageFill)
  17. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wScale)
  18. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wRepeat)
  19. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wAutoScroll)
  20. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wHideBannerControl)
  21. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wCanFingerSliding)
  22. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wMarquee)
  23. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wCardOverLap)
  24. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wZindex)
  25. WMZBannerPropSetFuncImplementation(WMZBannerParam, BOOL, wClickCenter)
  26. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSInteger, wCardOverLapCount)
  27. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wActiveDistance)
  28. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGSize, wItemSize)
  29. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wLineSpacing)
  30. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wEffectHeight)
  31. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wContentOffsetX)
  32. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wScreenScale)
  33. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerCellPosition, wPosition)
  34. WMZBannerPropSetFuncImplementation(WMZBannerParam, SpecialStyle, wSpecialStyle)
  35. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wPlaceholderImage)
  36. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSInteger, wSelectIndex)
  37. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wMyCellClassName)
  38. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerCellCallBlock, wMyCell)
  39. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerClickBlock, wEventClick)
  40. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerScrollEndBlock, wEventScrollEnd)
  41. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerCenterClickBlock, wEventCenterClick)
  42. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIColor*, wBannerControlColor)
  43. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIColor*, wBannerControlSelectColor)
  44. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wBannerControlImage)
  45. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wDataParamIconName)
  46. WMZBannerPropSetFuncImplementation(WMZBannerParam, NSString*, wBannerControlSelectImage)
  47. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGSize, wBannerControlImageSize)
  48. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGSize, wBannerControlSelectImageSize)
  49. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wAutoScrollSecond)
  50. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wAlpha)
  51. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wBannerControlImageRadius)
  52. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIEdgeInsets, wSectionInset)
  53. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIScrollViewDecelerationRate, wDecelerationRate)
  54. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerControlPosition, wBannerControlPosition)
  55. WMZBannerPropSetFuncImplementation(WMZBannerParam, UIColor*, wMarqueeTextColor)
  56. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerPageControl, wCustomControl)
  57. WMZBannerPropSetFuncImplementation(WMZBannerParam, BannerSpecialLine, wSpecialCustumLine)
  58. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wBannerControlSelectMargin)
  59. WMZBannerPropSetFuncImplementation(WMZBannerParam, CGFloat, wMarqueeRate)
  60. WMZBannerParam * BannerParam(void){
  61. return [WMZBannerParam new];
  62. }
  63. - (instancetype)init{
  64. if (self = [super init]) {
  65. _wAlpha = 1;
  66. _wScaleFactor = 0.5f;
  67. _wLineSpacing = 0.0f;
  68. _wContentOffsetX = 0.5f;
  69. _wAutoScrollSecond = 3.0f;
  70. _wPosition = BannerCellPositionCenter;
  71. _wActiveDistance = 400.0f;
  72. _wScale = NO;
  73. _wRepeat = NO;
  74. _wSelectIndex = 0;
  75. _wImageFill = YES;
  76. _wBannerControlColor = [UIColor whiteColor];
  77. _wBannerControlSelectColor = [UIColor orangeColor];
  78. _wBannerControlImageSize = CGSizeMake(10, 10);
  79. _wBannerControlSelectImageSize = CGSizeMake(10, 10);
  80. _wCanFingerSliding = YES;
  81. _wSectionInset = UIEdgeInsetsMake(0,0, 0, 0);
  82. _wDecelerationRate = 0.1;
  83. _wScreenScale = 1;
  84. _wMarqueeTextColor = [UIColor redColor];
  85. _wEffectHeight = 1;
  86. _wDataParamIconName = @"icon";
  87. _wBannerControlSelectMargin = 3;
  88. _wMarqueeRate = 5.0f;
  89. _wCardOverLapCount = 4;
  90. }
  91. return self;
  92. }
  93. @end