CPObjectCPColorPicker
@implementation CPColorPicker : CPObject
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.
Method Summary | |
---|---|
-(id) | initWithPickerMask:(int)aMask colorPanel:(CPColorPanel)aPanel Initializes the color picker. |
-(CPColorPanel) | colorPanel Returns the color panel that owns this picker. |
-(void) | setColor:(CPColor)aColor Sets the picker's color. |
-(void) | setMode:(CPColorPanelMode)mode Sets the color picker's mode. |
Method Detail |
---|
-(id)initWithPickerMask:(int)aMask colorPanel:(CPColorPanel)aPanel
aMask
- a unique unsigned int identifying your color pickeraPanel
- the color panel that owns this picker-(CPColorPanel)colorPanel
-(void)setColor:(CPColor)aColor
aColor
- the new color for the picker-(void)setMode:(CPColorPanelMode)mode
mode
- the color panel modeCreated on Sat Sep 13 14:15:43 PDT 2008