Blender  V2.59
Functions
node_state.c File Reference
#include <stdio.h>
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "BLI_rect.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_node.h"
#include "ED_screen.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

void node_set_hidden_sockets (SpaceNode *snode, bNode *node, int set)
static void node_hide_unhide_sockets (SpaceNode *snode, bNode *node)
static int do_header_node (SpaceNode *snode, bNode *node, float mx, float my)
static int do_header_hidden_node (bNode *node, float mx, float my)
static int node_toggle_visibility (SpaceNode *snode, ARegion *ar, const int mval[2])
static int node_toggle_visibility_exec (bContext *C, wmOperator *op)
static int node_toggle_visibility_invoke (bContext *C, wmOperator *op, wmEvent *event)
void NODE_OT_visibility_toggle (wmOperatorType *ot)
static void snode_home (ScrArea *UNUSED(sa), ARegion *ar, SpaceNode *snode)
static int node_view_all_exec (bContext *C, wmOperator *UNUSED(op))
void NODE_OT_view_all (wmOperatorType *ot)

Detailed Description

Definition in file node_state.c.


Function Documentation

static int do_header_hidden_node ( bNode node,
float  mx,
float  my 
) [static]

Definition at line 149 of file node_state.c.

References BLI_in_rctf(), bNode::flag, NODE_HIDDEN, bNode::totr, rctf::xmax, and rctf::xmin.

Referenced by node_toggle_visibility().

static int do_header_node ( SpaceNode snode,
bNode node,
float  mx,
float  my 
) [static]
static void node_hide_unhide_sockets ( SpaceNode snode,
bNode node 
) [static]
void NODE_OT_view_all ( wmOperatorType ot)
void NODE_OT_visibility_toggle ( wmOperatorType ot)
void node_set_hidden_sockets ( SpaceNode snode,
bNode node,
int  set 
)
static int node_toggle_visibility ( SpaceNode snode,
ARegion ar,
const int  mval[2] 
) [static]
static int node_toggle_visibility_exec ( bContext C,
wmOperator op 
) [static]
static int node_toggle_visibility_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int node_view_all_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static void snode_home ( ScrArea UNUSEDsa,
ARegion ar,
SpaceNode snode 
) [static]