|
|
1.1 root 1: event = record[kind: int,
2: value: int,
3: mask: int,
4: win: x_window,
5: sub: x_window,
6: x: int,
7: y: int,
8: x0: int,
9: y0: int,
10: time: int]
11:
12: % map values
13:
14: IsUnmapped = 0
15: IsMapped = 1
16: IsInvisible = 2
17:
18: % kind values
19:
20: IsTransparent = 0
21: IsOpaque = 1
22: IsIcon = 2
23:
24: % Input Event Codes
25:
26: NoEvent = 0
27: KeyPressed = 1
28: KeyReleased = 2
29: ButtonPressed = 4
30: ButtonReleased = 8
31: EnterWindow = 16
32: LeaveWindow = 32
33: MouseMoved = 64
34: ExposeWindow = 128
35: ExposeRegion = 256
36: ExposeCopy = 512
37: RightDownMotion = 1024
38: MiddleDownMotion = 2048
39: LeftDownMotion = 4096
40: UnmapWindow = 8192
41: FocusChange = 16384
42:
43: % Event detail codes
44:
45: RightButton = 0
46: MiddleButton = 1
47: LeftButton = 2
48: IntoOrFromSubwindow = 1
49: VirtualCrossing = 2
50:
51: % input state masks
52:
53: ControlMask = 16384
54: MetaMask = 8192
55: ShiftMask = 4096
56: ShiftLockMask = 2048
57: LeftMask = 1024
58: MiddleMask = 512
59: RightMask = 256
60:
61: BlackPixel = 0
62: WhitePixel = 1
63:
64: % x_vlist flag bits. If the bit is 1 the predicate is true
65:
66: VertexRelative = 1 % else absolute
67: VertexDontDraw = 2 % else draw
68: VertexCurved = 4 % else straight
69: VertexStartClosed = 8 % else not
70: VertexEndClosed = 16 % else not
71: VertexDrawLastPoint = 32 % else don't
72:
73: GXclear = 0 % 0
74: GXand = 1 % src AND dst
75: GXandReverse = 2 % src AND NOT dst
76: GXcopy = 3 % src
77: GXandInverted = 4 % NOT src AND dst
78: GXnoop = 5 % dst
79: GXxor = 6 % src XOR dst
80: GXor = 7 % src OR dst
81: GXnor = 8 % NOT src AND NOT dst
82: GXequiv = 9 % NOT src XOR dst
83: GXinvert = 10 % NOT dst
84: GXorReverse = 11 % src OR NOT dst
85: GXcopyInverted = 12 % NOT src
86: GXorInverted = 13 % NOT src OR dst
87: GXnand = 14 % NOT src OR NOT dst
88: GXset = 15 % 1
89:
90: pixellist = array[int]
91: colordef = record[pixel, red, green, blue: int]
92: colordeflist = array[colordef]
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.