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