1/*
2 * gdkx11monitor.h
3 *
4 * Copyright 2016 Red Hat, Inc.
5 *
6 * Matthias Clasen <mclasen@redhat.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef __GDK_X11_MONITOR_H__
23#define __GDK_X11_MONITOR_H__
24
25#if !defined (__GDKX_H_INSIDE__) && !defined (GTK_COMPILATION)
26#error "Only <gdk/x11/gdkx.h> can be included directly."
27#endif
28
29#include <gdk/gdkmonitor.h>
30
31G_BEGIN_DECLS
32
33#define GDK_TYPE_X11_MONITOR (gdk_x11_monitor_get_type ())
34#define GDK_X11_MONITOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_X11_MONITOR, GdkX11Monitor))
35#define GDK_IS_X11_MONITOR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_X11_MONITOR))
36
37typedef struct _GdkX11Monitor GdkX11Monitor;
38typedef struct _GdkX11MonitorClass GdkX11MonitorClass;
39
40GDK_AVAILABLE_IN_ALL
41GType gdk_x11_monitor_get_type (void) G_GNUC_CONST;
42
43GDK_AVAILABLE_IN_ALL
44XID gdk_x11_monitor_get_output (GdkMonitor *monitor);
45
46GDK_AVAILABLE_IN_ALL
47void gdk_x11_monitor_get_workarea (GdkMonitor *monitor,
48 GdkRectangle *workarea);
49
50G_END_DECLS
51
52#endif /* __GDK_X11_MONITOR_H__ */
53

source code of gtk/gdk/x11/gdkx11monitor.h