Skip to content

Commit

Permalink
PXEngine version up
Browse files Browse the repository at this point in the history
  • Loading branch information
satococoa committed Feb 9, 2013
1 parent b8e4d29 commit de0cd1c
Show file tree
Hide file tree
Showing 187 changed files with 1,468 additions and 7,074 deletions.
Expand Up @@ -2,9 +2,6 @@
// NSDictionary+PXCSSEncoding.h
// PXEngine
//
// !WARNING! Do not include this header file directly in your application.
// This file is not part of the public Pixate API and will likely change.
//
// Created by Paul Colton on 12/18/12.
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion vendor/PXEngine.framework/Headers/PXArc.h
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//

#import "PXShape.h"
#import <PXEngine/PXShape.h>

/**
* A PXShape subclass used to render arcs
Expand Down
2 changes: 1 addition & 1 deletion vendor/PXEngine.framework/Headers/PXCircle.h
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "PXShape.h"
#import <PXEngine/PXShape.h>

/**
* A PXShape sub-class used to render circles
Expand Down
3 changes: 0 additions & 3 deletions vendor/PXEngine.framework/Headers/PXCornerRadius.h
Expand Up @@ -2,9 +2,6 @@
// PXCornerRadius.h
// PXEngine
//
// !WARNING! Do not include this header file directly in your application.
// This file is not part of the public Pixate API and will likely change.
//
// Created by Kevin Lindsey on 12/17/12.
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//
Expand Down
4 changes: 2 additions & 2 deletions vendor/PXEngine.framework/Headers/PXEllipse.h
Expand Up @@ -6,8 +6,8 @@
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//

#import "PXShape.h"
#import "PXBoundable.h"
#import <PXEngine/PXShape.h>
#import <PXEngine/PXBoundable.h>

/**
* A PXShape sub-class used to render ellipses
Expand Down
85 changes: 68 additions & 17 deletions vendor/PXEngine.framework/Headers/PXEngine.h
Expand Up @@ -7,10 +7,15 @@
//

#import <Foundation/Foundation.h>

#import <PXEngine/PXStylesheet.h>
#import <PXEngine/PXEngineConfiguration.h>

#import <PXEngine/UIView+PXStyling.h>
#import <PXEngine/NSDictionary+PXCSSEncoding.h>
#import "PXEngineConfiguration.h"
#import <PXEngine/UIBarButtonItem+PXStyling.h>
#import <PXEngine/UITabBarItem+PXStyling.h>
#import <PXEngine/UIColor+PXColors.h>

/**
* This is the main entry point into the Pixate Engine
Expand All @@ -20,44 +25,40 @@
/**
* The build date of this version of the Pixate Engine
*/
@property (nonatomic, strong, readonly) NSString *version;
+(NSString *)version;

/**
* The build date of this version of the Pixate Engine
*/
@property (nonatomic, strong, readonly) NSDate *buildDate;
+(NSDate *)buildDate;

/**
* The email address used for licensing
*/
@property (nonatomic, strong, readonly) NSString *licenseEmail;
+(NSString *)licenseEmail;

/**
* The user name used for licensing
*/
@property (nonatomic, strong, readonly) NSString *licenseKey;

/**
* If set to YES, will only style if styleId or styleClass is set
*/
@property (nonatomic) BOOL checkStyle;
+(NSString *)licenseKey;

/**
* This property, when set to YES, automatically refreshes
* styling when the orientation of your device changes. This is
* set to NO by default.
* Are we in Appcelerator Titanium mode
*/
@property (nonatomic) BOOL refreshStylesWithOrientationChange;
+(BOOL)titaniumMode;

/**
* A property used to configure options in the PXEngine
*/
@property (nonatomic, strong) PXEngineConfiguration *configuration;
+(PXEngineConfiguration *)configuration;

/**
* The shared instance of the PXEngine singleton.
* This property, when set to YES, automatically refreshes
* styling when the orientation of your device changes. This is
* set to NO by default.
*/
+ (PXEngine *)sharedInstance;
+(BOOL)refreshStylesWithOrientationChange;
+(void)setRefreshStylesWithOrientationChange:(BOOL)value;

/**
* Set the license key and license serial number into the Pixate
Expand Down Expand Up @@ -92,4 +93,54 @@
*/
+ (NSString *)matchingDeclarationsForStyleable:(id<PXStyleable>)styleable;

/**
* Allocate and initialize a new stylesheet using the specified source and stylesheet origin
*
* @param source The CSS source for this stylesheet
* @param origin The specificity origin for this stylesheet
*/
+ (id)styleSheetFromSource:(NSString *)source withOrigin:(PXStylesheetOrigin)origin;

/**
* Allocate and initialize a new styleheet for the specified path and stylesheet origin
*
* @param filePath The string path to the stylesheet file
* @param origin The specificity origin for this stylesheet
*/
+ (id)styleSheetFromFilePath:(NSString *)filePath withOrigin:(PXStylesheetOrigin)origin;

/**
* A class-level getter returning the current application-level stylesheet. This value may be nil
*/
+ (PXStylesheet *)currentApplicationStylesheet;

/**
* A class-level getter returning the current user-level stylesheet. This value may be nil
*/
+ (PXStylesheet *)currentUserStylesheet;

/**
* A class-level getter returning the current view-level stylesheet. This value may be nil
*/
+ (PXStylesheet *)currentViewStylesheet;

/**
* Apply all registered stylesheet (i.e. Application, User, and/or View)
*/
+ (void)applyStylesheets;

/**
* Update styles for this styleable and all of its descendant styleables
*
* @param styleable The styleable to update
*/
+ (void)updateStyles:(id<PXStyleable>)styleable;

/**
* Update styles for this styleable only
*
* @param styleable The styleable to update
*/
+ (void)updateStylesNonRecursively:(id<PXStyleable>)styleable;

@end
43 changes: 37 additions & 6 deletions vendor/PXEngine.framework/Headers/PXEngineConfiguration.h
Expand Up @@ -9,31 +9,62 @@
#import <Foundation/Foundation.h>
#import "PXStyleable.h"

/**
* A PXParseErrorDestination enumeration captures the various parse error logging destinations. These are set using the
* parse-error-destination property for the pixate-config element.
*/
typedef enum {
PXParseErrorDestination_None,
PXParseErrorDestination_Console,
PXParseErrorDestinationNone,
PXParseErrorDestinationConsole,
#ifdef PX_LOGGING
PXParseErrorDestination_Logger
#endif
} PXParseErrorDestination;

/**
* A PXUpdateStylesType enumeration determines if the PXEngine will try to automatically style views.
*/
typedef enum {
PXUpdateStylesType_Auto,
PXUpdateStylesType_Manual,
PXUpdateStylesTypeAuto,
PXUpdateStylesTypeManual,
} PXUpdateStylesType;

/**
* A PXCacheStylesType enumeration determines if the PXEngine will try to cache styling.
*/
typedef enum {
PXCacheStylesType_Auto,
PXCacheStylesType_None,
PXCacheStylesTypeAuto,
PXCacheStylesTypeNone,
} PXCacheStylesType;

/**
* The PXEngineConfiguration class is used to set and retrieve global settings for the PXEngine.
*/
@interface PXEngineConfiguration : NSObject <PXStyleable>

/**
* Allow a style id to be associated with this object
*/
@property (nonatomic, copy) NSString *styleId;

/**
* Allow a style class to be associated with this object
*/
@property (nonatomic, copy) NSString *styleClass;

/**
* Determine where parse errors will be emitted
*/
@property (nonatomic) PXParseErrorDestination parseErrorDestination;

/**
* Determine when views should have their style updated
*/
@property (nonatomic) PXUpdateStylesType updateStylesType;

/**
* Determine if view styling is cached
*/
@property (nonatomic) PXCacheStylesType cacheStylesType;

