MOOMaskedIconViewStyles Protocol Reference
| Conforms to | NSObject |
| Declared in | MOOMaskedIconView.h |
Overview
MOOMaskedIconViewStyles is a protocol that abstracts the configurable styles from MOOMaskedIconView, allowing others to reuse the same set of styles.
Tasks
Style Properties
-
colorFill color painted when the icon view is unhighlighted.
property required method -
highlightedColorFill color painted when the icon view is highlighted.
property required method -
patternA pattern composited over the icon. Created with UIColor’s colorWithPatternImage:.
property required method -
patternBlendModeThe blend mode under which the pattern is drawn. Defaults to kCGBlendModeNormal. For a list of options see “CGBlendMode”.
property required method -
overlayAn image composited over the icon after drawing’s done.
property required method -
overlayBlendModeThe blend mode under which the overlay is drawn. Defaults to kCGBlendModeNormal. For a list of options see “CGBlendMode”.
property required method -
drawingBlockA block called with the current context at the end of every drawing. Has signature
property required methodvoid (^DrawingBlock)(CGContextRef context).
Gradient Properties
-
gradientStartColorThe color filled at the gradient’s start location. Cleared by gradientColors if that’s set.
property required method -
gradientEndColorThe color filled at the gradient’s end location. Cleared by gradientColors if that’s set.
property required method -
gradientColorsAn optional array of UIColors defining the color of the gradient at each stop. Setting gradientColors clears gradientStartColor and gradientEndColor.
property required method -
gradientLocationsAn optional array of NSNumber objects defining the location of each gradient stop.
property required method -
gradientTypeStyle of gradient drawn. MOOGradientTypeLinear is the sole option right now.
property required method
Shadow Properties
-
shadowColorSpecifies shadow color.
property required method -
shadowOffsetSpecifies shadow offset.
property required method -
clipsShadowSet to YES if your icon is translucent and you don’t want the shadow showing through.
property required method -
innerShadowColorSpecifies inner shadow color.
property required method -
innerShadowOffsetSpecifies inner shadow offset.
property required method
Glow Properties
-
outerGlowColorSpecifies outer glow color.
property required method -
outerGlowRadiusSpecifies the total displacement of the outer glow in points.
property required method -
innerGlowColorSpecifies inner glow color.
property required method -
innerGlowRadiusSpecifies the total displacement of the inner glow in points.
property required method
Properties
clipsShadow
Set to YES if your icon is translucent and you don’t want the shadow showing through.
@property (nonatomic, assign) BOOL clipsShadowDeclared In
MOOMaskedIconView.hcolor
Fill color painted when the icon view is unhighlighted.
@property (nonatomic, strong) UIColor *colorDiscussion
When gradientStartColor and gradientEndColor are both non-nil, the view ignores fill color and draws a gradient.
See Also
Declared In
MOOMaskedIconView.hdrawingBlock
A block called with the current context at the end of every drawing. Has signature void (^DrawingBlock)(CGContextRef context).
@property (nonatomic, strong) DrawingBlock drawingBlockDiscussion
Useful for custom drawing.
Declared In
MOOMaskedIconView.hgradientColors
An optional array of UIColors defining the color of the gradient at each stop. Setting gradientColors clears gradientStartColor and gradientEndColor.
@property (nonatomic, strong) NSArray *gradientColorsSee Also
Declared In
MOOMaskedIconView.hgradientEndColor
The color filled at the gradient’s end location. Cleared by gradientColors if that’s set.
@property (nonatomic, strong) UIColor *gradientEndColorDiscussion
@deprecated Use gradientColors instead
Declared In
MOOMaskedIconView.hgradientLocations
An optional array of NSNumber objects defining the location of each gradient stop.
@property (nonatomic, strong) NSArray *gradientLocationsDiscussion
Must have the same number of components as gradientColors. The gradient stops are specified as values between 0 and 1. The values must be monotonically increasing. If nil, the stops are spread uniformly across the range. Defaults to nil.
See Also
Declared In
MOOMaskedIconView.hgradientStartColor
The color filled at the gradient’s start location. Cleared by gradientColors if that’s set.
@property (nonatomic, strong) UIColor *gradientStartColorDiscussion
@deprecated Use gradientColors instead
Declared In
MOOMaskedIconView.hgradientType
Style of gradient drawn. MOOGradientTypeLinear is the sole option right now.
@property (nonatomic, assign) MOOGradientType gradientTypeDeclared In
MOOMaskedIconView.hhighlightedColor
Fill color painted when the icon view is highlighted.
@property (nonatomic, strong) UIColor *highlightedColorDiscussion
When gradientStartColor and gradientEndColor are both non-nil, the view ignores fill color and draws a gradient.
See Also
Declared In
MOOMaskedIconView.hinnerGlowColor
Specifies inner glow color.
@property (nonatomic, strong) UIColor *innerGlowColorSee Also
Declared In
MOOMaskedIconView.hinnerGlowRadius
Specifies the total displacement of the inner glow in points.
@property (nonatomic, assign) CGFloat innerGlowRadiusSee Also
Declared In
MOOMaskedIconView.hinnerShadowColor
Specifies inner shadow color.
@property (nonatomic, strong) UIColor *innerShadowColorSee Also
Declared In
MOOMaskedIconView.hinnerShadowOffset
Specifies inner shadow offset.
@property (nonatomic, assign) CGSize innerShadowOffsetSee Also
Declared In
MOOMaskedIconView.houterGlowColor
Specifies outer glow color.
@property (nonatomic, strong) UIColor *outerGlowColorDiscussion
Note: Generally requires a higher opacity or greater radius than its Photoshop counterpart to achieve the same effect.
See Also
Declared In
MOOMaskedIconView.houterGlowRadius
Specifies the total displacement of the outer glow in points.
@property (nonatomic, assign) CGFloat outerGlowRadiusSee Also
Declared In
MOOMaskedIconView.hoverlay
An image composited over the icon after drawing’s done.
@property (nonatomic, strong) UIImage *overlaySee Also
Declared In
MOOMaskedIconView.hoverlayBlendMode
The blend mode under which the overlay is drawn. Defaults to kCGBlendModeNormal. For a list of options see “CGBlendMode”.
@property (nonatomic, assign) CGBlendMode overlayBlendModeSee Also
Declared In
MOOMaskedIconView.hpattern
A pattern composited over the icon. Created with UIColor’s colorWithPatternImage:.
@property (nonatomic, strong) UIColor *patternDeclared In
MOOMaskedIconView.hpatternBlendMode
The blend mode under which the pattern is drawn. Defaults to kCGBlendModeNormal. For a list of options see “CGBlendMode”.
@property (nonatomic, assign) CGBlendMode patternBlendModeDeclared In
MOOMaskedIconView.hshadowColor
Specifies shadow color.
@property (nonatomic, strong) UIColor *shadowColorSee Also
Declared In
MOOMaskedIconView.h