Blender  V2.93
Public Attributes | List of all members
EnumPropertyItem Struct Reference

#include <RNA_types.h>

Public Attributes

int value
 
const char * identifier
 
int icon
 
const char * name
 
const char * description
 

Detailed Description

This struct is are typically defined in arrays which define an enum for RNA, which is used by the RNA API both for user-interface and the Python API.

Definition at line 437 of file RNA_types.h.

Member Data Documentation

◆ description

const char* EnumPropertyItem::description

◆ icon

int EnumPropertyItem::icon

◆ identifier

const char* EnumPropertyItem::identifier

Note that identifiers must be unique within the array, by convention they're upper case with underscores for separators.

  • An empty string is used to define menu separators.
  • NULL denotes the end of the array of items.

Definition at line 446 of file RNA_types.h.

Referenced by ANIM_keying_sets_enum_itemf(), app_translations_locales_get(), BPy_enum_as_string(), colormanagement_view_item_add(), driver_mapping_type_itemsf(), ED_gpencil_layers_enum_itemf(), enum_items_from_py(), gpencil_armatures_enum_itemf(), gpencil_modifier_add_itemf(), hook_mod_itemf(), icon_id_from_name(), IMB_colormanagement_colorspace_items_add(), IMB_colormanagement_display_items_add(), IMB_colormanagement_look_items_add(), make_override_collections_of_linked_object_itemf(), modifier_add_itemf(), object_constraint_add_itemf(), object_mode_set_itemsf(), operator_enum_search_update_fn(), outliner_id_itemf(), outliner_id_operation_itemf(), proxy_collection_object_itemf(), rigidbody_materials_itemf(), RNA_def_property_enum_bitflag_sdna(), RNA_def_property_enum_default(), RNA_def_property_enum_items(), rna_def_property_funcs_header(), rna_def_property_funcs_header_cpp(), RNA_enum_bitflag_identifiers(), rna_enum_bitmask(), RNA_enum_from_identifier(), RNA_enum_from_name(), RNA_enum_from_value(), RNA_enum_id_from_value(), RNA_enum_identifier(), RNA_enum_items_add(), RNA_enum_items_add_value(), RNA_enum_items_count(), rna_generate_property(), rna_id_itemf(), RNA_property_as_string(), RNA_property_enum_items_ex(), RNA_property_enum_items_gettexted_all(), rna_undo_itemf(), shaderfx_add_itemf(), shape_itemf(), ui_but_event_property_operator_string(), ui_def_but_rna__menu(), ui_icon_view_menu_cb(), ui_item_enum_expand_exec(), ui_item_rna_size(), uiItemEnumR_string_prop(), uiItemsFullEnumO_items(), userpref_main_region_layout(), vgroup_itemf(), WM_keymap_add_context_enum_set_items(), WM_toolsystem_ref_sync_from_context(), and WM_window_modal_keymap_status_draw().

◆ name

const char* EnumPropertyItem::name

◆ value

int EnumPropertyItem::value

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