BaiduMap_IOSSDK_v6.6.2_Docs 6.6.2
载入中...
搜索中...
未找到
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
21
22NS_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
75NS_ASSUME_NONNULL_END
BMKTextFontType
文本绘制的字体类型 since 6.5.2
Definition BMKTextView.h:14
@ kBMKTextFontNormalBold
普通字体加粗
Definition BMKTextView.h:16
@ kBMKTextFontItalic
斜体
Definition BMKTextView.h:17
@ kBMKTextFontNormal
普通字体
Definition BMKTextView.h:15
@ kBMKTextFontItalicBold
斜体加粗
Definition BMKTextView.h:18
该类定义了一个用opengl绘制geometry的基类
Definition BMKGeometryView.h:14
文字覆盖物 since 6.5.2
Definition BMKText.h:15
该类用于定义文字覆盖物对应的View since 6.5.2
Definition BMKTextView.h:25
NSLineBreakMode textLineBreakMode
字符截断类型,默认:NSLineBreakByCharWrapping
Definition BMKTextView.h:59
BMKTextFontType textFontType
字体类型,默认:kBMKTextFontNormal
Definition BMKTextView.h:41
int endLevel
文字最大显示层级,默认22
Definition BMKTextView.h:65
CGFloat textParagraphSpacing
段间距,默认:2.0f
Definition BMKTextView.h:47
NSTextAlignment textAlignment
文字对齐方式,默认:NSTextAlignmentCenter
Definition BMKTextView.h:56
BOOL isClickable
是否可点击,默认YES
Definition BMKTextView.h:71
UIColor * backgroundColor
背景颜色
Definition BMKTextView.h:35
int textMaxLineWidth
文字的最大行宽
Definition BMKTextView.h:50
UIColor * textColor
字体颜色
Definition BMKTextView.h:44
CGFloat textLineSpacing
文字的行间距,默认:4.0f
Definition BMKTextView.h:53
int fontSize
字体大小,默认:12
Definition BMKTextView.h:38
int startLevel
文字最小显示层级, 默认4
Definition BMKTextView.h:62
float rotate
旋转角度,逆时针
Definition BMKTextView.h:68
BMKText * text
该View对应的文字覆盖物
Definition BMKTextView.h:32