Smartmobili.Cocoa.NSView.ConvertRectToView C# (CSharp) Method

ConvertRectToView() public method

public ConvertRectToView ( NSRect aRect, NSView aView ) : NSRect
aRect NSRect
aView NSView
return NSRect
        public virtual NSRect ConvertRectToView(NSRect aRect, NSView aView)
        {
            NSAffineTransform matrix1, matrix2;

            if (aView == this || _window == null || (aView != null && aView.Window == null))
            {
                return aRect;
            }

            matrix1 = this._MatrixToWindow();

            if (aView != null)
            {
                //NS.Assert(_window == aView.Window, @"NSInvalidArgumentException");
                matrix2 = aView._MatrixFromWindow();
            }
            else
            {
                matrix2 = NSAffineTransform.Transform;
            }

            return convert_rect_using_matrices(aRect, matrix1, matrix2);
        }
NSView