#import <CPColorPanel.h>
CPColorPanel provides a reusable panel that can be used displayed on screen to prompt the user for a color selection. To obtain the panel, call the +sharedColorPanel
method.
Definition at line 2 of file CPColorPanel.h.
|
implementation |
Returns the current target action.
Definition at line 215 of file CPColorPanel.j.
|
implementation |
Returns the panel's currently selected color.
Definition at line 174 of file CPColorPanel.j.
|
implementation |
Initializes the receiver
Reimplemented from CPWindow.
Definition at line 115 of file CPColorPanel.j.
|
implementation |
Returns the color panel's current display mode.
Definition at line 263 of file CPColorPanel.j.
|
implementation |
Definition at line 179 of file CPColorPanel.j.
|
implementation |
Makes the receiver the front most window in the screen ordering.
aSender | the object that requested this |
Reimplemented from CPWindow.
Definition at line 268 of file CPColorPanel.j.
|
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 85 of file CPColorPanel.j.
|
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 207 of file CPColorPanel.j.
|
implementation |
Sets the color of the panel, and updates the picker. Also posts a CPColorPanelDidChangeNotification
.
Definition at line 140 of file CPColorPanel.j.
Sets the selected color of the panel and optionally updates the picker.
bool | whether or not to update the picker |
Definition at line 163 of file CPColorPanel.j.
|
implementation |
Sets the mode (look) of the color panel.
mode | the mode in which to display the color panel |
Definition at line 224 of file CPColorPanel.j.
|
implementation |
Definition at line 394 of file CPColorPanel.j.
|
implementation |
Sets the mode for the shared color panel.
mode | the mode to which the color panel will be set |
Definition at line 105 of file CPColorPanel.j.
|
implementation |
Sets the target for the color panel. Messages are sent to the target when colors are selected in the panel.
Definition at line 188 of file CPColorPanel.j.
|
implementation |
Returns (and if necessary, creates) the shared color panel.
Definition at line 93 of file CPColorPanel.j.
|
implementation |
Returns the current target. The target receives messages when colors are selected in the panel.
Definition at line 197 of file CPColorPanel.j.