> 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.

Will depend on your exact use-case of course, but I'd suggest deriving
your own widget from the appropriate existing widget, then adding in the
necessary methods for the rotated labels and so forth.


SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to