The R Project SVN R

Rev

Rev 71657 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
29960 ripley 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
67054 ripley 3
 *  Copyright (C) 2001-2014 The R Core Team.
29960 ripley 4
 *
71665 ripley 5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation; either version 2 of the License, or
29960 ripley 8
 *  (at your option) any later version.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU Lesser General Public License for more details.
14
 *
71665 ripley 15
 *  You should have received a copy of the GNU General Public License
42315 ripley 16
 *  along with this program; if not, a copy is available at
68949 ripley 17
 *  https://www.R-project.org/Licenses/
29960 ripley 18
 */
19
 
20
/* Definitions for the X11 module.  Not intended for end-user use */
21
 
22
#ifndef R_X11_MODULE_H
23
#define R_X11_MODULE_H
24
 
25
#include <Rinternals.h>
33305 ripley 26
#include <Rconnections.h>
29960 ripley 27
 
28
typedef SEXP (*R_do_X11)(SEXP call, SEXP op, SEXP args, SEXP rho);
29
typedef SEXP (*R_X11DataEntryRoutine)(SEXP call, SEXP op, SEXP args, SEXP rho);
40754 ripley 30
typedef SEXP (*R_X11DataViewer)(SEXP call, SEXP op, SEXP args, SEXP rho);
29960 ripley 31
typedef Rboolean (*R_GetX11ImageRoutine)(int d, void *pximage, 
32
					 int *pwidth, int *pheight);
44195 ripley 33
typedef int (*R_X11_access)(void);
29960 ripley 34
 
33311 ripley 35
typedef Rboolean (*R_X11clp)(Rclpconn, char*);
31491 ripley 36
 
67054 ripley 37
typedef const char * (*R_version_t)(void);
33305 ripley 38
 
67054 ripley 39
 
29960 ripley 40
typedef struct {
41
    R_do_X11 X11;
44551 ripley 42
    R_do_X11 saveplot;
29960 ripley 43
    R_GetX11ImageRoutine  image;
31491 ripley 44
    R_X11_access access;
33305 ripley 45
    R_X11clp readclp;
67054 ripley 46
    R_version_t R_pngVersion, R_jpegVersion, R_tiffVersion;
29960 ripley 47
} R_X11Routines;
48
 
60708 ripley 49
typedef struct {
50
    R_X11DataEntryRoutine de;
51
    R_X11DataViewer dv;
52
} R_deRoutines;
53
 
39862 duncan 54
#ifdef __cplusplus
55
extern "C" {
56
#endif
29960 ripley 57
R_X11Routines *R_setX11Routines(R_X11Routines *routines);
60708 ripley 58
R_deRoutines *R_setdeRoutines(R_deRoutines *routines);
39862 duncan 59
#ifdef __cplusplus
60
}
61
#endif
29960 ripley 62
 
63
#endif /* R_X11_MODULE_H */