Table of Contents

Interface ILayerHost

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

The contract a host view must satisfy to be used with ILayer<TView>. Provides the invalidation, focus, pointer-capture, and service-resolution APIs that layers call on their host during layout, rendering, and input handling.

public interface ILayerHost : IServiceProvider
Inherited Members
Extension Methods

Properties

Frame

The arranged frame of the host view, in parent-local coordinates.

Rect Frame { get; }

Property Value

Rect

IsFocused

Whether the host view currently holds keyboard focus.

bool IsFocused { get; }

Property Value

bool

Methods

CapturePointer(int)

Routes all subsequent pointer events for pointerId to this view.

void CapturePointer(int pointerId)

Parameters

pointerId int

Focus()

Requests keyboard focus for the host view. Returns true if focus was granted.

bool Focus()

Returns

bool

InvalidateMeasure()

Marks the view as needing re-measure (and re-layout).

void InvalidateMeasure()

InvalidateRender()

Marks the view as needing re-render.

void InvalidateRender()

ReleasePointer(int)

Releases a previously captured pointer.

void ReleasePointer(int pointerId)

Parameters

pointerId int

RequestAnimationFrame()

Schedules an animation frame callback via AnimateCore.

void RequestAnimationFrame()