The R Project SVN R

Rev

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

Rev 44262 Rev 44263
Line 28... Line 28...
28
#ifdef __cplusplus
28
#ifdef __cplusplus
29
extern "C" {
29
extern "C" {
30
#endif
30
#endif
31
 
31
 
32
#include <Rgraphics.h>
32
#include <Rgraphics.h>
-
 
33
#include <R_ext/GraphicsDevice.h> /* modern version */
33
#include <R_ext/Boolean.h>
34
#include <R_ext/Boolean.h>
34
 
35
 
35
#define addDevice		Rf_addDevice
36
#define addDevice		Rf_addDevice
36
#define deviceNumber		Rf_deviceNumber
-
 
37
#define devNumber		Rf_devNumber
37
#define devNumber		Rf_devNumber
38
#define GetDevice		Rf_GetDevice
38
#define GetDevice		Rf_GetDevice
39
#define KillDevice		Rf_KillDevice
39
#define KillDevice		Rf_KillDevice
40
#define killDevice		Rf_killDevice
-
 
41
#define nextDevice		Rf_nextDevice
-
 
42
#define NumDevices		Rf_NumDevices
-
 
43
#define prevDevice		Rf_prevDevice
-
 
44
 
40
 
45
/*-------------------------------------------------------------------
41
/*-------------------------------------------------------------------
46
 *
42
 *
47
 *  DEVICE FUNCTIONS are concerned with the creation and destruction
43
 *  DEVICE FUNCTIONS are concerned with the creation and destruction
48
 *  of devices.
44
 *  of devices.
Line 68... Line 64...
68
/* Here DevDesc * is being used as an opaque pointer to GEDevDesc. */
64
/* Here DevDesc * is being used as an opaque pointer to GEDevDesc. */
69
/* Replaced by GEaddDevice */
65
/* Replaced by GEaddDevice */
70
void addDevice(DevDesc *);
66
void addDevice(DevDesc *);
71
 
67
 
72
 
68
 
73
/* --- rest also in GraphicsDevice.h ---- */
-
 
74
/* How many devices exist ? (>= 1) */
-
 
75
int NumDevices(void);
-
 
76
 
-
 
77
/* Check for an available device slot */
-
 
78
void R_CheckDeviceAvailable(void);
-
 
79
Rboolean R_CheckDeviceAvailableBool(void);
-
 
80
 
-
 
81
/*-------------------------------------------------------------------
-
 
82
 *
-
 
83
 *  DEVICE UTILITIES are concerned with providing information
-
 
84
 *  for R interpreted functions.
-
 
85
 *
-
 
86
 */
-
 
87
 
-
 
88
/* Return the number of the next device. */
-
 
89
int nextDevice(int);
-
 
90
 
-
 
91
/* Return the number of the previous device. */
-
 
92
int prevDevice(int);
-
 
93
 
-
 
94
/* Make the specified device (specified by number) the current device */
-
 
95
int selectDevice(int);
-
 
96
 
-
 
97
/* Kill device which is identified by number. */
-
 
98
void killDevice(int);
-
 
99
 
-
 
100
#ifdef __cplusplus
69
#ifdef __cplusplus
101
}
70
}
102
#endif
71
#endif
103
 
72
 
104
#endif
73
#endif