Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @protocol CALayerDelegate <NSObject>
- @optional
- /* If defined, called by the default implementation of the -display
- * method, in which case it should implement the entire display
- * process (typically by setting the `contents' property). */
- - (void)displayLayer:(CALayer *)layer;
- /* If defined, called by the default implementation of -drawInContext: */
- - (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx;
- /* If defined, called by the default implementation of the -display method.
- * Allows the delegate to configure any layer state affecting contents prior
- * to -drawLayer:InContext: such as `contentsFormat' and `opaque'. It will not
- * be called if the delegate implements -displayLayer. */
- - (void)layerWillDraw:(CALayer *)layer
- CA_AVAILABLE_STARTING (10.12, 10.0, 10.0, 3.0);
- /* Called by the default -layoutSublayers implementation before the layout
- * manager is checked. Note that if the delegate method is invoked, the
- * layout manager will be ignored. */
- - (void)layoutSublayersOfLayer:(CALayer *)layer;
- /* If defined, called by the default implementation of the
- * -actionForKey: method. Should return an object implementating the
- * CAAction protocol. May return 'nil' if the delegate doesn't specify
- * a behavior for the current event. Returning the null object (i.e.
- * '[NSNull null]') explicitly forces no further search. (I.e. the
- * +defaultActionForKey: method will not be called.) */
- - (nullable id<CAAction>)actionForLayer:(CALayer *)layer forKey:(NSString *)event;
- @end
Add Comment
Please, Sign In to add comment