/** * File: system_bar.h * Author: AWTK Develop Team * Brief: system_bar * * 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-12-03 Li XianJing created * */ #ifndef TK_SYSTEM_BAR_H #define TK_SYSTEM_BAR_H #include "base/window_base.h" BEGIN_C_DECLS /** * @class system_bar_t * @parent window_base_t * @annotation ["scriptable","design","widget","window"] * system\_bar窗口。 * * system\_bar窗口是一种特殊的窗口,独占LCD顶部区域,用来显示当前窗口的标题和关闭按钮等内容。 * *> system\_bar窗口需要在打开第一个应用程序窗口之前打开。 * * system_bar对两个子控件会做特殊处理: * * * 1.名为"title"的label控件,自动显示当前主窗口的name或text。 * * 2.名为"close"的button控件,点击之后向当前主窗口发送EVT\_REQUEST\_CLOSE\_WINDOW消息。 * *system\_bar\_t是[window\_base\_t](window_base_t.md)的子类控件, * window\_base\_t的函数均适用于system\_bar\_t控件。 * * 在xml中使用"system\_bar"标签创建system\_bar窗口。如: * * ```xml * * * *