AtlatestRepositorysigil-ui
1
/* Generated by wayland-scanner 1.24.0 */3
#ifndef WLR_VIRTUAL_POINTER_UNSTABLE_V1_CLIENT_PROTOCOL_H4
#define WLR_VIRTUAL_POINTER_UNSTABLE_V1_CLIENT_PROTOCOL_H6
#include <stdint.h>7
#include <stddef.h>8
#include "wayland-client.h"10
#ifdef __cplusplus11
extern "C" {12
#endif14
/**15
* @page page_wlr_virtual_pointer_unstable_v1 The wlr_virtual_pointer_unstable_v1 protocol16
* @section page_ifaces_wlr_virtual_pointer_unstable_v1 Interfaces17
* - @subpage page_iface_zwlr_virtual_pointer_v1 - virtual pointer18
* - @subpage page_iface_zwlr_virtual_pointer_manager_v1 - virtual pointer manager19
* @section page_copyright_wlr_virtual_pointer_unstable_v1 Copyright20
* <pre>21
*22
* Copyright © 2019 Josef Gajdusek23
*24
* Permission is hereby granted, free of charge, to any person obtaining a25
* copy of this software and associated documentation files (the "Software"),26
* to deal in the Software without restriction, including without limitation27
* the rights to use, copy, modify, merge, publish, distribute, sublicense,28
* and/or sell copies of the Software, and to permit persons to whom the29
* Software is furnished to do so, subject to the following conditions:30
*31
* The above copyright notice and this permission notice (including the next32
* paragraph) shall be included in all copies or substantial portions of the33
* Software.34
*35
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR36
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,37
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL38
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER39
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING40
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER41
* DEALINGS IN THE SOFTWARE.42
* </pre>43
*/44
struct wl_output;45
struct wl_seat;46
struct zwlr_virtual_pointer_manager_v1;47
struct zwlr_virtual_pointer_v1;49
#ifndef ZWLR_VIRTUAL_POINTER_V1_INTERFACE50
#define ZWLR_VIRTUAL_POINTER_V1_INTERFACE51
/**52
* @page page_iface_zwlr_virtual_pointer_v1 zwlr_virtual_pointer_v153
* @section page_iface_zwlr_virtual_pointer_v1_desc Description54
*55
* This protocol allows clients to emulate a physical pointer device. The56
* requests are mostly mirror opposites of those specified in wl_pointer.57
* @section page_iface_zwlr_virtual_pointer_v1_api API58
* See @ref iface_zwlr_virtual_pointer_v1.59
*/60
/**61
* @defgroup iface_zwlr_virtual_pointer_v1 The zwlr_virtual_pointer_v1 interface62
*63
* This protocol allows clients to emulate a physical pointer device. The64
* requests are mostly mirror opposites of those specified in wl_pointer.65
*/66
extern const struct wl_interface zwlr_virtual_pointer_v1_interface;67
#endif68
#ifndef ZWLR_VIRTUAL_POINTER_MANAGER_V1_INTERFACE69
#define ZWLR_VIRTUAL_POINTER_MANAGER_V1_INTERFACE70
/**71
* @page page_iface_zwlr_virtual_pointer_manager_v1 zwlr_virtual_pointer_manager_v172
* @section page_iface_zwlr_virtual_pointer_manager_v1_desc Description73
*74
* This object allows clients to create individual virtual pointer objects.75
* @section page_iface_zwlr_virtual_pointer_manager_v1_api API76
* See @ref iface_zwlr_virtual_pointer_manager_v1.77
*/78
/**79
* @defgroup iface_zwlr_virtual_pointer_manager_v1 The zwlr_virtual_pointer_manager_v1 interface80
*81
* This object allows clients to create individual virtual pointer objects.82
*/83
extern const struct wl_interface zwlr_virtual_pointer_manager_v1_interface;84
#endif86
#ifndef ZWLR_VIRTUAL_POINTER_V1_ERROR_ENUM87
#define ZWLR_VIRTUAL_POINTER_V1_ERROR_ENUM88
enum zwlr_virtual_pointer_v1_error {89
/**90
* client sent invalid axis enumeration value91
*/92
ZWLR_VIRTUAL_POINTER_V1_ERROR_INVALID_AXIS = 0,93
/**94
* client sent invalid axis source enumeration value95
*/96
ZWLR_VIRTUAL_POINTER_V1_ERROR_INVALID_AXIS_SOURCE = 1,97
};98
#endif /* ZWLR_VIRTUAL_POINTER_V1_ERROR_ENUM */100
#define ZWLR_VIRTUAL_POINTER_V1_MOTION 0101
#define ZWLR_VIRTUAL_POINTER_V1_MOTION_ABSOLUTE 1102
#define ZWLR_VIRTUAL_POINTER_V1_BUTTON 2103
#define ZWLR_VIRTUAL_POINTER_V1_AXIS 3104
#define ZWLR_VIRTUAL_POINTER_V1_FRAME 4105
#define ZWLR_VIRTUAL_POINTER_V1_AXIS_SOURCE 5106
#define ZWLR_VIRTUAL_POINTER_V1_AXIS_STOP 6107
#define ZWLR_VIRTUAL_POINTER_V1_AXIS_DISCRETE 7108
#define ZWLR_VIRTUAL_POINTER_V1_DESTROY 8111
/**112
* @ingroup iface_zwlr_virtual_pointer_v1113
*/114
#define ZWLR_VIRTUAL_POINTER_V1_MOTION_SINCE_VERSION 1115
/**116
* @ingroup iface_zwlr_virtual_pointer_v1117
*/118
#define ZWLR_VIRTUAL_POINTER_V1_MOTION_ABSOLUTE_SINCE_VERSION 1119
/**120
* @ingroup iface_zwlr_virtual_pointer_v1121
*/122
#define ZWLR_VIRTUAL_POINTER_V1_BUTTON_SINCE_VERSION 1123
/**124
* @ingroup iface_zwlr_virtual_pointer_v1125
*/126
#define ZWLR_VIRTUAL_POINTER_V1_AXIS_SINCE_VERSION 1127
/**128
* @ingroup iface_zwlr_virtual_pointer_v1129
*/130
#define ZWLR_VIRTUAL_POINTER_V1_FRAME_SINCE_VERSION 1131
/**132
* @ingroup iface_zwlr_virtual_pointer_v1133
*/134
#define ZWLR_VIRTUAL_POINTER_V1_AXIS_SOURCE_SINCE_VERSION 1135
/**136
* @ingroup iface_zwlr_virtual_pointer_v1137
*/138
#define ZWLR_VIRTUAL_POINTER_V1_AXIS_STOP_SINCE_VERSION 1139
/**140
* @ingroup iface_zwlr_virtual_pointer_v1141
*/142
#define ZWLR_VIRTUAL_POINTER_V1_AXIS_DISCRETE_SINCE_VERSION 1143
/**144
* @ingroup iface_zwlr_virtual_pointer_v1145
*/146
#define ZWLR_VIRTUAL_POINTER_V1_DESTROY_SINCE_VERSION 1148
/** @ingroup iface_zwlr_virtual_pointer_v1 */149
static inline void150
zwlr_virtual_pointer_v1_set_user_data(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1, void *user_data)151
{152
wl_proxy_set_user_data((struct wl_proxy *) zwlr_virtual_pointer_v1, user_data);153
}155
/** @ingroup iface_zwlr_virtual_pointer_v1 */156
static inline void *157
zwlr_virtual_pointer_v1_get_user_data(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1)158
{159
return wl_proxy_get_user_data((struct wl_proxy *) zwlr_virtual_pointer_v1);160
}162
static inline uint32_t163
zwlr_virtual_pointer_v1_get_version(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1)164
{165
return wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1);166
}168
/**169
* @ingroup iface_zwlr_virtual_pointer_v1170
*171
* The pointer has moved by a relative amount to the previous request.172
*173
* Values are in the global compositor space.174
*/175
static inline void176
zwlr_virtual_pointer_v1_motion(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1, uint32_t time, wl_fixed_t dx, wl_fixed_t dy)177
{178
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,179
ZWLR_VIRTUAL_POINTER_V1_MOTION, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), 0, time, dx, dy);180
}182
/**183
* @ingroup iface_zwlr_virtual_pointer_v1184
*185
* The pointer has moved in an absolute coordinate frame.186
*187
* Value of x can range from 0 to x_extent, value of y can range from 0188
* to y_extent.189
*/190
static inline void191
zwlr_virtual_pointer_v1_motion_absolute(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1, uint32_t time, uint32_t x, uint32_t y, uint32_t x_extent, uint32_t y_extent)192
{193
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,194
ZWLR_VIRTUAL_POINTER_V1_MOTION_ABSOLUTE, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), 0, time, x, y, x_extent, y_extent);195
}197
/**198
* @ingroup iface_zwlr_virtual_pointer_v1199
*200
* A button was pressed or released.201
*/202
static inline void203
zwlr_virtual_pointer_v1_button(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1, uint32_t time, uint32_t button, uint32_t state)204
{205
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,206
ZWLR_VIRTUAL_POINTER_V1_BUTTON, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), 0, time, button, state);207
}209
/**210
* @ingroup iface_zwlr_virtual_pointer_v1211
*212
* Scroll and other axis requests.213
*/214
static inline void215
zwlr_virtual_pointer_v1_axis(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1, uint32_t time, uint32_t axis, wl_fixed_t value)216
{217
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,218
ZWLR_VIRTUAL_POINTER_V1_AXIS, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), 0, time, axis, value);219
}221
/**222
* @ingroup iface_zwlr_virtual_pointer_v1223
*224
* Indicates the set of events that logically belong together.225
*/226
static inline void227
zwlr_virtual_pointer_v1_frame(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1)228
{229
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,230
ZWLR_VIRTUAL_POINTER_V1_FRAME, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), 0);231
}233
/**234
* @ingroup iface_zwlr_virtual_pointer_v1235
*236
* Source information for scroll and other axis.237
*/238
static inline void239
zwlr_virtual_pointer_v1_axis_source(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1, uint32_t axis_source)240
{241
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,242
ZWLR_VIRTUAL_POINTER_V1_AXIS_SOURCE, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), 0, axis_source);243
}245
/**246
* @ingroup iface_zwlr_virtual_pointer_v1247
*248
* Stop notification for scroll and other axes.249
*/250
static inline void251
zwlr_virtual_pointer_v1_axis_stop(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1, uint32_t time, uint32_t axis)252
{253
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,254
ZWLR_VIRTUAL_POINTER_V1_AXIS_STOP, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), 0, time, axis);255
}257
/**258
* @ingroup iface_zwlr_virtual_pointer_v1259
*260
* Discrete step information for scroll and other axes.261
*262
* This event allows the client to extend data normally sent using the axis263
* event with discrete value.264
*/265
static inline void266
zwlr_virtual_pointer_v1_axis_discrete(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1, uint32_t time, uint32_t axis, wl_fixed_t value, int32_t discrete)267
{268
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,269
ZWLR_VIRTUAL_POINTER_V1_AXIS_DISCRETE, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), 0, time, axis, value, discrete);270
}272
/**273
* @ingroup iface_zwlr_virtual_pointer_v1274
*/275
static inline void276
zwlr_virtual_pointer_v1_destroy(struct zwlr_virtual_pointer_v1 *zwlr_virtual_pointer_v1)277
{278
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_v1,279
ZWLR_VIRTUAL_POINTER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_v1), WL_MARSHAL_FLAG_DESTROY);280
}282
#define ZWLR_VIRTUAL_POINTER_MANAGER_V1_CREATE_VIRTUAL_POINTER 0283
#define ZWLR_VIRTUAL_POINTER_MANAGER_V1_DESTROY 1284
#define ZWLR_VIRTUAL_POINTER_MANAGER_V1_CREATE_VIRTUAL_POINTER_WITH_OUTPUT 2287
/**288
* @ingroup iface_zwlr_virtual_pointer_manager_v1289
*/290
#define ZWLR_VIRTUAL_POINTER_MANAGER_V1_CREATE_VIRTUAL_POINTER_SINCE_VERSION 1291
/**292
* @ingroup iface_zwlr_virtual_pointer_manager_v1293
*/294
#define ZWLR_VIRTUAL_POINTER_MANAGER_V1_DESTROY_SINCE_VERSION 1295
/**296
* @ingroup iface_zwlr_virtual_pointer_manager_v1297
*/298
#define ZWLR_VIRTUAL_POINTER_MANAGER_V1_CREATE_VIRTUAL_POINTER_WITH_OUTPUT_SINCE_VERSION 2300
/** @ingroup iface_zwlr_virtual_pointer_manager_v1 */301
static inline void302
zwlr_virtual_pointer_manager_v1_set_user_data(struct zwlr_virtual_pointer_manager_v1 *zwlr_virtual_pointer_manager_v1, void *user_data)303
{304
wl_proxy_set_user_data((struct wl_proxy *) zwlr_virtual_pointer_manager_v1, user_data);305
}307
/** @ingroup iface_zwlr_virtual_pointer_manager_v1 */308
static inline void *309
zwlr_virtual_pointer_manager_v1_get_user_data(struct zwlr_virtual_pointer_manager_v1 *zwlr_virtual_pointer_manager_v1)310
{311
return wl_proxy_get_user_data((struct wl_proxy *) zwlr_virtual_pointer_manager_v1);312
}314
static inline uint32_t315
zwlr_virtual_pointer_manager_v1_get_version(struct zwlr_virtual_pointer_manager_v1 *zwlr_virtual_pointer_manager_v1)316
{317
return wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_manager_v1);318
}320
/**321
* @ingroup iface_zwlr_virtual_pointer_manager_v1322
*323
* Creates a new virtual pointer. The optional seat is a suggestion to the324
* compositor.325
*/326
static inline struct zwlr_virtual_pointer_v1 *327
zwlr_virtual_pointer_manager_v1_create_virtual_pointer(struct zwlr_virtual_pointer_manager_v1 *zwlr_virtual_pointer_manager_v1, struct wl_seat *seat)328
{329
struct wl_proxy *id;331
id = wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_manager_v1,332
ZWLR_VIRTUAL_POINTER_MANAGER_V1_CREATE_VIRTUAL_POINTER, &zwlr_virtual_pointer_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_manager_v1), 0, seat, NULL);334
return (struct zwlr_virtual_pointer_v1 *) id;335
}337
/**338
* @ingroup iface_zwlr_virtual_pointer_manager_v1339
*/340
static inline void341
zwlr_virtual_pointer_manager_v1_destroy(struct zwlr_virtual_pointer_manager_v1 *zwlr_virtual_pointer_manager_v1)342
{343
wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_manager_v1,344
ZWLR_VIRTUAL_POINTER_MANAGER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_manager_v1), WL_MARSHAL_FLAG_DESTROY);345
}347
/**348
* @ingroup iface_zwlr_virtual_pointer_manager_v1349
*350
* Creates a new virtual pointer. The seat and the output arguments are351
* optional. If the seat argument is set, the compositor should assign the352
* input device to the requested seat. If the output argument is set, the353
* compositor should map the input device to the requested output.354
*/355
static inline struct zwlr_virtual_pointer_v1 *356
zwlr_virtual_pointer_manager_v1_create_virtual_pointer_with_output(struct zwlr_virtual_pointer_manager_v1 *zwlr_virtual_pointer_manager_v1, struct wl_seat *seat, struct wl_output *output)357
{358
struct wl_proxy *id;360
id = wl_proxy_marshal_flags((struct wl_proxy *) zwlr_virtual_pointer_manager_v1,361
ZWLR_VIRTUAL_POINTER_MANAGER_V1_CREATE_VIRTUAL_POINTER_WITH_OUTPUT, &zwlr_virtual_pointer_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwlr_virtual_pointer_manager_v1), 0, seat, output, NULL);363
return (struct zwlr_virtual_pointer_v1 *) id;364
}366
#ifdef __cplusplus367
}368
#endif370
#endif