Wiki page
[(system glfw)] by
murphy
2016-06-02 14:56:17.
0000: 44 20 32 30 31 36 2d 30 36 2d 30 32 54 31 34 3a D 2016-06-02T14:
0010: 35 36 3a 31 37 2e 32 33 33 0a 4c 20 28 73 79 73 56:17.233.L (sys
0020: 74 65 6d 5c 73 67 6c 66 77 29 0a 50 20 62 65 34 tem\sglfw).P be4
0030: 30 64 39 31 64 37 32 63 64 61 32 38 64 39 34 65 0d91d72cda28d94e
0040: 35 63 63 66 66 64 39 35 39 64 30 63 65 39 31 35 5ccffd959d0ce915
0050: 37 65 64 37 39 0a 55 20 6d 75 72 70 68 79 0a 57 7ed79.U murphy.W
0060: 20 31 36 34 31 30 0a 3c 68 31 3e 47 4c 46 57 20 16410.<h1>GLFW
0070: 42 69 6e 64 69 6e 67 73 3c 2f 68 31 3e 0d 0a 0d Bindings</h1>...
0080: 0a 3c 68 32 3e 53 79 6e 6f 70 73 69 73 3c 2f 68 .<h2>Synopsis</h
0090: 32 3e 0d 0a 0d 0a 3c 63 6f 64 65 3e 28 69 6d 70 2>....<code>(imp
00a0: 6f 72 74 20 28 73 79 73 74 65 6d 20 67 6c 66 77 ort (system glfw
00b0: 29 29 3c 2f 63 6f 64 65 3e 0d 0a 0d 0a 42 69 6e ))</code>....Bin
00c0: 64 69 6e 67 73 20 74 6f 20 74 68 65 20 5b 68 74 dings to the [ht
00d0: 74 70 3a 2f 2f 77 77 77 2e 67 6c 66 77 2e 6f 72 tp://www.glfw.or
00e0: 67 2f 7c 47 4c 46 57 5d 20 6c 69 62 72 61 72 79 g/|GLFW] library
00f0: 2e 0d 0a 0d 0a 3c 68 32 3e 43 6f 6e 64 69 74 69 .....<h2>Conditi
0100: 6f 6e 73 3c 2f 68 32 3e 0d 0a 0d 0a 3c 68 33 3e ons</h2>....<h3>
0110: 63 6f 6e 64 69 74 69 6f 6e 3a 20 3c 63 6f 64 65 condition: <code
0120: 3e 26 67 6c 66 77 3c 2f 63 6f 64 65 3e 3c 2f 68 >&glfw</code></h
0130: 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 3>..<h3>procedur
0140: 65 3a 20 3c 63 6f 64 65 3e 28 67 6c 66 77 2d 63 e: <code>(glfw-c
0150: 6f 6e 64 69 74 69 6f 6e 3f 20 3c 69 3e 61 6e 79 ondition? <i>any
0160: 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 </i>)</code></h3
0170: 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 >..<h3>procedure
0180: 3a 20 3c 63 6f 64 65 3e 28 6d 61 6b 65 2d 67 6c : <code>(make-gl
0190: 66 77 2d 63 6f 6e 64 69 74 69 6f 6e 20 3c 69 3e fw-condition <i>
01a0: 6d 65 73 73 61 67 65 3c 2f 69 3e 20 3c 69 3e 63 message</i> <i>c
01b0: 6f 64 65 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c ode</i>)</code><
01c0: 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 /h3>..<h3>proced
01d0: 75 72 65 3a 20 3c 63 6f 64 65 3e 28 67 6c 66 77 ure: <code>(glfw
01e0: 2d 63 6f 6e 64 69 74 69 6f 6e 2d 63 6f 64 65 20 -condition-code
01f0: 3c 69 3e 63 6f 6e 64 69 74 69 6f 6e 3c 2f 69 3e <i>condition</i>
0200: 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d )</code></h3>...
0210: 0a 54 68 65 20 3c 74 74 3e 26 67 6c 66 77 3c 2f .The <tt>&glfw</
0220: 74 74 3e 20 63 6f 6e 64 69 74 69 6f 6e 20 74 79 tt> condition ty
0230: 70 65 20 69 73 20 64 65 72 69 76 65 64 20 66 72 pe is derived fr
0240: 6f 6d 20 3c 74 74 3e 26 6d 65 73 73 61 67 65 3c om <tt>&message<
0250: 2f 74 74 3e 20 61 6e 64 20 73 74 6f 72 65 73 20 /tt> and stores
0260: 61 6e 20 65 72 72 6f 72 20 63 6f 64 65 20 74 6f an error code to
0270: 67 65 74 68 65 72 20 77 69 74 68 20 61 20 68 75 gether with a hu
0280: 6d 61 6e 2d 72 65 61 64 61 62 6c 65 20 6d 65 73 man-readable mes
0290: 73 61 67 65 2e 0d 0a 0d 0a 3c 68 33 3e 70 61 72 sage.....<h3>par
02a0: 61 6d 65 74 65 72 3a 20 3c 63 6f 64 65 3e 63 75 ameter: <code>cu
02b0: 72 72 65 6e 74 2d 67 6c 66 77 2d 63 6f 6e 64 69 rrent-glfw-condi
02c0: 74 69 6f 6e 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e tion</code></h3>
02d0: 0d 0a 0d 0a 54 68 65 20 62 69 6e 64 69 6e 67 20 ....The binding
02e0: 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 72 65 automatically re
02f0: 67 69 73 74 65 72 73 20 61 20 47 4c 46 57 20 65 gisters a GLFW e
0300: 72 72 6f 72 20 63 61 6c 6c 62 61 63 6b 20 74 68 rror callback th
0310: 61 74 20 73 74 6f 72 65 73 20 74 68 65 20 6c 61 at stores the la
0320: 73 74 20 65 6e 63 6f 75 6e 74 65 72 65 64 20 65 st encountered e
0330: 72 72 6f 72 20 69 6e 20 74 68 69 73 20 70 61 72 rror in this par
0340: 61 6d 65 74 65 72 20 61 73 20 61 20 3c 74 74 3e ameter as a <tt>
0350: 26 67 6c 66 77 3c 2f 74 74 3e 20 63 6f 6e 64 69 &glfw</tt> condi
0360: 74 69 6f 6e 2e 0d 0a 0d 0a 3c 68 32 3e 49 6e 69 tion.....<h2>Ini
0370: 74 69 61 6c 69 7a 61 74 69 6f 6e 3c 2f 68 32 3e tialization</h2>
0380: 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 ....<h3>procedur
0390: 65 3a 20 3c 63 6f 64 65 3e 28 62 65 67 69 6e 2d e: <code>(begin-
03a0: 67 6c 66 77 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 glfw)</code></h3
03b0: 3e 0d 0a 0d 0a 49 6e 69 74 69 61 6c 69 7a 65 73 >....Initializes
03c0: 20 74 68 65 20 47 4c 46 57 20 6c 69 62 72 61 72 the GLFW librar
03d0: 79 2e 20 54 68 69 73 20 70 72 6f 63 65 64 75 72 y. This procedur
03e0: 65 20 69 73 20 69 6d 70 6c 69 63 69 74 6c 79 20 e is implicitly
03f0: 63 61 6c 6c 65 64 20 77 68 65 6e 20 74 68 65 20 called when the
0400: 62 69 6e 64 69 6e 67 20 6c 69 62 72 61 72 79 20 binding library
0410: 62 6f 64 79 20 69 73 20 65 78 65 63 75 74 65 64 body is executed
0420: 20 61 6e 64 20 6f 6e 6c 79 20 68 61 73 20 74 6f and only has to
0430: 20 62 65 20 63 61 6c 6c 65 64 20 6d 61 6e 75 61 be called manua
0440: 6c 6c 79 20 69 66 20 74 68 65 20 6c 69 62 72 61 lly if the libra
0450: 72 79 20 69 73 20 6c 61 74 65 72 20 74 65 72 6d ry is later term
0460: 69 6e 61 74 65 64 20 61 6e 64 20 6e 65 65 64 73 inated and needs
0470: 20 74 6f 20 62 65 20 69 6e 69 74 69 61 6c 69 7a to be initializ
0480: 65 64 20 61 67 61 69 6e 2e 20 48 6f 77 65 76 65 ed again. Howeve
0490: 72 2c 20 63 61 6c 6c 69 6e 67 20 74 68 65 20 70 r, calling the p
04a0: 72 6f 63 65 64 75 72 65 20 6d 75 6c 74 69 70 6c rocedure multipl
04b0: 65 20 74 69 6d 65 73 20 69 73 20 68 61 72 6d 6c e times is harml
04c0: 65 73 73 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 ess.....<h3>proc
04d0: 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 65 6e edure: <code>(en
04e0: 64 2d 67 6c 66 77 29 3c 2f 63 6f 64 65 3e 3c 2f d-glfw)</code></
04f0: 68 33 3e 0d 0a 0d 0a 54 65 72 6d 69 6e 61 74 65 h3>....Terminate
0500: 73 20 74 68 65 20 47 4c 46 57 20 6c 69 62 72 61 s the GLFW libra
0510: 72 79 20 61 6e 64 20 64 65 73 74 72 6f 79 73 20 ry and destroys
0520: 61 6c 6c 20 77 69 6e 64 6f 77 73 20 61 6e 64 20 all windows and
0530: 63 75 72 73 6f 72 73 2e 0d 0a 0d 0a 3c 68 32 3e cursors.....<h2>
0540: 4d 6f 6e 69 74 6f 72 73 3c 2f 68 32 3e 0d 0a 0d Monitors</h2>...
0550: 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 .<h3>procedure:
0560: 3c 63 6f 64 65 3e 28 6d 6f 6e 69 74 6f 72 3f 20 <code>(monitor?
0570: 3c 69 3e 61 6e 79 3c 2f 69 3e 29 3c 2f 63 6f 64 <i>any</i>)</cod
0580: 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 43 68 65 63 6b e></h3>....Check
0590: 73 20 77 68 65 74 68 65 72 20 74 68 65 20 67 69 s whether the gi
05a0: 76 65 6e 20 6f 62 6a 65 63 74 20 69 73 20 61 20 ven object is a
05b0: 47 4c 46 57 20 6d 6f 6e 69 74 6f 72 2e 0d 0a 0d GLFW monitor....
05c0: 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 .<h3>procedure:
05d0: 3c 63 6f 64 65 3e 28 70 72 69 6d 61 72 79 2d 6d <code>(primary-m
05e0: 6f 6e 69 74 6f 72 29 3c 2f 63 6f 64 65 3e 3c 2f onitor)</code></
05f0: 68 33 3e 0d 0a 0d 0a 52 65 74 75 72 6e 73 20 74 h3>....Returns t
0600: 68 65 20 70 72 69 6d 61 72 79 20 6d 6f 6e 69 74 he primary monit
0610: 6f 72 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 or.....<h3>proce
0620: 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 6c 69 73 dure: <code>(lis
0630: 74 2d 6d 6f 6e 69 74 6f 72 73 29 3c 2f 63 6f 64 t-monitors)</cod
0640: 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 52 65 74 75 72 e></h3>....Retur
0650: 6e 73 20 61 20 6c 69 73 74 20 6f 66 20 61 6c 6c ns a list of all
0660: 20 63 75 72 72 65 6e 74 6c 79 20 61 74 74 61 63 currently attac
0670: 68 65 64 20 6d 6f 6e 69 74 6f 72 73 2e 0d 0a 0d hed monitors....
0680: 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 .<h3>procedure:
0690: 3c 63 6f 64 65 3e 28 6d 6f 6e 69 74 6f 72 2d 6e <code>(monitor-n
06a0: 61 6d 65 20 3c 69 3e 6d 6f 6e 69 74 6f 72 3c 2f ame <i>monitor</
06b0: 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d i>)</code></h3>.
06c0: 0a 0d 0a 52 65 74 72 69 65 76 65 73 20 74 68 65 ...Retrieves the
06d0: 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 67 69 76 name of the giv
06e0: 65 6e 20 6d 6f 6e 69 74 6f 72 2e 0d 0a 0d 0a 3c en monitor.....<
06f0: 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 h3>procedure: <c
0700: 6f 64 65 3e 28 6d 6f 6e 69 74 6f 72 2d 70 6f 73 ode>(monitor-pos
0710: 69 74 69 6f 6e 20 3c 69 3e 6d 6f 6e 69 74 6f 72 ition <i>monitor
0720: 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 </i>)</code></h3
0730: 3e 0d 0a 0d 0a 52 65 74 72 69 65 76 65 73 20 74 >....Retrieves t
0740: 68 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 6e he horizontal an
0750: 64 20 76 65 72 74 69 63 61 6c 20 70 6f 73 69 74 d vertical posit
0760: 69 6f 6e 20 6f 66 20 74 68 65 20 6d 6f 6e 69 74 ion of the monit
0770: 6f 72 27 73 20 75 70 70 65 72 20 6c 65 66 74 20 or's upper left
0780: 63 6f 72 6e 65 72 20 69 6e 20 74 68 65 20 76 69 corner in the vi
0790: 72 74 75 61 6c 20 73 63 72 65 65 6e 20 63 6f 6f rtual screen coo
07a0: 72 64 69 6e 61 74 65 20 73 70 61 63 65 2e 0d 0a rdinate space...
07b0: 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a ..<h3>procedure:
07c0: 20 3c 63 6f 64 65 3e 28 6d 6f 6e 69 74 6f 72 2d <code>(monitor-
07d0: 73 69 7a 65 20 3c 69 3e 6d 6f 6e 69 74 6f 72 3c size <i>monitor<
07e0: 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e /i>)</code></h3>
07f0: 0d 0a 0d 0a 52 65 74 72 69 65 76 65 73 20 74 68 ....Retrieves th
0800: 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 6e 64 e horizontal and
0810: 20 76 65 72 74 69 63 61 6c 20 73 69 7a 65 20 6f vertical size o
0820: 66 20 74 68 65 20 6d 6f 6e 69 74 6f 72 20 69 6e f the monitor in
0830: 20 76 69 72 74 75 61 6c 20 73 63 72 65 65 6e 20 virtual screen
0840: 63 6f 6f 72 64 69 6e 61 74 65 73 2e 0d 0a 0d 0a coordinates.....
0850: 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c <h3>procedure: <
0860: 63 6f 64 65 3e 28 6d 6f 6e 69 74 6f 72 2d 73 69 code>(monitor-si
0870: 7a 65 2f 6d 6d 20 3c 69 3e 6d 6f 6e 69 74 6f 72 ze/mm <i>monitor
0880: 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 </i>)</code></h3
0890: 3e 0d 0a 0d 0a 52 65 74 72 69 65 76 65 73 20 74 >....Retrieves t
08a0: 68 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 6e he horizontal an
08b0: 64 20 76 65 72 74 69 63 61 6c 20 70 68 79 73 69 d vertical physi
08c0: 63 61 6c 20 73 69 7a 65 20 6f 66 20 74 68 65 20 cal size of the
08d0: 6d 6f 6e 69 74 6f 72 20 69 6e 20 6d 69 6c 6c 69 monitor in milli
08e0: 6d 65 74 65 72 73 2e 0d 0a 0d 0a 3c 68 32 3e 56 meters.....<h2>V
08f0: 69 64 65 6f 20 4d 6f 64 65 73 3c 2f 68 32 3e 0d ideo Modes</h2>.
0900: 0a 0d 0a 3c 68 33 3e 72 65 63 6f 72 64 3a 20 3c ...<h3>record: <
0910: 63 6f 64 65 3e 76 69 64 65 6f 2d 6d 6f 64 65 3c code>video-mode<
0920: 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 /code></h3>..<h3
0930: 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 >procedure: <cod
0940: 65 3e 28 76 69 64 65 6f 2d 6d 6f 64 65 3f 20 3c e>(video-mode? <
0950: 69 3e 61 6e 79 3c 2f 69 3e 29 3c 2f 63 6f 64 65 i>any</i>)</code
0960: 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 ></h3>..<h3>proc
0970: 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 6d 61 edure: <code>(ma
0980: 6b 65 2d 76 69 64 65 6f 2d 6d 6f 64 65 20 3c 69 ke-video-mode <i
0990: 3e 77 69 64 74 68 3c 2f 69 3e 20 3c 69 3e 68 65 >width</i> <i>he
09a0: 69 67 68 74 3c 2f 69 3e 20 3c 69 3e 72 65 64 2d ight</i> <i>red-
09b0: 62 69 74 73 3c 2f 69 3e 20 3c 69 3e 67 72 65 65 bits</i> <i>gree
09c0: 6e 2d 62 69 74 73 3c 2f 69 3e 20 3c 69 3e 62 6c n-bits</i> <i>bl
09d0: 75 65 2d 62 69 74 73 3c 2f 69 3e 20 3c 69 3e 72 ue-bits</i> <i>r
09e0: 65 66 72 65 73 68 2d 72 61 74 65 3c 2f 69 3e 29 efresh-rate</i>)
09f0: 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 </code></h3>..<h
0a00: 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 3>procedure: <co
0a10: 64 65 3e 28 76 69 64 65 6f 2d 6d 6f 64 65 2d 77 de>(video-mode-w
0a20: 69 64 74 68 20 3c 69 3e 6d 6f 64 65 3c 2f 69 3e idth <i>mode</i>
0a30: 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c )</code></h3>..<
0a40: 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 h3>procedure: <c
0a50: 6f 64 65 3e 28 76 69 64 65 6f 2d 6d 6f 64 65 2d ode>(video-mode-
0a60: 68 65 69 67 68 74 20 3c 69 3e 6d 6f 64 65 3c 2f height <i>mode</
0a70: 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d i>)</code></h3>.
0a80: 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 .<h3>procedure:
0a90: 3c 63 6f 64 65 3e 28 76 69 64 65 6f 2d 6d 6f 64 <code>(video-mod
0aa0: 65 2d 72 65 64 2d 62 69 74 73 20 3c 69 3e 6d 6f e-red-bits <i>mo
0ab0: 64 65 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f de</i>)</code></
0ac0: 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 h3>..<h3>procedu
0ad0: 72 65 3a 20 3c 63 6f 64 65 3e 28 76 69 64 65 6f re: <code>(video
0ae0: 2d 6d 6f 64 65 2d 67 72 65 65 6e 2d 62 69 74 73 -mode-green-bits
0af0: 20 3c 69 3e 6d 6f 64 65 3c 2f 69 3e 29 3c 2f 63 <i>mode</i>)</c
0b00: 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 ode></h3>..<h3>p
0b10: 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e rocedure: <code>
0b20: 28 76 69 64 65 6f 2d 6d 6f 64 65 2d 62 6c 75 65 (video-mode-blue
0b30: 2d 62 69 74 73 20 3c 69 3e 6d 6f 64 65 3c 2f 69 -bits <i>mode</i
0b40: 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a >)</code></h3>..
0b50: 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c <h3>procedure: <
0b60: 63 6f 64 65 3e 28 76 69 64 65 6f 2d 6d 6f 64 65 code>(video-mode
0b70: 2d 72 65 66 72 65 73 68 2d 72 61 74 65 20 3c 69 -refresh-rate <i
0b80: 3e 6d 6f 64 65 3c 2f 69 3e 29 3c 2f 63 6f 64 65 >mode</i>)</code
0b90: 3e 3c 2f 68 33 3e 0d 0a 0d 0a 41 20 72 65 63 6f ></h3>....A reco
0ba0: 72 64 20 74 79 70 65 20 72 65 70 72 65 73 65 6e rd type represen
0bb0: 74 69 6e 67 20 61 20 76 69 64 65 6f 20 6d 6f 64 ting a video mod
0bc0: 65 2e 20 49 6e 73 74 61 6e 63 65 73 20 61 72 65 e. Instances are
0bd0: 20 73 65 72 69 61 6c 69 7a 61 62 6c 65 2e 0d 0a serializable...
0be0: 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a ..<h3>procedure:
0bf0: 20 3c 63 6f 64 65 3e 28 6d 6f 6e 69 74 6f 72 2d <code>(monitor-
0c00: 76 69 64 65 6f 2d 6d 6f 64 65 20 3c 69 3e 6d 6f video-mode <i>mo
0c10: 6e 69 74 6f 72 3c 2f 69 3e 29 3c 2f 63 6f 64 65 nitor</i>)</code
0c20: 3e 3c 2f 68 33 3e 0d 0a 0d 0a 52 65 74 72 69 65 ></h3>....Retrie
0c30: 76 65 73 20 74 68 65 20 63 75 72 72 65 6e 74 20 ves the current
0c40: 76 69 64 65 6f 20 6d 6f 64 65 20 6f 66 20 74 68 video mode of th
0c50: 65 20 67 69 76 65 6e 20 6d 6f 6e 69 74 6f 72 2e e given monitor.
0c60: 0d 0a 0d 0a 3c 68 32 3e 57 69 6e 64 6f 77 20 48 ....<h2>Window H
0c70: 69 6e 74 73 3c 2f 68 32 3e 0d 0a 0d 0a 3c 68 33 ints</h2>....<h3
0c80: 3e 72 65 63 6f 72 64 3a 20 3c 63 6f 64 65 3e 77 >record: <code>w
0c90: 69 6e 64 6f 77 2d 68 69 6e 74 73 3c 2f 63 6f 64 indow-hints</cod
0ca0: 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f e></h3>..<h3>pro
0cb0: 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 cedure: <code>(w
0cc0: 69 6e 64 6f 77 2d 68 69 6e 74 73 3f 20 3c 69 3e indow-hints? <i>
0cd0: 61 6e 79 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c any</i>)</code><
0ce0: 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 /h3>..<h3>proced
0cf0: 75 72 65 3a 20 3c 63 6f 64 65 3e 28 6d 61 6b 65 ure: <code>(make
0d00: 2d 77 69 6e 64 6f 77 2d 68 69 6e 74 73 20 3c 69 -window-hints <i
0d10: 3e 61 72 67 3c 2f 69 3e 20 2e 2e 2e 29 3c 2f 63 >arg</i> ...)</c
0d20: 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 ode></h3>..<h3>p
0d30: 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e rocedure: <code>
0d40: 28 77 69 6e 64 6f 77 2d 68 69 6e 74 73 2d 61 6c (window-hints-al
0d50: 70 68 61 2d 62 69 74 73 20 3c 69 3e 68 69 6e 74 pha-bits <i>hint
0d60: 73 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 s</i>)</code></h
0d70: 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 3>..<h3>procedur
0d80: 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 e: <code>(window
0d90: 2d 68 69 6e 74 73 2d 64 65 70 74 68 2d 62 69 74 -hints-depth-bit
0da0: 73 20 3c 69 3e 68 69 6e 74 73 3c 2f 69 3e 29 3c s <i>hints</i>)<
0db0: 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 /code></h3>..<h3
0dc0: 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 >procedure: <cod
0dd0: 65 3e 28 77 69 6e 64 6f 77 2d 68 69 6e 74 73 2d e>(window-hints-
0de0: 73 74 65 6e 63 69 6c 2d 62 69 74 73 20 3c 69 3e stencil-bits <i>
0df0: 68 69 6e 74 73 3c 2f 69 3e 29 3c 2f 63 6f 64 65 hints</i>)</code
0e00: 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 ></h3>..<h3>proc
0e10: 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 edure: <code>(wi
0e20: 6e 64 6f 77 2d 68 69 6e 74 73 2d 73 61 6d 70 6c ndow-hints-sampl
0e30: 65 73 20 3c 69 3e 68 69 6e 74 73 3c 2f 69 3e 29 es <i>hints</i>)
0e40: 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 </code></h3>..<h
0e50: 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 3>procedure: <co
0e60: 64 65 3e 28 77 69 6e 64 6f 77 2d 68 69 6e 74 73 de>(window-hints
0e70: 2d 73 74 65 72 65 6f 3f 20 3c 69 3e 68 69 6e 74 -stereo? <i>hint
0e80: 73 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 s</i>)</code></h
0e90: 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 3>..<h3>procedur
0ea0: 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 e: <code>(window
0eb0: 2d 68 69 6e 74 73 2d 64 6f 75 62 6c 65 2d 62 75 -hints-double-bu
0ec0: 66 66 65 72 3f 20 3c 69 3e 68 69 6e 74 73 3c 2f ffer? <i>hints</
0ed0: 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d i>)</code></h3>.
0ee0: 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 .<h3>procedure:
0ef0: 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 2d 68 69 <code>(window-hi
0f00: 6e 74 73 2d 63 6f 6e 74 65 78 74 2d 61 70 69 20 nts-context-api
0f10: 3c 69 3e 68 69 6e 74 73 3c 2f 69 3e 29 3c 2f 63 <i>hints</i>)</c
0f20: 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 ode></h3>..<h3>p
0f30: 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e rocedure: <code>
0f40: 28 77 69 6e 64 6f 77 2d 68 69 6e 74 73 2d 63 6f (window-hints-co
0f50: 6e 74 65 78 74 2d 76 65 72 73 69 6f 6e 20 3c 69 ntext-version <i
0f60: 3e 68 69 6e 74 73 3c 2f 69 3e 29 3c 2f 63 6f 64 >hints</i>)</cod
0f70: 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f e></h3>..<h3>pro
0f80: 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 cedure: <code>(w
0f90: 69 6e 64 6f 77 2d 68 69 6e 74 73 2d 72 65 73 69 indow-hints-resi
0fa0: 7a 61 62 6c 65 3f 20 3c 69 3e 68 69 6e 74 73 3c zable? <i>hints<
0fb0: 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e /i>)</code></h3>
0fc0: 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a ..<h3>procedure:
0fd0: 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 2d 68 <code>(window-h
0fe0: 69 6e 74 73 2d 76 69 73 69 62 6c 65 3f 20 3c 69 ints-visible? <i
0ff0: 3e 68 69 6e 74 73 3c 2f 69 3e 29 3c 2f 63 6f 64 >hints</i>)</cod
1000: 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f e></h3>..<h3>pro
1010: 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 cedure: <code>(w
1020: 69 6e 64 6f 77 2d 68 69 6e 74 73 2d 64 65 63 6f indow-hints-deco
1030: 72 61 74 65 64 3f 20 3c 69 3e 68 69 6e 74 73 3c rated? <i>hints<
1040: 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e /i>)</code></h3>
1050: 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a ..<h3>procedure:
1060: 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 2d 68 <code>(window-h
1070: 69 6e 74 73 2d 66 6f 63 75 73 65 64 3f 20 3c 69 ints-focused? <i
1080: 3e 68 69 6e 74 73 3c 2f 69 3e 29 3c 2f 63 6f 64 >hints</i>)</cod
1090: 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f e></h3>..<h3>pro
10a0: 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 cedure: <code>(w
10b0: 69 6e 64 6f 77 2d 68 69 6e 74 73 2d 61 75 74 6f indow-hints-auto
10c0: 2d 69 63 6f 6e 69 66 79 3f 20 3c 69 3e 68 69 6e -iconify? <i>hin
10d0: 74 73 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f ts</i>)</code></
10e0: 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 h3>..<h3>procedu
10f0: 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f re: <code>(windo
1100: 77 2d 68 69 6e 74 73 2d 66 6c 6f 61 74 69 6e 67 w-hints-floating
1110: 3f 20 3c 69 3e 68 69 6e 74 73 3c 2f 69 3e 29 3c ? <i>hints</i>)<
1120: 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 57 /code></h3>....W
1130: 69 6e 64 6f 77 20 68 69 6e 74 73 20 61 72 65 20 indow hints are
1140: 72 65 70 72 65 73 65 6e 74 65 64 20 61 73 20 72 represented as r
1150: 65 63 6f 72 64 73 20 65 78 74 65 6e 64 69 6e 67 ecords extending
1160: 20 76 69 64 65 6f 20 6d 6f 64 65 73 2e 20 49 6e video modes. In
1170: 73 74 61 6e 63 65 73 20 61 72 65 20 73 65 72 69 stances are seri
1180: 61 6c 69 7a 61 62 6c 65 2e 0d 0a 0d 0a 49 6e 73 alizable.....Ins
1190: 74 61 6e 63 65 73 20 6d 61 79 20 62 65 20 63 6f tances may be co
11a0: 6e 73 74 72 75 63 74 65 64 20 66 72 6f 6d 20 61 nstructed from a
11b0: 6e 79 20 63 6f 6d 62 69 6e 61 74 69 6f 6e 20 6f ny combination o
11c0: 66 20 6d 6f 6e 69 74 6f 72 20 68 61 6e 64 6c 65 f monitor handle
11d0: 73 2c 20 76 69 64 65 6f 20 6d 6f 64 65 73 2c 20 s, video modes,
11e0: 65 78 69 73 74 69 6e 67 20 77 69 6e 64 6f 77 20 existing window
11f0: 68 69 6e 74 73 20 6f 72 20 66 69 65 6c 64 20 6e hints or field n
1200: 61 6d 65 20 73 79 6d 62 6f 6c 73 20 66 6f 6c 6c ame symbols foll
1210: 6f 77 65 64 20 62 79 20 76 61 6c 75 65 73 2e 20 owed by values.
1220: 4c 61 74 65 72 20 63 6f 6e 73 74 72 75 63 74 6f Later constructo
1230: 72 20 61 72 67 75 6d 65 6e 74 73 20 6f 76 65 72 r arguments over
1240: 72 69 64 65 20 74 68 65 20 76 61 6c 75 65 73 20 ride the values
1250: 6f 66 20 65 61 72 6c 69 65 72 20 6f 6e 65 73 2e of earlier ones.
1260: 20 54 68 65 20 76 61 6c 75 65 20 3c 74 74 3e 23 The value <tt>#
1270: 66 3c 2f 74 74 3e 20 62 79 20 69 74 73 65 6c 66 f</tt> by itself
1280: 20 69 73 20 69 67 6e 6f 72 65 64 20 69 6e 20 74 is ignored in t
1290: 68 65 20 61 72 67 75 6d 65 6e 74 20 6c 69 73 74 he argument list
12a0: 2e 0d 0a 0d 0a 3c 68 33 3e 70 61 72 61 6d 65 74 .....<h3>paramet
12b0: 65 72 3a 20 3c 63 6f 64 65 3e 63 75 72 72 65 6e er: <code>curren
12c0: 74 2d 77 69 6e 64 6f 77 2d 68 69 6e 74 73 3c 2f t-window-hints</
12d0: 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 54 68 code></h3>....Th
12e0: 65 20 77 69 6e 64 6f 77 20 68 69 6e 74 73 20 74 e window hints t
12f0: 6f 20 62 65 20 75 73 65 64 20 69 6e 20 74 68 65 o be used in the
1300: 20 63 6f 6e 73 74 72 75 63 74 69 6f 6e 20 6f 66 construction of
1310: 20 6e 65 77 20 77 69 6e 64 6f 77 73 20 61 72 65 new windows are
1320: 20 73 74 6f 72 65 64 20 69 6e 20 61 20 70 61 72 stored in a par
1330: 61 6d 65 74 65 72 2e 20 54 68 65 20 70 61 72 61 ameter. The para
1340: 6d 65 74 65 72 20 6d 61 79 20 62 65 20 73 65 74 meter may be set
1350: 20 74 6f 20 61 20 6d 6f 6e 69 74 6f 72 2c 20 76 to a monitor, v
1360: 69 64 65 6f 20 6d 6f 64 65 20 6f 72 20 77 69 6e ideo mode or win
1370: 64 6f 77 20 68 69 6e 74 73 20 69 6e 73 74 61 6e dow hints instan
1380: 63 65 2e 20 57 68 65 6e 20 71 75 65 72 69 65 64 ce. When queried
1390: 2c 20 74 68 65 20 70 61 72 61 6d 65 74 65 72 20 , the parameter
13a0: 61 6c 77 61 79 73 20 72 65 74 75 72 6e 73 20 61 always returns a
13b0: 20 77 69 6e 64 6f 77 20 68 69 6e 74 73 20 69 6e window hints in
13c0: 73 74 61 6e 63 65 2e 20 57 68 65 6e 20 74 68 65 stance. When the
13d0: 20 70 61 72 61 6d 65 74 65 72 20 69 73 20 73 65 parameter is se
13e0: 74 2c 20 74 68 65 20 61 70 70 72 6f 70 72 69 61 t, the appropria
13f0: 74 65 20 6e 61 74 69 76 65 20 47 4c 46 57 20 77 te native GLFW w
1400: 69 6e 64 6f 77 20 68 69 6e 74 73 20 61 72 65 20 indow hints are
1410: 61 6c 73 6f 20 73 65 74 2e 20 57 68 65 6e 20 74 also set. When t
1420: 68 65 20 70 61 72 61 6d 65 74 65 72 20 69 73 20 he parameter is
1430: 73 65 74 20 74 6f 20 3c 74 74 3e 23 66 3c 2f 74 set to <tt>#f</t
1440: 74 3e 2c 20 74 68 65 20 6e 61 74 69 76 65 20 77 t>, the native w
1450: 69 6e 64 6f 77 20 68 69 6e 74 73 20 61 72 65 20 indow hints are
1460: 72 65 73 65 74 20 74 6f 20 74 68 65 69 72 20 64 reset to their d
1470: 65 66 61 75 6c 74 20 76 61 6c 75 65 73 2e 0d 0a efault values...
1480: 0d 0a 3c 68 32 3e 57 69 6e 64 6f 77 73 3c 2f 68 ..<h2>Windows</h
1490: 32 3e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 2>....<h3>proced
14a0: 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 ure: <code>(wind
14b0: 6f 77 3f 20 3c 69 3e 61 6e 79 3c 2f 69 3e 29 3c ow? <i>any</i>)<
14c0: 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 43 /code></h3>....C
14d0: 68 65 63 6b 73 20 77 68 65 74 68 65 72 20 74 68 hecks whether th
14e0: 65 20 67 69 76 65 6e 20 6f 62 6a 65 63 74 20 69 e given object i
14f0: 73 20 61 20 47 4c 46 57 20 77 69 6e 64 6f 77 2e s a GLFW window.
1500: 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 ....<h3>procedur
1510: 65 3a 20 3c 63 6f 64 65 3e 28 6d 61 6b 65 2d 77 e: <code>(make-w
1520: 69 6e 64 6f 77 20 3c 69 3e 70 72 6f 63 3c 2f 69 indow <i>proc</i
1530: 3e 20 3c 69 3e 74 69 74 6c 65 3c 2f 69 3e 20 3c > <i>title</i> <
1540: 69 3e 77 69 64 74 68 3c 2f 69 3e 20 3c 69 3e 68 i>width</i> <i>h
1550: 65 69 67 68 74 3c 2f 69 3e 20 3c 69 3e 6d 6f 6e eight</i> <i>mon
1560: 69 74 6f 72 3c 2f 69 3e 20 3c 69 3e 73 68 61 72 itor</i> <i>shar
1570: 65 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 e</i>)</code></h
1580: 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 3>..<h3>procedur
1590: 65 3a 20 3c 63 6f 64 65 3e 28 6d 61 6b 65 2d 77 e: <code>(make-w
15a0: 69 6e 64 6f 77 20 3c 69 3e 70 72 6f 63 3c 2f 69 indow <i>proc</i
15b0: 3e 20 3c 69 3e 74 69 74 6c 65 3c 2f 69 3e 20 3c > <i>title</i> <
15c0: 69 3e 77 69 64 74 68 3c 2f 69 3e 20 3c 69 3e 68 i>width</i> <i>h
15d0: 65 69 67 68 74 3c 2f 69 3e 20 3c 69 3e 6d 6f 6e eight</i> <i>mon
15e0: 69 74 6f 72 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e itor</i>)</code>
15f0: 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 </h3>..<h3>proce
1600: 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 6d 61 6b dure: <code>(mak
1610: 65 2d 77 69 6e 64 6f 77 20 3c 69 3e 70 72 6f 63 e-window <i>proc
1620: 3c 2f 69 3e 20 3c 69 3e 74 69 74 6c 65 3c 2f 69 </i> <i>title</i
1630: 3e 20 3c 69 3e 77 69 64 74 68 3c 2f 69 3e 20 3c > <i>width</i> <
1640: 69 3e 68 65 69 67 68 74 3c 2f 69 3e 29 3c 2f 63 i>height</i>)</c
1650: 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 ode></h3>..<h3>p
1660: 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e rocedure: <code>
1670: 28 6d 61 6b 65 2d 77 69 6e 64 6f 77 20 3c 69 3e (make-window <i>
1680: 70 72 6f 63 3c 2f 69 3e 20 3c 69 3e 74 69 74 6c proc</i> <i>titl
1690: 65 3c 2f 69 3e 20 3c 69 3e 6d 6f 6e 69 74 6f 72 e</i> <i>monitor
16a0: 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 </i>)</code></h3
16b0: 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 >..<h3>procedure
16c0: 3a 20 3c 63 6f 64 65 3e 28 6d 61 6b 65 2d 77 69 : <code>(make-wi
16d0: 6e 64 6f 77 20 3c 69 3e 70 72 6f 63 3c 2f 69 3e ndow <i>proc</i>
16e0: 20 3c 69 3e 74 69 74 6c 65 3c 2f 69 3e 29 3c 2f <i>title</i>)</
16f0: 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 43 72 code></h3>....Cr
1700: 65 61 74 65 73 20 61 20 6e 65 77 20 77 69 6e 64 eates a new wind
1710: 6f 77 2e 20 54 68 65 20 67 69 76 65 6e 20 70 72 ow. The given pr
1720: 6f 63 65 64 75 72 65 20 69 73 20 63 61 6c 6c 65 ocedure is calle
1730: 64 20 74 6f 20 68 61 6e 64 6c 65 20 65 76 65 6e d to handle even
1740: 74 73 20 28 73 65 65 20 62 65 6c 6f 77 20 75 6e ts (see below un
1750: 64 65 72 20 22 45 76 65 6e 74 73 22 29 20 61 6e der "Events") an
1760: 64 20 69 73 20 70 61 73 73 65 64 20 74 6f 20 3c d is passed to <
1770: 74 74 3e 6c 6f 63 6b 2d 6f 62 6a 65 63 74 3c 2f tt>lock-object</
1780: 74 74 3e 20 62 65 66 6f 72 65 20 69 74 20 69 73 tt> before it is
1790: 20 73 74 6f 72 65 64 20 69 6e 20 74 68 65 20 6e stored in the n
17a0: 61 74 69 76 65 20 77 69 6e 64 6f 77 2e 0d 0a 0d ative window....
17b0: 0a 49 66 20 74 68 65 20 77 69 64 74 68 20 6f 72 .If the width or
17c0: 20 68 65 69 67 68 74 20 61 72 65 20 6e 6f 74 20 height are not
17d0: 67 69 76 65 6e 20 6f 72 20 3c 74 74 3e 23 66 3c given or <tt>#f<
17e0: 2f 74 74 3e 2c 20 74 68 65 69 72 20 76 61 6c 75 /tt>, their valu
17f0: 65 73 20 61 72 65 20 74 61 6b 65 6e 20 66 72 6f es are taken fro
1800: 6d 20 74 68 65 20 63 75 72 72 65 6e 74 20 77 69 m the current wi
1810: 6e 64 6f 77 20 68 69 6e 74 73 2e 0d 0a 0d 0a 49 ndow hints.....I
1820: 66 20 6f 6e 6c 79 20 61 20 6d 6f 6e 69 74 6f 72 f only a monitor
1830: 20 69 73 20 67 69 76 65 6e 20 69 6e 73 74 65 61 is given instea
1840: 64 20 6f 66 20 77 69 64 74 68 20 61 6e 64 20 68 d of width and h
1850: 65 69 67 68 74 2c 20 74 68 65 20 77 69 6e 64 6f eight, the windo
1860: 77 20 68 69 6e 74 73 20 61 72 65 20 61 64 61 70 w hints are adap
1870: 74 65 64 20 66 6f 72 20 61 20 66 75 6c 6c 73 63 ted for a fullsc
1880: 72 65 65 6e 20 77 69 6e 64 6f 77 20 75 73 69 6e reen window usin
1890: 67 20 74 68 65 20 6d 6f 6e 69 74 6f 72 27 73 20 g the monitor's
18a0: 63 75 72 72 65 6e 74 20 76 69 64 65 6f 20 6d 6f current video mo
18b0: 64 65 2e 20 54 68 65 20 77 69 6e 64 6f 77 20 68 de. The window h
18c0: 69 6e 74 73 20 61 72 65 20 72 65 73 74 6f 72 65 ints are restore
18d0: 64 20 74 6f 20 74 68 65 69 72 20 70 72 65 76 69 d to their previ
18e0: 6f 75 73 20 73 74 61 74 65 20 61 66 74 65 72 77 ous state afterw
18f0: 61 72 64 73 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f ards.....<h3>pro
1900: 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 64 cedure: <code>(d
1910: 65 73 74 72 6f 79 2d 77 69 6e 64 6f 77 20 3c 69 estroy-window <i
1920: 3e 77 69 6e 64 6f 77 3c 2f 69 3e 20 3c 69 3e 75 >window</i> <i>u
1930: 6e 6c 6f 63 6b 3f 3c 2f 69 3e 29 3c 2f 63 6f 64 nlock?</i>)</cod
1940: 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f e></h3>..<h3>pro
1950: 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 64 cedure: <code>(d
1960: 65 73 74 72 6f 79 2d 77 69 6e 64 6f 77 20 3c 69 estroy-window <i
1970: 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 3c 2f 63 6f >window</i>)</co
1980: 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 44 65 73 74 de></h3>....Dest
1990: 72 6f 79 73 20 74 68 65 20 67 69 76 65 6e 20 77 roys the given w
19a0: 69 6e 64 6f 77 2e 20 49 66 66 20 74 68 65 20 3c indow. Iff the <
19b0: 74 74 3e 75 6e 6c 6f 63 6b 3f 3c 2f 74 74 3e 20 tt>unlock?</tt>
19c0: 61 72 67 75 6d 65 6e 74 20 69 73 20 67 69 76 65 argument is give
19d0: 6e 20 61 6e 64 20 6e 6f 74 20 3c 74 74 3e 23 66 n and not <tt>#f
19e0: 3c 2f 74 74 3e 2c 20 74 68 65 20 63 61 6c 6c 62 </tt>, the callb
19f0: 61 63 6b 20 70 72 6f 63 65 64 75 72 65 20 6f 66 ack procedure of
1a00: 20 74 68 65 20 77 69 6e 64 6f 77 20 69 73 20 70 the window is p
1a10: 61 73 73 65 64 20 74 6f 20 3c 74 74 3e 75 6e 6c assed to <tt>unl
1a20: 6f 63 6b 2d 6f 62 6a 65 63 74 3c 2f 74 74 3e 2e ock-object</tt>.
1a30: 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 ....<h3>procedur
1a40: 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 e: <code>(window
1a50: 2d 6d 6f 6e 69 74 6f 72 20 3c 69 3e 77 69 6e 64 -monitor <i>wind
1a60: 6f 77 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f ow</i>)</code></
1a70: 68 33 3e 0d 0a 0d 0a 52 65 74 72 69 65 76 65 73 h3>....Retrieves
1a80: 20 74 68 65 20 6d 6f 6e 69 74 6f 72 20 74 68 61 the monitor tha
1a90: 74 20 63 75 72 72 65 6e 74 6c 79 20 64 69 73 70 t currently disp
1aa0: 6c 61 79 73 20 74 68 65 20 67 69 76 65 6e 20 77 lays the given w
1ab0: 69 6e 64 6f 77 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 indow.....<h3>pr
1ac0: 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 ocedure: <code>(
1ad0: 77 69 6e 64 6f 77 2d 63 6f 6e 74 65 78 74 2d 61 window-context-a
1ae0: 70 69 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e pi <i>window</i>
1af0: 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d )</code></h3>...
1b00: 0a 52 65 74 72 69 65 76 65 73 20 74 68 65 20 73 .Retrieves the s
1b10: 75 70 70 6f 72 74 65 64 20 63 6c 69 65 6e 74 20 upported client
1b20: 41 50 49 20 6f 66 20 74 68 65 20 77 69 6e 64 6f API of the windo
1b30: 77 27 73 20 67 72 61 70 68 69 63 73 20 63 6f 6e w's graphics con
1b40: 74 65 78 74 2e 20 54 68 65 20 72 65 73 75 6c 74 text. The result
1b50: 20 6d 61 79 20 64 69 66 66 65 72 20 66 72 6f 6d may differ from
1b60: 20 74 68 65 20 41 50 49 20 73 70 65 63 69 66 69 the API specifi
1b70: 65 64 20 69 6e 20 74 68 65 20 77 69 6e 64 6f 77 ed in the window
1b80: 20 68 69 6e 74 73 2c 20 62 75 74 20 6f 6e 6c 79 hints, but only
1b90: 20 69 66 20 69 74 20 73 75 62 73 75 6d 65 73 20 if it subsumes
1ba0: 74 68 65 20 41 50 49 20 73 70 65 63 69 66 69 65 the API specifie
1bb0: 64 20 69 6e 20 74 68 65 20 77 69 6e 64 6f 77 20 d in the window
1bc0: 68 69 6e 74 73 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 hints.....<h3>pr
1bd0: 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 ocedure: <code>(
1be0: 77 69 6e 64 6f 77 2d 63 6f 6e 74 65 78 74 2d 76 window-context-v
1bf0: 65 72 73 69 6f 6e 20 3c 69 3e 77 69 6e 64 6f 77 ersion <i>window
1c00: 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 </i>)</code></h3
1c10: 3e 0d 0a 0d 0a 52 65 74 72 69 65 76 65 73 20 74 >....Retrieves t
1c20: 68 65 20 76 65 72 73 69 6f 6e 20 6f 66 20 74 68 he version of th
1c30: 65 20 63 6c 69 65 6e 74 20 41 50 49 20 73 75 70 e client API sup
1c40: 70 6f 72 74 65 64 20 62 79 20 74 68 65 20 77 69 ported by the wi
1c50: 6e 64 6f 77 27 73 20 67 72 61 70 68 69 63 73 20 ndow's graphics
1c60: 63 6f 6e 74 65 78 74 20 61 73 20 61 20 70 61 69 context as a pai
1c70: 72 20 6f 66 20 74 77 6f 20 69 6e 74 65 67 65 72 r of two integer
1c80: 73 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 s.....<h3>proced
1c90: 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 ure: <code>(wind
1ca0: 6f 77 2d 74 69 74 6c 65 2d 73 65 74 21 20 3c 69 ow-title-set! <i
1cb0: 3e 77 69 6e 64 6f 77 3c 2f 69 3e 20 3c 69 3e 73 >window</i> <i>s
1cc0: 74 72 69 6e 67 3c 2f 69 3e 29 3c 2f 63 6f 64 65 tring</i>)</code
1cd0: 3e 3c 2f 68 33 3e 0d 0a 0d 0a 43 68 61 6e 67 65 ></h3>....Change
1ce0: 73 20 74 68 65 20 74 69 74 6c 65 20 6f 66 20 61 s the title of a
1cf0: 20 77 69 6e 64 6f 77 2e 0d 0a 0d 0a 3c 68 33 3e window.....<h3>
1d00: 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 procedure: <code
1d10: 3e 28 77 69 6e 64 6f 77 2d 70 6f 73 69 74 69 6f >(window-positio
1d20: 6e 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 n <i>window</i>)
1d30: 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 </code></h3>..<h
1d40: 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 3>procedure: <co
1d50: 64 65 3e 28 77 69 6e 64 6f 77 2d 70 6f 73 69 74 de>(window-posit
1d60: 69 6f 6e 2d 73 65 74 21 20 3c 69 3e 77 69 6e 64 ion-set! <i>wind
1d70: 6f 77 3c 2f 69 3e 20 3c 69 3e 78 3c 2f 69 3e 20 ow</i> <i>x</i>
1d80: 3c 69 3e 79 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e <i>y</i>)</code>
1d90: 3c 2f 68 33 3e 0d 0a 0d 0a 41 63 63 65 73 73 20 </h3>....Access
1da0: 74 68 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 the horizontal a
1db0: 6e 64 20 76 65 72 74 69 63 61 6c 20 70 6f 73 69 nd vertical posi
1dc0: 74 69 6f 6e 20 6f 66 20 74 68 65 20 77 69 6e 64 tion of the wind
1dd0: 6f 77 27 73 20 63 6c 69 65 6e 74 20 61 72 65 61 ow's client area
1de0: 20 69 6e 20 74 68 65 20 76 69 72 74 75 61 6c 20 in the virtual
1df0: 73 63 72 65 65 6e 20 63 6f 6f 72 64 69 6e 61 74 screen coordinat
1e00: 65 20 73 70 61 63 65 2e 0d 0a 0d 0a 3c 68 33 3e e space.....<h3>
1e10: 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 procedure: <code
1e20: 3e 28 77 69 6e 64 6f 77 2d 73 69 7a 65 20 3c 69 >(window-size <i
1e30: 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 3c 2f 63 6f >window</i>)</co
1e40: 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 de></h3>..<h3>pr
1e50: 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 ocedure: <code>(
1e60: 77 69 6e 64 6f 77 2d 73 69 7a 65 2d 73 65 74 21 window-size-set!
1e70: 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 20 3c <i>window</i> <
1e80: 69 3e 78 3c 2f 69 3e 20 3c 69 3e 79 3c 2f 69 3e i>x</i> <i>y</i>
1e90: 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d )</code></h3>...
1ea0: 0a 41 63 63 65 73 73 20 74 68 65 20 68 6f 72 69 .Access the hori
1eb0: 7a 6f 6e 74 61 6c 20 61 6e 64 20 76 65 72 74 69 zontal and verti
1ec0: 63 61 6c 20 73 69 7a 65 20 6f 66 20 74 68 65 20 cal size of the
1ed0: 77 69 6e 64 6f 77 27 73 20 63 6c 69 65 6e 74 20 window's client
1ee0: 61 72 65 61 20 69 6e 20 76 69 72 74 75 61 6c 20 area in virtual
1ef0: 73 63 72 65 65 6e 20 63 6f 6f 72 64 69 6e 61 74 screen coordinat
1f00: 65 73 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 es.....<h3>proce
1f10: 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e dure: <code>(win
1f20: 64 6f 77 2d 66 72 61 6d 65 62 75 66 66 65 72 2d dow-framebuffer-
1f30: 73 69 7a 65 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f size <i>window</
1f40: 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d i>)</code></h3>.
1f50: 0a 0d 0a 52 65 74 72 69 65 76 65 73 20 74 68 65 ...Retrieves the
1f60: 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 6e 64 20 horizontal and
1f70: 76 65 72 74 69 63 61 6c 20 73 69 7a 65 20 6f 66 vertical size of
1f80: 20 74 68 65 20 77 69 6e 64 6f 77 27 73 20 66 72 the window's fr
1f90: 61 6d 65 62 75 66 66 65 72 20 69 6e 20 70 69 78 amebuffer in pix
1fa0: 65 6c 73 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 els.....<h3>proc
1fb0: 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 edure: <code>(wi
1fc0: 6e 64 6f 77 2d 66 72 61 6d 65 2d 73 69 7a 65 20 ndow-frame-size
1fd0: 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 3c 2f <i>window</i>)</
1fe0: 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 52 65 code></h3>....Re
1ff0: 74 72 69 65 76 65 73 20 74 68 65 20 6c 65 66 74 trieves the left
2000: 2c 20 74 6f 70 2c 20 72 69 67 68 74 20 61 6e 64 , top, right and
2010: 20 62 6f 74 74 6f 6d 20 77 69 6e 64 6f 77 20 64 bottom window d
2020: 65 63 6f 72 61 74 69 6f 6e 20 73 69 7a 65 73 20 ecoration sizes
2030: 69 6e 20 76 69 72 74 75 61 6c 20 73 63 72 65 65 in virtual scree
2040: 6e 20 63 6f 6f 72 64 69 6e 61 74 65 73 2e 0d 0a n coordinates...
2050: 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a ..<h3>procedure:
2060: 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 2d 73 <code>(window-s
2070: 68 6f 75 6c 64 2d 63 6c 6f 73 65 3f 20 3c 69 3e hould-close? <i>
2080: 77 69 6e 64 6f 77 3c 2f 69 3e 29 3c 2f 63 6f 64 window</i>)</cod
2090: 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f e></h3>..<h3>pro
20a0: 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 cedure: <code>(w
20b0: 69 6e 64 6f 77 2d 73 68 6f 75 6c 64 2d 63 6c 6f indow-should-clo
20c0: 73 65 2d 73 65 74 21 20 3c 69 3e 77 69 6e 64 6f se-set! <i>windo
20d0: 77 3c 2f 69 3e 20 3c 69 3e 76 3c 2f 69 3e 29 3c w</i> <i>v</i>)<
20e0: 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 41 /code></h3>....A
20f0: 63 63 65 73 73 20 74 68 65 20 77 69 6e 64 6f 77 ccess the window
2100: 20 63 6c 6f 73 65 20 66 6c 61 67 2e 0d 0a 0d 0a close flag.....
2110: 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c <h3>procedure: <
2120: 63 6f 64 65 3e 28 77 69 6e 64 6f 77 2d 69 63 6f code>(window-ico
2130: 6e 69 66 69 65 64 3f 20 3c 69 3e 77 69 6e 64 6f nified? <i>windo
2140: 77 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 w</i>)</code></h
2150: 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 3>..<h3>procedur
2160: 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 e: <code>(window
2170: 2d 69 63 6f 6e 69 66 69 65 64 2d 73 65 74 21 20 -iconified-set!
2180: 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 20 3c 69 <i>window</i> <i
2190: 3e 76 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f >v</i>)</code></
21a0: 68 33 3e 0d 0a 0d 0a 41 63 63 65 73 73 20 74 68 h3>....Access th
21b0: 65 20 77 69 6e 64 6f 77 20 69 63 6f 6e 69 66 69 e window iconifi
21c0: 63 61 74 69 6f 6e 20 73 74 61 74 65 2e 0d 0a 0d cation state....
21d0: 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 .<h3>procedure:
21e0: 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 2d 76 69 <code>(window-vi
21f0: 73 69 62 6c 65 3f 20 3c 69 3e 77 69 6e 64 6f 77 sible? <i>window
2200: 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 </i>)</code></h3
2210: 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 >..<h3>procedure
2220: 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 2d : <code>(window-
2230: 76 69 73 69 62 6c 65 2d 73 65 74 21 20 3c 69 3e visible-set! <i>
2240: 77 69 6e 64 6f 77 3c 2f 69 3e 20 3c 69 3e 76 3c window</i> <i>v<
2250: 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e /i>)</code></h3>
2260: 0d 0a 0d 0a 41 63 63 65 73 73 20 74 68 65 20 77 ....Access the w
2270: 69 6e 64 6f 77 20 76 69 73 69 62 69 6c 69 74 79 indow visibility
2280: 20 73 74 61 74 65 2e 0d 0a 0d 0a 3c 68 33 3e 70 state.....<h3>p
2290: 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e rocedure: <code>
22a0: 28 77 69 6e 64 6f 77 2d 72 65 73 69 7a 61 62 6c (window-resizabl
22b0: 65 3f 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e e? <i>window</i>
22c0: 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d )</code></h3>...
22d0: 0a 43 68 65 63 6b 73 20 77 68 65 74 68 65 72 20 .Checks whether
22e0: 74 68 65 20 77 69 6e 64 6f 77 20 69 73 20 72 65 the window is re
22f0: 73 69 7a 61 62 6c 65 20 62 79 20 74 68 65 20 75 sizable by the u
2300: 73 65 72 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 ser.....<h3>proc
2310: 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 edure: <code>(wi
2320: 6e 64 6f 77 2d 64 65 63 6f 72 61 74 65 64 3f 20 ndow-decorated?
2330: 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 3c 2f <i>window</i>)</
2340: 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 43 68 code></h3>....Ch
2350: 65 63 6b 73 20 77 68 65 74 68 65 72 20 74 68 65 ecks whether the
2360: 20 77 69 6e 64 6f 77 20 68 61 73 20 64 65 63 6f window has deco
2370: 72 61 74 69 6f 6e 73 2e 0d 0a 0d 0a 3c 68 33 3e rations.....<h3>
2380: 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 procedure: <code
2390: 3e 28 77 69 6e 64 6f 77 2d 66 6c 6f 61 74 69 6e >(window-floatin
23a0: 67 3f 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e g? <i>window</i>
23b0: 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d )</code></h3>...
23c0: 0a 43 68 65 63 6b 73 20 77 68 65 74 68 65 72 20 .Checks whether
23d0: 74 68 65 20 77 69 6e 64 6f 77 20 69 73 20 66 6c the window is fl
23e0: 6f 61 74 69 6e 67 2e 0d 0a 0d 0a 3c 68 33 3e 70 oating.....<h3>p
23f0: 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e rocedure: <code>
2400: 28 77 69 6e 64 6f 77 2d 66 6f 63 75 73 65 64 3f (window-focused?
2410: 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 3c <i>window</i>)<
2420: 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 43 /code></h3>....C
2430: 68 65 63 6b 73 20 77 68 65 74 68 65 72 20 74 68 hecks whether th
2440: 65 20 77 69 6e 64 6f 77 20 68 61 73 20 74 68 65 e window has the
2450: 20 69 6e 70 75 74 20 66 6f 63 75 73 2e 0d 0a 0d input focus....
2460: 0a 3c 68 33 3e 70 61 72 61 6d 65 74 65 72 3a 20 .<h3>parameter:
2470: 3c 63 6f 64 65 3e 63 75 72 72 65 6e 74 2d 77 69 <code>current-wi
2480: 6e 64 6f 77 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e ndow</code></h3>
2490: 0d 0a 0d 0a 54 68 65 20 77 69 6e 64 6f 77 20 77 ....The window w
24a0: 69 74 68 20 74 68 65 20 63 75 72 72 65 6e 74 6c ith the currentl
24b0: 79 20 61 63 74 69 76 65 20 72 65 6e 64 65 72 69 y active renderi
24c0: 6e 67 20 63 6f 6e 74 65 78 74 2c 20 6f 72 20 3c ng context, or <
24d0: 74 74 3e 23 66 3c 2f 74 74 3e 2e 0d 0a 0d 0a 3c tt>#f</tt>.....<
24e0: 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 h3>procedure: <c
24f0: 6f 64 65 3e 28 65 78 74 65 6e 73 69 6f 6e 2d 73 ode>(extension-s
2500: 75 70 70 6f 72 74 65 64 3f 20 3c 69 3e 6e 61 6d upported? <i>nam
2510: 65 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 e</i>)</code></h
2520: 33 3e 0d 0a 0d 0a 44 65 74 65 72 6d 69 6e 65 73 3>....Determines
2530: 20 77 68 65 74 68 65 72 20 74 68 65 20 67 69 76 whether the giv
2540: 65 6e 20 63 6c 69 65 6e 74 20 41 50 49 20 65 78 en client API ex
2550: 74 65 6e 73 69 6f 6e 20 69 73 20 73 75 70 70 6f tension is suppo
2560: 72 74 65 64 20 62 79 20 74 68 65 20 63 75 72 72 rted by the curr
2570: 65 6e 74 20 63 6f 6e 74 65 78 74 2e 0d 0a 0d 0a ent context.....
2580: 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c <h3>procedure: <
2590: 63 6f 64 65 3e 28 65 78 74 65 6e 73 69 6f 6e 2d code>(extension-
25a0: 65 6e 74 72 79 20 3c 69 3e 6e 61 6d 65 3c 2f 69 entry <i>name</i
25b0: 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a >)</code></h3>..
25c0: 0d 0a 52 65 74 72 69 65 76 65 73 20 74 68 65 20 ..Retrieves the
25d0: 65 6e 74 72 79 20 70 6f 69 6e 74 20 6f 66 20 74 entry point of t
25e0: 68 65 20 67 69 76 65 6e 20 63 6c 69 65 6e 74 20 he given client
25f0: 41 50 49 20 65 78 74 65 6e 73 69 6f 6e 20 70 72 API extension pr
2600: 6f 63 65 64 75 72 65 20 66 6f 72 20 74 68 65 20 ocedure for the
2610: 63 75 72 72 65 6e 74 20 63 6f 6e 74 65 78 74 2e current context.
2620: 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 ....<h3>procedur
2630: 65 3a 20 3c 63 6f 64 65 3e 28 73 65 74 2d 73 77 e: <code>(set-sw
2640: 61 70 2d 69 6e 74 65 72 76 61 6c 21 20 3c 69 3e ap-interval! <i>
2650: 69 6e 74 65 67 65 72 3c 2f 69 3e 29 3c 2f 63 6f integer</i>)</co
2660: 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 53 65 74 20 de></h3>....Set
2670: 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 73 79 the number of sy
2680: 6e 63 68 72 6f 6e 69 7a 61 74 69 6f 6e 20 69 6e nchronization in
2690: 74 65 72 76 61 6c 73 20 74 6f 20 77 61 69 74 20 tervals to wait
26a0: 66 6f 72 20 62 75 66 66 65 72 20 73 77 61 70 73 for buffer swaps
26b0: 20 6f 66 20 74 68 65 20 63 75 72 72 65 6e 74 20 of the current
26c0: 63 6f 6e 74 65 78 74 20 77 69 6e 64 6f 77 2e 0d context window..
26d0: 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 ...<h3>procedure
26e0: 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 2d : <code>(window-
26f0: 73 77 61 70 2d 62 75 66 66 65 72 73 21 20 3c 69 swap-buffers! <i
2700: 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 3c 2f 63 6f >window</i>)</co
2710: 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 53 77 61 70 de></h3>....Swap
2720: 73 20 74 68 65 20 62 61 63 6b 20 61 6e 64 20 66 s the back and f
2730: 72 6f 6e 74 20 62 75 66 66 65 72 73 20 6f 66 20 ront buffers of
2740: 74 68 65 20 67 69 76 65 6e 20 77 69 6e 64 6f 77 the given window
2750: 2e 0d 0a 0d 0a 3c 68 32 3e 43 6c 69 70 62 6f 61 .....<h2>Clipboa
2760: 72 64 3c 2f 68 32 3e 0d 0a 0d 0a 3c 68 33 3e 70 rd</h2>....<h3>p
2770: 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e rocedure: <code>
2780: 28 77 69 6e 64 6f 77 2d 63 6c 69 70 62 6f 61 72 (window-clipboar
2790: 64 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 d <i>window</i>)
27a0: 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 </code></h3>..<h
27b0: 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 3>procedure: <co
27c0: 64 65 3e 28 77 69 6e 64 6f 77 2d 63 6c 69 70 62 de>(window-clipb
27d0: 6f 61 72 64 2d 73 65 74 21 20 3c 69 3e 77 69 6e oard-set! <i>win
27e0: 64 6f 77 3c 2f 69 3e 20 3c 69 3e 73 74 72 69 6e dow</i> <i>strin
27f0: 67 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 g</i>)</code></h
2800: 33 3e 0d 0a 0d 0a 41 63 63 65 73 73 20 74 68 65 3>....Access the
2810: 20 74 65 78 74 20 63 6f 6e 74 65 6e 74 20 6f 66 text content of
2820: 20 74 68 65 20 63 6c 69 70 62 6f 61 72 64 20 66 the clipboard f
2830: 6f 72 20 74 68 65 20 67 69 76 65 6e 20 77 69 6e or the given win
2840: 64 6f 77 2e 0d 0a 0d 0a 3c 68 32 3e 43 75 72 73 dow.....<h2>Curs
2850: 6f 72 73 3c 2f 68 32 3e 0d 0a 0d 0a 3c 68 33 3e ors</h2>....<h3>
2860: 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 65 procedure: <code
2870: 3e 28 63 75 72 73 6f 72 3f 20 3c 69 3e 61 6e 79 >(cursor? <i>any
2880: 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 </i>)</code></h3
2890: 3e 0d 0a 0d 0a 43 68 65 63 6b 73 20 77 68 65 74 >....Checks whet
28a0: 68 65 72 20 74 68 65 20 67 69 76 65 6e 20 6f 62 her the given ob
28b0: 6a 65 63 74 20 69 73 20 61 20 47 4c 46 57 20 63 ject is a GLFW c
28c0: 75 72 73 6f 72 2e 0d 0a 0d 0a 3c 68 33 3e 66 74 ursor.....<h3>ft
28d0: 79 70 65 3a 20 3c 63 6f 64 65 3e 67 6c 66 77 2d ype: <code>glfw-
28e0: 69 6d 61 67 65 3c 2f 63 6f 64 65 3e 3c 2f 68 33 image</code></h3
28f0: 3e 0d 0a 0d 0a 46 6f 72 65 69 67 6e 20 73 74 72 >....Foreign str
2900: 75 63 74 75 72 65 20 74 79 70 65 20 66 6f 72 20 ucture type for
2910: 63 75 73 74 6f 6d 20 69 6d 61 67 65 73 2e 0d 0a custom images...
2920: 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a ..<h3>procedure:
2930: 20 3c 63 6f 64 65 3e 28 6d 61 6b 65 2d 63 75 72 <code>(make-cur
2940: 73 6f 72 20 3c 69 3e 69 6d 61 67 65 3c 2f 69 3e sor <i>image</i>
2950: 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c )</code></h3>..<
2960: 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 h3>procedure: <c
2970: 6f 64 65 3e 28 6d 61 6b 65 2d 63 75 72 73 6f 72 ode>(make-cursor
2980: 20 3c 69 3e 69 6d 61 67 65 3c 2f 69 3e 20 3c 69 <i>image</i> <i
2990: 3e 68 6f 74 2d 78 3c 2f 69 3e 20 3c 69 3e 68 6f >hot-x</i> <i>ho
29a0: 74 2d 79 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c t-y</i>)</code><
29b0: 2f 68 33 3e 0d 0a 0d 0a 43 72 65 61 74 65 73 20 /h3>....Creates
29c0: 61 20 6e 65 77 20 63 75 72 73 6f 72 2e 20 54 68 a new cursor. Th
29d0: 65 20 69 6d 61 67 65 20 6d 61 79 20 62 65 20 61 e image may be a
29e0: 20 70 6f 69 6e 74 65 72 20 74 6f 20 61 20 63 75 pointer to a cu
29f0: 73 74 6f 6d 20 69 6d 61 67 65 20 73 74 72 75 63 stom image struc
2a00: 74 75 72 65 2c 20 69 6e 20 77 68 69 63 68 20 63 ture, in which c
2a10: 61 73 65 20 79 6f 75 20 63 61 6e 20 61 6c 73 6f ase you can also
2a20: 20 73 70 65 63 69 66 79 20 61 20 68 6f 74 73 70 specify a hotsp
2a30: 6f 74 20 70 6f 73 69 74 69 6f 6e 20 69 6e 20 74 ot position in t
2a40: 68 65 20 63 75 72 73 6f 72 20 69 6d 61 67 65 2c he cursor image,
2a50: 20 64 65 66 61 75 6c 74 69 6e 67 20 74 6f 20 74 defaulting to t
2a60: 68 65 20 74 6f 70 20 6c 65 66 74 20 63 6f 72 6e he top left corn
2a70: 65 72 2e 0d 0a 0d 0a 41 6c 74 65 72 6e 61 74 69 er.....Alternati
2a80: 76 65 6c 79 20 79 6f 75 20 63 61 6e 20 63 72 65 vely you can cre
2a90: 61 74 65 20 61 20 70 72 65 64 65 66 69 6e 65 64 ate a predefined
2aa0: 20 63 75 72 73 6f 72 20 67 69 76 65 6e 20 6f 6e cursor given on
2ab0: 65 20 6f 66 20 74 68 65 20 73 79 6d 62 6f 6c 73 e of the symbols
2ac0: 20 3c 74 74 3e 61 72 72 6f 77 3c 2f 74 74 3e 2c <tt>arrow</tt>,
2ad0: 20 3c 74 74 3e 69 62 65 61 6d 3c 2f 74 74 3e 2c <tt>ibeam</tt>,
2ae0: 20 3c 74 74 3e 69 2d 62 65 61 6d 3c 2f 74 74 3e <tt>i-beam</tt>
2af0: 2c 20 3c 74 74 3e 63 72 6f 73 73 68 61 69 72 3c , <tt>crosshair<
2b00: 2f 74 74 3e 2c 20 3c 74 74 3e 68 61 6e 64 3c 2f /tt>, <tt>hand</
2b10: 74 74 3e 2c 20 3c 74 74 3e 68 72 65 73 69 7a 65 tt>, <tt>hresize
2b20: 3c 2f 74 74 3e 2c 20 3c 74 74 3e 68 2d 72 65 73 </tt>, <tt>h-res
2b30: 69 7a 65 3c 2f 74 74 3e 2c 20 3c 74 74 3e 76 72 ize</tt>, <tt>vr
2b40: 65 73 69 7a 65 3c 2f 74 74 3e 20 6f 72 20 3c 74 esize</tt> or <t
2b50: 74 3e 76 2d 72 65 73 69 7a 65 3c 2f 74 74 3e 2e t>v-resize</tt>.
2b60: 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 ....<h3>procedur
2b70: 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e 64 6f 77 e: <code>(window
2b80: 2d 63 75 72 73 6f 72 2d 73 65 74 21 20 3c 69 3e -cursor-set! <i>
2b90: 77 69 6e 64 6f 77 3c 2f 69 3e 20 3c 69 3e 63 75 window</i> <i>cu
2ba0: 72 73 6f 72 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e rsor</i>)</code>
2bb0: 3c 2f 68 33 3e 0d 0a 0d 0a 53 65 74 73 20 74 68 </h3>....Sets th
2bc0: 65 20 63 75 72 73 6f 72 20 66 6f 72 20 74 68 65 e cursor for the
2bd0: 20 67 69 76 65 6e 20 77 69 6e 64 6f 77 2c 20 6f given window, o
2be0: 72 20 72 65 73 74 6f 72 65 73 20 74 68 65 20 64 r restores the d
2bf0: 65 66 61 75 6c 74 20 69 66 20 74 68 65 20 63 75 efault if the cu
2c00: 72 73 6f 72 20 69 73 20 3c 74 74 3e 23 66 3c 2f rsor is <tt>#f</
2c10: 74 74 3e 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 tt>.....<h3>proc
2c20: 65 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 edure: <code>(wi
2c30: 6e 64 6f 77 2d 63 75 72 73 6f 72 2d 6d 6f 64 65 ndow-cursor-mode
2c40: 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 29 3c <i>window</i>)<
2c50: 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 /code></h3>..<h3
2c60: 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 64 >procedure: <cod
2c70: 65 3e 28 77 69 6e 64 6f 77 2d 63 75 72 73 6f 72 e>(window-cursor
2c80: 2d 6d 6f 64 65 2d 73 65 74 21 20 3c 69 3e 77 69 -mode-set! <i>wi
2c90: 6e 64 6f 77 3c 2f 69 3e 20 3c 69 3e 76 3c 2f 69 ndow</i> <i>v</i
2ca0: 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a >)</code></h3>..
2cb0: 0d 0a 41 63 63 65 73 73 20 74 68 65 20 63 75 72 ..Access the cur
2cc0: 73 6f 72 20 6d 6f 64 65 20 6f 66 20 74 68 65 20 sor mode of the
2cd0: 77 69 6e 64 6f 77 2c 20 77 68 69 63 68 20 69 73 window, which is
2ce0: 20 6f 6e 65 20 6f 66 20 74 68 65 20 73 79 6d 62 one of the symb
2cf0: 6f 6c 73 20 3c 74 74 3e 6e 6f 72 6d 61 6c 3c 2f ols <tt>normal</
2d00: 74 74 3e 2c 20 3c 74 74 3e 68 69 64 64 65 6e 3c tt>, <tt>hidden<
2d10: 2f 74 74 3e 20 6f 72 20 3c 74 74 3e 64 69 73 61 /tt> or <tt>disa
2d20: 62 6c 65 64 3c 2f 74 74 3e 2e 0d 0a 0d 0a 3c 68 bled</tt>.....<h
2d30: 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 3c 63 6f 3>procedure: <co
2d40: 64 65 3e 28 77 69 6e 64 6f 77 2d 63 75 72 73 6f de>(window-curso
2d50: 72 2d 70 6f 73 69 74 69 6f 6e 20 3c 69 3e 77 69 r-position <i>wi
2d60: 6e 64 6f 77 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e ndow</i>)</code>
2d70: 3c 2f 68 33 3e 0d 0a 3c 68 33 3e 70 72 6f 63 65 </h3>..<h3>proce
2d80: 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 77 69 6e dure: <code>(win
2d90: 64 6f 77 2d 63 75 72 73 6f 72 2d 70 6f 73 69 74 dow-cursor-posit
2da0: 69 6f 6e 2d 73 65 74 21 20 3c 69 3e 77 69 6e 64 ion-set! <i>wind
2db0: 6f 77 3c 2f 69 3e 20 3c 69 3e 78 3c 2f 69 3e 20 ow</i> <i>x</i>
2dc0: 3c 69 3e 79 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e <i>y</i>)</code>
2dd0: 3c 2f 68 33 3e 0d 0a 0d 0a 41 63 63 65 73 73 20 </h3>....Access
2de0: 74 68 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 the horizontal a
2df0: 6e 64 20 76 65 72 74 69 63 61 6c 20 63 75 72 73 nd vertical curs
2e00: 6f 72 20 70 6f 73 69 74 69 6f 6e 20 6f 66 20 74 or position of t
2e10: 68 65 20 77 69 6e 64 6f 77 20 69 6e 20 76 69 72 he window in vir
2e20: 74 75 61 6c 20 73 63 72 65 65 6e 20 63 6f 6f 72 tual screen coor
2e30: 64 69 6e 61 74 65 73 2e 0d 0a 0d 0a 3c 68 32 3e dinates.....<h2>
2e40: 4a 6f 79 73 74 69 63 6b 73 3c 2f 68 32 3e 0d 0a Joysticks</h2>..
2e50: 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a ..<h3>procedure:
2e60: 20 3c 63 6f 64 65 3e 28 6a 6f 79 73 74 69 63 6b <code>(joystick
2e70: 2d 70 72 65 73 65 6e 74 3f 20 3c 69 3e 69 6e 74 -present? <i>int
2e80: 65 67 65 72 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e eger</i>)</code>
2e90: 3c 2f 68 33 3e 0d 0a 0d 0a 43 68 65 63 6b 73 20 </h3>....Checks
2ea0: 77 68 65 74 68 65 72 20 61 20 6a 6f 79 73 74 69 whether a joysti
2eb0: 63 6b 20 77 69 74 68 20 74 68 65 20 67 69 76 65 ck with the give
2ec0: 6e 20 69 6e 64 65 78 20 69 73 20 63 6f 6e 6e 65 n index is conne
2ed0: 63 74 65 64 20 74 6f 20 74 68 65 20 73 79 73 74 cted to the syst
2ee0: 65 6d 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 em.....<h3>proce
2ef0: 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 6a 6f 79 dure: <code>(joy
2f00: 73 74 69 63 6b 2d 6e 61 6d 65 20 3c 69 3e 69 6e stick-name <i>in
2f10: 74 65 67 65 72 3c 2f 69 3e 29 3c 2f 63 6f 64 65 teger</i>)</code
2f20: 3e 3c 2f 68 33 3e 0d 0a 0d 0a 52 65 74 72 69 65 ></h3>....Retrie
2f30: 76 65 73 20 74 68 65 20 6e 61 6d 65 20 6f 66 20 ves the name of
2f40: 74 68 65 20 67 69 76 65 6e 20 6a 6f 79 73 74 69 the given joysti
2f50: 63 6b 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 ck.....<h3>proce
2f60: 64 75 72 65 3a 20 3c 63 6f 64 65 3e 28 6a 6f 79 dure: <code>(joy
2f70: 73 74 69 63 6b 2d 61 78 65 73 20 3c 69 3e 69 6e stick-axes <i>in
2f80: 74 65 67 65 72 3c 2f 69 3e 29 3c 2f 63 6f 64 65 teger</i>)</code
2f90: 3e 3c 2f 68 33 3e 0d 0a 0d 0a 52 65 74 72 69 65 ></h3>....Retrie
2fa0: 76 65 73 20 61 20 76 65 63 74 6f 72 20 6f 66 20 ves a vector of
2fb0: 70 6f 73 69 74 69 6f 6e 73 20 61 6c 6f 6e 67 20 positions along
2fc0: 65 61 63 68 20 6f 66 20 74 68 65 20 67 69 76 65 each of the give
2fd0: 6e 20 6a 6f 79 73 74 69 63 6b 27 73 20 61 78 65 n joystick's axe
2fe0: 73 2e 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 s.....<h3>proced
2ff0: 75 72 65 3a 20 3c 63 6f 64 65 3e 28 6a 6f 79 73 ure: <code>(joys
3000: 74 69 63 6b 2d 62 75 74 74 6f 6e 73 20 3c 69 3e tick-buttons <i>
3010: 69 6e 74 65 67 65 72 3c 2f 69 3e 29 3c 2f 63 6f integer</i>)</co
3020: 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 52 65 74 72 de></h3>....Retr
3030: 69 65 76 65 73 20 61 20 76 65 63 74 6f 72 20 6f ieves a vector o
3040: 66 20 62 6f 6f 6c 65 61 6e 73 20 72 65 70 72 65 f booleans repre
3050: 73 65 6e 74 69 6e 67 20 74 68 65 20 73 74 61 74 senting the stat
3060: 65 20 6f 66 20 65 61 63 68 20 6f 66 20 74 68 65 e of each of the
3070: 20 67 69 76 65 6e 20 6a 6f 79 73 74 69 63 6b 27 given joystick'
3080: 73 20 62 75 74 74 6f 6e 73 2e 0d 0a 0d 0a 3c 68 s buttons.....<h
3090: 32 3e 45 76 65 6e 74 73 3c 2f 68 32 3e 0d 0a 0d 2>Events</h2>...
30a0: 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a 20 .<h3>procedure:
30b0: 3c 63 6f 64 65 3e 28 70 6f 6c 6c 2d 65 76 65 6e <code>(poll-even
30c0: 74 73 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d ts)</code></h3>.
30d0: 0a 0d 0a 50 72 6f 63 65 73 73 20 61 6c 6c 20 70 ...Process all p
30e0: 65 6e 64 69 6e 67 20 65 76 65 6e 74 73 2e 0d 0a ending events...
30f0: 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 65 3a ..<h3>procedure:
3100: 20 3c 63 6f 64 65 3e 28 77 61 69 74 2d 65 76 65 <code>(wait-eve
3110: 6e 74 73 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e nts)</code></h3>
3120: 0d 0a 0d 0a 57 61 69 74 20 66 6f 72 20 61 74 20 ....Wait for at
3130: 6c 65 61 73 74 20 6f 6e 65 20 65 76 65 6e 74 73 least one events
3140: 20 61 6e 64 20 70 72 6f 63 65 73 73 20 69 74 2e and process it.
3150: 0d 0a 0d 0a 3c 68 33 3e 70 72 6f 63 65 64 75 72 ....<h3>procedur
3160: 65 3a 20 3c 63 6f 64 65 3e 28 70 6f 73 74 2d 65 e: <code>(post-e
3170: 6d 70 74 79 2d 65 76 65 6e 74 29 3c 2f 63 6f 64 mpty-event)</cod
3180: 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 49 6e 6a 65 63 e></h3>....Injec
3190: 74 20 61 6e 20 65 6d 70 74 79 20 65 76 65 6e 74 t an empty event
31a0: 20 69 6e 74 6f 20 74 68 65 20 71 75 65 75 65 2e into the queue.
31b0: 0d 0a 0d 0a 3c 68 33 3e 73 79 6e 74 61 78 3a 20 ....<h3>syntax:
31c0: 3c 63 6f 64 65 3e 28 6d 6f 64 69 66 69 65 72 20 <code>(modifier
31d0: 3c 69 3e 73 79 6d 62 6f 6c 3c 2f 69 3e 29 3c 2f <i>symbol</i>)</
31e0: 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 3c 68 33 3e code></h3>..<h3>
31f0: 73 79 6e 74 61 78 3a 20 3c 63 6f 64 65 3e 28 6d syntax: <code>(m
3200: 6f 64 69 66 69 65 72 73 20 3c 69 3e 73 79 6d 62 odifiers <i>symb
3210: 6f 6c 3c 2f 69 3e 20 2e 2e 2e 29 3c 2f 63 6f 64 ol</i> ...)</cod
3220: 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 54 68 65 20 6d e></h3>....The m
3230: 6f 64 69 66 69 65 72 20 65 6e 75 6d 65 72 61 74 odifier enumerat
3240: 69 6f 6e 20 69 73 20 75 73 65 64 20 74 6f 20 69 ion is used to i
3250: 6e 64 69 63 61 74 65 20 6b 65 79 62 6f 61 72 64 ndicate keyboard
3260: 20 6d 6f 64 69 66 69 65 72 73 20 77 69 74 68 20 modifiers with
3270: 74 68 65 20 73 79 6d 62 6f 6c 73 20 3c 74 74 3e the symbols <tt>
3280: 73 68 69 66 74 3c 2f 74 74 3e 2c 20 3c 74 74 3e shift</tt>, <tt>
3290: 63 6f 6e 74 72 6f 6c 3c 2f 74 74 3e 2c 20 3c 74 control</tt>, <t
32a0: 74 3e 61 6c 74 3c 2f 74 74 3e 2c 20 3c 74 74 3e t>alt</tt>, <tt>
32b0: 73 75 70 65 72 3c 2f 74 74 3e 2c 20 3c 74 74 3e super</tt>, <tt>
32c0: 6b 65 79 70 61 64 3c 2f 74 74 3e 2e 20 54 68 65 keypad</tt>. The
32d0: 20 3c 74 74 3e 6b 65 79 70 61 64 3c 2f 74 74 3e <tt>keypad</tt>
32e0: 20 6d 6f 64 69 66 69 65 72 20 6f 6e 6c 79 20 6f modifier only o
32f0: 63 63 75 72 73 20 66 6f 72 20 6b 65 79 20 69 6e ccurs for key in
3300: 70 75 74 20 65 76 65 6e 74 73 20 61 6e 64 20 69 put events and i
3310: 6e 64 69 63 61 74 65 73 20 74 68 61 74 20 61 20 ndicates that a
3320: 6b 65 79 20 6f 6e 20 74 68 65 20 6e 75 6d 65 72 key on the numer
3330: 69 63 20 6b 65 79 70 61 64 20 77 61 73 20 75 73 ic keypad was us
3340: 65 64 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 6c 6c 62 ed.....<h3>callb
3350: 61 63 6b 3a 20 3c 63 6f 64 65 3e 28 3c 69 3e 70 ack: <code>(<i>p
3360: 72 6f 63 3c 2f 69 3e 20 3c 69 3e 77 69 6e 64 6f roc</i> <i>windo
3370: 77 3c 2f 69 3e 20 27 63 6c 6f 73 65 29 3c 2f 63 w</i> 'close)</c
3380: 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 ode></h3>....Not
3390: 69 66 69 65 73 20 74 68 65 20 63 61 6c 6c 62 61 ifies the callba
33a0: 63 6b 20 74 68 61 74 20 74 68 65 20 75 73 65 72 ck that the user
33b0: 20 72 65 71 75 65 73 74 65 64 20 74 6f 20 63 6c requested to cl
33c0: 6f 73 65 20 74 68 65 20 77 69 6e 64 6f 77 20 61 ose the window a
33d0: 6e 64 20 74 68 65 20 3c 74 74 3e 77 69 6e 64 6f nd the <tt>windo
33e0: 77 2d 73 68 6f 75 6c 64 2d 63 6c 6f 73 65 3f 3c w-should-close?<
33f0: 2f 74 74 3e 20 66 6c 61 67 20 68 61 73 20 62 65 /tt> flag has be
3400: 65 6e 20 73 65 74 2e 0d 0a 0d 0a 3c 68 33 3e 63 en set.....<h3>c
3410: 61 6c 6c 62 61 63 6b 3a 20 3c 63 6f 64 65 3e 28 allback: <code>(
3420: 3c 69 3e 70 72 6f 63 3c 2f 69 3e 20 3c 69 3e 77 <i>proc</i> <i>w
3430: 69 6e 64 6f 77 3c 2f 69 3e 20 27 70 6f 73 69 74 indow</i> 'posit
3440: 69 6f 6e 20 3c 69 3e 78 3c 2f 69 3e 20 3c 69 3e ion <i>x</i> <i>
3450: 79 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 y</i>)</code></h
3460: 33 3e 0d 0a 0d 0a 4e 6f 74 69 66 69 65 73 20 74 3>....Notifies t
3470: 68 65 20 63 61 6c 6c 62 61 63 6b 20 74 68 61 74 he callback that
3480: 20 74 68 65 20 77 69 6e 64 6f 77 27 73 20 70 6f the window's po
3490: 73 69 74 69 6f 6e 20 6f 6e 20 74 68 65 20 73 63 sition on the sc
34a0: 72 65 65 6e 20 68 61 73 20 63 68 61 6e 67 65 64 reen has changed
34b0: 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 6c 6c 62 61 63 .....<h3>callbac
34c0: 6b 3a 20 3c 63 6f 64 65 3e 28 3c 69 3e 70 72 6f k: <code>(<i>pro
34d0: 63 3c 2f 69 3e 20 3c 69 3e 77 69 6e 64 6f 77 3c c</i> <i>window<
34e0: 2f 69 3e 20 27 73 69 7a 65 20 3c 69 3e 78 3c 2f /i> 'size <i>x</
34f0: 69 3e 20 3c 69 3e 79 3c 2f 69 3e 29 3c 2f 63 6f i> <i>y</i>)</co
3500: 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 69 de></h3>....Noti
3510: 66 69 65 73 20 74 68 65 20 63 61 6c 6c 62 61 63 fies the callbac
3520: 6b 20 74 68 61 74 20 74 68 65 20 77 69 6e 64 6f k that the windo
3530: 77 27 73 20 73 69 7a 65 20 6f 6e 20 74 68 65 20 w's size on the
3540: 73 63 72 65 65 6e 20 68 61 73 20 63 68 61 6e 67 screen has chang
3550: 65 64 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 6c 6c 62 ed.....<h3>callb
3560: 61 63 6b 3a 20 3c 63 6f 64 65 3e 28 3c 69 3e 70 ack: <code>(<i>p
3570: 72 6f 63 3c 2f 69 3e 20 3c 69 3e 77 69 6e 64 6f roc</i> <i>windo
3580: 77 3c 2f 69 3e 20 27 66 72 61 6d 65 62 75 66 66 w</i> 'framebuff
3590: 65 72 2d 73 69 7a 65 20 3c 69 3e 78 3c 2f 69 3e er-size <i>x</i>
35a0: 20 3c 69 3e 79 3c 2f 69 3e 29 3c 2f 63 6f 64 65 <i>y</i>)</code
35b0: 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 69 66 69 ></h3>....Notifi
35c0: 65 73 20 74 68 65 20 63 61 6c 6c 62 61 63 6b 20 es the callback
35d0: 74 68 61 74 20 74 68 65 20 73 69 7a 65 20 6f 66 that the size of
35e0: 20 74 68 65 20 77 69 6e 64 6f 77 27 73 20 66 72 the window's fr
35f0: 61 6d 65 62 75 66 66 65 72 20 68 61 73 20 63 68 amebuffer has ch
3600: 61 6e 67 65 64 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 anged.....<h3>ca
3610: 6c 6c 62 61 63 6b 3a 20 3c 63 6f 64 65 3e 28 3c llback: <code>(<
3620: 69 3e 70 72 6f 63 3c 2f 69 3e 20 3c 69 3e 77 69 i>proc</i> <i>wi
3630: 6e 64 6f 77 3c 2f 69 3e 20 27 69 63 6f 6e 69 66 ndow</i> 'iconif
3640: 69 65 64 20 3c 69 3e 76 3c 2f 69 3e 29 3c 2f 63 ied <i>v</i>)</c
3650: 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 ode></h3>....Not
3660: 69 66 69 65 73 20 74 68 65 20 63 61 6c 6c 62 61 ifies the callba
3670: 63 6b 20 74 68 61 74 20 74 68 65 20 77 69 6e 64 ck that the wind
3680: 6f 77 20 68 61 73 20 62 65 65 6e 20 69 63 6f 6e ow has been icon
3690: 69 66 69 65 64 20 6f 72 20 72 65 73 74 6f 72 65 ified or restore
36a0: 64 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 6c 6c 62 61 d.....<h3>callba
36b0: 63 6b 3a 20 3c 63 6f 64 65 3e 28 3c 69 3e 70 72 ck: <code>(<i>pr
36c0: 6f 63 3c 2f 69 3e 20 3c 69 3e 77 69 6e 64 6f 77 oc</i> <i>window
36d0: 3c 2f 69 3e 20 27 66 6f 63 75 73 65 64 20 3c 69 </i> 'focused <i
36e0: 3e 76 3c 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f >v</i>)</code></
36f0: 68 33 3e 0d 0a 0d 0a 4e 6f 74 69 66 69 65 73 20 h3>....Notifies
3700: 74 68 65 20 63 61 6c 6c 62 61 63 6b 20 74 68 61 the callback tha
3710: 74 20 74 68 65 20 77 69 6e 64 6f 77 20 68 61 73 t the window has
3720: 20 67 61 69 6e 65 64 20 6f 72 20 6c 6f 73 74 20 gained or lost
3730: 69 6e 70 75 74 20 66 6f 63 75 73 2e 0d 0a 0d 0a input focus.....
3740: 3c 68 33 3e 63 61 6c 6c 62 61 63 6b 3a 20 3c 63 <h3>callback: <c
3750: 6f 64 65 3e 28 3c 69 3e 70 72 6f 63 3c 2f 69 3e ode>(<i>proc</i>
3760: 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e 20 27 <i>window</i> '
3770: 72 65 66 72 65 73 68 29 3c 2f 63 6f 64 65 3e 3c refresh)</code><
3780: 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 69 66 69 65 73 /h3>....Notifies
3790: 20 74 68 65 20 63 61 6c 6c 62 61 63 6b 20 74 68 the callback th
37a0: 61 74 20 74 68 65 20 77 69 6e 64 6f 77 20 6e 65 at the window ne
37b0: 65 64 73 20 74 6f 20 62 65 20 72 65 64 72 61 77 eds to be redraw
37c0: 6e 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 6c 6c 62 61 n.....<h3>callba
37d0: 63 6b 3a 20 3c 63 6f 64 65 3e 28 3c 69 3e 70 72 ck: <code>(<i>pr
37e0: 6f 63 3c 2f 69 3e 20 3c 69 3e 77 69 6e 64 6f 77 oc</i> <i>window
37f0: 3c 2f 69 3e 20 27 6b 65 79 20 3c 69 3e 6b 65 79 </i> 'key <i>key
3800: 3c 2f 69 3e 20 3c 69 3e 63 6f 64 65 3c 2f 69 3e </i> <i>code</i>
3810: 20 3c 69 3e 61 63 74 69 6f 6e 3c 2f 69 3e 20 3c <i>action</i> <
3820: 69 3e 6d 6f 64 69 66 69 65 72 73 3c 2f 69 3e 29 i>modifiers</i>)
3830: 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a </code></h3>....
3840: 4e 6f 74 69 66 69 65 73 20 74 68 65 20 63 61 6c Notifies the cal
3850: 6c 62 61 63 6b 20 6f 66 20 6b 65 79 62 6f 61 72 lback of keyboar
3860: 64 20 69 6e 70 75 74 2e 0d 0a 0d 0a 54 68 65 20 d input.....The
3870: 6b 65 79 20 69 73 20 65 69 74 68 65 72 20 61 20 key is either a
3880: 63 68 61 72 61 63 74 65 72 2c 20 6f 6e 65 20 6f character, one o
3890: 66 20 74 68 65 20 73 79 6d 62 6f 6c 73 20 3c 74 f the symbols <t
38a0: 74 3e 65 73 63 61 70 65 3c 2f 74 74 3e 2c 20 3c t>escape</tt>, <
38b0: 74 74 3e 65 6e 74 65 72 3c 2f 74 74 3e 2c 20 3c tt>enter</tt>, <
38c0: 74 74 3e 74 61 62 3c 2f 74 74 3e 2c 20 3c 74 74 tt>tab</tt>, <tt
38d0: 3e 62 61 63 6b 73 70 61 63 65 3c 2f 74 74 3e 2c >backspace</tt>,
38e0: 20 3c 74 74 3e 69 6e 73 65 72 74 3c 2f 74 74 3e <tt>insert</tt>
38f0: 2c 20 3c 74 74 3e 64 65 6c 65 74 65 3c 2f 74 74 , <tt>delete</tt
3900: 3e 2c 20 3c 74 74 3e 72 69 67 68 74 3c 2f 74 74 >, <tt>right</tt
3910: 3e 2c 20 3c 74 74 3e 6c 65 66 74 3c 2f 74 74 3e >, <tt>left</tt>
3920: 2c 20 3c 74 74 3e 64 6f 77 6e 3c 2f 74 74 3e 2c , <tt>down</tt>,
3930: 20 3c 74 74 3e 75 70 3c 2f 74 74 3e 2c 20 3c 74 <tt>up</tt>, <t
3940: 74 3e 70 61 67 65 2d 75 70 3c 2f 74 74 3e 2c 20 t>page-up</tt>,
3950: 3c 74 74 3e 70 61 67 65 2d 64 6f 77 6e 3c 2f 74 <tt>page-down</t
3960: 74 3e 2c 20 3c 74 74 3e 68 6f 6d 65 3c 2f 74 74 t>, <tt>home</tt
3970: 3e 2c 20 3c 74 74 3e 65 6e 64 3c 2f 74 74 3e 2c >, <tt>end</tt>,
3980: 20 3c 74 74 3e 63 61 70 73 2d 6c 6f 63 6b 3c 2f <tt>caps-lock</
3990: 74 74 3e 2c 20 3c 74 74 3e 73 63 72 6f 6c 6c 2d tt>, <tt>scroll-
39a0: 6c 6f 63 6b 3c 2f 74 74 3e 2c 20 3c 74 74 3e 6e lock</tt>, <tt>n
39b0: 75 6d 2d 6c 6f 63 6b 3c 2f 74 74 3e 2c 20 3c 74 um-lock</tt>, <t
39c0: 74 3e 70 72 69 6e 74 2d 73 63 72 65 65 6e 3c 2f t>print-screen</
39d0: 74 74 3e 2c 20 3c 74 74 3e 70 61 75 73 65 3c 2f tt>, <tt>pause</
39e0: 74 74 3e 2c 20 3c 74 74 3e 66 31 3c 2f 74 74 3e tt>, <tt>f1</tt>
39f0: 20 74 68 72 6f 75 67 68 20 3c 74 74 3e 66 32 35 through <tt>f25
3a00: 3c 2f 74 74 3e 2c 20 3c 74 74 3e 6c 65 66 74 2d </tt>, <tt>left-
3a10: 73 68 69 66 74 3c 2f 74 74 3e 2c 20 3c 74 74 3e shift</tt>, <tt>
3a20: 6c 65 66 74 2d 63 6f 6e 74 72 6f 6c 3c 2f 74 74 left-control</tt
3a30: 3e 2c 20 3c 74 74 3e 6c 65 66 74 2d 61 6c 74 3c >, <tt>left-alt<
3a40: 2f 74 74 3e 2c 20 3c 74 74 3e 6c 65 66 74 2d 73 /tt>, <tt>left-s
3a50: 75 70 65 72 3c 2f 74 74 3e 2c 20 3c 74 74 3e 72 uper</tt>, <tt>r
3a60: 69 67 68 74 2d 73 68 69 66 74 3c 2f 74 74 3e 2c ight-shift</tt>,
3a70: 20 3c 74 74 3e 72 69 67 68 74 2d 63 6f 6e 74 72 <tt>right-contr
3a80: 6f 6c 3c 2f 74 74 3e 2c 20 3c 74 74 3e 72 69 67 ol</tt>, <tt>rig
3a90: 68 74 2d 61 6c 74 3c 2f 74 74 3e 2c 20 3c 74 74 ht-alt</tt>, <tt
3aa0: 3e 72 69 67 68 74 2d 73 75 70 65 72 3c 2f 74 74 >right-super</tt
3ab0: 3e 2c 20 3c 74 74 3e 6d 65 6e 75 3c 2f 74 74 3e >, <tt>menu</tt>
3ac0: 20 6f 72 20 3c 74 74 3e 23 66 3c 2f 74 74 3e 20 or <tt>#f</tt>
3ad0: 69 66 20 74 68 65 20 6b 65 79 20 63 61 6e 6e 6f if the key canno
3ae0: 74 20 62 65 20 69 64 65 6e 74 69 66 69 65 64 2e t be identified.
3af0: 0d 0a 0d 0a 54 68 65 20 63 6f 64 65 20 69 73 20 ....The code is
3b00: 61 20 70 6c 61 74 66 6f 72 6d 2d 73 70 65 63 69 a platform-speci
3b10: 66 69 63 20 73 63 61 6e 20 63 6f 64 65 20 66 6f fic scan code fo
3b20: 72 20 74 68 65 20 6b 65 79 2e 0d 0a 0d 0a 54 68 r the key.....Th
3b30: 65 20 61 63 74 69 6f 6e 20 69 73 20 65 69 74 68 e action is eith
3b40: 65 72 20 3c 74 74 3e 70 72 65 73 73 3c 2f 74 74 er <tt>press</tt
3b50: 3e 2c 20 3c 74 74 3e 72 65 70 65 61 74 3c 2f 74 >, <tt>repeat</t
3b60: 74 3e 20 6f 72 20 3c 74 74 3e 23 66 3c 2f 74 74 t> or <tt>#f</tt
3b70: 3e 20 69 66 20 74 68 65 20 6b 65 79 20 77 61 73 > if the key was
3b80: 20 72 65 6c 65 61 73 65 64 2e 0d 0a 0d 0a 54 68 released.....Th
3b90: 65 20 6d 6f 64 69 66 69 65 72 73 20 61 72 65 20 e modifiers are
3ba0: 61 6e 20 65 6e 75 6d 65 72 61 74 69 6f 6e 20 73 an enumeration s
3bb0: 65 74 20 61 73 20 64 65 73 63 72 69 62 65 64 20 et as described
3bc0: 61 62 6f 76 65 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 above.....<h3>ca
3bd0: 6c 6c 62 61 63 6b 3a 20 3c 63 6f 64 65 3e 28 3c llback: <code>(<
3be0: 69 3e 70 72 6f 63 3c 2f 69 3e 20 3c 69 3e 77 69 i>proc</i> <i>wi
3bf0: 6e 64 6f 77 3c 2f 69 3e 20 27 63 68 61 72 20 3c ndow</i> 'char <
3c00: 69 3e 63 68 61 72 3c 2f 69 3e 29 3c 2f 63 6f 64 i>char</i>)</cod
3c10: 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 69 66 e></h3>....Notif
3c20: 69 65 73 20 74 68 65 20 63 61 6c 6c 62 61 63 6b ies the callback
3c30: 20 74 68 61 74 20 74 68 65 20 75 73 65 72 20 68 that the user h
3c40: 61 73 20 69 6e 70 75 74 20 61 20 63 68 61 72 61 as input a chara
3c50: 63 74 65 72 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 6c cter.....<h3>cal
3c60: 6c 62 61 63 6b 3a 20 3c 63 6f 64 65 3e 28 3c 69 lback: <code>(<i
3c70: 3e 70 72 6f 63 3c 2f 69 3e 20 3c 69 3e 77 69 6e >proc</i> <i>win
3c80: 64 6f 77 3c 2f 69 3e 20 27 63 75 72 73 6f 72 2d dow</i> 'cursor-
3c90: 70 6f 73 69 74 69 6f 6e 20 3c 69 3e 78 3c 2f 69 position <i>x</i
3ca0: 3e 20 3c 69 3e 79 3c 2f 69 3e 29 3c 2f 63 6f 64 > <i>y</i>)</cod
3cb0: 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 69 66 e></h3>....Notif
3cc0: 69 65 73 20 74 68 65 20 63 61 6c 6c 62 61 63 6b ies the callback
3cd0: 20 74 68 61 74 20 74 68 65 20 63 75 72 73 6f 72 that the cursor
3ce0: 20 68 61 73 20 6d 6f 76 65 64 20 69 6e 20 74 68 has moved in th
3cf0: 65 20 77 69 6e 64 6f 77 2e 0d 0a 0d 0a 3c 68 33 e window.....<h3
3d00: 3e 63 61 6c 6c 62 61 63 6b 3a 20 3c 63 6f 64 65 >callback: <code
3d10: 3e 28 3c 69 3e 70 72 6f 63 3c 2f 69 3e 20 3c 69 >(<i>proc</i> <i
3d20: 3e 77 69 6e 64 6f 77 3c 2f 69 3e 20 27 63 75 72 >window</i> 'cur
3d30: 73 6f 72 2d 69 6e 73 69 64 65 20 3c 69 3e 76 3c sor-inside <i>v<
3d40: 2f 69 3e 29 3c 2f 63 6f 64 65 3e 3c 2f 68 33 3e /i>)</code></h3>
3d50: 0d 0a 0d 0a 4e 6f 74 69 66 69 65 73 20 74 68 65 ....Notifies the
3d60: 20 63 61 6c 6c 62 61 63 6b 20 74 68 61 74 20 74 callback that t
3d70: 68 65 20 63 75 72 73 6f 72 20 68 61 73 20 6d 6f he cursor has mo
3d80: 76 65 64 20 69 6e 74 6f 20 6f 72 20 6f 75 74 20 ved into or out
3d90: 6f 66 20 74 68 65 20 77 69 6e 64 6f 77 2e 0d 0a of the window...
3da0: 0d 0a 3c 68 33 3e 63 61 6c 6c 62 61 63 6b 3a 20 ..<h3>callback:
3db0: 3c 63 6f 64 65 3e 28 3c 69 3e 70 72 6f 63 3c 2f <code>(<i>proc</
3dc0: 69 3e 20 3c 69 3e 77 69 6e 64 6f 77 3c 2f 69 3e i> <i>window</i>
3dd0: 20 27 6d 6f 75 73 65 2d 62 75 74 74 6f 6e 20 3c 'mouse-button <
3de0: 69 3e 62 75 74 74 6f 6e 3c 2f 69 3e 20 3c 69 3e i>button</i> <i>
3df0: 61 63 74 69 6f 6e 3c 2f 69 3e 20 3c 69 3e 6d 6f action</i> <i>mo
3e00: 64 69 66 69 65 72 73 3c 2f 69 3e 29 3c 2f 63 6f difiers</i>)</co
3e10: 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 69 de></h3>....Noti
3e20: 66 69 65 73 20 74 68 65 20 63 61 6c 6c 62 61 63 fies the callbac
3e30: 6b 20 74 68 61 74 20 61 20 6d 6f 75 73 65 20 77 k that a mouse w
3e40: 61 73 20 70 75 73 68 65 64 20 6f 72 20 72 65 6c as pushed or rel
3e50: 65 61 73 65 64 20 69 6e 20 74 68 65 20 77 69 6e eased in the win
3e60: 64 6f 77 2e 20 54 68 65 20 62 75 74 74 6f 6e 20 dow. The button
3e70: 69 73 20 73 70 65 63 69 66 69 65 64 20 61 73 20 is specified as
3e80: 61 6e 20 69 6e 74 65 67 65 72 20 69 6e 64 65 78 an integer index
3e90: 2c 20 74 68 65 20 61 63 74 69 6f 6e 20 69 73 20 , the action is
3ea0: 3c 74 74 3e 23 74 3c 2f 74 74 3e 20 66 6f 72 20 <tt>#t</tt> for
3eb0: 61 20 70 75 73 68 65 64 20 62 75 74 74 6f 6e 20 a pushed button
3ec0: 6f 72 20 3c 74 74 3e 23 66 3c 2f 74 74 3e 20 66 or <tt>#f</tt> f
3ed0: 6f 72 20 61 20 72 65 6c 65 61 73 65 64 20 62 75 or a released bu
3ee0: 74 74 6f 6e 20 61 6e 64 20 74 68 65 20 6d 6f 64 tton and the mod
3ef0: 69 66 69 65 72 73 20 61 72 65 20 61 6e 20 65 6e ifiers are an en
3f00: 75 6d 65 72 61 74 69 6f 6e 20 73 65 74 20 61 73 umeration set as
3f10: 20 64 65 73 63 72 69 62 65 64 20 61 62 6f 76 65 described above
3f20: 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 6c 6c 62 61 63 .....<h3>callbac
3f30: 6b 3a 20 3c 63 6f 64 65 3e 28 3c 69 3e 70 72 6f k: <code>(<i>pro
3f40: 63 3c 2f 69 3e 20 3c 69 3e 77 69 6e 64 6f 77 3c c</i> <i>window<
3f50: 2f 69 3e 20 27 73 63 72 6f 6c 6c 20 3c 69 3e 78 /i> 'scroll <i>x
3f60: 3c 2f 69 3e 20 3c 69 3e 79 3c 2f 69 3e 29 3c 2f </i> <i>y</i>)</
3f70: 63 6f 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f code></h3>....No
3f80: 74 69 66 69 65 73 20 74 68 65 20 63 61 6c 6c 62 tifies the callb
3f90: 61 63 6b 20 74 68 61 74 20 74 68 65 20 77 69 6e ack that the win
3fa0: 64 6f 77 20 68 61 73 20 62 65 65 6e 20 73 63 72 dow has been scr
3fb0: 6f 6c 6c 65 64 2e 0d 0a 0d 0a 3c 68 33 3e 63 61 olled.....<h3>ca
3fc0: 6c 6c 62 61 63 6b 3a 20 3c 63 6f 64 65 3e 28 3c llback: <code>(<
3fd0: 69 3e 70 72 6f 63 3c 2f 69 3e 20 3c 69 3e 77 69 i>proc</i> <i>wi
3fe0: 6e 64 6f 77 3c 2f 69 3e 20 27 64 72 6f 70 20 3c ndow</i> 'drop <
3ff0: 69 3e 70 61 74 68 73 3c 2f 69 3e 29 3c 2f 63 6f i>paths</i>)</co
4000: 64 65 3e 3c 2f 68 33 3e 0d 0a 0d 0a 4e 6f 74 69 de></h3>....Noti
4010: 66 69 65 73 20 74 68 65 20 63 61 6c 6c 62 61 63 fies the callbac
4020: 6b 20 74 68 61 74 20 66 69 6c 65 73 20 68 61 76 k that files hav
4030: 65 20 62 65 65 6e 20 64 72 6f 70 70 65 64 20 6f e been dropped o
4040: 6e 20 74 68 65 20 77 69 6e 64 6f 77 2e 20 54 68 n the window. Th
4050: 65 20 66 69 6c 65 73 20 61 72 65 20 70 61 73 73 e files are pass
4060: 65 64 20 61 73 20 61 20 6c 69 73 74 20 6f 66 20 ed as a list of
4070: 61 62 73 6f 6c 75 74 65 20 70 61 74 68 73 2e 0d absolute paths..
4080: 0a 0a 5a 20 37 37 36 30 65 64 63 31 32 32 63 66 ..Z 7760edc122cf
4090: 32 66 33 30 64 37 62 38 38 63 62 38 34 38 37 62 2f30d7b88cb8487b
40a0: 66 34 31 30 0a f410.