48inline Type SoGtkAbs(Type Val) {
49 return (Val < 0) ? -Val : Val;
53inline Type SoGtkMin(Type a, Type b) {
54 return (b < a) ? b : a;
58inline Type SoGtkMax(Type a, Type b) {
59 return (b > a) ? b : a;
63inline Type SoGtkClamp(Type val, Type min, Type max) {
64 return SoGtkMax(min, SoGtkMin(max, val));
68inline void SoGtkSwap(Type & a, Type & b) {
69 Type t = a; a = b; b = t;
76#if ! defined(SOGTK_MAJOR_VERSION)
77#define SOGTK_MAJOR_VERSION 0
79#if ! defined(SOGTK_MINOR_VERSION)
80#define SOGTK_MINOR_VERSION 1
82#if ! defined(SOGTK_MICRO_VERSION)
83#define SOGTK_MICRO_VERSION 0
85#if ! defined(SOGTK_BETA_VERSION)
86#define SOGTK_BETA_VERSION
88#if ! defined(SOGTK_VERSION)
89#define SOGTK_VERSION "0.1.0"
96# error Leave the internal SOGTK_DLL_API define alone.
128#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
129# ifdef SOGTK_INTERNAL
130# ifdef SOGTK_MAKE_DLL
131# define SOGTK_DLL_API __declspec(dllexport)
135# define SOGTK_DLL_API __declspec(dllimport)
137# ifndef SOGTK_NOT_DLL
138# error Define either SOGTK_DLL or SOGTK_NOT_DLL as appropriate for your linkage! See Inventor/Gtk/SoGtkBasic.h for further instructions.
146# define SOGTK_DLL_API
149#ifndef GUI_TOOLKIT_VERSION
150#define GUI_TOOLKIT_VERSION ".."