The R Project SVN R

Rev

Rev 60708 | Rev 68949 | Go to most recent revision | 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
59039 ripley 3
 *  Copyright (C) 2001-5 The R Core Team.
29960 ripley 4
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU Lesser General Public License as published by
7
 *  the Free Software Foundation; either version 2.1 of the License, or
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
 *
15
 *  You should have received a copy of the GNU Lesser General Public License
42315 ripley 16
 *  along with this program; if not, a copy is available at
17
 *  http://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
 
33305 ripley 37
 
29960 ripley 38
typedef struct {
39
    R_do_X11 X11;
44551 ripley 40
    R_do_X11 saveplot;
29960 ripley 41
    R_GetX11ImageRoutine  image;
31491 ripley 42
    R_X11_access access;
33305 ripley 43
    R_X11clp readclp;
29960 ripley 44
} R_X11Routines;
45
 
60708 ripley 46
typedef struct {
47
    R_X11DataEntryRoutine de;
48
    R_X11DataViewer dv;
49
} R_deRoutines;
50
 
39862 duncan 51
#ifdef __cplusplus
52
extern "C" {
53
#endif
29960 ripley 54
R_X11Routines *R_setX11Routines(R_X11Routines *routines);
60708 ripley 55
R_deRoutines *R_setdeRoutines(R_deRoutines *routines);
39862 duncan 56
#ifdef __cplusplus
57
}
58
#endif
29960 ripley 59
 
60
#endif /* R_X11_MODULE_H */