CXXR (C++ R)
GraphicsBase.h
1 /*
2  * R : A Computer Language for Statistical Data Analysis
3  * Copyright (C) 2001-8 The R Core Team.
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
16  * along with this program; if not, a copy is available at
17  * http://www.r-project.org/Licenses/
18  */
19 
20 /* Definitions for the base graphics system.
21  So should be private.
22  */
23 
24 #ifndef R_GRAPHICSBASE_H_
25 #define R_GRAPHICSBASE_H_
26 
27 typedef struct {
28  GPar dp; /* current device default parameters:
29  those which will be used at the next GNewPage */
30  GPar gp; /* current device current parameters */
31  GPar dpSaved; /* saved device default parameters:
32  graphics state at the time that the currently
33  displayed plot was started, so we can replay
34  the display list.
35  */
36  Rboolean baseDevice; /* Has the device received base output? */
37 } baseSystemState;
38 
39 void registerBase(void); /* used in devices.c */
40 void unregisterBase(void); /* used in devices.c */
41 
42 void Rf_setBaseDevice(Rboolean val, pGEDevDesc dd); /* used in graphics.c */
43 
44 #endif /* R_GRAPHICSBASE_ */