Files
IJSVG/source/IJSVGUnits.h
T
Curtis Hard 5a03e8c27c Added very basic support for Patterns
- Also added IJSVGUnit so that graidents know if to work out from the current bounds or not when creating the angle points
- Added IJSVGImage which is a wrapper around loading base64 encoded images
- Added IJSVGPattern which is based on IJSVGGroup and will draw a pattern inside a nodes clipped path
2016-05-29 11:30:07 +01:00

20 lines
393 B
Objective-C

//
// IJSVGUnits.h
// IJSVGExample
//
// Created by Curtis Hard on 27/05/2016.
// Copyright © 2016 Curtis Hard. All rights reserved.
//
#import <Foundation/Foundation.h>
@class IJSVGPath;
typedef struct {
CGFloat value;
BOOL isPercentage;
} IJSVGUnit;
IJSVGUnit IJSVGUnitFromString(NSString * string);
CGFloat IJSVGFloatFromUnit(IJSVGUnit unit, IJSVGPath * path, BOOL width);