~ubuntu-branches/ubuntu/karmic/grace/karmic

« back to all changes in this revision

Viewing changes to src/x11drv.h

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-19 14:19:58 UTC
  • Revision ID: james.westby@ubuntu.com-20020319141958-5gxna6vo1ek3zjml
Tags: upstream-5.1.7
ImportĀ upstreamĀ versionĀ 5.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Grace - GRaphing, Advanced Computation and Exploration of data
 
3
 * 
 
4
 * Home page: http://plasma-gate.weizmann.ac.il/Grace/
 
5
 * 
 
6
 * Copyright (c) 1996-99 Grace Development Team
 
7
 * Copyright (c) 1991-95 Paul J Turner, Portland, OR
 
8
 * 
 
9
 * Maintained by Evgeny Stambulchik <fnevgeny@plasma-gate.weizmann.ac.il>
 
10
 * 
 
11
 * 
 
12
 *                           All Rights Reserved
 
13
 * 
 
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.
 
18
 * 
 
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.
 
23
 * 
 
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.
 
27
 */
 
28
 
 
29
#include "defines.h"
 
30
 
 
31
#include <X11/Xlib.h>
 
32
 
 
33
#define CMAP_INSTALL_NEVER      0
 
34
#define CMAP_INSTALL_ALWAYS     1
 
35
#define CMAP_INSTALL_AUTO       2
 
36
 
 
37
int xlibinit(void);
 
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);
 
50
 
 
51
void xlibleavegraphics(void);
 
52
     
 
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);