SKUButtonLabelPropertiesPackage

Conforms to:
NSCopying
Superclass:
NSObject
Declared In:

Introduction

Stores all states for a label in buttons. The properties collected on this object get passed to the button's states.



Methods

-changeFontName:
-changeFontSize:
-changeText:
+packageWithDefaultPropertiesWithText:
+packageWithPropertiesForDefaultState:
+packageWithPropertiesForDefaultState:andPressedState:
+packageWithPropertiesForDefaultState:andPressedState:andDisabledState:
+packageWithPropertiesForDefaultState:andPressedState:andHoveredState:andDisabledState:

changeFontName:


-(void)changeFontName:(NSString*)fontName; 
Discussion

Change the font of all states at once.


changeFontSize:


-(void)changeFontSize:(CGFloat)fontSize; 
Discussion

Change the size of all states at once.


changeText:


-(void)changeText:(NSString*)text; 
Discussion

Allows you to change the text for all states at once.


packageWithDefaultPropertiesWithText:


Discussion

Creates and returns a package based on SKU defaults.


packageWithPropertiesForDefaultState:


Discussion

Allows you to explicitly set default state, derives the pressed state from the default by scaling it down to a relative 90% size, and derives the disabled state from default, but with a gray overlay, and derives the hovered state from the default at a skuHoverScale scale.


packageWithPropertiesForDefaultState:andPressedState:


Discussion

Allows you to explicitly set default and pressed states and derives the disabled state from default, but with a gray overlay, and derives the hovered state from the default at a skuHoverScale scale.


packageWithPropertiesForDefaultState:andPressedState:andDisabledState:


Discussion

Allows you to explicitly set default and pressed states, derives the disabled state from default, but with a gray overlay, and derives the hovered state from the default at a skuHoverScale scale.


packageWithPropertiesForDefaultState:andPressedState:andHoveredState:andDisabledState:


+(SKUButtonLabelPropertiesPackage*)
        packageWithPropertiesForDefaultState:(SKUButtonLabelProperties *)defaultState 
        andPressedState:(SKUButtonLabelProperties *)pressedState 
        andHoveredState:(SKUButtonLabelProperties *)hoveredState 
        andDisabledState:(SKUButtonLabelProperties *)disabledState; 
Discussion

Allows you to explicitly set all states.


Properties

propertiesDefaultState
propertiesDisabledState
propertiesHoveredState
propertiesPressedState

propertiesDefaultState


@property (nonatomic) SKUButtonLabelProperties* propertiesDefaultState; 
Discussion

Label properties for default state.


propertiesDisabledState


@property (nonatomic) SKUButtonLabelProperties* propertiesDisabledState; 
Discussion

Label properties for disabled state.


propertiesHoveredState


@property (nonatomic) SKUButtonLabelProperties* propertiesHoveredState; 
Discussion

Label properties for hovered state.


propertiesPressedState


@property (nonatomic) SKUButtonLabelProperties* propertiesPressedState; 
Discussion

Label properties for pressed state.