ui_node_controls.c File Reference

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"
Include dependency graph for ui_node_controls.c:

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

Detailed Description

Controls is a special pic entity with which the windows can be moved (drag & drop).

Todo:
Remove it. Window node can manage itself dragging.

Definition in file ui_node_controls.c.


Function Documentation

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]
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  ) 

Variable Documentation

int deltaMouseX [static]
int deltaMouseY [static]

Generated by  doxygen 1.6.2