Artifact f66035b91eb83752e72196d6abf8e0d0e02420ff:
- File sdl2/mouse-types.ss — part of check-in [b358a80757] at 2016-09-04 14:50:46 on branch trunk — added missing file changes (user: aldo size: 1485)
0000: 3b 3b 0a 3b 3b 20 43 6f 70 79 72 69 67 68 74 20 ;;.;; Copyright 0010: 32 30 31 36 20 41 6c 64 6f 20 4e 69 63 6f 6c 61 2016 Aldo Nicola 0020: 73 20 42 72 75 6e 6f 0a 3b 3b 0a 3b 3b 20 4c 69 s Bruno.;;.;; Li 0030: 63 65 6e 73 65 64 20 75 6e 64 65 72 20 74 68 65 censed under the 0040: 20 41 70 61 63 68 65 20 4c 69 63 65 6e 73 65 2c Apache License, 0050: 20 56 65 72 73 69 6f 6e 20 32 2e 30 20 28 74 68 Version 2.0 (th 0060: 65 20 22 4c 69 63 65 6e 73 65 22 29 3b 0a 3b 3b e "License");.;; 0070: 20 79 6f 75 20 6d 61 79 20 6e 6f 74 20 75 73 65 you may not use 0080: 20 74 68 69 73 20 66 69 6c 65 20 65 78 63 65 70 this file excep 0090: 74 20 69 6e 20 63 6f 6d 70 6c 69 61 6e 63 65 20 t in compliance 00a0: 77 69 74 68 20 74 68 65 20 4c 69 63 65 6e 73 65 with the License 00b0: 2e 0a 3b 3b 20 59 6f 75 20 6d 61 79 20 6f 62 74 ..;; You may obt 00c0: 61 69 6e 20 61 20 63 6f 70 79 20 6f 66 20 74 68 ain a copy of th 00d0: 65 20 4c 69 63 65 6e 73 65 20 61 74 0a 3b 3b 0a e License at.;;. 00e0: 3b 3b 20 20 20 20 20 68 74 74 70 3a 2f 2f 77 77 ;; http://ww 00f0: 77 2e 61 70 61 63 68 65 2e 6f 72 67 2f 6c 69 63 w.apache.org/lic 0100: 65 6e 73 65 73 2f 4c 49 43 45 4e 53 45 2d 32 2e enses/LICENSE-2. 0110: 30 0a 3b 3b 0a 3b 3b 20 55 6e 6c 65 73 73 20 72 0.;;.;; Unless r 0120: 65 71 75 69 72 65 64 20 62 79 20 61 70 70 6c 69 equired by appli 0130: 63 61 62 6c 65 20 6c 61 77 20 6f 72 20 61 67 72 cable law or agr 0140: 65 65 64 20 74 6f 20 69 6e 20 77 72 69 74 69 6e eed to in writin 0150: 67 2c 20 73 6f 66 74 77 61 72 65 0a 3b 3b 20 64 g, software.;; d 0160: 69 73 74 72 69 62 75 74 65 64 20 75 6e 64 65 72 istributed under 0170: 20 74 68 65 20 4c 69 63 65 6e 73 65 20 69 73 20 the License is 0180: 64 69 73 74 72 69 62 75 74 65 64 20 6f 6e 20 61 distributed on a 0190: 6e 20 22 41 53 20 49 53 22 20 42 41 53 49 53 2c n "AS IS" BASIS, 01a0: 0a 3b 3b 20 57 49 54 48 4f 55 54 20 57 41 52 52 .;; WITHOUT WARR 01b0: 41 4e 54 49 45 53 20 4f 52 20 43 4f 4e 44 49 54 ANTIES OR CONDIT 01c0: 49 4f 4e 53 20 4f 46 20 41 4e 59 20 4b 49 4e 44 IONS OF ANY KIND 01d0: 2c 20 65 69 74 68 65 72 20 65 78 70 72 65 73 73 , either express 01e0: 20 6f 72 20 69 6d 70 6c 69 65 64 2e 0a 3b 3b 20 or implied..;; 01f0: 53 65 65 20 74 68 65 20 4c 69 63 65 6e 73 65 20 See the License 0200: 66 6f 72 20 74 68 65 20 73 70 65 63 69 66 69 63 for the specific 0210: 20 6c 61 6e 67 75 61 67 65 20 67 6f 76 65 72 6e language govern 0220: 69 6e 67 20 70 65 72 6d 69 73 73 69 6f 6e 73 20 ing permissions 0230: 61 6e 64 0a 3b 3b 20 6c 69 6d 69 74 61 74 69 6f and.;; limitatio 0240: 6e 73 20 75 6e 64 65 72 20 74 68 65 20 4c 69 63 ns under the Lic 0250: 65 6e 73 65 2e 0a 0a 20 28 64 65 66 69 6e 65 2d ense... (define- 0260: 65 6e 75 6d 65 72 61 74 69 6f 6e 2a 20 73 64 6c enumeration* sdl 0270: 2d 73 79 73 74 65 6d 2d 63 75 72 73 6f 72 0a 20 -system-cursor. 0280: 20 20 28 61 72 72 6f 77 20 20 20 20 20 3b 20 61 (arrow ; a 0290: 72 72 6f 77 20 2a 2f 0a 20 20 20 20 69 2d 62 65 rrow */. i-be 02a0: 61 6d 20 20 20 20 20 3b 20 69 2d 62 65 61 6d 20 am ; i-beam 02b0: 2a 2f 0a 20 20 20 20 77 61 69 74 20 20 20 20 20 */. wait 02c0: 20 3b 20 77 61 69 74 20 2a 2f 0a 20 20 20 20 63 ; wait */. c 02d0: 72 6f 73 73 68 61 69 72 20 3b 20 63 72 6f 73 73 rosshair ; cross 02e0: 68 61 69 72 20 2a 2f 0a 20 20 20 20 77 61 69 74 hair */. wait 02f0: 61 72 72 6f 77 20 3b 20 73 6d 61 6c 6c 20 77 61 arrow ; small wa 0300: 69 74 20 63 75 72 73 6f 72 20 28 6f 72 20 77 61 it cursor (or wa 0310: 69 74 20 69 66 20 6e 6f 74 20 61 76 61 69 6c 61 it if not availa 0320: 62 6c 65 29 20 2a 2f 0a 20 20 20 20 73 69 7a 65 ble) */. size 0330: 2d 6e 77 2d 73 65 20 20 3b 20 64 6f 75 62 6c 65 -nw-se ; double 0340: 20 61 72 72 6f 77 20 70 6f 69 6e 74 69 6e 67 20 arrow pointing 0350: 6e 6f 72 74 68 77 65 73 74 20 61 6e 64 20 73 6f northwest and so 0360: 75 74 68 65 61 73 74 20 2a 2f 0a 20 20 20 20 73 utheast */. s 0370: 69 7a 65 2d 6e 65 2d 73 77 20 20 3b 20 64 6f 75 ize-ne-sw ; dou 0380: 62 6c 65 20 61 72 72 6f 77 20 70 6f 69 6e 74 69 ble arrow pointi 0390: 6e 67 20 6e 6f 72 74 68 65 61 73 74 20 61 6e 64 ng northeast and 03a0: 20 73 6f 75 74 68 77 65 73 74 20 2a 2f 0a 20 20 southwest */. 03b0: 20 20 73 69 7a 65 2d 77 65 20 20 20 20 3b 20 64 size-we ; d 03c0: 6f 75 62 6c 65 20 61 72 72 6f 77 20 70 6f 69 6e ouble arrow poin 03d0: 74 69 6e 67 20 77 65 73 74 20 61 6e 64 20 65 61 ting west and ea 03e0: 73 74 20 2a 2f 0a 20 20 20 20 73 69 7a 65 2d 6e st */. size-n 03f0: 73 20 20 20 20 3b 20 64 6f 75 62 6c 65 20 61 72 s ; double ar 0400: 72 6f 77 20 70 6f 69 6e 74 69 6e 67 20 6e 6f 72 row pointing nor 0410: 74 68 20 61 6e 64 20 73 6f 75 74 68 20 2a 2f 0a th and south */. 0420: 20 20 20 20 73 69 7a 65 2d 61 6c 6c 20 20 20 3b size-all ; 0430: 20 66 6f 75 72 20 70 6f 69 6e 74 65 64 20 61 72 four pointed ar 0440: 72 6f 77 20 70 6f 69 6e 74 69 6e 67 20 6e 6f 72 row pointing nor 0450: 74 68 2c 20 73 6f 75 74 68 2c 20 65 61 73 74 2c th, south, east, 0460: 20 61 6e 64 20 77 65 73 74 20 2a 2f 0a 20 20 20 and west */. 0470: 20 6e 6f 20 20 20 20 20 20 20 20 3b 20 73 6c 61 no ; sla 0480: 73 68 65 64 20 63 69 72 63 6c 65 20 6f 72 20 63 shed circle or c 0490: 72 6f 73 73 62 6f 6e 65 73 20 2a 2f 0a 20 20 20 rossbones */. 04a0: 20 68 61 6e 64 20 20 20 20 20 20 3b 20 68 61 6e hand ; han 04b0: 64 20 2a 2f 0a 20 20 20 20 6e 75 6d 2d 73 79 73 d */. num-sys 04c0: 74 65 6d 2d 63 75 72 73 6f 72 73 29 29 0a 0a 20 tem-cursors)).. 04d0: 28 64 65 66 69 6e 65 2d 66 74 79 70 65 20 73 64 (define-ftype sd 04e0: 6c 2d 63 75 72 73 6f 72 2d 74 20 28 73 74 72 75 l-cursor-t (stru 04f0: 63 74 29 29 0a 0a 20 28 64 65 66 69 6e 65 2d 66 ct)).. (define-f 0500: 6c 61 67 73 20 73 64 6c 2d 62 75 74 74 6f 6e 20 lags sdl-button 0510: 28 6c 65 66 74 20 31 29 20 28 6d 69 64 64 6c 65 (left 1) (middle 0520: 20 32 29 20 28 72 69 67 68 74 20 33 29 20 28 78 2) (right 3) (x 0530: 31 20 34 29 20 28 78 32 20 35 29 29 0a 20 28 64 1 4) (x2 5)). (d 0540: 65 66 69 6e 65 20 28 73 64 6c 2d 62 75 74 74 6f efine (sdl-butto 0550: 6e 2d 6d 61 73 6b 20 62 75 74 74 6f 6e 29 0a 20 n-mask button). 0560: 20 20 28 62 69 74 77 69 73 65 2d 61 72 69 74 68 (bitwise-arith 0570: 6d 65 74 69 63 2d 73 68 69 66 74 2d 6c 65 66 74 metic-shift-left 0580: 0a 20 20 20 20 31 0a 20 20 20 20 28 2d 20 28 63 . 1. (- (c 0590: 64 72 20 28 61 73 73 71 20 62 75 74 74 6f 6e 20 dr (assq button 05a0: 28 66 6c 61 67 73 2d 61 6c 69 73 74 20 73 64 6c (flags-alist sdl 05b0: 2d 62 75 74 74 6f 6e 2d 66 6c 61 67 73 29 29 29 -button-flags))) 05c0: 0a 20 20 20 20 20 20 20 31 29 29 29 0a . 1))).