mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +01:00
56f37ed42b
Closes #2695
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-FileCopyrightText: 2013-2016 Collabora, Ltd.
|
|
// SPDX-FileCopyrightText: 2023 The Ebitengine Authors
|
|
|
|
//go:build (freebsd || linux || netbsd || openbsd) && wayland
|
|
|
|
// Generated by wayland-scanner 1.18.0
|
|
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include "wayland-util.h"
|
|
|
|
#ifndef __has_attribute
|
|
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
|
#endif
|
|
|
|
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
|
|
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
|
|
#else
|
|
#define WL_PRIVATE
|
|
#endif
|
|
|
|
extern const struct wl_interface wl_surface_interface;
|
|
extern const struct wl_interface wp_viewport_interface;
|
|
|
|
static const struct wl_interface *viewporter_types[] = {
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
&wp_viewport_interface,
|
|
&wl_surface_interface,
|
|
};
|
|
|
|
static const struct wl_message wp_viewporter_requests[] = {
|
|
{ "destroy", "", viewporter_types + 0 },
|
|
{ "get_viewport", "no", viewporter_types + 4 },
|
|
};
|
|
|
|
WL_PRIVATE const struct wl_interface wp_viewporter_interface = {
|
|
"wp_viewporter", 1,
|
|
2, wp_viewporter_requests,
|
|
0, NULL,
|
|
};
|
|
|
|
static const struct wl_message wp_viewport_requests[] = {
|
|
{ "destroy", "", viewporter_types + 0 },
|
|
{ "set_source", "ffff", viewporter_types + 0 },
|
|
{ "set_destination", "ii", viewporter_types + 0 },
|
|
};
|
|
|
|
WL_PRIVATE const struct wl_interface wp_viewport_interface = {
|
|
"wp_viewport", 1,
|
|
3, wp_viewport_requests,
|
|
0, NULL,
|
|
};
|
|
|