mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +00:00
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:
parent
d179d675db
commit
0e88a90011
4 changed files with 822 additions and 365 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue