mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 20:49:13 +00:00
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
This commit is contained in:
parent
6b0432bf62
commit
84398c7cae
1 changed files with 23 additions and 15 deletions
|
@ -37,16 +37,18 @@
|
|||
@class NSString;
|
||||
@class NSMutableArray;
|
||||
@class NSData;
|
||||
@class NSURL;
|
||||
|
||||
@class NSPasteboard;
|
||||
@class NSImageRep;
|
||||
@class NSColor;
|
||||
@class NSView;
|
||||
|
||||
@interface NSImage : NSObject <NSCoding>
|
||||
@interface NSImage : NSObject <NSCoding, NSCopying>
|
||||
{
|
||||
// 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
|
||||
|
|
Loading…
Reference in a new issue