Table of Contents

Interface IContent

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

Defines the contract for UI content that participates in layout, rendering, and input dispatch.

public interface IContent

Methods

Invalidate()

Requests a visual redraw of this content.

void Invalidate()

OnAnimationFrame(ref FrameEventRef)

Invoked on each animation frame tick.

void OnAnimationFrame(ref FrameEventRef e)

Parameters

e FrameEventRef

OnChar(ref KeyEventRef)

Invoked when a character is typed.

void OnChar(ref KeyEventRef e)

Parameters

e KeyEventRef

OnKeyDown(ref KeyEventRef)

Invoked when a keyboard key is pressed.

void OnKeyDown(ref KeyEventRef e)

Parameters

e KeyEventRef

OnMouseDown(ref MouseDownEventRef)

Invoked when a mouse button is pressed within this content's area.

void OnMouseDown(ref MouseDownEventRef e)

Parameters

e MouseDownEventRef

OnMouseMove(ref MouseMoveEventRef)

Invoked when the mouse pointer moves within this content's area.

void OnMouseMove(ref MouseMoveEventRef e)

Parameters

e MouseMoveEventRef

OnMouseUp(ref MouseUpEventRef)

Invoked when a mouse button is released.

void OnMouseUp(ref MouseUpEventRef e)

Parameters

e MouseUpEventRef

OnScrollWheel(ref ScrollWheelEventRef)

Invoked when the scroll wheel is used over this content.

void OnScrollWheel(ref ScrollWheelEventRef e)

Parameters

e ScrollWheelEventRef

OnTouch(ref TouchEventRef)

Invoked when a touch event occurs.

void OnTouch(ref TouchEventRef e)

Parameters

e TouchEventRef

Update(ref RenderEventRef, IContext)

Performs layout and renders this content into the provided drawing context.

void Update(ref RenderEventRef @event, IContext context)

Parameters

event RenderEventRef
context IContext