|
Blender
V2.59
|
#include <string.h>#include <stdio.h>#include "DNA_space_types.h"#include "DNA_node_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_screen.h"#include "BKE_node.h"#include "BKE_main.h"#include "WM_api.h"#include "WM_types.h"#include "UI_interface.h"#include "UI_resources.h"#include "UI_interface_icons.h"#include "UI_view2d.h"#include "node_intern.h"Go to the source code of this file.
Functions | |
| static void | do_node_add (bContext *C, void *UNUSED(arg), int event) |
| static void | node_auto_add_menu (bContext *C, uiLayout *layout, void *arg_nodeclass) |
| static void | node_menu_add (const bContext *C, Menu *menu) |
| void | node_menus_register (void) |
Definition in file node_header.c.
| static void do_node_add | ( | bContext * | C, |
| void * | UNUSEDarg, | ||
| int | event | ||
| ) | [static] |
Definition at line 65 of file node_header.c.
References CTX_data_scene(), CTX_wm_area(), CTX_wm_space_node(), CTX_wm_window(), SpaceNode::edittree, wmWindow::eventstate, ListBase::first, bNode::flag, SpaceNode::mx, SpaceNode::my, bNode::next, ARegion::next, node_add_node(), NODE_SELECT, NODE_TEST, bNodeTree::nodes, ScrArea::regionbase, ARegion::regiontype, RGN_TYPE_WINDOW, snode_dag_update(), snode_notify(), UI_view2d_region_to_view(), ARegion::v2d, ARegion::winrct, wmEvent::x, rcti::xmin, wmEvent::y, and rcti::ymin.
Referenced by node_auto_add_menu().
Definition at line 106 of file node_header.c.
References bNodeTree::alltypes, CTX_data_main(), CTX_wm_space_node(), do_node_add(), ListBase::first, GET_INT_FROM_POINTER, bNodeTree::id, bNodeType::name, ID::name, bNodeType::nclass, bNodeType::next, ID::next, NODE_CLASS_GROUP, NODE_DYNAMIC, NODE_DYNAMIC_MENU, NODE_GROUP_MENU, Main::nodetree, SpaceNode::nodetree, NULL, bNodeType::type, bNode::type, bNodeTree::type, uiItemS(), uiItemV(), and uiLayoutSetFunc().
Referenced by node_menu_add().
Definition at line 173 of file node_header.c.
References CTX_wm_space_node(), Menu::layout, node_auto_add_menu(), NODE_CLASS_CONVERTOR, NODE_CLASS_DISTORT, NODE_CLASS_GROUP, NODE_CLASS_INPUT, NODE_CLASS_MATTE, NODE_CLASS_OP_COLOR, NODE_CLASS_OP_DYNAMIC, NODE_CLASS_OP_FILTER, NODE_CLASS_OP_VECTOR, NODE_CLASS_OUTPUT, NODE_CLASS_PATTERN, NODE_CLASS_TEXTURE, SpaceNode::nodetree, NTREE_COMPOSIT, NTREE_SHADER, NTREE_TEXTURE, SET_INT_IN_POINTER, SpaceNode::treetype, uiItemMenuF(), and uiLayoutSetActive().
Referenced by node_menus_register().
| void node_menus_register | ( | void | ) |
Definition at line 213 of file node_header.c.
References MenuType::draw, MenuType::idname, MenuType::label, MEM_callocN(), mt, node_menu_add(), and WM_menutype_add().
Referenced by ED_spacetype_node().