Add basic implementation for gui part of colour gradients.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28864 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-10-21 07:12:12 +00:00
parent 358214ef48
commit c5952044b7
7 changed files with 477 additions and 20 deletions

View file

@ -35,20 +35,20 @@
- (id) _initWithColorSpaceModel: (NSColorSpaceModel)model
{
if ((self = [super init]))
{
if ((self = [super init]))
{
// FIXME: Load corresponding data
_colorSpaceModel = model;
}
return self;
}
return self;
}
#define COLORSPACE(model) \
static NSColorSpace *csp; \
if (!csp) \
csp = [[self alloc] _initWithColorSpaceModel: model]; \
return csp;
static NSColorSpace *csp; \
if (!csp) \
csp = [[self alloc] _initWithColorSpaceModel: model]; \
return csp;
+ (NSColorSpace *) deviceCMYKColorSpace
{
@ -82,8 +82,8 @@
- (id) initWithColorSyncProfile: (void *)prof
{
if ((self = [super init]))
{
if ((self = [super init]))
{
_colorSyncProfile = prof;
_colorSpaceModel = NSUnknownColorSpaceModel;
}
@ -92,8 +92,8 @@
- (id) initWithICCProfileData: (NSData *)iccData
{
if ((self = [super init]))
{
if ((self = [super init]))
{
ASSIGN(_iccData, iccData);
_colorSpaceModel = NSUnknownColorSpaceModel;
}
@ -163,7 +163,7 @@
- (void) encodeWithCoder: (NSCoder *)coder
{
// FIXME
if ([coder allowsKeyedCoding])
if ([coder allowsKeyedCoding])
{
}
else
@ -174,13 +174,13 @@
- (id) initWithCoder: (NSCoder *)aDecoder
{
// FIXME
if ([aDecoder allowsKeyedCoding])
if ([aDecoder allowsKeyedCoding])
{
}
else
{
}
return self;
return self;
}
@end