SDL 2.0
xdg-shell-protocol.c
Go to the documentation of this file.
1/* Generated by wayland-scanner 1.20.0 */
2
3/*
4 * Copyright © 2008-2013 Kristian Høgsberg
5 * Copyright © 2013 Rafael Antognolli
6 * Copyright © 2013 Jasper St. Pierre
7 * Copyright © 2010-2013 Intel Corporation
8 * Copyright © 2015-2017 Samsung Electronics Co., Ltd
9 * Copyright © 2015-2017 Red Hat Inc.
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice (including the next
19 * paragraph) shall be included in all copies or substantial portions of the
20 * Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28 * DEALINGS IN THE SOFTWARE.
29 */
30
31#include <stdlib.h>
32#include <stdint.h>
33#include "wayland-util.h"
34
35extern const struct wl_interface wl_output_interface;
36extern const struct wl_interface wl_seat_interface;
37extern const struct wl_interface wl_surface_interface;
38extern const struct wl_interface xdg_popup_interface;
39extern const struct wl_interface xdg_positioner_interface;
40extern const struct wl_interface xdg_surface_interface;
41extern const struct wl_interface xdg_toplevel_interface;
42
43static const struct wl_interface *xdg_shell_types[] = {
44 NULL,
45 NULL,
46 NULL,
47 NULL,
57 NULL,
58 NULL,
59 NULL,
61 NULL,
63 NULL,
64 NULL,
67 NULL,
68};
69
70static const struct wl_message xdg_wm_base_requests[] = {
71 { "destroy", "", xdg_shell_types + 0 },
72 { "create_positioner", "n", xdg_shell_types + 4 },
73 { "get_xdg_surface", "no", xdg_shell_types + 5 },
74 { "pong", "u", xdg_shell_types + 0 },
75};
76
77static const struct wl_message xdg_wm_base_events[] = {
78 { "ping", "u", xdg_shell_types + 0 },
79};
80
81WL_EXPORT const struct wl_interface xdg_wm_base_interface = {
82 "xdg_wm_base", 1,
85};
86
87static const struct wl_message xdg_positioner_requests[] = {
88 { "destroy", "", xdg_shell_types + 0 },
89 { "set_size", "ii", xdg_shell_types + 0 },
90 { "set_anchor_rect", "iiii", xdg_shell_types + 0 },
91 { "set_anchor", "u", xdg_shell_types + 0 },
92 { "set_gravity", "u", xdg_shell_types + 0 },
93 { "set_constraint_adjustment", "u", xdg_shell_types + 0 },
94 { "set_offset", "ii", xdg_shell_types + 0 },
95};
96
97WL_EXPORT const struct wl_interface xdg_positioner_interface = {
98 "xdg_positioner", 1,
100 0, NULL,
101};
102
103static const struct wl_message xdg_surface_requests[] = {
104 { "destroy", "", xdg_shell_types + 0 },
105 { "get_toplevel", "n", xdg_shell_types + 7 },
106 { "get_popup", "n?oo", xdg_shell_types + 8 },
107 { "set_window_geometry", "iiii", xdg_shell_types + 0 },
108 { "ack_configure", "u", xdg_shell_types + 0 },
109};
110
111static const struct wl_message xdg_surface_events[] = {
112 { "configure", "u", xdg_shell_types + 0 },
113};
114
115WL_EXPORT const struct wl_interface xdg_surface_interface = {
116 "xdg_surface", 1,
119};
120
121static const struct wl_message xdg_toplevel_requests[] = {
122 { "destroy", "", xdg_shell_types + 0 },
123 { "set_parent", "?o", xdg_shell_types + 11 },
124 { "set_title", "s", xdg_shell_types + 0 },
125 { "set_app_id", "s", xdg_shell_types + 0 },
126 { "show_window_menu", "ouii", xdg_shell_types + 12 },
127 { "move", "ou", xdg_shell_types + 16 },
128 { "resize", "ouu", xdg_shell_types + 18 },
129 { "set_max_size", "ii", xdg_shell_types + 0 },
130 { "set_min_size", "ii", xdg_shell_types + 0 },
131 { "set_maximized", "", xdg_shell_types + 0 },
132 { "unset_maximized", "", xdg_shell_types + 0 },
133 { "set_fullscreen", "?o", xdg_shell_types + 21 },
134 { "unset_fullscreen", "", xdg_shell_types + 0 },
135 { "set_minimized", "", xdg_shell_types + 0 },
136};
137
138static const struct wl_message xdg_toplevel_events[] = {
139 { "configure", "iia", xdg_shell_types + 0 },
140 { "close", "", xdg_shell_types + 0 },
141};
142
143WL_EXPORT const struct wl_interface xdg_toplevel_interface = {
144 "xdg_toplevel", 1,
147};
148
149static const struct wl_message xdg_popup_requests[] = {
150 { "destroy", "", xdg_shell_types + 0 },
151 { "grab", "ou", xdg_shell_types + 22 },
152};
153
154static const struct wl_message xdg_popup_events[] = {
155 { "configure", "iiii", xdg_shell_types + 0 },
156 { "popup_done", "", xdg_shell_types + 0 },
157};
158
159WL_EXPORT const struct wl_interface xdg_popup_interface = {
160 "xdg_popup", 1,
163};
164
#define NULL
Definition: begin_code.h:167
static const struct wl_message xdg_surface_events[]
const struct wl_interface xdg_positioner_interface
static const struct wl_message xdg_wm_base_events[]
const struct wl_interface xdg_toplevel_interface
static const struct wl_message xdg_popup_requests[]
static const struct wl_message xdg_toplevel_events[]
static const struct wl_message xdg_positioner_requests[]
static const struct wl_message xdg_surface_requests[]
WL_EXPORT const struct wl_interface xdg_wm_base_interface
const struct wl_interface xdg_popup_interface
const struct wl_interface wl_surface_interface
const struct wl_interface wl_seat_interface
static const struct wl_interface * xdg_shell_types[]
static const struct wl_message xdg_toplevel_requests[]
const struct wl_interface wl_output_interface
const struct wl_interface xdg_surface_interface
static const struct wl_message xdg_wm_base_requests[]
static const struct wl_message xdg_popup_events[]