Synchronise with trunk

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/themes@24018 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-11-02 19:48:37 +00:00
parent de0771f88a
commit ed1128c5cd
18 changed files with 745 additions and 252 deletions

View file

@ -462,26 +462,17 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
return rect;
}
/**<p>Returns the document visible rectangle. Returns NSZeroRect if the
document view does not exists.</p>
/**<p>Returns the document visible rectangle in the document views coordinate
* system.
<p>See Also: -documentRect [NSView-convertRect:toView:]</p>
*/
- (NSRect) documentVisibleRect
{
NSRect documentBounds;
NSRect clipViewBounds;
NSRect rect;
if (_documentView == nil)
{
return NSZeroRect;
}
documentBounds = [_documentView bounds];
clipViewBounds = [self convertRect: _bounds toView: _documentView];
rect = NSIntersectionRect (documentBounds, clipViewBounds);
return rect;
NSRect visRect;
visRect = [self visibleRect];
visRect = [self convertRect:visRect toView:_documentView];
return visRect;
}
- (void) drawRect: (NSRect)rect