Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/RNA_access.h
| Show First 20 Lines • Show All 896 Lines • ▼ Show 20 Lines | |||||
| bool RNA_enum_identifier(const EnumPropertyItem *item, const int value, const char **identifier); | bool RNA_enum_identifier(const EnumPropertyItem *item, const int value, const char **identifier); | ||||
| int RNA_enum_bitflag_identifiers(const EnumPropertyItem *item, | int RNA_enum_bitflag_identifiers(const EnumPropertyItem *item, | ||||
| const int value, | const int value, | ||||
| const char **identifier); | const char **identifier); | ||||
| bool RNA_enum_name(const EnumPropertyItem *item, const int value, const char **r_name); | bool RNA_enum_name(const EnumPropertyItem *item, const int value, const char **r_name); | ||||
| bool RNA_enum_description(const EnumPropertyItem *item, const int value, const char **description); | bool RNA_enum_description(const EnumPropertyItem *item, const int value, const char **description); | ||||
| int RNA_enum_from_value(const EnumPropertyItem *item, const int value); | int RNA_enum_from_value(const EnumPropertyItem *item, const int value); | ||||
| int RNA_enum_from_identifier(const EnumPropertyItem *item, const char *identifier); | int RNA_enum_from_identifier(const EnumPropertyItem *item, const char *identifier); | ||||
| int RNA_enum_from_identifier_with_order(const EnumPropertyItem *item, | |||||
| const EnumPropertyItem_Order *item_order, | |||||
| const char *identifier); | |||||
| int RNA_enum_from_name(const EnumPropertyItem *item, const char *name); | int RNA_enum_from_name(const EnumPropertyItem *item, const char *name); | ||||
| unsigned int RNA_enum_items_count(const EnumPropertyItem *item); | unsigned int RNA_enum_items_count(const EnumPropertyItem *item); | ||||
| void RNA_property_enum_items_with_order_ex(struct bContext *C, | |||||
| PointerRNA *ptr, | |||||
| PropertyRNA *prop, | |||||
| const bool use_static, | |||||
| const EnumPropertyItem **r_item, | |||||
| const EnumPropertyItem_Order **r_item_order, | |||||
| int *r_totitem, | |||||
| bool *r_free); | |||||
| void RNA_property_enum_items_with_order(struct bContext *C, | |||||
| PointerRNA *ptr, | |||||
| PropertyRNA *prop, | |||||
| const EnumPropertyItem **r_item, | |||||
| const EnumPropertyItem_Order **r_item_order, | |||||
| int *r_totitem, | |||||
| bool *r_free); | |||||
| void RNA_property_enum_items_ex(struct bContext *C, | void RNA_property_enum_items_ex(struct bContext *C, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| PropertyRNA *prop, | PropertyRNA *prop, | ||||
| const bool use_static, | const bool use_static, | ||||
| const EnumPropertyItem **r_item, | const EnumPropertyItem **r_item, | ||||
| int *r_totitem, | int *r_totitem, | ||||
| bool *r_free); | bool *r_free); | ||||
| void RNA_property_enum_items(struct bContext *C, | void RNA_property_enum_items(struct bContext *C, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| PropertyRNA *prop, | PropertyRNA *prop, | ||||
| const EnumPropertyItem **r_item, | const EnumPropertyItem **r_item, | ||||
| int *r_totitem, | int *r_totitem, | ||||
| bool *r_free); | bool *r_free); | ||||
| void RNA_property_enum_items_gettexted_with_order(struct bContext *C, | |||||
| PointerRNA *ptr, | |||||
| PropertyRNA *prop, | |||||
| const EnumPropertyItem **r_item, | |||||
| const EnumPropertyItem_Order **r_item_order, | |||||
| int *r_totitem, | |||||
| bool *r_free); | |||||
| void RNA_property_enum_items_gettexted(struct bContext *C, | void RNA_property_enum_items_gettexted(struct bContext *C, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| PropertyRNA *prop, | PropertyRNA *prop, | ||||
| const EnumPropertyItem **r_item, | const EnumPropertyItem **r_item, | ||||
| int *r_totitem, | int *r_totitem, | ||||
| bool *r_free); | bool *r_free); | ||||
| void RNA_property_enum_items_gettexted_all(struct bContext *C, | void RNA_property_enum_items_gettexted_all(struct bContext *C, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| ▲ Show 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | void RNA_enum_set_identifier(struct bContext *C, | ||||
| const char *id); | const char *id); | ||||
| bool RNA_enum_is_equal(struct bContext *C, | bool RNA_enum_is_equal(struct bContext *C, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| const char *name, | const char *name, | ||||
| const char *enumname); | const char *enumname); | ||||
| /* Lower level functions that don't use a PointerRNA. */ | /* Lower level functions that don't use a PointerRNA. */ | ||||
| bool RNA_enum_value_from_id(const EnumPropertyItem *item, const char *identifier, int *r_value); | bool RNA_enum_value_from_id(const EnumPropertyItem *item, const char *identifier, int *r_value); | ||||
| bool RNA_enum_value_from_id_with_order(const EnumPropertyItem *item, | |||||
| const EnumPropertyItem_Order *item_order, | |||||
| const char *identifier, | |||||
| int *r_value); | |||||
| bool RNA_enum_id_from_value(const EnumPropertyItem *item, int value, const char **r_identifier); | bool RNA_enum_id_from_value(const EnumPropertyItem *item, int value, const char **r_identifier); | ||||
| bool RNA_enum_icon_from_value(const EnumPropertyItem *item, int value, int *r_icon); | bool RNA_enum_icon_from_value(const EnumPropertyItem *item, int value, int *r_icon); | ||||
| bool RNA_enum_name_from_value(const EnumPropertyItem *item, int value, const char **r_name); | bool RNA_enum_name_from_value(const EnumPropertyItem *item, int value, const char **r_name); | ||||
| void RNA_string_get(PointerRNA *ptr, const char *name, char *value); | void RNA_string_get(PointerRNA *ptr, const char *name, char *value); | ||||
| char *RNA_string_get_alloc(PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen); | char *RNA_string_get_alloc(PointerRNA *ptr, const char *name, char *fixedbuf, int fixedlen); | ||||
| int RNA_string_length(PointerRNA *ptr, const char *name); | int RNA_string_length(PointerRNA *ptr, const char *name); | ||||
| void RNA_string_set(PointerRNA *ptr, const char *name, const char *value); | void RNA_string_set(PointerRNA *ptr, const char *name, const char *value); | ||||
| ▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines | |||||