Geant4 Cross Reference |
1 /********************************************* 1 2 * 3 * This file is part of the Coin 3D visualiza 4 * Copyright (C) 1998-2004 by Systems in Moti 5 * 6 * This library is free software; you can red 7 * modify it under the terms of the GNU Gener 8 * ("GPL") version 2 as published by the Free 9 * See the file LICENSE.GPL at the root direc 10 * distribution for additional information ab 11 * 12 * For using Coin with software that can not 13 * GPL, and for taking advantage of the addit 14 * support services, please contact Systems i 15 * a Coin Professional Edition License. 16 * 17 * See <URL:http://www.coin3d.org/> for more 18 * 19 * Systems in Motion, Teknobyen, Abels Gate 5 20 * <URL:http://www.sim.no/>. 21 * 22 \********************************************* 23 24 #ifndef SOXTINTERNALUTILS_H 25 #define SOXTINTERNALUTILS_H 26 27 #include <X11/Intrinsic.h> 28 #include <Inventor/SbBasic.h> // SbBool 29 30 // ******************************************* 31 32 // This class contains common data and methods 33 // among classes within SoXt, but which should 34 // in the library API. 35 36 class SoXtInternal { 37 public: 38 static void selectBestVisual(Display * dpy, 39 Colormap & cmap 40 41 static Pixmap createPixmapFromXpm(Widget but 42 SbBool gho 43 44 static void setAppName(const char * appname) 45 static void setAppClass(const char * appclas 46 static const char * getAppName(void); 47 static const char * getAppClass(void); 48 49 private: 50 static const char * xpmErrorString(int error 51 52 static char * appname; 53 static char * appclass; 54 }; 55 56 // ******************************************* 57 58 #endif // ! SOXTINTERNALUTILS_H 59