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
BoundsRectWidget area (label/value areas excluded).
ValuedoubleNormalized value (0 for controls without value).
StateIndexintDiscrete state (0/1 for toggles, step index for switches).
IsHoveredboolMouse over the control.
IsPressedboolPrimary button held.
IsEnabledboolControl enabled.
IsFocusedboolKeyboard focus.
Properties
Bounds
Widget area (label/value areas excluded).
public Rect Bounds { get; init; }
Property Value
IsEnabled
Control enabled.
public bool IsEnabled { get; init; }
Property Value
IsFocused
Keyboard focus.
public bool IsFocused { get; init; }
Property Value
IsHovered
Mouse over the control.
public bool IsHovered { get; init; }
Property Value
IsPressed
Primary button held.
public bool IsPressed { get; init; }
Property Value
StateIndex
Discrete state (0/1 for toggles, step index for switches).
public int StateIndex { get; init; }
Property Value
Value
Normalized value (0 for controls without value).
public double Value { get; init; }