BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

BMKTextView.h
浏览该文件的文档.
1 //
2 // BMKTextView.h
3 // MapComponent
4 //
5 // Created by zhangbaojin on 2022/3/3.
6 // Copyright © 2022 Baidu. All rights reserved.
7 //
8
9 #import "BMKGeometryView.h"
10 #import "BMKText.h"
11
13 enum BMKTextFontType
14 {
15 kBMKTextFontNormal = 0,
16 kBMKTextFontNormalBold,
17 kBMKTextFontItalic,
18 kBMKTextFontItalicBold
19 };
20 typedef enum BMKTextFontType BMKTextFontType;
21
22 NS_ASSUME_NONNULL_BEGIN
24 @interface BMKTextView : BMKGeometryView
25
29 - (nullable instancetype)initWithTextOverlay:(BMKText *)textOverlay;
30
32 @property (nonatomic, readonly) BMKText *text;
33
35 @property (nonatomic, strong) UIColor *backgroundColor;
36
38 @property (nonatomic, assign) int fontSize;
39
41 @property (nonatomic, assign) BMKTextFontType textFontType;
42
44 @property (nonatomic, strong) UIColor *textColor;
45
47 @property (nonatomic, assign) CGFloat textParagraphSpacing;
48
50 @property (nonatomic, assign) int textMaxLineWidth;
51
53 @property (nonatomic, assign) CGFloat textLineSpacing;
54
56 @property (nonatomic, assign) NSTextAlignment textAlignment;
57
59 @property (nonatomic, assign) NSLineBreakMode textLineBreakMode;
60
62 @property (nonatomic, assign) int startLevel;
63
65 @property (nonatomic, assign) int endLevel;
66
68 @property (nonatomic, assign) float rotate;
69
71 @property (assign, nonatomic) BOOL isClickable;
72
73 @end
74
75 NS_ASSUME_NONNULL_END
kBMKTextFontItalicBold
@ kBMKTextFontItalicBold
斜体加粗
Definition: BMKTextView.h:18
BMKTextView::textAlignment
NSTextAlignment textAlignment
文字对齐方式，默认：NSTextAlignmentCenter
Definition: BMKTextView.h:56
BMKGeometryView
该类定义了一个用opengl绘制geometry的基类
Definition: BMKGeometryView.h:14
BMKTextView
该类用于定义文字覆盖物对应的View since 6.5.2
Definition: BMKTextView.h:25
BMKTextView::textColor
UIColor * textColor
字体颜色
Definition: BMKTextView.h:44
kBMKTextFontNormal
@ kBMKTextFontNormal
普通字体
Definition: BMKTextView.h:15
BMKText
文字覆盖物 since 6.5.2
Definition: BMKText.h:15
kBMKTextFontNormalBold
@ kBMKTextFontNormalBold
普通字体加粗
Definition: BMKTextView.h:16
BMKTextView::textFontType
BMKTextFontType textFontType
字体类型，默认：kBMKTextFontNormal
Definition: BMKTextView.h:41
BMKText.h
BMKTextView::textLineBreakMode
NSLineBreakMode textLineBreakMode
字符截断类型，默认：NSLineBreakByCharWrapping
Definition: BMKTextView.h:59
kBMKTextFontItalic
@ kBMKTextFontItalic
斜体
Definition: BMKTextView.h:17
BMKTextView::textMaxLineWidth
int textMaxLineWidth
文字的最大行宽
Definition: BMKTextView.h:50
BMKTextView::text
BMKText * text
该View对应的文字覆盖物
Definition: BMKTextView.h:32
BMKTextView::rotate
float rotate
旋转角度，逆时针
Definition: BMKTextView.h:68
BMKTextView::backgroundColor
UIColor * backgroundColor
背景颜色
Definition: BMKTextView.h:35
BMKTextView::isClickable
BOOL isClickable
是否可点击，默认YES
Definition: BMKTextView.h:71
BMKTextView::textParagraphSpacing
CGFloat textParagraphSpacing
段间距，默认：2.0f
Definition: BMKTextView.h:47
BMKTextView::textLineSpacing
CGFloat textLineSpacing
文字的行间距，默认：4.0f
Definition: BMKTextView.h:53
BMKTextFontType
BMKTextFontType
文本绘制的字体类型 since 6.5.2
Definition: BMKTextView.h:14
BMKTextView::fontSize
int fontSize
字体大小，默认：12
Definition: BMKTextView.h:38
BMKTextView::endLevel
int endLevel
文字最大显示层级，默认22
Definition: BMKTextView.h:65
BMKTextView::startLevel
int startLevel
文字最小显示层级， 默认4
Definition: BMKTextView.h:62
BMKGeometryView.h