Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/RNA_types.h
| Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | |||||
| #define RNA_SUBTYPE_UNIT(subtype) ((subtype) & 0x00FF0000) | #define RNA_SUBTYPE_UNIT(subtype) ((subtype) & 0x00FF0000) | ||||
| #define RNA_SUBTYPE_VALUE(subtype) ((subtype) & ~0x00FF0000) | #define RNA_SUBTYPE_VALUE(subtype) ((subtype) & ~0x00FF0000) | ||||
| #define RNA_SUBTYPE_UNIT_VALUE(subtype) ((subtype) >> 16) | #define RNA_SUBTYPE_UNIT_VALUE(subtype) ((subtype) >> 16) | ||||
| #define RNA_ENUM_BITFLAG_SIZE 32 | #define RNA_ENUM_BITFLAG_SIZE 32 | ||||
| #define RNA_TRANSLATION_PREC_DEFAULT 5 | #define RNA_TRANSLATION_PREC_DEFAULT 5 | ||||
| #define RNA_STACK_ARRAY 32 | |||||
| /* also update enums in bpy_props.c when adding items here | /* also update enums in bpy_props.c when adding items here | ||||
| * watch it: these values are written to files as part of | * watch it: these values are written to files as part of | ||||
| * node socket button subtypes! | * node socket button subtypes! | ||||
| */ | */ | ||||
| typedef enum PropertySubType { | typedef enum PropertySubType { | ||||
| PROP_NONE = 0, | PROP_NONE = 0, | ||||
| /* strings */ | /* strings */ | ||||
| Show All 32 Lines | typedef enum PropertySubType { | ||||
| /* booleans */ | /* booleans */ | ||||
| PROP_LAYER = 40, | PROP_LAYER = 40, | ||||
| PROP_LAYER_MEMBER = 41, | PROP_LAYER_MEMBER = 41, | ||||
| } PropertySubType; | } PropertySubType; | ||||
| /* Make sure enums are updated with these */ | /* Make sure enums are updated with these */ | ||||
| /* HIGHEST FLAG IN USE: 1 << 31 | /* HIGHEST FLAG IN USE: 1 << 31 | ||||
| * FREE FLAGS: 2, 3, 7, 9, 11, 13, 14, 15, 30 */ | * FREE FLAGS: 3, 7, 9, 11, 13, 14, 15, 30 */ | ||||
| typedef enum PropertyFlag { | typedef enum PropertyFlag { | ||||
| /* editable means the property is editable in the user | /* editable means the property is editable in the user | ||||
| * interface, properties are editable by default except | * interface, properties are editable by default except | ||||
| * for pointers and collections. */ | * for pointers and collections. */ | ||||
| PROP_EDITABLE = (1 << 0), | PROP_EDITABLE = (1 << 0), | ||||
| /* this property is editable even if it is lib linked, | /* this property is editable even if it is lib linked, | ||||
| * meaning it will get lost on reload, but it's useful | * meaning it will get lost on reload, but it's useful | ||||
| * for editing. */ | * for editing. */ | ||||
| PROP_LIB_EXCEPTION = (1 << 16), | PROP_LIB_EXCEPTION = (1 << 16), | ||||
| /* animatable means the property can be driven by some | /* animatable means the property can be driven by some | ||||
| * other input, be it animation curves, expressions, .. | * other input, be it animation curves, expressions, .. | ||||
| * properties are animatable by default except for pointers | * properties are animatable by default except for pointers | ||||
| * and collections */ | * and collections */ | ||||
| PROP_ANIMATABLE = (1 << 1), | PROP_ANIMATABLE = (1 << 1), | ||||
| /* Means the property can be overriden by a local 'proxy' of some linked datablock. */ | |||||
| PROP_OVERRIDABLE = (1 << 2), | |||||
| /* This flag means when the property's widget is in 'textedit' mode, it will be updated | /* This flag means when the property's widget is in 'textedit' mode, it will be updated | ||||
| * after every typed char, instead of waiting final validation. Used e.g. for text searchbox. | * after every typed char, instead of waiting final validation. Used e.g. for text searchbox. | ||||
| * It will also cause UI_BUT_VALUE_CLEAR to be set for text buttons. We could add an own flag | * It will also cause UI_BUT_VALUE_CLEAR to be set for text buttons. We could add an own flag | ||||
| * for search/filter properties, but this works just fine for now. */ | * for search/filter properties, but this works just fine for now. */ | ||||
| PROP_TEXTEDIT_UPDATE = (1u << 31), | PROP_TEXTEDIT_UPDATE = (1u << 31), | ||||
| /* icon */ | /* icon */ | ||||
| PROP_ICONS_CONSECUTIVE = (1 << 12), | PROP_ICONS_CONSECUTIVE = (1 << 12), | ||||
| ▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines | |||||