The R Project SVN R

Rev

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

Rev 30859 Rev 30956
Line 23... Line 23...
23
 
23
 
24
#define R_GRAPHICS_INTERNAL 1
24
#define R_GRAPHICS_INTERNAL 1
25
 
25
 
26
#include <R_ext/Boolean.h>
26
#include <R_ext/Boolean.h>
27
 
27
 
-
 
28
#include <R_ext/GraphicsDevice.h>
-
 
29
#include <R_ext/GraphicsEngine.h>
-
 
30
 
28
#define R_MaxDevices 64
31
#define R_MaxDevices 64
29
 
32
 
30
#define	DEG2RAD 0.01745329251994329576
33
#define	DEG2RAD 0.01745329251994329576
31
 
34
 
32
#define COLOR_TABLE_SIZE 1024
35
#define COLOR_TABLE_SIZE 1024
Line 126... Line 129...
126
    Rboolean ann;	/* Should annotation take place */
129
    Rboolean ann;	/* Should annotation take place */
127
    Rboolean ask;	/* User confirmation of ``page eject'' */
130
    Rboolean ask;	/* User confirmation of ``page eject'' */
128
    rcolor bg;		/* **R ONLY** Background color */
131
    rcolor bg;		/* **R ONLY** Background color */
129
    int	bty;		/* Box type */
132
    int	bty;		/* Box type */
130
    double cex;		/* Character expansion */
133
    double cex;		/* Character expansion */
-
 
134
    double lheight;     /* Line height
-
 
135
			   The height of a line of text is:
-
 
136
			   ps * cex * lheight */
131
    rcolor col;		/* Plotting Color */
137
    rcolor col;		/* Plotting Color */
132
    double crt;		/* Character/string rotation */
138
    double crt;		/* Character/string rotation */
133
    double din[2];	/* device size in inches */
139
    double din[2];	/* device size in inches */
134
    int	err;		/* Error repporting level */
140
    int	err;		/* Error repporting level */
135
    rcolor fg;		/* **R ONLY** Foreground Color */
141
    rcolor fg;		/* **R ONLY** Foreground Color */
-
 
142
    char family[50];    /* **R ONLY** Font family 
-
 
143
			   Simple name which is mapped by device-specific
-
 
144
			   font database to device-specific name.
-
 
145
			   Only used if not "".
-
 
146
			   Default is "".
-
 
147
			   Ignored by some devices. */
136
    int	font;		/* Text font */
148
    int	font;		/* Text font */
137
    double gamma;	/* Device Gamma Correction */
149
    double gamma;	/* Device Gamma Correction */
138
    int	lab[3];		/* Axis labelling */
150
    int	lab[3];		/* Axis labelling */
139
			/* [0] = # ticks on x-axis */
151
			/* [0] = # ticks on x-axis */
140
			/* [1] = # ticks on y-axis */
152
			/* [1] = # ticks on y-axis */
141
			/* [2] = length of axis labels */
153
			/* [2] = length of axis labels */
142
    int	las;		/* Label style (rotation) */
154
    int	las;		/* Label style (rotation) */
143
    int	lty;		/* Line texture */
155
    int	lty;		/* Line texture */
144
    double lwd;		/* Line width */
156
    double lwd;		/* Line width */
-
 
157
    R_GE_lineend lend;  /* **R ONLY** Line end style */
-
 
158
    R_GE_linejoin ljoin;/* **R ONLY** Line join style */
-
 
159
    double lmitre;      /* **R ONLY** Line mitre limit */
145
    double mgp[3];	/* Annotation location */
160
    double mgp[3];	/* Annotation location */
146
			/* [0] = location of axis title */
161
			/* [0] = location of axis title */
147
			/* [1] = location of axis label */
162
			/* [1] = location of axis label */
148
			/* [2] = location of axis line */
163
			/* [2] = location of axis line */
149
    double mkh;		/* Mark size in inches */
164
    double mkh;		/* Mark size in inches */
Line 400... Line 415...
400
 
415
 
401
int StrMatch(char *s, char *t);
416
int StrMatch(char *s, char *t);
402
 
417
 
403
double R_Log10(double);
418
double R_Log10(double);
404
 
419
 
405
#include <R_ext/GraphicsDevice.h>
-
 
406
#include <R_ext/GraphicsEngine.h>
-
 
407
#include <R_ext/GraphicsBase.h>
420
#include <R_ext/GraphicsBase.h>
408
 
421
 
409
/* 
422
/* 
410
 * Function to generate an R_GE_gcontext from Rf_gpptr info
423
 * Function to generate an R_GE_gcontext from Rf_gpptr info
411
 */
424
 */