2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2014-11-07 13:40:22 +00:00
|
|
|
|
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
|
|
|
void gdk_pre_parse (void);
|
2024-10-15 20:44:18 +00:00
|
|
|
gboolean gdk_is_initialized (void);
|
|
|
|
|
|
|
|
#define gdk_ensure_initialized() \
|
|
|
|
G_STMT_START { \
|
|
|
|
if (!gdk_is_initialized ()) \
|
|
|
|
g_error ("%s() was called before gtk_init()", G_STRFUNC); \
|
|
|
|
} G_STMT_END
|
2014-11-07 13:40:22 +00:00
|
|
|
|
2018-05-28 16:04:17 +00:00
|
|
|
gboolean gdk_running_in_sandbox (void);
|
2024-11-22 02:28:42 +00:00
|
|
|
void gdk_disable_portals (void);
|
|
|
|
|
2024-11-18 22:06:21 +00:00
|
|
|
gboolean gdk_display_should_use_portal (GdkDisplay *display,
|
|
|
|
const char *portal_interface,
|
|
|
|
guint min_version);
|
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);
|
|
|
|
|
2021-07-26 21:03:15 +00:00
|
|
|
void gdk_source_set_static_name_by_id (guint tag,
|
|
|
|
const char *name);
|
|
|
|
|
2022-08-25 18:33:30 +00:00
|
|
|
#ifndef I_
|
|
|
|
#define I_(string) g_intern_static_string (string)
|
|
|
|
#endif
|