* Added function Blender.Draw.GetStringWidth().

* Added doc and small test for Blender.Test
* trying changes to make Blender.Test.unlink() safer.
This commit is contained in:
2003-06-26 02:03:51 +00:00
parent dd8f216691
commit 72f0cdace4
8 changed files with 408 additions and 174 deletions

View File

@@ -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),