MonobjcMonobjc Documented Class Library
NSGradient Constructor
NamespacesMonobjc.AppKitNSGradientNSGradient()()()()
Members
IconMemberDescription
NSGradient(NSArray)

Initializes a newly allocated gradient object with an array of colors.

Original signature is '- (id)initWithColors:(NSArray *)colorArray'

Available in Mac OS X v10.5 and later.


NSGradient(NSArray, IntPtr, NSColorSpace)

Initializes a newly allocated gradient object with the specified colors, color locations, and color space.

Original signature is '- (id)initWithColors:(NSArray *)colorArray atLocations:(const CGFloat *)locations colorSpace:(NSColorSpace *)colorSpace'

Available in Mac OS X v10.5 and later.


NSGradient(NSColor, NSColor)

Initializes a newly allocated gradient object with two colors.

Original signature is '- (id)initWithStartingColor:(NSColor *)startingColor endingColor:(NSColor *)endingColor'

Available in Mac OS X v10.5 and later.


NSGradient(NSCoder)

Returns an object initialized from data in a given unarchiver. (required)

Original signature is '- (id)initWithCoder:(NSCoder *)decoder'

Available in Mac OS X v10.0 and later.


NSGradient()()()()
Initializes a new instance of the NSGradient class.

NSGradient(IntPtr)
Initializes a new instance of the NSGradient class.

NSGradient(String, Object, array<Object>[]()[][])
Initializes a new instance of the NSGradient class.

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)