added documentation for the extended gui-interaction & co. operators
This commit is contained in:
parent
22bc8f6d87
commit
a4726678ff
|
@ -16,16 +16,65 @@ images. Future runs (with the environment variable unset) use the
|
||||||
generated image.
|
generated image.
|
||||||
|
|
||||||
@deftogether[(
|
@deftogether[(
|
||||||
@defform[(gui-interaction datum ...)]
|
@defform*[((gui-interaction datum ...)
|
||||||
@defform[(gui-interaction-eval datum ...)]
|
(gui-interaction
|
||||||
@defform[(gui-interaction-eval-show datum ...)]
|
#:eval+opts the-eval get-predicate? get-render
|
||||||
@defform[(gui-schemeblock+eval datum ...)]
|
get-get-width get-get-height
|
||||||
@defform[(gui-schememod+eval datum ...)]
|
datum ...))
|
||||||
@defform[(gui-def+int datum ...)]
|
]
|
||||||
@defform[(gui-defs+int datum ...)]
|
@defform*[((gui-interaction-eval datum ...)
|
||||||
|
(gui-interaction-eval
|
||||||
|
#:eval+opts the-eval get-predicate? get-render
|
||||||
|
get-get-width get-get-height
|
||||||
|
datum ... ))]
|
||||||
|
@defform*[((gui-interaction-eval-show datum ...)
|
||||||
|
(gui-interaction-eval-show
|
||||||
|
#:eval+opts the-eval get-predicate? get-render
|
||||||
|
get-get-width get-get-height
|
||||||
|
datum ...))]
|
||||||
|
@defform*[((gui-schemeblock+eval datum ...)
|
||||||
|
(gui-schemeblock+eval
|
||||||
|
#:eval+opts the-eval get-predicate? get-render
|
||||||
|
get-get-width get-get-height
|
||||||
|
datum ...))]
|
||||||
|
@defform*[((gui-schememod+eval datum ...)
|
||||||
|
(gui-schememod+eval
|
||||||
|
#:eval+opts the-eval get-predicate? get-render
|
||||||
|
get-get-width get-get-height
|
||||||
|
datum ...))]
|
||||||
|
@defform*[((gui-def+int datum ...)
|
||||||
|
(gui-def+int
|
||||||
|
#:eval+opts the-eval get-predicate? get-render
|
||||||
|
get-get-width get-get-height
|
||||||
|
datum ...))]
|
||||||
|
@defform*[((gui-defs+int datum ...)
|
||||||
|
(gui-defs+int
|
||||||
|
#:eval+opts the-eval get-predicate? get-render
|
||||||
|
get-get-width get-get-height
|
||||||
|
datum ...))]
|
||||||
)]{
|
)]{
|
||||||
|
|
||||||
Like @scheme[interaction], etc., but actually evaluating the forms
|
The first option of each of the above is
|
||||||
|
like @scheme[interaction], etc., but actually evaluating the forms
|
||||||
only when the @envvar{MREVAL} environment variable is set, and then in
|
only when the @envvar{MREVAL} environment variable is set, and then in
|
||||||
an evaluator that is initialized with @schememodname[racket/gui/base]
|
an evaluator that is initialized with @schememodname[racket/gui/base]
|
||||||
and @schememodname[slideshow]. }
|
and @schememodname[slideshow].
|
||||||
|
|
||||||
|
The second option of each allows you to specify your own evaluator via
|
||||||
|
the @scheme[the-eval] argument and then to specify four thunks that
|
||||||
|
return functions for finding and rendering graphical objects:
|
||||||
|
@itemize[
|
||||||
|
@item{@scheme[get-predicate? : (-> (-> any/c boolean?))]
|
||||||
|
Determines if a value is a graphical object (and thus handled by the other operations)}
|
||||||
|
@item{@scheme[get-render : (-> (-> any/c (is-a?/c dc<%>) number? number? void?))]
|
||||||
|
Draws a graphical object (only called if the predicate returned @scheme[#t]; the first
|
||||||
|
argument will be the value for which the predicate holds).}
|
||||||
|
@item{@scheme[get-get-width : (-> (-> any/c number?))]
|
||||||
|
Gets the width of a graphical object (only called if the predicate returned @scheme[#t]; the first
|
||||||
|
argument will be the value for which the predicate holds).}
|
||||||
|
@item{@scheme[get-get-height : (-> (-> any/c number?))]
|
||||||
|
Gets the height of a graphical object (only called if the predicate returned @scheme[#t]; the first
|
||||||
|
argument will be the value for which the predicate holds).}
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user