\doxysection{BMKBase\+UIView.\+h}
\hypertarget{_b_m_k_base_u_i_view_8h_source}{}\label{_b_m_k_base_u_i_view_8h_source}\index{BaiduMapAPI\_Map.framework/Headers/BMKBaseUIView.h@{BaiduMapAPI\_Map.framework/Headers/BMKBaseUIView.h}}
\mbox{\hyperlink{_b_m_k_base_u_i_view_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{//}}
\DoxyCodeLine{00002\ \textcolor{comment}{//\ \ BMKBaseUIView.h}}
\DoxyCodeLine{00003\ \textcolor{comment}{//\ \ MapComponent}}
\DoxyCodeLine{00004\ \textcolor{comment}{//}}
\DoxyCodeLine{00005\ \textcolor{comment}{//\ \ Created\ by\ zhaoxiangru\ on\ 2024/3/12.}}
\DoxyCodeLine{00006\ \textcolor{comment}{//\ \ Copyright\ ©\ 2024\ Baidu.\ All\ rights\ reserved.}}
\DoxyCodeLine{00007\ \textcolor{comment}{//}}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#import\ <Foundation/Foundation.h>}}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00011\ NS\_ASSUME\_NONNULL\_BEGIN}
\DoxyCodeLine{00016\ \textcolor{keyword}{typedef}\ enum\ :\ NSUInteger\ \{}
\DoxyCodeLine{00017\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_adcded91277c965cf51d9099c2935c372ac731ae67d37600a55743a6b444a08e5c}{BMKVisibilityVisible}}\ \ \ \ \ =\ \ (0x1\ <<\ 0),\ \ \textcolor{comment}{//\ 可见}}
\DoxyCodeLine{00018\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_adcded91277c965cf51d9099c2935c372a903e112f7acf7b0d7dff4c44c6a99ff9}{BMKVisibilityInvisible}}\ \ \ =\ \ (0x1\ <<\ 1),\ \ \textcolor{comment}{//\ 不可见，但占用空间区域\ (暂不支持)}}
\DoxyCodeLine{00019\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_adcded91277c965cf51d9099c2935c372a7fc71c082254bfadc091176782271d10}{BMKVisibilityGone}}\ \ \ \ \ \ \ \ =\ \ (0x1\ <<\ 2),\ \ \textcolor{comment}{//\ 不可见，也不占用空间区域}}
\DoxyCodeLine{00020\ \}\ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_adcded91277c965cf51d9099c2935c372}{BMKVisibility}};}
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00025\ \textcolor{keyword}{typedef}\ enum\ :\ NSUInteger\ \{}
\DoxyCodeLine{00026\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008af46747bd2cea7b9920d1f23752335ad1}{BMKGravityLeft}}\ \ \ \ \ \ \ \ \ \ \ \ \ =\ (0x1\ <<\ 0),\ \ \ \ \ }
\DoxyCodeLine{00027\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008ab86c7ce4268820135c30643a6d5b9c0f}{BMKGravityTop}}\ \ \ \ \ \ \ \ \ \ \ \ \ \ =\ (0x1\ <<\ 1),\ \ \ \ \ }
\DoxyCodeLine{00028\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008ac87daba7fd4ef2e3a16648891873aa27}{BMKGravityRight}}\ \ \ \ \ \ \ \ \ \ \ \ =\ (0x1\ <<\ 2),\ \ \ \ \ }
\DoxyCodeLine{00029\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008addb03a2f6579d0716c3fee43688f0b1f}{BMKGravityBottom}}\ \ \ \ \ \ \ \ \ \ \ =\ (0x1\ <<\ 3),\ \ \ \ \ }
\DoxyCodeLine{00030\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008ac1fbf9a10991ba683637e1237d747920}{BMKGravityCenterHorizontal}}\ =\ (0x1\ <<\ 4),\ \ \ \ \ }
\DoxyCodeLine{00031\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008ac3816da83a01db595bc3d8d4e9b0013f}{BMKGravityCenterVertical}}\ \ \ =\ (0x1\ <<\ 5),\ \ \ \ \ }
\DoxyCodeLine{00032\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008a8a873c4b99689f0e499b057afe92d570}{BMKGravityCenter}}\ \ \ \ \ \ \ \ \ \ \ =\ (\mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008ac1fbf9a10991ba683637e1237d747920}{BMKGravityCenterHorizontal}}\ |\ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008ac3816da83a01db595bc3d8d4e9b0013f}{BMKGravityCenterVertical}}),}
\DoxyCodeLine{00033\ \ \ \ \ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008a994162d6da453d1e212690f2603d06e8}{BMKGravityBottomHCenter}}\ \ \ \ =\ (\mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008addb03a2f6579d0716c3fee43688f0b1f}{BMKGravityBottom}}\ |\ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008ac1fbf9a10991ba683637e1237d747920}{BMKGravityCenterHorizontal}}),}
\DoxyCodeLine{00034\ \}\ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008}{BMKGravityType}};}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{@interface\ }\mbox{\hyperlink{interface_b_m_k_base_u_i_view}{BMKBaseUIView}}\ :\ NSObject}
\DoxyCodeLine{00037\ \textcolor{keyword}{@property}\ (nonatomic,\ assign)\ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_adcded91277c965cf51d9099c2935c372}{BMKVisibility}}\ \ \ \mbox{\hyperlink{interface_b_m_k_base_u_i_view_ac3015d40218bc2643c73ba68a91f2372}{visibility}};\ }
\DoxyCodeLine{00038\ \textcolor{comment}{//\ 设置UI宽高，不设置按内容自适应（按图片或字体）；label也可以只设置width，代表按这个最大宽度适配多行文字，最多20行}}
\DoxyCodeLine{00039\ \textcolor{keyword}{@property}\ (nonatomic,\ assign)\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{interface_b_m_k_base_u_i_view_a5fb9a63598dc264b811959318c214033}{width}};}
\DoxyCodeLine{00040\ \textcolor{keyword}{@property}\ (nonatomic,\ assign)\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{interface_b_m_k_base_u_i_view_a40990ff36268677e71fcfdf844ecf995}{height}};}
\DoxyCodeLine{00041\ \textcolor{comment}{//\ 一个基本条件：只有父容器的宽高大于内部控件宽高，才能体现出gravity\ 居左\ 局右\ 局上\ 局下，否则父容器默认是自适应的，是子控件把容器充满的，就体现不出gravity}}
\DoxyCodeLine{00042\ \textcolor{comment}{//\ VerticalLayout默认是左上，只能对一个UI的底部对齐有效；只能对一个UI的垂直居中有效；对多个UI局右可以生效（即靠右对齐），多个UI局中垂直可以生效（即水平中线对齐）}}
\DoxyCodeLine{00043\ \textcolor{comment}{//\ HorizontalLayout默认是左上，只能对一个UI的局右有效；只能对一个UI的水平局中有效；多个UI局下有效（即水平底部对齐），多个UI水平局中有效（即整体布局垂直中线对齐）}}
\DoxyCodeLine{00044\ \textcolor{keyword}{@property}\ (nonatomic,\ assign)\ \mbox{\hyperlink{_b_m_k_base_u_i_view_8h_acd4c3ce6eaa30c9126a045484a65e008}{BMKGravityType}}\ \mbox{\hyperlink{interface_b_m_k_base_u_i_view_a6c7c42c3f6017a4feff512e383ad5cad}{gravity}};\ \ \ \ \ }
\DoxyCodeLine{00045\ \textcolor{keyword}{@property}\ (nonatomic,\ assign)\ UIEdgeInsets\ \mbox{\hyperlink{interface_b_m_k_base_u_i_view_aa9ab557448fb11ea4ac1b55f497bd380}{padding}};\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00046\ \textcolor{keyword}{@property}\ (nonatomic,\ assign)\ UIEdgeInsets\ \mbox{\hyperlink{interface_b_m_k_base_u_i_view_aa7dfdfea1cfb7ae67db59f704e2dc945}{margin}};\ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00047\ \textcolor{keyword}{@property}\ (nonatomic,\ assign)\ BOOL\ \mbox{\hyperlink{interface_b_m_k_base_u_i_view_abacaf78c797f0616b31c09d42133ff36}{clickable}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00049\ \textcolor{comment}{//\ 背景图片，防止图片变形使用-\/setBackgroundImage：capInsets：设置背景图片}}
\DoxyCodeLine{00050\ \textcolor{keyword}{@property}\ (nonatomic,\ strong)\ UIImage\ *\mbox{\hyperlink{interface_b_m_k_base_u_i_view_ab8bfdf4d6ae94aef5ac29a0aabc3640d}{background}};}
\DoxyCodeLine{00051\ \textcolor{comment}{//\ 背景图片混合颜色，需要配合背景图片使用，单独设置无效；配合白色或部分透明背景图片使用，可以实现背景颜色自定义或圆角效果}}
\DoxyCodeLine{00052\ \textcolor{keyword}{@property}\ (nonatomic,\ strong)\ UIColor\ *\mbox{\hyperlink{interface_b_m_k_base_u_i_view_a51872e7ba2888591a5b63f44c682415e}{backgroundColor}};}
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00057\ -\/\ (void)setBackgroundImage:(UIImage\ *)image\ capInsets:(UIEdgeInsets)capInsets;}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00060\ -\/\ (void)setTarget:(nullable\ \textcolor{keywordtype}{id})target\ action:(\textcolor{keywordtype}{SEL})clickAction;}
\DoxyCodeLine{00061\ \textcolor{keyword}{@end}}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00063\ NS\_ASSUME\_NONNULL\_END}

\end{DoxyCode}
