InputDispatchEntry Struct
Definition
Namespace: Brine2D.UI
Entry in the UICanvas input dispatch buffer. Carries the component, a coordinate offset for non-screen-space children, and an optional clip rect that blocks hits outside the owning container's visible bounds.
C#
internal readonly record struct InputDispatchEntry : System.IEquatable<Brine2D.UI.InputDispatchEntry>
Implements System.IEquatable<InputDispatchEntry>
| Constructors | |
|---|---|
| InputDispatchEntry\(IUIComponent, Vector2, bool, float, float, float, float\) | Entry in the UICanvas input dispatch buffer. Carries the component, a coordinate offset for non-screen-space children, and an optional clip rect that blocks hits outside the owning container's visible bounds. |
| Methods | |
|---|---|
| ForComponent\(IUIComponent, Vector2\) | Creates an entry for a top-level or tab-container child. Pass a non-zero anchorOffset for IAnchoredUIComponent instances. |
| ForScrollChild\(IUIComponent, UIScrollView\) | Creates an entry for a direct child of a UIScrollView. The offset converts incoming screen-space positions into content space before Contains\(Vector2\) runs. The clip blocks hits outside the scroll view's visible rect. |
| ForScrollChild\(IUIComponent, UIScrollView, Vector2, Vector2\) | Variant of ForScrollChild\(IUIComponent, UIScrollView\) that takes an explicitly resolved screen-space position for anchored scroll-view owners. |
| IsHit\(Vector2\) | Returns true when screenPosition hits this component, applying the clip rect and coordinate offset. |