Update hints translations from Transifex
[midnight-commander.git] / lib / tty / color.h
blob583cce3ce5fe449e6629a57e210646849b92ef9c
1 /** \file color.h
2 * \brief Header: color setup
4 * PLEASE FORGOT ABOUT tty/color.h!
5 * Use skin engine for getting needed color pairs.
7 * edit/syntax.c may use this file directly, I'm agree. :)
9 */
11 #ifndef MC__COLOR_H
12 #define MC__COLOR_H
14 #include "lib/global.h" /* glib.h */
16 #ifdef HAVE_SLANG
17 #include "color-slang.h"
18 #else
19 #include "tty-ncurses.h"
20 #endif
22 /*** typedefs(not structures) and defined constants **********************************************/
24 /*** enums ***************************************************************************************/
26 /*** structures declarations (and typedefs of structures)*****************************************/
28 /*** global variables defined in .c file *********************************************************/
30 /*** declarations of public functions ************************************************************/
32 void tty_init_colors (gboolean disable, gboolean force);
33 void tty_colors_done (void);
35 gboolean tty_use_colors (void);
36 int tty_try_alloc_color_pair (const char *fg, const char *bg, const char *attrs);
37 int tty_try_alloc_color_pair2 (const char *fg, const char *bg, const char *attrs,
38 gboolean is_temp_color);
40 void tty_color_free_all_tmp (void);
41 void tty_color_free_all_non_tmp (void);
43 void tty_setcolor (int color);
44 void tty_lowlevel_setcolor (int color);
45 void tty_set_normal_attrs (void);
47 void tty_color_set_defaults (const char *fgcolor, const char *bgcolor, const char *attrs);
49 extern gboolean tty_use_256colors (GError ** error);
50 extern gboolean tty_use_truecolors (GError ** error);
52 /*** inline functions ****************************************************************************/
54 #endif /* MC__COLOR_H */