00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : T.MEHAMLI (Jul 2007) 00022 **=======================================================================*/ 00023 00024 00025 #ifndef SO_WX_DEF 00026 #define SO_WX_DEF 00027 00028 #include <Inventor/helpers/SbGlContextHelper.h> 00029 00031 // 00032 // Header: SoWxDef 00033 // 00035 00036 #ifndef Widget 00037 #define SoWidget wxWindow* 00038 00039 // Defined for compatibility purpose 00040 // We disbale this when internally compiling OivSuite 00041 #ifndef LIBRARYBUILD 00042 # define Widget wxWindow* 00043 #endif 00044 00045 #endif 00046 00047 #ifdef _WIN32 00048 00049 // Redefine X data types in _WIN32 terms 00050 #define XColor UINT 00051 #define Boolean BOOLEAN 00052 #define Colormap UINT 00053 typedef SbGlContextHelper::Display Display; 00054 #define XVisualInfo PIXELFORMATDESCRIPTOR 00055 #define WindowWx HWND 00056 #define GLXContext HGLRC 00057 #define Hdc HDC 00058 00059 // Event types 00060 #define XEvent MSG 00061 00062 // Redefine Xt and Motif data types in _WIN32 terms 00063 #define XtPointer PVOID 00064 #define XtEventHandler FARPROC 00065 #define XtAppContext UINT 00066 00067 #include "tchar.h" 00068 00069 // XVisualInfo corresponds to PIXELFORMATDESCRIPTOR rather than 00070 // "pixel format" because under Windows, pixel formats are per 00071 // drawable rather than per display (like visuals under X). In 00072 // other words, under Windows we can't get the description of a 00073 // pixel format unless we have a valid device context and that 00074 // is often inconvenient. 00075 // 00076 // Note that PIXELFORMATDESCRIPTOR also takes the place of GLX's 00077 // "attribList" (which it is conceptually closer to). 00078 00079 #else //UNIX 00080 00081 #define WindowWx Window 00082 typedef void* XtPointer; 00083 typedef char Boolean; 00084 typedef union _XEvent XEvent; 00085 typedef void (*XtEventHandler) (struct _WidgetRec*, void*, XEvent*, Boolean*); 00086 00087 #endif 00088 00089 #endif //SO_WX_DEF 00090 00091 00092