> > On 07.05.2010, at 10:46, Albrecht Schlosser wrote: > > >> I don't know if fltk2 has that ability or not (though it is feasible = > on > >> many modern systems). > >=20 > > FLTK 1.3 has support for rotated text drawing, and it works at least = > on=20 > > Windows and Linux (just tested to be sure), but I don't know if it = > would=20 > > work for Mac OS X, see: > >=20 > > = > <http://www.fltk.org/doc-1.3/group__fl__drawings.html#g14f28b302c1adf1f6dc= > 76efbd6275a50> > >=20 > > "fl_draw (int angle, const char *str, int n, int x, int y) > > Draws an array of n characters starting at the given location, > > rotating angle degrees counterclockwise." > >=20 > > For an example see test/rotated_text.cxx > > Holy cow! I did not know that. Anyways, I added the test program to the = > Fluid IDE settings and committed the changes. We should probably add = > this demo to the "Demo" program as well. > > Oh, and yes, it works very well on OS X. > > - Matthias= >
OK. Thanks! fl_draw() and Fl_Rotated_Text are good examples. The thing I am trying to do is to create a new method in FLTK 2, like label(int angle, char text). But I am not sure what would be the best way to implement that functionality, as a method or function. By me method way is the best. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

