2018-05-07 18:58:06 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-05-07 18:58:06 -07:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
#import <fabric/attributedstring/AttributedString.h>
|
|
|
|
#import <fabric/attributedstring/ParagraphAttributes.h>
|
2018-10-09 16:25:13 -07:00
|
|
|
#import <fabric/core/LayoutConstraints.h>
|
|
|
|
#import <fabric/graphics/Geometry.h>
|
2018-05-07 18:58:06 -07:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
/**
|
|
|
|
* iOS-specific TextLayoutManager
|
|
|
|
*/
|
|
|
|
@interface RCTTextLayoutManager : NSObject
|
|
|
|
|
2018-10-09 16:25:13 -07:00
|
|
|
- (facebook::react::Size)
|
|
|
|
measureWithAttributedString:
|
|
|
|
(facebook::react::AttributedString)attributedString
|
|
|
|
paragraphAttributes:
|
|
|
|
(facebook::react::ParagraphAttributes)paragraphAttributes
|
|
|
|
layoutConstraints:
|
|
|
|
(facebook::react::LayoutConstraints)layoutConstraints;
|
2018-05-07 18:58:06 -07:00
|
|
|
|
|
|
|
- (void)drawAttributedString:(facebook::react::AttributedString)attributedString
|
2018-10-09 16:25:13 -07:00
|
|
|
paragraphAttributes:
|
|
|
|
(facebook::react::ParagraphAttributes)paragraphAttributes
|
2018-05-07 18:58:06 -07:00
|
|
|
frame:(CGRect)frame;
|
|
|
|
|
2018-10-09 16:25:13 -07:00
|
|
|
- (facebook::react::SharedShadowNode)
|
|
|
|
getParentShadowNodeWithAttributeString:
|
|
|
|
(facebook::react::AttributedString)attributedString
|
|
|
|
paragraphAttributes:
|
|
|
|
(facebook::react::ParagraphAttributes)
|
|
|
|
paragraphAttributes
|
|
|
|
frame:(CGRect)frame
|
|
|
|
atPoint:(CGPoint)point;
|
2018-09-10 11:19:28 -07:00
|
|
|
|
2018-05-07 18:58:06 -07:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|