UnityEditor.CurveEditorRectangleTool.OnGUI C# (CSharp) Method

OnGUI() public method

public OnGUI ( ) : void
return void
        public void OnGUI()
        {
            if (this.hasSelection && (Event.current.type == EventType.Repaint))
            {
                CurveEditorSettings.RectangleToolFlags rectangleToolFlags = this.m_CurveEditor.settings.rectangleToolFlags;
                if (rectangleToolFlags != CurveEditorSettings.RectangleToolFlags.NoRectangleTool)
                {
                    Color color = GUI.color;
                    GUI.color = Color.white;
                    this.m_Layout = this.CalculateLayout();
                    if (rectangleToolFlags == CurveEditorSettings.RectangleToolFlags.FullRectangleTool)
                    {
                        GUI.Label(this.m_Layout.selectionLeftRect, GUIContent.none, base.styles.rectangleToolHighlight);
                        GUI.Label(this.m_Layout.selectionTopRect, GUIContent.none, base.styles.rectangleToolHighlight);
                        GUI.Label(this.m_Layout.underlayLeftRect, GUIContent.none, base.styles.rectangleToolHighlight);
                        GUI.Label(this.m_Layout.underlayTopRect, GUIContent.none, base.styles.rectangleToolHighlight);
                    }
                    this.m_SelectionBox.OnGUI(this.m_Layout.selectionRect);
                    this.m_SelectionScaleTop.OnGUI(this.m_Layout.scaleTopRect);
                    this.m_SelectionScaleBottom.OnGUI(this.m_Layout.scaleBottomRect);
                    this.m_SelectionScaleLeft.OnGUI(this.m_Layout.scaleLeftRect);
                    this.m_SelectionScaleRight.OnGUI(this.m_Layout.scaleRightRect);
                    GUI.color = color;
                }
            }
        }