From 1adbb947a4b6fd64f3df566d3af3bf232d31eb8d Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Sat, 23 Dec 2000 14:16:51 +0000 Subject: [PATCH] Prefixed all ivars with underscores, made fileName an ivar of NSImage and added some missing methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8418 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/NSImage.h | 38 +++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/Headers/gnustep/gui/NSImage.h b/Headers/gnustep/gui/NSImage.h index 838b17f85..e8b85d6d9 100644 --- a/Headers/gnustep/gui/NSImage.h +++ b/Headers/gnustep/gui/NSImage.h @@ -37,16 +37,18 @@ @class NSString; @class NSMutableArray; @class NSData; +@class NSURL; @class NSPasteboard; @class NSImageRep; @class NSColor; @class NSView; -@interface NSImage : NSObject +@interface NSImage : NSObject { // Attributes - NSString *name; + NSString *_name; + NSString *_fileName; NSSize _size; struct __imageFlags { unsigned archiveByName: 1; @@ -64,7 +66,7 @@ NSMutableArray *_reps; NSColor *_color; NSView *_lockedView; - id delegate; + id _delegate; } // @@ -76,6 +78,12 @@ - (id) initWithPasteboard: (NSPasteboard*)pasteboard; - (id) initWithSize: (NSSize)aSize; +#ifndef STRICT_OPENSTEP +- (id)initWithBitmapHandle:(void *)bitmap; +- (id)initWithContentsOfURL:(NSURL *)anURL; +- (id)initWithIconHandle:(void *)icon; +#endif + // // Setting the Size of the Image // @@ -179,18 +187,6 @@ + (NSArray*) imageFileTypes; + (NSArray*) imagePasteboardTypes; -// -// Methods Implemented by the Delegate -// -- (NSImage*) imageDidNotDraw: (id)sender - inRect: (NSRect)aRect; - -// -// NSCoding protocol -// -- (void) encodeWithCoder: (NSCoder*)aCoder; -- (id) initWithCoder: (NSCoder*)aDecoder; - @end @@ -200,4 +196,16 @@ @end +#ifndef NO_GNUSTEP +/* + * A formal protocol that duplicates the informal protocol for delegates. + */ +@protocol GSImageDelegateProtocol + +- (NSImage*) imageDidNotDraw: (id)sender + inRect: (NSRect)aRect; + +@end +#endif + #endif // _GNUstep_H_NSImage