void (* Action)(AutoTree arg1, AutoTree arg2);
UI Action Confirm Block
AutoTree text(char *text);
UI Item: Display given text
AutoTree label(char *text);
UI Item: Display given text
AutoTree labeli(long n);
UI Item: Display given integer
AutoTree labelf(double n);
UI Item: Display given double
AutoTree input(char *placeHolder);
UI Item: Display Input Field
AutoTree inputa(char *placeHolder, Action action);
UI Item: Display Input Field, When text changed call action
AutoTree button(char *text, Action action);
UI Item: Display a button, action pointer will call on click time
AutoTree spacer();
UI Item: Fill the x or y axis space
AutoTree spacerm(double minSpace);
UI Item: Fill the x or y axis space, and given a minium fill size if more than one spacer in same direction
AutoTree vstack(AutoTree mutating);
UI Item: A container that arrange sub items in y-axis
AutoTree hstack(AutoTree mutating);
UI Item: A container that arrange sub items in x-axis
AutoTree zstack(AutoTree mutating);
UI Item: A container that arrange sub items in z-axis
AutoTree list(AutoTree mutating);
UI Item: A container list that arrange sub items in y-axis
AutoTree component(AutoTree mutating);
UI Component: The container that belongs to item and belongs to the component. In the Action function, the root parameter is the first root component element that triggers the Action.
void (* Action)(AutoTree arg1, AutoTree arg2);
UI事件(action字段)遵循的函数定义
AutoTree text(char *text);
元素: 展示文本
AutoTree label(char *text);
元素: 展示文本
AutoTree labeli(long n);
元素: 展示整数数字
AutoTree labelf(double n);
元素: 展示浮点数
AutoTree input(char *placeHolder);
元素: 展示输入框
AutoTree inputa(char *placeHolder, Action action);
元素: 展示输入框,当输入内容改变时触发事件
AutoTree button(char *text, Action action);
元素: 展示一个可点击的按钮,在用户点击时action函数指针被调用
AutoTree spacer();
元素: 填充X或Y方向剩余的空间,如同方向有多个则平分剩余空间
AutoTree spacerm(double minSpace);
元素: 填充X或Y方向剩余的空间,并给定一个最少填充大小(当多个同方向space出现时计算比例)
AutoTree vstack(AutoTree mutating);
元素: 按竖直方向排列子元素的容器
AutoTree hstack(AutoTree mutating);
元素: 按水平方向排列子元素的容器
AutoTree zstack(AutoTree mutating);
元素: 按Z方向排列子元素的容器
AutoTree list(AutoTree mutating);
元素: 按竖直方向排列列表的容器
AutoTree component(AutoTree mutating);
组件: 属于元素且属于组件的容器,在Action函数中root参数为触发该Action的第一个根component元素