mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 01:40:48 +00:00
Documentatikon tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17298 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7c405cff67
commit
5c21d4d3d1
9 changed files with 33 additions and 26 deletions
|
@ -892,7 +892,7 @@ has the same y origin and height as the line frag rect it is in.
|
|||
-(unsigned int) characterIndexMoving: (GSInsertionPointMovementDirection)direction
|
||||
fromCharacterIndex: (unsigned int)from
|
||||
originalCharacterIndex: (unsigned int)original
|
||||
distance: (float)distance;
|
||||
distance: (float)distance
|
||||
{
|
||||
NSRect from_rect, new_rect;
|
||||
int from_tc, new_tc;
|
||||
|
|
|
@ -314,7 +314,7 @@ static NSImage *_pbc_image[2];
|
|||
}
|
||||
}
|
||||
|
||||
- (void)setImage:(NSImage *)anImage;
|
||||
- (void)setImage:(NSImage *)anImage
|
||||
{
|
||||
// Do nothing as the image is determined by the current item
|
||||
}
|
||||
|
|
|
@ -318,33 +318,32 @@ framework intact.
|
|||
return _lineFragmentPadding;
|
||||
}
|
||||
|
||||
-(NSRect) lineFragmentRectForProposedRect: (NSRect)proposed
|
||||
sweepDirection: (NSLineSweepDirection)sweep
|
||||
movementDirection: (NSLineMovementDirection)move
|
||||
remainingRect: (NSRect *)remain
|
||||
- (NSRect) lineFragmentRectForProposedRect: (NSRect)proposedRect
|
||||
sweepDirection: (NSLineSweepDirection)sweepDir
|
||||
movementDirection: (NSLineMovementDirection)moveDir
|
||||
remainingRect: (NSRect *)remainingRect
|
||||
{
|
||||
float minx, maxx, miny, maxy;
|
||||
float cminx, cmaxx, cminy, cmaxy;
|
||||
|
||||
minx = NSMinX(proposed);
|
||||
maxx = NSMaxX(proposed);
|
||||
miny = NSMinY(proposed);
|
||||
maxy = NSMaxY(proposed);
|
||||
minx = NSMinX(proposedRect);
|
||||
maxx = NSMaxX(proposedRect);
|
||||
miny = NSMinY(proposedRect);
|
||||
maxy = NSMaxY(proposedRect);
|
||||
|
||||
cminx = NSMinX(_containerRect);
|
||||
cmaxx = NSMaxX(_containerRect);
|
||||
cminy = NSMinY(_containerRect);
|
||||
cmaxy = NSMaxY(_containerRect);
|
||||
|
||||
*remain = NSZeroRect;
|
||||
*remainingRect = NSZeroRect;
|
||||
|
||||
if (minx >= cminx && maxx <= cmaxx &&
|
||||
miny >= cminy && maxy <= cmaxy)
|
||||
if (minx >= cminx && maxx <= cmaxx && miny >= cminy && maxy <= cmaxy)
|
||||
{
|
||||
return proposed;
|
||||
return proposedRect;
|
||||
}
|
||||
|
||||
switch (move)
|
||||
switch (moveDir)
|
||||
{
|
||||
case NSLineMoveLeft:
|
||||
if (maxx < cminx)
|
||||
|
@ -390,7 +389,7 @@ framework intact.
|
|||
break;
|
||||
}
|
||||
|
||||
switch (sweep)
|
||||
switch (sweepDir)
|
||||
{
|
||||
case NSLineSweepLeft:
|
||||
case NSLineSweepRight:
|
||||
|
|
|
@ -1130,7 +1130,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
|
|||
* to it using [NSConnection+rootProxyForConnectionWithRegisteredName:host:]
|
||||
* passing the application name (normally the filesystem name excluding path
|
||||
* and file extension) and an empty host name. This will let you communicate
|
||||
* with the the [NSApplication-delagate] of the launched application, and you
|
||||
* with the the [NSApplication-delegate] of the launched application, and you
|
||||
* can generally use this as a test of whether an application is running
|
||||
* correctly.
|
||||
* </p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue