Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PXEngine version up

  • Loading branch information...
commit de0cd1cc7917a50bc87aa2a5105c6cbe19a0a40b 1 parent b8e4d29
@satococoa authored
Showing with 1,468 additions and 7,074 deletions.
  1. +0 −3  vendor/PXEngine.framework/Headers/NSDictionary+PXCSSEncoding.h
  2. +1 −1  vendor/PXEngine.framework/Headers/PXArc.h
  3. +1 −1  vendor/PXEngine.framework/Headers/PXCircle.h
  4. +0 −3  vendor/PXEngine.framework/Headers/PXCornerRadius.h
  5. +2 −2 vendor/PXEngine.framework/Headers/PXEllipse.h
  6. +68 −17 vendor/PXEngine.framework/Headers/PXEngine.h
  7. +37 −6 vendor/PXEngine.framework/Headers/PXEngineConfiguration.h
  8. +1 −1  vendor/PXEngine.framework/Headers/PXGradient.h
  9. +25 −31 vendor/PXEngine.framework/Headers/PXGraphics.h
  10. +1 −1  vendor/PXEngine.framework/Headers/PXLine.h
  11. +2 −2 vendor/PXEngine.framework/Headers/PXLinearGradient.h
  12. +0 −3  vendor/PXEngine.framework/{Versions/1.0/PrivateHeaders → Headers}/PXMargin.h
  13. +1 −1  vendor/PXEngine.framework/Headers/PXNonScalingStroke.h
  14. +1 −1  vendor/PXEngine.framework/Headers/PXPaintGroup.h
  15. +3 −3 vendor/PXEngine.framework/Headers/PXPaintable.h
  16. +1 −1  vendor/PXEngine.framework/Headers/PXPath.h
  17. +1 −1  vendor/PXEngine.framework/Headers/PXPie.h
  18. +1 −1  vendor/PXEngine.framework/Headers/PXPolygon.h
  19. +2 −2 vendor/PXEngine.framework/Headers/PXRadialGradient.h
  20. +3 −3 vendor/PXEngine.framework/Headers/PXRectangle.h
  21. +1 −1  vendor/PXEngine.framework/Headers/PXSVGLoader.h
  22. +1 −1  vendor/PXEngine.framework/Headers/PXScene.h
  23. +1 −1  vendor/PXEngine.framework/Headers/PXShadow.h
  24. +1 −1  vendor/PXEngine.framework/Headers/PXShadowGroup.h
  25. +3 −3 vendor/PXEngine.framework/Headers/PXShape.h
  26. +2 −2 vendor/PXEngine.framework/Headers/PXShapeGroup.h
  27. +1 −11 vendor/PXEngine.framework/Headers/PXShapeView.h
  28. +1 −1  vendor/PXEngine.framework/Headers/PXSolidPaint.h
  29. +2 −2 vendor/PXEngine.framework/Headers/PXStroke.h
  30. +1 −1  vendor/PXEngine.framework/Headers/PXStrokeGroup.h
  31. +1 −1  vendor/PXEngine.framework/Headers/PXStrokeStroke.h
  32. +10 −0 vendor/PXEngine.framework/Headers/PXStyleable.h
  33. +5 −100 vendor/PXEngine.framework/Headers/PXStylesheet.h
  34. +30 −0 vendor/PXEngine.framework/Headers/UIBarButtonItem+PXStyling.h
  35. +40 −0 vendor/PXEngine.framework/Headers/UITabBarItem+PXStyling.h
  36. +0 −8 vendor/PXEngine.framework/{Versions/Current/PrivateHeaders → Headers}/UIView+PXStyling.h
  37. BIN  vendor/PXEngine.framework/PXEngine
  38. +697 −1,329 vendor/PXEngine.framework/PXEngine.framework.bridgesupport
  39. +0 −619 vendor/PXEngine.framework/PrivateHeaders/DDLog.h
  40. +0 −19 vendor/PXEngine.framework/PrivateHeaders/PXCharacterMatcher.h
  41. +0 −148 vendor/PXEngine.framework/PrivateHeaders/PXDeclaration.h
  42. +0 −32 vendor/PXEngine.framework/PrivateHeaders/PXIdSelector.h
  43. +0 −37 vendor/PXEngine.framework/PrivateHeaders/PXLexeme.h
  44. +0 −24 vendor/PXEngine.framework/PrivateHeaders/PXLog.h
  45. +0 −28 vendor/PXEngine.framework/PrivateHeaders/PXLoggingUtils.h
  46. +0 −20 vendor/PXEngine.framework/PrivateHeaders/PXNumberMatcher.h
  47. +0 −122 vendor/PXEngine.framework/PrivateHeaders/PXParserBase.h
  48. +0 −27 vendor/PXEngine.framework/PrivateHeaders/PXPatternMatcher.h
  49. +0 −90 vendor/PXEngine.framework/PrivateHeaders/PXRuleSet.h
  50. +0 −33 vendor/PXEngine.framework/PrivateHeaders/PXSelector.h
  51. +0 −21 vendor/PXEngine.framework/PrivateHeaders/PXSourceEmitter.h
  52. +0 −25 vendor/PXEngine.framework/PrivateHeaders/PXSourceWriter.h
  53. +0 −56 vendor/PXEngine.framework/PrivateHeaders/PXSpecificity.h
  54. +0 −92 vendor/PXEngine.framework/PrivateHeaders/PXStylesheetLexer.h
  55. +0 −58 vendor/PXEngine.framework/PrivateHeaders/PXStylesheetParser.h
  56. +0 −120 vendor/PXEngine.framework/PrivateHeaders/PXStylesheetTokenType.h
  57. +0 −18 vendor/PXEngine.framework/PrivateHeaders/PXStyling.h
  58. +0 −83 vendor/PXEngine.framework/PrivateHeaders/PXTypeSelector.h
  59. +6 −6 vendor/PXEngine.framework/PrivateHeaders/{PXLexemeCreator.h → PXVirtualControl.h}
  60. +0 −20 vendor/PXEngine.framework/PrivateHeaders/PXWordMatcher.h
  61. BIN  vendor/PXEngine.framework/Resources/AppledocSettings.plist
  62. BIN  vendor/PXEngine.framework/Resources/Info.plist
  63. BIN  vendor/PXEngine.framework/Resources/en.lproj/InfoPlist.strings
  64. +0 −3  vendor/PXEngine.framework/Versions/1.0/Headers/NSDictionary+PXCSSEncoding.h
  65. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXArc.h
  66. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXCircle.h
  67. +0 −3  vendor/PXEngine.framework/Versions/1.0/Headers/PXCornerRadius.h
  68. +2 −2 vendor/PXEngine.framework/Versions/1.0/Headers/PXEllipse.h
  69. +68 −17 vendor/PXEngine.framework/Versions/1.0/Headers/PXEngine.h
  70. +37 −6 vendor/PXEngine.framework/Versions/1.0/Headers/PXEngineConfiguration.h
  71. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXGradient.h
  72. +25 −31 vendor/PXEngine.framework/Versions/1.0/Headers/PXGraphics.h
  73. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXLine.h
  74. +2 −2 vendor/PXEngine.framework/Versions/1.0/Headers/PXLinearGradient.h
  75. +0 −3  vendor/PXEngine.framework/Versions/{Current/PrivateHeaders → 1.0/Headers}/PXMargin.h
  76. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXNonScalingStroke.h
  77. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXPaintGroup.h
  78. +3 −3 vendor/PXEngine.framework/Versions/1.0/Headers/PXPaintable.h
  79. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXPath.h
  80. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXPie.h
  81. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXPolygon.h
  82. +2 −2 vendor/PXEngine.framework/Versions/1.0/Headers/PXRadialGradient.h
  83. +3 −3 vendor/PXEngine.framework/Versions/1.0/Headers/PXRectangle.h
  84. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXSVGLoader.h
  85. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXScene.h
  86. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXShadow.h
  87. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXShadowGroup.h
  88. +3 −3 vendor/PXEngine.framework/Versions/1.0/Headers/PXShape.h
  89. +2 −2 vendor/PXEngine.framework/Versions/1.0/Headers/PXShapeGroup.h
  90. +1 −11 vendor/PXEngine.framework/Versions/1.0/Headers/PXShapeView.h
  91. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXSolidPaint.h
  92. +2 −2 vendor/PXEngine.framework/Versions/1.0/Headers/PXStroke.h
  93. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXStrokeGroup.h
  94. +1 −1  vendor/PXEngine.framework/Versions/1.0/Headers/PXStrokeStroke.h
  95. +10 −0 vendor/PXEngine.framework/Versions/1.0/Headers/PXStyleable.h
  96. +5 −100 vendor/PXEngine.framework/Versions/1.0/Headers/PXStylesheet.h
  97. +30 −0 vendor/PXEngine.framework/Versions/1.0/Headers/UIBarButtonItem+PXStyling.h
  98. +40 −0 vendor/PXEngine.framework/Versions/1.0/Headers/UITabBarItem+PXStyling.h
  99. +0 −8 vendor/PXEngine.framework/Versions/1.0/{PrivateHeaders → Headers}/UIView+PXStyling.h
  100. BIN  vendor/PXEngine.framework/Versions/1.0/PXEngine
  101. +0 −619 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/DDLog.h
  102. +0 −19 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXCharacterMatcher.h
  103. +0 −148 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXDeclaration.h
  104. +0 −32 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXIdSelector.h
  105. +0 −37 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXLexeme.h
  106. +0 −24 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXLog.h
  107. +0 −28 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXLoggingUtils.h
  108. +0 −20 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXNumberMatcher.h
  109. +0 −122 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXParserBase.h
  110. +0 −27 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXPatternMatcher.h
  111. +0 −90 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXRuleSet.h
  112. +0 −33 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXSelector.h
  113. +0 −21 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXSourceEmitter.h
  114. +0 −25 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXSourceWriter.h
  115. +0 −56 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXSpecificity.h
  116. +0 −92 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXStylesheetLexer.h
  117. +0 −58 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXStylesheetParser.h
  118. +0 −120 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXStylesheetTokenType.h
  119. +0 −18 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXStyling.h
  120. +0 −83 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXTypeSelector.h
  121. +6 −6 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/{PXLexemeCreator.h → PXVirtualControl.h}
  122. +0 −20 vendor/PXEngine.framework/Versions/1.0/PrivateHeaders/PXWordMatcher.h
  123. BIN  vendor/PXEngine.framework/Versions/1.0/Resources/AppledocSettings.plist
  124. BIN  vendor/PXEngine.framework/Versions/1.0/Resources/Info.plist
  125. BIN  vendor/PXEngine.framework/Versions/1.0/Resources/en.lproj/InfoPlist.strings
  126. +0 −3  vendor/PXEngine.framework/Versions/Current/Headers/NSDictionary+PXCSSEncoding.h
  127. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXArc.h
  128. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXCircle.h
  129. +0 −3  vendor/PXEngine.framework/Versions/Current/Headers/PXCornerRadius.h
  130. +2 −2 vendor/PXEngine.framework/Versions/Current/Headers/PXEllipse.h
  131. +68 −17 vendor/PXEngine.framework/Versions/Current/Headers/PXEngine.h
  132. +37 −6 vendor/PXEngine.framework/Versions/Current/Headers/PXEngineConfiguration.h
  133. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXGradient.h
  134. +25 −31 vendor/PXEngine.framework/Versions/Current/Headers/PXGraphics.h
  135. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXLine.h
  136. +2 −2 vendor/PXEngine.framework/Versions/Current/Headers/PXLinearGradient.h
  137. +0 −3  vendor/PXEngine.framework/{PrivateHeaders → Versions/Current/Headers}/PXMargin.h
  138. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXNonScalingStroke.h
  139. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXPaintGroup.h
  140. +3 −3 vendor/PXEngine.framework/Versions/Current/Headers/PXPaintable.h
  141. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXPath.h
  142. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXPie.h
  143. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXPolygon.h
  144. +2 −2 vendor/PXEngine.framework/Versions/Current/Headers/PXRadialGradient.h
  145. +3 −3 vendor/PXEngine.framework/Versions/Current/Headers/PXRectangle.h
  146. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXSVGLoader.h
  147. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXScene.h
  148. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXShadow.h
  149. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXShadowGroup.h
  150. +3 −3 vendor/PXEngine.framework/Versions/Current/Headers/PXShape.h
  151. +2 −2 vendor/PXEngine.framework/Versions/Current/Headers/PXShapeGroup.h
  152. +1 −11 vendor/PXEngine.framework/Versions/Current/Headers/PXShapeView.h
  153. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXSolidPaint.h
  154. +2 −2 vendor/PXEngine.framework/Versions/Current/Headers/PXStroke.h
  155. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXStrokeGroup.h
  156. +1 −1  vendor/PXEngine.framework/Versions/Current/Headers/PXStrokeStroke.h
  157. +10 −0 vendor/PXEngine.framework/Versions/Current/Headers/PXStyleable.h
  158. +5 −100 vendor/PXEngine.framework/Versions/Current/Headers/PXStylesheet.h
  159. +30 −0 vendor/PXEngine.framework/Versions/Current/Headers/UIBarButtonItem+PXStyling.h
  160. +40 −0 vendor/PXEngine.framework/Versions/Current/Headers/UITabBarItem+PXStyling.h
  161. +0 −8 vendor/PXEngine.framework/{PrivateHeaders → Versions/Current/Headers}/UIView+PXStyling.h
  162. BIN  vendor/PXEngine.framework/Versions/Current/PXEngine
  163. +0 −619 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/DDLog.h
  164. +0 −19 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXCharacterMatcher.h
  165. +0 −148 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXDeclaration.h
  166. +0 −32 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXIdSelector.h
  167. +0 −37 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXLexeme.h
  168. +0 −24 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXLog.h
  169. +0 −28 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXLoggingUtils.h
  170. +0 −20 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXNumberMatcher.h
  171. +0 −122 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXParserBase.h
  172. +0 −27 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXPatternMatcher.h
  173. +0 −90 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXRuleSet.h
  174. +0 −33 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXSelector.h
  175. +0 −21 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXSourceEmitter.h
  176. +0 −25 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXSourceWriter.h
  177. +0 −56 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXSpecificity.h
  178. +0 −92 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXStylesheetLexer.h
  179. +0 −58 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXStylesheetParser.h
  180. +0 −120 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXStylesheetTokenType.h
  181. +0 −18 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXStyling.h
  182. +0 −83 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXTypeSelector.h
  183. +6 −6 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/{PXLexemeCreator.h → PXVirtualControl.h}
  184. +0 −20 vendor/PXEngine.framework/Versions/Current/PrivateHeaders/PXWordMatcher.h
  185. BIN  vendor/PXEngine.framework/Versions/Current/Resources/AppledocSettings.plist
  186. BIN  vendor/PXEngine.framework/Versions/Current/Resources/Info.plist
  187. BIN  vendor/PXEngine.framework/Versions/Current/Resources/en.lproj/InfoPlist.strings
