Skip to main content

DisplayDrawParams

Namespace: Busy.Bar

Parameters for drawing one or more elements on a display.

public sealed record class DisplayDrawParams : System.IEquatable`1[[Busy.Bar.DisplayDrawParams, BusyBar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance Object → DisplayDrawParams
Implements IEquatable<DisplayDrawParams>
Attributes NullableContextAttribute, NullableAttribute, RequiredMemberAttribute

Properties

ApplicationName

Application ID the drawn elements are attributed to.

public required string ApplicationName { get; init; }

Property Value

String

Priority

Draw priority, in the range [1, 100]. A draw request is accepted only when its priority is greater than or equal to that of the currently running system app; an equal-priority request from a different DisplayDrawParams.ApplicationName overrides whatever is currently on screen. Built-in system priority levels: stub/poweroff apps use 0 (always preemptable, but not settable here), any standard built-in app uses 10, and an active BUSY/CUSTOM work session uses 90.

public int Priority { get; init; }

Property Value

Int32

LedNotificationColor

Color to blink the status LED, in #RRGGBBAA format. If not specified, the LED does not blink.

public string? LedNotificationColor { get; init; }

Property Value

String

Elements

Elements to draw.

public required IReadOnlyList<DisplayElement> Elements { get; init; }

Property Value

IReadOnlyList<DisplayElement>

Constructors

DisplayDrawParams()

Caution

Constructors of types with required members are not supported in this version of your compiler.


public DisplayDrawParams()