Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

color.c File Reference

#include <gutenprint/gutenprint.h>
#include "gutenprint-internal.h"
#include <gutenprint/gutenprint-intl-internal.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

static const char * stpi_color_namefunc (const void *item)
static const char * stpi_color_long_namefunc (const void *item)
static int stpi_init_color_list (void)
static void check_list (void)
int stp_color_count (void)
 Get the number of available color modules.
static void check_color (const stp_color_t *c)
const stp_color_tstp_get_color_by_index (int idx)
 Get a color module by its index number.
const char * stp_color_get_name (const stp_color_t *c)
 Get the short (untranslated) name of a color module.
const char * stp_color_get_long_name (const stp_color_t *c)
 Get the long (translated) name of a color module.
static const stp_colorfuncs_tstpi_get_colorfuncs (const stp_color_t *c)
const stp_color_tstp_get_color_by_name (const char *name)
 Get a color module by its name.
const stp_color_tstp_get_color_by_colorfuncs (stp_colorfuncs_t *colorfuncs)
int stp_color_init (stp_vars_t *v, stp_image_t *image, size_t steps)
int stp_color_get_row (stp_vars_t *v, stp_image_t *image, int row, unsigned *zero_mask)
stp_parameter_list_t stp_color_list_parameters (const stp_vars_t *v)
void stp_color_describe_parameter (const stp_vars_t *v, const char *name, stp_parameter_t *description)
int stp_color_register (const stp_color_t *color)
int stp_color_unregister (const stp_color_t *color)

Variables

static stp_list_tcolor_list = NULL


Function Documentation

static void check_color const stp_color_t c  )  [inline, static]
 

Definition at line 84 of file color.c.

References stp_abort(), and stp_erprintf().

Referenced by stp_color_get_long_name(), stp_color_get_name(), stp_color_register(), stp_color_unregister(), stpi_color_long_namefunc(), stpi_color_namefunc(), and stpi_get_colorfuncs().

static void check_list void   )  [inline, static]
 

Definition at line 58 of file color.c.

References color_list, stp_erprintf(), and stpi_init_color_list().

static const char * stpi_color_long_namefunc const void *  item  )  [static]
 

Definition at line 118 of file color.c.

References check_color(), and stp_color::long_name.

Referenced by stpi_init_color_list().

static const char * stpi_color_namefunc const void *  item  )  [static]
 

Definition at line 109 of file color.c.

References check_color(), and stp_color::short_name.

Referenced by stpi_init_color_list().

static const stp_colorfuncs_t* stpi_get_colorfuncs const stp_color_t c  )  [static]
 

Definition at line 144 of file color.c.

References check_color(), and stp_color::colorfuncs.

Referenced by stp_color_describe_parameter(), stp_color_get_row(), stp_color_init(), and stp_color_list_parameters().

static int stpi_init_color_list void   )  [static]
 

Definition at line 45 of file color.c.

References color_list, stp_list_create(), stp_list_destroy(), stp_list_set_long_namefunc(), stp_list_set_namefunc(), stpi_color_long_namefunc(), and stpi_color_namefunc().

Referenced by check_list(), stp_color_count(), stp_color_register(), and stp_color_unregister().


Variable Documentation

stp_list_t* color_list = NULL [static]
 

Definition at line 41 of file color.c.

Referenced by check_list(), stp_color_count(), stp_color_register(), stp_color_unregister(), stp_get_color_by_colorfuncs(), stp_get_color_by_index(), stp_get_color_by_name(), and stpi_init_color_list().


Generated on Thu Feb 10 19:29:31 2005 for libgutenprint API Reference by  doxygen 1.4.1