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 #ifndef GNT_COLORS_H 00028 #define GNT_COLORS_H 00029 00030 #include <glib.h> 00031 00035 typedef enum 00036 { 00037 GNT_COLOR_NORMAL = 1, 00038 GNT_COLOR_HIGHLIGHT, /* eg. when a button is selected */ 00039 GNT_COLOR_DISABLED, /* eg. when a button is disabled */ 00040 GNT_COLOR_HIGHLIGHT_D, /* eg. when a button is selected, but some other window is in focus */ 00041 GNT_COLOR_TEXT_NORMAL, 00042 GNT_COLOR_TEXT_INACTIVE, /* when the entry is out of focus */ 00043 GNT_COLOR_MNEMONIC, 00044 GNT_COLOR_MNEMONIC_D, 00045 GNT_COLOR_SHADOW, 00046 GNT_COLOR_TITLE, 00047 GNT_COLOR_TITLE_D, 00048 GNT_COLOR_URGENT, /* this is for the 'urgent' windows */ 00049 GNT_COLORS 00050 } GntColorType; 00051 00052 enum 00053 { 00054 GNT_COLOR_BLACK = 0, 00055 GNT_COLOR_RED, 00056 GNT_COLOR_GREEN, 00057 GNT_COLOR_BLUE, 00058 GNT_COLOR_WHITE, 00059 GNT_COLOR_GRAY, 00060 GNT_COLOR_DARK_GRAY, 00061 GNT_TOTAL_COLORS 00062 }; 00063 00067 void gnt_init_colors(void); 00068 00072 void gnt_uninit_colors(void); 00073 00074 #if GLIB_CHECK_VERSION(2,6,0) 00075 00080 void gnt_colors_parse(GKeyFile *kfile); 00081 00087 void gnt_color_pairs_parse(GKeyFile *kfile); 00088 00089 #endif 00090 00091 #endif