Class CPShadow

CPObject
    extended byCPShadow

@implementation CPShadow : CPObject

Instances of this class contain the attributes of a drop shadow used in Cappuccino.


Method Summary
+(id)shadowWithOffset:(CGSize)anOffset blurRadius:(float)aBlurRadius color:(CPColor)aColor
          Creates a shadow with the specified attributes.
-(CPString)cssString
          Returns a CSS string representation of the shadow.
-(float)shadowBlurRadius
          Returns the shadow's blur radius.
-(CPColor)shadowColor
          Returns the shadow's color.
-(CGSize)shadowOffset
          Returns the shadow's offset.

Methods inherited from class CPObject
initialize, alloc, class, instanceMethodForSelector, instancesRespondToSelector, isSubclassOfClass, load, new, setVersion, superclass, version, init, autorelease, awakeAfterUsingCoder, class, classForCoder, classForKeyedArchiver, className, copy, dealloc, description, doesNotRecognizeSelector, forwardInvocation, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableCopy, performSelector, performSelector, performSelector, release, replacementObjectForArchiver, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, retain, self, superclass


Method Detail

shadowWithOffset

+(id)shadowWithOffset:(CGSize)anOffset blurRadius:(float)aBlurRadius color:(CPColor)aColor
Creates a shadow with the specified attributes.
Parameters:
anOffset - the shadow's offset
aBlurRadius - the shadow's blur radius
aColor - the shadow's color
Returns:
the new shadow

cssString

-(CPString)cssString
Returns a CSS string representation of the shadow.

shadowBlurRadius

-(float)shadowBlurRadius
Returns the shadow's blur radius

shadowColor

-(CPColor)shadowColor
Returns the shadow's color.

shadowOffset

-(CGSize)shadowOffset
Returns the shadow's offset.

Created on Sat Sep 13 14:15:43 PDT 2008