forked from pocketsvg/PocketSVG
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPocketSVG.h
executable file
·40 lines (33 loc) · 1.06 KB
/
PocketSVG.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#ifdef __cplusplus
extern "C" {
#endif
/*!
* Returns an array of CGPathRefs contained within the passed SVG string.
*
* @param svgString The string containing the SVG formatted path.
* @param attributes An optional pointer for storing a map table containing SVG attributes for the paths
*
* @return An array of CGPathRef objects or nil if none are found
*/
NSArray *CGPathsFromSVGString(NSString *svgString, NSMapTable **attributes);
/*!
* Returns SVG representing `paths`
*
* @param paths An array of CGPathRefs to construct the SVG from
* @param attributes An optional map table of SVG attributes for the paths
*
* @return SVG representing `paths`
*/
NSString *SVGStringFromCGPaths(NSArray *paths, NSMapTable *attributes);
@interface NSValue (PocketSVG)
+ (instancetype)svg_valueWithCGAffineTransform:(CGAffineTransform)aTransform;
- (CGAffineTransform)svg_CGAffineTransformValue;
@end
#import "SVGBezierPath.h"
#import "SVGImageView.h"
#import "SVGLayer.h"
#ifdef __cplusplus
};
#endif