CWinCtrlButton¶
CWindowBase に届くコールバック
:meth:`void onClick(CWinCtrlBase cCtrl)<CWindowBase::onClick>`
:meth:`void onHold(CWinCtrlBase cCtrl)<CWindowBase::onHold>`
:meth:`void onBeginDrag(CWinCtrlBase cCtrl,Vector2 pos)<CWindowBase::onBeginDrag>`
:meth:`void onDrag(CWinCtrlBase cCtrl,Vector2 pos,Vector2 dragVelocity)<CWindowBase::onDrag>`
:meth:`bool onDragRender(CWinCtrlBase cCtrl,Transform transform)<CWindowBase::onDragRender>`
:meth:`void onDropGround(CWinCtrlBase cCtrl)<CWindowBase::onDropGround>`
使用例
// get control
CWinCtrlButton ctrlStart = find<CWinCtrlButton>(BUTTON_Start);
// click call back
override protected void onClick(CWinCtrlBase cCtrl) {
switch (cCtrl.id) {
case BUTTON_Start:
break;
}
// hold callback.
override protected void onHold(CWinCtrlBase cCtrl) {
switch (cCtrl.id) {
case BUTTON_Start:
break;
}