Up
Authors
- Scott Christley (
scottc@net-community.com
)
-
- Felipe A. Rodriguez (
far@ix.netcom.com
)
-
Control for selecting and display a single color value.
Copyright: (C) 1996 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSColorWell.h
- Conforms to:
- NSCoding
Availability: OpenStep
Description forthcoming.
Instance Variables
Method summary
- (void)
activate: (BOOL)exclusive;
Availability: OpenStep
Activates the NSColorWell and displays the NSColorPanel with the current NSColorWell's color. The NSColorWell can take color from the NSColorPanel. If exclusive is YES
other NSColorWells are desacivated (through notifications).
See Also: -deactivate
- (
NSColor*)
color;
Availability: OpenStep
Returns the current NSColor of the NSColorWell.
See Also: -setColor:
- (void)
deactivate;
Availability: OpenStep
Desactivates the NSColorWell and marks self for display. It is usally call from an observer, when another NSColorWell is activate.
See Also: -activate:
- (void)
drawWellInside: (NSRect)insideRect;
Availability: OpenStep
- (void)
encodeWithCoder: (NSCoder*)aCoder;
Availability: OpenStep
Description forthcoming.
- (id)
initWithCoder: (NSCoder*)aDecoder;
Availability: OpenStep
Description forthcoming.
- (BOOL)
isActive;
Availability: OpenStep
Returns whether the NSColorWell is active. By default a NSColorWell is not active.
See Also: -activate:
-deactivate
- (BOOL)
isBordered;
Availability: OpenStep
Returns whether the NSColorWell has border. By default a NSColorWell has border.
See Also: -setBordered:
- (void)
setBordered: (BOOL)bordered;
Availability: OpenStep
Sets whether the NSColorWell has border and marks self for display. By default a NSColorWell has border.
See Also: -isBordered
- (void)
setColor: (
NSColor*)color;
Availability: OpenStep
Sets the NSColorWell to color. Sets the NSColorPanel if active, notify the target that the color changed and marks self for display.
See Also: -color
- (void)
takeColorFrom: (id)sender;
Availability: OpenStep
Sets the NSColorWell's color to the sender color.
See Also: -setColor:
Instance Variables for NSColorWell Class
@protected SEL _action;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
@protected BOOL _is_active;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
@protected BOOL _is_bordered;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
@protected id _target;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
@protected NSColor* _the_color;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
@protected NSRect _wellRect;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Up