UIAnchorResolver Class
Definition
Namespace: Brine2D.UI
Helpers for resolving UIAnchor origins and computing hit-test offsets for anchored components.
Inheritance System.Object → UIAnchorResolver
| Methods | |
|---|---|
| ComputeInputOffsetForAnchored\(IUIComponent, Vector2\) | 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. |
| ResolveAnchoredPosition\(IAnchoredUIComponent, Vector2\) | Returns the resolved screen-space position for an anchored component without modifying its stored Position. |