41#define EXTRADATA_TYPE abstractScrollableExtraData_t
42#define EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE)
114 if (this->viewPos !=
viewPos) {
132 EXTRADATA(node).lua_onViewChange = LUA_NOREF;
148 updated =
EXTRADATA(node).scrollY.set(viewPos, viewSize, fullSize);
154 else if (
EXTRADATA(node).lua_onViewChange != LUA_NOREF) {
164 const int pos =
EXTRADATA(node).scrollY.viewPos - 10;
237 behaviour->
name =
"abstractscrollable";
virtual void initNode(uiNode_t *node)
Primary header for client.
Header for lua script functions.
node behaviour, how a node work
Contain the context of the calling of a function.
Atomic structure used to define most of the UI.
uiBehaviour_t * behaviour
void UI_ExecuteEventActions(uiNode_t *source, const uiAction_t *firstAction)
const struct value_s * UI_RegisterNodeMethod(uiBehaviour_t *behaviour, const char *name, uiNodeMethod_t function)
Register a node method to a behaviour.
#define UI_RegisterExtradataNodeProperty(BEHAVIOUR, NAME, TYPE, EXTRADATATYPE, ATTRIBUTE)
Initialize a property from extradata of node.
bool UI_ExecuteLuaEventScript(uiNode_t *node, LUA_EVENT event)
Executes a lua event handler.
Basic lua initialization for the ui.
void * UI_SWIG_TypeQuery(const char *name)
This function queries the SWIG type table for a type information structure. It is used in combination...
bool UI_Node_IsScrollableContainer(uiNode_t const *node)
SharedPtr< uiNode > UINodePtr
#define Vector2Equal(a, b)
#define Vector2Copy(src, dest)