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
Deactivates 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 and marks
self for display.
Sets the NSColorPanel if
active.
Does NOT notify target of
color change.
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;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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 NSPoint _mouseDownPoint;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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