2
* Grace - GRaphing, Advanced Computation and Exploration of data
4
* Home page: http://plasma-gate.weizmann.ac.il/Grace/
6
* Copyright (c) 1996-99 Grace Development Team
7
* Copyright (c) 1991-95 Paul J Turner, Portland, OR
9
* Maintained by Evgeny Stambulchik <fnevgeny@plasma-gate.weizmann.ac.il>
14
* This program is free software; you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation; either version 2 of the License, or
17
* (at your option) any later version.
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
24
* You should have received a copy of the GNU General Public License
25
* along with this program; if not, write to the Free Software
26
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
33
#define CMAP_INSTALL_NEVER 0
34
#define CMAP_INSTALL_ALWAYS 1
35
#define CMAP_INSTALL_AUTO 2
38
int xlibinitgraphics(void);
39
void drawxlib(int x, int y, int mode);
40
void xlibupdatecmap(void);
41
void xlibinitcmap(void);
42
void xlibdrawpixel(VPoint vp);
43
void xlibdrawpolyline(VPoint *vps, int n, int mode);
44
void xlibfillpolygon(VPoint *vps, int npoints);
45
void xlibdrawarc(VPoint vp1, VPoint vp2, int angle1, int angle2);
46
void xlibfillarc(VPoint vp1, VPoint vp2, int angle1, int angle2, int mode);
47
void xlibredraw(Window window, int x, int y, int widht, int height);
48
void xlibputpixmap(VPoint vp, int width, int height,
49
char *databits, int pixmap_bpp, int bitmap_pad, int pixmap_type);
51
void xlibleavegraphics(void);
53
int xconvxlib(double x);
54
int yconvxlib(double y);
55
void xlibVPoint2dev(VPoint vp, int *x, int *y);
56
VPoint xlibdev2VPoint(int x, int y);