Add the 10.5 coordinate transformation methods.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31755 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-12-22 17:06:35 +00:00
parent 0efb94944b
commit b3561409bb
3 changed files with 43 additions and 0 deletions

View file

@ -1844,6 +1844,36 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
return new;
}
- (NSPoint) convertPointFromBase: (NSPoint)aPoint
{
return [self convertPoint: aPoint fromView: nil];
}
- (NSPoint) convertPointToBase: (NSPoint)aPoint
{
return [self convertPoint: aPoint toView: nil];
}
- (NSRect) convertRectFromBase: (NSRect)aRect
{
return [self convertRect: aRect fromView: nil];
}
- (NSRect) convertRectToBase: (NSRect)aRect
{
return [self convertRect: aRect toView: nil];
}
- (NSSize) convertSizeFromBase: (NSSize)aSize
{
return [self convertSize: aSize fromView: nil];
}
- (NSSize) convertSizeToBase: (NSSize)aSize
{
return [self convertSize: aSize toView: nil];
}
/**
* Sets whether the receiver should post NSViewFrameDidChangeNotification
* when its frame changed.