Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2008-11-29 18:04:19 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2008-11-29 18:04:19 +0300
commitf07f6f6fa0f7bef70c76a1a8e1eab65ecf501804 (patch)
tree539bb462128f5787a659c6131cbbabd4ca7c2fc3 /source/blender/makesrna/intern/rna_screen.c
parent97dcbbf88612fd89e0643e75994b82294bdabb2c (diff)
* scrarea verts
Diffstat (limited to 'source/blender/makesrna/intern/rna_screen.c')
-rw-r--r--source/blender/makesrna/intern/rna_screen.c37
1 files changed, 32 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_screen.c b/source/blender/makesrna/intern/rna_screen.c
index b599a607670..736c5681fbb 100644
--- a/source/blender/makesrna/intern/rna_screen.c
+++ b/source/blender/makesrna/intern/rna_screen.c
@@ -81,27 +81,54 @@ static void RNA_def_scrvert(BlenderRNA *brna)
RNA_def_property_int_sdna(prop, NULL, "vec.x");
RNA_def_property_array(prop, 2);
RNA_def_property_ui_text(prop, "Location", "Screen Vert Location");
- /*
- prop= RNA_def_property(srna, "y", PROP_INT, PROP_NONE);
- RNA_def_property_int_sdna(prop, NULL, "vec.y");
- RNA_def_property_array(prop, 2);
- RNA_def_property_ui_text(prop, "Y Location", "Screen Vert Y-Location");*/
}
static void RNA_def_scredge(BlenderRNA *brna)
{
StructRNA *srna;
+ PropertyRNA *prop;
srna= RNA_def_struct(brna, "ScrEdge", NULL, "Screen Edge");
RNA_def_struct_sdna(srna, "ScrEdge");
+
+ prop= RNA_def_property(srna, "start", PROP_INT, PROP_VECTOR);
+ RNA_def_property_int_sdna(prop, NULL, "v1->vec.x");
+ RNA_def_property_array(prop, 2);
+ RNA_def_property_ui_text(prop, "Edge Start", "Screen Edge Start");
+
+ prop= RNA_def_property(srna, "end", PROP_INT, PROP_VECTOR);
+ RNA_def_property_int_sdna(prop, NULL, "v2->vec.x");
+ RNA_def_property_array(prop, 2);
+ RNA_def_property_ui_text(prop, "Edge End", "Screen Edge End");
}
static void RNA_def_scrarea(BlenderRNA *brna)
{
StructRNA *srna;
+ PropertyRNA *prop;
srna= RNA_def_struct(brna, "ScrArea", NULL, "Area");
RNA_def_struct_sdna(srna, "ScrArea");
+
+ prop= RNA_def_property(srna, "v1", PROP_INT, PROP_VECTOR);
+ RNA_def_property_int_sdna(prop, NULL, "v1->vec.x");
+ RNA_def_property_array(prop, 2);
+ RNA_def_property_ui_text(prop, "Area v1", "Screen Area v1");
+
+ prop= RNA_def_property(srna, "v2", PROP_INT, PROP_VECTOR);
+ RNA_def_property_int_sdna(prop, NULL, "v2->vec.x");
+ RNA_def_property_array(prop, 2);
+ RNA_def_property_ui_text(prop, "Area v2", "Screen Area v2");
+
+ prop= RNA_def_property(srna, "v3", PROP_INT, PROP_VECTOR);
+ RNA_def_property_int_sdna(prop, NULL, "v3->vec.x");
+ RNA_def_property_array(prop, 2);
+ RNA_def_property_ui_text(prop, "Area v3", "Screen Area v3");
+
+ prop= RNA_def_property(srna, "v4", PROP_INT, PROP_VECTOR);
+ RNA_def_property_int_sdna(prop, NULL, "v4->vec.x");
+ RNA_def_property_array(prop, 2);
+ RNA_def_property_ui_text(prop, "Area v4", "Screen Area v4");
}
static void RNA_def_panel(BlenderRNA *brna)