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, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __GDK_DISPLAY_MANAGER_PRIVATE_H__
21 #define __GDK_DISPLAY_MANAGER_PRIVATE_H__
23 #include "gdkdisplaymanager.h"
27 #define GDK_DISPLAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManagerClass))
28 #define GDK_IS_DISPLAY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DISPLAY_MANAGER))
29 #define GDK_DISPLAY_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DISPLAY_MANAGER, GdkDisplayManagerClass))
31 typedef struct _GdkDisplayManagerClass GdkDisplayManagerClass;
33 struct _GdkDisplayManager
35 GObject parent_instance;
38 struct _GdkDisplayManagerClass
40 GObjectClass parent_class;
42 GSList * (*list_displays) (GdkDisplayManager *manager);
43 GdkDisplay * (*get_default_display) (GdkDisplayManager *manager);
44 void (*set_default_display) (GdkDisplayManager *manager,
46 GdkDisplay * (*open_display) (GdkDisplayManager *manager,
49 /* FIXME the following should really be frontend-only, not vfuncs */
50 GdkAtom (*atom_intern) (GdkDisplayManager *manager,
51 const gchar *atom_name,
53 gchar * (*get_atom_name) (GdkDisplayManager *manager,
55 guint (*lookup_keyval) (GdkDisplayManager *manager,
57 gchar * (*get_keyval_name) (GdkDisplayManager *manager,
59 void (*keyval_convert_case) (GdkDisplayManager *manager,
65 void (*display_opened) (GdkDisplayManager *manager,