summaryrefslogtreecommitdiff
path: root/src/xsettings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xsettings.h')
-rw-r--r--src/xsettings.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/xsettings.h b/src/xsettings.h
index 27717aae6ee..833c2b367dc 100644
--- a/src/xsettings.h
+++ b/src/xsettings.h
@@ -1,6 +1,6 @@
/* Functions for handle font changes dynamically.
-Copyright (C) 2009-2017 Free Software Foundation, Inc.
+Copyright (C) 2009-2022 Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -20,16 +20,31 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#ifndef XSETTINGS_H
#define XSETTINGS_H
+#ifndef HAVE_PGTK
+#include "dispextern.h"
#include <X11/Xlib.h>
+#else
+#include <cairo.h>
+#endif
struct x_display_info;
+struct pgtk_display_info;
+
+#ifdef HAVE_PGTK
+typedef struct pgtk_display_info Display_Info;
+#endif
-extern void xsettings_initialize (struct x_display_info *);
-extern void xft_settings_event (struct x_display_info *, const XEvent *);
+extern void xsettings_initialize (Display_Info *);
+#ifndef HAVE_PGTK
+extern bool xft_settings_event (Display_Info *, const XEvent *);
+#endif
extern const char *xsettings_get_system_font (void);
#ifdef USE_LUCID
extern const char *xsettings_get_system_normal_font (void);
#endif
+#ifdef HAVE_PGTK
+extern cairo_font_options_t *xsettings_get_font_options (void);
+#endif
#endif /* XSETTINGS_H */