SKUButtonLabelProperties

Conforms to:
NSCopying
Superclass:
NSObject
Declared In:

Introduction

Stores a single state for labels in buttons. The properties set on this object gets passed to the button's label for the appropriate state.



Methods

+propertiesWithText:
+propertiesWithText:andColor:andSize:andFontName:
+propertiesWithText:andColor:andSize:andFontName:andPositionOffset:andScale:

propertiesWithText:


Parameters
text

NSString value for this state object to store

Return Value

SKUButtonLabelProperties object

Discussion

Creates and returns an object with default properties for everything but the text.


propertiesWithText:andColor:andSize:andFontName:


+(SKUButtonLabelProperties*)propertiesWithText:(NSString *)text 
        andColor:(SKColor *)fontColor andSize :(CGFloat)fontSize 
        andFontName:(NSString *)fontName; 
Parameters
text

NSString value for this state object to store

fontColor

SKColor value for this state object to store

fontSize

Font size value for this state object to store

fontName

Font name value for this state object to store

Return Value

SKUButtonLabelProperties object

Discussion

Creates and returns an object with default properties for position offset and scale (CGPointZero and 1.0f respectively).


propertiesWithText:andColor:andSize:andFontName:andPositionOffset:andScale:


+(SKUButtonLabelProperties*)propertiesWithText:(NSString *)text 
        andColor:(SKColor *)fontColor andSize :(CGFloat)fontSize 
        andFontName:(NSString *)fontName andPositionOffset:(CGPoint)position 
        andScale:(CGFloat)scale; 
Parameters
text

NSString value for this state object to store

fontColor

SKColor value for this state object to store

fontSize

Font size value for this state object to store

fontName

Font name value for this state object to store

position

Position value for this state object to store

scale

Scale value for this state object to store

Return Value

SKUButtonLabelProperties object

Discussion

Creates and returns an object allowing you to set all properties explicitly.


Properties

fontColor
fontName
fontSize
position
scale
text

fontColor


@property (atomic,
    strong) SKColor* fontColor; 
Discussion

fontColor object


fontName


@property (nonatomic) NSString* fontName; 
Discussion

fontName string


fontSize


@property (nonatomic) CGFloat fontSize; 
Discussion

fontSize value


position


@property (nonatomic) CGPoint position; 
Discussion

CGPoint of positional data


scale


@property (nonatomic) CGFloat scale; 
Discussion

scale value


text


@property (nonatomic) NSString* text; 
Discussion

text string