Table of Contents

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

int

DefaultSize

Natural size used when no explicit size is given.

protected override Size DefaultSize { get; }

Property Value

Size

DigitCount

Number of digit cells (text is right-aligned and truncated to the right-most cells).

public int DigitCount { get; set; }

Property Value

int

DisplayBackground

Background of the display window (null = theme background).

public Color? DisplayBackground { get; set; }

Property Value

Color?

Glow

Draws a soft glow around lit segments.

public bool Glow { get; set; }

Property Value

bool

LitColor

Lit segment color (null = theme accent).

public Color? LitColor { get; set; }

Property Value

Color?

Number

Shows a number with Decimals decimals.

public double Number { get; set; }

Property Value

double

Parameter

Bound parameter: the display shows its value text (units excluded).

public IParameter? Parameter { get; set; }

Property Value

IParameter

SegmentThickness

Segment thickness relative to the digit height.

public float SegmentThickness { get; set; }

Property Value

float

Slant

Italic slant (0 = upright, 0.1 is typical).

public float Slant { get; set; }

Property Value

float

Text

Displayed text (digits, '-', '.', space and the letters A–Y that 7 segments can show).

public string Text { get; set; }

Property Value

string

UnlitColor

Unlit segment color (null = lit color at low alpha, the "ghost" segments of real displays).

public Color? UnlitColor { get; set; }

Property Value

Color?

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

dc DrawingContext
widget Rect
style VectorStyle