ConverterSVGToCALayer.h 585 B

123456789101112131415
  1. #import <Foundation/Foundation.h>
  2. #import <QuartzCore/QuartzCore.h>
  3. @protocol ConverterSVGToCALayer < NSObject >
  4. /*!
  5. NB: the returned layer has - as its "name" property - the "identifier" property of the SVGElement that created it;
  6. but that can be overwritten by applications (for valid reasons), so we ADDITIONALLY store the identifier into a
  7. custom key - kSVGElementIdentifier - on the CALayer. Because it's a custom key, it's (almost) guaranteed not to be
  8. overwritten / altered by other application code
  9. */
  10. - (CALayer *) newLayer;
  11. - (void)layoutLayer:(CALayer *)layer;
  12. @end