FitWindowRectToScreen() private method

private FitWindowRectToScreen ( Rect r, bool forceCompletelyVisible, bool useMouseScreen ) : Rect
r UnityEngine.Rect
forceCompletelyVisible bool
useMouseScreen bool
return UnityEngine.Rect
 private static Rect FitRect(Rect rect, ContainerWindow popupContainerWindow)
 {
     if (popupContainerWindow != null)
     {
         return popupContainerWindow.FitWindowRectToScreen(rect, true, true);
     }
     return ContainerWindow.FitRectToScreen(rect, true, true);
 }
示例#2
0
 private static Rect FitRect(Rect rect, ContainerWindow popupContainerWindow)
 {
     if (popupContainerWindow != null)
     {
         return(popupContainerWindow.FitWindowRectToScreen(rect, true, true));
     }
     return(ContainerWindow.FitRectToScreen(rect, true, true));
 }
示例#3
0
 private static Rect FitRect(Rect rect, ContainerWindow popupContainerWindow)
 {
     if ((bool)((Object)popupContainerWindow))
     {
         return(popupContainerWindow.FitWindowRectToScreen(rect, true, true));
     }
     return(ContainerWindow.FitRectToScreen(rect, true, true));
 }
示例#4
0
        private static Rect FitRect(Rect rect, ContainerWindow popupContainerWindow)
        {
            Rect result;

            if (popupContainerWindow)
            {
                result = popupContainerWindow.FitWindowRectToScreen(rect, true, true);
            }
            else
            {
                result = ContainerWindow.FitRectToScreen(rect, true, true);
            }
            return(result);
        }
 private static Rect FitRect(Rect rect, ContainerWindow popupContainerWindow)
 {
   if ((bool) ((Object) popupContainerWindow))
     return popupContainerWindow.FitWindowRectToScreen(rect, true, true);
   return ContainerWindow.FitRectToScreen(rect, true, true);
 }