ASTextKitRenderer+TextChecking.h 999 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // ASTextKitRenderer+TextChecking.h
  3. // AsyncDisplayKit
  4. //
  5. // Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  6. // This source code is licensed under the BSD-style license found in the
  7. // LICENSE file in the root directory of this source tree. An additional grant
  8. // of patent rights can be found in the PATENTS file in the same directory.
  9. //
  10. #import <AsyncDisplayKit/ASTextKitRenderer.h>
  11. /**
  12. Application extensions to NSTextCheckingType. We're allowed to do this (see NSTextCheckingAllCustomTypes).
  13. */
  14. static uint64_t const ASTextKitTextCheckingTypeEntity = 1ULL << 33;
  15. static uint64_t const ASTextKitTextCheckingTypeTruncation = 1ULL << 34;
  16. @class ASTextKitEntityAttribute;
  17. @interface ASTextKitTextCheckingResult : NSTextCheckingResult
  18. @property (nonatomic, strong, readonly) ASTextKitEntityAttribute *entityAttribute;
  19. @end
  20. @interface ASTextKitRenderer (TextChecking)
  21. - (NSTextCheckingResult *)textCheckingResultAtPoint:(CGPoint)point;
  22. @end