dl
类 | 类型定义 | 函数
dl::Cpt 命名空间参考

子组件命名空间 更多...

类

class  ElementData
 元素通用属性(默认左中对齐,具体看类型) 更多...
 
class  Function
 
class  Lang
 语言本地化 更多...
 
class  Variable
 变量,注意模板参数 需要实例化后不重复 更多...
 

类型定义

using IsPickup = Function< std::function< bool()>, str_uid("IsPickup")>
 拾取 更多...
 
using IsOpen = Function< std::function< bool()>, str_uid("IsOpen")>
 打开 更多...
 
using IsClick = Function< std::function< bool()>, str_uid("IsClick")>
 点击 更多...
 
using GetCoor = Function< std::function< dl::Coor *()>, str_uid("GetCoor")>
 返回坐标系 更多...
 
using GetOrder = Function< std::function< float()>, str_uid("GetOrder")>
 返回order 更多...
 
using Update = Function< std::function< void()>, str_uid("Update")>
 逻辑 更多...
 
using Render = Function< std::function< void()>, str_uid("Render")>
 绘制 更多...
 
using SetOrder = Function< std::function< void(float)>, str_uid("SetOrder")>
 设置order 更多...
 
using DeleteThis = Function< std::function< void()>, str_uid("DeleteThis")>
 删除自身 更多...
 

函数

template<typename T >
std::vector< T * > Get (std::vector< Components * > &vec)
 从vector<Components*>返回指定类型的所有元素 更多...
 

详细描述

子组件命名空间

类型定义说明

◆ DeleteThis

using dl::Cpt::DeleteThis = typedef Function<std::function<void()>, str_uid("DeleteThis")>

删除自身

在文件 dl_component.h 第 261 行定义.

◆ GetCoor

using dl::Cpt::GetCoor = typedef Function<std::function<dl::Coor* ()>, str_uid("GetCoor")>

返回坐标系

在文件 dl_component.h 第 256 行定义.

◆ GetOrder

using dl::Cpt::GetOrder = typedef Function<std::function<float()>, str_uid("GetOrder")>

返回order

在文件 dl_component.h 第 257 行定义.

◆ IsClick

using dl::Cpt::IsClick = typedef Function<std::function<bool()>, str_uid("IsClick")>

点击

在文件 dl_component.h 第 255 行定义.

◆ IsOpen

using dl::Cpt::IsOpen = typedef Function<std::function<bool()>, str_uid("IsOpen")>

打开

在文件 dl_component.h 第 254 行定义.

◆ IsPickup

using dl::Cpt::IsPickup = typedef Function<std::function<bool()>, str_uid("IsPickup")>

拾取

在文件 dl_component.h 第 253 行定义.

◆ Render

using dl::Cpt::Render = typedef Function<std::function<void()>, str_uid("Render")>

绘制

在文件 dl_component.h 第 259 行定义.

◆ SetOrder

using dl::Cpt::SetOrder = typedef Function<std::function<void(float)>, str_uid("SetOrder")>

设置order

在文件 dl_component.h 第 260 行定义.

◆ Update

using dl::Cpt::Update = typedef Function<std::function<void()>, str_uid("Update")>

逻辑

在文件 dl_component.h 第 258 行定义.

函数说明

◆ Get()

template<typename T >
std::vector< T * > dl::Cpt::Get ( std::vector< Components * > &  vec)

从vector<Components*>返回指定类型的所有元素

在文件 dl_component.h 第 239 行定义.