X11 backend: fix window behavior with multiple show() calls
[platform/upstream/libwlmessage.git] / toytoolkit / text-cursor-position-client-protocol.h
1 #ifndef TEXT_CURSOR_POSITION_CLIENT_PROTOCOL_H
2 #define TEXT_CURSOR_POSITION_CLIENT_PROTOCOL_H
3
4 #ifdef  __cplusplus
5 extern "C" {
6 #endif
7
8 #include <stdint.h>
9 #include <stddef.h>
10 #include "wayland-client.h"
11
12 struct wl_client;
13 struct wl_resource;
14
15 struct text_cursor_position;
16
17 extern const struct wl_interface text_cursor_position_interface;
18
19 #define TEXT_CURSOR_POSITION_NOTIFY     0
20
21 static inline void
22 text_cursor_position_set_user_data(struct text_cursor_position *text_cursor_position, void *user_data)
23 {
24         wl_proxy_set_user_data((struct wl_proxy *) text_cursor_position, user_data);
25 }
26
27 static inline void *
28 text_cursor_position_get_user_data(struct text_cursor_position *text_cursor_position)
29 {
30         return wl_proxy_get_user_data((struct wl_proxy *) text_cursor_position);
31 }
32
33 static inline void
34 text_cursor_position_destroy(struct text_cursor_position *text_cursor_position)
35 {
36         wl_proxy_destroy((struct wl_proxy *) text_cursor_position);
37 }
38
39 static inline void
40 text_cursor_position_notify(struct text_cursor_position *text_cursor_position, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y)
41 {
42         wl_proxy_marshal((struct wl_proxy *) text_cursor_position,
43                          TEXT_CURSOR_POSITION_NOTIFY, surface, x, y);
44 }
45
46 #ifdef  __cplusplus
47 }
48 #endif
49
50 #endif