Sin descripción

LGAlertViewButtonProperties.h 4.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // LGAlertViewButtonProperties.h
  3. // LGAlertView
  4. //
  5. //
  6. // The MIT License (MIT)
  7. //
  8. // Copyright © 2015 Grigory Lutkov <Friend.LGA@gmail.com>
  9. // (https://github.com/Friend-LGA/LGAlertView)
  10. //
  11. // Permission is hereby granted, free of charge, to any person obtaining a copy
  12. // of this software and associated documentation files (the "Software"), to deal
  13. // in the Software without restriction, including without limitation the rights
  14. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  15. // copies of the Software, and to permit persons to whom the Software is
  16. // furnished to do so, subject to the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be included in all
  19. // copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  22. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  23. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  24. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  25. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  26. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  27. // SOFTWARE.
  28. //
  29. #import <UIKit/UIKit.h>
  30. #import "LGAlertViewShared.h"
  31. @interface LGAlertViewButtonProperties : NSObject
  32. @property (strong, nonatomic, nullable) UIColor *titleColor;
  33. @property (strong, nonatomic, nullable) UIColor *titleColorHighlighted;
  34. @property (strong, nonatomic, nullable) UIColor *titleColorDisabled;
  35. @property (strong, nonatomic, nullable) UIColor *backgroundColor;
  36. @property (strong, nonatomic, nullable) UIColor *backgroundColorHighlighted;
  37. @property (strong, nonatomic, nullable) UIColor *backgroundColorDisabled;
  38. @property (strong, nonatomic, nullable) UIImage *iconImage;
  39. @property (strong, nonatomic, nullable) UIImage *iconImageHighlighted;
  40. @property (strong, nonatomic, nullable) UIImage *iconImageDisabled;
  41. @property (assign, nonatomic) NSTextAlignment textAlignment;
  42. @property (strong, nonatomic, nullable) UIFont *font;
  43. @property (assign, nonatomic) NSUInteger numberOfLines;
  44. @property (assign, nonatomic) NSLineBreakMode lineBreakMode;
  45. @property (assign, nonatomic) CGFloat minimumScaleFactor;
  46. @property (assign, nonatomic, getter=isAdjustsFontSizeToFitWidth) BOOL adjustsFontSizeToFitWidth;
  47. @property (assign, nonatomic) LGAlertViewButtonIconPosition iconPosition;
  48. @property (assign, nonatomic, getter=isEnabled) BOOL enabled;
  49. @property (assign, nonatomic, readonly, getter=isUserTitleColor) BOOL userTitleColor;
  50. @property (assign, nonatomic, readonly, getter=isUserTitleColorHighlighted) BOOL userTitleColorHighlighted;
  51. @property (assign, nonatomic, readonly, getter=isUserTitleColorDisabled) BOOL userTitleColorDisabled;
  52. @property (assign, nonatomic, readonly, getter=isUserBackgroundColor) BOOL userBackgroundColor;
  53. @property (assign, nonatomic, readonly, getter=isUserBackgroundColorHighlighted) BOOL userBackgroundColorHighlighted;
  54. @property (assign, nonatomic, readonly, getter=isUserBackgroundColorDisabled) BOOL userBackgroundColorDisabled;
  55. @property (assign, nonatomic, readonly, getter=isUserIconImage) BOOL userIconImage;
  56. @property (assign, nonatomic, readonly, getter=isUserIconImageHighlighted) BOOL userIconImageHighlighted;
  57. @property (assign, nonatomic, readonly, getter=isUserIconImageDisabled) BOOL userIconImageDisabled;
  58. @property (assign, nonatomic, readonly, getter=isUserTextAlignment) BOOL userTextAlignment;
  59. @property (assign, nonatomic, readonly, getter=isUserFont) BOOL userFont;
  60. @property (assign, nonatomic, readonly, getter=isUserNumberOfLines) BOOL userNumberOfLines;
  61. @property (assign, nonatomic, readonly, getter=isUserLineBreakMode) BOOL userLineBreakMode;
  62. @property (assign, nonatomic, readonly, getter=isUserMinimimScaleFactor) BOOL userMinimumScaleFactor;
  63. @property (assign, nonatomic, readonly, getter=isUserAdjustsFontSizeTofitWidth) BOOL userAdjustsFontSizeTofitWidth;
  64. @property (assign, nonatomic, readonly, getter=isUserIconPosition) BOOL userIconPosition;
  65. @property (assign, nonatomic, readonly, getter=isUserEnabled) BOOL userEnabled;
  66. @end