2013-01-23 21:20:05 +00:00
|
|
|
/* GDK - The GIMP Drawing Kit
|
|
|
|
* Copyright (C) 2013 Jan Arne Petersen
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2018-03-20 10:40:08 +00:00
|
|
|
#ifndef __GDK_WAYLAND_SURFACE_H__
|
|
|
|
#define __GDK_WAYLAND_SURFACE_H__
|
2013-01-23 21:20:05 +00:00
|
|
|
|
2019-11-27 13:33:43 +00:00
|
|
|
#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2019-11-18 08:31:38 +00:00
|
|
|
#error "Only <gdk/wayland/gdkwayland.h> can be included directly."
|
2013-01-23 21:20:05 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
|
|
|
|
#include <wayland-client.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2019-11-27 13:33:43 +00:00
|
|
|
#ifdef GTK_COMPILATION
|
2018-03-20 10:40:08 +00:00
|
|
|
typedef struct _GdkWaylandSurface GdkWaylandSurface;
|
2020-09-19 17:05:57 +00:00
|
|
|
typedef struct _GdkWaylandToplevel GdkWaylandToplevel;
|
|
|
|
typedef struct _GdkWaylandPopup GdkWaylandPopup;
|
2013-01-23 21:20:05 +00:00
|
|
|
#else
|
2018-03-20 10:40:08 +00:00
|
|
|
typedef GdkSurface GdkWaylandSurface;
|
2020-09-19 17:05:57 +00:00
|
|
|
typedef GdkToplevel GdkWaylandToplevel;
|
|
|
|
typedef GdkPopup GdkWaylandPopup;
|
2013-01-23 21:20:05 +00:00
|
|
|
#endif
|
|
|
|
|
2018-03-20 10:40:08 +00:00
|
|
|
#define GDK_TYPE_WAYLAND_SURFACE (gdk_wayland_surface_get_type())
|
|
|
|
#define GDK_WAYLAND_SURFACE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WAYLAND_SURFACE, GdkWaylandSurface))
|
|
|
|
#define GDK_IS_WAYLAND_SURFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WAYLAND_SURFACE))
|
2020-09-19 17:05:57 +00:00
|
|
|
|
|
|
|
#define GDK_TYPE_WAYLAND_TOPLEVEL (gdk_wayland_toplevel_get_type())
|
|
|
|
#define GDK_WAYLAND_TOPLEVEL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WAYLAND_TOPLEVEL, GdkWaylandToplevel))
|
|
|
|
#define GDK_IS_WAYLAND_TOPLEVEL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WAYLAND_TOPLEVEL))
|
|
|
|
|
|
|
|
#define GDK_TYPE_WAYLAND_POPUP (gdk_wayland_popup_get_type())
|
|
|
|
#define GDK_WAYLAND_POPUP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WAYLAND_POPUP, GdkWaylandPopup))
|
|
|
|
#define GDK_IS_WAYLAND_POPUP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WAYLAND_POPUP))
|
2013-01-23 21:20:05 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 10:40:08 +00:00
|
|
|
GType gdk_wayland_surface_get_type (void);
|
2013-01-23 21:20:05 +00:00
|
|
|
|
2020-09-19 17:05:57 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gdk_wayland_toplevel_get_type (void);
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gdk_wayland_popup_get_type (void);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
struct wl_surface *gdk_wayland_surface_get_wl_surface (GdkSurface *surface);
|
2013-01-23 21:20:05 +00:00
|
|
|
|
2020-09-19 17:05:57 +00:00
|
|
|
typedef void (*GdkWaylandToplevelExported) (GdkToplevel *toplevel,
|
|
|
|
const char *handle,
|
|
|
|
gpointer user_data);
|
2016-07-12 03:49:39 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-09-19 17:05:57 +00:00
|
|
|
gboolean gdk_wayland_toplevel_export_handle (GdkToplevel *toplevel,
|
|
|
|
GdkWaylandToplevelExported callback,
|
|
|
|
gpointer user_data,
|
|
|
|
GDestroyNotify destroy_func);
|
2016-07-12 03:49:39 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-09-19 17:05:57 +00:00
|
|
|
void gdk_wayland_toplevel_unexport_handle (GdkToplevel *toplevel);
|
2013-08-30 11:56:45 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-09-19 17:05:57 +00:00
|
|
|
gboolean gdk_wayland_toplevel_set_transient_for_exported (GdkToplevel *toplevel,
|
|
|
|
const char *parent_handle_str);
|
2016-07-13 07:24:19 +00:00
|
|
|
|
2020-07-07 14:45:30 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-09-19 17:05:57 +00:00
|
|
|
void gdk_wayland_toplevel_set_application_id (GdkToplevel *toplevel,
|
|
|
|
const char *application_id);
|
2020-07-07 14:45:30 +00:00
|
|
|
|
2013-01-23 21:20:05 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2018-03-20 10:40:08 +00:00
|
|
|
#endif /* __GDK_WAYLAND_SURFACE_H__ */
|