Page 225 Table of Contents Index Page 227
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



CHAPTER 23. PRESENTATION TYPES

The class that represents the default view that is used when computing pointer documentation.
It is a subclass of textual-view.

=> +textual-view+ [Constant]
=> +textual-menu-view+ [Constant]
=> +textual-dialog-view+ [Constant]
=> +gadget-view+ [Constant]
=> +gadget-menu-view+ [Constant]
=> +gadget-dialog-view+ [Constant]
=> +pointer-documentation-view+ [Constant]
These are objects of class textual-view, textual-menu-view, textual-dialog-view, gadget-
view
, gadget-menu-view, gadget-dialog-view, and pointer-documentation-view, respec-
tively.

=> stream-default-view stream [Generic Function]
Returns the default view for the extended stream stream. accept and present get the default
value for the view argument from this. All extended input and output streams must implement
a method for this generic function.

=> (setf stream-default-view) view stream [Generic Function]
Changes the default view for stream to the view view. All extended input and output streams
must implement a method for this generic function.

23.7 Presentation Translators

CLIM provides a mechanism for translating between types. In other words, within an input
context for presentation type A the translator mechanism allows a programmer to define a
translation from presentations of some other type B to objects that are of type A.

Note that the exact representation of a presentation translator has been left explicitly unspecified.

23.7.1 Defining Presentation Translators

=> define-presentation-translator name (from-type to-type command-table &key gesture tester
tester-definitive documentation pointer-documentation menu priority) arglist
&body body [Macro]
Defines a presentation translator named name that translates from objects of type from-type
to objects of type to-type. from-type and to-type are presentation type specifiers, but must
not include any presentation type options. from-type and to-type may be presentation type
abbreviations.

command-table is a command table designator. The translator created by this invocation of


Page 225 Table of Contents Index Page 227
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