TencentMapSDK_iOS_3D_v6.7.0

QText.h
1 //
2 // QText.h
3 // QMapKit
4 //
5 // Created by fan on 2019/8/9.
6 // Copyright © 2019 tencent. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
10 #import <CoreLocation/CLLocation.h>
11
12 NS_ASSUME_NONNULL_BEGIN
13
19 typedef enum QRTextPriority {
20 QTextPriority_Normal,
21 QTextPriority_High
22 } QTextPriority;
23
27 @interface QTextStyle : NSObject
28
32 @property (nonatomic, strong) UIColor *textColor;
33
37 @property (nonatomic, strong) UIColor *strokeColor;
38
42 @property (nonatomic, assign) CGFloat fontSize;
43
49 @property (nonatomic, assign) QTextPriority priority;
50
51 @end
52
56 @interface QSegmentText : NSObject
57
61 @property (nonatomic, assign) int startIndex;
62
66 @property (nonatomic, assign) int endIndex;
67
71 @property (nonatomic, copy ) NSString *name;
72
73 @end
74
75
82 @interface QText : NSObject
83
87 @property (nonatomic, strong) QTextStyle *style;
88
92 @property (nonatomic, readonly) NSArray<QSegmentText *> *segments;
93
101 - (instancetype)initWithSegments:(NSArray<QSegmentText *> *)segments;
102
103 @end
104
105 NS_ASSUME_NONNULL_END
QTextStyle::fontSize
CGFloat fontSize
字的字号. 默认14
Definition: QText.h:42
QTextStyle
文本信息的显示样式
Definition: QText.h:28
QTextStyle::textColor
UIColor * textColor
字的颜色
Definition: QText.h:32
QTextStyle::priority
QTextPriority priority
字的优先级。当多个文本间有碰撞时更高的优先显示. 默认为QTextPriority_High.
Definition: QText.h:49
QSegmentText
代表单段显示的文本内容
Definition: QText.h:57
QText
此类用于显示文本信息, 层级与POI label相同 @notes 需保证最上层显示的文本信息中QTextStyle priority为QTextPriority_High 以及对应的overlayvi...
Definition: QText.h:83
QTextStyle::strokeColor
UIColor * strokeColor
字的描边色
Definition: QText.h:37