From 0156ad664be7b2f45302c76d41724c7a3e5907fa Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Tue, 13 Sep 2011 15:08:21 -0500 Subject: [PATCH] docs for new read-snip-from-port function in the wxme library original commit: a4336c39976d10974e2e74151e8e7cfd36c92ee2 --- collects/scribblings/gui/wxme.scrbl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/collects/scribblings/gui/wxme.scrbl b/collects/scribblings/gui/wxme.scrbl index a1af9075..a2cc8f00 100644 --- a/collects/scribblings/gui/wxme.scrbl +++ b/collects/scribblings/gui/wxme.scrbl @@ -245,6 +245,16 @@ editor's content. The @racket[what] argument is as for @method[stream<%> read-integer].} } +@defproc[(read-snip-from-port [name string?] + [who any/c] + [stream (is-a?/c stream<%>)]) + bytes?]{ + Given @racket[name], which is expected to be the name of a snipclass, + uses that snipclass to read from the given stream at the current point + in that stream. Returns the processed bytes, much like the + @method[snip-reader<%> read-snip] method. +} + @; ---------------------------------------------------------------------- @section[#:tag "snipclassmapping"]{Snip Class Mapping}