48inline Type SoWxAbs(Type Val) {
49 return (Val < 0) ? -Val : Val;
53inline Type SoWxMin(Type a, Type b) {
54 return (b < a) ? b : a;
58inline Type SoWxMax(Type a, Type b) {
59 return (b > a) ? b : a;
63inline Type SoWxClamp(Type val, Type min, Type max) {
64 return SoWxMax(min, SoWxMin(max, val));
68inline void SoWxSwap(Type & a, Type & b) {
69 Type t = a; a = b; b = t;
76#if ! defined(SOWX_MAJOR_VERSION)
77#define SOWX_MAJOR_VERSION 0
79#if ! defined(SOWX_MINOR_VERSION)
80#define SOWX_MINOR_VERSION 1
82#if ! defined(SOWX_MICRO_VERSION)
83#define SOWX_MICRO_VERSION 0
85#if ! defined(SOWX_BETA_VERSION)
86#define SOWX_BETA_VERSION
88#if ! defined(SOWX_VERSION)
89#define SOWX_VERSION "0.1.0"
96# error Leave the internal SOWX_DLL_API define alone.
128#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
131# define SOWX_DLL_API __declspec(dllexport)
135# define SOWX_DLL_API __declspec(dllimport)
138# error Define either SOWX_DLL or SOWX_NOT_DLL as appropriate for your linkage! See Inventor/Wx/SoWxBasic.h for further instructions.
149#ifndef GUI_TOOLKIT_VERSION
150#define GUI_TOOLKIT_VERSION "3.2.0"