1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2010, Red Hat, Inc
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.
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.
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/>.
18 #ifndef __GDK_DISPLAY_MANAGER_PRIVATE_H__
19 #define __GDK_DISPLAY_MANAGER_PRIVATE_H__
21 #include "gdkdisplaymanager.h"
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))
29 typedef struct _GdkDisplayManagerClass GdkDisplayManagerClass;
31 struct _GdkDisplayManager
33 GObject parent_instance;
36 struct _GdkDisplayManagerClass
38 GObjectClass parent_class;
40 GSList * (*list_displays) (GdkDisplayManager *manager);
41 GdkDisplay * (*get_default_display) (GdkDisplayManager *manager);
42 void (*set_default_display) (GdkDisplayManager *manager,
44 GdkDisplay * (*open_display) (GdkDisplayManager *manager,
47 /* FIXME the following should really be frontend-only, not vfuncs */
48 GdkAtom (*atom_intern) (GdkDisplayManager *manager,
49 const gchar *atom_name,
51 gchar * (*get_atom_name) (GdkDisplayManager *manager,
53 guint (*lookup_keyval) (GdkDisplayManager *manager,
55 gchar * (*get_keyval_name) (GdkDisplayManager *manager,
57 void (*keyval_convert_case) (GdkDisplayManager *manager,
63 void (*display_opened) (GdkDisplayManager *manager,