gntstyle.h
Go to the documentation of this file.
1
5 /*
6 * GNT - The GLib Ncurses Toolkit
7 *
8 * GNT is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
11 *
12 * This library is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */
26
27 #include "gnt.h"
28 #include "gntwm.h"
29
30 typedef enum
31 {
32 GNT_STYLE_SHADOW = 0,
33 GNT_STYLE_COLOR = 1,
34 GNT_STYLE_MOUSE = 2,
35 GNT_STYLE_WM = 3,
36 GNT_STYLE_REMPOS = 4,
37 GNT_STYLES
38 } GntStyle;
39
45 void gnt_style_read_configure_file(const char *filename);
46
52 const char *gnt_style_get(GntStyle style);
53
65 char *gnt_style_get_from_name(const char *group, const char *key);
66
79 char **gnt_style_get_string_list(const char *group, const char *key, gsize *length);
80
92 int gnt_style_get_color(char *group, char *key);
93
103 gboolean gnt_style_parse_bool(const char *value);
104
114 gboolean gnt_style_get_bool(GntStyle style, gboolean def);
115
119 void gnt_styles_get_keyremaps(GType type, GHashTable *hash);
120
124 void gnt_style_read_actions(GType type, GntBindableClass *klass);
125
134 gboolean gnt_style_read_menu_accels(const char *name, GHashTable *table);
135
140 void gnt_style_read_workspaces(GntWM *wm);
141
145 void gnt_init_styles(void);
146
150 void gnt_uninit_styles(void);
151
152
gnt_style_parse_bool
gboolean gnt_style_parse_bool(const char *value)
Parse a boolean preference.
gnt_init_styles
void gnt_init_styles(void)
Initialize style settings.
_GntWM
Definition: gntwm.h:79
gnt_uninit_styles
void gnt_uninit_styles(void)
Uninitialize style settings.
gnt.h
GNT API.
gntwm.h
Window-manager API.
gnt_style_get_string_list
char ** gnt_style_get_string_list(const char *group, const char *key, gsize *length)
Get the value of a preference in ~/.gntrc.
gnt_style_get_bool
gboolean gnt_style_get_bool(GntStyle style, gboolean def)
Get the boolean value for a user-setting.
gnt_style_get
const char * gnt_style_get(GntStyle style)
Get the user-setting for a style.
_GntBindableClass
Definition: gntbindable.h:52
gnt_style_get_from_name
char * gnt_style_get_from_name(const char *group, const char *key)
Get the value of a preference in ~/.gntrc.
gnt_style_get_color
int gnt_style_get_color(char *group, char *key)
Get the value of a color pair in ~/.gntrc.
gnt_style_read_menu_accels
gboolean gnt_style_read_menu_accels(const char *name, GHashTable *table)
Read menu-accels from ~/.gntrc.
gnt_style_read_configure_file
void gnt_style_read_configure_file(const char *filename)
Read configuration from a file.