RCTConvert+ART.h 859 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <QuartzCore/QuartzCore.h>
  8. #import <React/RCTConvert.h>
  9. #import "ARTBrush.h"
  10. #import "ARTCGFloatArray.h"
  11. #import "ARTTextFrame.h"
  12. @interface RCTConvert (ART)
  13. + (CGPathRef)CGPath:(id)json CF_RETURNS_NOT_RETAINED;
  14. + (CTTextAlignment)CTTextAlignment:(id)json;
  15. + (ARTTextFrame)ARTTextFrame:(id)json;
  16. + (ARTCGFloatArray)ARTCGFloatArray:(id)json;
  17. + (ARTBrush *)ARTBrush:(id)json;
  18. + (CGPoint)CGPoint:(id)json offset:(NSUInteger)offset;
  19. + (CGRect)CGRect:(id)json offset:(NSUInteger)offset;
  20. + (CGColorRef)CGColor:(id)json offset:(NSUInteger)offset CF_RETURNS_NOT_RETAINED;
  21. + (CGGradientRef)CGGradient:(id)json offset:(NSUInteger)offset CF_RETURNS_NOT_RETAINED;
  22. @end