Class SegmentDisplay
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Seven-segment LED/LCD display drawn with vectors: digits, minus sign, a few letters and decimal points.
Shows Text, Number or the value of a bound Parameter.
Look-alike of VSTGUI CSpecialDigit without bitmaps.
public class SegmentDisplay : Control
- Inheritance
-
SegmentDisplay
- Inherited Members
Constructors
SegmentDisplay()
Creates a display.
public SegmentDisplay()
Properties
Decimals
Decimals used by Number.
public int Decimals { get; set; }
Property Value
DefaultSize
Natural size used when no explicit size is given.
protected override Size DefaultSize { get; }
Property Value
DigitCount
Number of digit cells (text is right-aligned and truncated to the right-most cells).
public int DigitCount { get; set; }
Property Value
DisplayBackground
Background of the display window (null = theme background).
public Color? DisplayBackground { get; set; }
Property Value
Glow
Draws a soft glow around lit segments.
public bool Glow { get; set; }
Property Value
LitColor
Lit segment color (null = theme accent).
public Color? LitColor { get; set; }
Property Value
Number
Shows a number with Decimals decimals.
public double Number { get; set; }
Property Value
Parameter
Bound parameter: the display shows its value text (units excluded).
public IParameter? Parameter { get; set; }
Property Value
SegmentThickness
Segment thickness relative to the digit height.
public float SegmentThickness { get; set; }
Property Value
Slant
Italic slant (0 = upright, 0.1 is typical).
public float Slant { get; set; }
Property Value
Text
Displayed text (digits, '-', '.', space and the letters A–Y that 7 segments can show).
public string Text { get; set; }
Property Value
UnlitColor
Unlit segment color (null = lit color at low alpha, the "ghost" segments of real displays).
public Color? UnlitColor { get; set; }
Property Value
Methods
OnAttached()
Called when the element joins a host (subscribe to external events here).
protected override void OnAttached()
OnDetached()
Called when the element leaves its host (unsubscribe here).
protected override void OnDetached()
RenderVector(DrawingContext, Rect, VectorStyle)
Vector rendering of the widget area.
protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)
Parameters
dcDrawingContextwidgetRectstyleVectorStyle