|
dl
|
组件容器 更多...
#include <dl_component.h>
Public 成员函数 | |
| template<typename T> | |
| Components (T *p) | |
| any表示实际的对象(比如UI::Text),any为空则为Components | |
| bool | operator== (const Components &b) |
| bool | operator!= (const Components &b) |
| template<typename T> | |
| T * | Cast () |
| 试图转到指定类型 | |
| template<typename T> | |
| T * | Get (size_t index=0) |
| 返回第n个类型对象,失败返回nullptr | |
| AnyType | GetSelf () |
| 返回自身 | |
| void | PushBack (AnyType any) |
| 添加一个任意对象 | |
| void | Clear () |
| VectorAny & | GetVectorAny () |
| std::string | GetName () |
| void | SetName (std::string_view name) |
| 设置自定义名字 | |
| bool | IsPure () |
| 单纯的Componets,any为空 | |
组件容器
在文件 dl_component.h 第 207 行定义.
any表示实际的对象(比如UI::Text),any为空则为Components
在文件 dl_component.h 第 212 行定义.
|
inline |
在文件 dl_component.h 第 250 行定义.
返回第n个类型对象,失败返回nullptr
在文件 dl_component.h 第 233 行定义.
|
inline |
在文件 dl_component.h 第 257 行定义.
|
inline |
返回自身
在文件 dl_component.h 第 236 行定义.
|
inline |
在文件 dl_component.h 第 255 行定义.
|
inline |
单纯的Componets,any为空
在文件 dl_component.h 第 269 行定义.
|
inline |
在文件 dl_component.h 第 220 行定义.
|
inline |
在文件 dl_component.h 第 219 行定义.
|
inline |
|
inline |
设置自定义名字
在文件 dl_component.h 第 263 行定义.