Inherits from GSElement : GSShape : NSObject
Declared in GSGradient.h

Properties

colors

The colors.

@property (nonatomic, strong) NSMutableArray<NSArray*> *colors

end

The end.

@property (nonatomic) NSPoint end

start

The start.

@property (nonatomic) NSPoint start

type

The type.

@property (nonatomic) GSGradientType type

Instance Methods

addColor:

Adds the color

- (void)addColor:(NSArray *)color

Parameters

color

the object to be added

countOfColors

The number of colors

- (NSUInteger)countOfColors

indexOfObjectInColors:

Returns the index of color in colors

- (NSUInteger)indexOfObjectInColors:(NSArray *)color

Parameters

color

the object

Return Value

the index of the object

insertObject:inColorsAtIndex:

Inserts the color at index into colors

- (void)insertObject:(NSArray *)color inColorsAtIndex:(NSUInteger)idx

Parameters

color

The object to insert

idx

The index

objectInColorsAtIndex:

Returns object at idx in colors

- (NSArray *)objectInColorsAtIndex:(NSUInteger)idx

Parameters

idx

The index

Return Value

the object at index

propertyListValueFormat:

Returns the content of the object to store it in pList.

- (id)propertyListValueFormat:(GSFormatVersion)formatVersion

Parameters

format

the version of the dict

Discussion

This is used to store the data in the .glyphs file.

removeObjectFromColors:

Removes the color

- (void)removeObjectFromColors:(NSArray *)color

Parameters

color

the object to be removed

removeObjectFromColorsAtIndex:

Removes the color at idx

- (void)removeObjectFromColorsAtIndex:(NSUInteger)idx

Parameters

idx

The index