SliderStyle.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Terminal.Gui;
  2. /// <summary><see cref="Slider{T}"/> Style</summary>
  3. public class SliderStyle
  4. {
  5. /// <summary>Constructs a new instance.</summary>
  6. public SliderStyle () { LegendAttributes = new (); }
  7. /// <summary>The glyph and the attribute to indicate mouse dragging.</summary>
  8. public Cell DragChar { get; set; }
  9. /// <summary>The glyph and the attribute used for empty spaces on the slider.</summary>
  10. public Cell EmptyChar { get; set; }
  11. /// <summary>The glyph and the attribute used for the end of ranges on the slider.</summary>
  12. public Cell EndRangeChar { get; set; }
  13. /// <summary>Legend attributes</summary>
  14. public SliderAttributes LegendAttributes { get; set; }
  15. /// <summary>The glyph and the attribute used for each option (tick) on the slider.</summary>
  16. public Cell OptionChar { get; set; }
  17. /// <summary>The glyph and the attribute used for filling in ranges on the slider.</summary>
  18. public Cell RangeChar { get; set; }
  19. /// <summary>The glyph and the attribute used for options (ticks) that are set on the slider.</summary>
  20. public Cell SetChar { get; set; }
  21. /// <summary>The glyph and the attribute used for spaces between options (ticks) on the slider.</summary>
  22. public Cell SpaceChar { get; set; }
  23. /// <summary>The glyph and the attribute used for the start of ranges on the slider.</summary>
  24. public Cell StartRangeChar { get; set; }
  25. }