1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2000 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __GTK_SETTINGS_PRIVATE_H__
19#define __GTK_SETTINGS_PRIVATE_H__
20
21#include <gtk/gtksettings.h>
22#include "gtkstylecascadeprivate.h"
23
24G_BEGIN_DECLS
25
26#define DEFAULT_THEME_NAME "Default"
27#define DEFAULT_ICON_THEME "Adwaita"
28
29const cairo_font_options_t *
30 gtk_settings_get_font_options (GtkSettings *settings);
31GdkDisplay *_gtk_settings_get_display (GtkSettings *settings);
32GtkStyleCascade *_gtk_settings_get_style_cascade (GtkSettings *settings,
33 int scale);
34
35typedef enum
36{
37 GTK_SETTINGS_SOURCE_DEFAULT,
38 GTK_SETTINGS_SOURCE_THEME,
39 GTK_SETTINGS_SOURCE_XSETTING,
40 GTK_SETTINGS_SOURCE_APPLICATION
41} GtkSettingsSource;
42
43GtkSettingsSource _gtk_settings_get_setting_source (GtkSettings *settings,
44 const char *name);
45
46gboolean gtk_settings_get_enable_animations (GtkSettings *settings);
47int gtk_settings_get_dnd_drag_threshold (GtkSettings *settings);
48const char *gtk_settings_get_font_family (GtkSettings *settings);
49int gtk_settings_get_font_size (GtkSettings *settings);
50gboolean gtk_settings_get_font_size_is_absolute (GtkSettings *settings);
51
52G_END_DECLS
53
54#endif /* __GTK_SETTINGS_PRIVATE_H__ */
55

source code of gtk/gtk/gtksettingsprivate.h