Table of Contents

Struct ListItemState

Namespace
PluginUI
Assembly
PluginUI.dll

State of one row handed to a custom ItemRenderer.

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

Constructors

ListItemState(int, bool, bool, bool, bool)

State of one row handed to a custom ItemRenderer.

public ListItemState(int Index, bool IsSelected, bool IsHovered, bool IsCurrent, bool IsEnabled)

Parameters

Index int

Row index.

IsSelected bool

Row selected.

IsHovered bool

Mouse over the row.

IsCurrent bool

Keyboard cursor row (drawn with a focus outline when the list is focused).

IsEnabled bool

List enabled.

Properties

Index

Row index.

public int Index { get; init; }

Property Value

int

IsCurrent

Keyboard cursor row (drawn with a focus outline when the list is focused).

public bool IsCurrent { get; init; }

Property Value

bool

IsEnabled

List enabled.

public bool IsEnabled { get; init; }

Property Value

bool

IsHovered

Mouse over the row.

public bool IsHovered { get; init; }

Property Value

bool

IsSelected

Row selected.

public bool IsSelected { get; init; }

Property Value

bool