mirror of https://github.com/snes9xgit/snes9x.git
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
/*****************************************************************************\
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
This file is licensed under the Snes9x License.
|
|
For further information, consult the LICENSE file in the root directory.
|
|
\*****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "gtk_compat.h"
|
|
|
|
class WaylandSurface
|
|
{
|
|
public:
|
|
WaylandSurface();
|
|
~WaylandSurface();
|
|
bool attach(GtkWidget *widget);
|
|
void resize();
|
|
|
|
GdkWindow *gdk_window;
|
|
|
|
struct wl_display *display;
|
|
struct wl_registry *registry;
|
|
struct wl_compositor *compositor;
|
|
struct wl_subcompositor *subcompositor;
|
|
|
|
struct wl_surface *parent;
|
|
struct wl_surface *child;
|
|
struct wl_subsurface *subsurface;
|
|
struct wl_region *region;
|
|
|
|
int x;
|
|
int y;
|
|
int width;
|
|
int height;
|
|
|
|
struct zwp_idle_inhibit_manager_v1 *idle_inhibit_manager;
|
|
struct zwp_idle_inhibitor_v1 *idle_inhibitor;
|
|
};
|