2015-03-23 15:07:33 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2015-01-29 17:10:49 -08:00
|
|
|
|
|
|
|
#import "RCTShadowView.h"
|
|
|
|
|
|
|
|
extern NSString *const RCTIsHighlightedAttributeName;
|
|
|
|
extern NSString *const RCTReactTagAttributeName;
|
|
|
|
|
|
|
|
@interface RCTShadowText : RCTShadowView
|
|
|
|
|
|
|
|
@property (nonatomic, strong) UIColor *color;
|
|
|
|
@property (nonatomic, copy) NSString *fontFamily;
|
|
|
|
@property (nonatomic, assign) CGFloat fontSize;
|
|
|
|
@property (nonatomic, copy) NSString *fontWeight;
|
2015-03-25 18:19:28 -07:00
|
|
|
@property (nonatomic, copy) NSString *fontStyle;
|
2015-01-29 17:10:49 -08:00
|
|
|
@property (nonatomic, assign) BOOL isHighlighted;
|
2015-05-12 00:25:08 -07:00
|
|
|
@property (nonatomic, assign) CGFloat letterSpacing;
|
2015-01-29 17:10:49 -08:00
|
|
|
@property (nonatomic, assign) CGFloat lineHeight;
|
2015-05-26 18:39:37 -07:00
|
|
|
@property (nonatomic, assign) NSUInteger numberOfLines;
|
2015-01-29 17:10:49 -08:00
|
|
|
@property (nonatomic, assign) CGSize shadowOffset;
|
|
|
|
@property (nonatomic, assign) NSTextAlignment textAlign;
|
2015-05-26 18:39:37 -07:00
|
|
|
@property (nonatomic, strong) UIColor *textBackgroundColor;
|
|
|
|
@property (nonatomic, assign) NSWritingDirection writingDirection;
|
2015-03-26 06:32:01 -07:00
|
|
|
|
2015-05-26 18:39:37 -07:00
|
|
|
- (NSTextStorage *)buildTextStorageForWidth:(CGFloat)width;
|
2015-05-29 10:27:14 -07:00
|
|
|
- (void)recomputeText;
|
2015-01-29 17:10:49 -08:00
|
|
|
|
|
|
|
@end
|