UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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"

Go to the source code of this file.

Macros

#define EXTRADATA_TYPE   abstractScrollableExtraData_t
 
#define EXTRADATA(node)   UI_EXTRADATA(node, EXTRADATA_TYPE)
 

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

#define EXTRADATA_TYPE   abstractScrollableExtraData_t

Definition at line 41 of file ui_node_abstractscrollable.cpp.

Referenced by UI_RegisterAbstractScrollableNode().

Function Documentation

static void UI_AbstractScrollableNodeMoveDown ( uiNode_t node,
const uiCallContext_t context 
)
static
static 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().

static void UI_AbstractScrollableNodeMoveHome ( uiNode_t node,
const uiCallContext_t context 
)
static
static void UI_AbstractScrollableNodeMoveUp ( uiNode_t node,
const uiCallContext_t context 
)
static
static void UI_AbstractScrollableNodePageDown ( uiNode_t node,
const uiCallContext_t context 
)
static
static 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().