60 _statePre(b._statePre),
63 _bDisable(b._bDisable),
102 void SetSound(std::string_view click, std::string_view over)
104 _strSndClick = std::string{ click };
105 _strSndOver = std::string{ over };
120 _cptElemData.
_hv = hv;
142 std::string _strSndClick;
143 std::string _strSndOver;
159 return (std::size_t)state;
185 void _delete_this() {
delete this; }
194 _cptDeleteThis = std::bind(&Button::_delete_this,
this);
203 _cptClone = std::bind(&Button::_clone,
this);
220 static Button* _clickControl;
225 virtual void UpdateChild(
State state_pre,
State state) = 0;
226 virtual void RenderChild(
State state_pre,
State state) = 0;
228 void _update_button();
229 void _update_switch();
230 void _update_radio();
void PushBack(AnyType any)
添加一个任意对象
static Coor * Create(Coor *parent=nullptr)
std::array< Direction, 2 > Direction2