dm_xvars.h

Go to the documentation of this file.
00001 /*                          D M _ X V A R S . H
00002  * BRL-CAD
00003  *
00004  * Copyright (c) 1993-2006 United States Government as represented by
00005  * the U.S. Army Research Laboratory.
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public License
00009  * as published by the Free Software Foundation; either version 2.1 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this file; see the file named COPYING for more
00019  * information.
00020  */
00021 /** @addtogroup libdm */
00022 /*@{*/
00023 /** @file dm_xvars.h
00024  *
00025  */
00026 #ifndef __DM_XVARS__
00027 #define __DM_XVARS__
00028 
00029 #include "common.h"
00030 
00031 #ifdef HAVE_X11_XLIB_H
00032 #  include <X11/Xlib.h>
00033 #  include <X11/Xutil.h>
00034 #endif
00035 
00036 #include "tk.h"
00037 
00038 #define XVARS_MV_O(_m) offsetof(struct dm_xvars, _m)
00039 
00040 /* XXX - this really should not be variable-width and does not allow
00041  * multiple interfaces to be simultaneously compiled.
00042  */
00043 struct dm_xvars {
00044   Display *dpy;
00045   Window win;
00046   Tk_Window top;
00047   Tk_Window xtkwin;
00048   int depth;
00049   Colormap cmap;
00050 #ifdef IF_WGL
00051   PIXELFORMATDESCRIPTOR *vip;
00052   HFONT fontstruct;
00053   HDC  hdc;      // device context of device that OpenGL calls are to be drawn on
00054 #else
00055   XVisualInfo *vip;
00056   XFontStruct *fontstruct;
00057 #endif
00058   int devmotionnotify;
00059   int devbuttonpress;
00060   int devbuttonrelease;
00061 };
00062 
00063 #endif /* __DM_XVARS__ */
00064 /*@}*/
00065 /*
00066  * Local Variables:
00067  * mode: C
00068  * tab-width: 8
00069  * c-basic-offset: 4
00070  * indent-tabs-mode: t
00071  * End:
00072  * ex: shiftwidth=4 tabstop=8
00073  */
00074 

Generated on Mon Sep 18 01:24:40 2006 for BRL-CAD by  doxygen 1.4.6