2
0

SliderStyle.cs 1.4 KB

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