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:
authorWillian Padovani Germano <wpgermano@gmail.com>2003-07-01 09:19:14 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2003-07-01 09:19:14 +0400
commitfad2aeb3fb674ed9fe9d5e87622cc1f6b7d4ecb1 (patch)
tree56567faf377aea8043fd2abe78cfc7a29d44acd4 /source/blender/python/api2_2x/Draw.h
parent14b4ed4e8dd15ebbc05fa3947e983d5e6bbc7fc8 (diff)
- small fix in Sys.c to compile on Windows:
Thanks Florian Eggenberger for telling us about it. And Greg McBride for pointing a possible fix. - Draw.Text and Draw.GetStringWidth updated: Now they accept an optional second parameter to set font size and Draw.Text returns the drawn string width. - Partially fixed the update() and PutRaw() bugs in NMesh: A total fix will require bigger changes, but what was done (unless buggy) takes care of the common cases.
Diffstat (limited to 'source/blender/python/api2_2x/Draw.h')
-rw-r--r--source/blender/python/api2_2x/Draw.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Draw.h b/source/blender/python/api2_2x/Draw.h
index e1572226a2a..51858e1a09d 100644
--- a/source/blender/python/api2_2x/Draw.h
+++ b/source/blender/python/api2_2x/Draw.h
@@ -266,11 +266,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";
+"(text, font = 'normal') - Return the width in pixels of the given string\n\
+(font) The font type: 'normal' (default), 'small' or 'tiny'.";
static char Method_Text_doc[] =
-"(text) - Draw text onscreen\n\n\
-(text) The text to draw\n";
+"(text, font = 'normal') - Draw text onscreen\n\n\
+(text) The text to draw\n\
+(font) The font type: 'normal' (default), 'small' or 'tiny'.\n\n\
+NEW! - This function now returns the width of the drawn string.";
static PyObject *Method_GetStringWidth (PyObject *self, PyObject *args);
static PyObject *Method_Text (PyObject *self, PyObject *args);