同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Defines a text adapter, which implements UILabel instance construction and supports text data and continuous integer data.
Since:
1.0
Version:
1.0
TextAdapter () |
A constructor used to create a UILabel instance. |
~TextAdapter () |
A destructor used to delete the UILabel instance. |
UIView * Obtains a UILabel instance to convert adapter data into another UILabel instance. |
|
Sets the UILabel adapter data, which is a string linked list. |
|
SetData (int16_t start, int16_t end) |
Sets continuously increasing data. For example, if you need to set data 0, 1, 2, 3, 4, use this function to set start to 0 and end to 4. |
SetFontId (uint8_t fontId) |
|
GetFontId () const |
|
SetFont (const char *name, uint8_t size) |
|
GetStyle () |
Style & Obtains the UILabel adapter style. |
GetCount () override |
Obtains the data size of the UILabel adapter. |
SetWidth (int16_t width) |
Sets the width of UILabel constructed by the adapter. |
SetDirect (UITextLanguageDirect direct) |
Sets the direction of the UILabel constructed by the adapter. |
SetHeight (int16_t height) |
Sets the height of the UILabel constructed by the adapter. |
SetLineBreakMode (const uint8_t lineBreakMode) |
Sets the LineBreakMode attribute of UILabel constructed by the adapter. For details about the values of LineBreakMode, see LINE_BREAK_ADAPT, LINE_BREAK_WRAP, LINE_BREAK_ELLIPSIS, and LINE_BREAK_MARQUEE. |
SetOnClickListener (UIView::OnClickListener *clickListener) |
Sets the callback function to be invoked upon a click event. |
SetTextFormatter (TextFormatter *formatter) |
|
A constructor used to create an AbstractAdapter instance. |
|
A destructor used to delete the AbstractAdapter instance. |
|
operator new (size_t size) |
|
operator delete (void *p) |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。