/* * File: clip_view.h * Author: AWTK Develop Team * Brief: clip view * * 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: * ================================================================ * 2019-12-12 Lou ZhiMing created * */ #ifndef TK_CLIP_VIEW_H #define TK_CLIP_VIEW_H #include "base/widget.h" BEGIN_C_DECLS /** * @class clip_view_t * @parent widget_t * @annotation ["scriptable","design","widget"] * 一个裁剪子控件的容器控件。 * * 它本身不提供布局功能,仅提供具有语义的标签,让xml更具有可读性。 * 子控件的布局可用layout\_children属性指定。 * 请参考[布局参数](https://github.com/zlgopen/awtk/blob/master/docs/layout.md)。 * * clip\_view\_t是[widget\_t](widget_t.md)的子类控件,widget\_t的函数均适用于clip\_view\_t控件。 * * 在xml中使用"clip_view"标签创建clip_view,在clip_view控件下的所有子控件都会被裁剪。如下button控件会被裁剪,无法画出clip_view控件 : * * ```xml * *