The R Project SVN R

Rev

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

Rev 72758 Rev 78759
Line 68... Line 68...
68
 *             - added this version number to snapshots (as attribute)
68
 *             - added this version number to snapshots (as attribute)
69
 *             - added R version number to snapshots (as attribute)
69
 *             - added R version number to snapshots (as attribute)
70
 *             - added pkgName to graphics system state info (as attribute)
70
 *             - added pkgName to graphics system state info (as attribute)
71
 * Version 12: For R 3.4.0
71
 * Version 12: For R 3.4.0
72
 *             Added canGenIdle, doIdle() and doesIdle() to devices.
72
 *             Added canGenIdle, doIdle() and doesIdle() to devices.
-
 
73
 * Version 13: For R 4.0.0
-
 
74
 *             Added graphical definitions
-
 
75
 *             - linear gradients
-
 
76
 *             - radial gradients
-
 
77
 *             - patterns
-
 
78
 *             - clipping paths
-
 
79
 *             - masks
73
 */
80
 */
-
 
81
#define R_GE_definitions 13
74
 
82
 
75
#define R_GE_version 12
83
#define R_GE_version R_GE_definitions
76
 
84
 
77
int R_GE_getVersion(void);
85
int R_GE_getVersion(void);
78
 
86
 
79
void R_GE_checkVersionOrDie(int version);
87
void R_GE_checkVersionOrDie(int version);
80
 
88
 
Line 197... Line 205...
197
    double cex;          /* Character expansion (font size = fontsize*cex) */
205
    double cex;          /* Character expansion (font size = fontsize*cex) */
198
    double ps;           /* Font size in points */
206
    double ps;           /* Font size in points */
199
    double lineheight;   /* Line height (multiply by font size) */
207
    double lineheight;   /* Line height (multiply by font size) */
200
    int fontface;        /* Font face (plain, italic, bold, ...) */
208
    int fontface;        /* Font face (plain, italic, bold, ...) */
201
    char fontfamily[201]; /* Font family */
209
    char fontfamily[201]; /* Font family */
-
 
210
    /*
-
 
211
     * Definitions
-
 
212
     */
-
 
213
    SEXP patternFill;  /* Reference to a pattern fill */
202
} R_GE_gcontext;
214
} R_GE_gcontext;
203
 
215
 
204
typedef R_GE_gcontext* pGEcontext;
216
typedef R_GE_gcontext* pGEcontext;
205
 
217
 
206
 
218
 
Line 521... Line 533...
521
SEXP CreateAtVector(double*, double*, int, Rboolean);
533
SEXP CreateAtVector(double*, double*, int, Rboolean);
522
/* From ../../main/graphics.c, used by ../../library/grDevices/src/axis_scales.c : */
534
/* From ../../main/graphics.c, used by ../../library/grDevices/src/axis_scales.c : */
523
#define GAxisPars 		Rf_GAxisPars
535
#define GAxisPars 		Rf_GAxisPars
524
void GAxisPars(double *min, double *max, int *n, Rboolean log, int axis);
536
void GAxisPars(double *min, double *max, int *n, Rboolean log, int axis);
525
 
537
 
-
 
538
/* Patterns - from ../../main/patterns.c */
-
 
539
Rboolean R_GE_isPattern(SEXP x);
-
 
540
#define R_GE_linearGradientPattern 1
-
 
541
#define R_GE_radialGradientPattern 2
-
 
542
#define R_GE_tilingPattern         3
-
 
543
int R_GE_patternType(SEXP pattern);
-
 
544
 
-
 
545
double R_GE_linearGradientX1(SEXP pattern);
-
 
546
double R_GE_linearGradientY1(SEXP pattern);
-
 
547
double R_GE_linearGradientX2(SEXP pattern);
-
 
548
double R_GE_linearGradientY2(SEXP pattern);
-
 
549
int R_GE_linearGradientNumStops(SEXP pattern);
-
 
550
double R_GE_linearGradientStop(SEXP pattern, int i);
-
 
551
rcolor R_GE_linearGradientColour(SEXP pattern, int i);
-
 
552
/* Must match order in ../library/grDevices/R/patterns.R */
-
 
553
#define R_GE_patternExtendPad 1
-
 
554
#define R_GE_patternExtendRepeat 2
-
 
555
#define R_GE_patternExtendReflect 3
-
 
556
#define R_GE_patternExtendNone 4
-
 
557
int R_GE_linearGradientExtend(SEXP pattern);
-
 
558
 
-
 
559
double R_GE_radialGradientCX1(SEXP pattern);
-
 
560
double R_GE_radialGradientCY1(SEXP pattern);
-
 
561
double R_GE_radialGradientR1(SEXP pattern);
-
 
562
double R_GE_radialGradientCX2(SEXP pattern);
-
 
563
double R_GE_radialGradientCY2(SEXP pattern);
-
 
564
double R_GE_radialGradientR2(SEXP pattern);
-
 
565
int R_GE_radialGradientNumStops(SEXP pattern);
-
 
566
double R_GE_radialGradientStop(SEXP pattern, int i);
-
 
567
rcolor R_GE_radialGradientColour(SEXP pattern, int i);
-
 
568
int R_GE_radialGradientExtend(SEXP pattern);
-
 
569
 
-
 
570
SEXP R_GE_tilingPatternFunction(SEXP pattern);
-
 
571
double R_GE_tilingPatternX(SEXP pattern);
-
 
572
double R_GE_tilingPatternY(SEXP pattern);
-
 
573
double R_GE_tilingPatternWidth(SEXP pattern);
-
 
574
double R_GE_tilingPatternHeight(SEXP pattern);
-
 
575
int R_GE_tilingPatternExtend(SEXP pattern);
-
 
576
 
526
#ifdef __cplusplus
577
#ifdef __cplusplus
527
}
578
}
528
#endif
579
#endif
529
 
580
 
530
#endif /* R_GRAPHICSENGINE_ */
581
#endif /* R_GRAPHICSENGINE_ */