CPObjectCPResponder
CPView
_CPColorPanelSwatches
@implementation _CPColorPanelSwatches : CPView
Method Summary | |
---|---|
-(id) | initWithFrame:(CPRect)aFrame |
-(CPColor) | colorAtIndex:(int)index |
-(CPColorPanel) | colorPanel |
-(BOOL) | isOpaque Returns whether the receiver is completely opaque. |
-(void) | mouseDragged:(CPEvent)anEvent Notifies the receiver that the user has initiated a drag over it. |
-(void) | mouseUp:(CPEvent)anEvent Notifies the receiver that the user has released the left mouse button. |
-(void) | pasteboard:(CPPasteboard)aPasteboard provideDataForType:(CPString)aType |
-(void) | performDragOperation:(id |
-(CPArray) | saveColorList |
-(void) | setColorPanel:(CPColorPanel)panel |
-(void) | setColor:(CPColor)aColor atIndex:(int)index |
-(CPArray) | startingColorList |
Method Detail |
---|
-(id)initWithFrame:(CPRect)aFrame
aFrame
-(CPColor)colorAtIndex:(int)index
index
-(CPColorPanel)colorPanel
-(BOOL)isOpaque
NO
.-(void)mouseDragged:(CPEvent)anEvent
anEvent
- contains information about the drag-(void)mouseUp:(CPEvent)anEvent
anEvent
- contains information about the release-(void)pasteboard:(CPPasteboard)aPasteboard provideDataForType:(CPString)aType
aPasteboard
aType
-(void)performDragOperation:(id
- Parameters:
aSender
saveColorList
-(CPArray)saveColorList
setColorPanel
-(void)setColorPanel:(CPColorPanel)panel
- Parameters:
panel
setColor
-(void)setColor:(CPColor)aColor atIndex:(int)index
- Parameters:
aColor
index
startingColorList
-(CPArray)startingColorList
Created on Sat Sep 13 14:15:43 PDT 2008