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;
|
2013-01-23 21:20:05 +00:00
|
|
|
#else
|
2018-03-20 10:40:08 +00:00
|
|
|
typedef GdkSurface GdkWaylandSurface;
|
2013-01-23 21:20:05 +00:00
|
|
|
#endif
|
2018-03-20 10:40:08 +00:00
|
|
|
typedef struct _GdkWaylandSurfaceClass GdkWaylandSurfaceClass;
|
2013-01-23 21:20:05 +00:00
|
|
|
|
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_WAYLAND_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WAYLAND_SURFACE, GdkWaylandSurfaceClass))
|
|
|
|
#define GDK_IS_WAYLAND_SURFACE(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WAYLAND_SURFACE))
|
|
|
|
#define GDK_IS_WAYLAND_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WAYLAND_SURFACE))
|
|
|
|
#define GDK_WAYLAND_SURFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WAYLAND_SURFACE, GdkWaylandSurfaceClass))
|
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
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 10:40:08 +00:00
|
|
|
GdkSurface * gdk_wayland_surface_new_subsurface (GdkDisplay *display,
|
2018-03-21 08:06:31 +00:00
|
|
|
const GdkRectangle *position);
|
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
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
void gdk_wayland_surface_set_dbus_properties_libgtk_only (GdkSurface *surface,
|
2018-03-21 08:06:31 +00:00
|
|
|
const char *application_id,
|
|
|
|
const char *app_menu_path,
|
|
|
|
const char *menubar_path,
|
|
|
|
const char *window_object_path,
|
|
|
|
const char *application_object_path,
|
|
|
|
const char *unique_bus_name);
|
2016-05-17 13:02:01 +00:00
|
|
|
|
2018-03-20 14:14:10 +00:00
|
|
|
typedef void (*GdkWaylandSurfaceExported) (GdkSurface *surface,
|
2016-07-12 03:49:39 +00:00
|
|
|
const char *handle,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
gboolean gdk_wayland_surface_export_handle (GdkSurface *surface,
|
2018-03-21 08:06:31 +00:00
|
|
|
GdkWaylandSurfaceExported 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
|
2018-03-20 14:14:10 +00:00
|
|
|
void gdk_wayland_surface_unexport_handle (GdkSurface *surface);
|
2013-08-30 11:56:45 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-03-20 14:14:10 +00:00
|
|
|
gboolean gdk_wayland_surface_set_transient_for_exported (GdkSurface *surface,
|
2018-03-21 08:06:31 +00:00
|
|
|
char *parent_handle_str);
|
2016-07-13 07:24:19 +00:00
|
|
|
|
2018-03-20 14:14:10 +00:00
|
|
|
void gdk_wayland_surface_announce_csd (GdkSurface *surface);
|
2017-04-29 00:35:51 +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__ */
|