Vixen
02b45cc4
csharp
public sealed class GradientBar

The strip itself, with a marker rail above it and another below.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Sampled into bands. The shader's gradient has two stops and a gradient has as many as somebody put in it, so the bar is drawn as a run of two-stop rectangles. The sampling is per band rather than per pixel because within a band between two adjacent stops the interpolation the shader does is the one that was asked for — except in Oklab, which is curved, and where the bands are what makes it look right.

Fields and properties (4)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public GradientEditor? Owner

    The editor it belongs to.

  • public const int Bands

    How many rectangles the strip is drawn as.

Methods (1)

  • protected override void OnDraw(DrawContext context)

    Draws whatever this element is, beyond what a stylesheet can describe.

Used by (1)

  • GradientEditorVixen.Ui.Controls.Advanced