2014-11-07 13:40:22 +00:00
|
|
|
#ifndef __GDK__PRIVATE_H__
|
|
|
|
#define __GDK__PRIVATE_H__
|
|
|
|
|
2021-09-24 18:35:48 +00:00
|
|
|
#include "gdk/gdktypes.h"
|
2014-11-07 13:40:22 +00:00
|
|
|
|
2017-11-17 05:37:10 +00:00
|
|
|
/* Private API for use in GTK+ */
|
|
|
|
|
2014-11-07 13:40:22 +00:00
|
|
|
GdkDisplay * gdk_display_open_default (void);
|
|
|
|
|
|
|
|
gboolean gdk_device_grab_info (GdkDisplay *display,
|
|
|
|
GdkDevice *device,
|
2018-03-20 14:14:10 +00:00
|
|
|
GdkSurface **grab_surface,
|
2014-11-07 13:40:22 +00:00
|
|
|
gboolean *owner_events);
|
|
|
|
|
|
|
|
void gdk_pre_parse (void);
|
|
|
|
|
2020-03-07 04:00:39 +00:00
|
|
|
gboolean gdk_surface_supports_edge_constraints (GdkSurface *surface);
|
2017-11-17 20:39:08 +00:00
|
|
|
|
2017-11-17 21:34:04 +00:00
|
|
|
void gdk_display_set_double_click_time (GdkDisplay *display,
|
|
|
|
guint msec);
|
|
|
|
void gdk_display_set_double_click_distance (GdkDisplay *display,
|
|
|
|
guint distance);
|
2017-11-17 22:42:12 +00:00
|
|
|
void gdk_display_set_cursor_theme (GdkDisplay *display,
|
|
|
|
const char *theme,
|
|
|
|
int size);
|
2018-05-28 16:04:17 +00:00
|
|
|
gboolean gdk_running_in_sandbox (void);
|
2018-11-01 17:46:04 +00:00
|
|
|
gboolean gdk_should_use_portal (void);
|
2017-11-17 21:34:04 +00:00
|
|
|
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gdk_get_startup_notification_id (void);
|
2018-06-11 15:09:06 +00:00
|
|
|
|
2021-09-14 16:19:13 +00:00
|
|
|
PangoDirection gdk_unichar_direction (gunichar ch) G_GNUC_CONST;
|
2019-01-31 19:03:49 +00:00
|
|
|
PangoDirection gdk_find_base_dir (const char *text,
|
|
|
|
int len);
|
|
|
|
|
2020-06-28 03:09:07 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
const char *key;
|
|
|
|
guint value;
|
|
|
|
const char *help;
|
2020-11-14 07:49:17 +00:00
|
|
|
gboolean always_enabled;
|
2020-06-28 03:09:07 +00:00
|
|
|
} GdkDebugKey;
|
|
|
|
|
|
|
|
guint gdk_parse_debug_var (const char *variable,
|
|
|
|
const GdkDebugKey *keys,
|
|
|
|
guint nkeys);
|
|
|
|
|
2021-02-04 19:27:22 +00:00
|
|
|
/* Backward compatibility shim, to avoid bumping up the minimum
|
|
|
|
* required version of GLib; most of our uses of g_memdup() are
|
|
|
|
* safe, and those that aren't have been fixed
|
|
|
|
*/
|
|
|
|
#if !GLIB_CHECK_VERSION (2, 67, 3)
|
|
|
|
# define g_memdup2(mem,size) g_memdup((mem),(size))
|
|
|
|
#endif
|
|
|
|
|
2021-07-26 21:03:15 +00:00
|
|
|
void gdk_source_set_static_name_by_id (guint tag,
|
|
|
|
const char *name);
|
|
|
|
|
|
|
|
#if !GLIB_CHECK_VERSION(2, 69, 1)
|
|
|
|
#define g_source_set_static_name(source, name) g_source_set_name ((source), (name))
|
|
|
|
#endif
|
|
|
|
|
2014-11-07 13:40:22 +00:00
|
|
|
#endif /* __GDK__PRIVATE_H__ */
|