1 Star 0 Fork 344

seasky100 / awtk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
children_layouter_factory_t.md 4.58 KB
一键复制 编辑 原始数据 按行查看 历史
xianjimli 提交于 2020-03-17 10:48 . update docs

children_layouter_factory_t

概述

子控件布局算法工厂。

函数

函数名称 说明
children_layouter_factory 获取缺省的子控件布局算法工厂对象。
children_layouter_factory_create 创建子控件布局算法工厂对象。
children_layouter_factory_create_layouter 创建指定类型的子控件布局算法对象。
children_layouter_factory_destroy 析构并释放子控件布局算法工厂对象。
children_layouter_factory_register 注册子控件布局算法创建函数。
children_layouter_factory_set 设置缺省的子控件布局算法工厂对象。

children_layouter_factory 函数


  • 函数功能:

获取缺省的子控件布局算法工厂对象。

  • 函数原型:
children_layouter_factory_t* children_layouter_factory ();
  • 参数说明:
参数 类型 说明
返回值 children_layouter_factory_t* 返回子控件布局算法工厂对象。

children_layouter_factory_create 函数


  • 函数功能:

创建子控件布局算法工厂对象。

  • 函数原型:
children_layouter_factory_t* children_layouter_factory_create ();
  • 参数说明:
参数 类型 说明
返回值 children_layouter_factory_t* 返回子控件布局算法工厂对象。

children_layouter_factory_create_layouter 函数


  • 函数功能:

创建指定类型的子控件布局算法对象。

  • 函数原型:
children_layouter_t* children_layouter_factory_create_layouter (children_layouter_factory_t* factory, const char* type);
  • 参数说明:
参数 类型 说明
返回值 children_layouter_t* 返回子控件布局算法对象。
factory children_layouter_factory_t* 子控件布局算法工厂对象。
type const char* 类型。

children_layouter_factory_destroy 函数


  • 函数功能:

析构并释放子控件布局算法工厂对象。

  • 函数原型:
ret_t children_layouter_factory_destroy (children_layouter_factory_t* factory);
  • 参数说明:
参数 类型 说明
返回值 ret_t 返回RET_OK表示成功,否则表示失败。
factory children_layouter_factory_t* 子控件布局算法工厂对象。

children_layouter_factory_register 函数


  • 函数功能:

注册子控件布局算法创建函数。

  • 函数原型:
ret_t children_layouter_factory_register (children_layouter_factory_t* factory, const char* type, children_layouter_create_t create);
  • 参数说明:
参数 类型 说明
返回值 ret_t 返回RET_OK表示成功,否则表示失败。
factory children_layouter_factory_t* layouter工厂对象。
type const char* 子控件布局算法类型。
create children_layouter_create_t 子控件布局算法创建函数。

children_layouter_factory_set 函数


  • 函数功能:

设置缺省的子控件布局算法工厂对象。

  • 函数原型:
ret_t children_layouter_factory_set (children_layouter_factory_t* factory);
  • 参数说明:
参数 类型 说明
返回值 ret_t 返回RET_OK表示成功,否则表示失败。
factory children_layouter_factory_t* 子控件布局算法工厂对象。
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/seasky100/awtk.git
git@gitee.com:seasky100/awtk.git
seasky100
awtk
awtk
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891