This is ImageView.h in view mode; [Download] [Up]
/* Generated by Interface Builder */
#import <appkit/View.h> // superclass
#import <appkit/Window.h> // delegate methods
#import <appkit/graphics.h> // for drawing
#import <appkit/NXImage.h> // for tiff rendering
#import <appkit/NXBitmapImageRep.h> // for loading bitmap
#import <dpsclient/dpsNeXT.h> // misc. DPS stuff, events
#import <dpsclient/event.h> // NXSize
#import <dpsclient/psops.h> // PSxxx functions
#import <dpsclient/wraps.h> // PSxxx functions
#import <stdio.h>
#import <sys/file.h>
#import <streams/streams.h>
#import <sys/types.h>
#import <sys/uio.h>
@interface ImageView:View
{
id image;
NXPoint origin;
unsigned long xsize, ysize;
}
- initFrame:(const NXRect *)frm; // initialize instance
- (int)tag; // so it can be found for saving
- (BOOL)loadFile:(const char *)name x:(int)winX y:(int)winY; // load pic
- (BOOL)saveFile:(const char *)name; // save pic
- drawSelf:(NXRect *)rects :(int)rectCount; // standard rendering method
- windowWillResize:sender toSize:(NXSize *)frameSize; // to control max size
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.