Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/RNA_types.h
| Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | typedef enum PropertyUnit { | ||||
| PROP_UNIT_VOLUME = (3 << 16), /* m^3 */ | PROP_UNIT_VOLUME = (3 << 16), /* m^3 */ | ||||
| PROP_UNIT_MASS = (4 << 16), /* kg */ | PROP_UNIT_MASS = (4 << 16), /* kg */ | ||||
| PROP_UNIT_ROTATION = (5 << 16), /* radians */ | PROP_UNIT_ROTATION = (5 << 16), /* radians */ | ||||
| PROP_UNIT_TIME = (6 << 16), /* frame */ | PROP_UNIT_TIME = (6 << 16), /* frame */ | ||||
| PROP_UNIT_VELOCITY = (7 << 16), /* m/s */ | PROP_UNIT_VELOCITY = (7 << 16), /* m/s */ | ||||
| PROP_UNIT_ACCELERATION = (8 << 16), /* m/(s^2) */ | PROP_UNIT_ACCELERATION = (8 << 16), /* m/(s^2) */ | ||||
| PROP_UNIT_CAMERA = (9 << 16), /* mm */ | PROP_UNIT_CAMERA = (9 << 16), /* mm */ | ||||
| PROP_UNIT_POWER = (10 << 16), /* W */ | PROP_UNIT_POWER = (10 << 16), /* W */ | ||||
| PROP_UNIT_TEMPERATURE = (11 << 16), /* C */ | |||||
| } PropertyUnit; | } PropertyUnit; | ||||
| #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 | ||||
| ▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | typedef enum PropertySubType { | ||||
| PROP_COORDS = 31, | PROP_COORDS = 31, | ||||
| /* booleans */ | /* booleans */ | ||||
| PROP_LAYER = 40, | PROP_LAYER = 40, | ||||
| PROP_LAYER_MEMBER = 41, | PROP_LAYER_MEMBER = 41, | ||||
| /** Light */ | /** Light */ | ||||
| PROP_POWER = 42 | PROP_UNIT_POWER, | PROP_POWER = 42 | PROP_UNIT_POWER, | ||||
| /* temperature */ | |||||
| PROP_TEMPERATURE = 43 | PROP_UNIT_TEMPERATURE, | |||||
| } 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, 9, 11, 13, 14, 15, 30 */ | * FREE FLAGS: 2, 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 | ||||
| ▲ Show 20 Lines • Show All 513 Lines • Show Last 20 Lines | |||||