/*
Expand Down
2 changes: 1 addition & 1 deletion vendor/PXEngine.framework/Headers/PXGradient.h
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "PXPaint.h"
#import <PXEngine/PXPaint.h>

/**
* A common base class for linear- and radial-gradients.
Expand Down
56 changes: 25 additions & 31 deletions vendor/PXEngine.framework/Headers/PXGraphics.h
Expand Up @@ -9,59 +9,53 @@
#import <PXEngine/UIColor+PXColors.h>

// math
#import <PXEngine/PXVector.h>
#import <PXEngine/PXMath.h>
#import <PXEngine/PXCornerRadius.h>
#import <PXEngine/PXDimension.h>

// strokes
#import <PXEngine/PXStrokeRenderer.h>
#import <PXEngine/PXStroke.h>
#import <PXEngine/PXNonScalingStroke.h>
#import <PXEngine/PXStrokeGroup.h>
#import <PXEngine/PXStrokeStroke.h>
#import <PXEngine/PXMargin.h>
#import <PXEngine/PXMath.h>
#import <PXEngine/PXVector.h>

// paints
#import <PXEngine/PXPaint.h>
#import <PXEngine/PXGradient.h>
#import <PXEngine/PXLinearGradient.h>
#import <PXEngine/PXPaint.h>
#import <PXEngine/PXPaintGroup.h>
#import <PXEngine/PXRadialGradient.h>
#import <PXEngine/PXSolidPaint.h>
#import <PXEngine/PXPaintGroup.h>

// parsing
#import <PXEngine/PXSVGLoader.h>

// shadows
//#import <PXEngine/PXShadowPaint.h>
//#import <PXEngine/PXShadow.h>
//#import <PXEngine/PXShadowGroup.h>
#import <PXEngine/PXShadow.h>
#import <PXEngine/PXShadowGroup.h>
#import <PXEngine/PXShadowPaint.h>

// shapes
#import <PXEngine/PXRenderable.h>
#import <PXEngine/PXPaintable.h>
#import <PXEngine/PXShape.h>
#import <PXEngine/PXArc.h>
#import <PXEngine/PXBoundable.h>
#import <PXEngine/PXCircle.h>
#import <PXEngine/PXEllipse.h>
#import <PXEngine/PXLine.h>
#import <PXEngine/PXPaintable.h>
#import <PXEngine/PXPath.h>
#import <PXEngine/PXPie.h>
#import <PXEngine/PXPolygon.h>
#import <PXEngine/PXRectangle.h>
#import <PXEngine/PXShapeGroup.h>
#import <PXEngine/PXRenderable.h>
#import <PXEngine/PXScene.h>
#import <PXEngine/PXShape.h>
#import <PXEngine/PXShapeGroup.h>
#ifdef PXTEXT_SUPPORT
#import <PXEngine/PXText.h>
#endif
#import <PXEngine/PXShapeView.h>

// parsing
#import <PXEngine/PXSourceWriter.h>
#import <PXEngine/PXLexeme.h>
#import <PXEngine/PXParserBase.h>
#import <PXEngine/PXCharacterMatcher.h>
#import <PXEngine/PXNumberMatcher.h>
#import <PXEngine/PXPatternMatcher.h>
#import <PXEngine/PXWordMatcher.h>
// strokes
#import <PXEngine/PXNonScalingStroke.h>
#import <PXEngine/PXStroke.h>
#import <PXEngine/PXStrokeGroup.h>
#import <PXEngine/PXStrokeRenderer.h>
#import <PXEngine/PXStrokeStroke.h>

#import <PXEngine/PXStylesheetTokenType.h>
#import <PXEngine/PXStylesheetLexer.h>
#import <PXEngine/PXStylesheetParser.h>
#import <PXEngine/PXSVGLoader.h>
// views
#import <PXEngine/PXShapeView.h>
2 changes: 1 addition & 1 deletion vendor/PXEngine.framework/Headers/PXLine.h
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//

#import "PXShape.h"
#import <PXEngine/PXShape.h>

/**
* A PXShape sub-class used to render lines
Expand Down
4 changes: 2 additions & 2 deletions vendor/PXEngine.framework/Headers/PXLinearGradient.h
Expand Up @@ -7,8 +7,8 @@
//

#import <Foundation/Foundation.h>
#import "PXPaint.h"
#import "PXGradient.h"
#import <PXEngine/PXPaint.h>
#import <PXEngine/PXGradient.h>

/**
* PXLinearGradient is an implementation of a linear gradient. Linear gradients may be specified by an angle, or by two
Expand Down
Expand Up @@ -2,9 +2,6 @@
// PXMargin.h
// PXEngine
//
// !WARNING! Do not include this header file directly in your application.
// This file is not part of the public Pixate API and will likely change.
//
// Created by Kevin Lindsey on 12/17/12.
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//
Expand Down
2 changes: 1 addition & 1 deletion vendor/PXEngine.framework/Headers/PXNonScalingStroke.h
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//

#import "PXStroke.h"
#import <PXEngine/PXStroke.h>

/**
* PXNonScalingStroke is a special stroke implementation that tries its best to preserve its stroke width, in screen
Expand Down
2 changes: 1 addition & 1 deletion vendor/PXEngine.framework/Headers/PXPaintGroup.h
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import "PXPaint.h"
#import <PXEngine/PXPaint.h>

/**
* A PXPaintGroup allows a collection of PXPaints to be treated as a single fill. This can reduce the number of
Expand Down

0 comments on commit de0cd1c

Please sign in to comment.