Up
Authors
- Scott Christley (
scottc@net-community.com
)
-
- Fred Kiefer (
fredkiefer@gmx.de
)
-
The colorful color class
Copyright: (C)
1996, 1998, 2001, 2002 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSColor.h
- Conforms to:
- NSCoding
- NSCopying
Availability: OpenStep
Method summary
+ (
NSColor*)
alternateSelectedControlColor;
Availability: MacOS-X 10.2.0
Description forthcoming.
+ (
NSColor*)
alternateSelectedControlTextColor;
Availability: MacOS-X 10.2.0
Description forthcoming.
+ (
NSColor*)
blackColor;
Availability: OpenStep
Returns a NSColor in a
NSCalibratedWhiteColorSpace
space name. with white and alpha values set as
NSBlack and 1.0 respectively.
See Also :
+colorWithCalibratedWhite:alpha:
+ (
NSColor*)
blueColor;
Availability: OpenStep
+ (
NSColor*)
brownColor;
Availability: OpenStep
+ (
NSColor*)
clearColor;
Availability: OpenStep
Returns a NSColor in a
NSCalibratedWhiteColorSpace
space name. with white and alpha values set as 0.0
and 1.0 respectively.
See Also :
+colorWithCalibratedWhite:alpha:
+ (
NSColor*)
colorForControlTint: (
NSControlTint)controlTint;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
colorFromPasteboard: (
NSPasteboard*)pasteBoard;
Availability: OpenStep
Returns the NSColor on the NSPasteboard
pasteBoard or nil
if it
does not exists.
See Also:
-writeToPasteboard:
+ (
NSColor*)
colorWithCalibratedHue: (
CGFloat)hue
saturation: (
CGFloat)saturation
brightness: (
CGFloat)brightness
alpha: (
CGFloat)alpha;
Availability: OpenStep
Creates and returns a new NSColor in a
NSCalibratedRGBColorSpace space
name, with hue, saturation,
brightness and alpha as
specified. Valid values are the range 0.0 to
1.0. Out of range values will be clipped.
+ (
NSColor*)
colorWithCalibratedRed: (
CGFloat)red
green: (
CGFloat)green
blue: (
CGFloat)blue
alpha: (
CGFloat)alpha;
Availability: OpenStep
Creates and returns a new NSColor in a
NSCalibratedRGBColorSpace space
name, with red, green,
blue and alpha as specified.
Valid values are the range 0.0 to 1.0. Out of range
values will be clipped.
+ (
NSColor*)
colorWithCalibratedWhite: (
CGFloat)white
alpha: (
CGFloat)alpha;
Availability: OpenStep
Creates and returns a new NSColor in a
NSCalibratedWhiteColorSpace
space name, with red, green, blue and
alpha as specified. Valid values are the
range 0.0 to 1.0. Out of range values will be
clipped.
+ (
NSColor*)
colorWithColorSpace: (NSColorSpace*)space
components: (const
CGFloat*)comp
count: (
NSInteger)number;
Availability: MacOS-X 10.4.0
Description forthcoming.
+ (
NSColor*)
colorWithDeviceCyan: (
CGFloat)cyan
magenta: (
CGFloat)magenta
yellow: (
CGFloat)yellow
black: (
CGFloat)black
alpha: (
CGFloat)alpha;
Availability: OpenStep
Creates and returns a new NSColor in a
NSDeviceCMYKColorSpace space name,
with cyan, magenta,
yellow, black and
alpha as specified. Valid values are the
range 0.0 to 1.0. Out of range values will be
clipped.
+ (
NSColor*)
colorWithDeviceHue: (
CGFloat)hue
saturation: (
CGFloat)saturation
brightness: (
CGFloat)brightness
alpha: (
CGFloat)alpha;
Availability: OpenStep
Creates and returns a new NSColor in a
NSDeviceCMYKColorSpace space name,
with hue, saturation,
brightness and alpha as
specified. Valid values are the range 0.0 to
1.0. Out of range values will be clipped.
+ (
NSColor*)
colorWithDeviceRed: (
CGFloat)red
green: (
CGFloat)green
blue: (
CGFloat)blue
alpha: (
CGFloat)alpha;
Availability: OpenStep
Creates and returns a new NSColor in a
NSDeviceCMYKColorSpace space name,
with red, green,
blue and alpha as specified.
Valid values are the range 0.0 to 1.0. Out of range
values will be clipped.
+ (
NSColor*)
colorWithDeviceWhite: (
CGFloat)white
alpha: (
CGFloat)alpha;
Availability: OpenStep
Creates and returns a new NSColor in a
NSDeviceWhiteColorSpace space
name, with red, green, blue and alpha as
specified. Valid values are the range 0.0 to
1.0. Out of range values will be clipped.
+ (
NSColor*)
colorWithPatternImage: (
NSImage*)image;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSArray*)
controlAlternatingRowBackgroundColors;
Availability: MacOS-X 10.3.0
Description forthcoming.
+ (
NSColor*)
controlBackgroundColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
controlColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
controlDarkShadowColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
controlHighlightColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
controlLightHighlightColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
controlShadowColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
controlTextColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSControlTint)
currentControlTint;
Availability: MacOS-X 10.3.0
Description forthcoming.
+ (
NSColor*)
cyanColor;
Availability: OpenStep
+ (
NSColor*)
darkGrayColor;
Availability: OpenStep
Returns a NSColor in a
NSCalibratedWhiteColorSpace
space name. with white and alpha values set as
NSDarkGray and 1.0 respectively.
See Also :
+colorWithCalibratedWhite:alpha:
+ (
NSColor*)
disabledControlTextColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
grayColor;
Availability: OpenStep
Returns a NSColor in a
NSCalibratedWhiteColorSpace
space name. with white and alpha values set as
NSGray and 1.0 respectively.
See Also:
+colorWithCalibratedWhite:alpha:
+ (
NSColor*)
greenColor;
Availability: OpenStep
+ (
NSColor*)
gridColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
headerColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
headerTextColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
highlightColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (BOOL)
ignoresAlpha;
Availability: OpenStep
+ (
NSColor*)
keyboardFocusIndicatorColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
knobColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
labelColor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
+ (
NSColor*)
lightGrayColor;
Availability: OpenStep
+ (
NSColor*)
magentaColor;
Availability: OpenStep
+ (
NSColor*)
orangeColor;
Availability: OpenStep
+ (
NSColor*)
purpleColor;
Availability: OpenStep
+ (
NSColor*)
quaternaryLabelColor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
+ (
NSColor*)
redColor;
Availability: OpenStep
+ (
NSColor*)
scrollBarColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
secondaryLabelColor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
+ (
NSColor*)
secondarySelectedControlColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
selectedControlColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
selectedControlTextColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
selectedKnobColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
selectedMenuItemColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
selectedMenuItemTextColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
selectedTextBackgroundColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
selectedTextColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (void)
setIgnoresAlpha: (BOOL)flag;
Availability: OpenStep
+ (
NSColor*)
shadowColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
tertiaryLabelColor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
+ (
NSColor*)
textBackgroundColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
textColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
whiteColor;
Availability: OpenStep
Returns a NSColor in a
NSCalibratedWhiteColorSpace
space name. with white and alpha values set as
NSWhite and 1.0 respectively.
See Also :
+colorWithCalibratedWhite:alpha:
+ (
NSColor*)
windowBackgroundColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
windowFrameColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
windowFrameTextColor;
Availability: MacOS-X 10.0.0
Description forthcoming.
+ (
NSColor*)
yellowColor;
Availability: OpenStep
- (
CGFloat)
alphaComponent;
Availability: OpenStep
Returns the alpha component.
- (
CGFloat)
blackComponent;
Availability: OpenStep
Returns the black component. Raises a
NSInternalInconsistencyException
if NSColor is not a CMYK color.
- (
NSColor*)
blendedColorWithFraction: (
CGFloat)fraction
ofColor: (
NSColor*)aColor;
Availability: OpenStep
Description forthcoming.
- (
CGFloat)
blueComponent;
Availability: OpenStep
Returns the blue component. Raises a
NSInternalInconsistencyException
if NSColor is not a RGB color.
- (
CGFloat)
brightnessComponent;
Availability: OpenStep
Returns the brightness component. Raises a
NSInternalInconsistencyException
if NSColor space is not a RGB color
- (
NSString*)
catalogNameComponent;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
colorNameComponent;
Availability: OpenStep
Description forthcoming.
- (NSColorSpace*)
colorSpace;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSString*)
colorSpaceName;
Availability: OpenStep
Description forthcoming.
- (
NSColor*)
colorUsingColorSpace: (NSColorSpace*)space;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSColor*)
colorUsingColorSpaceName: (
NSString*)colorSpace;
Availability: OpenStep
Description forthcoming.
- (
NSColor*)
colorUsingColorSpaceName: (
NSString*)colorSpace
device: (
NSDictionary*)deviceDescription;
Availability: OpenStep
Description forthcoming.
- (
NSColor*)
colorWithAlphaComponent: (
CGFloat)alpha;
Availability: OpenStep
Description forthcoming.
- (
CGFloat)
cyanComponent;
Availability: OpenStep
Returns the cyan component. Raises a
NSInternalInconsistencyException
if NSColor is not a CYMK color
- (void)
drawSwatchInRect: (
NSRect)rect;
Availability: OpenStep
Description forthcoming.
- (void)
getComponents: (
CGFloat*)components;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (void)
getCyan: (
CGFloat*)cyan
magenta: (
CGFloat*)magenta
yellow: (
CGFloat*)yellow
black: (
CGFloat*)black
alpha: (
CGFloat*)alpha;
Availability: OpenStep
Gets the cyan, magenta,
yellow,black and alpha values
from the NSColor. Raises a
NSInternalInconsistencyException
if the NSColor is not a CYMK color
- (void)
getHue: (
CGFloat*)hue
saturation: (
CGFloat*)saturation
brightness: (
CGFloat*)brightness
alpha: (
CGFloat*)alpha;
Availability: OpenStep
Gets the hue, saturation,
brightness and alpha values
from the NSColor. Raises a
NSInternalInconsistencyException
if the NSColor is not a RGB color
- (void)
getRed: (
CGFloat*)red
green: (
CGFloat*)green
blue: (
CGFloat*)blue
alpha: (
CGFloat*)alpha;
Availability: OpenStep
Gets the red, green,
blue and alpha values from
the NSColor. Raises a
NSInternalInconsistencyException
if the NSColor is not a RGB color
- (void)
getWhite: (
CGFloat*)white
alpha: (
CGFloat*)alpha;
Availability: OpenStep
Gets the white alpha values
from the NSColor. Raises a
NSInternalInconsistencyException
if the NSColor is not a greyscale color
- (
CGFloat)
greenComponent;
Availability: OpenStep
Returns the green component. Raises a
NSInternalInconsistencyException
if NSColor is not a RGB color
- (
NSColor*)
highlightWithLevel: (
CGFloat)level;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (
CGFloat)
hueComponent;
Availability: OpenStep
Returns the hue component. Raises a
NSInternalInconsistencyException
if NSColor is not a RGB color
- (
NSString*)
localizedCatalogNameComponent;
Availability: OpenStep
Description forthcoming.
- (
NSString*)
localizedColorNameComponent;
Availability: OpenStep
Description forthcoming.
- (
CGFloat)
magentaComponent;
Availability: OpenStep
Returns the magenta component. Raises a
NSInternalInconsistencyException
if NSColor is not a CMYK color
- (
NSInteger)
numberOfComponents;
Availability: MacOS-X 10.4.0
Description forthcoming.
- (
NSImage*)
patternImage;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (
CGFloat)
redComponent;
Availability: OpenStep
Returns the red component. Raises a
NSInternalInconsistencyException
if NSColor is not a RGB color
- (
CGFloat)
saturationComponent;
Availability: OpenStep
Returns the saturation component. Raises a
NSInternalInconsistencyException
if NSColor is not a RGB color
- (void)
set;
Availability: OpenStep
Description forthcoming.
- (void)
setFill;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (void)
setStroke;
Availability: MacOS-X 10.3.0
Description forthcoming.
- (
NSColor*)
shadowWithLevel: (
CGFloat)level;
Availability: MacOS-X 10.0.0
Description forthcoming.
- (
CGFloat)
whiteComponent;
Availability: OpenStep
Returns the white component. Raises a
NSInternalInconsistencyException
if NSColor is not a grayscale color
- (void)
writeToPasteboard: (
NSPasteboard*)pasteBoard;
Availability: OpenStep
- (
CGFloat)
yellowComponent;
Availability: OpenStep
Returns the yellow component. Raises a
NSInternalInconsistencyException
if NSColor is not a RGB color
- Declared in:
- AppKit/NSColor.h
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
Method summary
- (
NSColor*)
decodeNXColor;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
Up