BaiduMap_IOSSDK_v6.6.1_Docs
全部  函数 变量 属性
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
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
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
BMKText
文字覆盖物 since 6.5.2
Definition: BMKText.h:15
BMKTextView::textFontType
BMKTextFontType textFontType
字体类型,默认:kBMKTextFontNormal
Definition: BMKTextView.h:41
BMKTextView::textLineBreakMode
NSLineBreakMode textLineBreakMode
字符截断类型,默认:NSLineBreakByCharWrapping
Definition: BMKTextView.h:59
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
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