Public Member Functions | |
(id) | - init [implementation] |
(void) | - setColor: [implementation] |
(void) | - setColor:updatePicker: [implementation] |
(CPColor) | - color [implementation] |
(float) | - opacity [implementation] |
(void) | - setTarget: [implementation] |
(id) | - target [implementation] |
(void) | - setAction: [implementation] |
(selector) | - action [implementation] |
(void) | - setMode: [implementation] |
(CPColorPanelMode) | - mode [implementation] |
(void) | - orderFront: [implementation] |
(void) | - setOpacity: [implementation] |
Static Public Member Functions | |
(void) | + provideColorPickerClass: [implementation] |
(CPColorPanel) | + sharedColorPanel [implementation] |
(void) | + setPickerMode: [implementation] |
sharedColorPanel
method.
Definition at line 63 of file CPColorPanel.j.
- (selector) action | [implementation] |
Returns the current target action.
Definition at line 217 of file CPColorPanel.j.
- (CPColor) color | [implementation] |
Returns the panel's currently selected color.
Definition at line 176 of file CPColorPanel.j.
- (id) init | [implementation] |
Definition at line 117 of file CPColorPanel.j.
- (CPColorPanelMode) mode | [implementation] |
Returns the color panel's current display mode.
Definition at line 265 of file CPColorPanel.j.
- (float) opacity | [implementation] |
Definition at line 181 of file CPColorPanel.j.
- (void) orderFront: | (id) | aSender | [implementation] |
Definition at line 270 of file CPColorPanel.j.
+ (void) provideColorPickerClass: | (Class) | aColorPickerSubclass | [implementation] |
A list of color pickers is collected here, and any color panel created will contain any picker in this list up to this point. In other words, call before creating a color panel.
Definition at line 87 of file CPColorPanel.j.
- (void) setAction: | (selector) | anAction | [implementation] |
Sets the action that gets sent to the target. This action is sent whenever a color is selected in the panel.
anAction | the action that will be sent |
Definition at line 209 of file CPColorPanel.j.
- (void) setColor: | (CPColor) | aColor | [implementation] |
Sets the color of the panel, and updates the picker. Also posts a CPColorPanelDidChangeNotification
.
Definition at line 142 of file CPColorPanel.j.
- (void) setColor: | (CPColor) | aColor | ||
updatePicker: | (BOOL) | bool | ||
[implementation] |
Sets the selected color of the panel and optionally updates the picker.
bool | whether or not to update the picker |
Definition at line 165 of file CPColorPanel.j.
- (void) setMode: | (CPColorPanelMode) | mode | [implementation] |
Sets the mode (look) of the color panel.
mode | the mode in which to display the color panel |
Definition at line 226 of file CPColorPanel.j.
- (void) setOpacity: | (id) | sender | [implementation] |
Definition at line 395 of file CPColorPanel.j.
+ (void) setPickerMode: | (CPColorPanelMode) | mode | [implementation] |
Sets the mode for the shared color panel.
mode | the mode to which the color panel will be set |
Definition at line 107 of file CPColorPanel.j.
- (void) setTarget: | (id) | aTarget | [implementation] |
Sets the target for the color panel. Messages are sent to the target when colors are selected in the panel.
Definition at line 190 of file CPColorPanel.j.
+ (CPColorPanel) sharedColorPanel | [implementation] |
Returns (and if necessary, creates) the shared color panel.
Definition at line 95 of file CPColorPanel.j.
- (id) target | [implementation] |
Returns the current target. The target receives messages when colors are selected in the panel.
Definition at line 199 of file CPColorPanel.j.