1 //
2 // "$Id$"
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 
19 /* \file
20    Fl_Output widget . */
21 
22 #ifndef Fl_Output_H
23 #define Fl_Output_H
24 
25 #include "Fl_Input.H"
26 /**
27   This widget displays a piece of text.
28 
29   When you set the value() , Fl_Output does a strcpy() to its own storage,
30   which is useful for program-generated values.  The user may select
31   portions of the text using the mouse and paste the contents into other
32   fields or programs.
33 
34   <P align=CENTER>\image html text.png</P>
35   \image latex text.png "Fl_Output" width=8cm
36 
37   There is a single subclass, Fl_Multiline_Output, which allows you to
38   display multiple lines of text. Fl_Multiline_Output does not provide
39   scroll bars. If a more complete text editing widget is needed, use
40   Fl_Text_Display instead.
41 
42   The text may contain any characters except \\0, and will correctly
43   display anything, using ^X notation for unprintable control characters
44   and \\nnn notation for unprintable characters with the high bit set. It
45   assumes the font can draw any characters in the ISO-Latin1 character set.
46 */
47 class FL_EXPORT Fl_Output : public Fl_Input {
48 public:
49   /**
50     Creates a new Fl_Output widget using the given position,
51     size, and label string. The default boxtype is FL_DOWN_BOX.
52 
53     Inherited destructor destroys the widget and any value associated with it.
54   */
55 
56     Fl_Output(int X,int Y,int W,int H, const char *l = 0);
57 };
58 
59 #endif
60 
61 //
62 // End of "$Id$".
63 //
64