mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Commit skeleton
This commit is contained in:
parent
c3bd876fa5
commit
943a323002
2 changed files with 25 additions and 0 deletions
|
@ -41,6 +41,7 @@ extern "C" {
|
|||
NSData *_imageData;
|
||||
NSData *_pictRepresentation;
|
||||
NSRect _boundingBox;
|
||||
NSUInteger _position;
|
||||
}
|
||||
|
||||
+ (instancetype) imageRepWithData: (NSData *)imageData;
|
||||
|
|
|
@ -36,7 +36,15 @@
|
|||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
BOOL result = NO;
|
||||
|
||||
ASSIGNCOPY(_imageData, imageData);
|
||||
result = [self _readPICTHeader];
|
||||
if (result == NO)
|
||||
{
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
@ -51,5 +59,21 @@
|
|||
return [_pictRepresentation copy];
|
||||
}
|
||||
|
||||
- (BOOL) _readPICTHeader
|
||||
{
|
||||
_position = 512;
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) _drawPICT
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) draw
|
||||
{
|
||||
return [self _drawPICT];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue