This file is indexed.

/usr/share/doc/racket/cards/index.html is in racket-doc 6.7-3.

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
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!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>Cards: Virtual Playing Cards Library</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="../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="../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,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="" class="tocviewselflink" data-pltdoc="x">Cards:<span class="mywbr"> &nbsp;</span> Virtual Playing Cards Library</a></td></tr></table></div><div class="tocviewsublistonly" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="#%28part._.Creating_.Tables_and_.Cards%29" class="tocviewlink" data-pltdoc="x">Creating Tables and Cards</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="#%28part._.Regions_and_.Buttons%29" class="tocviewlink" data-pltdoc="x">Regions and Buttons</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="#%28part._.Table_.Methods%29" class="tocviewlink" data-pltdoc="x">Table Methods</a></td></tr><tr><td align="right">4&nbsp;</td><td><a href="#%28part._.Card_.Methods%29" class="tocviewlink" data-pltdoc="x">Card Methods</a></td></tr><tr><td align="right"></td><td><a href="#%28part._doc-bibliography%29" class="tocviewlink" data-pltdoc="x">Bibliography</a></td></tr></table></div></div></div><div class="tocsub"><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._top%29" class="tocsubseclink" data-pltdoc="x">Cards:<span class="mywbr"> &nbsp;</span> Virtual Playing Cards Library</a></td></tr><tr><td><span class="tocsublinknumber">1<tt>&nbsp;</tt></span><a href="#%28part._.Creating_.Tables_and_.Cards%29" class="tocsubseclink" data-pltdoc="x">Creating Tables and Cards</a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-table%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>table</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-deck%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>deck</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-card%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>card</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._shuffle-list%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">shuffle-<wbr></wbr>list</span></span></a></td></tr><tr><td><span class="tocsublinknumber">2<tt>&nbsp;</tt></span><a href="#%28part._.Regions_and_.Buttons%29" class="tocsubseclink" data-pltdoc="x">Regions and Buttons</a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">region</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-button-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>button-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-background-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>background-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._set-region-interactive-callback%21%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>region-<wbr></wbr>interactive-<wbr></wbr>callback!</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region-interactive-callback%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">region-<wbr></wbr>interactive-<wbr></wbr>callback</span></span></a></td></tr><tr><td><span class="tocsublinknumber">3<tt>&nbsp;</tt></span><a href="#%28part._.Table_.Methods%29" class="tocsubseclink" data-pltdoc="x">Table Methods</a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">table&lt;%&gt;</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-card%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">add-<wbr></wbr>card</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-cards%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">add-<wbr></wbr>cards</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-cards-to-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">add-<wbr></wbr>cards-<wbr></wbr>to-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._remove-card%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">remove-<wbr></wbr>card</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._remove-cards%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">remove-<wbr></wbr>cards</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._move-card%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">move-<wbr></wbr>card</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._move-cards%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">move-<wbr></wbr>cards</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._move-cards-to-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">move-<wbr></wbr>cards-<wbr></wbr>to-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._flip-card%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">flip-<wbr></wbr>card</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._flip-cards%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">flip-<wbr></wbr>cards</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-face-up%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">card-<wbr></wbr>face-<wbr></wbr>up</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._cards-face-up%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">cards-<wbr></wbr>face-<wbr></wbr>up</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-face-down%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">card-<wbr></wbr>face-<wbr></wbr>down</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._cards-face-down%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">cards-<wbr></wbr>face-<wbr></wbr>down</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._rotate-card%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">rotate-<wbr></wbr>card</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._rotate-cards%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">rotate-<wbr></wbr>cards</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-to-front%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">card-<wbr></wbr>to-<wbr></wbr>front</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-to-back%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">card-<wbr></wbr>to-<wbr></wbr>back</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._stack-cards%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">stack-<wbr></wbr>cards</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-location%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">card-<wbr></wbr>location</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._all-cards%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">all-<wbr></wbr>cards</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._table-width%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">table-<wbr></wbr>width</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._table-height%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">table-<wbr></wbr>height</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._begin-card-sequence%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">begin-<wbr></wbr>card-<wbr></wbr>sequence</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._end-card-sequence%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">end-<wbr></wbr>card-<wbr></wbr>sequence</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">add-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._remove-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">remove-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._hilite-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">hilite-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._unhilite-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">unhilite-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._set-button-action%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>button-<wbr></wbr>action</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._set-double-click-action%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>double-<wbr></wbr>click-<wbr></wbr>action</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._set-single-click-action%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>single-<wbr></wbr>click-<wbr></wbr>action</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._pause%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">pause</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._animated%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">animated</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._create-status-pane%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">create-<wbr></wbr>status-<wbr></wbr>pane</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._set-status%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>status</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-help-button%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">add-<wbr></wbr>help-<wbr></wbr>button</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-scribble-button%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">add-<wbr></wbr>scribble-<wbr></wbr>button</span></span></a></td></tr><tr><td><span class="tocsublinknumber">4<tt>&nbsp;</tt></span><a href="#%28part._.Card_.Methods%29" class="tocsubseclink" data-pltdoc="x">Card Methods</a></td></tr><tr><td><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">card&lt;%&gt;</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._card-width%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">card-<wbr></wbr>width</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._card-height%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">card-<wbr></wbr>height</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._flip%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">flip</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._face-up%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">face-<wbr></wbr>up</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._face-down%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">face-<wbr></wbr>down</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._face-down~3f%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">face-<wbr></wbr>down?</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._rotate%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">rotate</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._orientation%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">orientation</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-suit-id%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>suit-<wbr></wbr>id</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-suit%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>suit</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-value%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>value</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._user-can-flip%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">user-<wbr></wbr>can-<wbr></wbr>flip</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._user-can-move%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">user-<wbr></wbr>can-<wbr></wbr>move</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-move%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">snap-<wbr></wbr>back-<wbr></wbr>after-<wbr></wbr>move</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-regions%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">snap-<wbr></wbr>back-<wbr></wbr>after-<wbr></wbr>regions</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._stay-in-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">stay-<wbr></wbr>in-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._home-region%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">home-<wbr></wbr>region</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._dim%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">dim</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._copy%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">copy</span></span></a></td></tr><tr><td><span class="tocsublinknumber"></span><a href="#%28part._doc-bibliography%29" class="tocsubseclink" data-pltdoc="x">Bibliography</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">6.7</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, &quot;6.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<span class="nonavigation">&larr; prev</span>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">up</a>&nbsp;&nbsp;<span class="nonavigation">next &rarr;</span></span>&nbsp;</div><h2 x-source-module="(lib &quot;games/cards/cards.scrbl&quot;)" x-source-pkg="games" x-part-tag="&quot;top&quot;"><a name="(part._top)"></a><a name="(part._.Cards__.Virtual_.Playing_.Cards_.Library)"></a><a name="(mod-path._games/cards)"></a>Cards: Virtual Playing Cards Library</h2><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">games/cards</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller">&nbsp;package:</span> <span class="stt">games</span></span></td></tr></table></div><div class="SIntrapara">The <a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">games/cards</span></a>
module provides a toolbox for creating card games.</div></p><h3 x-source-module="(lib &quot;games/cards/cards.scrbl&quot;)" x-source-pkg="games" x-part-tag="&quot;Creating_Tables_and_Cards&quot;">1<tt>&nbsp;</tt><a name="(part._.Creating_.Tables_and_.Cards)"></a>Creating Tables and Cards</h3><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._games/cards..rkt)._make-table))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-table%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-table</a></span></span><span class="hspace">&nbsp;</span>[<span class="RktVar">title</span><span class="hspace">&nbsp;</span><span class="RktVar">w</span><span class="hspace">&nbsp;</span><span class="RktVar">h</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">table&lt;%&gt;</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">title</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">string?</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">"Cards"</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">w</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">exact-nonnegative-integer?</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">7</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">h</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">exact-nonnegative-integer?</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">3</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns a table.  The table is named by <span class="RktVar">title</span>, and it is
<span class="RktVar">w</span> cards wide and <span class="RktVar">h</span> cards high (assuming a standard
card of 71 by 96 pixels). The table is not initially shown;
<span class="RktPn">(</span><span class="RktSym">send</span><span class="stt"> </span><span class="RktSym">table</span><span class="stt"> </span><span class="RktSym">show</span><span class="stt"> </span><span class="RktVal">#t</span><span class="RktPn">)</span> shows it.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._games/cards..rkt)._make-deck))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-deck%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-deck</a></span></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns a list of 52 cards, one for each suit-value combination. The
cards are all face-down, sorted lowest-suit then lowest-value. A card
can only be on one table at a time.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._games/cards..rkt)._make-card))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-card%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-card</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">front-bm</span><span class="hspace">&nbsp;</span><span class="RktVar">back-bm</span><span class="hspace">&nbsp;</span><span class="RktVar">suit-id</span><span class="hspace">&nbsp;</span><span class="RktVar">value</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">front-bm</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym">bitmap?</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">back-bm</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=draw&amp;rel=bitmap_.html&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">bitmap%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">suit-id</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">value</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns a single card given a bitmap for the front, an optional bitmap
for the back, and arbitrary values for the card&rsquo;s suit and value
(which are returned by the card&rsquo;s <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-value%29%29" class="RktValLink" data-pltdoc="x">get-value</a></span> and
<span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-suit-id%29%29" class="RktValLink" data-pltdoc="x">get-suit-id</a></span> methods). All provided bitmaps should be
the same size.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._games/cards..rkt)._shuffle-list))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._shuffle-list%29%29" class="RktValDef RktValLink" data-pltdoc="x">shuffle-list</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">lst</span><span class="hspace">&nbsp;</span><span class="RktVar">n</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">list?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">lst</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">list?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">n</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">exact-nonnegative-integer?</span></td></tr></table></blockquote></div><div class="SIntrapara">Shuffles the given <span class="RktVar">lst</span> <span class="RktVar">n</span> times, returning the new
list. Shuffling simulates an actual shuffle: the list is split into
halves which are merged back together by repeatedly pulling the top
card off one of the halves, randomly selecting one half or the
other. According to [<a href="#%28cite._some._mathematical._theorem%29" data-pltdoc="x">some mathematical theorem</a>], 7 is a large
 enough <span class="RktVar">n</span> to get a perfect shuffle.</div></p><h3 x-source-module="(lib &quot;games/cards/cards.scrbl&quot;)" x-source-pkg="games" x-part-tag="&quot;Regions_and_Buttons&quot;">2<tt>&nbsp;</tt><a name="(part._.Regions_and_.Buttons)"></a>Regions and Buttons</h3><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>struct</p></div></div><table cellspacing="0" cellpadding="0" class="RForeground"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=define-struct.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._struct%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">struct</a></span></td><td><span class="hspace">&nbsp;</span></td><td><a name="(def._((lib._games/cards..rkt)._set-region-callback!))"></a><a name="(def._((lib._games/cards..rkt)._region-callback))"></a><a name="(def._((lib._games/cards..rkt)._region-label))"></a><a name="(def._((lib._games/cards..rkt)._region-h))"></a><a name="(def._((lib._games/cards..rkt)._region-w))"></a><a name="(def._((lib._games/cards..rkt)._region-y))"></a><a name="(def._((lib._games/cards..rkt)._region-x))"></a><a name="(def._((lib._games/cards..rkt)._make-region))"></a><a name="(def._((lib._games/cards..rkt)._region~3f))"></a><a name="(def._((lib._games/cards..rkt)._struct~3aregion))"></a><a name="(def._((lib._games/cards..rkt)._region))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region%29%29" class="RktValDef RktValLink" data-pltdoc="x">region</a></span></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="stt"> </span><span class="RktSym">y</span><span class="stt"> </span><span class="RktSym">w</span><span class="stt"> </span><span class="RktSym">h</span><span class="stt"> </span><span class="RktSym">label</span><span class="stt"> </span><span class="RktPn">[</span><span class="RktSym">callback</span><span class="stt"> </span><span class="RktPn">#:mutable</span><span class="RktPn">]</span><span class="RktPn">)</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">#:extra-constructor-name</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-region%29%29" class="RktValLink" data-pltdoc="x">make-region</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktSym">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktSym">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktSym">w</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">and/c</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">not/c</span><span class="hspace">&nbsp;</span><span class="RktSym">negative?</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktSym">h</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">and/c</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">not/c</span><span class="hspace">&nbsp;</span><span class="RktSym">negative?</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktSym">label</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktSym">string?</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktSym">callback</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">The <span class="RktSym">x</span>, <span class="RktSym">y</span>, <span class="RktSym">w</span>, and <span class="RktSym">h</span> fields
