| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |
Arguments: class-name &optional location direction &rest options
This function creates streams. In Allegro CL for Windows 3.0.x, it was
used to create window streams (i.e. windows) as well as other types of
Common Graphics streams, such as bitmap-stream
and printer
streams. Starting in 5.0, however, it should not be used for making
windows (although it still works for that purpose for backward
compatibility). New code should use make-window instead to make a
window.
open-stream
should still be used for printer steams and bitmap-streams. The
class-name is the class of the stream (either
printer
, bitmap-stream
or an
appropriate subclass).
The location and direction
arguments are ignored because Common Graphics now uses simple-streams
(see Common Graphics
and Simple Streams in cgide.htm). They
remain as optional arguments for backward compatibility. Values must
be passed if additional initargs are to be specified, but nil
is a suitable value for both arguments.
For example, a printer stream is typically opened with the form
(open-stream 'printer nil nil ...)
where the ... may be replaced by any number of initargs. For a list of open-stream initargs for printers, refer to pop-up-printer-job-dialog. Note that if there are no initargs, this will open a printer stream:
(open-stream 'printer)
The exact list of possible arguments depends on the class-name.
See also cg-stream
.
Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |