Debian Codegraph @

wayland/qtwayland-dev/5.11.3/QtWaylandClient/private/wayland-qt-windowmanager-client-protocol.h

raw symbols SCIP
1 /* Generated by wayland-scanner 1.16.0 */
2
3 #ifndef QT_WINDOWMANAGER_CLIENT_PROTOCOL_H
4 #define QT_WINDOWMANAGER_CLIENT_PROTOCOL_H
5
6 #include <stdint.h>
7 #include <stddef.h>
8 #include "wayland-client.h"
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 /**
15 * @page page_qt_windowmanager The qt_windowmanager protocol
16 * @section page_ifaces_qt_windowmanager Interfaces
17 * - @subpage page_iface_qt_windowmanager -
18 * @section page_copyright_qt_windowmanager Copyright
19 * <pre>
20 *
21 * Copyright (C) 2015 The Qt Company Ltd.
22 * Contact: http://www.qt.io/licensing/
23 *
24 * This file is part of the plugins of the Qt Toolkit.
25 *
26 * $QT_BEGIN_LICENSE:BSD$
27 * You may use this file under the terms of the BSD license as follows:
28 *
29 * "Redistribution and use in source and binary forms, with or without
30 * modification, are permitted provided that the following conditions are
31 * met:
32 * * Redistributions of source code must retain the above copyright
33 * notice, this list of conditions and the following disclaimer.
34 * * Redistributions in binary form must reproduce the above copyright
35 * notice, this list of conditions and the following disclaimer in
36 * the documentation and/or other materials provided with the
37 * distribution.
38 * * Neither the name of The Qt Company Ltd nor the names of its
39 * contributors may be used to endorse or promote products derived
40 * from this software without specific prior written permission.
41 *
42 *
43 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
44 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
45 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
46 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
47 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
49 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
50 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
51 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
52 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
54 *
55 * $QT_END_LICENSE$
56 * </pre>
57 */
58 struct qt_windowmanager;
59
60 /**
61 * @page page_iface_qt_windowmanager qt_windowmanager
62 * @section page_iface_qt_windowmanager_api API
63 * See @ref iface_qt_windowmanager.
64 */
65 /**
66 * @defgroup iface_qt_windowmanager The qt_windowmanager interface
67 */
68 extern const struct wl_interface qt_windowmanager_interface;
69
70 /**
71 * @ingroup iface_qt_windowmanager
72 * @struct qt_windowmanager_listener
73 */
74 struct qt_windowmanager_listener {
75 /**
76 */
77 void (*hints)(void *data,
78 struct qt_windowmanager *qt_windowmanager,
79 int32_t show_is_fullscreen);
80 /**
81 */
82 void (*quit)(void *data,
83 struct qt_windowmanager *qt_windowmanager);
84 };
85
86 /**
87 * @ingroup iface_qt_windowmanager
88 */
89 static inline int
90 qt_windowmanager_add_listener(struct qt_windowmanager *qt_windowmanager,
91 const struct qt_windowmanager_listener *listener, void *data)
92 {
93 return wl_proxy_add_listener((struct wl_proxy *) qt_windowmanager,
94 (void (**)(void)) listener, data);
95 }
96
97 #define QT_WINDOWMANAGER_OPEN_URL 0
98
99 /**
100 * @ingroup iface_qt_windowmanager
101 */
102 #define QT_WINDOWMANAGER_HINTS_SINCE_VERSION 1
103 /**
104 * @ingroup iface_qt_windowmanager
105 */
106 #define QT_WINDOWMANAGER_QUIT_SINCE_VERSION 1
107
108 /**
109 * @ingroup iface_qt_windowmanager
110 */
111 #define QT_WINDOWMANAGER_OPEN_URL_SINCE_VERSION 1
112
113 /** @ingroup iface_qt_windowmanager */
114 static inline void
115 qt_windowmanager_set_user_data(struct qt_windowmanager *qt_windowmanager, void *user_data)
116 {
117 wl_proxy_set_user_data((struct wl_proxy *) qt_windowmanager, user_data);
118 }
119
120 /** @ingroup iface_qt_windowmanager */
121 static inline void *
122 qt_windowmanager_get_user_data(struct qt_windowmanager *qt_windowmanager)
123 {
124 return wl_proxy_get_user_data((struct wl_proxy *) qt_windowmanager);
125 }
126
127 static inline uint32_t
128 qt_windowmanager_get_version(struct qt_windowmanager *qt_windowmanager)
129 {
130 return wl_proxy_get_version((struct wl_proxy *) qt_windowmanager);
131 }
132
133 /** @ingroup iface_qt_windowmanager */
134 static inline void
135 qt_windowmanager_destroy(struct qt_windowmanager *qt_windowmanager)
136 {
137 wl_proxy_destroy((struct wl_proxy *) qt_windowmanager);
138 }
139
140 /**
141 * @ingroup iface_qt_windowmanager
142 *
143 * If remaining is not 0 this is a multipart request, and
144 * the server must concatenate subsequent requst urls to and
145 * including a request where remaining is set to 0, before
146 * it can handle the url.
147 */
148 static inline void
149 qt_windowmanager_open_url(struct qt_windowmanager *qt_windowmanager, uint32_t remaining, const char *url)
150 {
151 wl_proxy_marshal((struct wl_proxy *) qt_windowmanager,
152 QT_WINDOWMANAGER_OPEN_URL, remaining, url);
153 }
154
155 #ifdef __cplusplus
156 }
157 #endif
158
159 #endif