View
3  vendor/PXEngine.framework/Headers/NSDictionary+PXCSSEncoding.h
@@ -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.
//
View
2  vendor/PXEngine.framework/Headers/PXArc.h
@@ -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
View
2  vendor/PXEngine.framework/Headers/PXCircle.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXShape.h"
+#import <PXEngine/PXShape.h>
/**
* A PXShape sub-class used to render circles
View
3  vendor/PXEngine.framework/Headers/PXCornerRadius.h
@@ -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.
//
View
4 vendor/PXEngine.framework/Headers/PXEllipse.h
@@ -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
View
85 vendor/PXEngine.framework/Headers/PXEngine.h
@@ -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
@@ -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
@@ -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
View
43 vendor/PXEngine.framework/Headers/PXEngineConfiguration.h
@@ -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;
/*
View
2  vendor/PXEngine.framework/Headers/PXGradient.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXPaint.h"
+#import <PXEngine/PXPaint.h>
/**
* A common base class for linear- and radial-gradients.
View
56 vendor/PXEngine.framework/Headers/PXGraphics.h
@@ -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>
View
2  vendor/PXEngine.framework/Headers/PXLine.h
@@ -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
View
4 vendor/PXEngine.framework/Headers/PXLinearGradient.h
@@ -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
View
3  ....framework/Versions/1.0/PrivateHeaders/PXMargin.h → vendor/PXEngine.framework/Headers/PXMargin.h
@@ -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.
//
View
2  vendor/PXEngine.framework/Headers/PXNonScalingStroke.h
@@ -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
View
2  vendor/PXEngine.framework/Headers/PXPaintGroup.h
@@ -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
View
6 vendor/PXEngine.framework/Headers/PXPaintable.h
@@ -7,9 +7,9 @@
//
#import <Foundation/Foundation.h>
-#import "PXStrokeRenderer.h"
-#import "PXPaint.h"
-#import "PXShadowPaint.h"
+#import <PXEngine/PXStrokeRenderer.h>
+#import <PXEngine/PXPaint.h>
+#import <PXEngine/PXShadowPaint.h>
@class PXShape;
View
2  vendor/PXEngine.framework/Headers/PXPath.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXShape.h"
+#import <PXEngine/PXShape.h>
/**
* A PXShape sub-class used to render paths
View
2  vendor/PXEngine.framework/Headers/PXPie.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXArc.h"
+#import <PXEngine/PXArc.h>
/**
* A PXArc subclass used to render pie graphs
View
2  vendor/PXEngine.framework/Headers/PXPolygon.h
@@ -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 open and closed polygons
View
4 vendor/PXEngine.framework/Headers/PXRadialGradient.h
@@ -6,8 +6,8 @@
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//
-#import "PXGradient.h"
-#import "PXPaint.h"
+#import <PXEngine/PXGradient.h>
+#import <PXEngine/PXPaint.h>
/**
* PXRadialGradient is an implementation of a radial gradient. Radial gradients are specified by a starting and ending
View
6 vendor/PXEngine.framework/Headers/PXRectangle.h
@@ -7,9 +7,9 @@
//
#import <Foundation/Foundation.h>
-#import "PXShape.h"
-#import "PXBoundable.h"
-#import "PXCornerRadius.h"
+#import <PXEngine/PXShape.h>
+#import <PXEngine/PXBoundable.h>
+#import <PXEngine/PXCornerRadius.h>
/**
* A PXShape sub-class used to render rectangles
View
2  vendor/PXEngine.framework/Headers/PXSVGLoader.h
@@ -7,7 +7,7 @@
//
#import <UIKit/UIKit.h>
-#import "PXGraphics.h"
+#import <PXEngine/PXShape.h>
@class PXScene;
View
2  vendor/PXEngine.framework/Headers/PXScene.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXRenderable.h"
+#import <PXEngine/PXRenderable.h>
@class PXShapeView;
View
2  vendor/PXEngine.framework/Headers/PXShadow.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXShadowPaint.h"
+#import <PXEngine/PXShadowPaint.h>
/**
* PXShadow is used to capture all settings needed to render a box shadow.
View
2  vendor/PXEngine.framework/Headers/PXShadowGroup.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXShadowPaint.h"
+#import <PXEngine/PXShadowPaint.h>
/**
* A PXShadowGroup serves as a collection of PXShadowPaints
View
6 vendor/PXEngine.framework/Headers/PXShape.h
@@ -7,9 +7,9 @@
//
#import <Foundation/Foundation.h>
-#import "PXRenderable.h"
-#import "PXPaintable.h"
-#import "PXScene.h"
+#import <PXEngine/PXRenderable.h>
+#import <PXEngine/PXPaintable.h>
+#import <PXEngine/PXScene.h>
/**
* A common base class for all shapes in ShapeKit.
View
4 vendor/PXEngine.framework/Headers/PXShapeGroup.h
@@ -7,8 +7,8 @@
//
#import <UIKit/UIKit.h>
-#import "PXShape.h"
-#import "PXRenderable.h"
+#import <PXEngine/PXShape.h>
+#import <PXEngine/PXRenderable.h>
typedef enum {
kAlignViewPortNone,
View
12 vendor/PXEngine.framework/Headers/PXShapeView.h
@@ -7,7 +7,7 @@
//
#import <UIKit/UIKit.h>
-#import "PXScene.h"
+#import <PXEngine/PXScene.h>
/**
* PXShapeView serves as a convenience class for displaying vector graphics as defined by Pixate's ShapeKit.
@@ -43,14 +43,4 @@
*/
- (void)applyBoundsToScene;
-/**
- * Note that the following properties and method are experimental and will most likely be deleted in a future release.
- */
-@property (nonatomic) CGPoint shapeCenter;
-@property (nonatomic) CGPoint shapeTranslation;
-@property (nonatomic) CGPoint shapeScale;
-@property (nonatomic) CGFloat shapeRotation;
-@property (readonly) CGAffineTransform shapeTransform;
-- (void)resetTransforms;
-
@end
View
2  vendor/PXEngine.framework/Headers/PXSolidPaint.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXPaint.h"
+#import <PXEngine/PXPaint.h>
/**
* PXSolidPaint is used to fill a contour with a solid color
View
4 vendor/PXEngine.framework/Headers/PXStroke.h
@@ -7,8 +7,8 @@
//
#import <Foundation/Foundation.h>
-#import "PXPaint.h"
-#import "PXStrokeRenderer.h"
+#import <PXEngine/PXPaint.h>
+#import <PXEngine/PXStrokeRenderer.h>
/**
* PXStrokeType is an enumeration indicating the placement of the stroke in relation to the contour it is being applied
View
2  vendor/PXEngine.framework/Headers/PXStrokeGroup.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXStroke.h"
+#import <PXEngine/PXStroke.h>
/**
* PXStrokeGroup allows a collection of PXStrokeRenderers to be treated as a single stroke. This is particularly useful
View
2  vendor/PXEngine.framework/Headers/PXStrokeStroke.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import "PXStrokeRenderer.h"
+#import <PXEngine/PXStrokeRenderer.h>
@class PXStroke;
View
10 vendor/PXEngine.framework/Headers/PXStyleable.h
@@ -56,6 +56,16 @@
@optional
/**
+ * Update styles for this styleable and all of its descendant styleables
+ */
+- (void)updateStyles;
+
+/**
+ * Update styles for this styleable only
+ */
+- (void)updateStylesNonRecursively;
+
+/**
* Return the namespace URI associated with this object
*/
@property (readonly, nonatomic, copy) NSString *pxStyleNamespace;
View
105 vendor/PXEngine.framework/Headers/PXStylesheet.h
@@ -7,14 +7,8 @@
//
#import <Foundation/Foundation.h>
-#import <PXEngine/PXRuleSet.h>
-#import <PXEngine/PXStyleable.h>
-@protocol PXMediaExpression;
-@class PXMediaGroup;
-
-extern NSString *const kPXStylesheetDidChangeNotification;
-extern NSString *const kPXUpdateStyleNotification;
+extern NSString *const PXStylesheetDidChangeNotification;
/**
* A PXStylesheetOrigin enumeration captures the various stylesheet origins (application, user, and view) which are
@@ -22,10 +16,10 @@ extern NSString *const kPXUpdateStyleNotification;
*/
typedef enum
{
- kStylesheetOriginApplication,
- kStylesheetOriginUser,
- kStylesheetOriginView,
- kStylesheetOriginInline
+ PXStylesheetOriginApplication,
+ PXStylesheetOriginUser,
+ PXStylesheetOriginView,
+ PXStylesheetOriginInline
} PXStylesheetOrigin;
/**
@@ -41,21 +35,6 @@ typedef enum
@property (readonly, nonatomic) PXStylesheetOrigin origin;
/**
- * A nonmutable array of rule sets that are contained within this stylesheet
- */
-@property (readonly, nonatomic, strong) NSArray *ruleSets;
-
-/**
- * A nonmutable array of media groups that are contained within this stylesheet
- */
-@property (readonly, nonatomic, strong) NSArray *mediaGroups;
-
-/**
- * The current media query that applies to any rule sets added to this stylesheet
- */
-@property (nonatomic, strong) id<PXMediaExpression> activeMediaQuery;
-
-/**
* A nonmutable array of error strings that were encountered when parsing the source of this stylesheet
*/
@property (nonatomic, strong) NSArray *errors;
@@ -70,78 +49,4 @@ typedef enum
*/
@property (nonatomic, assign) BOOL monitorChanges;
-/**
- * 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;
-
-/**
- * Initialize a new stylesheet instance and set its stylesheet origin
- *
- * @param origin The specificity origin for this stylesheet
- */
-- (id)initWithOrigin:(PXStylesheetOrigin)origin;
-
-/**
- * Add a new rule set to this stylesheet
- *
- * @param ruleSet The rule set to add. Nil values are ignored
- */
-- (void)addRuleSet:(PXRuleSet *)ruleSet;
-
-/**
- * Return a list of rule sets whose selectors match against a specified element
- *
- * @param element The element to match against
- */
-- (NSArray *)ruleSetsMatchingStyleable:(id<PXStyleable>)element;
-
-/**
- * Register a namespace URI for a given prefix. If the prefix is nil or an empty string, then this method sets the
- * default namespace URI.
- *
- * @param uri The URI (as a string) for the namespace
- * @param prefix The namespace prefix to associate with the namespace URI
- */
-- (void)setURI:(NSString *)uri forNamespacePrefix:(NSString *)prefix;
-
-/**
- * Return the namespace URI for the specified prefix. If prefix is nil or an empty string, then the default namespace
- * URI will be returned, if one has been defined
- *
- * @param prefix The namespace prefix
- */
-- (NSString *)namespaceForPrefix:(NSString *)prefix;
-
@end
View
30 vendor/PXEngine.framework/Headers/UIBarButtonItem+PXStyling.h
@@ -0,0 +1,30 @@
+//
+// UIBarButtonItem+PXStyling.h
+// PXEngine
+//
+// Created by Kevin Lindsey on 12/11/12.
+// Copyright (c) 2012 Pixate, Inc. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <PXEngine/PXVirtualControl.h>
+
+/**
+ *
+ * UIBarButtonItem supports the following element name:
+ *
+ * - bar-button-item
+ *
+ * UIBarButtonItem supports the following properties:
+ *
+ * - PXFillStyler
+ * - PXBorderStyler
+ * - PXTextContentStyler
+ *
+ */
+@interface UIBarButtonItem (PXStyling) <PXVirtualControl>
+
+// make styleParent writeable here
+@property (nonatomic, readwrite, copy) id pxStyleParent;
+
+@end
View
40 vendor/PXEngine.framework/Headers/UITabBarItem+PXStyling.h
@@ -0,0 +1,40 @@
+//
+// UITabBarItem+PXStyling.h
+// PXEngine
+//
+// Created by Kevin Lindsey on 10/31/12.
+// Copyright (c) 2012 Pixate, Inc. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <PXEngine/PXVirtualControl.h>
+
+/**
+ *
+ * UITabBarItem supports the following element name:
+ *
+ * - tab-bar-item
+ *
+ * UITabBarItem supports the following pseudo-class states:
+ *
+ * - normal (default)
+ * - selected
+ * - unselected
+ *
+ * UITabBarItem supports the following properties:
+ *
+ * - PXShapeStyler
+ * - PXFillStyler
+ * - PXBorderStyler
+ * = PXBoxShadowStyler
+ * - PXFontStyler
+ * - PXColorStyler
+ * - PXTextContentStyler
+ *
+ */
+@interface UITabBarItem (PXStyling) <PXVirtualControl>
+
+// make styleParent writeable here
+@property (nonatomic, readwrite, copy) id pxStyleParent;
+
+@end
View
8 ...ersions/Current/PrivateHeaders/UIView+PXStyling.h → vendor/PXEngine.framework/Headers/UIView+PXStyling.h
@@ -2,9 +2,6 @@
// UIView+PXStyling.h
// PXButtonDemo
//
-// !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 8/22/12.
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//
@@ -12,12 +9,7 @@
#import <UIKit/UIKit.h>
#import <PXEngine/PXStyleable.h>
-//#define BETA_EXPIRATION
-
@interface UIView (PXStyling) <PXStyleable>
-- (void)updateStyles;
-- (void)updateStylesNonRecursively;
-
@end
View
BIN  vendor/PXEngine.framework/PXEngine
Binary file not shown
View
2,026 vendor/PXEngine.framework/PXEngine.framework.bridgesupport
697 additions, 1,329 deletions not shown
View
619 vendor/PXEngine.framework/PrivateHeaders/DDLog.h
@@ -1,619 +0,0 @@
-#ifdef PX_LOGGING
-#import <Foundation/Foundation.h>
-
-// !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.
-
-/**
- * Welcome to Cocoa Lumberjack!
- *
- * The project page has a wealth of documentation if you have any questions.
- * https://github.com/robbiehanson/CocoaLumberjack
- *
- * If you're new to the project you may wish to read the "Getting Started" wiki.
- * https://github.com/robbiehanson/CocoaLumberjack/wiki/GettingStarted
- *
- * Otherwise, here is a quick refresher.
- * There are three steps to using the macros:
- *
- * Step 1:
- * Import the header in your implementation file:
- *
- * #import "DDLog.h"
- *
- * Step 2:
- * Define your logging level in your implementation file:
- *
- * // Log levels: off, error, warn, info, verbose
- * static const int ddLogLevel = LOG_LEVEL_VERBOSE;
- *
- * Step 3:
- * Replace your NSLog statements with DDLog statements according to the severity of the message.
- *
- * NSLog(@"Fatal error, no dohickey found!"); -> DDLogError(@"Fatal error, no dohickey found!");
- *
- * DDLog works exactly the same as NSLog.
- * This means you can pass it multiple variables just like NSLog.
-**/
-
-
-@class DDLogMessage;
-
-@protocol DDLogger;
-@protocol DDLogFormatter;
-
-/**
- * This is the single macro that all other macros below compile into.
- * This big multiline macro makes all the other macros easier to read.
-**/
-
-#if DEBUG
-#define LOG_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, ...) \
- [DDLog log:isAsynchronous \
- level:lvl \
- flag:flg \
- context:ctx \
- file:__FILE__ \
- function:fnct \
- line:__LINE__ \
- tag:atag \
- format:(frmt), ##__VA_ARGS__]
-#else
-#define LOG_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, ...) \
- [DDLog log:isAsynchronous \
- level:lvl \
- flag:flg \
- context:ctx \
- file:"" \
- function:fnct \
- line:0 \
- tag:atag \
- format:(frmt), ##__VA_ARGS__]
-#endif
-
-/**
- * Define the Objective-C and C versions of the macro.
- * These automatically inject the proper function name for either an objective-c method or c function.
- *
- * We also define shorthand versions for asynchronous and synchronous logging.
-**/
-
-#define LOG_OBJC_MACRO(async, lvl, flg, ctx, frmt, ...) \
- LOG_MACRO(async, lvl, flg, ctx, nil, sel_getName(_cmd), frmt, ##__VA_ARGS__)
-
-#define LOG_C_MACRO(async, lvl, flg, ctx, frmt, ...) \
- LOG_MACRO(async, lvl, flg, ctx, nil, __FUNCTION__, frmt, ##__VA_ARGS__)
-
-#define SYNC_LOG_OBJC_MACRO(lvl, flg, ctx, frmt, ...) \
- LOG_OBJC_MACRO( NO, lvl, flg, ctx, frmt, ##__VA_ARGS__)
-
-#define ASYNC_LOG_OBJC_MACRO(lvl, flg, ctx, frmt, ...) \
- LOG_OBJC_MACRO(YES, lvl, flg, ctx, frmt, ##__VA_ARGS__)
-
-#define SYNC_LOG_C_MACRO(lvl, flg, ctx, frmt, ...) \
- LOG_C_MACRO( NO, lvl, flg, ctx, frmt, ##__VA_ARGS__)
-
-#define ASYNC_LOG_C_MACRO(lvl, flg, ctx, frmt, ...) \
- LOG_C_MACRO(YES, lvl, flg, ctx, frmt, ##__VA_ARGS__)
-
-/**
- * Define version of the macro that only execute if the logLevel is above the threshold.
- * The compiled versions essentially look like this:
- *
- * if (logFlagForThisLogMsg & ddLogLevel) { execute log message }
- *
- * As shown further below, Lumberjack actually uses a bitmask as opposed to primitive log levels.
- * This allows for a great amount of flexibility and some pretty advanced fine grained logging techniques.
- *
- * Note that when compiler optimizations are enabled (as they are for your release builds),
- * the log messages above your logging threshold will automatically be compiled out.
- *
- * (If the compiler sees ddLogLevel declared as a constant, the compiler simply checks to see if the 'if' statement
- * would execute, and if not it strips it from the binary.)
- *
- * We also define shorthand versions for asynchronous and synchronous logging.
-**/
-
-#define LOG_MAYBE(async, lvl, flg, ctx, fnct, frmt, ...) \
- do { if(lvl & flg) LOG_MACRO(async, lvl, flg, ctx, nil, fnct, frmt, ##__VA_ARGS__); } while(0)
-
-#define LOG_OBJC_MAYBE(async, lvl, flg, ctx, frmt, ...) \
- LOG_MAYBE(async, lvl, flg, ctx, sel_getName(_cmd), frmt, ##__VA_ARGS__)
-
-#define LOG_C_MAYBE(async, lvl, flg, ctx, frmt, ...) \
- LOG_MAYBE(async, lvl, flg, ctx, __FUNCTION__, frmt, ##__VA_ARGS__)
-
-#define SYNC_LOG_OBJC_MAYBE(lvl, flg, ctx, frmt, ...) \
- LOG_OBJC_MAYBE( NO, lvl, flg, ctx, frmt, ##__VA_ARGS__)
-
-#define ASYNC_LOG_OBJC_MAYBE(lvl, flg, ctx, frmt, ...) \
- LOG_OBJC_MAYBE(YES, lvl, flg, ctx, frmt, ##__VA_ARGS__)
-
-#define SYNC_LOG_C_MAYBE(lvl, flg, ctx, frmt, ...) \
- LOG_C_MAYBE( NO, lvl, flg, ctx, frmt, ##__VA_ARGS__)
-
-#define ASYNC_LOG_C_MAYBE(lvl, flg, ctx, frmt, ...) \
- LOG_C_MAYBE(YES, lvl, flg, ctx, frmt, ##__VA_ARGS__)
-
-/**
- * Define versions of the macros that also accept tags.
- *
- * The DDLogMessage object includes a 'tag' ivar that may be used for a variety of purposes.
- * It may be used to pass custom information to loggers or formatters.
- * Or it may be used by 3rd party extensions to the framework.
- *
- * Thes macros just make it a little easier to extend logging functionality.
-**/
-
-#define LOG_OBJC_TAG_MACRO(async, lvl, flg, ctx, tag, frmt, ...) \
- LOG_MACRO(async, lvl, flg, ctx, tag, sel_getName(_cmd), frmt, ##__VA_ARGS__)
-
-#define LOG_C_TAG_MACRO(async, lvl, flg, ctx, tag, frmt, ...) \
- LOG_MACRO(async, lvl, flg, ctx, tag, __FUNCTION__, frmt, ##__VA_ARGS__)
-
-#define LOG_TAG_MAYBE(async, lvl, flg, ctx, tag, fnct, frmt, ...) \
- do { if(lvl & flg) LOG_MACRO(async, lvl, flg, ctx, tag, fnct, frmt, ##__VA_ARGS__); } while(0)
-
-#define LOG_OBJC_TAG_MAYBE(async, lvl, flg, ctx, tag, frmt, ...) \
- LOG_TAG_MAYBE(async, lvl, flg, ctx, tag, sel_getName(_cmd), frmt, ##__VA_ARGS__)
-
-#define LOG_C_TAG_MAYBE(async, lvl, flg, ctx, tag, frmt, ...) \
- LOG_TAG_MAYBE(async, lvl, flg, ctx, tag, __FUNCTION__, frmt, ##__VA_ARGS__)
-
-/**
- * Define the standard options.
- *
- * We default to only 4 levels because it makes it easier for beginners
- * to make the transition to a logging framework.
- *
- * More advanced users may choose to completely customize the levels (and level names) to suite their needs.
- * For more information on this see the "Custom Log Levels" page:
- * https://github.com/robbiehanson/CocoaLumberjack/wiki/CustomLogLevels
- *
- * Advanced users may also notice that we're using a bitmask.
- * This is to allow for custom fine grained logging:
- * https://github.com/robbiehanson/CocoaLumberjack/wiki/FineGrainedLogging
- *
- * -- Flags --
- *
- * Typically you will use the LOG_LEVELS (see below), but the flags may be used directly in certain situations.
- * For example, say you have a lot of warning log messages, and you wanted to disable them.
- * However, you still needed to see your error and info log messages.
- * You could accomplish that with the following:
- *
- * static const int ddLogLevel = LOG_FLAG_ERROR | LOG_FLAG_INFO;
- *
- * Flags may also be consulted when writing custom log formatters,
- * as the DDLogMessage class captures the individual flag that caused the log message to fire.
- *
- * -- Levels --
- *
- * Log levels are simply the proper bitmask of the flags.
- *
- * -- Booleans --
- *
- * The booleans may be used when your logging code involves more than one line.
- * For example:
- *
- * if (LOG_VERBOSE) {
- * for (id sprocket in sprockets)
- * DDLogVerbose(@"sprocket: %@", [sprocket description])
- * }
- *
- * -- Async --
- *
- * Defines the default asynchronous options.
- * The default philosophy for asynchronous logging is very simple:
- *
- * Log messages with errors should be executed synchronously.
- * After all, an error just occurred. The application could be unstable.
- *
- * All other log messages, such as debug output, are executed asynchronously.
- * After all, if it wasn't an error, then it was just informational output,
- * or something the application was easily able to recover from.
- *
- * -- Changes --
- *
- * You are strongly discouraged from modifying this file.
- * If you do, you make it more difficult on yourself to merge future bug fixes and improvements from the project.
- * Instead, create your own MyLogging.h or ApplicationNameLogging.h or CompanyLogging.h
- *
- * For an example of customizing your logging experience, see the "Custom Log Levels" page:
- * https://github.com/robbiehanson/CocoaLumberjack/wiki/CustomLogLevels
-**/
-
-#define LOG_FLAG_ERROR (1 << 0) // 0...0001
-#define LOG_FLAG_WARN (1 << 1) // 0...0010
-#define LOG_FLAG_INFO (1 << 2) // 0...0100
-#define LOG_FLAG_VERBOSE (1 << 3) // 0...1000
-
-#define LOG_LEVEL_OFF 0
-#define LOG_LEVEL_ERROR (LOG_FLAG_ERROR) // 0...0001
-#define LOG_LEVEL_WARN (LOG_FLAG_ERROR | LOG_FLAG_WARN) // 0...0011
-#define LOG_LEVEL_INFO (LOG_FLAG_ERROR | LOG_FLAG_WARN | LOG_FLAG_INFO) // 0...0111
-#define LOG_LEVEL_VERBOSE (LOG_FLAG_ERROR | LOG_FLAG_WARN | LOG_FLAG_INFO | LOG_FLAG_VERBOSE) // 0...1111
-
-#define LOG_ERROR (ddLogLevel & LOG_FLAG_ERROR)
-#define LOG_WARN (ddLogLevel & LOG_FLAG_WARN)
-#define LOG_INFO (ddLogLevel & LOG_FLAG_INFO)
-#define LOG_VERBOSE (ddLogLevel & LOG_FLAG_VERBOSE)
-
-#define LOG_ASYNC_ENABLED NO
-
-#define LOG_ASYNC_ERROR ( NO && LOG_ASYNC_ENABLED)
-#define LOG_ASYNC_WARN (YES && LOG_ASYNC_ENABLED)
-#define LOG_ASYNC_INFO (YES && LOG_ASYNC_ENABLED)
-#define LOG_ASYNC_VERBOSE (YES && LOG_ASYNC_ENABLED)
-
-#define DDLogError(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_ERROR, ddLogLevel, LOG_FLAG_ERROR, 0, frmt, ##__VA_ARGS__)
-#define DDLogWarn(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_WARN, ddLogLevel, LOG_FLAG_WARN, 0, frmt, ##__VA_ARGS__)
-#define DDLogInfo(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_INFO, ddLogLevel, LOG_FLAG_INFO, 0, frmt, ##__VA_ARGS__)
-#define DDLogVerbose(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_VERBOSE, ddLogLevel, LOG_FLAG_VERBOSE, 0, frmt, ##__VA_ARGS__)
-
-#define DDLogCError(frmt, ...) LOG_C_MAYBE(LOG_ASYNC_ERROR, ddLogLevel, LOG_FLAG_ERROR, 0, frmt, ##__VA_ARGS__)
-#define DDLogCWarn(frmt, ...) LOG_C_MAYBE(LOG_ASYNC_WARN, ddLogLevel, LOG_FLAG_WARN, 0, frmt, ##__VA_ARGS__)
-#define DDLogCInfo(frmt, ...) LOG_C_MAYBE(LOG_ASYNC_INFO, ddLogLevel, LOG_FLAG_INFO, 0, frmt, ##__VA_ARGS__)
-#define DDLogCVerbose(frmt, ...) LOG_C_MAYBE(LOG_ASYNC_VERBOSE, ddLogLevel, LOG_FLAG_VERBOSE, 0, frmt, ##__VA_ARGS__)
-
-/**
- * The THIS_FILE macro gives you an NSString of the file name.
- * For simplicity and clarity, the file name does not include the full path or file extension.
- *
- * For example: DDLogWarn(@"%@: Unable to find thingy", THIS_FILE) -> @"MyViewController: Unable to find thingy"
-**/
-
-NSString *DDExtractFileNameWithoutExtension(const char *filePath, BOOL copy);
-
-#define THIS_FILE (DDExtractFileNameWithoutExtension(__FILE__, NO))
-
-/**
- * The THIS_METHOD macro gives you the name of the current objective-c method.
- *
- * For example: DDLogWarn(@"%@ - Requires non-nil strings", THIS_METHOD) -> @"setMake:model: requires non-nil strings"
- *
- * Note: This does NOT work in straight C functions (non objective-c).
- * Instead you should use the predefined __FUNCTION__ macro.
-**/
-
-#define THIS_METHOD NSStringFromSelector(_cmd)
-
-
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#pragma mark -
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-@interface DDLog : NSObject
-
-/**
- * Provides access to the underlying logging queue.
- * This may be helpful to Logger classes for things like thread synchronization.
-**/
-
-+ (dispatch_queue_t)loggingQueue;
-
-/**
- * Logging Primitive.
- *
- * This method is used by the macros above.
- * It is suggested you stick with the macros as they're easier to use.
-**/
-
-+ (void)log:(BOOL)synchronous
- level:(int)level
- flag:(int)flag
- context:(int)context
- file:(const char *)file
- function:(const char *)function
- line:(int)line
- tag:(id)tag
- format:(NSString *)format, ... __attribute__ ((format (__NSString__, 9, 10)));
-
-/**
- * Logging Primitive.
- *
- * This method can be used if you have a prepared va_list.
-**/
-
-+ (void)log:(BOOL)asynchronous
- level:(int)level
- flag:(int)flag
- context:(int)context
- file:(const char *)file
- function:(const char *)function
- line:(int)line
- tag:(id)tag
- format:(NSString *)format
- args:(va_list)argList;
-
-
-/**
- * Since logging can be asynchronous, there may be times when you want to flush the logs.
- * The framework invokes this automatically when the application quits.
-**/
-
-+ (void)flushLog;
-
-/**
- * Loggers
- *
- * If you want your log statements to go somewhere,
- * you should create and add a logger.
-**/
-
-+ (void)addLogger:(id <DDLogger>)logger;
-+ (void)removeLogger:(id <DDLogger>)logger;
-
-+ (void)removeAllLoggers;
-
-/**
- * Registered Dynamic Logging
- *
- * These methods allow you to obtain a list of classes that are using registered dynamic logging,
- * and also provides methods to get and set their log level during run time.
-**/
-
-+ (NSArray *)registeredClasses;
-+ (NSArray *)registeredClassNames;
-
-+ (int)logLevelForClass:(Class)aClass;
-+ (int)logLevelForClassWithName:(NSString *)aClassName;
-
-+ (void)setLogLevel:(int)logLevel forClass:(Class)aClass;
-+ (void)setLogLevel:(int)logLevel forClassWithName:(NSString *)aClassName;
-
-@end
-
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#pragma mark -
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-@protocol DDLogger <NSObject>
-@required
-
-- (void)logMessage:(DDLogMessage *)logMessage;
-
-/**
- * Formatters may optionally be added to any logger.
- *
- * If no formatter is set, the logger simply logs the message as it is given in logMessage,
- * or it may use its own built in formatting style.
-**/
-- (id <DDLogFormatter>)logFormatter;
-- (void)setLogFormatter:(id <DDLogFormatter>)formatter;
-
-@optional
-
-/**
- * Since logging is asynchronous, adding and removing loggers is also asynchronous.
- * In other words, the loggers are added and removed at appropriate times with regards to log messages.
- *
- * - Loggers will not receive log messages that were executed prior to when they were added.
- * - Loggers will not receive log messages that were executed after they were removed.
- *
- * These methods are executed in the logging thread/queue.
- * This is the same thread/queue that will execute every logMessage: invocation.
- * Loggers may use these methods for thread synchronization or other setup/teardown tasks.
-**/
-- (void)didAddLogger;
-- (void)willRemoveLogger;
-
-/**
- * Some loggers may buffer IO for optimization purposes.
- * For example, a database logger may only save occasionaly as the disk IO is slow.
- * In such loggers, this method should be implemented to flush any pending IO.
- *
- * This allows invocations of DDLog's flushLog method to be propogated to loggers that need it.
- *
- * Note that DDLog's flushLog method is invoked automatically when the application quits,
- * and it may be also invoked manually by the developer prior to application crashes, or other such reasons.
-**/
-- (void)flush;
-
-/**
- * Each logger is executed concurrently with respect to the other loggers.
- * Thus, a dedicated dispatch queue is used for each logger.
- * Logger implementations may optionally choose to provide their own dispatch queue.
-**/
-- (dispatch_queue_t)loggerQueue;
-
-/**
- * If the logger implementation does not choose to provide its own queue,
- * one will automatically be created for it.
- * The created queue will receive its name from this method.
- * This may be helpful for debugging or profiling reasons.
-**/
-- (NSString *)loggerName;
-
-@end
-
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#pragma mark -
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-@protocol DDLogFormatter <NSObject>
-@required
-
-/**
- * Formatters may optionally be added to any logger.
- * This allows for increased flexibility in the logging environment.
- * For example, log messages for log files may be formatted differently than log messages for the console.
- *
- * For more information about formatters, see the "Custom Formatters" page:
- * https://github.com/robbiehanson/CocoaLumberjack/wiki/CustomFormatters
- *
- * The formatter may also optionally filter the log message by returning nil,
- * in which case the logger will not log the message.
-**/
-- (NSString *)formatLogMessage:(DDLogMessage *)logMessage;
-
-@optional
-
-/**
- * A single formatter instance can be added to multiple loggers.
- * These methods provides hooks to notify the formatter of when it's added/removed.
- *
- * This is primarily for thread-safety.
- * If a formatter is explicitly not thread-safe, it may wish to throw an exception if added to multiple loggers.
- * Or if a formatter has potentially thread-unsafe code (e.g. NSDateFormatter),
- * it could possibly use these hooks to switch to thread-safe versions of the code.
-**/
-- (void)didAddToLogger:(id <DDLogger>)logger;
-- (void)willRemoveFromLogger:(id <DDLogger>)logger;
-
-@end
-
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#pragma mark -
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-@protocol DDRegisteredDynamicLogging
-
-/**
- * Implement these methods to allow a file's log level to be managed from a central location.
- *
- * This is useful if you'd like to be able to change log levels for various parts
- * of your code from within the running application.
- *
- * Imagine pulling up the settings for your application,
- * and being able to configure the logging level on a per file basis.
- *
- * The implementation can be very straight-forward:
- *
- * + (int)ddLogLevel
- * {
- * return ddLogLevel;
- * }
- *
- * + (void)ddSetLogLevel:(int)logLevel
- * {
- * ddLogLevel = logLevel;
- * }
-**/
-
-+ (int)ddLogLevel;
-+ (void)ddSetLogLevel:(int)logLevel;
-
-@end
-
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#pragma mark -
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-/**
- * The DDLogMessage class encapsulates information about the log message.
- * If you write custom loggers or formatters, you will be dealing with objects of this class.
-**/
-
-enum {
- DDLogMessageCopyFile = 1 << 0,
- DDLogMessageCopyFunction = 1 << 1,
-};
-typedef int DDLogMessageOptions;
-
-@interface DDLogMessage : NSObject
-{
-
-// The public variables below can be accessed directly (for speed).
-// For example: logMessage->logLevel
-
-@public
- int logLevel;
- int logFlag;
- int logContext;
- NSString *logMsg;
- NSDate *timestamp;
- char *file;
- char *function;
- int lineNumber;
- mach_port_t machThreadID;
- char *queueLabel;
- NSString *threadName;
-
- // For 3rd party extensions to the framework, where flags and contexts aren't enough.
- id tag;
-
- // For 3rd party extensions that manually create DDLogMessage instances.
- DDLogMessageOptions options;
-}
-
-/**
- * Standard init method for a log message object.
- * Used by the logging primitives. (And the macros use the logging primitives.)
- *
- * If you find need to manually create logMessage objects, there is one thing you should be aware of:
- *
- * If no flags are passed, the method expects the file and function parameters to be string literals.
- * That is, it expects the given strings to exist for the duration of the object's lifetime,
- * and it expects the given strings to be immutable.
- * In other words, it does not copy these strings, it simply points to them.
- * This is due to the fact that __FILE__ and __FUNCTION__ are usually used to specify these parameters,
- * so it makes sense to optimize and skip the unnecessary allocations.
- * However, if you need them to be copied you may use the options parameter to specify this.
- * Options is a bitmask which supports DDLogMessageCopyFile and DDLogMessageCopyFunction.
-**/
-- (id)initWithLogMsg:(NSString *)logMsg
- level:(int)logLevel
- flag:(int)logFlag
- context:(int)logContext
- file:(const char *)file
- function:(const char *)function
- line:(int)line
- tag:(id)tag
- options:(DDLogMessageOptions)optionsMask;
-
-/**
- * Returns the threadID as it appears in NSLog.
- * That is, it is a hexadecimal value which is calculated from the machThreadID.
-**/
-- (NSString *)threadID;
-
-/**
- * Convenience property to get just the file name, as the file variable is generally the full file path.
- * This method does not include the file extension, which is generally unwanted for logging purposes.
-**/
-- (NSString *)fileName;
-
-/**
- * Returns the function variable in NSString form.
-**/
-- (NSString *)methodName;
-
-@end
-
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-#pragma mark -
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-/**
- * The DDLogger protocol specifies that an optional formatter can be added to a logger.
- * Most (but not all) loggers will want to support formatters.
- *
- * However, writting getters and setters in a thread safe manner,
- * while still maintaining maximum speed for the logging process, is a difficult task.
- *
- * To do it right, the implementation of the getter/setter has strict requiremenets:
- * - Must NOT require the logMessage method to acquire a lock.
- * - Must NOT require the logMessage method to access an atomic property (also a lock of sorts).
- *
- * To simplify things, an abstract logger is provided that implements the getter and setter.
- *
- * Logger implementations may simply extend this class,
- * and they can ACCESS THE FORMATTER VARIABLE DIRECTLY from within their logMessage method!
-**/
-
-@interface DDAbstractLogger : NSObject <DDLogger>
-{
- id <DDLogFormatter> formatter;
-
- dispatch_queue_t loggerQueue;
-}
-
-- (id <DDLogFormatter>)logFormatter;
-- (void)setLogFormatter:(id <DDLogFormatter>)formatter;
-
-// For thread-safety assertions
-- (BOOL)isOnGlobalLoggingQueue;
-- (BOOL)isOnInternalLoggerQueue;
-
-@end
-#endif
View
19 vendor/PXEngine.framework/PrivateHeaders/PXCharacterMatcher.h
@@ -1,19 +0,0 @@
-//
-// PXCharacterToken.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 6/23/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "PXLexemeCreator.h"
-
-@interface PXCharacterMatcher : NSObject <PXLexemeCreator>
-
-- (id)initWithCharactersInString:(NSString *)characters withTypes:(NSArray *)types;
-
-@end
View
148 vendor/PXEngine.framework/PrivateHeaders/PXDeclaration.h
@@ -1,148 +0,0 @@
-//
-// PXDeclaration.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 9/1/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import <PXEngine/PXPaint.h>
-#import <PXEngine/PXShadow.h>
-#import <PXEngine/PXDimension.h>
-#import <PXEngine/PXCornerRadius.h>
-#import <PXEngine/PXMargin.h>
-#import <PXEngine/PXEngineConfiguration.h>
-
-/**
- * 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.
- */
-@interface PXDeclaration : NSObject
-
-@property (nonatomic, strong) NSString *name;
-@property (readonly, nonatomic, strong) NSArray *lexemes;
-@property (nonatomic) BOOL important;
-
-/**
- * Initializes a newly allocated PXDeclaration using the specified property name
- *
- * @param name The property name for this declaration
- */
-- (id)initWithName:(NSString *)name;
-
-/**
- * Initializes a newly allocated PXDeclaration using the specified property name and value. The value will be tokenized
- * to populate the lexemes property.
- *
- * @param name The property name
- * @param value The property value
- */
-- (id)initWithName:(NSString *)name value:(NSString *)value;
-
-- (void)setSource:(NSString *)source filename:(NSString *)filename lexemes:(NSArray *)lexemes;
-
-/**
- * Convert the declaration value to a boolean value
- */
-- (BOOL)booleanValue;
-
-/**
- * Convert the declaration value to a PXCacheStylesType value
- */
-- (PXCacheStylesType)cacheStylesTypeValue;
-
-/**
- * Convert the declaration value to a color value
- */
-- (UIColor *)colorValue;
-
-/**
- * Convert the declaration value to a float value
- */
-- (CGFloat)floatValue;
-
-/**
- * Convert the declaration value to a line break mode enumeration value
- */
-- (UILineBreakMode)lineBreakModeValue;
-
-/**
- * Convert the declaration value to a margin value
- */
-- (PXMargin *)marginValue;
-
-/**
- * Convert the declaration value to a paint value
- */
-- (id<PXPaint>)paintValue;
-
-/**
- * Convert the declaration value to a parse error destination value
- */
-- (PXParseErrorDestination)parseErrorDestinationValue;
-
-/**
- * Convert the declaration value to a size value
- */
-- (CGSize)sizeValue;
-
-/**
- * Convert the declaration value to a shadow value
- */
-- (PXShadow *)shadowValue;
-
-/**
- * Convert the declaration value to a string value
- */
-- (NSString *)stringValue;
-
-/**
- * Convert the declaration value to a text alignment enumeration value
- */
-- (UITextAlignment)textAlignmentValue;
-
-/**
- * Convert the declaration value to a PXUpdateStylesType value
- */
-- (PXUpdateStylesType)updateStylesTypeValue;
-
-/**
- * Treat the string value of this declaration as a text-transform value. Apply the text transform to the specified
- * string and return the result
- *
- * @param value The string to transform
- */
-- (NSString *)transformString:(NSString *)value;
-
-/**
- * Convert the declaration value to a CGAffineTransformation using the SVG transform syntax
- */
-- (CGAffineTransform)affineTransformValue;
-
-/**
- * Convert the declaration value to a URL
- */
-- (NSURL *)URLValue;
-
-/**
- * Convert the declaration value to a UIEdgeInsets value
- */
-- (UIEdgeInsets)insetsValue;
-
-/**
- * Convert the declaration value to a PXCornerRadius value
- */
-- (PXCornerRadius *)cornerRadiusValue;
-
-/**
- * Convert the declaration value to a PXDimension value
- */
-- (PXDimension *)dimensionValue;
-
-@end
View
32 vendor/PXEngine.framework/PrivateHeaders/PXIdSelector.h
@@ -1,32 +0,0 @@
-//
-// PXIdSelector.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 7/9/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "PXSelector.h"
-
-/**
- * A PXIdExpression determines if an element defines an id attribute if it its value matches a specific string.
- */
-@interface PXIdSelector : NSObject <PXSelector>
-
-/**
- * The id value to match
- */
-@property (readonly, nonatomic, strong) NSString *idValue;
-
-/**
- * Initialize a new instance using the specified id name
- *
- * @param value The id value to match
- */
-- (id)initWithIdValue:(NSString *)value;
-
-@end
View
37 vendor/PXEngine.framework/PrivateHeaders/PXLexeme.h
@@ -1,37 +0,0 @@
-//
-// PXLexeme.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 6/23/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-
-typedef enum {
- PXLexemeFlagFollowsWhitespace = 1
-} PXLexemeFlagType;
-
-@interface PXLexeme : NSObject
-
-@property (readonly, nonatomic) int type;
-@property (readonly, nonatomic, strong) NSString *typeName;
-@property (readonly, nonatomic, strong) id value;
-@property (readonly, nonatomic) NSRange range;
-
-+ (id)lexemeWithType:(int)type;
-+ (id)lexemeWithType:(int)type withRange:(NSRange)range;
-+ (id)lexemeWithType:(int)type withValue:(id)value;
-+ (id)lexemeWithType:(int)type withRange:(NSRange)range withValue:(id)value;
-
-- (id)initWithType:(int)type withRange:(NSRange)range withValue:(id)value;
-
-- (void)clearFlag:(PXLexemeFlagType)type;
-- (void)setFlag:(PXLexemeFlagType)type;
-- (BOOL)flagIsSet:(PXLexemeFlagType)type;
-- (BOOL)followsWhitespace;
-
-@end
View
24 vendor/PXEngine.framework/PrivateHeaders/PXLog.h
@@ -1,24 +0,0 @@
-//
-// PXLog.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/8/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#ifdef PX_LOGGING
-#import <PXEngine/DDLog.h>
-
-#undef LOG_LEVEL_ERROR
-#undef LOG_LEVEL_WARN
-#undef LOG_LEVEL_INFO
-#undef LOG_LEVEL_VERBOSE
-
-#define LOG_LEVEL_ERROR (LOG_FLAG_ERROR) // 0...0001
-#define LOG_LEVEL_WARN (LOG_FLAG_ERROR | LOG_FLAG_WARN) // 0...0011
-#define LOG_LEVEL_INFO (LOG_FLAG_ERROR | LOG_FLAG_WARN | LOG_FLAG_INFO) // 0...0111
-#define LOG_LEVEL_VERBOSE (LOG_FLAG_ERROR | LOG_FLAG_WARN | LOG_FLAG_INFO | LOG_FLAG_VERBOSE) // 0...1111
-#endif
View
28 vendor/PXEngine.framework/PrivateHeaders/PXLoggingUtils.h
@@ -1,28 +0,0 @@
-//
-// PXLoggingUtils.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/4/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#ifdef PX_LOGGING
-#import <Foundation/Foundation.h>
-#import "PXLog.h"
-
-@protocol PXLoggingDelegate <NSObject>
-- (void)logEntry:(NSString *)logItem atLogLevel:(int)logLevel;
-@end
-
-@interface PXLoggingUtils : NSObject
-
-+ (void)enableLogging;
-+ (void)enableLoggingToDirectoryPath:(NSString *)path;
-+ (void)setGlobalLoggingLevel:(int)logLevel;
-+ (void)addLoggingDelegate:(id <PXLoggingDelegate>)delegate;
-
-@end
-#endif
View
20 vendor/PXEngine.framework/PrivateHeaders/PXNumberMatcher.h
@@ -1,20 +0,0 @@
-//
-// PXNumberMatcher.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 6/23/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "PXPatternMatcher.h"
-
-@interface PXNumberMatcher : PXPatternMatcher
-
-- (id)initWithType:(int)type;
-- (id)initWithType:(int)type withDictionary:(NSDictionary *)dictionary withUnknownType:(int)unknownType;
-
-@end
View
122 vendor/PXEngine.framework/PrivateHeaders/PXParserBase.h
@@ -1,122 +0,0 @@
-//
-// PXParserBase.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 6/30/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "PXLexeme.h"
-#import "PXStylesheetTokenType.h"
-
-/**
- * PXParserBase is an abstract class with a collection of helper functions useful during parsing.
- */
-@interface PXParserBase : NSObject
-{
- /**
- * The current lexeme from the last call to advance. This value may be nil if none of the advance methods have been
- * called or if there are no more lexemes in the scanner's lexeme stream
- */
- @protected PXLexeme *currentLexeme;
-}
-
-/**
- * A mutable array of all errors that occurred during parsing. Note that if an instance of a parser is used, each new
- * parse should call clearErrors so that this value will be empty before the parse initiates.
- */
-@property (readonly, nonatomic, strong) NSMutableArray *errors;
-
-/**
- * Advance to the next lexeme in the lexeme stream. The current lexeme is returned and the currentLexeme is set to that
- * return value.
- */
-- (PXLexeme *)advance;
-
-/**
- * Add an error message to the list of errors encountered during parsing
- *
- * @param error The error message to add
- */
-- (void)addError:(NSString *)error;
-
-/**
- * Add an error message, including the filename and offset where the error occurred
- *
- * @param error The error message
- * @param filename The filename where the error occurred
- * @param offset A string representing the offset where the error occurred
- */
-- (void)addError:(NSString *)error filename:(NSString *)filename offset:(NSString *)offset;
-
-/**
- * Remove all errors that have been previously reported. This should be called before a parse begins if the parser
- * instance is being re-used.
- */
-- (void)clearErrors;
-
-/**
- * Throw an NSException and add an error message to the list of errors collected so far.
- *
- * @param message The error message
- */
-- (void)errorWithMessage:(NSString *)message;
-
-/**
- * Assert that the current lexeme matches the specified type. If it does not match, then throw an exception
- *
- * @param type The lexeme type to test against
- */
-- (void)assertType:(int)type;
-
-/**
- * Assert that the current lexeme matches one of the types in the specified set. If it does not match, then throw an
- * exception.
- *
- * @param types An NSIndexSet containing a collection of types to match against
- */
-- (void)assertTypeInSet:(NSIndexSet *)types;
-
-/**
- * Assert that the current lexeme matches the specified type. If it does not match, then throw an exception. If the
- * types do match, then advance to the next lexeme.
- *
- * @param type The lexeme type to test against
- */
-- (PXLexeme *)assertTypeAndAdvance:(int)type;
-
-/**
- * Advance to the next lexeme if the current lexeme matches the specified type.
- *
- * @param type The lexeme type to test against
- */
-- (void)advanceIfIsType:(int)type;
-
-/**
- * Advance to the next lexeme if the current lexeme matches the specified type. If the type does not match, then add
- * a warning to the current list of errors, but do not throw an exception
- *
- * @param type The lexeme type to test against
- * @param warning The warning message to emit
- */
-- (void)advanceIfIsType:(int)type withWarning:(NSString *)warning;
-
-/**
- * Determine if the current lexeme matches the specified type.
- *
- * @param type The lexeme type to test against
- */
-- (BOOL)isType:(int)type;
-
-/**
- * Determine if the current lexeme matches one of the types in the specified set.
- *
- * @param types An NSIndexSet containing a collection of types to match against
- */
-- (BOOL)isInTypeSet:(NSIndexSet *)types;
-
-@end
View
27 vendor/PXEngine.framework/PrivateHeaders/PXPatternMatcher.h
@@ -1,27 +0,0 @@
-//
-// PXPatternMatcher.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 6/23/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "PXLexemeCreator.h"
-
-@interface PXPatternMatcher : NSObject <PXLexemeCreator>
-{
- @protected
- NSRegularExpression *pattern;
-}
-
-@property (readonly, nonatomic) int type;
-@property (readonly, nonatomic, strong) NSString *name;
-
-- (id)initWithType:(int)type withPatternString:(NSString *)patternString;
-- (id)initWithType:(int)type withRegularExpression:(NSRegularExpression *)aPattern;
-
-@end
View
90 vendor/PXEngine.framework/PrivateHeaders/PXRuleSet.h
@@ -1,90 +0,0 @@
-//
-// PXRuleSet.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 7/3/12.
-// Copyright (c) 2012 Pixate, Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import <PXEngine/PXSpecificity.h>
-#import <PXEngine/PXTypeSelector.h>
-#import <PXEngine/PXDeclaration.h>
-#import <PXEngine/PXStyleable.h>
-
-/**
- * A PXRuleSet represents a single CSS rule set. A rule set consists of selectors and declarations. A specificity is
- * associated with each rule set to assist in the calculation of weights and cascading of declarations.
- */
-@interface PXRuleSet : NSObject
-
-/**
- * A nonmutable array of selectors.
- *
- * When a selector consists of a comma-delimited list, each item is added to this rule set
- */
-@property (readonly, nonatomic) NSArray *selectors;
-
-/**
- * A nonmutable array of declarations.
- */
-@property (readonly, nonatomic) NSArray *declarations;
-
-/**
- * The specificity of this rule set as calculated based on the rule set's selectors
- */
-@property (readonly, nonatomic) PXSpecificity *specificity;
-
-/**
- * Returns the final selector which determines what target types will be selected
- */
-@property (readonly, nonatomic) PXTypeSelector *targetTypeSelector;
-
-/**
- * A class method used to merge multiple rule sets into a single rule set, taking specificity of each rule set into
- * account. The resulting rule set's selectors and specificity properties are undefined.
- *
- * @param ruleSets An array of rule sets to merge
- */
-+ (id)ruleSetWithMergedRuleSets:(NSArray *)ruleSets;
-
-/**
- * Add a selector to the list of selectors associated with this rule set
- *
- * @param selector The selector to add
- */
-- (void)addSelector:(id<PXSelector>)selector;
-
-/**
- * Add a declaration to the list of declarations associated with this rule set
- *
- * @param declaration The declaration to add
- */
-- (void)addDeclaration:(PXDeclaration *)declaration;
-
-/**
- * A predicate used to determine if this rule set contains a declaration for a given property name
- *