PixateFreestyle Class Reference
Inherits from | NSObject |
Declared in | PixateFreestyle.h |
Tasks
Other Methods
-
+ version
The version number of the Pixate Engine
-
+ buildDate
The build date of this version of the Pixate Engine
-
+ apiVersion
The api integer version of the API
-
+ configuration
A property used to configure options in the Pixate
-
+ refreshStylesWithOrientationChange
This property, when set to YES, automatically refreshes styling when the orientation of your device changes. This is set to NO by default.
-
+ initializePixateFreestyle
This is required before styling can occur.
-
+ 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.
-
+ matchingRuleSetsForStyleable:
Return a string representation of all active rule sets matching the specified styleable
-
+ 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.
-
+ styleSheetFromSource:withOrigin:
Allocate and initialize a new stylesheet using the specified source and stylesheet origin
-
+ styleSheetFromFilePath:withOrigin:
Allocate and initialize a new styleheet for the specified path and stylesheet origin
-
+ currentApplicationStylesheet
A class-level getter returning the current application-level stylesheet. This value may be nil
-
+ currentUserStylesheet
A class-level getter returning the current user-level stylesheet. This value may be nil
-
+ currentViewStylesheet
A class-level getter returning the current view-level stylesheet. This value may be nil
-
+ applyStylesheets
Calls updateStylesForAllViews. Please call updateStylesForAllViews directly.
-
+ updateStylesForAllViews
Update styles for all windows and all if their subviews.
-
+ updateStyles:
Update styles for this styleable and all of its descendant styleables
-
+ updateStylesNonRecursively:
Update styles for this styleable only
-
+ updateStylesAsync:
Update styles for this styleable and all of its descendant styleables asynchronously
-
+ updateStylesNonRecursivelyAsync:
Update styles for this styleable only asynchronously
-
+ clearImageCache
Remove all content from Pixate’s image cache, if one is being used
-
+ clearStyleCache
Remove all content from Pixate’s style cache, if one is being used
Extension Methods
-
+ sharedInstance
The shared instance of the Pixate singleton.
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