CXXR (C++ R)
RX11.h
1 /*CXXR $Id: RX11.h 1348 2013-02-25 17:49:03Z arr $
2  *CXXR
3  *CXXR This file is part of CXXR, a project to refactor the R interpreter
4  *CXXR into C++. It may consist in whole or in part of program code and
5  *CXXR documentation taken from the R project itself, incorporated into
6  *CXXR CXXR (and possibly MODIFIED) under the terms of the GNU General Public
7  *CXXR Licence.
8  *CXXR
9  *CXXR CXXR is Copyright (C) 2008-13 Andrew R. Runnalls, subject to such other
10  *CXXR copyrights and copyright restrictions as may be stated below.
11  *CXXR
12  *CXXR CXXR is not part of the R project, and bugs and other issues should
13  *CXXR not be reported via r-bugs or other R project channels; instead refer
14  *CXXR to the CXXR website.
15  *CXXR */
16 
17 /*
18  * R : A Computer Language for Statistical Data Analysis
19  * Copyright (C) 2001-5 The R Core Team.
20  *
21  * This program is free software; you can redistribute it and/or modify
22  * it under the terms of the GNU Lesser General Public License as published by
23  * the Free Software Foundation; either version 2.1 of the License, or
24  * (at your option) any later version.
25  *
26  * This program is distributed in the hope that it will be useful,
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29  * GNU Lesser General Public License for more details.
30  *
31  * You should have received a copy of the GNU Lesser General Public License
32  * along with this program; if not, a copy is available at
33  * http://www.r-project.org/Licenses/
34  */
35 
36 /* Definitions for the X11 module. Not intended for end-user use */
37 
38 #ifndef R_X11_MODULE_H
39 #define R_X11_MODULE_H
40 
41 #include <Rinternals.h>
42 #include <Rconnections.h>
43 
44 typedef SEXP (*R_do_X11)(SEXP call, SEXP op, SEXP args, SEXP rho);
45 typedef SEXP (*R_X11DataEntryRoutine)(SEXP call, SEXP op, SEXP args, SEXP rho);
46 typedef SEXP (*R_X11DataViewer)(SEXP call, SEXP op, SEXP args, SEXP rho);
47 typedef Rboolean (*R_GetX11ImageRoutine)(int d, void *pximage,
48  int *pwidth, int *pheight);
49 typedef int (*R_X11_access)(void);
50 
51 typedef Rboolean (*R_X11clp)(Rclpconn, char*);
52 
53 
54 typedef struct {
55  R_do_X11 X11;
56  R_do_X11 saveplot;
57  R_X11DataEntryRoutine de;
58  R_GetX11ImageRoutine image;
59  R_X11_access access;
60  R_X11clp readclp;
61  R_X11DataViewer dv;
62 } R_X11Routines;
63 
64 #ifdef __cplusplus
65 extern "C" {
66 #endif
67 R_X11Routines *R_setX11Routines(R_X11Routines *routines);
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* R_X11_MODULE_H */