Open Inventor
Release 2023.2.3
Loading...
Searching...
No Matches
SoQtDef.h
Go to the documentation of this file.
1
/*=======================================================================
2
*** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3
*** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4
*** ***
5
*** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6
*** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7
*** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8
*** ***
9
*** RESTRICTED RIGHTS LEGEND ***
10
*** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11
*** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12
*** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13
*** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14
*** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15
*** ***
16
*** COPYRIGHT (C) 1996-2019 BY FEI S.A.S, ***
17
*** BORDEAUX, FRANCE ***
18
*** ALL RIGHTS RESERVED ***
19
**=======================================================================*/
20
/*=======================================================================
21
** Author : VSG (MMM YYYY)
22
**=======================================================================*/
23
24
#ifndef _SO_QT_DEF_
25
#define _SO_QT_DEF_
26
27
#include <
Inventor/helpers/SbGlContextHelper.h
>
28
29
// avoid conflict with declaration made in X headers
30
//#if defined (Bool)
31
//#undef Bool
32
//#endif
33
34
#if !defined(Widget)
35
36
#if defined(SoWidget)
37
# undef SoWidget
38
#endif
39
40
#define SoWidget QWidget*
41
42
// Defined for compatibility purpose
43
// We disbale this when internally compiling OivSuite
44
#ifndef LIBRARYBUILD
45
# define Widget QWidget*
46
#endif
47
48
#endif
49
50
51
//
52
// WIN32
53
//
54
#ifdef _WIN32
55
56
// Redefine X data types in _WIN32 terms
57
#define XColor UINT
58
#define Boolean BOOLEAN
59
#define Colormap UINT
60
typedef
SbGlContextHelper::Display
Display;
61
#define XVisualInfo PIXELFORMATDESCRIPTOR
62
#define WindowQt HWND
63
#define GLXContext HGLRC
64
#define Hdc HDC
65
66
// Event types
67
#define XEvent MSG
68
69
// Redefine Xt and Motif data types in _WIN32 terms
70
#define XtPointer PVOID
71
#define XtEventHandler FARPROC
72
#define XtAppContext UINT
73
74
#include "tchar.h"
75
76
// XVisualInfo corresponds to PIXELFORMATDESCRIPTOR rather than
77
// "pixel format" because under Windows, pixel formats are per
78
// drawable rather than per display (like visuals under X). In
79
// other words, under Windows we can't get the description of a
80
// pixel format unless we have a valid device context and that
81
// is often inconvenient.
82
//
83
// Note that PIXELFORMATDESCRIPTOR also takes the place of GLX's
84
// "attribList" (which it is conceptually closer to).
85
86
#define XVisualInfo PIXELFORMATDESCRIPTOR
87
88
//
89
// APPLE
90
//
91
#elif defined __APPLE__
92
93
#ifndef BOOLEAN_TYPE_EXISTS
94
typedef
unsigned
char
Boolean
;
95
#define BOOLEAN_TYPE_EXISTS
96
#endif
97
98
#undef Display
99
typedef
int
Display;
100
#define XColor UINT
101
typedef
WId
WindowQt
;
102
typedef
WId
Window
;
103
104
// Event types
105
#define XEvent void*
106
107
// Redefine Xt and Motif data types in _WIN32 terms
108
#define XtPointer void*
109
#define XtEventHandler void*
110
#define XtAppContext void*
111
112
//
113
// UNIX
114
//
115
#else
116
117
#define WindowQt Window
118
typedef
void
*
XtPointer
;
119
typedef
char
Boolean
;
120
typedef
union
_XEvent
XEvent
;
121
typedef
void (*
XtEventHandler
) (
struct
_WidgetRec*,
void
*,
XEvent
*,
Boolean
*);
122
typedef
struct
_XtAppStruct*
XtAppContext
;
123
124
// we use XColorPointer typedef to avoid X header dependency in puvlic API headers
125
// XColorPointer is equivalent to XColor*
126
typedef
void
*
XColorPointer
;
127
128
#endif
129
130
#endif
//_SO_QT_DEF_
131
132
SbGlContextHelper.h
XEvent
union _XEvent XEvent
Definition
SoQtDef.h:120
Boolean
char Boolean
Definition
SoQtDef.h:119
XColorPointer
void * XColorPointer
Definition
SoQtDef.h:126
XtAppContext
struct _XtAppStruct * XtAppContext
Definition
SoQtDef.h:122
XtPointer
void * XtPointer
Definition
SoQtDef.h:118
XtEventHandler
void(* XtEventHandler)(struct _WidgetRec *, void *, XEvent *, Boolean *)
Definition
SoQtDef.h:121
WindowQt
#define WindowQt
Definition
SoQtDef.h:117
Window
#define Window
Definition
SoWinDef.h:81
SbGlContextHelper::Display
::Display * Display
Definition
SbGlContextHelper.h:146
Inventor
Qt
SoQtDef.h
Generated by
1.9.8