From 09daf20b81cdae78772f07c0af22a571d7cc73eb Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 29 Nov 2001 19:24:00 +0000 Subject: Documentation updates galore (up to chapter 7, still need to do chapter 8 and 9, tweek the appendices, and recapture the screenshots...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Output.html | 52 ++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'documentation/Fl_Output.html') diff --git a/documentation/Fl_Output.html b/documentation/Fl_Output.html index fee6d91b9..d8fec183b 100644 --- a/documentation/Fl_Output.html +++ b/documentation/Fl_Output.html @@ -20,18 +20,18 @@

Description

This widget displays a piece of text. When you set the value() -, Fl_Output does a strcpy() to it's own storage, -which is useful for program-generated values. The user may select -portions of the text using the mouse and paste the contents into other -fields or programs. +, Fl_Output does a strcpy() to it's own storage, +which is useful for program-generated values. The user may select +portions of the text using the mouse and paste the contents into other +fields or programs.
Fl_Output widget.

There is a single subclass, -Fl_Multiline_Output, which allows you to display multiple lines of +Fl_Multiline_Output, which allows you to display multiple lines of text.

-

The text may contain any characters except \0, and will correctly -display anything, using ^X notation for unprintable control characters -and \nnn notation for unprintable characters with the high bit set. It -assummes the font can draw any characters in the ISO-Latin1 character +

The text may contain any characters except \0, and will correctly +display anything, using ^X notation for unprintable control characters +and \nnn notation for unprintable characters with the high bit set. It +assummes the font can draw any characters in the ISO-Latin1 character set.

Methods

-

Fl_Output::Fl_Output(int x, int y, int +

Fl_Output::Fl_Output(int x, int y, int w, int h, const char *label = 0)

- Creates a new Fl_Output widget using the given position, -size, and label string. The default boxtype is FL_DOWN_BOX. + Creates a new Fl_Output widget using the given position, +size, and label string. The default boxtype is FL_DOWN_BOX.

virtual Fl_Output::~Fl_Output()

- Destroys the widget and any value associated with it. + Destroys the widget and any value associated with it.

const char *Fl_Output::value() const
int Fl_Output::value(const char*)
int Fl_Output::value(const char*, int)

- The first form returns the current value, which is a pointer to the -internal buffer and is valid only until the value is changed. -

The second two forms change the text and set the mark and the point + The first form returns the current value, which is a pointer to the +internal buffer and is valid only until the value is changed. +

The second two forms change the text and set the mark and the point to the end of it. The string is copied to the internal buffer. Passing -NULL is the same as "". This returns non-zero if the new value is -different than the current one. You can use the second version to -directly set the length if you know it already or want to put nul's in +NULL is the same as "". This returns non-zero if the new value is +different than the current one. You can use the second version to +directly set the length if you know it already or want to put nul's in the text.

int Fl_Output::size() const

- Returns the number of characters in value(). This may be -greater than strlen(value()) if there are nul characters in -it. + Returns the number of characters in value(). This may be +greater than strlen(value()) if there are nul characters in +it.

char Fl_Output::index(int) const

- Same as value()[n], but may be faster in plausible -implementations. No bounds checking is done. + Same as value()[n], but may be faster in plausible +implementations. No bounds checking is done.

Fl_Color Fl_Output::textcolor() const
void Fl_Output::textcolor(Fl_Color)

- Gets or sets the color of the text in the input field. + Gets or sets the color of the text in the input field.

Fl_Font Fl_Output::textfont() const
void Fl_Output::textfont(Fl_Font)

- Gets or sets the font of the text in the input field. + Gets or sets the font of the text in the input field.

uchar Fl_Output::textsize() const
void Fl_Output::textsize(uchar)

Gets or sets the size of the text in the input field. -- cgit v1.2.3