BaiduMap_IOSSDK_v7.2.0_Docs 7.2.0

BMKTextStyle.h
浏览该文件的文档.
1 //
2 // BMKTextStyle.h
3 // MapComponent
4 //
5 // Created by zhaoxiangru on 2024/3/12.
6 // Copyright © 2024 Baidu. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <BaiduMapAPI_Base/BMKTypes.h>
11
12 NS_ASSUME_NONNULL_BEGIN
13 typedef enum : NSUInteger {
14 BMKFontNormal,
15 BMKFontBold,
16 } BMKFontOption;
17
19 @interface BMKTextStyle : NSObject
21 @property(nonatomic, strong) UIColor *textColor;
23 @property(nonatomic, assign) BMKFontOption fontOption;
25 @property (nonatomic, assign) BMKOverlaySizeType fontType;
28 @property(nonatomic, assign) int fontSize;
30 @property(nonatomic, assign) int borderWidth;
32 @property(nonatomic, strong) UIColor *borderColor;
33
34 @end
35
36 NS_ASSUME_NONNULL_END
BMKFontNormal
@ BMKFontNormal
Definition: BMKTextStyle.h:14
BMKTextStyle::borderColor
UIColor * borderColor
描边颜色，默认白色
Definition: BMKTextStyle.h:32
BMKOverlaySizeType
BMKOverlaySizeType
overlay大小的类型
Definition: BMKTypes.h:23
BMKTextStyle::textColor
UIColor * textColor
文本颜色，默认黑色
Definition: BMKTextStyle.h:21
BMKTextStyle
文本样式
Definition: BMKTextStyle.h:20
BMKTextStyle::fontOption
BMKFontOption fontOption
字体样式，默认BMKFontNormal
Definition: BMKTextStyle.h:23
BMKTextStyle::fontSize
int fontSize
Definition: BMKTextStyle.h:28
BMKFontBold
@ BMKFontBold
Definition: BMKTextStyle.h:15
BMKTextStyle::fontType
BMKOverlaySizeType fontType
字体大小类型，默认为BMKOverlaySizeAdapt
Definition: BMKTextStyle.h:25
BMKFontOption
BMKFontOption
Definition: BMKTextStyle.h:13
BMKTextStyle::borderWidth
int borderWidth
描边宽度，默认0
Definition: BMKTextStyle.h:30