Define common thing for GUI controls which allow to edit a value (scroolbar, spinner, and more)
bool step(uiNode_t *node, bool down)
change the value of the spinner of one step
void draw(uiNode_t *node) override
void UI_Spinner_SetTopIconByName(uiNode_t *node, const char *name)
void onMouseDown(uiNode_t *node, int x, int y, int button) override
void onCapturedMouseLost(uiNode_t *node) override
Called when the node have lost the captured node We clean cached data.
void onLoading(uiNode_t *node) override
Atomic structure used to define most of the UI.
void UI_RegisterSpinnerNode(uiBehaviour_t *behaviour)
void repeat(uiNode_t *node, struct uiTimer_s *timer)
void onMouseUp(uiNode_t *node, int x, int y, int button) override
node behaviour, how a node work
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
bool isPositionIncrease(uiNode_t *node, int x, int y)
Check a position relative to the node to check action is can produce.
void UI_Spinner_SetBottomIconByName(uiNode_t *node, const char *name)
void UI_Spinner_SetBackgroundByName(uiNode_t *node, const char *name)
bool onScroll(uiNode_t *node, int deltaX, int deltaY) override