Table of Contents

Class EventRouter

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

Routes platform-level input events through the view hierarchy, translating them into abstract pointer events. Handles pointer capture, enter/leave events, and event phase delivery (tunneling and bubbling).

public class EventRouter
Inheritance
EventRouter
Inherited Members

Constructors

EventRouter(View)

Initializes a new instance of the EventRouter class, responsible for translating platform input events and dispatching them through the view hierarchy starting from the specified root view.

public EventRouter(View rootView)

Parameters

rootView View

The root view of the window hierarchy that will receive routed pointer events.

Methods

Dispatch(ref TouchEventRef)

Dispatches a touch event, normalizing it into abstract pointer events.

public void Dispatch(ref TouchEventRef touchEvent)

Parameters

touchEvent TouchEventRef

The touch event to dispatch.