[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24511] trunk/blender/source/blender/ makesrna/intern/rna_screen.c: region width and height readonly rna access ( for UI scripts) - see context.region.width/height
Campbell Barton
ideasman42 at gmail.com
Wed Nov 11 21:42:18 CET 2009
Revision: 24511
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24511
Author: campbellbarton
Date: 2009-11-11 21:42:18 +0100 (Wed, 11 Nov 2009)
Log Message:
-----------
region width and height readonly rna access (for UI scripts) - see context.region.width/height
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_screen.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_screen.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_screen.c 2009-11-11 19:58:30 UTC (rev 24510)
+++ trunk/blender/source/blender/makesrna/intern/rna_screen.c 2009-11-11 20:42:18 UTC (rev 24511)
@@ -148,6 +148,16 @@
RNA_def_property_int_sdna(prop, NULL, "swinid");
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(prop, "Region ID", "Uniqute ID for this region.");
+
+ prop= RNA_def_property(srna, "width", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "winx");
+ RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+ RNA_def_property_ui_text(prop, "Width", "Area width.");
+
+ prop= RNA_def_property(srna, "height", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "winy");
+ RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+ RNA_def_property_ui_text(prop, "Height", "Area height.");
}
static void rna_def_screen(BlenderRNA *brna)
More information about the Bf-blender-cvs
mailing list