mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Added some missing methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8432 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f369ead740
commit
e20466af90
4 changed files with 53 additions and 21 deletions
|
@ -35,6 +35,7 @@
|
|||
@class NSString;
|
||||
@class NSData;
|
||||
@class NSMutableData;
|
||||
@class NSColor;
|
||||
|
||||
typedef enum _NSTIFFCompression {
|
||||
NSTIFFCompressionNone = 1,
|
||||
|
@ -47,6 +48,17 @@ typedef enum _NSTIFFCompression {
|
|||
NSTIFFCompressionOldJPEG = 32865
|
||||
} NSTIFFCompression;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
// FIXME: This is probably wrong
|
||||
typedef enum _NSBitmapImageFileType {
|
||||
NSTIFFFileType = 0,
|
||||
NSBMPFileType = 1,
|
||||
NSGIFFileType = 2,
|
||||
NSJPEGFileType = 3,
|
||||
NSPNGFileType = 4
|
||||
} NSBitmapImageFileType;
|
||||
#endif
|
||||
|
||||
@interface NSBitmapImageRep : NSImageRep
|
||||
{
|
||||
// Attributes
|
||||
|
@ -83,6 +95,15 @@ typedef enum _NSTIFFCompression {
|
|||
bytesPerRow: (int)rowBytes
|
||||
bitsPerPixel: (int)pixelBits;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (void)colorizeByMappingGray:(float)midPoint
|
||||
toColor:(NSColor *)midPointColor
|
||||
blackMapping:(NSColor *)shadowColor
|
||||
whiteMapping:(NSColor *)lightColor;
|
||||
- (id)initWithBitmapHandle:(void *)bitmap;
|
||||
- (id)initWithIconHandle:(void *)icon;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Getting Information about the Image
|
||||
//
|
||||
|
@ -110,6 +131,14 @@ typedef enum _NSTIFFCompression {
|
|||
- (NSData*) TIFFRepresentationUsingCompression: (NSTIFFCompression)type
|
||||
factor: (float)factor;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
+ (NSData *)representationOfImageRepsInArray:(NSArray *)imageReps
|
||||
usingType:(NSBitmapImageFileType)storageType
|
||||
properties:(NSDictionary *)properties;
|
||||
- (NSData *)representationUsingType:(NSBitmapImageFileType)storageType
|
||||
properties:(NSDictionary *)properties;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Setting and Checking Compression Types
|
||||
//
|
||||
|
@ -122,7 +151,15 @@ typedef enum _NSTIFFCompression {
|
|||
- (void) setCompression: (NSTIFFCompression)compression
|
||||
factor: (float)factor;
|
||||
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (void)setProperty:(NSString *)property withValue:(id)value;
|
||||
- (id)valueForProperty:(NSString *)property;
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
@interface NSBitmapImageRep (GNUstepExtension)
|
||||
+ (NSArray*) imageRepsWithFile: (NSString *)filename;
|
||||
@end
|
||||
|
||||
#endif // _GNUstep_H_NSBitmapImageRep
|
||||
|
||||
|
|
|
@ -70,6 +70,9 @@ typedef enum _NSTitlePosition {
|
|||
- (NSFont *)titleFont;
|
||||
- (NSTitlePosition)titlePosition;
|
||||
- (NSRect)titleRect;
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (void)setTitleWithMnemonic:(NSString *)aString;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Setting and Placing the Content View
|
||||
|
@ -85,12 +88,6 @@ typedef enum _NSTitlePosition {
|
|||
- (void)setFrameFromContentFrame:(NSRect)contentFrame;
|
||||
- (void)sizeToFit;
|
||||
|
||||
//
|
||||
// NSCoding protocol
|
||||
//
|
||||
- (void)encodeWithCoder:aCoder;
|
||||
- initWithCoder:aDecoder;
|
||||
|
||||
@end
|
||||
|
||||
#endif // _GNUstep_H_NSBox
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
@class NSFont;
|
||||
@class NSEvent;
|
||||
|
||||
@interface NSControl : NSView <NSCoding>
|
||||
@interface NSControl : NSView
|
||||
{
|
||||
// Attributes
|
||||
int _tag;
|
||||
|
@ -51,11 +51,6 @@
|
|||
//
|
||||
- (id)initWithFrame:(NSRect)frameRect;
|
||||
|
||||
//
|
||||
// Creating copies
|
||||
//
|
||||
- (id) copyWithZone: (NSZone*)zone;
|
||||
|
||||
//
|
||||
// Setting the Control's Cell
|
||||
//
|
||||
|
@ -137,7 +132,6 @@
|
|||
- (void)selectCell:(NSCell *)aCell;
|
||||
- (void)updateCell:(NSCell *)aCell;
|
||||
- (void)updateCellInside:(NSCell *)aCell;
|
||||
- (void)performClick:(id)sender;
|
||||
|
||||
//
|
||||
// Target and Action
|
||||
|
@ -158,6 +152,15 @@
|
|||
- (void)setTag:(int)anInt;
|
||||
- (int)tag;
|
||||
|
||||
//
|
||||
// Activation
|
||||
//
|
||||
- (void)performClick:(id)sender;
|
||||
#ifndef STRICT_OPENSTEP
|
||||
- (BOOL)refusesFirstResponder;
|
||||
- (void)setRefusesFirstResponder:(BOOL)flag;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Tracking the Mouse
|
||||
//
|
||||
|
@ -165,19 +168,12 @@
|
|||
- (BOOL)ignoresMultiClick;
|
||||
- (void)setIgnoresMultiClick:(BOOL)flag;
|
||||
|
||||
//
|
||||
// NSCoding protocol
|
||||
//
|
||||
- (void)encodeWithCoder:aCoder;
|
||||
- initWithCoder:aDecoder;
|
||||
|
||||
@end
|
||||
|
||||
extern NSString *NSControlTextDidBeginEditingNotification;
|
||||
extern NSString *NSControlTextDidEndEditingNotification;
|
||||
extern NSString *NSControlTextDidChangeNotification;
|
||||
|
||||
|
||||
//
|
||||
// Methods Implemented by the Delegate
|
||||
//
|
||||
|
|
|
@ -61,8 +61,10 @@ enum {
|
|||
+ (NSArray *)imageRepsWithContentsOfFile:(NSString *)filename;
|
||||
+ (id)imageRepWithPasteboard:(NSPasteboard *)pasteboard;
|
||||
+ (NSArray *)imageRepsWithPasteboard:(NSPasteboard *)pasteboard;
|
||||
#ifndef STRICT_OPENSTEP
|
||||
+ (id)imageRepWithContentsOfURL:(NSURL *)anURL;
|
||||
+ (NSArray *)imageRepsWithContentsOfURL:(NSURL *)anURL;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Checking Data Types
|
||||
|
|
Loading…
Reference in a new issue