summaryrefslogtreecommitdiff
path: root/src/xsettings.h
blob: f1c6f7af1f1dd0815a3740a46325079114f5be71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Functions for handle font changes dynamically.

Copyright (C) 2009-2023 Free Software Foundation, Inc.

This file is part of GNU Emacs.

GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
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 (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 */