Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkwaylandtoplevel.h
Go to the documentation of this file.
1/* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2013 Jan Arne Petersen
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GDKWAYLAND_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gdk/wayland/gdkwayland.h> can be included directly."
22#endif
23
24#include <gdk/gdk.h>
26
27#include <wayland-client.h>
28
30
31#ifdef GTK_COMPILATION
32typedef struct _GdkWaylandToplevel GdkWaylandToplevel;
33#else
34typedef GdkToplevel GdkWaylandToplevel;
35#endif
36
37#define GDK_TYPE_WAYLAND_TOPLEVEL (gdk_wayland_toplevel_get_type())
38#define GDK_WAYLAND_TOPLEVEL(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WAYLAND_TOPLEVEL, GdkWaylandToplevel))
39#define GDK_IS_WAYLAND_TOPLEVEL(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WAYLAND_TOPLEVEL))
40
43
44
45typedef void (*GdkWaylandToplevelExported) (GdkToplevel *toplevel,
46 const char *handle,
47 gpointer user_data);
48
52 gpointer user_data,
53 GDestroyNotify destroy_func);
54
56void gdk_wayland_toplevel_unexport_handle (GdkToplevel *toplevel);
57
60 const char *handle);
61
64 const char *parent_handle_str);
65
67void gdk_wayland_toplevel_set_application_id (GdkToplevel *toplevel,
68 const char *application_id);
69
#define GDK_AVAILABLE_IN_4_12
#define GDK_DEPRECATED_IN_4_12_FOR(f)
#define GDK_AVAILABLE_IN_ALL
void(* GdkWaylandToplevelExported)(GdkToplevel *toplevel, const char *handle, gpointer user_data)
GDK_AVAILABLE_IN_ALL GType gdk_wayland_toplevel_get_type(void)
void gdk_wayland_toplevel_unexport_handle(GdkToplevel *toplevel)
GDK_AVAILABLE_IN_ALL void gdk_wayland_toplevel_set_application_id(GdkToplevel *toplevel, const char *application_id)
GDK_AVAILABLE_IN_ALL gboolean gdk_wayland_toplevel_set_transient_for_exported(GdkToplevel *toplevel, const char *parent_handle_str)
G_BEGIN_DECLS typedef GdkToplevel GdkWaylandToplevel
GDK_AVAILABLE_IN_ALL gboolean gdk_wayland_toplevel_export_handle(GdkToplevel *toplevel, GdkWaylandToplevelExported callback, gpointer user_data, GDestroyNotify destroy_func)
GDK_AVAILABLE_IN_4_12 void gdk_wayland_toplevel_drop_exported_handle(GdkToplevel *toplevel, const char *handle)
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
void(* GDestroyNotify)(gpointer data)
Definition gtypes.h:140