/* ----------------------------------------------------------------------------
 * 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_FXApp swig_types[0]
#define SWIGTYPE_p_FXArc swig_types[1]
#define SWIGTYPE_p_FXBitmap swig_types[2]
#define SWIGTYPE_p_FXComposite swig_types[3]
#define SWIGTYPE_p_FXDC swig_types[4]
#define SWIGTYPE_p_FXDCPrint swig_types[5]
#define SWIGTYPE_p_FXDCWindow swig_types[6]
#define SWIGTYPE_p_FXDrawable swig_types[7]
#define SWIGTYPE_p_FXEvent swig_types[8]
#define SWIGTYPE_p_FXFont swig_types[9]
#define SWIGTYPE_p_FXFrame swig_types[10]
#define SWIGTYPE_p_FXIcon swig_types[11]
#define SWIGTYPE_p_FXImage swig_types[12]
#define SWIGTYPE_p_FXMainWindow swig_types[13]
#define SWIGTYPE_p_FXPSBounds swig_types[14]
#define SWIGTYPE_p_FXPopup swig_types[15]
#define SWIGTYPE_p_FXPrinter swig_types[16]
#define SWIGTYPE_p_FXRectangle swig_types[17]
#define SWIGTYPE_p_FXRegion swig_types[18]
#define SWIGTYPE_p_FXRootWindow swig_types[19]
#define SWIGTYPE_p_FXSegment swig_types[20]
#define SWIGTYPE_p_FXShell swig_types[21]
#define SWIGTYPE_p_FXSplashWindow swig_types[22]
#define SWIGTYPE_p_FXString swig_types[23]
#define SWIGTYPE_p_FXTopWindow swig_types[24]
#define SWIGTYPE_p_FXWindow swig_types[25]
#define SWIGTYPE_p_char swig_types[26]
#define SWIGTYPE_p_double swig_types[27]
#define SWIGTYPE_p_float swig_types[28]
#define SWIGTYPE_p_int swig_types[29]
#define SWIGTYPE_p_long swig_types[30]
#define SWIGTYPE_p_short swig_types[31]
#define SWIGTYPE_p_unsigned_char swig_types[32]
#define SWIGTYPE_p_unsigned_int swig_types[33]
#define SWIGTYPE_p_unsigned_long swig_types[34]
#define SWIGTYPE_p_unsigned_short swig_types[35]
static swig_type_info *swig_types[37];
static swig_module_info swig_module = {swig_types, 36, 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_dc
#define SWIG_name    "Dc"


#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 FXSegment *new_FXSegment(FXshort x1=0,FXshort y1=0,FXshort x2=0,FXshort y2=0){
      FXSegment* seg=new FXSegment;
      seg->x1=x1; seg->y1=y1; seg->x2=x2; seg->y2=y2;
      return seg;
      }

SWIGINTERNINLINE VALUE
SWIG_From_short  (short value)
{    
  return SWIG_From_long  (value);
}

SWIGINTERN FXArc *new_FXArc(FXshort x=0,FXshort y=0,FXshort w=0,FXshort h=0,FXshort a=0,FXshort b=0){
      FXArc* arc=new FXArc;
      arc->x=x; arc->y=y; arc->w=w; arc->h=h; arc->a=a; arc->b=b;
      return arc;
      }
SWIGINTERN FXDC *new_FXDC(FXApp *a){
      return new FXRbDC(a);
      }

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);
}

SWIGINTERN VALUE FXDC_getDashPattern(FXDC const *self){
      return FXRbMakeArray(self->getDashPattern(), self->getDashLength());
      }

SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)
{
  static int init = 0;
  static swig_type_info* info = 0;
  if (!init) {
    info = SWIG_TypeQuery("_p_char");
    init = 1;
  }
  return info;
}


SWIGINTERN int
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
{
  if (TYPE(obj) == T_STRING) {
    char *cstr = StringValuePtr(obj); 
    size_t size = RSTRING_LEN(obj) + 1;
    if (cptr)  {
      if (alloc) {
	if (*alloc == SWIG_NEWOBJ) {
	  *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
	} else {
	  *cptr = cstr;
	  *alloc = SWIG_OLDOBJ;
	}
      }
    }
    if (psize) *psize = size;
    return SWIG_OK;
  } else {
    swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
    if (pchar_descriptor) {
      void* vptr = 0;
      if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
	if (cptr) *cptr = (char *)vptr;
	if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
	if (alloc) *alloc = SWIG_OLDOBJ;
	return SWIG_OK;
      }
    }
  }  
  return SWIG_TypeError;
}





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 FXDCWindow *new_FXDCWindow__SWIG_0(FXDrawable *drawable,FXEvent *event){
      return new FXRbDCWindow(drawable,event);
      }
SWIGINTERN FXDCWindow *new_FXDCWindow__SWIG_1(FXDrawable *drawable){
      return new FXRbDCWindow(drawable);
      }

/*@SWIG:/usr/share/swig2.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
{
  VALUE obj = args[0];
  VALUE type = TYPE(obj);
  double *res = (double *)(args[1]);
  *res = NUM2DBL(obj);
  return obj;
}
/*@SWIG@*/

SWIGINTERN int
SWIG_AsVal_double (VALUE obj, double *val)
{
  VALUE type = TYPE(obj);
  if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
    double v;
    VALUE a[2];
    a[0] = obj;
    a[1] = (VALUE)(&v);
    if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
      if (val) *val = v;
      return SWIG_OK;
    }
  }
  return SWIG_TypeError;
}


  #define SWIG_From_double   rb_float_new 

SWIGINTERN FXDCPrint *new_FXDCPrint(FXApp *a){
      return new FXRbDCPrint(a);
      }
static swig_class SwigClassFXSegment;

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

