/usr/share/doc/racket/scriblib/gui-eval.html is in racket-doc 6.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>1 Examples Using the GUI Toolbox</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">▼</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">Scriblib:<span class="mywbr"> </span> Extra Scribble Libraries</a></td></tr></table></div><div class="tocviewsublistonly" style="display: block;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">Examples Using the GUI Toolbox</a></td></tr><tr><td align="right">2 </td><td><a href="figure.html" class="tocviewlink" data-pltdoc="x">Figures</a></td></tr><tr><td align="right">3 </td><td><a href="autobib.html" class="tocviewlink" data-pltdoc="x">Bibliographies</a></td></tr><tr><td align="right">4 </td><td><a href="bibtex.html" class="tocviewlink" data-pltdoc="x">Bib<span class="mywbr"> </span>Te<span class="mywbr"> </span>X Bibliographies</a></td></tr><tr><td align="right">5 </td><td><a href="footnotes.html" class="tocviewlink" data-pltdoc="x">Footnotes</a></td></tr><tr><td align="right">6 </td><td><a href="render-cond.html" class="tocviewlink" data-pltdoc="x">Conditional Content</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">gui-<wbr></wbr>interaction</span></span></a></td></tr><tr><td><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction-eval%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">gui-<wbr></wbr>interaction-<wbr></wbr>eval</span></span></a></td></tr><tr><td><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction-eval-show%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">gui-<wbr></wbr>interaction-<wbr></wbr>eval-<wbr></wbr>show</span></span></a></td></tr><tr><td><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-racketblock%2Beval%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">gui-<wbr></wbr>racketblock+<span class="mywbr"> </span>eval</span></span></a></td></tr><tr><td><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-racketmod%2Beval%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">gui-<wbr></wbr>racketmod+<span class="mywbr"> </span>eval</span></span></a></td></tr><tr><td><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-def%2Bint%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">gui-<wbr></wbr>def+<span class="mywbr"> </span>int</span></span></a></td></tr><tr><td><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-defs%2Bint%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">gui-<wbr></wbr>defs+<span class="mywbr"> </span>int</span></span></a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">6.1</span></div><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="index.html" title="backward to "Scriblib: Extra Scribble Libraries"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "Scriblib: Extra Scribble Libraries"" data-pltdoc="x">up</a> <a href="figure.html" title="forward to "2 Figures"" data-pltdoc="x">next →</a></span> </div><h3 x-source-module="(lib "scriblib/scribblings/scriblib.scrbl")" x-part-tag=""gui-eval"">1<tt> </tt><a name="(part._gui-eval)"></a><a name="(mod-path._scriblib/gui-eval)"></a>Examples Using the GUI Toolbox</h3><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">scriblib/gui-eval</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">scribble-lib</span></span></td></tr></table></div><div class="SIntrapara">The
<a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">scriblib/gui-eval</span></a> library support example
evaluations that use <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=gui&rel=index.html&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">racket/gui</span></a> facilities (as opposed
to just <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=draw&rel=index.html&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">racket/draw</span></a>) to generate text and image results.</div></p><p>The trick is that <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=gui&rel=index.html&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">racket/gui</span></a> is not generally
available when rendering documentation, because it requires a GUI
context. Text and image output is rendered to an image file when the
<span class="stt">MREVAL</span> environment variable is set, so run the enclosing
document once with the environment varibale to generate the
images. Future runs (with the environment variable unset) use the
generated image.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><table cellspacing="0" cellpadding="0" class="together"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._scriblib/gui-eval..rkt)._gui-interaction))"></a><span title="Provided from: scriblib/gui-eval | Package: scribble-lib"><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-interaction</a></span></span><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-interaction</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:eval+opts</span><span class="hspace"> </span><span class="RktVar">the-eval</span><span class="hspace"> </span><span class="RktVar">get-predicate?</span><span class="hspace"> </span><span class="RktVar">get-render</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">get-get-width</span><span class="hspace"> </span><span class="RktVar">get-get-height</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="together"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._scriblib/gui-eval..rkt)._gui-interaction-eval))"></a><span title="Provided from: scriblib/gui-eval | Package: scribble-lib"><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction-eval%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-interaction-eval</a></span></span><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction-eval%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-interaction-eval</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:eval+opts</span><span class="hspace"> </span><span class="RktVar">the-eval</span><span class="hspace"> </span><span class="RktVar">get-predicate?</span><span class="hspace"> </span><span class="RktVar">get-render</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">get-get-width</span><span class="hspace"> </span><span class="RktVar">get-get-height</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="together"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._scriblib/gui-eval..rkt)._gui-interaction-eval-show))"></a><span title="Provided from: scriblib/gui-eval | Package: scribble-lib"><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction-eval-show%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-interaction-eval-show</a></span></span><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-interaction-eval-show%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-interaction-eval-show</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:eval+opts</span><span class="hspace"> </span><span class="RktVar">the-eval</span><span class="hspace"> </span><span class="RktVar">get-predicate?</span><span class="hspace"> </span><span class="RktVar">get-render</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">get-get-width</span><span class="hspace"> </span><span class="RktVar">get-get-height</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="together"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._scriblib/gui-eval..rkt)._gui-racketblock+eval))"></a><span title="Provided from: scriblib/gui-eval | Package: scribble-lib"><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-racketblock%2Beval%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-racketblock+eval</a></span></span><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-racketblock%2Beval%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-racketblock+eval</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:eval+opts</span><span class="hspace"> </span><span class="RktVar">the-eval</span><span class="hspace"> </span><span class="RktVar">get-predicate?</span><span class="hspace"> </span><span class="RktVar">get-render</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">get-get-width</span><span class="hspace"> </span><span class="RktVar">get-get-height</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="together"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._scriblib/gui-eval..rkt)._gui-racketmod+eval))"></a><span title="Provided from: scriblib/gui-eval | Package: scribble-lib"><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-racketmod%2Beval%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-racketmod+eval</a></span></span><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-racketmod%2Beval%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-racketmod+eval</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:eval+opts</span><span class="hspace"> </span><span class="RktVar">the-eval</span><span class="hspace"> </span><span class="RktVar">get-predicate?</span><span class="hspace"> </span><span class="RktVar">get-render</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">get-get-width</span><span class="hspace"> </span><span class="RktVar">get-get-height</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="together"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._scriblib/gui-eval..rkt)._gui-def+int))"></a><span title="Provided from: scriblib/gui-eval | Package: scribble-lib"><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-def%2Bint%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-def+int</a></span></span><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-def%2Bint%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-def+int</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:eval+opts</span><span class="hspace"> </span><span class="RktVar">the-eval</span><span class="hspace"> </span><span class="RktVar">get-predicate?</span><span class="hspace"> </span><span class="RktVar">get-render</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">get-get-width</span><span class="hspace"> </span><span class="RktVar">get-get-height</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="together"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._scriblib/gui-eval..rkt)._gui-defs+int))"></a><span title="Provided from: scriblib/gui-eval | Package: scribble-lib"><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-defs%2Bint%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-defs+int</a></span></span><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._scriblib%2Fgui-eval..rkt%29._gui-defs%2Bint%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">gui-defs+int</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">#:eval+opts</span><span class="hspace"> </span><span class="RktVar">the-eval</span><span class="hspace"> </span><span class="RktVar">get-predicate?</span><span class="hspace"> </span><span class="RktVar">get-render</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">get-get-width</span><span class="hspace"> </span><span class="RktVar">get-get-height</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">datum</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">The first option of each of the above is
like <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=scribble&rel=eval.html%23%2528form._%2528%2528lib._scribble%252Feval..rkt%2529._interaction%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">interaction</a></span>, etc., but actually evaluating the forms
only when the <span class="stt">MREVAL</span> environment variable is set, and then in
an evaluator that is initialized with <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=gui&rel=index.html&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">racket/gui/base</span></a>
and <a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=slideshow&rel=index.html&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">slideshow</span></a>.</div></p><p><div class="SIntrapara">The second option of each allows you to specify your own evaluator via
the <span class="RktVar">the-eval</span> argument and then to specify four thunks that
return functions for finding and rendering graphical objects:
</div><div class="SIntrapara"><ul><li><p><span class="RktVar">get-predicate?</span><span class="stt"> </span><span class="RktSym">:</span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="stt"> </span><span class="RktSym">any/c</span><span class="stt"> </span><span class="RktSym">boolean?</span><span class="RktPn">)</span><span class="RktPn">)</span>
Determines if a value is a graphical object (and thus handled by the other operations)</p></li><li><p><span class="RktVar">get-render</span><span class="stt"> </span><span class="RktSym">:</span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="stt"> </span><span class="RktSym">any/c</span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="stt"> </span><span class="RktSym">dc<%></span><span class="RktPn">)</span><span class="stt"> </span><span class="RktSym">number?</span><span class="stt"> </span><span class="RktSym">number?</span><span class="stt"> </span><span class="RktSym">void?</span><span class="RktPn">)</span><span class="RktPn">)</span>
Draws a graphical object (only called if the predicate returned <span class="RktVal">#t</span>; the first
argument will be the value for which the predicate holds).</p></li><li><p><span class="RktVar">get-get-width</span><span class="stt"> </span><span class="RktSym">:</span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="stt"> </span><span class="RktSym">any/c</span><span class="stt"> </span><span class="RktSym">number?</span><span class="RktPn">)</span><span class="RktPn">)</span>
Gets the width of a graphical object (only called if the predicate returned <span class="RktVal">#t</span>; the first
argument will be the value for which the predicate holds).</p></li><li><p><span class="RktVar">get-get-height</span><span class="stt"> </span><span class="RktSym">:</span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="stt"> </span><span class="RktPn">(</span><span class="RktSym"><span class="nobreak">-></span></span><span class="stt"> </span><span class="RktSym">any/c</span><span class="stt"> </span><span class="RktSym">number?</span><span class="RktPn">)</span><span class="RktPn">)</span>
Gets the height of a graphical object (only called if the predicate returned <span class="RktVal">#t</span>; the first
argument will be the value for which the predicate holds).</p></li></ul></div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="index.html" title="backward to "Scriblib: Extra Scribble Libraries"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "Scriblib: Extra Scribble Libraries"" data-pltdoc="x">up</a> <a href="figure.html" title="forward to "2 Figures"" data-pltdoc="x">next →</a></span> </div></div></div><div id="contextindicator"> </div></body></html>
|