1/*
2 * Copyright © 2016 Red Hat, Inc
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library 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 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __GDK_WAYLAND_MONITOR_PRIVATE_H__
19#define __GDK_WAYLAND_MONITOR_PRIVATE_H__
20
21#include <glib.h>
22#include "gdkwaylandmonitor.h"
23#include "gdkmonitorprivate.h"
24#include "gdkprivate-wayland.h"
25
26struct _GdkWaylandMonitor {
27 GdkMonitor parent;
28
29 guint32 id;
30 guint32 version;
31 struct wl_output *output;
32 gboolean added;
33
34 struct zxdg_output_v1 *xdg_output;
35 /* Size and position, can be either from wl_output or xdg_output */
36 int32_t x;
37 int32_t y;
38 int32_t width;
39 int32_t height;
40 char *name;
41 gboolean wl_output_done;
42 gboolean xdg_output_done;
43};
44
45struct _GdkWaylandMonitorClass {
46 GdkMonitorClass parent_class;
47};
48
49#endif
50

source code of gtk/gdk/wayland/gdkmonitor-wayland.h