/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.11
 *
 * 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.
 * ----------------------------------------------------------------------------- */

#define SWIGRUBY


#ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> 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<T>& rhs);
  SwigValueWrapper(const SwigValueWrapper<T>& 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 <typename T> 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 (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#  ifndef GCC_HASCLASSVISIBILITY
#    define GCC_HASCLASSVISIBILITY
#  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


/* -----------------------------------------------------------------------------
 *  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 (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#  ifndef GCC_HASCLASSVISIBILITY
#    define GCC_HASCLASSVISIBILITY
#  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


/* -----------------------------------------------------------------------------
 * 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 (<obj is ok>) {
          if (<need new object>) {
            *ptr = <ptr to new allocated object>;
            return SWIG_NEWOBJ;
          } else {
            *ptr = <ptr to old object>;
            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 <string.h>

#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<int>" == "Class<int >", 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 <name1>|<name2>|...
  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 <name1>|<name2>|...
  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) {
      register size_t l = 0;
      register size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	register size_t i = (l + r) >> 1;
	const char *iname = iter->types[i]->name;
	if (iname) {
	  register 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 {
      register 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";
  register const unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    register 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) {
  register unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    register char d = *(c++);
    register unsigned char uu;
    if ((d >= '0') && (d <= '9'))
      uu = ((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = ((d - ('a'-10)) << 4);
    else
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (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 <ruby.h>

/* 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

/* 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 Ruby hash table to store Trackings from C/C++
   structs to Ruby Objects. 
*/
static VALUE swig_ruby_trackings = Qnil;

/* Global variable that stores a reference to the ruby
   hash table delete function. */
static ID swig_ruby_hash_delete;

/* Setup a Ruby hash table to store Trackings */
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
  /* Create a ruby 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.
  */
  ID trackings_id = rb_intern( "@__trackings__" );
  VALUE verbose = rb_gv_get("VERBOSE");
  rb_gv_set("VERBOSE", Qfalse);
  swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
  rb_gv_set("VERBOSE", verbose);

  /* No, it hasn't.  Create one ourselves */ 
  if ( swig_ruby_trackings == Qnil )
    {
      swig_ruby_trackings = rb_hash_new();
      rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
    }

  /* Now store a reference to the hash table delete function
     so that we only have to look it up once.*/
  swig_ruby_hash_delete = rb_intern("delete");
}

/* Get a Ruby number to reference a pointer */
SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
  /* We cast the pointer to an unsigned long
     and then store a reference to it using
     a Ruby number object. */

  /* Convert the pointer to a Ruby number */
  return SWIG2NUM(ptr);
}

/* Get a Ruby number to reference an object */
SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
  /* We cast the object to an unsigned long
     and then store a reference to it using
     a Ruby number object. */

  /* Convert the Object to a Ruby number */
  return SWIG2NUM(object);
}

/* Get a Ruby object from a previously stored reference */
SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
  /* The provided Ruby number object is a reference
     to the Ruby object we want.*/

  /* Convert the Ruby number to a Ruby object */
  return NUM2SWIG(reference);
}

/* Add a Tracking from a C/C++ struct to a Ruby object */
SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
  /* In a Ruby hash table we store the pointer and
     the associated Ruby object.  The trick here is
     that we cannot store the Ruby object directly - if
     we do then it cannot be garbage collected.  So
     instead we typecast it as a unsigned long and
     convert it to a Ruby number object.*/

  /* Get a reference to the pointer as a Ruby number */
  VALUE key = SWIG_RubyPtrToReference(ptr);

  /* Get a reference to the Ruby object as a Ruby number */
  VALUE value = SWIG_RubyObjectToReference(object);

  /* Store the mapping to the global hash table. */
  rb_hash_aset(swig_ruby_trackings, key, value);
}

/* Get the Ruby object that owns the specified C/C++ struct */
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
  /* Get a reference to the pointer as a Ruby number */
  VALUE key = SWIG_RubyPtrToReference(ptr);

  /* Now lookup the value stored in the global hash table */
  VALUE value = rb_hash_aref(swig_ruby_trackings, key);
	
  if (value == Qnil) {
    /* No object exists - return nil. */
    return Qnil;
  }
  else {
    /* Convert this value to Ruby object */
    return SWIG_RubyReferenceToObject(value);
  }
}

/* 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) {
  /* Get a reference to the pointer as a Ruby number */
  VALUE key = SWIG_RubyPtrToReference(ptr);

  /* Delete the object from the hash table by calling Ruby's
     do this we need to call the Hash.delete method.*/
  rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
}

