17#ifndef DL_DISABLE_RENDER
61 _statePre(b._statePre),
64 _bDisable(b._bDisable),
103 void SetSound(std::string_view click, std::string_view over)
105 _strSndClick = std::string{ click };
106 _strSndOver = std::string{ over };
121 _cptElemData.
_hv = hv;
143 std::string _strSndClick;
144 std::string _strSndOver;
160 return (std::size_t)state;
186 void _delete_this() {
delete this; }
195 _cptDeleteThis = std::bind(&Button::_delete_this,
this);
204 _cptClone = std::bind(&Button::_clone,
this);
221 static Button* _clickControl;
226 virtual void UpdateChild(
State state_pre,
State state) = 0;
227 virtual void RenderChild(
State state_pre,
State state) = 0;
229 void _update_button();
230 void _update_switch();
231 void _update_radio();
void PushBack(AnyType any)
添加一个任意对象
static Coor * Create(Coor *parent=nullptr)
std::array< Direction, 2 > Direction2