CPColorPanel Class Reference
[AppKit]

List of all members.

Public Member Functions

(selector- action [implementation]
(CPColor- color [implementation]
(id) - init [implementation]
(CPColorPanelMode) - mode [implementation]
(float) - opacity [implementation]
(void) - orderFront: [implementation]
(void) - setAction: [implementation]
(void) - setColor: [implementation]
(void) - setColor:updatePicker: [implementation]
(void) - setMode: [implementation]
(void) - setOpacity: [implementation]
(void) - setTarget: [implementation]
(id) - target [implementation]

Static Public Member Functions

(void) + provideColorPickerClass: [implementation]
(void) + setPickerMode: [implementation]
(CPColorPanel+ sharedColorPanel [implementation]

Detailed Description

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 63 of file CPColorPanel.j.


Member Function Documentation

- (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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.


The documentation for this class was generated from the following file:

Generated on Fri Apr 9 11:04:21 2010 for Cappuccino API by  doxygen 1.6.1