Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
| Show First 20 Lines • Show All 2,314 Lines • ▼ Show 20 Lines | static void rna_def_backgroundImages(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_ui_description(func, "Add new background image"); | RNA_def_function_ui_description(func, "Add new background image"); | ||||
| parm = RNA_def_pointer(func, "image", "BackgroundImage", "", "Image displayed as viewport background"); | parm = RNA_def_pointer(func, "image", "BackgroundImage", "", "Image displayed as viewport background"); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| func = RNA_def_function(srna, "remove", "rna_BackgroundImage_remove"); | func = RNA_def_function(srna, "remove", "rna_BackgroundImage_remove"); | ||||
| RNA_def_function_ui_description(func, "Remove background image"); | RNA_def_function_ui_description(func, "Remove background image"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| parm = RNA_def_pointer(func, "image", "BackgroundImage", "", "Image displayed as viewport background"); | parm = RNA_def_pointer(func, "image", "BackgroundImage", "", "Image displayed as viewport background"); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL | PROP_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_property_clear_flag(parm, PROP_THICK_WRAP); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| func = RNA_def_function(srna, "clear", "rna_BackgroundImage_clear"); | func = RNA_def_function(srna, "clear", "rna_BackgroundImage_clear"); | ||||
| RNA_def_function_ui_description(func, "Remove all background images"); | RNA_def_function_ui_description(func, "Remove all background images"); | ||||
| } | } | ||||
| static void rna_def_space_view3d(BlenderRNA *brna) | static void rna_def_space_view3d(BlenderRNA *brna) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,915 Lines • ▼ Show 20 Lines | static void rna_def_space_node_path_api(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "clear", "rna_SpaceNodeEditor_path_clear"); | func = RNA_def_function(srna, "clear", "rna_SpaceNodeEditor_path_clear"); | ||||
| RNA_def_function_ui_description(func, "Reset the node tree path"); | RNA_def_function_ui_description(func, "Reset the node tree path"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| func = RNA_def_function(srna, "start", "rna_SpaceNodeEditor_path_start"); | func = RNA_def_function(srna, "start", "rna_SpaceNodeEditor_path_start"); | ||||
| RNA_def_function_ui_description(func, "Set the root node tree"); | RNA_def_function_ui_description(func, "Set the root node tree"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| parm = RNA_def_pointer(func, "node_tree", "NodeTree", "Node Tree", ""); | parm = RNA_def_pointer(func, "node_tree", "NodeTree", "Node Tree", ""); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED | PROP_RNAPTR); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED | PARM_RNAPTR); | ||||
| func = RNA_def_function(srna, "append", "rna_SpaceNodeEditor_path_append"); | func = RNA_def_function(srna, "append", "rna_SpaceNodeEditor_path_append"); | ||||
| RNA_def_function_ui_description(func, "Append a node group tree to the path"); | RNA_def_function_ui_description(func, "Append a node group tree to the path"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| parm = RNA_def_pointer(func, "node_tree", "NodeTree", "Node Tree", "Node tree to append to the node editor path"); | parm = RNA_def_pointer(func, "node_tree", "NodeTree", "Node Tree", "Node tree to append to the node editor path"); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED | PROP_RNAPTR); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED | PARM_RNAPTR); | ||||
| parm = RNA_def_pointer(func, "node", "Node", "Node", "Group node linking to this node tree"); | parm = RNA_def_pointer(func, "node", "Node", "Node", "Group node linking to this node tree"); | ||||
| RNA_def_property_flag(parm, PROP_RNAPTR); | RNA_def_parameter_flags(parm, 0, PARM_RNAPTR); | ||||
| func = RNA_def_function(srna, "pop", "rna_SpaceNodeEditor_path_pop"); | func = RNA_def_function(srna, "pop", "rna_SpaceNodeEditor_path_pop"); | ||||
| RNA_def_function_ui_description(func, "Remove the last node tree from the path"); | RNA_def_function_ui_description(func, "Remove the last node tree from the path"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| } | } | ||||
| static void rna_def_space_node(BlenderRNA *brna) | static void rna_def_space_node(BlenderRNA *brna) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 528 Lines • Show Last 20 Lines | |||||