Blender V4.3
blender::nodes::node_geo_menu_switch_cc Namespace Reference

Classes

class  LazyFunctionForMenuSwitchNode
 
class  LazyFunctionForMenuSwitchSocketUsage
 
class  MenuSwitchFn
 

Functions

static bool is_supported_socket_type (const eNodeSocketDatatype data_type)
 
static void node_declare (blender::nodes::NodeDeclarationBuilder &b)
 
static void node_layout (uiLayout *layout, bContext *, PointerRNA *ptr)
 
static void node_init (bNodeTree *, bNode *node)
 
static void node_free_storage (bNode *node)
 
static void node_copy_storage (bNodeTree *, bNode *dst_node, const bNode *src_node)
 
static void node_gather_link_searches (GatherLinkSearchOpParams &params)
 
static void draw_menu_switch_item (uiList *, const bContext *, uiLayout *layout, PointerRNA *, PointerRNA *itemptr, int, PointerRNA *, const char *, int, int)
 
static void node_layout_ex (uiLayout *layout, bContext *C, PointerRNA *ptr)
 
static void NODE_OT_enum_definition_item_add (wmOperatorType *ot)
 
static void NODE_OT_enum_definition_item_remove (wmOperatorType *ot)
 
static void NODE_OT_enum_definition_item_move (wmOperatorType *ot)
 
static void node_operators ()
 
static bool node_insert_link (bNodeTree *ntree, bNode *node, bNodeLink *link)
 
static void node_rna (StructRNA *srna)
 
static void register_node ()
 

Function Documentation

◆ draw_menu_switch_item()

static void blender::nodes::node_geo_menu_switch_cc::draw_menu_switch_item ( uiList * ,
const bContext * ,
uiLayout * layout,
PointerRNA * ,
PointerRNA * itemptr,
int ,
PointerRNA * ,
const char * ,
int ,
int  )
static

Definition at line 360 of file node_geo_menu_switch.cc.

References UI_EMBOSS_NONE, UI_ITEM_NONE, uiItemR(), and uiLayoutSetEmboss().

Referenced by node_layout_ex().

◆ is_supported_socket_type()

static bool blender::nodes::node_geo_menu_switch_cc::is_supported_socket_type ( const eNodeSocketDatatype data_type)
static

◆ node_copy_storage()

static void blender::nodes::node_geo_menu_switch_cc::node_copy_storage ( bNodeTree * ,
bNode * dst_node,
const bNode * src_node )
static

Definition at line 119 of file node_geo_menu_switch.cc.

References blender::nodes::socket_items::copy_array(), and bNode::storage.

Referenced by register_node().

◆ node_declare()

◆ node_free_storage()

static void blender::nodes::node_geo_menu_switch_cc::node_free_storage ( bNode * node)
static

Definition at line 113 of file node_geo_menu_switch.cc.

References blender::nodes::socket_items::destruct_array(), and MEM_freeN().

Referenced by register_node().

◆ node_gather_link_searches()

static void blender::nodes::node_geo_menu_switch_cc::node_gather_link_searches ( GatherLinkSearchOpParams & params)
static

Definition at line 128 of file node_geo_menu_switch.cc.

References IFACE_, params, SOCK_IN, and SOCK_MENU.

Referenced by register_node().

◆ node_init()

static void blender::nodes::node_geo_menu_switch_cc::node_init ( bNodeTree * ,
bNode * node )
static

◆ node_insert_link()

static bool blender::nodes::node_geo_menu_switch_cc::node_insert_link ( bNodeTree * ntree,
bNode * node,
bNodeLink * link )
static

◆ node_layout()

static void blender::nodes::node_geo_menu_switch_cc::node_layout ( uiLayout * layout,
bContext * ,
PointerRNA * ptr )
static

Definition at line 95 of file node_geo_menu_switch.cc.

References ptr, UI_ITEM_NONE, and uiItemR().

Referenced by register_node().

◆ node_layout_ex()

◆ node_operators()

static void blender::nodes::node_geo_menu_switch_cc::node_operators ( )
static

◆ NODE_OT_enum_definition_item_add()

static void blender::nodes::node_geo_menu_switch_cc::NODE_OT_enum_definition_item_add ( wmOperatorType * ot)
static

Definition at line 436 of file node_geo_menu_switch.cc.

References blender::nodes::socket_items::ops::add_item(), and ot.

Referenced by node_operators().

◆ NODE_OT_enum_definition_item_move()

static void blender::nodes::node_geo_menu_switch_cc::NODE_OT_enum_definition_item_move ( wmOperatorType * ot)
static

Definition at line 448 of file node_geo_menu_switch.cc.

References blender::nodes::socket_items::ops::move_active_item(), and ot.

Referenced by node_operators().

◆ NODE_OT_enum_definition_item_remove()

static void blender::nodes::node_geo_menu_switch_cc::NODE_OT_enum_definition_item_remove ( wmOperatorType * ot)
static

Definition at line 442 of file node_geo_menu_switch.cc.

References ot, and blender::nodes::socket_items::ops::remove_active_item().

Referenced by node_operators().

◆ node_rna()

◆ register_node()