17#ifndef DL_DISABLE_RENDER
61 _statePre(b._statePre),
64 _bDisable(b._bDisable),
111 void SetSound(std::string_view click, std::string_view over)
113 _strSndClick = std::string{ click };
114 _strSndOver = std::string{ over };
129 _cptElemData.
_hv = hv;
155 std::string _strSndClick;
156 std::string _strSndOver;
172 return (std::size_t)state;
199 void _delete_this() {
delete this; }
208 _cptDeleteThis = std::bind(&Button::_delete_this,
this);
218 _cptClone = std::bind(&Button::_clone,
this);
236 static Button* _clickControl;
241 virtual void UpdateChild(
State state_pre,
State state) = 0;
242 virtual void RenderChild(
State state_pre,
State state) = 0;
244 void _update_button();
245 void _update_switch();
246 void _update_radio();
void PushBack(AnyType any)
添加一个任意对象
static Coor * Create(Coor *parent=nullptr)
std::array< Direction, 2 > Direction2