#import <CPColorWell.h>
Inheritance diagram for CPColorWell:Class Methods | |
| (CPString) | + defaultThemeClass |
| (CPDictionary) | + themeAttributes |
Class Methods inherited from CPControl | |
| (void) | + initialize |
Class Methods inherited from CPView | |
| (Class) | + animatorClass |
| (CAAnimation) | + defaultAnimationForKey: |
| (CPMenu) | + defaultMenu |
| (BOOL) | + isHighDPIDrawingEnabled |
| (CPSet) | + keyPathsForValuesAffectingBounds |
| (CPSet) | + keyPathsForValuesAffectingFrame |
| (void) | + setHighDPIDrawingEnabled: |
CPColorWell is a CPControl for selecting and displaying a single color value. An example of a CPColorWell object (or simply color well) is found in CPColorPanel, which uses a color well to display the current color selection.
An application can have one or more active CPColorWells. You can activate multiple CPColorWells by invoking the -activate: method with NO as its argument. When a mouse-down event occurs on an CPColorWell's border, it becomes the only active color well. When a color well becomes active, it brings up the color panel also.
Definition at line 2 of file CPColorWell.h.
|
implementation |
Activates the color well, displays the color panel, and makes the panel's current color the same as its own. If exclusive is YES, deactivates any other CPColorWells. NO, keeps them active.
| shouldBeExclusive | whether other color wells should be deactivated. |
Definition at line 179 of file CPColorWell.j.
|
implementation |
Definition at line 266 of file CPColorWell.j.
|
implementation |
Returns the color well's current color.
Definition at line 146 of file CPColorWell.j.
|
implementation |
Definition at line 224 of file CPColorWell.j.
|
implementation |
Definition at line 237 of file CPColorWell.j.
|
implementation |
Definition at line 231 of file CPColorWell.j.
|
implementation |
Definition at line 273 of file CPColorWell.j.
|
implementation |
Definition at line 259 of file CPColorWell.j.
Reimplemented from CPView.
Definition at line 295 of file CPColorWell.j.
|
implementation |
Deactivates the color well.
Definition at line 203 of file CPColorWell.j.
|
implementation |
Reimplemented from CPView.
Definition at line 51 of file CPColorWell.j.
|
implementation |
Archives this button into the provided coder.
| aCoder | the coder to which the color well's instance data will be written. |
Reimplemented from CPControl.
Provided by category CPColorWell(CPCoding).
Definition at line 408 of file CPColorWell.j.
|
implementation |
Initializes the color well by unarchiving data from aCoder.
| aCoder | the coder containing the archived CPColorWell. |
Reimplemented from CPControl.
Provided by category CPColorWell(CPCoding).
Definition at line 390 of file CPColorWell.j.
|
implementation |
Initializes the receiver for usage with the specified bounding rectangle
Reimplemented from CPControl.
Definition at line 75 of file CPColorWell.j.
|
implementation |
Returns YES if the color well is active.
Definition at line 219 of file CPColorWell.j.
|
implementation |
Returns whether the color well is bordered
Definition at line 136 of file CPColorWell.j.
|
implementation |
Reimplemented from CPView.
Definition at line 304 of file CPColorWell.j.
|
implementation |
Reimplemented from CPView.
Definition at line 280 of file CPColorWell.j.
|
implementation |
Sets whether the color well is bordered.
Definition at line 125 of file CPColorWell.j.
|
implementation |
Sets the color well's current color.
Definition at line 154 of file CPColorWell.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 242 of file CPColorWell.j.
|
implementation |
Changes the color of the well to that of aSender.
| aSender | the object from which to retrieve the color |
Definition at line 168 of file CPColorWell.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 56 of file CPColorWell.j.