NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
containers.hpp
浏览该文件的文档.
1#ifndef NEFORCE_TUI_COMPONENT_CONTAINERS_HPP__
2#define NEFORCE_TUI_COMPONENT_CONTAINERS_HPP__
3
10
12NEFORCE_BEGIN_NAMESPACE__
13NEFORCE_BEGIN_TUI__
14NEFORCE_BEGIN_COMPONENTS__
15
20
25
29struct NEFORCE_API container {
36 static unique_ptr<component_base> vertical(vector<unique_ptr<component_base>> children, int* selected = nullptr);
37
44 static unique_ptr<component_base> horizontal(vector<unique_ptr<component_base>> children, int* selected = nullptr);
45
53
60 static unique_ptr<component_base> stacked(vector<unique_ptr<component_base>> children, int* selected = nullptr);
61};
62 // Components
64 // TUI
66
67NEFORCE_END_COMPONENTS__
68NEFORCE_END_TUI__
69NEFORCE_END_NAMESPACE__
70#endif // NEFORCE_TUI_COMPONENT_CONTAINERS_HPP__
独占智能指针
动态大小数组容器
TUI组件基类
static unique_ptr< component_base > stacked(vector< unique_ptr< component_base > > children, int *selected=nullptr)
层叠容器
static unique_ptr< component_base > horizontal(vector< unique_ptr< component_base > > children, int *selected=nullptr)
水平容器
static unique_ptr< component_base > vertical(vector< unique_ptr< component_base > > children, int *selected=nullptr)
垂直容器
static unique_ptr< component_base > tab(vector< unique_ptr< component_base > > children, int *selected)
TAB 容器