Various partially completed works

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4154 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-04-28 11:16:26 +00:00
parent d179d675db
commit 0e88a90011
4 changed files with 822 additions and 365 deletions

View file

@ -279,17 +279,27 @@ static NSMutableArray* imageReps = NULL;
// Drawing the Image
- (BOOL) draw
{
[self subclassResponsibility: _cmd];
return NO;
return YES; /* Subclass should implement this. */
}
- (BOOL) drawAtPoint: (NSPoint)aPoint
{
return NO;
NSRect r;
if (aPoint.x == 0 && aPoint.y == 0)
return [self draw];
r.origin = aPoint;
r.size = size;
return [self drawInRect: r];
}
- (BOOL) drawInRect: (NSRect)aRect
{
float x, y;
if (size.height == 0 || size.width == 0)
return NO;
/* FIXME - should scale and move as necessary. */
return NO;
}