diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-06-26 06:03:51 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-06-26 06:03:51 +0400 |
commit | 72f0cdace4cd4e83b8175f255a0d7733bfa2f0d1 (patch) | |
tree | f9d8f3d9d36933bc50785bdc773baf7f1ac5ddc9 /source/blender/python/api2_2x/Draw.h | |
parent | dd8f2166916844eb8b8013fa78931b3f671fe9f5 (diff) |
* Added function Blender.Draw.GetStringWidth().
* Added doc and small test for Blender.Test
* trying changes to make Blender.Test.unlink() safer.
Diffstat (limited to 'source/blender/python/api2_2x/Draw.h')
-rw-r--r-- | source/blender/python/api2_2x/Draw.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Draw.h b/source/blender/python/api2_2x/Draw.h index 3c7abb90b16..e1572226a2a 100644 --- a/source/blender/python/api2_2x/Draw.h +++ b/source/blender/python/api2_2x/Draw.h @@ -265,10 +265,14 @@ new String button\n\n\ static PyObject *Method_String (PyObject *self, PyObject *args); +static char Method_GetStringWidth_doc[] = +"(text) - Return the width in pixels of the given string"; + static char Method_Text_doc[] = "(text) - Draw text onscreen\n\n\ (text) The text to draw\n"; +static PyObject *Method_GetStringWidth (PyObject *self, PyObject *args); static PyObject *Method_Text (PyObject *self, PyObject *args); #define _MethodDef(func, prefix) \ @@ -290,6 +294,8 @@ static struct PyMethodDef Draw_methods[] = { MethodDef(Number), MethodDef(String), + MethodDef(GetStringWidth), + MethodDef(Text), MethodDef(Exit), |