newsmemory-ios-sdk/Frameworks/RNSVG.xcframework/ios-arm64/Headers/RNSVGLength.h

33 lines
757 B
C
Raw Normal View History

2024-11-20 14:28:34 +00:00
#import "RNSVGUIKit.h"
2024-05-02 15:08:24 +00:00
#ifndef RNSVGLength_h
#define RNSVGLength_h
// https://www.w3.org/TR/SVG/types.html#InterfaceSVGLength
typedef CF_ENUM(unsigned short, RNSVGLengthUnitType) {
2024-11-20 14:28:34 +00:00
SVG_LENGTHTYPE_UNKNOWN,
SVG_LENGTHTYPE_NUMBER,
SVG_LENGTHTYPE_PERCENTAGE,
SVG_LENGTHTYPE_EMS,
SVG_LENGTHTYPE_EXS,
SVG_LENGTHTYPE_PX,
SVG_LENGTHTYPE_CM,
SVG_LENGTHTYPE_MM,
SVG_LENGTHTYPE_IN,
SVG_LENGTHTYPE_PT,
SVG_LENGTHTYPE_PC,
2024-05-02 15:08:24 +00:00
};
@interface RNSVGLength : NSObject
@property (nonatomic, assign) CGFloat value;
@property (nonatomic, assign) RNSVGLengthUnitType unit;
2024-11-20 14:28:34 +00:00
+ (instancetype)lengthWithNumber:(CGFloat)number;
+ (instancetype)lengthWithString:(NSString *)lengthString;
- (BOOL)isEqualTo:(RNSVGLength *)other;
2024-05-02 15:08:24 +00:00
@end
#endif /* RNSVGLength_h */