SWIGINTERN VALUE
_wrap_new_FXSegment(int argc, VALUE *argv, VALUE self) {
  FXshort arg1 = (FXshort) 0 ;
  FXshort arg2 = (FXshort) 0 ;
  FXshort arg3 = (FXshort) 0 ;
  FXshort arg4 = (FXshort) 0 ;
  FXSegment *result = 0 ;
  
  if ((argc < 0) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  if (argc > 0) {
    arg1 = NUM2INT(argv[0]);
  }
  if (argc > 1) {
    arg2 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg3 = NUM2INT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  result = (FXSegment *)new_FXSegment(arg1,arg2,arg3,arg4);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXSegment_x1_get(int argc, VALUE *argv, VALUE self) {
  FXSegment *arg1 = (FXSegment *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXSegment, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","x1", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSegment * >(argp1);
  result = (FXshort) ((arg1)->x1);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXSegment_y1_get(int argc, VALUE *argv, VALUE self) {
  FXSegment *arg1 = (FXSegment *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXSegment, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","y1", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSegment * >(argp1);
  result = (FXshort) ((arg1)->y1);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXSegment_x2_get(int argc, VALUE *argv, VALUE self) {
  FXSegment *arg1 = (FXSegment *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXSegment, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","x2", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSegment * >(argp1);
  result = (FXshort) ((arg1)->x2);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXSegment_y2_get(int argc, VALUE *argv, VALUE self) {
  FXSegment *arg1 = (FXSegment *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXSegment, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","y2", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSegment * >(argp1);
  result = (FXshort) ((arg1)->y2);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_FXSegment(FXSegment *arg1) {
    delete arg1;
}

static swig_class SwigClassFXArc;

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

SWIGINTERN VALUE
_wrap_new_FXArc(int argc, VALUE *argv, VALUE self) {
  FXshort arg1 = (FXshort) 0 ;
  FXshort arg2 = (FXshort) 0 ;
  FXshort arg3 = (FXshort) 0 ;
  FXshort arg4 = (FXshort) 0 ;
  FXshort arg5 = (FXshort) 0 ;
  FXshort arg6 = (FXshort) 0 ;
  FXArc *result = 0 ;
  
  if ((argc < 0) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  if (argc > 0) {
    arg1 = NUM2INT(argv[0]);
  }
  if (argc > 1) {
    arg2 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg3 = NUM2INT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  if (argc > 5) {
    arg6 = NUM2INT(argv[5]);
  }
  result = (FXArc *)new_FXArc(arg1,arg2,arg3,arg4,arg5,arg6);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXArc_x_get(int argc, VALUE *argv, VALUE self) {
  FXArc *arg1 = (FXArc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXArc *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< FXArc * >(argp1);
  result = (FXshort) ((arg1)->x);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXArc_y_get(int argc, VALUE *argv, VALUE self) {
  FXArc *arg1 = (FXArc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXArc *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< FXArc * >(argp1);
  result = (FXshort) ((arg1)->y);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXArc_w_get(int argc, VALUE *argv, VALUE self) {
  FXArc *arg1 = (FXArc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXArc *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< FXArc * >(argp1);
  result = (FXshort) ((arg1)->w);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXArc_h_get(int argc, VALUE *argv, VALUE self) {
  FXArc *arg1 = (FXArc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXArc *","h", 1, self )); 
  }
  arg1 = reinterpret_cast< FXArc * >(argp1);
  result = (FXshort) ((arg1)->h);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXArc_a_get(int argc, VALUE *argv, VALUE self) {
  FXArc *arg1 = (FXArc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXArc *","a", 1, self )); 
  }
  arg1 = reinterpret_cast< FXArc * >(argp1);
  result = (FXshort) ((arg1)->a);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXArc_b_get(int argc, VALUE *argv, VALUE self) {
  FXArc *arg1 = (FXArc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXshort 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_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXArc *","b", 1, self )); 
  }
  arg1 = reinterpret_cast< FXArc * >(argp1);
  result = (FXshort) ((arg1)->b);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_FXArc(FXArc *arg1) {
    delete arg1;
}

static swig_class SwigClassFXDC;

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

SWIGINTERN VALUE
_wrap_new_FXDC(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXDC *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXApp, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXApp *","FXDC", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXDC *)new_FXDC(arg1);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_getApp(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXApp *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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC const *","getApp", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  result = (FXApp *)((FXDC const *)arg1)->getApp();
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXApp, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}


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


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


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


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


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


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


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


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


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


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


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


SWIGINTERN VALUE
_wrap_FXDC_getTile(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXImage *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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC const *","getTile", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  result = (FXImage *)((FXDC const *)arg1)->getTile();
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXImage, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_getStippleBitmap(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXBitmap *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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC const *","getStippleBitmap", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  result = (FXBitmap *)((FXDC const *)arg1)->getStippleBitmap();
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXBitmap, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDC_getClipRectangle(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXRectangle *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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC const *","getClipRectangle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  result = (FXRectangle *) &((FXDC const *)arg1)->getClipRectangle();
  vresult = FXRbGetRubyObj(result, "FXRectangle *");
  return vresult;
fail:
  return Qnil;
}


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


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


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


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


SWIGINTERN VALUE
_wrap_FXDC_getFont(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXFont *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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC const *","getFont", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  result = (FXFont *)((FXDC const *)arg1)->getFont();
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXFont, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDC_drawPoints(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawPoints", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_drawPoints(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawPointsRel(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawPointsRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_drawPointsRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDC_drawLines(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawLines", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_drawLines(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawLinesRel(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawLinesRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_drawLinesRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawLineSegments(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXSegment *arg2 = (FXSegment *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawLineSegments", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXSegment[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXSegment *pSeg;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
      arg2[i] = *pSeg;
    }
  }
  FXDC_drawLineSegments(arg1,(FXSegment const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDC_drawRectangles(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXRectangle *arg2 = (FXRectangle *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawRectangles", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXRectangle *pRect;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
      arg2[i] = *pRect;
    }
  }
  FXDC_drawRectangles(arg1,(FXRectangle const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDC_drawArcs(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawArcs", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXArc[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXArc *pArc;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
      arg2[i] = *pArc;
    }
  }
  FXDC_drawArcs(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDC_fillRectangles(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXRectangle *arg2 = (FXRectangle *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillRectangles", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXRectangle *pRect;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
      arg2[i] = *pRect;
    }
  }
  FXDC_fillRectangles(arg1,(FXRectangle const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDC_fillChords(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillChords", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXArc const *","fillChords", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXArc * >(argp2);
  arg3 = NUM2UINT(argv[1]);
  FXDC_fillChords(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDC_fillArcs(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillArcs", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXArc[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXArc *pArc;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
      arg2[i] = *pArc;
    }
  }
  FXDC_fillArcs(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_fillPolygon(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillPolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_fillPolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillConcavePolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_fillConcavePolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillComplexPolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_fillComplexPolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillPolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_fillPolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillConcavePolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_fillConcavePolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","fillComplexPolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDC_fillComplexPolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawHashBox(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 = (FXint) 1 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawHashBox", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = NUM2INT(argv[4]);
  }
  FXDC_drawHashBox(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDC_drawArea__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXDrawable *arg2 = (FXDrawable *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 ;
  FXint arg7 ;
  FXint arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 7) || (argc > 7)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawArea", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable const *","drawArea", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXDrawable * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  arg6 = NUM2INT(argv[4]);
  arg7 = NUM2INT(argv[5]);
  arg8 = NUM2INT(argv[6]);
  FXDC_drawArea(arg1,(FXDrawable const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawArea__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXDrawable *arg2 = (FXDrawable *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 ;
  FXint arg7 ;
  FXint arg8 ;
  FXint arg9 ;
  FXint arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawArea", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable const *","drawArea", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXDrawable * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  arg6 = NUM2INT(argv[4]);
  arg7 = NUM2INT(argv[5]);
  arg8 = NUM2INT(argv[6]);
  arg9 = NUM2INT(argv[7]);
  arg10 = NUM2INT(argv[8]);
  FXDC_drawArea(arg1,(FXDrawable const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDC_drawArea(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[11];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 11) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDC, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXDrawable, 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) {
              {
                _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
              }
              if (_v) {
                {
                  _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
                }
                if (_v) {
                  {
                    _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
                  }
                  if (_v) {
                    return _wrap_FXDC_drawArea__SWIG_0(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDC, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXDrawable, 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) {
              {
                _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
              }
              if (_v) {
                {
                  _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
                }
                if (_v) {
                  {
                    _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
                  }
                  if (_v) {
                    {
                      _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        _v = (TYPE(argv[9]) == T_FIXNUM || TYPE(argv[9]) == T_BIGNUM) ? 1 : 0;
                      }
                      if (_v) {
                        return _wrap_FXDC_drawArea__SWIG_1(nargs, args, self);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 11, "drawArea", 
    "    void drawArea(FXDrawable const *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy)\n"
    "    void drawArea(FXDrawable const *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy, FXint dw, FXint dh)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawImage(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXImage *arg2 = (FXImage *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawImage", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXImage const *","drawImage", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXImage * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDC_drawImage(arg1,(FXImage const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawBitmap(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawBitmap", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap const *","drawBitmap", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDC_drawBitmap(arg1,(FXBitmap const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawIcon(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawIcon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIcon", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDC_drawIcon(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawIconShaded(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawIconShaded", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIconShaded", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDC_drawIconShaded(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawIconSunken(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawIconSunken", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIconSunken", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDC_drawIconSunken(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawText(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXchar *arg4 = (FXchar *) 0 ;
  FXuint arg5 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  {
    Check_Type(argv[2], T_STRING);
    arg4 = StringValuePtr(argv[2]);
    arg5 = RSTRING_LEN(argv[2]);
  }
  FXDC_drawText(arg1,arg2,arg3,(char const *)arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_drawImageText(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXchar *arg4 = (FXchar *) 0 ;
  FXuint arg5 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","drawImageText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  {
    Check_Type(argv[2], T_STRING);
    arg4 = StringValuePtr(argv[2]);
    arg5 = RSTRING_LEN(argv[2]);
  }
  FXDC_drawImageText(arg1,arg2,arg3,(char const *)arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDC_setDashes(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXuint arg2 ;
  FXchar *arg3 = (FXchar *) 0 ;
  FXuint arg4 ;
  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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setDashes", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  {
    Check_Type(argv[1], T_ARRAY);
    arg3 = new FXchar[RARRAY_LEN(argv[1])];
    arg4 = static_cast<FXuint>( RARRAY_LEN(argv[1]) );
    for (FXuint i = 0; i < arg4; i++) {
      arg3[i] = NUM2INT(rb_ary_entry(argv[1], i));
    }
  }
  FXDC_setDashes(arg1,arg2,(char const *)arg3,arg4);
  {
    delete [] arg3;
  }
  return Qnil;
fail:
  {
    delete [] arg3;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setLineWidth(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXuint arg2 = (FXuint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setLineWidth", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  if (argc > 0) {
    arg2 = NUM2UINT(argv[0]);
  }
  FXDC_setLineWidth(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setLineCap(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXCapStyle arg2 = (FXCapStyle) CAP_BUTT ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setLineCap", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXCapStyle","setLineCap", 2, argv[0] ));
    } 
    arg2 = static_cast< FXCapStyle >(val2);
  }
  FXDC_setLineCap(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setLineJoin(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXJoinStyle arg2 = (FXJoinStyle) JOIN_MITER ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setLineJoin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXJoinStyle","setLineJoin", 2, argv[0] ));
    } 
    arg2 = static_cast< FXJoinStyle >(val2);
  }
  FXDC_setLineJoin(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setLineStyle(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXLineStyle arg2 = (FXLineStyle) LINE_SOLID ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setLineStyle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXLineStyle","setLineStyle", 2, argv[0] ));
    } 
    arg2 = static_cast< FXLineStyle >(val2);
  }
  FXDC_setLineStyle(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setFillStyle(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXFillStyle arg2 = (FXFillStyle) FILL_SOLID ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setFillStyle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFillStyle","setFillStyle", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFillStyle >(val2);
  }
  FXDC_setFillStyle(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setFillRule(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXFillRule arg2 = (FXFillRule) RULE_EVEN_ODD ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setFillRule", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFillRule","setFillRule", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFillRule >(val2);
  }
  FXDC_setFillRule(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setFunction(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXFunction arg2 = (FXFunction) BLT_SRC ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setFunction", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFunction","setFunction", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFunction >(val2);
  }
  FXDC_setFunction(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setTile(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXImage *arg2 = (FXImage *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setTile", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXImage *","setTile", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXImage * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDC_setTile(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setStipple__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setStipple", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setStipple", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDC_setStipple(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setStipple__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXStipplePattern arg2 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setStipple", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXStipplePattern","setStipple", 2, argv[0] ));
  } 
  arg2 = static_cast< FXStipplePattern >(val2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDC_setStipple(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDC_setStipple(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 5) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if ((argc >= 2) && (argc <= 4)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDC, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXBitmap, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        if (argc <= 2) {
          return _wrap_FXDC_setStipple__SWIG_0(nargs, args, self);
        }
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          if (argc <= 3) {
            return _wrap_FXDC_setStipple__SWIG_0(nargs, args, self);
          }
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            return _wrap_FXDC_setStipple__SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  if ((argc >= 2) && (argc <= 4)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDC, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        if (argc <= 2) {
          return _wrap_FXDC_setStipple__SWIG_1(nargs, args, self);
        }
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          if (argc <= 3) {
            return _wrap_FXDC_setStipple__SWIG_1(nargs, args, self);
          }
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            return _wrap_FXDC_setStipple__SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "setStipple", 
    "    void setStipple(FXBitmap *bitmap, FXint dx, FXint dy)\n"
    "    void setStipple(FXStipplePattern pat, FXint dx, FXint dy)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setClipRegion(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXRegion *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setClipRegion", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRegion,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setClipRegion", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXRegion * >(argp2);
  FXDC_setClipRegion(arg1,(FXRegion const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDC_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXRectangle *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setClipRectangle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRectangle,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","setClipRectangle", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXRectangle * >(argp2);
  FXDC_setClipRectangle(arg1,(FXRectangle const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDC_setClipRectangle(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) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDC, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRectangle, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FXDC_setClipRectangle__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDC, 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) {
          {
            _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_FXDC_setClipRectangle__SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "setClipRectangle", 
    "    void setClipRectangle(FXint x, FXint y, FXint w, FXint h)\n"
    "    void setClipRectangle(FXRectangle const &rectangle)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_clearClipRectangle(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","clearClipRectangle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  FXDC_clearClipRectangle(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setClipMask(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setClipMask", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setClipMask", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDC_setClipMask(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_clearClipMask(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","clearClipMask", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  FXDC_clearClipMask(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_setFont(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 0 ;
  FXFont *arg2 = (FXFont *) 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","setFont", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXFont, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXFont *","setFont", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXFont * >(argp2);
  FXDC_setFont(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDC_clipChildren(int argc, VALUE *argv, VALUE self) {
  FXDC *arg1 = (FXDC *) 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_FXDC, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDC *","clipChildren", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDC * >(argp1);
  arg2 = to_FXbool(argv[0]);
  FXDC_clipChildren(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


static swig_class SwigClassFXDCWindow;

SWIGINTERN VALUE
_wrap_new_FXDCWindow__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 0 ;
  FXEvent *arg2 = (FXEvent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  FXDCWindow *result = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable *","FXDCWindow", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXEvent, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXEvent *","FXDCWindow", 2, argv[1] )); 
  }
  arg2 = reinterpret_cast< FXEvent * >(argp2);
  {
    result = (FXDCWindow *)new_FXDCWindow__SWIG_0(arg1,arg2);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_ensure(VALUEFUNC(rb_yield), self, VALUEFUNC(FXRbDCWindow::endit), self);
    }
  }
  return self;
fail:
  return Qnil;
}


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

SWIGINTERN VALUE
_wrap_new_FXDCWindow__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXDCWindow *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable *","FXDCWindow", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  {
    result = (FXDCWindow *)new_FXDCWindow__SWIG_1(arg1);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_ensure(VALUEFUNC(rb_yield), self, VALUEFUNC(FXRbDCWindow::endit), self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_FXDCWindow(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDrawable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FXDCWindow__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDrawable, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXEvent, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_FXDCWindow__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "FXDCWindow.new", 
    "    FXDCWindow.new(FXDrawable *drawable, FXEvent *event)\n"
    "    FXDCWindow.new(FXDrawable *drawable)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_begin(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXDrawable *arg2 = (FXDrawable *) 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","begin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable *","begin", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXDrawable * >(argp2);
  (arg1)->begin(arg2);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN void
free_FXDCWindow(FXDCWindow *arg1) {
    delete arg1;
}

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


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


SWIGINTERN VALUE
_wrap_FXDCWindow_drawPoints(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawPoints", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_drawPoints(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawPointsRel(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawPointsRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_drawPointsRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCWindow_drawLines(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawLines", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_drawLines(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawLinesRel(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawLinesRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_drawLinesRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawLineSegments(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXSegment *arg2 = (FXSegment *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawLineSegments", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXSegment[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXSegment *pSeg;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
      arg2[i] = *pSeg;
    }
  }
  FXDCWindow_drawLineSegments(arg1,(FXSegment const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCWindow_drawRectangles(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXRectangle *arg2 = (FXRectangle *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawRectangles", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXRectangle *pRect;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
      arg2[i] = *pRect;
    }
  }
  FXDCWindow_drawRectangles(arg1,(FXRectangle const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCWindow_drawArcs(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawArcs", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXArc[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXArc *pArc;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
      arg2[i] = *pArc;
    }
  }
  FXDCWindow_drawArcs(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCWindow_fillRectangles(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXRectangle *arg2 = (FXRectangle *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillRectangles", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXRectangle *pRect;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
      arg2[i] = *pRect;
    }
  }
  FXDCWindow_fillRectangles(arg1,(FXRectangle const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCWindow_fillChords(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillChords", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXArc const *","fillChords", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXArc * >(argp2);
  arg3 = NUM2UINT(argv[1]);
  FXDCWindow_fillChords(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCWindow_fillArcs(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillArcs", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXArc[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXArc *pArc;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
      arg2[i] = *pArc;
    }
  }
  FXDCWindow_fillArcs(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_fillPolygon(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillPolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_fillPolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillConcavePolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_fillConcavePolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillComplexPolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_fillComplexPolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillPolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_fillPolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillConcavePolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_fillConcavePolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","fillComplexPolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCWindow_fillComplexPolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawHashBox(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 = (FXint) 1 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawHashBox", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = NUM2INT(argv[4]);
  }
  FXDCWindow_drawHashBox(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCWindow_drawArea__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXDrawable *arg2 = (FXDrawable *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 ;
  FXint arg7 ;
  FXint arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 7) || (argc > 7)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawArea", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable const *","drawArea", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXDrawable * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  arg6 = NUM2INT(argv[4]);
  arg7 = NUM2INT(argv[5]);
  arg8 = NUM2INT(argv[6]);
  FXDCWindow_drawArea(arg1,(FXDrawable const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawArea__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXDrawable *arg2 = (FXDrawable *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 ;
  FXint arg7 ;
  FXint arg8 ;
  FXint arg9 ;
  FXint arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawArea", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable const *","drawArea", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXDrawable * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  arg6 = NUM2INT(argv[4]);
  arg7 = NUM2INT(argv[5]);
  arg8 = NUM2INT(argv[6]);
  arg9 = NUM2INT(argv[7]);
  arg10 = NUM2INT(argv[8]);
  FXDCWindow_drawArea(arg1,(FXDrawable const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDCWindow_drawArea(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[11];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 11) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXDrawable, 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) {
              {
                _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
              }
              if (_v) {
                {
                  _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
                }
                if (_v) {
                  {
                    _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
                  }
                  if (_v) {
                    return _wrap_FXDCWindow_drawArea__SWIG_0(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXDrawable, 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) {
              {
                _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
              }
              if (_v) {
                {
                  _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
                }
                if (_v) {
                  {
                    _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
                  }
                  if (_v) {
                    {
                      _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        _v = (TYPE(argv[9]) == T_FIXNUM || TYPE(argv[9]) == T_BIGNUM) ? 1 : 0;
                      }
                      if (_v) {
                        return _wrap_FXDCWindow_drawArea__SWIG_1(nargs, args, self);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 11, "drawArea", 
    "    void drawArea(FXDrawable const *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy)\n"
    "    void drawArea(FXDrawable const *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy, FXint dw, FXint dh)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawImage(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXImage *arg2 = (FXImage *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawImage", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXImage const *","drawImage", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXImage * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCWindow_drawImage(arg1,(FXImage const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawBitmap(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawBitmap", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap const *","drawBitmap", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCWindow_drawBitmap(arg1,(FXBitmap const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawIcon(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawIcon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIcon", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCWindow_drawIcon(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawIconShaded(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawIconShaded", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIconShaded", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCWindow_drawIconShaded(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawIconSunken(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawIconSunken", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIconSunken", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCWindow_drawIconSunken(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawText(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXchar *arg4 = (FXchar *) 0 ;
  FXuint arg5 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  {
    Check_Type(argv[2], T_STRING);
    arg4 = StringValuePtr(argv[2]);
    arg5 = RSTRING_LEN(argv[2]);
  }
  FXDCWindow_drawText(arg1,arg2,arg3,(char const *)arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_drawImageText(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXchar *arg4 = (FXchar *) 0 ;
  FXuint arg5 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","drawImageText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  {
    Check_Type(argv[2], T_STRING);
    arg4 = StringValuePtr(argv[2]);
    arg5 = RSTRING_LEN(argv[2]);
  }
  FXDCWindow_drawImageText(arg1,arg2,arg3,(char const *)arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCWindow_setDashes(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXuint arg2 ;
  FXchar *arg3 = (FXchar *) 0 ;
  FXuint arg4 ;
  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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setDashes", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  {
    Check_Type(argv[1], T_ARRAY);
    arg3 = new FXchar[RARRAY_LEN(argv[1])];
    arg4 = static_cast<FXuint>( RARRAY_LEN(argv[1]) );
    for (FXuint i = 0; i < arg4; i++) {
      arg3[i] = NUM2INT(rb_ary_entry(argv[1], i));
    }
  }
  FXDCWindow_setDashes(arg1,arg2,(char const *)arg3,arg4);
  {
    delete [] arg3;
  }
  return Qnil;
fail:
  {
    delete [] arg3;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setLineWidth(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXuint arg2 = (FXuint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setLineWidth", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  if (argc > 0) {
    arg2 = NUM2UINT(argv[0]);
  }
  FXDCWindow_setLineWidth(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setLineCap(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXCapStyle arg2 = (FXCapStyle) CAP_BUTT ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setLineCap", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXCapStyle","setLineCap", 2, argv[0] ));
    } 
    arg2 = static_cast< FXCapStyle >(val2);
  }
  FXDCWindow_setLineCap(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setLineJoin(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXJoinStyle arg2 = (FXJoinStyle) JOIN_MITER ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setLineJoin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXJoinStyle","setLineJoin", 2, argv[0] ));
    } 
    arg2 = static_cast< FXJoinStyle >(val2);
  }
  FXDCWindow_setLineJoin(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setLineStyle(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXLineStyle arg2 = (FXLineStyle) LINE_SOLID ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setLineStyle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXLineStyle","setLineStyle", 2, argv[0] ));
    } 
    arg2 = static_cast< FXLineStyle >(val2);
  }
  FXDCWindow_setLineStyle(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setFillStyle(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXFillStyle arg2 = (FXFillStyle) FILL_SOLID ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setFillStyle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFillStyle","setFillStyle", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFillStyle >(val2);
  }
  FXDCWindow_setFillStyle(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setFillRule(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXFillRule arg2 = (FXFillRule) RULE_EVEN_ODD ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setFillRule", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFillRule","setFillRule", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFillRule >(val2);
  }
  FXDCWindow_setFillRule(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setFunction(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXFunction arg2 = (FXFunction) BLT_SRC ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setFunction", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFunction","setFunction", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFunction >(val2);
  }
  FXDCWindow_setFunction(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setTile(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXImage *arg2 = (FXImage *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setTile", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXImage *","setTile", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXImage * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDCWindow_setTile(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setStipple__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setStipple", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setStipple", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDCWindow_setStipple(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setStipple__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXStipplePattern arg2 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setStipple", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXStipplePattern","setStipple", 2, argv[0] ));
  } 
  arg2 = static_cast< FXStipplePattern >(val2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDCWindow_setStipple(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDCWindow_setStipple(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 5) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if ((argc >= 2) && (argc <= 4)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXBitmap, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        if (argc <= 2) {
          return _wrap_FXDCWindow_setStipple__SWIG_0(nargs, args, self);
        }
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          if (argc <= 3) {
            return _wrap_FXDCWindow_setStipple__SWIG_0(nargs, args, self);
          }
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            return _wrap_FXDCWindow_setStipple__SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  if ((argc >= 2) && (argc <= 4)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        if (argc <= 2) {
          return _wrap_FXDCWindow_setStipple__SWIG_1(nargs, args, self);
        }
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          if (argc <= 3) {
            return _wrap_FXDCWindow_setStipple__SWIG_1(nargs, args, self);
          }
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            return _wrap_FXDCWindow_setStipple__SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "setStipple", 
    "    void setStipple(FXBitmap *bitmap, FXint dx, FXint dy)\n"
    "    void setStipple(FXStipplePattern pat, FXint dx, FXint dy)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setClipRegion(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXRegion *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setClipRegion", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRegion,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setClipRegion", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXRegion * >(argp2);
  FXDCWindow_setClipRegion(arg1,(FXRegion const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCWindow_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXRectangle *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setClipRectangle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRectangle,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","setClipRectangle", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXRectangle * >(argp2);
  FXDCWindow_setClipRectangle(arg1,(FXRectangle const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDCWindow_setClipRectangle(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) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRectangle, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FXDCWindow_setClipRectangle__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCWindow, 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) {
          {
            _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_FXDCWindow_setClipRectangle__SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "setClipRectangle", 
    "    void setClipRectangle(FXint x, FXint y, FXint w, FXint h)\n"
    "    void setClipRectangle(FXRectangle const &rectangle)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_clearClipRectangle(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","clearClipRectangle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  FXDCWindow_clearClipRectangle(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setClipMask(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setClipMask", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setClipMask", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDCWindow_setClipMask(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_clearClipMask(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","clearClipMask", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  FXDCWindow_clearClipMask(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_setFont(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 0 ;
  FXFont *arg2 = (FXFont *) 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","setFont", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXFont, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXFont *","setFont", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXFont * >(argp2);
  FXDCWindow_setFont(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCWindow_clipChildren(int argc, VALUE *argv, VALUE self) {
  FXDCWindow *arg1 = (FXDCWindow *) 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_FXDCWindow, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCWindow *","clipChildren", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCWindow * >(argp1);
  arg2 = to_FXbool(argv[0]);
  FXDCWindow_clipChildren(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


static swig_class SwigClassFXPSBounds;

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

SWIGINTERN VALUE
_wrap_new_FXPSBounds(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (FXPSBounds *)new FXPSBounds();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPSBounds_xmin_set(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *arg1 = (FXPSBounds *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPSBounds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPSBounds *","xmin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPSBounds * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","xmin", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->xmin = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPSBounds_xmin_get(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *arg1 = (FXPSBounds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPSBounds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPSBounds *","xmin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPSBounds * >(argp1);
  result = (FXdouble) ((arg1)->xmin);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPSBounds_xmax_set(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *arg1 = (FXPSBounds *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPSBounds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPSBounds *","xmax", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPSBounds * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","xmax", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->xmax = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPSBounds_xmax_get(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *arg1 = (FXPSBounds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPSBounds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPSBounds *","xmax", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPSBounds * >(argp1);
  result = (FXdouble) ((arg1)->xmax);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPSBounds_ymin_set(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *arg1 = (FXPSBounds *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPSBounds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPSBounds *","ymin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPSBounds * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","ymin", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->ymin = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPSBounds_ymin_get(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *arg1 = (FXPSBounds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPSBounds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPSBounds *","ymin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPSBounds * >(argp1);
  result = (FXdouble) ((arg1)->ymin);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPSBounds_ymax_set(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *arg1 = (FXPSBounds *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPSBounds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPSBounds *","ymax", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPSBounds * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","ymax", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->ymax = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPSBounds_ymax_get(int argc, VALUE *argv, VALUE self) {
  FXPSBounds *arg1 = (FXPSBounds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPSBounds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPSBounds *","ymax", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPSBounds * >(argp1);
  result = (FXdouble) ((arg1)->ymax);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_FXPSBounds(FXPSBounds *arg1) {
    delete arg1;
}

static swig_class SwigClassFXPrinter;

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

SWIGINTERN VALUE
_wrap_new_FXPrinter(int argc, VALUE *argv, VALUE self) {
  FXPrinter *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (FXPrinter *)new FXPrinter();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_name_set(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  FXString 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_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","name", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  arg2 = to_FXString(argv[0]);
  if (arg1) (arg1)->name = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_name_get(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXString result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","name", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  result =  ((arg1)->name);
  vresult = to_ruby((&result)->text());
  return vresult;
fail:
  return Qnil;
}


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


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


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


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


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


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


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


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


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


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


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


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


SWIGINTERN VALUE
_wrap_FXPrinter_mediawidth_set(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediawidth", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","mediawidth", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->mediawidth = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_mediawidth_get(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediawidth", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  result = (FXdouble) ((arg1)->mediawidth);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_mediaheight_set(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediaheight", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","mediaheight", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->mediaheight = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_mediaheight_get(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediaheight", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  result = (FXdouble) ((arg1)->mediaheight);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_leftmargin_set(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","leftmargin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","leftmargin", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->leftmargin = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_leftmargin_get(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","leftmargin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  result = (FXdouble) ((arg1)->leftmargin);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_rightmargin_set(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","rightmargin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","rightmargin", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->rightmargin = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_rightmargin_get(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","rightmargin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  result = (FXdouble) ((arg1)->rightmargin);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_topmargin_set(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","topmargin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","topmargin", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->topmargin = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_topmargin_get(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","topmargin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  result = (FXdouble) ((arg1)->topmargin);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_bottommargin_set(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","bottommargin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","bottommargin", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->bottommargin = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXPrinter_bottommargin_get(int argc, VALUE *argv, VALUE self) {
  FXPrinter *arg1 = (FXPrinter *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXPrinter, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","bottommargin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXPrinter * >(argp1);
  result = (FXdouble) ((arg1)->bottommargin);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}


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


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


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


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


static swig_class SwigClassFXDCPrint;

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

SWIGINTERN VALUE
_wrap_new_FXDCPrint(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXDCPrint *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXApp, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXApp *","FXDCPrint", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXDCPrint *)new_FXDCPrint(arg1);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_beginPrint(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPrinter *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  FXbool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","beginPrint", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXPrinter,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXPrinter &","beginPrint", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXPrinter &","beginPrint", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXPrinter * >(argp2);
  result = (FXbool)(arg1)->beginPrint(*arg2);
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_endPrint(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXbool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","endPrint", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  result = (FXbool)(arg1)->endPrint();
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_beginPage(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXuint arg2 = (FXuint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXbool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","beginPage", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  if (argc > 0) {
    arg2 = NUM2UINT(argv[0]);
  }
  result = (FXbool)(arg1)->beginPage(arg2);
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_endPage(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXbool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","endPage", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  result = (FXbool)(arg1)->endPage();
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setContentRange(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXbool result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setContentRange", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  result = (FXbool)(arg1)->setContentRange(arg2,arg3,arg4,arg5);
  vresult = result ? Qtrue : Qfalse;
  return vresult;
fail:
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCPrint_drawPoints(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawPoints", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_drawPoints(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawPointsRel(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawPointsRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_drawPointsRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCPrint_drawLines(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawLines", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_drawLines(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawLinesRel(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawLinesRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_drawLinesRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawLineSegments(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXSegment *arg2 = (FXSegment *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawLineSegments", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXSegment[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXSegment *pSeg;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
      arg2[i] = *pSeg;
    }
  }
  FXDCPrint_drawLineSegments(arg1,(FXSegment const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCPrint_drawRectangles(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXRectangle *arg2 = (FXRectangle *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawRectangles", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXRectangle *pRect;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
      arg2[i] = *pRect;
    }
  }
  FXDCPrint_drawRectangles(arg1,(FXRectangle const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCPrint_drawArcs(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawArcs", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXArc[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXArc *pArc;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
      arg2[i] = *pArc;
    }
  }
  FXDCPrint_drawArcs(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCPrint_fillRectangles(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXRectangle *arg2 = (FXRectangle *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillRectangles", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXRectangle *pRect;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
      arg2[i] = *pRect;
    }
  }
  FXDCPrint_fillRectangles(arg1,(FXRectangle const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCPrint_fillChords(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillChords", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXArc, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXArc const *","fillChords", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXArc * >(argp2);
  arg3 = NUM2UINT(argv[1]);
  FXDCPrint_fillChords(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCPrint_fillArcs(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXArc *arg2 = (FXArc *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillArcs", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXArc[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXArc *pArc;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
      arg2[i] = *pArc;
    }
  }
  FXDCPrint_fillArcs(arg1,(FXArc const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_fillPolygon(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillPolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_fillPolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillConcavePolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_fillConcavePolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillComplexPolygon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_fillComplexPolygon(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillPolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_fillPolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillConcavePolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_fillConcavePolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXPoint *arg2 = (FXPoint *) 0 ;
  FXuint arg3 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","fillComplexPolygonRel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  {
    Check_Type(argv[0], T_ARRAY);
    arg2 = new FXPoint[RARRAY_LEN(argv[0])];
    arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
    for (FXuint i = 0; i < arg3; i++) {
      FXPoint *pPoint;
      Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
      arg2[i] = *pPoint;
    }
  }
  FXDCPrint_fillComplexPolygonRel(arg1,(FXPoint const *)arg2,arg3);
  {
    delete [] arg2;
  }
  return Qnil;
fail:
  {
    delete [] arg2;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawHashBox(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 = (FXint) 1 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawHashBox", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = NUM2INT(argv[4]);
  }
  FXDCPrint_drawHashBox(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCPrint_drawArea__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXDrawable *arg2 = (FXDrawable *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 ;
  FXint arg7 ;
  FXint arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 7) || (argc > 7)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawArea", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable const *","drawArea", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXDrawable * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  arg6 = NUM2INT(argv[4]);
  arg7 = NUM2INT(argv[5]);
  arg8 = NUM2INT(argv[6]);
  FXDCPrint_drawArea(arg1,(FXDrawable const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawArea__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXDrawable *arg2 = (FXDrawable *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXint arg6 ;
  FXint arg7 ;
  FXint arg8 ;
  FXint arg9 ;
  FXint arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawArea", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXDrawable const *","drawArea", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXDrawable * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  arg6 = NUM2INT(argv[4]);
  arg7 = NUM2INT(argv[5]);
  arg8 = NUM2INT(argv[6]);
  arg9 = NUM2INT(argv[7]);
  arg10 = NUM2INT(argv[8]);
  FXDCPrint_drawArea(arg1,(FXDrawable const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDCPrint_drawArea(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[11];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 11) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 8) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCPrint, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXDrawable, 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) {
              {
                _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
              }
              if (_v) {
                {
                  _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
                }
                if (_v) {
                  {
                    _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
                  }
                  if (_v) {
                    return _wrap_FXDCPrint_drawArea__SWIG_0(nargs, args, self);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  if (argc == 10) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCPrint, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXDrawable, 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) {
              {
                _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0;
              }
              if (_v) {
                {
                  _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0;
                }
                if (_v) {
                  {
                    _v = (TYPE(argv[7]) == T_FIXNUM || TYPE(argv[7]) == T_BIGNUM) ? 1 : 0;
                  }
                  if (_v) {
                    {
                      _v = (TYPE(argv[8]) == T_FIXNUM || TYPE(argv[8]) == T_BIGNUM) ? 1 : 0;
                    }
                    if (_v) {
                      {
                        _v = (TYPE(argv[9]) == T_FIXNUM || TYPE(argv[9]) == T_BIGNUM) ? 1 : 0;
                      }
                      if (_v) {
                        return _wrap_FXDCPrint_drawArea__SWIG_1(nargs, args, self);
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 11, "drawArea", 
    "    void drawArea(FXDrawable const *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy)\n"
    "    void drawArea(FXDrawable const *source, FXint sx, FXint sy, FXint sw, FXint sh, FXint dx, FXint dy, FXint dw, FXint dh)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawImage(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXImage *arg2 = (FXImage *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawImage", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXImage const *","drawImage", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXImage * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCPrint_drawImage(arg1,(FXImage const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawBitmap(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawBitmap", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap const *","drawBitmap", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCPrint_drawBitmap(arg1,(FXBitmap const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawIcon(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawIcon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIcon", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCPrint_drawIcon(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawIconShaded(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawIconShaded", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIconShaded", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCPrint_drawIconShaded(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawIconSunken(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  FXint arg3 ;
  FXint arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawIconSunken", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon const *","drawIconSunken", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  FXDCPrint_drawIconSunken(arg1,(FXIcon const *)arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawText(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXchar *arg4 = (FXchar *) 0 ;
  FXuint arg5 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  {
    Check_Type(argv[2], T_STRING);
    arg4 = StringValuePtr(argv[2]);
    arg5 = RSTRING_LEN(argv[2]);
  }
  FXDCPrint_drawText(arg1,arg2,arg3,(char const *)arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_drawImageText(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXchar *arg4 = (FXchar *) 0 ;
  FXuint arg5 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","drawImageText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  {
    Check_Type(argv[2], T_STRING);
    arg4 = StringValuePtr(argv[2]);
    arg5 = RSTRING_LEN(argv[2]);
  }
  FXDCPrint_drawImageText(arg1,arg2,arg3,(char const *)arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


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


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


SWIGINTERN VALUE
_wrap_FXDCPrint_setDashes(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXuint arg2 ;
  FXchar *arg3 = (FXchar *) 0 ;
  FXuint arg4 ;
  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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setDashes", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  {
    Check_Type(argv[1], T_ARRAY);
    arg3 = new FXchar[RARRAY_LEN(argv[1])];
    arg4 = static_cast<FXuint>( RARRAY_LEN(argv[1]) );
    for (FXuint i = 0; i < arg4; i++) {
      arg3[i] = NUM2INT(rb_ary_entry(argv[1], i));
    }
  }
  FXDCPrint_setDashes(arg1,arg2,(char const *)arg3,arg4);
  {
    delete [] arg3;
  }
  return Qnil;
fail:
  {
    delete [] arg3;
  }
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setLineWidth(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXuint arg2 = (FXuint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setLineWidth", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  if (argc > 0) {
    arg2 = NUM2UINT(argv[0]);
  }
  FXDCPrint_setLineWidth(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setLineCap(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXCapStyle arg2 = (FXCapStyle) CAP_BUTT ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setLineCap", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXCapStyle","setLineCap", 2, argv[0] ));
    } 
    arg2 = static_cast< FXCapStyle >(val2);
  }
  FXDCPrint_setLineCap(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setLineJoin(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXJoinStyle arg2 = (FXJoinStyle) JOIN_MITER ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setLineJoin", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXJoinStyle","setLineJoin", 2, argv[0] ));
    } 
    arg2 = static_cast< FXJoinStyle >(val2);
  }
  FXDCPrint_setLineJoin(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setLineStyle(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXLineStyle arg2 = (FXLineStyle) LINE_SOLID ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setLineStyle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXLineStyle","setLineStyle", 2, argv[0] ));
    } 
    arg2 = static_cast< FXLineStyle >(val2);
  }
  FXDCPrint_setLineStyle(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setFillStyle(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXFillStyle arg2 = (FXFillStyle) FILL_SOLID ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setFillStyle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFillStyle","setFillStyle", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFillStyle >(val2);
  }
  FXDCPrint_setFillStyle(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setFillRule(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXFillRule arg2 = (FXFillRule) RULE_EVEN_ODD ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setFillRule", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFillRule","setFillRule", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFillRule >(val2);
  }
  FXDCPrint_setFillRule(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setFunction(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXFunction arg2 = (FXFunction) BLT_SRC ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 0) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setFunction", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  if (argc > 0) {
    ecode2 = SWIG_AsVal_int(argv[0], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXFunction","setFunction", 2, argv[0] ));
    } 
    arg2 = static_cast< FXFunction >(val2);
  }
  FXDCPrint_setFunction(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setTile(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXImage *arg2 = (FXImage *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setTile", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXImage *","setTile", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXImage * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDCPrint_setTile(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setStipple__SWIG_0(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setStipple", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setStipple", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDCPrint_setStipple(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setStipple__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXStipplePattern arg2 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setStipple", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXStipplePattern","setStipple", 2, argv[0] ));
  } 
  arg2 = static_cast< FXStipplePattern >(val2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDCPrint_setStipple(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDCPrint_setStipple(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 5) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if ((argc >= 2) && (argc <= 4)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCPrint, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXBitmap, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        if (argc <= 2) {
          return _wrap_FXDCPrint_setStipple__SWIG_0(nargs, args, self);
        }
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          if (argc <= 3) {
            return _wrap_FXDCPrint_setStipple__SWIG_0(nargs, args, self);
          }
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            return _wrap_FXDCPrint_setStipple__SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  if ((argc >= 2) && (argc <= 4)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCPrint, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        if (argc <= 2) {
          return _wrap_FXDCPrint_setStipple__SWIG_1(nargs, args, self);
        }
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          if (argc <= 3) {
            return _wrap_FXDCPrint_setStipple__SWIG_1(nargs, args, self);
          }
          {
            _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
          }
          if (_v) {
            return _wrap_FXDCPrint_setStipple__SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "setStipple", 
    "    void setStipple(FXBitmap *bitmap, FXint dx, FXint dy)\n"
    "    void setStipple(FXStipplePattern pat, FXint dx, FXint dy)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setClipRegion(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXRegion *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setClipRegion", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRegion,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setClipRegion", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXRegion * >(argp2);
  FXDCPrint_setClipRegion(arg1,(FXRegion const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


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


SWIGINTERN VALUE
_wrap_FXDCPrint_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXRectangle *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setClipRectangle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRectangle,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","setClipRectangle", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXRectangle * >(argp2);
  FXDCPrint_setClipRectangle(arg1,(FXRectangle const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_FXDCPrint_setClipRectangle(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) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCPrint, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRectangle, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FXDCPrint_setClipRectangle__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXDCPrint, 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) {
          {
            _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_FXDCPrint_setClipRectangle__SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "setClipRectangle", 
    "    void setClipRectangle(FXint x, FXint y, FXint w, FXint h)\n"
    "    void setClipRectangle(FXRectangle const &rectangle)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_clearClipRectangle(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","clearClipRectangle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  FXDCPrint_clearClipRectangle(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setClipMask(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXBitmap *arg2 = (FXBitmap *) 0 ;
  FXint arg3 = (FXint) 0 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setClipMask", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXBitmap, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXBitmap *","setClipMask", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXBitmap * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXDCPrint_setClipMask(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_clearClipMask(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","clearClipMask", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  FXDCPrint_clearClipMask(arg1);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_setFont(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 0 ;
  FXFont *arg2 = (FXFont *) 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","setFont", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXFont, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXFont *","setFont", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXFont * >(argp2);
  FXDCPrint_setFont(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_FXDCPrint_clipChildren(int argc, VALUE *argv, VALUE self) {
  FXDCPrint *arg1 = (FXDCPrint *) 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_FXDCPrint, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDCPrint *","clipChildren", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDCPrint * >(argp1);
  arg2 = to_FXbool(argv[0]);
  FXDCPrint_clipChildren(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}



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

static void *_p_FXCompositeTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *) ((FXComposite *) x));
}
static void *_p_FXShellTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *)(FXComposite *) ((FXShell *) x));
}
static void *_p_FXWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *)  ((FXWindow *) x));
}
static void *_p_FXRootWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *)(FXComposite *) ((FXRootWindow *) x));
}
static void *_p_FXPopupTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *) ((FXPopup *) x));
}
static void *_p_FXTopWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *) ((FXTopWindow *) x));
}
static void *_p_FXMainWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXMainWindow *) x));
}
static void *_p_FXSplashWindowTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *)(FXComposite *)(FXShell *)(FXTopWindow *) ((FXSplashWindow *) x));
}
static void *_p_FXFrameTo_p_FXDrawable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDrawable *) (FXWindow *) ((FXFrame *) x));
}
static void *_p_FXDCPrintTo_p_FXDC(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDC *)  ((FXDCPrint *) x));
}
static void *_p_FXDCWindowTo_p_FXDC(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((FXDC *)  ((FXDCWindow *) x));
}
static swig_type_info _swigt__p_FXApp = {"_p_FXApp", "FXApp *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXArc = {"_p_FXArc", "FXArc *", 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_FXDC = {"_p_FXDC", "FXDC *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXDCPrint = {"_p_FXDCPrint", "FXDCPrint *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXDCWindow = {"_p_FXDCWindow", "FXDCWindow *", 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_FXComposite = {"_p_FXComposite", 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_FXWindow = {"_p_FXWindow", 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_FXPopup = {"_p_FXPopup", 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_FXMainWindow = {"_p_FXMainWindow", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_FXSplashWindow = {"_p_FXSplashWindow", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_FXFrame = {"_p_FXFrame", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_FXEvent = {"_p_FXEvent", "FXEvent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXFont = {"_p_FXFont", "FXFont *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXIcon = {"_p_FXIcon", "FXIcon *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXImage = {"_p_FXImage", "FXImage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXPSBounds = {"_p_FXPSBounds", "FXPSBounds *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXPrinter = {"_p_FXPrinter", "FXPrinter *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXRectangle = {"_p_FXRectangle", "FXRectangle *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXRegion = {"_p_FXRegion", "FXRegion *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXSegment = {"_p_FXSegment", "FXSegment *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FXString = {"_p_FXString", "FXString *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *|FXchar *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_double = {"_p_double", "double *|FXdouble *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_float = {"_p_float", "float *|FXfloat *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "FXint *|int *|FXInputHandle *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long = {"_p_long", "long *|FXTime *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_short = {"_p_short", "short *|FXshort *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "FXuchar *|unsigned char *|FXbool *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "FXwchar *|FXDragType *|unsigned int *|FXuint *|FXColor *|FXSelector *|FXHotKey *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|FXuval *|FXPixel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|FXushort *", 0, 0, (void*)0, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__p_FXApp,
  &_swigt__p_FXArc,
  &_swigt__p_FXBitmap,
  &_swigt__p_FXComposite,
  &_swigt__p_FXDC,
  &_swigt__p_FXDCPrint,
  &_swigt__p_FXDCWindow,
  &_swigt__p_FXDrawable,
  &_swigt__p_FXEvent,
  &_swigt__p_FXFont,
  &_swigt__p_FXFrame,
  &_swigt__p_FXIcon,
  &_swigt__p_FXImage,
  &_swigt__p_FXMainWindow,
  &_swigt__p_FXPSBounds,
  &_swigt__p_FXPopup,
  &_swigt__p_FXPrinter,
  &_swigt__p_FXRectangle,
  &_swigt__p_FXRegion,
  &_swigt__p_FXRootWindow,
  &_swigt__p_FXSegment,
  &_swigt__p_FXShell,
  &_swigt__p_FXSplashWindow,
  &_swigt__p_FXString,
  &_swigt__p_FXTopWindow,
  &_swigt__p_FXWindow,
  &_swigt__p_char,
  &_swigt__p_double,
  &_swigt__p_float,
  &_swigt__p_int,
  &_swigt__p_long,
  &_swigt__p_short,
  &_swigt__p_unsigned_char,
  &_swigt__p_unsigned_int,
  &_swigt__p_unsigned_long,
  &_swigt__p_unsigned_short,
};

static swig_cast_info _swigc__p_FXApp[] = {  {&_swigt__p_FXApp, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXArc[] = {  {&_swigt__p_FXArc, 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_FXDC[] = {  {&_swigt__p_FXDCPrint, _p_FXDCPrintTo_p_FXDC, 0, 0},  {&_swigt__p_FXDC, 0, 0, 0},  {&_swigt__p_FXDCWindow, _p_FXDCWindowTo_p_FXDC, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXDCPrint[] = {  {&_swigt__p_FXDCPrint, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXDCWindow[] = {  {&_swigt__p_FXDCWindow, 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_FXShell[] = {{&_swigt__p_FXShell, 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_FXRootWindow[] = {{&_swigt__p_FXRootWindow, 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_FXTopWindow[] = {{&_swigt__p_FXTopWindow, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXMainWindow[] = {{&_swigt__p_FXMainWindow, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXSplashWindow[] = {{&_swigt__p_FXSplashWindow, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXFrame[] = {{&_swigt__p_FXFrame, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXDrawable[] = {  {&_swigt__p_FXComposite, _p_FXCompositeTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXShell, _p_FXShellTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXWindow, _p_FXWindowTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXRootWindow, _p_FXRootWindowTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXPopup, _p_FXPopupTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXTopWindow, _p_FXTopWindowTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXMainWindow, _p_FXMainWindowTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXSplashWindow, _p_FXSplashWindowTo_p_FXDrawable, 0, 0},  {&_swigt__p_FXDrawable, 0, 0, 0},  {&_swigt__p_FXFrame, _p_FXFrameTo_p_FXDrawable, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXEvent[] = {  {&_swigt__p_FXEvent, 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_FXIcon[] = {  {&_swigt__p_FXIcon, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXImage[] = {  {&_swigt__p_FXImage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXPSBounds[] = {  {&_swigt__p_FXPSBounds, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXPrinter[] = {  {&_swigt__p_FXPrinter, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXRectangle[] = {  {&_swigt__p_FXRectangle, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXRegion[] = {  {&_swigt__p_FXRegion, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXSegment[] = {  {&_swigt__p_FXSegment, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FXString[] = {  {&_swigt__p_FXString, 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_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_FXApp,
  _swigc__p_FXArc,
  _swigc__p_FXBitmap,
  _swigc__p_FXComposite,
  _swigc__p_FXDC,
  _swigc__p_FXDCPrint,
  _swigc__p_FXDCWindow,
  _swigc__p_FXDrawable,
  _swigc__p_FXEvent,
  _swigc__p_FXFont,
  _swigc__p_FXFrame,
  _swigc__p_FXIcon,
  _swigc__p_FXImage,
  _swigc__p_FXMainWindow,
  _swigc__p_FXPSBounds,
  _swigc__p_FXPopup,
  _swigc__p_FXPrinter,
  _swigc__p_FXRectangle,
  _swigc__p_FXRegion,
  _swigc__p_FXRootWindow,
  _swigc__p_FXSegment,
  _swigc__p_FXShell,
  _swigc__p_FXSplashWindow,
  _swigc__p_FXString,
  _swigc__p_FXTopWindow,
  _swigc__p_FXWindow,
  _swigc__p_char,
  _swigc__p_double,
  _swigc__p_float,
  _swigc__p_int,
  _swigc__p_long,
  _swigc__p_short,
  _swigc__p_unsigned_char,
  _swigc__p_unsigned_int,
  _swigc__p_unsigned_long,
  _swigc__p_unsigned_short,
};


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

/* -----------------------------------------------------------------------------
 * Type initialization:
 * This problem is tough by the requirement that no dynamic
 * memory is used. Also, since swig_type_info structures store pointers to
 * swig_cast_info structures and swig_cast_info structures store pointers back
 * to swig_type_info structures, we need some lookup code at initialization.
 * The idea is that swig generates all the structures that are needed.
 * The runtime then collects these partially filled structures.
 * The SWIG_InitializeModule function takes these initial arrays out of
 * swig_module, and does all the lookup, filling in the swig_module.types
 * array with the correct data and linking the correct swig_cast_info
 * structures together.
 *
 * The generated swig_type_info structures are assigned 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_dc(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, "BLT_CLR", SWIG_From_int(static_cast< int >(BLT_CLR)));
  rb_define_const(mFox, "BLT_SRC_AND_DST", SWIG_From_int(static_cast< int >(BLT_SRC_AND_DST)));
  rb_define_const(mFox, "BLT_SRC_AND_NOT_DST", SWIG_From_int(static_cast< int >(BLT_SRC_AND_NOT_DST)));
  rb_define_const(mFox, "BLT_SRC", SWIG_From_int(static_cast< int >(BLT_SRC)));
  rb_define_const(mFox, "BLT_NOT_SRC_AND_DST", SWIG_From_int(static_cast< int >(BLT_NOT_SRC_AND_DST)));
  rb_define_const(mFox, "BLT_DST", SWIG_From_int(static_cast< int >(BLT_DST)));
  rb_define_const(mFox, "BLT_SRC_XOR_DST", SWIG_From_int(static_cast< int >(BLT_SRC_XOR_DST)));
  rb_define_const(mFox, "BLT_SRC_OR_DST", SWIG_From_int(static_cast< int >(BLT_SRC_OR_DST)));
  rb_define_const(mFox, "BLT_NOT_SRC_AND_NOT_DST", SWIG_From_int(static_cast< int >(BLT_NOT_SRC_AND_NOT_DST)));
  rb_define_const(mFox, "BLT_NOT_SRC_XOR_DST", SWIG_From_int(static_cast< int >(BLT_NOT_SRC_XOR_DST)));
  rb_define_const(mFox, "BLT_NOT_DST", SWIG_From_int(static_cast< int >(BLT_NOT_DST)));
  rb_define_const(mFox, "BLT_SRC_OR_NOT_DST", SWIG_From_int(static_cast< int >(BLT_SRC_OR_NOT_DST)));
  rb_define_const(mFox, "BLT_NOT_SRC", SWIG_From_int(static_cast< int >(BLT_NOT_SRC)));
  rb_define_const(mFox, "BLT_NOT_SRC_OR_DST", SWIG_From_int(static_cast< int >(BLT_NOT_SRC_OR_DST)));
  rb_define_const(mFox, "BLT_NOT_SRC_OR_NOT_DST", SWIG_From_int(static_cast< int >(BLT_NOT_SRC_OR_NOT_DST)));
  rb_define_const(mFox, "BLT_SET", SWIG_From_int(static_cast< int >(BLT_SET)));
  rb_define_const(mFox, "LINE_SOLID", SWIG_From_int(static_cast< int >(LINE_SOLID)));
  rb_define_const(mFox, "LINE_ONOFF_DASH", SWIG_From_int(static_cast< int >(LINE_ONOFF_DASH)));
  rb_define_const(mFox, "LINE_DOUBLE_DASH", SWIG_From_int(static_cast< int >(LINE_DOUBLE_DASH)));
  rb_define_const(mFox, "CAP_NOT_LAST", SWIG_From_int(static_cast< int >(CAP_NOT_LAST)));
  rb_define_const(mFox, "CAP_BUTT", SWIG_From_int(static_cast< int >(CAP_BUTT)));
  rb_define_const(mFox, "CAP_ROUND", SWIG_From_int(static_cast< int >(CAP_ROUND)));
  rb_define_const(mFox, "CAP_PROJECTING", SWIG_From_int(static_cast< int >(CAP_PROJECTING)));
  rb_define_const(mFox, "JOIN_MITER", SWIG_From_int(static_cast< int >(JOIN_MITER)));
  rb_define_const(mFox, "JOIN_ROUND", SWIG_From_int(static_cast< int >(JOIN_ROUND)));
  rb_define_const(mFox, "JOIN_BEVEL", SWIG_From_int(static_cast< int >(JOIN_BEVEL)));
  rb_define_const(mFox, "FILL_SOLID", SWIG_From_int(static_cast< int >(FILL_SOLID)));
  rb_define_const(mFox, "FILL_TILED", SWIG_From_int(static_cast< int >(FILL_TILED)));
  rb_define_const(mFox, "FILL_STIPPLED", SWIG_From_int(static_cast< int >(FILL_STIPPLED)));
  rb_define_const(mFox, "FILL_OPAQUESTIPPLED", SWIG_From_int(static_cast< int >(FILL_OPAQUESTIPPLED)));
  rb_define_const(mFox, "RULE_EVEN_ODD", SWIG_From_int(static_cast< int >(RULE_EVEN_ODD)));
  rb_define_const(mFox, "RULE_WINDING", SWIG_From_int(static_cast< int >(RULE_WINDING)));
  rb_define_const(mFox, "STIPPLE_0", SWIG_From_int(static_cast< int >(STIPPLE_0)));
  rb_define_const(mFox, "STIPPLE_NONE", SWIG_From_int(static_cast< int >(STIPPLE_NONE)));
  rb_define_const(mFox, "STIPPLE_BLACK", SWIG_From_int(static_cast< int >(STIPPLE_BLACK)));
  rb_define_const(mFox, "STIPPLE_1", SWIG_From_int(static_cast< int >(STIPPLE_1)));
  rb_define_const(mFox, "STIPPLE_2", SWIG_From_int(static_cast< int >(STIPPLE_2)));
  rb_define_const(mFox, "STIPPLE_3", SWIG_From_int(static_cast< int >(STIPPLE_3)));
  rb_define_const(mFox, "STIPPLE_4", SWIG_From_int(static_cast< int >(STIPPLE_4)));
  rb_define_const(mFox, "STIPPLE_5", SWIG_From_int(static_cast< int >(STIPPLE_5)));
  rb_define_const(mFox, "STIPPLE_6", SWIG_From_int(static_cast< int >(STIPPLE_6)));
  rb_define_const(mFox, "STIPPLE_7", SWIG_From_int(static_cast< int >(STIPPLE_7)));
  rb_define_const(mFox, "STIPPLE_8", SWIG_From_int(static_cast< int >(STIPPLE_8)));
  rb_define_const(mFox, "STIPPLE_GRAY", SWIG_From_int(static_cast< int >(STIPPLE_GRAY)));
  rb_define_const(mFox, "STIPPLE_9", SWIG_From_int(static_cast< int >(STIPPLE_9)));
  rb_define_const(mFox, "STIPPLE_10", SWIG_From_int(static_cast< int >(STIPPLE_10)));
  rb_define_const(mFox, "STIPPLE_11", SWIG_From_int(static_cast< int >(STIPPLE_11)));
  rb_define_const(mFox, "STIPPLE_12", SWIG_From_int(static_cast< int >(STIPPLE_12)));
  rb_define_const(mFox, "STIPPLE_13", SWIG_From_int(static_cast< int >(STIPPLE_13)));
  rb_define_const(mFox, "STIPPLE_14", SWIG_From_int(static_cast< int >(STIPPLE_14)));
  rb_define_const(mFox, "STIPPLE_15", SWIG_From_int(static_cast< int >(STIPPLE_15)));
  rb_define_const(mFox, "STIPPLE_16", SWIG_From_int(static_cast< int >(STIPPLE_16)));
  rb_define_const(mFox, "STIPPLE_WHITE", SWIG_From_int(static_cast< int >(STIPPLE_WHITE)));
  rb_define_const(mFox, "STIPPLE_HORZ", SWIG_From_int(static_cast< int >(STIPPLE_HORZ)));
  rb_define_const(mFox, "STIPPLE_VERT", SWIG_From_int(static_cast< int >(STIPPLE_VERT)));
  rb_define_const(mFox, "STIPPLE_CROSS", SWIG_From_int(static_cast< int >(STIPPLE_CROSS)));
  rb_define_const(mFox, "STIPPLE_DIAG", SWIG_From_int(static_cast< int >(STIPPLE_DIAG)));
  rb_define_const(mFox, "STIPPLE_REVDIAG", SWIG_From_int(static_cast< int >(STIPPLE_REVDIAG)));
  rb_define_const(mFox, "STIPPLE_CROSSDIAG", SWIG_From_int(static_cast< int >(STIPPLE_CROSSDIAG)));
  
  SwigClassFXSegment.klass = rb_define_class_under(mFox, "FXSegment", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_FXSegment, (void *) &SwigClassFXSegment);
  rb_define_alloc_func(SwigClassFXSegment.klass, _wrap_FXSegment_allocate);
  rb_define_method(SwigClassFXSegment.klass, "initialize", VALUEFUNC(_wrap_new_FXSegment), -1);
  rb_define_method(SwigClassFXSegment.klass, "x1=", VALUEFUNC(_wrap_FXSegment_x1_set), -1);
  rb_define_method(SwigClassFXSegment.klass, "x1", VALUEFUNC(_wrap_FXSegment_x1_get), -1);
  rb_define_method(SwigClassFXSegment.klass, "y1=", VALUEFUNC(_wrap_FXSegment_y1_set), -1);
  rb_define_method(SwigClassFXSegment.klass, "y1", VALUEFUNC(_wrap_FXSegment_y1_get), -1);
  rb_define_method(SwigClassFXSegment.klass, "x2=", VALUEFUNC(_wrap_FXSegment_x2_set), -1);
  rb_define_method(SwigClassFXSegment.klass, "x2", VALUEFUNC(_wrap_FXSegment_x2_get), -1);
  rb_define_method(SwigClassFXSegment.klass, "y2=", VALUEFUNC(_wrap_FXSegment_y2_set), -1);
  rb_define_method(SwigClassFXSegment.klass, "y2", VALUEFUNC(_wrap_FXSegment_y2_get), -1);
  SwigClassFXSegment.mark = 0;
  SwigClassFXSegment.destroy = (void (*)(void *)) free_FXSegment;
  SwigClassFXSegment.trackObjects = 0;
  
  SwigClassFXArc.klass = rb_define_class_under(mFox, "FXArc", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_FXArc, (void *) &SwigClassFXArc);
  rb_define_alloc_func(SwigClassFXArc.klass, _wrap_FXArc_allocate);
  rb_define_method(SwigClassFXArc.klass, "initialize", VALUEFUNC(_wrap_new_FXArc), -1);
  rb_define_method(SwigClassFXArc.klass, "x=", VALUEFUNC(_wrap_FXArc_x_set), -1);
  rb_define_method(SwigClassFXArc.klass, "x", VALUEFUNC(_wrap_FXArc_x_get), -1);
  rb_define_method(SwigClassFXArc.klass, "y=", VALUEFUNC(_wrap_FXArc_y_set), -1);
  rb_define_method(SwigClassFXArc.klass, "y", VALUEFUNC(_wrap_FXArc_y_get), -1);
  rb_define_method(SwigClassFXArc.klass, "w=", VALUEFUNC(_wrap_FXArc_w_set), -1);
  rb_define_method(SwigClassFXArc.klass, "w", VALUEFUNC(_wrap_FXArc_w_get), -1);
  rb_define_method(SwigClassFXArc.klass, "h=", VALUEFUNC(_wrap_FXArc_h_set), -1);
  rb_define_method(SwigClassFXArc.klass, "h", VALUEFUNC(_wrap_FXArc_h_get), -1);
  rb_define_method(SwigClassFXArc.klass, "a=", VALUEFUNC(_wrap_FXArc_a_set), -1);
  rb_define_method(SwigClassFXArc.klass, "a", VALUEFUNC(_wrap_FXArc_a_get), -1);
  rb_define_method(SwigClassFXArc.klass, "b=", VALUEFUNC(_wrap_FXArc_b_set), -1);
  rb_define_method(SwigClassFXArc.klass, "b", VALUEFUNC(_wrap_FXArc_b_get), -1);
  SwigClassFXArc.mark = 0;
  SwigClassFXArc.destroy = (void (*)(void *)) free_FXArc;
  SwigClassFXArc.trackObjects = 0;
  
  SwigClassFXDC.klass = rb_define_class_under(mFox, "FXDC", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_FXDC, (void *) &SwigClassFXDC);
  rb_define_alloc_func(SwigClassFXDC.klass, _wrap_FXDC_allocate);
  rb_define_method(SwigClassFXDC.klass, "initialize", VALUEFUNC(_wrap_new_FXDC), -1);
  rb_define_method(SwigClassFXDC.klass, "getApp", VALUEFUNC(_wrap_FXDC_getApp), -1);
  rb_define_method(SwigClassFXDC.klass, "getForeground", VALUEFUNC(_wrap_FXDC_getForeground), -1);
  rb_define_method(SwigClassFXDC.klass, "getBackground", VALUEFUNC(_wrap_FXDC_getBackground), -1);
  rb_define_method(SwigClassFXDC.klass, "getDashPattern", VALUEFUNC(_wrap_FXDC_getDashPattern), -1);
  rb_define_method(SwigClassFXDC.klass, "getDashOffset", VALUEFUNC(_wrap_FXDC_getDashOffset), -1);
  rb_define_method(SwigClassFXDC.klass, "getLineWidth", VALUEFUNC(_wrap_FXDC_getLineWidth), -1);
  rb_define_method(SwigClassFXDC.klass, "getLineCap", VALUEFUNC(_wrap_FXDC_getLineCap), -1);
  rb_define_method(SwigClassFXDC.klass, "getLineJoin", VALUEFUNC(_wrap_FXDC_getLineJoin), -1);
  rb_define_method(SwigClassFXDC.klass, "getLineStyle", VALUEFUNC(_wrap_FXDC_getLineStyle), -1);
  rb_define_method(SwigClassFXDC.klass, "getFillStyle", VALUEFUNC(_wrap_FXDC_getFillStyle), -1);
  rb_define_method(SwigClassFXDC.klass, "getFillRule", VALUEFUNC(_wrap_FXDC_getFillRule), -1);
  rb_define_method(SwigClassFXDC.klass, "getFunction", VALUEFUNC(_wrap_FXDC_getFunction), -1);
  rb_define_method(SwigClassFXDC.klass, "getTile", VALUEFUNC(_wrap_FXDC_getTile), -1);
  rb_define_method(SwigClassFXDC.klass, "getStippleBitmap", VALUEFUNC(_wrap_FXDC_getStippleBitmap), -1);
  rb_define_method(SwigClassFXDC.klass, "getStipplePattern", VALUEFUNC(_wrap_FXDC_getStipplePattern), -1);
  rb_define_method(SwigClassFXDC.klass, "getClipRectangle", VALUEFUNC(_wrap_FXDC_getClipRectangle), -1);
  rb_define_method(SwigClassFXDC.klass, "getClipX", VALUEFUNC(_wrap_FXDC_getClipX), -1);
  rb_define_method(SwigClassFXDC.klass, "getClipY", VALUEFUNC(_wrap_FXDC_getClipY), -1);
  rb_define_method(SwigClassFXDC.klass, "getClipWidth", VALUEFUNC(_wrap_FXDC_getClipWidth), -1);
  rb_define_method(SwigClassFXDC.klass, "getClipHeight", VALUEFUNC(_wrap_FXDC_getClipHeight), -1);
  rb_define_method(SwigClassFXDC.klass, "getFont", VALUEFUNC(_wrap_FXDC_getFont), -1);
  rb_define_method(SwigClassFXDC.klass, "readPixel", VALUEFUNC(_wrap_FXDC_readPixel), -1);
  rb_define_method(SwigClassFXDC.klass, "drawPoint", VALUEFUNC(_wrap_FXDC_drawPoint), -1);
  rb_define_method(SwigClassFXDC.klass, "drawPoints", VALUEFUNC(_wrap_FXDC_drawPoints), -1);
  rb_define_method(SwigClassFXDC.klass, "drawPointsRel", VALUEFUNC(_wrap_FXDC_drawPointsRel), -1);
  rb_define_method(SwigClassFXDC.klass, "drawLine", VALUEFUNC(_wrap_FXDC_drawLine), -1);
  rb_define_method(SwigClassFXDC.klass, "drawLines", VALUEFUNC(_wrap_FXDC_drawLines), -1);
  rb_define_method(SwigClassFXDC.klass, "drawLinesRel", VALUEFUNC(_wrap_FXDC_drawLinesRel), -1);
  rb_define_method(SwigClassFXDC.klass, "drawLineSegments", VALUEFUNC(_wrap_FXDC_drawLineSegments), -1);
  rb_define_method(SwigClassFXDC.klass, "drawRectangle", VALUEFUNC(_wrap_FXDC_drawRectangle), -1);
  rb_define_method(SwigClassFXDC.klass, "drawRectangles", VALUEFUNC(_wrap_FXDC_drawRectangles), -1);
  rb_define_method(SwigClassFXDC.klass, "drawRoundRectangle", VALUEFUNC(_wrap_FXDC_drawRoundRectangle), -1);
  rb_define_method(SwigClassFXDC.klass, "drawArc", VALUEFUNC(_wrap_FXDC_drawArc), -1);
  rb_define_method(SwigClassFXDC.klass, "drawArcs", VALUEFUNC(_wrap_FXDC_drawArcs), -1);
  rb_define_method(SwigClassFXDC.klass, "drawEllipse", VALUEFUNC(_wrap_FXDC_drawEllipse), -1);
  rb_define_method(SwigClassFXDC.klass, "fillRectangle", VALUEFUNC(_wrap_FXDC_fillRectangle), -1);
  rb_define_method(SwigClassFXDC.klass, "fillRectangles", VALUEFUNC(_wrap_FXDC_fillRectangles), -1);
  rb_define_method(SwigClassFXDC.klass, "fillRoundRectangle", VALUEFUNC(_wrap_FXDC_fillRoundRectangle), -1);
  rb_define_method(SwigClassFXDC.klass, "fillChord", VALUEFUNC(_wrap_FXDC_fillChord), -1);
  rb_define_method(SwigClassFXDC.klass, "fillChords", VALUEFUNC(_wrap_FXDC_fillChords), -1);
  rb_define_method(SwigClassFXDC.klass, "fillArc", VALUEFUNC(_wrap_FXDC_fillArc), -1);
  rb_define_method(SwigClassFXDC.klass, "fillArcs", VALUEFUNC(_wrap_FXDC_fillArcs), -1);
  rb_define_method(SwigClassFXDC.klass, "fillPolygon", VALUEFUNC(_wrap_FXDC_fillPolygon), -1);
  rb_define_method(SwigClassFXDC.klass, "fillConcavePolygon", VALUEFUNC(_wrap_FXDC_fillConcavePolygon), -1);
  rb_define_method(SwigClassFXDC.klass, "fillComplexPolygon", VALUEFUNC(_wrap_FXDC_fillComplexPolygon), -1);
  rb_define_method(SwigClassFXDC.klass, "fillPolygonRel", VALUEFUNC(_wrap_FXDC_fillPolygonRel), -1);
  rb_define_method(SwigClassFXDC.klass, "fillConcavePolygonRel", VALUEFUNC(_wrap_FXDC_fillConcavePolygonRel), -1);
  rb_define_method(SwigClassFXDC.klass, "fillComplexPolygonRel", VALUEFUNC(_wrap_FXDC_fillComplexPolygonRel), -1);
  rb_define_method(SwigClassFXDC.klass, "drawHashBox", VALUEFUNC(_wrap_FXDC_drawHashBox), -1);
  rb_define_method(SwigClassFXDC.klass, "drawFocusRectangle", VALUEFUNC(_wrap_FXDC_drawFocusRectangle), -1);
  rb_define_method(SwigClassFXDC.klass, "drawArea", VALUEFUNC(_wrap_FXDC_drawArea), -1);
  rb_define_method(SwigClassFXDC.klass, "drawImage", VALUEFUNC(_wrap_FXDC_drawImage), -1);
  rb_define_method(SwigClassFXDC.klass, "drawBitmap", VALUEFUNC(_wrap_FXDC_drawBitmap), -1);
  rb_define_method(SwigClassFXDC.klass, "drawIcon", VALUEFUNC(_wrap_FXDC_drawIcon), -1);
  rb_define_method(SwigClassFXDC.klass, "drawIconShaded", VALUEFUNC(_wrap_FXDC_drawIconShaded), -1);
  rb_define_method(SwigClassFXDC.klass, "drawIconSunken", VALUEFUNC(_wrap_FXDC_drawIconSunken), -1);
  rb_define_method(SwigClassFXDC.klass, "drawText", VALUEFUNC(_wrap_FXDC_drawText), -1);
  rb_define_method(SwigClassFXDC.klass, "drawImageText", VALUEFUNC(_wrap_FXDC_drawImageText), -1);
  rb_define_method(SwigClassFXDC.klass, "setForeground", VALUEFUNC(_wrap_FXDC_setForeground), -1);
  rb_define_method(SwigClassFXDC.klass, "setBackground", VALUEFUNC(_wrap_FXDC_setBackground), -1);
  rb_define_method(SwigClassFXDC.klass, "setDashes", VALUEFUNC(_wrap_FXDC_setDashes), -1);
  rb_define_method(SwigClassFXDC.klass, "setLineWidth", VALUEFUNC(_wrap_FXDC_setLineWidth), -1);
  rb_define_method(SwigClassFXDC.klass, "setLineCap", VALUEFUNC(_wrap_FXDC_setLineCap), -1);
  rb_define_method(SwigClassFXDC.klass, "setLineJoin", VALUEFUNC(_wrap_FXDC_setLineJoin), -1);
  rb_define_method(SwigClassFXDC.klass, "setLineStyle", VALUEFUNC(_wrap_FXDC_setLineStyle), -1);
  rb_define_method(SwigClassFXDC.klass, "setFillStyle", VALUEFUNC(_wrap_FXDC_setFillStyle), -1);
  rb_define_method(SwigClassFXDC.klass, "setFillRule", VALUEFUNC(_wrap_FXDC_setFillRule), -1);
  rb_define_method(SwigClassFXDC.klass, "setFunction", VALUEFUNC(_wrap_FXDC_setFunction), -1);
  rb_define_method(SwigClassFXDC.klass, "setTile", VALUEFUNC(_wrap_FXDC_setTile), -1);
  rb_define_method(SwigClassFXDC.klass, "setStipple", VALUEFUNC(_wrap_FXDC_setStipple), -1);
  rb_define_method(SwigClassFXDC.klass, "setClipRegion", VALUEFUNC(_wrap_FXDC_setClipRegion), -1);
  rb_define_method(SwigClassFXDC.klass, "setClipRectangle", VALUEFUNC(_wrap_FXDC_setClipRectangle), -1);
  rb_define_method(SwigClassFXDC.klass, "clearClipRectangle", VALUEFUNC(_wrap_FXDC_clearClipRectangle), -1);
  rb_define_method(SwigClassFXDC.klass, "setClipMask", VALUEFUNC(_wrap_FXDC_setClipMask), -1);
  rb_define_method(SwigClassFXDC.klass, "clearClipMask", VALUEFUNC(_wrap_FXDC_clearClipMask), -1);
  rb_define_method(SwigClassFXDC.klass, "setFont", VALUEFUNC(_wrap_FXDC_setFont), -1);
  rb_define_method(SwigClassFXDC.klass, "clipChildren", VALUEFUNC(_wrap_FXDC_clipChildren), -1);
  SwigClassFXDC.mark = (void (*)(void *)) FXRbDC::markfunc;
  SwigClassFXDC.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
  SwigClassFXDC.trackObjects = 0;
  
  SwigClassFXDCWindow.klass = rb_define_class_under(mFox, "FXDCWindow", ((swig_class *) SWIGTYPE_p_FXDC->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXDCWindow, (void *) &SwigClassFXDCWindow);
  rb_define_alloc_func(SwigClassFXDCWindow.klass, _wrap_FXDCWindow_allocate);
  rb_define_method(SwigClassFXDCWindow.klass, "initialize", VALUEFUNC(_wrap_new_FXDCWindow), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "begin", VALUEFUNC(_wrap_FXDCWindow_begin), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "end", VALUEFUNC(_wrap_FXDCWindow_end), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "readPixel", VALUEFUNC(_wrap_FXDCWindow_readPixel), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawPoint", VALUEFUNC(_wrap_FXDCWindow_drawPoint), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawPoints", VALUEFUNC(_wrap_FXDCWindow_drawPoints), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawPointsRel", VALUEFUNC(_wrap_FXDCWindow_drawPointsRel), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawLine", VALUEFUNC(_wrap_FXDCWindow_drawLine), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawLines", VALUEFUNC(_wrap_FXDCWindow_drawLines), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawLinesRel", VALUEFUNC(_wrap_FXDCWindow_drawLinesRel), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawLineSegments", VALUEFUNC(_wrap_FXDCWindow_drawLineSegments), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawRectangle", VALUEFUNC(_wrap_FXDCWindow_drawRectangle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawRectangles", VALUEFUNC(_wrap_FXDCWindow_drawRectangles), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawRoundRectangle", VALUEFUNC(_wrap_FXDCWindow_drawRoundRectangle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawArc", VALUEFUNC(_wrap_FXDCWindow_drawArc), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawArcs", VALUEFUNC(_wrap_FXDCWindow_drawArcs), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawEllipse", VALUEFUNC(_wrap_FXDCWindow_drawEllipse), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillRectangle", VALUEFUNC(_wrap_FXDCWindow_fillRectangle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillRectangles", VALUEFUNC(_wrap_FXDCWindow_fillRectangles), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillRoundRectangle", VALUEFUNC(_wrap_FXDCWindow_fillRoundRectangle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillChord", VALUEFUNC(_wrap_FXDCWindow_fillChord), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillChords", VALUEFUNC(_wrap_FXDCWindow_fillChords), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillArc", VALUEFUNC(_wrap_FXDCWindow_fillArc), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillArcs", VALUEFUNC(_wrap_FXDCWindow_fillArcs), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillPolygon", VALUEFUNC(_wrap_FXDCWindow_fillPolygon), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillConcavePolygon", VALUEFUNC(_wrap_FXDCWindow_fillConcavePolygon), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillComplexPolygon", VALUEFUNC(_wrap_FXDCWindow_fillComplexPolygon), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillPolygonRel", VALUEFUNC(_wrap_FXDCWindow_fillPolygonRel), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillConcavePolygonRel", VALUEFUNC(_wrap_FXDCWindow_fillConcavePolygonRel), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "fillComplexPolygonRel", VALUEFUNC(_wrap_FXDCWindow_fillComplexPolygonRel), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawHashBox", VALUEFUNC(_wrap_FXDCWindow_drawHashBox), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawFocusRectangle", VALUEFUNC(_wrap_FXDCWindow_drawFocusRectangle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawArea", VALUEFUNC(_wrap_FXDCWindow_drawArea), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawImage", VALUEFUNC(_wrap_FXDCWindow_drawImage), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawBitmap", VALUEFUNC(_wrap_FXDCWindow_drawBitmap), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawIcon", VALUEFUNC(_wrap_FXDCWindow_drawIcon), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawIconShaded", VALUEFUNC(_wrap_FXDCWindow_drawIconShaded), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawIconSunken", VALUEFUNC(_wrap_FXDCWindow_drawIconSunken), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawText", VALUEFUNC(_wrap_FXDCWindow_drawText), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "drawImageText", VALUEFUNC(_wrap_FXDCWindow_drawImageText), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setForeground", VALUEFUNC(_wrap_FXDCWindow_setForeground), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setBackground", VALUEFUNC(_wrap_FXDCWindow_setBackground), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setDashes", VALUEFUNC(_wrap_FXDCWindow_setDashes), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setLineWidth", VALUEFUNC(_wrap_FXDCWindow_setLineWidth), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setLineCap", VALUEFUNC(_wrap_FXDCWindow_setLineCap), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setLineJoin", VALUEFUNC(_wrap_FXDCWindow_setLineJoin), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setLineStyle", VALUEFUNC(_wrap_FXDCWindow_setLineStyle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setFillStyle", VALUEFUNC(_wrap_FXDCWindow_setFillStyle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setFillRule", VALUEFUNC(_wrap_FXDCWindow_setFillRule), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setFunction", VALUEFUNC(_wrap_FXDCWindow_setFunction), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setTile", VALUEFUNC(_wrap_FXDCWindow_setTile), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setStipple", VALUEFUNC(_wrap_FXDCWindow_setStipple), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setClipRegion", VALUEFUNC(_wrap_FXDCWindow_setClipRegion), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setClipRectangle", VALUEFUNC(_wrap_FXDCWindow_setClipRectangle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "clearClipRectangle", VALUEFUNC(_wrap_FXDCWindow_clearClipRectangle), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setClipMask", VALUEFUNC(_wrap_FXDCWindow_setClipMask), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "clearClipMask", VALUEFUNC(_wrap_FXDCWindow_clearClipMask), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "setFont", VALUEFUNC(_wrap_FXDCWindow_setFont), -1);
  rb_define_method(SwigClassFXDCWindow.klass, "clipChildren", VALUEFUNC(_wrap_FXDCWindow_clipChildren), -1);
  SwigClassFXDCWindow.mark = (void (*)(void *)) FXRbDCWindow::markfunc;
  SwigClassFXDCWindow.destroy = (void (*)(void *)) free_FXDCWindow;
  SwigClassFXDCWindow.trackObjects = 0;
  rb_define_const(mFox, "PRINT_DEST_PAPER", SWIG_From_int(static_cast< int >(PRINT_DEST_PAPER)));
  rb_define_const(mFox, "PRINT_DEST_FILE", SWIG_From_int(static_cast< int >(PRINT_DEST_FILE)));
  rb_define_const(mFox, "PRINT_PAGES_ALL", SWIG_From_int(static_cast< int >(PRINT_PAGES_ALL)));
  rb_define_const(mFox, "PRINT_PAGES_EVEN", SWIG_From_int(static_cast< int >(PRINT_PAGES_EVEN)));
  rb_define_const(mFox, "PRINT_PAGES_ODD", SWIG_From_int(static_cast< int >(PRINT_PAGES_ODD)));
  rb_define_const(mFox, "PRINT_PAGES_RANGE", SWIG_From_int(static_cast< int >(PRINT_PAGES_RANGE)));
  rb_define_const(mFox, "PRINT_COLLATE_NORMAL", SWIG_From_int(static_cast< int >(PRINT_COLLATE_NORMAL)));
  rb_define_const(mFox, "PRINT_COLLATE_REVERSED", SWIG_From_int(static_cast< int >(PRINT_COLLATE_REVERSED)));
  rb_define_const(mFox, "PRINT_PORTRAIT", SWIG_From_int(static_cast< int >(PRINT_PORTRAIT)));
  rb_define_const(mFox, "PRINT_LANDSCAPE", SWIG_From_int(static_cast< int >(PRINT_LANDSCAPE)));
  rb_define_const(mFox, "PRINT_BLACKANDWHITE", SWIG_From_int(static_cast< int >(PRINT_BLACKANDWHITE)));
  rb_define_const(mFox, "PRINT_COLOR", SWIG_From_int(static_cast< int >(PRINT_COLOR)));
  rb_define_const(mFox, "PRINT_NOBOUNDS", SWIG_From_int(static_cast< int >(PRINT_NOBOUNDS)));
  rb_define_const(mFox, "MEDIA_CUSTOM", SWIG_From_int(static_cast< int >(MEDIA_CUSTOM)));
  rb_define_const(mFox, "MEDIA_USLETTER", SWIG_From_int(static_cast< int >(MEDIA_USLETTER)));
  rb_define_const(mFox, "MEDIA_LEGAL", SWIG_From_int(static_cast< int >(MEDIA_LEGAL)));
  rb_define_const(mFox, "MEDIA_A4", SWIG_From_int(static_cast< int >(MEDIA_A4)));
  rb_define_const(mFox, "MEDIA_ENVELOPE", SWIG_From_int(static_cast< int >(MEDIA_ENVELOPE)));
  
  SwigClassFXPSBounds.klass = rb_define_class_under(mFox, "FXPSBounds", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_FXPSBounds, (void *) &SwigClassFXPSBounds);
  rb_define_alloc_func(SwigClassFXPSBounds.klass, _wrap_FXPSBounds_allocate);
  rb_define_method(SwigClassFXPSBounds.klass, "initialize", VALUEFUNC(_wrap_new_FXPSBounds), -1);
  rb_define_method(SwigClassFXPSBounds.klass, "xmin=", VALUEFUNC(_wrap_FXPSBounds_xmin_set), -1);
  rb_define_method(SwigClassFXPSBounds.klass, "xmin", VALUEFUNC(_wrap_FXPSBounds_xmin_get), -1);
  rb_define_method(SwigClassFXPSBounds.klass, "xmax=", VALUEFUNC(_wrap_FXPSBounds_xmax_set), -1);
  rb_define_method(SwigClassFXPSBounds.klass, "xmax", VALUEFUNC(_wrap_FXPSBounds_xmax_get), -1);
  rb_define_method(SwigClassFXPSBounds.klass, "ymin=", VALUEFUNC(_wrap_FXPSBounds_ymin_set), -1);
  rb_define_method(SwigClassFXPSBounds.klass, "ymin", VALUEFUNC(_wrap_FXPSBounds_ymin_get), -1);
  rb_define_method(SwigClassFXPSBounds.klass, "ymax=", VALUEFUNC(_wrap_FXPSBounds_ymax_set), -1);
  rb_define_method(SwigClassFXPSBounds.klass, "ymax", VALUEFUNC(_wrap_FXPSBounds_ymax_get), -1);
  SwigClassFXPSBounds.mark = 0;
  SwigClassFXPSBounds.destroy = (void (*)(void *)) free_FXPSBounds;
  SwigClassFXPSBounds.trackObjects = 0;
  
  SwigClassFXPrinter.klass = rb_define_class_under(mFox, "FXPrinter", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_FXPrinter, (void *) &SwigClassFXPrinter);
  rb_define_alloc_func(SwigClassFXPrinter.klass, _wrap_FXPrinter_allocate);
  rb_define_method(SwigClassFXPrinter.klass, "initialize", VALUEFUNC(_wrap_new_FXPrinter), -1);
  rb_define_method(SwigClassFXPrinter.klass, "name=", VALUEFUNC(_wrap_FXPrinter_name_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "name", VALUEFUNC(_wrap_FXPrinter_name_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "firstpage=", VALUEFUNC(_wrap_FXPrinter_firstpage_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "firstpage", VALUEFUNC(_wrap_FXPrinter_firstpage_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "lastpage=", VALUEFUNC(_wrap_FXPrinter_lastpage_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "lastpage", VALUEFUNC(_wrap_FXPrinter_lastpage_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "currentpage=", VALUEFUNC(_wrap_FXPrinter_currentpage_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "currentpage", VALUEFUNC(_wrap_FXPrinter_currentpage_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "frompage=", VALUEFUNC(_wrap_FXPrinter_frompage_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "frompage", VALUEFUNC(_wrap_FXPrinter_frompage_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "topage=", VALUEFUNC(_wrap_FXPrinter_topage_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "topage", VALUEFUNC(_wrap_FXPrinter_topage_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "mediasize=", VALUEFUNC(_wrap_FXPrinter_mediasize_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "mediasize", VALUEFUNC(_wrap_FXPrinter_mediasize_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "mediawidth=", VALUEFUNC(_wrap_FXPrinter_mediawidth_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "mediawidth", VALUEFUNC(_wrap_FXPrinter_mediawidth_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "mediaheight=", VALUEFUNC(_wrap_FXPrinter_mediaheight_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "mediaheight", VALUEFUNC(_wrap_FXPrinter_mediaheight_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "leftmargin=", VALUEFUNC(_wrap_FXPrinter_leftmargin_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "leftmargin", VALUEFUNC(_wrap_FXPrinter_leftmargin_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "rightmargin=", VALUEFUNC(_wrap_FXPrinter_rightmargin_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "rightmargin", VALUEFUNC(_wrap_FXPrinter_rightmargin_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "topmargin=", VALUEFUNC(_wrap_FXPrinter_topmargin_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "topmargin", VALUEFUNC(_wrap_FXPrinter_topmargin_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "bottommargin=", VALUEFUNC(_wrap_FXPrinter_bottommargin_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "bottommargin", VALUEFUNC(_wrap_FXPrinter_bottommargin_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "numcopies=", VALUEFUNC(_wrap_FXPrinter_numcopies_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "numcopies", VALUEFUNC(_wrap_FXPrinter_numcopies_get), -1);
  rb_define_method(SwigClassFXPrinter.klass, "flags=", VALUEFUNC(_wrap_FXPrinter_flags_set), -1);
  rb_define_method(SwigClassFXPrinter.klass, "flags", VALUEFUNC(_wrap_FXPrinter_flags_get), -1);
  SwigClassFXPrinter.mark = 0;
  SwigClassFXPrinter.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
  SwigClassFXPrinter.trackObjects = 0;
  
  SwigClassFXDCPrint.klass = rb_define_class_under(mFox, "FXDCPrint", ((swig_class *) SWIGTYPE_p_FXDC->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_FXDCPrint, (void *) &SwigClassFXDCPrint);
  rb_define_alloc_func(SwigClassFXDCPrint.klass, _wrap_FXDCPrint_allocate);
  rb_define_method(SwigClassFXDCPrint.klass, "initialize", VALUEFUNC(_wrap_new_FXDCPrint), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "beginPrint", VALUEFUNC(_wrap_FXDCPrint_beginPrint), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "endPrint", VALUEFUNC(_wrap_FXDCPrint_endPrint), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "beginPage", VALUEFUNC(_wrap_FXDCPrint_beginPage), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "endPage", VALUEFUNC(_wrap_FXDCPrint_endPage), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setContentRange", VALUEFUNC(_wrap_FXDCPrint_setContentRange), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "readPixel", VALUEFUNC(_wrap_FXDCPrint_readPixel), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawPoint", VALUEFUNC(_wrap_FXDCPrint_drawPoint), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawPoints", VALUEFUNC(_wrap_FXDCPrint_drawPoints), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawPointsRel", VALUEFUNC(_wrap_FXDCPrint_drawPointsRel), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawLine", VALUEFUNC(_wrap_FXDCPrint_drawLine), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawLines", VALUEFUNC(_wrap_FXDCPrint_drawLines), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawLinesRel", VALUEFUNC(_wrap_FXDCPrint_drawLinesRel), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawLineSegments", VALUEFUNC(_wrap_FXDCPrint_drawLineSegments), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawRectangle", VALUEFUNC(_wrap_FXDCPrint_drawRectangle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawRectangles", VALUEFUNC(_wrap_FXDCPrint_drawRectangles), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawRoundRectangle", VALUEFUNC(_wrap_FXDCPrint_drawRoundRectangle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawArc", VALUEFUNC(_wrap_FXDCPrint_drawArc), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawArcs", VALUEFUNC(_wrap_FXDCPrint_drawArcs), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawEllipse", VALUEFUNC(_wrap_FXDCPrint_drawEllipse), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillRectangle", VALUEFUNC(_wrap_FXDCPrint_fillRectangle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillRectangles", VALUEFUNC(_wrap_FXDCPrint_fillRectangles), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillRoundRectangle", VALUEFUNC(_wrap_FXDCPrint_fillRoundRectangle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillChord", VALUEFUNC(_wrap_FXDCPrint_fillChord), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillChords", VALUEFUNC(_wrap_FXDCPrint_fillChords), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillArc", VALUEFUNC(_wrap_FXDCPrint_fillArc), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillArcs", VALUEFUNC(_wrap_FXDCPrint_fillArcs), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillPolygon", VALUEFUNC(_wrap_FXDCPrint_fillPolygon), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillConcavePolygon", VALUEFUNC(_wrap_FXDCPrint_fillConcavePolygon), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillComplexPolygon", VALUEFUNC(_wrap_FXDCPrint_fillComplexPolygon), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillPolygonRel", VALUEFUNC(_wrap_FXDCPrint_fillPolygonRel), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillConcavePolygonRel", VALUEFUNC(_wrap_FXDCPrint_fillConcavePolygonRel), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "fillComplexPolygonRel", VALUEFUNC(_wrap_FXDCPrint_fillComplexPolygonRel), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawHashBox", VALUEFUNC(_wrap_FXDCPrint_drawHashBox), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawFocusRectangle", VALUEFUNC(_wrap_FXDCPrint_drawFocusRectangle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawArea", VALUEFUNC(_wrap_FXDCPrint_drawArea), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawImage", VALUEFUNC(_wrap_FXDCPrint_drawImage), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawBitmap", VALUEFUNC(_wrap_FXDCPrint_drawBitmap), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawIcon", VALUEFUNC(_wrap_FXDCPrint_drawIcon), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawIconShaded", VALUEFUNC(_wrap_FXDCPrint_drawIconShaded), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawIconSunken", VALUEFUNC(_wrap_FXDCPrint_drawIconSunken), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawText", VALUEFUNC(_wrap_FXDCPrint_drawText), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "drawImageText", VALUEFUNC(_wrap_FXDCPrint_drawImageText), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setForeground", VALUEFUNC(_wrap_FXDCPrint_setForeground), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setBackground", VALUEFUNC(_wrap_FXDCPrint_setBackground), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setDashes", VALUEFUNC(_wrap_FXDCPrint_setDashes), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setLineWidth", VALUEFUNC(_wrap_FXDCPrint_setLineWidth), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setLineCap", VALUEFUNC(_wrap_FXDCPrint_setLineCap), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setLineJoin", VALUEFUNC(_wrap_FXDCPrint_setLineJoin), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setLineStyle", VALUEFUNC(_wrap_FXDCPrint_setLineStyle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setFillStyle", VALUEFUNC(_wrap_FXDCPrint_setFillStyle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setFillRule", VALUEFUNC(_wrap_FXDCPrint_setFillRule), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setFunction", VALUEFUNC(_wrap_FXDCPrint_setFunction), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setTile", VALUEFUNC(_wrap_FXDCPrint_setTile), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setStipple", VALUEFUNC(_wrap_FXDCPrint_setStipple), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setClipRegion", VALUEFUNC(_wrap_FXDCPrint_setClipRegion), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setClipRectangle", VALUEFUNC(_wrap_FXDCPrint_setClipRectangle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "clearClipRectangle", VALUEFUNC(_wrap_FXDCPrint_clearClipRectangle), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setClipMask", VALUEFUNC(_wrap_FXDCPrint_setClipMask), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "clearClipMask", VALUEFUNC(_wrap_FXDCPrint_clearClipMask), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "setFont", VALUEFUNC(_wrap_FXDCPrint_setFont), -1);
  rb_define_method(SwigClassFXDCPrint.klass, "clipChildren", VALUEFUNC(_wrap_FXDCPrint_clipChildren), -1);
  SwigClassFXDCPrint.mark = (void (*)(void *)) FXRbDCPrint::markfunc;
  SwigClassFXDCPrint.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
  SwigClassFXDCPrint.trackObjects = 0;
}

