|
libgeda
|
#include <config.h>#include <missing.h>#include <stdio.h>#include <math.h>#include "libgeda_priv.h"
Go to the source code of this file.
Defines | |
| #define | NOCOLOR {0xff, 0xff, 0xff, 0xff, FALSE} |
| #define | WHITE {0xff, 0xff, 0xff, 0xff, TRUE} |
| #define | GRAY {0x88, 0x88, 0x88, 0xff, TRUE} |
| #define | BLACK {0x00, 0x00, 0x00, 0xff, TRUE} |
| #define | ENDMAP {0x00, 0x00, 0x00, 0x00, FALSE} |
Functions | |
| void | s_color_init (void) |
| Initialises the color subsystem. | |
| void | s_color_map_defaults (COLOR *map) |
| Initialise a color map to B&W. | |
| gboolean | s_color_rgba_decode (const gchar *rgba, guint8 *r, guint8 *g, guint8 *b, guint8 *a) |
| gchar * | s_color_rgba_encode (guint8 r, guint8 g, guint8 b, guint8 a) |
| gchar * | s_color_ps_string (gint color) |
| SCM | s_color_map_to_scm (const COLOR *map) |
| void | s_color_map_from_scm (COLOR *map, SCM lst, const char *scheme_proc_name) |
Variables | |
| COLOR | print_colors [MAX_COLORS] |
| static COLOR | default_colors [] |
| void s_color_init | ( | void | ) |
| void s_color_map_defaults | ( | COLOR * | map | ) |
| map | Color map to initialise. |
| gboolean s_color_rgba_decode | ( | const gchar * | rgba, |
| guint8 * | r, | ||
| guint8 * | g, | ||
| guint8 * | b, | ||
| guint8 * | a | ||
| ) |
| gchar* s_color_rgba_encode | ( | guint8 | r, |
| guint8 | g, | ||
| guint8 | b, | ||
| guint8 | a | ||
| ) |
| gchar* s_color_ps_string | ( | gint | color | ) |
| SCM s_color_map_to_scm | ( | const COLOR * | map | ) |
| void s_color_map_from_scm | ( | COLOR * | map, |
| SCM | lst, | ||
| const char * | scheme_proc_name | ||
| ) |
| COLOR print_colors[MAX_COLORS] |
COLOR default_colors[] [static] |
{
{0xff, 0xff, 0xff, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x88, 0x88, 0x88, 0xff, TRUE} ,
{0x88, 0x88, 0x88, 0xff, TRUE} ,
{0x88, 0x88, 0x88, 0xff, TRUE} ,
{0x88, 0x88, 0x88, 0xff, TRUE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0xff, 0xff, 0xff, 0xff, FALSE} ,
{0xff, 0xff, 0xff, 0xff, FALSE} ,
{0xff, 0xff, 0xff, 0xff, FALSE} ,
{0xff, 0xff, 0xff, 0xff, FALSE} ,
{0xff, 0xff, 0xff, 0xff, FALSE} ,
{0x00, 0x00, 0x00, 0xff, TRUE} ,
{0x88, 0x88, 0x88, 0xff, TRUE} ,
{0xff, 0xff, 0xff, 0xff, FALSE} ,
{0x00, 0x00, 0x00, 0x00, FALSE}
}