mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:50:38 +00:00
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:
parent
0efb94944b
commit
b3561409bb
3 changed files with 43 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue