Page 153 | Table of Contents | Index | Page 155 |
Chapters | |||
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30 A, B, C, D, E |
Major issue: This is the place where write-string and friends get captured in order to
create output record. The generic functions include things like stream-write-string, which
are specialized by output recording streams to do the output recording. Describe exactly what
happens. | SWM
=> stream-text-output-record stream text-style [Generic Function]
Returns a text output record for the output recording stream stream suitable for holding char-
acters in the text style text-style. If there is a currently "open" text output record that can hold
characters in the specified text style, it is simply returned. Otherwise a new text output record
is created that can hold characters in that text style, and its starting cursor position set to the
cursor position of stream.
=> stream-close-text-output-record stream [Generic Function]
Closes the output recording stream stream's currently "open" text output record by recording
the stream's current cursor position as the ending cursor position of the record and adding the
text output record to stream's current output record by calling stream-add-output-record.
If there is no "open" text output record, stream-close-text-output-record does nothing.
Calling stream-finish-output or stream-force-output, calling redisplay, setting the text
cursor position (via stream-set-cursor-position, terpri, or fresh-line), creating a new
output record (for example, via with-new-output-record), or changing the state of stream-
recording-p must close the current text output record. Some CLIM implementations may also
choose to close the current text output record when the stream's drawing options or text style
are changed, depending on the exact implementation of text output records.
=> stream-add-character-output stream character text-style width height baseline [Generic Function]
Adds the character character to the output recording stream stream's text output record in
the text style text-style. width and height are the width and height of the character in device
units. baseline is the new baseline for the stream. stream-add-character-output must be
implemented by calling add-character-output-to-text-record.
stream-write-char on an output recording stream will call stream-add-character-output
when stream-recording-p is true.
=> stream-add-string-output stream string start end text-style width height baseline [Generic Function]
Page 153 | Table of Contents | Index | Page 155 |
Chapters | |||
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30 A, B, C, D, E |