1 /* bjb-settings.h
2  * Copyright © 2012, 2013 Pierre-Yves LUYTEN <py@luyten.fr>
3  *
4  * bijiben is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * bijiben is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  * See the GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #pragma once
19 
20 #include <glib-object.h>
21 
22 
23 
24 G_BEGIN_DECLS
25 
26 #define BJB_TYPE_SETTINGS (bjb_settings_get_type ())
27 
28 G_DECLARE_FINAL_TYPE (BjbSettings, bjb_settings, BJB, SETTINGS, GSettings)
29 
30 typedef enum {
31   BJB_TEXT_SIZE_LARGE,
32   BJB_TEXT_SIZE_MEDIUM,
33   BJB_TEXT_SIZE_SMALL
34 } BjbTextSizeType;
35 
36 BjbSettings      *bjb_settings_new                        (void);
37 
38 
39 gboolean          bjb_settings_use_system_font            (BjbSettings *self);
40 
41 
42 void              bjb_settings_set_use_system_font        (BjbSettings *self,
43                                                            gboolean value);
44 
45 
46 const gchar      *bjb_settings_get_default_font           (BjbSettings *self);
47 
48 
49 const gchar      *bjb_settings_get_default_color          (BjbSettings *self);
50 
51 
52 const gchar      *bjb_settings_get_default_location       (BjbSettings *self);
53 
54 
55 gchar            *bjb_settings_get_system_font            (BjbSettings *self);
56 
57 BjbTextSizeType   bjb_settings_get_text_size              (BjbSettings *self);
58 
59 void              show_bijiben_settings_window            (GtkWidget *parent_window);
60 
61 G_END_DECLS
62