JXSegmentedTitleItemModel.swift 1.0 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // JXSegmentedTitleItemModel.swift
  3. // JXSegmentedView
  4. //
  5. // Created by jiaxin on 2018/12/26.
  6. // Copyright © 2018 jiaxin. All rights reserved.
  7. //
  8. import UIKit
  9. open class JXSegmentedTitleItemModel: JXSegmentedBaseItemModel {
  10. open var title: String?
  11. open var titleNumberOfLines: Int = 0
  12. open var titleNormalColor: UIColor = .black
  13. open var titleCurrentColor: UIColor = .black
  14. open var titleSelectedColor: UIColor = .red
  15. open var titleNormalFont: UIFont = UIFont.systemFont(ofSize: 15)
  16. open var titleSelectedFont: UIFont = UIFont.systemFont(ofSize: 15)
  17. open var isTitleZoomEnabled: Bool = false
  18. open var titleNormalZoomScale: CGFloat = 0
  19. open var titleCurrentZoomScale: CGFloat = 0
  20. open var titleSelectedZoomScale: CGFloat = 0
  21. open var isTitleStrokeWidthEnabled: Bool = false
  22. open var titleNormalStrokeWidth: CGFloat = 0
  23. open var titleCurrentStrokeWidth: CGFloat = 0
  24. open var titleSelectedStrokeWidth: CGFloat = 0
  25. open var isTitleMaskEnabled: Bool = false
  26. open var textWidth: CGFloat = 0
  27. }