determine the region&rsquo;s location on the table.</div></p><p>When <span class="RktSym">label</span> is a string, it is drawn in the region in 12-pixel
text, centered horizontally and 5 pixels down from the region&rsquo;s top
outline. If label is <span class="RktVal">#f</span>, no label or box is drawn for the
region.</p><p>The <span class="RktSym">callback</span> procedure takes a list of cards that were
dragged to the region; if callback is <span class="RktVal">#f</span>, the region is not
active (i.e., dragging cards to the region doesn&rsquo;t highlight the
region box). The region remains hilited until the callback returns.</p><p>The only available mutator on the structure is
<span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._set-region-callback%21%29%29" class="RktValLink" data-pltdoc="x">set-region-callback!</a></span>.  The structure created by
<span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-region%29%29" class="RktValLink" data-pltdoc="x">make-region</a></span> actually has extra hidden fields.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._games/cards..rkt)._make-button-region))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-button-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-button-region</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span><span class="RktVar">w</span><span class="hspace">&nbsp;</span><span class="RktVar">h</span><span class="hspace">&nbsp;</span><span class="RktVar">label</span><span class="hspace">&nbsp;</span><span class="RktVar">callback</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">w</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">and/c</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">not/c</span><span class="hspace">&nbsp;</span><span class="RktSym">negative?</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">h</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">and/c</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">not/c</span><span class="hspace">&nbsp;</span><span class="RktSym">negative?</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">label</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktSym">string?</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktVar">callback</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Returns a region like one made by <span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-region%29%29" class="RktValLink" data-pltdoc="x">make-region</a></span>, but the is
 drawn slightly differently and it reacts differently to cards and the
 mouse. The label is drawn in the middle of the box instead of at the
 top, and the callback is called with no arguments when the user
 clicks the region (instead of dragging cards to the region).</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><a name="(def._((lib._games/cards..rkt)._make-background-region))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-background-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-background-region</a></span></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">y</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">w</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">h</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">paint-callback</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">w</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">and/c</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">not/c</span><span class="hspace">&nbsp;</span><span class="RktSym">negative?</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">h</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">and/c</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">not/c</span><span class="hspace">&nbsp;</span><span class="RktSym">negative?</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">paint-callback</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=draw&amp;rel=dc___.html&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">dc&lt;%&gt;</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns a region that does not respond to mouse clicks, but which has
a general paint callback. The <span class="RktVar">paint-callback</span> function is
called with a drawing context, x and y offsets, and the width and
height (which are always <span class="RktVar">w</span> and <span class="RktVar">h</span>). The x and y
offsets can be different than the supplied <span class="RktVar">x</span> and <span class="RktVar">y</span>
when part of the table is drawn offscreen. Regions are painted in the
order that they are added to a table, and all regions are painted
before any card.  The <span class="RktVar">paint-callback</span> procedure should not
assume a particular state for the drawing context (i.e.,current brush
or pen), and it should restore any modified drawing context state
before returning.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><a name="(def._((lib._games/cards..rkt)._set-region-interactive-callback!))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._set-region-interactive-callback%21%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-region-interactive-callback!</a></span></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">r</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">callback</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">r</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktVar">callback</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">boolean?</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Sets a callback procedure that is invoked when a region is
(un)hilited as the user drags a set of cards to the region. The
callback is provided two arguments: a boolean indicating whether the
region is hilited, and the list of cards being dragged. Like
region-callback, the default is <span class="RktVal">#f</span>, which indicates that the
region has no interactive callback (but does not affect whether the
region is hilited as cards are dragged). The final unhilite (when
cards are potentially delivered) does not trigger this callback.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._games/cards..rkt)._region-interactive-callback))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region-interactive-callback%29%29" class="RktValDef RktValLink" data-pltdoc="x">region-interactive-callback</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">r</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">boolean?</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">r</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Gets the current callback that is installed via
<span class="RktSym">set-region-interaction-callback!</span>.</div></p><h3 x-source-module="(lib &quot;games/cards/cards.scrbl&quot;)" x-source-pkg="games" x-part-tag="&quot;Table_Methods&quot;">3<tt>&nbsp;</tt><a name="(part._.Table_.Methods)"></a>Table Methods</h3><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>interface</p></div></div><p class="RForeground"><a name="(def._((lib._games/cards..rkt)._table~3c~25~3e))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29%29" class="RktValDef RktValLink" data-pltdoc="x">table&lt;%&gt;</a></span></span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=objectutils.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._interface%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">interface?</a></span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0"><tr><td><span class="hspace">&nbsp;&nbsp;</span>implements:<span class="hspace">&nbsp;</span></td><td><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=gui&amp;rel=frame_.html&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">frame%</a></span></td></tr></table></td></tr></table></div><div class="SIntrapara">Create an instance with <span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-table%29%29" class="RktValLink" data-pltdoc="x">make-table</a></span>.</div><div class="SIntrapara"><blockquote class="leftindent"><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._add-card))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-card%29%29" class="RktValDef RktValLink" data-pltdoc="x">add-card</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span><span class="RktVar">y</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr></table></blockquote></div><div class="SIntrapara">Adds <span class="RktVar">card</span> to the table with its top-left corner at
(<span class="RktVar">x</span>, <span class="RktVar">y</span>) in table pixels.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._add-cards))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-cards%29%29" class="RktValDef RktValLink" data-pltdoc="x">add-cards</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">cards</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">y</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">offset-proc</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktVar">offset-proc</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">exact-nonnegative-integer?</span></td></tr><tr><td><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">values</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">=</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktPn">(</span><span class="RktSym">lambda</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">values</span><span class="hspace">&nbsp;</span><span class="RktVal">0</span><span class="hspace">&nbsp;</span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Adds a list of cards at (<span class="RktVar">x</span>, <span class="RktVar">y</span>). The optional
<span class="RktVar">offset-proc</span> procedure is called with an index <span class="RktVar">i</span>
(counting from 0) and should return two values: <span class="RktVar">dx</span> and
<span class="RktVar">dy</span>; the <span class="RktVar">i</span>th card is the placed at <span class="RktPn">(</span><span class="RktSym">+</span><span class="stt"> </span><span class="RktVar">x</span><span class="stt"> </span><span class="RktSym">+dx</span><span class="RktPn">)</span> and <span class="RktPn">(</span><span class="RktSym">+</span><span class="stt"> </span><span class="RktVar">y</span><span class="stt"> </span><span class="RktVar">dy</span><span class="RktPn">)</span>. The cards are added in order on top of
cards already one the table such that the first card in
<span class="RktVar">cards</span> is topmost.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._add-cards-to-region))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-cards-to-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">add-cards-to-region</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">cards</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">region?</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">region?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">r</span></td></tr></table></blockquote></div><div class="SIntrapara">Adds <span class="RktVar">cards</span> to fill the region <span class="RktSym">r</span>, fanning them out
bottom-right to top-left, assuming that all cards in <span class="RktVar">cards</span>
have the same width and height. The region <span class="RktSym">r</span> does not have
to be added to the table.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._remove-card))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._remove-card%29%29" class="RktValDef RktValLink" data-pltdoc="x">remove-card</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Removes <span class="RktVar">card</span> from the table.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._remove-cards))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._remove-cards%29%29" class="RktValDef RktValLink" data-pltdoc="x">remove-cards</a></span><span class="hspace">&nbsp;</span><span class="RktVar">cards</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Removes <span class="RktVar">cards</span> from the table.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._move-card))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._move-card%29%29" class="RktValDef RktValLink" data-pltdoc="x">move-card</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span><span class="RktVar">y</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr></table></blockquote></div><div class="SIntrapara">Moves <span class="RktVar">card</span>, which must be on the same already.  The movement
of the cards is animated.  If the cards are in <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-move%29%29" class="RktValLink" data-pltdoc="x">snap-back-after-move</a></span>
mode and a drag is active, snapping back will use the new location.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._move-cards))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._move-cards%29%29" class="RktValDef RktValLink" data-pltdoc="x">move-cards</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">cards</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">y</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">offset-proc</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktVar">offset-proc</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">exact-nonnegative-integer?</span></td></tr><tr><td><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">values</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="hspace">&nbsp;</span><span class="RktSym">real?</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">=</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktPn">(</span><span class="RktSym">lambda</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">values</span><span class="hspace">&nbsp;</span><span class="RktVal">0</span><span class="hspace">&nbsp;</span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-cards%29%29" class="RktValLink" data-pltdoc="x">add-cards</a></span>, but moves cards that are already on
the table like <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._move-card%29%29" class="RktValLink" data-pltdoc="x">move-card</a></span>. All of the cards are
moved at once.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._move-cards-to-region))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._move-cards-to-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">move-cards-to-region</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">cards</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">region?</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">region?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">r</span></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-cards-to-region%29%29" class="RktValLink" data-pltdoc="x">add-cards-to-region</a></span>, but moves cards that are
already on the table like <span class="RktSym">move-card</span>. All of the cards are
moved at once.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._flip-card))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._flip-card%29%29" class="RktValDef RktValLink" data-pltdoc="x">flip-card</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._flip-cards))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._flip-cards%29%29" class="RktValDef RktValLink" data-pltdoc="x">flip-cards</a></span><span class="hspace">&nbsp;</span><span class="RktVar">cards</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Flips <span class="RktVar">card</span> or all <span class="RktVar">cards</span> over (at once) with
animation.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._card-face-up))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-face-up%29%29" class="RktValDef RktValLink" data-pltdoc="x">card-face-up</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._cards-face-up))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._cards-face-up%29%29" class="RktValDef RktValLink" data-pltdoc="x">cards-face-up</a></span><span class="hspace">&nbsp;</span><span class="RktVar">cards</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._card-face-down))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-face-down%29%29" class="RktValDef RktValLink" data-pltdoc="x">card-face-down</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._cards-face-down))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._cards-face-down%29%29" class="RktValDef RktValLink" data-pltdoc="x">cards-face-down</a></span><span class="hspace">&nbsp;</span><span class="RktVar">cards</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._flip-cards%29%29" class="RktValLink" data-pltdoc="x">flip-cards</a></span>, but only for <span class="RktVar">card</span> or
elements of <span class="RktVar">cards</span> that are currently face down/up.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._rotate-card))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._rotate-card%29%29" class="RktValDef RktValLink" data-pltdoc="x">rotate-card</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span><span class="RktVar">mode</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">mode</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">cw</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">ccw</span><span class="hspace">&nbsp;</span><span class="RktVal">0</span><span class="hspace">&nbsp;</span><span class="RktVal">90</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-9</span>0</span><span class="hspace">&nbsp;</span><span class="RktVal">180</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-1</span>80</span><span class="hspace">&nbsp;</span><span class="RktVal">270</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-2</span>70</span><span class="hspace">&nbsp;</span><span class="RktVal">360</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._rotate-cards))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._rotate-cards%29%29" class="RktValDef RktValLink" data-pltdoc="x">rotate-cards</a></span><span class="hspace">&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span><span class="RktVar">mode</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">mode</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">cw</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">ccw</span><span class="hspace">&nbsp;</span><span class="RktVal">0</span><span class="hspace">&nbsp;</span><span class="RktVal">90</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-9</span>0</span><span class="hspace">&nbsp;</span><span class="RktVal">180</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-1</span>80</span><span class="hspace">&nbsp;</span><span class="RktVal">270</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-2</span>70</span><span class="hspace">&nbsp;</span><span class="RktVal">360</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Rotates <span class="RktVar">card</span> or all <span class="RktVar">cards</span> (at once, currently
without animation, but animation may be added in the future).
The center of each card is kept in place, except that the card is
moved as necessary to keep it on the table.  See <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._rotate%29%29" class="RktValLink" data-pltdoc="x">rotate</a></span> in <span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span> for information on <span class="RktVar">mode</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._card-to-front))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-to-front%29%29" class="RktValDef RktValLink" data-pltdoc="x">card-to-front</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._card-to-back))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-to-back%29%29" class="RktValDef RktValLink" data-pltdoc="x">card-to-back</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Moves <span class="RktVar">card</span> before/behind of all other cards.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._stack-cards))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._stack-cards%29%29" class="RktValDef RktValLink" data-pltdoc="x">stack-cards</a></span><span class="hspace">&nbsp;</span><span class="RktVar">cards</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">cards</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">The first card in <span class="RktVar">cards</span> is not moved; the second card is
moved to follow immediately behind the first one, then
<span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._stack-cards%29%29" class="RktValLink" data-pltdoc="x">stack-cards</a></span> is called on <span class="RktPn">(</span><span class="RktSym">cdr</span><span class="stt"> </span><span class="RktVar">cards</span><span class="RktPn">)</span>. If
<span class="RktVar">cards</span> is empty or contains only one card, no action is
taken.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._card-location))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._card-location%29%29" class="RktValDef RktValLink" data-pltdoc="x">card-location</a></span><span class="hspace">&nbsp;</span><span class="RktVar">card</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0"><tr><td><span class="RktSym">real?</span></td><td><span class="hspace">&nbsp;</span></td><td><span class="RktSym">real?</span></td></tr></table></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">card</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the location of the given card; an exception is raised if the
card is not on the table.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._all-cards))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._all-cards%29%29" class="RktValDef RktValLink" data-pltdoc="x">all-cards</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns a list of all cards on the table in stacking order from front
to back.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._table-width))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._table-width%29%29" class="RktValDef RktValLink" data-pltdoc="x">table-width</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">exact-nonnegative-integer?</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._table-height))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._table-height%29%29" class="RktValDef RktValLink" data-pltdoc="x">table-height</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">exact-nonnegative-integer?</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the width/height of the table in pixels.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._begin-card-sequence))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._begin-card-sequence%29%29" class="RktValDef RktValLink" data-pltdoc="x">begin-card-sequence</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._end-card-sequence))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._end-card-sequence%29%29" class="RktValDef RktValLink" data-pltdoc="x">end-card-sequence</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr></table></blockquote></div><div class="SIntrapara">Starts/ends a sequence of card or region changes that won&rsquo;t be
animated or updated until the end of the sequence. Sequences can be
nested via matching <span class="RktSym">begin-</span>/<span class="RktSym">end-</span> pairs.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._add-region))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">add-region</a></span><span class="hspace">&nbsp;</span><span class="RktVar">r</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">r</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Adds the region <span class="RktVar">r</span> to the table; regions are drawn in the
order that they are added to the table, and when a region added later
is hilighted, it can obscure regions added earlier.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._remove-region))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._remove-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">remove-region</a></span><span class="hspace">&nbsp;</span><span class="RktVar">r</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">r</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Removes the region <span class="RktVar">r</span> from the table.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._hilite-region))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._hilite-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">hilite-region</a></span><span class="hspace">&nbsp;</span><span class="RktVar">r</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">r</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._unhilite-region))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._unhilite-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">unhilite-region</a></span><span class="hspace">&nbsp;</span><span class="RktVar">r</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">r</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Manual (un)hilite, usually for animation.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._set-button-action))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._set-button-action%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-button-action</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">which</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">action</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">which</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">one-of/c</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">left</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">middle</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">right</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">action</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">symbol?</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the way that a mouse click is handled for a particular button
indicated by <span class="RktVar">which</span>. The <span class="RktVar">action</span> argument must be one
of the following:</div></p><ul><li><p><span class="RktVal">'</span><span class="RktVal">drag/one</span> &#8212;<wbr></wbr> drag only the clicked-on card.</p></li><li><p><span class="RktVal">'</span><span class="RktVal">drag-raise/one</span> &#8212;<wbr></wbr> like drag/one, but raise the
         card to the top on a click.</p></li><li><p><span class="RktVal">'</span><span class="RktVal">drag/above</span> &#8212;<wbr></wbr> drag the card along with any card
         on top of the card (i.e., more towards the front and
         overlapping with the card). The on-top-of relation
         is closed transitively.</p></li><li><p><span class="RktVal">'</span><span class="RktVal">drag-raise/above</span> &#8212;<wbr></wbr> like <span class="RktVal">'</span><span class="RktVal">drag/above</span>,
         but raises.</p></li><li><p><span class="RktVal">'</span><span class="RktVal">drag-below</span> &#8212;<wbr></wbr> drag the card along with any card
         underneath the card (i.e., more towards the back and
         overlapping with the card). The underneath relation
         is closed transitively.</p></li><li><p><span class="RktVal">'</span><span class="RktVal">drag-raise/below</span> &#8212;<wbr></wbr> like <span class="RktVal">'</span><span class="RktVal">drag/below</span>,
         but raises.</p></li></ul><p>The initial settings are: <span class="RktVal">'</span><span class="RktVal">drag-raise/above</span> for
