The R Project SVN R

Rev

Rev 71665 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
29921 ripley 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
59039 ripley 3
 *  Copyright (C) 2001-8 The R Core Team.
29921 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
29921 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
42308 ripley 16
 *  along with this program; if not, a copy is available at
68949 ripley 17
 *  https://www.R-project.org/Licenses/
29921 ripley 18
 */
19
 
44267 ripley 20
/* Definitions for the base graphics system.
44154 ripley 21
   So should be private.
22
 */
29921 ripley 23
 
34747 ripley 24
#ifndef R_GRAPHICSBASE_H_
25
#define R_GRAPHICSBASE_H_
26
 
17204 hornik 27
typedef struct {
44346 ripley 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? */
17204 hornik 37
} baseSystemState;
38
 
44199 ripley 39
void registerBase(void); /* used in devices.c */
44285 ripley 40
void unregisterBase(void); /* used in devices.c */
17204 hornik 41
 
44348 ripley 42
void Rf_setBaseDevice(Rboolean val, pGEDevDesc dd); /* used in graphics.c */
34747 ripley 43
 
74258 murrell 44
extern int baseRegisterIndex;
66107 ripley 45
 
34747 ripley 46
#endif /* R_GRAPHICSBASE_ */