UIContextMenu.HitTestItem(Vector2) Method
Definition
Namespace: Brine2D.UI
Returns the index of the item whose row contains screenPosition, or -1 if the position is outside the menu.
Parameters
screenPosition System.Numerics.Vector2
Namespace: Brine2D.UI
Returns the index of the item whose row contains screenPosition, or -1 if the position is outside the menu.
screenPosition System.Numerics.Vector2