![]() |
API 0.9.5
|
#import <CPColorPicker.h>
Instance Methods | |
(CPColorPanel) | - colorPanel |
(id) | - initWithPickerMask:colorPanel: |
(CPImage) | - provideNewButtonImage |
(void) | - setColor: |
(void) | - setMode: |
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.
- (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.
aMask | a unique unsigned int identifying your color picker |
aPanel | the 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.
aColor | the 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.
mode | the color panel mode |
Definition at line 75 of file CPColorPicker.j.