PXDeclaration Class Reference
| Inherits from | NSObject |
| Declared in | PXDeclaration.h |
Overview
PXDeclaration represents a single property/value pair in a CSS rule set. A declaration consists of a property name and a property value. However, due to the nature of Pixate’s 2-pass parsing, the property value in these instances is actually an array of lexemes. As such, a number of convenience methods are provided to convert the lexemes to a concrete value type.
Tasks
-
– initWithName:Initializes a newly allocated PXDeclaration using the specified property name
-
– initWithName:value:Initializes a newly allocated PXDeclaration using the specified property name and value. The value will be tokenized to populate the lexemes property.
-
– setSource:filename:lexemes:Set source, filename, and lexemes associated with this declaration
-
– affineTransformValueConvert the declaration value to a CGAffineTransformation using the SVG transform syntax
-
– animationInfoListConvert the declaration value to a list of animation infos, each delimited by a comma
-
– transitionInfoListConvert the declaration value to a list of transition infos, each delimited by a comma
-
– animationDirectionListConvert the declaration value to a list of animation directions, each delimited by a comma
-
– animationFillModeListConvert the declaration value to a list of animation file modes, each delimited by a comma
-
– animationPlayStateListConvert the declaration value to a list of animation play states, each delimited by a comma
-
– animationTimingFunctionListConvert the declaration value to a list of animation timing functions, each delimited by a comma
-
– booleanValueConvert the declaration value to a boolean value
-
– borderValueConvert the delcaration value to border settings
-
– borderRadiiListConvert the declaration value to a list of radii, each represented by a CGSize
-
– borderStyleValueConvert the declaration value to a border style
-
– borderStyleListConvert the decalration value to a list of border styles. This allows 1 = 4 values, similar to padding
-
– cacheStylesTypeValueConvert the declaration value to a PXCacheStylesType value
-
– colorValueConvert the declaration value to a color value
-
– floatValueConvert the declaration value to a float value
-
– floatListValueConvert the declaration value to a list of floats, each delimited by a comma
-
– insetsValueConvert the declaration value to a UIEdgeInsets value
-
– lengthValueConvert the declaration value to a PXDimension length value
-
– lineBreakModeValueConvert the declaration value to a line break mode enumeration value
-
– nameListValueConvert the declaration value to a list of names, each delimited by a comma
-
– offsetsValueConvert the declaration value to a offsets value
-
– paintListConvert the declaration value to a list of paints. This allows 1 - 4 paints, similar to padding
-
– paintValueConvert the declaration value to a paint value
-
– parseErrorDestinationValueConvert the declaration value to a parse error destination value
-
– secondsValueConvert the declaration value to seconds
-
– secondsListValueConvert the declaration value to a list of seconds, each delimited by a comma
-
– sizeValueConvert the declaration value to a size value
-
– shadowValueConvert the declaration value to a shadow value
-
– stringValueConvert the declaration value to a string value
-
– textAlignmentValueConvert the declaration value to a text alignment enumeration value
-
– textBorderStyleValueConvert the declaration value to a border style enumeration value
-
– transformString:Treat the string value of this declaration as a text-transform value. Apply the text transform to the specified string and return the result
-
– letterSpacingValueConvert the declaration value to a letter spacing value.
-
– URLValueConvert the declaration value to a URL
Instance Methods
URLValue
Convert the declaration value to a URL
- (NSURL *)URLValueDiscussion
Convert the declaration value to a URL
Declared In
PXDeclaration.haffineTransformValue
Convert the declaration value to a CGAffineTransformation using the SVG transform syntax
- (CGAffineTransform)affineTransformValueDiscussion
Convert the declaration value to a CGAffineTransformation using the SVG transform syntax
Declared In
PXDeclaration.hanimationDirectionList
Convert the declaration value to a list of animation directions, each delimited by a comma
- (NSArray *)animationDirectionListDiscussion
Convert the declaration value to a list of animation directions, each delimited by a comma
Declared In
PXDeclaration.hanimationFillModeList
Convert the declaration value to a list of animation file modes, each delimited by a comma
- (NSArray *)animationFillModeListDiscussion
Convert the declaration value to a list of animation file modes, each delimited by a comma
Declared In
PXDeclaration.hanimationInfoList
Convert the declaration value to a list of animation infos, each delimited by a comma
- (NSArray *)animationInfoListDiscussion
Convert the declaration value to a list of animation infos, each delimited by a comma
Declared In
PXDeclaration.hanimationPlayStateList
Convert the declaration value to a list of animation play states, each delimited by a comma
- (NSArray *)animationPlayStateListDiscussion
Convert the declaration value to a list of animation play states, each delimited by a comma
Declared In
PXDeclaration.hanimationTimingFunctionList
Convert the declaration value to a list of animation timing functions, each delimited by a comma
- (NSArray *)animationTimingFunctionListDiscussion
Convert the declaration value to a list of animation timing functions, each delimited by a comma
Declared In
PXDeclaration.hbooleanValue
Convert the declaration value to a boolean value
- (BOOL)booleanValueDiscussion
Convert the declaration value to a boolean value
Declared In
PXDeclaration.hborderRadiiList
Convert the declaration value to a list of radii, each represented by a CGSize
- (NSArray *)borderRadiiListDiscussion
Convert the declaration value to a list of radii, each represented by a CGSize
Declared In
PXDeclaration.hborderStyleList
Convert the decalration value to a list of border styles. This allows 1 = 4 values, similar to padding
- (NSArray *)borderStyleListDiscussion
Convert the decalration value to a list of border styles. This allows 1 = 4 values, similar to padding
Declared In
PXDeclaration.hborderStyleValue
Convert the declaration value to a border style
- (PXBorderStyle)borderStyleValueDiscussion
Convert the declaration value to a border style
Declared In
PXDeclaration.hborderValue
Convert the delcaration value to border settings
- (PXBorderInfo *)borderValueDiscussion
Convert the delcaration value to border settings
Declared In
PXDeclaration.hcacheStylesTypeValue
Convert the declaration value to a PXCacheStylesType value
- (PXCacheStylesType)cacheStylesTypeValueDiscussion
Convert the declaration value to a PXCacheStylesType value
Declared In
PXDeclaration.hcolorValue
Convert the declaration value to a color value
- (UIColor *)colorValueDiscussion
Convert the declaration value to a color value
Declared In
PXDeclaration.hfloatListValue
Convert the declaration value to a list of floats, each delimited by a comma
- (NSArray *)floatListValueDiscussion
Convert the declaration value to a list of floats, each delimited by a comma
Declared In
PXDeclaration.hfloatValue
Convert the declaration value to a float value
- (CGFloat)floatValueDiscussion
Convert the declaration value to a float value
Declared In
PXDeclaration.hinitWithName:
Initializes a newly allocated PXDeclaration using the specified property name
- (id)initWithName:(NSString *)nameParameters
- name
The property name for this declaration
Discussion
Initializes a newly allocated PXDeclaration using the specified property name
Declared In
PXDeclaration.hinitWithName:value:
Initializes a newly allocated PXDeclaration using the specified property name and value. The value will be tokenized to populate the lexemes property.
- (id)initWithName:(NSString *)name value:(NSString *)valueParameters
- name
The property name
- value
The property value
Discussion
Initializes a newly allocated PXDeclaration using the specified property name and value. The value will be tokenized to populate the lexemes property.
Declared In
PXDeclaration.hinsetsValue
Convert the declaration value to a UIEdgeInsets value
- (UIEdgeInsets)insetsValueDiscussion
Convert the declaration value to a UIEdgeInsets value
Declared In
PXDeclaration.hlengthValue
Convert the declaration value to a PXDimension length value
- (PXDimension *)lengthValueDiscussion
Convert the declaration value to a PXDimension length value
Declared In
PXDeclaration.hletterSpacingValue
Convert the declaration value to a letter spacing value.
- (PXDimension *)letterSpacingValueDiscussion
Convert the declaration value to a letter spacing value.
Declared In
PXDeclaration.hlineBreakModeValue
Convert the declaration value to a line break mode enumeration value
- (NSLineBreakMode)lineBreakModeValueDiscussion
Convert the declaration value to a line break mode enumeration value
Declared In
PXDeclaration.hnameListValue
Convert the declaration value to a list of names, each delimited by a comma
- (NSArray *)nameListValueDiscussion
Convert the declaration value to a list of names, each delimited by a comma
Declared In
PXDeclaration.hoffsetsValue
Convert the declaration value to a offsets value
- (PXOffsets *)offsetsValueDiscussion
Convert the declaration value to a offsets value
Declared In
PXDeclaration.hpaintList
Convert the declaration value to a list of paints. This allows 1 - 4 paints, similar to padding
- (NSArray *)paintListDiscussion
Convert the declaration value to a list of paints. This allows 1 - 4 paints, similar to padding
Declared In
PXDeclaration.hpaintValue
Convert the declaration value to a paint value
- (id<PXPaint>)paintValueDiscussion
Convert the declaration value to a paint value
Declared In
PXDeclaration.hparseErrorDestinationValue
Convert the declaration value to a parse error destination value
- (PXParseErrorDestination)parseErrorDestinationValueDiscussion
Convert the declaration value to a parse error destination value
Declared In
PXDeclaration.hsecondsListValue
Convert the declaration value to a list of seconds, each delimited by a comma
- (NSArray *)secondsListValueDiscussion
Convert the declaration value to a list of seconds, each delimited by a comma
Declared In
PXDeclaration.hsecondsValue
Convert the declaration value to seconds
- (CGFloat)secondsValueDiscussion
Convert the declaration value to seconds
Declared In
PXDeclaration.hsetSource:filename:lexemes:
Set source, filename, and lexemes associated with this declaration
- (void)setSource:(NSString *)source filename:(NSString *)filename lexemes:(NSArray *)lexemesParameters
- source
The declaration’s source
- filename
The name of the file containing this declaration
- lexemes
The value of this declaration as lexemes
Discussion
Set source, filename, and lexemes associated with this declaration
Declared In
PXDeclaration.hshadowValue
Convert the declaration value to a shadow value
- (PXShadow *)shadowValueDiscussion
Convert the declaration value to a shadow value
Declared In
PXDeclaration.hsizeValue
Convert the declaration value to a size value
- (CGSize)sizeValueDiscussion
Convert the declaration value to a size value
Declared In
PXDeclaration.hstringValue
Convert the declaration value to a string value
- (NSString *)stringValueDiscussion
Convert the declaration value to a string value
Declared In
PXDeclaration.htextAlignmentValue
Convert the declaration value to a text alignment enumeration value
- (NSTextAlignment)textAlignmentValueDiscussion
Convert the declaration value to a text alignment enumeration value
Declared In
PXDeclaration.htextBorderStyleValue
Convert the declaration value to a border style enumeration value
- (UITextBorderStyle)textBorderStyleValueDiscussion
Convert the declaration value to a border style enumeration value
Declared In
PXDeclaration.htransformString:
Treat the string value of this declaration as a text-transform value. Apply the text transform to the specified string and return the result
- (NSString *)transformString:(NSString *)valueParameters
- value
The string to transform
Discussion
Treat the string value of this declaration as a text-transform value. Apply the text transform to the specified string and return the result
Declared In
PXDeclaration.h