/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #ifndef SWIGRUBY #define SWIGRUBY #endif #ifdef __cplusplus /* SwigValueWrapper is described in swig.swg */ template class SwigValueWrapper { struct SwigMovePointer { T *ptr; SwigMovePointer(T *p) : ptr(p) { } ~SwigMovePointer() { delete ptr; } SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } } pointer; SwigValueWrapper& operator=(const SwigValueWrapper& rhs); SwigValueWrapper(const SwigValueWrapper& rhs); public: SwigValueWrapper() : pointer(0) { } SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } operator T&() const { return *pointer.ptr; } T *operator&() { return pointer.ptr; } }; template T SwigValueInit() { return T(); } #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if defined(__GNUC__) # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif /* Intel's compiler complains if a variable which was never initialised is * cast to void, which is a common idiom which we use to indicate that we * are aware a variable isn't used. So we just silence that warning. * See: https://github.com/swig/swig/issues/192 for more discussion. */ #ifdef __INTEL_COMPILER # pragma warning disable 592 #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb) { int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 #include #if defined(RB_METHOD_DEFINITION_DECL) # define RUBY_VALUE_METHOD_FUNC(func) (func) # define RUBY_INT_METHOD_FUNC(func) (func) # define RUBY_VOID_METHOD_FUNC(func) (func) # define RUBY_VOIDP_METHOD_FUNC(func) (func) #else # define RUBY_VALUE_METHOD_FUNC(func) ((VALUE (*)(ANYARGS))(func)) # define RUBY_INT_METHOD_FUNC(func) ((int (*)(ANYARGS))(func)) # define RUBY_VOID_METHOD_FUNC(func) ((void (*)(ANYARGS))(func)) # define RUBY_VOIDP_METHOD_FUNC(func) ((void *(*)(ANYARGS))(func)) #endif /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which * breaks using rb_intern as an lvalue, as SWIG does. We work around this * issue for now by disabling this. * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645 */ #ifdef rb_intern # undef rb_intern #endif /* Remove global macros defined in Ruby's win32.h */ #ifdef write # undef write #endif #ifdef read # undef read #endif #ifdef bind # undef bind #endif #ifdef close # undef close #endif #ifdef connect # undef connect #endif /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ #ifndef NUM2LL #define NUM2LL(x) NUM2LONG((x)) #endif #ifndef LL2NUM #define LL2NUM(x) INT2NUM((long) (x)) #endif #ifndef ULL2NUM #define ULL2NUM(x) UINT2NUM((unsigned long) (x)) #endif /* Ruby 1.7 doesn't (yet) define NUM2ULL() */ #ifndef NUM2ULL #ifdef HAVE_LONG_LONG #define NUM2ULL(x) rb_num2ull((x)) #else #define NUM2ULL(x) NUM2ULONG(x) #endif #endif /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */ /* Define these for older versions so we can just write code the new way */ #ifndef RSTRING_LEN # define RSTRING_LEN(x) RSTRING(x)->len #endif #ifndef RSTRING_PTR # define RSTRING_PTR(x) RSTRING(x)->ptr #endif #ifndef RSTRING_END # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x)) #endif #ifndef RARRAY_LEN # define RARRAY_LEN(x) RARRAY(x)->len #endif #ifndef RARRAY_PTR # define RARRAY_PTR(x) RARRAY(x)->ptr #endif #ifndef RFLOAT_VALUE # define RFLOAT_VALUE(x) RFLOAT(x)->value #endif #ifndef DOUBLE2NUM # define DOUBLE2NUM(x) rb_float_new(x) #endif #ifndef RHASH_TBL # define RHASH_TBL(x) (RHASH(x)->tbl) #endif #ifndef RHASH_ITER_LEV # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev) #endif #ifndef RHASH_IFNONE # define RHASH_IFNONE(x) (RHASH(x)->ifnone) #endif #ifndef RHASH_SIZE # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries) #endif #ifndef RHASH_EMPTY_P # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0) #endif #ifndef RSTRUCT_LEN # define RSTRUCT_LEN(x) RSTRUCT(x)->len #endif #ifndef RSTRUCT_PTR # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr #endif /* * Need to be very careful about how these macros are defined, especially * when compiling C++ code or C code with an ANSI C compiler. * * VALUEFUNC(f) is a macro used to typecast a C function that implements * a Ruby method so that it can be passed as an argument to API functions * like rb_define_method() and rb_define_singleton_method(). * * VOIDFUNC(f) is a macro used to typecast a C function that implements * either the "mark" or "free" stuff for a Ruby Data object, so that it * can be passed as an argument to API functions like Data_Wrap_Struct() * and Data_Make_Struct(). */ #ifdef __cplusplus # ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((void (*)()) f) # else # ifndef ANYARGS /* These definitions should work for Ruby 1.6 */ # define PROTECTFUNC(f) ((VALUE (*)()) f) # define VALUEFUNC(f) ((VALUE (*)()) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # else /* These definitions should work for Ruby 1.7+ */ # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f) # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f) # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) # endif # endif #else # define VALUEFUNC(f) (f) # define VOIDFUNC(f) (f) #endif /* Don't use for expressions have side effect */ #ifndef RB_STRING_VALUE #define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s))) #endif #ifndef StringValue #define StringValue(s) RB_STRING_VALUE(s) #endif #ifndef StringValuePtr #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s)) #endif #ifndef StringValueLen #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s)) #endif #ifndef SafeStringValue #define SafeStringValue(v) do {\ StringValue(v);\ rb_check_safe_str(v);\ } while (0) #endif #ifndef HAVE_RB_DEFINE_ALLOC_FUNC #define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1) #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") #endif static VALUE _mSWIG = Qnil; /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ /* Define some additional error types */ #define SWIG_ObjectPreviouslyDeletedError -100 /* Define custom exceptions for errors that do not map to existing Ruby exceptions. Note this only works for C++ since a global cannot be initialized by a function in C. For C, fallback to rb_eRuntimeError.*/ SWIGINTERN VALUE getNullReferenceError(void) { static int init = 0; static VALUE rb_eNullReferenceError ; if (!init) { init = 1; rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError); } return rb_eNullReferenceError; } SWIGINTERN VALUE getObjectPreviouslyDeletedError(void) { static int init = 0; static VALUE rb_eObjectPreviouslyDeleted ; if (!init) { init = 1; rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError); } return rb_eObjectPreviouslyDeleted; } SWIGINTERN VALUE SWIG_Ruby_ErrorType(int SWIG_code) { VALUE type; switch (SWIG_code) { case SWIG_MemoryError: type = rb_eNoMemError; break; case SWIG_IOError: type = rb_eIOError; break; case SWIG_RuntimeError: type = rb_eRuntimeError; break; case SWIG_IndexError: type = rb_eIndexError; break; case SWIG_TypeError: type = rb_eTypeError; break; case SWIG_DivisionByZero: type = rb_eZeroDivError; break; case SWIG_OverflowError: type = rb_eRangeError; break; case SWIG_SyntaxError: type = rb_eSyntaxError; break; case SWIG_ValueError: type = rb_eArgError; break; case SWIG_SystemError: type = rb_eFatal; break; case SWIG_AttributeError: type = rb_eRuntimeError; break; case SWIG_NullReferenceError: type = getNullReferenceError(); break; case SWIG_ObjectPreviouslyDeletedError: type = getObjectPreviouslyDeletedError(); break; case SWIG_UnknownError: type = rb_eRuntimeError; break; default: type = rb_eRuntimeError; } return type; } /* This function is called when a user inputs a wrong argument to a method. */ SWIGINTERN const char* Ruby_Format_TypeError( const char* msg, const char* type, const char* name, const int argn, VALUE input ) { char buf[128]; VALUE str; VALUE asStr; if ( msg && *msg ) { str = rb_str_new2(msg); } else { str = rb_str_new(NULL, 0); } str = rb_str_cat2( str, "Expected argument " ); sprintf( buf, "%d of type ", argn-1 ); str = rb_str_cat2( str, buf ); str = rb_str_cat2( str, type ); str = rb_str_cat2( str, ", but got " ); str = rb_str_cat2( str, rb_obj_classname(input) ); str = rb_str_cat2( str, " " ); asStr = rb_inspect(input); if ( RSTRING_LEN(asStr) > 30 ) { str = rb_str_cat( str, StringValuePtr(asStr), 30 ); str = rb_str_cat2( str, "..." ); } else { str = rb_str_append( str, asStr ); } if ( name ) { str = rb_str_cat2( str, "\n\tin SWIG method '" ); str = rb_str_cat2( str, name ); str = rb_str_cat2( str, "'" ); } return StringValuePtr( str ); } /* This function is called when an overloaded method fails */ SWIGINTERN void Ruby_Format_OverloadedError( const int argc, const int maxargs, const char* method, const char* prototypes ) { const char* msg = "Wrong # of arguments"; if ( argc <= maxargs ) msg = "Wrong arguments"; rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n" "Possible C/C++ prototypes are:\n%s", msg, method, prototypes); } /* ----------------------------------------------------------------------------- * rubytracking.swg * * This file contains support for tracking mappings from * Ruby objects to C++ objects. This functionality is needed * to implement mark functions for Ruby's mark and sweep * garbage collector. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif #if !defined(ST_DATA_T_DEFINED) /* Needs to be explicitly included for Ruby 1.8 and earlier */ #include #endif /* Ruby 1.8 actually assumes the first case. */ #if SIZEOF_VOIDP == SIZEOF_LONG # define SWIG2NUM(v) LONG2NUM((unsigned long)v) # define NUM2SWIG(x) (unsigned long)NUM2LONG(x) #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG # define SWIG2NUM(v) LL2NUM((unsigned long long)v) # define NUM2SWIG(x) (unsigned long long)NUM2LL(x) #else # error sizeof(void*) is not the same as long or long long #endif /* Global hash table to store Trackings from C/C++ structs to Ruby Objects. */ static st_table* swig_ruby_trackings = NULL; static VALUE swig_ruby_trackings_count(ID id, VALUE *var) { return SWIG2NUM(swig_ruby_trackings->num_entries); } /* Setup a hash table to store Trackings */ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { /* Create a hash table to store Trackings from C++ objects to Ruby objects. */ /* Try to see if some other .so has already created a tracking hash table, which we keep hidden in an instance var in the SWIG module. This is done to allow multiple DSOs to share the same tracking table. */ VALUE trackings_value = Qnil; /* change the variable name so that we can mix modules compiled with older SWIG's - this used to be called "@__trackings__" */ ID trackings_id = rb_intern( "@__safetrackings__" ); VALUE verbose = rb_gv_get("VERBOSE"); rb_gv_set("VERBOSE", Qfalse); trackings_value = rb_ivar_get( _mSWIG, trackings_id ); rb_gv_set("VERBOSE", verbose); /* The trick here is that we have to store the hash table pointer in a Ruby variable. We do not want Ruby's GC to treat this pointer as a Ruby object, so we convert it to a Ruby numeric value. */ if (trackings_value == Qnil) { /* No, it hasn't. Create one ourselves */ swig_ruby_trackings = st_init_numtable(); rb_ivar_set( _mSWIG, trackings_id, SWIG2NUM(swig_ruby_trackings) ); } else { swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value); } rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", RUBY_VALUE_METHOD_FUNC(swig_ruby_trackings_count), RUBY_VOID_METHOD_FUNC((rb_gvar_setter_t*)NULL)) ; } /* Add a Tracking from a C/C++ struct to a Ruby object */ SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { /* Store the mapping to the global hash table. */ st_insert(swig_ruby_trackings, (st_data_t)ptr, object); } /* Get the Ruby object that owns the specified C/C++ struct */ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { /* Now lookup the value stored in the global hash table */ VALUE value; if (st_lookup(swig_ruby_trackings, (st_data_t)ptr, &value)) { return value; } else { return Qnil; } } /* Remove a Tracking from a C/C++ struct to a Ruby object. It is very important to remove objects once they are destroyed since the same memory address may be reused later to create a new object. */ SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) { /* Delete the object from the hash table */ st_delete(swig_ruby_trackings, (st_data_t *)&ptr, NULL); } /* This is a helper method that unlinks a Ruby object from its underlying C++ object. This is needed if the lifetime of the Ruby object is longer than the C++ object */ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) { VALUE object = SWIG_RubyInstanceFor(ptr); if (object != Qnil) { if (TYPE(object) != T_DATA) abort(); DATA_PTR(object) = 0; } } /* This is a helper method that iterates over all the trackings passing the C++ object pointer and its related Ruby object to the passed callback function. */ /* Proxy method to abstract the internal trackings datatype */ static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_data_t meth) { ((void(*)(void*, VALUE))meth)((void*)ptr, (VALUE)obj); return ST_CONTINUE; } SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) { st_foreach(swig_ruby_trackings, RUBY_INT_METHOD_FUNC(swig_ruby_internal_iterate_callback), (st_data_t)meth); } #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * Ruby API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif SWIGINTERN VALUE SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { if (NIL_P(target)) { target = o; } else { if (TYPE(target) != T_ARRAY) { VALUE o2 = target; target = rb_ary_new(); rb_ary_push(target, o2); } rb_ary_push(target, o); } return target; } /* For ruby1.8.4 and earlier. */ #ifndef RUBY_INIT_STACK RUBY_EXTERN void Init_stack(VALUE* addr); # define RUBY_INIT_STACK \ VALUE variable_in_this_stack_frame; \ Init_stack(&variable_in_this_stack_frame); #endif #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * rubyrun.swg * * This file contains the runtime support for Ruby modules * and includes code for managing global variables and pointer * type checking. * ----------------------------------------------------------------------------- */ /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 /* for raw pointers */ #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own) #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags) #define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own) #define swig_owntype swig_ruby_owntype /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) /* Error manipulation */ #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code) #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg) #define SWIG_fail goto fail /* Ruby-specific SWIG API */ #define SWIG_InitRuntime() SWIG_Ruby_InitRuntime() #define SWIG_define_class(ty) SWIG_Ruby_define_class(ty) #define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty) #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value) #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty) #include "assert.h" /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif typedef struct { VALUE klass; VALUE mImpl; void (*mark)(void *); void (*destroy)(void *); int trackObjects; } swig_class; /* Global pointer used to keep some internal SWIG stuff */ static VALUE _cSWIG_Pointer = Qnil; static VALUE swig_runtime_data_type_pointer = Qnil; /* Global IDs used to keep some internal SWIG stuff */ static ID swig_arity_id = 0; static ID swig_call_id = 0; /* If your swig extension is to be run within an embedded ruby and has director callbacks, you should set -DRUBY_EMBEDDED during compilation. This will reset ruby's stack frame on each entry point from the main program the first time a virtual director function is invoked (in a non-recursive way). If this is not done, you run the risk of Ruby trashing the stack. */ #ifdef RUBY_EMBEDDED # define SWIG_INIT_STACK \ if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \ ++swig_virtual_calls; # define SWIG_RELEASE_STACK --swig_virtual_calls; # define Ruby_DirectorTypeMismatchException(x) \ rb_raise( rb_eTypeError, "%s", x ); return c_result; static unsigned int swig_virtual_calls = 0; #else /* normal non-embedded extension */ # define SWIG_INIT_STACK # define SWIG_RELEASE_STACK # define Ruby_DirectorTypeMismatchException(x) \ throw Swig::DirectorTypeMismatchException( x ); #endif /* RUBY_EMBEDDED */ SWIGRUNTIME VALUE getExceptionClass(void) { static int init = 0; static VALUE rubyExceptionClass ; if (!init) { init = 1; rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception")); } return rubyExceptionClass; } /* This code checks to see if the Ruby object being raised as part of an exception inherits from the Ruby class Exception. If so, the object is simply returned. If not, then a new Ruby exception object is created and that will be returned to Ruby.*/ SWIGRUNTIME VALUE SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) { VALUE exceptionClass = getExceptionClass(); if (rb_obj_is_kind_of(obj, exceptionClass)) { return obj; } else { return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj)); } } /* Initialize Ruby runtime support */ SWIGRUNTIME void SWIG_Ruby_InitRuntime(void) { if (_mSWIG == Qnil) { _mSWIG = rb_define_module("SWIG"); swig_call_id = rb_intern("call"); swig_arity_id = rb_intern("arity"); } } /* Define Ruby class for C type */ SWIGRUNTIME void SWIG_Ruby_define_class(swig_type_info *type) { char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); if (NIL_P(_cSWIG_Pointer)) { _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); } rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); free((void *) klass_name); } /* Create a new pointer object */ SWIGRUNTIME VALUE SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) { int own = flags & SWIG_POINTER_OWN; int track; char *klass_name; swig_class *sklass; VALUE klass; VALUE obj; if (!ptr) return Qnil; if (type->clientdata) { sklass = (swig_class *) type->clientdata; /* Are we tracking this class and have we already returned this Ruby object? */ track = sklass->trackObjects; if (track) { obj = SWIG_RubyInstanceFor(ptr); /* Check the object's type and make sure it has the correct type. It might not in cases where methods do things like downcast methods. */ if (obj != Qnil) { VALUE value = rb_iv_get(obj, "@__swigtype__"); const char* type_name = RSTRING_PTR(value); if (strcmp(type->name, type_name) == 0) { return obj; } } } /* Create a new Ruby object */ obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), ( own ? VOIDFUNC(sklass->destroy) : (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 ) ), ptr); /* If tracking is on for this class then track this object. */ if (track) { SWIG_RubyAddTracking(ptr, obj); } } else { klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); klass = rb_const_get(_mSWIG, rb_intern(klass_name)); free((void *) klass_name); obj = Data_Wrap_Struct(klass, 0, 0, ptr); } rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); return obj; } /* Create a new class instance (always owned) */ SWIGRUNTIME VALUE SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type) { VALUE obj; swig_class *sklass = (swig_class *) type->clientdata; obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0); rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); return obj; } /* Get type mangle from class name */ SWIGRUNTIMEINLINE char * SWIG_Ruby_MangleStr(VALUE obj) { VALUE stype = rb_iv_get(obj, "@__swigtype__"); return StringValuePtr(stype); } /* Acquire a pointer value */ typedef struct { void (*datafree)(void *); int own; } swig_ruby_owntype; SWIGRUNTIME swig_ruby_owntype SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) { swig_ruby_owntype oldown = {0, 0}; if (obj) { oldown.datafree = RDATA(obj)->dfree; RDATA(obj)->dfree = own.datafree; } return oldown; } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own) { char *c; swig_cast_info *tc; void *vptr = 0; /* Grab the pointer */ if (NIL_P(obj)) { if (ptr) *ptr = 0; return SWIG_OK; } else { if (TYPE(obj) != T_DATA) { return SWIG_ERROR; } Data_Get_Struct(obj, void, vptr); } if (own) { own->datafree = RDATA(obj)->dfree; own->own = 0; } /* Check to see if the input object is giving up ownership of the underlying C struct or C++ object. If so then we need to reset the destructor since the Ruby object no longer owns the underlying C++ object.*/ if (flags & SWIG_POINTER_DISOWN) { /* Is tracking on for this class? */ int track = 0; if (ty && ty->clientdata) { swig_class *sklass = (swig_class *) ty->clientdata; track = sklass->trackObjects; } if (track) { /* We are tracking objects for this class. Thus we change the destructor * to SWIG_RubyRemoveTracking. This allows us to * remove the mapping from the C++ to Ruby object * when the Ruby object is garbage collected. If we don't * do this, then it is possible we will return a reference * to a Ruby object that no longer exists thereby crashing Ruby. */ RDATA(obj)->dfree = SWIG_RubyRemoveTracking; } else { RDATA(obj)->dfree = 0; } } /* Do type-checking if type info was provided */ if (ty) { if (ty->clientdata) { if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) { if (vptr == 0) { /* The object has already been deleted */ return SWIG_ObjectPreviouslyDeletedError; } } } if ((c = SWIG_MangleStr(obj)) == NULL) { return SWIG_ERROR; } tc = SWIG_TypeCheck(c, ty); if (!tc) { return SWIG_ERROR; } else { if (ptr) { if (tc->type == ty) { *ptr = vptr; } else { int newmemory = 0; *ptr = SWIG_TypeCast(tc, vptr, &newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) own->own = own->own | SWIG_CAST_NEW_MEMORY; } } } } } else { if (ptr) *ptr = vptr; } return SWIG_OK; } /* Check convert */ SWIGRUNTIMEINLINE int SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty) { char *c = SWIG_MangleStr(obj); if (!c) return 0; return SWIG_TypeCheck(c,ty) != 0; } SWIGRUNTIME VALUE SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; *(r++) = '_'; r = SWIG_PackData(r, ptr, sz); strcpy(r, type->name); return rb_str_new2(result); } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) { swig_cast_info *tc; const char *c; if (TYPE(obj) != T_STRING) goto type_error; c = StringValuePtr(obj); /* Pointer values must start with leading underscore */ if (*c != '_') goto type_error; c++; c = SWIG_UnpackData(c, ptr, sz); if (ty) { tc = SWIG_TypeCheck(c, ty); if (!tc) goto type_error; } return SWIG_OK; type_error: return SWIG_ERROR; } SWIGRUNTIME swig_module_info * SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata)) { VALUE pointer; swig_module_info *ret = 0; VALUE verbose = rb_gv_get("VERBOSE"); /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */ rb_gv_set("VERBOSE", Qfalse); /* first check if pointer already created */ pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); if (pointer != Qnil) { Data_Get_Struct(pointer, swig_module_info, ret); } /* reinstate warnings */ rb_gv_set("VERBOSE", verbose); return ret; } SWIGRUNTIME void SWIG_Ruby_SetModule(swig_module_info *pointer) { /* register a new class */ VALUE cl = rb_define_class("swig_runtime_data", rb_cObject); /* create and store the structure pointer to a global variable */ swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer); rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer); } /* This function can be used to check whether a proc or method or similarly callable function has been passed. Usually used in a %typecheck, like: %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) { $result = SWIG_Ruby_isCallable( $input ); } */ SWIGINTERN int SWIG_Ruby_isCallable( VALUE proc ) { if ( rb_respond_to( proc, swig_call_id ) ) return 1; return 0; } /* This function can be used to check the arity (number of arguments) a proc or method can take. Usually used in a %typecheck. Valid arities will be that equal to minimal or those < 0 which indicate a variable number of parameters at the end. */ SWIGINTERN int SWIG_Ruby_arity( VALUE proc, int minimal ) { if ( rb_respond_to( proc, swig_arity_id ) ) { VALUE num = rb_funcall( proc, swig_arity_id, 0 ); int arity = NUM2INT(num); if ( arity < 0 && (arity+1) < -minimal ) return 1; if ( arity == minimal ) return 1; return 1; } return 0; } #ifdef __cplusplus } #endif #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else #define SWIG_exception(code, msg) do { SWIG_Error(code, msg);; } while(0) /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_FX4Splitter swig_types[0] #define SWIGTYPE_p_FX7Segment swig_types[1] #define SWIGTYPE_p_FXAccelTable swig_types[2] #define SWIGTYPE_p_FXApp swig_types[3] #define SWIGTYPE_p_FXArrowButton swig_types[4] #define SWIGTYPE_p_FXBitmap swig_types[5] #define SWIGTYPE_p_FXBitmapFrame swig_types[6] #define SWIGTYPE_p_FXCURCursor swig_types[7] #define SWIGTYPE_p_FXCanvas swig_types[8] #define SWIGTYPE_p_FXColorBar swig_types[9] #define SWIGTYPE_p_FXColorRing swig_types[10] #define SWIGTYPE_p_FXColorSelector swig_types[11] #define SWIGTYPE_p_FXColorWell swig_types[12] #define SWIGTYPE_p_FXColorWheel swig_types[13] #define SWIGTYPE_p_FXComboBox swig_types[14] #define SWIGTYPE_p_FXComposite swig_types[15] #define SWIGTYPE_p_FXCursor swig_types[16] #define SWIGTYPE_p_FXDataTarget swig_types[17] #define SWIGTYPE_p_FXDebugTarget swig_types[18] #define SWIGTYPE_p_FXDelegator swig_types[19] #define SWIGTYPE_p_FXDial swig_types[20] #define SWIGTYPE_p_FXDict swig_types[21] #define SWIGTYPE_p_FXDirBox swig_types[22] #define SWIGTYPE_p_FXDirSelector swig_types[23] #define SWIGTYPE_p_FXDockBar swig_types[24] #define SWIGTYPE_p_FXDockHandler swig_types[25] #define SWIGTYPE_p_FXDockSite swig_types[26] #define SWIGTYPE_p_FXDockTitle swig_types[27] #define SWIGTYPE_p_FXDocument swig_types[28] #define SWIGTYPE_p_FXDragCorner swig_types[29] #define SWIGTYPE_p_FXDrawable swig_types[30] #define SWIGTYPE_p_FXDriveBox swig_types[31] #define SWIGTYPE_p_FXExtentd swig_types[32] #define SWIGTYPE_p_FXExtentf swig_types[33] #define SWIGTYPE_p_FXFileDict swig_types[34] #define SWIGTYPE_p_FXFileSelector swig_types[35] #define SWIGTYPE_p_FXFileStream swig_types[36] #define SWIGTYPE_p_FXFont swig_types[37] #define SWIGTYPE_p_FXFontSelector swig_types[38] #define SWIGTYPE_p_FXFrame swig_types[39] #define SWIGTYPE_p_FXGIFCursor swig_types[40] #define SWIGTYPE_p_FXGLCanvas swig_types[41] #define SWIGTYPE_p_FXGLContext swig_types[42] #define SWIGTYPE_p_FXGLObject swig_types[43] #define SWIGTYPE_p_FXGLShape swig_types[44] #define SWIGTYPE_p_FXGLViewer swig_types[45] #define SWIGTYPE_p_FXGLVisual swig_types[46] #define SWIGTYPE_p_FXGradientBar swig_types[47] #define SWIGTYPE_p_FXGroupBox swig_types[48] #define SWIGTYPE_p_FXHeader swig_types[49] #define SWIGTYPE_p_FXHeaderItem swig_types[50] #define SWIGTYPE_p_FXHorizontalFrame swig_types[51] #define SWIGTYPE_p_FXHorizontalSeparator swig_types[52] #define SWIGTYPE_p_FXIcon swig_types[53] #define SWIGTYPE_p_FXIconDict swig_types[54] #define SWIGTYPE_p_FXId swig_types[55] #define SWIGTYPE_p_FXImageFrame swig_types[56] #define SWIGTYPE_p_FXImageView swig_types[57] #define SWIGTYPE_p_FXKnob swig_types[58] #define SWIGTYPE_p_FXLight swig_types[59] #define SWIGTYPE_p_FXListBox swig_types[60] #define SWIGTYPE_p_FXMainWindow swig_types[61] #define SWIGTYPE_p_FXMat3d swig_types[62] #define SWIGTYPE_p_FXMat3f swig_types[63] #define SWIGTYPE_p_FXMat4d swig_types[64] #define SWIGTYPE_p_FXMat4f swig_types[65] #define SWIGTYPE_p_FXMaterial swig_types[66] #define SWIGTYPE_p_FXMatrix swig_types[67] #define SWIGTYPE_p_FXMemoryStream swig_types[68] #define SWIGTYPE_p_FXObject swig_types[69] #define SWIGTYPE_p_FXPacker swig_types[70] #define SWIGTYPE_p_FXPopup swig_types[71] #define SWIGTYPE_p_FXProgressBar swig_types[72] #define SWIGTYPE_p_FXQuatd swig_types[73] #define SWIGTYPE_p_FXQuatf swig_types[74] #define SWIGTYPE_p_FXRanged swig_types[75] #define SWIGTYPE_p_FXRangef swig_types[76] #define SWIGTYPE_p_FXRealSlider swig_types[77] #define SWIGTYPE_p_FXRealSpinner swig_types[78] #define SWIGTYPE_p_FXRecentFiles swig_types[79] #define SWIGTYPE_p_FXRegion swig_types[80] #define SWIGTYPE_p_FXRegistry swig_types[81] #define SWIGTYPE_p_FXRootWindow swig_types[82] #define SWIGTYPE_p_FXRuler swig_types[83] #define SWIGTYPE_p_FXRulerView swig_types[84] #define SWIGTYPE_p_FXScrollArea swig_types[85] #define SWIGTYPE_p_FXScrollBar swig_types[86] #define SWIGTYPE_p_FXScrollCorner swig_types[87] #define SWIGTYPE_p_FXScrollWindow swig_types[88] #define SWIGTYPE_p_FXSeparator swig_types[89] #define SWIGTYPE_p_FXSettings swig_types[90] #define SWIGTYPE_p_FXShell swig_types[91] #define SWIGTYPE_p_FXShutter swig_types[92] #define SWIGTYPE_p_FXShutterItem swig_types[93] #define SWIGTYPE_p_FXSlider swig_types[94] #define SWIGTYPE_p_FXSphered swig_types[95] #define SWIGTYPE_p_FXSpheref swig_types[96] #define SWIGTYPE_p_FXSpinner swig_types[97] #define SWIGTYPE_p_FXSplashWindow swig_types[98] #define SWIGTYPE_p_FXSplitter swig_types[99] #define SWIGTYPE_p_FXSpring swig_types[100] #define SWIGTYPE_p_FXStatusBar swig_types[101] #define SWIGTYPE_p_FXStatusLine swig_types[102] #define SWIGTYPE_p_FXStream swig_types[103] #define SWIGTYPE_p_FXStringDict swig_types[104] #define SWIGTYPE_p_FXSwitcher swig_types[105] #define SWIGTYPE_p_FXTabBar swig_types[106] #define SWIGTYPE_p_FXTabBook swig_types[107] #define SWIGTYPE_p_FXTextField swig_types[108] #define SWIGTYPE_p_FXToolBar swig_types[109] #define SWIGTYPE_p_FXToolBarGrip swig_types[110] #define SWIGTYPE_p_FXToolBarShell swig_types[111] #define SWIGTYPE_p_FXToolBarTab swig_types[112] #define SWIGTYPE_p_FXToolTip swig_types[113] #define SWIGTYPE_p_FXTopWindow swig_types[114] #define SWIGTYPE_p_FXTranslator swig_types[115] #define SWIGTYPE_p_FXTreeListBox swig_types[116] #define SWIGTYPE_p_FXVec2d swig_types[117] #define SWIGTYPE_p_FXVec2f swig_types[118] #define SWIGTYPE_p_FXVec3d swig_types[119] #define SWIGTYPE_p_FXVec3f swig_types[120] #define SWIGTYPE_p_FXVec4d swig_types[121] #define SWIGTYPE_p_FXVec4f swig_types[122] #define SWIGTYPE_p_FXVerticalFrame swig_types[123] #define SWIGTYPE_p_FXVerticalSeparator swig_types[124] #define SWIGTYPE_p_FXViewport swig_types[125] #define SWIGTYPE_p_FXVisual swig_types[126] #define SWIGTYPE_p_FXWindow swig_types[127] #define SWIGTYPE_p_char swig_types[128] #define SWIGTYPE_p_double swig_types[129] #define SWIGTYPE_p_float swig_types[130] #define SWIGTYPE_p_int swig_types[131] #define SWIGTYPE_p_long swig_types[132] #define SWIGTYPE_p_short swig_types[133] #define SWIGTYPE_p_unsigned_char swig_types[134] #define SWIGTYPE_p_unsigned_int swig_types[135] #define SWIGTYPE_p_unsigned_long swig_types[136] #define SWIGTYPE_p_unsigned_short swig_types[137] static swig_type_info *swig_types[139]; static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #define SWIG_init Init_fx3d #define SWIG_name "Fx3d" #define SWIG_RUBY_THREAD_BEGIN_BLOCK #define SWIG_RUBY_THREAD_END_BLOCK #define SWIGVERSION 0x030012 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) #include #include "FXRbCommon.h" inline FXColor to_FXColor(VALUE obj){ if(TYPE(obj)==T_STRING){ return fxcolorfromname(StringValuePtr(obj)); } else if(TYPE(obj)==T_SYMBOL){ return fxcolorfromname(rb_id2name(SYM2ID(obj))); } else{ return NUM2ULONG(obj); } } inline FXString to_FXString(VALUE obj){ if(!NIL_P(obj)){ Check_Type(obj,T_STRING); return FXString(StringValuePtr(obj)); } else{ return FXString::null; } } inline FXbool to_FXbool(VALUE obj){ if (obj == Qtrue || obj == Qfalse){ return (obj == Qtrue) ? TRUE : FALSE; } else{ return static_cast(NUM2UINT(obj)); } } static swig_type_info* FXEventTypeInfo=0; inline void* to_FXEvent(VALUE obj){ void* ptr; if(!FXEventTypeInfo){ FXEventTypeInfo=SWIG_TypeQuery("FXEvent *"); FXASSERT(FXEventTypeInfo!=0); } SWIG_ConvertPtr(obj,&ptr,FXEventTypeInfo,1); return ptr; } #include #include /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ #ifndef SWIG_isfinite /* isfinite() is a macro for C99 */ # if defined(isfinite) # define SWIG_isfinite(X) (isfinite(X)) # elif defined __cplusplus && __cplusplus >= 201103L /* Use a template so that this works whether isfinite() is std::isfinite() or * in the global namespace. The reality seems to vary between compiler * versions. * * Make sure namespace std exists to avoid compiler warnings. * * extern "C++" is required as this fragment can end up inside an extern "C" { } block */ namespace std { } extern "C++" template inline int SWIG_isfinite_func(T x) { using namespace std; return isfinite(x); } # define SWIG_isfinite(X) (SWIG_isfinite_func(X)) # elif defined(_MSC_VER) # define SWIG_isfinite(X) (_finite(X)) # elif defined(__sun) && defined(__SVR4) # include # define SWIG_isfinite(X) (finite(X)) # endif #endif /* Accept infinite as a valid float value unless we are unable to check if a value is finite */ #ifdef SWIG_isfinite # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) #else # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) #endif SWIGINTERN VALUE SWIG_ruby_failed(VALUE, VALUE) { return Qnil; } /*@SWIG:/usr/share/swig3.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE pargs){VALUE *args=(VALUE *)pargs; VALUE obj = args[0]; VALUE type = TYPE(obj); double *res = (double *)(args[1]); *res = NUM2DBL(obj); (void)type; return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_double (VALUE obj, double *val) { VALUE type = TYPE(obj); if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) { double v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_VALUE_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_VALUE_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_float (VALUE obj, float *val) { double v; int res = SWIG_AsVal_double (obj, &v); if (SWIG_IsOK(res)) { if (SWIG_Float_Overflow_Check(v)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< float >(v); } } return res; } #define SWIG_From_double rb_float_new SWIGINTERNINLINE VALUE SWIG_From_float (float value) { return SWIG_From_double (value); } SWIGINTERN FXfloat FXVec2f___getitem__(FXVec2f const *self,FXint i){ if(i<0||i>1) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXfloat FXVec2f___setitem__(FXVec2f *self,FXint i,FXfloat f){ if(i<0||i>1) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=f; return f; } SWIGINTERN FXVec2f FXVec2f_operator_Ss_(FXVec2f const *self){ return -(*self); } SWIGINTERN FXVec2f FXVec2f_operator_Sa_(FXVec2f const *self,FXVec2f const &other){ return (*self)+other; } SWIGINTERN FXVec2f FXVec2f_operator_Ss_(FXVec2f const *self,FXVec2f const &other){ return (*self)-other; } SWIGINTERN FXVec2f FXVec2f_operator_Sm___SWIG_0(FXVec2f const *self,FXfloat n){ return (*self)*n; } SWIGINTERN FXVec2f FXVec2f_operator_Sd_(FXVec2f const *self,FXfloat n){ if(n==0.0f) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } SWIGINTERN FXfloat FXVec2f_operator_Sm___SWIG_1(FXVec2f const *self,FXVec2f const &other){ return (*self)*other; } SWIGINTERN FXfloat FXVec2f_dot(FXVec2f const *self,FXVec2f const &other){ return (*self)*other; } SWIGINTERN bool FXVec2f_operator_Se__Se_(FXVec2f const *self,FXVec2f const &other){ return (*self)==other; } SWIGINTERNINLINE VALUE SWIG_From_bool (bool value) { return value ? Qtrue : Qfalse; } SWIGINTERN FXVec2f FXVec2f_normalize(FXVec2f const *self){ return normalize(*self); } SWIGINTERN FXVec2f FXVec2f_lo(FXVec2f const *self,FXVec2f const &other){ return lo(*self,other); } SWIGINTERN FXVec2f FXVec2f_hi(FXVec2f const *self,FXVec2f const &other){ return hi(*self,other); } SWIGINTERN FXdouble FXVec2d___getitem__(FXVec2d const *self,FXint i){ if(i<0||i>1) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXdouble FXVec2d___setitem__(FXVec2d *self,FXint i,FXdouble d){ if(i<0||i>1) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=d; return d; } SWIGINTERN FXVec2d FXVec2d_operator_Ss_(FXVec2d const *self){ return -(*self); } SWIGINTERN FXVec2d FXVec2d_operator_Sa_(FXVec2d const *self,FXVec2d const &other){ return (*self)+other; } SWIGINTERN FXVec2d FXVec2d_operator_Ss_(FXVec2d const *self,FXVec2d const &other){ return (*self)-other; } SWIGINTERN FXVec2d FXVec2d_operator_Sm___SWIG_0(FXVec2d const *self,FXdouble n){ return (*self)*n; } SWIGINTERN FXVec2d FXVec2d_operator_Sd_(FXVec2d const *self,FXdouble n){ if(n==0.0) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } SWIGINTERN FXdouble FXVec2d_operator_Sm___SWIG_1(FXVec2d const *self,FXVec2d const &other){ return (*self)*other; } SWIGINTERN FXdouble FXVec2d_dot(FXVec2d const *self,FXVec2d const &other){ return (*self)*other; } SWIGINTERN bool FXVec2d_operator_Se__Se_(FXVec2d const *self,FXVec2d const &other){ return (*self)==other; } SWIGINTERN FXVec2d FXVec2d_normalize(FXVec2d const *self){ return normalize(*self); } SWIGINTERN FXVec2d FXVec2d_lo(FXVec2d const *self,FXVec2d const &other){ return lo(*self,other); } SWIGINTERN FXVec2d FXVec2d_hi(FXVec2d const *self,FXVec2d const &other){ return hi(*self,other); } SWIGINTERN FXVec3f *new_FXVec3f__SWIG_0(){ return new FXVec3f(0.0f, 0.0f, 0.0f); } SWIGINTERN FXfloat FXVec3f___getitem__(FXVec3f const *self,FXint i){ if(i<0||i>2) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXfloat FXVec3f___setitem__(FXVec3f *self,FXint i,FXfloat f){ if(i<0||i>2) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=f; return f; } SWIGINTERN FXVec3f FXVec3f_operator_Ss_(FXVec3f const *self){ return -(*self); } SWIGINTERN FXVec3f FXVec3f_operator_Sa_(FXVec3f const *self,FXVec3f const &other){ return (*self)+other; } SWIGINTERN FXVec3f FXVec3f_operator_Ss_(FXVec3f const *self,FXVec3f const &other){ return (*self)-other; } SWIGINTERN FXVec3f FXVec3f_operator_Sm___SWIG_0(FXVec3f const *self,FXfloat n){ return (*self)*n; } SWIGINTERN FXVec3f FXVec3f_operator_Sd_(FXVec3f const *self,FXfloat n){ if(n==0.0f) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } SWIGINTERN FXfloat FXVec3f_operator_Sm___SWIG_1(FXVec3f const *self,FXVec3f const &other){ return (*self)*other; } SWIGINTERN FXfloat FXVec3f_dot(FXVec3f const *self,FXVec3f const &other){ return (*self)*other; } SWIGINTERN FXVec3f FXVec3f_operator_Sx_(FXVec3f const *self,FXVec3f const &other){ return (*self)^other; } SWIGINTERN FXVec3f FXVec3f_cross(FXVec3f const *self,FXVec3f const &other){ return (*self)^other; } SWIGINTERN bool FXVec3f_operator_Se__Se_(FXVec3f const *self,FXVec3f const &other){ return (*self)==other; } SWIGINTERN FXVec3f FXVec3f_normalize(FXVec3f const *self){ return normalize(*self); } SWIGINTERN FXVec3f FXVec3f_lo(FXVec3f const *self,FXVec3f const &other){ return lo(*self,other); } SWIGINTERN FXVec3f FXVec3f_hi(FXVec3f const *self,FXVec3f const &other){ return hi(*self,other); } SWIGINTERN FXVec3f FXVec3f_normal__SWIG_0(FXVec3f const &a,FXVec3f const &b,FXVec3f const &c){ return FX::normal(a,b,c); } SWIGINTERN FXVec3f FXVec3f_normal__SWIG_1(FXVec3f const &a,FXVec3f const &b,FXVec3f const &c,FXVec3f const &d){ return FX::normal(a,b,c,d); } SWIGINTERN FXVec3d *new_FXVec3d__SWIG_0(){ return new FXVec3d(0.0, 0.0, 0.0); } SWIGINTERN FXdouble FXVec3d___getitem__(FXVec3d const *self,FXint i){ if(i<0||i>2) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXdouble FXVec3d___setitem__(FXVec3d *self,FXint i,FXdouble d){ if(i<0||i>2) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=d; return d; } SWIGINTERN FXVec3d FXVec3d_operator_Ss_(FXVec3d const *self){ return -(*self); } SWIGINTERN FXVec3d FXVec3d_operator_Sa_(FXVec3d const *self,FXVec3d const &other){ return (*self)+other; } SWIGINTERN FXVec3d FXVec3d_operator_Ss_(FXVec3d const *self,FXVec3d const &other){ return (*self)-other; } SWIGINTERN FXVec3d FXVec3d_operator_Sm___SWIG_0(FXVec3d const *self,FXdouble n){ return (*self)*n; } SWIGINTERN FXVec3d FXVec3d_operator_Sd_(FXVec3d const *self,FXdouble n){ if(n==0.0) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } SWIGINTERN FXdouble FXVec3d_operator_Sm___SWIG_1(FXVec3d const *self,FXVec3d const &other){ return (*self)*other; } SWIGINTERN FXdouble FXVec3d_dot(FXVec3d const *self,FXVec3d const &other){ return (*self)*other; } SWIGINTERN FXVec3d FXVec3d_operator_Sx_(FXVec3d const *self,FXVec3d const &other){ return (*self)^other; } SWIGINTERN FXVec3d FXVec3d_cross(FXVec3d const *self,FXVec3d const &other){ return (*self)^other; } SWIGINTERN bool FXVec3d_operator_Se__Se_(FXVec3d const *self,FXVec3d const &other){ return (*self)==other; } SWIGINTERN FXVec3d FXVec3d_normalize(FXVec3d const *self){ return normalize(*self); } SWIGINTERN FXVec3d FXVec3d_lo(FXVec3d const *self,FXVec3d const &other){ return lo(*self,other); } SWIGINTERN FXVec3d FXVec3d_hi(FXVec3d const *self,FXVec3d const &other){ return hi(*self,other); } SWIGINTERN FXVec3d FXVec3d_normal__SWIG_0(FXVec3d const &a,FXVec3d const &b,FXVec3d const &c){ return FX::normal(a,b,c); } SWIGINTERN FXVec3d FXVec3d_normal__SWIG_1(FXVec3d const &a,FXVec3d const &b,FXVec3d const &c,FXVec3d const &d){ return FX::normal(a,b,c,d); } SWIGINTERN FXVec4f *new_FXVec4f__SWIG_0(){ return new FXVec4f(0.0f, 0.0f, 0.0f, 0.0f); } SWIGINTERN FXfloat FXVec4f___getitem__(FXVec4f const *self,FXint i){ if(i<0||i>3) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXfloat FXVec4f___setitem__(FXVec4f *self,FXint i,FXfloat f){ if(i<0||i>3) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=f; return f; } SWIGINTERN FXVec4f FXVec4f_operator_Ss_(FXVec4f const *self){ return -(*self); } SWIGINTERN FXVec4f FXVec4f_operator_Sa_(FXVec4f const *self,FXVec4f const &b){ return (*self)+b; } SWIGINTERN FXVec4f FXVec4f_operator_Ss_(FXVec4f const *self,FXVec4f const &b){ return (*self)-b; } SWIGINTERN FXVec4f FXVec4f_operator_Sm___SWIG_0(FXVec4f const *self,FXfloat n){ return (*self)*n; } SWIGINTERN FXVec4f FXVec4f_operator_Sd_(FXVec4f const *self,FXfloat n){ if(n==0.0f) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } SWIGINTERN FXfloat FXVec4f_operator_Sm___SWIG_1(FXVec4f const *self,FXVec4f const &a){ return (*self)*a; } SWIGINTERN FXfloat FXVec4f_dot(FXVec4f const *self,FXVec4f const &a){ return (*self)*a; } SWIGINTERN bool FXVec4f_operator_Se__Se___SWIG_0(FXVec4f const *self,FXVec4f const &b){ return (*self == b); } SWIGINTERN bool FXVec4f_operator_Se__Se___SWIG_1(FXVec4f const *self,FXfloat n){ return (*self == n); } SWIGINTERN FXVec4f FXVec4f_normalize(FXVec4f const *self){ return normalize(*self); } SWIGINTERN FXVec4f FXVec4f_lo(FXVec4f const *self,FXVec4f const &other){ return lo(*self,other); } SWIGINTERN FXVec4f FXVec4f_hi(FXVec4f const *self,FXVec4f const &other){ return hi(*self,other); } SWIGINTERN FXVec4f FXVec4f_plane__SWIG_0(FXVec4f const &vec){ return FX::plane(vec); } SWIGINTERN FXVec4f FXVec4f_plane__SWIG_1(FXVec3f const &vec,FXfloat dist){ return FX::plane(vec,dist); } SWIGINTERN FXVec4f FXVec4f_plane__SWIG_2(FXVec3f const &vec,FXVec3f const &p){ return FX::plane(vec,p); } SWIGINTERN FXVec4f FXVec4f_plane__SWIG_3(FXVec3f const &a,FXVec3f const &b,FXVec3f const &c){ return FX::plane(a,b,c); } SWIGINTERN FXVec4d *new_FXVec4d__SWIG_0(){ return new FXVec4d(0.0, 0.0, 0.0, 0.0); } SWIGINTERN FXdouble FXVec4d___getitem__(FXVec4d const *self,FXint i){ if(i<0||i>3) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXdouble FXVec4d___setitem__(FXVec4d *self,FXint i,FXdouble d){ if(i<0||i>3) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=d; return d; } SWIGINTERN FXVec4d FXVec4d_operator_Ss_(FXVec4d const *self){ return -(*self); } SWIGINTERN FXVec4d FXVec4d_operator_Sa_(FXVec4d const *self,FXVec4d const &other){ return (*self)+other; } SWIGINTERN FXVec4d FXVec4d_operator_Ss_(FXVec4d const *self,FXVec4d const &other){ return (*self)-other; } SWIGINTERN FXVec4d FXVec4d_operator_Sm___SWIG_0(FXVec4d const *self,FXdouble n){ return (*self)*n; } SWIGINTERN FXVec4d FXVec4d_operator_Sd_(FXVec4d const *self,FXdouble n){ if(n==0.0) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/n; } SWIGINTERN FXdouble FXVec4d_operator_Sm___SWIG_1(FXVec4d const *self,FXVec4d const &other){ return (*self)*other; } SWIGINTERN FXdouble FXVec4d_dot(FXVec4d const *self,FXVec4d const &other){ return (*self)*other; } SWIGINTERN bool FXVec4d_operator_Se__Se_(FXVec4d const *self,FXVec4d const &other){ return (*self)==other; } SWIGINTERN FXVec4d FXVec4d_normalize(FXVec4d const *self){ return normalize(*self); } SWIGINTERN FXVec4d FXVec4d_lo(FXVec4d const *self,FXVec4d const &other){ return lo(*self,other); } SWIGINTERN FXVec4d FXVec4d_hi(FXVec4d const *self,FXVec4d const &other){ return hi(*self,other); } SWIGINTERN FXVec4d FXVec4d_plane__SWIG_0(FXVec4d const &vec){ return FX::plane(vec); } SWIGINTERN FXVec4d FXVec4d_plane__SWIG_1(FXVec3d const &vec,FXdouble dist){ return FX::plane(vec,dist); } SWIGINTERN FXVec4d FXVec4d_plane__SWIG_2(FXVec3d const &vec,FXVec3d const &p){ return FX::plane(vec,p); } SWIGINTERN FXVec4d FXVec4d_plane__SWIG_3(FXVec3d const &a,FXVec3d const &b,FXVec3d const &c){ return FX::plane(a,b,c); } SWIGINTERN VALUE FXQuatf_getAxisAngle(FXQuatf const *self){ FXVec3f axis; FXfloat phi; self->getAxisAngle(axis,phi); return rb_ary_new3(2,rb_ary_new3(3,rb_float_new(axis.x),rb_float_new(axis.y),rb_float_new(axis.z)),rb_float_new(phi)); } SWIGINTERN VALUE FXQuatf_getRollPitchYaw(FXQuatf const *self){ FXfloat roll,pitch,yaw; self->getRollPitchYaw(roll,pitch,yaw); return rb_ary_new3(3,rb_float_new(roll),rb_float_new(pitch),rb_float_new(yaw)); } SWIGINTERN VALUE FXQuatf_getAxes(FXQuatf const *self){ FXVec3f ex,ey,ez; self->getAxes(ex,ey,ez); return rb_ary_new3(3,Qnil,Qnil,Qnil); // FIXME } SWIGINTERN FXQuatf FXQuatf_operator_Sm___SWIG_0(FXQuatf const *self,FXQuatf const &other){ return (*self)*other; } SWIGINTERN FXVec3f FXQuatf_operator_Sm___SWIG_1(FXQuatf const *self,FXVec3f const &vec){ return (*self)*vec; } SWIGINTERN VALUE FXQuatd_getAxisAngle(FXQuatd const *self){ FXVec3d axis; FXdouble phi; self->getAxisAngle(axis,phi); return rb_ary_new3(2,rb_ary_new3(3,rb_float_new(axis.x),rb_float_new(axis.y),rb_float_new(axis.z)),rb_float_new(phi)); } SWIGINTERN VALUE FXQuatd_getRollPitchYaw(FXQuatd const *self){ FXdouble roll,pitch,yaw; self->getRollPitchYaw(roll,pitch,yaw); return rb_ary_new3(3,rb_float_new(roll),rb_float_new(pitch),rb_float_new(yaw)); } SWIGINTERN FXQuatd FXQuatd_operator_Sm___SWIG_0(FXQuatd const *self,FXQuatd const &other){ return (*self)*other; } SWIGINTERN FXVec3d FXQuatd_operator_Sm___SWIG_1(FXQuatd const *self,FXVec3d const &vec){ return (*self)*vec; } SWIGINTERN VALUE FXQuatd_getAxes(FXQuatd const *self){ FXVec3d ex,ey,ez; self->getAxes(ex,ey,ez); return rb_ary_new3(3,Qnil,Qnil,Qnil); } SWIGINTERN FXVec3f const &FXMat3f___getitem__(FXMat3f const *self,FXint i){ if(i<0 || i>2) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXVec3f &FXMat3f___setitem__(FXMat3f *self,FXint i,FXVec3d const &other){ if(i<0 || i>2) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=other; return (*self)[i]; } SWIGINTERN FXMat3f FXMat3f_operator_Sa_(FXMat3f const *self,FXMat3f const &other){ return (*self)+other; } SWIGINTERN FXMat3f FXMat3f_operator_Ss_(FXMat3f const *self,FXMat3f const &other){ return (*self)-other; } SWIGINTERN FXMat3f FXMat3f_operator_Ss_(FXMat3f const *self){ return -(*self); } SWIGINTERN FXMat3f FXMat3f_operator_Sm___SWIG_0(FXMat3f const *self,FXMat3f const &other){ return (*self)*other; } SWIGINTERN FXMat3f FXMat3f_operator_Sm___SWIG_1(FXMat3f const *self,FXfloat x){ return (*self)*x; } SWIGINTERN FXMat3f FXMat3f_operator_Sd_(FXMat3f const *self,FXfloat x){ if(x==0.0f) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/x; } SWIGINTERN FXVec3f FXMat3f_operator_Sm___SWIG_2(FXMat3f const *self,FXVec3f const &other){ return (*self)*other; } SWIGINTERN FXVec2f FXMat3f_operator_Sm___SWIG_3(FXMat3f const *self,FXVec2f const &other){ return (*self)*other; } SWIGINTERN FXVec3d const &FXMat3d___getitem__(FXMat3d const *self,FXint i){ if(i<0 || i>2) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXVec3d &FXMat3d___setitem__(FXMat3d *self,FXint i,FXVec3d const &other){ if(i<0 || i>2) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=other; return (*self)[i]; } SWIGINTERN FXMat3d FXMat3d_operator_Sa_(FXMat3d const *self,FXMat3d const &other){ return (*self)+other; } SWIGINTERN FXMat3d FXMat3d_operator_Ss_(FXMat3d const *self,FXMat3d const &other){ return (*self)-other; } SWIGINTERN FXMat3d FXMat3d_operator_Ss_(FXMat3d const *self){ return -(*self); } SWIGINTERN FXMat3d FXMat3d_operator_Sm___SWIG_0(FXMat3d const *self,FXMat3d const &other){ return (*self)*other; } SWIGINTERN FXMat3d FXMat3d_operator_Sm___SWIG_1(FXMat3d const *self,FXdouble x){ return (*self)*x; } SWIGINTERN FXMat3d FXMat3d_operator_Sd_(FXMat3d const *self,FXdouble x){ if(x==0.0) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/x; } SWIGINTERN FXVec3d FXMat3d_operator_Sm___SWIG_2(FXMat3d const *self,FXVec3d const &other){ return (*self)*other; } SWIGINTERN FXVec2d FXMat3d_operator_Sm___SWIG_3(FXMat3d const *self,FXVec2d const &other){ return (*self)*other; } SWIGINTERN FXVec4f const &FXMat4f___getitem__(FXMat4f const *self,FXint i){ if(i<0 || i>3) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXVec4f &FXMat4f___setitem__(FXMat4f *self,FXint i,FXVec3d const &other){ if(i<0 || i>3) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=other; return (*self)[i]; } SWIGINTERN FXMat4f FXMat4f_operator_Sa_(FXMat4f const *self,FXMat4f const &other){ return (*self)+other; } SWIGINTERN FXMat4f FXMat4f_operator_Ss_(FXMat4f const *self,FXMat4f const &other){ return (*self)-other; } SWIGINTERN FXMat4f FXMat4f_operator_Sm___SWIG_0(FXMat4f const *self,FXMat4f const &other){ return (*self)*other; } SWIGINTERN FXMat4f FXMat4f_operator_Sm___SWIG_1(FXMat4f const *self,FXfloat x){ return (*self)*x; } SWIGINTERN FXVec4f FXMat4f_operator_Sm___SWIG_2(FXMat4f const *self,FXVec4f const &other){ return (*self)*other; } SWIGINTERN FXVec3f FXMat4f_operator_Sm___SWIG_3(FXMat4f const *self,FXVec3f const &other){ return (*self)*other; } SWIGINTERN FXMat4f FXMat4f_operator_Sd_(FXMat4f const *self,FXfloat x){ if(x==0.0f) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/x; } SWIGINTERN FXMat4f FXMat4f_operator_Ss_(FXMat4f const *self){ return -(*self); } SWIGINTERN FXString FXMat4f_to_s(FXMat4f const *self){ const FXMat4f& m = *self; return FXStringFormat("[[%g, %g, %g, %g], [%g, %g, %g, %g], [%g, %g, %g, %g], [%g, %g, %g, %g]]",m[0][0],m[0][1],m[0][2],m[0][3],m[1][0],m[1][1],m[1][2],m[1][3],m[2][0],m[2][1],m[2][2],m[2][3],m[3][0],m[3][1],m[3][2],m[3][3]); } SWIGINTERN FXVec4d const &FXMat4d___getitem__(FXMat4d const *self,FXint i){ if(i<0 || i>3) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN FXVec4d &FXMat4d___setitem__(FXMat4d *self,FXint i,FXVec3d const &other){ if(i<0 || i>3) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=other; return (*self)[i]; } SWIGINTERN FXMat4d FXMat4d_operator_Sa_(FXMat4d const *self,FXMat4d const &other){ return (*self)+other; } SWIGINTERN FXMat4d FXMat4d_operator_Ss_(FXMat4d const *self,FXMat4d const &other){ return (*self)-other; } SWIGINTERN FXMat4d FXMat4d_operator_Ss_(FXMat4d const *self){ return -(*self); } SWIGINTERN FXMat4d FXMat4d_operator_Sm___SWIG_0(FXMat4d const *self,FXMat4d const &other){ return (*self)*other; } SWIGINTERN FXMat4d FXMat4d_operator_Sm___SWIG_1(FXMat4d const *self,FXdouble x){ return (*self)*x; } SWIGINTERN FXMat4d FXMat4d_operator_Sd_(FXMat4d const *self,FXdouble x){ if(x==0.0) rb_raise(rb_eZeroDivError,"divided by 0"); return (*self)/x; } SWIGINTERN FXVec4d FXMat4d_operator_Sm___SWIG_2(FXMat4d const *self,FXVec4d const &other){ return (*self)*other; } SWIGINTERN FXVec3d FXMat4d_operator_Sm___SWIG_3(FXMat4d const *self,FXVec3d const &v){ return (*self)*v; } SWIGINTERN FXVec3f &FXRangef___getitem__(FXRangef *self,FXint i){ if(i<0||1upper; } SWIGINTERN FXVec3f FXRangef_lower(FXRangef const *self){ return self->lower; } #include #if !defined(SWIG_NO_LLONG_MAX) # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) # define LLONG_MAX __LONG_LONG_MAX__ # define LLONG_MIN (-LLONG_MAX - 1LL) # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) # endif #endif #define SWIG_From_long LONG2NUM SWIGINTERNINLINE VALUE SWIG_From_int (int value) { return SWIG_From_long (value); } SWIGINTERN bool FXRangef_overlaps(FXRangef const *self,FXRangef const &other){ return FX::overlap(*self,other); } SWIGINTERN FXVec3f FXRangef_corner(FXRangef const *self,FXint c){ if(c<0||7corner(c); } SWIGINTERN FXRangef FXRangef_onion(FXRangef const *self,FXRangef const &other){ return FX::unite(*self,other); } SWIGINTERN FXRangef FXRangef_intersection(FXRangef const *self,FXRangef const &other){ return FX::intersect(*self,other); } SWIGINTERN FXVec3d &FXRanged___getitem__(FXRanged *self,FXint i){ if(i<0||1corner(c); } SWIGINTERN FXRanged FXRanged_onion(FXRanged const *self,FXRanged const &other){ return FX::unite(*self,other); } SWIGINTERN FXRanged FXRanged_intersection(FXRanged const *self,FXRanged const &other){ return FX::intersect(*self,other); } SWIGINTERN bool FXSpheref_overlap__SWIG_0(FXSpheref const *self,FXRangef const &other){ return overlap(*self,other); } SWIGINTERN bool FXSpheref_overlap__SWIG_1(FXSpheref const *self,FXSpheref const &other){ return overlap(*self,other); } SWIGINTERN bool FXSphered_overlap__SWIG_0(FXSphered const *self,FXRanged const &other){ return overlap(*self,other); } SWIGINTERN bool FXSphered_overlap__SWIG_1(FXSphered const *self,FXSphered const &other){ return overlap(*self,other); } SWIGINTERN FXGLVisual *new_FXGLVisual(FXApp *a,FXuint flags){ return new FXRbGLVisual(a,flags); } SWIGINTERN VALUE FXGLVisual_supported(FXApp *application){ int major,minor; FXbool answer=FXGLVisual::supported(application,major,minor); return rb_ary_new3(3,answer?Qtrue:Qfalse,INT2NUM(major),INT2NUM(minor)); } /*@SWIG:/usr/share/swig3.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE pargs){VALUE *args=(VALUE *)pargs; VALUE obj = args[0]; VALUE type = TYPE(obj); long *res = (long *)(args[1]); *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_long (VALUE obj, long* val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_VALUE_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_VALUE_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_int (VALUE obj, int *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < INT_MIN || v > INT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< int >(v); } } return res; } SWIGINTERN FXGLContext *new_FXGLContext__SWIG_0(FXApp *a,FXGLVisual *vis){ return new FXRbGLContext(a,vis); } SWIGINTERN FXGLContext *new_FXGLContext__SWIG_1(FXApp *a,FXGLVisual *vis,FXGLContext *shared){ return new FXRbGLContext(a,vis,shared); } SWIGINTERN FXGLCanvas *new_FXGLCanvas__SWIG_0(FXComposite *p,FXGLVisual *vis,FXObject *tgt=0,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbGLCanvas(p,vis,tgt,sel,opts,x,y,w,h); } SWIGINTERN FXGLCanvas *new_FXGLCanvas__SWIG_1(FXComposite *p,FXGLVisual *vis,FXGLCanvas *sharegroup,FXObject *tgt=0,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbGLCanvas(p,vis,sharegroup,tgt,sel,opts,x,y,w,h); } SWIGINTERN FXuval FXGLCanvas_getCurrentContext(){ return reinterpret_cast(FXGLCanvas::getCurrentContext()); } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long (unsigned long value) { return ULONG2NUM(value); } SWIGINTERN FXuval FXGLCanvas_getContext(FXGLCanvas const *self){ return reinterpret_cast(self->getContext()); } SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { char *cstr = StringValuePtr(obj); size_t size = RSTRING_LEN(obj) + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size))); } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } } if (psize) *psize = size; return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { void* vptr = 0; if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = (char *)vptr; if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } SWIGINTERNINLINE VALUE SWIG_FromCharPtrAndSize(const char* carray, size_t size) { if (carray) { if (size > LONG_MAX) { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ? SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil; } else { return rb_str_new(carray, static_cast< long >(size)); } } else { return Qnil; } } SWIGINTERNINLINE VALUE SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } static swig_type_info *FXGLCanvas_dynamic_cast(void **ptr) { FXGLCanvas **ppGLCanvas = reinterpret_cast(ptr); FXGLViewer *pGLViewer=dynamic_cast(*ppGLCanvas); if(pGLViewer){ *ptr=reinterpret_cast(pGLViewer); return SWIG_TypeQuery("FXGLViewer *"); } return 0; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_int (unsigned int value) { return SWIG_From_unsigned_SS_long (value); } /*@SWIG:/usr/share/swig3.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE pargs){VALUE *args=(VALUE *)pargs; VALUE obj = args[0]; VALUE type = TYPE(obj); unsigned long *res = (unsigned long *)(args[1]); *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj); return obj; } /*@SWIG@*/ SWIGINTERN int SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val) { VALUE type = TYPE(obj); if ((type == T_FIXNUM) || (type == T_BIGNUM)) { unsigned long v; VALUE a[2]; a[0] = obj; a[1] = (VALUE)(&v); if (rb_rescue(RUBY_VALUE_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_VALUE_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { if (val) *val = v; return SWIG_OK; } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > UINT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned int >(v); } } return res; } SWIGINTERN VALUE FXGLViewer_objectTypeName(){ return to_ruby(FXGLViewer::objectTypeName); } SWIGINTERN FXGLViewer *new_FXGLViewer__SWIG_0(FXComposite *p,FXGLVisual *vis,FXObject *tgt=0,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbGLViewer(p,vis,tgt,sel,opts,x,y,w,h); } SWIGINTERN FXGLViewer *new_FXGLViewer__SWIG_1(FXComposite *p,FXGLVisual *vis,FXGLViewer *sharegroup,FXObject *tgt=0,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0){ return new FXRbGLViewer(p,vis,sharegroup,tgt,sel,opts,x,y,w,h); } SWIGINTERN VALUE FXGLViewer_lasso(FXGLViewer *self,FXint x1,FXint y1,FXint x2,FXint y2){ VALUE objects = rb_ary_new(); FXGLObject** items = self->lasso(x1, y1, x2, y2); if (items) { register FXGLObject** p = items; while (*p) { rb_ary_push(objects, to_ruby(*p)); p++; } FXFREE(&items); } return objects; } SWIGINTERN FXViewport FXGLViewer_getViewport(FXGLViewer const *self){ FXViewport v; self->getViewport(v); return v; } SWIGINTERN VALUE FXGLViewer_eyeToScreen(FXGLViewer *self,FXVec3f e){ FXint sx, sy; self->eyeToScreen(sx, sy, e); VALUE point = rb_ary_new(); rb_ary_push(point, INT2NUM(sx)); rb_ary_push(point, INT2NUM(sy)); return point; } SWIGINTERN FXMaterial FXGLViewer_getMaterial(FXGLViewer const *self){ FXMaterial mtl; self->getMaterial(mtl); return mtl; } SWIGINTERN VALUE FXGLViewer_getBoreVector(FXGLViewer *self,FXint sx,FXint sy){ FXVec3f point, dir; self->getBoreVector(sx, sy, point, dir); VALUE pointArray = rb_ary_new(); rb_ary_push(pointArray, rb_float_new(point[0])); rb_ary_push(pointArray, rb_float_new(point[1])); rb_ary_push(pointArray, rb_float_new(point[2])); VALUE dirArray = rb_ary_new(); rb_ary_push(dirArray, rb_float_new(dir[0])); rb_ary_push(dirArray, rb_float_new(dir[1])); rb_ary_push(dirArray, rb_float_new(dir[2])); VALUE results = rb_ary_new(); rb_ary_push(results, pointArray); rb_ary_push(results, dirArray); return results; } SWIGINTERN VALUE FXGLViewer_readPixels(FXGLViewer *self,FXint x,FXint y,FXint w,FXint h){ FXColor *buffer; VALUE pixels=Qnil; if(self->readPixels(buffer,x,y,w,h)){ pixels=FXRbMakeColorArray(buffer,w,h); FXFREE(&buffer); } return pixels; } SWIGINTERN VALUE FXGLViewer_readFeedback(FXGLViewer *self,FXint x,FXint y,FXint w,FXint h){ FXfloat *buffer; FXint used, size; if (self->readFeedback(buffer,used,size,x,y,w,h)){ VALUE results=rb_ary_new(); for(FXint i=0;igetLight(lite); return lite; } SWIGINTERN FXGLObject *new_FXGLObject(){ return new FXRbGLObject(); } SWIGINTERN FXGLObject *FXGLObject_identify(FXGLObject *self,FXuint *path,FXint n){ return self->identify(path); } static swig_type_info *FXGLObject_dynamic_cast(void **ptr) { FXGLObject **ppGLObject = reinterpret_cast(ptr); FXGLShape *pGLShape=dynamic_cast(*ppGLObject); if(pGLShape){ *ptr=reinterpret_cast(pGLShape); return SWIG_TypeQuery("FXGLShape *"); } return 0; } SWIGINTERN FXGLShape *new_FXGLShape__SWIG_0(FXfloat x,FXfloat y,FXfloat z,FXuint opts){ return new FXRbGLShape(x,y,z,opts); } SWIGINTERN FXGLShape *new_FXGLShape__SWIG_1(FXfloat x,FXfloat y,FXfloat z,FXuint opts,FXMaterial const &front,FXMaterial const &back){ return new FXRbGLShape(x,y,z,opts,front,back); } SWIGINTERN FXGLObject *FXGLShape_identify(FXGLShape *self,FXuint *path,FXint n){ return self->identify(path); } SWIGINTERN FXVec3f FXGLShape_getPosition(FXGLShape const *self){ FXASSERT(self->isMemberOf(FXMETACLASS(FXRbGLShape))); return dynamic_cast(self)->getPosition(); } SWIGINTERN void FXGLShape_setPosition(FXGLShape *self,FXVec3f const &pos){ FXASSERT(self->isMemberOf(FXMETACLASS(FXRbGLShape))); dynamic_cast(self)->setPosition(pos); } SWIGINTERN FXMaterial FXGLShape_getMaterial(FXGLShape const *self,FXint side){ FXMaterial mtl; self->getMaterial(side, mtl); return mtl; } SWIGINTERN void FXGLShape_setRange(FXGLShape *self,FXRangef const &box){ FXASSERT(self->isMemberOf(FXMETACLASS(FXRbGLShape))); dynamic_cast(self)->setRange(box); } SWIGINTERN FXVec2f &FXExtentf___setitem__(FXExtentf *self,FXint i,FXVec2f &v){ if(i<0||i>1) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=v; return v; } SWIGINTERN FXVec2f const &FXExtentf___getitem__(FXExtentf const *self,FXint i){ if(i<0||i>1) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN bool FXExtentf_overlap(FXExtentf const *self,FXExtentf const &other){ return overlap(*self,other); } SWIGINTERN FXExtentf FXExtentf_unite_with(FXExtentf const *self,FXExtentf const &other){ return unite(*self,other); } SWIGINTERN FXExtentf FXExtentf_intersect_with(FXExtentf const *self,FXExtentf const &other){ return intersect(*self,other); } SWIGINTERN FXVec2d &FXExtentd___setitem__(FXExtentd *self,FXint i,FXVec2d &v){ if(i<0||i>1) rb_raise(rb_eIndexError,"index %d out of bounds",i); (*self)[i]=v; return v; } SWIGINTERN FXVec2d const &FXExtentd___getitem__(FXExtentd const *self,FXint i){ if(i<0||i>1) rb_raise(rb_eIndexError,"index %d out of bounds",i); return (*self)[i]; } SWIGINTERN bool FXExtentd_overlap(FXExtentd const *self,FXExtentd const &other){ return overlap(*self,other); } SWIGINTERN FXExtentd FXExtentd_unite_with(FXExtentd const *self,FXExtentd const &other){ return unite(*self,other); } SWIGINTERN FXExtentd FXExtentd_intersect_with(FXExtentd const *self,FXExtentd const &other){ return intersect(*self,other); } static swig_class SwigClassFXVec2f; SWIGINTERN VALUE _wrap_FXVec2f_x_set(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f *","x", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","x", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->x = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_x_get(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f *","x", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); result = (FXfloat) ((arg1)->x); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_y_set(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f *","y", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","y", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->y = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_y_get(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f *","y", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); result = (FXfloat) ((arg1)->y); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec2f__SWIG_0(int argc, VALUE *argv, VALUE self) { FXfloat arg1 = (FXfloat) 0.0 ; FXfloat arg2 = (FXfloat) 0.0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; FXVec2f *result = 0 ; if ((argc < 0) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } if (argc > 0) { ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXVec2f", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); } if (argc > 1) { ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXVec2f", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); } { result = (FXVec2f *)new FXVec2f(arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec2f__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXVec2f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const &","FXVec2f", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","FXVec2f", 1, argv[0])); } arg1 = reinterpret_cast< FXVec2f * >(argp1); { result = (FXVec2f *)new FXVec2f((FXVec2f const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXVec2f_allocate(VALUE self) #else _wrap_FXVec2f_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXVec2f); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXVec2f__SWIG_2(int argc, VALUE *argv, VALUE self) { FXfloat *arg1 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_float, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXfloat const []","FXVec2f", 1, argv[0] )); } arg1 = reinterpret_cast< FXfloat * >(argp1); { result = (FXVec2f *)new FXVec2f((FXfloat const (*))arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec2f(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if ((argc >= 0) && (argc <= 2)) { int _v; if (argc <= 0) { return _wrap_new_FXVec2f__SWIG_0(nargs, args, self); } { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { if (argc <= 1) { return _wrap_new_FXVec2f__SWIG_0(nargs, args, self); } { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXVec2f__SWIG_0(nargs, args, self); } } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXVec2f__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_float, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXVec2f__SWIG_2(nargs, args, self); } } fail: Ruby_Format_OverloadedError( argc, 2, "FXVec2f.new", " FXVec2f.new(FXfloat xx, FXfloat yy)\n" " FXVec2f.new(FXVec2f const &v)\n" " FXVec2f.new(FXfloat const v[])\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_length2(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","length2", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); result = (FXfloat)((FXVec2f const *)arg1)->length2(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_length(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","length", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); result = (FXfloat)((FXVec2f const *)arg1)->length(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2f.[] call-seq: [](i) -> FXfloat Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXVec2f___getitem__(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXfloat)FXVec2f___getitem__((FXVec2f const *)arg1,arg2); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2f.[]= call-seq: []=(i, f) -> FXfloat Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXVec2f___setitem__(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXint arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); arg2 = NUM2INT(argv[0]); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","__setitem__", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXfloat)FXVec2f___setitem__(arg1,arg2,arg3); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2f.-@ call-seq: -@ -> FXVec2f Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec2f___neg__(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); result = FXVec2f_operator_Ss_((FXVec2f const *)arg1); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2f.+ call-seq: +(other) -> FXVec2f Add operator. */ SWIGINTERN VALUE _wrap_FXVec2f___add__(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","operator +", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","operator +", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","operator +", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = FXVec2f_operator_Sa_((FXVec2f const *)arg1,(FXVec2f const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2f.- call-seq: -(other) -> FXVec2f Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec2f___sub__(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","operator -", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","operator -", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = FXVec2f_operator_Ss_((FXVec2f const *)arg1,(FXVec2f const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator *", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXVec2f_operator_Sm___SWIG_0((FXVec2f const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f___div__(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","operator /", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator /", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXVec2f_operator_Sd_((FXVec2f const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = (FXfloat)FXVec2f_operator_Sm___SWIG_1((FXVec2f const *)arg1,(FXVec2f const &)*arg2); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec2f___mul____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec2f___mul____SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXVec2f __mul__(FXfloat n)\n" " FXfloat __mul__(FXVec2f const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_dot(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","dot", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","dot", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","dot", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = (FXfloat)FXVec2f_dot((FXVec2f const *)arg1,(FXVec2f const &)*arg2); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2f.== call-seq: ==(other) -> bool Equality comparison operator. */ SWIGINTERN VALUE _wrap_FXVec2f___eq__(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","operator ==", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","operator ==", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","operator ==", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = (bool)FXVec2f_operator_Se__Se_((FXVec2f const *)arg1,(FXVec2f const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_normalize(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","normalize", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); result = FXVec2f_normalize((FXVec2f const *)arg1); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_lo(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","lo", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","lo", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","lo", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = FXVec2f_lo((FXVec2f const *)arg1,(FXVec2f const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_hi(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const *","hi", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","hi", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","hi", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = FXVec2f_hi((FXVec2f const *)arg1,(FXVec2f const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2f_clamp(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = (FXVec2f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXVec2f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f *","clamp", 1, self )); } arg1 = reinterpret_cast< FXVec2f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","clamp", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","clamp", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXVec2f *) &(arg1)->clamp(arg2,arg3); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; } static swig_class SwigClassFXVec2d; SWIGINTERN VALUE _wrap_FXVec2d_x_set(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d *","x", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","x", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->x = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_x_get(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d *","x", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); result = (FXdouble) ((arg1)->x); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_y_set(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d *","y", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","y", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->y = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_y_get(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d *","y", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); result = (FXdouble) ((arg1)->y); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec2d__SWIG_0(int argc, VALUE *argv, VALUE self) { FXdouble arg1 = (FXdouble) 0.0 ; FXdouble arg2 = (FXdouble) 0.0 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; FXVec2d *result = 0 ; if ((argc < 0) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } if (argc > 0) { ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXVec2d", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); } if (argc > 1) { ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXVec2d", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); } { result = (FXVec2d *)new FXVec2d(arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXVec2d_allocate(VALUE self) #else _wrap_FXVec2d_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXVec2d); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXVec2d__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXVec2d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const &","FXVec2d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","FXVec2d", 1, argv[0])); } arg1 = reinterpret_cast< FXVec2d * >(argp1); { result = (FXVec2d *)new FXVec2d((FXVec2d const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec2d(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if ((argc >= 0) && (argc <= 2)) { int _v; if (argc <= 0) { return _wrap_new_FXVec2d__SWIG_0(nargs, args, self); } { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { if (argc <= 1) { return _wrap_new_FXVec2d__SWIG_0(nargs, args, self); } { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXVec2d__SWIG_0(nargs, args, self); } } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXVec2d__SWIG_1(nargs, args, self); } } fail: Ruby_Format_OverloadedError( argc, 2, "FXVec2d.new", " FXVec2d.new(FXdouble xx, FXdouble yy)\n" " FXVec2d.new(FXVec2d const &v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_length2(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","length2", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); result = (FXdouble)((FXVec2d const *)arg1)->length2(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_length(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","length", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); result = (FXdouble)((FXVec2d const *)arg1)->length(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2d.[] call-seq: [](i) -> FXdouble Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXVec2d___getitem__(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXdouble)FXVec2d___getitem__((FXVec2d const *)arg1,arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2d.[]= call-seq: []=(i, d) -> FXdouble Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXVec2d___setitem__(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXint arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val3 ; int ecode3 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); arg2 = NUM2INT(argv[0]); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","__setitem__", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXdouble)FXVec2d___setitem__(arg1,arg2,arg3); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2d.-@ call-seq: -@ -> FXVec2d Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec2d___neg__(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); result = FXVec2d_operator_Ss_((FXVec2d const *)arg1); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2d.+ call-seq: +(other) -> FXVec2d Add operator. */ SWIGINTERN VALUE _wrap_FXVec2d___add__(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","operator +", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","operator +", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","operator +", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = FXVec2d_operator_Sa_((FXVec2d const *)arg1,(FXVec2d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2d.- call-seq: -(other) -> FXVec2d Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec2d___sub__(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","operator -", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","operator -", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = FXVec2d_operator_Ss_((FXVec2d const *)arg1,(FXVec2d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator *", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXVec2d_operator_Sm___SWIG_0((FXVec2d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d___div__(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","operator /", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator /", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXVec2d_operator_Sd_((FXVec2d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = (FXdouble)FXVec2d_operator_Sm___SWIG_1((FXVec2d const *)arg1,(FXVec2d const &)*arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec2d___mul____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec2d___mul____SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXVec2d __mul__(FXdouble n)\n" " FXdouble __mul__(FXVec2d const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_dot(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","dot", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","dot", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","dot", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = (FXdouble)FXVec2d_dot((FXVec2d const *)arg1,(FXVec2d const &)*arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec2d.== call-seq: ==(other) -> bool Equality comparison operator. */ SWIGINTERN VALUE _wrap_FXVec2d___eq__(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","operator ==", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","operator ==", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","operator ==", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = (bool)FXVec2d_operator_Se__Se_((FXVec2d const *)arg1,(FXVec2d const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_normalize(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","normalize", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); result = FXVec2d_normalize((FXVec2d const *)arg1); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_lo(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","lo", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","lo", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","lo", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = FXVec2d_lo((FXVec2d const *)arg1,(FXVec2d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_hi(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const *","hi", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","hi", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","hi", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = FXVec2d_hi((FXVec2d const *)arg1,(FXVec2d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec2d_clamp(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = (FXVec2d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXVec2d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec2d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d *","clamp", 1, self )); } arg1 = reinterpret_cast< FXVec2d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","clamp", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","clamp", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXVec2d *) &(arg1)->clamp(arg2,arg3); vresult = FXRbGetRubyObj(result, "FXVec2d *"); return vresult; fail: return Qnil; } static swig_class SwigClassFXVec3f; SWIGINTERN VALUE _wrap_FXVec3f_x_set(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXfloat arg2 ; FXVec3f tmp1 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","x", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->x = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_x_get(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } result = (FXfloat) ((arg1)->x); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_y_set(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXfloat arg2 ; FXVec3f tmp1 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","y", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->y = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_y_get(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } result = (FXfloat) ((arg1)->y); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_z_set(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXfloat arg2 ; FXVec3f tmp1 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","z", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->z = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_z_get(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } result = (FXfloat) ((arg1)->z); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec3f__SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec3f *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXVec3f *)new_FXVec3f__SWIG_0(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec3f__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXVec3f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } { result = (FXVec3f *)new FXVec3f((FXVec3f const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } delete arg1; return self; fail: delete arg1; return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec3f__SWIG_2(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 = (FXfloat) 1.0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXVec3f *result = 0 ; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXVec3f", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXVec3f", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); if (argc > 2) { ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXVec3f", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); } { result = (FXVec3f *)new FXVec3f(arg1,arg2,arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXVec3f_allocate(VALUE self) #else _wrap_FXVec3f_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXVec3f); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXVec3f__SWIG_3(int argc, VALUE *argv, VALUE self) { FXColor arg1 ; FXVec3f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } arg1 = to_FXColor(argv[0]); { result = (FXVec3f *)new FXVec3f(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec3f(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs; if (argc > 3) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXVec3f__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXVec3f__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; { _v = (TYPE(argv[0]) == T_FIXNUM || TYPE(argv[0]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXVec3f__SWIG_3(nargs, args, self); } } if ((argc >= 2) && (argc <= 3)) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { if (argc <= 2) { return _wrap_new_FXVec3f__SWIG_2(nargs, args, self); } { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXVec3f__SWIG_2(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXVec3f.new", " FXVec3f.new()\n" " FXVec3f.new(FXVec3f const &v)\n" " FXVec3f.new(FXfloat xx, FXfloat yy, FXfloat zz)\n" " FXVec3f.new(FXColor color)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_length2(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } result = (FXfloat)((FXVec3f const *)arg1)->length2(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_length(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } result = (FXfloat)((FXVec3f const *)arg1)->length(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3f.[] call-seq: [](i) -> FXfloat Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXVec3f___getitem__(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXint arg2 ; FXVec3f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } arg2 = NUM2INT(argv[0]); result = (FXfloat)FXVec3f___getitem__((FXVec3f const *)arg1,arg2); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3f.[]= call-seq: []=(i, f) -> FXfloat Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXVec3f___setitem__(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXint arg2 ; FXfloat arg3 ; FXVec3f tmp1 ; float val3 ; int ecode3 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } arg2 = NUM2INT(argv[0]); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","__setitem__", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXfloat)FXVec3f___setitem__(arg1,arg2,arg3); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3f.-@ call-seq: -@ -> FXVec3f Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec3f___neg__(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f tmp1 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } result = FXVec3f_operator_Ss_((FXVec3f const *)arg1); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3f.+ call-seq: +(other) -> FXVec3f Add operator. */ SWIGINTERN VALUE _wrap_FXVec3f___add__(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXVec3f_operator_Sa_((FXVec3f const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } /* Document-method: Fx3d::FXVec3f.- call-seq: -(other) -> FXVec3f Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec3f___sub__(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXVec3f_operator_Ss_((FXVec3f const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXfloat arg2 ; FXVec3f tmp1 ; float val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator *", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXVec3f_operator_Sm___SWIG_0((FXVec3f const *)arg1,arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f___div__(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXfloat arg2 ; FXVec3f tmp1 ; float val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator /", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXVec3f_operator_Sd_((FXVec3f const *)arg1,arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (FXfloat)FXVec3f_operator_Sm___SWIG_1((FXVec3f const *)arg1,(FXVec3f const &)*arg2); vresult = SWIG_From_float(static_cast< float >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec3f___mul____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec3f___mul____SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXVec3f __mul__(FXfloat n)\n" " FXfloat __mul__(FXVec3f const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_dot(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (FXfloat)FXVec3f_dot((FXVec3f const *)arg1,(FXVec3f const &)*arg2); vresult = SWIG_From_float(static_cast< float >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } /* Document-method: Fx3d::FXVec3f.^ call-seq: ^(other) -> FXVec3f XOR operator. */ SWIGINTERN VALUE _wrap_FXVec3f___xor__(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXVec3f_operator_Sx_((FXVec3f const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_cross(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXVec3f_cross((FXVec3f const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } /* Document-method: Fx3d::FXVec3f.== call-seq: ==(other) -> bool Equality comparison operator. */ SWIGINTERN VALUE _wrap_FXVec3f___eq__(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (bool)FXVec3f_operator_Se__Se_((FXVec3f const *)arg1,(FXVec3f const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_normalize(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f tmp1 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } result = FXVec3f_normalize((FXVec3f const *)arg1); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_lo(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXVec3f_lo((FXVec3f const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_hi(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f tmp1 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXVec3f_hi((FXVec3f const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_normal__SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[2]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[2], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } result = FXVec3f_normal__SWIG_0((FXVec3f const &)*arg1,(FXVec3f const &)*arg2,(FXVec3f const &)*arg3); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg1; delete arg2; delete arg3; return vresult; fail: delete arg1; delete arg2; delete arg3; return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_normal__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; FXVec3f *arg4 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[2]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[2], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } { if (TYPE(argv[3]) == T_ARRAY) { arg4 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[3], 0)), NUM2DBL(rb_ary_entry(argv[3], 1)), NUM2DBL(rb_ary_entry(argv[3], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[3], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg4 = new FXVec3f(*p); } } result = FXVec3f_normal__SWIG_1((FXVec3f const &)*arg1,(FXVec3f const &)*arg2,(FXVec3f const &)*arg3,(FXVec3f const &)*arg4); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg1; delete arg2; delete arg3; delete arg4; return vresult; fail: delete arg1; delete arg2; delete arg3; delete arg4; return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_normal(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec3f_normal__SWIG_0(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec3f_normal__SWIG_1(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "normal", " FXVec3f normal(FXVec3f const &a, FXVec3f const &b, FXVec3f const &c)\n" " FXVec3f normal(FXVec3f const &a, FXVec3f const &b, FXVec3f const &c, FXVec3f const &d)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec3f_clamp(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = (FXVec3f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXVec3f tmp1 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXVec3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec3f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec3f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","clamp", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","clamp", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXVec3f *) &(arg1)->clamp(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3f, 0 | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXVec3d; SWIGINTERN VALUE _wrap_FXVec3d_x_set(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","x", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","x", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->x = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_x_get(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","x", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); result = (FXdouble) ((arg1)->x); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_y_set(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","y", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","y", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->y = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_y_get(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","y", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); result = (FXdouble) ((arg1)->y); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_z_set(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","z", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","z", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->z = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_z_get(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","z", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); result = (FXdouble) ((arg1)->z); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec3d__SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec3d *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXVec3d *)new_FXVec3d__SWIG_0(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec3d__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXVec3d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec3d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec3d", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); { result = (FXVec3d *)new FXVec3d((FXVec3d const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec3d__SWIG_2(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 = (FXdouble) 1.0 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXVec3d *result = 0 ; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXVec3d", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXVec3d", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); if (argc > 2) { ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXVec3d", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); } { result = (FXVec3d *)new FXVec3d(arg1,arg2,arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXVec3d_allocate(VALUE self) #else _wrap_FXVec3d_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXVec3d); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXVec3d__SWIG_3(int argc, VALUE *argv, VALUE self) { FXColor arg1 ; FXVec3d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } arg1 = to_FXColor(argv[0]); { result = (FXVec3d *)new FXVec3d(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec3d(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs; if (argc > 3) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXVec3d__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXVec3d__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; { _v = (TYPE(argv[0]) == T_FIXNUM || TYPE(argv[0]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXVec3d__SWIG_3(nargs, args, self); } } if ((argc >= 2) && (argc <= 3)) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { if (argc <= 2) { return _wrap_new_FXVec3d__SWIG_2(nargs, args, self); } { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXVec3d__SWIG_2(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXVec3d.new", " FXVec3d.new()\n" " FXVec3d.new(FXVec3d const &v)\n" " FXVec3d.new(FXdouble xx, FXdouble yy, FXdouble zz)\n" " FXVec3d.new(FXColor color)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_length2(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","length2", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); result = (FXdouble)((FXVec3d const *)arg1)->length2(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_length(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","length", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); result = (FXdouble)((FXVec3d const *)arg1)->length(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3d.[] call-seq: [](i) -> FXdouble Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXVec3d___getitem__(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXdouble)FXVec3d___getitem__((FXVec3d const *)arg1,arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3d.[]= call-seq: []=(i, d) -> FXdouble Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXVec3d___setitem__(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXint arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val3 ; int ecode3 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); arg2 = NUM2INT(argv[0]); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","__setitem__", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXdouble)FXVec3d___setitem__(arg1,arg2,arg3); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3d.-@ call-seq: -@ -> FXVec3d Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec3d___neg__(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); result = FXVec3d_operator_Ss_((FXVec3d const *)arg1); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3d.+ call-seq: +(other) -> FXVec3d Add operator. */ SWIGINTERN VALUE _wrap_FXVec3d___add__(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator +", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","operator +", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator +", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXVec3d_operator_Sa_((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3d.- call-seq: -(other) -> FXVec3d Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec3d___sub__(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","operator -", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator -", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXVec3d_operator_Ss_((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator *", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXVec3d_operator_Sm___SWIG_0((FXVec3d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d___div__(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator /", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator /", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXVec3d_operator_Sd_((FXVec3d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (FXdouble)FXVec3d_operator_Sm___SWIG_1((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec3d___mul____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec3d___mul____SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXVec3d __mul__(FXdouble n)\n" " FXdouble __mul__(FXVec3d const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_dot(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","dot", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","dot", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","dot", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (FXdouble)FXVec3d_dot((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3d.^ call-seq: ^(other) -> FXVec3d XOR operator. */ SWIGINTERN VALUE _wrap_FXVec3d___xor__(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator ^", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","operator ^", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator ^", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXVec3d_operator_Sx_((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_cross(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","cross", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","cross", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","cross", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXVec3d_cross((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec3d.== call-seq: ==(other) -> bool Equality comparison operator. */ SWIGINTERN VALUE _wrap_FXVec3d___eq__(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator ==", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","operator ==", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator ==", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (bool)FXVec3d_operator_Se__Se_((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_normalize(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","normalize", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); result = FXVec3d_normalize((FXVec3d const *)arg1); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_lo(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","lo", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","lo", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","lo", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXVec3d_lo((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_hi(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","hi", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","hi", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","hi", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXVec3d_hi((FXVec3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_normal__SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec3d_normal__SWIG_0", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec3d_normal__SWIG_0", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec3d_normal__SWIG_0", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec3d_normal__SWIG_0", 2, argv[1])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec3d_normal__SWIG_0", 3, argv[2] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec3d_normal__SWIG_0", 3, argv[2])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = FXVec3d_normal__SWIG_0((FXVec3d const &)*arg1,(FXVec3d const &)*arg2,(FXVec3d const &)*arg3); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_normal__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; FXVec3d *arg4 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec3d_normal__SWIG_1", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec3d_normal__SWIG_1", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec3d_normal__SWIG_1", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec3d_normal__SWIG_1", 2, argv[1])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec3d_normal__SWIG_1", 3, argv[2] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec3d_normal__SWIG_1", 3, argv[2])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec3d_normal__SWIG_1", 4, argv[3] )); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec3d_normal__SWIG_1", 4, argv[3])); } arg4 = reinterpret_cast< FXVec3d * >(argp4); result = FXVec3d_normal__SWIG_1((FXVec3d const &)*arg1,(FXVec3d const &)*arg2,(FXVec3d const &)*arg3,(FXVec3d const &)*arg4); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_normal(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec3d_normal__SWIG_0(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec3d_normal__SWIG_1(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "normal", " FXVec3d normal(FXVec3d const &a, FXVec3d const &b, FXVec3d const &c)\n" " FXVec3d normal(FXVec3d const &a, FXVec3d const &b, FXVec3d const &c, FXVec3d const &d)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec3d_clamp(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = (FXVec3d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXVec3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","clamp", 1, self )); } arg1 = reinterpret_cast< FXVec3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","clamp", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","clamp", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXVec3d *) &(arg1)->clamp(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3d, 0 | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXVec4f; SWIGINTERN VALUE _wrap_FXVec4f_x_set(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXfloat arg2 ; FXVec4f tmp1 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","x", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->x = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_x_get(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } result = (FXfloat) ((arg1)->x); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_y_set(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXfloat arg2 ; FXVec4f tmp1 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","y", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->y = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_y_get(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } result = (FXfloat) ((arg1)->y); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_z_set(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXfloat arg2 ; FXVec4f tmp1 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","z", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->z = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_z_get(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } result = (FXfloat) ((arg1)->z); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_w_set(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXfloat arg2 ; FXVec4f tmp1 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","w", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->w = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_w_get(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } result = (FXfloat) ((arg1)->w); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4f__SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec4f *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXVec4f *)new_FXVec4f__SWIG_0(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4f__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = 0 ; FXVec4f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg1 = new FXVec4f(*p); } } { result = (FXVec4f *)new FXVec4f((FXVec4f const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } delete arg1; return self; fail: delete arg1; return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4f__SWIG_2(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXfloat arg2 = (FXfloat) 1.0 ; float val2 ; int ecode2 = 0 ; FXVec4f *result = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } if (argc > 1) { ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXVec4f", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); } { result = (FXVec4f *)new FXVec4f((FXVec3f const &)*arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } delete arg1; return self; fail: delete arg1; return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4f__SWIG_3(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 = (FXfloat) 1.0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXVec4f *result = 0 ; if ((argc < 3) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXVec4f", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXVec4f", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXVec4f", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); if (argc > 3) { ecode4 = SWIG_AsVal_float(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","FXVec4f", 4, argv[3] )); } arg4 = static_cast< FXfloat >(val4); } { result = (FXVec4f *)new FXVec4f(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXVec4f_allocate(VALUE self) #else _wrap_FXVec4f_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXVec4f); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXVec4f__SWIG_4(int argc, VALUE *argv, VALUE self) { FXColor arg1 ; FXVec4f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } arg1 = to_FXColor(argv[0]); { result = (FXVec4f *)new FXVec4f(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4f(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXVec4f__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXVec4f__SWIG_1(nargs, args, self); } } if ((argc >= 1) && (argc <= 2)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 1) { return _wrap_new_FXVec4f__SWIG_2(nargs, args, self); } { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXVec4f__SWIG_2(nargs, args, self); } } } if (argc == 1) { int _v; { _v = (TYPE(argv[0]) == T_FIXNUM || TYPE(argv[0]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXVec4f__SWIG_4(nargs, args, self); } } if ((argc >= 3) && (argc <= 4)) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { if (argc <= 3) { return _wrap_new_FXVec4f__SWIG_3(nargs, args, self); } { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXVec4f__SWIG_3(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXVec4f.new", " FXVec4f.new()\n" " FXVec4f.new(FXVec4f const &w)\n" " FXVec4f.new(FXVec3f const &w, FXfloat ww)\n" " FXVec4f.new(FXfloat x, FXfloat y, FXfloat z, FXfloat w)\n" " FXVec4f.new(FXColor color)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_distance(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec3f *arg2 = 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (FXfloat)((FXVec4f const *)arg1)->distance((FXVec3f const &)*arg2); vresult = SWIG_From_float(static_cast< float >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_crossesq___(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; FXVec4f tmp1 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } result = (bool)((FXVec4f const *)arg1)->crosses((FXVec3f const &)*arg2,(FXVec3f const &)*arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); delete arg2; delete arg3; return vresult; fail: delete arg2; delete arg3; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_length(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } result = (FXfloat)((FXVec4f const *)arg1)->length(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_length2(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } result = (FXfloat)((FXVec4f const *)arg1)->length2(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4f.[] call-seq: [](i) -> FXfloat Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXVec4f___getitem__(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXint arg2 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } arg2 = NUM2INT(argv[0]); result = (FXfloat)FXVec4f___getitem__((FXVec4f const *)arg1,arg2); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4f.[]= call-seq: []=(i, f) -> FXfloat Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXVec4f___setitem__(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXint arg2 ; FXfloat arg3 ; FXVec4f tmp1 ; float val3 ; int ecode3 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } arg2 = NUM2INT(argv[0]); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","__setitem__", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXfloat)FXVec4f___setitem__(arg1,arg2,arg3); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4f.-@ call-seq: -@ -> FXVec4f Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec4f___neg__(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f tmp1 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } result = FXVec4f_operator_Ss_((FXVec4f const *)arg1); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4f.+ call-seq: +(b) -> FXVec4f Add operator. */ SWIGINTERN VALUE _wrap_FXVec4f___add__(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f *arg2 = 0 ; FXVec4f tmp1 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = FXVec4f_operator_Sa_((FXVec4f const *)arg1,(FXVec4f const &)*arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } /* Document-method: Fx3d::FXVec4f.- call-seq: -(b) -> FXVec4f Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec4f___sub__(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f *arg2 = 0 ; FXVec4f tmp1 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = FXVec4f_operator_Ss_((FXVec4f const *)arg1,(FXVec4f const &)*arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXfloat arg2 ; FXVec4f tmp1 ; float val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator *", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXVec4f_operator_Sm___SWIG_0((FXVec4f const *)arg1,arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f___div__(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXfloat arg2 ; FXVec4f tmp1 ; float val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator /", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXVec4f_operator_Sd_((FXVec4f const *)arg1,arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f *arg2 = 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = (FXfloat)FXVec4f_operator_Sm___SWIG_1((FXVec4f const *)arg1,(FXVec4f const &)*arg2); vresult = SWIG_From_float(static_cast< float >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4f___mul____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec4f___mul____SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXVec4f __mul__(FXfloat n)\n" " FXfloat __mul__(FXVec4f const &a)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_dot(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f *arg2 = 0 ; FXVec4f tmp1 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = (FXfloat)FXVec4f_dot((FXVec4f const *)arg1,(FXVec4f const &)*arg2); vresult = SWIG_From_float(static_cast< float >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } /* Document-method: Fx3d::FXVec4f.== call-seq: ==(b) -> bool ==(n) -> bool Equality comparison operator. */ SWIGINTERN VALUE _wrap_FXVec4f___eq____SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f *arg2 = 0 ; FXVec4f tmp1 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = (bool)FXVec4f_operator_Se__Se___SWIG_0((FXVec4f const *)arg1,(FXVec4f const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f___eq____SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXfloat arg2 ; FXVec4f tmp1 ; float val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator ==", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = (bool)FXVec4f_operator_Se__Se___SWIG_1((FXVec4f const *)arg1,arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f___eq__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4f___eq____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec4f___eq____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__eq__", " bool __eq__(FXVec4f const &b)\n" " bool __eq__(FXfloat n)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_normalize(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f tmp1 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } result = FXVec4f_normalize((FXVec4f const *)arg1); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_lo(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f *arg2 = 0 ; FXVec4f tmp1 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = FXVec4f_lo((FXVec4f const *)arg1,(FXVec4f const &)*arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_hi(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXVec4f *arg2 = 0 ; FXVec4f tmp1 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = FXVec4f_hi((FXVec4f const *)arg1,(FXVec4f const &)*arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_plane__SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = 0 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg1 = new FXVec4f(*p); } } result = FXVec4f_plane__SWIG_0((FXVec4f const &)*arg1); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg1; return vresult; fail: delete arg1; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_plane__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXfloat arg2 ; float val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXVec4f_plane__SWIG_1", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); result = FXVec4f_plane__SWIG_1((FXVec3f const &)*arg1,arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg1; return vresult; fail: delete arg1; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_plane__SWIG_2(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXVec3f *arg2 = 0 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXVec4f_plane__SWIG_2((FXVec3f const &)*arg1,(FXVec3f const &)*arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg1; delete arg2; return vresult; fail: delete arg1; delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_plane__SWIG_3(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[2]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[2], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } result = FXVec4f_plane__SWIG_3((FXVec3f const &)*arg1,(FXVec3f const &)*arg2,(FXVec3f const &)*arg3); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg1; delete arg2; delete arg3; return vresult; fail: delete arg1; delete arg2; delete arg3; return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_plane(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs; if (argc > 3) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4f_plane__SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4f_plane__SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec4f_plane__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4f_plane__SWIG_3(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 3, "plane", " FXVec4f plane(FXVec4f const &vec)\n" " FXVec4f plane(FXVec3f const &vec, FXfloat dist)\n" " FXVec4f plane(FXVec3f const &vec, FXVec3f const &p)\n" " FXVec4f plane(FXVec3f const &a, FXVec3f const &b, FXVec3f const &c)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec4f_clamp(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = (FXVec4f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXVec4f tmp1 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } { if (TYPE(self) == T_ARRAY) { tmp1 = FXVec4f(NUM2DBL(rb_ary_entry(self, 0)), NUM2DBL(rb_ary_entry(self, 1)), NUM2DBL(rb_ary_entry(self, 2)), NUM2DBL(rb_ary_entry(self, 3))); arg1 = &tmp1; } else { SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXVec4f, 1); } } ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","clamp", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","clamp", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXVec4f *) &(arg1)->clamp(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec4f, 0 | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXVec4d; SWIGINTERN VALUE _wrap_FXVec4d_x_set(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","x", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","x", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->x = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_x_get(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","x", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = (FXdouble) ((arg1)->x); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_y_set(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","y", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","y", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->y = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_y_get(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","y", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = (FXdouble) ((arg1)->y); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_z_set(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","z", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","z", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->z = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_z_get(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","z", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = (FXdouble) ((arg1)->z); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_w_set(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","w", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","w", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->w = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_w_get(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","w", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = (FXdouble) ((arg1)->w); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4d__SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec4d *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXVec4d *)new_FXVec4d__SWIG_0(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4d__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXVec4d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const &","FXVec4d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","FXVec4d", 1, argv[0])); } arg1 = reinterpret_cast< FXVec4d * >(argp1); { result = (FXVec4d *)new FXVec4d((FXVec4d const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4d__SWIG_2(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXdouble arg2 = (FXdouble) 1.0 ; void *argp1 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXVec4d *result = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec4d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec4d", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); if (argc > 1) { ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXVec4d", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); } { result = (FXVec4d *)new FXVec4d((FXVec3d const &)*arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4d__SWIG_3(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 = (FXdouble) 1.0 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXVec4d *result = 0 ; if ((argc < 3) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXVec4d", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXVec4d", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXVec4d", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); if (argc > 3) { ecode4 = SWIG_AsVal_double(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","FXVec4d", 4, argv[3] )); } arg4 = static_cast< FXdouble >(val4); } { result = (FXVec4d *)new FXVec4d(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXVec4d_allocate(VALUE self) #else _wrap_FXVec4d_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXVec4d); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXVec4d__SWIG_4(int argc, VALUE *argv, VALUE self) { FXColor arg1 ; FXVec4d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } arg1 = to_FXColor(argv[0]); { result = (FXVec4d *)new FXVec4d(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXVec4d(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXVec4d__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXVec4d__SWIG_1(nargs, args, self); } } if ((argc >= 1) && (argc <= 2)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 1) { return _wrap_new_FXVec4d__SWIG_2(nargs, args, self); } { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXVec4d__SWIG_2(nargs, args, self); } } } if (argc == 1) { int _v; { _v = (TYPE(argv[0]) == T_FIXNUM || TYPE(argv[0]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXVec4d__SWIG_4(nargs, args, self); } } if ((argc >= 3) && (argc <= 4)) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { if (argc <= 3) { return _wrap_new_FXVec4d__SWIG_3(nargs, args, self); } { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXVec4d__SWIG_3(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXVec4d.new", " FXVec4d.new()\n" " FXVec4d.new(FXVec4d const &v)\n" " FXVec4d.new(FXVec3d const &v, FXdouble ww)\n" " FXVec4d.new(FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww)\n" " FXVec4d.new(FXColor color)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_distance(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","distance", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","distance", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","distance", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (FXdouble)((FXVec4d const *)arg1)->distance((FXVec3d const &)*arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_crossesq___(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","crosses", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","crosses", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","crosses", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","crosses", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","crosses", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = (bool)((FXVec4d const *)arg1)->crosses((FXVec3d const &)*arg2,(FXVec3d const &)*arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_length2(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","length2", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = (FXdouble)((FXVec4d const *)arg1)->length2(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_length(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","length", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = (FXdouble)((FXVec4d const *)arg1)->length(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4d.[] call-seq: [](i) -> FXdouble Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXVec4d___getitem__(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXdouble)FXVec4d___getitem__((FXVec4d const *)arg1,arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4d.[]= call-seq: []=(i, d) -> FXdouble Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXVec4d___setitem__(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXint arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val3 ; int ecode3 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); arg2 = NUM2INT(argv[0]); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","__setitem__", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXdouble)FXVec4d___setitem__(arg1,arg2,arg3); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4d.-@ call-seq: -@ -> FXVec4d Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec4d___neg__(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = FXVec4d_operator_Ss_((FXVec4d const *)arg1); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4d.+ call-seq: +(other) -> FXVec4d Add operator. */ SWIGINTERN VALUE _wrap_FXVec4d___add__(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","operator +", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","operator +", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","operator +", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = FXVec4d_operator_Sa_((FXVec4d const *)arg1,(FXVec4d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4d.- call-seq: -(other) -> FXVec4d Substraction operator. */ SWIGINTERN VALUE _wrap_FXVec4d___sub__(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","operator -", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","operator -", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = FXVec4d_operator_Ss_((FXVec4d const *)arg1,(FXVec4d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator *", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXVec4d_operator_Sm___SWIG_0((FXVec4d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d___div__(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","operator /", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator /", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXVec4d_operator_Sd_((FXVec4d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = (FXdouble)FXVec4d_operator_Sm___SWIG_1((FXVec4d const *)arg1,(FXVec4d const &)*arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4d___mul____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec4d___mul____SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXVec4d __mul__(FXdouble n)\n" " FXdouble __mul__(FXVec4d const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_dot(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","dot", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","dot", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","dot", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = (FXdouble)FXVec4d_dot((FXVec4d const *)arg1,(FXVec4d const &)*arg2); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXVec4d.== call-seq: ==(other) -> bool Equality comparison operator. */ SWIGINTERN VALUE _wrap_FXVec4d___eq__(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","operator ==", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","operator ==", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","operator ==", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = (bool)FXVec4d_operator_Se__Se_((FXVec4d const *)arg1,(FXVec4d const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_normalize(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","normalize", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = FXVec4d_normalize((FXVec4d const *)arg1); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_lo(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","lo", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","lo", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","lo", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = FXVec4d_lo((FXVec4d const *)arg1,(FXVec4d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_hi(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const *","hi", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","hi", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","hi", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = FXVec4d_hi((FXVec4d const *)arg1,(FXVec4d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_plane__SWIG_0(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = 0 ; void *argp1 ; int res1 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const &","FXVec4d_plane__SWIG_0", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","FXVec4d_plane__SWIG_0", 1, argv[0])); } arg1 = reinterpret_cast< FXVec4d * >(argp1); result = FXVec4d_plane__SWIG_0((FXVec4d const &)*arg1); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_plane__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXdouble arg2 ; void *argp1 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec4d_plane__SWIG_1", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec4d_plane__SWIG_1", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXVec4d_plane__SWIG_1", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); result = FXVec4d_plane__SWIG_1((FXVec3d const &)*arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_plane__SWIG_2(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXVec3d *arg2 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec4d_plane__SWIG_2", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec4d_plane__SWIG_2", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec4d_plane__SWIG_2", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec4d_plane__SWIG_2", 2, argv[1])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXVec4d_plane__SWIG_2((FXVec3d const &)*arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_plane__SWIG_3(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec4d_plane__SWIG_3", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec4d_plane__SWIG_3", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec4d_plane__SWIG_3", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec4d_plane__SWIG_3", 2, argv[1])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","FXVec4d_plane__SWIG_3", 3, argv[2] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXVec4d_plane__SWIG_3", 3, argv[2])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = FXVec4d_plane__SWIG_3((FXVec3d const &)*arg1,(FXVec3d const &)*arg2,(FXVec3d const &)*arg3); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_plane(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs; if (argc > 3) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4d_plane__SWIG_0(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4d_plane__SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXVec4d_plane__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXVec4d_plane__SWIG_3(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 3, "plane", " FXVec4d plane(FXVec4d const &vec)\n" " FXVec4d plane(FXVec3d const &vec, FXdouble dist)\n" " FXVec4d plane(FXVec3d const &vec, FXVec3d const &p)\n" " FXVec4d plane(FXVec3d const &a, FXVec3d const &b, FXVec3d const &c)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXVec4d_clamp(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = (FXVec4d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXVec4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d *","clamp", 1, self )); } arg1 = reinterpret_cast< FXVec4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","clamp", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","clamp", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXVec4d *) &(arg1)->clamp(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec4d, 0 | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXQuatf; SWIGINTERN VALUE _wrap_new_FXQuatf__SWIG_0(int argc, VALUE *argv, VALUE self) { FXQuatf *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXQuatf *)new FXQuatf(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatf__SWIG_1(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXfloat arg2 = (FXfloat) 0.0 ; float val2 ; int ecode2 = 0 ; FXQuatf *result = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } if (argc > 1) { ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXQuatf", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); } { result = (FXQuatf *)new FXQuatf((FXVec3f const &)*arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } delete arg1; return self; fail: delete arg1; return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatf__SWIG_2(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXQuatf *result = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXQuatf", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXQuatf", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXQuatf", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); { result = (FXQuatf *)new FXQuatf(arg1,arg2,arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatf__SWIG_3(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; FXQuatf *result = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[2]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[2], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } { result = (FXQuatf *)new FXQuatf((FXVec3f const &)*arg1,(FXVec3f const &)*arg2,(FXVec3f const &)*arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } delete arg1; delete arg2; delete arg3; return self; fail: delete arg1; delete arg2; delete arg3; return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatf__SWIG_4(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXQuatf *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXMat3f, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const &","FXQuatf", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3f const &","FXQuatf", 1, argv[0])); } arg1 = reinterpret_cast< FXMat3f * >(argp1); { result = (FXQuatf *)new FXQuatf((FXMat3f const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXQuatf_allocate(VALUE self) #else _wrap_FXQuatf_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXQuatf); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXQuatf__SWIG_5(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXQuatf *result = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXQuatf", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXQuatf", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXQuatf", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","FXQuatf", 4, argv[3] )); } arg4 = static_cast< FXfloat >(val4); { result = (FXQuatf *)new FXQuatf(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatf(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXQuatf__SWIG_0(nargs, args, self); } if ((argc >= 1) && (argc <= 2)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 1) { return _wrap_new_FXQuatf__SWIG_1(nargs, args, self); } { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXQuatf__SWIG_1(nargs, args, self); } } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXQuatf__SWIG_4(nargs, args, self); } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXQuatf__SWIG_3(nargs, args, self); } } } } if (argc == 3) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXQuatf__SWIG_2(nargs, args, self); } } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXQuatf__SWIG_5(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXQuatf.new", " FXQuatf.new()\n" " FXQuatf.new(FXVec3f const &axis, FXfloat phi)\n" " FXQuatf.new(FXfloat roll, FXfloat pitch, FXfloat yaw)\n" " FXQuatf.new(FXVec3f const &ex, FXVec3f const &ey, FXVec3f const &ez)\n" " FXQuatf.new(FXMat3f const &mat)\n" " FXQuatf.new(FXfloat x, FXfloat y, FXfloat z, FXfloat w)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_adjustN___(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatf *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","adjust", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = (FXQuatf *) &(arg1)->adjust(); vresult = FXRbGetRubyObj(result, "FXQuatf *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_setAxisAngle(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; FXVec3f *arg2 = 0 ; FXfloat arg3 = (FXfloat) 0.0 ; void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","setAxisAngle", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } if (argc > 1) { ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","setAxisAngle", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); } (arg1)->setAxisAngle((FXVec3f const &)*arg2,arg3); delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_getAxisAngle(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getAxisAngle", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = (VALUE)FXQuatf_getAxisAngle((FXQuatf const *)arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_setRollPitchYaw(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","setRollPitchYaw", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","setRollPitchYaw", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","setRollPitchYaw", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","setRollPitchYaw", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); (arg1)->setRollPitchYaw(arg2,arg3,arg4); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_setAxes(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; FXVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","setAxes", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } { if (TYPE(argv[2]) == T_ARRAY) { arg4 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[2], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg4 = new FXVec3f(*p); } } (arg1)->setAxes((FXVec3f const &)*arg2,(FXVec3f const &)*arg3,(FXVec3f const &)*arg4); delete arg2; delete arg3; delete arg4; return Qnil; fail: delete arg2; delete arg3; delete arg4; return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_getXAxis(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getXAxis", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = ((FXQuatf const *)arg1)->getXAxis(); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_getYAxis(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getYAxis", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = ((FXQuatf const *)arg1)->getYAxis(); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_getZAxis(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getZAxis", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = ((FXQuatf const *)arg1)->getZAxis(); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_exp(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatf result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","exp", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = ((FXQuatf const *)arg1)->exp(); { FXQuatf *resultptr = new FXQuatf(result); vresult = FXRbGetRubyObj(resultptr, "FXQuatf *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_log(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatf result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","log", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = ((FXQuatf const *)arg1)->log(); { FXQuatf *resultptr = new FXQuatf(result); vresult = FXRbGetRubyObj(resultptr, "FXQuatf *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_invert(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatf result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","invert", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = ((FXQuatf const *)arg1)->invert(); { FXQuatf *resultptr = new FXQuatf(result); vresult = FXRbGetRubyObj(resultptr, "FXQuatf *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_unitinvert(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatf result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","unitinvert", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = ((FXQuatf const *)arg1)->unitinvert(); { FXQuatf *resultptr = new FXQuatf(result); vresult = FXRbGetRubyObj(resultptr, "FXQuatf *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_conj(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatf result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","conj", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = ((FXQuatf const *)arg1)->conj(); { FXQuatf *resultptr = new FXQuatf(result); vresult = FXRbGetRubyObj(resultptr, "FXQuatf *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_arcN___(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatf *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","arc", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } result = (FXQuatf *) &(arg1)->arc((FXVec3f const &)*arg2,(FXVec3f const &)*arg3); vresult = FXRbGetRubyObj(result, "FXQuatf *"); delete arg2; delete arg3; return vresult; fail: delete arg2; delete arg3; return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_lerpN___(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; FXQuatf *arg2 = 0 ; FXQuatf *arg3 = 0 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; float val4 ; int ecode4 = 0 ; FXQuatf *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","lerp", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatf const &","lerp", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatf const &","lerp", 2, argv[0])); } arg2 = reinterpret_cast< FXQuatf * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXQuatf, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXQuatf const &","lerp", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatf const &","lerp", 3, argv[1])); } arg3 = reinterpret_cast< FXQuatf * >(argp3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","lerp", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (FXQuatf *) &(arg1)->lerp((FXQuatf const &)*arg2,(FXQuatf const &)*arg3,arg4); vresult = FXRbGetRubyObj(result, "FXQuatf *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_getRollPitchYaw(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getRollPitchYaw", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = (VALUE)FXQuatf_getRollPitchYaw((FXQuatf const *)arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf_getAxes(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getAxes", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); result = (VALUE)FXQuatf_getAxes((FXQuatf const *)arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; FXQuatf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXQuatf result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatf const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatf const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXQuatf * >(argp2); result = FXQuatf_operator_Sm___SWIG_0((FXQuatf const *)arg1,(FXQuatf const &)*arg2); { FXQuatf *resultptr = new FXQuatf(result); vresult = FXRbGetRubyObj(resultptr, "FXQuatf *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = (FXQuatf *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXQuatf * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXQuatf_operator_Sm___SWIG_1((FXQuatf const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXQuatf___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXQuatf, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXQuatf___mul____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXQuatf___mul____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXQuatf __mul__(FXQuatf const &other)\n" " FXVec3f __mul__(FXVec3f const &vec)\n"); return Qnil; } static swig_class SwigClassFXQuatd; SWIGINTERN VALUE _wrap_new_FXQuatd__SWIG_0(int argc, VALUE *argv, VALUE self) { FXQuatd *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXQuatd *)new FXQuatd(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatd__SWIG_1(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXQuatd *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXQuatd, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const &","FXQuatd", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatd const &","FXQuatd", 1, argv[0])); } arg1 = reinterpret_cast< FXQuatd * >(argp1); { result = (FXQuatd *)new FXQuatd((FXQuatd const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatd__SWIG_2(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXQuatd *result = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXQuatd", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXQuatd", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXQuatd", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","FXQuatd", 4, argv[3] )); } arg4 = static_cast< FXdouble >(val4); { result = (FXQuatd *)new FXQuatd(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatd__SWIG_3(int argc, VALUE *argv, VALUE self) { FXdouble *arg1 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatd *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_double, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXdouble const []","FXQuatd", 1, argv[0] )); } arg1 = reinterpret_cast< FXdouble * >(argp1); { result = (FXQuatd *)new FXQuatd((FXdouble const (*))arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatd__SWIG_4(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXdouble arg2 = (FXdouble) 0.0 ; void *argp1 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXQuatd *result = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXQuatd", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXQuatd", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); if (argc > 1) { ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXQuatd", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); } { result = (FXQuatd *)new FXQuatd((FXVec3d const &)*arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatd__SWIG_5(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXQuatd *result = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXQuatd", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXQuatd", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXQuatd", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); { result = (FXQuatd *)new FXQuatd(arg1,arg2,arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXQuatd_allocate(VALUE self) #else _wrap_FXQuatd_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXQuatd); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXQuatd__SWIG_6(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; FXQuatd *result = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXQuatd", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXQuatd", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","FXQuatd", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXQuatd", 2, argv[1])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","FXQuatd", 3, argv[2] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXQuatd", 3, argv[2])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); { result = (FXQuatd *)new FXQuatd((FXVec3d const &)*arg1,(FXVec3d const &)*arg2,(FXVec3d const &)*arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXQuatd(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXQuatd__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatd, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXQuatd__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_double, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXQuatd__SWIG_3(nargs, args, self); } } if ((argc >= 1) && (argc <= 2)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 1) { return _wrap_new_FXQuatd__SWIG_4(nargs, args, self); } { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXQuatd__SWIG_4(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXQuatd__SWIG_6(nargs, args, self); } } } } if (argc == 3) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXQuatd__SWIG_5(nargs, args, self); } } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXQuatd__SWIG_2(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXQuatd.new", " FXQuatd.new()\n" " FXQuatd.new(FXQuatd const &q)\n" " FXQuatd.new(FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww)\n" " FXQuatd.new(FXdouble const v[])\n" " FXQuatd.new(FXVec3d const &axis, FXdouble phi)\n" " FXQuatd.new(FXdouble roll, FXdouble pitch, FXdouble yaw)\n" " FXQuatd.new(FXVec3d const &ex, FXVec3d const &ey, FXVec3d const &ez)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_adjustN___(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatd *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","adjust", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = (FXQuatd *) &(arg1)->adjust(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXQuatd, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_setAxisAngle(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; FXVec3d *arg2 = 0 ; FXdouble arg3 = (FXdouble) 0.0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; double val3 ; int ecode3 = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","setAxisAngle", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","setAxisAngle", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","setAxisAngle", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); if (argc > 1) { ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","setAxisAngle", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); } (arg1)->setAxisAngle((FXVec3d const &)*arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_getAxisAngle(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getAxisAngle", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = (VALUE)FXQuatd_getAxisAngle((FXQuatd const *)arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_setRollPitchYaw(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","setRollPitchYaw", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","setRollPitchYaw", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","setRollPitchYaw", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","setRollPitchYaw", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); (arg1)->setRollPitchYaw(arg2,arg3,arg4); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_exp(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatd result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","exp", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = ((FXQuatd const *)arg1)->exp(); vresult = SWIG_NewPointerObj((new FXQuatd(static_cast< const FXQuatd& >(result))), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_log(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatd result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","log", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = ((FXQuatd const *)arg1)->log(); vresult = SWIG_NewPointerObj((new FXQuatd(static_cast< const FXQuatd& >(result))), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_invert(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatd result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","invert", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = ((FXQuatd const *)arg1)->invert(); vresult = SWIG_NewPointerObj((new FXQuatd(static_cast< const FXQuatd& >(result))), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_unitinvert(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatd result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","unitinvert", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = ((FXQuatd const *)arg1)->unitinvert(); vresult = SWIG_NewPointerObj((new FXQuatd(static_cast< const FXQuatd& >(result))), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_conj(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatd result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","conj", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = ((FXQuatd const *)arg1)->conj(); vresult = SWIG_NewPointerObj((new FXQuatd(static_cast< const FXQuatd& >(result))), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_arcN___(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; FXQuatd *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","arc", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","arc", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","arc", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","arc", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","arc", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = (FXQuatd *) &(arg1)->arc((FXVec3d const &)*arg2,(FXVec3d const &)*arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXQuatd, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_lerpN___(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; FXQuatd *arg2 = 0 ; FXQuatd *arg3 = 0 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; double val4 ; int ecode4 = 0 ; FXQuatd *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","lerp", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatd, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatd const &","lerp", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatd const &","lerp", 2, argv[0])); } arg2 = reinterpret_cast< FXQuatd * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXQuatd, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXQuatd const &","lerp", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatd const &","lerp", 3, argv[1])); } arg3 = reinterpret_cast< FXQuatd * >(argp3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","lerp", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (FXQuatd *) &(arg1)->lerp((FXQuatd const &)*arg2,(FXQuatd const &)*arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXQuatd, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_getRollPitchYaw(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getRollPitchYaw", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = (VALUE)FXQuatd_getRollPitchYaw((FXQuatd const *)arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; FXQuatd *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXQuatd result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatd, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatd const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatd const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXQuatd * >(argp2); result = FXQuatd_operator_Sm___SWIG_0((FXQuatd const *)arg1,(FXQuatd const &)*arg2); vresult = SWIG_NewPointerObj((new FXQuatd(static_cast< const FXQuatd& >(result))), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXQuatd_operator_Sm___SWIG_1((FXQuatd const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatd, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXQuatd, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXQuatd___mul____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatd, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXQuatd___mul____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXQuatd __mul__(FXQuatd const &other)\n" " FXVec3d __mul__(FXVec3d const &vec)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_setAxes(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; FXVec3d *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","setAxes", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","setAxes", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","setAxes", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","setAxes", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","setAxes", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXVec3d const &","setAxes", 4, argv[2] )); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","setAxes", 4, argv[2])); } arg4 = reinterpret_cast< FXVec3d * >(argp4); (arg1)->setAxes((FXVec3d const &)*arg2,(FXVec3d const &)*arg3,(FXVec3d const &)*arg4); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_getAxes(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getAxes", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = (VALUE)FXQuatd_getAxes((FXQuatd const *)arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_getXAxis(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getXAxis", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = ((FXQuatd const *)arg1)->getXAxis(); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_getYAxis(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getYAxis", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = ((FXQuatd const *)arg1)->getYAxis(); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXQuatd_getZAxis(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = (FXQuatd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getZAxis", 1, self )); } arg1 = reinterpret_cast< FXQuatd * >(argp1); result = ((FXQuatd const *)arg1)->getZAxis(); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXMat3f; SWIGINTERN VALUE _wrap_new_FXMat3f__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat3f *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXMat3f *)new FXMat3f(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3f__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXMat3f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXMat3f, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const &","FXMat3f", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3f const &","FXMat3f", 1, argv[0])); } arg1 = reinterpret_cast< FXMat3f * >(argp1); { result = (FXMat3f *)new FXMat3f((FXMat3f const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3f__SWIG_2(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; float val1 ; int ecode1 = 0 ; FXMat3f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); { result = (FXMat3f *)new FXMat3f(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3f__SWIG_3(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; FXfloat arg5 ; FXfloat arg6 ; FXfloat arg7 ; FXfloat arg8 ; FXfloat arg9 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; FXMat3f *result = 0 ; if ((argc < 9) || (argc > 9)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 4, argv[3] )); } arg4 = static_cast< FXfloat >(val4); ecode5 = SWIG_AsVal_float(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 5, argv[4] )); } arg5 = static_cast< FXfloat >(val5); ecode6 = SWIG_AsVal_float(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 6, argv[5] )); } arg6 = static_cast< FXfloat >(val6); ecode7 = SWIG_AsVal_float(argv[6], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 7, argv[6] )); } arg7 = static_cast< FXfloat >(val7); ecode8 = SWIG_AsVal_float(argv[7], &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 8, argv[7] )); } arg8 = static_cast< FXfloat >(val8); ecode9 = SWIG_AsVal_float(argv[8], &val9); if (!SWIG_IsOK(ecode9)) { SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "FXfloat","FXMat3f", 9, argv[8] )); } arg9 = static_cast< FXfloat >(val9); { result = (FXMat3f *)new FXMat3f(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3f__SWIG_4(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; FXMat3f *result = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[2]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[2], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } { result = (FXMat3f *)new FXMat3f((FXVec3f const &)*arg1,(FXVec3f const &)*arg2,(FXVec3f const &)*arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } delete arg1; delete arg2; delete arg3; return self; fail: delete arg1; delete arg2; delete arg3; return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXMat3f_allocate(VALUE self) #else _wrap_FXMat3f_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXMat3f); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXMat3f__SWIG_5(int argc, VALUE *argv, VALUE self) { FXQuatf *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXMat3f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXQuatf, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const &","FXMat3f", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatf const &","FXMat3f", 1, argv[0])); } arg1 = reinterpret_cast< FXQuatf * >(argp1); { result = (FXMat3f *)new FXMat3f((FXQuatf const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3f(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[9]; int ii; argc = nargs; if (argc > 9) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXMat3f__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat3f__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatf, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat3f__SWIG_5(nargs, args, self); } } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXMat3f__SWIG_2(nargs, args, self); } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat3f__SWIG_4(nargs, args, self); } } } } if (argc == 9) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXMat3f__SWIG_3(nargs, args, self); } } } } } } } } } } fail: Ruby_Format_OverloadedError( argc, 9, "FXMat3f.new", " FXMat3f.new()\n" " FXMat3f.new(FXMat3f const &other)\n" " FXMat3f.new(FXfloat w)\n" " FXMat3f.new(FXfloat a00, FXfloat a01, FXfloat a02, FXfloat a10, FXfloat a11, FXfloat a12, FXfloat a20, FXfloat a21, FXfloat a22)\n" " FXMat3f.new(FXVec3f const &a, FXVec3f const &b, FXVec3f const &c)\n" " FXMat3f.new(FXQuatf const &quat)\n"); return Qnil; } /* Document-method: Fx3d::FXMat3f.[] call-seq: [](i) -> FXVec3f Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXMat3f___getitem__(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec3f *) &FXMat3f___getitem__((FXMat3f const *)arg1,arg2); { FXVec3f* resultptr = new FXVec3f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat3f.[]= call-seq: []=(i, other) -> FXVec3f Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXMat3f___setitem__(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXint arg2 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 ; int res3 = 0 ; FXVec3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = (FXVec3f *) &FXMat3f___setitem__(arg1,arg2,(FXVec3d const &)*arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3f, 0 | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat3f.+ call-seq: +(other) -> FXMat3f Add operator. */ SWIGINTERN VALUE _wrap_FXMat3f___add__(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXMat3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat3f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","operator +", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat3f const &","operator +", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3f const &","operator +", 2, argv[0])); } arg2 = reinterpret_cast< FXMat3f * >(argp2); result = FXMat3f_operator_Sa_((FXMat3f const *)arg1,(FXMat3f const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat3f(static_cast< const FXMat3f& >(result))), SWIGTYPE_p_FXMat3f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat3f.- call-seq: -(other) -> FXMat3f Substraction operator. */ SWIGINTERN VALUE _wrap_FXMat3f___sub__(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXMat3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat3f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat3f const &","operator -", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3f const &","operator -", 2, argv[0])); } arg2 = reinterpret_cast< FXMat3f * >(argp2); result = FXMat3f_operator_Ss_((FXMat3f const *)arg1,(FXMat3f const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat3f(static_cast< const FXMat3f& >(result))), SWIGTYPE_p_FXMat3f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat3f.-@ call-seq: -@ -> FXMat3f Substraction operator. */ SWIGINTERN VALUE _wrap_FXMat3f___neg__(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat3f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); result = FXMat3f_operator_Ss_((FXMat3f const *)arg1); vresult = SWIG_NewPointerObj((new FXMat3f(static_cast< const FXMat3f& >(result))), SWIGTYPE_p_FXMat3f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXMat3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat3f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat3f const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3f const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXMat3f * >(argp2); result = FXMat3f_operator_Sm___SWIG_0((FXMat3f const *)arg1,(FXMat3f const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat3f(static_cast< const FXMat3f& >(result))), SWIGTYPE_p_FXMat3f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat3f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator *", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXMat3f_operator_Sm___SWIG_1((FXMat3f const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXMat3f(static_cast< const FXMat3f& >(result))), SWIGTYPE_p_FXMat3f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f___div__(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat3f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","operator /", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator /", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXMat3f_operator_Sd_((FXMat3f const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXMat3f(static_cast< const FXMat3f& >(result))), SWIGTYPE_p_FXMat3f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f___mul____SWIG_2(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXMat3f_operator_Sm___SWIG_2((FXMat3f const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f___mul____SWIG_3(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = FXMat3f_operator_Sm___SWIG_3((FXMat3f const *)arg1,(FXVec2f const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat3f___mul____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat3f___mul____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat3f___mul____SWIG_3(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3f___mul____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXMat3f __mul__(FXMat3f const &other)\n" " FXMat3f __mul__(FXfloat x)\n" " FXVec3f __mul__(FXVec3f const &other)\n" " FXVec2f __mul__(FXVec2f const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_eye(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f *","eye", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); result = (FXMat3f *) &(arg1)->eye(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3f, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_rot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXMat3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","rot", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","rot", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXMat3f *) &(arg1)->rot(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3f, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_rot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","rot", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = (FXMat3f *) &(arg1)->rot(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3f, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_rot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3f_rot__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3f_rot__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat3f.rot", " FXMat3f FXMat3f.rot(FXfloat c, FXfloat s)\n" " FXMat3f & FXMat3f.rot(FXfloat phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_trans(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXMat3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f *","trans", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","trans", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","trans", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXMat3f *) &(arg1)->trans(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3f, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_scale__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXMat3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","scale", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","scale", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXMat3f *) &(arg1)->scale(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3f, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_scale__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","scale", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = (FXMat3f *) &(arg1)->scale(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3f, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_scale(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3f_scale__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3f_scale__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat3f.scale", " FXMat3f FXMat3f.scale(FXfloat sx, FXfloat sy)\n" " FXMat3f & FXMat3f.scale(FXfloat s)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_det(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","det", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); result = (FXfloat)((FXMat3f const *)arg1)->det(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_transpose(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat3f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","transpose", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); result = ((FXMat3f const *)arg1)->transpose(); vresult = SWIG_NewPointerObj((new FXMat3f(static_cast< const FXMat3f& >(result))), SWIGTYPE_p_FXMat3f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3f_invert(int argc, VALUE *argv, VALUE self) { FXMat3f *arg1 = (FXMat3f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat3f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3f const *","invert", 1, self )); } arg1 = reinterpret_cast< FXMat3f * >(argp1); result = ((FXMat3f const *)arg1)->invert(); vresult = SWIG_NewPointerObj((new FXMat3f(static_cast< const FXMat3f& >(result))), SWIGTYPE_p_FXMat3f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXMat3d; SWIGINTERN VALUE _wrap_new_FXMat3d__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat3d *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXMat3d *)new FXMat3d(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3d__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXMat3d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXMat3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const &","FXMat3d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3d const &","FXMat3d", 1, argv[0])); } arg1 = reinterpret_cast< FXMat3d * >(argp1); { result = (FXMat3d *)new FXMat3d((FXMat3d const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3d__SWIG_2(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; double val1 ; int ecode1 = 0 ; FXMat3d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); { result = (FXMat3d *)new FXMat3d(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3d__SWIG_3(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; FXdouble arg5 ; FXdouble arg6 ; FXdouble arg7 ; FXdouble arg8 ; FXdouble arg9 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; double val8 ; int ecode8 = 0 ; double val9 ; int ecode9 = 0 ; FXMat3d *result = 0 ; if ((argc < 9) || (argc > 9)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 4, argv[3] )); } arg4 = static_cast< FXdouble >(val4); ecode5 = SWIG_AsVal_double(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 5, argv[4] )); } arg5 = static_cast< FXdouble >(val5); ecode6 = SWIG_AsVal_double(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 6, argv[5] )); } arg6 = static_cast< FXdouble >(val6); ecode7 = SWIG_AsVal_double(argv[6], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 7, argv[6] )); } arg7 = static_cast< FXdouble >(val7); ecode8 = SWIG_AsVal_double(argv[7], &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 8, argv[7] )); } arg8 = static_cast< FXdouble >(val8); ecode9 = SWIG_AsVal_double(argv[8], &val9); if (!SWIG_IsOK(ecode9)) { SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "FXdouble","FXMat3d", 9, argv[8] )); } arg9 = static_cast< FXdouble >(val9); { result = (FXMat3d *)new FXMat3d(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3d__SWIG_4(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; FXMat3d *result = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXMat3d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXMat3d", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","FXMat3d", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXMat3d", 2, argv[1])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","FXMat3d", 3, argv[2] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXMat3d", 3, argv[2])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); { result = (FXMat3d *)new FXMat3d((FXVec3d const &)*arg1,(FXVec3d const &)*arg2,(FXVec3d const &)*arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXMat3d_allocate(VALUE self) #else _wrap_FXMat3d_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXMat3d); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXMat3d__SWIG_5(int argc, VALUE *argv, VALUE self) { FXQuatd *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXMat3d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXQuatd, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const &","FXMat3d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatd const &","FXMat3d", 1, argv[0])); } arg1 = reinterpret_cast< FXQuatd * >(argp1); { result = (FXMat3d *)new FXMat3d((FXQuatd const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat3d(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[9]; int ii; argc = nargs; if (argc > 9) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXMat3d__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat3d__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatd, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat3d__SWIG_5(nargs, args, self); } } if (argc == 1) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXMat3d__SWIG_2(nargs, args, self); } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat3d__SWIG_4(nargs, args, self); } } } } if (argc == 9) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXMat3d__SWIG_3(nargs, args, self); } } } } } } } } } } fail: Ruby_Format_OverloadedError( argc, 9, "FXMat3d.new", " FXMat3d.new()\n" " FXMat3d.new(FXMat3d const &other)\n" " FXMat3d.new(FXdouble w)\n" " FXMat3d.new(FXdouble a00, FXdouble a01, FXdouble a02, FXdouble a10, FXdouble a11, FXdouble a12, FXdouble a20, FXdouble a21, FXdouble a22)\n" " FXMat3d.new(FXVec3d const &a, FXVec3d const &b, FXVec3d const &c)\n" " FXMat3d.new(FXQuatd const &quat)\n"); return Qnil; } /* Document-method: Fx3d::FXMat3d.[] call-seq: [](i) -> FXVec3d Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXMat3d___getitem__(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec3d *) &FXMat3d___getitem__((FXMat3d const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3d, 0 | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat3d.[]= call-seq: []=(i, other) -> FXVec3d Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXMat3d___setitem__(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXint arg2 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 ; int res3 = 0 ; FXVec3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = (FXVec3d *) &FXMat3d___setitem__(arg1,arg2,(FXVec3d const &)*arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3d, 0 | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat3d.+ call-seq: +(other) -> FXMat3d Add operator. */ SWIGINTERN VALUE _wrap_FXMat3d___add__(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXMat3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat3d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","operator +", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat3d const &","operator +", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3d const &","operator +", 2, argv[0])); } arg2 = reinterpret_cast< FXMat3d * >(argp2); result = FXMat3d_operator_Sa_((FXMat3d const *)arg1,(FXMat3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat3d(static_cast< const FXMat3d& >(result))), SWIGTYPE_p_FXMat3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat3d.- call-seq: -(other) -> FXMat3d Substraction operator. */ SWIGINTERN VALUE _wrap_FXMat3d___sub__(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXMat3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat3d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat3d const &","operator -", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3d const &","operator -", 2, argv[0])); } arg2 = reinterpret_cast< FXMat3d * >(argp2); result = FXMat3d_operator_Ss_((FXMat3d const *)arg1,(FXMat3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat3d(static_cast< const FXMat3d& >(result))), SWIGTYPE_p_FXMat3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat3d.-@ call-seq: -@ -> FXMat3d Substraction operator. */ SWIGINTERN VALUE _wrap_FXMat3d___neg__(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat3d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); result = FXMat3d_operator_Ss_((FXMat3d const *)arg1); vresult = SWIG_NewPointerObj((new FXMat3d(static_cast< const FXMat3d& >(result))), SWIGTYPE_p_FXMat3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXMat3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat3d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat3d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat3d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXMat3d * >(argp2); result = FXMat3d_operator_Sm___SWIG_0((FXMat3d const *)arg1,(FXMat3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat3d(static_cast< const FXMat3d& >(result))), SWIGTYPE_p_FXMat3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat3d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator *", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXMat3d_operator_Sm___SWIG_1((FXMat3d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXMat3d(static_cast< const FXMat3d& >(result))), SWIGTYPE_p_FXMat3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d___div__(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat3d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","operator /", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator /", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXMat3d_operator_Sd_((FXMat3d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXMat3d(static_cast< const FXMat3d& >(result))), SWIGTYPE_p_FXMat3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d___mul____SWIG_2(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXMat3d_operator_Sm___SWIG_2((FXMat3d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d___mul____SWIG_3(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = FXMat3d_operator_Sm___SWIG_3((FXMat3d const *)arg1,(FXVec2d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat3d___mul____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat3d___mul____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat3d___mul____SWIG_3(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3d___mul____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXMat3d __mul__(FXMat3d const &other)\n" " FXMat3d __mul__(FXdouble x)\n" " FXVec3d __mul__(FXVec3d const &other)\n" " FXVec2d __mul__(FXVec2d const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_eye(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d *","eye", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); result = (FXMat3d *) &(arg1)->eye(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_rot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXMat3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","rot", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","rot", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXMat3d *) &(arg1)->rot(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_rot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","rot", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = (FXMat3d *) &(arg1)->rot(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_rot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3d_rot__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3d_rot__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat3d.rot", " FXMat3d FXMat3d.rot(FXdouble c, FXdouble s)\n" " FXMat3d & FXMat3d.rot(FXdouble phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_trans(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXMat3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d *","trans", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","trans", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","trans", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXMat3d *) &(arg1)->trans(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_scale__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXMat3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","scale", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","scale", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXMat3d *) &(arg1)->scale(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_scale__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","scale", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = (FXMat3d *) &(arg1)->scale(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_scale(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3d_scale__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat3d_scale__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat3d.scale", " FXMat3d FXMat3d.scale(FXdouble sx, FXdouble sy)\n" " FXMat3d & FXMat3d.scale(FXdouble s)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_det(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","det", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); result = (FXdouble)((FXMat3d const *)arg1)->det(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_transpose(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat3d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","transpose", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); result = ((FXMat3d const *)arg1)->transpose(); vresult = SWIG_NewPointerObj((new FXMat3d(static_cast< const FXMat3d& >(result))), SWIGTYPE_p_FXMat3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat3d_invert(int argc, VALUE *argv, VALUE self) { FXMat3d *arg1 = (FXMat3d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat3d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat3d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat3d const *","invert", 1, self )); } arg1 = reinterpret_cast< FXMat3d * >(argp1); result = ((FXMat3d const *)arg1)->invert(); vresult = SWIG_NewPointerObj((new FXMat3d(static_cast< const FXMat3d& >(result))), SWIGTYPE_p_FXMat3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXMat4f; SWIGINTERN VALUE _wrap_new_FXMat4f__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4f *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXMat4f *)new FXMat4f(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat4f__SWIG_1(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; float val1 ; int ecode1 = 0 ; FXMat4f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); { result = (FXMat4f *)new FXMat4f(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat4f__SWIG_2(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; FXfloat arg5 ; FXfloat arg6 ; FXfloat arg7 ; FXfloat arg8 ; FXfloat arg9 ; FXfloat arg10 ; FXfloat arg11 ; FXfloat arg12 ; FXfloat arg13 ; FXfloat arg14 ; FXfloat arg15 ; FXfloat arg16 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; float val8 ; int ecode8 = 0 ; float val9 ; int ecode9 = 0 ; float val10 ; int ecode10 = 0 ; float val11 ; int ecode11 = 0 ; float val12 ; int ecode12 = 0 ; float val13 ; int ecode13 = 0 ; float val14 ; int ecode14 = 0 ; float val15 ; int ecode15 = 0 ; float val16 ; int ecode16 = 0 ; FXMat4f *result = 0 ; if ((argc < 16) || (argc > 16)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 16)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 4, argv[3] )); } arg4 = static_cast< FXfloat >(val4); ecode5 = SWIG_AsVal_float(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 5, argv[4] )); } arg5 = static_cast< FXfloat >(val5); ecode6 = SWIG_AsVal_float(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 6, argv[5] )); } arg6 = static_cast< FXfloat >(val6); ecode7 = SWIG_AsVal_float(argv[6], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 7, argv[6] )); } arg7 = static_cast< FXfloat >(val7); ecode8 = SWIG_AsVal_float(argv[7], &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 8, argv[7] )); } arg8 = static_cast< FXfloat >(val8); ecode9 = SWIG_AsVal_float(argv[8], &val9); if (!SWIG_IsOK(ecode9)) { SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 9, argv[8] )); } arg9 = static_cast< FXfloat >(val9); ecode10 = SWIG_AsVal_float(argv[9], &val10); if (!SWIG_IsOK(ecode10)) { SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 10, argv[9] )); } arg10 = static_cast< FXfloat >(val10); ecode11 = SWIG_AsVal_float(argv[10], &val11); if (!SWIG_IsOK(ecode11)) { SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 11, argv[10] )); } arg11 = static_cast< FXfloat >(val11); ecode12 = SWIG_AsVal_float(argv[11], &val12); if (!SWIG_IsOK(ecode12)) { SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 12, argv[11] )); } arg12 = static_cast< FXfloat >(val12); ecode13 = SWIG_AsVal_float(argv[12], &val13); if (!SWIG_IsOK(ecode13)) { SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 13, argv[12] )); } arg13 = static_cast< FXfloat >(val13); ecode14 = SWIG_AsVal_float(argv[13], &val14); if (!SWIG_IsOK(ecode14)) { SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 14, argv[13] )); } arg14 = static_cast< FXfloat >(val14); ecode15 = SWIG_AsVal_float(argv[14], &val15); if (!SWIG_IsOK(ecode15)) { SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 15, argv[14] )); } arg15 = static_cast< FXfloat >(val15); ecode16 = SWIG_AsVal_float(argv[15], &val16); if (!SWIG_IsOK(ecode16)) { SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "FXfloat","FXMat4f", 16, argv[15] )); } arg16 = static_cast< FXfloat >(val16); { result = (FXMat4f *)new FXMat4f(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat4f__SWIG_3(int argc, VALUE *argv, VALUE self) { FXVec4f *arg1 = 0 ; FXVec4f *arg2 = 0 ; FXVec4f *arg3 = 0 ; FXVec4f *arg4 = 0 ; FXMat4f *result = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg1 = new FXVec4f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2)), NUM2DBL(rb_ary_entry(argv[1], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[1],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } { if (TYPE(argv[2]) == T_ARRAY) { arg3 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2)), NUM2DBL(rb_ary_entry(argv[2], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[2],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg3 = new FXVec4f(*p); } } { if (TYPE(argv[3]) == T_ARRAY) { arg4 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[3], 0)), NUM2DBL(rb_ary_entry(argv[3], 1)), NUM2DBL(rb_ary_entry(argv[3], 2)), NUM2DBL(rb_ary_entry(argv[3], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[3],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg4 = new FXVec4f(*p); } } { result = (FXMat4f *)new FXMat4f((FXVec4f const &)*arg1,(FXVec4f const &)*arg2,(FXVec4f const &)*arg3,(FXVec4f const &)*arg4); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } delete arg1; delete arg2; delete arg3; delete arg4; return self; fail: delete arg1; delete arg2; delete arg3; delete arg4; return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXMat4f_allocate(VALUE self) #else _wrap_FXMat4f_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXMat4f); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXMat4f__SWIG_4(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXMat4f *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXMat4f, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const &","FXMat4f", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat4f const &","FXMat4f", 1, argv[0])); } arg1 = reinterpret_cast< FXMat4f * >(argp1); { result = (FXMat4f *)new FXMat4f((FXMat4f const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat4f(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[16]; int ii; argc = nargs; if (argc > 16) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXMat4f__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat4f__SWIG_4(nargs, args, self); } } if (argc == 1) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXMat4f__SWIG_1(nargs, args, self); } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat4f__SWIG_3(nargs, args, self); } } } } } if (argc == 16) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[12], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[13], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[14], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[15], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXMat4f__SWIG_2(nargs, args, self); } } } } } } } } } } } } } } } } } fail: Ruby_Format_OverloadedError( argc, 16, "FXMat4f.new", " FXMat4f.new()\n" " FXMat4f.new(FXfloat w)\n" " FXMat4f.new(FXfloat a00, FXfloat a01, FXfloat a02, FXfloat a03, FXfloat a10, FXfloat a11, FXfloat a12, FXfloat a13, FXfloat a20, FXfloat a21, FXfloat a22, FXfloat a23, FXfloat a30, FXfloat a31, FXfloat a32, FXfloat a33)\n" " FXMat4f.new(FXVec4f const &a, FXVec4f const &b, FXVec4f const &c, FXVec4f const &d)\n" " FXMat4f.new(FXMat4f const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_det(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","det", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); result = (FXfloat)((FXMat4f const *)arg1)->det(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_transpose(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","transpose", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); result = ((FXMat4f const *)arg1)->transpose(); { FXMat4f* resultptr = new FXMat4f(result); vresult = FXRbGetRubyObj(resultptr, "FXMat4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_invert(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","invert", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); result = ((FXMat4f const *)arg1)->invert(); { FXMat4f* resultptr = new FXMat4f(result); vresult = FXRbGetRubyObj(resultptr, "FXMat4f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4f.[] call-seq: [](i) -> FXVec4f Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXMat4f___getitem__(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec4f *) &FXMat4f___getitem__((FXMat4f const *)arg1,arg2); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4f.[]= call-seq: []=(i, other) -> FXVec4f Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXMat4f___setitem__(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXint arg2 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 ; int res3 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = (FXVec4f *) &FXMat4f___setitem__(arg1,arg2,(FXVec3d const &)*arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec4f, 0 | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4f.+ call-seq: +(other) -> FXMat4f Add operator. */ SWIGINTERN VALUE _wrap_FXMat4f___add__(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXMat4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","operator +", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat4f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat4f const &","operator +", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat4f const &","operator +", 2, argv[0])); } arg2 = reinterpret_cast< FXMat4f * >(argp2); result = FXMat4f_operator_Sa_((FXMat4f const *)arg1,(FXMat4f const &)*arg2); { FXMat4f* resultptr = new FXMat4f(result); vresult = FXRbGetRubyObj(resultptr, "FXMat4f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4f.- call-seq: -(other) -> FXMat4f Substraction operator. */ SWIGINTERN VALUE _wrap_FXMat4f___sub__(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXMat4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat4f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat4f const &","operator -", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat4f const &","operator -", 2, argv[0])); } arg2 = reinterpret_cast< FXMat4f * >(argp2); result = FXMat4f_operator_Ss_((FXMat4f const *)arg1,(FXMat4f const &)*arg2); { FXMat4f* resultptr = new FXMat4f(result); vresult = FXRbGetRubyObj(resultptr, "FXMat4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXMat4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat4f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat4f const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat4f const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXMat4f * >(argp2); result = FXMat4f_operator_Sm___SWIG_0((FXMat4f const *)arg1,(FXMat4f const &)*arg2); { FXMat4f* resultptr = new FXMat4f(result); vresult = FXRbGetRubyObj(resultptr, "FXMat4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat4f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator *", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXMat4f_operator_Sm___SWIG_1((FXMat4f const *)arg1,arg2); { FXMat4f* resultptr = new FXMat4f(result); vresult = FXRbGetRubyObj(resultptr, "FXMat4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f___mul____SWIG_2(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec4f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = FXMat4f_operator_Sm___SWIG_2((FXMat4f const *)arg1,(FXVec4f const &)*arg2); { FXVec4f* resultptr = new FXVec4f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f___mul____SWIG_3(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = FXMat4f_operator_Sm___SWIG_3((FXMat4f const *)arg1,(FXVec3f const &)*arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4f___mul____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4f___mul____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4f___mul____SWIG_3(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f___mul____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXMat4f __mul__(FXMat4f const &other)\n" " FXMat4f __mul__(FXfloat x)\n" " FXVec4f __mul__(FXVec4f const &other)\n" " FXVec3f __mul__(FXVec3f const &other)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f___div__(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat4f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","operator /", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","operator /", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = FXMat4f_operator_Sd_((FXMat4f const *)arg1,arg2); { FXMat4f* resultptr = new FXMat4f(result); vresult = FXRbGetRubyObj(resultptr, "FXMat4f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4f.-@ call-seq: -@ -> FXMat4f Substraction operator. */ SWIGINTERN VALUE _wrap_FXMat4f___neg__(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); result = FXMat4f_operator_Ss_((FXMat4f const *)arg1); { FXMat4f* resultptr = new FXMat4f(result); vresult = FXRbGetRubyObj(resultptr, "FXMat4f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4f.to_s call-seq: to_s -> FXString Convert class to a String representation. */ SWIGINTERN VALUE _wrap_FXMat4f_to_s(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXString result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f const *","to_s", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); result = FXMat4f_to_s((FXMat4f const *)arg1); vresult = to_ruby((&result)->text()); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_eye(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","eye", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); result = (FXMat4f *) &(arg1)->eye(); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_ortho(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; FXfloat arg5 ; FXfloat arg6 ; FXfloat arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 6) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","ortho", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","ortho", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","ortho", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","ortho", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); ecode5 = SWIG_AsVal_float(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXfloat","ortho", 5, argv[3] )); } arg5 = static_cast< FXfloat >(val5); ecode6 = SWIG_AsVal_float(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXfloat","ortho", 6, argv[4] )); } arg6 = static_cast< FXfloat >(val6); ecode7 = SWIG_AsVal_float(argv[5], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "FXfloat","ortho", 7, argv[5] )); } arg7 = static_cast< FXfloat >(val7); result = (FXMat4f *) &(arg1)->ortho(arg2,arg3,arg4,arg5,arg6,arg7); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_frustum(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; FXfloat arg5 ; FXfloat arg6 ; FXfloat arg7 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; float val7 ; int ecode7 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 6) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","frustum", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","frustum", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","frustum", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","frustum", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); ecode5 = SWIG_AsVal_float(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXfloat","frustum", 5, argv[3] )); } arg5 = static_cast< FXfloat >(val5); ecode6 = SWIG_AsVal_float(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXfloat","frustum", 6, argv[4] )); } arg6 = static_cast< FXfloat >(val6); ecode7 = SWIG_AsVal_float(argv[5], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "FXfloat","frustum", 7, argv[5] )); } arg7 = static_cast< FXfloat >(val7); result = (FXMat4f *) &(arg1)->frustum(arg2,arg3,arg4,arg5,arg6,arg7); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_left(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","left", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); result = (FXMat4f *) &(arg1)->left(); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_rot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXQuatf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatf const &","rot", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatf const &","rot", 2, argv[0])); } arg2 = reinterpret_cast< FXQuatf * >(argp2); result = (FXMat4f *) &(arg1)->rot((FXQuatf const &)*arg2); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_rot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXVec3f *arg2 = 0 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","rot", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","rot", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (FXMat4f *) &(arg1)->rot((FXVec3f const &)*arg2,arg3,arg4); vresult = FXRbGetRubyObj(result, "FXMat4f *"); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_rot__SWIG_2(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXVec3f *arg2 = 0 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val3 ; int ecode3 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","rot", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXMat4f *) &(arg1)->rot((FXVec3f const &)*arg2,arg3); vresult = FXRbGetRubyObj(result, "FXMat4f *"); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_rot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXQuatf, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4f_rot__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_rot__SWIG_2(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_rot__SWIG_1(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXMat4f.rot", " FXMat4f FXMat4f.rot(FXQuatf const &q)\n" " FXMat4f FXMat4f.rot(FXVec3f const &v, FXfloat c, FXfloat s)\n" " FXMat4f & FXMat4f.rot(FXVec3f const &v, FXfloat phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_xrot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","xrot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","xrot", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","xrot", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXMat4f *) &(arg1)->xrot(arg2,arg3); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_xrot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","xrot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","xrot", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = (FXMat4f *) &(arg1)->xrot(arg2); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_xrot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_xrot__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_xrot__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat4f.xrot", " FXMat4f FXMat4f.xrot(FXfloat c, FXfloat s)\n" " FXMat4f & FXMat4f.xrot(FXfloat phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_yrot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","yrot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","yrot", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","yrot", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXMat4f *) &(arg1)->yrot(arg2,arg3); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_yrot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","yrot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","yrot", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = (FXMat4f *) &(arg1)->yrot(arg2); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_yrot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_yrot__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_yrot__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat4f.yrot", " FXMat4f FXMat4f.yrot(FXfloat c, FXfloat s)\n" " FXMat4f & FXMat4f.yrot(FXfloat phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_zrot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","zrot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","zrot", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","zrot", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXMat4f *) &(arg1)->zrot(arg2,arg3); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_zrot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","zrot", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","zrot", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = (FXMat4f *) &(arg1)->zrot(arg2); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_zrot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_zrot__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_zrot__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat4f.zrot", " FXMat4f FXMat4f.zrot(FXfloat c, FXfloat s)\n" " FXMat4f & FXMat4f.zrot(FXfloat phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_look(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; FXVec3f *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","look", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } { if (TYPE(argv[2]) == T_ARRAY) { arg4 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[2], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg4 = new FXVec3f(*p); } } result = (FXMat4f *) &(arg1)->look((FXVec3f const &)*arg2,(FXVec3f const &)*arg3,(FXVec3f const &)*arg4); vresult = FXRbGetRubyObj(result, "FXMat4f *"); delete arg2; delete arg3; delete arg4; return vresult; fail: delete arg2; delete arg3; delete arg4; return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_trans__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","trans", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","trans", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","trans", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","trans", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (FXMat4f *) &(arg1)->trans(arg2,arg3,arg4); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_trans__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","trans", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (FXMat4f *) &(arg1)->trans((FXVec3f const &)*arg2); vresult = FXRbGetRubyObj(result, "FXMat4f *"); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_trans(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4f_trans__SWIG_1(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_trans__SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXMat4f.trans", " FXMat4f FXMat4f.trans(FXfloat tx, FXfloat ty, FXfloat tz)\n" " FXMat4f & FXMat4f.trans(FXVec3f const &v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_scale__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","scale", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","scale", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","scale", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (FXMat4f *) &(arg1)->scale(arg2,arg3,arg4); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_scale__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","scale", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); result = (FXMat4f *) &(arg1)->scale(arg2); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_scale__SWIG_2(int argc, VALUE *argv, VALUE self) { FXMat4f *arg1 = (FXMat4f *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4f, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4f *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat4f * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (FXMat4f *) &(arg1)->scale((FXVec3f const &)*arg2); vresult = FXRbGetRubyObj(result, "FXMat4f *"); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMat4f_scale(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4f_scale__SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_scale__SWIG_1(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4f, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4f_scale__SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXMat4f.scale", " FXMat4f FXMat4f.scale(FXfloat sx, FXfloat sy, FXfloat sz)\n" " FXMat4f FXMat4f.scale(FXfloat s)\n" " FXMat4f & FXMat4f.scale(FXVec3f const &v)\n"); return Qnil; } static swig_class SwigClassFXMat4d; SWIGINTERN VALUE _wrap_new_FXMat4d__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4d *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXMat4d *)new FXMat4d(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat4d__SWIG_1(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; double val1 ; int ecode1 = 0 ; FXMat4d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); { result = (FXMat4d *)new FXMat4d(arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat4d__SWIG_2(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; FXdouble arg5 ; FXdouble arg6 ; FXdouble arg7 ; FXdouble arg8 ; FXdouble arg9 ; FXdouble arg10 ; FXdouble arg11 ; FXdouble arg12 ; FXdouble arg13 ; FXdouble arg14 ; FXdouble arg15 ; FXdouble arg16 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; double val8 ; int ecode8 = 0 ; double val9 ; int ecode9 = 0 ; double val10 ; int ecode10 = 0 ; double val11 ; int ecode11 = 0 ; double val12 ; int ecode12 = 0 ; double val13 ; int ecode13 = 0 ; double val14 ; int ecode14 = 0 ; double val15 ; int ecode15 = 0 ; double val16 ; int ecode16 = 0 ; FXMat4d *result = 0 ; if ((argc < 16) || (argc > 16)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 16)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 4, argv[3] )); } arg4 = static_cast< FXdouble >(val4); ecode5 = SWIG_AsVal_double(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 5, argv[4] )); } arg5 = static_cast< FXdouble >(val5); ecode6 = SWIG_AsVal_double(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 6, argv[5] )); } arg6 = static_cast< FXdouble >(val6); ecode7 = SWIG_AsVal_double(argv[6], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 7, argv[6] )); } arg7 = static_cast< FXdouble >(val7); ecode8 = SWIG_AsVal_double(argv[7], &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 8, argv[7] )); } arg8 = static_cast< FXdouble >(val8); ecode9 = SWIG_AsVal_double(argv[8], &val9); if (!SWIG_IsOK(ecode9)) { SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 9, argv[8] )); } arg9 = static_cast< FXdouble >(val9); ecode10 = SWIG_AsVal_double(argv[9], &val10); if (!SWIG_IsOK(ecode10)) { SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 10, argv[9] )); } arg10 = static_cast< FXdouble >(val10); ecode11 = SWIG_AsVal_double(argv[10], &val11); if (!SWIG_IsOK(ecode11)) { SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 11, argv[10] )); } arg11 = static_cast< FXdouble >(val11); ecode12 = SWIG_AsVal_double(argv[11], &val12); if (!SWIG_IsOK(ecode12)) { SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 12, argv[11] )); } arg12 = static_cast< FXdouble >(val12); ecode13 = SWIG_AsVal_double(argv[12], &val13); if (!SWIG_IsOK(ecode13)) { SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 13, argv[12] )); } arg13 = static_cast< FXdouble >(val13); ecode14 = SWIG_AsVal_double(argv[13], &val14); if (!SWIG_IsOK(ecode14)) { SWIG_exception_fail(SWIG_ArgError(ecode14), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 14, argv[13] )); } arg14 = static_cast< FXdouble >(val14); ecode15 = SWIG_AsVal_double(argv[14], &val15); if (!SWIG_IsOK(ecode15)) { SWIG_exception_fail(SWIG_ArgError(ecode15), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 15, argv[14] )); } arg15 = static_cast< FXdouble >(val15); ecode16 = SWIG_AsVal_double(argv[15], &val16); if (!SWIG_IsOK(ecode16)) { SWIG_exception_fail(SWIG_ArgError(ecode16), Ruby_Format_TypeError( "", "FXdouble","FXMat4d", 16, argv[15] )); } arg16 = static_cast< FXdouble >(val16); { result = (FXMat4d *)new FXMat4d(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat4d__SWIG_3(int argc, VALUE *argv, VALUE self) { FXVec4d *arg1 = 0 ; FXVec4d *arg2 = 0 ; FXVec4d *arg3 = 0 ; FXVec4d *arg4 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; FXMat4d *result = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec4d const &","FXMat4d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","FXMat4d", 1, argv[0])); } arg1 = reinterpret_cast< FXVec4d * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","FXMat4d", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","FXMat4d", 2, argv[1])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec4d const &","FXMat4d", 3, argv[2] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","FXMat4d", 3, argv[2])); } arg3 = reinterpret_cast< FXVec4d * >(argp3); res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXVec4d const &","FXMat4d", 4, argv[3] )); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","FXMat4d", 4, argv[3])); } arg4 = reinterpret_cast< FXVec4d * >(argp4); { result = (FXMat4d *)new FXMat4d((FXVec4d const &)*arg1,(FXVec4d const &)*arg2,(FXVec4d const &)*arg3,(FXVec4d const &)*arg4); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXMat4d_allocate(VALUE self) #else _wrap_FXMat4d_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXMat4d); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXMat4d__SWIG_4(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXMat4d *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXMat4d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const &","FXMat4d", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat4d const &","FXMat4d", 1, argv[0])); } arg1 = reinterpret_cast< FXMat4d * >(argp1); { result = (FXMat4d *)new FXMat4d((FXMat4d const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXMat4d(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[16]; int ii; argc = nargs; if (argc > 16) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXMat4d__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat4d__SWIG_4(nargs, args, self); } } if (argc == 1) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXMat4d__SWIG_1(nargs, args, self); } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXMat4d__SWIG_3(nargs, args, self); } } } } } if (argc == 16) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[9], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[10], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[11], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[12], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[13], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[14], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[15], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXMat4d__SWIG_2(nargs, args, self); } } } } } } } } } } } } } } } } } fail: Ruby_Format_OverloadedError( argc, 16, "FXMat4d.new", " FXMat4d.new()\n" " FXMat4d.new(FXdouble w)\n" " FXMat4d.new(FXdouble a00, FXdouble a01, FXdouble a02, FXdouble a03, FXdouble a10, FXdouble a11, FXdouble a12, FXdouble a13, FXdouble a20, FXdouble a21, FXdouble a22, FXdouble a23, FXdouble a30, FXdouble a31, FXdouble a32, FXdouble a33)\n" " FXMat4d.new(FXVec4d const &a, FXVec4d const &b, FXVec4d const &c, FXVec4d const &d)\n" " FXMat4d.new(FXMat4d const &other)\n"); return Qnil; } /* Document-method: Fx3d::FXMat4d.[] call-seq: [](i) -> FXVec4d Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXMat4d___getitem__(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec4d *) &FXMat4d___getitem__((FXMat4d const *)arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec4d, 0 | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4d.[]= call-seq: []=(i, other) -> FXVec4d Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXMat4d___setitem__(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXint arg2 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 ; int res3 = 0 ; FXVec4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = (FXVec4d *) &FXMat4d___setitem__(arg1,arg2,(FXVec3d const &)*arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec4d, 0 | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4d.+ call-seq: +(other) -> FXMat4d Add operator. */ SWIGINTERN VALUE _wrap_FXMat4d___add__(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXMat4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","operator +", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat4d const &","operator +", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat4d const &","operator +", 2, argv[0])); } arg2 = reinterpret_cast< FXMat4d * >(argp2); result = FXMat4d_operator_Sa_((FXMat4d const *)arg1,(FXMat4d const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat4d(static_cast< const FXMat4d& >(result))), SWIGTYPE_p_FXMat4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4d.- call-seq: -(other) -> FXMat4d Substraction operator. */ SWIGINTERN VALUE _wrap_FXMat4d___sub__(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXMat4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat4d const &","operator -", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat4d const &","operator -", 2, argv[0])); } arg2 = reinterpret_cast< FXMat4d * >(argp2); result = FXMat4d_operator_Ss_((FXMat4d const *)arg1,(FXMat4d const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat4d(static_cast< const FXMat4d& >(result))), SWIGTYPE_p_FXMat4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXMat4d.-@ call-seq: -@ -> FXMat4d Substraction operator. */ SWIGINTERN VALUE _wrap_FXMat4d___neg__(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","operator -", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); result = FXMat4d_operator_Ss_((FXMat4d const *)arg1); vresult = SWIG_NewPointerObj((new FXMat4d(static_cast< const FXMat4d& >(result))), SWIGTYPE_p_FXMat4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d___mul____SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXMat4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMat4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMat4d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMat4d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXMat4d * >(argp2); result = FXMat4d_operator_Sm___SWIG_0((FXMat4d const *)arg1,(FXMat4d const &)*arg2); vresult = SWIG_NewPointerObj((new FXMat4d(static_cast< const FXMat4d& >(result))), SWIGTYPE_p_FXMat4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d___mul____SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat4d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator *", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXMat4d_operator_Sm___SWIG_1((FXMat4d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXMat4d(static_cast< const FXMat4d& >(result))), SWIGTYPE_p_FXMat4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d___div__(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat4d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","operator /", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator /", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = FXMat4d_operator_Sd_((FXMat4d const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXMat4d(static_cast< const FXMat4d& >(result))), SWIGTYPE_p_FXMat4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d___mul____SWIG_2(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec4d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = FXMat4d_operator_Sm___SWIG_2((FXMat4d const *)arg1,(FXVec4d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec4d(static_cast< const FXVec4d& >(result))), SWIGTYPE_p_FXVec4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d___mul____SWIG_3(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","operator *", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","operator *", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator *", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = FXMat4d_operator_Sm___SWIG_3((FXMat4d const *)arg1,(FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d___mul__(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4d___mul____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4d___mul____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4d___mul____SWIG_3(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d___mul____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "__mul__", " FXMat4d __mul__(FXMat4d const &other)\n" " FXMat4d __mul__(FXdouble x)\n" " FXVec4d __mul__(FXVec4d const &other)\n" " FXVec3d __mul__(FXVec3d const &v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_eye(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","eye", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); result = (FXMat4d *) &(arg1)->eye(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_ortho(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; FXdouble arg5 ; FXdouble arg6 ; FXdouble arg7 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 6) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","ortho", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","ortho", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","ortho", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","ortho", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); ecode5 = SWIG_AsVal_double(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXdouble","ortho", 5, argv[3] )); } arg5 = static_cast< FXdouble >(val5); ecode6 = SWIG_AsVal_double(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXdouble","ortho", 6, argv[4] )); } arg6 = static_cast< FXdouble >(val6); ecode7 = SWIG_AsVal_double(argv[5], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "FXdouble","ortho", 7, argv[5] )); } arg7 = static_cast< FXdouble >(val7); result = (FXMat4d *) &(arg1)->ortho(arg2,arg3,arg4,arg5,arg6,arg7); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_frustum(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; FXdouble arg5 ; FXdouble arg6 ; FXdouble arg7 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 6) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","frustum", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","frustum", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","frustum", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","frustum", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); ecode5 = SWIG_AsVal_double(argv[3], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXdouble","frustum", 5, argv[3] )); } arg5 = static_cast< FXdouble >(val5); ecode6 = SWIG_AsVal_double(argv[4], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXdouble","frustum", 6, argv[4] )); } arg6 = static_cast< FXdouble >(val6); ecode7 = SWIG_AsVal_double(argv[5], &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "FXdouble","frustum", 7, argv[5] )); } arg7 = static_cast< FXdouble >(val7); result = (FXMat4d *) &(arg1)->frustum(arg2,arg3,arg4,arg5,arg6,arg7); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_left(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","left", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); result = (FXMat4d *) &(arg1)->left(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_rot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXQuatd *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatd, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatd const &","rot", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatd const &","rot", 2, argv[0])); } arg2 = reinterpret_cast< FXQuatd * >(argp2); result = (FXMat4d *) &(arg1)->rot((FXQuatd const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_rot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXVec3d *arg2 = 0 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","rot", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","rot", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","rot", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","rot", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (FXMat4d *) &(arg1)->rot((FXVec3d const &)*arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_rot__SWIG_2(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXVec3d *arg2 = 0 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; double val3 ; int ecode3 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","rot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","rot", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","rot", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","rot", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXMat4d *) &(arg1)->rot((FXVec3d const &)*arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_rot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXQuatd, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4d_rot__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_rot__SWIG_2(nargs, args, self); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_rot__SWIG_1(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXMat4d.rot", " FXMat4d FXMat4d.rot(FXQuatd const &q)\n" " FXMat4d FXMat4d.rot(FXVec3d const &v, FXdouble c, FXdouble s)\n" " FXMat4d & FXMat4d.rot(FXVec3d const &v, FXdouble phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_xrot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","xrot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","xrot", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","xrot", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXMat4d *) &(arg1)->xrot(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_xrot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","xrot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","xrot", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = (FXMat4d *) &(arg1)->xrot(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_xrot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_xrot__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_xrot__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat4d.xrot", " FXMat4d FXMat4d.xrot(FXdouble c, FXdouble s)\n" " FXMat4d & FXMat4d.xrot(FXdouble phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_yrot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","yrot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","yrot", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","yrot", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXMat4d *) &(arg1)->yrot(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_yrot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","yrot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","yrot", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = (FXMat4d *) &(arg1)->yrot(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_yrot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_yrot__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_yrot__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat4d.yrot", " FXMat4d FXMat4d.yrot(FXdouble c, FXdouble s)\n" " FXMat4d & FXMat4d.yrot(FXdouble phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_zrot__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","zrot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","zrot", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","zrot", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXMat4d *) &(arg1)->zrot(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_zrot__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","zrot", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","zrot", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = (FXMat4d *) &(arg1)->zrot(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_zrot(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_zrot__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_zrot__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXMat4d.zrot", " FXMat4d FXMat4d.zrot(FXdouble c, FXdouble s)\n" " FXMat4d & FXMat4d.zrot(FXdouble phi)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_look(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; FXVec3d *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","look", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","look", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","look", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","look", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","look", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXVec3d const &","look", 4, argv[2] )); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","look", 4, argv[2])); } arg4 = reinterpret_cast< FXVec3d * >(argp4); result = (FXMat4d *) &(arg1)->look((FXVec3d const &)*arg2,(FXVec3d const &)*arg3,(FXVec3d const &)*arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_trans__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","trans", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","trans", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","trans", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","trans", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (FXMat4d *) &(arg1)->trans(arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_trans__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","trans", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","trans", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","trans", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (FXMat4d *) &(arg1)->trans((FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_trans(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4d_trans__SWIG_1(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_trans__SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXMat4d.trans", " FXMat4d FXMat4d.trans(FXdouble tx, FXdouble ty, FXdouble tz)\n" " FXMat4d & FXMat4d.trans(FXVec3d const &v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_scale__SWIG_0(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","scale", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","scale", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","scale", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (FXMat4d *) &(arg1)->scale(arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_scale__SWIG_1(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","scale", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); result = (FXMat4d *) &(arg1)->scale(arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_scale__SWIG_2(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXMat4d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d *","scale", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","scale", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","scale", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (FXMat4d *) &(arg1)->scale((FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMat4d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_scale(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXMat4d_scale__SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_scale__SWIG_1(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat4d, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXMat4d_scale__SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXMat4d.scale", " FXMat4d FXMat4d.scale(FXdouble sx, FXdouble sy, FXdouble sz)\n" " FXMat4d FXMat4d.scale(FXdouble s)\n" " FXMat4d & FXMat4d.scale(FXVec3d const &v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_det(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","det", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); result = (FXdouble)((FXMat4d const *)arg1)->det(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_transpose(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","transpose", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); result = ((FXMat4d const *)arg1)->transpose(); vresult = SWIG_NewPointerObj((new FXMat4d(static_cast< const FXMat4d& >(result))), SWIGTYPE_p_FXMat4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMat4d_invert(int argc, VALUE *argv, VALUE self) { FXMat4d *arg1 = (FXMat4d *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMat4d, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMat4d const *","invert", 1, self )); } arg1 = reinterpret_cast< FXMat4d * >(argp1); result = ((FXMat4d const *)arg1)->invert(); vresult = SWIG_NewPointerObj((new FXMat4d(static_cast< const FXMat4d& >(result))), SWIGTYPE_p_FXMat4d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXRangef; SWIGINTERN VALUE _wrap_new_FXRangef__SWIG_0(int argc, VALUE *argv, VALUE self) { FXRangef *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXRangef *)new FXRangef(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXRangef__SWIG_1(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXRangef *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const &","FXRangef", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","FXRangef", 1, argv[0])); } arg1 = reinterpret_cast< FXRangef * >(argp1); { result = (FXRangef *)new FXRangef((FXRangef const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXRangef__SWIG_2(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; FXfloat arg5 ; FXfloat arg6 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; float val5 ; int ecode5 = 0 ; float val6 ; int ecode6 = 0 ; FXRangef *result = 0 ; if ((argc < 6) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXRangef", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXRangef", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXRangef", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","FXRangef", 4, argv[3] )); } arg4 = static_cast< FXfloat >(val4); ecode5 = SWIG_AsVal_float(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXfloat","FXRangef", 5, argv[4] )); } arg5 = static_cast< FXfloat >(val5); ecode6 = SWIG_AsVal_float(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXfloat","FXRangef", 6, argv[5] )); } arg6 = static_cast< FXfloat >(val6); { result = (FXRangef *)new FXRangef(arg1,arg2,arg3,arg4,arg5,arg6); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXRangef_allocate(VALUE self) #else _wrap_FXRangef_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXRangef); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXRangef__SWIG_3(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXRangef *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXSpheref, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const &","FXRangef", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSpheref const &","FXRangef", 1, argv[0])); } arg1 = reinterpret_cast< FXSpheref * >(argp1); { result = (FXRangef *)new FXRangef((FXSpheref const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXRangef(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs; if (argc > 6) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXRangef__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXRangef__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXRangef__SWIG_3(nargs, args, self); } } if (argc == 6) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXRangef__SWIG_2(nargs, args, self); } } } } } } } fail: Ruby_Format_OverloadedError( argc, 6, "FXRangef.new", " FXRangef.new()\n" " FXRangef.new(FXRangef const &bounds)\n" " FXRangef.new(FXfloat xlo, FXfloat xhi, FXfloat ylo, FXfloat yhi, FXfloat zlo, FXfloat zhi)\n" " FXRangef.new(FXSpheref const &sphere)\n"); return Qnil; } /* Document-method: Fx3d::FXRangef.[] call-seq: [](i) -> FXVec3f Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXRangef___getitem__(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec3f *) &FXRangef___getitem__(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3f, 0 | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXRangef.[]= call-seq: []=(i, slice) Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXRangef___setitem__(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXint arg2 ; FXVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3f, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3f &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3f &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3f * >(argp3); FXRangef___setitem__(arg1,arg2,*arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_upper(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","upper", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = FXRangef_upper((FXRangef const *)arg1); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_lower(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","lower", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = FXRangef_lower((FXRangef const *)arg1); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_width(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","width", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (FXfloat)((FXRangef const *)arg1)->width(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_height(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","height", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (FXfloat)((FXRangef const *)arg1)->height(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_depth(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","depth", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (FXfloat)((FXRangef const *)arg1)->depth(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_longest(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","longest", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (FXfloat)((FXRangef const *)arg1)->longest(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_shortest(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","shortest", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (FXfloat)((FXRangef const *)arg1)->shortest(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_diameter(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","diameter", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (FXfloat)((FXRangef const *)arg1)->diameter(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_radius(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","radius", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (FXfloat)((FXRangef const *)arg1)->radius(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_diagonal(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","diagonal", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = ((FXRangef const *)arg1)->diagonal(); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_center(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","center", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = ((FXRangef const *)arg1)->center(); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXRangef.empty? call-seq: empty? -> bool Check if FXRangef is empty. */ SWIGINTERN VALUE _wrap_FXRangef_emptyq___(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","empty", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (bool)((FXRangef const *)arg1)->empty(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_containsq_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","contains", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","contains", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","contains", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","contains", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (bool)((FXRangef const *)arg1)->contains(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_containsq_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","contains", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (bool)((FXRangef const *)arg1)->contains((FXVec3f const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_containsq_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","contains", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (bool)((FXRangef const *)arg1)->contains((FXRangef const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_containsq_____SWIG_3(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXSpheref *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","contains", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSpheref, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSpheref const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSpheref const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXSpheref * >(argp2); result = (bool)((FXRangef const *)arg1)->contains((FXSpheref const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_containsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRangef_containsq_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRangef_containsq_____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRangef_containsq_____SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXRangef_containsq_____SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXRangef.contains?", " bool FXRangef.contains?(FXfloat x, FXfloat y, FXfloat z)\n" " bool FXRangef.contains?(FXVec3f const &p)\n" " bool FXRangef.contains?(FXRangef const &bounds)\n" " bool FXRangef.contains?(FXSpheref const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_includeN_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXRangef *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef *","include", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","include", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","include", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","include", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (FXRangef *) &(arg1)->include(arg2,arg3,arg4); vresult = FXRbGetRubyObj(result, "FXRangef *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_includeN_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXRangef *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef *","include", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (FXRangef *) &(arg1)->include((FXVec3f const &)*arg2); vresult = FXRbGetRubyObj(result, "FXRangef *"); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_includeN_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRangef *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef *","include", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (FXRangef *) &(arg1)->include((FXRangef const &)*arg2); vresult = FXRbGetRubyObj(result, "FXRangef *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_includeN_____SWIG_3(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXSpheref *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRangef *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef *","include", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSpheref, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSpheref const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSpheref const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXSpheref * >(argp2); result = (FXRangef *) &(arg1)->include((FXSpheref const &)*arg2); vresult = FXRbGetRubyObj(result, "FXRangef *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_includeN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRangef_includeN_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRangef_includeN_____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRangef_includeN_____SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXRangef_includeN_____SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXRangef.include!", " FXRangef FXRangef.include!(FXfloat x, FXfloat y, FXfloat z)\n" " FXRangef FXRangef.include!(FXVec3f const &v)\n" " FXRangef FXRangef.include!(FXRangef const &box)\n" " FXRangef & FXRangef.include!(FXSpheref const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_intersect__SWIG_0(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","intersect", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = (FXint)((FXRangef const *)arg1)->intersect((FXVec4f const &)*arg2); vresult = SWIG_From_int(static_cast< int >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_intersect__SWIG_1(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef *","intersect", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } result = (bool)(arg1)->intersect((FXVec3f const &)*arg2,(FXVec3f const &)*arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); delete arg2; delete arg3; return vresult; fail: delete arg2; delete arg3; return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_intersect(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRangef_intersect__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRangef_intersect__SWIG_1(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXRangef.intersect", " FXint FXRangef.intersect(FXVec4f const &plane)\n" " bool FXRangef.intersect(FXVec3f const &u, FXVec3f const &v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_overlapsq___(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","overlaps", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","overlaps", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","overlaps", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (bool)FXRangef_overlaps((FXRangef const *)arg1,(FXRangef const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_corner(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","corner", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); arg2 = NUM2INT(argv[0]); result = FXRangef_corner((FXRangef const *)arg1,arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_union(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRangef result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","onion", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","onion", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","onion", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = FXRangef_onion((FXRangef const *)arg1,(FXRangef const &)*arg2); { FXRangef* resultptr = new FXRangef(result); vresult = FXRbGetRubyObj(resultptr, "FXRangef *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRangef_intersection(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRangef result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRangef, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const *","intersection", 1, self )); } arg1 = reinterpret_cast< FXRangef * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","intersection", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","intersection", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = FXRangef_intersection((FXRangef const *)arg1,(FXRangef const &)*arg2); { FXRangef* resultptr = new FXRangef(result); vresult = FXRbGetRubyObj(resultptr, "FXRangef *"); } return vresult; fail: return Qnil; } static swig_class SwigClassFXRanged; SWIGINTERN VALUE _wrap_FXRanged_lower_set(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","lower", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","lower", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","lower", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); if (arg1) (arg1)->lower = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_lower_get(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","lower", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXVec3d *) & ((arg1)->lower); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_upper_set(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","upper", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","upper", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","upper", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); if (arg1) (arg1)->upper = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_upper_get(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","upper", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXVec3d *) & ((arg1)->upper); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXRanged__SWIG_0(int argc, VALUE *argv, VALUE self) { FXRanged *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXRanged *)new FXRanged(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXRanged__SWIG_1(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXRanged *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const &","FXRanged", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","FXRanged", 1, argv[0])); } arg1 = reinterpret_cast< FXRanged * >(argp1); { result = (FXRanged *)new FXRanged((FXRanged const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXRanged__SWIG_2(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; FXdouble arg5 ; FXdouble arg6 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; FXRanged *result = 0 ; if ((argc < 6) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXRanged", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXRanged", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXRanged", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","FXRanged", 4, argv[3] )); } arg4 = static_cast< FXdouble >(val4); ecode5 = SWIG_AsVal_double(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "FXdouble","FXRanged", 5, argv[4] )); } arg5 = static_cast< FXdouble >(val5); ecode6 = SWIG_AsVal_double(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "FXdouble","FXRanged", 6, argv[5] )); } arg6 = static_cast< FXdouble >(val6); { result = (FXRanged *)new FXRanged(arg1,arg2,arg3,arg4,arg5,arg6); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXRanged_allocate(VALUE self) #else _wrap_FXRanged_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXRanged); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXRanged__SWIG_3(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXRanged *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXSphered, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const &","FXRanged", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSphered const &","FXRanged", 1, argv[0])); } arg1 = reinterpret_cast< FXSphered * >(argp1); { result = (FXRanged *)new FXRanged((FXSphered const &)*arg1); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXRanged(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs; if (argc > 6) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXRanged__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXRanged__SWIG_1(nargs, args, self); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXRanged__SWIG_3(nargs, args, self); } } if (argc == 6) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXRanged__SWIG_2(nargs, args, self); } } } } } } } fail: Ruby_Format_OverloadedError( argc, 6, "FXRanged.new", " FXRanged.new()\n" " FXRanged.new(FXRanged const &bounds)\n" " FXRanged.new(FXdouble xlo, FXdouble xhi, FXdouble ylo, FXdouble yhi, FXdouble zlo, FXdouble zhi)\n" " FXRanged.new(FXSphered const &sphere)\n"); return Qnil; } /* Document-method: Fx3d::FXRanged.[] call-seq: [](i) -> FXVec3d Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXRanged___getitem__(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec3d *) &FXRanged___getitem__(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3d, 0 | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXRanged.[]= call-seq: []=(i, slice) Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXRanged___setitem__(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXint arg2 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); FXRanged___setitem__(arg1,arg2,*arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_width(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","width", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXdouble)((FXRanged const *)arg1)->width(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_height(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","height", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXdouble)((FXRanged const *)arg1)->height(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_depth(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","depth", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXdouble)((FXRanged const *)arg1)->depth(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_longest(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","longest", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXdouble)((FXRanged const *)arg1)->longest(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_shortest(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","shortest", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXdouble)((FXRanged const *)arg1)->shortest(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_diameter(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","diameter", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXdouble)((FXRanged const *)arg1)->diameter(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_radius(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","radius", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXdouble)((FXRanged const *)arg1)->radius(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_diagonal(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","diagonal", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = ((FXRanged const *)arg1)->diagonal(); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_center(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","center", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = ((FXRanged const *)arg1)->center(); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXRanged.empty? call-seq: empty? -> bool Check if FXRanged is empty. */ SWIGINTERN VALUE _wrap_FXRanged_emptyq___(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","empty", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (bool)((FXRanged const *)arg1)->empty(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_contains(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","contains", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","contains", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","contains", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","contains", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (bool)((FXRanged const *)arg1)->contains(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_containsq_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","contains", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (bool)((FXRanged const *)arg1)->contains((FXVec3d const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_containsq_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","contains", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = (bool)((FXRanged const *)arg1)->contains((FXRanged const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_containsq_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXSphered *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","contains", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSphered, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSphered const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSphered const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXSphered * >(argp2); result = (bool)((FXRanged const *)arg1)->contains((FXSphered const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_containsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRanged_containsq_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRanged_containsq_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRanged_containsq_____SWIG_2(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXRanged.contains?", " bool FXRanged.contains?(FXVec3d const &p)\n" " bool FXRanged.contains?(FXRanged const &bounds)\n" " bool FXRanged.contains?(FXSphered const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_include__SWIG_0(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXRanged *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","include", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","include", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","include", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","include", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (FXRanged *) &(arg1)->include(arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXRanged, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_include__SWIG_1(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRanged *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","include", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (FXRanged *) &(arg1)->include((FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXRanged, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_include__SWIG_2(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRanged *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","include", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = (FXRanged *) &(arg1)->include((FXRanged const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXRanged, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_include__SWIG_3(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXSphered *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRanged *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","include", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSphered, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSphered const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSphered const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXSphered * >(argp2); result = (FXRanged *) &(arg1)->include((FXSphered const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXRanged, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_include(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRanged_include__SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRanged_include__SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRanged_include__SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXRanged_include__SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXRanged.include", " FXRanged FXRanged.include(FXdouble x, FXdouble y, FXdouble z)\n" " FXRanged FXRanged.include(FXVec3d const &v)\n" " FXRanged FXRanged.include(FXRanged const &box)\n" " FXRanged & FXRanged.include(FXSphered const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_intersect__SWIG_0(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","intersect", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","intersect", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","intersect", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = (FXint)((FXRanged const *)arg1)->intersect((FXVec4d const &)*arg2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_intersect__SWIG_1(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged *","intersect", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","intersect", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","intersect", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","intersect", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","intersect", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = (bool)(arg1)->intersect((FXVec3d const &)*arg2,(FXVec3d const &)*arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_intersect(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec4d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRanged_intersect__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXRanged_intersect__SWIG_1(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXRanged.intersect", " FXint FXRanged.intersect(FXVec4d const &plane)\n" " bool FXRanged.intersect(FXVec3d const &u, FXVec3d const &v)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_overlapsq___(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","overlaps", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","overlaps", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","overlaps", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = (bool)FXRanged_overlaps((FXRanged const *)arg1,(FXRanged const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_corner(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3d > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","corner", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); arg2 = NUM2INT(argv[0]); result = FXRanged_corner((FXRanged const *)arg1,arg2); vresult = SWIG_NewPointerObj((new FXVec3d(static_cast< const FXVec3d& >(result))), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_union(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRanged result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","onion", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","onion", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","onion", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = FXRanged_onion((FXRanged const *)arg1,(FXRanged const &)*arg2); vresult = SWIG_NewPointerObj((new FXRanged(static_cast< const FXRanged& >(result))), SWIGTYPE_p_FXRanged, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXRanged_intersection(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = (FXRanged *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXRanged result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRanged, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const *","intersection", 1, self )); } arg1 = reinterpret_cast< FXRanged * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","intersection", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","intersection", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = FXRanged_intersection((FXRanged const *)arg1,(FXRanged const &)*arg2); vresult = SWIG_NewPointerObj((new FXRanged(static_cast< const FXRanged& >(result))), SWIGTYPE_p_FXRanged, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXSpheref; SWIGINTERN VALUE _wrap_FXSpheref_center_set(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","center", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } if (arg1) (arg1)->center = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_center_get(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","center", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); result = (FXVec3f *) & ((arg1)->center); { FXVec3f* resultptr = new FXVec3f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_radius_set(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","radius", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","radius", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->radius = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_radius_get(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","radius", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); result = (FXfloat) ((arg1)->radius); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSpheref__SWIG_0(int argc, VALUE *argv, VALUE self) { FXSpheref *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXSpheref *)new FXSpheref(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSpheref__SWIG_1(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXSpheref *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXSpheref, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const &","FXSpheref", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSpheref const &","FXSpheref", 1, argv[0])); } arg1 = reinterpret_cast< FXSpheref * >(argp1); result = (FXSpheref *)new FXSpheref((FXSpheref const &)*arg1); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSpheref__SWIG_2(int argc, VALUE *argv, VALUE self) { FXVec3f *arg1 = 0 ; FXfloat arg2 = (FXfloat) 0.0 ; float val2 ; int ecode2 = 0 ; FXSpheref *result = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { if (TYPE(argv[0]) == T_ARRAY) { arg1 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg1 = new FXVec3f(*p); } } if (argc > 1) { ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXSpheref", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); } result = (FXSpheref *)new FXSpheref((FXVec3f const &)*arg1,arg2); DATA_PTR(self) = result; delete arg1; return self; fail: delete arg1; return Qnil; } SWIGINTERN VALUE _wrap_new_FXSpheref__SWIG_3(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 = (FXfloat) 0.0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXSpheref *result = 0 ; if ((argc < 3) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXSpheref", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXSpheref", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXSpheref", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); if (argc > 3) { ecode4 = SWIG_AsVal_float(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","FXSpheref", 4, argv[3] )); } arg4 = static_cast< FXfloat >(val4); } result = (FXSpheref *)new FXSpheref(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXSpheref_allocate(VALUE self) #else _wrap_FXSpheref_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXSpheref); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXSpheref__SWIG_4(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXSpheref *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRangef const &","FXSpheref", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","FXSpheref", 1, argv[0])); } arg1 = reinterpret_cast< FXRangef * >(argp1); result = (FXSpheref *)new FXSpheref((FXRangef const &)*arg1); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSpheref(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXSpheref__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXSpheref__SWIG_1(nargs, args, self); } } if ((argc >= 1) && (argc <= 2)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 1) { return _wrap_new_FXSpheref__SWIG_2(nargs, args, self); } { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXSpheref__SWIG_2(nargs, args, self); } } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXSpheref__SWIG_4(nargs, args, self); } } if ((argc >= 3) && (argc <= 4)) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { if (argc <= 3) { return _wrap_new_FXSpheref__SWIG_3(nargs, args, self); } { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXSpheref__SWIG_3(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXSpheref.new", " FXSpheref.new()\n" " FXSpheref.new(FXSpheref const &sphere)\n" " FXSpheref.new(FXVec3f const &cen, FXfloat rad)\n" " FXSpheref.new(FXfloat x, FXfloat y, FXfloat z, FXfloat rad)\n" " FXSpheref.new(FXRangef const &bounds)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_diameter(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","diameter", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); result = (FXfloat)((FXSpheref const *)arg1)->diameter(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXSpheref.empty? call-seq: empty? -> bool Check if FXSpheref is empty. */ SWIGINTERN VALUE _wrap_FXSpheref_emptyq___(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","empty", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); result = (bool)((FXSpheref const *)arg1)->empty(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_containsq_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","contains", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","contains", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","contains", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","contains", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (bool)((FXSpheref const *)arg1)->contains(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_containsq_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","contains", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (bool)((FXSpheref const *)arg1)->contains((FXVec3f const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_containsq_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","contains", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (bool)((FXSpheref const *)arg1)->contains((FXRangef const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_containsq_____SWIG_3(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXSpheref *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","contains", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSpheref, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSpheref const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSpheref const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXSpheref * >(argp2); result = (bool)((FXSpheref const *)arg1)->contains((FXSpheref const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_containsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_containsq_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_containsq_____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_containsq_____SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXSpheref_containsq_____SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXSpheref.contains?", " bool FXSpheref.contains?(FXfloat x, FXfloat y, FXfloat z)\n" " bool FXSpheref.contains?(FXVec3f const &p)\n" " bool FXSpheref.contains?(FXRangef const &box)\n" " bool FXSpheref.contains?(FXSpheref const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeN_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXSpheref *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","include", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","include", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","include", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","include", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (FXSpheref *) &(arg1)->include(arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSpheref, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeN_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXSpheref *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","include", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (FXSpheref *) &(arg1)->include((FXVec3f const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSpheref, 0 | 0 ); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeInRadiusN_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXSpheref *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","includeInRadius", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","includeInRadius", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","includeInRadius", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","includeInRadius", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); result = (FXSpheref *) &(arg1)->includeInRadius(arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSpheref, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeInRadiusN_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXSpheref *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","includeInRadius", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } result = (FXSpheref *) &(arg1)->includeInRadius((FXVec3f const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSpheref, 0 | 0 ); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeN_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSpheref *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","include", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (FXSpheref *) &(arg1)->include((FXRangef const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSpheref, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeInRadiusN_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSpheref *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","includeInRadius", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","includeInRadius", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","includeInRadius", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (FXSpheref *) &(arg1)->includeInRadius((FXRangef const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSpheref, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeN_____SWIG_3(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXSpheref *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSpheref *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","include", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSpheref, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSpheref const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSpheref const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXSpheref * >(argp2); result = (FXSpheref *) &(arg1)->include((FXSpheref const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSpheref, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_includeN_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_includeN_____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_includeN_____SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXSpheref_includeN_____SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXSpheref.include!", " FXSpheref FXSpheref.include!(FXfloat x, FXfloat y, FXfloat z)\n" " FXSpheref FXSpheref.include!(FXVec3f const &p)\n" " FXSpheref FXSpheref.include!(FXRangef const &box)\n" " FXSpheref & FXSpheref.include!(FXSpheref const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeInRadiusN_____SWIG_3(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXSpheref *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSpheref *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref *","includeInRadius", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSpheref, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSpheref const &","includeInRadius", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSpheref const &","includeInRadius", 2, argv[0])); } arg2 = reinterpret_cast< FXSpheref * >(argp2); result = (FXSpheref *) &(arg1)->includeInRadius((FXSpheref const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSpheref, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_includeInRadiusN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_includeInRadiusN_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_includeInRadiusN_____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_includeInRadiusN_____SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXSpheref_includeInRadiusN_____SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXSpheref.includeInRadius!", " FXSpheref FXSpheref.includeInRadius!(FXfloat x, FXfloat y, FXfloat z)\n" " FXSpheref FXSpheref.includeInRadius!(FXVec3f const &p)\n" " FXSpheref FXSpheref.includeInRadius!(FXRangef const &box)\n" " FXSpheref & FXSpheref.includeInRadius!(FXSpheref const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_intersect(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","intersect", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } result = (FXint)((FXSpheref const *)arg1)->intersect((FXVec4f const &)*arg2); vresult = SWIG_From_int(static_cast< int >(result)); delete arg2; return vresult; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_intersectsq___(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXVec3f *arg2 = 0 ; FXVec3f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","intersect", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } { if (TYPE(argv[1]) == T_ARRAY) { arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg3 = new FXVec3f(*p); } } result = (bool)((FXSpheref const *)arg1)->intersect((FXVec3f const &)*arg2,(FXVec3f const &)*arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); delete arg2; delete arg3; return vresult; fail: delete arg2; delete arg3; return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_overlapsq_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","overlap", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","overlap", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","overlap", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (bool)FXSpheref_overlap__SWIG_0((FXSpheref const *)arg1,(FXRangef const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_overlapsq_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXSpheref *arg1 = (FXSpheref *) 0 ; FXSpheref *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSpheref, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSpheref const *","overlap", 1, self )); } arg1 = reinterpret_cast< FXSpheref * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSpheref, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSpheref const &","overlap", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSpheref const &","overlap", 2, argv[0])); } arg2 = reinterpret_cast< FXSpheref * >(argp2); result = (bool)FXSpheref_overlap__SWIG_1((FXSpheref const *)arg1,(FXSpheref const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSpheref_overlapsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRangef, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_overlapsq_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSpheref, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSpheref_overlapsq_____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "overlaps?", " bool overlaps?(FXRangef const &other)\n" " bool overlaps?(FXSpheref const &other)\n"); return Qnil; } static swig_class SwigClassFXSphered; SWIGINTERN VALUE _wrap_FXSphered_center_set(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","center", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","center", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","center", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); if (arg1) (arg1)->center = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_center_get(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3d *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","center", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); result = (FXVec3d *) & ((arg1)->center); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3d, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_radius_set(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","radius", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","radius", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->radius = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_radius_get(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","radius", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); result = (FXdouble) ((arg1)->radius); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSphered__SWIG_0(int argc, VALUE *argv, VALUE self) { FXSphered *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXSphered *)new FXSphered(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSphered__SWIG_1(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXSphered *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXSphered, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const &","FXSphered", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSphered const &","FXSphered", 1, argv[0])); } arg1 = reinterpret_cast< FXSphered * >(argp1); result = (FXSphered *)new FXSphered((FXSphered const &)*arg1); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSphered__SWIG_2(int argc, VALUE *argv, VALUE self) { FXVec3d *arg1 = 0 ; FXdouble arg2 = (FXdouble) 0.0 ; void *argp1 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; FXSphered *result = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const &","FXSphered", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","FXSphered", 1, argv[0])); } arg1 = reinterpret_cast< FXVec3d * >(argp1); if (argc > 1) { ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXSphered", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); } result = (FXSphered *)new FXSphered((FXVec3d const &)*arg1,arg2); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSphered__SWIG_3(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 = (FXdouble) 0.0 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXSphered *result = 0 ; if ((argc < 3) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXSphered", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXSphered", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXSphered", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); if (argc > 3) { ecode4 = SWIG_AsVal_double(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","FXSphered", 4, argv[3] )); } arg4 = static_cast< FXdouble >(val4); } result = (FXSphered *)new FXSphered(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXSphered_allocate(VALUE self) #else _wrap_FXSphered_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXSphered); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXSphered__SWIG_4(int argc, VALUE *argv, VALUE self) { FXRanged *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXSphered *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRanged const &","FXSphered", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","FXSphered", 1, argv[0])); } arg1 = reinterpret_cast< FXRanged * >(argp1); result = (FXSphered *)new FXSphered((FXRanged const &)*arg1); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXSphered(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXSphered__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXSphered__SWIG_1(nargs, args, self); } } if ((argc >= 1) && (argc <= 2)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 1) { return _wrap_new_FXSphered__SWIG_2(nargs, args, self); } { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXSphered__SWIG_2(nargs, args, self); } } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXSphered__SWIG_4(nargs, args, self); } } if ((argc >= 3) && (argc <= 4)) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { if (argc <= 3) { return _wrap_new_FXSphered__SWIG_3(nargs, args, self); } { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXSphered__SWIG_3(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXSphered.new", " FXSphered.new()\n" " FXSphered.new(FXSphered const &sphere)\n" " FXSphered.new(FXVec3d const &cen, FXdouble rad)\n" " FXSphered.new(FXdouble x, FXdouble y, FXdouble z, FXdouble rad)\n" " FXSphered.new(FXRanged const &bounds)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_diameter(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","diameter", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); result = (FXdouble)((FXSphered const *)arg1)->diameter(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXSphered.empty? call-seq: empty? -> bool Check if FXSphered is empty. */ SWIGINTERN VALUE _wrap_FXSphered_emptyq___(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","empty", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); result = (bool)((FXSphered const *)arg1)->empty(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_containsq_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","contains", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","contains", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","contains", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","contains", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (bool)((FXSphered const *)arg1)->contains(arg2,arg3,arg4); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_containsq_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","contains", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (bool)((FXSphered const *)arg1)->contains((FXVec3d const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_containsq_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","contains", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = (bool)((FXSphered const *)arg1)->contains((FXRanged const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_containsq_____SWIG_3(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXSphered *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","contains", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSphered, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSphered const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSphered const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXSphered * >(argp2); result = (bool)((FXSphered const *)arg1)->contains((FXSphered const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_containsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_containsq_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_containsq_____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_containsq_____SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXSphered_containsq_____SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXSphered.contains?", " bool FXSphered.contains?(FXdouble x, FXdouble y, FXdouble z)\n" " bool FXSphered.contains?(FXVec3d const &p)\n" " bool FXSphered.contains?(FXRanged const &box)\n" " bool FXSphered.contains?(FXSphered const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeN_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXSphered *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","include", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","include", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","include", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","include", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (FXSphered *) &(arg1)->include(arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSphered, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeN_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSphered *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","include", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (FXSphered *) &(arg1)->include((FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSphered, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeInRadiusN_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXSphered *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","includeInRadius", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","includeInRadius", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","includeInRadius", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","includeInRadius", 4, argv[2] )); } arg4 = static_cast< FXdouble >(val4); result = (FXSphered *) &(arg1)->includeInRadius(arg2,arg3,arg4); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSphered, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeInRadiusN_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXVec3d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSphered *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","includeInRadius", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","includeInRadius", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","includeInRadius", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); result = (FXSphered *) &(arg1)->includeInRadius((FXVec3d const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSphered, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeN_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSphered *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","include", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = (FXSphered *) &(arg1)->include((FXRanged const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSphered, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeInRadiusN_____SWIG_2(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSphered *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","includeInRadius", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","includeInRadius", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","includeInRadius", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = (FXSphered *) &(arg1)->includeInRadius((FXRanged const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSphered, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeN_____SWIG_3(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXSphered *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSphered *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","include", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSphered, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSphered const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSphered const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXSphered * >(argp2); result = (FXSphered *) &(arg1)->include((FXSphered const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSphered, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_includeN_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_includeN_____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_includeN_____SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXSphered_includeN_____SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXSphered.include!", " FXSphered FXSphered.include!(FXdouble x, FXdouble y, FXdouble z)\n" " FXSphered FXSphered.include!(FXVec3d const &p)\n" " FXSphered FXSphered.include!(FXRanged const &box)\n" " FXSphered & FXSphered.include!(FXSphered const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeInRadiusN_____SWIG_3(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXSphered *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXSphered *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered *","includeInRadius", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSphered, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSphered const &","includeInRadius", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSphered const &","includeInRadius", 2, argv[0])); } arg2 = reinterpret_cast< FXSphered * >(argp2); result = (FXSphered *) &(arg1)->includeInRadius((FXSphered const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXSphered, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_includeInRadiusN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 5) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_includeInRadiusN_____SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_includeInRadiusN_____SWIG_2(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_includeInRadiusN_____SWIG_3(nargs, args, self); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_FXSphered_includeInRadiusN_____SWIG_0(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "FXSphered.includeInRadius!", " FXSphered FXSphered.includeInRadius!(FXdouble x, FXdouble y, FXdouble z)\n" " FXSphered FXSphered.includeInRadius!(FXVec3d const &p)\n" " FXSphered FXSphered.includeInRadius!(FXRanged const &box)\n" " FXSphered & FXSphered.includeInRadius!(FXSphered const &sphere)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_intersect(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXVec4d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","intersect", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec4d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec4d const &","intersect", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec4d const &","intersect", 2, argv[0])); } arg2 = reinterpret_cast< FXVec4d * >(argp2); result = (FXint)((FXSphered const *)arg1)->intersect((FXVec4d const &)*arg2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_intersectsq___(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXVec3d *arg2 = 0 ; FXVec3d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","intersect", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","intersect", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","intersect", 2, argv[0])); } arg2 = reinterpret_cast< FXVec3d * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","intersect", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","intersect", 3, argv[1])); } arg3 = reinterpret_cast< FXVec3d * >(argp3); result = (bool)((FXSphered const *)arg1)->intersect((FXVec3d const &)*arg2,(FXVec3d const &)*arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_overlapsq_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXRanged *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","overlap", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRanged, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRanged const &","overlap", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRanged const &","overlap", 2, argv[0])); } arg2 = reinterpret_cast< FXRanged * >(argp2); result = (bool)FXSphered_overlap__SWIG_0((FXSphered const *)arg1,(FXRanged const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_overlapsq_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXSphered *arg1 = (FXSphered *) 0 ; FXSphered *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXSphered, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSphered const *","overlap", 1, self )); } arg1 = reinterpret_cast< FXSphered * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSphered, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSphered const &","overlap", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSphered const &","overlap", 2, argv[0])); } arg2 = reinterpret_cast< FXSphered * >(argp2); result = (bool)FXSphered_overlap__SWIG_1((FXSphered const *)arg1,(FXSphered const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXSphered_overlapsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRanged, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_overlapsq_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSphered, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXSphered_overlapsq_____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "overlaps?", " bool overlaps?(FXRanged const &other)\n" " bool overlaps?(FXSphered const &other)\n"); return Qnil; } static swig_class SwigClassFXGLVisual; SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXGLVisual_allocate(VALUE self) #else _wrap_FXGLVisual_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXGLVisual); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXGLVisual(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXuint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXGLVisual *result = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXApp, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXApp *","FXGLVisual", 1, argv[0] )); } arg1 = reinterpret_cast< FXApp * >(argp1); arg2 = NUM2UINT(argv[1]); { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXGLVisual *)new_FXGLVisual(arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_supported(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXApp, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXApp *","FXGLVisual_supported", 1, argv[0] )); } arg1 = reinterpret_cast< FXApp * >(argp1); { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } result = (VALUE)FXGLVisual_supported(arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getRedSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getRedSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getRedSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getGreenSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getGreenSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getGreenSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getBlueSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getBlueSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getBlueSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getAlphaSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getAlphaSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getAlphaSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getDepthSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getDepthSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getDepthSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getStencilSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getStencilSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getStencilSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getAccumRedSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getAccumRedSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getAccumRedSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getAccumGreenSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getAccumGreenSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getAccumGreenSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getAccumBlueSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getAccumBlueSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getAccumBlueSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getAccumAlphaSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getAccumAlphaSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getAccumAlphaSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setRedSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setRedSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setRedSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setGreenSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setGreenSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setGreenSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setBlueSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setBlueSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setBlueSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setAlphaSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setAlphaSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setAlphaSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setDepthSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setDepthSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setDepthSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setStencilSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setStencilSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setStencilSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setAccumRedSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setAccumRedSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setAccumRedSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setAccumGreenSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setAccumGreenSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setAccumGreenSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setAccumBlueSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setAccumBlueSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setAccumBlueSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_setAccumAlphaSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","setAccumAlphaSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setAccumAlphaSize(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualRedSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualRedSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualRedSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualGreenSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualGreenSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualGreenSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualBlueSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualBlueSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualBlueSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualAlphaSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualAlphaSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualAlphaSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualDepthSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualDepthSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualDepthSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualStencilSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualStencilSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualStencilSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualAccumRedSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualAccumRedSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualAccumRedSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualAccumGreenSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualAccumGreenSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualAccumGreenSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualAccumBlueSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualAccumBlueSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualAccumBlueSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_getActualAccumAlphaSize(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","getActualAccumAlphaSize", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXint)((FXGLVisual const *)arg1)->getActualAccumAlphaSize(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_isDoubleBuffer(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","isDoubleBuffer", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXbool)((FXGLVisual const *)arg1)->isDoubleBuffer(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_isStereo(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","isStereo", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXbool)((FXGLVisual const *)arg1)->isStereo(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_isAccelerated(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","isAccelerated", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXbool)((FXGLVisual const *)arg1)->isAccelerated(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_isBufferSwapCopy(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","isBufferSwapCopy", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); result = (FXbool)((FXGLVisual const *)arg1)->isBufferSwapCopy(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_save(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual const *","save", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLVisual_save((FXGLVisual const *)arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_load(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","load", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLVisual_load(arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_create(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","create", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); FXGLVisual_create(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_detach(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","detach", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); FXGLVisual_detach(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLVisual_destroy(int argc, VALUE *argv, VALUE self) { FXGLVisual *arg1 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLVisual *","destroy", 1, self )); } arg1 = reinterpret_cast< FXGLVisual * >(argp1); FXGLVisual_destroy(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_glUseFXFont(int argc, VALUE *argv, VALUE self) { FXFont *arg1 = (FXFont *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXFont *","glUseFXFont", 1, argv[0] )); } arg1 = reinterpret_cast< FXFont * >(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","glUseFXFont", 2, argv[1] )); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","glUseFXFont", 3, argv[2] )); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","glUseFXFont", 4, argv[3] )); } arg4 = static_cast< int >(val4); glUseFXFont(arg1,arg2,arg3,arg4); return Qnil; fail: return Qnil; } static swig_class SwigClassFXGLContext; SWIGINTERN VALUE _wrap_new_FXGLContext__SWIG_0(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXGLVisual *arg2 = (FXGLVisual *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; FXGLContext *result = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXApp, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXApp *","FXGLContext", 1, argv[0] )); } arg1 = reinterpret_cast< FXApp * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLVisual *","FXGLContext", 2, argv[1] )); } arg2 = reinterpret_cast< FXGLVisual * >(argp2); { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXGLContext *)new_FXGLContext__SWIG_0(arg1,arg2); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXGLContext_allocate(VALUE self) #else _wrap_FXGLContext_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXGLContext); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXGLContext__SWIG_1(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXGLVisual *arg2 = (FXGLVisual *) 0 ; FXGLContext *arg3 = (FXGLContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; FXGLContext *result = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXApp, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXApp *","FXGLContext", 1, argv[0] )); } arg1 = reinterpret_cast< FXApp * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLVisual *","FXGLContext", 2, argv[1] )); } arg2 = reinterpret_cast< FXGLVisual * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXGLContext *","FXGLContext", 3, argv[2] )); } arg3 = reinterpret_cast< FXGLContext * >(argp3); { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXGLContext *)new_FXGLContext__SWIG_1(arg1,arg2,arg3); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXGLContext(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs; if (argc > 3) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXApp, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXGLVisual, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXGLContext__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXApp, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXGLVisual, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXGLContext, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXGLContext__SWIG_1(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXGLContext.new", " FXGLContext.new(FXApp *a, FXGLVisual *vis)\n" " FXGLContext.new(FXApp *a, FXGLVisual *vis, FXGLContext *shared)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_isShared(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext const *","isShared", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); result = (FXbool)((FXGLContext const *)arg1)->isShared(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_getVisual(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXGLVisual *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext const *","getVisual", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); result = (FXGLVisual *)((FXGLContext const *)arg1)->getVisual(); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXGLVisual, (void **) &result); vresult = FXRbGetRubyObj(result, ty); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_begin(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; FXDrawable *arg2 = (FXDrawable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext *","begin", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable *","begin", 2, argv[0] )); } arg2 = reinterpret_cast< FXDrawable * >(argp2); result = (FXbool)(arg1)->begin(arg2); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_end(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext *","end", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); result = (FXbool)(arg1)->end(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_swapBuffers(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext *","swapBuffers", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); (arg1)->swapBuffers(); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_swapSubBuffers(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; FXint arg2 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext *","swapSubBuffers", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); (arg1)->swapSubBuffers(arg2,arg3,arg4,arg5); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_save(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext const *","save", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLContext_save((FXGLContext const *)arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_load(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext *","load", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLContext_load(arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_create(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext *","create", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); FXGLContext_create(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_detach(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext *","detach", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); FXGLContext_detach(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLContext_destroy(int argc, VALUE *argv, VALUE self) { FXGLContext *arg1 = (FXGLContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLContext *","destroy", 1, self )); } arg1 = reinterpret_cast< FXGLContext * >(argp1); FXGLContext_destroy(arg1); return Qnil; fail: return Qnil; } static swig_class SwigClassFXGLCanvas; SWIGINTERN VALUE _wrap_new_FXGLCanvas__SWIG_0(int argc, VALUE *argv, VALUE self) { FXComposite *arg1 = (FXComposite *) 0 ; FXGLVisual *arg2 = (FXGLVisual *) 0 ; FXObject *arg3 = (FXObject *) 0 ; FXSelector arg4 = (FXSelector) 0 ; FXuint arg5 = (FXuint) 0 ; FXint arg6 = (FXint) 0 ; FXint arg7 = (FXint) 0 ; FXint arg8 = (FXint) 0 ; FXint arg9 = (FXint) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; FXGLCanvas *result = 0 ; if ((argc < 2) || (argc > 9)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXComposite, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXComposite *","FXGLCanvas", 1, argv[0] )); } arg1 = reinterpret_cast< FXComposite * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLVisual *","FXGLCanvas", 2, argv[1] )); } arg2 = reinterpret_cast< FXGLVisual * >(argp2); if (argc > 2) { res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXObject *","FXGLCanvas", 3, argv[2] )); } arg3 = reinterpret_cast< FXObject * >(argp3); } if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXGLCanvas *)new_FXGLCanvas__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXGLCanvas_allocate(VALUE self) #else _wrap_FXGLCanvas_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXGLCanvas); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXGLCanvas__SWIG_1(int argc, VALUE *argv, VALUE self) { FXComposite *arg1 = (FXComposite *) 0 ; FXGLVisual *arg2 = (FXGLVisual *) 0 ; FXGLCanvas *arg3 = (FXGLCanvas *) 0 ; FXObject *arg4 = (FXObject *) 0 ; FXSelector arg5 = (FXSelector) 0 ; FXuint arg6 = (FXuint) 0 ; FXint arg7 = (FXint) 0 ; FXint arg8 = (FXint) 0 ; FXint arg9 = (FXint) 0 ; FXint arg10 = (FXint) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; FXGLCanvas *result = 0 ; if ((argc < 3) || (argc > 10)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXComposite, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXComposite *","FXGLCanvas", 1, argv[0] )); } arg1 = reinterpret_cast< FXComposite * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLVisual *","FXGLCanvas", 2, argv[1] )); } arg2 = reinterpret_cast< FXGLVisual * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXGLCanvas *","FXGLCanvas", 3, argv[2] )); } arg3 = reinterpret_cast< FXGLCanvas * >(argp3); if (argc > 3) { res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXObject *","FXGLCanvas", 4, argv[3] )); } arg4 = reinterpret_cast< FXObject * >(argp4); } if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2UINT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXGLCanvas *)new_FXGLCanvas__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXGLCanvas(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[10]; int ii; argc = nargs; if (argc > 10) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if ((argc >= 2) && (argc <= 9)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXComposite, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXGLVisual, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 2) { return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self); } void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXObject, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 3) { return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 4) { return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 5) { return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 6) { return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 7) { return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 8) { return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXGLCanvas__SWIG_0(nargs, args, self); } } } } } } } } } } if ((argc >= 3) && (argc <= 10)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXComposite, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXGLVisual, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXGLCanvas, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 3) { return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self); } void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXObject, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 4) { return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 5) { return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 6) { return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 7) { return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 8) { return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 9) { return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[9]) == T_FIXNUM || TYPE(argv[9]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXGLCanvas__SWIG_1(nargs, args, self); } } } } } } } } } } } fail: Ruby_Format_OverloadedError( argc, 10, "FXGLCanvas.new", " FXGLCanvas.new(FXComposite *p, FXGLVisual *vis, FXObject *tgt, FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h)\n" " FXGLCanvas.new(FXComposite *p, FXGLVisual *vis, FXGLCanvas *sharegroup, FXObject *tgt, FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_sharedq___(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","isShared", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (FXbool)((FXGLCanvas const *)arg1)->isShared(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_getCurrentContext(int argc, VALUE *argv, VALUE self) { FXuval result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXuval)FXGLCanvas_getCurrentContext(); vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_getContext(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXuval result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","getContext", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (FXuval)FXGLCanvas_getContext((FXGLCanvas const *)arg1); vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_save(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","save", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLCanvas_save((FXGLCanvas const *)arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_load(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","load", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLCanvas_load(arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_create(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","create", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_create(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_detach(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","detach", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_detach(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_destroy(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","destroy", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_destroy(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_resize(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","resize", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); FXGLCanvas_resize(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_getDefaultWidth(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","getDefaultWidth", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (FXint)FXGLCanvas_getDefaultWidth(arg1); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_getDefaultHeight(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","getDefaultHeight", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (FXint)FXGLCanvas_getDefaultHeight(arg1); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_getWidthForHeight(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","getWidthForHeight", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXint)FXGLCanvas_getWidthForHeight(arg1,arg2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_getHeightForWidth(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","getHeightForWidth", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXint)FXGLCanvas_getHeightForWidth(arg1,arg2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_canFocus(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","canFocus", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (bool)FXGLCanvas_canFocus((FXGLCanvas const *)arg1); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_setFocus(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setFocus", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_setFocus(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_killFocus(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","killFocus", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_killFocus(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_changeFocus(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXWindow *arg2 = (FXWindow *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","changeFocus", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","changeFocus", 2, argv[0] )); } arg2 = reinterpret_cast< FXWindow * >(argp2); FXGLCanvas_changeFocus(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_setDefault(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXbool arg2 = (FXbool) 1 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setDefault", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); if (argc > 0) { arg2 = to_FXbool(argv[0]); } FXGLCanvas_setDefault(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_enable(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","enable", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_enable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_disable(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","disable", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_disable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_raiseWindow(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","raise", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_raise(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_lower(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","lower", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_lower(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_move(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","move", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); FXGLCanvas_move(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_position(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXint arg2 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","position", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); FXGLCanvas_position(arg1,arg2,arg3,arg4,arg5); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_layout(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","layout", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_layout(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_recalc(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","recalc", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_recalc(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_reparent(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXWindow *arg2 = (FXWindow *) 0 ; FXWindow *arg3 = (FXWindow *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","reparent", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","reparent", 2, argv[0] )); } arg2 = reinterpret_cast< FXWindow * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXWindow, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXWindow *","reparent", 3, argv[1] )); } arg3 = reinterpret_cast< FXWindow * >(argp3); FXGLCanvas_reparent(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_show(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","show", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_show(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_hide(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","hide", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_hide(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_isComposite(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","isComposite", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (bool)FXGLCanvas_isComposite((FXGLCanvas const *)arg1); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_contains(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","contains", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); result = (bool)FXGLCanvas_contains((FXGLCanvas const *)arg1,arg2,arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_doesSaveUnder(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","doesSaveUnder", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (bool)FXGLCanvas_doesSaveUnder((FXGLCanvas const *)arg1); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_setBackColor(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setBackColor", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); arg2 = to_FXColor(argv[0]); FXGLCanvas_setBackColor(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_tr(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXchar *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","tr", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); if (argc > 1) { arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); } result = (FXchar *)FXGLCanvas_tr((FXGLCanvas const *)arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_dropEnable(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","dropEnable", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_dropEnable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_dropDisable(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","dropDisable", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_dropDisable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_setShape__SWIG_0(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXRegion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setShape", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRegion, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setShape", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setShape", 2, argv[0])); } arg2 = reinterpret_cast< FXRegion * >(argp2); FXGLCanvas_setShape(arg1,(FXRegion const &)*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_setShape__SWIG_1(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXBitmap *arg2 = (FXBitmap *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setShape", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setShape", 2, argv[0] )); } arg2 = reinterpret_cast< FXBitmap * >(argp2); FXGLCanvas_setShape(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_setShape__SWIG_2(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; FXIcon *arg2 = (FXIcon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","setShape", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon *","setShape", 2, argv[0] )); } arg2 = reinterpret_cast< FXIcon * >(argp2); FXGLCanvas_setShape(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_setShape(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLCanvas, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRegion, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXGLCanvas_setShape__SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLCanvas, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXBitmap, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXGLCanvas_setShape__SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLCanvas, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXIcon, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXGLCanvas_setShape__SWIG_2(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "setShape", " void setShape(FXRegion const ®ion)\n" " void setShape(FXBitmap *bitmap)\n" " void setShape(FXIcon *icon)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_clearShape(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","clearShape", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_clearShape(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_makeCurrent(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","makeCurrent", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (FXbool)FXGLCanvas_makeCurrent(arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_makeNonCurrent(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","makeNonCurrent", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (FXbool)FXGLCanvas_makeNonCurrent(arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_isCurrent(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas const *","isCurrent", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); result = (FXbool)FXGLCanvas_isCurrent((FXGLCanvas const *)arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLCanvas_swapBuffers(int argc, VALUE *argv, VALUE self) { FXGLCanvas *arg1 = (FXGLCanvas *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLCanvas, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLCanvas *","swapBuffers", 1, self )); } arg1 = reinterpret_cast< FXGLCanvas * >(argp1); FXGLCanvas_swapBuffers(arg1); return Qnil; fail: return Qnil; } static swig_class SwigClassFXViewport; SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXViewport_allocate(VALUE self) #else _wrap_FXViewport_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXViewport); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXViewport(int argc, VALUE *argv, VALUE self) { FXViewport *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXViewport *)new FXViewport(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_w_set(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","w", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); arg2 = NUM2INT(argv[0]); if (arg1) (arg1)->w = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_w_get(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","w", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); result = (FXint) ((arg1)->w); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_h_set(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","h", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); arg2 = NUM2INT(argv[0]); if (arg1) (arg1)->h = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_h_get(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","h", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); result = (FXint) ((arg1)->h); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_left_set(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","left", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","left", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->left = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_left_get(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","left", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); result = (FXdouble) ((arg1)->left); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_right_set(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","right", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","right", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->right = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_right_get(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","right", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); result = (FXdouble) ((arg1)->right); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_bottom_set(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","bottom", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","bottom", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->bottom = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_bottom_get(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","bottom", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); result = (FXdouble) ((arg1)->bottom); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_top_set(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","top", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","top", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->top = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_top_get(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","top", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); result = (FXdouble) ((arg1)->top); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_hither_set(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","hither", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","hither", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->hither = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_hither_get(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","hither", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); result = (FXdouble) ((arg1)->hither); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_yon_set(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","yon", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","yon", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); if (arg1) (arg1)->yon = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXViewport_yon_get(int argc, VALUE *argv, VALUE self) { FXViewport *arg1 = (FXViewport *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXViewport, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","yon", 1, self )); } arg1 = reinterpret_cast< FXViewport * >(argp1); result = (FXdouble) ((arg1)->yon); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } static swig_class SwigClassFXLight; SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXLight_allocate(VALUE self) #else _wrap_FXLight_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXLight); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXLight(int argc, VALUE *argv, VALUE self) { FXLight *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXLight *)new FXLight(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_ambient_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","ambient", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (arg1) (arg1)->ambient = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXLight_ambient_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","ambient", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXVec4f *) & ((arg1)->ambient); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_diffuse_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","diffuse", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (arg1) (arg1)->diffuse = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXLight_diffuse_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","diffuse", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXVec4f *) & ((arg1)->diffuse); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_specular_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","specular", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (arg1) (arg1)->specular = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXLight_specular_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","specular", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXVec4f *) & ((arg1)->specular); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_position_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","position", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (arg1) (arg1)->position = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXLight_position_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","position", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXVec4f *) & ((arg1)->position); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_direction_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","direction", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } if (arg1) (arg1)->direction = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXLight_direction_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","direction", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXVec3f *) & ((arg1)->direction); { FXVec3f* resultptr = new FXVec3f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_exponent_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","exponent", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","exponent", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->exponent = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_exponent_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","exponent", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXfloat) ((arg1)->exponent); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_cutoff_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","cutoff", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","cutoff", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->cutoff = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_cutoff_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","cutoff", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXfloat) ((arg1)->cutoff); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_c_attn_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","c_attn", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","c_attn", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->c_attn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_c_attn_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","c_attn", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXfloat) ((arg1)->c_attn); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_l_attn_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","l_attn", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","l_attn", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->l_attn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_l_attn_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","l_attn", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXfloat) ((arg1)->l_attn); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_q_attn_set(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","q_attn", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","q_attn", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->q_attn = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXLight_q_attn_get(int argc, VALUE *argv, VALUE self) { FXLight *arg1 = (FXLight *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXLight, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXLight *","q_attn", 1, self )); } arg1 = reinterpret_cast< FXLight * >(argp1); result = (FXfloat) ((arg1)->q_attn); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } static swig_class SwigClassFXMaterial; SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXMaterial_allocate(VALUE self) #else _wrap_FXMaterial_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXMaterial); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXMaterial(int argc, VALUE *argv, VALUE self) { FXMaterial *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXMaterial *)new FXMaterial(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_ambient_set(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","ambient", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (arg1) (arg1)->ambient = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_ambient_get(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","ambient", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); result = (FXVec4f *) & ((arg1)->ambient); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_diffuse_set(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","diffuse", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (arg1) (arg1)->diffuse = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_diffuse_get(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","diffuse", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); result = (FXVec4f *) & ((arg1)->diffuse); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_specular_set(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","specular", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (arg1) (arg1)->specular = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_specular_get(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","specular", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); result = (FXVec4f *) & ((arg1)->specular); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_emission_set(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","emission", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (arg1) (arg1)->emission = *arg2; delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_emission_get(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","emission", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); result = (FXVec4f *) & ((arg1)->emission); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_shininess_set(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; FXfloat arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","shininess", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","shininess", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); if (arg1) (arg1)->shininess = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXMaterial_shininess_get(int argc, VALUE *argv, VALUE self) { FXMaterial *arg1 = (FXMaterial *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXMaterial, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMaterial *","shininess", 1, self )); } arg1 = reinterpret_cast< FXMaterial * >(argp1); result = (FXfloat) ((arg1)->shininess); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } static swig_class SwigClassFXGLViewer; SWIGINTERN VALUE _wrap_FXGLViewer_objectType_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(FXGLViewer::objectType)); return _val; } SWIGINTERN VALUE _wrap_FXGLViewer_objectType_set(VALUE self, VALUE _val) { { unsigned int val; int res = SWIG_AsVal_unsigned_SS_int(_val, &val); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in variable '""FXGLViewer::objectType""' of type '""FXDragType""'"); } FXGLViewer::objectType = static_cast< FXDragType >(val); } return _val; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onPaint(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onPaint", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onPaint", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onPaint(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onEnter(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onEnter", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onEnter", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onEnter(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onLeave(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onLeave", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onLeave", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onLeave(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onMotion(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onMotion", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onMotion", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onMotion(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onMouseWheel(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onMouseWheel", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onMouseWheel", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onMouseWheel(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onChanged(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onChanged", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onChanged", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onChanged", 4, argv[2] )); } result = (long)(arg1)->onChanged(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onPick(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onPick", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onPick", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onPick", 4, argv[2] )); } result = (long)(arg1)->onPick(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onClicked(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onClicked", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onClicked", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onClicked", 4, argv[2] )); } result = (long)(arg1)->onClicked(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onDoubleClicked(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onDoubleClicked", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDoubleClicked", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onDoubleClicked", 4, argv[2] )); } result = (long)(arg1)->onDoubleClicked(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onTripleClicked(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onTripleClicked", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onTripleClicked", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onTripleClicked", 4, argv[2] )); } result = (long)(arg1)->onTripleClicked(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onLassoed(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onLassoed", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onLassoed", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onLassoed(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onSelected(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onSelected", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onSelected", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onSelected(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onDeselected(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onDeselected", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDeselected", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onDeselected(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onInserted(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onInserted", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onInserted", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onInserted(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onDeleted(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onDeleted", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDeleted", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onDeleted(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onLeftBtnPress(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onLeftBtnPress", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onLeftBtnPress", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onLeftBtnPress(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onLeftBtnRelease(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onLeftBtnRelease", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onLeftBtnRelease", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onLeftBtnRelease(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onMiddleBtnPress(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onMiddleBtnPress", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onMiddleBtnPress", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onMiddleBtnPress(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onMiddleBtnRelease(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onMiddleBtnRelease", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onMiddleBtnRelease", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onMiddleBtnRelease(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onRightBtnPress(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onRightBtnPress", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onRightBtnPress", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onRightBtnPress(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onRightBtnRelease(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onRightBtnRelease", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onRightBtnRelease", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onRightBtnRelease(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUngrabbed(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUngrabbed", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUngrabbed", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onUngrabbed(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onKeyPress(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onKeyPress", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onKeyPress", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onKeyPress(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onKeyRelease(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onKeyRelease", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onKeyRelease", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onKeyRelease(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onFocusIn(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onFocusIn", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFocusIn", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onFocusIn(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onFocusOut(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onFocusOut", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFocusOut", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onFocusOut(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onClipboardLost(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onClipboardLost", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onClipboardLost", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onClipboardLost(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onClipboardGained(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onClipboardGained", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onClipboardGained", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onClipboardGained(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onClipboardRequest(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onClipboardRequest", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onClipboardRequest", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onClipboardRequest(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdPerspective(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdPerspective", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdPerspective", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdPerspective(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdPerspective(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdPerspective", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdPerspective", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdPerspective(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdParallel(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdParallel", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdParallel", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdParallel(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdParallel(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdParallel", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdParallel", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdParallel(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdFront(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdFront", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdFront", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdFront(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdFront(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdFront", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdFront", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdFront(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdBack(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdBack", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdBack", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdBack(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdBack(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdBack", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdBack", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdBack(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdLeft(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdLeft", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdLeft", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdLeft(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdLeft(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdLeft", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdLeft", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdLeft(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdRight(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdRight", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdRight", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdRight(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdRight(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdRight", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdRight", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdRight(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdTop(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdTop", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdTop", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdTop(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdTop(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdTop", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdTop", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdTop(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdBottom(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdBottom", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdBottom", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdBottom(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdBottom(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdBottom", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdBottom", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdBottom(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdResetView(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdResetView", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdResetView", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdResetView(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdFitView(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdFitView", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdFitView", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdFitView(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onDNDEnter(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onDNDEnter", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDNDEnter", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onDNDEnter(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onDNDLeave(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onDNDLeave", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDNDLeave", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onDNDLeave(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onDNDMotion(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onDNDMotion", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDNDMotion", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onDNDMotion(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onDNDDrop(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onDNDDrop", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDNDDrop", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onDNDDrop(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onTipTimer(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onTipTimer", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onTipTimer", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onTipTimer(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdXYZDial(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdXYZDial", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdXYZDial", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = reinterpret_cast(NUM2INT(argv[2])); result = (long)(arg1)->onCmdXYZDial(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdXYZDial(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdXYZDial", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdXYZDial", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdXYZDial(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdRollPitchYaw(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdRollPitchYaw", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdRollPitchYaw", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdRollPitchYaw(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdRollPitchYaw(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdRollPitchYaw", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdRollPitchYaw", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdRollPitchYaw(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdXYZScale(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdXYZScale", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdXYZScale", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdXYZScale(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdXYZScale(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdXYZScale", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdXYZScale", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdXYZScale(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdCurrent(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdCurrent", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdCurrent", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdCurrent(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdCutSel(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdCutSel", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdCutSel", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdCutSel(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdCopySel(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdCopySel", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdCopySel", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdCopySel(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdPasteSel(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdPasteSel", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdPasteSel", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdPasteSel(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdDeleteSel(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdDeleteSel", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdDeleteSel", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdDeleteSel(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdDeleteSel(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdDeleteSel", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdDeleteSel", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdDeleteSel(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdBackColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdBackColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdBackColor", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = reinterpret_cast(NUM2UINT(argv[2])); result = (long)(arg1)->onCmdBackColor(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdBackColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdBackColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdBackColor", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdBackColor(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdGradientBackColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdGradientBackColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdGradientBackColor", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = reinterpret_cast(NUM2UINT(argv[2])); result = (long)(arg1)->onCmdGradientBackColor(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdGradientBackColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdGradientBackColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdGradientBackColor", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdGradientBackColor(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdAmbientColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdAmbientColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdAmbientColor", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = reinterpret_cast(NUM2UINT(argv[2])); result = (long)(arg1)->onCmdAmbientColor(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdAmbientColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdAmbientColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdAmbientColor", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdAmbientColor(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdLighting(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdLighting", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdLighting", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdLighting(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdLighting(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdLighting", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdLighting", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdLighting(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdFog(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdFog", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdFog", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdFog(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdFog(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdFog", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdFog", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdFog(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdDither(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdDither", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdDither", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdDither(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdDither(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdDither", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdDither", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdDither(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdFov(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdFov", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdFov", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdFov(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdFov(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdFov", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdFov", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdFov(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdZoom(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdZoom", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdZoom", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdZoom(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdZoom(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdZoom", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdZoom", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdZoom(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdLightAmbient(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdLightAmbient", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdLightAmbient", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = reinterpret_cast(NUM2UINT(argv[2])); result = (long)(arg1)->onCmdLightAmbient(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdLightAmbient(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdLightAmbient", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdLightAmbient", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdLightAmbient(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdLightDiffuse(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdLightDiffuse", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdLightDiffuse", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = reinterpret_cast(NUM2UINT(argv[2])); result = (long)(arg1)->onCmdLightDiffuse(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdLightDiffuse(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdLightDiffuse", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdLightDiffuse", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdLightDiffuse(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdLightSpecular(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdLightSpecular", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdLightSpecular", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = reinterpret_cast(NUM2UINT(argv[2])); result = (long)(arg1)->onCmdLightSpecular(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdLightSpecular(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdLightSpecular", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdLightSpecular", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdLightSpecular(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdTurbo(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdTurbo", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdTurbo", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdTurbo(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onUpdTurbo(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onUpdTurbo", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdTurbo", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdTurbo(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdPrintImage(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdPrintImage", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdPrintImage", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdPrintImage(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdPrintVector(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdPrintVector", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdPrintVector", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdPrintVector(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdLassoZoom(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdLassoZoom", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdLassoZoom", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdLassoZoom(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onCmdLassoSelect(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onCmdLassoSelect", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdLassoSelect", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onCmdLassoSelect(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onQueryHelp(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onQueryHelp", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onQueryHelp", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onQueryHelp(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_onQueryTip(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","onQueryTip", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onQueryTip", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onQueryTip(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_objectTypeName(int argc, VALUE *argv, VALUE self) { VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (VALUE)FXGLViewer_objectTypeName(); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXGLViewer__SWIG_0(int argc, VALUE *argv, VALUE self) { FXComposite *arg1 = (FXComposite *) 0 ; FXGLVisual *arg2 = (FXGLVisual *) 0 ; FXObject *arg3 = (FXObject *) 0 ; FXSelector arg4 = (FXSelector) 0 ; FXuint arg5 = (FXuint) 0 ; FXint arg6 = (FXint) 0 ; FXint arg7 = (FXint) 0 ; FXint arg8 = (FXint) 0 ; FXint arg9 = (FXint) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; FXGLViewer *result = 0 ; if ((argc < 2) || (argc > 9)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXComposite, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXComposite *","FXGLViewer", 1, argv[0] )); } arg1 = reinterpret_cast< FXComposite * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLVisual *","FXGLViewer", 2, argv[1] )); } arg2 = reinterpret_cast< FXGLVisual * >(argp2); if (argc > 2) { res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXObject *","FXGLViewer", 3, argv[2] )); } arg3 = reinterpret_cast< FXObject * >(argp3); } if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXGLViewer *)new_FXGLViewer__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXGLViewer_allocate(VALUE self) #else _wrap_FXGLViewer_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXGLViewer); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXGLViewer__SWIG_1(int argc, VALUE *argv, VALUE self) { FXComposite *arg1 = (FXComposite *) 0 ; FXGLVisual *arg2 = (FXGLVisual *) 0 ; FXGLViewer *arg3 = (FXGLViewer *) 0 ; FXObject *arg4 = (FXObject *) 0 ; FXSelector arg5 = (FXSelector) 0 ; FXuint arg6 = (FXuint) 0 ; FXint arg7 = (FXint) 0 ; FXint arg8 = (FXint) 0 ; FXint arg9 = (FXint) 0 ; FXint arg10 = (FXint) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; FXGLViewer *result = 0 ; if ((argc < 3) || (argc > 10)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXComposite, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXComposite *","FXGLViewer", 1, argv[0] )); } arg1 = reinterpret_cast< FXComposite * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXGLVisual, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLVisual *","FXGLViewer", 2, argv[1] )); } arg2 = reinterpret_cast< FXGLVisual * >(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXGLViewer *","FXGLViewer", 3, argv[2] )); } arg3 = reinterpret_cast< FXGLViewer * >(argp3); if (argc > 3) { res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXObject *","FXGLViewer", 4, argv[3] )); } arg4 = reinterpret_cast< FXObject * >(argp4); } if (argc > 4) { arg5 = NUM2UINT(argv[4]); } if (argc > 5) { arg6 = NUM2UINT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } { if (!arg1) { SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); } } { result = (FXGLViewer *)new_FXGLViewer__SWIG_1(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXGLViewer(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[10]; int ii; argc = nargs; if (argc > 10) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if ((argc >= 2) && (argc <= 9)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXComposite, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXGLVisual, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 2) { return _wrap_new_FXGLViewer__SWIG_0(nargs, args, self); } void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXObject, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 3) { return _wrap_new_FXGLViewer__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 4) { return _wrap_new_FXGLViewer__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 5) { return _wrap_new_FXGLViewer__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 6) { return _wrap_new_FXGLViewer__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 7) { return _wrap_new_FXGLViewer__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 8) { return _wrap_new_FXGLViewer__SWIG_0(nargs, args, self); } { _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXGLViewer__SWIG_0(nargs, args, self); } } } } } } } } } } if ((argc >= 3) && (argc <= 10)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXComposite, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXGLVisual, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXGLViewer, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 3) { return _wrap_new_FXGLViewer__SWIG_1(nargs, args, self); } void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXObject, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 4) { return _wrap_new_FXGLViewer__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 5) { return _wrap_new_FXGLViewer__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 6) { return _wrap_new_FXGLViewer__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 7) { return _wrap_new_FXGLViewer__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 8) { return _wrap_new_FXGLViewer__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 9) { return _wrap_new_FXGLViewer__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[9]) == T_FIXNUM || TYPE(argv[9]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXGLViewer__SWIG_1(nargs, args, self); } } } } } } } } } } } fail: Ruby_Format_OverloadedError( argc, 10, "FXGLViewer.new", " FXGLViewer.new(FXComposite *p, FXGLVisual *vis, FXObject *tgt, FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h)\n" " FXGLViewer.new(FXComposite *p, FXGLVisual *vis, FXGLViewer *sharegroup, FXObject *tgt, FXSelector sel, FXuint opts, FXint x, FXint y, FXint w, FXint h)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_worldPix(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","worldPix", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXdouble)((FXGLViewer const *)arg1)->worldPix(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_modelPix(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","modelPix", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXdouble)((FXGLViewer const *)arg1)->modelPix(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_lasso(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","lasso", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); result = (VALUE)FXGLViewer_lasso(arg1,arg2,arg3,arg4,arg5); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_fitToBounds(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","fitToBounds", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","fitToBounds", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","fitToBounds", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (FXbool)(arg1)->fitToBounds((FXRangef const &)*arg2); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getViewport(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXViewport result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getViewport", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = FXGLViewer_getViewport((FXGLViewer const *)arg1); { FXViewport* resultptr = new FXViewport(result); vresult = FXRbGetRubyObj(resultptr, "FXViewport *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_eyeToScreen(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; SwigValueWrapper< FXVec3f > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","eyeToScreen", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3f","eyeToScreen", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3f","eyeToScreen", 2, argv[0])); } else { arg2 = *(reinterpret_cast< FXVec3f * >(argp2)); } } result = (VALUE)FXGLViewer_eyeToScreen(arg1,arg2); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_screenToEye(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; FXfloat arg4 = (FXfloat) 0.0 ; void *argp1 = 0 ; int res1 = 0 ; float val4 ; int ecode4 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","screenToEye", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); if (argc > 2) { ecode4 = SWIG_AsVal_float(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","screenToEye", 4, argv[2] )); } arg4 = static_cast< FXfloat >(val4); } result = (arg1)->screenToEye(arg2,arg3,arg4); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_screenToTarget(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","screenToTarget", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); result = (arg1)->screenToTarget(arg2,arg3); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_worldToEye(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; SwigValueWrapper< FXVec3f > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","worldToEye", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3f","worldToEye", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3f","worldToEye", 2, argv[0])); } else { arg2 = *(reinterpret_cast< FXVec3f * >(argp2)); } } result = (arg1)->worldToEye(arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_worldToEyeZ(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; SwigValueWrapper< FXVec3f > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","worldToEyeZ", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3f","worldToEyeZ", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3f","worldToEyeZ", 2, argv[0])); } else { arg2 = *(reinterpret_cast< FXVec3f * >(argp2)); } } result = (FXfloat)(arg1)->worldToEyeZ(arg2); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_eyeToWorld(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; SwigValueWrapper< FXVec3f > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","eyeToWorld", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3f","eyeToWorld", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3f","eyeToWorld", 2, argv[0])); } else { arg2 = *(reinterpret_cast< FXVec3f * >(argp2)); } } result = (arg1)->eyeToWorld(arg2); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_worldVector(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","worldVector", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); result = (arg1)->worldVector(arg2,arg3,arg4,arg5); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setMaterial(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXMaterial *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setMaterial", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXMaterial, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXMaterial const &","setMaterial", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMaterial const &","setMaterial", 2, argv[0])); } arg2 = reinterpret_cast< FXMaterial * >(argp2); (arg1)->setMaterial((FXMaterial const &)*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getMaterial(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMaterial result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getMaterial", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = FXGLViewer_getMaterial((FXGLViewer const *)arg1); { FXMaterial *resultptr = new FXMaterial(result); vresult = FXRbGetRubyObj(resultptr, "FXMaterial *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setFieldOfView(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setFieldOfView", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","setFieldOfView", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); (arg1)->setFieldOfView(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getFieldOfView(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getFieldOfView", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXdouble)((FXGLViewer const *)arg1)->getFieldOfView(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setZoom(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setZoom", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","setZoom", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); (arg1)->setZoom(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getZoom(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getZoom", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXdouble)((FXGLViewer const *)arg1)->getZoom(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setDistance(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXdouble arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setDistance", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","setDistance", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); (arg1)->setDistance(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getDistance(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getDistance", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXdouble)((FXGLViewer const *)arg1)->getDistance(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setScale(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; SwigValueWrapper< FXVec3f > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setScale", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3f","setScale", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3f","setScale", 2, argv[0])); } else { arg2 = *(reinterpret_cast< FXVec3f * >(argp2)); } } (arg1)->setScale(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getScale(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getScale", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXVec3f *) &((FXGLViewer const *)arg1)->getScale(); { FXVec3f* resultptr = new FXVec3f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setOrientation(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXQuatf arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setOrientation", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatf","setOrientation", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatf","setOrientation", 2, argv[0])); } else { arg2 = *(reinterpret_cast< FXQuatf * >(argp2)); } } (arg1)->setOrientation(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getOrientation(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXQuatf *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getOrientation", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXQuatf *) &((FXGLViewer const *)arg1)->getOrientation(); vresult = FXRbGetRubyObj(result, "FXQuatf *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setCenter(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; SwigValueWrapper< FXVec3f > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setCenter", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3f","setCenter", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3f","setCenter", 2, argv[0])); } else { arg2 = *(reinterpret_cast< FXVec3f * >(argp2)); } } (arg1)->setCenter(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getCenter(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec3f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getCenter", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXVec3f *) &((FXGLViewer const *)arg1)->getCenter(); { FXVec3f* resultptr = new FXVec3f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_translate(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; SwigValueWrapper< FXVec3f > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","translate", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3f","translate", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3f","translate", 2, argv[0])); } else { arg2 = *(reinterpret_cast< FXVec3f * >(argp2)); } } (arg1)->translate(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getBoreVector(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","getBoreVector", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); result = (VALUE)FXGLViewer_getBoreVector(arg1,arg2,arg3); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getEyeVector(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getEyeVector", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = ((FXGLViewer const *)arg1)->getEyeVector(); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getEyePosition(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getEyePosition", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = ((FXGLViewer const *)arg1)->getEyePosition(); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setHelpText(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXString > p2 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setHelpText", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); p2 = to_FXString(argv[0]); arg2 = &p2; (arg1)->setHelpText((FXString const &)*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getHelpText(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXString *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getHelpText", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXString *) &((FXGLViewer const *)arg1)->getHelpText(); vresult = to_ruby(result->text()); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setTipText(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXString > p2 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setTipText", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); p2 = to_FXString(argv[0]); arg2 = &p2; (arg1)->setTipText((FXString const &)*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getTipText(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXString *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getTipText", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXString *) &((FXGLViewer const *)arg1)->getTipText(); vresult = to_ruby(result->text()); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getTransform(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getTransform", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXMat4f *) &((FXGLViewer const *)arg1)->getTransform(); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getInvTransform(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXMat4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getInvTransform", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXMat4f *) &((FXGLViewer const *)arg1)->getInvTransform(); vresult = FXRbGetRubyObj(result, "FXMat4f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setScene(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXGLObject *arg2 = (FXGLObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setScene", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLObject *","setScene", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLObject * >(argp2); (arg1)->setScene(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getScene(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXGLObject *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getScene", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXGLObject *)((FXGLViewer const *)arg1)->getScene(); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXGLObject, (void **) &result); vresult = FXRbGetRubyObj(result, ty); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setSelection(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXGLObject *arg2 = (FXGLObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setSelection", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLObject *","setSelection", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLObject * >(argp2); (arg1)->setSelection(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getSelection(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXGLObject *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getSelection", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXGLObject *)((FXGLViewer const *)arg1)->getSelection(); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXGLObject, (void **) &result); vresult = FXRbGetRubyObj(result, ty); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setProjection(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXuint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setProjection", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2UINT(argv[0]); (arg1)->setProjection(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getProjection(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXuint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getProjection", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXuint)((FXGLViewer const *)arg1)->getProjection(); vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setBackgroundColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXVec4f *arg2 = 0 ; FXbool arg3 = (FXbool) 2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setBackgroundColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } if (argc > 1) { arg3 = to_FXbool(argv[1]); } (arg1)->setBackgroundColor((FXVec4f const &)*arg2,arg3); delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getBackgroundColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXbool arg2 = (FXbool) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getBackgroundColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); if (argc > 0) { arg2 = to_FXbool(argv[0]); } result = (FXVec4f *) &((FXGLViewer const *)arg1)->getBackgroundColor(arg2); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setAmbientColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXVec4f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setAmbientColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec4f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)), NUM2DBL(rb_ary_entry(argv[0], 3))); } else { FXVec4f *p; SWIG_ConvertPtr(argv[0],(void **)&p,SWIGTYPE_p_FXVec4f,1); arg2 = new FXVec4f(*p); } } (arg1)->setAmbientColor((FXVec4f const &)*arg2); delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getAmbientColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec4f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getAmbientColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXVec4f *) &((FXGLViewer const *)arg1)->getAmbientColor(); { FXVec4f* resultptr = new FXVec4f(*result); vresult = FXRbGetRubyObj(resultptr, "FXVec4f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_readPixels(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","readPixels", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); result = (VALUE)FXGLViewer_readPixels(arg1,arg2,arg3,arg4,arg5); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_readFeedback(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","readFeedback", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); result = (VALUE)FXGLViewer_readFeedback(arg1,arg2,arg3,arg4,arg5); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setZSortFunc(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; VALUE arg2 = (VALUE) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setZSortFunc", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = argv[0]; FXGLViewer_setZSortFunc(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getZSortFunc(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; VALUE result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getZSortFunc", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (VALUE)FXGLViewer_getZSortFunc((FXGLViewer const *)arg1); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setMaxHits(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setMaxHits", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setMaxHits(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getMaxHits(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getMaxHits", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXint)((FXGLViewer const *)arg1)->getMaxHits(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_doesTurbo(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","doesTurbo", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXbool)((FXGLViewer const *)arg1)->doesTurbo(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getTurboMode(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getTurboMode", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXbool)((FXGLViewer const *)arg1)->getTurboMode(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setTurboMode(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXbool arg2 = (FXbool) 1 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setTurboMode", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); if (argc > 0) { arg2 = to_FXbool(argv[0]); } (arg1)->setTurboMode(arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getLight(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXLight result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","getLight", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = FXGLViewer_getLight((FXGLViewer const *)arg1); { FXLight *resultptr = new FXLight(result); vresult = FXRbGetRubyObj(resultptr, "FXLight *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setLight(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXLight *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setLight", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXLight, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXLight const &","setLight", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXLight const &","setLight", 2, argv[0])); } arg2 = reinterpret_cast< FXLight * >(argp2); (arg1)->setLight((FXLight const &)*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_save(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","save", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLViewer_save((FXGLViewer const *)arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_load(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","load", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLViewer_load(arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_create(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","create", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_create(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_detach(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","detach", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_detach(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_destroy(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","destroy", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_destroy(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_resize(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","resize", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); FXGLViewer_resize(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getDefaultWidth(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","getDefaultWidth", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXint)FXGLViewer_getDefaultWidth(arg1); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getDefaultHeight(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","getDefaultHeight", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXint)FXGLViewer_getDefaultHeight(arg1); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getWidthForHeight(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","getWidthForHeight", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXint)FXGLViewer_getWidthForHeight(arg1,arg2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_getHeightForWidth(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","getHeightForWidth", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXint)FXGLViewer_getHeightForWidth(arg1,arg2); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_canFocus(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","canFocus", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (bool)FXGLViewer_canFocus((FXGLViewer const *)arg1); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setFocus(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setFocus", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_setFocus(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_killFocus(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","killFocus", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_killFocus(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_changeFocus(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXWindow *arg2 = (FXWindow *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","changeFocus", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","changeFocus", 2, argv[0] )); } arg2 = reinterpret_cast< FXWindow * >(argp2); FXGLViewer_changeFocus(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setDefault(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXbool arg2 = (FXbool) 1 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setDefault", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); if (argc > 0) { arg2 = to_FXbool(argv[0]); } FXGLViewer_setDefault(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_enable(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","enable", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_enable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_disable(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","disable", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_disable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_raiseWindow(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","raise", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_raise(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_lower(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","lower", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_lower(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_move(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","move", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); FXGLViewer_move(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_position(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","position", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); FXGLViewer_position(arg1,arg2,arg3,arg4,arg5); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_layout(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","layout", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_layout(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_recalc(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","recalc", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_recalc(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_reparent(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXWindow *arg2 = (FXWindow *) 0 ; FXWindow *arg3 = (FXWindow *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","reparent", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","reparent", 2, argv[0] )); } arg2 = reinterpret_cast< FXWindow * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXWindow, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXWindow *","reparent", 3, argv[1] )); } arg3 = reinterpret_cast< FXWindow * >(argp3); FXGLViewer_reparent(arg1,arg2,arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_show(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","show", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_show(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_hide(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","hide", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_hide(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_isComposite(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","isComposite", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (bool)FXGLViewer_isComposite((FXGLViewer const *)arg1); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_contains(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","contains", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); result = (bool)FXGLViewer_contains((FXGLViewer const *)arg1,arg2,arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_doesSaveUnder(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","doesSaveUnder", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (bool)FXGLViewer_doesSaveUnder((FXGLViewer const *)arg1); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setBackColor(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXColor arg2 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setBackColor", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = to_FXColor(argv[0]); FXGLViewer_setBackColor(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_tr(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXchar *arg2 = (FXchar *) 0 ; FXchar *arg3 = (FXchar *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXchar *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","tr", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]); if (argc > 1) { arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]); } result = (FXchar *)FXGLViewer_tr((FXGLViewer const *)arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_dropEnable(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","dropEnable", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_dropEnable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_dropDisable(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","dropDisable", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_dropDisable(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setShape__SWIG_0(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXRegion *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setShape", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRegion, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setShape", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setShape", 2, argv[0])); } arg2 = reinterpret_cast< FXRegion * >(argp2); FXGLViewer_setShape(arg1,(FXRegion const &)*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setShape__SWIG_1(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXBitmap *arg2 = (FXBitmap *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setShape", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setShape", 2, argv[0] )); } arg2 = reinterpret_cast< FXBitmap * >(argp2); FXGLViewer_setShape(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setShape__SWIG_2(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXIcon *arg2 = (FXIcon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setShape", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon *","setShape", 2, argv[0] )); } arg2 = reinterpret_cast< FXIcon * >(argp2); FXGLViewer_setShape(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setShape(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLViewer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRegion, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXGLViewer_setShape__SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLViewer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXBitmap, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXGLViewer_setShape__SWIG_1(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXGLViewer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXIcon, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXGLViewer_setShape__SWIG_2(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "setShape", " void setShape(FXRegion const ®ion)\n" " void setShape(FXBitmap *bitmap)\n" " void setShape(FXIcon *icon)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_clearShape(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","clearShape", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_clearShape(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_makeCurrent(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","makeCurrent", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXbool)FXGLViewer_makeCurrent(arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_makeNonCurrent(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","makeNonCurrent", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXbool)FXGLViewer_makeNonCurrent(arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_isCurrent(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer const *","isCurrent", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); result = (FXbool)FXGLViewer_isCurrent((FXGLViewer const *)arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_swapBuffers(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","swapBuffers", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); FXGLViewer_swapBuffers(arg1); return Qnil; fail: return Qnil; } /* Document-method: Fx3d::FXGLViewer.select call-seq: select(x, y, w, h) -> FXGLObject ** Iterate thru each element in the FXGLViewer and select those that match a condition. A block must be provided. */ SWIGINTERN VALUE _wrap_FXGLViewer_select(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; void *argp1 = 0 ; int res1 = 0 ; FXGLObject **result = 0 ; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","select", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); result = (FXGLObject **)FXGLViewer_select(arg1,arg2,arg3,arg4,arg5); { vresult=Qnil; if(result){ vresult=rb_ary_new(); register FXGLObject** p=result; while(*p){ rb_ary_push(vresult,to_ruby(*p)); p++; } FXFREE(&result); } } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_pick(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXint arg2 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; FXGLObject *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","pick", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); result = (FXGLObject *)FXGLViewer_pick(arg1,arg2,arg3); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXGLObject, (void **) &result); vresult = FXRbGetRubyObj(result, ty); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLViewer_setBounds(int argc, VALUE *argv, VALUE self) { FXGLViewer *arg1 = (FXGLViewer *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLViewer *","setBounds", 1, self )); } arg1 = reinterpret_cast< FXGLViewer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","setBounds", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","setBounds", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); result = (FXbool)FXGLViewer_setBounds(arg1,(FXRangef const &)*arg2); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } static swig_class SwigClassFXGLObject; SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXGLObject_allocate(VALUE self) #else _wrap_FXGLObject_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXGLObject); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXGLObject(int argc, VALUE *argv, VALUE self) { FXGLObject *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXGLObject *)new_FXGLObject(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_identify(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; FXuint *arg2 = (FXuint *) 0 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; FXGLObject *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject *","identify", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); { Check_Type(argv[0], T_ARRAY); FXMALLOC(&arg2,FXuint,RARRAY_LEN(argv[0])); arg3=static_cast(RARRAY_LEN(argv[0])); for(FXint i=0; i 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject const *","save", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLObject_save((FXGLObject const *)arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_load(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject *","load", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLObject_load(arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_copy(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXGLObject *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject *","copy", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); result = (FXGLObject *)FXGLObject_copy(arg1); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXGLObject, (void **) &result); vresult = FXRbGetRubyObj(result, ty); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_bounds(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXRangef result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject *","bounds", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); result = FXGLObject_bounds(arg1); { FXRangef* resultptr = new FXRangef(result); vresult = FXRbGetRubyObj(resultptr, "FXRangef *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_draw(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; FXGLViewer *arg2 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject *","draw", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLViewer *","draw", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLViewer * >(argp2); FXGLObject_draw(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_hit(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; FXGLViewer *arg2 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject *","hit", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLViewer *","hit", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLViewer * >(argp2); FXGLObject_hit(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_canDrag(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject const *","canDrag", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); result = (FXbool)FXGLObject_canDrag((FXGLObject const *)arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_canDelete(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject const *","canDelete", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); result = (FXbool)FXGLObject_canDelete((FXGLObject const *)arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLObject_drag(int argc, VALUE *argv, VALUE self) { FXGLObject *arg1 = (FXGLObject *) 0 ; FXGLViewer *arg2 = (FXGLViewer *) 0 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; FXint arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLObject, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLObject *","drag", 1, self )); } arg1 = reinterpret_cast< FXGLObject * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLViewer *","drag", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLViewer * >(argp2); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); arg6 = NUM2INT(argv[4]); result = (FXbool)FXGLObject_drag(arg1,arg2,arg3,arg4,arg5,arg6); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } static swig_class SwigClassFXGLShape; SWIGINTERN VALUE _wrap_FXGLShape_onDNDDrop(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onDNDDrop", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDNDDrop", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onDNDDrop", 4, argv[2] )); } result = (long)(arg1)->onDNDDrop(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onDNDMotion(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onDNDMotion", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onDNDMotion", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = to_FXEvent(argv[2]); result = (long)(arg1)->onDNDMotion(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onQueryTip(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onQueryTip", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onQueryTip", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onQueryTip", 4, argv[2] )); } result = (long)(arg1)->onQueryTip(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onCmdShadeOff(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onCmdShadeOff", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdShadeOff", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onCmdShadeOff", 4, argv[2] )); } result = (long)(arg1)->onCmdShadeOff(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onUpdShadeOff(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onUpdShadeOff", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdShadeOff", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onUpdShadeOff", 4, argv[2] )); } result = (long)(arg1)->onUpdShadeOff(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onCmdShadeOn(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onCmdShadeOn", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdShadeOn", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onCmdShadeOn", 4, argv[2] )); } result = (long)(arg1)->onCmdShadeOn(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onUpdShadeOn(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onUpdShadeOn", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdShadeOn", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onUpdShadeOn", 4, argv[2] )); } result = (long)(arg1)->onUpdShadeOn(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onCmdShadeSmooth(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onCmdShadeSmooth", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdShadeSmooth", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onCmdShadeSmooth", 4, argv[2] )); } result = (long)(arg1)->onCmdShadeSmooth(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onUpdShadeSmooth(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onUpdShadeSmooth", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdShadeSmooth", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onUpdShadeSmooth", 4, argv[2] )); } result = (long)(arg1)->onUpdShadeSmooth(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onCmdFrontMaterial(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onCmdFrontMaterial", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdFrontMaterial", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onCmdFrontMaterial", 4, argv[2] )); } result = (long)(arg1)->onCmdFrontMaterial(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onUpdFrontMaterial(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onUpdFrontMaterial", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdFrontMaterial", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onUpdFrontMaterial", 4, argv[2] )); } result = (long)(arg1)->onUpdFrontMaterial(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onCmdBackMaterial(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onCmdBackMaterial", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdBackMaterial", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onCmdBackMaterial", 4, argv[2] )); } result = (long)(arg1)->onCmdBackMaterial(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onUpdBackMaterial(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onUpdBackMaterial", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdBackMaterial", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onUpdBackMaterial", 4, argv[2] )); } result = (long)(arg1)->onUpdBackMaterial(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onCmdDrawingStyle(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onCmdDrawingStyle", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdDrawingStyle", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onCmdDrawingStyle", 4, argv[2] )); } result = (long)(arg1)->onCmdDrawingStyle(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_onUpdDrawingStyle(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res4 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","onUpdDrawingStyle", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdDrawingStyle", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onUpdDrawingStyle", 4, argv[2] )); } result = (long)(arg1)->onUpdDrawingStyle(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXGLShape__SWIG_0(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXuint arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXGLShape *result = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXGLShape", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXGLShape", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXGLShape", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); arg4 = NUM2UINT(argv[3]); { result = (FXGLShape *)new_FXGLShape__SWIG_0(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXGLShape_allocate(VALUE self) #else _wrap_FXGLShape_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXGLShape); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXGLShape__SWIG_1(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXuint arg4 ; FXMaterial *arg5 = 0 ; FXMaterial *arg6 = 0 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; void *argp5 ; int res5 = 0 ; void *argp6 ; int res6 = 0 ; FXGLShape *result = 0 ; if ((argc < 6) || (argc > 6)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXGLShape", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXGLShape", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXGLShape", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); arg4 = NUM2UINT(argv[3]); res5 = SWIG_ConvertPtr(argv[4], &argp5, SWIGTYPE_p_FXMaterial, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "FXMaterial const &","FXGLShape", 5, argv[4] )); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMaterial const &","FXGLShape", 5, argv[4])); } arg5 = reinterpret_cast< FXMaterial * >(argp5); res6 = SWIG_ConvertPtr(argv[5], &argp6, SWIGTYPE_p_FXMaterial, 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "FXMaterial const &","FXGLShape", 6, argv[5] )); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMaterial const &","FXGLShape", 6, argv[5])); } arg6 = reinterpret_cast< FXMaterial * >(argp6); { result = (FXGLShape *)new_FXGLShape__SWIG_1(arg1,arg2,arg3,arg4,(FXMaterial const &)*arg5,(FXMaterial const &)*arg6); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXGLShape(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs; if (argc > 6) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXGLShape__SWIG_0(nargs, args, self); } } } } } if (argc == 6) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0; } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_FXMaterial, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_FXMaterial, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXGLShape__SWIG_1(nargs, args, self); } } } } } } } fail: Ruby_Format_OverloadedError( argc, 6, "FXGLShape.new", " FXGLShape.new(FXfloat x, FXfloat y, FXfloat z, FXuint opts)\n" " FXGLShape.new(FXfloat x, FXfloat y, FXfloat z, FXuint opts, FXMaterial const &front, FXMaterial const &back)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_identify(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXuint *arg2 = (FXuint *) 0 ; FXint arg3 ; void *argp1 = 0 ; int res1 = 0 ; FXGLObject *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","identify", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); { Check_Type(argv[0], T_ARRAY); FXMALLOC(&arg2,FXuint,RARRAY_LEN(argv[0])); arg3=static_cast(RARRAY_LEN(argv[0])); for(FXint i=0; i p2 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","setTipText", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); p2 = to_FXString(argv[0]); arg2 = &p2; (arg1)->setTipText((FXString const &)*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_getTipText(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXString *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape const *","getTipText", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); result = (FXString *) &((FXGLShape const *)arg1)->getTipText(); vresult = to_ruby(result->text()); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_setMaterial(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXint arg2 ; FXMaterial *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 ; int res3 = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","setMaterial", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXMaterial, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXMaterial const &","setMaterial", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXMaterial const &","setMaterial", 3, argv[1])); } arg3 = reinterpret_cast< FXMaterial * >(argp3); (arg1)->setMaterial(arg2,(FXMaterial const &)*arg3); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_getPosition(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXVec3f > result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape const *","getPosition", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); result = FXGLShape_getPosition((FXGLShape const *)arg1); { FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_setPosition(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXVec3f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","setPosition", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); { if (TYPE(argv[0]) == T_ARRAY) { arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2))); } else { FXVec3f *p; SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1); arg2 = new FXVec3f(*p); } } FXGLShape_setPosition(arg1,(FXVec3f const &)*arg2); delete arg2; return Qnil; fail: delete arg2; return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_getMaterial(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXMaterial result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape const *","getMaterial", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); arg2 = NUM2INT(argv[0]); result = FXGLShape_getMaterial((FXGLShape const *)arg1,arg2); { FXMaterial *resultptr = new FXMaterial(result); vresult = FXRbGetRubyObj(resultptr, "FXMaterial *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_setRange(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXRangef *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","setRange", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRangef, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRangef const &","setRange", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRangef const &","setRange", 2, argv[0])); } arg2 = reinterpret_cast< FXRangef * >(argp2); FXGLShape_setRange(arg1,(FXRangef const &)*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_save(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape const *","save", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLShape_save((FXGLShape const *)arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_load(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXStream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","load", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); } arg2 = reinterpret_cast< FXStream * >(argp2); FXGLShape_load(arg1,*arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_copy(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXGLObject *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","copy", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); result = (FXGLObject *)FXGLShape_copy(arg1); { swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXGLObject, (void **) &result); vresult = FXRbGetRubyObj(result, ty); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_bounds(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXRangef result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","bounds", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); result = FXGLShape_bounds(arg1); { FXRangef* resultptr = new FXRangef(result); vresult = FXRbGetRubyObj(resultptr, "FXRangef *"); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_draw(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXGLViewer *arg2 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","draw", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLViewer *","draw", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLViewer * >(argp2); FXGLShape_draw(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_hit(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXGLViewer *arg2 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","hit", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLViewer *","hit", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLViewer * >(argp2); FXGLShape_hit(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_canDrag(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape const *","canDrag", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); result = (FXbool)FXGLShape_canDrag((FXGLShape const *)arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_canDelete(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape const *","canDelete", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); result = (FXbool)FXGLShape_canDelete((FXGLShape const *)arg1); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_drag(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXGLViewer *arg2 = (FXGLViewer *) 0 ; FXint arg3 ; FXint arg4 ; FXint arg5 ; FXint arg6 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; FXbool result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","drag", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLViewer *","drag", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLViewer * >(argp2); arg3 = NUM2INT(argv[1]); arg4 = NUM2INT(argv[2]); arg5 = NUM2INT(argv[3]); arg6 = NUM2INT(argv[4]); result = (FXbool)FXGLShape_drag(arg1,arg2,arg3,arg4,arg5,arg6); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXGLShape_drawshape(int argc, VALUE *argv, VALUE self) { FXGLShape *arg1 = (FXGLShape *) 0 ; FXGLViewer *arg2 = (FXGLViewer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGLShape, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGLShape *","drawshape", 1, self )); } arg1 = reinterpret_cast< FXGLShape * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXGLViewer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXGLViewer *","drawshape", 2, argv[0] )); } arg2 = reinterpret_cast< FXGLViewer * >(argp2); FXGLShape_drawshape(arg1,arg2); return Qnil; fail: return Qnil; } static swig_class SwigClassFXExtentf; SWIGINTERN VALUE _wrap_FXExtentf_lower_set(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","lower", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","lower", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","lower", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); if (arg1) (arg1)->lower = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_lower_get(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","lower", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXVec2f *) & ((arg1)->lower); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_upper_set(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","upper", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","upper", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","upper", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); if (arg1) (arg1)->upper = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_upper_get(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","upper", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXVec2f *) & ((arg1)->upper); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXExtentf__SWIG_0(int argc, VALUE *argv, VALUE self) { FXExtentf *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXExtentf *)new FXExtentf(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXExtentf__SWIG_1(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXExtentf *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const &","FXExtentf", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","FXExtentf", 1, argv[0])); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXExtentf *)new FXExtentf((FXExtentf const &)*arg1); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXExtentf__SWIG_2(int argc, VALUE *argv, VALUE self) { FXVec2f *arg1 = 0 ; FXVec2f *arg2 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentf *result = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2f const &","FXExtentf", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","FXExtentf", 1, argv[0])); } arg1 = reinterpret_cast< FXVec2f * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","FXExtentf", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","FXExtentf", 2, argv[1])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = (FXExtentf *)new FXExtentf((FXVec2f const &)*arg1,(FXVec2f const &)*arg2); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXExtentf_allocate(VALUE self) #else _wrap_FXExtentf_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXExtentf); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXExtentf__SWIG_3(int argc, VALUE *argv, VALUE self) { FXfloat arg1 ; FXfloat arg2 ; FXfloat arg3 ; FXfloat arg4 ; float val1 ; int ecode1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; float val4 ; int ecode4 = 0 ; FXExtentf *result = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_float(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXfloat","FXExtentf", 1, argv[0] )); } arg1 = static_cast< FXfloat >(val1); ecode2 = SWIG_AsVal_float(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","FXExtentf", 2, argv[1] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","FXExtentf", 3, argv[2] )); } arg3 = static_cast< FXfloat >(val3); ecode4 = SWIG_AsVal_float(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","FXExtentf", 4, argv[3] )); } arg4 = static_cast< FXfloat >(val4); result = (FXExtentf *)new FXExtentf(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXExtentf(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXExtentf__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXExtentf__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXExtentf__SWIG_2(nargs, args, self); } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXExtentf__SWIG_3(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXExtentf.new", " FXExtentf.new()\n" " FXExtentf.new(FXExtentf const &ext)\n" " FXExtentf.new(FXVec2f const &lo, FXVec2f const &hi)\n" " FXExtentf.new(FXfloat xlo, FXfloat xhi, FXfloat ylo, FXfloat yhi)\n"); return Qnil; } /* Document-method: Fx3d::FXExtentf.[]= call-seq: []=(i, v) -> FXVec2f Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXExtentf___setitem__(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXint arg2 ; FXVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; FXVec2f *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec2f &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec2f * >(argp3); result = (FXVec2f *) &FXExtentf___setitem__(arg1,arg2,*arg3); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXExtentf.[] call-seq: [](i) -> FXVec2f Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXExtentf___getitem__(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec2f *) &FXExtentf___getitem__((FXExtentf const *)arg1,arg2); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_width(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","width", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->width(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_height(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","height", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->height(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_longest(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","longest", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->longest(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_shortest(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","shortest", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->shortest(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_diameter(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","diameter", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->diameter(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_radius(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","radius", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->radius(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_diagonal(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","diagonal", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = ((FXExtentf const *)arg1)->diagonal(); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_center(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","center", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = ((FXExtentf const *)arg1)->center(); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXExtentf.empty? call-seq: empty? -> bool Check if FXExtentf is empty. */ SWIGINTERN VALUE _wrap_FXExtentf_emptyq___(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","empty", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (bool)((FXExtentf const *)arg1)->empty(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_contains(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","contains", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","contains", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","contains", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (bool)((FXExtentf const *)arg1)->contains(arg2,arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_containsq_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","contains", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = (bool)((FXExtentf const *)arg1)->contains((FXVec2f const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_containsq_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXExtentf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","contains", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentf const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentf * >(argp2); result = (bool)((FXExtentf const *)arg1)->contains((FXExtentf const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_containsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentf_containsq_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentf_containsq_____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXExtentf.contains?", " bool FXExtentf.contains?(FXVec2f const &p)\n" " bool FXExtentf.contains?(FXExtentf const &ext)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_include(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXExtentf *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","include", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","include", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","include", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXExtentf *) &(arg1)->include(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXExtentf, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_includeN_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentf *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","include", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); result = (FXExtentf *) &(arg1)->include((FXVec2f const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXExtentf, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_includeN_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXExtentf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentf *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","include", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentf const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentf * >(argp2); result = (FXExtentf *) &(arg1)->include((FXExtentf const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXExtentf, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_includeN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2f, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentf_includeN_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentf_includeN_____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXExtentf.include!", " FXExtentf FXExtentf.include!(FXVec2f const &v)\n" " FXExtentf & FXExtentf.include!(FXExtentf const &ext)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_corner(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","corner", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); arg2 = NUM2INT(argv[0]); result = ((FXExtentf const *)arg1)->corner(arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_overlapq___(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXExtentf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","overlap", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentf const &","overlap", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","overlap", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentf * >(argp2); result = (bool)FXExtentf_overlap((FXExtentf const *)arg1,(FXExtentf const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_unite_with(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXExtentf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentf result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","unite_with", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentf const &","unite_with", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","unite_with", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentf * >(argp2); result = FXExtentf_unite_with((FXExtentf const *)arg1,(FXExtentf const &)*arg2); vresult = SWIG_NewPointerObj((new FXExtentf(static_cast< const FXExtentf& >(result))), SWIGTYPE_p_FXExtentf, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentf_intersect_with(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXExtentf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentf result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","intersect_with", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentf const &","intersect_with", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","intersect_with", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentf * >(argp2); result = FXExtentf_intersect_with((FXExtentf const *)arg1,(FXExtentf const &)*arg2); vresult = SWIG_NewPointerObj((new FXExtentf(static_cast< const FXExtentf& >(result))), SWIGTYPE_p_FXExtentf, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } static swig_class SwigClassFXExtentd; SWIGINTERN VALUE _wrap_FXExtentd_lower_set(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd *","lower", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","lower", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","lower", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); if (arg1) (arg1)->lower = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_lower_get(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2d *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd *","lower", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXVec2d *) & ((arg1)->lower); vresult = FXRbGetRubyObj(result, "FXVec2d *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_upper_set(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd *","upper", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","upper", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","upper", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); if (arg1) (arg1)->upper = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_upper_get(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2d *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd *","upper", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXVec2d *) & ((arg1)->upper); vresult = FXRbGetRubyObj(result, "FXVec2d *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXExtentd__SWIG_0(int argc, VALUE *argv, VALUE self) { FXExtentd *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (FXExtentd *)new FXExtentd(); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXExtentd__SWIG_1(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = 0 ; void *argp1 ; int res1 = 0 ; FXExtentd *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXExtentd, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const &","FXExtentd", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentd const &","FXExtentd", 1, argv[0])); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXExtentd *)new FXExtentd((FXExtentd const &)*arg1); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXExtentd__SWIG_2(int argc, VALUE *argv, VALUE self) { FXVec2d *arg1 = 0 ; FXVec2d *arg2 = 0 ; void *argp1 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentd *result = 0 ; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec2d const &","FXExtentd", 1, argv[0] )); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","FXExtentd", 1, argv[0])); } arg1 = reinterpret_cast< FXVec2d * >(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","FXExtentd", 2, argv[1] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","FXExtentd", 2, argv[1])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = (FXExtentd *)new FXExtentd((FXVec2d const &)*arg1,(FXVec2d const &)*arg2); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE #ifdef HAVE_RB_DEFINE_ALLOC_FUNC _wrap_FXExtentd_allocate(VALUE self) #else _wrap_FXExtentd_allocate(int argc, VALUE *argv, VALUE self) #endif { VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXExtentd); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_FXExtentd__SWIG_3(int argc, VALUE *argv, VALUE self) { FXdouble arg1 ; FXdouble arg2 ; FXdouble arg3 ; FXdouble arg4 ; double val1 ; int ecode1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; FXExtentd *result = 0 ; if ((argc < 4) || (argc > 4)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_double(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "FXdouble","FXExtentd", 1, argv[0] )); } arg1 = static_cast< FXdouble >(val1); ecode2 = SWIG_AsVal_double(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","FXExtentd", 2, argv[1] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","FXExtentd", 3, argv[2] )); } arg3 = static_cast< FXdouble >(val3); ecode4 = SWIG_AsVal_double(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","FXExtentd", 4, argv[3] )); } arg4 = static_cast< FXdouble >(val4); result = (FXExtentd *)new FXExtentd(arg1,arg2,arg3,arg4); DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN VALUE _wrap_new_FXExtentd(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXExtentd__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentd, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXExtentd__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXExtentd__SWIG_2(nargs, args, self); } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_double(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXExtentd__SWIG_3(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXExtentd.new", " FXExtentd.new()\n" " FXExtentd.new(FXExtentd const &ext)\n" " FXExtentd.new(FXVec2d const &lo, FXVec2d const &hi)\n" " FXExtentd.new(FXdouble xlo, FXdouble xhi, FXdouble ylo, FXdouble yhi)\n"); return Qnil; } /* Document-method: Fx3d::FXExtentd.[]= call-seq: []=(i, v) -> FXVec2d Element setter/slicing. */ SWIGINTERN VALUE _wrap_FXExtentd___setitem__(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXint arg2 ; FXVec2d *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; FXVec2d *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec2d &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec2d * >(argp3); result = (FXVec2d *) &FXExtentd___setitem__(arg1,arg2,*arg3); vresult = FXRbGetRubyObj(result, "FXVec2d *"); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXExtentd.[] call-seq: [](i) -> FXVec2d Element accessor/slicing. */ SWIGINTERN VALUE _wrap_FXExtentd___getitem__(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2d *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec2d *) &FXExtentd___getitem__((FXExtentd const *)arg1,arg2); vresult = FXRbGetRubyObj(result, "FXVec2d *"); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_width(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","width", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXdouble)((FXExtentd const *)arg1)->width(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_height(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","height", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXdouble)((FXExtentd const *)arg1)->height(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_longest(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","longest", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXdouble)((FXExtentd const *)arg1)->longest(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_shortest(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","shortest", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXdouble)((FXExtentd const *)arg1)->shortest(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_diameter(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","diameter", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXdouble)((FXExtentd const *)arg1)->diameter(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_radius(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXdouble result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","radius", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (FXdouble)((FXExtentd const *)arg1)->radius(); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_diagonal(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","diagonal", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = ((FXExtentd const *)arg1)->diagonal(); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_center(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","center", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = ((FXExtentd const *)arg1)->center(); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* Document-method: Fx3d::FXExtentd.empty? call-seq: empty? -> bool Check if FXExtentd is empty. */ SWIGINTERN VALUE _wrap_FXExtentd_emptyq___(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","empty", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); result = (bool)((FXExtentd const *)arg1)->empty(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_contains(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","contains", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","contains", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","contains", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (bool)((FXExtentd const *)arg1)->contains(arg2,arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_containsq_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","contains", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = (bool)((FXExtentd const *)arg1)->contains((FXVec2d const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_containsq_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXExtentd *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","contains", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentd, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentd const &","contains", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentd const &","contains", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentd * >(argp2); result = (bool)((FXExtentd const *)arg1)->contains((FXExtentd const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_containsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentd, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentd_containsq_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentd, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXExtentd, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentd_containsq_____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXExtentd.contains?", " bool FXExtentd.contains?(FXVec2d const &p)\n" " bool FXExtentd.contains?(FXExtentd const &ext)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_include(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXdouble arg2 ; FXdouble arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; FXExtentd *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd *","include", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","include", 2, argv[0] )); } arg2 = static_cast< FXdouble >(val2); ecode3 = SWIG_AsVal_double(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","include", 3, argv[1] )); } arg3 = static_cast< FXdouble >(val3); result = (FXExtentd *) &(arg1)->include(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXExtentd, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_includeN_____SWIG_0(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXVec2d *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentd *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd *","include", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2d, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2d const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2d const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2d * >(argp2); result = (FXExtentd *) &(arg1)->include((FXVec2d const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXExtentd, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_includeN_____SWIG_1(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXExtentd *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentd *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd *","include", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentd, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentd const &","include", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentd const &","include", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentd * >(argp2); result = (FXExtentd *) &(arg1)->include((FXExtentd const &)*arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXExtentd, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_includeN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentd, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2d, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentd_includeN_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentd, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXExtentd, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentd_includeN_____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXExtentd.include!", " FXExtentd FXExtentd.include!(FXVec2d const &v)\n" " FXExtentd & FXExtentd.include!(FXExtentd const &ext)\n"); return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_corner(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2d result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","corner", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); arg2 = NUM2INT(argv[0]); result = ((FXExtentd const *)arg1)->corner(arg2); vresult = SWIG_NewPointerObj((new FXVec2d(static_cast< const FXVec2d& >(result))), SWIGTYPE_p_FXVec2d, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_overlapq___(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXExtentd *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","overlap", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentd, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentd const &","overlap", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentd const &","overlap", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentd * >(argp2); result = (bool)FXExtentd_overlap((FXExtentd const *)arg1,(FXExtentd const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_unite_with(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXExtentd *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentd result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","unite_with", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentd, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentd const &","unite_with", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentd const &","unite_with", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentd * >(argp2); result = FXExtentd_unite_with((FXExtentd const *)arg1,(FXExtentd const &)*arg2); vresult = SWIG_NewPointerObj((new FXExtentd(static_cast< const FXExtentd& >(result))), SWIGTYPE_p_FXExtentd, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_FXExtentd_intersect_with(int argc, VALUE *argv, VALUE self) { FXExtentd *arg1 = (FXExtentd *) 0 ; FXExtentd *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentd result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXExtentd, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentd const *","intersect_with", 1, self )); } arg1 = reinterpret_cast< FXExtentd * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentd, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentd const &","intersect_with", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentd const &","intersect_with", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentd * >(argp2); result = FXExtentd_intersect_with((FXExtentd const *)arg1,(FXExtentd const &)*arg2); vresult = SWIG_NewPointerObj((new FXExtentd(static_cast< const FXExtentd& >(result))), SWIGTYPE_p_FXExtentd, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static void *_p_FXQuatdTo_p_FXVec4d(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXVec4d *) ((FXQuatd *) x)); } static void *_p_FXQuatfTo_p_FXVec4f(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXVec4f *) ((FXQuatf *) x)); } static void *_p_FXGradientBarTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXGradientBar *) x)); } static void *_p_FXShutterItemTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *)(FXVerticalFrame *) ((FXShutterItem *) x)); } static void *_p_FXColorBarTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXColorBar *) x)); } static void *_p_FXTabBarTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXTabBar *) x)); } static void *_p_FXSwitcherTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXSwitcher *) x)); } static void *_p_FXTextFieldTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXTextField *) x)); } static void *_p_FXToolBarTabTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXToolBarTab *) x)); } static void *_p_FXDriveBoxTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *)(FXListBox *) ((FXDriveBox *) x)); } static void *_p_FXMatrixTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXMatrix *) x)); } static void *_p_FXScrollCornerTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *) ((FXScrollCorner *) x)); } static void *_p_FXArrowButtonTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXArrowButton *) x)); } static void *_p_FXGLViewerTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXCanvas *)(FXGLCanvas *) ((FXGLViewer *) x)); } static void *_p_FXPopupTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *) ((FXPopup *) x)); } static void *_p_FXHeaderTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXHeader *) x)); } static void *_p_FXSplitterTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *) ((FXSplitter *) x)); } static void *_p_FX4SplitterTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *) ((FX4Splitter *) x)); } static void *_p_FXSpringTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXSpring *) x)); } static void *_p_FXPackerTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *) ((FXPacker *) x)); } static void *_p_FXTabBookTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *)(FXTabBar *) ((FXTabBook *) x)); } static void *_p_FXImageFrameTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXImageFrame *) x)); } static void *_p_FXVerticalSeparatorTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *)(FXSeparator *) ((FXVerticalSeparator *) x)); } static void *_p_FXHorizontalSeparatorTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *)(FXSeparator *) ((FXHorizontalSeparator *) x)); } static void *_p_FXSeparatorTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXSeparator *) x)); } static void *_p_FXProgressBarTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXProgressBar *) x)); } static void *_p_FXShutterTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *)(FXVerticalFrame *) ((FXShutter *) x)); } static void *_p_FXToolTipTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *) ((FXToolTip *) x)); } static void *_p_FXCompositeTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *) ((FXComposite *) x)); } static void *_p_FXBitmapFrameTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXBitmapFrame *) x)); } static void *_p_FXRealSliderTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXRealSlider *) x)); } static void *_p_FXSliderTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXSlider *) x)); } static void *_p_FXDockSiteTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXDockSite *) x)); } static void *_p_FXGroupBoxTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXGroupBox *) x)); } static void *_p_FXColorRingTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXColorRing *) x)); } static void *_p_FXDockHandlerTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXDockHandler *) x)); } static void *_p_FXTreeListBoxTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXTreeListBox *) x)); } static void *_p_FXListBoxTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXListBox *) x)); } static void *_p_FXGLCanvasTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXCanvas *) ((FXGLCanvas *) x)); } static void *_p_FXCanvasTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *) ((FXCanvas *) x)); } static void *_p_FXColorWheelTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXColorWheel *) x)); } static void *_p_FXToolBarGripTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *)(FXDockHandler *) ((FXToolBarGrip *) x)); } static void *_p_FXScrollBarTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *) ((FXScrollBar *) x)); } static void *_p_FXComboBoxTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXComboBox *) x)); } static void *_p_FXFrameTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *) ((FXFrame *) x)); } static void *_p_FX7SegmentTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FX7Segment *) x)); } static void *_p_FXDockTitleTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *)(FXDockHandler *) ((FXDockTitle *) x)); } static void *_p_FXStatusBarTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *)(FXHorizontalFrame *) ((FXStatusBar *) x)); } static void *_p_FXKnobTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXKnob *) x)); } static void *_p_FXRulerViewTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXScrollArea *) ((FXRulerView *) x)); } static void *_p_FXRealSpinnerTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXRealSpinner *) x)); } static void *_p_FXSpinnerTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXSpinner *) x)); } static void *_p_FXStatusLineTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXStatusLine *) x)); } static void *_p_FXSplashWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXSplashWindow *) x)); } static void *_p_FXMainWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXMainWindow *) x)); } static void *_p_FXTopWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *) ((FXTopWindow *) x)); } static void *_p_FXRootWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *) ((FXRootWindow *) x)); } static void *_p_FXWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) ((FXWindow *) x)); } static void *_p_FXScrollWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXScrollArea *) ((FXScrollWindow *) x)); } static void *_p_FXDockBarTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXDockBar *) x)); } static void *_p_FXShellTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *) ((FXShell *) x)); } static void *_p_FXScrollAreaTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *) ((FXScrollArea *) x)); } static void *_p_FXColorWellTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXColorWell *) x)); } static void *_p_FXDragCornerTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *) ((FXDragCorner *) x)); } static void *_p_FXRulerTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXRuler *) x)); } static void *_p_FXDialTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXFrame *) ((FXDial *) x)); } static void *_p_FXVerticalFrameTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXVerticalFrame *) x)); } static void *_p_FXHorizontalFrameTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXHorizontalFrame *) x)); } static void *_p_FXImageViewTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXScrollArea *) ((FXImageView *) x)); } static void *_p_FXFontSelectorTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXFontSelector *) x)); } static void *_p_FXColorSelectorTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXColorSelector *) x)); } static void *_p_FXFileSelectorTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXFileSelector *) x)); } static void *_p_FXDirSelectorTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *) ((FXDirSelector *) x)); } static void *_p_FXToolBarShellTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXToolBarShell *) x)); } static void *_p_FXToolBarTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *)(FXDockBar *) ((FXToolBar *) x)); } static void *_p_FXDirBoxTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXPacker *)(FXTreeListBox *) ((FXDirBox *) x)); } static void *_p_FXDriveBoxTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *)(FXListBox *) ((FXDriveBox *) x)); } static void *_p_FXToolBarTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *)(FXDockBar *) ((FXToolBar *) x)); } static void *_p_FXToolTipTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXShell *) ((FXToolTip *) x)); } static void *_p_FXTabBookTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *)(FXTabBar *) ((FXTabBook *) x)); } static void *_p_FXGroupBoxTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXGroupBox *) x)); } static void *_p_FXShellTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) ((FXShell *) x)); } static void *_p_FXStatusBarTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *)(FXHorizontalFrame *) ((FXStatusBar *) x)); } static void *_p_FXScrollAreaTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) ((FXScrollArea *) x)); } static void *_p_FXPopupTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXShell *) ((FXPopup *) x)); } static void *_p_FXScrollWindowTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXScrollArea *) ((FXScrollWindow *) x)); } static void *_p_FXRootWindowTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) ((FXRootWindow *) x)); } static void *_p_FXTopWindowTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXShell *) ((FXTopWindow *) x)); } static void *_p_FXMainWindowTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXShell *)(FXTopWindow *) ((FXMainWindow *) x)); } static void *_p_FXSplashWindowTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXShell *)(FXTopWindow *) ((FXSplashWindow *) x)); } static void *_p_FXComboBoxTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXComboBox *) x)); } static void *_p_FXHorizontalFrameTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXHorizontalFrame *) x)); } static void *_p_FXVerticalFrameTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXVerticalFrame *) x)); } static void *_p_FX4SplitterTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) ((FX4Splitter *) x)); } static void *_p_FXSplitterTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) ((FXSplitter *) x)); } static void *_p_FXRealSpinnerTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXRealSpinner *) x)); } static void *_p_FXSpinnerTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXSpinner *) x)); } static void *_p_FXPackerTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) ((FXPacker *) x)); } static void *_p_FXDirBoxTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *)(FXTreeListBox *) ((FXDirBox *) x)); } static void *_p_FXSwitcherTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXSwitcher *) x)); } static void *_p_FXDirSelectorTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXDirSelector *) x)); } static void *_p_FXFileSelectorTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXFileSelector *) x)); } static void *_p_FXColorSelectorTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXColorSelector *) x)); } static void *_p_FXFontSelectorTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXFontSelector *) x)); } static void *_p_FXShutterTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *)(FXVerticalFrame *) ((FXShutter *) x)); } static void *_p_FXDockSiteTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXDockSite *) x)); } static void *_p_FXRulerViewTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXScrollArea *) ((FXRulerView *) x)); } static void *_p_FXTreeListBoxTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXTreeListBox *) x)); } static void *_p_FXListBoxTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXListBox *) x)); } static void *_p_FXMatrixTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXMatrix *) x)); } static void *_p_FXShutterItemTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *)(FXVerticalFrame *) ((FXShutterItem *) x)); } static void *_p_FXDockBarTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXDockBar *) x)); } static void *_p_FXTabBarTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXTabBar *) x)); } static void *_p_FXImageViewTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXScrollArea *) ((FXImageView *) x)); } static void *_p_FXSpringTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXPacker *) ((FXSpring *) x)); } static void *_p_FXToolBarShellTo_p_FXComposite(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXComposite *) (FXShell *)(FXTopWindow *) ((FXToolBarShell *) x)); } static void *_p_FXGLViewerTo_p_FXGLCanvas(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXGLCanvas *) ((FXGLViewer *) x)); } static void *_p_FXGLCanvasTo_p_FXCanvas(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXCanvas *) ((FXGLCanvas *) x)); } static void *_p_FXGLViewerTo_p_FXCanvas(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXCanvas *) (FXGLCanvas *) ((FXGLViewer *) x)); } static void *_p_FXGLVisualTo_p_FXVisual(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXVisual *) ((FXGLVisual *) x)); } static void *_p_FXGradientBarTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXGradientBar *) x)); } static void *_p_FXShutterItemTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXVerticalFrame *) ((FXShutterItem *) x)); } static void *_p_FXColorBarTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXColorBar *) x)); } static void *_p_FXTabBarTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXTabBar *) x)); } static void *_p_FXSwitcherTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXSwitcher *) x)); } static void *_p_FXTextFieldTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXTextField *) x)); } static void *_p_FXToolBarTabTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXToolBarTab *) x)); } static void *_p_FXDriveBoxTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXListBox *) ((FXDriveBox *) x)); } static void *_p_FXMatrixTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXMatrix *) x)); } static void *_p_FXScrollCornerTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *) ((FXScrollCorner *) x)); } static void *_p_FXArrowButtonTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXArrowButton *) x)); } static void *_p_FXGLViewerTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXCanvas *)(FXGLCanvas *) ((FXGLViewer *) x)); } static void *_p_FXPopupTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *) ((FXPopup *) x)); } static void *_p_FXDrawableTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) ((FXDrawable *) x)); } static void *_p_FXHeaderTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXHeader *) x)); } static void *_p_FXSplitterTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *) ((FXSplitter *) x)); } static void *_p_FX4SplitterTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *) ((FX4Splitter *) x)); } static void *_p_FXSpringTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXSpring *) x)); } static void *_p_FXPackerTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *) ((FXPacker *) x)); } static void *_p_FXTabBookTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXTabBar *) ((FXTabBook *) x)); } static void *_p_FXImageFrameTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXImageFrame *) x)); } static void *_p_FXVerticalSeparatorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *)(FXSeparator *) ((FXVerticalSeparator *) x)); } static void *_p_FXHorizontalSeparatorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *)(FXSeparator *) ((FXHorizontalSeparator *) x)); } static void *_p_FXSeparatorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXSeparator *) x)); } static void *_p_FXProgressBarTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXProgressBar *) x)); } static void *_p_FXShutterTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXVerticalFrame *) ((FXShutter *) x)); } static void *_p_FXGLContextTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) ((FXGLContext *) x)); } static void *_p_FXToolTipTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *) ((FXToolTip *) x)); } static void *_p_FXCompositeTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *) ((FXComposite *) x)); } static void *_p_FXBitmapFrameTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXBitmapFrame *) x)); } static void *_p_FXRealSliderTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXRealSlider *) x)); } static void *_p_FXSliderTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXSlider *) x)); } static void *_p_FXDockSiteTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXDockSite *) x)); } static void *_p_FXGroupBoxTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXGroupBox *) x)); } static void *_p_FXColorRingTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXColorRing *) x)); } static void *_p_FXDockHandlerTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXDockHandler *) x)); } static void *_p_FXTreeListBoxTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXTreeListBox *) x)); } static void *_p_FXListBoxTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXListBox *) x)); } static void *_p_FXCanvasTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *) ((FXCanvas *) x)); } static void *_p_FXGLCanvasTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXCanvas *) ((FXGLCanvas *) x)); } static void *_p_FXColorWheelTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXColorWheel *) x)); } static void *_p_FXVisualTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) ((FXVisual *) x)); } static void *_p_FXScrollBarTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *) ((FXScrollBar *) x)); } static void *_p_FXToolBarGripTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *)(FXDockHandler *) ((FXToolBarGrip *) x)); } static void *_p_FXGLVisualTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXVisual *) ((FXGLVisual *) x)); } static void *_p_FXFontTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) ((FXFont *) x)); } static void *_p_FXComboBoxTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXComboBox *) x)); } static void *_p_FXFrameTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *) ((FXFrame *) x)); } static void *_p_FX7SegmentTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FX7Segment *) x)); } static void *_p_FXDockTitleTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *)(FXDockHandler *) ((FXDockTitle *) x)); } static void *_p_FXStatusBarTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXHorizontalFrame *) ((FXStatusBar *) x)); } static void *_p_FXGIFCursorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXCursor *) ((FXGIFCursor *) x)); } static void *_p_FXCURCursorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXCursor *) ((FXCURCursor *) x)); } static void *_p_FXCursorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) ((FXCursor *) x)); } static void *_p_FXKnobTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXKnob *) x)); } static void *_p_FXRealSpinnerTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXRealSpinner *) x)); } static void *_p_FXSpinnerTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXSpinner *) x)); } static void *_p_FXRulerViewTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXScrollArea *) ((FXRulerView *) x)); } static void *_p_FXStatusLineTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXStatusLine *) x)); } static void *_p_FXMainWindowTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXMainWindow *) x)); } static void *_p_FXTopWindowTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *) ((FXTopWindow *) x)); } static void *_p_FXRootWindowTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *) ((FXRootWindow *) x)); } static void *_p_FXWindowTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *) ((FXWindow *) x)); } static void *_p_FXSplashWindowTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXSplashWindow *) x)); } static void *_p_FXScrollWindowTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXScrollArea *) ((FXScrollWindow *) x)); } static void *_p_FXDockBarTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXDockBar *) x)); } static void *_p_FXShellTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *) ((FXShell *) x)); } static void *_p_FXScrollAreaTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *) ((FXScrollArea *) x)); } static void *_p_FXColorWellTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXColorWell *) x)); } static void *_p_FXDragCornerTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *) ((FXDragCorner *) x)); } static void *_p_FXRulerTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXRuler *) x)); } static void *_p_FXDialTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXFrame *) ((FXDial *) x)); } static void *_p_FXHorizontalFrameTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXHorizontalFrame *) x)); } static void *_p_FXVerticalFrameTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXVerticalFrame *) x)); } static void *_p_FXImageViewTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXScrollArea *) ((FXImageView *) x)); } static void *_p_FXFontSelectorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXFontSelector *) x)); } static void *_p_FXColorSelectorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXColorSelector *) x)); } static void *_p_FXFileSelectorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXFileSelector *) x)); } static void *_p_FXDirSelectorTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXDirSelector *) x)); } static void *_p_FXToolBarTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXDockBar *) ((FXToolBar *) x)); } static void *_p_FXToolBarShellTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXToolBarShell *) x)); } static void *_p_FXDirBoxTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXId *) (FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXTreeListBox *) ((FXDirBox *) x)); } static void *_p_FXGLShapeTo_p_FXGLObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXGLObject *) ((FXGLShape *) x)); } static void *_p_FXDocumentTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXDocument *) x)); } static void *_p_FXGradientBarTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXGradientBar *) x)); } static void *_p_FXRegistryTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXDict *)(FXSettings *) ((FXRegistry *) x)); } static void *_p_FXHeaderItemTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXHeaderItem *) x)); } static void *_p_FXShutterItemTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXVerticalFrame *) ((FXShutterItem *) x)); } static void *_p_FXColorBarTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXColorBar *) x)); } static void *_p_FXTabBarTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXTabBar *) x)); } static void *_p_FXSwitcherTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXSwitcher *) x)); } static void *_p_FXTextFieldTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXTextField *) x)); } static void *_p_FXToolBarTabTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXToolBarTab *) x)); } static void *_p_FXDriveBoxTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXListBox *) ((FXDriveBox *) x)); } static void *_p_FXIconDictTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXDict *) ((FXIconDict *) x)); } static void *_p_FXMatrixTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXMatrix *) x)); } static void *_p_FXFileDictTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXDict *) ((FXFileDict *) x)); } static void *_p_FXRecentFilesTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXRecentFiles *) x)); } static void *_p_FXScrollCornerTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *) ((FXScrollCorner *) x)); } static void *_p_FXArrowButtonTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXArrowButton *) x)); } static void *_p_FXGLViewerTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXCanvas *)(FXGLCanvas *) ((FXGLViewer *) x)); } static void *_p_FXPopupTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *) ((FXPopup *) x)); } static void *_p_FXDrawableTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *) ((FXDrawable *) x)); } static void *_p_FXAppTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXApp *) x)); } static void *_p_FXHeaderTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXHeader *) x)); } static void *_p_FXTranslatorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXTranslator *) x)); } static void *_p_FX4SplitterTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *) ((FX4Splitter *) x)); } static void *_p_FXSplitterTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *) ((FXSplitter *) x)); } static void *_p_FXSpringTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXSpring *) x)); } static void *_p_FXPackerTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *) ((FXPacker *) x)); } static void *_p_FXTabBookTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXTabBar *) ((FXTabBook *) x)); } static void *_p_FXImageFrameTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXImageFrame *) x)); } static void *_p_FXVerticalSeparatorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *)(FXSeparator *) ((FXVerticalSeparator *) x)); } static void *_p_FXHorizontalSeparatorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *)(FXSeparator *) ((FXHorizontalSeparator *) x)); } static void *_p_FXSeparatorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXSeparator *) x)); } static void *_p_FXIdTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXId *) x)); } static void *_p_FXGLShapeTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXGLObject *) ((FXGLShape *) x)); } static void *_p_FXProgressBarTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXProgressBar *) x)); } static void *_p_FXShutterTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXVerticalFrame *) ((FXShutter *) x)); } static void *_p_FXGLContextTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *) ((FXGLContext *) x)); } static void *_p_FXToolTipTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *) ((FXToolTip *) x)); } static void *_p_FXCompositeTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *) ((FXComposite *) x)); } static void *_p_FXBitmapFrameTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXBitmapFrame *) x)); } static void *_p_FXRealSliderTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXRealSlider *) x)); } static void *_p_FXSliderTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXSlider *) x)); } static void *_p_FXSettingsTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXDict *) ((FXSettings *) x)); } static void *_p_FXDockSiteTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXDockSite *) x)); } static void *_p_FXGroupBoxTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXGroupBox *) x)); } static void *_p_FXColorRingTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXColorRing *) x)); } static void *_p_FXDebugTargetTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXDebugTarget *) x)); } static void *_p_FXDataTargetTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXDataTarget *) x)); } static void *_p_FXDockHandlerTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXDockHandler *) x)); } static void *_p_FXCanvasTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *) ((FXCanvas *) x)); } static void *_p_FXListBoxTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXListBox *) x)); } static void *_p_FXTreeListBoxTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXTreeListBox *) x)); } static void *_p_FXGLCanvasTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXCanvas *) ((FXGLCanvas *) x)); } static void *_p_FXColorWheelTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXColorWheel *) x)); } static void *_p_FXVisualTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *) ((FXVisual *) x)); } static void *_p_FXScrollBarTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *) ((FXScrollBar *) x)); } static void *_p_FXToolBarGripTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *)(FXDockHandler *) ((FXToolBarGrip *) x)); } static void *_p_FXGLVisualTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXVisual *) ((FXGLVisual *) x)); } static void *_p_FXFontTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *) ((FXFont *) x)); } static void *_p_FXComboBoxTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXComboBox *) x)); } static void *_p_FXFrameTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *) ((FXFrame *) x)); } static void *_p_FX7SegmentTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FX7Segment *) x)); } static void *_p_FXDockTitleTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *)(FXDockHandler *) ((FXDockTitle *) x)); } static void *_p_FXStringDictTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXDict *) ((FXStringDict *) x)); } static void *_p_FXStatusBarTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXHorizontalFrame *) ((FXStatusBar *) x)); } static void *_p_FXDelegatorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXDelegator *) x)); } static void *_p_FXAccelTableTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXAccelTable *) x)); } static void *_p_FXCursorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *) ((FXCursor *) x)); } static void *_p_FXCURCursorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXCursor *) ((FXCURCursor *) x)); } static void *_p_FXGIFCursorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXCursor *) ((FXGIFCursor *) x)); } static void *_p_FXGLObjectTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXGLObject *) x)); } static void *_p_FXKnobTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXKnob *) x)); } static void *_p_FXRealSpinnerTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXRealSpinner *) x)); } static void *_p_FXSpinnerTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXSpinner *) x)); } static void *_p_FXRulerViewTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXScrollArea *) ((FXRulerView *) x)); } static void *_p_FXStatusLineTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXStatusLine *) x)); } static void *_p_FXScrollWindowTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXScrollArea *) ((FXScrollWindow *) x)); } static void *_p_FXWindowTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *) ((FXWindow *) x)); } static void *_p_FXRootWindowTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *) ((FXRootWindow *) x)); } static void *_p_FXTopWindowTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *) ((FXTopWindow *) x)); } static void *_p_FXMainWindowTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXMainWindow *) x)); } static void *_p_FXSplashWindowTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXSplashWindow *) x)); } static void *_p_FXDockBarTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXDockBar *) x)); } static void *_p_FXDictTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) ((FXDict *) x)); } static void *_p_FXShellTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *) ((FXShell *) x)); } static void *_p_FXScrollAreaTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *) ((FXScrollArea *) x)); } static void *_p_FXColorWellTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXColorWell *) x)); } static void *_p_FXDragCornerTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *) ((FXDragCorner *) x)); } static void *_p_FXRulerTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXRuler *) x)); } static void *_p_FXDialTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXFrame *) ((FXDial *) x)); } static void *_p_FXVerticalFrameTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXVerticalFrame *) x)); } static void *_p_FXHorizontalFrameTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXHorizontalFrame *) x)); } static void *_p_FXImageViewTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXScrollArea *) ((FXImageView *) x)); } static void *_p_FXDirSelectorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXDirSelector *) x)); } static void *_p_FXFileSelectorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXFileSelector *) x)); } static void *_p_FXColorSelectorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXColorSelector *) x)); } static void *_p_FXFontSelectorTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *) ((FXFontSelector *) x)); } static void *_p_FXToolBarTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXDockBar *) ((FXToolBar *) x)); } static void *_p_FXToolBarShellTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXToolBarShell *) x)); } static void *_p_FXDirBoxTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXWindow *)(FXComposite *)(FXPacker *)(FXTreeListBox *) ((FXDirBox *) x)); } static void *_p_FXFileStreamTo_p_FXStream(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXStream *) ((FXFileStream *) x)); } static void *_p_FXMemoryStreamTo_p_FXStream(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXStream *) ((FXMemoryStream *) x)); } static void *_p_FXDriveBoxTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *)(FXListBox *) ((FXDriveBox *) x)); } static void *_p_FXToolBarTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *)(FXDockBar *) ((FXToolBar *) x)); } static void *_p_FXCompositeTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) ((FXComposite *) x)); } static void *_p_FXToolTipTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXShell *) ((FXToolTip *) x)); } static void *_p_FXTextFieldTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXTextField *) x)); } static void *_p_FXTabBookTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *)(FXTabBar *) ((FXTabBook *) x)); } static void *_p_FXGLViewerTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXCanvas *)(FXGLCanvas *) ((FXGLViewer *) x)); } static void *_p_FXArrowButtonTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXArrowButton *) x)); } static void *_p_FXGroupBoxTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXGroupBox *) x)); } static void *_p_FXShellTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *) ((FXShell *) x)); } static void *_p_FXStatusBarTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *)(FXHorizontalFrame *) ((FXStatusBar *) x)); } static void *_p_FXScrollAreaTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *) ((FXScrollArea *) x)); } static void *_p_FXPopupTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXShell *) ((FXPopup *) x)); } static void *_p_FXScrollWindowTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXScrollArea *) ((FXScrollWindow *) x)); } static void *_p_FXRootWindowTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *) ((FXRootWindow *) x)); } static void *_p_FXTopWindowTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXShell *) ((FXTopWindow *) x)); } static void *_p_FXMainWindowTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXShell *)(FXTopWindow *) ((FXMainWindow *) x)); } static void *_p_FXSplashWindowTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXShell *)(FXTopWindow *) ((FXSplashWindow *) x)); } static void *_p_FXRulerTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXRuler *) x)); } static void *_p_FXCanvasTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) ((FXCanvas *) x)); } static void *_p_FXScrollCornerTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) ((FXScrollCorner *) x)); } static void *_p_FXGLCanvasTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXCanvas *) ((FXGLCanvas *) x)); } static void *_p_FXSeparatorTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXSeparator *) x)); } static void *_p_FXHorizontalSeparatorTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *)(FXSeparator *) ((FXHorizontalSeparator *) x)); } static void *_p_FXVerticalSeparatorTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *)(FXSeparator *) ((FXVerticalSeparator *) x)); } static void *_p_FXStatusLineTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXStatusLine *) x)); } static void *_p_FXComboBoxTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXComboBox *) x)); } static void *_p_FXKnobTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXKnob *) x)); } static void *_p_FXHorizontalFrameTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXHorizontalFrame *) x)); } static void *_p_FXVerticalFrameTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXVerticalFrame *) x)); } static void *_p_FX4SplitterTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *) ((FX4Splitter *) x)); } static void *_p_FXSplitterTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *) ((FXSplitter *) x)); } static void *_p_FXPackerTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *) ((FXPacker *) x)); } static void *_p_FXSpinnerTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXSpinner *) x)); } static void *_p_FXRealSpinnerTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXRealSpinner *) x)); } static void *_p_FXScrollBarTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) ((FXScrollBar *) x)); } static void *_p_FXColorWheelTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXColorWheel *) x)); } static void *_p_FXBitmapFrameTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXBitmapFrame *) x)); } static void *_p_FXGradientBarTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXGradientBar *) x)); } static void *_p_FXDirBoxTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *)(FXTreeListBox *) ((FXDirBox *) x)); } static void *_p_FXDockHandlerTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXDockHandler *) x)); } static void *_p_FXToolBarGripTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *)(FXDockHandler *) ((FXToolBarGrip *) x)); } static void *_p_FXImageFrameTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXImageFrame *) x)); } static void *_p_FXDragCornerTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) ((FXDragCorner *) x)); } static void *_p_FXSwitcherTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXSwitcher *) x)); } static void *_p_FXDirSelectorTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXDirSelector *) x)); } static void *_p_FXFileSelectorTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXFileSelector *) x)); } static void *_p_FXColorSelectorTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXColorSelector *) x)); } static void *_p_FXFontSelectorTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXFontSelector *) x)); } static void *_p_FXShutterTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *)(FXVerticalFrame *) ((FXShutter *) x)); } static void *_p_FXProgressBarTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXProgressBar *) x)); } static void *_p_FXDockSiteTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXDockSite *) x)); } static void *_p_FXDockTitleTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *)(FXDockHandler *) ((FXDockTitle *) x)); } static void *_p_FXRulerViewTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXScrollArea *) ((FXRulerView *) x)); } static void *_p_FXListBoxTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXListBox *) x)); } static void *_p_FXTreeListBoxTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXTreeListBox *) x)); } static void *_p_FXHeaderTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXHeader *) x)); } static void *_p_FXMatrixTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXMatrix *) x)); } static void *_p_FXColorWellTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXColorWell *) x)); } static void *_p_FXShutterItemTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *)(FXVerticalFrame *) ((FXShutterItem *) x)); } static void *_p_FXDialTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXDial *) x)); } static void *_p_FXToolBarTabTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXToolBarTab *) x)); } static void *_p_FXDockBarTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXDockBar *) x)); } static void *_p_FXFrameTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) ((FXFrame *) x)); } static void *_p_FXTabBarTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXTabBar *) x)); } static void *_p_FX7SegmentTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FX7Segment *) x)); } static void *_p_FXImageViewTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXScrollArea *) ((FXImageView *) x)); } static void *_p_FXSliderTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXSlider *) x)); } static void *_p_FXRealSliderTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXRealSlider *) x)); } static void *_p_FXSpringTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXPacker *) ((FXSpring *) x)); } static void *_p_FXColorRingTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXColorRing *) x)); } static void *_p_FXColorBarTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXFrame *) ((FXColorBar *) x)); } static void *_p_FXToolBarShellTo_p_FXWindow(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((FXWindow *) (FXComposite *)(FXShell *)(FXTopWindow *) ((FXToolBarShell *) x)); } static swig_type_info _swigt__p_FXApp = {"_p_FXApp", "FXApp *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXBitmap = {"_p_FXBitmap", "FXBitmap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXCanvas = {"_p_FXCanvas", "FXCanvas *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXComposite = {"_p_FXComposite", "FXComposite *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXDriveBox = {"_p_FXDriveBox", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXToolBar = {"_p_FXToolBar", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXToolTip = {"_p_FXToolTip", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXTabBook = {"_p_FXTabBook", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXGroupBox = {"_p_FXGroupBox", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXShell = {"_p_FXShell", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXStatusBar = {"_p_FXStatusBar", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXScrollArea = {"_p_FXScrollArea", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXPopup = {"_p_FXPopup", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXMainWindow = {"_p_FXMainWindow", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXSplashWindow = {"_p_FXSplashWindow", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXScrollWindow = {"_p_FXScrollWindow", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXRootWindow = {"_p_FXRootWindow", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXTopWindow = {"_p_FXTopWindow", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXComboBox = {"_p_FXComboBox", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXHorizontalFrame = {"_p_FXHorizontalFrame", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXVerticalFrame = {"_p_FXVerticalFrame", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FX4Splitter = {"_p_FX4Splitter", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXSplitter = {"_p_FXSplitter", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXRealSpinner = {"_p_FXRealSpinner", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXSpinner = {"_p_FXSpinner", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXPacker = {"_p_FXPacker", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDirBox = {"_p_FXDirBox", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXSwitcher = {"_p_FXSwitcher", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDirSelector = {"_p_FXDirSelector", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXFileSelector = {"_p_FXFileSelector", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXColorSelector = {"_p_FXColorSelector", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXFontSelector = {"_p_FXFontSelector", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXShutter = {"_p_FXShutter", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDockSite = {"_p_FXDockSite", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXRulerView = {"_p_FXRulerView", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXTreeListBox = {"_p_FXTreeListBox", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXListBox = {"_p_FXListBox", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXMatrix = {"_p_FXMatrix", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXShutterItem = {"_p_FXShutterItem", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDockBar = {"_p_FXDockBar", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXTabBar = {"_p_FXTabBar", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXImageView = {"_p_FXImageView", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXSpring = {"_p_FXSpring", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXToolBarShell = {"_p_FXToolBarShell", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDrawable = {"_p_FXDrawable", "FXDrawable *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXGradientBar = {"_p_FXGradientBar", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXColorBar = {"_p_FXColorBar", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXTextField = {"_p_FXTextField", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXToolBarTab = {"_p_FXToolBarTab", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXScrollCorner = {"_p_FXScrollCorner", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXArrowButton = {"_p_FXArrowButton", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXHeader = {"_p_FXHeader", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXImageFrame = {"_p_FXImageFrame", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXVerticalSeparator = {"_p_FXVerticalSeparator", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXHorizontalSeparator = {"_p_FXHorizontalSeparator", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXSeparator = {"_p_FXSeparator", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXKnob = {"_p_FXKnob", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXProgressBar = {"_p_FXProgressBar", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXBitmapFrame = {"_p_FXBitmapFrame", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXSlider = {"_p_FXSlider", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXRealSlider = {"_p_FXRealSlider", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXColorRing = {"_p_FXColorRing", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDockHandler = {"_p_FXDockHandler", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXColorWheel = {"_p_FXColorWheel", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDial = {"_p_FXDial", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXToolBarGrip = {"_p_FXToolBarGrip", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXScrollBar = {"_p_FXScrollBar", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXFrame = {"_p_FXFrame", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FX7Segment = {"_p_FX7Segment", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDockTitle = {"_p_FXDockTitle", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXStatusLine = {"_p_FXStatusLine", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXColorWell = {"_p_FXColorWell", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDragCorner = {"_p_FXDragCorner", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXRuler = {"_p_FXRuler", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXExtentd = {"_p_FXExtentd", "FXExtentd *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXExtentf = {"_p_FXExtentf", "FXExtentf *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXFont = {"_p_FXFont", "FXFont *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXGLCanvas = {"_p_FXGLCanvas", "FXGLCanvas *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXGLContext = {"_p_FXGLContext", "FXGLContext *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXGLObject = {"_p_FXGLObject", "FXGLObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXGLShape = {"_p_FXGLShape", "FXGLShape *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXGLViewer = {"_p_FXGLViewer", "FXGLViewer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXGLVisual = {"_p_FXGLVisual", "FXGLVisual *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXIcon = {"_p_FXIcon", "FXIcon *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXId = {"_p_FXId", "FXId *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXCursor = {"_p_FXCursor", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXCURCursor = {"_p_FXCURCursor", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXGIFCursor = {"_p_FXGIFCursor", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXLight = {"_p_FXLight", "FXLight *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXMat3d = {"_p_FXMat3d", "FXMat3d *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXMat3f = {"_p_FXMat3f", "FXMat3f *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXMat4d = {"_p_FXMat4d", "FXMat4d *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXMat4f = {"_p_FXMat4f", "FXMat4f *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXMaterial = {"_p_FXMaterial", "FXMaterial *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXObject = {"_p_FXObject", "FXObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXDocument = {"_p_FXDocument", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXRegistry = {"_p_FXRegistry", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXHeaderItem = {"_p_FXHeaderItem", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXIconDict = {"_p_FXIconDict", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXFileDict = {"_p_FXFileDict", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXRecentFiles = {"_p_FXRecentFiles", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXTranslator = {"_p_FXTranslator", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDict = {"_p_FXDict", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXSettings = {"_p_FXSettings", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDataTarget = {"_p_FXDataTarget", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDebugTarget = {"_p_FXDebugTarget", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXStringDict = {"_p_FXStringDict", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXDelegator = {"_p_FXDelegator", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXAccelTable = {"_p_FXAccelTable", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXQuatd = {"_p_FXQuatd", "FXQuatd *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXQuatf = {"_p_FXQuatf", "FXQuatf *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXRanged = {"_p_FXRanged", "FXRanged *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXRangef = {"_p_FXRangef", "FXRangef *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXRegion = {"_p_FXRegion", "FXRegion *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXSphered = {"_p_FXSphered", "FXSphered *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXSpheref = {"_p_FXSpheref", "FXSpheref *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXStream = {"_p_FXStream", "FXStream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXFileStream = {"_p_FXFileStream", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXMemoryStream = {"_p_FXMemoryStream", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_FXVec2d = {"_p_FXVec2d", "FXVec2d *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXVec2f = {"_p_FXVec2f", "FXVec2f *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXVec3d = {"_p_FXVec3d", "FXVec3d *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXVec3f = {"_p_FXVec3f", "FXVec3f *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXVec4d = {"_p_FXVec4d", "FXVec4d *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXVec4f = {"_p_FXVec4f", "FXVec4f *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXViewport = {"_p_FXViewport", "FXViewport *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXVisual = {"_p_FXVisual", "FXVisual *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_FXWindow = {"_p_FXWindow", "FXWindow *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *|FXchar *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *|FXdouble *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_float = {"_p_float", "float *|FXfloat *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "FXint *|int *|FXInputHandle *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long = {"_p_long", "long *|FXTime *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_short = {"_p_short", "short *|FXshort *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "FXuchar *|unsigned char *|FXbool *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "FXwchar *|FXDragType *|unsigned int *|FXuint *|FXColor *|FXSelector *|FXHotKey *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|FXuval *|FXPixel *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|FXushort *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_FX4Splitter, &_swigt__p_FX7Segment, &_swigt__p_FXAccelTable, &_swigt__p_FXApp, &_swigt__p_FXArrowButton, &_swigt__p_FXBitmap, &_swigt__p_FXBitmapFrame, &_swigt__p_FXCURCursor, &_swigt__p_FXCanvas, &_swigt__p_FXColorBar, &_swigt__p_FXColorRing, &_swigt__p_FXColorSelector, &_swigt__p_FXColorWell, &_swigt__p_FXColorWheel, &_swigt__p_FXComboBox, &_swigt__p_FXComposite, &_swigt__p_FXCursor, &_swigt__p_FXDataTarget, &_swigt__p_FXDebugTarget, &_swigt__p_FXDelegator, &_swigt__p_FXDial, &_swigt__p_FXDict, &_swigt__p_FXDirBox, &_swigt__p_FXDirSelector, &_swigt__p_FXDockBar, &_swigt__p_FXDockHandler, &_swigt__p_FXDockSite, &_swigt__p_FXDockTitle, &_swigt__p_FXDocument, &_swigt__p_FXDragCorner, &_swigt__p_FXDrawable, &_swigt__p_FXDriveBox, &_swigt__p_FXExtentd, &_swigt__p_FXExtentf, &_swigt__p_FXFileDict, &_swigt__p_FXFileSelector, &_swigt__p_FXFileStream, &_swigt__p_FXFont, &_swigt__p_FXFontSelector, &_swigt__p_FXFrame, &_swigt__p_FXGIFCursor, &_swigt__p_FXGLCanvas, &_swigt__p_FXGLContext, &_swigt__p_FXGLObject, &_swigt__p_FXGLShape, &_swigt__p_FXGLViewer, &_swigt__p_FXGLVisual, &_swigt__p_FXGradientBar, &_swigt__p_FXGroupBox, &_swigt__p_FXHeader, &_swigt__p_FXHeaderItem, &_swigt__p_FXHorizontalFrame, &_swigt__p_FXHorizontalSeparator, &_swigt__p_FXIcon, &_swigt__p_FXIconDict, &_swigt__p_FXId, &_swigt__p_FXImageFrame, &_swigt__p_FXImageView, &_swigt__p_FXKnob, &_swigt__p_FXLight, &_swigt__p_FXListBox, &_swigt__p_FXMainWindow, &_swigt__p_FXMat3d, &_swigt__p_FXMat3f, &_swigt__p_FXMat4d, &_swigt__p_FXMat4f, &_swigt__p_FXMaterial, &_swigt__p_FXMatrix, &_swigt__p_FXMemoryStream, &_swigt__p_FXObject, &_swigt__p_FXPacker, &_swigt__p_FXPopup, &_swigt__p_FXProgressBar, &_swigt__p_FXQuatd, &_swigt__p_FXQuatf, &_swigt__p_FXRanged, &_swigt__p_FXRangef, &_swigt__p_FXRealSlider, &_swigt__p_FXRealSpinner, &_swigt__p_FXRecentFiles, &_swigt__p_FXRegion, &_swigt__p_FXRegistry, &_swigt__p_FXRootWindow, &_swigt__p_FXRuler, &_swigt__p_FXRulerView, &_swigt__p_FXScrollArea, &_swigt__p_FXScrollBar, &_swigt__p_FXScrollCorner, &_swigt__p_FXScrollWindow, &_swigt__p_FXSeparator, &_swigt__p_FXSettings, &_swigt__p_FXShell, &_swigt__p_FXShutter, &_swigt__p_FXShutterItem, &_swigt__p_FXSlider, &_swigt__p_FXSphered, &_swigt__p_FXSpheref, &_swigt__p_FXSpinner, &_swigt__p_FXSplashWindow, &_swigt__p_FXSplitter, &_swigt__p_FXSpring, &_swigt__p_FXStatusBar, &_swigt__p_FXStatusLine, &_swigt__p_FXStream, &_swigt__p_FXStringDict, &_swigt__p_FXSwitcher, &_swigt__p_FXTabBar, &_swigt__p_FXTabBook, &_swigt__p_FXTextField, &_swigt__p_FXToolBar, &_swigt__p_FXToolBarGrip, &_swigt__p_FXToolBarShell, &_swigt__p_FXToolBarTab, &_swigt__p_FXToolTip, &_swigt__p_FXTopWindow, &_swigt__p_FXTranslator, &_swigt__p_FXTreeListBox, &_swigt__p_FXVec2d, &_swigt__p_FXVec2f, &_swigt__p_FXVec3d, &_swigt__p_FXVec3f, &_swigt__p_FXVec4d, &_swigt__p_FXVec4f, &_swigt__p_FXVerticalFrame, &_swigt__p_FXVerticalSeparator, &_swigt__p_FXViewport, &_swigt__p_FXVisual, &_swigt__p_FXWindow, &_swigt__p_char, &_swigt__p_double, &_swigt__p_float, &_swigt__p_int, &_swigt__p_long, &_swigt__p_short, &_swigt__p_unsigned_char, &_swigt__p_unsigned_int, &_swigt__p_unsigned_long, &_swigt__p_unsigned_short, }; static swig_cast_info _swigc__p_FXApp[] = { {&_swigt__p_FXApp, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXBitmap[] = { {&_swigt__p_FXBitmap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXCanvas[] = { {&_swigt__p_FXCanvas, 0, 0, 0}, {&_swigt__p_FXGLCanvas, _p_FXGLCanvasTo_p_FXCanvas, 0, 0}, {&_swigt__p_FXGLViewer, _p_FXGLViewerTo_p_FXCanvas, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDriveBox[] = {{&_swigt__p_FXDriveBox, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXToolBar[] = {{&_swigt__p_FXToolBar, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXToolTip[] = {{&_swigt__p_FXToolTip, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXTabBook[] = {{&_swigt__p_FXTabBook, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGroupBox[] = {{&_swigt__p_FXGroupBox, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXShell[] = {{&_swigt__p_FXShell, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXStatusBar[] = {{&_swigt__p_FXStatusBar, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXScrollArea[] = {{&_swigt__p_FXScrollArea, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXPopup[] = {{&_swigt__p_FXPopup, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXMainWindow[] = {{&_swigt__p_FXMainWindow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSplashWindow[] = {{&_swigt__p_FXSplashWindow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXScrollWindow[] = {{&_swigt__p_FXScrollWindow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRootWindow[] = {{&_swigt__p_FXRootWindow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXTopWindow[] = {{&_swigt__p_FXTopWindow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXComboBox[] = {{&_swigt__p_FXComboBox, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXHorizontalFrame[] = {{&_swigt__p_FXHorizontalFrame, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVerticalFrame[] = {{&_swigt__p_FXVerticalFrame, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FX4Splitter[] = {{&_swigt__p_FX4Splitter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSplitter[] = {{&_swigt__p_FXSplitter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRealSpinner[] = {{&_swigt__p_FXRealSpinner, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSpinner[] = {{&_swigt__p_FXSpinner, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXPacker[] = {{&_swigt__p_FXPacker, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDirBox[] = {{&_swigt__p_FXDirBox, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSwitcher[] = {{&_swigt__p_FXSwitcher, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDirSelector[] = {{&_swigt__p_FXDirSelector, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXFileSelector[] = {{&_swigt__p_FXFileSelector, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXColorSelector[] = {{&_swigt__p_FXColorSelector, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXFontSelector[] = {{&_swigt__p_FXFontSelector, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXShutter[] = {{&_swigt__p_FXShutter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDockSite[] = {{&_swigt__p_FXDockSite, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRulerView[] = {{&_swigt__p_FXRulerView, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXTreeListBox[] = {{&_swigt__p_FXTreeListBox, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXListBox[] = {{&_swigt__p_FXListBox, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXMatrix[] = {{&_swigt__p_FXMatrix, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXShutterItem[] = {{&_swigt__p_FXShutterItem, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDockBar[] = {{&_swigt__p_FXDockBar, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXTabBar[] = {{&_swigt__p_FXTabBar, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXImageView[] = {{&_swigt__p_FXImageView, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSpring[] = {{&_swigt__p_FXSpring, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXToolBarShell[] = {{&_swigt__p_FXToolBarShell, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXComposite[] = { {&_swigt__p_FXDriveBox, _p_FXDriveBoxTo_p_FXComposite, 0, 0}, {&_swigt__p_FXToolBar, _p_FXToolBarTo_p_FXComposite, 0, 0}, {&_swigt__p_FXComposite, 0, 0, 0}, {&_swigt__p_FXToolTip, _p_FXToolTipTo_p_FXComposite, 0, 0}, {&_swigt__p_FXTabBook, _p_FXTabBookTo_p_FXComposite, 0, 0}, {&_swigt__p_FXGroupBox, _p_FXGroupBoxTo_p_FXComposite, 0, 0}, {&_swigt__p_FXShell, _p_FXShellTo_p_FXComposite, 0, 0}, {&_swigt__p_FXStatusBar, _p_FXStatusBarTo_p_FXComposite, 0, 0}, {&_swigt__p_FXScrollArea, _p_FXScrollAreaTo_p_FXComposite, 0, 0}, {&_swigt__p_FXPopup, _p_FXPopupTo_p_FXComposite, 0, 0}, {&_swigt__p_FXMainWindow, _p_FXMainWindowTo_p_FXComposite, 0, 0}, {&_swigt__p_FXSplashWindow, _p_FXSplashWindowTo_p_FXComposite, 0, 0}, {&_swigt__p_FXScrollWindow, _p_FXScrollWindowTo_p_FXComposite, 0, 0}, {&_swigt__p_FXRootWindow, _p_FXRootWindowTo_p_FXComposite, 0, 0}, {&_swigt__p_FXTopWindow, _p_FXTopWindowTo_p_FXComposite, 0, 0}, {&_swigt__p_FXComboBox, _p_FXComboBoxTo_p_FXComposite, 0, 0}, {&_swigt__p_FXHorizontalFrame, _p_FXHorizontalFrameTo_p_FXComposite, 0, 0}, {&_swigt__p_FXVerticalFrame, _p_FXVerticalFrameTo_p_FXComposite, 0, 0}, {&_swigt__p_FX4Splitter, _p_FX4SplitterTo_p_FXComposite, 0, 0}, {&_swigt__p_FXSplitter, _p_FXSplitterTo_p_FXComposite, 0, 0}, {&_swigt__p_FXRealSpinner, _p_FXRealSpinnerTo_p_FXComposite, 0, 0}, {&_swigt__p_FXSpinner, _p_FXSpinnerTo_p_FXComposite, 0, 0}, {&_swigt__p_FXPacker, _p_FXPackerTo_p_FXComposite, 0, 0}, {&_swigt__p_FXDirBox, _p_FXDirBoxTo_p_FXComposite, 0, 0}, {&_swigt__p_FXSwitcher, _p_FXSwitcherTo_p_FXComposite, 0, 0}, {&_swigt__p_FXDirSelector, _p_FXDirSelectorTo_p_FXComposite, 0, 0}, {&_swigt__p_FXFileSelector, _p_FXFileSelectorTo_p_FXComposite, 0, 0}, {&_swigt__p_FXColorSelector, _p_FXColorSelectorTo_p_FXComposite, 0, 0}, {&_swigt__p_FXFontSelector, _p_FXFontSelectorTo_p_FXComposite, 0, 0}, {&_swigt__p_FXShutter, _p_FXShutterTo_p_FXComposite, 0, 0}, {&_swigt__p_FXDockSite, _p_FXDockSiteTo_p_FXComposite, 0, 0}, {&_swigt__p_FXRulerView, _p_FXRulerViewTo_p_FXComposite, 0, 0}, {&_swigt__p_FXTreeListBox, _p_FXTreeListBoxTo_p_FXComposite, 0, 0}, {&_swigt__p_FXListBox, _p_FXListBoxTo_p_FXComposite, 0, 0}, {&_swigt__p_FXMatrix, _p_FXMatrixTo_p_FXComposite, 0, 0}, {&_swigt__p_FXShutterItem, _p_FXShutterItemTo_p_FXComposite, 0, 0}, {&_swigt__p_FXDockBar, _p_FXDockBarTo_p_FXComposite, 0, 0}, {&_swigt__p_FXTabBar, _p_FXTabBarTo_p_FXComposite, 0, 0}, {&_swigt__p_FXImageView, _p_FXImageViewTo_p_FXComposite, 0, 0}, {&_swigt__p_FXSpring, _p_FXSpringTo_p_FXComposite, 0, 0}, {&_swigt__p_FXToolBarShell, _p_FXToolBarShellTo_p_FXComposite, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGradientBar[] = {{&_swigt__p_FXGradientBar, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXColorBar[] = {{&_swigt__p_FXColorBar, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXTextField[] = {{&_swigt__p_FXTextField, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXToolBarTab[] = {{&_swigt__p_FXToolBarTab, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXScrollCorner[] = {{&_swigt__p_FXScrollCorner, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXArrowButton[] = {{&_swigt__p_FXArrowButton, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXHeader[] = {{&_swigt__p_FXHeader, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXImageFrame[] = {{&_swigt__p_FXImageFrame, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVerticalSeparator[] = {{&_swigt__p_FXVerticalSeparator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXHorizontalSeparator[] = {{&_swigt__p_FXHorizontalSeparator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSeparator[] = {{&_swigt__p_FXSeparator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXKnob[] = {{&_swigt__p_FXKnob, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXProgressBar[] = {{&_swigt__p_FXProgressBar, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXBitmapFrame[] = {{&_swigt__p_FXBitmapFrame, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSlider[] = {{&_swigt__p_FXSlider, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRealSlider[] = {{&_swigt__p_FXRealSlider, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXColorRing[] = {{&_swigt__p_FXColorRing, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDockHandler[] = {{&_swigt__p_FXDockHandler, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXColorWheel[] = {{&_swigt__p_FXColorWheel, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDial[] = {{&_swigt__p_FXDial, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXToolBarGrip[] = {{&_swigt__p_FXToolBarGrip, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXScrollBar[] = {{&_swigt__p_FXScrollBar, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXFrame[] = {{&_swigt__p_FXFrame, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FX7Segment[] = {{&_swigt__p_FX7Segment, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDockTitle[] = {{&_swigt__p_FXDockTitle, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXStatusLine[] = {{&_swigt__p_FXStatusLine, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXColorWell[] = {{&_swigt__p_FXColorWell, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDragCorner[] = {{&_swigt__p_FXDragCorner, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRuler[] = {{&_swigt__p_FXRuler, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDrawable[] = { {&_swigt__p_FXGradientBar, _p_FXGradientBarTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXShutterItem, _p_FXShutterItemTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXColorBar, _p_FXColorBarTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXTabBar, _p_FXTabBarTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXSwitcher, _p_FXSwitcherTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXTextField, _p_FXTextFieldTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXToolBarTab, _p_FXToolBarTabTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDriveBox, _p_FXDriveBoxTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXMatrix, _p_FXMatrixTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXScrollCorner, _p_FXScrollCornerTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXArrowButton, _p_FXArrowButtonTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXGLViewer, _p_FXGLViewerTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXPopup, _p_FXPopupTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDrawable, 0, 0, 0}, {&_swigt__p_FXHeader, _p_FXHeaderTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXSplitter, _p_FXSplitterTo_p_FXDrawable, 0, 0}, {&_swigt__p_FX4Splitter, _p_FX4SplitterTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXSpring, _p_FXSpringTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXPacker, _p_FXPackerTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXTabBook, _p_FXTabBookTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXImageFrame, _p_FXImageFrameTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXVerticalSeparator, _p_FXVerticalSeparatorTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXHorizontalSeparator, _p_FXHorizontalSeparatorTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXSeparator, _p_FXSeparatorTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXKnob, _p_FXKnobTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXProgressBar, _p_FXProgressBarTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXShutter, _p_FXShutterTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXToolTip, _p_FXToolTipTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXComposite, _p_FXCompositeTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXBitmapFrame, _p_FXBitmapFrameTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXSlider, _p_FXSliderTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXRealSlider, _p_FXRealSliderTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDockSite, _p_FXDockSiteTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXGroupBox, _p_FXGroupBoxTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXColorRing, _p_FXColorRingTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDockHandler, _p_FXDockHandlerTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXTreeListBox, _p_FXTreeListBoxTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXListBox, _p_FXListBoxTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXGLCanvas, _p_FXGLCanvasTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXCanvas, _p_FXCanvasTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXColorWheel, _p_FXColorWheelTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDial, _p_FXDialTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXToolBarGrip, _p_FXToolBarGripTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXScrollBar, _p_FXScrollBarTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXComboBox, _p_FXComboBoxTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXFrame, _p_FXFrameTo_p_FXDrawable, 0, 0}, {&_swigt__p_FX7Segment, _p_FX7SegmentTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDockTitle, _p_FXDockTitleTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXStatusBar, _p_FXStatusBarTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXRulerView, _p_FXRulerViewTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXRealSpinner, _p_FXRealSpinnerTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXSpinner, _p_FXSpinnerTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXStatusLine, _p_FXStatusLineTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXWindow, _p_FXWindowTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXMainWindow, _p_FXMainWindowTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXTopWindow, _p_FXTopWindowTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXRootWindow, _p_FXRootWindowTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXScrollWindow, _p_FXScrollWindowTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXSplashWindow, _p_FXSplashWindowTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDockBar, _p_FXDockBarTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXShell, _p_FXShellTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXScrollArea, _p_FXScrollAreaTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXColorWell, _p_FXColorWellTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDragCorner, _p_FXDragCornerTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXRuler, _p_FXRulerTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXHorizontalFrame, _p_FXHorizontalFrameTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXVerticalFrame, _p_FXVerticalFrameTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXImageView, _p_FXImageViewTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDirSelector, _p_FXDirSelectorTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXFileSelector, _p_FXFileSelectorTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXColorSelector, _p_FXColorSelectorTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXFontSelector, _p_FXFontSelectorTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXToolBarShell, _p_FXToolBarShellTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXToolBar, _p_FXToolBarTo_p_FXDrawable, 0, 0}, {&_swigt__p_FXDirBox, _p_FXDirBoxTo_p_FXDrawable, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXExtentd[] = { {&_swigt__p_FXExtentd, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXExtentf[] = { {&_swigt__p_FXExtentf, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXFont[] = { {&_swigt__p_FXFont, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGLCanvas[] = { {&_swigt__p_FXGLCanvas, 0, 0, 0}, {&_swigt__p_FXGLViewer, _p_FXGLViewerTo_p_FXGLCanvas, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGLContext[] = { {&_swigt__p_FXGLContext, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGLObject[] = { {&_swigt__p_FXGLShape, _p_FXGLShapeTo_p_FXGLObject, 0, 0}, {&_swigt__p_FXGLObject, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGLShape[] = { {&_swigt__p_FXGLShape, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGLViewer[] = { {&_swigt__p_FXGLViewer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGLVisual[] = { {&_swigt__p_FXGLVisual, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXIcon[] = { {&_swigt__p_FXIcon, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXCursor[] = {{&_swigt__p_FXCursor, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXCURCursor[] = {{&_swigt__p_FXCURCursor, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXGIFCursor[] = {{&_swigt__p_FXGIFCursor, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXId[] = { {&_swigt__p_FXGradientBar, _p_FXGradientBarTo_p_FXId, 0, 0}, {&_swigt__p_FXShutterItem, _p_FXShutterItemTo_p_FXId, 0, 0}, {&_swigt__p_FXColorBar, _p_FXColorBarTo_p_FXId, 0, 0}, {&_swigt__p_FXTabBar, _p_FXTabBarTo_p_FXId, 0, 0}, {&_swigt__p_FXSwitcher, _p_FXSwitcherTo_p_FXId, 0, 0}, {&_swigt__p_FXTextField, _p_FXTextFieldTo_p_FXId, 0, 0}, {&_swigt__p_FXToolBarTab, _p_FXToolBarTabTo_p_FXId, 0, 0}, {&_swigt__p_FXDriveBox, _p_FXDriveBoxTo_p_FXId, 0, 0}, {&_swigt__p_FXMatrix, _p_FXMatrixTo_p_FXId, 0, 0}, {&_swigt__p_FXScrollCorner, _p_FXScrollCornerTo_p_FXId, 0, 0}, {&_swigt__p_FXArrowButton, _p_FXArrowButtonTo_p_FXId, 0, 0}, {&_swigt__p_FXGLViewer, _p_FXGLViewerTo_p_FXId, 0, 0}, {&_swigt__p_FXPopup, _p_FXPopupTo_p_FXId, 0, 0}, {&_swigt__p_FXDrawable, _p_FXDrawableTo_p_FXId, 0, 0}, {&_swigt__p_FXFont, _p_FXFontTo_p_FXId, 0, 0}, {&_swigt__p_FXHeader, _p_FXHeaderTo_p_FXId, 0, 0}, {&_swigt__p_FXSplitter, _p_FXSplitterTo_p_FXId, 0, 0}, {&_swigt__p_FX4Splitter, _p_FX4SplitterTo_p_FXId, 0, 0}, {&_swigt__p_FXSpring, _p_FXSpringTo_p_FXId, 0, 0}, {&_swigt__p_FXPacker, _p_FXPackerTo_p_FXId, 0, 0}, {&_swigt__p_FXTabBook, _p_FXTabBookTo_p_FXId, 0, 0}, {&_swigt__p_FXImageFrame, _p_FXImageFrameTo_p_FXId, 0, 0}, {&_swigt__p_FXVerticalSeparator, _p_FXVerticalSeparatorTo_p_FXId, 0, 0}, {&_swigt__p_FXHorizontalSeparator, _p_FXHorizontalSeparatorTo_p_FXId, 0, 0}, {&_swigt__p_FXSeparator, _p_FXSeparatorTo_p_FXId, 0, 0}, {&_swigt__p_FXKnob, _p_FXKnobTo_p_FXId, 0, 0}, {&_swigt__p_FXProgressBar, _p_FXProgressBarTo_p_FXId, 0, 0}, {&_swigt__p_FXShutter, _p_FXShutterTo_p_FXId, 0, 0}, {&_swigt__p_FXGLContext, _p_FXGLContextTo_p_FXId, 0, 0}, {&_swigt__p_FXToolTip, _p_FXToolTipTo_p_FXId, 0, 0}, {&_swigt__p_FXComposite, _p_FXCompositeTo_p_FXId, 0, 0}, {&_swigt__p_FXBitmapFrame, _p_FXBitmapFrameTo_p_FXId, 0, 0}, {&_swigt__p_FXSlider, _p_FXSliderTo_p_FXId, 0, 0}, {&_swigt__p_FXRealSlider, _p_FXRealSliderTo_p_FXId, 0, 0}, {&_swigt__p_FXDockSite, _p_FXDockSiteTo_p_FXId, 0, 0}, {&_swigt__p_FXGroupBox, _p_FXGroupBoxTo_p_FXId, 0, 0}, {&_swigt__p_FXColorRing, _p_FXColorRingTo_p_FXId, 0, 0}, {&_swigt__p_FXDockHandler, _p_FXDockHandlerTo_p_FXId, 0, 0}, {&_swigt__p_FXTreeListBox, _p_FXTreeListBoxTo_p_FXId, 0, 0}, {&_swigt__p_FXListBox, _p_FXListBoxTo_p_FXId, 0, 0}, {&_swigt__p_FXGLCanvas, _p_FXGLCanvasTo_p_FXId, 0, 0}, {&_swigt__p_FXCanvas, _p_FXCanvasTo_p_FXId, 0, 0}, {&_swigt__p_FXId, 0, 0, 0}, {&_swigt__p_FXColorWheel, _p_FXColorWheelTo_p_FXId, 0, 0}, {&_swigt__p_FXDial, _p_FXDialTo_p_FXId, 0, 0}, {&_swigt__p_FXToolBarGrip, _p_FXToolBarGripTo_p_FXId, 0, 0}, {&_swigt__p_FXScrollBar, _p_FXScrollBarTo_p_FXId, 0, 0}, {&_swigt__p_FXGLVisual, _p_FXGLVisualTo_p_FXId, 0, 0}, {&_swigt__p_FXVisual, _p_FXVisualTo_p_FXId, 0, 0}, {&_swigt__p_FXComboBox, _p_FXComboBoxTo_p_FXId, 0, 0}, {&_swigt__p_FXFrame, _p_FXFrameTo_p_FXId, 0, 0}, {&_swigt__p_FX7Segment, _p_FX7SegmentTo_p_FXId, 0, 0}, {&_swigt__p_FXDockTitle, _p_FXDockTitleTo_p_FXId, 0, 0}, {&_swigt__p_FXStatusBar, _p_FXStatusBarTo_p_FXId, 0, 0}, {&_swigt__p_FXCursor, _p_FXCursorTo_p_FXId, 0, 0}, {&_swigt__p_FXCURCursor, _p_FXCURCursorTo_p_FXId, 0, 0}, {&_swigt__p_FXGIFCursor, _p_FXGIFCursorTo_p_FXId, 0, 0}, {&_swigt__p_FXRulerView, _p_FXRulerViewTo_p_FXId, 0, 0}, {&_swigt__p_FXRealSpinner, _p_FXRealSpinnerTo_p_FXId, 0, 0}, {&_swigt__p_FXSpinner, _p_FXSpinnerTo_p_FXId, 0, 0}, {&_swigt__p_FXStatusLine, _p_FXStatusLineTo_p_FXId, 0, 0}, {&_swigt__p_FXWindow, _p_FXWindowTo_p_FXId, 0, 0}, {&_swigt__p_FXMainWindow, _p_FXMainWindowTo_p_FXId, 0, 0}, {&_swigt__p_FXTopWindow, _p_FXTopWindowTo_p_FXId, 0, 0}, {&_swigt__p_FXRootWindow, _p_FXRootWindowTo_p_FXId, 0, 0}, {&_swigt__p_FXScrollWindow, _p_FXScrollWindowTo_p_FXId, 0, 0}, {&_swigt__p_FXSplashWindow, _p_FXSplashWindowTo_p_FXId, 0, 0}, {&_swigt__p_FXDockBar, _p_FXDockBarTo_p_FXId, 0, 0}, {&_swigt__p_FXShell, _p_FXShellTo_p_FXId, 0, 0}, {&_swigt__p_FXScrollArea, _p_FXScrollAreaTo_p_FXId, 0, 0}, {&_swigt__p_FXColorWell, _p_FXColorWellTo_p_FXId, 0, 0}, {&_swigt__p_FXDragCorner, _p_FXDragCornerTo_p_FXId, 0, 0}, {&_swigt__p_FXRuler, _p_FXRulerTo_p_FXId, 0, 0}, {&_swigt__p_FXHorizontalFrame, _p_FXHorizontalFrameTo_p_FXId, 0, 0}, {&_swigt__p_FXVerticalFrame, _p_FXVerticalFrameTo_p_FXId, 0, 0}, {&_swigt__p_FXImageView, _p_FXImageViewTo_p_FXId, 0, 0}, {&_swigt__p_FXDirSelector, _p_FXDirSelectorTo_p_FXId, 0, 0}, {&_swigt__p_FXFileSelector, _p_FXFileSelectorTo_p_FXId, 0, 0}, {&_swigt__p_FXColorSelector, _p_FXColorSelectorTo_p_FXId, 0, 0}, {&_swigt__p_FXFontSelector, _p_FXFontSelectorTo_p_FXId, 0, 0}, {&_swigt__p_FXToolBarShell, _p_FXToolBarShellTo_p_FXId, 0, 0}, {&_swigt__p_FXToolBar, _p_FXToolBarTo_p_FXId, 0, 0}, {&_swigt__p_FXDirBox, _p_FXDirBoxTo_p_FXId, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXLight[] = { {&_swigt__p_FXLight, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXMat3d[] = { {&_swigt__p_FXMat3d, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXMat3f[] = { {&_swigt__p_FXMat3f, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXMat4d[] = { {&_swigt__p_FXMat4d, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXMat4f[] = { {&_swigt__p_FXMat4f, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXMaterial[] = { {&_swigt__p_FXMaterial, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDocument[] = {{&_swigt__p_FXDocument, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRegistry[] = {{&_swigt__p_FXRegistry, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXHeaderItem[] = {{&_swigt__p_FXHeaderItem, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXIconDict[] = {{&_swigt__p_FXIconDict, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXFileDict[] = {{&_swigt__p_FXFileDict, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRecentFiles[] = {{&_swigt__p_FXRecentFiles, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXTranslator[] = {{&_swigt__p_FXTranslator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDict[] = {{&_swigt__p_FXDict, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSettings[] = {{&_swigt__p_FXSettings, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDataTarget[] = {{&_swigt__p_FXDataTarget, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDebugTarget[] = {{&_swigt__p_FXDebugTarget, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXStringDict[] = {{&_swigt__p_FXStringDict, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXDelegator[] = {{&_swigt__p_FXDelegator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXAccelTable[] = {{&_swigt__p_FXAccelTable, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXObject[] = { {&_swigt__p_FXDocument, _p_FXDocumentTo_p_FXObject, 0, 0}, {&_swigt__p_FXGradientBar, _p_FXGradientBarTo_p_FXObject, 0, 0}, {&_swigt__p_FXRegistry, _p_FXRegistryTo_p_FXObject, 0, 0}, {&_swigt__p_FXHeaderItem, _p_FXHeaderItemTo_p_FXObject, 0, 0}, {&_swigt__p_FXShutterItem, _p_FXShutterItemTo_p_FXObject, 0, 0}, {&_swigt__p_FXColorBar, _p_FXColorBarTo_p_FXObject, 0, 0}, {&_swigt__p_FXTabBar, _p_FXTabBarTo_p_FXObject, 0, 0}, {&_swigt__p_FXSwitcher, _p_FXSwitcherTo_p_FXObject, 0, 0}, {&_swigt__p_FXTextField, _p_FXTextFieldTo_p_FXObject, 0, 0}, {&_swigt__p_FXToolBarTab, _p_FXToolBarTabTo_p_FXObject, 0, 0}, {&_swigt__p_FXDriveBox, _p_FXDriveBoxTo_p_FXObject, 0, 0}, {&_swigt__p_FXIconDict, _p_FXIconDictTo_p_FXObject, 0, 0}, {&_swigt__p_FXMatrix, _p_FXMatrixTo_p_FXObject, 0, 0}, {&_swigt__p_FXFileDict, _p_FXFileDictTo_p_FXObject, 0, 0}, {&_swigt__p_FXRecentFiles, _p_FXRecentFilesTo_p_FXObject, 0, 0}, {&_swigt__p_FXScrollCorner, _p_FXScrollCornerTo_p_FXObject, 0, 0}, {&_swigt__p_FXArrowButton, _p_FXArrowButtonTo_p_FXObject, 0, 0}, {&_swigt__p_FXGLViewer, _p_FXGLViewerTo_p_FXObject, 0, 0}, {&_swigt__p_FXPopup, _p_FXPopupTo_p_FXObject, 0, 0}, {&_swigt__p_FXDrawable, _p_FXDrawableTo_p_FXObject, 0, 0}, {&_swigt__p_FXFont, _p_FXFontTo_p_FXObject, 0, 0}, {&_swigt__p_FXHeader, _p_FXHeaderTo_p_FXObject, 0, 0}, {&_swigt__p_FXSplitter, _p_FXSplitterTo_p_FXObject, 0, 0}, {&_swigt__p_FX4Splitter, _p_FX4SplitterTo_p_FXObject, 0, 0}, {&_swigt__p_FXTranslator, _p_FXTranslatorTo_p_FXObject, 0, 0}, {&_swigt__p_FXSpring, _p_FXSpringTo_p_FXObject, 0, 0}, {&_swigt__p_FXPacker, _p_FXPackerTo_p_FXObject, 0, 0}, {&_swigt__p_FXTabBook, _p_FXTabBookTo_p_FXObject, 0, 0}, {&_swigt__p_FXApp, _p_FXAppTo_p_FXObject, 0, 0}, {&_swigt__p_FXImageFrame, _p_FXImageFrameTo_p_FXObject, 0, 0}, {&_swigt__p_FXVerticalSeparator, _p_FXVerticalSeparatorTo_p_FXObject, 0, 0}, {&_swigt__p_FXHorizontalSeparator, _p_FXHorizontalSeparatorTo_p_FXObject, 0, 0}, {&_swigt__p_FXSeparator, _p_FXSeparatorTo_p_FXObject, 0, 0}, {&_swigt__p_FXKnob, _p_FXKnobTo_p_FXObject, 0, 0}, {&_swigt__p_FXGLShape, _p_FXGLShapeTo_p_FXObject, 0, 0}, {&_swigt__p_FXProgressBar, _p_FXProgressBarTo_p_FXObject, 0, 0}, {&_swigt__p_FXShutter, _p_FXShutterTo_p_FXObject, 0, 0}, {&_swigt__p_FXGLContext, _p_FXGLContextTo_p_FXObject, 0, 0}, {&_swigt__p_FXComposite, _p_FXCompositeTo_p_FXObject, 0, 0}, {&_swigt__p_FXToolTip, _p_FXToolTipTo_p_FXObject, 0, 0}, {&_swigt__p_FXDict, _p_FXDictTo_p_FXObject, 0, 0}, {&_swigt__p_FXBitmapFrame, _p_FXBitmapFrameTo_p_FXObject, 0, 0}, {&_swigt__p_FXSlider, _p_FXSliderTo_p_FXObject, 0, 0}, {&_swigt__p_FXRealSlider, _p_FXRealSliderTo_p_FXObject, 0, 0}, {&_swigt__p_FXSettings, _p_FXSettingsTo_p_FXObject, 0, 0}, {&_swigt__p_FXDockSite, _p_FXDockSiteTo_p_FXObject, 0, 0}, {&_swigt__p_FXGroupBox, _p_FXGroupBoxTo_p_FXObject, 0, 0}, {&_swigt__p_FXColorRing, _p_FXColorRingTo_p_FXObject, 0, 0}, {&_swigt__p_FXDataTarget, _p_FXDataTargetTo_p_FXObject, 0, 0}, {&_swigt__p_FXDebugTarget, _p_FXDebugTargetTo_p_FXObject, 0, 0}, {&_swigt__p_FXDockHandler, _p_FXDockHandlerTo_p_FXObject, 0, 0}, {&_swigt__p_FXTreeListBox, _p_FXTreeListBoxTo_p_FXObject, 0, 0}, {&_swigt__p_FXListBox, _p_FXListBoxTo_p_FXObject, 0, 0}, {&_swigt__p_FXGLCanvas, _p_FXGLCanvasTo_p_FXObject, 0, 0}, {&_swigt__p_FXCanvas, _p_FXCanvasTo_p_FXObject, 0, 0}, {&_swigt__p_FXId, _p_FXIdTo_p_FXObject, 0, 0}, {&_swigt__p_FXColorWheel, _p_FXColorWheelTo_p_FXObject, 0, 0}, {&_swigt__p_FXDial, _p_FXDialTo_p_FXObject, 0, 0}, {&_swigt__p_FXToolBarGrip, _p_FXToolBarGripTo_p_FXObject, 0, 0}, {&_swigt__p_FXScrollBar, _p_FXScrollBarTo_p_FXObject, 0, 0}, {&_swigt__p_FXGLVisual, _p_FXGLVisualTo_p_FXObject, 0, 0}, {&_swigt__p_FXVisual, _p_FXVisualTo_p_FXObject, 0, 0}, {&_swigt__p_FXComboBox, _p_FXComboBoxTo_p_FXObject, 0, 0}, {&_swigt__p_FXFrame, _p_FXFrameTo_p_FXObject, 0, 0}, {&_swigt__p_FX7Segment, _p_FX7SegmentTo_p_FXObject, 0, 0}, {&_swigt__p_FXDockTitle, _p_FXDockTitleTo_p_FXObject, 0, 0}, {&_swigt__p_FXStatusBar, _p_FXStatusBarTo_p_FXObject, 0, 0}, {&_swigt__p_FXStringDict, _p_FXStringDictTo_p_FXObject, 0, 0}, {&_swigt__p_FXDelegator, _p_FXDelegatorTo_p_FXObject, 0, 0}, {&_swigt__p_FXAccelTable, _p_FXAccelTableTo_p_FXObject, 0, 0}, {&_swigt__p_FXObject, 0, 0, 0}, {&_swigt__p_FXCursor, _p_FXCursorTo_p_FXObject, 0, 0}, {&_swigt__p_FXCURCursor, _p_FXCURCursorTo_p_FXObject, 0, 0}, {&_swigt__p_FXGIFCursor, _p_FXGIFCursorTo_p_FXObject, 0, 0}, {&_swigt__p_FXGLObject, _p_FXGLObjectTo_p_FXObject, 0, 0}, {&_swigt__p_FXRulerView, _p_FXRulerViewTo_p_FXObject, 0, 0}, {&_swigt__p_FXRealSpinner, _p_FXRealSpinnerTo_p_FXObject, 0, 0}, {&_swigt__p_FXSpinner, _p_FXSpinnerTo_p_FXObject, 0, 0}, {&_swigt__p_FXMainWindow, _p_FXMainWindowTo_p_FXObject, 0, 0}, {&_swigt__p_FXTopWindow, _p_FXTopWindowTo_p_FXObject, 0, 0}, {&_swigt__p_FXRootWindow, _p_FXRootWindowTo_p_FXObject, 0, 0}, {&_swigt__p_FXScrollWindow, _p_FXScrollWindowTo_p_FXObject, 0, 0}, {&_swigt__p_FXSplashWindow, _p_FXSplashWindowTo_p_FXObject, 0, 0}, {&_swigt__p_FXStatusLine, _p_FXStatusLineTo_p_FXObject, 0, 0}, {&_swigt__p_FXWindow, _p_FXWindowTo_p_FXObject, 0, 0}, {&_swigt__p_FXDockBar, _p_FXDockBarTo_p_FXObject, 0, 0}, {&_swigt__p_FXShell, _p_FXShellTo_p_FXObject, 0, 0}, {&_swigt__p_FXScrollArea, _p_FXScrollAreaTo_p_FXObject, 0, 0}, {&_swigt__p_FXColorWell, _p_FXColorWellTo_p_FXObject, 0, 0}, {&_swigt__p_FXDragCorner, _p_FXDragCornerTo_p_FXObject, 0, 0}, {&_swigt__p_FXRuler, _p_FXRulerTo_p_FXObject, 0, 0}, {&_swigt__p_FXHorizontalFrame, _p_FXHorizontalFrameTo_p_FXObject, 0, 0}, {&_swigt__p_FXVerticalFrame, _p_FXVerticalFrameTo_p_FXObject, 0, 0}, {&_swigt__p_FXImageView, _p_FXImageViewTo_p_FXObject, 0, 0}, {&_swigt__p_FXDirSelector, _p_FXDirSelectorTo_p_FXObject, 0, 0}, {&_swigt__p_FXFileSelector, _p_FXFileSelectorTo_p_FXObject, 0, 0}, {&_swigt__p_FXColorSelector, _p_FXColorSelectorTo_p_FXObject, 0, 0}, {&_swigt__p_FXFontSelector, _p_FXFontSelectorTo_p_FXObject, 0, 0}, {&_swigt__p_FXToolBarShell, _p_FXToolBarShellTo_p_FXObject, 0, 0}, {&_swigt__p_FXToolBar, _p_FXToolBarTo_p_FXObject, 0, 0}, {&_swigt__p_FXDirBox, _p_FXDirBoxTo_p_FXObject, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXQuatd[] = { {&_swigt__p_FXQuatd, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXQuatf[] = { {&_swigt__p_FXQuatf, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRanged[] = { {&_swigt__p_FXRanged, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRangef[] = { {&_swigt__p_FXRangef, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXRegion[] = { {&_swigt__p_FXRegion, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSphered[] = { {&_swigt__p_FXSphered, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXSpheref[] = { {&_swigt__p_FXSpheref, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXFileStream[] = {{&_swigt__p_FXFileStream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXMemoryStream[] = {{&_swigt__p_FXMemoryStream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXStream[] = { {&_swigt__p_FXFileStream, _p_FXFileStreamTo_p_FXStream, 0, 0}, {&_swigt__p_FXMemoryStream, _p_FXMemoryStreamTo_p_FXStream, 0, 0}, {&_swigt__p_FXStream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVec2d[] = { {&_swigt__p_FXVec2d, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVec2f[] = { {&_swigt__p_FXVec2f, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVec3d[] = { {&_swigt__p_FXVec3d, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVec3f[] = { {&_swigt__p_FXVec3f, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVec4d[] = { {&_swigt__p_FXQuatd, _p_FXQuatdTo_p_FXVec4d, 0, 0}, {&_swigt__p_FXVec4d, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVec4f[] = { {&_swigt__p_FXVec4f, 0, 0, 0}, {&_swigt__p_FXQuatf, _p_FXQuatfTo_p_FXVec4f, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXViewport[] = { {&_swigt__p_FXViewport, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXVisual[] = { {&_swigt__p_FXVisual, 0, 0, 0}, {&_swigt__p_FXGLVisual, _p_FXGLVisualTo_p_FXVisual, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_FXWindow[] = { {&_swigt__p_FXGradientBar, _p_FXGradientBarTo_p_FXWindow, 0, 0}, {&_swigt__p_FXShutterItem, _p_FXShutterItemTo_p_FXWindow, 0, 0}, {&_swigt__p_FXColorBar, _p_FXColorBarTo_p_FXWindow, 0, 0}, {&_swigt__p_FXTabBar, _p_FXTabBarTo_p_FXWindow, 0, 0}, {&_swigt__p_FXSwitcher, _p_FXSwitcherTo_p_FXWindow, 0, 0}, {&_swigt__p_FXTextField, _p_FXTextFieldTo_p_FXWindow, 0, 0}, {&_swigt__p_FXToolBarTab, _p_FXToolBarTabTo_p_FXWindow, 0, 0}, {&_swigt__p_FXDriveBox, _p_FXDriveBoxTo_p_FXWindow, 0, 0}, {&_swigt__p_FXMatrix, _p_FXMatrixTo_p_FXWindow, 0, 0}, {&_swigt__p_FXScrollCorner, _p_FXScrollCornerTo_p_FXWindow, 0, 0}, {&_swigt__p_FXArrowButton, _p_FXArrowButtonTo_p_FXWindow, 0, 0}, {&_swigt__p_FXGLViewer, _p_FXGLViewerTo_p_FXWindow, 0, 0}, {&_swigt__p_FXPopup, _p_FXPopupTo_p_FXWindow, 0, 0}, {&_swigt__p_FXHeader, _p_FXHeaderTo_p_FXWindow, 0, 0}, {&_swigt__p_FX4Splitter, _p_FX4SplitterTo_p_FXWindow, 0, 0}, {&_swigt__p_FXSplitter, _p_FXSplitterTo_p_FXWindow, 0, 0}, {&_swigt__p_FXSpring, _p_FXSpringTo_p_FXWindow, 0, 0}, {&_swigt__p_FXPacker, _p_FXPackerTo_p_FXWindow, 0, 0}, {&_swigt__p_FXTabBook, _p_FXTabBookTo_p_FXWindow, 0, 0}, {&_swigt__p_FXImageFrame, _p_FXImageFrameTo_p_FXWindow, 0, 0}, {&_swigt__p_FXSeparator, _p_FXSeparatorTo_p_FXWindow, 0, 0}, {&_swigt__p_FXHorizontalSeparator, _p_FXHorizontalSeparatorTo_p_FXWindow, 0, 0}, {&_swigt__p_FXVerticalSeparator, _p_FXVerticalSeparatorTo_p_FXWindow, 0, 0}, {&_swigt__p_FXKnob, _p_FXKnobTo_p_FXWindow, 0, 0}, {&_swigt__p_FXProgressBar, _p_FXProgressBarTo_p_FXWindow, 0, 0}, {&_swigt__p_FXShutter, _p_FXShutterTo_p_FXWindow, 0, 0}, {&_swigt__p_FXToolTip, _p_FXToolTipTo_p_FXWindow, 0, 0}, {&_swigt__p_FXComposite, _p_FXCompositeTo_p_FXWindow, 0, 0}, {&_swigt__p_FXBitmapFrame, _p_FXBitmapFrameTo_p_FXWindow, 0, 0}, {&_swigt__p_FXSlider, _p_FXSliderTo_p_FXWindow, 0, 0}, {&_swigt__p_FXRealSlider, _p_FXRealSliderTo_p_FXWindow, 0, 0}, {&_swigt__p_FXDockSite, _p_FXDockSiteTo_p_FXWindow, 0, 0}, {&_swigt__p_FXGroupBox, _p_FXGroupBoxTo_p_FXWindow, 0, 0}, {&_swigt__p_FXColorRing, _p_FXColorRingTo_p_FXWindow, 0, 0}, {&_swigt__p_FXDockHandler, _p_FXDockHandlerTo_p_FXWindow, 0, 0}, {&_swigt__p_FXTreeListBox, _p_FXTreeListBoxTo_p_FXWindow, 0, 0}, {&_swigt__p_FXListBox, _p_FXListBoxTo_p_FXWindow, 0, 0}, {&_swigt__p_FXGLCanvas, _p_FXGLCanvasTo_p_FXWindow, 0, 0}, {&_swigt__p_FXCanvas, _p_FXCanvasTo_p_FXWindow, 0, 0}, {&_swigt__p_FXColorWheel, _p_FXColorWheelTo_p_FXWindow, 0, 0}, {&_swigt__p_FXDial, _p_FXDialTo_p_FXWindow, 0, 0}, {&_swigt__p_FXToolBarGrip, _p_FXToolBarGripTo_p_FXWindow, 0, 0}, {&_swigt__p_FXScrollBar, _p_FXScrollBarTo_p_FXWindow, 0, 0}, {&_swigt__p_FXComboBox, _p_FXComboBoxTo_p_FXWindow, 0, 0}, {&_swigt__p_FXFrame, _p_FXFrameTo_p_FXWindow, 0, 0}, {&_swigt__p_FX7Segment, _p_FX7SegmentTo_p_FXWindow, 0, 0}, {&_swigt__p_FXDockTitle, _p_FXDockTitleTo_p_FXWindow, 0, 0}, {&_swigt__p_FXStatusBar, _p_FXStatusBarTo_p_FXWindow, 0, 0}, {&_swigt__p_FXRulerView, _p_FXRulerViewTo_p_FXWindow, 0, 0}, {&_swigt__p_FXRealSpinner, _p_FXRealSpinnerTo_p_FXWindow, 0, 0}, {&_swigt__p_FXSpinner, _p_FXSpinnerTo_p_FXWindow, 0, 0}, {&_swigt__p_FXStatusLine, _p_FXStatusLineTo_p_FXWindow, 0, 0}, {&_swigt__p_FXMainWindow, _p_FXMainWindowTo_p_FXWindow, 0, 0}, {&_swigt__p_FXTopWindow, _p_FXTopWindowTo_p_FXWindow, 0, 0}, {&_swigt__p_FXRootWindow, _p_FXRootWindowTo_p_FXWindow, 0, 0}, {&_swigt__p_FXScrollWindow, _p_FXScrollWindowTo_p_FXWindow, 0, 0}, {&_swigt__p_FXSplashWindow, _p_FXSplashWindowTo_p_FXWindow, 0, 0}, {&_swigt__p_FXWindow, 0, 0, 0}, {&_swigt__p_FXDockBar, _p_FXDockBarTo_p_FXWindow, 0, 0}, {&_swigt__p_FXShell, _p_FXShellTo_p_FXWindow, 0, 0}, {&_swigt__p_FXScrollArea, _p_FXScrollAreaTo_p_FXWindow, 0, 0}, {&_swigt__p_FXColorWell, _p_FXColorWellTo_p_FXWindow, 0, 0}, {&_swigt__p_FXDragCorner, _p_FXDragCornerTo_p_FXWindow, 0, 0}, {&_swigt__p_FXRuler, _p_FXRulerTo_p_FXWindow, 0, 0}, {&_swigt__p_FXHorizontalFrame, _p_FXHorizontalFrameTo_p_FXWindow, 0, 0}, {&_swigt__p_FXVerticalFrame, _p_FXVerticalFrameTo_p_FXWindow, 0, 0}, {&_swigt__p_FXImageView, _p_FXImageViewTo_p_FXWindow, 0, 0}, {&_swigt__p_FXDirSelector, _p_FXDirSelectorTo_p_FXWindow, 0, 0}, {&_swigt__p_FXFileSelector, _p_FXFileSelectorTo_p_FXWindow, 0, 0}, {&_swigt__p_FXColorSelector, _p_FXColorSelectorTo_p_FXWindow, 0, 0}, {&_swigt__p_FXFontSelector, _p_FXFontSelectorTo_p_FXWindow, 0, 0}, {&_swigt__p_FXToolBarShell, _p_FXToolBarShellTo_p_FXWindow, 0, 0}, {&_swigt__p_FXToolBar, _p_FXToolBarTo_p_FXWindow, 0, 0}, {&_swigt__p_FXDirBox, _p_FXDirBoxTo_p_FXWindow, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_FX4Splitter, _swigc__p_FX7Segment, _swigc__p_FXAccelTable, _swigc__p_FXApp, _swigc__p_FXArrowButton, _swigc__p_FXBitmap, _swigc__p_FXBitmapFrame, _swigc__p_FXCURCursor, _swigc__p_FXCanvas, _swigc__p_FXColorBar, _swigc__p_FXColorRing, _swigc__p_FXColorSelector, _swigc__p_FXColorWell, _swigc__p_FXColorWheel, _swigc__p_FXComboBox, _swigc__p_FXComposite, _swigc__p_FXCursor, _swigc__p_FXDataTarget, _swigc__p_FXDebugTarget, _swigc__p_FXDelegator, _swigc__p_FXDial, _swigc__p_FXDict, _swigc__p_FXDirBox, _swigc__p_FXDirSelector, _swigc__p_FXDockBar, _swigc__p_FXDockHandler, _swigc__p_FXDockSite, _swigc__p_FXDockTitle, _swigc__p_FXDocument, _swigc__p_FXDragCorner, _swigc__p_FXDrawable, _swigc__p_FXDriveBox, _swigc__p_FXExtentd, _swigc__p_FXExtentf, _swigc__p_FXFileDict, _swigc__p_FXFileSelector, _swigc__p_FXFileStream, _swigc__p_FXFont, _swigc__p_FXFontSelector, _swigc__p_FXFrame, _swigc__p_FXGIFCursor, _swigc__p_FXGLCanvas, _swigc__p_FXGLContext, _swigc__p_FXGLObject, _swigc__p_FXGLShape, _swigc__p_FXGLViewer, _swigc__p_FXGLVisual, _swigc__p_FXGradientBar, _swigc__p_FXGroupBox, _swigc__p_FXHeader, _swigc__p_FXHeaderItem, _swigc__p_FXHorizontalFrame, _swigc__p_FXHorizontalSeparator, _swigc__p_FXIcon, _swigc__p_FXIconDict, _swigc__p_FXId, _swigc__p_FXImageFrame, _swigc__p_FXImageView, _swigc__p_FXKnob, _swigc__p_FXLight, _swigc__p_FXListBox, _swigc__p_FXMainWindow, _swigc__p_FXMat3d, _swigc__p_FXMat3f, _swigc__p_FXMat4d, _swigc__p_FXMat4f, _swigc__p_FXMaterial, _swigc__p_FXMatrix, _swigc__p_FXMemoryStream, _swigc__p_FXObject, _swigc__p_FXPacker, _swigc__p_FXPopup, _swigc__p_FXProgressBar, _swigc__p_FXQuatd, _swigc__p_FXQuatf, _swigc__p_FXRanged, _swigc__p_FXRangef, _swigc__p_FXRealSlider, _swigc__p_FXRealSpinner, _swigc__p_FXRecentFiles, _swigc__p_FXRegion, _swigc__p_FXRegistry, _swigc__p_FXRootWindow, _swigc__p_FXRuler, _swigc__p_FXRulerView, _swigc__p_FXScrollArea, _swigc__p_FXScrollBar, _swigc__p_FXScrollCorner, _swigc__p_FXScrollWindow, _swigc__p_FXSeparator, _swigc__p_FXSettings, _swigc__p_FXShell, _swigc__p_FXShutter, _swigc__p_FXShutterItem, _swigc__p_FXSlider, _swigc__p_FXSphered, _swigc__p_FXSpheref, _swigc__p_FXSpinner, _swigc__p_FXSplashWindow, _swigc__p_FXSplitter, _swigc__p_FXSpring, _swigc__p_FXStatusBar, _swigc__p_FXStatusLine, _swigc__p_FXStream, _swigc__p_FXStringDict, _swigc__p_FXSwitcher, _swigc__p_FXTabBar, _swigc__p_FXTabBook, _swigc__p_FXTextField, _swigc__p_FXToolBar, _swigc__p_FXToolBarGrip, _swigc__p_FXToolBarShell, _swigc__p_FXToolBarTab, _swigc__p_FXToolTip, _swigc__p_FXTopWindow, _swigc__p_FXTranslator, _swigc__p_FXTreeListBox, _swigc__p_FXVec2d, _swigc__p_FXVec2f, _swigc__p_FXVec3d, _swigc__p_FXVec3f, _swigc__p_FXVec4d, _swigc__p_FXVec4f, _swigc__p_FXVerticalFrame, _swigc__p_FXVerticalSeparator, _swigc__p_FXViewport, _swigc__p_FXVisual, _swigc__p_FXWindow, _swigc__p_char, _swigc__p_double, _swigc__p_float, _swigc__p_int, _swigc__p_long, _swigc__p_short, _swigc__p_unsigned_char, _swigc__p_unsigned_int, _swigc__p_unsigned_long, _swigc__p_unsigned_short, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ iter=module_head; do { if (iter==&swig_module) { /* Our module is already in the list, so there's nothing more to do. */ return; } iter=iter->next; } while (iter!= module_head); /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif /* */ #ifdef __cplusplus extern "C" #endif SWIGEXPORT void Init_fx3d(void) { size_t i; SWIG_InitRuntime(); SWIG_InitializeModule(0); for (i = 0; i < swig_module.size; i++) { SWIG_define_class(swig_module.types[i]); } SWIG_RubyInitializeTrackings(); SwigClassFXVec2f.klass = rb_define_class_under(mFox, "FXVec2f", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXVec2f, (void *) &SwigClassFXVec2f); rb_define_alloc_func(SwigClassFXVec2f.klass, _wrap_FXVec2f_allocate); rb_define_method(SwigClassFXVec2f.klass, "initialize", VALUEFUNC(_wrap_new_FXVec2f), -1); rb_define_method(SwigClassFXVec2f.klass, "x=", VALUEFUNC(_wrap_FXVec2f_x_set), -1); rb_define_method(SwigClassFXVec2f.klass, "x", VALUEFUNC(_wrap_FXVec2f_x_get), -1); rb_define_method(SwigClassFXVec2f.klass, "y=", VALUEFUNC(_wrap_FXVec2f_y_set), -1); rb_define_method(SwigClassFXVec2f.klass, "y", VALUEFUNC(_wrap_FXVec2f_y_get), -1); rb_define_method(SwigClassFXVec2f.klass, "length2", VALUEFUNC(_wrap_FXVec2f_length2), -1); rb_define_method(SwigClassFXVec2f.klass, "length", VALUEFUNC(_wrap_FXVec2f_length), -1); rb_define_method(SwigClassFXVec2f.klass, "[]", VALUEFUNC(_wrap_FXVec2f___getitem__), -1); rb_define_method(SwigClassFXVec2f.klass, "[]=", VALUEFUNC(_wrap_FXVec2f___setitem__), -1); rb_define_method(SwigClassFXVec2f.klass, "-@", VALUEFUNC(_wrap_FXVec2f___neg__), -1); rb_define_method(SwigClassFXVec2f.klass, "+", VALUEFUNC(_wrap_FXVec2f___add__), -1); rb_define_method(SwigClassFXVec2f.klass, "-", VALUEFUNC(_wrap_FXVec2f___sub__), -1); rb_define_method(SwigClassFXVec2f.klass, "/", VALUEFUNC(_wrap_FXVec2f___div__), -1); rb_define_method(SwigClassFXVec2f.klass, "*", VALUEFUNC(_wrap_FXVec2f___mul__), -1); rb_define_method(SwigClassFXVec2f.klass, "dot", VALUEFUNC(_wrap_FXVec2f_dot), -1); rb_define_method(SwigClassFXVec2f.klass, "==", VALUEFUNC(_wrap_FXVec2f___eq__), -1); rb_define_method(SwigClassFXVec2f.klass, "normalize", VALUEFUNC(_wrap_FXVec2f_normalize), -1); rb_define_method(SwigClassFXVec2f.klass, "lo", VALUEFUNC(_wrap_FXVec2f_lo), -1); rb_define_method(SwigClassFXVec2f.klass, "hi", VALUEFUNC(_wrap_FXVec2f_hi), -1); rb_define_method(SwigClassFXVec2f.klass, "clamp", VALUEFUNC(_wrap_FXVec2f_clamp), -1); SwigClassFXVec2f.mark = 0; SwigClassFXVec2f.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXVec2f.trackObjects = 0; SwigClassFXVec2d.klass = rb_define_class_under(mFox, "FXVec2d", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXVec2d, (void *) &SwigClassFXVec2d); rb_define_alloc_func(SwigClassFXVec2d.klass, _wrap_FXVec2d_allocate); rb_define_method(SwigClassFXVec2d.klass, "initialize", VALUEFUNC(_wrap_new_FXVec2d), -1); rb_define_method(SwigClassFXVec2d.klass, "x=", VALUEFUNC(_wrap_FXVec2d_x_set), -1); rb_define_method(SwigClassFXVec2d.klass, "x", VALUEFUNC(_wrap_FXVec2d_x_get), -1); rb_define_method(SwigClassFXVec2d.klass, "y=", VALUEFUNC(_wrap_FXVec2d_y_set), -1); rb_define_method(SwigClassFXVec2d.klass, "y", VALUEFUNC(_wrap_FXVec2d_y_get), -1); rb_define_method(SwigClassFXVec2d.klass, "length2", VALUEFUNC(_wrap_FXVec2d_length2), -1); rb_define_method(SwigClassFXVec2d.klass, "length", VALUEFUNC(_wrap_FXVec2d_length), -1); rb_define_method(SwigClassFXVec2d.klass, "[]", VALUEFUNC(_wrap_FXVec2d___getitem__), -1); rb_define_method(SwigClassFXVec2d.klass, "[]=", VALUEFUNC(_wrap_FXVec2d___setitem__), -1); rb_define_method(SwigClassFXVec2d.klass, "-@", VALUEFUNC(_wrap_FXVec2d___neg__), -1); rb_define_method(SwigClassFXVec2d.klass, "+", VALUEFUNC(_wrap_FXVec2d___add__), -1); rb_define_method(SwigClassFXVec2d.klass, "-", VALUEFUNC(_wrap_FXVec2d___sub__), -1); rb_define_method(SwigClassFXVec2d.klass, "/", VALUEFUNC(_wrap_FXVec2d___div__), -1); rb_define_method(SwigClassFXVec2d.klass, "*", VALUEFUNC(_wrap_FXVec2d___mul__), -1); rb_define_method(SwigClassFXVec2d.klass, "dot", VALUEFUNC(_wrap_FXVec2d_dot), -1); rb_define_method(SwigClassFXVec2d.klass, "==", VALUEFUNC(_wrap_FXVec2d___eq__), -1); rb_define_method(SwigClassFXVec2d.klass, "normalize", VALUEFUNC(_wrap_FXVec2d_normalize), -1); rb_define_method(SwigClassFXVec2d.klass, "lo", VALUEFUNC(_wrap_FXVec2d_lo), -1); rb_define_method(SwigClassFXVec2d.klass, "hi", VALUEFUNC(_wrap_FXVec2d_hi), -1); rb_define_method(SwigClassFXVec2d.klass, "clamp", VALUEFUNC(_wrap_FXVec2d_clamp), -1); SwigClassFXVec2d.mark = 0; SwigClassFXVec2d.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXVec2d.trackObjects = 0; SwigClassFXVec3f.klass = rb_define_class_under(mFox, "FXVec3f", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXVec3f, (void *) &SwigClassFXVec3f); rb_define_alloc_func(SwigClassFXVec3f.klass, _wrap_FXVec3f_allocate); rb_define_method(SwigClassFXVec3f.klass, "initialize", VALUEFUNC(_wrap_new_FXVec3f), -1); rb_define_method(SwigClassFXVec3f.klass, "x=", VALUEFUNC(_wrap_FXVec3f_x_set), -1); rb_define_method(SwigClassFXVec3f.klass, "x", VALUEFUNC(_wrap_FXVec3f_x_get), -1); rb_define_method(SwigClassFXVec3f.klass, "y=", VALUEFUNC(_wrap_FXVec3f_y_set), -1); rb_define_method(SwigClassFXVec3f.klass, "y", VALUEFUNC(_wrap_FXVec3f_y_get), -1); rb_define_method(SwigClassFXVec3f.klass, "z=", VALUEFUNC(_wrap_FXVec3f_z_set), -1); rb_define_method(SwigClassFXVec3f.klass, "z", VALUEFUNC(_wrap_FXVec3f_z_get), -1); rb_define_method(SwigClassFXVec3f.klass, "length2", VALUEFUNC(_wrap_FXVec3f_length2), -1); rb_define_method(SwigClassFXVec3f.klass, "length", VALUEFUNC(_wrap_FXVec3f_length), -1); rb_define_method(SwigClassFXVec3f.klass, "[]", VALUEFUNC(_wrap_FXVec3f___getitem__), -1); rb_define_method(SwigClassFXVec3f.klass, "[]=", VALUEFUNC(_wrap_FXVec3f___setitem__), -1); rb_define_method(SwigClassFXVec3f.klass, "-@", VALUEFUNC(_wrap_FXVec3f___neg__), -1); rb_define_method(SwigClassFXVec3f.klass, "+", VALUEFUNC(_wrap_FXVec3f___add__), -1); rb_define_method(SwigClassFXVec3f.klass, "-", VALUEFUNC(_wrap_FXVec3f___sub__), -1); rb_define_method(SwigClassFXVec3f.klass, "/", VALUEFUNC(_wrap_FXVec3f___div__), -1); rb_define_method(SwigClassFXVec3f.klass, "*", VALUEFUNC(_wrap_FXVec3f___mul__), -1); rb_define_method(SwigClassFXVec3f.klass, "dot", VALUEFUNC(_wrap_FXVec3f_dot), -1); rb_define_method(SwigClassFXVec3f.klass, "^", VALUEFUNC(_wrap_FXVec3f___xor__), -1); rb_define_method(SwigClassFXVec3f.klass, "cross", VALUEFUNC(_wrap_FXVec3f_cross), -1); rb_define_method(SwigClassFXVec3f.klass, "==", VALUEFUNC(_wrap_FXVec3f___eq__), -1); rb_define_method(SwigClassFXVec3f.klass, "normalize", VALUEFUNC(_wrap_FXVec3f_normalize), -1); rb_define_method(SwigClassFXVec3f.klass, "lo", VALUEFUNC(_wrap_FXVec3f_lo), -1); rb_define_method(SwigClassFXVec3f.klass, "hi", VALUEFUNC(_wrap_FXVec3f_hi), -1); rb_define_singleton_method(SwigClassFXVec3f.klass, "normal", VALUEFUNC(_wrap_FXVec3f_normal), -1); rb_define_method(SwigClassFXVec3f.klass, "clamp", VALUEFUNC(_wrap_FXVec3f_clamp), -1); SwigClassFXVec3f.mark = 0; SwigClassFXVec3f.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXVec3f.trackObjects = 0; SwigClassFXVec3d.klass = rb_define_class_under(mFox, "FXVec3d", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXVec3d, (void *) &SwigClassFXVec3d); rb_define_alloc_func(SwigClassFXVec3d.klass, _wrap_FXVec3d_allocate); rb_define_method(SwigClassFXVec3d.klass, "initialize", VALUEFUNC(_wrap_new_FXVec3d), -1); rb_define_method(SwigClassFXVec3d.klass, "x=", VALUEFUNC(_wrap_FXVec3d_x_set), -1); rb_define_method(SwigClassFXVec3d.klass, "x", VALUEFUNC(_wrap_FXVec3d_x_get), -1); rb_define_method(SwigClassFXVec3d.klass, "y=", VALUEFUNC(_wrap_FXVec3d_y_set), -1); rb_define_method(SwigClassFXVec3d.klass, "y", VALUEFUNC(_wrap_FXVec3d_y_get), -1); rb_define_method(SwigClassFXVec3d.klass, "z=", VALUEFUNC(_wrap_FXVec3d_z_set), -1); rb_define_method(SwigClassFXVec3d.klass, "z", VALUEFUNC(_wrap_FXVec3d_z_get), -1); rb_define_method(SwigClassFXVec3d.klass, "length2", VALUEFUNC(_wrap_FXVec3d_length2), -1); rb_define_method(SwigClassFXVec3d.klass, "length", VALUEFUNC(_wrap_FXVec3d_length), -1); rb_define_method(SwigClassFXVec3d.klass, "[]", VALUEFUNC(_wrap_FXVec3d___getitem__), -1); rb_define_method(SwigClassFXVec3d.klass, "[]=", VALUEFUNC(_wrap_FXVec3d___setitem__), -1); rb_define_method(SwigClassFXVec3d.klass, "-@", VALUEFUNC(_wrap_FXVec3d___neg__), -1); rb_define_method(SwigClassFXVec3d.klass, "+", VALUEFUNC(_wrap_FXVec3d___add__), -1); rb_define_method(SwigClassFXVec3d.klass, "-", VALUEFUNC(_wrap_FXVec3d___sub__), -1); rb_define_method(SwigClassFXVec3d.klass, "/", VALUEFUNC(_wrap_FXVec3d___div__), -1); rb_define_method(SwigClassFXVec3d.klass, "*", VALUEFUNC(_wrap_FXVec3d___mul__), -1); rb_define_method(SwigClassFXVec3d.klass, "dot", VALUEFUNC(_wrap_FXVec3d_dot), -1); rb_define_method(SwigClassFXVec3d.klass, "^", VALUEFUNC(_wrap_FXVec3d___xor__), -1); rb_define_method(SwigClassFXVec3d.klass, "cross", VALUEFUNC(_wrap_FXVec3d_cross), -1); rb_define_method(SwigClassFXVec3d.klass, "==", VALUEFUNC(_wrap_FXVec3d___eq__), -1); rb_define_method(SwigClassFXVec3d.klass, "normalize", VALUEFUNC(_wrap_FXVec3d_normalize), -1); rb_define_method(SwigClassFXVec3d.klass, "lo", VALUEFUNC(_wrap_FXVec3d_lo), -1); rb_define_method(SwigClassFXVec3d.klass, "hi", VALUEFUNC(_wrap_FXVec3d_hi), -1); rb_define_singleton_method(SwigClassFXVec3d.klass, "normal", VALUEFUNC(_wrap_FXVec3d_normal), -1); rb_define_method(SwigClassFXVec3d.klass, "clamp", VALUEFUNC(_wrap_FXVec3d_clamp), -1); SwigClassFXVec3d.mark = 0; SwigClassFXVec3d.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXVec3d.trackObjects = 0; SwigClassFXVec4f.klass = rb_define_class_under(mFox, "FXVec4f", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXVec4f, (void *) &SwigClassFXVec4f); rb_define_alloc_func(SwigClassFXVec4f.klass, _wrap_FXVec4f_allocate); rb_define_method(SwigClassFXVec4f.klass, "initialize", VALUEFUNC(_wrap_new_FXVec4f), -1); rb_define_method(SwigClassFXVec4f.klass, "x=", VALUEFUNC(_wrap_FXVec4f_x_set), -1); rb_define_method(SwigClassFXVec4f.klass, "x", VALUEFUNC(_wrap_FXVec4f_x_get), -1); rb_define_method(SwigClassFXVec4f.klass, "y=", VALUEFUNC(_wrap_FXVec4f_y_set), -1); rb_define_method(SwigClassFXVec4f.klass, "y", VALUEFUNC(_wrap_FXVec4f_y_get), -1); rb_define_method(SwigClassFXVec4f.klass, "z=", VALUEFUNC(_wrap_FXVec4f_z_set), -1); rb_define_method(SwigClassFXVec4f.klass, "z", VALUEFUNC(_wrap_FXVec4f_z_get), -1); rb_define_method(SwigClassFXVec4f.klass, "w=", VALUEFUNC(_wrap_FXVec4f_w_set), -1); rb_define_method(SwigClassFXVec4f.klass, "w", VALUEFUNC(_wrap_FXVec4f_w_get), -1); rb_define_method(SwigClassFXVec4f.klass, "distance", VALUEFUNC(_wrap_FXVec4f_distance), -1); rb_define_method(SwigClassFXVec4f.klass, "crosses?", VALUEFUNC(_wrap_FXVec4f_crossesq___), -1); rb_define_method(SwigClassFXVec4f.klass, "length", VALUEFUNC(_wrap_FXVec4f_length), -1); rb_define_method(SwigClassFXVec4f.klass, "length2", VALUEFUNC(_wrap_FXVec4f_length2), -1); rb_define_method(SwigClassFXVec4f.klass, "[]", VALUEFUNC(_wrap_FXVec4f___getitem__), -1); rb_define_method(SwigClassFXVec4f.klass, "[]=", VALUEFUNC(_wrap_FXVec4f___setitem__), -1); rb_define_method(SwigClassFXVec4f.klass, "-@", VALUEFUNC(_wrap_FXVec4f___neg__), -1); rb_define_method(SwigClassFXVec4f.klass, "+", VALUEFUNC(_wrap_FXVec4f___add__), -1); rb_define_method(SwigClassFXVec4f.klass, "-", VALUEFUNC(_wrap_FXVec4f___sub__), -1); rb_define_method(SwigClassFXVec4f.klass, "/", VALUEFUNC(_wrap_FXVec4f___div__), -1); rb_define_method(SwigClassFXVec4f.klass, "*", VALUEFUNC(_wrap_FXVec4f___mul__), -1); rb_define_method(SwigClassFXVec4f.klass, "dot", VALUEFUNC(_wrap_FXVec4f_dot), -1); rb_define_method(SwigClassFXVec4f.klass, "==", VALUEFUNC(_wrap_FXVec4f___eq__), -1); rb_define_method(SwigClassFXVec4f.klass, "normalize", VALUEFUNC(_wrap_FXVec4f_normalize), -1); rb_define_method(SwigClassFXVec4f.klass, "lo", VALUEFUNC(_wrap_FXVec4f_lo), -1); rb_define_method(SwigClassFXVec4f.klass, "hi", VALUEFUNC(_wrap_FXVec4f_hi), -1); rb_define_singleton_method(SwigClassFXVec4f.klass, "plane", VALUEFUNC(_wrap_FXVec4f_plane), -1); rb_define_method(SwigClassFXVec4f.klass, "clamp", VALUEFUNC(_wrap_FXVec4f_clamp), -1); SwigClassFXVec4f.mark = 0; SwigClassFXVec4f.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXVec4f.trackObjects = 0; SwigClassFXVec4d.klass = rb_define_class_under(mFox, "FXVec4d", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXVec4d, (void *) &SwigClassFXVec4d); rb_define_alloc_func(SwigClassFXVec4d.klass, _wrap_FXVec4d_allocate); rb_define_method(SwigClassFXVec4d.klass, "initialize", VALUEFUNC(_wrap_new_FXVec4d), -1); rb_define_method(SwigClassFXVec4d.klass, "x=", VALUEFUNC(_wrap_FXVec4d_x_set), -1); rb_define_method(SwigClassFXVec4d.klass, "x", VALUEFUNC(_wrap_FXVec4d_x_get), -1); rb_define_method(SwigClassFXVec4d.klass, "y=", VALUEFUNC(_wrap_FXVec4d_y_set), -1); rb_define_method(SwigClassFXVec4d.klass, "y", VALUEFUNC(_wrap_FXVec4d_y_get), -1); rb_define_method(SwigClassFXVec4d.klass, "z=", VALUEFUNC(_wrap_FXVec4d_z_set), -1); rb_define_method(SwigClassFXVec4d.klass, "z", VALUEFUNC(_wrap_FXVec4d_z_get), -1); rb_define_method(SwigClassFXVec4d.klass, "w=", VALUEFUNC(_wrap_FXVec4d_w_set), -1); rb_define_method(SwigClassFXVec4d.klass, "w", VALUEFUNC(_wrap_FXVec4d_w_get), -1); rb_define_method(SwigClassFXVec4d.klass, "distance", VALUEFUNC(_wrap_FXVec4d_distance), -1); rb_define_method(SwigClassFXVec4d.klass, "crosses?", VALUEFUNC(_wrap_FXVec4d_crossesq___), -1); rb_define_method(SwigClassFXVec4d.klass, "length2", VALUEFUNC(_wrap_FXVec4d_length2), -1); rb_define_method(SwigClassFXVec4d.klass, "length", VALUEFUNC(_wrap_FXVec4d_length), -1); rb_define_method(SwigClassFXVec4d.klass, "[]", VALUEFUNC(_wrap_FXVec4d___getitem__), -1); rb_define_method(SwigClassFXVec4d.klass, "[]=", VALUEFUNC(_wrap_FXVec4d___setitem__), -1); rb_define_method(SwigClassFXVec4d.klass, "-@", VALUEFUNC(_wrap_FXVec4d___neg__), -1); rb_define_method(SwigClassFXVec4d.klass, "+", VALUEFUNC(_wrap_FXVec4d___add__), -1); rb_define_method(SwigClassFXVec4d.klass, "-", VALUEFUNC(_wrap_FXVec4d___sub__), -1); rb_define_method(SwigClassFXVec4d.klass, "/", VALUEFUNC(_wrap_FXVec4d___div__), -1); rb_define_method(SwigClassFXVec4d.klass, "*", VALUEFUNC(_wrap_FXVec4d___mul__), -1); rb_define_method(SwigClassFXVec4d.klass, "dot", VALUEFUNC(_wrap_FXVec4d_dot), -1); rb_define_method(SwigClassFXVec4d.klass, "==", VALUEFUNC(_wrap_FXVec4d___eq__), -1); rb_define_method(SwigClassFXVec4d.klass, "normalize", VALUEFUNC(_wrap_FXVec4d_normalize), -1); rb_define_method(SwigClassFXVec4d.klass, "lo", VALUEFUNC(_wrap_FXVec4d_lo), -1); rb_define_method(SwigClassFXVec4d.klass, "hi", VALUEFUNC(_wrap_FXVec4d_hi), -1); rb_define_singleton_method(SwigClassFXVec4d.klass, "plane", VALUEFUNC(_wrap_FXVec4d_plane), -1); rb_define_method(SwigClassFXVec4d.klass, "clamp", VALUEFUNC(_wrap_FXVec4d_clamp), -1); SwigClassFXVec4d.mark = 0; SwigClassFXVec4d.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXVec4d.trackObjects = 0; SwigClassFXQuatf.klass = rb_define_class_under(mFox, "FXQuatf", ((swig_class *) SWIGTYPE_p_FXVec4f->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_FXQuatf, (void *) &SwigClassFXQuatf); rb_define_alloc_func(SwigClassFXQuatf.klass, _wrap_FXQuatf_allocate); rb_define_method(SwigClassFXQuatf.klass, "initialize", VALUEFUNC(_wrap_new_FXQuatf), -1); rb_define_method(SwigClassFXQuatf.klass, "adjust!", VALUEFUNC(_wrap_FXQuatf_adjustN___), -1); rb_define_method(SwigClassFXQuatf.klass, "setAxisAngle", VALUEFUNC(_wrap_FXQuatf_setAxisAngle), -1); rb_define_method(SwigClassFXQuatf.klass, "getAxisAngle", VALUEFUNC(_wrap_FXQuatf_getAxisAngle), -1); rb_define_method(SwigClassFXQuatf.klass, "setRollPitchYaw", VALUEFUNC(_wrap_FXQuatf_setRollPitchYaw), -1); rb_define_method(SwigClassFXQuatf.klass, "setAxes", VALUEFUNC(_wrap_FXQuatf_setAxes), -1); rb_define_method(SwigClassFXQuatf.klass, "getXAxis", VALUEFUNC(_wrap_FXQuatf_getXAxis), -1); rb_define_method(SwigClassFXQuatf.klass, "getYAxis", VALUEFUNC(_wrap_FXQuatf_getYAxis), -1); rb_define_method(SwigClassFXQuatf.klass, "getZAxis", VALUEFUNC(_wrap_FXQuatf_getZAxis), -1); rb_define_method(SwigClassFXQuatf.klass, "exp", VALUEFUNC(_wrap_FXQuatf_exp), -1); rb_define_method(SwigClassFXQuatf.klass, "log", VALUEFUNC(_wrap_FXQuatf_log), -1); rb_define_method(SwigClassFXQuatf.klass, "invert", VALUEFUNC(_wrap_FXQuatf_invert), -1); rb_define_method(SwigClassFXQuatf.klass, "unitinvert", VALUEFUNC(_wrap_FXQuatf_unitinvert), -1); rb_define_method(SwigClassFXQuatf.klass, "conj", VALUEFUNC(_wrap_FXQuatf_conj), -1); rb_define_method(SwigClassFXQuatf.klass, "arc!", VALUEFUNC(_wrap_FXQuatf_arcN___), -1); rb_define_method(SwigClassFXQuatf.klass, "lerp!", VALUEFUNC(_wrap_FXQuatf_lerpN___), -1); rb_define_method(SwigClassFXQuatf.klass, "getRollPitchYaw", VALUEFUNC(_wrap_FXQuatf_getRollPitchYaw), -1); rb_define_method(SwigClassFXQuatf.klass, "getAxes", VALUEFUNC(_wrap_FXQuatf_getAxes), -1); rb_define_method(SwigClassFXQuatf.klass, "*", VALUEFUNC(_wrap_FXQuatf___mul__), -1); SwigClassFXQuatf.mark = 0; SwigClassFXQuatf.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXQuatf.trackObjects = 0; SwigClassFXQuatd.klass = rb_define_class_under(mFox, "FXQuatd", ((swig_class *) SWIGTYPE_p_FXVec4d->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_FXQuatd, (void *) &SwigClassFXQuatd); rb_define_alloc_func(SwigClassFXQuatd.klass, _wrap_FXQuatd_allocate); rb_define_method(SwigClassFXQuatd.klass, "initialize", VALUEFUNC(_wrap_new_FXQuatd), -1); rb_define_method(SwigClassFXQuatd.klass, "adjust!", VALUEFUNC(_wrap_FXQuatd_adjustN___), -1); rb_define_method(SwigClassFXQuatd.klass, "setAxisAngle", VALUEFUNC(_wrap_FXQuatd_setAxisAngle), -1); rb_define_method(SwigClassFXQuatd.klass, "getAxisAngle", VALUEFUNC(_wrap_FXQuatd_getAxisAngle), -1); rb_define_method(SwigClassFXQuatd.klass, "setRollPitchYaw", VALUEFUNC(_wrap_FXQuatd_setRollPitchYaw), -1); rb_define_method(SwigClassFXQuatd.klass, "exp", VALUEFUNC(_wrap_FXQuatd_exp), -1); rb_define_method(SwigClassFXQuatd.klass, "log", VALUEFUNC(_wrap_FXQuatd_log), -1); rb_define_method(SwigClassFXQuatd.klass, "invert", VALUEFUNC(_wrap_FXQuatd_invert), -1); rb_define_method(SwigClassFXQuatd.klass, "unitinvert", VALUEFUNC(_wrap_FXQuatd_unitinvert), -1); rb_define_method(SwigClassFXQuatd.klass, "conj", VALUEFUNC(_wrap_FXQuatd_conj), -1); rb_define_method(SwigClassFXQuatd.klass, "arc!", VALUEFUNC(_wrap_FXQuatd_arcN___), -1); rb_define_method(SwigClassFXQuatd.klass, "lerp!", VALUEFUNC(_wrap_FXQuatd_lerpN___), -1); rb_define_method(SwigClassFXQuatd.klass, "getRollPitchYaw", VALUEFUNC(_wrap_FXQuatd_getRollPitchYaw), -1); rb_define_method(SwigClassFXQuatd.klass, "*", VALUEFUNC(_wrap_FXQuatd___mul__), -1); rb_define_method(SwigClassFXQuatd.klass, "setAxes", VALUEFUNC(_wrap_FXQuatd_setAxes), -1); rb_define_method(SwigClassFXQuatd.klass, "getAxes", VALUEFUNC(_wrap_FXQuatd_getAxes), -1); rb_define_method(SwigClassFXQuatd.klass, "getXAxis", VALUEFUNC(_wrap_FXQuatd_getXAxis), -1); rb_define_method(SwigClassFXQuatd.klass, "getYAxis", VALUEFUNC(_wrap_FXQuatd_getYAxis), -1); rb_define_method(SwigClassFXQuatd.klass, "getZAxis", VALUEFUNC(_wrap_FXQuatd_getZAxis), -1); SwigClassFXQuatd.mark = 0; SwigClassFXQuatd.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXQuatd.trackObjects = 0; SwigClassFXMat3f.klass = rb_define_class_under(mFox, "FXMat3f", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXMat3f, (void *) &SwigClassFXMat3f); rb_define_alloc_func(SwigClassFXMat3f.klass, _wrap_FXMat3f_allocate); rb_define_method(SwigClassFXMat3f.klass, "initialize", VALUEFUNC(_wrap_new_FXMat3f), -1); rb_define_method(SwigClassFXMat3f.klass, "[]", VALUEFUNC(_wrap_FXMat3f___getitem__), -1); rb_define_method(SwigClassFXMat3f.klass, "[]=", VALUEFUNC(_wrap_FXMat3f___setitem__), -1); rb_define_method(SwigClassFXMat3f.klass, "+", VALUEFUNC(_wrap_FXMat3f___add__), -1); rb_define_method(SwigClassFXMat3f.klass, "-", VALUEFUNC(_wrap_FXMat3f___sub__), -1); rb_define_method(SwigClassFXMat3f.klass, "-@", VALUEFUNC(_wrap_FXMat3f___neg__), -1); rb_define_method(SwigClassFXMat3f.klass, "/", VALUEFUNC(_wrap_FXMat3f___div__), -1); rb_define_method(SwigClassFXMat3f.klass, "*", VALUEFUNC(_wrap_FXMat3f___mul__), -1); rb_define_method(SwigClassFXMat3f.klass, "eye", VALUEFUNC(_wrap_FXMat3f_eye), -1); rb_define_method(SwigClassFXMat3f.klass, "rot", VALUEFUNC(_wrap_FXMat3f_rot), -1); rb_define_method(SwigClassFXMat3f.klass, "trans", VALUEFUNC(_wrap_FXMat3f_trans), -1); rb_define_method(SwigClassFXMat3f.klass, "scale", VALUEFUNC(_wrap_FXMat3f_scale), -1); rb_define_method(SwigClassFXMat3f.klass, "det", VALUEFUNC(_wrap_FXMat3f_det), -1); rb_define_method(SwigClassFXMat3f.klass, "transpose", VALUEFUNC(_wrap_FXMat3f_transpose), -1); rb_define_method(SwigClassFXMat3f.klass, "invert", VALUEFUNC(_wrap_FXMat3f_invert), -1); SwigClassFXMat3f.mark = 0; SwigClassFXMat3f.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXMat3f.trackObjects = 0; SwigClassFXMat3d.klass = rb_define_class_under(mFox, "FXMat3d", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXMat3d, (void *) &SwigClassFXMat3d); rb_define_alloc_func(SwigClassFXMat3d.klass, _wrap_FXMat3d_allocate); rb_define_method(SwigClassFXMat3d.klass, "initialize", VALUEFUNC(_wrap_new_FXMat3d), -1); rb_define_method(SwigClassFXMat3d.klass, "[]", VALUEFUNC(_wrap_FXMat3d___getitem__), -1); rb_define_method(SwigClassFXMat3d.klass, "[]=", VALUEFUNC(_wrap_FXMat3d___setitem__), -1); rb_define_method(SwigClassFXMat3d.klass, "+", VALUEFUNC(_wrap_FXMat3d___add__), -1); rb_define_method(SwigClassFXMat3d.klass, "-", VALUEFUNC(_wrap_FXMat3d___sub__), -1); rb_define_method(SwigClassFXMat3d.klass, "-@", VALUEFUNC(_wrap_FXMat3d___neg__), -1); rb_define_method(SwigClassFXMat3d.klass, "/", VALUEFUNC(_wrap_FXMat3d___div__), -1); rb_define_method(SwigClassFXMat3d.klass, "*", VALUEFUNC(_wrap_FXMat3d___mul__), -1); rb_define_method(SwigClassFXMat3d.klass, "eye", VALUEFUNC(_wrap_FXMat3d_eye), -1); rb_define_method(SwigClassFXMat3d.klass, "rot", VALUEFUNC(_wrap_FXMat3d_rot), -1); rb_define_method(SwigClassFXMat3d.klass, "trans", VALUEFUNC(_wrap_FXMat3d_trans), -1); rb_define_method(SwigClassFXMat3d.klass, "scale", VALUEFUNC(_wrap_FXMat3d_scale), -1); rb_define_method(SwigClassFXMat3d.klass, "det", VALUEFUNC(_wrap_FXMat3d_det), -1); rb_define_method(SwigClassFXMat3d.klass, "transpose", VALUEFUNC(_wrap_FXMat3d_transpose), -1); rb_define_method(SwigClassFXMat3d.klass, "invert", VALUEFUNC(_wrap_FXMat3d_invert), -1); SwigClassFXMat3d.mark = 0; SwigClassFXMat3d.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXMat3d.trackObjects = 0; SwigClassFXMat4f.klass = rb_define_class_under(mFox, "FXMat4f", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXMat4f, (void *) &SwigClassFXMat4f); rb_define_alloc_func(SwigClassFXMat4f.klass, _wrap_FXMat4f_allocate); rb_define_method(SwigClassFXMat4f.klass, "initialize", VALUEFUNC(_wrap_new_FXMat4f), -1); rb_define_method(SwigClassFXMat4f.klass, "det", VALUEFUNC(_wrap_FXMat4f_det), -1); rb_define_method(SwigClassFXMat4f.klass, "transpose", VALUEFUNC(_wrap_FXMat4f_transpose), -1); rb_define_method(SwigClassFXMat4f.klass, "invert", VALUEFUNC(_wrap_FXMat4f_invert), -1); rb_define_method(SwigClassFXMat4f.klass, "[]", VALUEFUNC(_wrap_FXMat4f___getitem__), -1); rb_define_method(SwigClassFXMat4f.klass, "[]=", VALUEFUNC(_wrap_FXMat4f___setitem__), -1); rb_define_method(SwigClassFXMat4f.klass, "+", VALUEFUNC(_wrap_FXMat4f___add__), -1); rb_define_method(SwigClassFXMat4f.klass, "-", VALUEFUNC(_wrap_FXMat4f___sub__), -1); rb_define_method(SwigClassFXMat4f.klass, "*", VALUEFUNC(_wrap_FXMat4f___mul__), -1); rb_define_method(SwigClassFXMat4f.klass, "/", VALUEFUNC(_wrap_FXMat4f___div__), -1); rb_define_method(SwigClassFXMat4f.klass, "-@", VALUEFUNC(_wrap_FXMat4f___neg__), -1); rb_define_method(SwigClassFXMat4f.klass, "to_s", VALUEFUNC(_wrap_FXMat4f_to_s), -1); rb_define_method(SwigClassFXMat4f.klass, "eye", VALUEFUNC(_wrap_FXMat4f_eye), -1); rb_define_method(SwigClassFXMat4f.klass, "ortho", VALUEFUNC(_wrap_FXMat4f_ortho), -1); rb_define_method(SwigClassFXMat4f.klass, "frustum", VALUEFUNC(_wrap_FXMat4f_frustum), -1); rb_define_method(SwigClassFXMat4f.klass, "left", VALUEFUNC(_wrap_FXMat4f_left), -1); rb_define_method(SwigClassFXMat4f.klass, "rot", VALUEFUNC(_wrap_FXMat4f_rot), -1); rb_define_method(SwigClassFXMat4f.klass, "xrot", VALUEFUNC(_wrap_FXMat4f_xrot), -1); rb_define_method(SwigClassFXMat4f.klass, "yrot", VALUEFUNC(_wrap_FXMat4f_yrot), -1); rb_define_method(SwigClassFXMat4f.klass, "zrot", VALUEFUNC(_wrap_FXMat4f_zrot), -1); rb_define_method(SwigClassFXMat4f.klass, "look", VALUEFUNC(_wrap_FXMat4f_look), -1); rb_define_method(SwigClassFXMat4f.klass, "trans", VALUEFUNC(_wrap_FXMat4f_trans), -1); rb_define_method(SwigClassFXMat4f.klass, "scale", VALUEFUNC(_wrap_FXMat4f_scale), -1); SwigClassFXMat4f.mark = 0; SwigClassFXMat4f.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXMat4f.trackObjects = 0; SwigClassFXMat4d.klass = rb_define_class_under(mFox, "FXMat4d", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXMat4d, (void *) &SwigClassFXMat4d); rb_define_alloc_func(SwigClassFXMat4d.klass, _wrap_FXMat4d_allocate); rb_define_method(SwigClassFXMat4d.klass, "initialize", VALUEFUNC(_wrap_new_FXMat4d), -1); rb_define_method(SwigClassFXMat4d.klass, "[]", VALUEFUNC(_wrap_FXMat4d___getitem__), -1); rb_define_method(SwigClassFXMat4d.klass, "[]=", VALUEFUNC(_wrap_FXMat4d___setitem__), -1); rb_define_method(SwigClassFXMat4d.klass, "+", VALUEFUNC(_wrap_FXMat4d___add__), -1); rb_define_method(SwigClassFXMat4d.klass, "-", VALUEFUNC(_wrap_FXMat4d___sub__), -1); rb_define_method(SwigClassFXMat4d.klass, "-@", VALUEFUNC(_wrap_FXMat4d___neg__), -1); rb_define_method(SwigClassFXMat4d.klass, "/", VALUEFUNC(_wrap_FXMat4d___div__), -1); rb_define_method(SwigClassFXMat4d.klass, "*", VALUEFUNC(_wrap_FXMat4d___mul__), -1); rb_define_method(SwigClassFXMat4d.klass, "eye", VALUEFUNC(_wrap_FXMat4d_eye), -1); rb_define_method(SwigClassFXMat4d.klass, "ortho", VALUEFUNC(_wrap_FXMat4d_ortho), -1); rb_define_method(SwigClassFXMat4d.klass, "frustum", VALUEFUNC(_wrap_FXMat4d_frustum), -1); rb_define_method(SwigClassFXMat4d.klass, "left", VALUEFUNC(_wrap_FXMat4d_left), -1); rb_define_method(SwigClassFXMat4d.klass, "rot", VALUEFUNC(_wrap_FXMat4d_rot), -1); rb_define_method(SwigClassFXMat4d.klass, "xrot", VALUEFUNC(_wrap_FXMat4d_xrot), -1); rb_define_method(SwigClassFXMat4d.klass, "yrot", VALUEFUNC(_wrap_FXMat4d_yrot), -1); rb_define_method(SwigClassFXMat4d.klass, "zrot", VALUEFUNC(_wrap_FXMat4d_zrot), -1); rb_define_method(SwigClassFXMat4d.klass, "look", VALUEFUNC(_wrap_FXMat4d_look), -1); rb_define_method(SwigClassFXMat4d.klass, "trans", VALUEFUNC(_wrap_FXMat4d_trans), -1); rb_define_method(SwigClassFXMat4d.klass, "scale", VALUEFUNC(_wrap_FXMat4d_scale), -1); rb_define_method(SwigClassFXMat4d.klass, "det", VALUEFUNC(_wrap_FXMat4d_det), -1); rb_define_method(SwigClassFXMat4d.klass, "transpose", VALUEFUNC(_wrap_FXMat4d_transpose), -1); rb_define_method(SwigClassFXMat4d.klass, "invert", VALUEFUNC(_wrap_FXMat4d_invert), -1); SwigClassFXMat4d.mark = 0; SwigClassFXMat4d.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXMat4d.trackObjects = 0; SwigClassFXRangef.klass = rb_define_class_under(mFox, "FXRangef", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXRangef, (void *) &SwigClassFXRangef); rb_define_alloc_func(SwigClassFXRangef.klass, _wrap_FXRangef_allocate); rb_define_method(SwigClassFXRangef.klass, "initialize", VALUEFUNC(_wrap_new_FXRangef), -1); rb_define_method(SwigClassFXRangef.klass, "[]", VALUEFUNC(_wrap_FXRangef___getitem__), -1); rb_define_method(SwigClassFXRangef.klass, "[]=", VALUEFUNC(_wrap_FXRangef___setitem__), -1); rb_define_method(SwigClassFXRangef.klass, "upper", VALUEFUNC(_wrap_FXRangef_upper), -1); rb_define_method(SwigClassFXRangef.klass, "lower", VALUEFUNC(_wrap_FXRangef_lower), -1); rb_define_method(SwigClassFXRangef.klass, "width", VALUEFUNC(_wrap_FXRangef_width), -1); rb_define_method(SwigClassFXRangef.klass, "height", VALUEFUNC(_wrap_FXRangef_height), -1); rb_define_method(SwigClassFXRangef.klass, "depth", VALUEFUNC(_wrap_FXRangef_depth), -1); rb_define_method(SwigClassFXRangef.klass, "longest", VALUEFUNC(_wrap_FXRangef_longest), -1); rb_define_method(SwigClassFXRangef.klass, "shortest", VALUEFUNC(_wrap_FXRangef_shortest), -1); rb_define_method(SwigClassFXRangef.klass, "diameter", VALUEFUNC(_wrap_FXRangef_diameter), -1); rb_define_method(SwigClassFXRangef.klass, "radius", VALUEFUNC(_wrap_FXRangef_radius), -1); rb_define_method(SwigClassFXRangef.klass, "diagonal", VALUEFUNC(_wrap_FXRangef_diagonal), -1); rb_define_method(SwigClassFXRangef.klass, "center", VALUEFUNC(_wrap_FXRangef_center), -1); rb_define_method(SwigClassFXRangef.klass, "empty?", VALUEFUNC(_wrap_FXRangef_emptyq___), -1); rb_define_method(SwigClassFXRangef.klass, "contains?", VALUEFUNC(_wrap_FXRangef_containsq___), -1); rb_define_method(SwigClassFXRangef.klass, "include!", VALUEFUNC(_wrap_FXRangef_includeN___), -1); rb_define_method(SwigClassFXRangef.klass, "intersect", VALUEFUNC(_wrap_FXRangef_intersect), -1); rb_define_method(SwigClassFXRangef.klass, "overlaps?", VALUEFUNC(_wrap_FXRangef_overlapsq___), -1); rb_define_method(SwigClassFXRangef.klass, "corner", VALUEFUNC(_wrap_FXRangef_corner), -1); rb_define_method(SwigClassFXRangef.klass, "union", VALUEFUNC(_wrap_FXRangef_union), -1); rb_define_method(SwigClassFXRangef.klass, "intersection", VALUEFUNC(_wrap_FXRangef_intersection), -1); SwigClassFXRangef.mark = 0; SwigClassFXRangef.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXRangef.trackObjects = 0; SwigClassFXRanged.klass = rb_define_class_under(mFox, "FXRanged", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXRanged, (void *) &SwigClassFXRanged); rb_define_alloc_func(SwigClassFXRanged.klass, _wrap_FXRanged_allocate); rb_define_method(SwigClassFXRanged.klass, "initialize", VALUEFUNC(_wrap_new_FXRanged), -1); rb_define_method(SwigClassFXRanged.klass, "lower=", VALUEFUNC(_wrap_FXRanged_lower_set), -1); rb_define_method(SwigClassFXRanged.klass, "lower", VALUEFUNC(_wrap_FXRanged_lower_get), -1); rb_define_method(SwigClassFXRanged.klass, "upper=", VALUEFUNC(_wrap_FXRanged_upper_set), -1); rb_define_method(SwigClassFXRanged.klass, "upper", VALUEFUNC(_wrap_FXRanged_upper_get), -1); rb_define_method(SwigClassFXRanged.klass, "[]", VALUEFUNC(_wrap_FXRanged___getitem__), -1); rb_define_method(SwigClassFXRanged.klass, "[]=", VALUEFUNC(_wrap_FXRanged___setitem__), -1); rb_define_method(SwigClassFXRanged.klass, "width", VALUEFUNC(_wrap_FXRanged_width), -1); rb_define_method(SwigClassFXRanged.klass, "height", VALUEFUNC(_wrap_FXRanged_height), -1); rb_define_method(SwigClassFXRanged.klass, "depth", VALUEFUNC(_wrap_FXRanged_depth), -1); rb_define_method(SwigClassFXRanged.klass, "longest", VALUEFUNC(_wrap_FXRanged_longest), -1); rb_define_method(SwigClassFXRanged.klass, "shortest", VALUEFUNC(_wrap_FXRanged_shortest), -1); rb_define_method(SwigClassFXRanged.klass, "diameter", VALUEFUNC(_wrap_FXRanged_diameter), -1); rb_define_method(SwigClassFXRanged.klass, "radius", VALUEFUNC(_wrap_FXRanged_radius), -1); rb_define_method(SwigClassFXRanged.klass, "diagonal", VALUEFUNC(_wrap_FXRanged_diagonal), -1); rb_define_method(SwigClassFXRanged.klass, "center", VALUEFUNC(_wrap_FXRanged_center), -1); rb_define_method(SwigClassFXRanged.klass, "empty?", VALUEFUNC(_wrap_FXRanged_emptyq___), -1); rb_define_method(SwigClassFXRanged.klass, "contains", VALUEFUNC(_wrap_FXRanged_contains), -1); rb_define_method(SwigClassFXRanged.klass, "contains?", VALUEFUNC(_wrap_FXRanged_containsq___), -1); rb_define_method(SwigClassFXRanged.klass, "include", VALUEFUNC(_wrap_FXRanged_include), -1); rb_define_method(SwigClassFXRanged.klass, "intersect", VALUEFUNC(_wrap_FXRanged_intersect), -1); rb_define_method(SwigClassFXRanged.klass, "overlaps?", VALUEFUNC(_wrap_FXRanged_overlapsq___), -1); rb_define_method(SwigClassFXRanged.klass, "corner", VALUEFUNC(_wrap_FXRanged_corner), -1); rb_define_method(SwigClassFXRanged.klass, "union", VALUEFUNC(_wrap_FXRanged_union), -1); rb_define_method(SwigClassFXRanged.klass, "intersection", VALUEFUNC(_wrap_FXRanged_intersection), -1); SwigClassFXRanged.mark = 0; SwigClassFXRanged.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXRanged.trackObjects = 0; SwigClassFXSpheref.klass = rb_define_class_under(mFox, "FXSpheref", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXSpheref, (void *) &SwigClassFXSpheref); rb_define_alloc_func(SwigClassFXSpheref.klass, _wrap_FXSpheref_allocate); rb_define_method(SwigClassFXSpheref.klass, "initialize", VALUEFUNC(_wrap_new_FXSpheref), -1); rb_define_method(SwigClassFXSpheref.klass, "center=", VALUEFUNC(_wrap_FXSpheref_center_set), -1); rb_define_method(SwigClassFXSpheref.klass, "center", VALUEFUNC(_wrap_FXSpheref_center_get), -1); rb_define_method(SwigClassFXSpheref.klass, "radius=", VALUEFUNC(_wrap_FXSpheref_radius_set), -1); rb_define_method(SwigClassFXSpheref.klass, "radius", VALUEFUNC(_wrap_FXSpheref_radius_get), -1); rb_define_method(SwigClassFXSpheref.klass, "diameter", VALUEFUNC(_wrap_FXSpheref_diameter), -1); rb_define_method(SwigClassFXSpheref.klass, "empty?", VALUEFUNC(_wrap_FXSpheref_emptyq___), -1); rb_define_method(SwigClassFXSpheref.klass, "contains?", VALUEFUNC(_wrap_FXSpheref_containsq___), -1); rb_define_method(SwigClassFXSpheref.klass, "include!", VALUEFUNC(_wrap_FXSpheref_includeN___), -1); rb_define_method(SwigClassFXSpheref.klass, "includeInRadius!", VALUEFUNC(_wrap_FXSpheref_includeInRadiusN___), -1); rb_define_method(SwigClassFXSpheref.klass, "intersect", VALUEFUNC(_wrap_FXSpheref_intersect), -1); rb_define_method(SwigClassFXSpheref.klass, "intersects?", VALUEFUNC(_wrap_FXSpheref_intersectsq___), -1); rb_define_method(SwigClassFXSpheref.klass, "overlaps?", VALUEFUNC(_wrap_FXSpheref_overlapsq___), -1); SwigClassFXSpheref.mark = 0; SwigClassFXSpheref.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXSpheref.trackObjects = 0; SwigClassFXSphered.klass = rb_define_class_under(mFox, "FXSphered", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXSphered, (void *) &SwigClassFXSphered); rb_define_alloc_func(SwigClassFXSphered.klass, _wrap_FXSphered_allocate); rb_define_method(SwigClassFXSphered.klass, "initialize", VALUEFUNC(_wrap_new_FXSphered), -1); rb_define_method(SwigClassFXSphered.klass, "center=", VALUEFUNC(_wrap_FXSphered_center_set), -1); rb_define_method(SwigClassFXSphered.klass, "center", VALUEFUNC(_wrap_FXSphered_center_get), -1); rb_define_method(SwigClassFXSphered.klass, "radius=", VALUEFUNC(_wrap_FXSphered_radius_set), -1); rb_define_method(SwigClassFXSphered.klass, "radius", VALUEFUNC(_wrap_FXSphered_radius_get), -1); rb_define_method(SwigClassFXSphered.klass, "diameter", VALUEFUNC(_wrap_FXSphered_diameter), -1); rb_define_method(SwigClassFXSphered.klass, "empty?", VALUEFUNC(_wrap_FXSphered_emptyq___), -1); rb_define_method(SwigClassFXSphered.klass, "contains?", VALUEFUNC(_wrap_FXSphered_containsq___), -1); rb_define_method(SwigClassFXSphered.klass, "include!", VALUEFUNC(_wrap_FXSphered_includeN___), -1); rb_define_method(SwigClassFXSphered.klass, "includeInRadius!", VALUEFUNC(_wrap_FXSphered_includeInRadiusN___), -1); rb_define_method(SwigClassFXSphered.klass, "intersect", VALUEFUNC(_wrap_FXSphered_intersect), -1); rb_define_method(SwigClassFXSphered.klass, "intersects?", VALUEFUNC(_wrap_FXSphered_intersectsq___), -1); rb_define_method(SwigClassFXSphered.klass, "overlaps?", VALUEFUNC(_wrap_FXSphered_overlapsq___), -1); SwigClassFXSphered.mark = 0; SwigClassFXSphered.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXSphered.trackObjects = 0; SwigClassFXGLVisual.klass = rb_define_class_under(mFox, "FXGLVisual", ((swig_class *) SWIGTYPE_p_FXVisual->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_FXGLVisual, (void *) &SwigClassFXGLVisual); rb_define_alloc_func(SwigClassFXGLVisual.klass, _wrap_FXGLVisual_allocate); rb_define_method(SwigClassFXGLVisual.klass, "initialize", VALUEFUNC(_wrap_new_FXGLVisual), -1); rb_define_singleton_method(SwigClassFXGLVisual.klass, "supported", VALUEFUNC(_wrap_FXGLVisual_supported), -1); rb_define_method(SwigClassFXGLVisual.klass, "getRedSize", VALUEFUNC(_wrap_FXGLVisual_getRedSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getGreenSize", VALUEFUNC(_wrap_FXGLVisual_getGreenSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getBlueSize", VALUEFUNC(_wrap_FXGLVisual_getBlueSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getAlphaSize", VALUEFUNC(_wrap_FXGLVisual_getAlphaSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getDepthSize", VALUEFUNC(_wrap_FXGLVisual_getDepthSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getStencilSize", VALUEFUNC(_wrap_FXGLVisual_getStencilSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getAccumRedSize", VALUEFUNC(_wrap_FXGLVisual_getAccumRedSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getAccumGreenSize", VALUEFUNC(_wrap_FXGLVisual_getAccumGreenSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getAccumBlueSize", VALUEFUNC(_wrap_FXGLVisual_getAccumBlueSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getAccumAlphaSize", VALUEFUNC(_wrap_FXGLVisual_getAccumAlphaSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setRedSize", VALUEFUNC(_wrap_FXGLVisual_setRedSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setGreenSize", VALUEFUNC(_wrap_FXGLVisual_setGreenSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setBlueSize", VALUEFUNC(_wrap_FXGLVisual_setBlueSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setAlphaSize", VALUEFUNC(_wrap_FXGLVisual_setAlphaSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setDepthSize", VALUEFUNC(_wrap_FXGLVisual_setDepthSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setStencilSize", VALUEFUNC(_wrap_FXGLVisual_setStencilSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setAccumRedSize", VALUEFUNC(_wrap_FXGLVisual_setAccumRedSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setAccumGreenSize", VALUEFUNC(_wrap_FXGLVisual_setAccumGreenSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setAccumBlueSize", VALUEFUNC(_wrap_FXGLVisual_setAccumBlueSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "setAccumAlphaSize", VALUEFUNC(_wrap_FXGLVisual_setAccumAlphaSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualRedSize", VALUEFUNC(_wrap_FXGLVisual_getActualRedSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualGreenSize", VALUEFUNC(_wrap_FXGLVisual_getActualGreenSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualBlueSize", VALUEFUNC(_wrap_FXGLVisual_getActualBlueSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualAlphaSize", VALUEFUNC(_wrap_FXGLVisual_getActualAlphaSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualDepthSize", VALUEFUNC(_wrap_FXGLVisual_getActualDepthSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualStencilSize", VALUEFUNC(_wrap_FXGLVisual_getActualStencilSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualAccumRedSize", VALUEFUNC(_wrap_FXGLVisual_getActualAccumRedSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualAccumGreenSize", VALUEFUNC(_wrap_FXGLVisual_getActualAccumGreenSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualAccumBlueSize", VALUEFUNC(_wrap_FXGLVisual_getActualAccumBlueSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "getActualAccumAlphaSize", VALUEFUNC(_wrap_FXGLVisual_getActualAccumAlphaSize), -1); rb_define_method(SwigClassFXGLVisual.klass, "isDoubleBuffer", VALUEFUNC(_wrap_FXGLVisual_isDoubleBuffer), -1); rb_define_method(SwigClassFXGLVisual.klass, "isStereo", VALUEFUNC(_wrap_FXGLVisual_isStereo), -1); rb_define_method(SwigClassFXGLVisual.klass, "isAccelerated", VALUEFUNC(_wrap_FXGLVisual_isAccelerated), -1); rb_define_method(SwigClassFXGLVisual.klass, "isBufferSwapCopy", VALUEFUNC(_wrap_FXGLVisual_isBufferSwapCopy), -1); rb_define_method(SwigClassFXGLVisual.klass, "save", VALUEFUNC(_wrap_FXGLVisual_save), -1); rb_define_method(SwigClassFXGLVisual.klass, "load", VALUEFUNC(_wrap_FXGLVisual_load), -1); rb_define_method(SwigClassFXGLVisual.klass, "create", VALUEFUNC(_wrap_FXGLVisual_create), -1); rb_define_method(SwigClassFXGLVisual.klass, "detach", VALUEFUNC(_wrap_FXGLVisual_detach), -1); rb_define_method(SwigClassFXGLVisual.klass, "destroy", VALUEFUNC(_wrap_FXGLVisual_destroy), -1); SwigClassFXGLVisual.mark = (void (*)(void *)) FXRbGLVisual::markfunc; SwigClassFXGLVisual.destroy = (void (*)(void *)) FXRbGLVisual::freefunc; SwigClassFXGLVisual.trackObjects = 0; rb_define_module_function(mFox, "glUseFXFont", VALUEFUNC(_wrap_glUseFXFont), -1); SwigClassFXGLContext.klass = rb_define_class_under(mFox, "FXGLContext", ((swig_class *) SWIGTYPE_p_FXId->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_FXGLContext, (void *) &SwigClassFXGLContext); rb_define_alloc_func(SwigClassFXGLContext.klass, _wrap_FXGLContext_allocate); rb_define_method(SwigClassFXGLContext.klass, "initialize", VALUEFUNC(_wrap_new_FXGLContext), -1); rb_define_method(SwigClassFXGLContext.klass, "isShared", VALUEFUNC(_wrap_FXGLContext_isShared), -1); rb_define_method(SwigClassFXGLContext.klass, "getVisual", VALUEFUNC(_wrap_FXGLContext_getVisual), -1); rb_define_method(SwigClassFXGLContext.klass, "begin", VALUEFUNC(_wrap_FXGLContext_begin), -1); rb_define_method(SwigClassFXGLContext.klass, "end", VALUEFUNC(_wrap_FXGLContext_end), -1); rb_define_method(SwigClassFXGLContext.klass, "swapBuffers", VALUEFUNC(_wrap_FXGLContext_swapBuffers), -1); rb_define_method(SwigClassFXGLContext.klass, "swapSubBuffers", VALUEFUNC(_wrap_FXGLContext_swapSubBuffers), -1); rb_define_method(SwigClassFXGLContext.klass, "save", VALUEFUNC(_wrap_FXGLContext_save), -1); rb_define_method(SwigClassFXGLContext.klass, "load", VALUEFUNC(_wrap_FXGLContext_load), -1); rb_define_method(SwigClassFXGLContext.klass, "create", VALUEFUNC(_wrap_FXGLContext_create), -1); rb_define_method(SwigClassFXGLContext.klass, "detach", VALUEFUNC(_wrap_FXGLContext_detach), -1); rb_define_method(SwigClassFXGLContext.klass, "destroy", VALUEFUNC(_wrap_FXGLContext_destroy), -1); SwigClassFXGLContext.mark = (void (*)(void *)) FXRbGLContext::markfunc; SwigClassFXGLContext.destroy = (void (*)(void *)) FXRbObject::freefunc; SwigClassFXGLContext.trackObjects = 0; SwigClassFXGLCanvas.klass = rb_define_class_under(mFox, "FXGLCanvas", ((swig_class *) SWIGTYPE_p_FXCanvas->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_FXGLCanvas, (void *) &SwigClassFXGLCanvas); rb_define_alloc_func(SwigClassFXGLCanvas.klass, _wrap_FXGLCanvas_allocate); rb_define_method(SwigClassFXGLCanvas.klass, "initialize", VALUEFUNC(_wrap_new_FXGLCanvas), -1); rb_define_method(SwigClassFXGLCanvas.klass, "shared?", VALUEFUNC(_wrap_FXGLCanvas_sharedq___), -1); rb_define_singleton_method(SwigClassFXGLCanvas.klass, "getCurrentContext", VALUEFUNC(_wrap_FXGLCanvas_getCurrentContext), -1); rb_define_method(SwigClassFXGLCanvas.klass, "getContext", VALUEFUNC(_wrap_FXGLCanvas_getContext), -1); rb_define_method(SwigClassFXGLCanvas.klass, "save", VALUEFUNC(_wrap_FXGLCanvas_save), -1); rb_define_method(SwigClassFXGLCanvas.klass, "load", VALUEFUNC(_wrap_FXGLCanvas_load), -1); rb_define_method(SwigClassFXGLCanvas.klass, "create", VALUEFUNC(_wrap_FXGLCanvas_create), -1); rb_define_method(SwigClassFXGLCanvas.klass, "detach", VALUEFUNC(_wrap_FXGLCanvas_detach), -1); rb_define_method(SwigClassFXGLCanvas.klass, "destroy", VALUEFUNC(_wrap_FXGLCanvas_destroy), -1); rb_define_method(SwigClassFXGLCanvas.klass, "resize", VALUEFUNC(_wrap_FXGLCanvas_resize), -1); rb_define_method(SwigClassFXGLCanvas.klass, "getDefaultWidth", VALUEFUNC(_wrap_FXGLCanvas_getDefaultWidth), -1); rb_define_method(SwigClassFXGLCanvas.klass, "getDefaultHeight", VALUEFUNC(_wrap_FXGLCanvas_getDefaultHeight), -1); rb_define_method(SwigClassFXGLCanvas.klass, "getWidthForHeight", VALUEFUNC(_wrap_FXGLCanvas_getWidthForHeight), -1); rb_define_method(SwigClassFXGLCanvas.klass, "getHeightForWidth", VALUEFUNC(_wrap_FXGLCanvas_getHeightForWidth), -1); rb_define_method(SwigClassFXGLCanvas.klass, "canFocus", VALUEFUNC(_wrap_FXGLCanvas_canFocus), -1); rb_define_method(SwigClassFXGLCanvas.klass, "setFocus", VALUEFUNC(_wrap_FXGLCanvas_setFocus), -1); rb_define_method(SwigClassFXGLCanvas.klass, "killFocus", VALUEFUNC(_wrap_FXGLCanvas_killFocus), -1); rb_define_method(SwigClassFXGLCanvas.klass, "changeFocus", VALUEFUNC(_wrap_FXGLCanvas_changeFocus), -1); rb_define_method(SwigClassFXGLCanvas.klass, "setDefault", VALUEFUNC(_wrap_FXGLCanvas_setDefault), -1); rb_define_method(SwigClassFXGLCanvas.klass, "enable", VALUEFUNC(_wrap_FXGLCanvas_enable), -1); rb_define_method(SwigClassFXGLCanvas.klass, "disable", VALUEFUNC(_wrap_FXGLCanvas_disable), -1); rb_define_method(SwigClassFXGLCanvas.klass, "raiseWindow", VALUEFUNC(_wrap_FXGLCanvas_raiseWindow), -1); rb_define_method(SwigClassFXGLCanvas.klass, "lower", VALUEFUNC(_wrap_FXGLCanvas_lower), -1); rb_define_method(SwigClassFXGLCanvas.klass, "move", VALUEFUNC(_wrap_FXGLCanvas_move), -1); rb_define_method(SwigClassFXGLCanvas.klass, "position", VALUEFUNC(_wrap_FXGLCanvas_position), -1); rb_define_method(SwigClassFXGLCanvas.klass, "layout", VALUEFUNC(_wrap_FXGLCanvas_layout), -1); rb_define_method(SwigClassFXGLCanvas.klass, "recalc", VALUEFUNC(_wrap_FXGLCanvas_recalc), -1); rb_define_method(SwigClassFXGLCanvas.klass, "reparent", VALUEFUNC(_wrap_FXGLCanvas_reparent), -1); rb_define_method(SwigClassFXGLCanvas.klass, "show", VALUEFUNC(_wrap_FXGLCanvas_show), -1); rb_define_method(SwigClassFXGLCanvas.klass, "hide", VALUEFUNC(_wrap_FXGLCanvas_hide), -1); rb_define_method(SwigClassFXGLCanvas.klass, "isComposite", VALUEFUNC(_wrap_FXGLCanvas_isComposite), -1); rb_define_method(SwigClassFXGLCanvas.klass, "contains", VALUEFUNC(_wrap_FXGLCanvas_contains), -1); rb_define_method(SwigClassFXGLCanvas.klass, "doesSaveUnder", VALUEFUNC(_wrap_FXGLCanvas_doesSaveUnder), -1); rb_define_method(SwigClassFXGLCanvas.klass, "setBackColor", VALUEFUNC(_wrap_FXGLCanvas_setBackColor), -1); rb_define_method(SwigClassFXGLCanvas.klass, "tr", VALUEFUNC(_wrap_FXGLCanvas_tr), -1); rb_define_method(SwigClassFXGLCanvas.klass, "dropEnable", VALUEFUNC(_wrap_FXGLCanvas_dropEnable), -1); rb_define_method(SwigClassFXGLCanvas.klass, "dropDisable", VALUEFUNC(_wrap_FXGLCanvas_dropDisable), -1); rb_define_method(SwigClassFXGLCanvas.klass, "setShape", VALUEFUNC(_wrap_FXGLCanvas_setShape), -1); rb_define_method(SwigClassFXGLCanvas.klass, "clearShape", VALUEFUNC(_wrap_FXGLCanvas_clearShape), -1); rb_define_method(SwigClassFXGLCanvas.klass, "makeCurrent", VALUEFUNC(_wrap_FXGLCanvas_makeCurrent), -1); rb_define_method(SwigClassFXGLCanvas.klass, "makeNonCurrent", VALUEFUNC(_wrap_FXGLCanvas_makeNonCurrent), -1); rb_define_method(SwigClassFXGLCanvas.klass, "isCurrent", VALUEFUNC(_wrap_FXGLCanvas_isCurrent), -1); rb_define_method(SwigClassFXGLCanvas.klass, "swapBuffers", VALUEFUNC(_wrap_FXGLCanvas_swapBuffers), -1); SwigClassFXGLCanvas.mark = (void (*)(void *)) FXRbGLCanvas::markfunc; SwigClassFXGLCanvas.destroy = (void (*)(void *)) FXRbObject::freefunc; SwigClassFXGLCanvas.trackObjects = 0; SWIGTYPE_p_FXGLCanvas->dcast = (swig_dycast_func) FXGLCanvas_dynamic_cast; rb_define_const(mFox, "VIEWER_LIGHTING", SWIG_From_int(static_cast< int >(VIEWER_LIGHTING))); rb_define_const(mFox, "VIEWER_FOG", SWIG_From_int(static_cast< int >(VIEWER_FOG))); rb_define_const(mFox, "VIEWER_DITHER", SWIG_From_int(static_cast< int >(VIEWER_DITHER))); SwigClassFXViewport.klass = rb_define_class_under(mFox, "FXViewport", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXViewport, (void *) &SwigClassFXViewport); rb_define_alloc_func(SwigClassFXViewport.klass, _wrap_FXViewport_allocate); rb_define_method(SwigClassFXViewport.klass, "initialize", VALUEFUNC(_wrap_new_FXViewport), -1); rb_define_method(SwigClassFXViewport.klass, "w=", VALUEFUNC(_wrap_FXViewport_w_set), -1); rb_define_method(SwigClassFXViewport.klass, "w", VALUEFUNC(_wrap_FXViewport_w_get), -1); rb_define_method(SwigClassFXViewport.klass, "h=", VALUEFUNC(_wrap_FXViewport_h_set), -1); rb_define_method(SwigClassFXViewport.klass, "h", VALUEFUNC(_wrap_FXViewport_h_get), -1); rb_define_method(SwigClassFXViewport.klass, "left=", VALUEFUNC(_wrap_FXViewport_left_set), -1); rb_define_method(SwigClassFXViewport.klass, "left", VALUEFUNC(_wrap_FXViewport_left_get), -1); rb_define_method(SwigClassFXViewport.klass, "right=", VALUEFUNC(_wrap_FXViewport_right_set), -1); rb_define_method(SwigClassFXViewport.klass, "right", VALUEFUNC(_wrap_FXViewport_right_get), -1); rb_define_method(SwigClassFXViewport.klass, "bottom=", VALUEFUNC(_wrap_FXViewport_bottom_set), -1); rb_define_method(SwigClassFXViewport.klass, "bottom", VALUEFUNC(_wrap_FXViewport_bottom_get), -1); rb_define_method(SwigClassFXViewport.klass, "top=", VALUEFUNC(_wrap_FXViewport_top_set), -1); rb_define_method(SwigClassFXViewport.klass, "top", VALUEFUNC(_wrap_FXViewport_top_get), -1); rb_define_method(SwigClassFXViewport.klass, "hither=", VALUEFUNC(_wrap_FXViewport_hither_set), -1); rb_define_method(SwigClassFXViewport.klass, "hither", VALUEFUNC(_wrap_FXViewport_hither_get), -1); rb_define_method(SwigClassFXViewport.klass, "yon=", VALUEFUNC(_wrap_FXViewport_yon_set), -1); rb_define_method(SwigClassFXViewport.klass, "yon", VALUEFUNC(_wrap_FXViewport_yon_get), -1); SwigClassFXViewport.mark = 0; SwigClassFXViewport.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXViewport.trackObjects = 0; SwigClassFXLight.klass = rb_define_class_under(mFox, "FXLight", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXLight, (void *) &SwigClassFXLight); rb_define_alloc_func(SwigClassFXLight.klass, _wrap_FXLight_allocate); rb_define_method(SwigClassFXLight.klass, "initialize", VALUEFUNC(_wrap_new_FXLight), -1); rb_define_method(SwigClassFXLight.klass, "ambient=", VALUEFUNC(_wrap_FXLight_ambient_set), -1); rb_define_method(SwigClassFXLight.klass, "ambient", VALUEFUNC(_wrap_FXLight_ambient_get), -1); rb_define_method(SwigClassFXLight.klass, "diffuse=", VALUEFUNC(_wrap_FXLight_diffuse_set), -1); rb_define_method(SwigClassFXLight.klass, "diffuse", VALUEFUNC(_wrap_FXLight_diffuse_get), -1); rb_define_method(SwigClassFXLight.klass, "specular=", VALUEFUNC(_wrap_FXLight_specular_set), -1); rb_define_method(SwigClassFXLight.klass, "specular", VALUEFUNC(_wrap_FXLight_specular_get), -1); rb_define_method(SwigClassFXLight.klass, "position=", VALUEFUNC(_wrap_FXLight_position_set), -1); rb_define_method(SwigClassFXLight.klass, "position", VALUEFUNC(_wrap_FXLight_position_get), -1); rb_define_method(SwigClassFXLight.klass, "direction=", VALUEFUNC(_wrap_FXLight_direction_set), -1); rb_define_method(SwigClassFXLight.klass, "direction", VALUEFUNC(_wrap_FXLight_direction_get), -1); rb_define_method(SwigClassFXLight.klass, "exponent=", VALUEFUNC(_wrap_FXLight_exponent_set), -1); rb_define_method(SwigClassFXLight.klass, "exponent", VALUEFUNC(_wrap_FXLight_exponent_get), -1); rb_define_method(SwigClassFXLight.klass, "cutoff=", VALUEFUNC(_wrap_FXLight_cutoff_set), -1); rb_define_method(SwigClassFXLight.klass, "cutoff", VALUEFUNC(_wrap_FXLight_cutoff_get), -1); rb_define_method(SwigClassFXLight.klass, "c_attn=", VALUEFUNC(_wrap_FXLight_c_attn_set), -1); rb_define_method(SwigClassFXLight.klass, "c_attn", VALUEFUNC(_wrap_FXLight_c_attn_get), -1); rb_define_method(SwigClassFXLight.klass, "l_attn=", VALUEFUNC(_wrap_FXLight_l_attn_set), -1); rb_define_method(SwigClassFXLight.klass, "l_attn", VALUEFUNC(_wrap_FXLight_l_attn_get), -1); rb_define_method(SwigClassFXLight.klass, "q_attn=", VALUEFUNC(_wrap_FXLight_q_attn_set), -1); rb_define_method(SwigClassFXLight.klass, "q_attn", VALUEFUNC(_wrap_FXLight_q_attn_get), -1); SwigClassFXLight.mark = 0; SwigClassFXLight.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXLight.trackObjects = 0; SwigClassFXMaterial.klass = rb_define_class_under(mFox, "FXMaterial", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXMaterial, (void *) &SwigClassFXMaterial); rb_define_alloc_func(SwigClassFXMaterial.klass, _wrap_FXMaterial_allocate); rb_define_method(SwigClassFXMaterial.klass, "initialize", VALUEFUNC(_wrap_new_FXMaterial), -1); rb_define_method(SwigClassFXMaterial.klass, "ambient=", VALUEFUNC(_wrap_FXMaterial_ambient_set), -1); rb_define_method(SwigClassFXMaterial.klass, "ambient", VALUEFUNC(_wrap_FXMaterial_ambient_get), -1); rb_define_method(SwigClassFXMaterial.klass, "diffuse=", VALUEFUNC(_wrap_FXMaterial_diffuse_set), -1); rb_define_method(SwigClassFXMaterial.klass, "diffuse", VALUEFUNC(_wrap_FXMaterial_diffuse_get), -1); rb_define_method(SwigClassFXMaterial.klass, "specular=", VALUEFUNC(_wrap_FXMaterial_specular_set), -1); rb_define_method(SwigClassFXMaterial.klass, "specular", VALUEFUNC(_wrap_FXMaterial_specular_get), -1); rb_define_method(SwigClassFXMaterial.klass, "emission=", VALUEFUNC(_wrap_FXMaterial_emission_set), -1); rb_define_method(SwigClassFXMaterial.klass, "emission", VALUEFUNC(_wrap_FXMaterial_emission_get), -1); rb_define_method(SwigClassFXMaterial.klass, "shininess=", VALUEFUNC(_wrap_FXMaterial_shininess_set), -1); rb_define_method(SwigClassFXMaterial.klass, "shininess", VALUEFUNC(_wrap_FXMaterial_shininess_get), -1); SwigClassFXMaterial.mark = 0; SwigClassFXMaterial.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXMaterial.trackObjects = 0; SwigClassFXGLViewer.klass = rb_define_class_under(mFox, "FXGLViewer", ((swig_class *) SWIGTYPE_p_FXGLCanvas->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_FXGLViewer, (void *) &SwigClassFXGLViewer); rb_define_alloc_func(SwigClassFXGLViewer.klass, _wrap_FXGLViewer_allocate); rb_define_method(SwigClassFXGLViewer.klass, "initialize", VALUEFUNC(_wrap_new_FXGLViewer), -1); rb_define_singleton_method(SwigClassFXGLViewer.klass, "objectType", VALUEFUNC(_wrap_FXGLViewer_objectType_get), 0); rb_define_singleton_method(SwigClassFXGLViewer.klass, "objectType=", VALUEFUNC(_wrap_FXGLViewer_objectType_set), 1); rb_define_method(SwigClassFXGLViewer.klass, "onPaint", VALUEFUNC(_wrap_FXGLViewer_onPaint), -1); rb_define_method(SwigClassFXGLViewer.klass, "onEnter", VALUEFUNC(_wrap_FXGLViewer_onEnter), -1); rb_define_method(SwigClassFXGLViewer.klass, "onLeave", VALUEFUNC(_wrap_FXGLViewer_onLeave), -1); rb_define_method(SwigClassFXGLViewer.klass, "onMotion", VALUEFUNC(_wrap_FXGLViewer_onMotion), -1); rb_define_method(SwigClassFXGLViewer.klass, "onMouseWheel", VALUEFUNC(_wrap_FXGLViewer_onMouseWheel), -1); rb_define_method(SwigClassFXGLViewer.klass, "onChanged", VALUEFUNC(_wrap_FXGLViewer_onChanged), -1); rb_define_method(SwigClassFXGLViewer.klass, "onPick", VALUEFUNC(_wrap_FXGLViewer_onPick), -1); rb_define_method(SwigClassFXGLViewer.klass, "onClicked", VALUEFUNC(_wrap_FXGLViewer_onClicked), -1); rb_define_method(SwigClassFXGLViewer.klass, "onDoubleClicked", VALUEFUNC(_wrap_FXGLViewer_onDoubleClicked), -1); rb_define_method(SwigClassFXGLViewer.klass, "onTripleClicked", VALUEFUNC(_wrap_FXGLViewer_onTripleClicked), -1); rb_define_method(SwigClassFXGLViewer.klass, "onLassoed", VALUEFUNC(_wrap_FXGLViewer_onLassoed), -1); rb_define_method(SwigClassFXGLViewer.klass, "onSelected", VALUEFUNC(_wrap_FXGLViewer_onSelected), -1); rb_define_method(SwigClassFXGLViewer.klass, "onDeselected", VALUEFUNC(_wrap_FXGLViewer_onDeselected), -1); rb_define_method(SwigClassFXGLViewer.klass, "onInserted", VALUEFUNC(_wrap_FXGLViewer_onInserted), -1); rb_define_method(SwigClassFXGLViewer.klass, "onDeleted", VALUEFUNC(_wrap_FXGLViewer_onDeleted), -1); rb_define_method(SwigClassFXGLViewer.klass, "onLeftBtnPress", VALUEFUNC(_wrap_FXGLViewer_onLeftBtnPress), -1); rb_define_method(SwigClassFXGLViewer.klass, "onLeftBtnRelease", VALUEFUNC(_wrap_FXGLViewer_onLeftBtnRelease), -1); rb_define_method(SwigClassFXGLViewer.klass, "onMiddleBtnPress", VALUEFUNC(_wrap_FXGLViewer_onMiddleBtnPress), -1); rb_define_method(SwigClassFXGLViewer.klass, "onMiddleBtnRelease", VALUEFUNC(_wrap_FXGLViewer_onMiddleBtnRelease), -1); rb_define_method(SwigClassFXGLViewer.klass, "onRightBtnPress", VALUEFUNC(_wrap_FXGLViewer_onRightBtnPress), -1); rb_define_method(SwigClassFXGLViewer.klass, "onRightBtnRelease", VALUEFUNC(_wrap_FXGLViewer_onRightBtnRelease), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUngrabbed", VALUEFUNC(_wrap_FXGLViewer_onUngrabbed), -1); rb_define_method(SwigClassFXGLViewer.klass, "onKeyPress", VALUEFUNC(_wrap_FXGLViewer_onKeyPress), -1); rb_define_method(SwigClassFXGLViewer.klass, "onKeyRelease", VALUEFUNC(_wrap_FXGLViewer_onKeyRelease), -1); rb_define_method(SwigClassFXGLViewer.klass, "onFocusIn", VALUEFUNC(_wrap_FXGLViewer_onFocusIn), -1); rb_define_method(SwigClassFXGLViewer.klass, "onFocusOut", VALUEFUNC(_wrap_FXGLViewer_onFocusOut), -1); rb_define_method(SwigClassFXGLViewer.klass, "onClipboardLost", VALUEFUNC(_wrap_FXGLViewer_onClipboardLost), -1); rb_define_method(SwigClassFXGLViewer.klass, "onClipboardGained", VALUEFUNC(_wrap_FXGLViewer_onClipboardGained), -1); rb_define_method(SwigClassFXGLViewer.klass, "onClipboardRequest", VALUEFUNC(_wrap_FXGLViewer_onClipboardRequest), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdPerspective", VALUEFUNC(_wrap_FXGLViewer_onCmdPerspective), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdPerspective", VALUEFUNC(_wrap_FXGLViewer_onUpdPerspective), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdParallel", VALUEFUNC(_wrap_FXGLViewer_onCmdParallel), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdParallel", VALUEFUNC(_wrap_FXGLViewer_onUpdParallel), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdFront", VALUEFUNC(_wrap_FXGLViewer_onCmdFront), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdFront", VALUEFUNC(_wrap_FXGLViewer_onUpdFront), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdBack", VALUEFUNC(_wrap_FXGLViewer_onCmdBack), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdBack", VALUEFUNC(_wrap_FXGLViewer_onUpdBack), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdLeft", VALUEFUNC(_wrap_FXGLViewer_onCmdLeft), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdLeft", VALUEFUNC(_wrap_FXGLViewer_onUpdLeft), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdRight", VALUEFUNC(_wrap_FXGLViewer_onCmdRight), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdRight", VALUEFUNC(_wrap_FXGLViewer_onUpdRight), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdTop", VALUEFUNC(_wrap_FXGLViewer_onCmdTop), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdTop", VALUEFUNC(_wrap_FXGLViewer_onUpdTop), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdBottom", VALUEFUNC(_wrap_FXGLViewer_onCmdBottom), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdBottom", VALUEFUNC(_wrap_FXGLViewer_onUpdBottom), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdResetView", VALUEFUNC(_wrap_FXGLViewer_onCmdResetView), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdFitView", VALUEFUNC(_wrap_FXGLViewer_onCmdFitView), -1); rb_define_method(SwigClassFXGLViewer.klass, "onDNDEnter", VALUEFUNC(_wrap_FXGLViewer_onDNDEnter), -1); rb_define_method(SwigClassFXGLViewer.klass, "onDNDLeave", VALUEFUNC(_wrap_FXGLViewer_onDNDLeave), -1); rb_define_method(SwigClassFXGLViewer.klass, "onDNDMotion", VALUEFUNC(_wrap_FXGLViewer_onDNDMotion), -1); rb_define_method(SwigClassFXGLViewer.klass, "onDNDDrop", VALUEFUNC(_wrap_FXGLViewer_onDNDDrop), -1); rb_define_method(SwigClassFXGLViewer.klass, "onTipTimer", VALUEFUNC(_wrap_FXGLViewer_onTipTimer), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdXYZDial", VALUEFUNC(_wrap_FXGLViewer_onCmdXYZDial), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdXYZDial", VALUEFUNC(_wrap_FXGLViewer_onUpdXYZDial), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdRollPitchYaw", VALUEFUNC(_wrap_FXGLViewer_onCmdRollPitchYaw), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdRollPitchYaw", VALUEFUNC(_wrap_FXGLViewer_onUpdRollPitchYaw), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdXYZScale", VALUEFUNC(_wrap_FXGLViewer_onCmdXYZScale), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdXYZScale", VALUEFUNC(_wrap_FXGLViewer_onUpdXYZScale), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdCurrent", VALUEFUNC(_wrap_FXGLViewer_onUpdCurrent), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdCutSel", VALUEFUNC(_wrap_FXGLViewer_onCmdCutSel), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdCopySel", VALUEFUNC(_wrap_FXGLViewer_onCmdCopySel), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdPasteSel", VALUEFUNC(_wrap_FXGLViewer_onCmdPasteSel), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdDeleteSel", VALUEFUNC(_wrap_FXGLViewer_onCmdDeleteSel), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdDeleteSel", VALUEFUNC(_wrap_FXGLViewer_onUpdDeleteSel), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdBackColor", VALUEFUNC(_wrap_FXGLViewer_onCmdBackColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdBackColor", VALUEFUNC(_wrap_FXGLViewer_onUpdBackColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdGradientBackColor", VALUEFUNC(_wrap_FXGLViewer_onCmdGradientBackColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdGradientBackColor", VALUEFUNC(_wrap_FXGLViewer_onUpdGradientBackColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdAmbientColor", VALUEFUNC(_wrap_FXGLViewer_onCmdAmbientColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdAmbientColor", VALUEFUNC(_wrap_FXGLViewer_onUpdAmbientColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdLighting", VALUEFUNC(_wrap_FXGLViewer_onCmdLighting), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdLighting", VALUEFUNC(_wrap_FXGLViewer_onUpdLighting), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdFog", VALUEFUNC(_wrap_FXGLViewer_onCmdFog), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdFog", VALUEFUNC(_wrap_FXGLViewer_onUpdFog), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdDither", VALUEFUNC(_wrap_FXGLViewer_onCmdDither), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdDither", VALUEFUNC(_wrap_FXGLViewer_onUpdDither), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdFov", VALUEFUNC(_wrap_FXGLViewer_onCmdFov), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdFov", VALUEFUNC(_wrap_FXGLViewer_onUpdFov), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdZoom", VALUEFUNC(_wrap_FXGLViewer_onCmdZoom), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdZoom", VALUEFUNC(_wrap_FXGLViewer_onUpdZoom), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdLightAmbient", VALUEFUNC(_wrap_FXGLViewer_onCmdLightAmbient), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdLightAmbient", VALUEFUNC(_wrap_FXGLViewer_onUpdLightAmbient), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdLightDiffuse", VALUEFUNC(_wrap_FXGLViewer_onCmdLightDiffuse), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdLightDiffuse", VALUEFUNC(_wrap_FXGLViewer_onUpdLightDiffuse), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdLightSpecular", VALUEFUNC(_wrap_FXGLViewer_onCmdLightSpecular), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdLightSpecular", VALUEFUNC(_wrap_FXGLViewer_onUpdLightSpecular), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdTurbo", VALUEFUNC(_wrap_FXGLViewer_onCmdTurbo), -1); rb_define_method(SwigClassFXGLViewer.klass, "onUpdTurbo", VALUEFUNC(_wrap_FXGLViewer_onUpdTurbo), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdPrintImage", VALUEFUNC(_wrap_FXGLViewer_onCmdPrintImage), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdPrintVector", VALUEFUNC(_wrap_FXGLViewer_onCmdPrintVector), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdLassoZoom", VALUEFUNC(_wrap_FXGLViewer_onCmdLassoZoom), -1); rb_define_method(SwigClassFXGLViewer.klass, "onCmdLassoSelect", VALUEFUNC(_wrap_FXGLViewer_onCmdLassoSelect), -1); rb_define_method(SwigClassFXGLViewer.klass, "onQueryHelp", VALUEFUNC(_wrap_FXGLViewer_onQueryHelp), -1); rb_define_method(SwigClassFXGLViewer.klass, "onQueryTip", VALUEFUNC(_wrap_FXGLViewer_onQueryTip), -1); rb_define_const(SwigClassFXGLViewer.klass, "PARALLEL", SWIG_From_int(static_cast< int >(FXGLViewer::PARALLEL))); rb_define_const(SwigClassFXGLViewer.klass, "PERSPECTIVE", SWIG_From_int(static_cast< int >(FXGLViewer::PERSPECTIVE))); rb_define_const(SwigClassFXGLViewer.klass, "ID_PERSPECTIVE", SWIG_From_int(static_cast< int >(FXGLViewer::ID_PERSPECTIVE))); rb_define_const(SwigClassFXGLViewer.klass, "ID_PARALLEL", SWIG_From_int(static_cast< int >(FXGLViewer::ID_PARALLEL))); rb_define_const(SwigClassFXGLViewer.klass, "ID_FRONT", SWIG_From_int(static_cast< int >(FXGLViewer::ID_FRONT))); rb_define_const(SwigClassFXGLViewer.klass, "ID_BACK", SWIG_From_int(static_cast< int >(FXGLViewer::ID_BACK))); rb_define_const(SwigClassFXGLViewer.klass, "ID_LEFT", SWIG_From_int(static_cast< int >(FXGLViewer::ID_LEFT))); rb_define_const(SwigClassFXGLViewer.klass, "ID_RIGHT", SWIG_From_int(static_cast< int >(FXGLViewer::ID_RIGHT))); rb_define_const(SwigClassFXGLViewer.klass, "ID_TOP", SWIG_From_int(static_cast< int >(FXGLViewer::ID_TOP))); rb_define_const(SwigClassFXGLViewer.klass, "ID_BOTTOM", SWIG_From_int(static_cast< int >(FXGLViewer::ID_BOTTOM))); rb_define_const(SwigClassFXGLViewer.klass, "ID_RESETVIEW", SWIG_From_int(static_cast< int >(FXGLViewer::ID_RESETVIEW))); rb_define_const(SwigClassFXGLViewer.klass, "ID_FITVIEW", SWIG_From_int(static_cast< int >(FXGLViewer::ID_FITVIEW))); rb_define_const(SwigClassFXGLViewer.klass, "ID_TOP_COLOR", SWIG_From_int(static_cast< int >(FXGLViewer::ID_TOP_COLOR))); rb_define_const(SwigClassFXGLViewer.klass, "ID_BOTTOM_COLOR", SWIG_From_int(static_cast< int >(FXGLViewer::ID_BOTTOM_COLOR))); rb_define_const(SwigClassFXGLViewer.klass, "ID_BACK_COLOR", SWIG_From_int(static_cast< int >(FXGLViewer::ID_BACK_COLOR))); rb_define_const(SwigClassFXGLViewer.klass, "ID_AMBIENT_COLOR", SWIG_From_int(static_cast< int >(FXGLViewer::ID_AMBIENT_COLOR))); rb_define_const(SwigClassFXGLViewer.klass, "ID_LIGHT_AMBIENT", SWIG_From_int(static_cast< int >(FXGLViewer::ID_LIGHT_AMBIENT))); rb_define_const(SwigClassFXGLViewer.klass, "ID_LIGHT_DIFFUSE", SWIG_From_int(static_cast< int >(FXGLViewer::ID_LIGHT_DIFFUSE))); rb_define_const(SwigClassFXGLViewer.klass, "ID_LIGHT_SPECULAR", SWIG_From_int(static_cast< int >(FXGLViewer::ID_LIGHT_SPECULAR))); rb_define_const(SwigClassFXGLViewer.klass, "ID_LIGHTING", SWIG_From_int(static_cast< int >(FXGLViewer::ID_LIGHTING))); rb_define_const(SwigClassFXGLViewer.klass, "ID_TURBO", SWIG_From_int(static_cast< int >(FXGLViewer::ID_TURBO))); rb_define_const(SwigClassFXGLViewer.klass, "ID_FOG", SWIG_From_int(static_cast< int >(FXGLViewer::ID_FOG))); rb_define_const(SwigClassFXGLViewer.klass, "ID_DITHER", SWIG_From_int(static_cast< int >(FXGLViewer::ID_DITHER))); rb_define_const(SwigClassFXGLViewer.klass, "ID_SCALE_X", SWIG_From_int(static_cast< int >(FXGLViewer::ID_SCALE_X))); rb_define_const(SwigClassFXGLViewer.klass, "ID_SCALE_Y", SWIG_From_int(static_cast< int >(FXGLViewer::ID_SCALE_Y))); rb_define_const(SwigClassFXGLViewer.klass, "ID_SCALE_Z", SWIG_From_int(static_cast< int >(FXGLViewer::ID_SCALE_Z))); rb_define_const(SwigClassFXGLViewer.klass, "ID_DIAL_X", SWIG_From_int(static_cast< int >(FXGLViewer::ID_DIAL_X))); rb_define_const(SwigClassFXGLViewer.klass, "ID_DIAL_Y", SWIG_From_int(static_cast< int >(FXGLViewer::ID_DIAL_Y))); rb_define_const(SwigClassFXGLViewer.klass, "ID_DIAL_Z", SWIG_From_int(static_cast< int >(FXGLViewer::ID_DIAL_Z))); rb_define_const(SwigClassFXGLViewer.klass, "ID_ROLL", SWIG_From_int(static_cast< int >(FXGLViewer::ID_ROLL))); rb_define_const(SwigClassFXGLViewer.klass, "ID_PITCH", SWIG_From_int(static_cast< int >(FXGLViewer::ID_PITCH))); rb_define_const(SwigClassFXGLViewer.klass, "ID_YAW", SWIG_From_int(static_cast< int >(FXGLViewer::ID_YAW))); rb_define_const(SwigClassFXGLViewer.klass, "ID_FOV", SWIG_From_int(static_cast< int >(FXGLViewer::ID_FOV))); rb_define_const(SwigClassFXGLViewer.klass, "ID_ZOOM", SWIG_From_int(static_cast< int >(FXGLViewer::ID_ZOOM))); rb_define_const(SwigClassFXGLViewer.klass, "ID_CUT_SEL", SWIG_From_int(static_cast< int >(FXGLViewer::ID_CUT_SEL))); rb_define_const(SwigClassFXGLViewer.klass, "ID_COPY_SEL", SWIG_From_int(static_cast< int >(FXGLViewer::ID_COPY_SEL))); rb_define_const(SwigClassFXGLViewer.klass, "ID_PASTE_SEL", SWIG_From_int(static_cast< int >(FXGLViewer::ID_PASTE_SEL))); rb_define_const(SwigClassFXGLViewer.klass, "ID_DELETE_SEL", SWIG_From_int(static_cast< int >(FXGLViewer::ID_DELETE_SEL))); rb_define_const(SwigClassFXGLViewer.klass, "ID_PRINT_IMAGE", SWIG_From_int(static_cast< int >(FXGLViewer::ID_PRINT_IMAGE))); rb_define_const(SwigClassFXGLViewer.klass, "ID_PRINT_VECTOR", SWIG_From_int(static_cast< int >(FXGLViewer::ID_PRINT_VECTOR))); rb_define_const(SwigClassFXGLViewer.klass, "ID_LASSO_ZOOM", SWIG_From_int(static_cast< int >(FXGLViewer::ID_LASSO_ZOOM))); rb_define_const(SwigClassFXGLViewer.klass, "ID_LASSO_SELECT", SWIG_From_int(static_cast< int >(FXGLViewer::ID_LASSO_SELECT))); rb_define_const(SwigClassFXGLViewer.klass, "ID_LAST", SWIG_From_int(static_cast< int >(FXGLViewer::ID_LAST))); rb_define_singleton_method(SwigClassFXGLViewer.klass, "objectTypeName", VALUEFUNC(_wrap_FXGLViewer_objectTypeName), -1); rb_define_method(SwigClassFXGLViewer.klass, "worldPix", VALUEFUNC(_wrap_FXGLViewer_worldPix), -1); rb_define_method(SwigClassFXGLViewer.klass, "modelPix", VALUEFUNC(_wrap_FXGLViewer_modelPix), -1); rb_define_method(SwigClassFXGLViewer.klass, "lasso", VALUEFUNC(_wrap_FXGLViewer_lasso), -1); rb_define_method(SwigClassFXGLViewer.klass, "fitToBounds", VALUEFUNC(_wrap_FXGLViewer_fitToBounds), -1); rb_define_method(SwigClassFXGLViewer.klass, "getViewport", VALUEFUNC(_wrap_FXGLViewer_getViewport), -1); rb_define_method(SwigClassFXGLViewer.klass, "eyeToScreen", VALUEFUNC(_wrap_FXGLViewer_eyeToScreen), -1); rb_define_method(SwigClassFXGLViewer.klass, "screenToEye", VALUEFUNC(_wrap_FXGLViewer_screenToEye), -1); rb_define_method(SwigClassFXGLViewer.klass, "screenToTarget", VALUEFUNC(_wrap_FXGLViewer_screenToTarget), -1); rb_define_method(SwigClassFXGLViewer.klass, "worldToEye", VALUEFUNC(_wrap_FXGLViewer_worldToEye), -1); rb_define_method(SwigClassFXGLViewer.klass, "worldToEyeZ", VALUEFUNC(_wrap_FXGLViewer_worldToEyeZ), -1); rb_define_method(SwigClassFXGLViewer.klass, "eyeToWorld", VALUEFUNC(_wrap_FXGLViewer_eyeToWorld), -1); rb_define_method(SwigClassFXGLViewer.klass, "worldVector", VALUEFUNC(_wrap_FXGLViewer_worldVector), -1); rb_define_method(SwigClassFXGLViewer.klass, "setMaterial", VALUEFUNC(_wrap_FXGLViewer_setMaterial), -1); rb_define_method(SwigClassFXGLViewer.klass, "getMaterial", VALUEFUNC(_wrap_FXGLViewer_getMaterial), -1); rb_define_method(SwigClassFXGLViewer.klass, "setFieldOfView", VALUEFUNC(_wrap_FXGLViewer_setFieldOfView), -1); rb_define_method(SwigClassFXGLViewer.klass, "getFieldOfView", VALUEFUNC(_wrap_FXGLViewer_getFieldOfView), -1); rb_define_method(SwigClassFXGLViewer.klass, "setZoom", VALUEFUNC(_wrap_FXGLViewer_setZoom), -1); rb_define_method(SwigClassFXGLViewer.klass, "getZoom", VALUEFUNC(_wrap_FXGLViewer_getZoom), -1); rb_define_method(SwigClassFXGLViewer.klass, "setDistance", VALUEFUNC(_wrap_FXGLViewer_setDistance), -1); rb_define_method(SwigClassFXGLViewer.klass, "getDistance", VALUEFUNC(_wrap_FXGLViewer_getDistance), -1); rb_define_method(SwigClassFXGLViewer.klass, "setScale", VALUEFUNC(_wrap_FXGLViewer_setScale), -1); rb_define_method(SwigClassFXGLViewer.klass, "getScale", VALUEFUNC(_wrap_FXGLViewer_getScale), -1); rb_define_method(SwigClassFXGLViewer.klass, "setOrientation", VALUEFUNC(_wrap_FXGLViewer_setOrientation), -1); rb_define_method(SwigClassFXGLViewer.klass, "getOrientation", VALUEFUNC(_wrap_FXGLViewer_getOrientation), -1); rb_define_method(SwigClassFXGLViewer.klass, "setCenter", VALUEFUNC(_wrap_FXGLViewer_setCenter), -1); rb_define_method(SwigClassFXGLViewer.klass, "getCenter", VALUEFUNC(_wrap_FXGLViewer_getCenter), -1); rb_define_method(SwigClassFXGLViewer.klass, "translate", VALUEFUNC(_wrap_FXGLViewer_translate), -1); rb_define_method(SwigClassFXGLViewer.klass, "getBoreVector", VALUEFUNC(_wrap_FXGLViewer_getBoreVector), -1); rb_define_method(SwigClassFXGLViewer.klass, "getEyeVector", VALUEFUNC(_wrap_FXGLViewer_getEyeVector), -1); rb_define_method(SwigClassFXGLViewer.klass, "getEyePosition", VALUEFUNC(_wrap_FXGLViewer_getEyePosition), -1); rb_define_method(SwigClassFXGLViewer.klass, "setHelpText", VALUEFUNC(_wrap_FXGLViewer_setHelpText), -1); rb_define_method(SwigClassFXGLViewer.klass, "getHelpText", VALUEFUNC(_wrap_FXGLViewer_getHelpText), -1); rb_define_method(SwigClassFXGLViewer.klass, "setTipText", VALUEFUNC(_wrap_FXGLViewer_setTipText), -1); rb_define_method(SwigClassFXGLViewer.klass, "getTipText", VALUEFUNC(_wrap_FXGLViewer_getTipText), -1); rb_define_method(SwigClassFXGLViewer.klass, "getTransform", VALUEFUNC(_wrap_FXGLViewer_getTransform), -1); rb_define_method(SwigClassFXGLViewer.klass, "getInvTransform", VALUEFUNC(_wrap_FXGLViewer_getInvTransform), -1); rb_define_method(SwigClassFXGLViewer.klass, "setScene", VALUEFUNC(_wrap_FXGLViewer_setScene), -1); rb_define_method(SwigClassFXGLViewer.klass, "getScene", VALUEFUNC(_wrap_FXGLViewer_getScene), -1); rb_define_method(SwigClassFXGLViewer.klass, "setSelection", VALUEFUNC(_wrap_FXGLViewer_setSelection), -1); rb_define_method(SwigClassFXGLViewer.klass, "getSelection", VALUEFUNC(_wrap_FXGLViewer_getSelection), -1); rb_define_method(SwigClassFXGLViewer.klass, "setProjection", VALUEFUNC(_wrap_FXGLViewer_setProjection), -1); rb_define_method(SwigClassFXGLViewer.klass, "getProjection", VALUEFUNC(_wrap_FXGLViewer_getProjection), -1); rb_define_method(SwigClassFXGLViewer.klass, "setBackgroundColor", VALUEFUNC(_wrap_FXGLViewer_setBackgroundColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "getBackgroundColor", VALUEFUNC(_wrap_FXGLViewer_getBackgroundColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "setAmbientColor", VALUEFUNC(_wrap_FXGLViewer_setAmbientColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "getAmbientColor", VALUEFUNC(_wrap_FXGLViewer_getAmbientColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "readPixels", VALUEFUNC(_wrap_FXGLViewer_readPixels), -1); rb_define_method(SwigClassFXGLViewer.klass, "readFeedback", VALUEFUNC(_wrap_FXGLViewer_readFeedback), -1); rb_define_method(SwigClassFXGLViewer.klass, "setZSortFunc", VALUEFUNC(_wrap_FXGLViewer_setZSortFunc), -1); rb_define_method(SwigClassFXGLViewer.klass, "getZSortFunc", VALUEFUNC(_wrap_FXGLViewer_getZSortFunc), -1); rb_define_method(SwigClassFXGLViewer.klass, "setMaxHits", VALUEFUNC(_wrap_FXGLViewer_setMaxHits), -1); rb_define_method(SwigClassFXGLViewer.klass, "getMaxHits", VALUEFUNC(_wrap_FXGLViewer_getMaxHits), -1); rb_define_method(SwigClassFXGLViewer.klass, "doesTurbo", VALUEFUNC(_wrap_FXGLViewer_doesTurbo), -1); rb_define_method(SwigClassFXGLViewer.klass, "getTurboMode", VALUEFUNC(_wrap_FXGLViewer_getTurboMode), -1); rb_define_method(SwigClassFXGLViewer.klass, "setTurboMode", VALUEFUNC(_wrap_FXGLViewer_setTurboMode), -1); rb_define_method(SwigClassFXGLViewer.klass, "getLight", VALUEFUNC(_wrap_FXGLViewer_getLight), -1); rb_define_method(SwigClassFXGLViewer.klass, "setLight", VALUEFUNC(_wrap_FXGLViewer_setLight), -1); rb_define_method(SwigClassFXGLViewer.klass, "save", VALUEFUNC(_wrap_FXGLViewer_save), -1); rb_define_method(SwigClassFXGLViewer.klass, "load", VALUEFUNC(_wrap_FXGLViewer_load), -1); rb_define_method(SwigClassFXGLViewer.klass, "create", VALUEFUNC(_wrap_FXGLViewer_create), -1); rb_define_method(SwigClassFXGLViewer.klass, "detach", VALUEFUNC(_wrap_FXGLViewer_detach), -1); rb_define_method(SwigClassFXGLViewer.klass, "destroy", VALUEFUNC(_wrap_FXGLViewer_destroy), -1); rb_define_method(SwigClassFXGLViewer.klass, "resize", VALUEFUNC(_wrap_FXGLViewer_resize), -1); rb_define_method(SwigClassFXGLViewer.klass, "getDefaultWidth", VALUEFUNC(_wrap_FXGLViewer_getDefaultWidth), -1); rb_define_method(SwigClassFXGLViewer.klass, "getDefaultHeight", VALUEFUNC(_wrap_FXGLViewer_getDefaultHeight), -1); rb_define_method(SwigClassFXGLViewer.klass, "getWidthForHeight", VALUEFUNC(_wrap_FXGLViewer_getWidthForHeight), -1); rb_define_method(SwigClassFXGLViewer.klass, "getHeightForWidth", VALUEFUNC(_wrap_FXGLViewer_getHeightForWidth), -1); rb_define_method(SwigClassFXGLViewer.klass, "canFocus", VALUEFUNC(_wrap_FXGLViewer_canFocus), -1); rb_define_method(SwigClassFXGLViewer.klass, "setFocus", VALUEFUNC(_wrap_FXGLViewer_setFocus), -1); rb_define_method(SwigClassFXGLViewer.klass, "killFocus", VALUEFUNC(_wrap_FXGLViewer_killFocus), -1); rb_define_method(SwigClassFXGLViewer.klass, "changeFocus", VALUEFUNC(_wrap_FXGLViewer_changeFocus), -1); rb_define_method(SwigClassFXGLViewer.klass, "setDefault", VALUEFUNC(_wrap_FXGLViewer_setDefault), -1); rb_define_method(SwigClassFXGLViewer.klass, "enable", VALUEFUNC(_wrap_FXGLViewer_enable), -1); rb_define_method(SwigClassFXGLViewer.klass, "disable", VALUEFUNC(_wrap_FXGLViewer_disable), -1); rb_define_method(SwigClassFXGLViewer.klass, "raiseWindow", VALUEFUNC(_wrap_FXGLViewer_raiseWindow), -1); rb_define_method(SwigClassFXGLViewer.klass, "lower", VALUEFUNC(_wrap_FXGLViewer_lower), -1); rb_define_method(SwigClassFXGLViewer.klass, "move", VALUEFUNC(_wrap_FXGLViewer_move), -1); rb_define_method(SwigClassFXGLViewer.klass, "position", VALUEFUNC(_wrap_FXGLViewer_position), -1); rb_define_method(SwigClassFXGLViewer.klass, "layout", VALUEFUNC(_wrap_FXGLViewer_layout), -1); rb_define_method(SwigClassFXGLViewer.klass, "recalc", VALUEFUNC(_wrap_FXGLViewer_recalc), -1); rb_define_method(SwigClassFXGLViewer.klass, "reparent", VALUEFUNC(_wrap_FXGLViewer_reparent), -1); rb_define_method(SwigClassFXGLViewer.klass, "show", VALUEFUNC(_wrap_FXGLViewer_show), -1); rb_define_method(SwigClassFXGLViewer.klass, "hide", VALUEFUNC(_wrap_FXGLViewer_hide), -1); rb_define_method(SwigClassFXGLViewer.klass, "isComposite", VALUEFUNC(_wrap_FXGLViewer_isComposite), -1); rb_define_method(SwigClassFXGLViewer.klass, "contains", VALUEFUNC(_wrap_FXGLViewer_contains), -1); rb_define_method(SwigClassFXGLViewer.klass, "doesSaveUnder", VALUEFUNC(_wrap_FXGLViewer_doesSaveUnder), -1); rb_define_method(SwigClassFXGLViewer.klass, "setBackColor", VALUEFUNC(_wrap_FXGLViewer_setBackColor), -1); rb_define_method(SwigClassFXGLViewer.klass, "tr", VALUEFUNC(_wrap_FXGLViewer_tr), -1); rb_define_method(SwigClassFXGLViewer.klass, "dropEnable", VALUEFUNC(_wrap_FXGLViewer_dropEnable), -1); rb_define_method(SwigClassFXGLViewer.klass, "dropDisable", VALUEFUNC(_wrap_FXGLViewer_dropDisable), -1); rb_define_method(SwigClassFXGLViewer.klass, "setShape", VALUEFUNC(_wrap_FXGLViewer_setShape), -1); rb_define_method(SwigClassFXGLViewer.klass, "clearShape", VALUEFUNC(_wrap_FXGLViewer_clearShape), -1); rb_define_method(SwigClassFXGLViewer.klass, "makeCurrent", VALUEFUNC(_wrap_FXGLViewer_makeCurrent), -1); rb_define_method(SwigClassFXGLViewer.klass, "makeNonCurrent", VALUEFUNC(_wrap_FXGLViewer_makeNonCurrent), -1); rb_define_method(SwigClassFXGLViewer.klass, "isCurrent", VALUEFUNC(_wrap_FXGLViewer_isCurrent), -1); rb_define_method(SwigClassFXGLViewer.klass, "swapBuffers", VALUEFUNC(_wrap_FXGLViewer_swapBuffers), -1); rb_define_method(SwigClassFXGLViewer.klass, "select", VALUEFUNC(_wrap_FXGLViewer_select), -1); rb_define_method(SwigClassFXGLViewer.klass, "pick", VALUEFUNC(_wrap_FXGLViewer_pick), -1); rb_define_method(SwigClassFXGLViewer.klass, "setBounds", VALUEFUNC(_wrap_FXGLViewer_setBounds), -1); SwigClassFXGLViewer.mark = (void (*)(void *)) FXRbGLViewer::markfunc; SwigClassFXGLViewer.destroy = (void (*)(void *)) FXRbObject::freefunc; SwigClassFXGLViewer.trackObjects = 0; SwigClassFXGLObject.klass = rb_define_class_under(mFox, "FXGLObject", ((swig_class *) SWIGTYPE_p_FXObject->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_FXGLObject, (void *) &SwigClassFXGLObject); rb_define_alloc_func(SwigClassFXGLObject.klass, _wrap_FXGLObject_allocate); rb_define_method(SwigClassFXGLObject.klass, "initialize", VALUEFUNC(_wrap_new_FXGLObject), -1); rb_define_const(SwigClassFXGLObject.klass, "ID_LAST", SWIG_From_int(static_cast< int >(FXGLObject::ID_LAST))); rb_define_method(SwigClassFXGLObject.klass, "identify", VALUEFUNC(_wrap_FXGLObject_identify), -1); rb_define_method(SwigClassFXGLObject.klass, "save", VALUEFUNC(_wrap_FXGLObject_save), -1); rb_define_method(SwigClassFXGLObject.klass, "load", VALUEFUNC(_wrap_FXGLObject_load), -1); rb_define_method(SwigClassFXGLObject.klass, "copy", VALUEFUNC(_wrap_FXGLObject_copy), -1); rb_define_method(SwigClassFXGLObject.klass, "bounds", VALUEFUNC(_wrap_FXGLObject_bounds), -1); rb_define_method(SwigClassFXGLObject.klass, "draw", VALUEFUNC(_wrap_FXGLObject_draw), -1); rb_define_method(SwigClassFXGLObject.klass, "hit", VALUEFUNC(_wrap_FXGLObject_hit), -1); rb_define_method(SwigClassFXGLObject.klass, "canDrag", VALUEFUNC(_wrap_FXGLObject_canDrag), -1); rb_define_method(SwigClassFXGLObject.klass, "canDelete", VALUEFUNC(_wrap_FXGLObject_canDelete), -1); rb_define_method(SwigClassFXGLObject.klass, "drag", VALUEFUNC(_wrap_FXGLObject_drag), -1); SwigClassFXGLObject.mark = (void (*)(void *)) FXRbGLObject::markfunc; SwigClassFXGLObject.destroy = (void (*)(void *)) FXRbObject::freefunc; SwigClassFXGLObject.trackObjects = 0; SWIGTYPE_p_FXGLObject->dcast = (swig_dycast_func) FXGLObject_dynamic_cast; rb_define_const(mFox, "SURFACE_SINGLESIDED", SWIG_From_int(static_cast< int >(SURFACE_SINGLESIDED))); rb_define_const(mFox, "SURFACE_DUALSIDED", SWIG_From_int(static_cast< int >(SURFACE_DUALSIDED))); rb_define_const(mFox, "SHADING_NONE", SWIG_From_int(static_cast< int >(SHADING_NONE))); rb_define_const(mFox, "SHADING_SMOOTH", SWIG_From_int(static_cast< int >(SHADING_SMOOTH))); rb_define_const(mFox, "SHADING_FLAT", SWIG_From_int(static_cast< int >(SHADING_FLAT))); rb_define_const(mFox, "FACECULLING_OFF", SWIG_From_int(static_cast< int >(FACECULLING_OFF))); rb_define_const(mFox, "FACECULLING_ON", SWIG_From_int(static_cast< int >(FACECULLING_ON))); rb_define_const(mFox, "STYLE_SURFACE", SWIG_From_int(static_cast< int >(STYLE_SURFACE))); rb_define_const(mFox, "STYLE_WIREFRAME", SWIG_From_int(static_cast< int >(STYLE_WIREFRAME))); rb_define_const(mFox, "STYLE_POINTS", SWIG_From_int(static_cast< int >(STYLE_POINTS))); rb_define_const(mFox, "STYLE_BOUNDBOX", SWIG_From_int(static_cast< int >(STYLE_BOUNDBOX))); SwigClassFXGLShape.klass = rb_define_class_under(mFox, "FXGLShape", ((swig_class *) SWIGTYPE_p_FXGLObject->clientdata)->klass); SWIG_TypeClientData(SWIGTYPE_p_FXGLShape, (void *) &SwigClassFXGLShape); rb_define_alloc_func(SwigClassFXGLShape.klass, _wrap_FXGLShape_allocate); rb_define_method(SwigClassFXGLShape.klass, "initialize", VALUEFUNC(_wrap_new_FXGLShape), -1); rb_define_method(SwigClassFXGLShape.klass, "onDNDDrop", VALUEFUNC(_wrap_FXGLShape_onDNDDrop), -1); rb_define_method(SwigClassFXGLShape.klass, "onDNDMotion", VALUEFUNC(_wrap_FXGLShape_onDNDMotion), -1); rb_define_method(SwigClassFXGLShape.klass, "onQueryTip", VALUEFUNC(_wrap_FXGLShape_onQueryTip), -1); rb_define_method(SwigClassFXGLShape.klass, "onCmdShadeOff", VALUEFUNC(_wrap_FXGLShape_onCmdShadeOff), -1); rb_define_method(SwigClassFXGLShape.klass, "onUpdShadeOff", VALUEFUNC(_wrap_FXGLShape_onUpdShadeOff), -1); rb_define_method(SwigClassFXGLShape.klass, "onCmdShadeOn", VALUEFUNC(_wrap_FXGLShape_onCmdShadeOn), -1); rb_define_method(SwigClassFXGLShape.klass, "onUpdShadeOn", VALUEFUNC(_wrap_FXGLShape_onUpdShadeOn), -1); rb_define_method(SwigClassFXGLShape.klass, "onCmdShadeSmooth", VALUEFUNC(_wrap_FXGLShape_onCmdShadeSmooth), -1); rb_define_method(SwigClassFXGLShape.klass, "onUpdShadeSmooth", VALUEFUNC(_wrap_FXGLShape_onUpdShadeSmooth), -1); rb_define_method(SwigClassFXGLShape.klass, "onCmdFrontMaterial", VALUEFUNC(_wrap_FXGLShape_onCmdFrontMaterial), -1); rb_define_method(SwigClassFXGLShape.klass, "onUpdFrontMaterial", VALUEFUNC(_wrap_FXGLShape_onUpdFrontMaterial), -1); rb_define_method(SwigClassFXGLShape.klass, "onCmdBackMaterial", VALUEFUNC(_wrap_FXGLShape_onCmdBackMaterial), -1); rb_define_method(SwigClassFXGLShape.klass, "onUpdBackMaterial", VALUEFUNC(_wrap_FXGLShape_onUpdBackMaterial), -1); rb_define_method(SwigClassFXGLShape.klass, "onCmdDrawingStyle", VALUEFUNC(_wrap_FXGLShape_onCmdDrawingStyle), -1); rb_define_method(SwigClassFXGLShape.klass, "onUpdDrawingStyle", VALUEFUNC(_wrap_FXGLShape_onUpdDrawingStyle), -1); rb_define_const(SwigClassFXGLShape.klass, "ID_SHADEOFF", SWIG_From_int(static_cast< int >(FXGLShape::ID_SHADEOFF))); rb_define_const(SwigClassFXGLShape.klass, "ID_SHADEON", SWIG_From_int(static_cast< int >(FXGLShape::ID_SHADEON))); rb_define_const(SwigClassFXGLShape.klass, "ID_SHADESMOOTH", SWIG_From_int(static_cast< int >(FXGLShape::ID_SHADESMOOTH))); rb_define_const(SwigClassFXGLShape.klass, "ID_TOGGLE_SIDED", SWIG_From_int(static_cast< int >(FXGLShape::ID_TOGGLE_SIDED))); rb_define_const(SwigClassFXGLShape.klass, "ID_TOGGLE_CULLING", SWIG_From_int(static_cast< int >(FXGLShape::ID_TOGGLE_CULLING))); rb_define_const(SwigClassFXGLShape.klass, "ID_STYLE_POINTS", SWIG_From_int(static_cast< int >(FXGLShape::ID_STYLE_POINTS))); rb_define_const(SwigClassFXGLShape.klass, "ID_STYLE_WIREFRAME", SWIG_From_int(static_cast< int >(FXGLShape::ID_STYLE_WIREFRAME))); rb_define_const(SwigClassFXGLShape.klass, "ID_STYLE_SURFACE", SWIG_From_int(static_cast< int >(FXGLShape::ID_STYLE_SURFACE))); rb_define_const(SwigClassFXGLShape.klass, "ID_STYLE_BOUNDINGBOX", SWIG_From_int(static_cast< int >(FXGLShape::ID_STYLE_BOUNDINGBOX))); rb_define_const(SwigClassFXGLShape.klass, "ID_FRONT_MATERIAL", SWIG_From_int(static_cast< int >(FXGLShape::ID_FRONT_MATERIAL))); rb_define_const(SwigClassFXGLShape.klass, "ID_BACK_MATERIAL", SWIG_From_int(static_cast< int >(FXGLShape::ID_BACK_MATERIAL))); rb_define_const(SwigClassFXGLShape.klass, "ID_LAST", SWIG_From_int(static_cast< int >(FXGLShape::ID_LAST))); rb_define_method(SwigClassFXGLShape.klass, "identify", VALUEFUNC(_wrap_FXGLShape_identify), -1); rb_define_method(SwigClassFXGLShape.klass, "setTipText", VALUEFUNC(_wrap_FXGLShape_setTipText), -1); rb_define_method(SwigClassFXGLShape.klass, "getTipText", VALUEFUNC(_wrap_FXGLShape_getTipText), -1); rb_define_method(SwigClassFXGLShape.klass, "setMaterial", VALUEFUNC(_wrap_FXGLShape_setMaterial), -1); rb_define_method(SwigClassFXGLShape.klass, "getPosition", VALUEFUNC(_wrap_FXGLShape_getPosition), -1); rb_define_method(SwigClassFXGLShape.klass, "setPosition", VALUEFUNC(_wrap_FXGLShape_setPosition), -1); rb_define_method(SwigClassFXGLShape.klass, "getMaterial", VALUEFUNC(_wrap_FXGLShape_getMaterial), -1); rb_define_method(SwigClassFXGLShape.klass, "setRange", VALUEFUNC(_wrap_FXGLShape_setRange), -1); rb_define_method(SwigClassFXGLShape.klass, "save", VALUEFUNC(_wrap_FXGLShape_save), -1); rb_define_method(SwigClassFXGLShape.klass, "load", VALUEFUNC(_wrap_FXGLShape_load), -1); rb_define_method(SwigClassFXGLShape.klass, "copy", VALUEFUNC(_wrap_FXGLShape_copy), -1); rb_define_method(SwigClassFXGLShape.klass, "bounds", VALUEFUNC(_wrap_FXGLShape_bounds), -1); rb_define_method(SwigClassFXGLShape.klass, "draw", VALUEFUNC(_wrap_FXGLShape_draw), -1); rb_define_method(SwigClassFXGLShape.klass, "hit", VALUEFUNC(_wrap_FXGLShape_hit), -1); rb_define_method(SwigClassFXGLShape.klass, "canDrag", VALUEFUNC(_wrap_FXGLShape_canDrag), -1); rb_define_method(SwigClassFXGLShape.klass, "canDelete", VALUEFUNC(_wrap_FXGLShape_canDelete), -1); rb_define_method(SwigClassFXGLShape.klass, "drag", VALUEFUNC(_wrap_FXGLShape_drag), -1); rb_define_method(SwigClassFXGLShape.klass, "drawshape", VALUEFUNC(_wrap_FXGLShape_drawshape), -1); SwigClassFXGLShape.mark = (void (*)(void *)) FXRbGLShape::markfunc; SwigClassFXGLShape.destroy = (void (*)(void *)) FXRbObject::freefunc; SwigClassFXGLShape.trackObjects = 0; SwigClassFXExtentf.klass = rb_define_class_under(mFox, "FXExtentf", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXExtentf, (void *) &SwigClassFXExtentf); rb_define_alloc_func(SwigClassFXExtentf.klass, _wrap_FXExtentf_allocate); rb_define_method(SwigClassFXExtentf.klass, "initialize", VALUEFUNC(_wrap_new_FXExtentf), -1); rb_define_method(SwigClassFXExtentf.klass, "lower=", VALUEFUNC(_wrap_FXExtentf_lower_set), -1); rb_define_method(SwigClassFXExtentf.klass, "lower", VALUEFUNC(_wrap_FXExtentf_lower_get), -1); rb_define_method(SwigClassFXExtentf.klass, "upper=", VALUEFUNC(_wrap_FXExtentf_upper_set), -1); rb_define_method(SwigClassFXExtentf.klass, "upper", VALUEFUNC(_wrap_FXExtentf_upper_get), -1); rb_define_method(SwigClassFXExtentf.klass, "[]=", VALUEFUNC(_wrap_FXExtentf___setitem__), -1); rb_define_method(SwigClassFXExtentf.klass, "[]", VALUEFUNC(_wrap_FXExtentf___getitem__), -1); rb_define_method(SwigClassFXExtentf.klass, "width", VALUEFUNC(_wrap_FXExtentf_width), -1); rb_define_method(SwigClassFXExtentf.klass, "height", VALUEFUNC(_wrap_FXExtentf_height), -1); rb_define_method(SwigClassFXExtentf.klass, "longest", VALUEFUNC(_wrap_FXExtentf_longest), -1); rb_define_method(SwigClassFXExtentf.klass, "shortest", VALUEFUNC(_wrap_FXExtentf_shortest), -1); rb_define_method(SwigClassFXExtentf.klass, "diameter", VALUEFUNC(_wrap_FXExtentf_diameter), -1); rb_define_method(SwigClassFXExtentf.klass, "radius", VALUEFUNC(_wrap_FXExtentf_radius), -1); rb_define_method(SwigClassFXExtentf.klass, "diagonal", VALUEFUNC(_wrap_FXExtentf_diagonal), -1); rb_define_method(SwigClassFXExtentf.klass, "center", VALUEFUNC(_wrap_FXExtentf_center), -1); rb_define_method(SwigClassFXExtentf.klass, "empty?", VALUEFUNC(_wrap_FXExtentf_emptyq___), -1); rb_define_method(SwigClassFXExtentf.klass, "contains", VALUEFUNC(_wrap_FXExtentf_contains), -1); rb_define_method(SwigClassFXExtentf.klass, "contains?", VALUEFUNC(_wrap_FXExtentf_containsq___), -1); rb_define_method(SwigClassFXExtentf.klass, "include", VALUEFUNC(_wrap_FXExtentf_include), -1); rb_define_method(SwigClassFXExtentf.klass, "include!", VALUEFUNC(_wrap_FXExtentf_includeN___), -1); rb_define_method(SwigClassFXExtentf.klass, "corner", VALUEFUNC(_wrap_FXExtentf_corner), -1); rb_define_method(SwigClassFXExtentf.klass, "overlap?", VALUEFUNC(_wrap_FXExtentf_overlapq___), -1); rb_define_method(SwigClassFXExtentf.klass, "unite_with", VALUEFUNC(_wrap_FXExtentf_unite_with), -1); rb_define_method(SwigClassFXExtentf.klass, "intersect_with", VALUEFUNC(_wrap_FXExtentf_intersect_with), -1); SwigClassFXExtentf.mark = 0; SwigClassFXExtentf.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXExtentf.trackObjects = 0; SwigClassFXExtentd.klass = rb_define_class_under(mFox, "FXExtentd", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_FXExtentd, (void *) &SwigClassFXExtentd); rb_define_alloc_func(SwigClassFXExtentd.klass, _wrap_FXExtentd_allocate); rb_define_method(SwigClassFXExtentd.klass, "initialize", VALUEFUNC(_wrap_new_FXExtentd), -1); rb_define_method(SwigClassFXExtentd.klass, "lower=", VALUEFUNC(_wrap_FXExtentd_lower_set), -1); rb_define_method(SwigClassFXExtentd.klass, "lower", VALUEFUNC(_wrap_FXExtentd_lower_get), -1); rb_define_method(SwigClassFXExtentd.klass, "upper=", VALUEFUNC(_wrap_FXExtentd_upper_set), -1); rb_define_method(SwigClassFXExtentd.klass, "upper", VALUEFUNC(_wrap_FXExtentd_upper_get), -1); rb_define_method(SwigClassFXExtentd.klass, "[]=", VALUEFUNC(_wrap_FXExtentd___setitem__), -1); rb_define_method(SwigClassFXExtentd.klass, "[]", VALUEFUNC(_wrap_FXExtentd___getitem__), -1); rb_define_method(SwigClassFXExtentd.klass, "width", VALUEFUNC(_wrap_FXExtentd_width), -1); rb_define_method(SwigClassFXExtentd.klass, "height", VALUEFUNC(_wrap_FXExtentd_height), -1); rb_define_method(SwigClassFXExtentd.klass, "longest", VALUEFUNC(_wrap_FXExtentd_longest), -1); rb_define_method(SwigClassFXExtentd.klass, "shortest", VALUEFUNC(_wrap_FXExtentd_shortest), -1); rb_define_method(SwigClassFXExtentd.klass, "diameter", VALUEFUNC(_wrap_FXExtentd_diameter), -1); rb_define_method(SwigClassFXExtentd.klass, "radius", VALUEFUNC(_wrap_FXExtentd_radius), -1); rb_define_method(SwigClassFXExtentd.klass, "diagonal", VALUEFUNC(_wrap_FXExtentd_diagonal), -1); rb_define_method(SwigClassFXExtentd.klass, "center", VALUEFUNC(_wrap_FXExtentd_center), -1); rb_define_method(SwigClassFXExtentd.klass, "empty?", VALUEFUNC(_wrap_FXExtentd_emptyq___), -1); rb_define_method(SwigClassFXExtentd.klass, "contains", VALUEFUNC(_wrap_FXExtentd_contains), -1); rb_define_method(SwigClassFXExtentd.klass, "contains?", VALUEFUNC(_wrap_FXExtentd_containsq___), -1); rb_define_method(SwigClassFXExtentd.klass, "include", VALUEFUNC(_wrap_FXExtentd_include), -1); rb_define_method(SwigClassFXExtentd.klass, "include!", VALUEFUNC(_wrap_FXExtentd_includeN___), -1); rb_define_method(SwigClassFXExtentd.klass, "corner", VALUEFUNC(_wrap_FXExtentd_corner), -1); rb_define_method(SwigClassFXExtentd.klass, "overlap?", VALUEFUNC(_wrap_FXExtentd_overlapq___), -1); rb_define_method(SwigClassFXExtentd.klass, "unite_with", VALUEFUNC(_wrap_FXExtentd_unite_with), -1); rb_define_method(SwigClassFXExtentd.klass, "intersect_with", VALUEFUNC(_wrap_FXExtentd_intersect_with), -1); SwigClassFXExtentd.mark = 0; SwigClassFXExtentd.destroy = (void (*)(void *)) FXRbUnregisterRubyObj; SwigClassFXExtentd.trackObjects = 0; }