Blender V2.61 - r43446
Functions | Variables

space_node.c File Reference

#include <string.h>
#include <stdio.h>
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_screen.h"
#include "BKE_node.h"
#include "ED_space_api.h"
#include "ED_render.h"
#include "ED_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "node_intern.h"

Go to the source code of this file.

Functions

ARegionnode_has_buttons_region (ScrArea *sa)
static SpaceLinknode_new (const bContext *UNUSED(C))
static void node_free (SpaceLink *UNUSED(sl))
static void node_init (struct wmWindowManager *UNUSED(wm), ScrArea *UNUSED(sa))
static void node_area_listener (ScrArea *sa, wmNotifier *wmn)
static void node_area_refresh (const struct bContext *C, struct ScrArea *sa)
static SpaceLinknode_duplicate (SpaceLink *sl)
static void node_buttons_area_init (wmWindowManager *wm, ARegion *ar)
static void node_buttons_area_draw (const bContext *C, ARegion *ar)
static void node_main_area_init (wmWindowManager *wm, ARegion *ar)
static void node_main_area_draw (const bContext *C, ARegion *ar)
static int node_drop_poll (bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
static void node_id_path_drop_copy (wmDrag *drag, wmDropBox *drop)
static void node_dropboxes (void)
static void node_header_area_init (wmWindowManager *UNUSED(wm), ARegion *ar)
static void node_header_area_draw (const bContext *C, ARegion *ar)
static void node_region_listener (ARegion *ar, wmNotifier *wmn)
static int node_context (const bContext *C, const char *member, bContextDataResult *result)
void ED_spacetype_node (void)

Variables

const char * node_context_dir [] = {"selected_nodes", NULL}

Detailed Description

Definition in file space_node.c.


Function Documentation

void ED_spacetype_node ( void  )
static void node_area_listener ( ScrArea sa,
wmNotifier wmn 
) [static]
static void node_area_refresh ( const struct bContext C,
struct ScrArea sa 
) [static]
static void node_buttons_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 331 of file space_node.c.

References ED_region_panels(), and NULL.

Referenced by ED_spacetype_node().

static void node_buttons_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static int node_context ( const bContext C,
const char *  member,
bContextDataResult result 
) [static]
static int node_drop_poll ( bContext UNUSEDC,
wmDrag drag,
wmEvent UNUSEDevent 
) [static]

Definition at line 367 of file space_node.c.

References ELEM, GS, wmDrag::icon, ID_IM, ID::name, wmDrag::poin, wmDrag::type, WM_DRAG_ID, and WM_DRAG_PATH.

Referenced by node_dropboxes().

static void node_dropboxes ( void  ) [static]
static SpaceLink* node_duplicate ( SpaceLink sl) [static]
static void node_free ( SpaceLink UNUSEDsl) [static]

Definition at line 155 of file space_node.c.

Referenced by ED_spacetype_node().

ARegion* node_has_buttons_region ( ScrArea sa)
static void node_header_area_draw ( const bContext C,
ARegion ar 
) [static]
static void node_header_area_init ( wmWindowManager UNUSEDwm,
ARegion ar 
) [static]

Definition at line 406 of file space_node.c.

References ED_region_header_init().

Referenced by ED_spacetype_node().

static void node_id_path_drop_copy ( wmDrag drag,
wmDropBox drop 
) [static]

Definition at line 381 of file space_node.c.

References ID::name, wmDrag::path, wmDrag::poin, wmDropBox::ptr, and RNA_string_set().

Referenced by node_dropboxes().

static void node_init ( struct wmWindowManager UNUSEDwm,
ScrArea UNUSEDsa 
) [static]

Definition at line 162 of file space_node.c.

Referenced by ED_spacetype_node().

static void node_main_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 357 of file space_node.c.

References drawnodespace(), and ARegion::v2d.

Referenced by ED_spacetype_node().

static void node_main_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static SpaceLink* node_new ( const bContext UNUSEDC) [static]
static void node_region_listener ( ARegion ar,
wmNotifier wmn 
) [static]

Variable Documentation

const char* node_context_dir[] = {"selected_nodes", NULL}

Definition at line 452 of file space_node.c.