WMZPageParam.m 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //
  2. // WMZPageParam.m
  3. // WMZPageController
  4. //
  5. // Created by wmz on 2019/9/24.
  6. // Copyright © 2019 wmz. All rights reserved.
  7. //
  8. #import "WMZPageParam.h"
  9. @implementation WMZPageParam
  10. WMZPageParam * PageParam(void){
  11. return [WMZPageParam new];
  12. }
  13. WMZPagePropSetFuncImplementation(WMZPageParam, NSArray*, wTitleArr)
  14. WMZPagePropSetFuncImplementation(WMZPageParam, NSArray*, wControllers)
  15. WMZPagePropSetFuncImplementation(WMZPageParam, PageTitleMenu, wMenuAnimal)
  16. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wMenuAnimalTitleBig)
  17. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wMenuAnimalTitleGradient)
  18. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wMenuFixShadow)
  19. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuTitleSelectFont)
  20. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuWidth)
  21. WMZPagePropSetFuncImplementation(WMZPageParam, PageMenuPosition, wMenuPosition)
  22. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuTitleOffset)
  23. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuTitleWidth)
  24. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wTopOffset)
  25. WMZPagePropSetFuncImplementation(WMZPageParam, NSInteger, wMenuDefaultIndex)
  26. WMZPagePropSetFuncImplementation(WMZPageParam, UIColor*, wMenuTitleColor)
  27. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuCellMargin)
  28. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuCellPadding)
  29. WMZPagePropSetFuncImplementation(WMZPageParam, UIColor*, wMenuTitleSelectColor)
  30. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuTitleFont)
  31. WMZPagePropSetFuncImplementation(WMZPageParam, UIColor*, wMenuIndicatorColor)
  32. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuIndicatorWidth)
  33. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuIndicatorHeight)
  34. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuIndicatorRadio)
  35. //WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuHeight)
  36. WMZPagePropSetFuncImplementation(WMZPageParam, NSString*, wMenuIndicatorImage)
  37. WMZPagePropSetFuncImplementation(WMZPageParam, PageBtnPosition, wMenuImagePosition)
  38. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuImageMargin)
  39. WMZPagePropSetFuncImplementation(WMZPageParam, id, wMenuFixRightData)
  40. WMZPagePropSetFuncImplementation(WMZPageParam, UIColor*, wMenuBgColor)
  41. WMZPagePropSetFuncImplementation(WMZPageParam, UIColor*, wNaviColor)
  42. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuFixWidth)
  43. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuCellMarginY)
  44. WMZPagePropSetFuncImplementation(WMZPageParam, PageHeadViewBlock, wMenuHeadView)
  45. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuTitleWeight)
  46. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wTopSuspension)
  47. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wFromNavi)
  48. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wNaviAlpha)
  49. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wScrollCanTransfer)
  50. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wBounces)
  51. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wNaviAlphaAll)
  52. WMZPagePropSetFuncImplementation(WMZPageParam, BOOL, wFixFirst)
  53. WMZPagePropSetFuncImplementation(WMZPageParam, PageHeadAndMenuBgView, wInsertHeadAndMenuBg)
  54. WMZPagePropSetFuncImplementation(WMZPageParam, PageHeadAndMenuBgView, wInsertMenuLine)
  55. WMZPagePropSetFuncImplementation(WMZPageParam, PageCustomMenuTitle, wCustomMenuTitle)
  56. WMZPagePropSetFuncImplementation(WMZPageParam, PageCustomMenuSelectTitle,wCustomMenuSelectTitle)
  57. WMZPagePropSetFuncImplementation(WMZPageParam, PageClickBlock, wEventFixedClick)
  58. WMZPagePropSetFuncImplementation(WMZPageParam, PageClickBlock, wEventClick)
  59. WMZPagePropSetFuncImplementation(WMZPageParam, PageVCChangeBlock, wEventBeganTransferController)
  60. WMZPagePropSetFuncImplementation(WMZPageParam, PageVCChangeBlock, wEventEndTransferController)
  61. WMZPagePropSetFuncImplementation(WMZPageParam, PageChildVCScroll, wEventChildVCDidSroll)
  62. WMZPagePropSetFuncImplementation(WMZPageParam, CGFloat, wMenuIndicatorY)
  63. - (instancetype)init{
  64. if (self = [super init]) {
  65. _wMenuAnimal = PageTitleMenuNone;
  66. _wMenuTitleColor = PageColor(0x666666);
  67. _wMenuTitleSelectColor = PageColor(0xE5193E);
  68. _wMenuIndicatorColor = PageColor(0x000000);
  69. _wMenuBgColor = PageColor(0xffffff);
  70. _wMenuIndicatorHeight = 3.0f;
  71. _wMenuWidth = PageVCWidth;
  72. _wMenuAnimalTitleBig = YES;
  73. _wMenuAnimalTitleGradient = YES;
  74. _wMenuTitleFont = 17.0f;
  75. _wMenuImagePosition = PageBtnPositionTop;
  76. _wMenuImageMargin = 5.0f;
  77. _wMenuCellMargin = 30.0f;
  78. _wMenuCellPadding = 30.0f;
  79. _wMenuFixWidth = 45.0f;
  80. _wMenuFixShadow = YES;
  81. _wFromNavi = YES;
  82. _wScrollCanTransfer = YES;
  83. _wMenuTitleSelectFont = 18.5;
  84. }
  85. return self;
  86. }
  87. @end