NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::tui::components::container结构体 参考

容器组件工厂 更多...

#include <containers.hpp>

静态 Public 成员函数

static unique_ptr< component_basevertical (vector< unique_ptr< component_base > > children, int *selected=nullptr)
 垂直容器
static unique_ptr< component_basehorizontal (vector< unique_ptr< component_base > > children, int *selected=nullptr)
 水平容器
static unique_ptr< component_basetab (vector< unique_ptr< component_base > > children, int *selected)
 TAB 容器
static unique_ptr< component_basestacked (vector< unique_ptr< component_base > > children, int *selected=nullptr)
 层叠容器

详细描述

容器组件工厂

在文件 containers.hpp29 行定义.

成员函数说明

◆ horizontal()

unique_ptr< component_base > neforce::tui::components::container::horizontal ( vector< unique_ptr< component_base > > children,
int * selected = nullptr )
static

水平容器

参数
children子组件列表
selected选中索引的外部指针
返回
组件指针

◆ stacked()

unique_ptr< component_base > neforce::tui::components::container::stacked ( vector< unique_ptr< component_base > > children,
int * selected = nullptr )
static

层叠容器

参数
children子组件列表
selected选中索引的外部指针
返回
组件指针

◆ tab()

unique_ptr< component_base > neforce::tui::components::container::tab ( vector< unique_ptr< component_base > > children,
int * selected )
static

TAB 容器

参数
children子组件列表
selected选中索引的外部指针
返回
组件指针

◆ vertical()

unique_ptr< component_base > neforce::tui::components::container::vertical ( vector< unique_ptr< component_base > > children,
int * selected = nullptr )
static

垂直容器

参数
children子组件列表
selected选中索引的外部指针
返回
组件指针

该结构体的文档由以下文件生成: