Table of Contents

Struct SkinState

Namespace
PluginUI
Assembly
PluginUI.dll

State handed to a skin for one frame.

public readonly record struct SkinState : IEquatable<SkinState>
Implements
Inherited Members

Constructors

SkinState(Rect, double, int, bool, bool, bool, bool)

State handed to a skin for one frame.

public SkinState(Rect Bounds, double Value, int StateIndex, bool IsHovered, bool IsPressed, bool IsEnabled, bool IsFocused)

Parameters

Bounds Rect

Widget area (label/value areas excluded).

Value double

Normalized value (0 for controls without value).

StateIndex int

Discrete state (0/1 for toggles, step index for switches).

IsHovered bool

Mouse over the control.

IsPressed bool

Primary button held.

IsEnabled bool

Control enabled.

IsFocused bool

Keyboard focus.

Properties

Bounds

Widget area (label/value areas excluded).

public Rect Bounds { get; init; }

Property Value

Rect

IsEnabled

Control enabled.

public bool IsEnabled { get; init; }

Property Value

bool

IsFocused

Keyboard focus.

public bool IsFocused { get; init; }

Property Value

bool

IsHovered

Mouse over the control.

public bool IsHovered { get; init; }

Property Value

bool

IsPressed

Primary button held.

public bool IsPressed { get; init; }

Property Value

bool

StateIndex

Discrete state (0/1 for toggles, step index for switches).

public int StateIndex { get; init; }

Property Value

int

Value

Normalized value (0 for controls without value).

public double Value { get; init; }

Property Value

double