]> Pileus Git - ~andy/gtk/blob - gdk/gdkdisplaymanagerprivate.h
stylecontext: Do invalidation on first resize container
[~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, 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
23 G_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
29 typedef struct _GdkDisplayManagerClass GdkDisplayManagerClass;
30
31 struct _GdkDisplayManager
32 {
33   GObject parent_instance;
34 };
35
36 struct _GdkDisplayManagerClass
37 {
38   GObjectClass parent_class;
39
40   GSList *     (*list_displays)       (GdkDisplayManager *manager);
41   GdkDisplay * (*get_default_display) (GdkDisplayManager *manager);
42   void         (*set_default_display) (GdkDisplayManager *manager,
43                                        GdkDisplay        *display);
44   GdkDisplay * (*open_display)        (GdkDisplayManager *manager,
45                                        const gchar       *name);
46
47   /* FIXME the following should really be frontend-only, not vfuncs */
48   GdkAtom      (*atom_intern)         (GdkDisplayManager *manager,
49                                        const gchar       *atom_name,
50                                        gboolean           copy_name);
51   gchar *      (*get_atom_name)       (GdkDisplayManager *manager,
52                                        GdkAtom            atom);
53   guint        (*lookup_keyval)       (GdkDisplayManager *manager,
54                                        const gchar       *name);
55   gchar *      (*get_keyval_name)     (GdkDisplayManager *manager,
56                                        guint              keyval);
57   void         (*keyval_convert_case) (GdkDisplayManager *manager,
58                                        guint              keyval,
59                                        guint             *lower,
60                                        guint             *upper);
61
62   /* signals */
63   void         (*display_opened)      (GdkDisplayManager *manager,
64                                        GdkDisplay        *display);
65 };
66
67 G_END_DECLS
68
69 #endif