40 inline Type SoQtAbs(Type Val) {
41 return (Val < 0) ? -Val : Val;
45 inline Type SoQtMin(Type a, Type b) {
46 return (b < a) ? b : a;
50 inline Type SoQtMax(Type a, Type b) {
51 return (b > a) ? b : a;
55 inline Type SoQtClamp(Type val, Type min, Type max) {
56 return SoQtMax(min, SoQtMin(max, val));
60 inline void SoQtSwap(Type & a, Type & b) {
61 Type t = a; a = b; b = t;
68 #if ! defined(SOQT_MAJOR_VERSION)
69 #define SOQT_MAJOR_VERSION 1
71 #if ! defined(SOQT_MINOR_VERSION)
72 #define SOQT_MINOR_VERSION 5
74 #if ! defined(SOQT_MICRO_VERSION)
75 #define SOQT_MICRO_VERSION 0
77 #if ! defined(SOQT_BETA_VERSION)
80 #if ! defined(SOQT_VERSION)
81 #define SOQT_VERSION "1.5.0"
88 # error Leave the internal SOQT_DLL_API define alone.
120 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
121 # ifdef SOQT_INTERNAL
122 # ifdef SOQT_MAKE_DLL
123 # define SOQT_DLL_API __declspec(dllexport)
127 # define SOQT_DLL_API __declspec(dllimport)
129 # ifndef SOQT_NOT_DLL
130 # error Define either SOQT_DLL or SOQT_NOT_DLL as appropriate for your linkage! See Inventor/Qt/SoQtBasic.h for further instructions.
138 # define SOQT_DLL_API
141 #ifndef GUI_TOOLKIT_VERSION
142 #define GUI_TOOLKIT_VERSION "484"
145 #endif // ! SOQT_BASIC_H