LOTCompositionContainer.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // LOTCompositionContainer.h
  3. // Lottie
  4. //
  5. // Created by brandon_withrow on 7/18/17.
  6. // Copyright © 2017 Airbnb. All rights reserved.
  7. //
  8. #import "LOTLayerContainer.h"
  9. #import "LOTAssetGroup.h"
  10. @interface LOTCompositionContainer : LOTLayerContainer
  11. - (instancetype _Nonnull)initWithModel:(LOTLayer * _Nullable)layer
  12. inLayerGroup:(LOTLayerGroup * _Nullable)layerGroup
  13. withLayerGroup:(LOTLayerGroup * _Nullable)childLayerGroup
  14. withAssestGroup:(LOTAssetGroup * _Nullable)assetGroup;
  15. - (nullable NSArray *)keysForKeyPath:(nonnull LOTKeypath *)keypath;
  16. - (CGPoint)convertPoint:(CGPoint)point
  17. toKeypathLayer:(nonnull LOTKeypath *)keypath
  18. withParentLayer:(CALayer *_Nonnull)parent;
  19. - (CGRect)convertRect:(CGRect)rect
  20. toKeypathLayer:(nonnull LOTKeypath *)keypath
  21. withParentLayer:(CALayer *_Nonnull)parent;
  22. - (CGPoint)convertPoint:(CGPoint)point
  23. fromKeypathLayer:(nonnull LOTKeypath *)keypath
  24. withParentLayer:(CALayer *_Nonnull)parent;
  25. - (CGRect)convertRect:(CGRect)rect
  26. fromKeypathLayer:(nonnull LOTKeypath *)keypath
  27. withParentLayer:(CALayer *_Nonnull)parent;
  28. - (void)addSublayer:(nonnull CALayer *)subLayer
  29. toKeypathLayer:(nonnull LOTKeypath *)keypath;
  30. - (void)maskSublayer:(nonnull CALayer *)subLayer
  31. toKeypathLayer:(nonnull LOTKeypath *)keypath;
  32. @property (nonatomic, readonly, nonnull) NSArray<LOTLayerContainer *> *childLayers;
  33. @property (nonatomic, readonly, nonnull) NSDictionary *childMap;
  34. @end