CWinCtrlFrame¶
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
CWinCtrlFrame ctrlStart = find(FRAME_BG) as CWinCtrlFrame;
// click callback
override protected void onClick(CWinCtrlBase cCtrl) {
switch (cCtrl.id) {
case FRAME_BG:
break;
}
}