Blender V5.0
RNA_enum_types.hh File Reference
#include "RNA_types.hh"
#include "RNA_enum_items.hh"

Go to the source code of this file.

Classes

struct  IDFilterEnumPropertyItem

Namespaces

namespace  blender
namespace  blender::bke

Macros

#define DEF_ENUM(id)

Functions

const EnumPropertyItemrna_enum_attribute_domain_itemf (const AttributeOwner &owner, bool include_instances, bool *r_free)
int rna_node_tree_idname_to_enum (const char *idname)
blender::bke::bNodeTreeTyperna_node_tree_type_from_enum (int value)
const EnumPropertyItemrna_node_tree_type_itemf (void *data, bool(*poll)(void *data, blender::bke::bNodeTreeType *), bool *r_free)
int rna_node_socket_idname_to_enum (const char *idname)
blender::bke::bNodeSocketTyperna_node_socket_type_from_enum (int value)
const EnumPropertyItemrna_node_socket_type_itemf (void *data, bool(*poll)(void *data, blender::bke::bNodeSocketType *), bool *r_free)
const EnumPropertyItemrna_TransformOrientation_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_action_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_collection_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_collection_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_image_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_image_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_scene_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_scene_without_sequencer_scene_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_scene_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_movieclip_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_movieclip_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_mask_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_mask_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItemRNA_enum_node_tree_types_itemf_impl (bContext *C, bool *r_free)
const EnumPropertyItemRNA_node_enum_definition_itemf (const blender::bke::RuntimeNodeEnumItems &enum_items, bool *r_free)

Variables

const IDFilterEnumPropertyItem rna_enum_id_type_filter_items []

Macro Definition Documentation

◆ DEF_ENUM

#define DEF_ENUM ( id)
Value:
extern const EnumPropertyItem id[];

Definition at line 27 of file RNA_enum_types.hh.

Function Documentation

◆ RNA_action_itemf()

const EnumPropertyItem * RNA_action_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Generic functions, return an enum from library data, index is the position in the linked list can add more for different types as needed.

Definition at line 4565 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

Referenced by NLA_OT_actionclip_add(), and blender::ed::outliner::OUTLINER_OT_action_set().

◆ RNA_collection_itemf()

const EnumPropertyItem * RNA_collection_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

◆ RNA_collection_local_itemf()

const EnumPropertyItem * RNA_collection_local_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4592 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

Referenced by blender::ed::object::OBJECT_OT_collection_link().

◆ rna_enum_attribute_domain_itemf()

const EnumPropertyItem * rna_enum_attribute_domain_itemf ( const AttributeOwner & owner,
bool include_instances,
bool * r_free )
extern

◆ RNA_enum_node_tree_types_itemf_impl()

const EnumPropertyItem * RNA_enum_node_tree_types_itemf_impl ( bContext * C,
bool * r_free )

◆ RNA_image_itemf()

const EnumPropertyItem * RNA_image_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4601 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

Referenced by PAINT_OT_project_image().

◆ RNA_image_local_itemf()

const EnumPropertyItem * RNA_image_local_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4609 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

◆ RNA_mask_itemf()

const EnumPropertyItem * RNA_mask_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4663 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

Referenced by blender::ed::vse::SEQUENCER_OT_mask_strip_add().

◆ RNA_mask_local_itemf()

const EnumPropertyItem * RNA_mask_local_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4671 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

◆ RNA_movieclip_itemf()

const EnumPropertyItem * RNA_movieclip_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4646 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

Referenced by blender::ed::vse::SEQUENCER_OT_movieclip_strip_add().

◆ RNA_movieclip_local_itemf()

const EnumPropertyItem * RNA_movieclip_local_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4654 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

◆ RNA_node_enum_definition_itemf()

const EnumPropertyItem * RNA_node_enum_definition_itemf ( const blender::bke::RuntimeNodeEnumItems & enum_items,
bool * r_free )

◆ rna_node_socket_idname_to_enum()

int rna_node_socket_idname_to_enum ( const char * idname)

◆ rna_node_socket_type_from_enum()

blender::bke::bNodeSocketType * rna_node_socket_type_from_enum ( int value)

◆ rna_node_socket_type_itemf()

const EnumPropertyItem * rna_node_socket_type_itemf ( void * data,
bool(* poll )(void *data, blender::bke::bNodeSocketType *),
bool * r_free )

References data.

◆ rna_node_tree_idname_to_enum()

int rna_node_tree_idname_to_enum ( const char * idname)

◆ rna_node_tree_type_from_enum()

blender::bke::bNodeTreeType * rna_node_tree_type_from_enum ( int value)

◆ rna_node_tree_type_itemf()

const EnumPropertyItem * rna_node_tree_type_itemf ( void * data,
bool(* poll )(void *data, blender::bke::bNodeTreeType *),
bool * r_free )

◆ RNA_scene_itemf()

const EnumPropertyItem * RNA_scene_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4618 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

Referenced by MARKER_OT_make_links_scene().

◆ RNA_scene_local_itemf()

const EnumPropertyItem * RNA_scene_local_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Definition at line 4626 of file wm_operators.cc.

References C, CTX_data_main(), and rna_id_itemf().

Referenced by blender::ed::object::OBJECT_OT_make_links_scene().

◆ RNA_scene_without_sequencer_scene_itemf()

const EnumPropertyItem * RNA_scene_without_sequencer_scene_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

◆ rna_TransformOrientation_itemf()

const EnumPropertyItem * rna_TransformOrientation_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

Variable Documentation

◆ rna_enum_id_type_filter_items

const IDFilterEnumPropertyItem rna_enum_id_type_filter_items[]
extern
Note
Uses IDFilterEnumPropertyItem, not EnumPropertyItem, to support 64 bit items.

Definition at line 116 of file rna_ID.cc.

Referenced by rna_def_fileselect_asset_idfilter(), and rna_def_fileselect_idfilter().