Interface IContent
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
OnChar(ref KeyEventRef)
Invoked when a character is typed.
void OnChar(ref KeyEventRef e)
Parameters
OnKeyDown(ref KeyEventRef)
Invoked when a keyboard key is pressed.
void OnKeyDown(ref KeyEventRef e)
Parameters
OnMouseDown(ref MouseDownEventRef)
Invoked when a mouse button is pressed within this content's area.
void OnMouseDown(ref MouseDownEventRef e)
Parameters
OnMouseMove(ref MouseMoveEventRef)
Invoked when the mouse pointer moves within this content's area.
void OnMouseMove(ref MouseMoveEventRef e)
Parameters
OnMouseUp(ref MouseUpEventRef)
Invoked when a mouse button is released.
void OnMouseUp(ref MouseUpEventRef e)
Parameters
OnScrollWheel(ref ScrollWheelEventRef)
Invoked when the scroll wheel is used over this content.
void OnScrollWheel(ref ScrollWheelEventRef e)
Parameters
OnTouch(ref TouchEventRef)
Invoked when a touch event occurs.
void OnTouch(ref TouchEventRef e)
Parameters
Update(ref RenderEventRef, IContext)
Performs layout and renders this content into the provided drawing context.
void Update(ref RenderEventRef @event, IContext context)
Parameters
eventRenderEventRefcontextIContext