<span class="RktVal">'</span><span class="RktVal">left</span>, <span class="RktVal">'</span><span class="RktVal">drag/one</span> for <span class="RktVal">'</span><span class="RktVal">middle</span>, and
<span class="RktVal">'</span><span class="RktVal">drag/below</span> for <span class="RktVal">'</span><span class="RktVal">right</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._set-double-click-action))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._set-double-click-action%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-double-click-action</a></span><span class="hspace">&nbsp;</span><span class="RktVar">proc</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">proc</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the procedure to be called when a card is double-clicked. The
procedure is called with the double-clicked card. The default
procedure flips the cards along with its on-top-of cards, raises the
cards, and reverses the front-to-back order of the cards</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._set-single-click-action))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._set-single-click-action%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-single-click-action</a></span><span class="hspace">&nbsp;</span><span class="RktVar">proc</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">proc</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><span class="nobreak">-&gt;</span></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktSym">any</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the procedure to be called when a card is single-clicked, after
the button action is initiated. (If the card is double-clicked, this
action is invoked for the first click, then the double-click action
is invoked.) The default action does nothing.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._pause))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._pause%29%29" class="RktValDef RktValLink" data-pltdoc="x">pause</a></span><span class="hspace">&nbsp;</span><span class="RktVar">secs</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">secs</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">real?</span></td></tr></table></blockquote></div><div class="SIntrapara">Pauses, allowing the table display to be updated (unless a sequence
is active), but does not let the user click on the cards.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._animated))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._animated%29%29" class="RktValDef RktValLink" data-pltdoc="x">animated</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">boolean?</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._animated%29%29" class="RktValDef RktValLink" data-pltdoc="x">animated</a></span><span class="hspace">&nbsp;</span><span class="RktVar">on?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">on?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr></table></blockquote></div><div class="SIntrapara">Gets/sets animation enabled/diabled.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._create-status-pane))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._create-status-pane%29%29" class="RktValDef RktValLink" data-pltdoc="x">create-status-pane</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=gui&amp;rel=pane_.html&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">pane%</a></span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Creates a pane with a status message (initially empty) and returns
the pane so that you can add additional controls.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._set-status))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._set-status%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-status</a></span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">string?</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the text message in the status pane.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._add-help-button))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-help-button%29%29" class="RktValDef RktValLink" data-pltdoc="x">add-help-button</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">pane</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">coll-path</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">str</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">tt?</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">pane</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=gui&amp;rel=area-container___.html&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">area-container&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">coll-path</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">listof</span><span class="hspace">&nbsp;</span><span class="RktSym">string?</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">string?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">tt?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr></table></blockquote></div><div class="SIntrapara">Adds a <span class="ssansserif">Help</span> button to the given pane, where clicking the
button opens a new window to display <span class="stt">"doc.txt"</span> from the given
collection. The <span class="RktVar">str</span> argument is used for the help window
title.  If <span class="RktVar">tt?</span>  is true, then <span class="stt">"doc.txt"</span> is displayed
verbatim, otherwise it is formatted as for <span class="RktSym">show-help</span> from
<a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=games&amp;rel=Showing_Text_Help.html&amp;version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">games/show-help</span></a>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-table</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._table~3c~25~3e)._add-scribble-button))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._add-scribble-button%29%29" class="RktValDef RktValLink" data-pltdoc="x">add-scribble-button</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">pane</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">mod-path</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">tag</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym">void?</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">pane</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=gui&amp;rel=area-container___.html&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">area-container&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">mod-path</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">module-path?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">tag</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">string?</span></td></tr></table></blockquote></div><div class="SIntrapara">Adds a <span class="ssansserif">Help</span> button to the given pane, where clicking the
button opens Scribble-based documentation, as with
<span class="RktSym">show-scribbling</span> from <a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=games&amp;rel=Showing_Scribbled_Help.html&amp;version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">games/show-scribbling</span></a>.
</div><div class="SIntrapara"></div></p></blockquote></div></p><h3 x-source-module="(lib &quot;games/cards/cards.scrbl&quot;)" x-source-pkg="games" x-part-tag="&quot;Card_Methods&quot;">4<tt>&nbsp;</tt><a name="(part._.Card_.Methods)"></a>Card Methods</h3><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>interface</p></div></div><p class="RForeground"><a name="(def._((lib._games/cards..rkt)._card~3c~25~3e))"></a><span title="Provided from: games/cards | Package: games"><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValDef RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span></span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=objectutils.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._interface%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">interface?</a></span></p></blockquote></td></tr></table></div><div class="SIntrapara">Create instances with <span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-deck%29%29" class="RktValLink" data-pltdoc="x">make-deck</a></span> or <span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-card%29%29" class="RktValLink" data-pltdoc="x">make-card</a></span>.</div><div class="SIntrapara"><blockquote class="leftindent"><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._card-width))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._card-width%29%29" class="RktValDef RktValLink" data-pltdoc="x">card-width</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">exact-nonnegative-integer?</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the width of the card in pixels. If the card is rotated 90 or
270 degrees, the result is the card&rsquo;s original height.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._card-height))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._card-height%29%29" class="RktValDef RktValLink" data-pltdoc="x">card-height</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">exact-nonnegative-integer?</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the height of the card in pixels.  If the card is rotated 90 or
270 degrees, the result is the card&rsquo;s original width.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._flip))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._flip%29%29" class="RktValDef RktValLink" data-pltdoc="x">flip</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Flips the card without animation. This method is useful for flipping
a card before it is added to a table.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._face-up))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._face-up%29%29" class="RktValDef RktValLink" data-pltdoc="x">face-up</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Makes the card face up without animation.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._face-down))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._face-down%29%29" class="RktValDef RktValLink" data-pltdoc="x">face-down</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Makes the card face down without animation.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._face-down~3f))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._face-down~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">face-down?</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">boolean?</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if the card is currently face down.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._rotate))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._rotate%29%29" class="RktValDef RktValLink" data-pltdoc="x">rotate</a></span><span class="hspace">&nbsp;</span><span class="RktVar">mode</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">mode</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">cw</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">ccw</span><span class="hspace">&nbsp;</span><span class="RktVal">0</span><span class="hspace">&nbsp;</span><span class="RktVal">90</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-9</span>0</span><span class="hspace">&nbsp;</span><span class="RktVal">180</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-1</span>80</span><span class="hspace">&nbsp;</span><span class="RktVal">270</span><span class="hspace">&nbsp;</span><span class="RktVal"><span class="nobreak">-2</span>70</span><span class="hspace">&nbsp;</span><span class="RktVal">360</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Rotates the card. Unlike using the <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29._rotate-card%29%29" class="RktValLink" data-pltdoc="x">rotate-card</a></span> in <span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._table~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">table&lt;%&gt;</a></span> method,
the card&rsquo;s top-left position is kept in place.</div></p><p>If <span class="RktVar">mode</span> is <span class="RktVal">'</span><span class="RktVal">cw</span>, the card is
rotated clockwise; if <span class="RktVar">mode</span> is <span class="RktVal">'</span><span class="RktVal">ccw</span>, the card is
rotated counter-clockwise; if <span class="RktVar">mode</span> is one of the allowed
numbers, the card is rotated the corresponding amount in degrees
counter-clockwise.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._orientation))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._orientation%29%29" class="RktValDef RktValLink" data-pltdoc="x">orientation</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktVal">0</span><span class="hspace">&nbsp;</span><span class="RktVal">90</span><span class="hspace">&nbsp;</span><span class="RktVal">180</span><span class="hspace">&nbsp;</span><span class="RktVal">270</span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the orientation of the card, where <span class="RktVal">0</span> corresponds to
its initial state, <span class="RktVal">90</span> is rotated 90 degrees counter-clockwise, and so on.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._get-suit-id))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-suit-id%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-suit-id</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Normally returns <span class="RktVal">1</span>, <span class="RktVal">2</span>, <span class="RktVal">3</span>, or <span class="RktVal">4</span>
(see <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-suit%29%29" class="RktValLink" data-pltdoc="x">get-suit</a></span> for corresponding suit names), but the
result can be anything for a card created by <span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-card%29%29" class="RktValLink" data-pltdoc="x">make-card</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._get-suit))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-suit%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-suit</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">symbol?</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">'</span><span class="RktVal">clubs</span>, <span class="RktVal">'</span><span class="RktVal">diamonds</span>, <span class="RktVal">'</span><span class="RktVal">hearts</span>,
<span class="RktVal">'</span><span class="RktVal">spades</span>, or <span class="RktVal">'</span><span class="RktVal">unknown</span>, depending on whether
<span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-suit-id%29%29" class="RktValLink" data-pltdoc="x">get-suit-id</a></span> returns <span class="RktVal">1</span>, <span class="RktVal">2</span>,
<span class="RktVal">3</span>, <span class="RktVal">4</span>, or something else.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._get-value))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._get-value%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-value</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Normally returns <span class="RktVal">1</span> (Ace), <span class="RktVal">2</span>, ... <span class="RktVal">10</span>,
<span class="RktVal">11</span> (Jack), <span class="RktVal">12</span> (Queen), or <span class="RktVal">13</span> (King), but
the result can be anything for a card created by <span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._make-card%29%29" class="RktValLink" data-pltdoc="x">make-card</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._user-can-flip))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._user-can-flip%29%29" class="RktValDef RktValLink" data-pltdoc="x">user-can-flip</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">boolean?</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._user-can-flip%29%29" class="RktValDef RktValLink" data-pltdoc="x">user-can-flip</a></span><span class="hspace">&nbsp;</span><span class="RktVar">can?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">can?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr></table></blockquote></div><div class="SIntrapara">Gets/sets whether the user can flip the card interactively, usually
by double-clicking it. Initially <span class="RktVal">#t</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._user-can-move))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._user-can-move%29%29" class="RktValDef RktValLink" data-pltdoc="x">user-can-move</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">boolean?</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._user-can-move%29%29" class="RktValDef RktValLink" data-pltdoc="x">user-can-move</a></span><span class="hspace">&nbsp;</span><span class="RktVar">can?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">can?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr></table></blockquote></div><div class="SIntrapara">Gets/sets whether the user can move the card interactively, usually
by dragging it. Disabling moves has the side-effect of disabling
raises and double-clicks. Initially <span class="RktVal">#t</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._snap-back-after-move))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-move%29%29" class="RktValDef RktValLink" data-pltdoc="x">snap-back-after-move</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">boolean?</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-move%29%29" class="RktValDef RktValLink" data-pltdoc="x">snap-back-after-move</a></span><span class="hspace">&nbsp;</span><span class="RktVar">on?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">on?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr></table></blockquote></div><div class="SIntrapara">Assuming user can move the card interactively, gets/sets whether the
card stays where the user dragged it or snaps back to its original
place. Initially <span class="RktVal">#f</span>.</div></p><p>A region callback can disable snap-back for a dragged card only if
<span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-regions%29%29" class="RktValLink" data-pltdoc="x">snap-back-after-regions</a></span> mode is enabled for the card.
Otherwise, a region&rsquo;s <span style="font-style: italic">interactive</span> callback can disable
snap-back for a card (e.g., so that the card can be delivered to the
region).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._snap-back-after-regions))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-regions%29%29" class="RktValDef RktValLink" data-pltdoc="x">snap-back-after-regions</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">boolean?</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-regions%29%29" class="RktValDef RktValLink" data-pltdoc="x">snap-back-after-regions</a></span><span class="hspace">&nbsp;</span><span class="RktVar">on?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">on?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr></table></blockquote></div><div class="SIntrapara">Determines whether <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-move%29%29" class="RktValLink" data-pltdoc="x">snap-back-after-move</a></span> and
<span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._home-region%29%29" class="RktValLink" data-pltdoc="x">home-region</a></span> constraints apply before or after region
callbacks are invoked for dragged cards. Initially <span class="RktVal">#f</span> (i.e.,
constraints apply before callbacks).</div></p><p class="SHistory">Added in version 1.1 of package <span class="stt">games</span>.</p><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._stay-in-region))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._stay-in-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">stay-in-region</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._stay-in-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">stay-in-region</a></span><span class="hspace">&nbsp;</span><span class="RktVar">r</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">r</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Gets/sets a constraining region <span class="RktVar">r</span>. If <span class="RktVar">r</span> is not
<span class="RktVal">#f</span>, the user cannot move the card out of <span class="RktVar">r</span>.
Initially <span class="RktVal">#f</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._home-region))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._home-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">home-region</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._home-region%29%29" class="RktValDef RktValLink" data-pltdoc="x">home-region</a></span><span class="hspace">&nbsp;</span><span class="RktVar">r</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">r</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">or/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._region~3f%29%29" class="RktValLink" data-pltdoc="x">region?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Gets/sets a home region <span class="RktVar">r</span>. If <span class="RktVar">r</span> is not <span class="RktVal">#f</span>,
then the user can move the card freely, but the card
snaps back if moved out of the region. (If the card is moved partly out
of the region, the card is moved enough to get completely back
in.) Initially <span class="RktVal">#f</span>.</div></p><p>A region callback can change the snap-back home for a dragged card
only if <span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._snap-back-after-regions%29%29" class="RktValLink" data-pltdoc="x">snap-back-after-regions</a></span> mode is enabled for
the card. Otherwise, a region&rsquo;s <span style="font-style: italic">interactive</span> callback can
adjust snap-back for a card.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._dim))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._dim%29%29" class="RktValDef RktValLink" data-pltdoc="x">dim</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">boolean?</span></p></blockquote></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._dim%29%29" class="RktValDef RktValLink" data-pltdoc="x">dim</a></span><span class="hspace">&nbsp;</span><span class="RktVar">can?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">void?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">can?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">any/c</span></td></tr></table></blockquote></div><div class="SIntrapara">Gets/sets a hilite on the card, which is rendered by drawing it dimmer
than normal.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-card</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._games/cards..rkt)._card~3c~25~3e)._copy))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29._copy%29%29" class="RktValDef RktValLink" data-pltdoc="x">copy</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">is-a?/c</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._games%2Fcards..rkt%29._card~3c~25~3e%29%29" class="RktValLink" data-pltdoc="x">card&lt;%&gt;</a></span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Makes a new card with the same suit and value.
</div><div class="SIntrapara"></div></p></blockquote></div></p><h3 x-source-module="(lib &quot;games/cards/cards.scrbl&quot;)" x-source-pkg="games" x-part-tag="&quot;doc-bibliography&quot;"><a name="(part._doc-bibliography)"></a>Bibliography</h3><p><table cellspacing="0" cellpadding="0" class="RBibliography"><tr><td><a name="(cite._some._mathematical._theorem)"></a>[some mathematical theorem]</td><td><span class="hspace">&nbsp;</span></td><td><span class="bibentry">Bayer, Dave; Diaconis, Persi, &ldquo;Trailing the Dovetail Shuffle to its Lair.&rdquo; <a href="http://projecteuclid.org/euclid.aoap/1177005705"><span class="stt">http://projecteuclid.org/euclid.aoap/1177005705</span></a></span></td></tr></table></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, &quot;6.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<span class="nonavigation">&larr; prev</span>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">up</a>&nbsp;&nbsp;<span class="nonavigation">next &rarr;</span></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>