Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_screen.c
| Show First 20 Lines • Show All 313 Lines • ▼ Show 20 Lines | static void rna_def_area_spaces(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_property_ui_text(prop, "Active Space", "Space currently being displayed in this area"); | RNA_def_property_ui_text(prop, "Active Space", "Space currently being displayed in this area"); | ||||
| } | } | ||||
| static void rna_def_area_api(StructRNA *srna) | static void rna_def_area_api(StructRNA *srna) | ||||
| { | { | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| RNA_def_function(srna, "tag_redraw", "ED_area_tag_redraw"); | func = RNA_def_function(srna, "tag_redraw", "ED_area_tag_redraw"); | ||||
| func = RNA_def_function(srna, "header_text_set", "ED_area_status_text"); | func = RNA_def_function(srna, "header_text_set", "ED_area_status_text"); | ||||
| RNA_def_function_ui_description(func, "Set the header status text"); | RNA_def_function_ui_description(func, "Set the header status text"); | ||||
| parm = RNA_def_string( | parm = RNA_def_string( | ||||
| func, "text", NULL, 0, "Text", "New string for the header, None clears the text"); | func, "text", NULL, 0, "Text", "New string for the header, None clears the text"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| RNA_def_property_clear_flag(parm, PROP_NEVER_NULL); | RNA_def_property_clear_flag(parm, PROP_NEVER_NULL); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines | |||||