gntstyle.h

Go to the documentation of this file.
00001 
00005 /*
00006  * GNT - The GLib Ncurses Toolkit
00007  *
00008  * GNT is the legal property of its developers, whose names are too numerous
00009  * to list here.  Please refer to the COPYRIGHT file distributed with this
00010  * source distribution.
00011  *
00012  * This library is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00025  */
00026 
00027 #include "gnt.h"
00028 #include "gntwm.h"
00029 
00030 typedef enum
00031 {
00032     GNT_STYLE_SHADOW = 0,
00033     GNT_STYLE_COLOR = 1,
00034     GNT_STYLE_MOUSE = 2,
00035     GNT_STYLE_WM = 3,
00036     GNT_STYLE_REMPOS = 4,
00037     GNT_STYLES
00038 } GntStyle;
00039 
00045 void gnt_style_read_configure_file(const char *filename);
00046 
00052 const char *gnt_style_get(GntStyle style);
00053 
00065 char *gnt_style_get_from_name(const char *group, const char *key);
00066 
00079 char **gnt_style_get_string_list(const char *group, const char *key, gsize *length);
00080 
00092 int gnt_style_get_color(char *group, char *key);
00093 
00103 gboolean gnt_style_parse_bool(const char *value);
00104 
00114 gboolean gnt_style_get_bool(GntStyle style, gboolean def);
00115 
00119 void gnt_styles_get_keyremaps(GType type, GHashTable *hash);
00120 
00124 void gnt_style_read_actions(GType type, GntBindableClass *klass);
00125 
00134 gboolean gnt_style_read_menu_accels(const char *name, GHashTable *table);
00135 
00140 void gnt_style_read_workspaces(GntWM *wm);
00141 
00145 void gnt_init_styles(void);
00146 
00150 void gnt_uninit_styles(void);
00151 
00152