00001 /* D M - T K . H 00002 * BRL-CAD 00003 * 00004 * Copyright (C) 1993-2005 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-tk.h 00024 * 00025 */ 00026 #ifndef SEEN_DM_TK 00027 #define SEEN_DM_TK 00028 00029 #include "dm_color.h" 00030 #define CMAP_BASE 40 00031 #define CUBE_DIMENSION 6 00032 #define NUM_PIXELS 216 /* CUBE_DIMENSION * CUBE_DIMENSION * CUBE_DIMENSION */ 00033 #define ColormapNull (Colormap *)NULL 00034 00035 struct Tk_vars { 00036 GC gc; 00037 Pixmap pix; 00038 mat_t xmat; 00039 int is_trueColor; 00040 unsigned long bd, bg, fg; /* color of border, background, foreground */ 00041 unsigned long pixels[NUM_PIXELS]; 00042 }; 00043 #endif /* SEEN_DM_TK */ 00044 /*@}*/ 00045 /* 00046 * Local Variables: 00047 * mode: C 00048 * tab-width: 8 00049 * c-basic-offset: 4 00050 * indent-tabs-mode: t 00051 * End: 00052 * ex: shiftwidth=4 tabstop=8 00053 */ 00054