forked from MiMo42/IJSVG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIJSVGParser.h
56 lines (44 loc) · 1.34 KB
/
IJSVGParser.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// IJSVGParser.h
// IconJar
//
// Created by Curtis Hard on 30/08/2014.
// Copyright (c) 2014 Curtis Hard. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "IJSVGForeignObject.h"
#import "IJSVGGroup.h"
#import "IJSVGPath.h"
#import "IJSVGUtils.h"
#import "IJSVGCommand.h"
#import "IJSVGColor.h"
#import "IJSVGTransform.h"
#import "IJSVGDef.h"
#import "IJSVGLinearGradient.h"
#import "IJSVGRadialGradient.h"
@class IJSVGParser;
@protocol IJSVGParserDelegate <NSObject>
@optional
- (BOOL)svgParser:(IJSVGParser *)svg
shouldHandleForeignObject:(IJSVGForeignObject *)foreignObject;
- (void)svgParser:(IJSVGParser *)svg
handleForeignObject:(IJSVGForeignObject *)foreignObject
document:(NSXMLDocument *)document;
@end
@interface IJSVGParser : IJSVGGroup {
NSRect viewBox;
@private
id<IJSVGParserDelegate> _delegate;
NSXMLDocument * _document;
}
@property ( nonatomic, readonly ) NSRect viewBox;
- (id)initWithFileURL:(NSURL *)aURL
delegate:(id<IJSVGParserDelegate>)delegate;
- (id)initWithFileURL:(NSURL *)aURL
encoding:(NSStringEncoding)encoding
delegate:(id<IJSVGParserDelegate>)delegate;;
+ (IJSVGParser *)groupForFileURL:(NSURL *)aURL;
+ (IJSVGParser *)groupForFileURL:(NSURL *)aURL
delegate:(id<IJSVGParserDelegate>)delegate;
- (NSSize)size;
@end