Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
SoXtInternal.h
Go to the documentation of this file.
1/**************************************************************************\
2 *
3 * This file is part of the Coin 3D visualization library.
4 * Copyright (C) 1998-2004 by Systems in Motion. All rights reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * ("GPL") version 2 as published by the Free Software Foundation.
9 * See the file LICENSE.GPL at the root directory of this source
10 * distribution for additional information about the GNU GPL.
11 *
12 * For using Coin with software that can not be combined with the GNU
13 * GPL, and for taking advantage of the additional benefits of our
14 * support services, please contact Systems in Motion about acquiring
15 * a Coin Professional Edition License.
16 *
17 * See <URL:http://www.coin3d.org/> for more information.
18 *
19 * Systems in Motion, Teknobyen, Abels Gate 5, 7030 Trondheim, NORWAY.
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 that we want to share
33// among classes within SoXt, but which should not be publicly visible
34// in the library API.
35
37public:
38 static void selectBestVisual(Display * dpy, Visual * & visual,
39 Colormap & cmap, int & depth);
40
41 static Pixmap createPixmapFromXpm(Widget button, const char ** xpm,
42 SbBool ghost = FALSE);
43
44 static void setAppName(const char * appname);
45 static void setAppClass(const char * appclass);
46 static const char * getAppName(void);
47 static const char * getAppClass(void);
48
49private:
50 static const char * xpmErrorString(int error);
51
52 static char * appname;
53 static char * appclass;
54};
55
56// ************************************************************************
57
58#endif // ! SOXTINTERNALUTILS_H
static void selectBestVisual(Display *dpy, Visual *&visual, Colormap &cmap, int &depth)
static const char * getAppName(void)
static const char * getAppClass(void)
static void setAppName(const char *appname)
static void setAppClass(const char *appclass)
static Pixmap createPixmapFromXpm(Widget button, const char **xpm, SbBool ghost=FALSE)
#define FALSE
Definition: globals.hh:52