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

Method PointToWindow

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

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

(Float2 location)

Source from the content-addressed store, hash-verified

1278 /// <param name="location">Input location of the point to convert</param>
1279 /// <returns>Converted point location in window coordinates</returns>
1280 public Float2 PointToWindow(Float2 location)
1281 {
1282 location = PointToParent(ref location);
1283 if (_parent != null)
1284 {
1285 location = _parent.PointToWindow(location);
1286 }
1287 return location;
1288 }
1289
1290 /// <summary>
1291 /// Converts point in the window coordinates into control's space

Callers 5

ShowMethod · 0.80
DockPanelClass · 0.80
ShowMethod · 0.80
ShowEmptyMenuMethod · 0.80
ShowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected