[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52884] trunk/blender/source/blender/ makesrna/intern/rna_wm.c: RNA: add Window x/y position and size access.
Brecht Van Lommel
brechtvanlommel at pandora.be
Tue Dec 11 15:39:31 CET 2012
Revision: 52884
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52884
Author: blendix
Date: 2012-12-11 14:39:30 +0000 (Tue, 11 Dec 2012)
Log Message:
-----------
RNA: add Window x/y position and size access.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_wm.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_wm.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_wm.c 2012-12-11 14:39:28 UTC (rev 52883)
+++ trunk/blender/source/blender/makesrna/intern/rna_wm.c 2012-12-11 14:39:30 UTC (rev 52884)
@@ -1617,6 +1617,26 @@
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 */
More information about the Bf-blender-cvs
mailing list