CWinCtrlBar¶
Callbacks arriving at :class:`CWindowBase<CWindowBase>`
void onClick(CWinCtrlBase cCtrl)
void onHold(CWinCtrlBase cCtrl)
void onBeginDrag(CWinCtrlBase cCtrl,Vector2 pos)
void onDrag(CWinCtrlBase cCtrl,Vector2 pos,Vector2 dragVelocity)
bool onDragRender(CWinCtrlBase cCtrl,Transform transform)
void onDrop(CWinCtrlBase cCtrl,CWindowBase cDragWindow,CWinCtrlBase cDragCtrl)
Example of use
// get control
CWinCtrlBar ctrlStart = find<CWinCtrlBar>(BAR_Title);
// click callback
override public void onClick(CWinCtrlBase cCtrl) {
switch (cCtrl.id) {
case BAR_Title:
break;
}
}