SKUButtonLabelPropertiesPackage
IntroductionStores all states for a label in buttons. The properties collected on this object get passed to the button's states. Methods
changeFontName:-(void)changeFontName:(NSString*)fontName; DiscussionChange the font of all states at once. changeFontSize:-(void)changeFontSize:(CGFloat)fontSize; DiscussionChange the size of all states at once. changeText:-(void)changeText:(NSString*)text; DiscussionAllows you to change the text for all states at once. packageWithDefaultPropertiesWithText:+(SKUButtonLabelPropertiesPackage*) packageWithDefaultPropertiesWithText:(NSString*)text; DiscussionCreates and returns a package based on SKU defaults. packageWithPropertiesForDefaultState:+(SKUButtonLabelPropertiesPackage*) packageWithPropertiesForDefaultState:(SKUButtonLabelProperties *)defaultState; DiscussionAllows 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:+(SKUButtonLabelPropertiesPackage*) packageWithPropertiesForDefaultState:(SKUButtonLabelProperties *)defaultState andPressedState:(SKUButtonLabelProperties *)pressedState; DiscussionAllows 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:+(SKUButtonLabelPropertiesPackage*) packageWithPropertiesForDefaultState:(SKUButtonLabelProperties*)defaultState andPressedState:(SKUButtonLabelProperties*)pressedState andDisabledState:(SKUButtonLabelProperties*)disabledState; DiscussionAllows 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; DiscussionAllows you to explicitly set all states. PropertiespropertiesDefaultState@property (nonatomic) SKUButtonLabelProperties* propertiesDefaultState; DiscussionLabel properties for default state. propertiesDisabledState@property (nonatomic) SKUButtonLabelProperties* propertiesDisabledState; DiscussionLabel properties for disabled state. propertiesHoveredState@property (nonatomic) SKUButtonLabelProperties* propertiesHoveredState; DiscussionLabel properties for hovered state. propertiesPressedState@property (nonatomic) SKUButtonLabelProperties* propertiesPressedState; DiscussionLabel properties for pressed state. |