代码拉取完成,页面将自动刷新
column。一个简单的容器控件,垂直排列其子控件。
它本身不提供布局功能,仅提供具有语义的标签,让xml更具有可读性。 子控件的布局可用layout_children属性指定。 请参考布局参数。
column_t是widget_t的子类控件,widget_t的函数均适用于column_t控件。
在xml中使用"column"标签创建column。如:
<column x="0" y="0" w="100%" h="100%" children_layout="default(c=1,r=0)">
<button name="open:basic" text="Basic"/>
<button name="open:button" text="Buttons"/>
<button name="open:edit" text="Edits"/>
<button name="open:keyboard" text="KeyBoard"/>
</column>
可用通过style来设置控件的显示风格,如背景颜色等。如:
<style name="default" border_color="#a0a0a0">
<normal bg_color="#f0f0f0" />
</style>
函数名称 | 说明 |
---|---|
column_cast | 转换为column对象(供脚本语言使用)。 |
column_create | 创建column对象 |
转换为column对象(供脚本语言使用)。
widget_t* column_cast (widget_t* widget);
参数 | 类型 | 说明 |
---|---|---|
返回值 | widget_t* | column对象。 |
widget | widget_t* | column对象。 |
创建column对象
widget_t* column_create (widget_t* parent, xy_t x, xy_t y, wh_t w, wh_t h);
参数 | 类型 | 说明 |
---|---|---|
返回值 | widget_t* | 对象。 |
parent | widget_t* | 父控件 |
x | xy_t | x坐标 |
y | xy_t | y坐标 |
w | wh_t | 宽度 |
h | wh_t | 高度 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。