UnityEditor.ParticleEffectUI.ResizeHandling C# (CSharp) Method

ResizeHandling() private method

private ResizeHandling ( bool verticalLayout ) : Rect
verticalLayout bool
return UnityEngine.Rect
        private Rect ResizeHandling(bool verticalLayout)
        {
            Rect lastRect;
            if (verticalLayout)
            {
                lastRect = GUILayoutUtility.GetLastRect();
                lastRect.y += -5f;
                lastRect.height = 5f;
                float y = EditorGUI.MouseDeltaReader(lastRect, true).y;
                if (y != 0f)
                {
                    this.m_CurveEditorAreaHeight -= y;
                    this.ClampWindowContentSizes();
                    EditorPrefs.SetFloat("ParticleSystemCurveEditorAreaHeight", this.m_CurveEditorAreaHeight);
                }
                if (Event.current.type == EventType.Repaint)
                {
                    EditorGUIUtility.AddCursorRect(lastRect, MouseCursor.SplitResizeUpDown);
                }
                return lastRect;
            }
            lastRect = new Rect(this.m_EmitterAreaWidth - 5f, 0f, 5f, GUIClip.visibleRect.height);
            float x = EditorGUI.MouseDeltaReader(lastRect, true).x;
            if (x != 0f)
            {
                this.m_EmitterAreaWidth += x;
                this.ClampWindowContentSizes();
                EditorPrefs.SetFloat("ParticleSystemEmitterAreaWidth", this.m_EmitterAreaWidth);
            }
            if (Event.current.type == EventType.Repaint)
            {
                EditorGUIUtility.AddCursorRect(lastRect, MouseCursor.SplitResizeLeftRight);
            }
            return lastRect;
        }