Blender V5.0
blender::nodes::MenuSwitchItemsAccessor Struct Reference

#include <NOD_geo_menu_switch.hh>

Inherits blender::nodes::socket_items::SocketItemsAccessorDefaults.

Classes

struct  operator_idnames
struct  ui_idnames
struct  rna_names

Public Types

using ItemT = NodeEnumItem

Static Public Member Functions

static socket_items::SocketItemsRef< NodeEnumItemget_items_from_node (bNode &node)
static void copy_item (const NodeEnumItem &src, NodeEnumItem &dst)
static void destruct_item (NodeEnumItem *item)
static void blend_write_item (BlendWriter *writer, const ItemT &item)
static void blend_read_data_item (BlendDataReader *reader, ItemT &item)
static char ** get_name (NodeEnumItem &item)
static void init_with_name (bNode &node, NodeEnumItem &item, const char *name)
static std::string socket_identifier_for_item (const NodeEnumItem &item)

Static Public Attributes

static StructRNAitem_srna = &RNA_NodeEnumItem
static int node_type
static constexpr StringRefNull node_idname = "GeometryNodeMenuSwitch"
static constexpr bool has_type = false
static constexpr bool has_name = true
Static Public Attributes inherited from blender::nodes::socket_items::SocketItemsAccessorDefaults
static constexpr bool has_single_identifier_str = true
static constexpr bool has_name_validation = false
static constexpr bool has_custom_initial_name = false
static constexpr bool has_vector_dimensions = false
static constexpr bool can_have_empty_name = false
static constexpr char unique_name_separator = '.'

Detailed Description

Makes it possible to use various functions (e.g. the ones in NOD_socket_items.hh) for menu switch node items.

Definition at line 18 of file NOD_geo_menu_switch.hh.

Member Typedef Documentation

◆ ItemT

Member Function Documentation

◆ blend_read_data_item()

void blender::nodes::MenuSwitchItemsAccessor::blend_read_data_item ( BlendDataReader * reader,
ItemT & item )
static

◆ blend_write_item()

void blender::nodes::MenuSwitchItemsAccessor::blend_write_item ( BlendWriter * writer,
const ItemT & item )
static

◆ copy_item()

void blender::nodes::MenuSwitchItemsAccessor::copy_item ( const NodeEnumItem & src,
NodeEnumItem & dst )
inlinestatic

◆ destruct_item()

void blender::nodes::MenuSwitchItemsAccessor::destruct_item ( NodeEnumItem * item)
inlinestatic

◆ get_items_from_node()

socket_items::SocketItemsRef< NodeEnumItem > blender::nodes::MenuSwitchItemsAccessor::get_items_from_node ( bNode & node)
inlinestatic

Definition at line 38 of file NOD_geo_menu_switch.hh.

References bNode::storage.

◆ get_name()

char ** blender::nodes::MenuSwitchItemsAccessor::get_name ( NodeEnumItem & item)
inlinestatic

Definition at line 62 of file NOD_geo_menu_switch.hh.

References NodeEnumItem::name.

◆ init_with_name()

void blender::nodes::MenuSwitchItemsAccessor::init_with_name ( bNode & node,
NodeEnumItem & item,
const char * name )
inlinestatic

◆ socket_identifier_for_item()

std::string blender::nodes::MenuSwitchItemsAccessor::socket_identifier_for_item ( const NodeEnumItem & item)
inlinestatic

Member Data Documentation

◆ has_name

bool blender::nodes::MenuSwitchItemsAccessor::has_name = true
staticconstexpr

Definition at line 24 of file NOD_geo_menu_switch.hh.

◆ has_type

bool blender::nodes::MenuSwitchItemsAccessor::has_type = false
staticconstexpr

Definition at line 23 of file NOD_geo_menu_switch.hh.

◆ item_srna

StructRNA * blender::nodes::MenuSwitchItemsAccessor::item_srna = &RNA_NodeEnumItem
static

◆ node_idname

StringRefNull blender::nodes::MenuSwitchItemsAccessor::node_idname = "GeometryNodeMenuSwitch"
staticconstexpr

Definition at line 22 of file NOD_geo_menu_switch.hh.

◆ node_type

int blender::nodes::MenuSwitchItemsAccessor::node_type
static

Definition at line 21 of file NOD_geo_menu_switch.hh.


The documentation for this struct was generated from the following files: