![]() |
API
0.9.7
|
#import <CPColorWell.h>
Class Methods | |
(CPString) | + defaultThemeClass |
(CPDictionary) | + themeAttributes |
![]() | |
(void) | + initialize |
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 166 of file CPColorWell.j.
|
implementation |
Definition at line 251 of file CPColorWell.j.
|
implementation |
Returns the color well's current color.
Definition at line 133 of file CPColorWell.j.
|
implementation |
Definition at line 211 of file CPColorWell.j.
|
implementation |
Definition at line 224 of file CPColorWell.j.
|
implementation |
Definition at line 218 of file CPColorWell.j.
|
implementation |
Definition at line 258 of file CPColorWell.j.
|
implementation |
Definition at line 244 of file CPColorWell.j.
Definition at line 280 of file CPColorWell.j.
|
implementation |
Deactivates the color well.
Definition at line 190 of file CPColorWell.j.
|
implementation |
Definition at line 52 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 373 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 353 of file CPColorWell.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 76 of file CPColorWell.j.
|
implementation |
Returns YES
if the color well is active.
Definition at line 206 of file CPColorWell.j.
|
implementation |
Returns whether the color well is bordered
Definition at line 123 of file CPColorWell.j.
|
implementation |
Definition at line 289 of file CPColorWell.j.
|
implementation |
Definition at line 265 of file CPColorWell.j.
|
implementation |
Sets whether the color well is bordered.
Definition at line 112 of file CPColorWell.j.
|
implementation |
Sets the color well's current color.
Definition at line 141 of file CPColorWell.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 229 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 155 of file CPColorWell.j.
|
implementation |
Reimplemented from CPControl.
Definition at line 57 of file CPColorWell.j.