CWinCtrlIcon¶
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 cotrol
CWinCtrlIcon icnItem = find(ICON_Item) as CWinCtrlIcon;
// click callback
override protected void onClick(CWinCtrlBase cCtrl) {
switch (cCtrl.id) {
case ICON_Item:
break;
}
}
// hold callback
override protected void onHold(CWinCtrlBase cCtrl) {
switch (cCtrl.id) {
case ICON_Item:
break;
}
}