summaryrefslogtreecommitdiff
path: root/lib/Wayland/Protocols/RiverLibinputConfigV1/Requests.lean
blob: 3c8e48697b9c1560f522872fc5e7206ce60b1538 (plain)
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
import Wayland.Display
import Wayland.Protocols.RiverLibinputConfigV1.Header
import Wayland.Protocols.RiverLibinputConfigV1.Resolved

namespace Wayland.Protocols

variable {σ : Type} {ι : InterfaceName} [iface : ResolvedInterface ι]

def RiverLibinputConfigV1.stop
    (ω : RiverLibinputConfigV1)
    : DisplayM σ Unit :=
  ω.send false do
    return 0

def RiverLibinputConfigV1.destroy
    (ω : RiverLibinputConfigV1)
    : DisplayM σ Unit :=
  ω.send true do
    return 1

def RiverLibinputConfigV1.createAccelConfig
    (ω : RiverLibinputConfigV1)
    (profile : RiverLibinputDeviceV1.AccelProfile)
    : DisplayM σ RiverLibinputAccelConfigV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint profile
    return 2

def RiverLibinputDeviceV1.destroy
    (ω : RiverLibinputDeviceV1)
    : DisplayM σ Unit :=
  ω.send true do
    return 0

def RiverLibinputDeviceV1.setSendEvents
    (ω : RiverLibinputDeviceV1)
    (mode : RiverLibinputDeviceV1.SendEventsModes)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint mode
    return 1

def RiverLibinputDeviceV1.setTap
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.TapState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 2

def RiverLibinputDeviceV1.setTapButtonMap
    (ω : RiverLibinputDeviceV1)
    (buttonMap : RiverLibinputDeviceV1.TapButtonMap)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint buttonMap
    return 3

def RiverLibinputDeviceV1.setDrag
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.DragState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 4

def RiverLibinputDeviceV1.setDragLock
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.DragLockState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 5

def RiverLibinputDeviceV1.setThreeFingerDrag
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.ThreeFingerDragState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 6

def RiverLibinputDeviceV1.setCalibrationMatrix
    (ω : RiverLibinputDeviceV1)
    (matrix : ByteArray)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .array matrix
    return 7

def RiverLibinputDeviceV1.setAccelProfile
    (ω : RiverLibinputDeviceV1)
    (profile : RiverLibinputDeviceV1.AccelProfile)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint profile
    return 8

def RiverLibinputDeviceV1.setAccelSpeed
    (ω : RiverLibinputDeviceV1)
    (speed : ByteArray)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .array speed
    return 9

def RiverLibinputDeviceV1.applyAccelConfig
    (ω : RiverLibinputDeviceV1)
    (config : RiverLibinputAccelConfigV1)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .object config
    return 10

def RiverLibinputDeviceV1.setNaturalScroll
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.NaturalScrollState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 11

def RiverLibinputDeviceV1.setLeftHanded
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.LeftHandedState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 12

def RiverLibinputDeviceV1.setClickMethod
    (ω : RiverLibinputDeviceV1)
    (method : RiverLibinputDeviceV1.ClickMethod)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint method
    return 13

def RiverLibinputDeviceV1.setClickfingerButtonMap
    (ω : RiverLibinputDeviceV1)
    (buttonMap : RiverLibinputDeviceV1.ClickfingerButtonMap)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint buttonMap
    return 14

def RiverLibinputDeviceV1.setMiddleEmulation
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.MiddleEmulationState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 15

def RiverLibinputDeviceV1.setScrollMethod
    (ω : RiverLibinputDeviceV1)
    (method : RiverLibinputDeviceV1.ScrollMethod)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint method
    return 16

def RiverLibinputDeviceV1.setScrollButton
    (ω : RiverLibinputDeviceV1)
    (button : UInt32)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint button
    return 17

def RiverLibinputDeviceV1.setScrollButtonLock
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.ScrollButtonLockState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 18

def RiverLibinputDeviceV1.setDwt
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.DwtState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 19

def RiverLibinputDeviceV1.setDwtp
    (ω : RiverLibinputDeviceV1)
    (state : RiverLibinputDeviceV1.DwtpState)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint state
    return 20

def RiverLibinputDeviceV1.setRotation
    (ω : RiverLibinputDeviceV1)
    (angle : UInt32)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint angle
    return 21

def RiverLibinputAccelConfigV1.destroy
    (ω : RiverLibinputAccelConfigV1)
    : DisplayM σ Unit :=
  ω.send true do
    return 0

def RiverLibinputAccelConfigV1.setPoints
    (ω : RiverLibinputAccelConfigV1)
    (type : RiverLibinputAccelConfigV1.AccelType)
    (step : ByteArray)
    (points : ByteArray)
    : DisplayM σ RiverLibinputResultV1 :=
  ω.sendConstructor false do
    ArgumentMarshaller.marshalAnyObject .none
    Marshallable.marshal .uint type
    Marshallable.marshal .array step
    Marshallable.marshal .array points
    return 1

end Wayland.Protocols