1/* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2010, 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 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#ifndef __GDK_DISPLAY_MANAGER_PRIVATE_H__
19#define __GDK_DISPLAY_MANAGER_PRIVATE_H__
20
21#include "gdkdisplaymanager.h"
22
23G_BEGIN_DECLS
24
25#define GDK_DISPLAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManagerClass))
26#define GDK_IS_DISPLAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DISPLAY_MANAGER))
27#define GDK_DISPLAY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManagerClass))
28
29typedef struct _GdkDisplayManagerClass GdkDisplayManagerClass;
30
31struct _GdkDisplayManager
32{
33 GObject parent_instance;
34
35 GdkDisplay *default_display;
36
37 GSList *displays;
38};
39
40struct _GdkDisplayManagerClass
41{
42 GObjectClass parent_class;
43
44 /* signals */
45 void (*display_opened) (GdkDisplayManager *manager,
46 GdkDisplay *display);
47};
48
49void _gdk_display_manager_add_display (GdkDisplayManager *manager,
50 GdkDisplay *display);
51void _gdk_display_manager_remove_display (GdkDisplayManager *manager,
52 GdkDisplay *display);
53
54G_END_DECLS
55
56#endif
57

source code of gtk/gdk/gdkdisplaymanagerprivate.h