CWinCtrlLine¶
Script: LINE
This is the control to draw a line segment.
Callbacks arriving at :class:`CWindowBase<CWindowBase>`
This control’s style is set NOHIT flag as default. If you want to receive onDrag callback,you need to set HIT flag to STYLE property.
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
CWinCtrlLine lnTest = find<CWinCtrlLine>(LINE_TEST);