UIAnchorResolver.ComputeInputOffsetForAnchored(IUIComponent, Vector2) Method
Definition
Namespace: Brine2D.UI
Returns the offset to add to incoming screen positions before hit-testing an anchored component. Returns System.Numerics.Vector2.Zero for non-anchored components and for Brine2D.UI.UIAnchor.TopLeft with no offset.
C#
internal static System.Numerics.Vector2 ComputeInputOffsetForAnchored(Brine2D.UI.IUIComponent component, System.Numerics.Vector2 screenSize);
Parameters
component IUIComponent
screenSize System.Numerics.Vector2