BaiduMap_IOSSDK_v6.6.6_Docs 6.6.6

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