|
Nimbus
0.9.3 - Nimbus is proudly hosted on Github
An iOS framework whose growth is bounded by O(documentation).
|
A simple translator from raw CSS rulesets to Objective-C values.
Objective-C values are created on-demand and cached. These ruleset objects are cached by NIStylesheet for a given CSS scope. When a memory warning is received, all ruleset objects are removed from every stylesheet.
Definition at line 28 of file NICSSRuleset.h.
Methods | |
| (void) | - addEntriesFromDictionary: |
| (BOOL) | - hasTextColor |
| (UIColor *) | - textColor |
| (BOOL) | - hasTextAlignment |
| (UITextAlignment) | - textAlignment |
| (BOOL) | - hasFont |
| (UIFont *) | - font |
| (BOOL) | - hasTextShadowColor |
| (UIColor *) | - textShadowColor |
| (BOOL) | - hasTextShadowOffset |
| (CGSize) | - textShadowOffset |
| (BOOL) | - hasLineBreakMode |
| (UILineBreakMode) | - lineBreakMode |
| (BOOL) | - hasNumberOfLines |
| (NSInteger) | - numberOfLines |
| (BOOL) | - hasMinimumFontSize |
| (CGFloat) | - minimumFontSize |
| (BOOL) | - hasAdjustsFontSize |
| (BOOL) | - adjustsFontSize |
| (BOOL) | - hasBaselineAdjustment |
| (UIBaselineAdjustment) | - baselineAdjustment |
| (BOOL) | - hasOpacity |
| (CGFloat) | - opacity |
| (BOOL) | - hasBackgroundColor |
| (UIColor *) | - backgroundColor |
| (BOOL) | - hasBorderRadius |
| (CGFloat) | - borderRadius |
| (BOOL) | - hasBorderColor |
| (UIColor *) | - borderColor |
| (BOOL) | - hasBorderWidth |
| (CGFloat) | - borderWidth |
| (BOOL) | - hasTintColor |
| (UIColor *) | - tintColor |
| - (void) addEntriesFromDictionary: | (NSDictionary *) | dictionary |
Adds a raw CSS ruleset to this ruleset object.
Definition at line 106 of file NICSSRuleset.m.
| - (BOOL) hasTextColor |
Returns YES if the ruleset has a 'color' property.
Definition at line 118 of file NICSSRuleset.m.
| - (UIColor *) textColor |
Returns the text color.
Definition at line 124 of file NICSSRuleset.m.
| - (BOOL) hasTextAlignment |
Returns YES if the ruleset has a 'text-align' property.
Definition at line 136 of file NICSSRuleset.m.
| - (UITextAlignment) textAlignment |
Returns the text alignment.
Definition at line 142 of file NICSSRuleset.m.
| - (BOOL) hasFont |
Returns YES if the ruleset has a value for any of the following properties: font, font-family, font-size, font-style, font-weight.
Note: You can't specify bold or italic with a font-family due to the way fonts are constructed. You also can't specify a font that is both bold and italic. In order to do either of these things you must specify the font-family that corresponds to the bold or italic version of your font.
Definition at line 153 of file NICSSRuleset.m.
| - (UIFont *) font |
Returns the font.
Definition at line 163 of file NICSSRuleset.m.
| - (BOOL) hasTextShadowColor |
Returns YES if the ruleset has a 'text-shadow' property.
Definition at line 269 of file NICSSRuleset.m.
| - (UIColor *) textShadowColor |
Returns the text shadow color.
Definition at line 275 of file NICSSRuleset.m.
| - (BOOL) hasTextShadowOffset |
Returns YES if the ruleset has a 'text-shadow' property.
Definition at line 287 of file NICSSRuleset.m.
| - (CGSize) textShadowOffset |
Returns the text shadow offset.
Definition at line 293 of file NICSSRuleset.m.
| - (BOOL) hasLineBreakMode |
Returns YES if the ruleset has an '-ios-line-break-mode' property.
Definition at line 314 of file NICSSRuleset.m.
| - (UILineBreakMode) lineBreakMode |
Returns the line break mode.
Definition at line 320 of file NICSSRuleset.m.
| - (BOOL) hasNumberOfLines |
Returns YES if the ruleset has an '-ios-number-of-lines' property.
Definition at line 348 of file NICSSRuleset.m.
| - (NSInteger) numberOfLines |
Returns the number of lines.
Definition at line 354 of file NICSSRuleset.m.
| - (BOOL) hasMinimumFontSize |
Returns YES if the ruleset has an '-ios-minimum-font-size' property.
Definition at line 367 of file NICSSRuleset.m.
| - (CGFloat) minimumFontSize |
Returns the minimum font size.
Definition at line 373 of file NICSSRuleset.m.
| - (BOOL) hasAdjustsFontSize |
Returns YES if the ruleset has an '-ios-adjusts-font-size' property.
Definition at line 386 of file NICSSRuleset.m.
| - (BOOL) adjustsFontSize |
Returns the adjustsFontSize value.
Definition at line 392 of file NICSSRuleset.m.
| - (BOOL) hasBaselineAdjustment |
Returns YES if the ruleset has an '-ios-baseline-adjustment' property.
Definition at line 405 of file NICSSRuleset.m.
| - (UIBaselineAdjustment) baselineAdjustment |
Returns the baseline adjustment.
Definition at line 411 of file NICSSRuleset.m.
| - (BOOL) hasOpacity |
Returns YES if the ruleset has an 'opacity' property.
Definition at line 431 of file NICSSRuleset.m.
| - (CGFloat) opacity |
Returns the opacity.
Definition at line 437 of file NICSSRuleset.m.
| - (BOOL) hasBackgroundColor |
Returns YES if the ruleset has a 'background-color' property.
Definition at line 450 of file NICSSRuleset.m.
| - (UIColor *) backgroundColor |
Returns the background color.
Definition at line 456 of file NICSSRuleset.m.
| - (BOOL) hasBorderRadius |
Returns YES if the ruleset has a 'border-radius' property.
Definition at line 468 of file NICSSRuleset.m.
| - (CGFloat) borderRadius |
Returns the border radius.
Definition at line 474 of file NICSSRuleset.m.
| - (BOOL) hasBorderColor |
Returns YES if the ruleset has a 'border' or 'border-color' property.
Definition at line 487 of file NICSSRuleset.m.
| - (UIColor *) borderColor |
Returns the border color.
Definition at line 548 of file NICSSRuleset.m.
| - (BOOL) hasBorderWidth |
Returns YES if the ruleset has a 'border' or 'border-width' property.
Definition at line 557 of file NICSSRuleset.m.
| - (CGFloat) borderWidth |
Returns the border width.
Definition at line 564 of file NICSSRuleset.m.
| - (BOOL) hasTintColor |
Returns YES if the ruleset has an '-ios-tint-color' property.
Definition at line 573 of file NICSSRuleset.m.
| - (UIColor *) tintColor |
Returns the tint color.
Definition at line 579 of file NICSSRuleset.m.