Fl_Output.H 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // "$Id: Fl_Output.H 9637 2012-07-24 04:37:22Z matt $"
  3. //
  4. // Output header file for the Fast Light Tool Kit (FLTK).
  5. //
  6. // Copyright 1998-2011 by Bill Spitzak and others.
  7. //
  8. // This library is free software. Distribution and use rights are outlined in
  9. // the file "COPYING" which should have been included with this file. If this
  10. // file is missing or damaged, see the license at:
  11. //
  12. // http://www.fltk.org/COPYING.php
  13. //
  14. // Please report all bugs and problems on the following page:
  15. //
  16. // http://www.fltk.org/str.php
  17. //
  18. /* \file
  19. Fl_Output widget . */
  20. #ifndef Fl_Output_H
  21. #define Fl_Output_H
  22. #include "Fl_Input.H"
  23. /**
  24. This widget displays a piece of text.
  25. When you set the value() , Fl_Output does a strcpy() to its own storage,
  26. which is useful for program-generated values. The user may select
  27. portions of the text using the mouse and paste the contents into other
  28. fields or programs.
  29. <P align=CENTER>\image html text.png</P>
  30. \image latex text.png "Fl_Output" width=8cm
  31. There is a single subclass, Fl_Multiline_Output, which allows you to
  32. display multiple lines of text. Fl_Multiline_Output does not provide
  33. scroll bars. If a more complete text editing widget is needed, use
  34. Fl_Text_Display instead.
  35. The text may contain any characters except \\0, and will correctly
  36. display anything, using ^X notation for unprintable control characters
  37. and \\nnn notation for unprintable characters with the high bit set. It
  38. assumes the font can draw any characters in the ISO-Latin1 character set.
  39. */
  40. class FL_EXPORT Fl_Output : public Fl_Input {
  41. public:
  42. /**
  43. Creates a new Fl_Output widget using the given position,
  44. size, and label string. The default boxtype is FL_DOWN_BOX.
  45. Inherited destructor destroys the widget and any value associated with it.
  46. */
  47. Fl_Output(int X,int Y,int W,int H, const char *l = 0);
  48. DECLARE_CLASS_CHEAP_RTTI_2(Fl_Output, Fl_Input)
  49. };
  50. #endif
  51. //
  52. // End of "$Id: Fl_Output.H 9637 2012-07-24 04:37:22Z matt $".
  53. //