This is UnitGen.m in view mode; [Download] [Up]
/* Generated by Interface Builder */
#import "UnitGen.h"
#import "Instrum.h"
@implementation UnitGen
- show
{
printf("type: %s \nlocation:%f, %f\nsize: %f, %f\ncenter: %f %f\n", type,location.x,location.y,size.width,size.height,center.x,center.y);
return self;
}
- (NXPoint *)getLocation
{
return &location;
}
- (char *)getType
{
return type;
}
- (NXSize *)getSize;
{
return &size;
}
- (NXPoint *)getCenter
{
return ¢er;
}
- (NXRect *)getRect
{
rectangle.origin.x = location.x;
rectangle.origin.y = location.y;
rectangle.size.width = size.width;
rectangle.size.height = size.height;
return &rectangle;
}
- move:(NXPoint *)newloc
{
location = *newloc;
return self;
}
- setIndex:(unsigned int)i
{
index = i;
return self;
}
- (unsigned int)getIndex
{
return index;
}
- newWrite
{
written = NO;
return self;
}
- (BOOL)getWritten
{
return written;
}
- getParamList
{
return paramList;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.