Code

calligraphic profiles are now read from the preferences
[inkscape.git] / src / prefs-utils.h
1 /*
2  * Utility functions for reading and setting preferences
3  *
4  * Authors:
5  *   bulia byak <bulia@dr.com>
6  *
7  * Copyright (C) 2003 authors
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
12 #ifndef SEEN_PREFS_UTILS_H
13 #define SEEN_PREFS_UTILS_H
15 #include <glib/gtypes.h>
17 bool pref_path_exists(gchar const *path);
18 void prefs_set_int_attribute(gchar const *path, gchar const *attr, long long int value);
19 long long int prefs_get_int_attribute(gchar const *path, gchar const *attr, long long int def);
20 long long int prefs_get_int_attribute_limited(gchar const *path, gchar const *attr, long long int def, long long int min, long long int max);
22 void prefs_set_double_attribute(gchar const *path, gchar const *attr, double value);
23 double prefs_get_double_attribute(gchar const *path, gchar const *attr, double def);
24 double prefs_get_double_attribute_limited(gchar const *path, gchar const *attr, double def, double min, double max);
26 gchar const *prefs_get_string_attribute(gchar const *path, gchar const *attr);
27 void prefs_set_string_attribute(gchar const *path, gchar const *attr, gchar const *value);
29 void prefs_set_recent_file(const gchar * uri, const gchar * name);
30 const gchar ** prefs_get_recent_files(void);
32 #endif /* !SEEN_PREFS_UTILS_H */
34 /*
35   Local Variables:
36   mode:c++
37   c-file-style:"stroustrup"
38   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
39   indent-tabs-mode:nil
40   fill-column:99
41   End:
42 */
43 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :