Table of Contents

Struct LayoutFrameContext

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll

Immutable services and timing shared by every view visited during one render-surface update.

public readonly struct LayoutFrameContext
Inherited Members

Constructors

LayoutFrameContext(TimeSpan, TimeSpan, IMeasureContext?, IContext?, InstrumentsAccessor)

Initializes a frame context.

public LayoutFrameContext(TimeSpan previousTime, TimeSpan currentTime, IMeasureContext? measureContext, IContext? renderContext, InstrumentsAccessor instruments)

Parameters

previousTime TimeSpan
currentTime TimeSpan
measureContext IMeasureContext
renderContext IContext
instruments InstrumentsAccessor

Properties

CurrentTime

Time of this frame.

public TimeSpan CurrentTime { get; }

Property Value

TimeSpan

Instruments

Instrumentation associated with this render surface.

public InstrumentsAccessor Instruments { get; }

Property Value

InstrumentsAccessor

MeasureContext

Measurement services for this render surface.

public IMeasureContext? MeasureContext { get; }

Property Value

IMeasureContext

PreviousTime

Time of the preceding frame.

public TimeSpan PreviousTime { get; }

Property Value

TimeSpan

RenderContext

Rendering context for this render surface.

public IContext? RenderContext { get; }

Property Value

IContext