Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sequencer.c
| Show First 20 Lines • Show All 1,351 Lines • ▼ Show 20 Lines | static void rna_def_sequence_modifiers(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_struct_sdna(srna, "Sequence"); | RNA_def_struct_sdna(srna, "Sequence"); | ||||
| RNA_def_struct_ui_text(srna, "Strip Modifiers", "Collection of strip modifiers"); | RNA_def_struct_ui_text(srna, "Strip Modifiers", "Collection of strip modifiers"); | ||||
| /* add modifier */ | /* add modifier */ | ||||
| func = RNA_def_function(srna, "new", "rna_Sequence_modifier_new"); | func = RNA_def_function(srna, "new", "rna_Sequence_modifier_new"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT | FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_CONTEXT | FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Add a new modifier"); | RNA_def_function_ui_description(func, "Add a new modifier"); | ||||
| parm = RNA_def_string(func, "name", "Name", 0, "", "New name for the modifier"); | parm = RNA_def_string(func, "name", "Name", 0, "", "New name for the modifier"); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| /* modifier to add */ | /* modifier to add */ | ||||
| parm = RNA_def_enum(func, "type", rna_enum_sequence_modifier_type_items, seqModifierType_ColorBalance, "", "Modifier type to add"); | parm = RNA_def_enum(func, "type", rna_enum_sequence_modifier_type_items, seqModifierType_ColorBalance, "", "Modifier type to add"); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| /* return type */ | /* return type */ | ||||
| parm = RNA_def_pointer(func, "modifier", "SequenceModifier", "", "Newly created modifier"); | parm = RNA_def_pointer(func, "modifier", "SequenceModifier", "", "Newly created modifier"); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| /* remove modifier */ | /* remove modifier */ | ||||
| func = RNA_def_function(srna, "remove", "rna_Sequence_modifier_remove"); | func = RNA_def_function(srna, "remove", "rna_Sequence_modifier_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT | FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_CONTEXT | FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove an existing modifier from the sequence"); | RNA_def_function_ui_description(func, "Remove an existing modifier from the sequence"); | ||||
| /* modifier to remove */ | /* modifier to remove */ | ||||
| parm = RNA_def_pointer(func, "modifier", "SequenceModifier", "", "Modifier to remove"); | parm = RNA_def_pointer(func, "modifier", "SequenceModifier", "", "Modifier to remove"); | ||||
| 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); | ||||
| /* clear all modifiers */ | /* clear all modifiers */ | ||||
| func = RNA_def_function(srna, "clear", "rna_Sequence_modifier_clear"); | func = RNA_def_function(srna, "clear", "rna_Sequence_modifier_clear"); | ||||
| RNA_def_function_flag(func, FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_CONTEXT); | ||||
| RNA_def_function_ui_description(func, "Remove all modifiers from the sequence"); | RNA_def_function_ui_description(func, "Remove all modifiers from the sequence"); | ||||
| } | } | ||||
| static void rna_def_sequence(BlenderRNA *brna) | static void rna_def_sequence(BlenderRNA *brna) | ||||
| ▲ Show 20 Lines • Show All 1,302 Lines • Show Last 20 Lines | |||||