Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-11-14 21:46:57 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-11-14 21:46:57 +0300
commita2cc29d22166fc535eb66c14f7878552ae422f63 (patch)
treead88930b4528a2ead92a87ebd993650a9888fa93 /source/blender/makesrna/RNA_define.h
parenta2175968a7a21bd09463ac9582130c593d27094d (diff)
RNA
* Rename cname to identifier. * Rename PropertyEnumItem to EnumPropertyItem. * Wrapped min/max/step/precision, pointer type for RNA. * Draw FLT_MAX a bit better in buttons.
Diffstat (limited to 'source/blender/makesrna/RNA_define.h')
-rw-r--r--source/blender/makesrna/RNA_define.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/RNA_define.h b/source/blender/makesrna/RNA_define.h
index 4b971c6a6da..1425bbb3c47 100644
--- a/source/blender/makesrna/RNA_define.h
+++ b/source/blender/makesrna/RNA_define.h
@@ -43,14 +43,14 @@ void RNA_free(BlenderRNA *brna);
/* Struct */
-StructRNA *RNA_def_struct(BlenderRNA *brna, const char *cname, const char *name);
+StructRNA *RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *name);
void RNA_def_struct_sdna(StructRNA *srna, const char *structname);
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop);
void RNA_def_struct_flag(StructRNA *srna, int flag);
/* Property */
-PropertyRNA *RNA_def_property(StructRNA *srna, const char *cname, int type, int subtype);
+PropertyRNA *RNA_def_property(StructRNA *srna, const char *identifier, int type, int subtype);
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int bit);
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname);
@@ -64,7 +64,7 @@ void RNA_def_property_flag(PropertyRNA *prop, int flag);
void RNA_def_property_array(PropertyRNA *prop, int arraylength);
void RNA_def_property_range(PropertyRNA *prop, double min, double max);
-void RNA_def_property_enum_items(PropertyRNA *prop, const PropertyEnumItem *item);
+void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item);
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength);
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type);
@@ -78,7 +78,7 @@ void RNA_def_property_enum_default(PropertyRNA *prop, int value);
void RNA_def_property_string_default(PropertyRNA *prop, const char *value);
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description);
-void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, double precision);
+void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision);
void RNA_def_property_funcs(PropertyRNA *prop, const char *notify, const char *readonly);
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set);