MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / PointFromScreen

Method PointFromScreen

Source/Engine/UI/GUI/Control.cs:1324–1331  ·  view source on GitHub ↗

Converts point in screen coordinates into the local control's space Input location of the point to convert Converted point location in local control's space

(Float2 location)

Source from the content-addressed store, hash-verified

1322 /// <param name="location">Input location of the point to convert</param>
1323 /// <returns>Converted point location in local control's space</returns>
1324 public virtual Float2 PointFromScreen(Float2 location)
1325 {
1326 if (_parent != null)
1327 {
1328 location = _parent.PointFromScreen(location);
1329 }
1330 return PointFromParent(ref location);
1331 }
1332
1333#if FLAX_EDITOR
1334 /// <summary>

Callers 15

UpdateMethod · 0.45
ArrangeAreaCheckMethod · 0.45
OnMouseDoubleClickMethod · 0.45
HitTestMethod · 0.45
UpdateRectsMethod · 0.45
ShowMethod · 0.45
OnWindowLostFocusMethod · 0.45
OnImageClickedMethod · 0.45
ArrangeAreaCheckMethod · 0.45
ArrangeAreaCheckMethod · 0.45
OnRightClickMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected