FitWindowRectToScreen() private method

private FitWindowRectToScreen ( Rect r, bool forceCompletelyVisible, bool useMouseScreen ) : Rect
r UnityEngine.Rect
forceCompletelyVisible bool
useMouseScreen bool
return UnityEngine.Rect
Ejemplo n.º 1
0
 private static Rect FitRect(Rect rect, ContainerWindow popupContainerWindow)
 {
     if (popupContainerWindow != null)
     {
         return popupContainerWindow.FitWindowRectToScreen(rect, true, true);
     }
     return ContainerWindow.FitRectToScreen(rect, true, true);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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);
 }