Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_image_api.c
| Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | void RNA_api_image(StructRNA *srna) | ||||
| func = RNA_def_function(srna, "update", "rna_Image_update"); | func = RNA_def_function(srna, "update", "rna_Image_update"); | ||||
| RNA_def_function_ui_description(func, "Update the display image from the floating-point buffer"); | RNA_def_function_ui_description(func, "Update the display image from the floating-point buffer"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| func = RNA_def_function(srna, "scale", "rna_Image_scale"); | func = RNA_def_function(srna, "scale", "rna_Image_scale"); | ||||
| RNA_def_function_ui_description(func, "Scale the image in pixels"); | RNA_def_function_ui_description(func, "Scale the image in pixels"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| parm = RNA_def_int(func, "width", 1, 1, 10000, "", "Width", 1, 10000); | parm = RNA_def_int(func, "width", 1, 1, INT_MAX, "", "Width", 1, INT_MAX); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| parm = RNA_def_int(func, "height", 1, 1, 10000, "", "Height", 1, 10000); | parm = RNA_def_int(func, "height", 1, 1, INT_MAX, "", "Height", 1, INT_MAX); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| func = RNA_def_function(srna, "gl_touch", "rna_Image_gl_touch"); | func = RNA_def_function(srna, "gl_touch", "rna_Image_gl_touch"); | ||||
| RNA_def_function_ui_description( | RNA_def_function_ui_description( | ||||
| func, "Delay the image from being cleaned from the cache due inactivity"); | func, "Delay the image from being cleaned from the cache due inactivity"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_int( | RNA_def_int( | ||||
| func, "frame", 0, 0, INT_MAX, "Frame", "Frame of image sequence or movie", 0, INT_MAX); | func, "frame", 0, 0, INT_MAX, "Frame", "Frame of image sequence or movie", 0, INT_MAX); | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||