AGS.Editor.GUIEditor.GetSelectionRectangle C# (CSharp) Метод

GetSelectionRectangle() приватный Метод

private GetSelectionRectangle ( int &left, int &top, int &width, int &height ) : void
left int
top int
width int
height int
Результат void
        private void GetSelectionRectangle(out int left, out int top, out int width, out int height)
        {
            left = _addingControlX;
            top = _addingControlY;
            width = _currentMouseX - _addingControlX;
            height = _currentMouseY - _addingControlY;
            if (_currentMouseX < _addingControlX)
            {
                left = _currentMouseX;
                width = -width;
            }
            if (_currentMouseY < _addingControlY)
            {
                top = _currentMouseY;
                height = -height;
            }
        }