mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
Fixed bad '\' escape sequences (removed "unknown command" warnings).
And yes, I added some <tt> tags again, because e.g. "@." wouldn't be very well readable in a proportional font (FL_Browser.H). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+21
-21
@@ -152,32 +152,32 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
The first form gets the current format code prefix character, which by
|
The first form gets the current format code prefix character, which by
|
||||||
default is @. A string of formatting codes at the start of
|
default is '\@'. A string of formatting codes at the start of
|
||||||
each column are stripped off and used to modify how the rest of the
|
each column are stripped off and used to modify how the rest of the
|
||||||
line is printed:
|
line is printed:
|
||||||
<UL>
|
<UL>
|
||||||
<LI>@. Print rest of line, don't look for more '@' signs </LI>
|
<LI><tt>'\@.'</tt> Print rest of line, don't look for more '\@' signs </LI>
|
||||||
<LI>@@ Print rest of line starting with '@' </LI>
|
<LI><tt>'\@\@'</tt> Print rest of line starting with '\@' </LI>
|
||||||
<LI>@l Use a <BIG>large</BIG> (24 point) font </LI>
|
<LI><tt>'\@l'</tt> Use a <BIG>large</BIG> (24 point) font </LI>
|
||||||
<LI>@m Use a <BIG>medium large</BIG> (18 point) font </LI>
|
<LI><tt>'\@m'</tt> Use a <BIG>medium large</BIG> (18 point) font </LI>
|
||||||
<LI>@s Use a <SMALL>small</SMALL> (11 point) font </LI>
|
<LI><tt>'\@s'</tt> Use a <SMALL>small</SMALL> (11 point) font </LI>
|
||||||
<LI>@b Use a <B>bold</B> font (adds FL_BOLD to font) </LI>
|
<LI><tt>'\@b'</tt> Use a <B>bold</B> font (adds FL_BOLD to font) </LI>
|
||||||
<LI>@i Use an <I>italic</I> font (adds FL_ITALIC to font) </LI>
|
<LI><tt>'\@i'</tt> Use an <I>italic</I> font (adds FL_ITALIC to font) </LI>
|
||||||
<LI>@f or @t Use a fixed-pitch
|
<LI><tt>'\@f' or \@t</tt> Use a fixed-pitch
|
||||||
font (sets font to FL_COURIER) </LI>
|
font (sets font to FL_COURIER) </LI>
|
||||||
<LI>@c Center the line horizontally </LI>
|
<LI><tt>'\@c'</tt> Center the line horizontally </LI>
|
||||||
<LI>@r Right-justify the text </LI>
|
<LI><tt>'\@r'</tt> Right-justify the text </LI>
|
||||||
<LI>@B0, @B1, ... @B255 Fill the backgound with
|
<LI><tt>'\@B0', '\@B1', ... '\@B255'</tt> Fill the backgound with
|
||||||
fl_color(n) </LI>
|
fl_color(n) </LI>
|
||||||
<LI>@C0, @C1, ... @C255 Use fl_color(n) to draw the text </LI>
|
<LI><tt>'\@C0', '\@C1', ... '\@C255'</tt> Use fl_color(n) to draw the text </LI>
|
||||||
<LI>@F0, @F1, ... Use fl_font(n) to draw the text </LI>
|
<LI><tt>'\@F0', '\@F1', ...</tt> Use fl_font(n) to draw the text </LI>
|
||||||
<LI>@S1, @S2, ... Use point size n to draw the text </LI>
|
<LI><tt>'\@S1', '\@S2', ...</tt> Use point size n to draw the text </LI>
|
||||||
<LI>@u or @_ Underline the text. </LI>
|
<LI><tt>'\@u' or '\@_'</tt> Underline the text. </LI>
|
||||||
<LI>@- draw an engraved line through the middle. </LI>
|
<LI><tt>'\@-'</tt> draw an engraved line through the middle. </LI>
|
||||||
</UL>
|
</UL>
|
||||||
Notice that the @. command can be used to reliably
|
Notice that the '\@.' command can be used to reliably
|
||||||
terminate the parsing. To print a random string in a random color, use
|
terminate the parsing. To print a random string in a random color, use
|
||||||
sprintf("@C%d@.%s", color, string) and it will work even if the
|
sprintf("\@C%d\@.%s", color, string) and it will work even if the
|
||||||
string starts with a digit or has the format character in it.
|
string starts with a digit or has the format character in it.
|
||||||
<P>The second form sets the current prefix to c. Set the
|
<P>The second form sets the current prefix to c. Set the
|
||||||
prefix to 0 to disable formatting.
|
prefix to 0 to disable formatting.
|
||||||
@@ -187,14 +187,14 @@ public:
|
|||||||
void format_char(char c) {format_char_ = c;}
|
void format_char(char c) {format_char_ = c;}
|
||||||
/**
|
/**
|
||||||
The first form gets the current column separator character. By default
|
The first form gets the current column separator character. By default
|
||||||
this is '\t' (tab).
|
this is '\\t' (tab).
|
||||||
<P>The second form sets the column separator to c. This will
|
<P>The second form sets the column separator to c. This will
|
||||||
only have an effect if you also set column_widths().
|
only have an effect if you also set column_widths().
|
||||||
*/
|
*/
|
||||||
char column_char() const {return column_char_;}
|
char column_char() const {return column_char_;}
|
||||||
/**
|
/**
|
||||||
The first form gets the current column separator character. By default
|
The first form gets the current column separator character. By default
|
||||||
this is '\t' (tab).
|
this is '\\t' (tab).
|
||||||
<P>The second form sets the column separator to c. This will
|
<P>The second form sets the column separator to c. This will
|
||||||
only have an effect if you also set column_widths().
|
only have an effect if you also set column_widths().
|
||||||
*/
|
*/
|
||||||
|
|||||||
+3
-3
@@ -38,7 +38,7 @@
|
|||||||
of text and lets the user edit it. Normally it is drawn with an
|
of text and lets the user edit it. Normally it is drawn with an
|
||||||
inset box and a white background. The text may contain any
|
inset box and a white background. The text may contain any
|
||||||
characters (even 0), and will correctly display anything, using
|
characters (even 0), and will correctly display anything, using
|
||||||
^X notation for unprintable control characters and \nnn notation
|
^X notation for unprintable control characters and \\nnn notation
|
||||||
for unprintable characters with the high bit set. It assumes the
|
for unprintable characters with the high bit set. It assumes the
|
||||||
font can draw any characters in the ISO-8859-1 character set.</P>
|
font can draw any characters in the ISO-8859-1 character set.</P>
|
||||||
|
|
||||||
@@ -67,8 +67,8 @@
|
|||||||
or deletes the selected region.</TD></TR>
|
or deletes the selected region.</TD></TR>
|
||||||
<TR><TD><B>^E or End</B></TD><TD>Go to the end of line.</TD></TR>
|
<TR><TD><B>^E or End</B></TD><TD>Go to the end of line.</TD></TR>
|
||||||
<TR><TD><B>^F or Right</B></TD><TD>Move right</TD></TR>
|
<TR><TD><B>^F or Right</B></TD><TD>Move right</TD></TR>
|
||||||
<TR><TD><B>^K</B></TD><TD>Delete to the end of line (next \n character)
|
<TR><TD><B>^K</B></TD><TD>Delete to the end of line (next \\n character)
|
||||||
or deletes a single \n character. These deletions are all concatenated
|
or deletes a single \\n character. These deletions are all concatenated
|
||||||
into the clipboard.</TD></TR>
|
into the clipboard.</TD></TR>
|
||||||
<TR><TD><B>^N or Down</B></TD><TD>Move down (for Fl_Multiline_Input
|
<TR><TD><B>^N or Down</B></TD><TD>Move down (for Fl_Multiline_Input
|
||||||
only, otherwise it moves to the next input field).</TD></TR>
|
only, otherwise it moves to the next input field).</TD></TR>
|
||||||
|
|||||||
+2
-2
@@ -42,9 +42,9 @@
|
|||||||
<P>There is a single subclass,
|
<P>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. </P>
|
text. </P>
|
||||||
<P>The text may contain any characters except \0, and will correctly
|
<P>The text may contain any characters except \\0, and will correctly
|
||||||
display anything, using ^X notation for unprintable control characters
|
display anything, using ^X notation for unprintable control characters
|
||||||
and \nnn notation for unprintable characters with the high bit set. It
|
and \\nnn notation for unprintable characters with the high bit set. It
|
||||||
assumes the font can draw any characters in the ISO-Latin1 character
|
assumes the font can draw any characters in the ISO-Latin1 character
|
||||||
set.
|
set.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
<P>The pattern argument can be a NULL
|
<P>The pattern argument can be a NULL
|
||||||
string or "*" to list all files, or it can be a
|
string or "*" to list all files, or it can be a
|
||||||
series of descriptions and filter strings separated by tab
|
series of descriptions and filter strings separated by tab
|
||||||
characters (\t). The format of filters is either
|
characters (\\t). The format of filters is either
|
||||||
"Description text (patterns)" or just "patterns". A file chooser
|
"Description text (patterns)" or just "patterns". A file chooser
|
||||||
that provides filters for HTML and image files might look like:
|
that provides filters for HTML and image files might look like:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user