CCSprite9Slice Class Reference
| Inherits from | CCSprite : CCNode : CCResponder : NSObject |
| Declared in | CCSprite9Slice.h |
Overview
CCSprite9Slice will render a single image as nine quads, keeping the margins fixed, and stretching the center quads, to fit the content size. See CCSprite for usage.
Tasks
Accessing Margin Attributes
-
marginproperty -
marginLeftproperty -
marginRightproperty -
marginTopproperty -
marginBottomproperty
Properties
margin
Sets the margin as a normalized percentage of the total image size. If set to 0.25, 25% of the left, right, top and bottom of the image, will be unstratched.
@property (nonatomic, assign) float marginDeclared In
CCSprite9Slice.hmarginBottom
Sets the bottom margin exclusively.
@property (nonatomic, assign) float marginBottomDeclared In
CCSprite9Slice.hmarginLeft
Sets the left margin exclusively.
@property (nonatomic, assign) float marginLeftDeclared In
CCSprite9Slice.hmarginRight
Sets the right margin exclusively.
@property (nonatomic, assign) float marginRightDeclared In
CCSprite9Slice.hmarginTop
Sets the top margin exclusively.
@property (nonatomic, assign) float marginTopDeclared In
CCSprite9Slice.h