mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:00:37 +00:00
Update docs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13335 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1f8e8a5814
commit
a7bf31db3f
40 changed files with 3582 additions and 4300 deletions
|
@ -203,18 +203,18 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
|
|||
[self addCursorRect: _bounds cursor: _cursor];
|
||||
}
|
||||
|
||||
- (void) scrollToPoint: (NSPoint)point
|
||||
- (void) scrollToPoint: (NSPoint)aPoint
|
||||
{
|
||||
[self setBoundsOrigin: [self constrainScrollPoint: point]];
|
||||
[self setBoundsOrigin: [self constrainScrollPoint: aPoint]];
|
||||
}
|
||||
|
||||
- (void) setBoundsOrigin: (NSPoint)point
|
||||
- (void) setBoundsOrigin: (NSPoint)aPoint
|
||||
{
|
||||
NSRect originalBounds = _bounds;
|
||||
NSRect newBounds = originalBounds;
|
||||
NSRect intersection;
|
||||
|
||||
newBounds.origin = point;
|
||||
newBounds.origin = aPoint;
|
||||
|
||||
if (NSEqualPoints (originalBounds.origin, newBounds.origin))
|
||||
{
|
||||
|
@ -354,8 +354,8 @@ static inline NSRect integralRect (NSRect rect, NSView *view)
|
|||
/* ?? TODO: Understand the following code - and add explanatory comment */
|
||||
if ([NSView focusView] == _documentView)
|
||||
{
|
||||
PStranslate (NSMinX (originalBounds) - point.x,
|
||||
NSMinY (originalBounds) - point.y);
|
||||
PStranslate (NSMinX (originalBounds) - aPoint.x,
|
||||
NSMinY (originalBounds) - aPoint.y);
|
||||
}
|
||||
|
||||
[_super_view reflectScrolledClipView: self];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue