1#ifndef __GDK__PRIVATE_H__
2#define __GDK__PRIVATE_H__
3
4#include <gdk/gdk.h>
5#include "gdk/gdkinternals.h"
6
7#define GDK_PRIVATE_CALL(symbol) (gdk__private__ ()->symbol)
8
9GdkDisplay * gdk_display_open_default (void);
10
11gboolean gdk_device_grab_info (GdkDisplay *display,
12 GdkDevice *device,
13 GdkWindow **grab_window,
14 gboolean *owner_events);
15
16void gdk_add_option_entries (GOptionGroup *group);
17
18void gdk_pre_parse (void);
19
20GdkGLFlags gdk_gl_get_flags (void);
21void gdk_gl_set_flags (GdkGLFlags flags);
22
23void gdk_window_freeze_toplevel_updates (GdkWindow *window);
24void gdk_window_thaw_toplevel_updates (GdkWindow *window);
25
26GdkRenderingMode gdk_display_get_rendering_mode (GdkDisplay *display);
27void gdk_display_set_rendering_mode (GdkDisplay *display,
28 GdkRenderingMode mode);
29
30gboolean gdk_display_get_debug_updates (GdkDisplay *display);
31void gdk_display_set_debug_updates (GdkDisplay *display,
32 gboolean debug_updates);
33
34typedef struct {
35 /* add all private functions here, initialize them in gdk-private.c */
36 gboolean (* gdk_device_grab_info) (GdkDisplay *display,
37 GdkDevice *device,
38 GdkWindow **grab_window,
39 gboolean *owner_events);
40
41 GdkDisplay *(* gdk_display_open_default) (void);
42
43 void (* gdk_add_option_entries) (GOptionGroup *group);
44 void (* gdk_pre_parse) (void);
45
46 GdkGLFlags (* gdk_gl_get_flags) (void);
47 void (* gdk_gl_set_flags) (GdkGLFlags flags);
48
49 void (* gdk_window_freeze_toplevel_updates) (GdkWindow *window);
50 void (* gdk_window_thaw_toplevel_updates) (GdkWindow *window);
51
52 GdkRenderingMode (* gdk_display_get_rendering_mode) (GdkDisplay *display);
53 void (* gdk_display_set_rendering_mode) (GdkDisplay *display,
54 GdkRenderingMode mode);
55
56 gboolean (* gdk_display_get_debug_updates) (GdkDisplay *display);
57 void (* gdk_display_set_debug_updates) (GdkDisplay *display,
58 gboolean debug_updates);
59} GdkPrivateVTable;
60
61GDK_AVAILABLE_IN_ALL
62GdkPrivateVTable * gdk__private__ (void);
63
64#endif /* __GDK__PRIVATE_H__ */
65