protected _MatrixToWindow ( ) : |
||
return |
protected virtual NSAffineTransform _MatrixToWindow()
{
this._RebuildCoordinates();
return (NSAffineTransform)_matrixToWindow;
}
public virtual NSSize ConvertSizeFromView(NSSize aSize, NSView aView) { NSSize inBase; NSSize inSelf; if (aView != null) { //NS.Assert(_window == aView.Window, @"NSInvalidArgumentException"); inBase = aView._MatrixToWindow().TransformSize(aSize); if (inBase.Height < 0.0) { inBase.Height = -inBase.Height; } } else { inBase = aSize; } inSelf = this._MatrixFromWindow().TransformSize(inBase); if (inSelf.Height < 0.0) { inSelf.Height = -inSelf.Height; } return inSelf; }