| 1 |
/*
|
1 |
/*
|
| 2 |
* R : A Computer Langage for Statistical Data Analysis
|
2 |
* R : A Computer Langage for Statistical Data Analysis
|
| 3 |
* Copyright (C) 1998-1999 Lyndon Drake
|
3 |
* Copyright (C) 1998-1999 Lyndon Drake
|
| 4 |
* and the R Development Core Team
|
4 |
* and the R Development Core Team
|
| 5 |
*
|
5 |
*
|
| 6 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* This program is free software; you can redistribute it and/or modify
|
| 7 |
* it under the terms of the GNU General Public License as published by
|
7 |
* it under the terms of the GNU General Public License as published by
|
| 8 |
* the Free Software Foundation; either version 2 of the License, or
|
8 |
* the Free Software Foundation; either version 2 of the License, or
|
| 9 |
* (at your option) any later version.
|
9 |
* (at your option) any later version.
|
| 10 |
*
|
10 |
*
|
| 11 |
* This program is distributed in the hope that it will be useful,
|
11 |
* This program is distributed in the hope that it will be useful,
|
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 |
* GNU General Public License for more details.
|
14 |
* GNU General Public License for more details.
|
| 15 |
*
|
15 |
*
|
| 16 |
* You should have received a copy of the GNU General Public License
|
16 |
* You should have received a copy of the GNU General Public License
|
| 17 |
* along with this program; if not, write to the Free Software
|
17 |
* along with this program; if not, write to the Free Software
|
| 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
| 19 |
*/
|
19 |
*/
|
| 20 |
|
20 |
|
| - |
|
21 |
typedef struct {
|
| - |
|
22 |
/* R Graphics Parameters */
|
| - |
|
23 |
/* local device copy so that we can detect */
|
| - |
|
24 |
/* when parameter changes */
|
| - |
|
25 |
|
| - |
|
26 |
double cex; /* Character expansion */
|
| - |
|
27 |
double srt; /* String rotation */
|
| - |
|
28 |
|
| - |
|
29 |
int fontface; /* Typeface */
|
| - |
|
30 |
int fontsize; /* Size in points */
|
| - |
|
31 |
|
| - |
|
32 |
gint lty, lwd; /* line params */
|
| - |
|
33 |
|
| - |
|
34 |
/* GNOME Driver Specific */
|
| - |
|
35 |
|
| - |
|
36 |
GdkGC *wgc;
|
| - |
|
37 |
|
| - |
|
38 |
int windowWidth; /* Window width (pixels) */
|
| - |
|
39 |
int windowHeight; /* Window height (pixels) */
|
| - |
|
40 |
Rboolean resize; /* Window resized */
|
| - |
|
41 |
GtkWidget *window; /* Graphics Window */
|
| - |
|
42 |
|
| - |
|
43 |
GtkWidget *canvas; /* Gnome canvas */
|
| - |
|
44 |
GnomeCanvasGroup *group; /* Canvas group for plotting */
|
| - |
|
45 |
GnomeCanvasItem *plotarea; /* Plotting area */
|
| - |
|
46 |
|
| - |
|
47 |
GdkCursor *gcursor;
|
| - |
|
48 |
|
| - |
|
49 |
Rboolean usefixed; /* not yet used (??) */
|
| - |
|
50 |
GdkFont *fixedfont;
|
| - |
|
51 |
GdkFont *font;
|
| - |
|
52 |
|
| - |
|
53 |
} gnomeDesc;
|
| 21 |
|
54 |
|
| 22 |
Rboolean GnomeDeviceDriver(DevDesc *dd, char *display, double width,
|
55 |
Rboolean GnomeDeviceDriver(DevDesc *dd, char *display, double width,
|
| 23 |
double height, double pointsize);
|
56 |
double height, double pointsize);
|