[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59904] trunk/blender/source/blender/ makesrna/intern/rna_wm_api.c: rna wrap WM_cursor_warp
Campbell Barton
ideasman42 at gmail.com
Sat Sep 7 01:17:29 CEST 2013
Revision: 59904
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59904
Author: campbellbarton
Date: 2013-09-06 23:17:29 +0000 (Fri, 06 Sep 2013)
Log Message:
-----------
rna wrap WM_cursor_warp
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_wm_api.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_wm_api.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_wm_api.c 2013-09-06 22:54:22 UTC (rev 59903)
+++ trunk/blender/source/blender/makesrna/intern/rna_wm_api.c 2013-09-06 23:17:29 UTC (rev 59904)
@@ -327,17 +327,21 @@
FunctionRNA *func;
PropertyRNA *parm;
- (void)func;
- (void)parm;
+ func = RNA_def_function(srna, "cursor_warp", "WM_cursor_warp");
+ parm = RNA_def_int(func, "x", 0, INT_MIN, INT_MAX, "", "", INT_MIN, INT_MAX);
+ RNA_def_property_flag(parm, PROP_REQUIRED);
+ parm = RNA_def_int(func, "y", 0, INT_MIN, INT_MAX, "", "", INT_MIN, INT_MAX);
+ RNA_def_property_flag(parm, PROP_REQUIRED);
+ RNA_def_function_ui_description(func, "Set the cursor position");
func = RNA_def_function(srna, "cursor_set", "WM_cursor_set");
- parm = RNA_def_property(func, "icon", PROP_ENUM, PROP_NONE);
+ parm = RNA_def_property(func, "cursor", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(parm, window_cursor_items);
RNA_def_property_flag(parm, PROP_REQUIRED);
RNA_def_function_ui_description(func, "Set the cursor");
func = RNA_def_function(srna, "cursor_modal_set", "WM_cursor_modal_set");
- parm = RNA_def_property(func, "icon", PROP_ENUM, PROP_NONE);
+ parm = RNA_def_property(func, "cursor", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(parm, window_cursor_items);
RNA_def_property_flag(parm, PROP_REQUIRED);
RNA_def_function_ui_description(func, "Set the cursor, so the previous cursor can be restored");
More information about the Bf-blender-cvs
mailing list