Inherits from NSObject
Declared in PixateFreestyle.h

Overview

This is the main entry point into the Pixate Engine

Tasks

Other Methods

Extension Methods

Class Methods

apiVersion

The api integer version of the API

+ (int)apiVersion

Discussion

The api integer version of the API

Declared In

PixateFreestyle.h

applyStylesheets

Calls updateStylesForAllViews. Please call updateStylesForAllViews directly.

+ (void)applyStylesheets

Discussion

Calls updateStylesForAllViews. Please call updateStylesForAllViews directly.

Declared In

PixateFreestyle.h

buildDate

The build date of this version of the Pixate Engine

+ (NSDate *)buildDate

Discussion

The build date of this version of the Pixate Engine

Declared In

PixateFreestyle.h

clearImageCache

Remove all content from Pixate’s image cache, if one is being used

+ (void)clearImageCache

Discussion

Remove all content from Pixate’s image cache, if one is being used

Declared In

PixateFreestyle.h

clearStyleCache

Remove all content from Pixate’s style cache, if one is being used

+ (void)clearStyleCache

Discussion

Remove all content from Pixate’s style cache, if one is being used

Declared In

PixateFreestyle.h

configuration

A property used to configure options in the Pixate

+ (PixateFreestyleConfiguration *)configuration

Discussion

A property used to configure options in the Pixate

Declared In

PixateFreestyle.h

currentApplicationStylesheet

A class-level getter returning the current application-level stylesheet. This value may be nil

+ (PXStylesheet *)currentApplicationStylesheet

Discussion

A class-level getter returning the current application-level stylesheet. This value may be nil

Declared In

PixateFreestyle.h

currentUserStylesheet

A class-level getter returning the current user-level stylesheet. This value may be nil

+ (PXStylesheet *)currentUserStylesheet

Discussion

A class-level getter returning the current user-level stylesheet. This value may be nil

Declared In

PixateFreestyle.h

currentViewStylesheet

A class-level getter returning the current view-level stylesheet. This value may be nil

+ (PXStylesheet *)currentViewStylesheet

Discussion

A class-level getter returning the current view-level stylesheet. This value may be nil

Declared In

PixateFreestyle.h

initializePixateFreestyle

This is required before styling can occur.

+ (void)initializePixateFreestyle

Discussion

This is required before styling can occur.

Declared In

PixateFreestyle.h

matchingDeclarationsForStyleable:

Return a string representation of all active declarations that apply to the specified styleable. Note that the list shows the result of merging all matching rule sets, taking specificity and duplications into account.

+ (NSString *)matchingDeclarationsForStyleable:(id<PXStyleable>)styleable

Parameters

styleable

The styleable to match

Discussion

Return a string representation of all active declarations that apply to the specified styleable. Note that the list shows the result of merging all matching rule sets, taking specificity and duplications into account.

Declared In

PixateFreestyle.h

matchingRuleSetsForStyleable:

Return a string representation of all active rule sets matching the specified styleable

+ (NSString *)matchingRuleSetsForStyleable:(id<PXStyleable>)styleable

Parameters

styleable

The styleable to match

Discussion

Return a string representation of all active rule sets matching the specified styleable

Declared In

PixateFreestyle.h

refreshStylesWithOrientationChange

This property, when set to YES, automatically refreshes styling when the orientation of your device changes. This is set to NO by default.

+ (BOOL)refreshStylesWithOrientationChange

Discussion

This property, when set to YES, automatically refreshes styling when the orientation of your device changes. This is set to NO by default.

Declared In

PixateFreestyle.h

selectFromStyleable:usingSelector:

Return a collection of all styleables that match the specified selector. Note that the selector runs against views that are in the current view tree only.

+ (NSArray *)selectFromStyleable:(id<PXStyleable>)styleable usingSelector:(NSString *)source

Parameters

styleable

The root of the tree to search

source

The selector to use for matching

Discussion

Return a collection of all styleables that match the specified selector. Note that the selector runs against views that are in the current view tree only.

Declared In

PixateFreestyle.h

sharedInstance

The shared instance of the Pixate singleton.

+ (PixateFreestyle *)sharedInstance

Discussion

The shared instance of the Pixate singleton.

Declared In

PixateFreestyle-Private.h

styleSheetFromFilePath:withOrigin:

Allocate and initialize a new styleheet for the specified path and stylesheet origin

+ (id)styleSheetFromFilePath:(NSString *)filePath withOrigin:(PXStylesheetOrigin)origin

Parameters

filePath

The string path to the stylesheet file

origin

The specificity origin for this stylesheet

Discussion

Allocate and initialize a new styleheet for the specified path and stylesheet origin

Declared In

PixateFreestyle.h

styleSheetFromSource:withOrigin:

Allocate and initialize a new stylesheet using the specified source and stylesheet origin

+ (id)styleSheetFromSource:(NSString *)source withOrigin:(PXStylesheetOrigin)origin

Parameters

source

The CSS source for this stylesheet

origin

The specificity origin for this stylesheet

Discussion

Allocate and initialize a new stylesheet using the specified source and stylesheet origin

Declared In

PixateFreestyle.h

updateStyles:

Update styles for this styleable and all of its descendant styleables

+ (void)updateStyles:(id<PXStyleable>)styleable

Parameters

styleable

The styleable to update

Discussion

Update styles for this styleable and all of its descendant styleables

Declared In

PixateFreestyle.h

updateStylesAsync:

Update styles for this styleable and all of its descendant styleables asynchronously

+ (void)updateStylesAsync:(id<PXStyleable>)styleable

Parameters

styleable

The styleable to update

Discussion

Update styles for this styleable and all of its descendant styleables asynchronously

Declared In

PixateFreestyle.h

updateStylesForAllViews

Update styles for all windows and all if their subviews.

+ (void)updateStylesForAllViews

Discussion

Update styles for all windows and all if their subviews.

Declared In

PixateFreestyle.h

updateStylesNonRecursively:

Update styles for this styleable only

+ (void)updateStylesNonRecursively:(id<PXStyleable>)styleable

Parameters

styleable

The styleable to update

Discussion

Update styles for this styleable only

Declared In

PixateFreestyle.h

updateStylesNonRecursivelyAsync:

Update styles for this styleable only asynchronously

+ (void)updateStylesNonRecursivelyAsync:(id<PXStyleable>)styleable

Parameters

styleable

The styleable to update

Discussion

Update styles for this styleable only asynchronously

Declared In

PixateFreestyle.h

version

The version number of the Pixate Engine

+ (NSString *)version

Discussion

The version number of the Pixate Engine

Declared In

PixateFreestyle.h