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