1#ifndef __GDK__PRIVATE_H__
2#define __GDK__PRIVATE_H__
3
4#include "gdk/gdktypes.h"
5
6/* Private API for use in GTK+ */
7
8GdkDisplay * gdk_display_open_default (void);
9
10gboolean gdk_device_grab_info (GdkDisplay *display,
11 GdkDevice *device,
12 GdkSurface **grab_surface,
13 gboolean *owner_events);
14
15void gdk_pre_parse (void);
16
17gboolean gdk_surface_supports_edge_constraints (GdkSurface *surface);
18
19void gdk_display_set_double_click_time (GdkDisplay *display,
20 guint msec);
21void gdk_display_set_double_click_distance (GdkDisplay *display,
22 guint distance);
23void gdk_display_set_cursor_theme (GdkDisplay *display,
24 const char *theme,
25 int size);
26gboolean gdk_running_in_sandbox (void);
27gboolean gdk_should_use_portal (void);
28
29const char * gdk_get_startup_notification_id (void);
30
31PangoDirection gdk_unichar_direction (gunichar ch) G_GNUC_CONST;
32PangoDirection gdk_find_base_dir (const char *text,
33 int len);
34
35typedef struct
36{
37 const char *key;
38 guint value;
39 const char *help;
40 gboolean always_enabled;
41} GdkDebugKey;
42
43guint gdk_parse_debug_var (const char *variable,
44 const GdkDebugKey *keys,
45 guint nkeys);
46
47/* Backward compatibility shim, to avoid bumping up the minimum
48 * required version of GLib; most of our uses of g_memdup() are
49 * safe, and those that aren't have been fixed
50 */
51#if !GLIB_CHECK_VERSION (2, 67, 3)
52# define g_memdup2(mem,size) g_memdup((mem),(size))
53#endif
54
55void gdk_source_set_static_name_by_id (guint tag,
56 const char *name);
57
58#if !GLIB_CHECK_VERSION(2, 69, 1)
59#define g_source_set_static_name(source, name) g_source_set_name ((source), (name))
60#endif
61
62#endif /* __GDK__PRIVATE_H__ */
63

source code of gtk/gdk/gdk-private.h