Blender V2.61 - r43446
Functions

node_select.c File Reference

#include <stdio.h>
#include "BLI_listbase.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "BKE_context.h"
#include "BKE_main.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "ED_node.h"
#include "ED_screen.h"
#include "ED_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_view2d.h"
#include "node_intern.h"

Go to the source code of this file.

Functions

static bNodenode_under_mouse (bNodeTree *ntree, int mx, int my)
static int compare_nodes (bNode *a, bNode *b)
static void node_sort (bNodeTree *ntree)
void node_deselect_all (SpaceNode *snode)
int node_select_same_type (SpaceNode *snode)
int node_select_same_type_np (SpaceNode *snode, int dir)
void node_select_single (bContext *C, bNode *node)
static bNodenode_mouse_select (Main *bmain, SpaceNode *snode, ARegion *ar, const int mval[2], short extend)
static int node_select_exec (bContext *C, wmOperator *op)
static int node_select_invoke (bContext *C, wmOperator *op, wmEvent *event)
void NODE_OT_select (wmOperatorType *ot)
static int node_borderselect_exec (bContext *C, wmOperator *op)
static int node_border_select_invoke (bContext *C, wmOperator *op, wmEvent *event)
void NODE_OT_select_border (wmOperatorType *ot)
static int node_select_all_exec (bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_all (wmOperatorType *ot)
static int node_select_linked_to_exec (bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_linked_to (wmOperatorType *ot)
static int node_select_linked_from_exec (bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_linked_from (wmOperatorType *ot)
static int node_select_same_type_exec (bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type (wmOperatorType *ot)
static int node_select_same_type_next_exec (bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type_next (wmOperatorType *ot)
static int node_select_same_type_prev_exec (bContext *C, wmOperator *UNUSED(op))
void NODE_OT_select_same_type_prev (wmOperatorType *ot)

Detailed Description

Definition in file node_select.c.


Function Documentation

static int compare_nodes ( bNode a,
bNode b 
) [static]

Definition at line 73 of file node_select.c.

References bNode::flag, NODE_ACTIVE, NODE_BACKGROUND, NODE_SELECT, and bNode::parent.

Referenced by node_sort().

static int node_border_select_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int node_borderselect_exec ( bContext C,
wmOperator op 
) [static]
void node_deselect_all ( SpaceNode snode)
static bNode* node_mouse_select ( Main bmain,
SpaceNode snode,
ARegion ar,
const int  mval[2],
short  extend 
) [static]
void NODE_OT_select ( wmOperatorType ot)
void NODE_OT_select_all ( wmOperatorType ot)
void NODE_OT_select_border ( wmOperatorType ot)
void NODE_OT_select_linked_from ( wmOperatorType ot)
void NODE_OT_select_linked_to ( wmOperatorType ot)
void NODE_OT_select_same_type ( wmOperatorType ot)
void NODE_OT_select_same_type_next ( wmOperatorType ot)
void NODE_OT_select_same_type_prev ( wmOperatorType ot)
static int node_select_all_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int node_select_exec ( bContext C,
wmOperator op 
) [static]
static int node_select_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]

Definition at line 330 of file node_select.c.

References wmEvent::mval, node_select_exec(), wmOperator::ptr, and RNA_int_set().

Referenced by NODE_OT_select().

static int node_select_linked_from_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int node_select_linked_to_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
int node_select_same_type ( SpaceNode snode)
static int node_select_same_type_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int node_select_same_type_next_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
int node_select_same_type_np ( SpaceNode snode,
int  dir 
)
static int node_select_same_type_prev_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
void node_select_single ( bContext C,
bNode node 
)
static void node_sort ( bNodeTree ntree) [static]
static bNode* node_under_mouse ( bNodeTree ntree,
int  mx,
int  my 
) [static]