Table of Contents

Struct DockLayer.Dock3<TView, T1, T2, T3>

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

Three-slot dock layout. Typical usage: Left button | Stretch content | Right button.

public struct DockLayer.Dock3<TView, T1, T2, T3> : ILayer<TView> where TView : ILayerHost where T1 : struct, ILayer<TView> where T2 : struct, ILayer<TView> where T3 : struct, ILayer<TView>

Type Parameters

TView
T1
T2
T3
Implements
ILayer<TView>
Inherited Members

Fields

Child1

public DockLayer.Docked<T1> Child1

Field Value

DockLayer.Docked<T1>

Child2

public DockLayer.Docked<T2> Child2

Field Value

DockLayer.Docked<T2>

Child3

public DockLayer.Docked<T3> Child3

Field Value

DockLayer.Docked<T3>

Methods

Animate(TView, TimeSpan, TimeSpan)

Advances time-based state (animations, blinking cursors, etc.).

public void Animate(TView view, TimeSpan p, TimeSpan c)

Parameters

view TView
p TimeSpan
c TimeSpan

Arrange(TView, Rect, IMeasureContext)

Finalises position and size within rect.

public void Arrange(TView view, Rect rect, IMeasureContext ctx)

Parameters

view TView
rect Rect
ctx IMeasureContext

Measure(TView, Size, IMeasureContext)

Returns the desired border-edge size given the available space.

public Size Measure(TView view, Size available, IMeasureContext ctx)

Parameters

view TView
available Size
ctx IMeasureContext

Returns

Size

OnBlur(TView)

Called when the host view loses keyboard focus.

public void OnBlur(TView view)

Parameters

view TView

OnChar(TView, ref KeyEventRef)

Handles a character input event while the host view has focus.

public void OnChar(TView view, ref KeyEventRef e)

Parameters

view TView
e KeyEventRef

OnFocus(TView)

Called when the host view gains keyboard focus.

public void OnFocus(TView view)

Parameters

view TView

OnKeyDown(TView, ref KeyEventRef)

Handles a key-down event while the host view has focus.

public void OnKeyDown(TView view, ref KeyEventRef e)

Parameters

view TView
e KeyEventRef

OnPointerEvent(TView, ref PointerEventRef, EventPhase)

Handles a pointer event in the given dispatch phase.

public void OnPointerEvent(TView view, ref PointerEventRef e, EventPhase phase)

Parameters

view TView
e PointerEventRef
phase EventPhase

Render(TView, IContext)

Draws content. Called after Arrange.

public void Render(TView view, IContext ctx)

Parameters

view TView
ctx IContext

Update(TView, ref LayoutGuide)

Drives one or more layout passes. Mirrors Update(LayoutGuide). The default per-pass methods are preferred for clarity; override this only when a single-DFS LuminarFlow traversal is needed (leaf layers or single-child-stretch containers).

public void Update(TView view, ref LayoutGuide guide)

Parameters

view TView
guide LayoutGuide