/* 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