]> Pileus Git - ~andy/gtk/blob - gdk/gdkdisplaymanagerprivate.h
Add vfuncs for keyval and window property functions
[~andy/gtk] / gdk / gdkdisplaymanagerprivate.h
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, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GDK_DISPLAY_MANAGER_PRIVATE_H__
21 #define __GDK_DISPLAY_MANAGER_PRIVATE_H__
22
23 #include "gdkdisplaymanager.h"
24
25 G_BEGIN_DECLS
26
27 struct _GdkDisplayManager
28 {
29   GObject parent_instance;
30 };
31
32 struct _GdkDisplayManagerClass
33 {
34   GObjectClass parent_class;
35
36   GSList *     (*list_displays)       (GdkDisplayManager *manager);
37   GdkDisplay * (*get_default_display) (GdkDisplayManager *manager);
38   void         (*set_default_display) (GdkDisplayManager *manager,
39                                        GdkDisplay        *display);
40   GdkDisplay * (*open_display)        (GdkDisplayManager *manager,
41                                        const gchar       *name);
42
43   /* FIXME the following should really be frontend-only, not vfuncs */
44   GdkAtom      (*atom_intern)         (GdkDisplayManager *manager,
45                                        const gchar       *atom_name,
46                                        gboolean           copy_name);
47   gchar *      (*get_atom_name)       (GdkDisplayManager *manager,
48                                        GdkAtom            atom);
49   guint        (*lookup_keyval)       (GdkDisplayManager *manager,
50                                        const gchar       *name);
51   gchar *      (*get_keyval_name)     (GdkDisplayManager *manager,
52                                        guint              keyval);
53   void         (*keyval_convert_case) (GdkDisplayManager *manager,
54                                        guint              keyval,
55                                        guint             *lower,
56                                        guint             *upper);
57
58   /* signals */
59   void         (*display_opened)      (GdkDisplayManager *manager,
60                                        GdkDisplay        *display);
61 };
62
63 G_END_DECLS
64
65 #endif