Controls is a special pic
entity with which the windows can be moved (drag & drop).
More...
#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_input.h"
#include "../ui_main.h"
#include "ui_node_image.h"
#include "ui_node_controls.h"
#include "ui_node_abstractnode.h"
#include "../../input/cl_keys.h"
#include "../../cl_video.h"
Go to the source code of this file.
Functions | |
static void | UI_ControlsNodeMouseDown (uiNode_t *node, int x, int y, int button) |
static void | UI_ControlsNodeMouseUp (uiNode_t *node, int x, int y, int button) |
static void | UI_ControlsNodeCapturedMouseMove (uiNode_t *node, int x, int y) |
Called when the node is captured by the mouse. | |
void | UI_RegisterControlsNode (uiBehaviour_t *behaviour) |
Variables | |
static int | deltaMouseX |
static int | deltaMouseY |
Controls is a special pic
entity with which the windows can be moved (drag & drop).
Definition in file ui_node_controls.c.
static void UI_ControlsNodeCapturedMouseMove | ( | uiNode_t * | node, | |
int | x, | |||
int | y | |||
) | [static] |
Called when the node is captured by the mouse.
Definition at line 63 of file ui_node_controls.c.
References deltaMouseX, deltaMouseY, uiNode_s::root, uiNode_s::size, UI_SetNewWindowPos(), viddef, viddef_t::virtualHeight, and viddef_t::virtualWidth.
Referenced by UI_RegisterControlsNode().
static void UI_ControlsNodeMouseDown | ( | uiNode_t * | node, | |
int | x, | |||
int | y, | |||
int | button | |||
) | [static] |
Definition at line 42 of file ui_node_controls.c.
References deltaMouseX, deltaMouseY, K_MOUSE1, uiNode_s::pos, UI_NodeAbsoluteToRelativePos(), and UI_SetMouseCapture().
Referenced by UI_RegisterControlsNode().
static void UI_ControlsNodeMouseUp | ( | uiNode_t * | node, | |
int | x, | |||
int | y, | |||
int | button | |||
) | [static] |
Definition at line 54 of file ui_node_controls.c.
References K_MOUSE1, and UI_MouseRelease().
Referenced by UI_RegisterControlsNode().
void UI_RegisterControlsNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 82 of file ui_node_controls.c.
References uiBehaviour_s::capturedMouseMove, uiBehaviour_s::extends, uiBehaviour_s::mouseDown, uiBehaviour_s::mouseUp, uiBehaviour_s::name, UI_ControlsNodeCapturedMouseMove(), UI_ControlsNodeMouseDown(), and UI_ControlsNodeMouseUp().
int deltaMouseX [static] |
Definition at line 39 of file ui_node_controls.c.
Referenced by UI_ControlsNodeCapturedMouseMove(), and UI_ControlsNodeMouseDown().
int deltaMouseY [static] |
Definition at line 40 of file ui_node_controls.c.
Referenced by UI_ControlsNodeCapturedMouseMove(), and UI_ControlsNodeMouseDown().