|
superclass: object% |
constructor
(new snip-class%) → (is-a?/c snip-class%)
method
(send a-snip-class get-classname) → string?
A snip class name should usually have the form "((lib ...)\n(lib ...))" to enable on-demand loading of the class. See Snip Classes for details.
method
(send a-snip-class get-version) → exact-integer?
Default implementation: Returns #f.
method
(send a-snip-class read-header f) → boolean?
f : (is-a?/c editor-stream-in%)
The return value is #f if a read error occurs or anything else otherwise.
See also write-header.
Default implementation: Returns #t.
method
(send a-snip-class reading-version stream) → exact-integer?
stream : (is-a?/c editor-stream-in%)
method
(send a-snip-class set-classname name) → void?
name : string?
method
(send a-snip-class set-version v) → void?
v : exact-integer?
method
(send a-snip-class write-header stream) → boolean?
stream : (is-a?/c editor-stream-out%)
When reading the snips back in, read-header will only be called if write-header writes some data to the stream.
The return value is #f if a write error occurs or anything else otherwise.