public virtual void TranslateOriginToPoint(NSPoint point)
{
//NSDebugLLog(@"NSView", @"%@ translateOriginToPoint: %@", self, NSStringFromPoint(point));
if (NS.EqualPoints(NSPoint.Zero, point) == false)
{
if (_boundsMatrix == null)
{
_boundsMatrix = (NSAffineTransform)NSAffineTransform.Alloc().Init();
}
_boundsMatrix.TranslateXByYBy(point.X, point.Y);
// Adjust bounds
_bounds.Origin = NS.MakePoint(_bounds.Origin.X - point.X, _bounds.Origin.Y - point.Y);
//_bounds.Origin.X -= point.X;
//_bounds.Origin.Y -= point.Y;
if (_coordinates_valid)
{
//FIXME
//(*invalidateImp)(self, invalidateSel);
}
this.ResetCursorRects();
if (_post_bounds_changes)
{
//[nc postNotificationName: NSViewBoundsDidChangeNotification object: self];
}
}
}