From f13defde281dbd383dbc21488154a109dff50b40 Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 24 Apr 2009 09:28:30 +0000 Subject: 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 --- FL/fl_draw.H | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'FL') 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 @@ -283,10 +283,23 @@ FL_EXPORT const char *fl_local_to_mac_roman(const char *t, int n=-1); to control characters. */ 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. */ -- cgit v1.2.3