Prefixed all ivars with underscores.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8419 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2000-12-23 14:18:40 +00:00
parent 84398c7cae
commit 6d8269c593
4 changed files with 21 additions and 42 deletions

View file

@ -47,20 +47,22 @@ typedef enum _NSTIFFCompression {
NSTIFFCompressionOldJPEG = 32865
} NSTIFFCompression;
@interface NSBitmapImageRep : NSImageRep <NSCoding>
@interface NSBitmapImageRep : NSImageRep
{
// Attributes
unsigned int bytesPerRow;
unsigned int numColors;
unsigned int bitsPerPixel;
unsigned short compression;
float comp_factor;
unsigned int _bytesPerRow;
unsigned int _numColors;
unsigned int _bitsPerPixel;
unsigned short _compression;
float _comp_factor;
BOOL _isPlanar;
unsigned char **imagePlanes;
NSMutableData *imageData;
unsigned char **_imagePlanes;
NSMutableData *_imageData;
// Reserved for back-end use
void *back_end_reserved;
// FIXME: This is used only for the method xPixmapMask in the shared X code.
// If we change the dragging code, we can remove this method and the ivar!
void *_back_end_reserved;
}
//
@ -120,12 +122,6 @@ typedef enum _NSTIFFCompression {
- (void) setCompression: (NSTIFFCompression)compression
factor: (float)factor;
//
// NSCoding protocol
//
- (void) encodeWithCoder: (NSCoder*)aCoder;
- (id) initWithCoder: (NSCoder*)aDecoder;
@end
#endif // _GNUstep_H_NSBitmapImageRep

View file

@ -34,12 +34,11 @@
@class NSWindow;
@interface NSCachedImageRep : NSImageRep <NSCoding>
@interface NSCachedImageRep : NSImageRep
{
// Attributes
NSRect _rect;
NSWindow* _window;
void* _cache;
}
//
@ -58,12 +57,6 @@
- (NSRect)rect;
- (NSWindow *)window;
//
// NSCoding protocol
//
- (void)encodeWithCoder:aCoder;
- initWithCoder:aDecoder;
@end
#endif // _GNUstep_H_NSCachedImageRep

View file

@ -31,11 +31,11 @@
#include <AppKit/NSImageRep.h>
@interface NSCustomImageRep : NSImageRep <NSCoding>
@interface NSCustomImageRep : NSImageRep
{
// Attributes
id delegate;
SEL selector;
id _delegate;
SEL _selector;
}
- (id)initWithDrawSelector:(SEL)aSelector
@ -47,12 +47,6 @@
- (id)delegate;
- (SEL)drawSelector;
//
// NSCoding protocol
//
- (void)encodeWithCoder:aCoder;
- initWithCoder:aDecoder;
@end
#endif // _GNUstep_H_NSCustomImageRep

View file

@ -46,10 +46,10 @@ enum {
{
// Attributes
NSString* _colorSpace;
NSSize size;
BOOL hasAlpha;
BOOL isOpaque;
int bitsPerSample;
NSSize _size;
BOOL _hasAlpha;
BOOL _isOpaque;
int _bitsPerSample;
int _pixelsWide;
int _pixelsHigh;
}
@ -61,6 +61,8 @@ enum {
+ (NSArray *)imageRepsWithContentsOfFile:(NSString *)filename;
+ (id)imageRepWithPasteboard:(NSPasteboard *)pasteboard;
+ (NSArray *)imageRepsWithPasteboard:(NSPasteboard *)pasteboard;
+ (id)imageRepWithContentsOfURL:(NSURL *)anURL;
+ (NSArray *)imageRepsWithContentsOfURL:(NSURL *)anURL;
//
// Checking Data Types
@ -111,12 +113,6 @@ enum {
+ (NSArray *)registeredImageRepClasses;
+ (void)unregisterImageRepClass:(Class)imageRepClass;
//
// NSCoding protocol
//
- (void)encodeWithCoder:aCoder;
- initWithCoder:aDecoder;
@end
extern NSString *NSImageRepRegistryChangedNotification;