summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authoryuri <yuri>2009-04-24 09:28:30 +0000
committeryuri <yuri>2009-04-24 09:28:30 +0000
commitf13defde281dbd383dbc21488154a109dff50b40 (patch)
treed2b2725fc4c8054797cc3018abd5e1baef489e2d /FL
parentca3984892fecd1e2784e65226b2c44d2eba0671b (diff)
add fl_draw(int angle, const char* ... functions for rotated text drawing
STR#1840 closed, STR#207 not closed because non-xft functions not implemented drawing of N Utf8 characters need correction for rotated and not rotated fl_draw functions not solved! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/fl_draw.H13
1 files changed, 13 insertions, 0 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H
index f0af55781..f10bcaa7c 100644
--- a/FL/fl_draw.H
+++ b/FL/fl_draw.H
@@ -284,10 +284,23 @@ FL_EXPORT const char *fl_local_to_mac_roman(const char *t, int n=-1);
*/
FL_EXPORT void fl_draw(const char* str, int x, int y);
/**
+ Draws a nul-terminated string starting at the given location and
+ rotating \p angle degrees counterclockwise.
+ This version of fl_draw provides direct access to the text drawing
+ function of the underlying OS and suported for Xft, Win32 and MacOS
+ fltk subset.
+*/
+FL_EXPORT void fl_draw(int angle,const char* str, int x, int y);
+/**
Draws an array of \p n characters starting at the given location.
*/
FL_EXPORT void fl_draw(const char* str, int n, int x, int y);
/**
+ Draws an array of \p n characters starting at the given location,
+ rotating \p angle degrees counterclockwise.
+*/
+FL_EXPORT void fl_draw(int angle,const char* str, int n, int x, int y);
+/**
Draws an array of \p n characters right to left starting at given location.
*/
FL_EXPORT void fl_rtl_draw(const char*, int n, int x, int y);