mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:57:38 +00:00
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:
parent
358214ef48
commit
c5952044b7
7 changed files with 477 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue