UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_node_abstractscrollable.cpp File Reference
#include "../ui_main.h"
#include "../ui_parse.h"
#include "../ui_behaviour.h"
#include "../ui_font.h"
#include "../ui_render.h"
#include "../ui_actions.h"
#include "../ui_lua.h"
#include "ui_node_abstractnode.h"
#include "ui_node_abstractscrollable.h"
#include "../../client.h"
#include "../../../common/scripts_lua.h"
Include dependency graph for ui_node_abstractscrollable.cpp:

Go to the source code of this file.

Macros

#define EXTRADATA_TYPE   abstractScrollableExtraData_t
#define EXTRADATA(node)

Functions

static void UI_AbstractScrollableNodePageUp (uiNode_t *node, const uiCallContext_t *context)
static void UI_AbstractScrollableNodePageDown (uiNode_t *node, const uiCallContext_t *context)
static void UI_AbstractScrollableNodeMoveUp (uiNode_t *node, const uiCallContext_t *context)
static void UI_AbstractScrollableNodeMoveDown (uiNode_t *node, const uiCallContext_t *context)
static void UI_AbstractScrollableNodeMoveHome (uiNode_t *node, const uiCallContext_t *context)
static void UI_AbstractScrollableNodeMoveEnd (uiNode_t *node, const uiCallContext_t *context)
void UI_RegisterAbstractScrollableNode (uiBehaviour_t *behaviour)

Detailed Description

Todo
use this interface into every scrollable node

Definition in file ui_node_abstractscrollable.cpp.

Macro Definition Documentation

◆ EXTRADATA

#define EXTRADATA ( node)
Value:
#define EXTRADATA_TYPE
#define UI_EXTRADATA(NODE, TYPE)
Definition ui_nodes.h:185

Definition at line 42 of file ui_node_abstractscrollable.cpp.

◆ EXTRADATA_TYPE

#define EXTRADATA_TYPE   abstractScrollableExtraData_t

Definition at line 41 of file ui_node_abstractscrollable.cpp.

Function Documentation

◆ UI_AbstractScrollableNodeMoveDown()

void UI_AbstractScrollableNodeMoveDown ( uiNode_t * node,
const uiCallContext_t * context )
static

◆ UI_AbstractScrollableNodeMoveEnd()

void UI_AbstractScrollableNodeMoveEnd ( uiNode_t * node,
const uiCallContext_t * context )
static
Note
fullSize is bigger than the "end" position. But the function will clamp it right

Definition at line 219 of file ui_node_abstractscrollable.cpp.

References uiNode_t::behaviour, SharedPtr< T >::get(), uiBehaviour_t::manager, and uiAbstractScrollableNode::moveEnd().

Referenced by UI_RegisterAbstractScrollableNode().

◆ UI_AbstractScrollableNodeMoveHome()

void UI_AbstractScrollableNodeMoveHome ( uiNode_t * node,
const uiCallContext_t * context )
static

◆ UI_AbstractScrollableNodeMoveUp()

void UI_AbstractScrollableNodeMoveUp ( uiNode_t * node,
const uiCallContext_t * context )
static

◆ UI_AbstractScrollableNodePageDown()

void UI_AbstractScrollableNodePageDown ( uiNode_t * node,
const uiCallContext_t * context )
static

◆ UI_AbstractScrollableNodePageUp()

void UI_AbstractScrollableNodePageUp ( uiNode_t * node,
const uiCallContext_t * context )
static
Note
pos == -1 is a reserved value, that why we clamp the value

Definition at line 186 of file ui_node_abstractscrollable.cpp.

References uiNode_t::behaviour, SharedPtr< T >::get(), uiBehaviour_t::manager, and uiAbstractScrollableNode::pageUp().

Referenced by UI_RegisterAbstractScrollableNode().

◆ UI_RegisterAbstractScrollableNode()