root/lib/tty/color.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 /** \file color.h
   2  *  \brief Header: color setup
   3  *
   4  * PLEASE FORGOT ABOUT tty/color.h!
   5  * Use skin engine for getting needed color pairs.
   6  *
   7  * edit/syntax.c may use this file directly, I'm agree. :)
   8  *
   9  */
  10 
  11 #ifndef MC__COLOR_H
  12 #define MC__COLOR_H
  13 
  14 #include "lib/global.h"         /* glib.h */
  15 
  16 #ifdef HAVE_SLANG
  17 #include "color-slang.h"
  18 #else
  19 #include "tty-ncurses.h"
  20 #endif
  21 
  22 /*** typedefs(not structures) and defined constants **********************************************/
  23 
  24 #define ALLOC_COLOR_PAIR_INDEX 1
  25 
  26 /*** enums ***************************************************************************************/
  27 
  28 /*** structures declarations (and typedefs of structures)*****************************************/
  29 
  30 /*** global variables defined in .c file *********************************************************/
  31 
  32 /*** declarations of public functions ************************************************************/
  33 
  34 void tty_init_colors (gboolean disable, gboolean force);
  35 void tty_colors_done (void);
  36 
  37 gboolean tty_use_colors (void);
  38 int tty_try_alloc_color_pair (const char *, const char *, const char *);
  39 int tty_try_alloc_color_pair2 (const char *, const char *, const char *, gboolean);
  40 
  41 void tty_color_free_all_tmp (void);
  42 void tty_color_free_all_non_tmp (void);
  43 
  44 void tty_setcolor (int color);
  45 void tty_lowlevel_setcolor (int color);
  46 void tty_set_normal_attrs (void);
  47 
  48 void tty_color_set_defaults (const char *, const char *, const char *);
  49 
  50 extern gboolean tty_use_256colors (void);
  51 extern gboolean tty_use_truecolors (GError **);
  52 
  53 /*** inline functions ****************************************************************************/
  54 #endif /* MC_COLOR_H */

/* [previous][next][first][last][top][bottom][index][help]  */