/* 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) {
    DATA_PTR(object) = 0;
  }
}


#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                                    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)
{
  VALUE klass;
  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");
  }
  klass = 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 void (*ruby_owntype)(void*);

SWIGRUNTIME ruby_owntype
SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
  if (obj) {
    ruby_owntype oldown = RDATA(obj)->dfree;
    RDATA(obj)->dfree = own;
    return oldown;
  } else {
    return 0;
  }
}

/* Convert a pointer value */
SWIGRUNTIME int
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
{
  char *c;
  swig_cast_info *tc;
  void *vptr = 0;

  /* Grab the pointer */
  if (NIL_P(obj)) {
    *ptr = 0;
    return SWIG_OK;
  } else {
    if (TYPE(obj) != T_DATA) {
      return SWIG_ERROR;
    }
    Data_Get_Struct(obj, void, vptr);
  }
  
  if (own) *own = RDATA(obj)->dfree;
    
  /* 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;
        }
        *ptr = vptr;
        return SWIG_OK;
      }
    }
    if ((c = SWIG_MangleStr(obj)) == NULL) {
      return SWIG_ERROR;
    }
    tc = SWIG_TypeCheck(c, ty);
    if (!tc) {
      return SWIG_ERROR;
    } else {
      int newmemory = 0;
      *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
      assert(!newmemory); /* newmemory handling not yet implemented */
    }
  } else {
    *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_FXBMPImage swig_types[5]
#define SWIGTYPE_p_FXBitmap swig_types[6]
#define SWIGTYPE_p_FXBitmapFrame swig_types[7]
#define SWIGTYPE_p_FXCURCursor swig_types[8]
#define SWIGTYPE_p_FXCanvas swig_types[9]
#define SWIGTYPE_p_FXColorBar swig_types[10]
#define SWIGTYPE_p_FXColorRing swig_types[11]
#define SWIGTYPE_p_FXColorSelector swig_types[12]
#define SWIGTYPE_p_FXColorWell swig_types[13]
#define SWIGTYPE_p_FXColorWheel swig_types[14]
#define SWIGTYPE_p_FXComboBox swig_types[15]
#define SWIGTYPE_p_FXComposite swig_types[16]
#define SWIGTYPE_p_FXCursor swig_types[17]
#define SWIGTYPE_p_FXDataTarget swig_types[18]
#define SWIGTYPE_p_FXDebugTarget swig_types[19]
#define SWIGTYPE_p_FXDelegator swig_types[20]
#define SWIGTYPE_p_FXDial swig_types[21]
#define SWIGTYPE_p_FXDict swig_types[22]
#define SWIGTYPE_p_FXDirBox swig_types[23]
#define SWIGTYPE_p_FXDirSelector swig_types[24]
#define SWIGTYPE_p_FXDockBar swig_types[25]
#define SWIGTYPE_p_FXDockHandler swig_types[26]
#define SWIGTYPE_p_FXDockSite swig_types[27]
#define SWIGTYPE_p_FXDockTitle swig_types[28]
#define SWIGTYPE_p_FXDocument swig_types[29]
#define SWIGTYPE_p_FXDragCorner swig_types[30]
#define SWIGTYPE_p_FXDrawable swig_types[31]
#define SWIGTYPE_p_FXDriveBox swig_types[32]
#define SWIGTYPE_p_FXFileDict swig_types[33]
#define SWIGTYPE_p_FXFileSelector swig_types[34]
#define SWIGTYPE_p_FXFileStream swig_types[35]
#define SWIGTYPE_p_FXFont swig_types[36]
#define SWIGTYPE_p_FXFontSelector swig_types[37]
#define SWIGTYPE_p_FXFrame swig_types[38]
#define SWIGTYPE_p_FXGIFCursor swig_types[39]
#define SWIGTYPE_p_FXGIFImage swig_types[40]
#define SWIGTYPE_p_FXGradientBar swig_types[41]
#define SWIGTYPE_p_FXGroupBox swig_types[42]
#define SWIGTYPE_p_FXHeader swig_types[43]
#define SWIGTYPE_p_FXHeaderItem swig_types[44]
#define SWIGTYPE_p_FXHorizontalFrame swig_types[45]
#define SWIGTYPE_p_FXHorizontalSeparator swig_types[46]
#define SWIGTYPE_p_FXICOImage swig_types[47]
#define SWIGTYPE_p_FXIconDict swig_types[48]
#define SWIGTYPE_p_FXId swig_types[49]
#define SWIGTYPE_p_FXImage swig_types[50]
#define SWIGTYPE_p_FXImageFrame swig_types[51]
#define SWIGTYPE_p_FXImageView swig_types[52]
#define SWIGTYPE_p_FXJPGImage swig_types[53]
#define SWIGTYPE_p_FXKnob swig_types[54]
#define SWIGTYPE_p_FXListBox swig_types[55]
#define SWIGTYPE_p_FXMainWindow swig_types[56]
#define SWIGTYPE_p_FXMatrix swig_types[57]
#define SWIGTYPE_p_FXMemoryBuffer swig_types[58]
#define SWIGTYPE_p_FXMemoryStream swig_types[59]
#define SWIGTYPE_p_FXObject swig_types[60]
#define SWIGTYPE_p_FXPCXImage swig_types[61]
#define SWIGTYPE_p_FXPNGImage swig_types[62]
#define SWIGTYPE_p_FXPPMImage swig_types[63]
#define SWIGTYPE_p_FXPacker swig_types[64]
#define SWIGTYPE_p_FXPopup swig_types[65]
#define SWIGTYPE_p_FXProgressBar swig_types[66]
#define SWIGTYPE_p_FXRGBImage swig_types[67]
#define SWIGTYPE_p_FXRealSlider swig_types[68]
#define SWIGTYPE_p_FXRealSpinner swig_types[69]
#define SWIGTYPE_p_FXRecentFiles swig_types[70]
#define SWIGTYPE_p_FXRegistry swig_types[71]
#define SWIGTYPE_p_FXRootWindow swig_types[72]
#define SWIGTYPE_p_FXRuler swig_types[73]
#define SWIGTYPE_p_FXRulerView swig_types[74]
#define SWIGTYPE_p_FXScrollArea swig_types[75]
#define SWIGTYPE_p_FXScrollBar swig_types[76]
#define SWIGTYPE_p_FXScrollCorner swig_types[77]
#define SWIGTYPE_p_FXScrollWindow swig_types[78]
#define SWIGTYPE_p_FXSeparator swig_types[79]
#define SWIGTYPE_p_FXSettings swig_types[80]
#define SWIGTYPE_p_FXShell swig_types[81]
#define SWIGTYPE_p_FXShutter swig_types[82]
#define SWIGTYPE_p_FXShutterItem swig_types[83]
#define SWIGTYPE_p_FXSlider swig_types[84]
#define SWIGTYPE_p_FXSpinner swig_types[85]
#define SWIGTYPE_p_FXSplashWindow swig_types[86]
#define SWIGTYPE_p_FXSplitter swig_types[87]
#define SWIGTYPE_p_FXSpring swig_types[88]
#define SWIGTYPE_p_FXStatusBar swig_types[89]
#define SWIGTYPE_p_FXStatusLine swig_types[90]
#define SWIGTYPE_p_FXStream swig_types[91]
#define SWIGTYPE_p_FXStringDict swig_types[92]
#define SWIGTYPE_p_FXSwitcher swig_types[93]
#define SWIGTYPE_p_FXTGAImage swig_types[94]
#define SWIGTYPE_p_FXTIFImage swig_types[95]
#define SWIGTYPE_p_FXTabBar swig_types[96]
#define SWIGTYPE_p_FXTabBook swig_types[97]
#define SWIGTYPE_p_FXTextField swig_types[98]
#define SWIGTYPE_p_FXToolBar swig_types[99]
#define SWIGTYPE_p_FXToolBarGrip swig_types[100]
#define SWIGTYPE_p_FXToolBarShell swig_types[101]
#define SWIGTYPE_p_FXToolBarTab swig_types[102]
#define SWIGTYPE_p_FXToolTip swig_types[103]
#define SWIGTYPE_p_FXTopWindow swig_types[104]
#define SWIGTYPE_p_FXTranslator swig_types[105]
#define SWIGTYPE_p_FXTreeListBox swig_types[106]
#define SWIGTYPE_p_FXVerticalFrame swig_types[107]
#define SWIGTYPE_p_FXVerticalSeparator swig_types[108]
#define SWIGTYPE_p_FXVisual swig_types[109]
#define SWIGTYPE_p_FXWindow swig_types[110]
#define SWIGTYPE_p_FXXBMImage swig_types[111]
#define SWIGTYPE_p_FXXPMImage swig_types[112]
#define SWIGTYPE_p_char swig_types[113]
#define SWIGTYPE_p_double swig_types[114]
#define SWIGTYPE_p_float swig_types[115]
#define SWIGTYPE_p_int swig_types[116]
#define SWIGTYPE_p_long swig_types[117]
#define SWIGTYPE_p_p_char swig_types[118]
#define SWIGTYPE_p_short swig_types[119]
#define SWIGTYPE_p_unsigned_char swig_types[120]
#define SWIGTYPE_p_unsigned_int swig_types[121]
#define SWIGTYPE_p_unsigned_long swig_types[122]
#define SWIGTYPE_p_unsigned_short swig_types[123]
static swig_type_info *swig_types[125];
static swig_module_info swig_module = {swig_types, 124, 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_image
#define SWIG_name    "Image"


#define SWIG_RUBY_THREAD_BEGIN_BLOCK
#define SWIG_RUBY_THREAD_END_BLOCK


#define SWIGVERSION 0x020011 
#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 <stdexcept>


#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<FXbool>(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 <limits.h>
#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 FXBitmap *new_FXBitmap(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbBitmap(a,pix,opts,w,h);
      }

SWIGINTERNINLINE VALUE
SWIG_From_unsigned_SS_long  (unsigned long value)
{
  return ULONG2NUM(value); 
}


SWIGINTERNINLINE VALUE
SWIG_From_unsigned_SS_int  (unsigned int value)
{    
  return SWIG_From_unsigned_SS_long  (value);
}


SWIGINTERNINLINE VALUE
SWIG_From_bool  (bool value)
{
  return value ? Qtrue : Qfalse;
}

SWIGINTERN VALUE FXMemoryBuffer_getData(FXMemoryBuffer const *self){
      FXColor* data = self->getData();
      if (data) {
        FXuint size = self->getSize();
        VALUE ary = rb_ary_new2(size);
        for (int i = 0; i < size; i++)
          rb_ary_store(ary, i, UINT2NUM(data[i]));
        return ary;
        }
      else {
        return Qnil;
        }
      }
SWIGINTERN FXColor FXMemoryBuffer___getitem__(FXMemoryBuffer const *self,FXuint i){
      return self->getData()[i];
      }
SWIGINTERN FXColor FXMemoryBuffer___setitem__(FXMemoryBuffer *self,FXuint i,FXColor value){
      self->getData()[i] = value;
      return value;
      }
SWIGINTERN FXImage *new_FXImage(FXApp *a,VALUE string_or_ary=Qnil,FXuint opts=0,FXint w=1,FXint h=1){
      FXColor* pix=0;
      if(!NIL_P(string_or_ary)){
        FXuint len=FXRbNumberOfFXColors(string_or_ary);
        if(w*h != len){
          rb_raise( rb_eArgError, "Array size does not match image size" );
        }
        pix=FXRbConvertToFXColors(string_or_ary, &opts);
      }
      return new FXRbImage(a,pix,opts,w,h);
    }
SWIGINTERN FXMemoryBuffer *FXImage_getData(FXImage const *self){
      if(self->getData()){
        return new FXMemoryBuffer(self->getData(),self->getWidth()*self->getHeight());
      }
      else{
        return 0;
      }
    }
SWIGINTERN void FXImage_setPixels(FXImage *self,VALUE string_or_ary,FXuint opts=0,VALUE w=Qnil,VALUE h=Qnil){
      FXuint len=FXRbNumberOfFXColors(string_or_ary);
      if( ( (NIL_P(w) || NIL_P(h)) && self->getWidth()*self->getHeight() != len) ||
          (!(NIL_P(w) || NIL_P(h)) && NUM2UINT(w)*NUM2UINT(h) != len)){
        rb_raise( rb_eArgError, "Array size does not match image size" );
      }

      FXColor* pix=FXRbConvertToFXColors(string_or_ary, &opts);
      if( NIL_P(w) || NIL_P(h) ){
        self->setData(pix,opts);
      }else{
        self->setData(pix,opts,NUM2UINT(w),NUM2UINT(h));
      }
    }
SWIGINTERN VALUE FXImage_pixels(FXImage *self){
      FXColor* data = self->getData();
      if (data) {
        FXuint size = self->getWidth()*self->getHeight();
        VALUE ary = rb_ary_new2(size);
        for (int i = 0; i < size; i++)
          rb_ary_store(ary, i, UINT2NUM(data[i]));
        return ary;
      } else {
        return Qnil;
      }
    }
SWIGINTERN VALUE FXImage_pixel_string__SWIG_0(FXImage *self){
      FXColor* data = self->getData();
      if (data) {
        return rb_str_new((char*)data, self->getWidth()*self->getHeight()*sizeof(FXColor));
      } else {
        return Qnil;
      }
    }
SWIGINTERN VALUE FXImage_pixel_string__SWIG_1(FXImage *self,FXlong offset,FXlong size){
      FXColor* data = self->getData();
      if (data) {
        FXlong maxsize = self->getWidth()*self->getHeight()*sizeof(FXColor);
        if( offset > maxsize || offset < 0 ){
          return Qnil;
        }
        if( offset+size > maxsize ){
          size = maxsize-offset;
        }else if( size < 0 ){
          return Qnil;
        }

        return rb_str_new((char*)data + offset, size);
      } else {
        return Qnil;
      }
    }

SWIGINTERN VALUE
SWIG_ruby_failed(void)
{
  return Qnil;
} 


/*@SWIG:/usr/share/swig2.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
{
  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_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_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 int
SWIG_AsVal_bool (VALUE obj, bool *val)
{
  if (obj == Qtrue) {
    if (val) *val = true;
    return SWIG_OK;
  } else if (obj == Qfalse) {
    if (val) *val = false;
    return SWIG_OK;
  } else {
    int res = 0;
    if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {    
      if (val) *val = res ? true : false;
      return SWIG_OK;
    }
  }  
  return SWIG_TypeError;
}


static swig_type_info *FXImage_dynamic_cast(void **ptr) {
    FXImage **ppImage = reinterpret_cast<FXImage **>(ptr);
    FXBMPImage *pBMPImage=dynamic_cast<FXBMPImage*>(*ppImage);
    if(pBMPImage){
      *ptr=reinterpret_cast<void*>(pBMPImage);
      return SWIG_TypeQuery("FXBMPImage *");
      }
    FXGIFImage *pGIFImage=dynamic_cast<FXGIFImage*>(*ppImage);
    if(pGIFImage){
      *ptr=reinterpret_cast<void*>(pGIFImage);
      return SWIG_TypeQuery("FXGIFImage *");
      }
    FXICOImage *pICOImage=dynamic_cast<FXICOImage*>(*ppImage);
    if(pICOImage){
      *ptr=reinterpret_cast<void*>(pICOImage);
      return SWIG_TypeQuery("FXICOImage *");
      }
    FXIcon *pIcon=dynamic_cast<FXIcon*>(*ppImage);
    if(pIcon){
      *ptr=reinterpret_cast<void*>(pIcon);
      return SWIG_TypeQuery("FXIcon *");
      }
    FXJPGImage *pJPGImage=dynamic_cast<FXJPGImage*>(*ppImage);
    if(pJPGImage){
      *ptr=reinterpret_cast<void*>(pJPGImage);
      return SWIG_TypeQuery("FXJPGImage *");
      }
    FXPCXImage *pPCXImage=dynamic_cast<FXPCXImage*>(*ppImage);
    if(pPCXImage){
      *ptr=reinterpret_cast<void*>(pPCXImage);
      return SWIG_TypeQuery("FXPCXImage *");
      }
    FXPNGImage *pPNGImage=dynamic_cast<FXPNGImage*>(*ppImage);
    if(pPNGImage){
      *ptr=reinterpret_cast<void*>(pPNGImage);
      return SWIG_TypeQuery("FXPNGImage *");
      }
    FXPPMImage *pPPMImage=dynamic_cast<FXPPMImage*>(*ppImage);
    if(pPPMImage){
      *ptr=reinterpret_cast<void*>(pPPMImage);
      return SWIG_TypeQuery("FXPPMImage *");
      }
    FXRGBImage *pRGBImage=dynamic_cast<FXRGBImage*>(*ppImage);
    if(pRGBImage){
      *ptr=reinterpret_cast<void*>(pRGBImage);
      return SWIG_TypeQuery("FXRGBImage *");
      }
    FXTGAImage *pTGAImage=dynamic_cast<FXTGAImage*>(*ppImage);
    if(pTGAImage){
      *ptr=reinterpret_cast<void*>(pTGAImage);
      return SWIG_TypeQuery("FXTGAImage *");
      }
    FXTIFImage *pTIFImage=dynamic_cast<FXTIFImage*>(*ppImage);
    if(pTIFImage){
      *ptr=reinterpret_cast<void*>(pTIFImage);
      return SWIG_TypeQuery("FXTIFImage *");
      }
    FXXBMImage *pXBMImage=dynamic_cast<FXXBMImage*>(*ppImage);
    if(pXBMImage){
      *ptr=reinterpret_cast<void*>(pXBMImage);
      return SWIG_TypeQuery("FXXBMImage *");
      }
    FXXPMImage *pXPMImage=dynamic_cast<FXXPMImage*>(*ppImage);
    if(pXPMImage){
      *ptr=reinterpret_cast<void*>(pXPMImage);
      return SWIG_TypeQuery("FXXPMImage *");
      }
    return 0;
}

SWIGINTERN VALUE FXBMPImage_fileExt(){
      return to_ruby(FXBMPImage::fileExt);
      }
SWIGINTERN VALUE FXBMPImage_mimeType(){
      return to_ruby(FXBMPImage::mimeType);
      }
SWIGINTERN FXBMPImage *new_FXBMPImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbBMPImage(a,pix,opts,w,h);
      }
SWIGINTERN VALUE FXGIFImage_fileExt(){
      return to_ruby(FXGIFImage::fileExt);
      }
SWIGINTERN VALUE FXGIFImage_mimeType(){
      return to_ruby(FXGIFImage::mimeType);
      }
SWIGINTERN FXGIFImage *new_FXGIFImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbGIFImage(a,pix,opts,w,h);
      }
SWIGINTERN VALUE FXICOImage_fileExt(){
      return to_ruby(FXICOImage::fileExt);
      }
SWIGINTERN VALUE FXICOImage_mimeType(){
      return to_ruby(FXICOImage::mimeType);
      }
SWIGINTERN FXICOImage *new_FXICOImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbICOImage(a,pix,opts,w,h);
      }
SWIGINTERN VALUE FXJPGImage_fileExt(){
      return to_ruby(FXJPGImage::fileExt);
      }
SWIGINTERN VALUE FXJPGImage_mimeType(){
      return to_ruby(FXJPGImage::mimeType);
      }
SWIGINTERN bool FXJPGImage_isSupported(){ return FXJPGImage::supported; }
SWIGINTERN FXJPGImage *new_FXJPGImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1,FXint q=75){
      return new FXRbJPGImage(a,pix,opts,w,h,q);
      }
SWIGINTERN VALUE FXPCXImage_fileExt(){
      return to_ruby(FXPCXImage::fileExt);
      }
SWIGINTERN VALUE FXPCXImage_mimeType(){
      return to_ruby(FXPCXImage::mimeType);
      }
SWIGINTERN FXPCXImage *new_FXPCXImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbPCXImage(a,pix,opts,w,h);
      }
SWIGINTERN VALUE FXPNGImage_fileExt(){
      return to_ruby(FXPNGImage::fileExt);
      }
SWIGINTERN VALUE FXPNGImage_mimeType(){
      return to_ruby(FXPNGImage::mimeType);
      }
SWIGINTERN bool FXPNGImage_isSupported(){ return FXPNGImage::supported; }
SWIGINTERN FXPNGImage *new_FXPNGImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbPNGImage(a,pix,opts,w,h);
      }
SWIGINTERN VALUE FXPPMImage_fileExt(){
      return to_ruby(FXPPMImage::fileExt);
      }
SWIGINTERN VALUE FXPPMImage_mimeType(){
      return to_ruby(FXPPMImage::mimeType);
      }
SWIGINTERN FXPPMImage *new_FXPPMImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbPPMImage(a,pix,opts,w,h);
      }
SWIGINTERN VALUE FXRGBImage_fileExt(){
      return to_ruby(FXRGBImage::fileExt);
      }
SWIGINTERN VALUE FXRGBImage_mimeType(){
      return to_ruby(FXRGBImage::mimeType);
      }
SWIGINTERN FXRGBImage *new_FXRGBImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbRGBImage(a,pix,opts,w,h);
      }
SWIGINTERN VALUE FXTGAImage_fileExt(){
      return to_ruby(FXTGAImage::fileExt);
      }
SWIGINTERN VALUE FXTGAImage_mimeType(){
      return to_ruby(FXTGAImage::mimeType);
      }
SWIGINTERN FXTGAImage *new_FXTGAImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbTGAImage(a,pix,opts,w,h);
      }
SWIGINTERN VALUE FXTIFImage_fileExt(){
      return to_ruby(FXTIFImage::fileExt);
      }
SWIGINTERN VALUE FXTIFImage_mimeType(){
      return to_ruby(FXTIFImage::mimeType);
      }
SWIGINTERN bool FXTIFImage_isSupported(){ return FXTIFImage::supported; }
SWIGINTERN FXTIFImage *new_FXTIFImage(FXApp *a,void const *pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbTIFImage(a,pix,opts,w,h);
      }

  /// Load a tiff from a stream
  VALUE fxloadTIF(FXStream& store){
    FXColor* data;
    FXint width;
    FXint height;
    FXushort codec;
    if(fxloadTIF(store,data,width,height,codec)){
      VALUE ary=rb_ary_new();
      rb_ary_push(ary,FXRbMakeColorArray(data,width,height));
      FXFREE(&data);
      rb_ary_push(ary,to_ruby(width));
      rb_ary_push(ary,to_ruby(height));
      rb_ary_push(ary,to_ruby(codec));
      return ary;
      }
    else{
      return Qnil;
      }
    }

SWIGINTERN VALUE FXXBMImage_fileExt(){
      return to_ruby(FXXBMImage::fileExt);
      }
SWIGINTERN VALUE FXXBMImage_mimeType(){
      return to_ruby(FXXBMImage::mimeType);
      }
SWIGINTERN FXXBMImage *new_FXXBMImage(FXApp *a,FXuchar const *pixels=0,FXuchar const *mask=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbXBMImage(a,pixels,mask,opts,w,h);
      }

  /**
   * Load an XBM (X Bitmap) from pixel array and mask array.
   * Upon successful return, the pixel array and size are returned.
   * If an error occurred, the pixel array is set to NULL.
   */
  VALUE fxloadXBM(const FXuchar *pix,const FXuchar *msk,FXint width,FXint height){
    FXColor* data;
    if(fxloadXBM(data,pix,msk,width,height)){
      VALUE obj=FXRbMakeColorArray(data,width,height);
      FXFREE(&data);
      return obj;
      }
    else{
      return Qnil;
      }
    }


  /**
   * Load an XBM (X Bitmap) file from a stream.
   * Upon successful return, the pixel array and size, and hot-spot are returned.
   * If an error occurred, the pixel array is set to NULL.
   */
  VALUE fxloadXBM(FXStream& store){
    FXColor* data;
    FXint width,height,hotx,hoty;
    if(fxloadXBM(store,data,width,height,hotx,hoty)){
      VALUE ary=rb_ary_new();
      rb_ary_push(ary,FXRbMakeColorArray(data,width,height));
      FXFREE(&data);
      rb_ary_push(ary,to_ruby(width));
      rb_ary_push(ary,to_ruby(height));
      rb_ary_push(ary,to_ruby(hotx));
      rb_ary_push(ary,to_ruby(hoty));
      return ary;
      }
    else{
      return Qnil;
      }
    }

SWIGINTERN VALUE FXXPMImage_fileExt(){
      return to_ruby(FXXPMImage::fileExt);
      }
SWIGINTERN VALUE FXXPMImage_mimeType(){
      return to_ruby(FXXPMImage::mimeType);
      }
SWIGINTERN FXXPMImage *new_FXXPMImage(FXApp *a,FXchar const **pix=0,FXuint opts=0,FXint w=1,FXint h=1){
      return new FXRbXPMImage(a,pix,opts,w,h);
      }
static swig_class SwigClassFXBitmap;

#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXBitmap_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXBitmap_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXBitmap);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXBitmap(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXBitmap *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXBitmap", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXBitmap *)new_FXBitmap(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_getData(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXuchar *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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap const *","getData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  result = (FXuchar *)((FXBitmap const *)arg1)->getData();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_getOptions(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap const *","getOptions", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  result = (FXuint)((FXBitmap const *)arg1)->getOptions();
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_setOptions(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","setOptions", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  (arg1)->setOptions(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_getPixel(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXbool 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap const *","getPixel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  result = (FXbool)((FXBitmap const *)arg1)->getPixel(arg2,arg3);
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_setPixel(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXbool arg4 ;
  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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","setPixel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = to_FXbool(argv[2]);
  (arg1)->setPixel(arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_save(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(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);
  FXBitmap_save((FXBitmap const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_load(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(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);
  FXBitmap_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_create(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  FXBitmap_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_detach(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  FXBitmap_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_destroy(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  FXBitmap_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_resize(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXBitmap_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_restore(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  FXBitmap_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_render(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  FXBitmap_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_release(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  FXBitmap_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_savePixels(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXBitmap_savePixels((FXBitmap const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXBitmap_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_scale(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXBitmap_scale(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_mirror(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXbool arg2 ;
  FXbool 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = to_FXbool(argv[0]);
  arg3 = to_FXbool(argv[1]);
  FXBitmap_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_rotate(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXBitmap_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_crop(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXbool arg6 = (FXbool) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXbool(argv[4]);
  }
  FXBitmap_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_fill(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXbool 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  arg2 = to_FXbool(argv[0]);
  FXBitmap_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_setData__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXuchar *arg2 = (FXuchar *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","setData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXuchar *","setData", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXuchar * >(argp2);
  if (argc > 1) {
    arg3 = NUM2UINT(argv[1]);
  }
  FXBitmap_setData(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBitmap_setData__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXBitmap *arg1 = (FXBitmap *) 0 ;
  FXuchar *arg2 = (FXuchar *) 0 ;
  FXuint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBitmap *","setData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBitmap * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXuchar *","setData", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXuchar * >(argp2);
  arg3 = NUM2UINT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  FXBitmap_setData(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXBitmap_setData(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[6];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 6) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if ((argc >= 2) && (argc <= 3)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXBitmap, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        if (argc <= 2) {
          return _wrap_FXBitmap_setData__SWIG_0(nargs, args, self);
        }
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          return _wrap_FXBitmap_setData__SWIG_0(nargs, args, self);
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXBitmap, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            {
              _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
            }
            if (_v) {
              return _wrap_FXBitmap_setData__SWIG_1(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "setData", 
    "    void setData(FXuchar *pix, FXuint opts)\n"
    "    void setData(FXuchar *pix, FXuint opts, FXint w, FXint h)\n");
  
  return Qnil;
}


static swig_class SwigClassFXMemoryBuffer;

#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXMemoryBuffer_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXMemoryBuffer_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXMemoryBuffer);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXMemoryBuffer(int argc, VALUE *argv, VALUE self) {
  FXColor *arg1 = (FXColor *) 0 ;
  FXuint arg2 ;
  FXMemoryBuffer *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  {
    Check_Type(argv[0], T_ARRAY);
    FXMALLOC(&arg1,FXColor,RARRAY_LEN(argv[0]));
    arg2=static_cast<FXuint>(RARRAY_LEN(argv[0]));
    for(FXint i=0; i<arg2; i++){
      arg1[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[0],i)));
    }
  }
  result = (FXMemoryBuffer *)new FXMemoryBuffer(arg1,arg2);
  DATA_PTR(self) = result;
  {
    FXFREE(&arg1);
  }
  return self;
fail:
  {
    FXFREE(&arg1);
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXMemoryBuffer_getSize(int argc, VALUE *argv, VALUE self) {
  FXMemoryBuffer *arg1 = (FXMemoryBuffer *) 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_FXMemoryBuffer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMemoryBuffer const *","getSize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXMemoryBuffer * >(argp1);
  result = (FXuint)((FXMemoryBuffer const *)arg1)->getSize();
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXMemoryBuffer_getData(int argc, VALUE *argv, VALUE self) {
  FXMemoryBuffer *arg1 = (FXMemoryBuffer *) 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_FXMemoryBuffer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMemoryBuffer const *","getData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXMemoryBuffer * >(argp1);
  result = (VALUE)FXMemoryBuffer_getData((FXMemoryBuffer const *)arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}



/*
  Document-method: Image::FXMemoryBuffer.[]

  call-seq:
    [](i) -> FXColor

Element accessor/slicing.
*/
SWIGINTERN VALUE
_wrap_FXMemoryBuffer___getitem__(int argc, VALUE *argv, VALUE self) {
  FXMemoryBuffer *arg1 = (FXMemoryBuffer *) 0 ;
  FXuint arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXColor 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_FXMemoryBuffer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMemoryBuffer const *","__getitem__", 1, self )); 
  }
  arg1 = reinterpret_cast< FXMemoryBuffer * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  result = (FXColor)FXMemoryBuffer___getitem__((FXMemoryBuffer const *)arg1,arg2);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}



/*
  Document-method: Image::FXMemoryBuffer.[]=

  call-seq:
    []=(i, value) -> FXColor

Element setter/slicing.
*/
SWIGINTERN VALUE
_wrap_FXMemoryBuffer___setitem__(int argc, VALUE *argv, VALUE self) {
  FXMemoryBuffer *arg1 = (FXMemoryBuffer *) 0 ;
  FXuint arg2 ;
  FXColor arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXColor 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_FXMemoryBuffer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXMemoryBuffer *","__setitem__", 1, self )); 
  }
  arg1 = reinterpret_cast< FXMemoryBuffer * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  arg3 = to_FXColor(argv[1]);
  result = (FXColor)FXMemoryBuffer___setitem__(arg1,arg2,arg3);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_FXMemoryBuffer(FXMemoryBuffer *arg1) {
    delete arg1;
}

static swig_class SwigClassFXImage;

#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  VALUE arg2 = (VALUE) Qnil ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    arg2 = argv[1];
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXImage *)new_FXImage(arg1,arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_getData(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXMemoryBuffer *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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","getData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (FXMemoryBuffer *)FXImage_getData((FXImage const *)arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMemoryBuffer, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_getOptions(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","getOptions", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (FXuint)((FXImage const *)arg1)->getOptions();
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_setOptions(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","setOptions", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  (arg1)->setOptions(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_setPixels(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  VALUE arg2 = (VALUE) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  VALUE arg4 = (VALUE) Qnil ;
  VALUE arg5 = (VALUE) Qnil ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","setPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = argv[0];
  if (argc > 1) {
    arg3 = NUM2UINT(argv[1]);
  }
  if (argc > 2) {
    arg4 = argv[2];
  }
  if (argc > 3) {
    arg5 = argv[3];
  }
  FXImage_setPixels(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_pixels(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","pixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (VALUE)FXImage_pixels(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_pixel_string__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","pixel_string", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (VALUE)FXImage_pixel_string__SWIG_0(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_pixel_string__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXlong arg2 ;
  FXlong 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","pixel_string", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = static_cast<FXlong>(NUM2LONG(argv[0]));
  arg3 = static_cast<FXlong>(NUM2LONG(argv[1]));
  result = (VALUE)FXImage_pixel_string__SWIG_1(arg1,arg2,arg3);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXImage_pixel_string(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 == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXImage, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_FXImage_pixel_string__SWIG_0(nargs, args, self);
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXImage, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          return _wrap_FXImage_pixel_string__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "pixel_string", 
    "    VALUE pixel_string()\n"
    "    VALUE pixel_string(FXlong offset, FXlong size)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_getPixel(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXColor 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","getPixel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  result = (FXColor)((FXImage const *)arg1)->getPixel(arg2,arg3);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_setPixel(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXColor arg4 ;
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","setPixel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = to_FXColor(argv[2]);
  (arg1)->setPixel(arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_hasAlphaq___(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","hasAlpha", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (bool)((FXImage const *)arg1)->hasAlpha();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_save(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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);
  FXImage_save((FXImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_load(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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);
  FXImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_create(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_detach(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_resize(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_restore(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_render(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_release(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_scale(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_crop(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_fill(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_fade(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_blend(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXImage_savePixels((FXImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXBMPImage;

SWIGINTERN VALUE
_wrap_FXBMPImage_fileExt(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)FXBMPImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_mimeType(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)FXBMPImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXBMPImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXBMPImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXBMPImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXBMPImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXBMPImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXBMPImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXBMPImage *)new_FXBMPImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_save(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(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);
  FXBMPImage_save((FXBMPImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_load(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(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);
  FXBMPImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_create(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  FXBMPImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_detach(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  FXBMPImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  FXBMPImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_resize(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXBMPImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_restore(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  FXBMPImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_render(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  FXBMPImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_release(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  FXBMPImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_scale(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXBMPImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXBMPImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXBMPImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_crop(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXBMPImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_fill(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXBMPImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_fade(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXBMPImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXBMPImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXBMPImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXBMPImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXBMPImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXBMPImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_blend(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXBMPImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXBMPImage_savePixels((FXBMPImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXBMPImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXBMPImage *arg1 = (FXBMPImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXBMPImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXBMPImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXBMPImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXBMPImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXGIFImage;

SWIGINTERN VALUE
_wrap_FXGIFImage_fileExt(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)FXGIFImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_mimeType(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)FXGIFImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXGIFImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXGIFImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXGIFImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXGIFImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXGIFImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXGIFImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXGIFImage *)new_FXGIFImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_save(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(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);
  FXGIFImage_save((FXGIFImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_load(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(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);
  FXGIFImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_create(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  FXGIFImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_detach(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  FXGIFImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  FXGIFImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_resize(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXGIFImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_restore(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  FXGIFImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_render(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  FXGIFImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_release(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  FXGIFImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_scale(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXGIFImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXGIFImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXGIFImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_crop(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXGIFImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_fill(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXGIFImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_fade(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXGIFImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXGIFImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXGIFImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXGIFImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXGIFImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXGIFImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_blend(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXGIFImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXGIFImage_savePixels((FXGIFImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXGIFImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXGIFImage *arg1 = (FXGIFImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXGIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGIFImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGIFImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXGIFImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXICOImage;

SWIGINTERN VALUE
_wrap_FXICOImage_fileExt(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)FXICOImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_mimeType(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)FXICOImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXICOImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXICOImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXICOImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXICOImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXICOImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXICOImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXICOImage *)new_FXICOImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_save(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(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);
  FXICOImage_save((FXICOImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_load(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(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);
  FXICOImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_create(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  FXICOImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_detach(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  FXICOImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  FXICOImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_resize(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXICOImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_restore(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  FXICOImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_render(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  FXICOImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_release(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  FXICOImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_scale(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXICOImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXICOImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXICOImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_crop(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXICOImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_fill(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXICOImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_fade(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXICOImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXICOImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXICOImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXICOImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXICOImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXICOImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_blend(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXICOImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXICOImage_savePixels((FXICOImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXICOImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXICOImage *arg1 = (FXICOImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXICOImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXICOImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXICOImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXICOImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXJPGImage;

SWIGINTERN VALUE
_wrap_FXJPGImage_fileExt(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)FXJPGImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_mimeType(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)FXJPGImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_supported_Sq_(int argc, VALUE *argv, VALUE self) {
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (bool)FXJPGImage_isSupported();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXJPGImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXJPGImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXJPGImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXJPGImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  FXint arg6 = (FXint) 75 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXJPGImage *result = 0 ;
  
  if ((argc < 1) || (argc > 6)) {
    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 *","FXJPGImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  if (argc > 5) {
    arg6 = NUM2INT(argv[5]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXJPGImage *)new_FXJPGImage(arg1,(void const *)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
_wrap_FXJPGImage_setQuality(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","setQuality", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  (arg1)->setQuality(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_getQuality(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage const *","getQuality", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  result = (FXint)((FXJPGImage const *)arg1)->getQuality();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_save(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(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);
  FXJPGImage_save((FXJPGImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_load(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(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);
  FXJPGImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_create(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  FXJPGImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_detach(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  FXJPGImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  FXJPGImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_resize(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXJPGImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_restore(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  FXJPGImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_render(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  FXJPGImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_release(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  FXJPGImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_scale(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXJPGImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXJPGImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXJPGImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_crop(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXJPGImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_fill(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXJPGImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_fade(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXJPGImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXJPGImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXJPGImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXJPGImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXJPGImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXJPGImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_blend(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXJPGImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXJPGImage_savePixels((FXJPGImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXJPGImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXJPGImage *arg1 = (FXJPGImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXJPGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXJPGImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXPCXImage;

SWIGINTERN VALUE
_wrap_FXPCXImage_fileExt(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)FXPCXImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_mimeType(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)FXPCXImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXPCXImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXPCXImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXPCXImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXPCXImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXPCXImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXPCXImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXPCXImage *)new_FXPCXImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_save(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(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);
  FXPCXImage_save((FXPCXImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_load(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(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);
  FXPCXImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_create(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  FXPCXImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_detach(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  FXPCXImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  FXPCXImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_resize(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXPCXImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_restore(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  FXPCXImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_render(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  FXPCXImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_release(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  FXPCXImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_scale(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXPCXImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXPCXImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXPCXImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_crop(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXPCXImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_fill(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXPCXImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_fade(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXPCXImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXPCXImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXPCXImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXPCXImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXPCXImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXPCXImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_blend(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXPCXImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXPCXImage_savePixels((FXPCXImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPCXImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXPCXImage *arg1 = (FXPCXImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXPCXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPCXImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPCXImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXPCXImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXPNGImage;

SWIGINTERN VALUE
_wrap_FXPNGImage_fileExt(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)FXPNGImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_mimeType(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)FXPNGImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_supported_Sq_(int argc, VALUE *argv, VALUE self) {
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (bool)FXPNGImage_isSupported();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXPNGImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXPNGImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXPNGImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXPNGImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXPNGImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXPNGImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXPNGImage *)new_FXPNGImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_save(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(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);
  FXPNGImage_save((FXPNGImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_load(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(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);
  FXPNGImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_create(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  FXPNGImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_detach(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  FXPNGImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  FXPNGImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_resize(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXPNGImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_restore(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  FXPNGImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_render(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  FXPNGImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_release(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  FXPNGImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_scale(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXPNGImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXPNGImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXPNGImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_crop(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXPNGImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_fill(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXPNGImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_fade(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXPNGImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXPNGImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXPNGImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXPNGImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXPNGImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXPNGImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_blend(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXPNGImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXPNGImage_savePixels((FXPNGImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPNGImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXPNGImage *arg1 = (FXPNGImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXPNGImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPNGImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPNGImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXPNGImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXPPMImage;

SWIGINTERN VALUE
_wrap_FXPPMImage_fileExt(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)FXPPMImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_mimeType(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)FXPPMImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXPPMImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXPPMImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXPPMImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXPPMImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXPPMImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXPPMImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXPPMImage *)new_FXPPMImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_save(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(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);
  FXPPMImage_save((FXPPMImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_load(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(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);
  FXPPMImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_create(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  FXPPMImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_detach(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  FXPPMImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  FXPPMImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_resize(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXPPMImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_restore(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  FXPPMImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_render(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  FXPPMImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_release(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  FXPPMImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_scale(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXPPMImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXPPMImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXPPMImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_crop(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXPPMImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_fill(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXPPMImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_fade(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXPPMImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXPPMImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXPPMImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXPPMImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXPPMImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXPPMImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_blend(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXPPMImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXPPMImage_savePixels((FXPPMImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPPMImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXPPMImage *arg1 = (FXPPMImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXPPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPPMImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPPMImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXPPMImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXRGBImage;

SWIGINTERN VALUE
_wrap_FXRGBImage_fileExt(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)FXRGBImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_mimeType(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)FXRGBImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXRGBImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXRGBImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXRGBImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXRGBImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXRGBImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXRGBImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXRGBImage *)new_FXRGBImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_save(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(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);
  FXRGBImage_save((FXRGBImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_load(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(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);
  FXRGBImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_create(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  FXRGBImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_detach(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  FXRGBImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  FXRGBImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_resize(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXRGBImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_restore(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  FXRGBImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_render(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  FXRGBImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_release(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  FXRGBImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_scale(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXRGBImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXRGBImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXRGBImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_crop(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXRGBImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_fill(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXRGBImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_fade(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXRGBImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXRGBImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXRGBImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXRGBImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXRGBImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXRGBImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_blend(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXRGBImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXRGBImage_savePixels((FXRGBImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXRGBImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXRGBImage *arg1 = (FXRGBImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXRGBImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRGBImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXRGBImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXRGBImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXTGAImage;

SWIGINTERN VALUE
_wrap_FXTGAImage_fileExt(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)FXTGAImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_mimeType(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)FXTGAImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXTGAImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXTGAImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXTGAImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXTGAImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXTGAImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXTGAImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXTGAImage *)new_FXTGAImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_save(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(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);
  FXTGAImage_save((FXTGAImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_load(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(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);
  FXTGAImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_create(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  FXTGAImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_detach(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  FXTGAImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  FXTGAImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_resize(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXTGAImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_restore(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  FXTGAImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_render(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  FXTGAImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_release(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  FXTGAImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_scale(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXTGAImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXTGAImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXTGAImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_crop(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXTGAImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_fill(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXTGAImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_fade(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXTGAImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXTGAImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXTGAImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXTGAImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXTGAImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXTGAImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_blend(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXTGAImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXTGAImage_savePixels((FXTGAImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTGAImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXTGAImage *arg1 = (FXTGAImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXTGAImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTGAImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTGAImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXTGAImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXTIFImage;

SWIGINTERN VALUE
_wrap_FXTIFImage_fileExt(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)FXTIFImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_mimeType(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)FXTIFImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_supported_Sq_(int argc, VALUE *argv, VALUE self) {
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (bool)FXTIFImage_isSupported();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXTIFImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXTIFImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXTIFImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXTIFImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXTIFImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXTIFImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXTIFImage *)new_FXTIFImage(arg1,(void const *)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_setCodec(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","setCodec", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  (arg1)->setCodec(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_getCodec(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage const *","getCodec", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  result = (FXuint)((FXTIFImage const *)arg1)->getCodec();
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_save(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(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);
  FXTIFImage_save((FXTIFImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_load(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(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);
  FXTIFImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_create(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  FXTIFImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_detach(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  FXTIFImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  FXTIFImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_resize(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXTIFImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_restore(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  FXTIFImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_render(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  FXTIFImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_release(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  FXTIFImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_scale(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXTIFImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXTIFImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXTIFImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_crop(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXTIFImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_fill(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXTIFImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_fade(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXTIFImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXTIFImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXTIFImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXTIFImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXTIFImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXTIFImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_blend(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXTIFImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXTIFImage_savePixels((FXTIFImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXTIFImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXTIFImage *arg1 = (FXTIFImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXTIFImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTIFImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTIFImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXTIFImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_fxloadTIF(int argc, VALUE *argv, VALUE self) {
  FXStream *arg1 = 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_FXStream,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStream &","fxloadTIF", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","fxloadTIF", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< FXStream * >(argp1);
  result = (VALUE)fxloadTIF(*arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_fxsaveTIF(int argc, VALUE *argv, VALUE self) {
  FXStream *arg1 = 0 ;
  FXColor *arg2 = (FXColor *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXushort arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool 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(argv[0], &argp1, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStream &","fxsaveTIF", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","fxsaveTIF", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< FXStream * >(argp1);
  {
    arg2=NULL;
    if(argv[1]!=Qnil){
      Check_Type(argv[1],T_ARRAY);
      if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
        for(long i=0; i<RARRAY_LEN(argv[1]); i++){
          arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i)));
        }
      }
    }
  }
  arg3 = NUM2INT(argv[2]);
  arg4 = NUM2INT(argv[3]);
  arg5 = NUM2UINT(argv[4]);
  result = (bool)fxsaveTIF(*arg1,(unsigned int const *)arg2,arg3,arg4,arg5);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  FXFREE(&arg2);
  return vresult;
fail:
  FXFREE(&arg2);
  return Qnil;
}


static swig_class SwigClassFXXBMImage;

SWIGINTERN VALUE
_wrap_FXXBMImage_fileExt(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)FXXBMImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_mimeType(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)FXXBMImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXXBMImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXXBMImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXXBMImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXXBMImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  FXuchar *arg2 = (FXuchar *) 0 ;
  FXuchar *arg3 = (FXuchar *) 0 ;
  FXuint arg4 = (FXuint) 0 ;
  FXint arg5 = (FXint) 1 ;
  FXint arg6 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  FXXBMImage *result = 0 ;
  
  if ((argc < 1) || (argc > 6)) {
    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 *","FXXBMImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_unsigned_char, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXuchar const *","FXXBMImage", 2, argv[1] )); 
    }
    arg2 = reinterpret_cast< FXuchar * >(argp2);
  }
  if (argc > 2) {
    res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_char, 0 |  0 );
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXuchar const *","FXXBMImage", 3, argv[2] )); 
    }
    arg3 = reinterpret_cast< FXuchar * >(argp3);
  }
  if (argc > 3) {
    arg4 = NUM2UINT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  if (argc > 5) {
    arg6 = NUM2INT(argv[5]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXXBMImage *)new_FXXBMImage(arg1,(unsigned char const *)arg2,(unsigned char const *)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
_wrap_FXXBMImage_save(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(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);
  FXXBMImage_save((FXXBMImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_load(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(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);
  FXXBMImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_create(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  FXXBMImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_detach(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  FXXBMImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  FXXBMImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_resize(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXXBMImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_restore(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  FXXBMImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_render(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  FXXBMImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_release(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  FXXBMImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_scale(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXXBMImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXXBMImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXXBMImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_crop(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXXBMImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_fill(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXXBMImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_fade(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXXBMImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXXBMImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXXBMImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXXBMImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXXBMImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXXBMImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_blend(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXXBMImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXXBMImage_savePixels((FXXBMImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXBMImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXXBMImage *arg1 = (FXXBMImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXXBMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXBMImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXBMImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXXBMImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_fxloadXBM__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXuchar *arg1 = (FXuchar *) 0 ;
  FXuchar *arg2 = (FXuchar *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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(argv[0], &argp1,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXuchar const *","fxloadXBM", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXuchar * >(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXuchar const *","fxloadXBM", 2, argv[1] )); 
  }
  arg2 = reinterpret_cast< FXuchar * >(argp2);
  arg3 = NUM2INT(argv[2]);
  arg4 = NUM2INT(argv[3]);
  result = (VALUE)fxloadXBM((unsigned char const *)arg1,(unsigned char const *)arg2,arg3,arg4);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_fxloadXBM__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXStream *arg1 = 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_FXStream,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStream &","fxloadXBM", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","fxloadXBM", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< FXStream * >(argp1);
  result = (VALUE)fxloadXBM(*arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_fxloadXBM(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 == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXStream, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_fxloadXBM__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            return _wrap_fxloadXBM__SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "fxloadXBM", 
    "    VALUE fxloadXBM(FXuchar const *pix, FXuchar const *msk, FXint width, FXint height)\n"
    "    VALUE fxloadXBM(FXStream &store)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_fxsaveXBM(int argc, VALUE *argv, VALUE self) {
  FXStream *arg1 = 0 ;
  FXColor *arg2 = (FXColor *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 = (FXint) -1 ;
  FXint arg6 = (FXint) -1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStream &","fxsaveXBM", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","fxsaveXBM", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< FXStream * >(argp1);
  {
    arg2=NULL;
    if(argv[1]!=Qnil){
      Check_Type(argv[1],T_ARRAY);
      if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
        for(long i=0; i<RARRAY_LEN(argv[1]); i++){
          arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i)));
        }
      }
    }
  }
  arg3 = NUM2INT(argv[2]);
  arg4 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  if (argc > 5) {
    arg6 = NUM2INT(argv[5]);
  }
  result = (bool)fxsaveXBM(*arg1,(unsigned int const *)arg2,arg3,arg4,arg5,arg6);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  FXFREE(&arg2);
  return vresult;
fail:
  FXFREE(&arg2);
  return Qnil;
}


SWIGINTERN VALUE
_wrap_fxsavePS(int argc, VALUE *argv, VALUE self) {
  FXStream *arg1 = 0 ;
  FXColor *arg2 = (FXColor *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 = (FXint) 612 ;
  FXint arg6 = (FXint) 792 ;
  FXint arg7 = (FXint) 35 ;
  FXbool arg8 = (FXbool) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStream &","fxsavePS", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","fxsavePS", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< FXStream * >(argp1);
  {
    arg2=NULL;
    if(argv[1]!=Qnil){
      Check_Type(argv[1],T_ARRAY);
      if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
        for(long i=0; i<RARRAY_LEN(argv[1]); i++){
          arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i)));
        }
      }
    }
  }
  arg3 = NUM2INT(argv[2]);
  arg4 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  if (argc > 5) {
    arg6 = NUM2INT(argv[5]);
  }
  if (argc > 6) {
    arg7 = NUM2INT(argv[6]);
  }
  if (argc > 7) {
    arg8 = to_FXbool(argv[7]);
  }
  result = (bool)fxsavePS(*arg1,(unsigned int const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  FXFREE(&arg2);
  return vresult;
fail:
  FXFREE(&arg2);
  return Qnil;
}


SWIGINTERN VALUE
_wrap_fxcheckXBM(int argc, VALUE *argv, VALUE self) {
  FXStream *arg1 = 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(argv[0], &argp1, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStream &","fxcheckXBM", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","fxcheckXBM", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< FXStream * >(argp1);
  result = (bool)fxcheckXBM(*arg1);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


static swig_class SwigClassFXXPMImage;

SWIGINTERN VALUE
_wrap_FXXPMImage_fileExt(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)FXXPMImage_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_mimeType(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)FXXPMImage_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_FXXPMImage_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_FXXPMImage_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_FXXPMImage);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_FXXPMImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  FXchar **arg2 = (FXchar **) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXXPMImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXXPMImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      arg2 = NULL;
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_ARRAY);
        if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[1]))) {
          for (long i = 0; i < RARRAY_LEN(argv[1]); i++) {
            VALUE e = rb_ary_entry(argv[1], i);
            arg2[i] = (FXchar *) StringValuePtr(e);
          }
        }
      }
    }
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXXPMImage *)new_FXXPMImage(arg1,(char const **)arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  FXFREE(&arg2);
  return self;
fail:
  FXFREE(&arg2);
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_save(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(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);
  FXXPMImage_save((FXXPMImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_load(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(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);
  FXXPMImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_create(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  FXXPMImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_detach(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  FXXPMImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  FXXPMImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_resize(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXXPMImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_restore(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  FXXPMImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_render(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  FXXPMImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_release(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  FXXPMImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_scale(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXXPMImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXXPMImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXXPMImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_crop(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXXPMImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_fill(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXXPMImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_fade(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXXPMImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXXPMImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXXPMImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXXPMImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXColor arg2 ;
  FXColor 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXXPMImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXXPMImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_blend(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXXPMImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXXPMImage_savePixels((FXXPMImage const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXXPMImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXXPMImage *arg1 = (FXXPMImage *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  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_FXXPMImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXXPMImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXXPMImage * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXXPMImage_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}



/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

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_FXRGBImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXRGBImage *) 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_FXBMPImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXBMPImage *) 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_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_FXPCXImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXPCXImage *) 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_FXTGAImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXTGAImage *) 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_FXICOImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXICOImage *) 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_FXPPMImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXPPMImage *) x));
}
static void *_p_FXXBMImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXXBMImage *) x));
}
static void *_p_FXXPMImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXXPMImage *) 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_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_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_FXImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *) ((FXImage *) 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_FXJPGImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXJPGImage *) x));
}
static void *_p_FXPNGImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXPNGImage *) x));
}
static void *_p_FXGIFImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXGIFImage *) x));
}
static void *_p_FXTIFImageTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *)(FXImage *) ((FXTIFImage *) 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_FXBitmapTo_p_FXId(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXId *) (FXDrawable *) ((FXBitmap *) 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_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_FXRGBImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXRGBImage *) 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_FXBMPImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXBMPImage *) 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_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_FXPCXImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXPCXImage *) 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_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_FXTGAImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXTGAImage *) 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_FXICOImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXICOImage *) 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_FXPPMImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXPPMImage *) x));
}
static void *_p_FXXBMImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXXBMImage *) x));
}
static void *_p_FXXPMImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXXPMImage *) 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_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_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_FXImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *) ((FXImage *) 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_FXJPGImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXJPGImage *) x));
}
static void *_p_FXPNGImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXPNGImage *) x));
}
static void *_p_FXGIFImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXGIFImage *) x));
}
static void *_p_FXTIFImageTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *)(FXImage *) ((FXTIFImage *) 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_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_FXBitmapTo_p_FXObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXObject *) (FXId *)(FXDrawable *) ((FXBitmap *) 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_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_FXRGBImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXRGBImage *) 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_FXBMPImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXBMPImage *) 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_FXPopupTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *) ((FXPopup *) x));
}
static void *_p_FXPCXImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXPCXImage *) 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_FXTGAImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXTGAImage *) 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_FXICOImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXICOImage *) 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_FXPPMImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXPPMImage *) x));
}
static void *_p_FXXBMImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXXBMImage *) x));
}
static void *_p_FXXPMImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXXPMImage *) 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_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_FXImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *)  ((FXImage *) 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_FXJPGImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXJPGImage *) x));
}
static void *_p_FXPNGImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXPNGImage *) x));
}
static void *_p_FXGIFImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXGIFImage *) x));
}
static void *_p_FXTIFImageTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXImage *) ((FXTIFImage *) 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_FXBitmapTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *)  ((FXBitmap *) 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_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_FXBMPImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXBMPImage *) x));
}
static void *_p_FXPPMImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXPPMImage *) x));
}
static void *_p_FXRGBImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXRGBImage *) x));
}
static void *_p_FXXBMImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXXBMImage *) x));
}
static void *_p_FXXPMImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXXPMImage *) x));
}
static void *_p_FXGIFImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXGIFImage *) x));
}
static void *_p_FXTIFImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXTIFImage *) x));
}
static void *_p_FXJPGImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXJPGImage *) x));
}
static void *_p_FXPCXImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXPCXImage *) x));
}
static void *_p_FXPNGImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXPNGImage *) x));
}
static void *_p_FXICOImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXICOImage *) x));
}
static void *_p_FXTGAImageTo_p_FXImage(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXImage *)  ((FXTGAImage *) x));
}
static swig_type_info _swigt__p_FXApp = {"_p_FXApp", "FXApp *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXBMPImage = {"_p_FXBMPImage", "FXBMPImage *", 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_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_FXShutterItem = {"_p_FXShutterItem", 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_FXTabBar = {"_p_FXTabBar", 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_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_FXDriveBox = {"_p_FXDriveBox", 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_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_FXPopup = {"_p_FXPopup", 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_FXSplitter = {"_p_FXSplitter", 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_FXSpring = {"_p_FXSpring", 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_FXTabBook = {"_p_FXTabBook", 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_FXShutter = {"_p_FXShutter", 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_FXComposite = {"_p_FXComposite", 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_FXRealSlider = {"_p_FXRealSlider", 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_FXDockSite = {"_p_FXDockSite", 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_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_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_FXCanvas = {"_p_FXCanvas", 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_FXComboBox = {"_p_FXComboBox", 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_FXStatusBar = {"_p_FXStatusBar", 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_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_FXStatusLine = {"_p_FXStatusLine", 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_FXMainWindow = {"_p_FXMainWindow", 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_FXRootWindow = {"_p_FXRootWindow", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_FXWindow = {"_p_FXWindow", 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_FXDockBar = {"_p_FXDockBar", 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_FXScrollArea = {"_p_FXScrollArea", 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_FXVerticalFrame = {"_p_FXVerticalFrame", 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_FXImageView = {"_p_FXImageView", 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_FXColorSelector = {"_p_FXColorSelector", 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_FXDirSelector = {"_p_FXDirSelector", 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_FXToolBar = {"_p_FXToolBar", 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_FXGIFImage = {"_p_FXGIFImage", "FXGIFImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXICOImage = {"_p_FXICOImage", "FXICOImage *", 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_FXFont = {"_p_FXFont", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_FXVisual = {"_p_FXVisual", 0, 0, 0, 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_FXImage = {"_p_FXImage", "FXImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXJPGImage = {"_p_FXJPGImage", "FXJPGImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXMemoryBuffer = {"_p_FXMemoryBuffer", "FXMemoryBuffer *", 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_FXPCXImage = {"_p_FXPCXImage", "FXPCXImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXPNGImage = {"_p_FXPNGImage", "FXPNGImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXPPMImage = {"_p_FXPPMImage", "FXPPMImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXRGBImage = {"_p_FXRGBImage", "FXRGBImage *", 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_FXTGAImage = {"_p_FXTGAImage", "FXTGAImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXTIFImage = {"_p_FXTIFImage", "FXTIFImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXXBMImage = {"_p_FXXBMImage", "FXXBMImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXXPMImage = {"_p_FXXPMImage", "FXXPMImage *", 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_p_char = {"_p_p_char", "char **|FXchar **", 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_FXBMPImage,
  &_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_FXFileDict,
  &_swigt__p_FXFileSelector,
  &_swigt__p_FXFileStream,
  &_swigt__p_FXFont,
  &_swigt__p_FXFontSelector,
  &_swigt__p_FXFrame,
  &_swigt__p_FXGIFCursor,
  &_swigt__p_FXGIFImage,
  &_swigt__p_FXGradientBar,
  &_swigt__p_FXGroupBox,
  &_swigt__p_FXHeader,
  &_swigt__p_FXHeaderItem,
  &_swigt__p_FXHorizontalFrame,
  &_swigt__p_FXHorizontalSeparator,
  &_swigt__p_FXICOImage,
  &_swigt__p_FXIconDict,
  &_swigt__p_FXId,
  &_swigt__p_FXImage,
  &_swigt__p_FXImageFrame,
  &_swigt__p_FXImageView,
  &_swigt__p_FXJPGImage,
  &_swigt__p_FXKnob,
  &_swigt__p_FXListBox,
  &_swigt__p_FXMainWindow,
  &_swigt__p_FXMatrix,
  &_swigt__p_FXMemoryBuffer,
  &_swigt__p_FXMemoryStream,
  &_swigt__p_FXObject,
  &_swigt__p_FXPCXImage,
  &_swigt__p_FXPNGImage,
  &_swigt__p_FXPPMImage,
  &_swigt__p_FXPacker,
  &_swigt__p_FXPopup,
  &_swigt__p_FXProgressBar,
  &_swigt__p_FXRGBImage,
  &_swigt__p_FXRealSlider,
  &_swigt__p_FXRealSpinner,
  &_swigt__p_FXRecentFiles,
  &_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_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_FXTGAImage,
  &_swigt__p_FXTIFImage,
  &_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_FXVerticalFrame,
  &_swigt__p_FXVerticalSeparator,
  &_swigt__p_FXVisual,
  &_swigt__p_FXWindow,
  &_swigt__p_FXXBMImage,
  &_swigt__p_FXXPMImage,
  &_swigt__p_char,
  &_swigt__p_double,
  &_swigt__p_float,
  &_swigt__p_int,
  &_swigt__p_long,
  &_swigt__p_p_char,
  &_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_FXBMPImage[] = {  {&_swigt__p_FXBMPImage, 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_FXGradientBar[] = {{&_swigt__p_FXGradientBar, 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_FXColorBar[] = {{&_swigt__p_FXColorBar, 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_FXSwitcher[] = {{&_swigt__p_FXSwitcher, 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_FXDriveBox[] = {{&_swigt__p_FXDriveBox, 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_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_FXPopup[] = {{&_swigt__p_FXPopup, 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_FXSplitter[] = {{&_swigt__p_FXSplitter, 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_FXSpring[] = {{&_swigt__p_FXSpring, 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_FXTabBook[] = {{&_swigt__p_FXTabBook, 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_FXShutter[] = {{&_swigt__p_FXShutter, 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_FXComposite[] = {{&_swigt__p_FXComposite, 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_FXRealSlider[] = {{&_swigt__p_FXRealSlider, 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_FXDockSite[] = {{&_swigt__p_FXDockSite, 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_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_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_FXCanvas[] = {{&_swigt__p_FXCanvas, 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_FXComboBox[] = {{&_swigt__p_FXComboBox, 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_FXStatusBar[] = {{&_swigt__p_FXStatusBar, 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_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_FXStatusLine[] = {{&_swigt__p_FXStatusLine, 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_FXMainWindow[] = {{&_swigt__p_FXMainWindow, 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_FXRootWindow[] = {{&_swigt__p_FXRootWindow, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXWindow[] = {{&_swigt__p_FXWindow, 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_FXDockBar[] = {{&_swigt__p_FXDockBar, 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_FXScrollArea[] = {{&_swigt__p_FXScrollArea, 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_FXVerticalFrame[] = {{&_swigt__p_FXVerticalFrame, 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_FXImageView[] = {{&_swigt__p_FXImageView, 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_FXColorSelector[] = {{&_swigt__p_FXColorSelector, 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_FXDirSelector[] = {{&_swigt__p_FXDirSelector, 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_FXToolBar[] = {{&_swigt__p_FXToolBar, 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_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_FXRGBImage, _p_FXRGBImageTo_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_FXBMPImage, _p_FXBMPImageTo_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_FXPopup, _p_FXPopupTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXDrawable, 0, 0, 0},  {&_swigt__p_FXPCXImage, _p_FXPCXImageTo_p_FXDrawable, 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_FXTGAImage, _p_FXTGAImageTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXToolTip, _p_FXToolTipTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXComposite, _p_FXCompositeTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXICOImage, _p_FXICOImageTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXBitmapFrame, _p_FXBitmapFrameTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXRealSlider, _p_FXRealSliderTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXSlider, _p_FXSliderTo_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_FXPPMImage, _p_FXPPMImageTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXXBMImage, _p_FXXBMImageTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXXPMImage, _p_FXXPMImageTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXTreeListBox, _p_FXTreeListBoxTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXListBox, _p_FXListBoxTo_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_FXImage, _p_FXImageTo_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_FXPNGImage, _p_FXPNGImageTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXJPGImage, _p_FXJPGImageTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXTIFImage, _p_FXTIFImageTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXGIFImage, _p_FXGIFImageTo_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_FXSplashWindow, _p_FXSplashWindowTo_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_FXWindow, _p_FXWindowTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXScrollWindow, _p_FXScrollWindowTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXDockBar, _p_FXDockBarTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXShell, _p_FXShellTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXBitmap, _p_FXBitmapTo_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_FXVerticalFrame, _p_FXVerticalFrameTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXHorizontalFrame, _p_FXHorizontalFrameTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXImageView, _p_FXImageViewTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXFontSelector, _p_FXFontSelectorTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXColorSelector, _p_FXColorSelectorTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXFileSelector, _p_FXFileSelectorTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXDirSelector, _p_FXDirSelectorTo_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_FXGIFImage[] = {  {&_swigt__p_FXGIFImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXICOImage[] = {  {&_swigt__p_FXICOImage, 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_FXVisual[] = {{&_swigt__p_FXVisual, 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_FXRGBImage, _p_FXRGBImageTo_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_FXBMPImage, _p_FXBMPImageTo_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_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_FXPCXImage, _p_FXPCXImageTo_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_FXTGAImage, _p_FXTGAImageTo_p_FXId, 0, 0},  {&_swigt__p_FXToolTip, _p_FXToolTipTo_p_FXId, 0, 0},  {&_swigt__p_FXComposite, _p_FXCompositeTo_p_FXId, 0, 0},  {&_swigt__p_FXICOImage, _p_FXICOImageTo_p_FXId, 0, 0},  {&_swigt__p_FXBitmapFrame, _p_FXBitmapFrameTo_p_FXId, 0, 0},  {&_swigt__p_FXRealSlider, _p_FXRealSliderTo_p_FXId, 0, 0},  {&_swigt__p_FXSlider, _p_FXSliderTo_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_FXPPMImage, _p_FXPPMImageTo_p_FXId, 0, 0},  {&_swigt__p_FXXBMImage, _p_FXXBMImageTo_p_FXId, 0, 0},  {&_swigt__p_FXXPMImage, _p_FXXPMImageTo_p_FXId, 0, 0},  {&_swigt__p_FXTreeListBox, _p_FXTreeListBoxTo_p_FXId, 0, 0},  {&_swigt__p_FXListBox, _p_FXListBoxTo_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_FXVisual, _p_FXVisualTo_p_FXId, 0, 0},  {&_swigt__p_FXComboBox, _p_FXComboBoxTo_p_FXId, 0, 0},  {&_swigt__p_FXImage, _p_FXImageTo_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_FXPNGImage, _p_FXPNGImageTo_p_FXId, 0, 0},  {&_swigt__p_FXJPGImage, _p_FXJPGImageTo_p_FXId, 0, 0},  {&_swigt__p_FXTIFImage, _p_FXTIFImageTo_p_FXId, 0, 0},  {&_swigt__p_FXGIFImage, _p_FXGIFImageTo_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_FXSplashWindow, _p_FXSplashWindowTo_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_FXWindow, _p_FXWindowTo_p_FXId, 0, 0},  {&_swigt__p_FXScrollWindow, _p_FXScrollWindowTo_p_FXId, 0, 0},  {&_swigt__p_FXDockBar, _p_FXDockBarTo_p_FXId, 0, 0},  {&_swigt__p_FXShell, _p_FXShellTo_p_FXId, 0, 0},  {&_swigt__p_FXBitmap, _p_FXBitmapTo_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_FXVerticalFrame, _p_FXVerticalFrameTo_p_FXId, 0, 0},  {&_swigt__p_FXHorizontalFrame, _p_FXHorizontalFrameTo_p_FXId, 0, 0},  {&_swigt__p_FXImageView, _p_FXImageViewTo_p_FXId, 0, 0},  {&_swigt__p_FXFontSelector, _p_FXFontSelectorTo_p_FXId, 0, 0},  {&_swigt__p_FXColorSelector, _p_FXColorSelectorTo_p_FXId, 0, 0},  {&_swigt__p_FXFileSelector, _p_FXFileSelectorTo_p_FXId, 0, 0},  {&_swigt__p_FXDirSelector, _p_FXDirSelectorTo_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_FXImage[] = {  {&_swigt__p_FXBMPImage, _p_FXBMPImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXPPMImage, _p_FXPPMImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXRGBImage, _p_FXRGBImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXXBMImage, _p_FXXBMImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXXPMImage, _p_FXXPMImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXImage, 0, 0, 0},  {&_swigt__p_FXGIFImage, _p_FXGIFImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXTIFImage, _p_FXTIFImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXJPGImage, _p_FXJPGImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXPCXImage, _p_FXPCXImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXPNGImage, _p_FXPNGImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXICOImage, _p_FXICOImageTo_p_FXImage, 0, 0},  {&_swigt__p_FXTGAImage, _p_FXTGAImageTo_p_FXImage, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXJPGImage[] = {  {&_swigt__p_FXJPGImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXMemoryBuffer[] = {  {&_swigt__p_FXMemoryBuffer, 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_FXRGBImage, _p_FXRGBImageTo_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_FXBMPImage, _p_FXBMPImageTo_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_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_FXPCXImage, _p_FXPCXImageTo_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_FXProgressBar, _p_FXProgressBarTo_p_FXObject, 0, 0},  {&_swigt__p_FXShutter, _p_FXShutterTo_p_FXObject, 0, 0},  {&_swigt__p_FXTGAImage, _p_FXTGAImageTo_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_FXICOImage, _p_FXICOImageTo_p_FXObject, 0, 0},  {&_swigt__p_FXBitmapFrame, _p_FXBitmapFrameTo_p_FXObject, 0, 0},  {&_swigt__p_FXRealSlider, _p_FXRealSliderTo_p_FXObject, 0, 0},  {&_swigt__p_FXSlider, _p_FXSliderTo_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_FXPPMImage, _p_FXPPMImageTo_p_FXObject, 0, 0},  {&_swigt__p_FXXBMImage, _p_FXXBMImageTo_p_FXObject, 0, 0},  {&_swigt__p_FXXPMImage, _p_FXXPMImageTo_p_FXObject, 0, 0},  {&_swigt__p_FXTreeListBox, _p_FXTreeListBoxTo_p_FXObject, 0, 0},  {&_swigt__p_FXListBox, _p_FXListBoxTo_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_FXVisual, _p_FXVisualTo_p_FXObject, 0, 0},  {&_swigt__p_FXComboBox, _p_FXComboBoxTo_p_FXObject, 0, 0},  {&_swigt__p_FXImage, _p_FXImageTo_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_FXPNGImage, _p_FXPNGImageTo_p_FXObject, 0, 0},  {&_swigt__p_FXJPGImage, _p_FXJPGImageTo_p_FXObject, 0, 0},  {&_swigt__p_FXTIFImage, _p_FXTIFImageTo_p_FXObject, 0, 0},  {&_swigt__p_FXGIFImage, _p_FXGIFImageTo_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_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_FXStatusLine, _p_FXStatusLineTo_p_FXObject, 0, 0},  {&_swigt__p_FXRootWindow, _p_FXRootWindowTo_p_FXObject, 0, 0},  {&_swigt__p_FXWindow, _p_FXWindowTo_p_FXObject, 0, 0},  {&_swigt__p_FXScrollWindow, _p_FXScrollWindowTo_p_FXObject, 0, 0},  {&_swigt__p_FXTopWindow, _p_FXTopWindowTo_p_FXObject, 0, 0},  {&_swigt__p_FXMainWindow, _p_FXMainWindowTo_p_FXObject, 0, 0},  {&_swigt__p_FXSplashWindow, _p_FXSplashWindowTo_p_FXObject, 0, 0},  {&_swigt__p_FXDockBar, _p_FXDockBarTo_p_FXObject, 0, 0},  {&_swigt__p_FXShell, _p_FXShellTo_p_FXObject, 0, 0},  {&_swigt__p_FXBitmap, _p_FXBitmapTo_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_FXVerticalFrame, _p_FXVerticalFrameTo_p_FXObject, 0, 0},  {&_swigt__p_FXHorizontalFrame, _p_FXHorizontalFrameTo_p_FXObject, 0, 0},  {&_swigt__p_FXImageView, _p_FXImageViewTo_p_FXObject, 0, 0},  {&_swigt__p_FXFontSelector, _p_FXFontSelectorTo_p_FXObject, 0, 0},  {&_swigt__p_FXColorSelector, _p_FXColorSelectorTo_p_FXObject, 0, 0},  {&_swigt__p_FXFileSelector, _p_FXFileSelectorTo_p_FXObject, 0, 0},  {&_swigt__p_FXDirSelector, _p_FXDirSelectorTo_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_FXPCXImage[] = {  {&_swigt__p_FXPCXImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXPNGImage[] = {  {&_swigt__p_FXPNGImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXPPMImage[] = {  {&_swigt__p_FXPPMImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXRGBImage[] = {  {&_swigt__p_FXRGBImage, 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_FXTGAImage[] = {  {&_swigt__p_FXTGAImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXTIFImage[] = {  {&_swigt__p_FXTIFImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXXBMImage[] = {  {&_swigt__p_FXXBMImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXXPMImage[] = {  {&_swigt__p_FXXPMImage, 0, 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_p_char[] = {  {&_swigt__p_p_char, 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_FXBMPImage,
  _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_FXFileDict,
  _swigc__p_FXFileSelector,
  _swigc__p_FXFileStream,
  _swigc__p_FXFont,
  _swigc__p_FXFontSelector,
  _swigc__p_FXFrame,
  _swigc__p_FXGIFCursor,
  _swigc__p_FXGIFImage,
  _swigc__p_FXGradientBar,
  _swigc__p_FXGroupBox,
  _swigc__p_FXHeader,
  _swigc__p_FXHeaderItem,
  _swigc__p_FXHorizontalFrame,
  _swigc__p_FXHorizontalSeparator,
  _swigc__p_FXICOImage,
  _swigc__p_FXIconDict,
  _swigc__p_FXId,
  _swigc__p_FXImage,
  _swigc__p_FXImageFrame,
  _swigc__p_FXImageView,
  _swigc__p_FXJPGImage,
  _swigc__p_FXKnob,
  _swigc__p_FXListBox,
  _swigc__p_FXMainWindow,
  _swigc__p_FXMatrix,
  _swigc__p_FXMemoryBuffer,
  _swigc__p_FXMemoryStream,
  _swigc__p_FXObject,
  _swigc__p_FXPCXImage,
  _swigc__p_FXPNGImage,
  _swigc__p_FXPPMImage,
  _swigc__p_FXPacker,
  _swigc__p_FXPopup,
  _swigc__p_FXProgressBar,
  _swigc__p_FXRGBImage,
  _swigc__p_FXRealSlider,
  _swigc__p_FXRealSpinner,
  _swigc__p_FXRecentFiles,
  _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_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_FXTGAImage,
  _swigc__p_FXTIFImage,
  _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_FXVerticalFrame,
  _swigc__p_FXVerticalSeparator,
  _swigc__p_FXVisual,
  _swigc__p_FXWindow,
  _swigc__p_FXXBMImage,
  _swigc__p_FXXPMImage,
  _swigc__p_char,
  _swigc__p_double,
  _swigc__p_float,
  _swigc__p_int,
  _swigc__p_long,
  _swigc__p_p_char,
  _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 staticly 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 found, 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);
    module_head = &swig_module;
  } else {
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
    found=0;
    iter=module_head;
    do {
      if (iter==&swig_module) {
        found=1;
        break;
      }
      iter=iter->next;
    } while (iter!= module_head);

    /* if the is found in the list, then all is done and we may leave */
    if (found) return;
    /* otherwise we must add out 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_image(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();
  rb_define_const(mFox, "BITMAP_KEEP", SWIG_From_int(static_cast< int >(BITMAP_KEEP)));
  rb_define_const(mFox, "BITMAP_OWNED", SWIG_From_int(static_cast< int >(BITMAP_OWNED)));
  rb_define_const(mFox, "BITMAP_SHMI", SWIG_From_int(static_cast< int >(BITMAP_SHMI)));
  rb_define_const(mFox, "BITMAP_SHMP", SWIG_From_int(static_cast< int >(BITMAP_SHMP)));
  
  SwigClassFXBitmap.klass = rb_define_class_under(mFox, "FXBitmap", ((swig_class *) SWIGTYPE_p_FXDrawable->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXBitmap, (void *) &SwigClassFXBitmap);
  rb_define_alloc_func(SwigClassFXBitmap.klass, _wrap_FXBitmap_allocate);
  rb_define_method(SwigClassFXBitmap.klass, "initialize", VALUEFUNC(_wrap_new_FXBitmap), -1);
  rb_define_method(SwigClassFXBitmap.klass, "getData", VALUEFUNC(_wrap_FXBitmap_getData), -1);
  rb_define_method(SwigClassFXBitmap.klass, "getOptions", VALUEFUNC(_wrap_FXBitmap_getOptions), -1);
  rb_define_method(SwigClassFXBitmap.klass, "setOptions", VALUEFUNC(_wrap_FXBitmap_setOptions), -1);
  rb_define_method(SwigClassFXBitmap.klass, "getPixel", VALUEFUNC(_wrap_FXBitmap_getPixel), -1);
  rb_define_method(SwigClassFXBitmap.klass, "setPixel", VALUEFUNC(_wrap_FXBitmap_setPixel), -1);
  rb_define_method(SwigClassFXBitmap.klass, "save", VALUEFUNC(_wrap_FXBitmap_save), -1);
  rb_define_method(SwigClassFXBitmap.klass, "load", VALUEFUNC(_wrap_FXBitmap_load), -1);
  rb_define_method(SwigClassFXBitmap.klass, "create", VALUEFUNC(_wrap_FXBitmap_create), -1);
  rb_define_method(SwigClassFXBitmap.klass, "detach", VALUEFUNC(_wrap_FXBitmap_detach), -1);
  rb_define_method(SwigClassFXBitmap.klass, "destroy", VALUEFUNC(_wrap_FXBitmap_destroy), -1);
  rb_define_method(SwigClassFXBitmap.klass, "resize", VALUEFUNC(_wrap_FXBitmap_resize), -1);
  rb_define_method(SwigClassFXBitmap.klass, "restore", VALUEFUNC(_wrap_FXBitmap_restore), -1);
  rb_define_method(SwigClassFXBitmap.klass, "render", VALUEFUNC(_wrap_FXBitmap_render), -1);
  rb_define_method(SwigClassFXBitmap.klass, "release", VALUEFUNC(_wrap_FXBitmap_release), -1);
  rb_define_method(SwigClassFXBitmap.klass, "savePixels", VALUEFUNC(_wrap_FXBitmap_savePixels), -1);
  rb_define_method(SwigClassFXBitmap.klass, "loadPixels", VALUEFUNC(_wrap_FXBitmap_loadPixels), -1);
  rb_define_method(SwigClassFXBitmap.klass, "scale", VALUEFUNC(_wrap_FXBitmap_scale), -1);
  rb_define_method(SwigClassFXBitmap.klass, "mirror", VALUEFUNC(_wrap_FXBitmap_mirror), -1);
  rb_define_method(SwigClassFXBitmap.klass, "rotate", VALUEFUNC(_wrap_FXBitmap_rotate), -1);
  rb_define_method(SwigClassFXBitmap.klass, "crop", VALUEFUNC(_wrap_FXBitmap_crop), -1);
  rb_define_method(SwigClassFXBitmap.klass, "fill", VALUEFUNC(_wrap_FXBitmap_fill), -1);
  rb_define_method(SwigClassFXBitmap.klass, "setData", VALUEFUNC(_wrap_FXBitmap_setData), -1);
  SwigClassFXBitmap.mark = (void (*)(void *)) FXRbBitmap::markfunc;
  SwigClassFXBitmap.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXBitmap.trackObjects = 0;
  
  SwigClassFXMemoryBuffer.klass = rb_define_class_under(mFox, "FXMemoryBuffer", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_FXMemoryBuffer, (void *) &SwigClassFXMemoryBuffer);
  rb_define_alloc_func(SwigClassFXMemoryBuffer.klass, _wrap_FXMemoryBuffer_allocate);
  rb_define_method(SwigClassFXMemoryBuffer.klass, "initialize", VALUEFUNC(_wrap_new_FXMemoryBuffer), -1);
  rb_define_method(SwigClassFXMemoryBuffer.klass, "getSize", VALUEFUNC(_wrap_FXMemoryBuffer_getSize), -1);
  rb_define_method(SwigClassFXMemoryBuffer.klass, "getData", VALUEFUNC(_wrap_FXMemoryBuffer_getData), -1);
  rb_define_method(SwigClassFXMemoryBuffer.klass, "[]", VALUEFUNC(_wrap_FXMemoryBuffer___getitem__), -1);
  rb_define_method(SwigClassFXMemoryBuffer.klass, "[]=", VALUEFUNC(_wrap_FXMemoryBuffer___setitem__), -1);
  SwigClassFXMemoryBuffer.mark = 0;
  SwigClassFXMemoryBuffer.destroy = (void (*)(void *)) free_FXMemoryBuffer;
  SwigClassFXMemoryBuffer.trackObjects = 0;
  rb_define_const(mFox, "IMAGE_KEEP", SWIG_From_int(static_cast< int >(IMAGE_KEEP)));
  rb_define_const(mFox, "IMAGE_OWNED", SWIG_From_int(static_cast< int >(IMAGE_OWNED)));
  rb_define_const(mFox, "IMAGE_DITHER", SWIG_From_int(static_cast< int >(IMAGE_DITHER)));
  rb_define_const(mFox, "IMAGE_NEAREST", SWIG_From_int(static_cast< int >(IMAGE_NEAREST)));
  rb_define_const(mFox, "IMAGE_OPAQUE", SWIG_From_int(static_cast< int >(IMAGE_OPAQUE)));
  rb_define_const(mFox, "IMAGE_ALPHACOLOR", SWIG_From_int(static_cast< int >(IMAGE_ALPHACOLOR)));
  rb_define_const(mFox, "IMAGE_SHMI", SWIG_From_int(static_cast< int >(IMAGE_SHMI)));
  rb_define_const(mFox, "IMAGE_SHMP", SWIG_From_int(static_cast< int >(IMAGE_SHMP)));
  rb_define_const(mFox, "IMAGE_ALPHAGUESS", SWIG_From_int(static_cast< int >(IMAGE_ALPHAGUESS)));
  
  SwigClassFXImage.klass = rb_define_class_under(mFox, "FXImage", ((swig_class *) SWIGTYPE_p_FXDrawable->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXImage, (void *) &SwigClassFXImage);
  rb_define_alloc_func(SwigClassFXImage.klass, _wrap_FXImage_allocate);
  rb_define_method(SwigClassFXImage.klass, "initialize", VALUEFUNC(_wrap_new_FXImage), -1);
  rb_define_method(SwigClassFXImage.klass, "getData", VALUEFUNC(_wrap_FXImage_getData), -1);
  rb_define_method(SwigClassFXImage.klass, "getOptions", VALUEFUNC(_wrap_FXImage_getOptions), -1);
  rb_define_method(SwigClassFXImage.klass, "setOptions", VALUEFUNC(_wrap_FXImage_setOptions), -1);
  rb_define_method(SwigClassFXImage.klass, "setPixels", VALUEFUNC(_wrap_FXImage_setPixels), -1);
  rb_define_method(SwigClassFXImage.klass, "pixels", VALUEFUNC(_wrap_FXImage_pixels), -1);
  rb_define_method(SwigClassFXImage.klass, "pixel_string", VALUEFUNC(_wrap_FXImage_pixel_string), -1);
  rb_define_method(SwigClassFXImage.klass, "getPixel", VALUEFUNC(_wrap_FXImage_getPixel), -1);
  rb_define_method(SwigClassFXImage.klass, "setPixel", VALUEFUNC(_wrap_FXImage_setPixel), -1);
  rb_define_method(SwigClassFXImage.klass, "hasAlpha?", VALUEFUNC(_wrap_FXImage_hasAlphaq___), -1);
  rb_define_method(SwigClassFXImage.klass, "save", VALUEFUNC(_wrap_FXImage_save), -1);
  rb_define_method(SwigClassFXImage.klass, "load", VALUEFUNC(_wrap_FXImage_load), -1);
  rb_define_method(SwigClassFXImage.klass, "create", VALUEFUNC(_wrap_FXImage_create), -1);
  rb_define_method(SwigClassFXImage.klass, "detach", VALUEFUNC(_wrap_FXImage_detach), -1);
  rb_define_method(SwigClassFXImage.klass, "destroy", VALUEFUNC(_wrap_FXImage_destroy), -1);
  rb_define_method(SwigClassFXImage.klass, "resize", VALUEFUNC(_wrap_FXImage_resize), -1);
  rb_define_method(SwigClassFXImage.klass, "restore", VALUEFUNC(_wrap_FXImage_restore), -1);
  rb_define_method(SwigClassFXImage.klass, "render", VALUEFUNC(_wrap_FXImage_render), -1);
  rb_define_method(SwigClassFXImage.klass, "release", VALUEFUNC(_wrap_FXImage_release), -1);
  rb_define_method(SwigClassFXImage.klass, "scale", VALUEFUNC(_wrap_FXImage_scale), -1);
  rb_define_method(SwigClassFXImage.klass, "mirror", VALUEFUNC(_wrap_FXImage_mirror), -1);
  rb_define_method(SwigClassFXImage.klass, "rotate", VALUEFUNC(_wrap_FXImage_rotate), -1);
  rb_define_method(SwigClassFXImage.klass, "crop", VALUEFUNC(_wrap_FXImage_crop), -1);
  rb_define_method(SwigClassFXImage.klass, "fill", VALUEFUNC(_wrap_FXImage_fill), -1);
  rb_define_method(SwigClassFXImage.klass, "fade", VALUEFUNC(_wrap_FXImage_fade), -1);
  rb_define_method(SwigClassFXImage.klass, "xshear", VALUEFUNC(_wrap_FXImage_xshear), -1);
  rb_define_method(SwigClassFXImage.klass, "yshear", VALUEFUNC(_wrap_FXImage_yshear), -1);
  rb_define_method(SwigClassFXImage.klass, "hgradient", VALUEFUNC(_wrap_FXImage_hgradient), -1);
  rb_define_method(SwigClassFXImage.klass, "vgradient", VALUEFUNC(_wrap_FXImage_vgradient), -1);
  rb_define_method(SwigClassFXImage.klass, "gradient", VALUEFUNC(_wrap_FXImage_gradient), -1);
  rb_define_method(SwigClassFXImage.klass, "blend", VALUEFUNC(_wrap_FXImage_blend), -1);
  rb_define_method(SwigClassFXImage.klass, "savePixels", VALUEFUNC(_wrap_FXImage_savePixels), -1);
  rb_define_method(SwigClassFXImage.klass, "loadPixels", VALUEFUNC(_wrap_FXImage_loadPixels), -1);
  SwigClassFXImage.mark = (void (*)(void *)) FXRbImage::markfunc;
  SwigClassFXImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXImage.trackObjects = 0;
  
  SWIGTYPE_p_FXImage->dcast = (swig_dycast_func) FXImage_dynamic_cast;
  
  
  SwigClassFXBMPImage.klass = rb_define_class_under(mFox, "FXBMPImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXBMPImage, (void *) &SwigClassFXBMPImage);
  rb_define_alloc_func(SwigClassFXBMPImage.klass, _wrap_FXBMPImage_allocate);
  rb_define_method(SwigClassFXBMPImage.klass, "initialize", VALUEFUNC(_wrap_new_FXBMPImage), -1);
  rb_define_singleton_method(SwigClassFXBMPImage.klass, "fileExt", VALUEFUNC(_wrap_FXBMPImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXBMPImage.klass, "mimeType", VALUEFUNC(_wrap_FXBMPImage_mimeType), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "save", VALUEFUNC(_wrap_FXBMPImage_save), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "load", VALUEFUNC(_wrap_FXBMPImage_load), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "create", VALUEFUNC(_wrap_FXBMPImage_create), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "detach", VALUEFUNC(_wrap_FXBMPImage_detach), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "destroy", VALUEFUNC(_wrap_FXBMPImage_destroy), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "resize", VALUEFUNC(_wrap_FXBMPImage_resize), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "restore", VALUEFUNC(_wrap_FXBMPImage_restore), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "render", VALUEFUNC(_wrap_FXBMPImage_render), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "release", VALUEFUNC(_wrap_FXBMPImage_release), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "scale", VALUEFUNC(_wrap_FXBMPImage_scale), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "mirror", VALUEFUNC(_wrap_FXBMPImage_mirror), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "rotate", VALUEFUNC(_wrap_FXBMPImage_rotate), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "crop", VALUEFUNC(_wrap_FXBMPImage_crop), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "fill", VALUEFUNC(_wrap_FXBMPImage_fill), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "fade", VALUEFUNC(_wrap_FXBMPImage_fade), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "xshear", VALUEFUNC(_wrap_FXBMPImage_xshear), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "yshear", VALUEFUNC(_wrap_FXBMPImage_yshear), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "hgradient", VALUEFUNC(_wrap_FXBMPImage_hgradient), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "vgradient", VALUEFUNC(_wrap_FXBMPImage_vgradient), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "gradient", VALUEFUNC(_wrap_FXBMPImage_gradient), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "blend", VALUEFUNC(_wrap_FXBMPImage_blend), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "savePixels", VALUEFUNC(_wrap_FXBMPImage_savePixels), -1);
  rb_define_method(SwigClassFXBMPImage.klass, "loadPixels", VALUEFUNC(_wrap_FXBMPImage_loadPixels), -1);
  SwigClassFXBMPImage.mark = (void (*)(void *)) FXRbBMPImage::markfunc;
  SwigClassFXBMPImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXBMPImage.trackObjects = 0;
  
  SwigClassFXGIFImage.klass = rb_define_class_under(mFox, "FXGIFImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXGIFImage, (void *) &SwigClassFXGIFImage);
  rb_define_alloc_func(SwigClassFXGIFImage.klass, _wrap_FXGIFImage_allocate);
  rb_define_method(SwigClassFXGIFImage.klass, "initialize", VALUEFUNC(_wrap_new_FXGIFImage), -1);
  rb_define_singleton_method(SwigClassFXGIFImage.klass, "fileExt", VALUEFUNC(_wrap_FXGIFImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXGIFImage.klass, "mimeType", VALUEFUNC(_wrap_FXGIFImage_mimeType), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "save", VALUEFUNC(_wrap_FXGIFImage_save), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "load", VALUEFUNC(_wrap_FXGIFImage_load), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "create", VALUEFUNC(_wrap_FXGIFImage_create), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "detach", VALUEFUNC(_wrap_FXGIFImage_detach), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "destroy", VALUEFUNC(_wrap_FXGIFImage_destroy), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "resize", VALUEFUNC(_wrap_FXGIFImage_resize), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "restore", VALUEFUNC(_wrap_FXGIFImage_restore), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "render", VALUEFUNC(_wrap_FXGIFImage_render), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "release", VALUEFUNC(_wrap_FXGIFImage_release), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "scale", VALUEFUNC(_wrap_FXGIFImage_scale), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "mirror", VALUEFUNC(_wrap_FXGIFImage_mirror), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "rotate", VALUEFUNC(_wrap_FXGIFImage_rotate), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "crop", VALUEFUNC(_wrap_FXGIFImage_crop), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "fill", VALUEFUNC(_wrap_FXGIFImage_fill), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "fade", VALUEFUNC(_wrap_FXGIFImage_fade), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "xshear", VALUEFUNC(_wrap_FXGIFImage_xshear), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "yshear", VALUEFUNC(_wrap_FXGIFImage_yshear), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "hgradient", VALUEFUNC(_wrap_FXGIFImage_hgradient), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "vgradient", VALUEFUNC(_wrap_FXGIFImage_vgradient), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "gradient", VALUEFUNC(_wrap_FXGIFImage_gradient), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "blend", VALUEFUNC(_wrap_FXGIFImage_blend), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "savePixels", VALUEFUNC(_wrap_FXGIFImage_savePixels), -1);
  rb_define_method(SwigClassFXGIFImage.klass, "loadPixels", VALUEFUNC(_wrap_FXGIFImage_loadPixels), -1);
  SwigClassFXGIFImage.mark = (void (*)(void *)) FXRbGIFImage::markfunc;
  SwigClassFXGIFImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXGIFImage.trackObjects = 0;
  
  SwigClassFXICOImage.klass = rb_define_class_under(mFox, "FXICOImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXICOImage, (void *) &SwigClassFXICOImage);
  rb_define_alloc_func(SwigClassFXICOImage.klass, _wrap_FXICOImage_allocate);
  rb_define_method(SwigClassFXICOImage.klass, "initialize", VALUEFUNC(_wrap_new_FXICOImage), -1);
  rb_define_singleton_method(SwigClassFXICOImage.klass, "fileExt", VALUEFUNC(_wrap_FXICOImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXICOImage.klass, "mimeType", VALUEFUNC(_wrap_FXICOImage_mimeType), -1);
  rb_define_method(SwigClassFXICOImage.klass, "save", VALUEFUNC(_wrap_FXICOImage_save), -1);
  rb_define_method(SwigClassFXICOImage.klass, "load", VALUEFUNC(_wrap_FXICOImage_load), -1);
  rb_define_method(SwigClassFXICOImage.klass, "create", VALUEFUNC(_wrap_FXICOImage_create), -1);
  rb_define_method(SwigClassFXICOImage.klass, "detach", VALUEFUNC(_wrap_FXICOImage_detach), -1);
  rb_define_method(SwigClassFXICOImage.klass, "destroy", VALUEFUNC(_wrap_FXICOImage_destroy), -1);
  rb_define_method(SwigClassFXICOImage.klass, "resize", VALUEFUNC(_wrap_FXICOImage_resize), -1);
  rb_define_method(SwigClassFXICOImage.klass, "restore", VALUEFUNC(_wrap_FXICOImage_restore), -1);
  rb_define_method(SwigClassFXICOImage.klass, "render", VALUEFUNC(_wrap_FXICOImage_render), -1);
  rb_define_method(SwigClassFXICOImage.klass, "release", VALUEFUNC(_wrap_FXICOImage_release), -1);
  rb_define_method(SwigClassFXICOImage.klass, "scale", VALUEFUNC(_wrap_FXICOImage_scale), -1);
  rb_define_method(SwigClassFXICOImage.klass, "mirror", VALUEFUNC(_wrap_FXICOImage_mirror), -1);
  rb_define_method(SwigClassFXICOImage.klass, "rotate", VALUEFUNC(_wrap_FXICOImage_rotate), -1);
  rb_define_method(SwigClassFXICOImage.klass, "crop", VALUEFUNC(_wrap_FXICOImage_crop), -1);
  rb_define_method(SwigClassFXICOImage.klass, "fill", VALUEFUNC(_wrap_FXICOImage_fill), -1);
  rb_define_method(SwigClassFXICOImage.klass, "fade", VALUEFUNC(_wrap_FXICOImage_fade), -1);
  rb_define_method(SwigClassFXICOImage.klass, "xshear", VALUEFUNC(_wrap_FXICOImage_xshear), -1);
  rb_define_method(SwigClassFXICOImage.klass, "yshear", VALUEFUNC(_wrap_FXICOImage_yshear), -1);
  rb_define_method(SwigClassFXICOImage.klass, "hgradient", VALUEFUNC(_wrap_FXICOImage_hgradient), -1);
  rb_define_method(SwigClassFXICOImage.klass, "vgradient", VALUEFUNC(_wrap_FXICOImage_vgradient), -1);
  rb_define_method(SwigClassFXICOImage.klass, "gradient", VALUEFUNC(_wrap_FXICOImage_gradient), -1);
  rb_define_method(SwigClassFXICOImage.klass, "blend", VALUEFUNC(_wrap_FXICOImage_blend), -1);
  rb_define_method(SwigClassFXICOImage.klass, "savePixels", VALUEFUNC(_wrap_FXICOImage_savePixels), -1);
  rb_define_method(SwigClassFXICOImage.klass, "loadPixels", VALUEFUNC(_wrap_FXICOImage_loadPixels), -1);
  SwigClassFXICOImage.mark = (void (*)(void *)) FXRbICOImage::markfunc;
  SwigClassFXICOImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXICOImage.trackObjects = 0;
  
  SwigClassFXJPGImage.klass = rb_define_class_under(mFox, "FXJPGImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXJPGImage, (void *) &SwigClassFXJPGImage);
  rb_define_alloc_func(SwigClassFXJPGImage.klass, _wrap_FXJPGImage_allocate);
  rb_define_method(SwigClassFXJPGImage.klass, "initialize", VALUEFUNC(_wrap_new_FXJPGImage), -1);
  rb_define_singleton_method(SwigClassFXJPGImage.klass, "fileExt", VALUEFUNC(_wrap_FXJPGImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXJPGImage.klass, "mimeType", VALUEFUNC(_wrap_FXJPGImage_mimeType), -1);
  rb_define_singleton_method(SwigClassFXJPGImage.klass, "supported_Sq_", VALUEFUNC(_wrap_FXJPGImage_supported_Sq_), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "setQuality", VALUEFUNC(_wrap_FXJPGImage_setQuality), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "getQuality", VALUEFUNC(_wrap_FXJPGImage_getQuality), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "save", VALUEFUNC(_wrap_FXJPGImage_save), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "load", VALUEFUNC(_wrap_FXJPGImage_load), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "create", VALUEFUNC(_wrap_FXJPGImage_create), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "detach", VALUEFUNC(_wrap_FXJPGImage_detach), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "destroy", VALUEFUNC(_wrap_FXJPGImage_destroy), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "resize", VALUEFUNC(_wrap_FXJPGImage_resize), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "restore", VALUEFUNC(_wrap_FXJPGImage_restore), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "render", VALUEFUNC(_wrap_FXJPGImage_render), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "release", VALUEFUNC(_wrap_FXJPGImage_release), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "scale", VALUEFUNC(_wrap_FXJPGImage_scale), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "mirror", VALUEFUNC(_wrap_FXJPGImage_mirror), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "rotate", VALUEFUNC(_wrap_FXJPGImage_rotate), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "crop", VALUEFUNC(_wrap_FXJPGImage_crop), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "fill", VALUEFUNC(_wrap_FXJPGImage_fill), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "fade", VALUEFUNC(_wrap_FXJPGImage_fade), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "xshear", VALUEFUNC(_wrap_FXJPGImage_xshear), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "yshear", VALUEFUNC(_wrap_FXJPGImage_yshear), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "hgradient", VALUEFUNC(_wrap_FXJPGImage_hgradient), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "vgradient", VALUEFUNC(_wrap_FXJPGImage_vgradient), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "gradient", VALUEFUNC(_wrap_FXJPGImage_gradient), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "blend", VALUEFUNC(_wrap_FXJPGImage_blend), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "savePixels", VALUEFUNC(_wrap_FXJPGImage_savePixels), -1);
  rb_define_method(SwigClassFXJPGImage.klass, "loadPixels", VALUEFUNC(_wrap_FXJPGImage_loadPixels), -1);
  SwigClassFXJPGImage.mark = (void (*)(void *)) FXRbJPGImage::markfunc;
  SwigClassFXJPGImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXJPGImage.trackObjects = 0;
  
  SwigClassFXPCXImage.klass = rb_define_class_under(mFox, "FXPCXImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXPCXImage, (void *) &SwigClassFXPCXImage);
  rb_define_alloc_func(SwigClassFXPCXImage.klass, _wrap_FXPCXImage_allocate);
  rb_define_method(SwigClassFXPCXImage.klass, "initialize", VALUEFUNC(_wrap_new_FXPCXImage), -1);
  rb_define_singleton_method(SwigClassFXPCXImage.klass, "fileExt", VALUEFUNC(_wrap_FXPCXImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXPCXImage.klass, "mimeType", VALUEFUNC(_wrap_FXPCXImage_mimeType), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "save", VALUEFUNC(_wrap_FXPCXImage_save), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "load", VALUEFUNC(_wrap_FXPCXImage_load), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "create", VALUEFUNC(_wrap_FXPCXImage_create), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "detach", VALUEFUNC(_wrap_FXPCXImage_detach), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "destroy", VALUEFUNC(_wrap_FXPCXImage_destroy), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "resize", VALUEFUNC(_wrap_FXPCXImage_resize), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "restore", VALUEFUNC(_wrap_FXPCXImage_restore), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "render", VALUEFUNC(_wrap_FXPCXImage_render), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "release", VALUEFUNC(_wrap_FXPCXImage_release), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "scale", VALUEFUNC(_wrap_FXPCXImage_scale), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "mirror", VALUEFUNC(_wrap_FXPCXImage_mirror), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "rotate", VALUEFUNC(_wrap_FXPCXImage_rotate), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "crop", VALUEFUNC(_wrap_FXPCXImage_crop), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "fill", VALUEFUNC(_wrap_FXPCXImage_fill), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "fade", VALUEFUNC(_wrap_FXPCXImage_fade), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "xshear", VALUEFUNC(_wrap_FXPCXImage_xshear), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "yshear", VALUEFUNC(_wrap_FXPCXImage_yshear), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "hgradient", VALUEFUNC(_wrap_FXPCXImage_hgradient), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "vgradient", VALUEFUNC(_wrap_FXPCXImage_vgradient), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "gradient", VALUEFUNC(_wrap_FXPCXImage_gradient), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "blend", VALUEFUNC(_wrap_FXPCXImage_blend), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "savePixels", VALUEFUNC(_wrap_FXPCXImage_savePixels), -1);
  rb_define_method(SwigClassFXPCXImage.klass, "loadPixels", VALUEFUNC(_wrap_FXPCXImage_loadPixels), -1);
  SwigClassFXPCXImage.mark = (void (*)(void *)) FXRbPCXImage::markfunc;
  SwigClassFXPCXImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXPCXImage.trackObjects = 0;
  
  SwigClassFXPNGImage.klass = rb_define_class_under(mFox, "FXPNGImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXPNGImage, (void *) &SwigClassFXPNGImage);
  rb_define_alloc_func(SwigClassFXPNGImage.klass, _wrap_FXPNGImage_allocate);
  rb_define_method(SwigClassFXPNGImage.klass, "initialize", VALUEFUNC(_wrap_new_FXPNGImage), -1);
  rb_define_singleton_method(SwigClassFXPNGImage.klass, "fileExt", VALUEFUNC(_wrap_FXPNGImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXPNGImage.klass, "mimeType", VALUEFUNC(_wrap_FXPNGImage_mimeType), -1);
  rb_define_singleton_method(SwigClassFXPNGImage.klass, "supported_Sq_", VALUEFUNC(_wrap_FXPNGImage_supported_Sq_), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "save", VALUEFUNC(_wrap_FXPNGImage_save), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "load", VALUEFUNC(_wrap_FXPNGImage_load), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "create", VALUEFUNC(_wrap_FXPNGImage_create), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "detach", VALUEFUNC(_wrap_FXPNGImage_detach), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "destroy", VALUEFUNC(_wrap_FXPNGImage_destroy), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "resize", VALUEFUNC(_wrap_FXPNGImage_resize), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "restore", VALUEFUNC(_wrap_FXPNGImage_restore), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "render", VALUEFUNC(_wrap_FXPNGImage_render), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "release", VALUEFUNC(_wrap_FXPNGImage_release), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "scale", VALUEFUNC(_wrap_FXPNGImage_scale), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "mirror", VALUEFUNC(_wrap_FXPNGImage_mirror), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "rotate", VALUEFUNC(_wrap_FXPNGImage_rotate), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "crop", VALUEFUNC(_wrap_FXPNGImage_crop), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "fill", VALUEFUNC(_wrap_FXPNGImage_fill), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "fade", VALUEFUNC(_wrap_FXPNGImage_fade), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "xshear", VALUEFUNC(_wrap_FXPNGImage_xshear), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "yshear", VALUEFUNC(_wrap_FXPNGImage_yshear), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "hgradient", VALUEFUNC(_wrap_FXPNGImage_hgradient), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "vgradient", VALUEFUNC(_wrap_FXPNGImage_vgradient), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "gradient", VALUEFUNC(_wrap_FXPNGImage_gradient), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "blend", VALUEFUNC(_wrap_FXPNGImage_blend), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "savePixels", VALUEFUNC(_wrap_FXPNGImage_savePixels), -1);
  rb_define_method(SwigClassFXPNGImage.klass, "loadPixels", VALUEFUNC(_wrap_FXPNGImage_loadPixels), -1);
  SwigClassFXPNGImage.mark = (void (*)(void *)) FXRbPNGImage::markfunc;
  SwigClassFXPNGImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXPNGImage.trackObjects = 0;
  
  SwigClassFXPPMImage.klass = rb_define_class_under(mFox, "FXPPMImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXPPMImage, (void *) &SwigClassFXPPMImage);
  rb_define_alloc_func(SwigClassFXPPMImage.klass, _wrap_FXPPMImage_allocate);
  rb_define_method(SwigClassFXPPMImage.klass, "initialize", VALUEFUNC(_wrap_new_FXPPMImage), -1);
  rb_define_singleton_method(SwigClassFXPPMImage.klass, "fileExt", VALUEFUNC(_wrap_FXPPMImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXPPMImage.klass, "mimeType", VALUEFUNC(_wrap_FXPPMImage_mimeType), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "save", VALUEFUNC(_wrap_FXPPMImage_save), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "load", VALUEFUNC(_wrap_FXPPMImage_load), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "create", VALUEFUNC(_wrap_FXPPMImage_create), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "detach", VALUEFUNC(_wrap_FXPPMImage_detach), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "destroy", VALUEFUNC(_wrap_FXPPMImage_destroy), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "resize", VALUEFUNC(_wrap_FXPPMImage_resize), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "restore", VALUEFUNC(_wrap_FXPPMImage_restore), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "render", VALUEFUNC(_wrap_FXPPMImage_render), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "release", VALUEFUNC(_wrap_FXPPMImage_release), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "scale", VALUEFUNC(_wrap_FXPPMImage_scale), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "mirror", VALUEFUNC(_wrap_FXPPMImage_mirror), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "rotate", VALUEFUNC(_wrap_FXPPMImage_rotate), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "crop", VALUEFUNC(_wrap_FXPPMImage_crop), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "fill", VALUEFUNC(_wrap_FXPPMImage_fill), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "fade", VALUEFUNC(_wrap_FXPPMImage_fade), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "xshear", VALUEFUNC(_wrap_FXPPMImage_xshear), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "yshear", VALUEFUNC(_wrap_FXPPMImage_yshear), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "hgradient", VALUEFUNC(_wrap_FXPPMImage_hgradient), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "vgradient", VALUEFUNC(_wrap_FXPPMImage_vgradient), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "gradient", VALUEFUNC(_wrap_FXPPMImage_gradient), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "blend", VALUEFUNC(_wrap_FXPPMImage_blend), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "savePixels", VALUEFUNC(_wrap_FXPPMImage_savePixels), -1);
  rb_define_method(SwigClassFXPPMImage.klass, "loadPixels", VALUEFUNC(_wrap_FXPPMImage_loadPixels), -1);
  SwigClassFXPPMImage.mark = 0;
  SwigClassFXPPMImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXPPMImage.trackObjects = 0;
  
  SwigClassFXRGBImage.klass = rb_define_class_under(mFox, "FXRGBImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXRGBImage, (void *) &SwigClassFXRGBImage);
  rb_define_alloc_func(SwigClassFXRGBImage.klass, _wrap_FXRGBImage_allocate);
  rb_define_method(SwigClassFXRGBImage.klass, "initialize", VALUEFUNC(_wrap_new_FXRGBImage), -1);
  rb_define_singleton_method(SwigClassFXRGBImage.klass, "fileExt", VALUEFUNC(_wrap_FXRGBImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXRGBImage.klass, "mimeType", VALUEFUNC(_wrap_FXRGBImage_mimeType), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "save", VALUEFUNC(_wrap_FXRGBImage_save), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "load", VALUEFUNC(_wrap_FXRGBImage_load), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "create", VALUEFUNC(_wrap_FXRGBImage_create), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "detach", VALUEFUNC(_wrap_FXRGBImage_detach), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "destroy", VALUEFUNC(_wrap_FXRGBImage_destroy), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "resize", VALUEFUNC(_wrap_FXRGBImage_resize), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "restore", VALUEFUNC(_wrap_FXRGBImage_restore), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "render", VALUEFUNC(_wrap_FXRGBImage_render), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "release", VALUEFUNC(_wrap_FXRGBImage_release), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "scale", VALUEFUNC(_wrap_FXRGBImage_scale), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "mirror", VALUEFUNC(_wrap_FXRGBImage_mirror), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "rotate", VALUEFUNC(_wrap_FXRGBImage_rotate), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "crop", VALUEFUNC(_wrap_FXRGBImage_crop), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "fill", VALUEFUNC(_wrap_FXRGBImage_fill), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "fade", VALUEFUNC(_wrap_FXRGBImage_fade), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "xshear", VALUEFUNC(_wrap_FXRGBImage_xshear), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "yshear", VALUEFUNC(_wrap_FXRGBImage_yshear), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "hgradient", VALUEFUNC(_wrap_FXRGBImage_hgradient), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "vgradient", VALUEFUNC(_wrap_FXRGBImage_vgradient), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "gradient", VALUEFUNC(_wrap_FXRGBImage_gradient), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "blend", VALUEFUNC(_wrap_FXRGBImage_blend), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "savePixels", VALUEFUNC(_wrap_FXRGBImage_savePixels), -1);
  rb_define_method(SwigClassFXRGBImage.klass, "loadPixels", VALUEFUNC(_wrap_FXRGBImage_loadPixels), -1);
  SwigClassFXRGBImage.mark = (void (*)(void *)) FXRbRGBImage::markfunc;
  SwigClassFXRGBImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXRGBImage.trackObjects = 0;
  
  SwigClassFXTGAImage.klass = rb_define_class_under(mFox, "FXTGAImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXTGAImage, (void *) &SwigClassFXTGAImage);
  rb_define_alloc_func(SwigClassFXTGAImage.klass, _wrap_FXTGAImage_allocate);
  rb_define_method(SwigClassFXTGAImage.klass, "initialize", VALUEFUNC(_wrap_new_FXTGAImage), -1);
  rb_define_singleton_method(SwigClassFXTGAImage.klass, "fileExt", VALUEFUNC(_wrap_FXTGAImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXTGAImage.klass, "mimeType", VALUEFUNC(_wrap_FXTGAImage_mimeType), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "save", VALUEFUNC(_wrap_FXTGAImage_save), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "load", VALUEFUNC(_wrap_FXTGAImage_load), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "create", VALUEFUNC(_wrap_FXTGAImage_create), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "detach", VALUEFUNC(_wrap_FXTGAImage_detach), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "destroy", VALUEFUNC(_wrap_FXTGAImage_destroy), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "resize", VALUEFUNC(_wrap_FXTGAImage_resize), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "restore", VALUEFUNC(_wrap_FXTGAImage_restore), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "render", VALUEFUNC(_wrap_FXTGAImage_render), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "release", VALUEFUNC(_wrap_FXTGAImage_release), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "scale", VALUEFUNC(_wrap_FXTGAImage_scale), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "mirror", VALUEFUNC(_wrap_FXTGAImage_mirror), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "rotate", VALUEFUNC(_wrap_FXTGAImage_rotate), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "crop", VALUEFUNC(_wrap_FXTGAImage_crop), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "fill", VALUEFUNC(_wrap_FXTGAImage_fill), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "fade", VALUEFUNC(_wrap_FXTGAImage_fade), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "xshear", VALUEFUNC(_wrap_FXTGAImage_xshear), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "yshear", VALUEFUNC(_wrap_FXTGAImage_yshear), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "hgradient", VALUEFUNC(_wrap_FXTGAImage_hgradient), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "vgradient", VALUEFUNC(_wrap_FXTGAImage_vgradient), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "gradient", VALUEFUNC(_wrap_FXTGAImage_gradient), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "blend", VALUEFUNC(_wrap_FXTGAImage_blend), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "savePixels", VALUEFUNC(_wrap_FXTGAImage_savePixels), -1);
  rb_define_method(SwigClassFXTGAImage.klass, "loadPixels", VALUEFUNC(_wrap_FXTGAImage_loadPixels), -1);
  SwigClassFXTGAImage.mark = (void (*)(void *)) FXRbTGAImage::markfunc;
  SwigClassFXTGAImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXTGAImage.trackObjects = 0;
  
  SwigClassFXTIFImage.klass = rb_define_class_under(mFox, "FXTIFImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXTIFImage, (void *) &SwigClassFXTIFImage);
  rb_define_alloc_func(SwigClassFXTIFImage.klass, _wrap_FXTIFImage_allocate);
  rb_define_method(SwigClassFXTIFImage.klass, "initialize", VALUEFUNC(_wrap_new_FXTIFImage), -1);
  rb_define_singleton_method(SwigClassFXTIFImage.klass, "fileExt", VALUEFUNC(_wrap_FXTIFImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXTIFImage.klass, "mimeType", VALUEFUNC(_wrap_FXTIFImage_mimeType), -1);
  rb_define_singleton_method(SwigClassFXTIFImage.klass, "supported_Sq_", VALUEFUNC(_wrap_FXTIFImage_supported_Sq_), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "setCodec", VALUEFUNC(_wrap_FXTIFImage_setCodec), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "getCodec", VALUEFUNC(_wrap_FXTIFImage_getCodec), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "save", VALUEFUNC(_wrap_FXTIFImage_save), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "load", VALUEFUNC(_wrap_FXTIFImage_load), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "create", VALUEFUNC(_wrap_FXTIFImage_create), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "detach", VALUEFUNC(_wrap_FXTIFImage_detach), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "destroy", VALUEFUNC(_wrap_FXTIFImage_destroy), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "resize", VALUEFUNC(_wrap_FXTIFImage_resize), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "restore", VALUEFUNC(_wrap_FXTIFImage_restore), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "render", VALUEFUNC(_wrap_FXTIFImage_render), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "release", VALUEFUNC(_wrap_FXTIFImage_release), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "scale", VALUEFUNC(_wrap_FXTIFImage_scale), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "mirror", VALUEFUNC(_wrap_FXTIFImage_mirror), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "rotate", VALUEFUNC(_wrap_FXTIFImage_rotate), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "crop", VALUEFUNC(_wrap_FXTIFImage_crop), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "fill", VALUEFUNC(_wrap_FXTIFImage_fill), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "fade", VALUEFUNC(_wrap_FXTIFImage_fade), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "xshear", VALUEFUNC(_wrap_FXTIFImage_xshear), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "yshear", VALUEFUNC(_wrap_FXTIFImage_yshear), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "hgradient", VALUEFUNC(_wrap_FXTIFImage_hgradient), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "vgradient", VALUEFUNC(_wrap_FXTIFImage_vgradient), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "gradient", VALUEFUNC(_wrap_FXTIFImage_gradient), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "blend", VALUEFUNC(_wrap_FXTIFImage_blend), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "savePixels", VALUEFUNC(_wrap_FXTIFImage_savePixels), -1);
  rb_define_method(SwigClassFXTIFImage.klass, "loadPixels", VALUEFUNC(_wrap_FXTIFImage_loadPixels), -1);
  SwigClassFXTIFImage.mark = (void (*)(void *)) FXRbTIFImage::markfunc;
  SwigClassFXTIFImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXTIFImage.trackObjects = 0;
  rb_define_module_function(mFox, "fxloadTIF", VALUEFUNC(_wrap_fxloadTIF), -1);
  rb_define_module_function(mFox, "fxsaveTIF", VALUEFUNC(_wrap_fxsaveTIF), -1);
  
  SwigClassFXXBMImage.klass = rb_define_class_under(mFox, "FXXBMImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXXBMImage, (void *) &SwigClassFXXBMImage);
  rb_define_alloc_func(SwigClassFXXBMImage.klass, _wrap_FXXBMImage_allocate);
  rb_define_method(SwigClassFXXBMImage.klass, "initialize", VALUEFUNC(_wrap_new_FXXBMImage), -1);
  rb_define_singleton_method(SwigClassFXXBMImage.klass, "fileExt", VALUEFUNC(_wrap_FXXBMImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXXBMImage.klass, "mimeType", VALUEFUNC(_wrap_FXXBMImage_mimeType), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "save", VALUEFUNC(_wrap_FXXBMImage_save), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "load", VALUEFUNC(_wrap_FXXBMImage_load), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "create", VALUEFUNC(_wrap_FXXBMImage_create), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "detach", VALUEFUNC(_wrap_FXXBMImage_detach), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "destroy", VALUEFUNC(_wrap_FXXBMImage_destroy), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "resize", VALUEFUNC(_wrap_FXXBMImage_resize), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "restore", VALUEFUNC(_wrap_FXXBMImage_restore), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "render", VALUEFUNC(_wrap_FXXBMImage_render), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "release", VALUEFUNC(_wrap_FXXBMImage_release), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "scale", VALUEFUNC(_wrap_FXXBMImage_scale), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "mirror", VALUEFUNC(_wrap_FXXBMImage_mirror), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "rotate", VALUEFUNC(_wrap_FXXBMImage_rotate), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "crop", VALUEFUNC(_wrap_FXXBMImage_crop), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "fill", VALUEFUNC(_wrap_FXXBMImage_fill), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "fade", VALUEFUNC(_wrap_FXXBMImage_fade), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "xshear", VALUEFUNC(_wrap_FXXBMImage_xshear), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "yshear", VALUEFUNC(_wrap_FXXBMImage_yshear), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "hgradient", VALUEFUNC(_wrap_FXXBMImage_hgradient), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "vgradient", VALUEFUNC(_wrap_FXXBMImage_vgradient), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "gradient", VALUEFUNC(_wrap_FXXBMImage_gradient), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "blend", VALUEFUNC(_wrap_FXXBMImage_blend), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "savePixels", VALUEFUNC(_wrap_FXXBMImage_savePixels), -1);
  rb_define_method(SwigClassFXXBMImage.klass, "loadPixels", VALUEFUNC(_wrap_FXXBMImage_loadPixels), -1);
  SwigClassFXXBMImage.mark = 0;
  SwigClassFXXBMImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXXBMImage.trackObjects = 0;
  rb_define_module_function(mFox, "fxloadXBM", VALUEFUNC(_wrap_fxloadXBM), -1);
  rb_define_module_function(mFox, "fxsaveXBM", VALUEFUNC(_wrap_fxsaveXBM), -1);
  rb_define_module_function(mFox, "fxsavePS", VALUEFUNC(_wrap_fxsavePS), -1);
  rb_define_module_function(mFox, "fxcheckXBM", VALUEFUNC(_wrap_fxcheckXBM), -1);
  
  SwigClassFXXPMImage.klass = rb_define_class_under(mFox, "FXXPMImage", ((swig_class *) SWIGTYPE_p_FXImage->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXXPMImage, (void *) &SwigClassFXXPMImage);
  rb_define_alloc_func(SwigClassFXXPMImage.klass, _wrap_FXXPMImage_allocate);
  rb_define_method(SwigClassFXXPMImage.klass, "initialize", VALUEFUNC(_wrap_new_FXXPMImage), -1);
  rb_define_singleton_method(SwigClassFXXPMImage.klass, "fileExt", VALUEFUNC(_wrap_FXXPMImage_fileExt), -1);
  rb_define_singleton_method(SwigClassFXXPMImage.klass, "mimeType", VALUEFUNC(_wrap_FXXPMImage_mimeType), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "save", VALUEFUNC(_wrap_FXXPMImage_save), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "load", VALUEFUNC(_wrap_FXXPMImage_load), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "create", VALUEFUNC(_wrap_FXXPMImage_create), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "detach", VALUEFUNC(_wrap_FXXPMImage_detach), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "destroy", VALUEFUNC(_wrap_FXXPMImage_destroy), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "resize", VALUEFUNC(_wrap_FXXPMImage_resize), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "restore", VALUEFUNC(_wrap_FXXPMImage_restore), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "render", VALUEFUNC(_wrap_FXXPMImage_render), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "release", VALUEFUNC(_wrap_FXXPMImage_release), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "scale", VALUEFUNC(_wrap_FXXPMImage_scale), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "mirror", VALUEFUNC(_wrap_FXXPMImage_mirror), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "rotate", VALUEFUNC(_wrap_FXXPMImage_rotate), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "crop", VALUEFUNC(_wrap_FXXPMImage_crop), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "fill", VALUEFUNC(_wrap_FXXPMImage_fill), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "fade", VALUEFUNC(_wrap_FXXPMImage_fade), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "xshear", VALUEFUNC(_wrap_FXXPMImage_xshear), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "yshear", VALUEFUNC(_wrap_FXXPMImage_yshear), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "hgradient", VALUEFUNC(_wrap_FXXPMImage_hgradient), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "vgradient", VALUEFUNC(_wrap_FXXPMImage_vgradient), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "gradient", VALUEFUNC(_wrap_FXXPMImage_gradient), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "blend", VALUEFUNC(_wrap_FXXPMImage_blend), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "savePixels", VALUEFUNC(_wrap_FXXPMImage_savePixels), -1);
  rb_define_method(SwigClassFXXPMImage.klass, "loadPixels", VALUEFUNC(_wrap_FXXPMImage_loadPixels), -1);
  SwigClassFXXPMImage.mark = (void (*)(void *)) FXRbXPMImage::markfunc;
  SwigClassFXXPMImage.destroy = (void (*)(void *)) FXRbObject::freefunc;
  SwigClassFXXPMImage.trackObjects = 0;
}

