1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/*
Copyright (C) 2014-2020, Dirk Krause
SPDX-License-Identifier: BSD-3-Clause
*/
/*
WARNING: This file was generated by the dkct program (see
http://dktools.sourceforge.net/ for details).
Changes you make here will be lost if dkct is run again!
You should modify the original source and run dkct on it.
Original source: plptcol.ctr
*/
/** @file plptcol.h Header file for the plptcol module.
*/
#ifndef PLPTCOL_H_INCLUDED
/** Avoid multiple inclusions. */
#define PLPTCOL_H_INCLUDED 1
#line 9 "plptcol.ctr"
#ifdef __cplusplus
extern "C" {
#endif
/** Dynamically allocate new color structure.
@param name Color name.
@param r Red.
@param g Green.
@param b Blue.
@return Pointer to new structure on success, NULL on error.
*/
plpt_named_color_t *
plptcolor_new(char const *name, double r, double g, double b, dk3_app_t *app);
/** Compare two named colors.
@param l Left color.
@param r Right color.
@param cr Comparison criteria (0=name).
@return Comparison result.
*/
int
plptcolor_compare(void const *l, void const *r, int cr);
/** Destroy color structure, release memory.
@param ptr Color structure to destroy.
*/
void
plptcolor_delete(plpt_named_color_t *ptr);
/** Find color information.
@param job Job structure.
@param txt LaTeX color specification, i.e. "brown!80!blue",
modified during analysis.
@param r Pointer to red result variable.
@param g Pointer to green result variable.
@param b Pointer to blue result variable.
*/
int
plptcol_get_color(
plpdftex_job_t *job,
char *txt,
double *r,
double *g,
double *b
);
#ifdef __cplusplus
}
#endif
#endif
|