/** * File: label.h * Author: AWTK Develop Team * Brief: label * * Copyright (c) 2018 - 2023 Guangzhou ZHIYUAN Electronics Co.,Ltd. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * License file for more details. * */ /** * History: * ================================================================ * 2018-02-06 Li XianJing created * */ #ifndef TK_LABEL_H #define TK_LABEL_H #include "base/widget.h" BEGIN_C_DECLS /** * @class label_t * @parent widget_t * @annotation ["scriptable","design","widget"] * * 文本控件。用于显示一行或多行文本。 * * 文本控件不会根据文本的长度自动换行,只有文本内容包含换行符时才会换行。 * * 如需自动换行请使用[rich\_text\_t](rich_text_t.md)控件。 * * label\_t是[widget\_t](widget_t.md)的子类控件,widget\_t的函数均适用于label\_t控件。 * * 在xml中使用"label"标签创建文本控件。如: * * ```xml *