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

Instance Methods

URLValue

Convert the declaration value to a URL

- (NSURL *)URLValue

Discussion

Convert the declaration value to a URL

Declared In

PXDeclaration.h

affineTransformValue

Convert the declaration value to a CGAffineTransformation using the SVG transform syntax

- (CGAffineTransform)affineTransformValue

Discussion

Convert the declaration value to a CGAffineTransformation using the SVG transform syntax

Declared In

PXDeclaration.h

animationDirectionList

Convert the declaration value to a list of animation directions, each delimited by a comma

- (NSArray *)animationDirectionList

Discussion

Convert the declaration value to a list of animation directions, each delimited by a comma

Declared In

PXDeclaration.h

animationFillModeList

Convert the declaration value to a list of animation file modes, each delimited by a comma

- (NSArray *)animationFillModeList

Discussion

Convert the declaration value to a list of animation file modes, each delimited by a comma

Declared In

PXDeclaration.h

animationInfoList

Convert the declaration value to a list of animation infos, each delimited by a comma

- (NSArray *)animationInfoList

Discussion

Convert the declaration value to a list of animation infos, each delimited by a comma

Declared In

PXDeclaration.h

animationPlayStateList

Convert the declaration value to a list of animation play states, each delimited by a comma

- (NSArray *)animationPlayStateList

Discussion

Convert the declaration value to a list of animation play states, each delimited by a comma

Declared In

PXDeclaration.h

animationTimingFunctionList

Convert the declaration value to a list of animation timing functions, each delimited by a comma

- (NSArray *)animationTimingFunctionList

Discussion

Convert the declaration value to a list of animation timing functions, each delimited by a comma

Declared In

PXDeclaration.h

booleanValue

Convert the declaration value to a boolean value

- (BOOL)booleanValue

Discussion

Convert the declaration value to a boolean value

Declared In

PXDeclaration.h

borderRadiiList

Convert the declaration value to a list of radii, each represented by a CGSize

- (NSArray *)borderRadiiList

Discussion

Convert the declaration value to a list of radii, each represented by a CGSize

Declared In

PXDeclaration.h

borderStyleList

Convert the decalration value to a list of border styles. This allows 1 = 4 values, similar to padding

- (NSArray *)borderStyleList

Discussion

Convert the decalration value to a list of border styles. This allows 1 = 4 values, similar to padding

Declared In

PXDeclaration.h

borderStyleValue

Convert the declaration value to a border style

- (PXBorderStyle)borderStyleValue

Discussion

Convert the declaration value to a border style

Declared In

PXDeclaration.h

borderValue

Convert the delcaration value to border settings

- (PXBorderInfo *)borderValue

Discussion

Convert the delcaration value to border settings

Declared In

PXDeclaration.h

cacheStylesTypeValue

Convert the declaration value to a PXCacheStylesType value

- (PXCacheStylesType)cacheStylesTypeValue

Discussion

Convert the declaration value to a PXCacheStylesType value

Declared In

PXDeclaration.h

colorValue

Convert the declaration value to a color value

- (UIColor *)colorValue

Discussion

Convert the declaration value to a color value

Declared In

PXDeclaration.h

floatListValue

Convert the declaration value to a list of floats, each delimited by a comma

- (NSArray *)floatListValue

Discussion

Convert the declaration value to a list of floats, each delimited by a comma

Declared In

PXDeclaration.h

floatValue

Convert the declaration value to a float value

- (CGFloat)floatValue

Discussion

Convert the declaration value to a float value

Declared In

PXDeclaration.h

initWithName:

Initializes a newly allocated PXDeclaration using the specified property name

- (id)initWithName:(NSString *)name

Parameters

name

The property name for this declaration

Discussion

Initializes a newly allocated PXDeclaration using the specified property name

Declared In

PXDeclaration.h

initWithName: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 *)value

Parameters

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.h

insetsValue

Convert the declaration value to a UIEdgeInsets value

- (UIEdgeInsets)insetsValue

Discussion

Convert the declaration value to a UIEdgeInsets value

Declared In

PXDeclaration.h

lengthValue

Convert the declaration value to a PXDimension length value

- (PXDimension *)lengthValue

Discussion

Convert the declaration value to a PXDimension length value

Declared In

PXDeclaration.h

letterSpacingValue

Convert the declaration value to a letter spacing value.

- (PXDimension *)letterSpacingValue

Discussion

Convert the declaration value to a letter spacing value.

Declared In

PXDeclaration.h

lineBreakModeValue

Convert the declaration value to a line break mode enumeration value

- (NSLineBreakMode)lineBreakModeValue

Discussion

Convert the declaration value to a line break mode enumeration value

Declared In

PXDeclaration.h

nameListValue

Convert the declaration value to a list of names, each delimited by a comma

- (NSArray *)nameListValue

Discussion

Convert the declaration value to a list of names, each delimited by a comma

Declared In

PXDeclaration.h

offsetsValue

Convert the declaration value to a offsets value

- (PXOffsets *)offsetsValue

Discussion

Convert the declaration value to a offsets value

Declared In

PXDeclaration.h

paintList

Convert the declaration value to a list of paints. This allows 1 - 4 paints, similar to padding

- (NSArray *)paintList

Discussion

Convert the declaration value to a list of paints. This allows 1 - 4 paints, similar to padding

Declared In

PXDeclaration.h

paintValue

Convert the declaration value to a paint value

- (id<PXPaint>)paintValue

Discussion

Convert the declaration value to a paint value

Declared In

PXDeclaration.h

parseErrorDestinationValue

Convert the declaration value to a parse error destination value

- (PXParseErrorDestination)parseErrorDestinationValue

Discussion

Convert the declaration value to a parse error destination value

Declared In

PXDeclaration.h

secondsListValue

Convert the declaration value to a list of seconds, each delimited by a comma

- (NSArray *)secondsListValue

Discussion

Convert the declaration value to a list of seconds, each delimited by a comma

Declared In

PXDeclaration.h

secondsValue

Convert the declaration value to seconds

- (CGFloat)secondsValue

Discussion

Convert the declaration value to seconds

Declared In

PXDeclaration.h

setSource:filename:lexemes:

Set source, filename, and lexemes associated with this declaration

- (void)setSource:(NSString *)source filename:(NSString *)filename lexemes:(NSArray *)lexemes

Parameters

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.h

shadowValue

Convert the declaration value to a shadow value

- (PXShadow *)shadowValue

Discussion

Convert the declaration value to a shadow value

Declared In

PXDeclaration.h

sizeValue

Convert the declaration value to a size value

- (CGSize)sizeValue

Discussion

Convert the declaration value to a size value

Declared In

PXDeclaration.h

stringValue

Convert the declaration value to a string value

- (NSString *)stringValue

Discussion

Convert the declaration value to a string value

Declared In

PXDeclaration.h

textAlignmentValue

Convert the declaration value to a text alignment enumeration value

- (NSTextAlignment)textAlignmentValue

Discussion

Convert the declaration value to a text alignment enumeration value

Declared In

PXDeclaration.h

textBorderStyleValue

Convert the declaration value to a border style enumeration value

- (UITextBorderStyle)textBorderStyleValue

Discussion

Convert the declaration value to a border style enumeration value

Declared In

PXDeclaration.h

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

- (NSString *)transformString:(NSString *)value

Parameters

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

transitionInfoList

Convert the declaration value to a list of transition infos, each delimited by a comma

- (NSArray *)transitionInfoList

Discussion

Convert the declaration value to a list of transition infos, each delimited by a comma

Declared In

PXDeclaration.h