diff options
author | Matt Ebb <matt@mke3.net> | 2007-08-20 05:02:12 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2007-08-20 05:02:12 +0400 |
commit | 21c567854a35588aef445495d17706ff6c7d2245 (patch) | |
tree | 14bbfe1afaac5d2eb8660e7b0c46c2dec61ba548 /source/blender/ftfont/intern | |
parent | 4ef547a79d0bf4282c72b61b87e46dd148640f13 (diff) |
Patch #6770 by James C (sheep)
Tooltip getStringSize and getBoundingBox correction
Not really any user-visible changes here, but a nice clean-up of
internal font drawing functions, in this case used in tooltips.
Thanks!
Diffstat (limited to 'source/blender/ftfont/intern')
-rw-r--r-- | source/blender/ftfont/intern/FTF_TTFont.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/ftfont/intern/FTF_TTFont.h b/source/blender/ftfont/intern/FTF_TTFont.h index c4dee93c5dc..b5ff1cc54bf 100644 --- a/source/blender/ftfont/intern/FTF_TTFont.h +++ b/source/blender/ftfont/intern/FTF_TTFont.h @@ -78,6 +78,17 @@ public: float GetStringWidth(char* str, unsigned int flag); + /** + * Get the bounding box for a string. + * + * @param str The string + * @param llx Lower left near x coord + * @param lly Lower left near y coord + * @param llz Lower left near z coord + * @param urx Upper right far x coord + * @param ury Upper right far y coord + * @param urz Upper right far z coord + */ void GetBoundingBox(char* str, float *llx, float *lly, float *llz, float *urx, float *ury, float *urz, unsigned int flag); /** |