public static Vector2 GetDenormalizedLocation(this UiElement element, IEmulatorWindow window) { return(window.Denormalize(new Vector2(element.X.GetValueOrDefault(), element.Y.GetValueOrDefault()))); }
public static Vector2 GetDenormalizedLocationBottomRight(this UiElement element, IEmulatorWindow window) { return(GetDenormalizedLocation(element, window) + window.Denormalize(new Vector2(element.W.GetValueOrDefault(), element.H.GetValueOrDefault()))); }