CALayerWithChildHitTest.h 806 B

123456789101112131415161718192021
  1. #import <Foundation/Foundation.h>
  2. #import <QuartzCore/QuartzCore.h>
  3. #import "CALayerWithClipRender.h"
  4. /*!
  5. * Overrides Apple's CALayer purely to change one method, so that hit-testing
  6. * is done by checking whether the hit point lies:
  7. *
  8. * "inside ANY of my child sub-layers (some of which have over-ridden hit-testing too)"
  9. *
  10. * This implementation is used by SVGGElement (for obvious reasons!)
  11. *
  12. * This is more useful than Apple's default implementation, but it might cause unexpected
  13. * problems in other code (not that I'm aware of any - this override appears to be a common
  14. * implementation, c.f. http://stackoverflow.com/questions/2944064/hit-testing-with-calayer-using-the-alpha-properties-of-the-calayer-contents
  15. */
  16. @interface CALayerWithChildHitTest : CALayerWithClipRender {
  17. }
  18. @end