RNA: add Window x/y position and size access.
This commit is contained in:
@@ -1617,6 +1617,26 @@ static void rna_def_window(BlenderRNA *brna)
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_Window_screen_set", NULL, NULL);
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_Window_screen_update");
|
||||
|
||||
prop = RNA_def_property(srna, "x", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "posx");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "X Position", "Vertical location of the window");
|
||||
|
||||
prop = RNA_def_property(srna, "y", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "posy");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Y Position", "Horizontal location of the window");
|
||||
|
||||
prop = RNA_def_property(srna, "width", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "sizex");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Width", "Window width");
|
||||
|
||||
prop = RNA_def_property(srna, "height", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "sizey");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Height", "Window height");
|
||||
}
|
||||
|
||||
/* curve.splines */
|
||||
|
Reference in New Issue
Block a user