The R Project SVN R

Rev

Rev 61333 | Rev 66109 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61333 Rev 61351
Line 53... Line 53...
53
 * Version 7:  Change graphics event handling, adding eventEnv and eventHelper()
53
 * Version 7:  Change graphics event handling, adding eventEnv and eventHelper()
54
 *	       to DevDesc.  (R 2.12.0)
54
 *	       to DevDesc.  (R 2.12.0)
55
 * Version 8:  Add dev_Path() (R 2.12.0)
55
 * Version 8:  Add dev_Path() (R 2.12.0)
56
 * Version 9:  Add dev_HoldFlush(), haveTrans*, haveRaster,
56
 * Version 9:  Add dev_HoldFlush(), haveTrans*, haveRaster,
57
 *             haveCapture, haveLocator.  (R 2.14.0)
57
 *             haveCapture, haveLocator.  (R 2.14.0)
-
 
58
 * Version 10: For R 3.0.0.  Typedef and use 'rcolor',
-
 
59
 *             Remove name2col (R_GE_str2col does the job).
58
 */
60
 */
59
 
61
 
60
#define R_GE_version 9
62
#define R_GE_version 10
61
 
63
 
62
int R_GE_getVersion(void);
64
int R_GE_getVersion(void);
63
 
65
 
64
void R_GE_checkVersionOrDie(int version);
66
void R_GE_checkVersionOrDie(int version);
65
 
67
 
Line 299... Line 301...
299
 *  COLOUR CODE is concerned with the internals of R colour representation
301
 *  COLOUR CODE is concerned with the internals of R colour representation
300
 *
302
 *
301
 *  From colors.c, used in par.c, grid/src/gpar.c
303
 *  From colors.c, used in par.c, grid/src/gpar.c
302
 */
304
 */
303
 
305
 
-
 
306
typedef unsigned int rcolor;
-
 
307
 
304
#define RGBpar			Rf_RGBpar
308
#define RGBpar			Rf_RGBpar
305
#define RGBpar3			Rf_RGBpar3
309
#define RGBpar3			Rf_RGBpar3
306
#define col2name                Rf_col2name
310
#define col2name                Rf_col2name
307
 
311
 
308
/* Convert an element of a R colour specification (which might be a
312
/* Convert an element of a R colour specification (which might be a
309
   number or a string) into an internal colour specification. */
313
   number or a string) into an internal colour specification. */
310
unsigned int RGBpar(SEXP, int);
314
rcolor RGBpar(SEXP, int);
311
unsigned int RGBpar3(SEXP, int, unsigned int);
315
rcolor RGBpar3(SEXP, int, rcolor);
312
 
316
 
313
/* Convert an internal colour specification to/from a colour name */
317
/* Convert an internal colour specification to/from a colour name */
314
const char *col2name(unsigned int col); /* used in par.c, grid */
318
const char *col2name(rcolor col); /* used in par.c, grid */
315
 
319
 
316
/* Convert either a name or a #RRGGBB[AA] string to internal.
320
/* Convert either a name or a #RRGGBB[AA] string to internal.
317
   Because people were using it, it also converts "1", "2" ...
321
   Because people were using it, it also converts "1", "2" ...
318
   to a colour in the palette, and "0" to transparent white.
322
   to a colour in the palette, and "0" to transparent white.
319
*/
323
*/
320
unsigned int R_GE_str2col(const char *s);
324
rcolor R_GE_str2col(const char *s);
321
 
325
 
322
 
326
 
323
 
327
 
324
/*
328
/*
325
 *	Some Notes on Line Textures
329
 *	Some Notes on Line Textures