text-cursor-position-client-protocol.h
2.18 KB
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
/* Generated by wayland-scanner 1.19.0 */
#ifndef TEXT_CURSOR_POSITION_CLIENT_PROTOCOL_H
#define TEXT_CURSOR_POSITION_CLIENT_PROTOCOL_H
#include <stdint.h>
#include <stddef.h>
#include "wayland-client.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @page page_text_cursor_position The text_cursor_position protocol
* @section page_ifaces_text_cursor_position Interfaces
* - @subpage page_iface_text_cursor_position -
*/
struct text_cursor_position;
struct wl_surface;
#ifndef TEXT_CURSOR_POSITION_INTERFACE
#define TEXT_CURSOR_POSITION_INTERFACE
/**
* @page page_iface_text_cursor_position text_cursor_position
* @section page_iface_text_cursor_position_api API
* See @ref iface_text_cursor_position.
*/
/**
* @defgroup iface_text_cursor_position The text_cursor_position interface
*/
extern const struct wl_interface text_cursor_position_interface;
#endif
#define TEXT_CURSOR_POSITION_NOTIFY 0
/**
* @ingroup iface_text_cursor_position
*/
#define TEXT_CURSOR_POSITION_NOTIFY_SINCE_VERSION 1
/** @ingroup iface_text_cursor_position */
static inline void
text_cursor_position_set_user_data(struct text_cursor_position *text_cursor_position, void *user_data)
{
wl_proxy_set_user_data((struct wl_proxy *) text_cursor_position, user_data);
}
/** @ingroup iface_text_cursor_position */
static inline void *
text_cursor_position_get_user_data(struct text_cursor_position *text_cursor_position)
{
return wl_proxy_get_user_data((struct wl_proxy *) text_cursor_position);
}
static inline uint32_t
text_cursor_position_get_version(struct text_cursor_position *text_cursor_position)
{
return wl_proxy_get_version((struct wl_proxy *) text_cursor_position);
}
/** @ingroup iface_text_cursor_position */
static inline void
text_cursor_position_destroy(struct text_cursor_position *text_cursor_position)
{
wl_proxy_destroy((struct wl_proxy *) text_cursor_position);
}
/**
* @ingroup iface_text_cursor_position
*/
static inline void
text_cursor_position_notify(struct text_cursor_position *text_cursor_position, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y)
{
wl_proxy_marshal((struct wl_proxy *) text_cursor_position,
TEXT_CURSOR_POSITION_NOTIFY, surface, x, y);
}
#ifdef __cplusplus
}
#endif
#endif