Guest User

Untitled

a guest
Jan 19th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. @protocol CALayerDelegate <NSObject>
  2. @optional
  3.  
  4. /* If defined, called by the default implementation of the -display
  5. * method, in which case it should implement the entire display
  6. * process (typically by setting the `contents' property). */
  7.  
  8. - (void)displayLayer:(CALayer *)layer;
  9.  
  10. /* If defined, called by the default implementation of -drawInContext: */
  11.  
  12. - (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx;
  13.  
  14. /* If defined, called by the default implementation of the -display method.
  15. * Allows the delegate to configure any layer state affecting contents prior
  16. * to -drawLayer:InContext: such as `contentsFormat' and `opaque'. It will not
  17. * be called if the delegate implements -displayLayer. */
  18.  
  19. - (void)layerWillDraw:(CALayer *)layer
  20. CA_AVAILABLE_STARTING (10.12, 10.0, 10.0, 3.0);
  21.  
  22. /* Called by the default -layoutSublayers implementation before the layout
  23. * manager is checked. Note that if the delegate method is invoked, the
  24. * layout manager will be ignored. */
  25.  
  26. - (void)layoutSublayersOfLayer:(CALayer *)layer;
  27.  
  28. /* If defined, called by the default implementation of the
  29. * -actionForKey: method. Should return an object implementating the
  30. * CAAction protocol. May return 'nil' if the delegate doesn't specify
  31. * a behavior for the current event. Returning the null object (i.e.
  32. * '[NSNull null]') explicitly forces no further search. (I.e. the
  33. * +defaultActionForKey: method will not be called.) */
  34.  
  35. - (nullable id<CAAction>)actionForLayer:(CALayer *)layer forKey:(NSString *)event;
  36.  
  37. @end
Add Comment
Please, Sign In to add comment