UnityEditor.ContainerWindow.FitWindowRectToScreen C# (CSharp) Method

FitWindowRectToScreen() private method

private FitWindowRectToScreen ( Rect r, bool forceCompletelyVisible, bool useMouseScreen ) : Rect
r UnityEngine.Rect
forceCompletelyVisible bool
useMouseScreen bool
return UnityEngine.Rect
        internal Rect FitWindowRectToScreen(Rect r, bool forceCompletelyVisible, bool useMouseScreen)
        {
            Rect rect;
            INTERNAL_CALL_FitWindowRectToScreen(this, ref r, forceCompletelyVisible, useMouseScreen, out rect);
            return rect;
        }

Usage Example

 private static Rect FitRect(Rect rect, ContainerWindow popupContainerWindow)
 {
     if (popupContainerWindow != null)
     {
         return popupContainerWindow.FitWindowRectToScreen(rect, true, true);
     }
     return ContainerWindow.FitRectToScreen(rect, true, true);
 }
All Usage Examples Of UnityEditor.ContainerWindow::FitWindowRectToScreen