Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_color.c
| Show First 20 Lines • Show All 935 Lines • ▼ Show 20 Lines | static void rna_def_color_ramp_element(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "alpha", PROP_FLOAT, PROP_COLOR); | prop = RNA_def_property(srna, "alpha", PROP_FLOAT, PROP_COLOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "a"); | RNA_def_property_float_sdna(prop, NULL, "a"); | ||||
| RNA_def_property_ui_text(prop, "Alpha", "Set alpha of selected color stop"); | RNA_def_property_ui_text(prop, "Alpha", "Set alpha of selected color stop"); | ||||
| RNA_def_property_update(prop, 0, "rna_ColorRamp_update"); | RNA_def_property_update(prop, 0, "rna_ColorRamp_update"); | ||||
| prop = RNA_def_property(srna, "position", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "position", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "pos"); | RNA_def_property_float_sdna(prop, NULL, "pos"); | ||||
| RNA_def_property_range(prop, 0, 1); | RNA_def_property_range(prop, 0, 1); | ||||
| RNA_def_property_ui_range(prop, 0, 1, 1, 3); | |||||
| RNA_def_property_ui_text(prop, "Position", "Set position of selected color stop"); | RNA_def_property_ui_text(prop, "Position", "Set position of selected color stop"); | ||||
| RNA_def_property_update(prop, 0, "rna_ColorRamp_update"); | RNA_def_property_update(prop, 0, "rna_ColorRamp_update"); | ||||
| } | } | ||||
| static void rna_def_color_ramp_element_api(BlenderRNA *brna, PropertyRNA *cprop) | static void rna_def_color_ramp_element_api(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| ▲ Show 20 Lines • Show All 374 Lines • Show Last 20 Lines | |||||