Skip to content

InputDispatchEntry.ForScrollChild Method

Definition

Namespace: Brine2D.UI

Overloads
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.

InputDispatchEntry.ForScrollChild\(IUIComponent, UIScrollView\) Method

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.

C#
internal static Brine2D.UI.InputDispatchEntry ForScrollChild(Brine2D.UI.IUIComponent component, Brine2D.UI.UIScrollView owner);

Parameters

component IUIComponent

owner UIScrollView

Returns

InputDispatchEntry

InputDispatchEntry.ForScrollChild\(IUIComponent, UIScrollView, Vector2, Vector2\) Method

Variant of ForScrollChild\(IUIComponent, UIScrollView\) that takes an explicitly resolved screen-space position for anchored scroll-view owners.

C#
internal static Brine2D.UI.InputDispatchEntry ForScrollChild(Brine2D.UI.IUIComponent component, Brine2D.UI.UIScrollView owner, System.Numerics.Vector2 resolvedPosition, System.Numerics.Vector2 resolvedSize);

Parameters

component IUIComponent

owner UIScrollView

resolvedPosition System.Numerics.Vector2

resolvedSize System.Numerics.Vector2

Returns

InputDispatchEntry