Table of Contents

Struct FrameEventRef

Namespace
Xui.Core.Abstract.Events
Assembly
Core.dll

Represents a platform-level event dispatched once per frame, providing timing information used for driving animations and visual updates.

public ref struct FrameEventRef
Inherited Members

Remarks

This event is emitted from the Actual window and forwarded to the Abstract window, typically during the animation phase of the UI lifecycle. It provides both the previous and next frame times, along with the time delta between them. Consumers can use this data to advance animations or perform time-based layout updates.

Constructors

FrameEventRef(TimeSpan, TimeSpan)

Initializes a new instance of the FrameEventRef struct with the given previous and next frame timestamps.

public FrameEventRef(TimeSpan previous, TimeSpan next)

Parameters

previous TimeSpan

The timestamp of the previous frame.

next TimeSpan

The timestamp of the upcoming frame.

Fields

Delta

The time elapsed between the previous and next frames.

public TimeSpan Delta

Field Value

TimeSpan

Next

The timestamp of the upcoming frame.

public TimeSpan Next

Field Value

TimeSpan

Previous

The timestamp of the previous frame.

public TimeSpan Previous

Field Value

TimeSpan