15#ifndef DL_DISABLE_RENDER
35 Background* ret =
new Background;
97 void _delete_this() {
delete this; }
101 _cptDeleteThis = std::bind(&Background::_delete_this,
this);
122 Sprite9* _spr9 =
nullptr;
128 void _refresh_size();
void PushBack(AnyType any)
添加一个任意对象
static Coor * Create(Coor *parent=nullptr)
static Background * Create()
void SetSize(const Position &size)
设置偏移
void SetOrder(float order)
void SetOffset(const Position &offset)
设置偏移
Function< std::function< void(float)>, str_uid("SetOrder")> SetOrder
设置order
Function< std::function< void()>, str_uid("RenderD")> RenderDebug
调试绘图
Function< std::function< dl::Coor *()>, str_uid("GetCoor")> GetCoor
返回坐标系
Function< std::function< bool()>, str_uid("IsPickup")> IsPickup
---------------------------—具体组件----------------------------------—
Function< std::function< void()>, str_uid("Render")> Render
绘制
Function< std::function< void()>, str_uid("DeleteThis")> DeleteThis
删除自身