The R Project SVN R

Rev

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

Rev 44259 Rev 44262
Line 18... Line 18...
18
 */
18
 */
19
 
19
 
20
#ifndef DEVICES_H_
20
#ifndef DEVICES_H_
21
#define DEVICES_H_
21
#define DEVICES_H_
22
 
22
 
23
/* A public header */
23
/* A public header.
-
 
24
   This is almost entirely of historical interest: it was the 
-
 
25
   interface for graphics device in R < 2.7.0
-
 
26
 */
24
 
27
 
25
#ifdef __cplusplus
28
#ifdef __cplusplus
26
extern "C" {
29
extern "C" {
27
#endif
30
#endif
28
 
31
 
29
#include <Rgraphics.h>
32
#include <Rgraphics.h>
30
#include <R_ext/Boolean.h>
33
#include <R_ext/Boolean.h>
31
 
34
 
32
#define R_MaxDevices 64
-
 
33
 
-
 
34
 
-
 
35
#define addDevice		Rf_addDevice
35
#define addDevice		Rf_addDevice
36
#define deviceNumber		Rf_deviceNumber
36
#define deviceNumber		Rf_deviceNumber
37
#define devNumber		Rf_devNumber
37
#define devNumber		Rf_devNumber
38
#define DevNull			Rf_DevNull
-
 
39
#define InitGraphics		Rf_InitGraphics
-
 
40
#define GetDevice		Rf_GetDevice
38
#define GetDevice		Rf_GetDevice
41
#define KillAllDevices		Rf_KillAllDevices
-
 
42
#define KillDevice		Rf_KillDevice
39
#define KillDevice		Rf_KillDevice
43
#define killDevice		Rf_killDevice
40
#define killDevice		Rf_killDevice
44
#define nextDevice		Rf_nextDevice
41
#define nextDevice		Rf_nextDevice
45
#define NumDevices		Rf_NumDevices
42
#define NumDevices		Rf_NumDevices
46
#define StartDevice		Rf_StartDevice
-
 
47
#define prevDevice		Rf_prevDevice
43
#define prevDevice		Rf_prevDevice
48
#define recordGraphicOperation	Rf_recordGraphicOperation
-
 
49
 
-
 
50
/* Initialize internal device structures. */
-
 
51
void InitGraphics(void);
-
 
52
/* Kill all active devices (used at shutdown). */
-
 
53
void KillAllDevices(void);
-
 
54
/*
-
 
55
 * Free the font and encoding structures used by
-
 
56
 * PostScript, Xfig, and PDF devices
-
 
57
 */
-
 
58
void freeType1Fonts(void);
-
 
59
 
-
 
60
 
44
 
61
/*-------------------------------------------------------------------
45
/*-------------------------------------------------------------------
62
 *
46
 *
63
 *  DEVICE FUNCTIONS are concerned with the creation and destruction
47
 *  DEVICE FUNCTIONS are concerned with the creation and destruction
64
 *  of devices.
48
 *  of devices.
Line 71... Line 55...
71
/* Kill device which is identified by number.
55
/* Kill device which is identified by number.
72
 * Here DevDesc * is being used as an opaque pointer to GEDevDesc.
56
 * Here DevDesc * is being used as an opaque pointer to GEDevDesc.
73
 */
57
 */
74
void KillDevice(DevDesc*);
58
void KillDevice(DevDesc*);
75
 
59
 
76
/* How many devices exist ? (>= 1) */
-
 
77
int NumDevices(void);
-
 
78
 
-
 
79
/* Get the index of the specified device. 
-
 
80
 * This is used by the graphics engine to map from a *GEDevDesc to
-
 
81
 * a device number. 
-
 
82
 * Here DevDesc * is being used as an opaque pointer to GEDevDesc.
-
 
83
 * Now unused.
-
 
84
 */
-
 
85
int deviceNumber(DevDesc*);
-
 
86
 
-
 
87
/* Get the index of the specified device. 
60
/* Get the index of the specified device. 
88
 * This is used by a device to map from a *NewDevDesc to a device number.
61
 * This is used by a device to map from a *NewDevDesc to a device number.
89
 * Here DevDesc * is being used as an opaque pointer to NewDevDesc.
62
 * Here DevDesc * is being used as an opaque pointer to NewDevDesc.
90
 */
63
 */
91
int devNumber(DevDesc *);
64
int devNumber(DevDesc *);
92
/* New, properly declared version in GraphicsDevices.h */
65
/* New, properly declared version in GraphicsDevices.h */
93
 
66
 
-
 
67
/* ...NO DOC... */
-
 
68
/* Here DevDesc * is being used as an opaque pointer to GEDevDesc. */
94
/* Create a new device. */
69
/* Replaced by GEaddDevice */
-
 
70
void addDevice(DevDesc *);
-
 
71
 
-
 
72
 
-
 
73
/* --- rest also in GraphicsDevice.h ---- */
95
int StartDevice(SEXP, SEXP, int, SEXP, int);
74
/* How many devices exist ? (>= 1) */
-
 
75
int NumDevices(void);
96
 
76
 
97
/* Check for an available device slot */
77
/* Check for an available device slot */
98
void R_CheckDeviceAvailable(void);
78
void R_CheckDeviceAvailable(void);
99
Rboolean R_CheckDeviceAvailableBool(void);
79
Rboolean R_CheckDeviceAvailableBool(void);
100
 
80
 
101
void DevNull(void);
-
 
102
 
-
 
103
 
-
 
104
/*-------------------------------------------------------------------
81
/*-------------------------------------------------------------------
105
 *
82
 *
106
 *  DEVICE UTILITIES are concerned with providing information
83
 *  DEVICE UTILITIES are concerned with providing information
107
 *  for R interpreted functions.
84
 *  for R interpreted functions.
108
 *
85
 *
Line 118... Line 95...
118
int selectDevice(int);
95
int selectDevice(int);
119
 
96
 
120
/* Kill device which is identified by number. */
97
/* Kill device which is identified by number. */
121
void killDevice(int);
98
void killDevice(int);
122
 
99
 
123
/* ...NO DOC... */
-
 
124
/* Here DevDesc * is being used as an opaque pointer to GEDevDesc. */
-
 
125
/* Replaced by GEaddDevice */
-
 
126
void addDevice(DevDesc *);
-
 
127
 
-
 
128
#ifdef __cplusplus
100
#ifdef __cplusplus
129
}
101
}
130
#endif
102
#endif
131
 
103
 
132
#endif
104
#endif