API 0.9.5
CPColorPicker Class Reference

#import <CPColorPicker.h>

Inheritance diagram for CPColorPicker:

List of all members.

Instance Methods

(CPColorPanel- colorPanel
(id) - initWithPickerMask:colorPanel:
(CPImage- provideNewButtonImage
(void) - setColor:
(void) - setMode:

Detailed Description

CPColorPicker is an abstract superclass for all color picker subclasses. If you want a particular color picker, use CPColorPanel's +setPickerMode: method. The simplest way to implement your own color picker is to create a subclass of CPColorPicker.

Definition at line 2 of file CPColorPicker.h.


Method Documentation

- (CPColorPanel) colorPanel

Returns the color panel that owns this picker

Definition at line 56 of file CPColorPicker.j.

- (id) initWithPickerMask: (int)  aMask
colorPanel: (CPColorPanel aPanel 

Initializes the color picker.

Parameters:
aMaska unique unsigned int identifying your color picker
aPanelthe color panel that owns this picker

Reimplemented in CPColorWheelColorPicker, and CPSliderColorPicker.

Definition at line 43 of file CPColorPicker.j.

- (CPImage) provideNewButtonImage

Reimplemented in CPColorWheelColorPicker, and CPSliderColorPicker.

Definition at line 66 of file CPColorPicker.j.

- (void) setColor: (CPColor aColor

Sets the picker's color.

Parameters:
aColorthe new color for the picker

Reimplemented in CPColorWheelColorPicker, and CPSliderColorPicker.

Definition at line 84 of file CPColorPicker.j.

- (void) setMode: (CPColorPanelMode)  mode

Sets the color picker's mode.

Parameters:
modethe color panel mode

Definition at line 75 of file CPColorPicker.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines