Skip to content

UITabContainer.GetContentOrigin() Method

Definition

Namespace: Brine2D.UI

Returns the absolute screen-space position of the top-left corner of the content area \(below the tab bar\). Useful when you need to convert a content-relative child position to an absolute screen position \(e\.g\. for debug overlays or external hit\-tests\). Child components added via AddComponentToTab\(int, IUIComponent\) use content-origin-relative coordinates, so (0,0) is already the content origin.

C#
public System.Numerics.Vector2 GetContentOrigin();

Returns

System.Numerics.Vector2