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

/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__))
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__))
# else
#   define SWIGUNUSED
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if defined(__GNUC__)
#  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#    ifndef GCC_HASCLASSVISIBILITY
#      define GCC_HASCLASSVISIBILITY
#    endif
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif

/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif

/* Intel's compiler complains if a variable which was never initialised is
 * cast to void, which is a common idiom which we use to indicate that we
 * are aware a variable isn't used.  So we just silence that warning.
 * See: https://github.com/swig/swig/issues/192 for more discussion.
 */
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif


  /* Put header files here or function declarations like below */
  #include <iup.h>
  #include <iupdraw.h>
  #include <iupim.h>

  int * int_ptr ()
  {
    int *x = NULL;

    return x;
  }

  char *** char_ptr ()
  {
    char ***x = NULL;

    return x;
  }

// BEGIN Non-Swig hand generation stuff
  /*
  {
    "iup-set-thunk-callback", IupSetThunkCallback_wrapped, ""
  },
  {
    "IupGetAttributeAsString", IupGetAttributeAsString_wrapped, ""
  },
  */

typedef struct thunks {
  Ihandle *ih;
  JanetFunction *thunk;
  struct thunks *next;
} thunks_t;

thunks_t * root_thunks = NULL;

void
push_thunk (JanetFunction *f, Ihandle *ih)
{
  fprintf(stderr, "push_thunk was called...addy: %d\n", (int)ih);

  if (NULL == root_thunks)
    {
      root_thunks = malloc (sizeof (thunks_t));
      thunks_t t = { ih, f, NULL };
      memcpy (root_thunks, &t, sizeof (thunks_t));

      return 0;
    }

  thunks_t * node = root_thunks;

  while (NULL != node->next)
    {
      node = node->next;
    }

  thunks_t next = { ih, f, NULL };

  node->next = malloc (sizeof (thunks_t));
  memcpy (node->next, &next, sizeof (thunks_t));
}

JanetFunction *
get_thunk_by_id (Ihandle *ih)
{
  fprintf(stderr, "get_thunk_by_id was called on addy: %d\n", (int)ih);

  thunks_t * node = root_thunks;

  while (NULL != node->next)
    {
      printf ("Looking at a node, ih is %d\n", (int)node->ih);

      if ((int)node->ih == (int)ih)
        {
          break;
        }

      node = node->next;
    }

  if (NULL == node || NULL == node->thunk)
    {
      fprintf(stderr, "CRAP");

      return root_thunks->thunk;
    }

  return node->thunk;
}

static int
call_thunk_N (Ihandle* ih)
{
  int *ptr = &ih;

  printf ("Received Ihandle based call back, handler is: %d \n",
          *ptr);

  janet_call (get_thunk_by_id (ih), 0, NULL);

  return 0;
}

JanetTable * janet_iup_cbs = NULL;

// TODO: Re-implement the thunk storage and calling with something like this.
static int
janet_iup_universal_cb (Ihandle *ih, int c)
{
  JanetFunction *f = janet_unwrap_function (janet_table_get (janet_iup_cbs,
                                                             janet_wrap_pointer (ih)));

  JanetArray *args;
  args = janet_array (2);
  janet_array_push (args, janet_wrap_pointer (ih));
  janet_array_push (args, janet_wrap_integer (c));

  // Janet res = janet_call (f, 0, NULL);
  Janet res = janet_call (f, 2, args->data);

  return (int) janet_unwrap_integer (res);
}


static Janet
IupSetThunkCallback_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  Icallback arg_2;

  JanetFunction *f = janet_getfunction (argv, 2);
  // push_thunk (f, arg_0);

  if (NULL == janet_iup_cbs)
    {
      janet_iup_cbs = janet_table (0);
    }

  janet_table_put(janet_iup_cbs, janet_wrap_pointer (arg_0), janet_wrap_function (f));

  // arg_2 = (Icallback) call_thunk_N;
  arg_2 = (Icallback) janet_iup_universal_cb;

  Icallback result = IupSetCallback ((Ihandle *) arg_0, (char const *) arg_1, (Icallback) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupGetAttributeAsString_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  char * result = IupGetAttribute ((Ihandle *) arg_0, (char const *) arg_1);
  const uint8_t *s = janet_string ((unsigned char *) result, strlen (result));

  return janet_wrap_string (s);
}
// END Non-Swig hand generation stuff



static Janet
const_IUP_NAME_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_NAME;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_DESCRIPTION_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_DESCRIPTION;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_COPYRIGHT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_COPYRIGHT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_VERSION_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_VERSION;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_VERSION_NUMBER_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_VERSION_NUMBER;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_VERSION_DATE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_VERSION_DATE;

  return janet_wrap_pointer (result);
}

static Janet
IupOpen_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  int * arg_0 = (int *) janet_getpointer (argv, 0);
  char *** arg_1 = (char ***) janet_getpointer (argv, 1);

  int result = IupOpen ((int *) arg_0, (char ***) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupClose_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  IupClose ();

  return janet_wrap_nil ();
}

static Janet
IupIsOpened_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IupIsOpened ();

  return janet_wrap_integer (result);
}

static Janet
IupImageLibOpen_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  IupImageLibOpen ();

  return janet_wrap_nil ();
}

static Janet
IupMainLoop_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IupMainLoop ();

  return janet_wrap_integer (result);
}

static Janet
IupLoopStep_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IupLoopStep ();

  return janet_wrap_integer (result);
}

static Janet
IupLoopStepWait_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IupLoopStepWait ();

  return janet_wrap_integer (result);
}

static Janet
IupMainLoopLevel_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IupMainLoopLevel ();

  return janet_wrap_integer (result);
}

static Janet
IupFlush_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  IupFlush ();

  return janet_wrap_nil ();
}

static Janet
IupExitLoop_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  IupExitLoop ();

  return janet_wrap_nil ();
}

static Janet
IupPostMessage_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  double arg_3 = janet_getnumber (argv, 3);
  void * arg_4 = (void *) janet_getpointer (argv, 4);

  IupPostMessage ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (double) arg_3, (void *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupRecordInput_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);

  int result = IupRecordInput ((char const *) arg_0, (int) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupPlayInput_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  int result = IupPlayInput ((char const *) arg_0);

  return janet_wrap_integer (result);
}

static Janet
IupUpdate_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupUpdate ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupUpdateChildren_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupUpdateChildren ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupRedraw_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);

  IupRedraw ((Ihandle *) arg_0, (int) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupRefresh_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupRefresh ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupRefreshChildren_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupRefreshChildren ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupExecute_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  int result = IupExecute ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupExecuteWait_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  int result = IupExecuteWait ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupHelp_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  int result = IupHelp ((char const *) arg_0);

  return janet_wrap_integer (result);
}

static Janet
IupLog_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);

  IupLog ((char const *) arg_0, (char const *) arg_1, (char const *) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupLoad_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  char * result = IupLoad ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupLoadBuffer_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  char * result = IupLoadBuffer ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupVersion_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char * result = IupVersion ();

  return janet_wrap_pointer (result);
}

static Janet
IupVersionDate_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char * result = IupVersionDate ();

  return janet_wrap_pointer (result);
}

static Janet
IupVersionNumber_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IupVersionNumber ();

  return janet_wrap_integer (result);
}

static Janet
IupVersionShow_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  IupVersionShow ();

  return janet_wrap_nil ();
}

static Janet
IupSetLanguage_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  IupSetLanguage ((char const *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupGetLanguage_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char * result = IupGetLanguage ();

  return janet_wrap_pointer (result);
}

static Janet
IupSetLanguageString_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  IupSetLanguageString ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupStoreLanguageString_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  IupStoreLanguageString ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupGetLanguageString_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  char * result = IupGetLanguageString ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupSetLanguagePack_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupSetLanguagePack ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupDestroy_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupDestroy ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupDetach_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupDetach ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupAppend_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupAppend ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupInsert_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);
  Ihandle * arg_2 = (Ihandle *) janet_getpointer (argv, 2);

  Ihandle * result = IupInsert ((Ihandle *) arg_0, (Ihandle *) arg_1, (Ihandle *) arg_2);

  return janet_wrap_pointer (result);
}

static Janet
IupGetChild_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);

  Ihandle * result = IupGetChild ((Ihandle *) arg_0, (int) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupGetChildPos_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  int result = IupGetChildPos ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupGetChildCount_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  int result = IupGetChildCount ((Ihandle *) arg_0);

  return janet_wrap_integer (result);
}

static Janet
IupGetNextChild_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupGetNextChild ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupGetBrother_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupGetBrother ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupGetParent_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupGetParent ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupGetDialog_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupGetDialog ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupGetDialogChild_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  Ihandle * result = IupGetDialogChild ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupReparent_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);
  Ihandle * arg_2 = (Ihandle *) janet_getpointer (argv, 2);

  int result = IupReparent ((Ihandle *) arg_0, (Ihandle *) arg_1, (Ihandle *) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupPopup_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  int result = IupPopup ((Ihandle *) arg_0, (int) arg_1, (int) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupShow_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  int result = IupShow ((Ihandle *) arg_0);

  return janet_wrap_integer (result);
}

static Janet
IupShowXY_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  int result = IupShowXY ((Ihandle *) arg_0, (int) arg_1, (int) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupHide_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  int result = IupHide ((Ihandle *) arg_0);

  return janet_wrap_integer (result);
}

static Janet
IupMap_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  int result = IupMap ((Ihandle *) arg_0);

  return janet_wrap_integer (result);
}

static Janet
IupUnmap_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupUnmap ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupResetAttribute_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  IupResetAttribute ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupGetAllAttributes_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char ** arg_1 = (char **) janet_getpointer (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  int result = IupGetAllAttributes ((Ihandle *) arg_0, (char **) arg_1, (int) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupCopyAttributes_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  IupCopyAttributes ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupSetAtt_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);

  Ihandle * result = IupSetAtt ((char const *) arg_0, (Ihandle *) arg_1, (char const *) arg_2, (char const *) arg_3);

  return janet_wrap_pointer (result);
}

static Janet
IupSetAttributes_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  Ihandle * result = IupSetAttributes ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupGetAttributes_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  char * result = IupGetAttributes ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupSetAttribute_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);

  IupSetAttribute ((Ihandle *) arg_0, (char const *) arg_1, (char const *) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupSetStrAttribute_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);

  IupSetStrAttribute ((Ihandle *) arg_0, (char const *) arg_1, (char const *) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupSetStrf_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);

  IupSetStrf ((Ihandle *) arg_0, (char const *) arg_1, (char const *) arg_2, (char const *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupSetInt_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  IupSetInt ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupSetFloat_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  float arg_2 = janet_getnumber (argv, 2);

  IupSetFloat ((Ihandle *) arg_0, (char const *) arg_1, (float) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupSetDouble_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  double arg_2 = janet_getnumber (argv, 2);

  IupSetDouble ((Ihandle *) arg_0, (char const *) arg_1, (double) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupSetRGB_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  unsigned char arg_2 = janet_getinteger (argv, 2);
  unsigned char arg_3 = janet_getinteger (argv, 3);
  unsigned char arg_4 = janet_getinteger (argv, 4);

  IupSetRGB ((Ihandle *) arg_0, (char const *) arg_1, (unsigned char) arg_2, (unsigned char) arg_3, (unsigned char) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupGetAttribute_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  char * result = IupGetAttribute ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupGetInt_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  int result = IupGetInt ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupGetInt2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  int result = IupGetInt2 ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupGetIntInt_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int * arg_2 = (int *) janet_getpointer (argv, 2);
  int * arg_3 = (int *) janet_getpointer (argv, 3);

  int result = IupGetIntInt ((Ihandle *) arg_0, (char const *) arg_1, (int *) arg_2, (int *) arg_3);

  return janet_wrap_integer (result);
}

static Janet
IupGetFloat_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  float result = IupGetFloat ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_number (result);
}

static Janet
IupGetDouble_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  double result = IupGetDouble ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_number (result);
}

static Janet
IupGetRGB_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  unsigned char * arg_2 = (unsigned char *) janet_getpointer (argv, 2);
  unsigned char * arg_3 = (unsigned char *) janet_getpointer (argv, 3);
  unsigned char * arg_4 = (unsigned char *) janet_getpointer (argv, 4);

  IupGetRGB ((Ihandle *) arg_0, (char const *) arg_1, (unsigned char *) arg_2, (unsigned char *) arg_3, (unsigned char *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupSetAttributeId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);

  IupSetAttributeId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (char const *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupSetStrAttributeId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);

  IupSetStrAttributeId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (char const *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupSetStrfId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);

  IupSetStrfId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (char const *) arg_3, (char const *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupSetIntId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);

  IupSetIntId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupSetFloatId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  float arg_3 = janet_getnumber (argv, 3);

  IupSetFloatId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (float) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupSetDoubleId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  double arg_3 = janet_getnumber (argv, 3);

  IupSetDoubleId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (double) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupSetRGBId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 6);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  unsigned char arg_3 = janet_getinteger (argv, 3);
  unsigned char arg_4 = janet_getinteger (argv, 4);
  unsigned char arg_5 = janet_getinteger (argv, 5);

  IupSetRGBId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (unsigned char) arg_3, (unsigned char) arg_4, (unsigned char) arg_5);

  return janet_wrap_nil ();
}

static Janet
IupGetAttributeId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  char * result = IupGetAttributeId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2);

  return janet_wrap_pointer (result);
}

static Janet
IupGetIntId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  int result = IupGetIntId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupGetFloatId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  float result = IupGetFloatId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2);

  return janet_wrap_number (result);
}

static Janet
IupGetDoubleId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  double result = IupGetDoubleId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2);

  return janet_wrap_number (result);
}

static Janet
IupGetRGBId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 6);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  unsigned char * arg_3 = (unsigned char *) janet_getpointer (argv, 3);
  unsigned char * arg_4 = (unsigned char *) janet_getpointer (argv, 4);
  unsigned char * arg_5 = (unsigned char *) janet_getpointer (argv, 5);

  IupGetRGBId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (unsigned char *) arg_3, (unsigned char *) arg_4, (unsigned char *) arg_5);

  return janet_wrap_nil ();
}

static Janet
IupSetAttributeId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);

  IupSetAttributeId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (char const *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupSetStrAttributeId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);

  IupSetStrAttributeId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (char const *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupSetStrfId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 6);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);
  char const * arg_5 = (char const *) janet_getstring (argv, 5);

  IupSetStrfId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (char const *) arg_4, (char const *) arg_5);

  return janet_wrap_nil ();
}

static Janet
IupSetIntId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);

  IupSetIntId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (int) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupSetFloatId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  float arg_4 = janet_getnumber (argv, 4);

  IupSetFloatId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (float) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupSetDoubleId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  double arg_4 = janet_getnumber (argv, 4);

  IupSetDoubleId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (double) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupSetRGBId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 7);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  unsigned char arg_4 = janet_getinteger (argv, 4);
  unsigned char arg_5 = janet_getinteger (argv, 5);
  unsigned char arg_6 = janet_getinteger (argv, 6);

  IupSetRGBId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (unsigned char) arg_4, (unsigned char) arg_5, (unsigned char) arg_6);

  return janet_wrap_nil ();
}

static Janet
IupGetAttributeId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);

  char * result = IupGetAttributeId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3);

  return janet_wrap_pointer (result);
}

static Janet
IupGetIntId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);

  int result = IupGetIntId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3);

  return janet_wrap_integer (result);
}

static Janet
IupGetFloatId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);

  float result = IupGetFloatId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3);

  return janet_wrap_number (result);
}

static Janet
IupGetDoubleId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);

  double result = IupGetDoubleId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3);

  return janet_wrap_number (result);
}

static Janet
IupGetRGBId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 7);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  unsigned char * arg_4 = (unsigned char *) janet_getpointer (argv, 4);
  unsigned char * arg_5 = (unsigned char *) janet_getpointer (argv, 5);
  unsigned char * arg_6 = (unsigned char *) janet_getpointer (argv, 6);

  IupGetRGBId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (unsigned char *) arg_4, (unsigned char *) arg_5, (unsigned char *) arg_6);

  return janet_wrap_nil ();
}

static Janet
IupSetGlobal_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  IupSetGlobal ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupSetStrGlobal_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  IupSetStrGlobal ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupGetGlobal_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  char * result = IupGetGlobal ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupSetFocus_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupSetFocus ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupGetFocus_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupGetFocus ();

  return janet_wrap_pointer (result);
}

static Janet
IupPreviousField_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupPreviousField ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupNextField_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupNextField ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupGetCallback_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  Icallback result = IupGetCallback ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupSetCallback_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  Icallback arg_2 = janet_getinteger (argv, 2);

  Icallback result = IupSetCallback ((Ihandle *) arg_0, (char const *) arg_1, (Icallback) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupSetCallbacks_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  Icallback arg_2 = janet_getinteger (argv, 2);
  Icallback arg_3 = janet_getinteger (argv, 3);

  Ihandle * result = IupSetCallbacks ((Ihandle *) arg_0, (char const *) arg_1, (Icallback) arg_2, (Icallback) arg_3);

  return janet_wrap_pointer (result);
}

static Janet
IupGetFunction_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Icallback result = IupGetFunction ((char const *) arg_0);

  return janet_wrap_integer (result);
}

static Janet
IupSetFunction_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  Icallback arg_1 = janet_getinteger (argv, 1);

  Icallback result = IupSetFunction ((char const *) arg_0, (Icallback) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupGetHandle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupGetHandle ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupSetHandle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupSetHandle ((char const *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupGetAllNames_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char ** arg_0 = (char **) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);

  int result = IupGetAllNames ((char **) arg_0, (int) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupGetAllDialogs_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char ** arg_0 = (char **) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);

  int result = IupGetAllDialogs ((char **) arg_0, (int) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupGetName_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  char * result = IupGetName ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupSetAttributeHandle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  Ihandle * arg_2 = (Ihandle *) janet_getpointer (argv, 2);

  IupSetAttributeHandle ((Ihandle *) arg_0, (char const *) arg_1, (Ihandle *) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupGetAttributeHandle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  Ihandle * result = IupGetAttributeHandle ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupSetAttributeHandleId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  Ihandle * arg_3 = (Ihandle *) janet_getpointer (argv, 3);

  IupSetAttributeHandleId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (Ihandle *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupGetAttributeHandleId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  Ihandle * result = IupGetAttributeHandleId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2);

  return janet_wrap_pointer (result);
}

static Janet
IupSetAttributeHandleId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  Ihandle * arg_4 = (Ihandle *) janet_getpointer (argv, 4);

  IupSetAttributeHandleId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (Ihandle *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupGetAttributeHandleId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);

  Ihandle * result = IupGetAttributeHandleId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3);

  return janet_wrap_pointer (result);
}

static Janet
IupGetClassName_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  char * result = IupGetClassName ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupGetClassType_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  char * result = IupGetClassType ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupGetAllClasses_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char ** arg_0 = (char **) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);

  int result = IupGetAllClasses ((char **) arg_0, (int) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupGetClassAttributes_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char ** arg_1 = (char **) janet_getpointer (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  int result = IupGetClassAttributes ((char const *) arg_0, (char **) arg_1, (int) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupGetClassCallbacks_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char ** arg_1 = (char **) janet_getpointer (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  int result = IupGetClassCallbacks ((char const *) arg_0, (char **) arg_1, (int) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupSaveClassAttributes_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupSaveClassAttributes ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupCopyClassAttributes_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  IupCopyClassAttributes ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupSetClassDefaultAttribute_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);

  IupSetClassDefaultAttribute ((char const *) arg_0, (char const *) arg_1, (char const *) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupClassMatch_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  int result = IupClassMatch ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupCreate_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupCreate ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupCreatev_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  void ** arg_1 = (void **) janet_getpointer (argv, 1);

  Ihandle * result = IupCreatev ((char const *) arg_0, (void **) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupCreatep_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  void * arg_1 = (void *) janet_getpointer (argv, 1);
  void * arg_2 = (void *) janet_getpointer (argv, 2);

  Ihandle * result = IupCreatep ((char const *) arg_0, (void *) arg_1, (void *) arg_2);

  return janet_wrap_pointer (result);
}

static Janet
IupFill_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupFill ();

  return janet_wrap_pointer (result);
}

static Janet
IupSpace_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupSpace ();

  return janet_wrap_pointer (result);
}

static Janet
IupRadio_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupRadio ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupVbox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupVbox ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupVboxv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupVboxv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupZbox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupZbox ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupZboxv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupZboxv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupHbox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupHbox ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupHboxv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupHboxv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupNormalizer_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupNormalizer ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupNormalizerv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupNormalizerv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupCbox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupCbox ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupCboxv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupCboxv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupSbox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupSbox ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupSplit_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupSplit ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupScrollBox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupScrollBox ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatScrollBox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupFlatScrollBox ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupGridBox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupGridBox ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupGridBoxv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupGridBoxv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupMultiBox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupMultiBox ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupMultiBoxv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupMultiBoxv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupExpander_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupExpander ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupDetachBox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupDetachBox ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupBackgroundBox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupBackgroundBox ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFrame_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupFrame ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatFrame_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupFlatFrame ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupImage_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  int arg_0 = janet_getinteger (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  unsigned char const * arg_2 = (unsigned char const *) janet_getpointer (argv, 2);

  Ihandle * result = IupImage ((int) arg_0, (int) arg_1, (unsigned char const *) arg_2);

  return janet_wrap_pointer (result);
}

static Janet
IupImageRGB_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  int arg_0 = janet_getinteger (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  unsigned char const * arg_2 = (unsigned char const *) janet_getpointer (argv, 2);

  Ihandle * result = IupImageRGB ((int) arg_0, (int) arg_1, (unsigned char const *) arg_2);

  return janet_wrap_pointer (result);
}

static Janet
IupImageRGBA_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  int arg_0 = janet_getinteger (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  unsigned char const * arg_2 = (unsigned char const *) janet_getpointer (argv, 2);

  Ihandle * result = IupImageRGBA ((int) arg_0, (int) arg_1, (unsigned char const *) arg_2);

  return janet_wrap_pointer (result);
}

static Janet
IupItem_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  Ihandle * result = IupItem ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupSubmenu_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupSubmenu ((char const *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupSeparator_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupSeparator ();

  return janet_wrap_pointer (result);
}

static Janet
IupMenu_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupMenu ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupMenuv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupMenuv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupButton_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  Ihandle * result = IupButton ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatButton_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupFlatButton ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatToggle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupFlatToggle ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupDropButton_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupDropButton ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatLabel_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupFlatLabel ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatSeparator_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupFlatSeparator ();

  return janet_wrap_pointer (result);
}

static Janet
IupCanvas_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupCanvas ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupDialog_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupDialog ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupUser_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupUser ();

  return janet_wrap_pointer (result);
}

static Janet
IupThread_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupThread ();

  return janet_wrap_pointer (result);
}

static Janet
IupLabel_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupLabel ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupList_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupList ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatList_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupFlatList ();

  return janet_wrap_pointer (result);
}

static Janet
IupText_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupText ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupMultiLine_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupMultiLine ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupToggle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  Ihandle * result = IupToggle ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupTimer_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupTimer ();

  return janet_wrap_pointer (result);
}

static Janet
IupClipboard_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupClipboard ();

  return janet_wrap_pointer (result);
}

static Janet
IupProgressBar_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupProgressBar ();

  return janet_wrap_pointer (result);
}

static Janet
IupVal_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupVal ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatVal_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupFlatVal ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupTabs_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupTabs ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupTabsv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupTabsv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatTabs_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupFlatTabs ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupFlatTabsv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupFlatTabsv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupTree_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupTree ();

  return janet_wrap_pointer (result);
}

static Janet
IupLink_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  Ihandle * result = IupLink ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupAnimatedLabel_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupAnimatedLabel ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupDatePick_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupDatePick ();

  return janet_wrap_pointer (result);
}

static Janet
IupCalendar_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupCalendar ();

  return janet_wrap_pointer (result);
}

static Janet
IupColorbar_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupColorbar ();

  return janet_wrap_pointer (result);
}

static Janet
IupGauge_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupGauge ();

  return janet_wrap_pointer (result);
}

static Janet
IupDial_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupDial ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupColorBrowser_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupColorBrowser ();

  return janet_wrap_pointer (result);
}

static Janet
IupSpin_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupSpin ();

  return janet_wrap_pointer (result);
}

static Janet
IupSpinbox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupSpinbox ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupStringCompare_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);

  int result = IupStringCompare ((char const *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3);

  return janet_wrap_integer (result);
}

static Janet
IupSaveImageAsText_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);

  int result = IupSaveImageAsText ((Ihandle *) arg_0, (char const *) arg_1, (char const *) arg_2, (char const *) arg_3);

  return janet_wrap_integer (result);
}

static Janet
IupImageGetHandle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupImageGetHandle ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupTextConvertLinColToPos_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int * arg_3 = (int *) janet_getpointer (argv, 3);

  IupTextConvertLinColToPos ((Ihandle *) arg_0, (int) arg_1, (int) arg_2, (int *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupTextConvertPosToLinCol_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int * arg_2 = (int *) janet_getpointer (argv, 2);
  int * arg_3 = (int *) janet_getpointer (argv, 3);

  IupTextConvertPosToLinCol ((Ihandle *) arg_0, (int) arg_1, (int *) arg_2, (int *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupConvertXYToPos_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  int result = IupConvertXYToPos ((Ihandle *) arg_0, (int) arg_1, (int) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupStoreGlobal_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  IupStoreGlobal ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupStoreAttribute_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);

  IupStoreAttribute ((Ihandle *) arg_0, (char const *) arg_1, (char const *) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupSetfAttribute_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);

  IupSetfAttribute ((Ihandle *) arg_0, (char const *) arg_1, (char const *) arg_2, (char const *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupStoreAttributeId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);

  IupStoreAttributeId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (char const *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupSetfAttributeId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);

  IupSetfAttributeId ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (char const *) arg_3, (char const *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupStoreAttributeId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);

  IupStoreAttributeId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (char const *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupSetfAttributeId2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 6);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);
  char const * arg_5 = (char const *) janet_getstring (argv, 5);

  IupSetfAttributeId2 ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (char const *) arg_4, (char const *) arg_5);

  return janet_wrap_nil ();
}

static Janet
IupTreeSetUserId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  void * arg_2 = (void *) janet_getpointer (argv, 2);

  int result = IupTreeSetUserId ((Ihandle *) arg_0, (int) arg_1, (void *) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupTreeGetUserId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);

  void * result = IupTreeGetUserId ((Ihandle *) arg_0, (int) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupTreeGetId_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  void * arg_1 = (void *) janet_getpointer (argv, 1);

  int result = IupTreeGetId ((Ihandle *) arg_0, (void *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupTreeSetAttributeHandle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  Ihandle * arg_3 = (Ihandle *) janet_getpointer (argv, 3);

  IupTreeSetAttributeHandle ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (Ihandle *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupFileDlg_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupFileDlg ();

  return janet_wrap_pointer (result);
}

static Janet
IupMessageDlg_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupMessageDlg ();

  return janet_wrap_pointer (result);
}

static Janet
IupColorDlg_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupColorDlg ();

  return janet_wrap_pointer (result);
}

static Janet
IupFontDlg_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupFontDlg ();

  return janet_wrap_pointer (result);
}

static Janet
IupProgressDlg_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupProgressDlg ();

  return janet_wrap_pointer (result);
}

static Janet
IupGetFile_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char * arg_0 = (char *) janet_getpointer (argv, 0);

  int result = IupGetFile ((char *) arg_0);

  return janet_wrap_integer (result);
}

static Janet
IupMessage_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  IupMessage ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupMessagef_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);

  IupMessagef ((char const *) arg_0, (char const *) arg_1, (char const *) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupMessageError_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  IupMessageError ((Ihandle *) arg_0, (char const *) arg_1);

  return janet_wrap_nil ();
}

static Janet
IupMessageAlarm_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);

  int result = IupMessageAlarm ((Ihandle *) arg_0, (char const *) arg_1, (char const *) arg_2, (char const *) arg_3);

  return janet_wrap_integer (result);
}

static Janet
IupAlarm_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);

  int result = IupAlarm ((char const *) arg_0, (char const *) arg_1, (char const *) arg_2, (char const *) arg_3, (char const *) arg_4);

  return janet_wrap_integer (result);
}

static Janet
IupScanf_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);

  int result = IupScanf ((char const *) arg_0, (char const *) arg_1);

  return janet_wrap_integer (result);
}

static Janet
IupListDialog_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 8);

  int arg_0 = janet_getinteger (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  char const ** arg_3 = (char const **) janet_getpointer (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);
  int arg_5 = janet_getinteger (argv, 5);
  int arg_6 = janet_getinteger (argv, 6);
  int * arg_7 = (int *) janet_getpointer (argv, 7);

  int result = IupListDialog ((int) arg_0, (char const *) arg_1, (int) arg_2, (char const **) arg_3, (int) arg_4, (int) arg_5, (int) arg_6, (int *) arg_7);

  return janet_wrap_integer (result);
}

static Janet
IupGetText_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  char * arg_1 = (char *) janet_getpointer (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  int result = IupGetText ((char const *) arg_0, (char *) arg_1, (int) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupGetColor_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  int arg_0 = janet_getinteger (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  unsigned char * arg_2 = (unsigned char *) janet_getpointer (argv, 2);
  unsigned char * arg_3 = (unsigned char *) janet_getpointer (argv, 3);
  unsigned char * arg_4 = (unsigned char *) janet_getpointer (argv, 4);

  int result = IupGetColor ((int) arg_0, (int) arg_1, (unsigned char *) arg_2, (unsigned char *) arg_3, (unsigned char *) arg_4);

  return janet_wrap_integer (result);
}

static Janet
IupGetParam_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  Iparamcb arg_1 = janet_getinteger (argv, 1);
  void * arg_2 = (void *) janet_getpointer (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);
  char const * arg_4 = (char const *) janet_getstring (argv, 4);

  int result = IupGetParam ((char const *) arg_0, (Iparamcb) arg_1, (void *) arg_2, (char const *) arg_3, (char const *) arg_4);

  return janet_wrap_integer (result);
}

static Janet
IupGetParamv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 7);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  Iparamcb arg_1 = janet_getinteger (argv, 1);
  void * arg_2 = (void *) janet_getpointer (argv, 2);
  char const * arg_3 = (char const *) janet_getstring (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);
  int arg_5 = janet_getinteger (argv, 5);
  void ** arg_6 = (void **) janet_getpointer (argv, 6);

  int result = IupGetParamv ((char const *) arg_0, (Iparamcb) arg_1, (void *) arg_2, (char const *) arg_3, (int) arg_4, (int) arg_5, (void **) arg_6);

  return janet_wrap_integer (result);
}

static Janet
IupParam_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupParam ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupParamBox_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupParamBox ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupParamBoxv_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle ** arg_0 = (Ihandle **) janet_getpointer (argv, 0);

  Ihandle * result = IupParamBoxv ((Ihandle **) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupLayoutDialog_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupLayoutDialog ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupElementPropertiesDialog_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  Ihandle * arg_1 = (Ihandle *) janet_getpointer (argv, 1);

  Ihandle * result = IupElementPropertiesDialog ((Ihandle *) arg_0, (Ihandle *) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
IupGlobalsDialog_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  Ihandle * result = IupGlobalsDialog ();

  return janet_wrap_pointer (result);
}

static Janet
IupClassInfoDialog_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  Ihandle * result = IupClassInfoDialog ((Ihandle *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_ERROR_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_ERROR;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_NOERROR_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_NOERROR;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_OPENED_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_OPENED;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_INVALID_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_INVALID;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_INVALID_ID_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_INVALID_ID;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_IGNORE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_IGNORE;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_DEFAULT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_DEFAULT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_CLOSE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_CLOSE;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_CONTINUE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_CONTINUE;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_CENTER_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_CENTER;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_LEFT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_LEFT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_RIGHT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_RIGHT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_MOUSEPOS_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_MOUSEPOS;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_CURRENT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_CURRENT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_CENTERPARENT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_CENTERPARENT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_TOP_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_TOP;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_BOTTOM_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_BOTTOM;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SHOW_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SHOW;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_RESTORE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_RESTORE;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_MINIMIZE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_MINIMIZE;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_MAXIMIZE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_MAXIMIZE;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_HIDE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_HIDE;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBUP_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBUP;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBDN_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBDN;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBPGUP_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBPGUP;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBPGDN_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBPGDN;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBPOSV_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBPOSV;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBDRAGV_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBDRAGV;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBLEFT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBLEFT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBRIGHT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBRIGHT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBPGLEFT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBPGLEFT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBPGRIGHT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBPGRIGHT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBPOSH_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBPOSH;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SBDRAGH_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SBDRAGH;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_BUTTON1_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char result = IUP_BUTTON1;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_BUTTON2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char result = IUP_BUTTON2;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_BUTTON3_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char result = IUP_BUTTON3;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_BUTTON4_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char result = IUP_BUTTON4;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_BUTTON5_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char result = IUP_BUTTON5;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_MASK_FLOAT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_MASK_FLOAT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_MASK_UFLOAT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_MASK_UFLOAT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_MASK_EFLOAT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_MASK_EFLOAT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_MASK_UEFLOAT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_MASK_UEFLOAT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_MASK_FLOATCOMMA_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_MASK_FLOATCOMMA;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_MASK_UFLOATCOMMA_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_MASK_UFLOATCOMMA;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_MASK_INT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_MASK_INT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_MASK_UINT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUP_MASK_UINT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUPMASK_FLOAT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUPMASK_FLOAT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUPMASK_UFLOAT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUPMASK_UFLOAT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUPMASK_EFLOAT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUPMASK_EFLOAT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUPMASK_INT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUPMASK_INT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUPMASK_UINT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char const * result = IUPMASK_UINT;

  return janet_wrap_pointer (result);
}

static Janet
const_IUP_GETPARAM_BUTTON1_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_BUTTON1;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_GETPARAM_INIT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_INIT;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_GETPARAM_BUTTON2_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_BUTTON2;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_GETPARAM_BUTTON3_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_BUTTON3;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_GETPARAM_CLOSE_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_CLOSE;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_GETPARAM_MAP_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_MAP;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_GETPARAM_OK_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_OK;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_GETPARAM_CANCEL_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_CANCEL;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_GETPARAM_HELP_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_GETPARAM_HELP;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_PRIMARY_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_PRIMARY;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_SECONDARY_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_SECONDARY;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_RECBINARY_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_RECBINARY;

  return janet_wrap_integer (result);
}

static Janet
const_IUP_RECTEXT_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int result = IUP_RECTEXT;

  return janet_wrap_integer (result);
}

static Janet
IupDrawBegin_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupDrawBegin ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupDrawEnd_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupDrawEnd ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupDrawSetClipRect_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);

  IupDrawSetClipRect ((Ihandle *) arg_0, (int) arg_1, (int) arg_2, (int) arg_3, (int) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupDrawGetClipRect_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int * arg_1 = (int *) janet_getpointer (argv, 1);
  int * arg_2 = (int *) janet_getpointer (argv, 2);
  int * arg_3 = (int *) janet_getpointer (argv, 3);
  int * arg_4 = (int *) janet_getpointer (argv, 4);

  IupDrawGetClipRect ((Ihandle *) arg_0, (int *) arg_1, (int *) arg_2, (int *) arg_3, (int *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupDrawResetClip_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupDrawResetClip ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupDrawParentBackground_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);

  IupDrawParentBackground ((Ihandle *) arg_0);

  return janet_wrap_nil ();
}

static Janet
IupDrawLine_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);

  IupDrawLine ((Ihandle *) arg_0, (int) arg_1, (int) arg_2, (int) arg_3, (int) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupDrawRectangle_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);

  IupDrawRectangle ((Ihandle *) arg_0, (int) arg_1, (int) arg_2, (int) arg_3, (int) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupDrawArc_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 7);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);
  double arg_5 = janet_getnumber (argv, 5);
  double arg_6 = janet_getnumber (argv, 6);

  IupDrawArc ((Ihandle *) arg_0, (int) arg_1, (int) arg_2, (int) arg_3, (int) arg_4, (double) arg_5, (double) arg_6);

  return janet_wrap_nil ();
}

static Janet
IupDrawPolygon_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int * arg_1 = (int *) janet_getpointer (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);

  IupDrawPolygon ((Ihandle *) arg_0, (int *) arg_1, (int) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupDrawText_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 7);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);
  int arg_5 = janet_getinteger (argv, 5);
  int arg_6 = janet_getinteger (argv, 6);

  IupDrawText ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (int) arg_4, (int) arg_5, (int) arg_6);

  return janet_wrap_nil ();
}

static Janet
IupDrawImage_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 6);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);
  int arg_5 = janet_getinteger (argv, 5);

  IupDrawImage ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int) arg_3, (int) arg_4, (int) arg_5);

  return janet_wrap_nil ();
}

static Janet
IupDrawSelectRect_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);

  IupDrawSelectRect ((Ihandle *) arg_0, (int) arg_1, (int) arg_2, (int) arg_3, (int) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupDrawFocusRect_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int arg_3 = janet_getinteger (argv, 3);
  int arg_4 = janet_getinteger (argv, 4);

  IupDrawFocusRect ((Ihandle *) arg_0, (int) arg_1, (int) arg_2, (int) arg_3, (int) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupDrawGetSize_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  int * arg_1 = (int *) janet_getpointer (argv, 1);
  int * arg_2 = (int *) janet_getpointer (argv, 2);

  IupDrawGetSize ((Ihandle *) arg_0, (int *) arg_1, (int *) arg_2);

  return janet_wrap_nil ();
}

static Janet
IupDrawGetTextSize_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 5);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  int arg_2 = janet_getinteger (argv, 2);
  int * arg_3 = (int *) janet_getpointer (argv, 3);
  int * arg_4 = (int *) janet_getpointer (argv, 4);

  IupDrawGetTextSize ((Ihandle *) arg_0, (char const *) arg_1, (int) arg_2, (int *) arg_3, (int *) arg_4);

  return janet_wrap_nil ();
}

static Janet
IupDrawGetImageInfo_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 4);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);
  int * arg_1 = (int *) janet_getpointer (argv, 1);
  int * arg_2 = (int *) janet_getpointer (argv, 2);
  int * arg_3 = (int *) janet_getpointer (argv, 3);

  IupDrawGetImageInfo ((char const *) arg_0, (int *) arg_1, (int *) arg_2, (int *) arg_3);

  return janet_wrap_nil ();
}

static Janet
IupImOpen_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  IupImOpen ();

  return janet_wrap_nil ();
}

static Janet
IupLoadImage_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupLoadImage ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupSaveImage_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 3);

  Ihandle * arg_0 = (Ihandle *) janet_getpointer (argv, 0);
  char const * arg_1 = (char const *) janet_getstring (argv, 1);
  char const * arg_2 = (char const *) janet_getstring (argv, 2);

  int result = IupSaveImage ((Ihandle *) arg_0, (char const *) arg_1, (char const *) arg_2);

  return janet_wrap_integer (result);
}

static Janet
IupLoadAnimation_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 1);

  char const * arg_0 = (char const *) janet_getstring (argv, 0);

  Ihandle * result = IupLoadAnimation ((char const *) arg_0);

  return janet_wrap_pointer (result);
}

static Janet
IupLoadAnimationFrames_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 2);

  char const ** arg_0 = (char const **) janet_getpointer (argv, 0);
  int arg_1 = janet_getinteger (argv, 1);

  Ihandle * result = IupLoadAnimationFrames ((char const **) arg_0, (int) arg_1);

  return janet_wrap_pointer (result);
}

static Janet
int_ptr_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  int * result = int_ptr ();

  return janet_wrap_pointer (result);
}

static Janet
char_ptr_wrapped (int32_t argc, Janet *argv)
{
  janet_fixarity (argc, 0);


  char *** result = char_ptr ();

  return janet_wrap_pointer (result);
}

static const JanetReg
cfuns[] = {
  {
    "iup-set-thunk-callback", IupSetThunkCallback_wrapped, ""
  },
  {
    "IupGetAttributeAsString", IupGetAttributeAsString_wrapped, ""
  },
  {
    "const-IUP-NAME", const_IUP_NAME_wrapped, "Return the constant value."
  },{
    "const-IUP-DESCRIPTION", const_IUP_DESCRIPTION_wrapped, "Return the constant value."
  },{
    "const-IUP-COPYRIGHT", const_IUP_COPYRIGHT_wrapped, "Return the constant value."
  },{
    "const-IUP-VERSION", const_IUP_VERSION_wrapped, "Return the constant value."
  },{
    "const-IUP-VERSION-NUMBER", const_IUP_VERSION_NUMBER_wrapped, "Return the constant value."
  },{
    "const-IUP-VERSION-DATE", const_IUP_VERSION_DATE_wrapped, "Return the constant value."
  },{
    "IupOpen", IupOpen_wrapped, "SWIG generated"
  },{
    "IupClose", IupClose_wrapped, "SWIG generated"
  },{
    "IupIsOpened", IupIsOpened_wrapped, "SWIG generated"
  },{
    "IupImageLibOpen", IupImageLibOpen_wrapped, "SWIG generated"
  },{
    "IupMainLoop", IupMainLoop_wrapped, "SWIG generated"
  },{
    "IupLoopStep", IupLoopStep_wrapped, "SWIG generated"
  },{
    "IupLoopStepWait", IupLoopStepWait_wrapped, "SWIG generated"
  },{
    "IupMainLoopLevel", IupMainLoopLevel_wrapped, "SWIG generated"
  },{
    "IupFlush", IupFlush_wrapped, "SWIG generated"
  },{
    "IupExitLoop", IupExitLoop_wrapped, "SWIG generated"
  },{
    "IupPostMessage", IupPostMessage_wrapped, "SWIG generated"
  },{
    "IupRecordInput", IupRecordInput_wrapped, "SWIG generated"
  },{
    "IupPlayInput", IupPlayInput_wrapped, "SWIG generated"
  },{
    "IupUpdate", IupUpdate_wrapped, "SWIG generated"
  },{
    "IupUpdateChildren", IupUpdateChildren_wrapped, "SWIG generated"
  },{
    "IupRedraw", IupRedraw_wrapped, "SWIG generated"
  },{
    "IupRefresh", IupRefresh_wrapped, "SWIG generated"
  },{
    "IupRefreshChildren", IupRefreshChildren_wrapped, "SWIG generated"
  },{
    "IupExecute", IupExecute_wrapped, "SWIG generated"
  },{
    "IupExecuteWait", IupExecuteWait_wrapped, "SWIG generated"
  },{
    "IupHelp", IupHelp_wrapped, "SWIG generated"
  },{
    "IupLog", IupLog_wrapped, "SWIG generated"
  },{
    "IupLoad", IupLoad_wrapped, "SWIG generated"
  },{
    "IupLoadBuffer", IupLoadBuffer_wrapped, "SWIG generated"
  },{
    "IupVersion", IupVersion_wrapped, "SWIG generated"
  },{
    "IupVersionDate", IupVersionDate_wrapped, "SWIG generated"
  },{
    "IupVersionNumber", IupVersionNumber_wrapped, "SWIG generated"
  },{
    "IupVersionShow", IupVersionShow_wrapped, "SWIG generated"
  },{
    "IupSetLanguage", IupSetLanguage_wrapped, "SWIG generated"
  },{
    "IupGetLanguage", IupGetLanguage_wrapped, "SWIG generated"
  },{
    "IupSetLanguageString", IupSetLanguageString_wrapped, "SWIG generated"
  },{
    "IupStoreLanguageString", IupStoreLanguageString_wrapped, "SWIG generated"
  },{
    "IupGetLanguageString", IupGetLanguageString_wrapped, "SWIG generated"
  },{
    "IupSetLanguagePack", IupSetLanguagePack_wrapped, "SWIG generated"
  },{
    "IupDestroy", IupDestroy_wrapped, "SWIG generated"
  },{
    "IupDetach", IupDetach_wrapped, "SWIG generated"
  },{
    "IupAppend", IupAppend_wrapped, "SWIG generated"
  },{
    "IupInsert", IupInsert_wrapped, "SWIG generated"
  },{
    "IupGetChild", IupGetChild_wrapped, "SWIG generated"
  },{
    "IupGetChildPos", IupGetChildPos_wrapped, "SWIG generated"
  },{
    "IupGetChildCount", IupGetChildCount_wrapped, "SWIG generated"
  },{
    "IupGetNextChild", IupGetNextChild_wrapped, "SWIG generated"
  },{
    "IupGetBrother", IupGetBrother_wrapped, "SWIG generated"
  },{
    "IupGetParent", IupGetParent_wrapped, "SWIG generated"
  },{
    "IupGetDialog", IupGetDialog_wrapped, "SWIG generated"
  },{
    "IupGetDialogChild", IupGetDialogChild_wrapped, "SWIG generated"
  },{
    "IupReparent", IupReparent_wrapped, "SWIG generated"
  },{
    "IupPopup", IupPopup_wrapped, "SWIG generated"
  },{
    "IupShow", IupShow_wrapped, "SWIG generated"
  },{
    "IupShowXY", IupShowXY_wrapped, "SWIG generated"
  },{
    "IupHide", IupHide_wrapped, "SWIG generated"
  },{
    "IupMap", IupMap_wrapped, "SWIG generated"
  },{
    "IupUnmap", IupUnmap_wrapped, "SWIG generated"
  },{
    "IupResetAttribute", IupResetAttribute_wrapped, "SWIG generated"
  },{
    "IupGetAllAttributes", IupGetAllAttributes_wrapped, "SWIG generated"
  },{
    "IupCopyAttributes", IupCopyAttributes_wrapped, "SWIG generated"
  },{
    "IupSetAtt", IupSetAtt_wrapped, "SWIG generated"
  },{
    "IupSetAttributes", IupSetAttributes_wrapped, "SWIG generated"
  },{
    "IupGetAttributes", IupGetAttributes_wrapped, "SWIG generated"
  },{
    "IupSetAttribute", IupSetAttribute_wrapped, "SWIG generated"
  },{
    "IupSetStrAttribute", IupSetStrAttribute_wrapped, "SWIG generated"
  },{
    "IupSetStrf", IupSetStrf_wrapped, "SWIG generated"
  },{
    "IupSetInt", IupSetInt_wrapped, "SWIG generated"
  },{
    "IupSetFloat", IupSetFloat_wrapped, "SWIG generated"
  },{
    "IupSetDouble", IupSetDouble_wrapped, "SWIG generated"
  },{
    "IupSetRGB", IupSetRGB_wrapped, "SWIG generated"
  },{
    "IupGetAttribute", IupGetAttribute_wrapped, "SWIG generated"
  },{
    "IupGetInt", IupGetInt_wrapped, "SWIG generated"
  },{
    "IupGetInt2", IupGetInt2_wrapped, "SWIG generated"
  },{
    "IupGetIntInt", IupGetIntInt_wrapped, "SWIG generated"
  },{
    "IupGetFloat", IupGetFloat_wrapped, "SWIG generated"
  },{
    "IupGetDouble", IupGetDouble_wrapped, "SWIG generated"
  },{
    "IupGetRGB", IupGetRGB_wrapped, "SWIG generated"
  },{
    "IupSetAttributeId", IupSetAttributeId_wrapped, "SWIG generated"
  },{
    "IupSetStrAttributeId", IupSetStrAttributeId_wrapped, "SWIG generated"
  },{
    "IupSetStrfId", IupSetStrfId_wrapped, "SWIG generated"
  },{
    "IupSetIntId", IupSetIntId_wrapped, "SWIG generated"
  },{
    "IupSetFloatId", IupSetFloatId_wrapped, "SWIG generated"
  },{
    "IupSetDoubleId", IupSetDoubleId_wrapped, "SWIG generated"
  },{
    "IupSetRGBId", IupSetRGBId_wrapped, "SWIG generated"
  },{
    "IupGetAttributeId", IupGetAttributeId_wrapped, "SWIG generated"
  },{
    "IupGetIntId", IupGetIntId_wrapped, "SWIG generated"
  },{
    "IupGetFloatId", IupGetFloatId_wrapped, "SWIG generated"
  },{
    "IupGetDoubleId", IupGetDoubleId_wrapped, "SWIG generated"
  },{
    "IupGetRGBId", IupGetRGBId_wrapped, "SWIG generated"
  },{
    "IupSetAttributeId2", IupSetAttributeId2_wrapped, "SWIG generated"
  },{
    "IupSetStrAttributeId2", IupSetStrAttributeId2_wrapped, "SWIG generated"
  },{
    "IupSetStrfId2", IupSetStrfId2_wrapped, "SWIG generated"
  },{
    "IupSetIntId2", IupSetIntId2_wrapped, "SWIG generated"
  },{
    "IupSetFloatId2", IupSetFloatId2_wrapped, "SWIG generated"
  },{
    "IupSetDoubleId2", IupSetDoubleId2_wrapped, "SWIG generated"
  },{
    "IupSetRGBId2", IupSetRGBId2_wrapped, "SWIG generated"
  },{
    "IupGetAttributeId2", IupGetAttributeId2_wrapped, "SWIG generated"
  },{
    "IupGetIntId2", IupGetIntId2_wrapped, "SWIG generated"
  },{
    "IupGetFloatId2", IupGetFloatId2_wrapped, "SWIG generated"
  },{
    "IupGetDoubleId2", IupGetDoubleId2_wrapped, "SWIG generated"
  },{
    "IupGetRGBId2", IupGetRGBId2_wrapped, "SWIG generated"
  },{
    "IupSetGlobal", IupSetGlobal_wrapped, "SWIG generated"
  },{
    "IupSetStrGlobal", IupSetStrGlobal_wrapped, "SWIG generated"
  },{
    "IupGetGlobal", IupGetGlobal_wrapped, "SWIG generated"
  },{
    "IupSetFocus", IupSetFocus_wrapped, "SWIG generated"
  },{
    "IupGetFocus", IupGetFocus_wrapped, "SWIG generated"
  },{
    "IupPreviousField", IupPreviousField_wrapped, "SWIG generated"
  },{
    "IupNextField", IupNextField_wrapped, "SWIG generated"
  },{
    "IupGetCallback", IupGetCallback_wrapped, "SWIG generated"
  },{
    "IupSetCallback", IupSetCallback_wrapped, "SWIG generated"
  },{
    "IupSetCallbacks", IupSetCallbacks_wrapped, "SWIG generated"
  },{
    "IupGetFunction", IupGetFunction_wrapped, "SWIG generated"
  },{
    "IupSetFunction", IupSetFunction_wrapped, "SWIG generated"
  },{
    "IupGetHandle", IupGetHandle_wrapped, "SWIG generated"
  },{
    "IupSetHandle", IupSetHandle_wrapped, "SWIG generated"
  },{
    "IupGetAllNames", IupGetAllNames_wrapped, "SWIG generated"
  },{
    "IupGetAllDialogs", IupGetAllDialogs_wrapped, "SWIG generated"
  },{
    "IupGetName", IupGetName_wrapped, "SWIG generated"
  },{
    "IupSetAttributeHandle", IupSetAttributeHandle_wrapped, "SWIG generated"
  },{
    "IupGetAttributeHandle", IupGetAttributeHandle_wrapped, "SWIG generated"
  },{
    "IupSetAttributeHandleId", IupSetAttributeHandleId_wrapped, "SWIG generated"
  },{
    "IupGetAttributeHandleId", IupGetAttributeHandleId_wrapped, "SWIG generated"
  },{
    "IupSetAttributeHandleId2", IupSetAttributeHandleId2_wrapped, "SWIG generated"
  },{
    "IupGetAttributeHandleId2", IupGetAttributeHandleId2_wrapped, "SWIG generated"
  },{
    "IupGetClassName", IupGetClassName_wrapped, "SWIG generated"
  },{
    "IupGetClassType", IupGetClassType_wrapped, "SWIG generated"
  },{
    "IupGetAllClasses", IupGetAllClasses_wrapped, "SWIG generated"
  },{
    "IupGetClassAttributes", IupGetClassAttributes_wrapped, "SWIG generated"
  },{
    "IupGetClassCallbacks", IupGetClassCallbacks_wrapped, "SWIG generated"
  },{
    "IupSaveClassAttributes", IupSaveClassAttributes_wrapped, "SWIG generated"
  },{
    "IupCopyClassAttributes", IupCopyClassAttributes_wrapped, "SWIG generated"
  },{
    "IupSetClassDefaultAttribute", IupSetClassDefaultAttribute_wrapped, "SWIG generated"
  },{
    "IupClassMatch", IupClassMatch_wrapped, "SWIG generated"
  },{
    "IupCreate", IupCreate_wrapped, "SWIG generated"
  },{
    "IupCreatev", IupCreatev_wrapped, "SWIG generated"
  },{
    "IupCreatep", IupCreatep_wrapped, "SWIG generated"
  },{
    "IupFill", IupFill_wrapped, "SWIG generated"
  },{
    "IupSpace", IupSpace_wrapped, "SWIG generated"
  },{
    "IupRadio", IupRadio_wrapped, "SWIG generated"
  },{
    "IupVbox", IupVbox_wrapped, "SWIG generated"
  },{
    "IupVboxv", IupVboxv_wrapped, "SWIG generated"
  },{
    "IupZbox", IupZbox_wrapped, "SWIG generated"
  },{
    "IupZboxv", IupZboxv_wrapped, "SWIG generated"
  },{
    "IupHbox", IupHbox_wrapped, "SWIG generated"
  },{
    "IupHboxv", IupHboxv_wrapped, "SWIG generated"
  },{
    "IupNormalizer", IupNormalizer_wrapped, "SWIG generated"
  },{
    "IupNormalizerv", IupNormalizerv_wrapped, "SWIG generated"
  },{
    "IupCbox", IupCbox_wrapped, "SWIG generated"
  },{
    "IupCboxv", IupCboxv_wrapped, "SWIG generated"
  },{
    "IupSbox", IupSbox_wrapped, "SWIG generated"
  },{
    "IupSplit", IupSplit_wrapped, "SWIG generated"
  },{
    "IupScrollBox", IupScrollBox_wrapped, "SWIG generated"
  },{
    "IupFlatScrollBox", IupFlatScrollBox_wrapped, "SWIG generated"
  },{
    "IupGridBox", IupGridBox_wrapped, "SWIG generated"
  },{
    "IupGridBoxv", IupGridBoxv_wrapped, "SWIG generated"
  },{
    "IupMultiBox", IupMultiBox_wrapped, "SWIG generated"
  },{
    "IupMultiBoxv", IupMultiBoxv_wrapped, "SWIG generated"
  },{
    "IupExpander", IupExpander_wrapped, "SWIG generated"
  },{
    "IupDetachBox", IupDetachBox_wrapped, "SWIG generated"
  },{
    "IupBackgroundBox", IupBackgroundBox_wrapped, "SWIG generated"
  },{
    "IupFrame", IupFrame_wrapped, "SWIG generated"
  },{
    "IupFlatFrame", IupFlatFrame_wrapped, "SWIG generated"
  },{
    "IupImage", IupImage_wrapped, "SWIG generated"
  },{
    "IupImageRGB", IupImageRGB_wrapped, "SWIG generated"
  },{
    "IupImageRGBA", IupImageRGBA_wrapped, "SWIG generated"
  },{
    "IupItem", IupItem_wrapped, "SWIG generated"
  },{
    "IupSubmenu", IupSubmenu_wrapped, "SWIG generated"
  },{
    "IupSeparator", IupSeparator_wrapped, "SWIG generated"
  },{
    "IupMenu", IupMenu_wrapped, "SWIG generated"
  },{
    "IupMenuv", IupMenuv_wrapped, "SWIG generated"
  },{
    "IupButton", IupButton_wrapped, "SWIG generated"
  },{
    "IupFlatButton", IupFlatButton_wrapped, "SWIG generated"
  },{
    "IupFlatToggle", IupFlatToggle_wrapped, "SWIG generated"
  },{
    "IupDropButton", IupDropButton_wrapped, "SWIG generated"
  },{
    "IupFlatLabel", IupFlatLabel_wrapped, "SWIG generated"
  },{
    "IupFlatSeparator", IupFlatSeparator_wrapped, "SWIG generated"
  },{
    "IupCanvas", IupCanvas_wrapped, "SWIG generated"
  },{
    "IupDialog", IupDialog_wrapped, "SWIG generated"
  },{
    "IupUser", IupUser_wrapped, "SWIG generated"
  },{
    "IupThread", IupThread_wrapped, "SWIG generated"
  },{
    "IupLabel", IupLabel_wrapped, "SWIG generated"
  },{
    "IupList", IupList_wrapped, "SWIG generated"
  },{
    "IupFlatList", IupFlatList_wrapped, "SWIG generated"
  },{
    "IupText", IupText_wrapped, "SWIG generated"
  },{
    "IupMultiLine", IupMultiLine_wrapped, "SWIG generated"
  },{
    "IupToggle", IupToggle_wrapped, "SWIG generated"
  },{
    "IupTimer", IupTimer_wrapped, "SWIG generated"
  },{
    "IupClipboard", IupClipboard_wrapped, "SWIG generated"
  },{
    "IupProgressBar", IupProgressBar_wrapped, "SWIG generated"
  },{
    "IupVal", IupVal_wrapped, "SWIG generated"
  },{
    "IupFlatVal", IupFlatVal_wrapped, "SWIG generated"
  },{
    "IupTabs", IupTabs_wrapped, "SWIG generated"
  },{
    "IupTabsv", IupTabsv_wrapped, "SWIG generated"
  },{
    "IupFlatTabs", IupFlatTabs_wrapped, "SWIG generated"
  },{
    "IupFlatTabsv", IupFlatTabsv_wrapped, "SWIG generated"
  },{
    "IupTree", IupTree_wrapped, "SWIG generated"
  },{
    "IupLink", IupLink_wrapped, "SWIG generated"
  },{
    "IupAnimatedLabel", IupAnimatedLabel_wrapped, "SWIG generated"
  },{
    "IupDatePick", IupDatePick_wrapped, "SWIG generated"
  },{
    "IupCalendar", IupCalendar_wrapped, "SWIG generated"
  },{
    "IupColorbar", IupColorbar_wrapped, "SWIG generated"
  },{
    "IupGauge", IupGauge_wrapped, "SWIG generated"
  },{
    "IupDial", IupDial_wrapped, "SWIG generated"
  },{
    "IupColorBrowser", IupColorBrowser_wrapped, "SWIG generated"
  },{
    "IupSpin", IupSpin_wrapped, "SWIG generated"
  },{
    "IupSpinbox", IupSpinbox_wrapped, "SWIG generated"
  },{
    "IupStringCompare", IupStringCompare_wrapped, "SWIG generated"
  },{
    "IupSaveImageAsText", IupSaveImageAsText_wrapped, "SWIG generated"
  },{
    "IupImageGetHandle", IupImageGetHandle_wrapped, "SWIG generated"
  },{
    "IupTextConvertLinColToPos", IupTextConvertLinColToPos_wrapped, "SWIG generated"
  },{
    "IupTextConvertPosToLinCol", IupTextConvertPosToLinCol_wrapped, "SWIG generated"
  },{
    "IupConvertXYToPos", IupConvertXYToPos_wrapped, "SWIG generated"
  },{
    "IupStoreGlobal", IupStoreGlobal_wrapped, "SWIG generated"
  },{
    "IupStoreAttribute", IupStoreAttribute_wrapped, "SWIG generated"
  },{
    "IupSetfAttribute", IupSetfAttribute_wrapped, "SWIG generated"
  },{
    "IupStoreAttributeId", IupStoreAttributeId_wrapped, "SWIG generated"
  },{
    "IupSetfAttributeId", IupSetfAttributeId_wrapped, "SWIG generated"
  },{
    "IupStoreAttributeId2", IupStoreAttributeId2_wrapped, "SWIG generated"
  },{
    "IupSetfAttributeId2", IupSetfAttributeId2_wrapped, "SWIG generated"
  },{
    "IupTreeSetUserId", IupTreeSetUserId_wrapped, "SWIG generated"
  },{
    "IupTreeGetUserId", IupTreeGetUserId_wrapped, "SWIG generated"
  },{
    "IupTreeGetId", IupTreeGetId_wrapped, "SWIG generated"
  },{
    "IupTreeSetAttributeHandle", IupTreeSetAttributeHandle_wrapped, "SWIG generated"
  },{
    "IupFileDlg", IupFileDlg_wrapped, "SWIG generated"
  },{
    "IupMessageDlg", IupMessageDlg_wrapped, "SWIG generated"
  },{
    "IupColorDlg", IupColorDlg_wrapped, "SWIG generated"
  },{
    "IupFontDlg", IupFontDlg_wrapped, "SWIG generated"
  },{
    "IupProgressDlg", IupProgressDlg_wrapped, "SWIG generated"
  },{
    "IupGetFile", IupGetFile_wrapped, "SWIG generated"
  },{
    "IupMessage", IupMessage_wrapped, "SWIG generated"
  },{
    "IupMessagef", IupMessagef_wrapped, "SWIG generated"
  },{
    "IupMessageError", IupMessageError_wrapped, "SWIG generated"
  },{
    "IupMessageAlarm", IupMessageAlarm_wrapped, "SWIG generated"
  },{
    "IupAlarm", IupAlarm_wrapped, "SWIG generated"
  },{
    "IupScanf", IupScanf_wrapped, "SWIG generated"
  },{
    "IupListDialog", IupListDialog_wrapped, "SWIG generated"
  },{
    "IupGetText", IupGetText_wrapped, "SWIG generated"
  },{
    "IupGetColor", IupGetColor_wrapped, "SWIG generated"
  },{
    "IupGetParam", IupGetParam_wrapped, "SWIG generated"
  },{
    "IupGetParamv", IupGetParamv_wrapped, "SWIG generated"
  },{
    "IupParam", IupParam_wrapped, "SWIG generated"
  },{
    "IupParamBox", IupParamBox_wrapped, "SWIG generated"
  },{
    "IupParamBoxv", IupParamBoxv_wrapped, "SWIG generated"
  },{
    "IupLayoutDialog", IupLayoutDialog_wrapped, "SWIG generated"
  },{
    "IupElementPropertiesDialog", IupElementPropertiesDialog_wrapped, "SWIG generated"
  },{
    "IupGlobalsDialog", IupGlobalsDialog_wrapped, "SWIG generated"
  },{
    "IupClassInfoDialog", IupClassInfoDialog_wrapped, "SWIG generated"
  },{
    "const-IUP-ERROR", const_IUP_ERROR_wrapped, "Return the constant value."
  },{
    "const-IUP-NOERROR", const_IUP_NOERROR_wrapped, "Return the constant value."
  },{
    "const-IUP-OPENED", const_IUP_OPENED_wrapped, "Return the constant value."
  },{
    "const-IUP-INVALID", const_IUP_INVALID_wrapped, "Return the constant value."
  },{
    "const-IUP-INVALID-ID", const_IUP_INVALID_ID_wrapped, "Return the constant value."
  },{
    "const-IUP-IGNORE", const_IUP_IGNORE_wrapped, "Return the constant value."
  },{
    "const-IUP-DEFAULT", const_IUP_DEFAULT_wrapped, "Return the constant value."
  },{
    "const-IUP-CLOSE", const_IUP_CLOSE_wrapped, "Return the constant value."
  },{
    "const-IUP-CONTINUE", const_IUP_CONTINUE_wrapped, "Return the constant value."
  },{
    "const-IUP-CENTER", const_IUP_CENTER_wrapped, "Return the constant value."
  },{
    "const-IUP-LEFT", const_IUP_LEFT_wrapped, "Return the constant value."
  },{
    "const-IUP-RIGHT", const_IUP_RIGHT_wrapped, "Return the constant value."
  },{
    "const-IUP-MOUSEPOS", const_IUP_MOUSEPOS_wrapped, "Return the constant value."
  },{
    "const-IUP-CURRENT", const_IUP_CURRENT_wrapped, "Return the constant value."
  },{
    "const-IUP-CENTERPARENT", const_IUP_CENTERPARENT_wrapped, "Return the constant value."
  },{
    "const-IUP-TOP", const_IUP_TOP_wrapped, "Return the constant value."
  },{
    "const-IUP-BOTTOM", const_IUP_BOTTOM_wrapped, "Return the constant value."
  },{
    "const-IUP-SHOW", const_IUP_SHOW_wrapped, "Return the constant value."
  },{
    "const-IUP-RESTORE", const_IUP_RESTORE_wrapped, "Return the constant value."
  },{
    "const-IUP-MINIMIZE", const_IUP_MINIMIZE_wrapped, "Return the constant value."
  },{
    "const-IUP-MAXIMIZE", const_IUP_MAXIMIZE_wrapped, "Return the constant value."
  },{
    "const-IUP-HIDE", const_IUP_HIDE_wrapped, "Return the constant value."
  },{
    "const-IUP-SBUP", const_IUP_SBUP_wrapped, "Return the constant value."
  },{
    "const-IUP-SBDN", const_IUP_SBDN_wrapped, "Return the constant value."
  },{
    "const-IUP-SBPGUP", const_IUP_SBPGUP_wrapped, "Return the constant value."
  },{
    "const-IUP-SBPGDN", const_IUP_SBPGDN_wrapped, "Return the constant value."
  },{
    "const-IUP-SBPOSV", const_IUP_SBPOSV_wrapped, "Return the constant value."
  },{
    "const-IUP-SBDRAGV", const_IUP_SBDRAGV_wrapped, "Return the constant value."
  },{
    "const-IUP-SBLEFT", const_IUP_SBLEFT_wrapped, "Return the constant value."
  },{
    "const-IUP-SBRIGHT", const_IUP_SBRIGHT_wrapped, "Return the constant value."
  },{
    "const-IUP-SBPGLEFT", const_IUP_SBPGLEFT_wrapped, "Return the constant value."
  },{
    "const-IUP-SBPGRIGHT", const_IUP_SBPGRIGHT_wrapped, "Return the constant value."
  },{
    "const-IUP-SBPOSH", const_IUP_SBPOSH_wrapped, "Return the constant value."
  },{
    "const-IUP-SBDRAGH", const_IUP_SBDRAGH_wrapped, "Return the constant value."
  },{
    "const-IUP-BUTTON1", const_IUP_BUTTON1_wrapped, "Return the constant value."
  },{
    "const-IUP-BUTTON2", const_IUP_BUTTON2_wrapped, "Return the constant value."
  },{
    "const-IUP-BUTTON3", const_IUP_BUTTON3_wrapped, "Return the constant value."
  },{
    "const-IUP-BUTTON4", const_IUP_BUTTON4_wrapped, "Return the constant value."
  },{
    "const-IUP-BUTTON5", const_IUP_BUTTON5_wrapped, "Return the constant value."
  },{
    "const-IUP-MASK-FLOAT", const_IUP_MASK_FLOAT_wrapped, "Return the constant value."
  },{
    "const-IUP-MASK-UFLOAT", const_IUP_MASK_UFLOAT_wrapped, "Return the constant value."
  },{
    "const-IUP-MASK-EFLOAT", const_IUP_MASK_EFLOAT_wrapped, "Return the constant value."
  },{
    "const-IUP-MASK-UEFLOAT", const_IUP_MASK_UEFLOAT_wrapped, "Return the constant value."
  },{
    "const-IUP-MASK-FLOATCOMMA", const_IUP_MASK_FLOATCOMMA_wrapped, "Return the constant value."
  },{
    "const-IUP-MASK-UFLOATCOMMA", const_IUP_MASK_UFLOATCOMMA_wrapped, "Return the constant value."
  },{
    "const-IUP-MASK-INT", const_IUP_MASK_INT_wrapped, "Return the constant value."
  },{
    "const-IUP-MASK-UINT", const_IUP_MASK_UINT_wrapped, "Return the constant value."
  },{
    "const-IUPMASK-FLOAT", const_IUPMASK_FLOAT_wrapped, "Return the constant value."
  },{
    "const-IUPMASK-UFLOAT", const_IUPMASK_UFLOAT_wrapped, "Return the constant value."
  },{
    "const-IUPMASK-EFLOAT", const_IUPMASK_EFLOAT_wrapped, "Return the constant value."
  },{
    "const-IUPMASK-INT", const_IUPMASK_INT_wrapped, "Return the constant value."
  },{
    "const-IUPMASK-UINT", const_IUPMASK_UINT_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-BUTTON1", const_IUP_GETPARAM_BUTTON1_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-INIT", const_IUP_GETPARAM_INIT_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-BUTTON2", const_IUP_GETPARAM_BUTTON2_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-BUTTON3", const_IUP_GETPARAM_BUTTON3_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-CLOSE", const_IUP_GETPARAM_CLOSE_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-MAP", const_IUP_GETPARAM_MAP_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-OK", const_IUP_GETPARAM_OK_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-CANCEL", const_IUP_GETPARAM_CANCEL_wrapped, "Return the constant value."
  },{
    "const-IUP-GETPARAM-HELP", const_IUP_GETPARAM_HELP_wrapped, "Return the constant value."
  },{
    "const-IUP-PRIMARY", const_IUP_PRIMARY_wrapped, "Return the constant value."
  },{
    "const-IUP-SECONDARY", const_IUP_SECONDARY_wrapped, "Return the constant value."
  },{
    "const-IUP-RECBINARY", const_IUP_RECBINARY_wrapped, "Return the constant value."
  },{
    "const-IUP-RECTEXT", const_IUP_RECTEXT_wrapped, "Return the constant value."
  },{
    "IupDrawBegin", IupDrawBegin_wrapped, "SWIG generated"
  },{
    "IupDrawEnd", IupDrawEnd_wrapped, "SWIG generated"
  },{
    "IupDrawSetClipRect", IupDrawSetClipRect_wrapped, "SWIG generated"
  },{
    "IupDrawGetClipRect", IupDrawGetClipRect_wrapped, "SWIG generated"
  },{
    "IupDrawResetClip", IupDrawResetClip_wrapped, "SWIG generated"
  },{
    "IupDrawParentBackground", IupDrawParentBackground_wrapped, "SWIG generated"
  },{
    "IupDrawLine", IupDrawLine_wrapped, "SWIG generated"
  },{
    "IupDrawRectangle", IupDrawRectangle_wrapped, "SWIG generated"
  },{
    "IupDrawArc", IupDrawArc_wrapped, "SWIG generated"
  },{
    "IupDrawPolygon", IupDrawPolygon_wrapped, "SWIG generated"
  },{
    "IupDrawText", IupDrawText_wrapped, "SWIG generated"
  },{
    "IupDrawImage", IupDrawImage_wrapped, "SWIG generated"
  },{
    "IupDrawSelectRect", IupDrawSelectRect_wrapped, "SWIG generated"
  },{
    "IupDrawFocusRect", IupDrawFocusRect_wrapped, "SWIG generated"
  },{
    "IupDrawGetSize", IupDrawGetSize_wrapped, "SWIG generated"
  },{
    "IupDrawGetTextSize", IupDrawGetTextSize_wrapped, "SWIG generated"
  },{
    "IupDrawGetImageInfo", IupDrawGetImageInfo_wrapped, "SWIG generated"
  },{
    "IupImOpen", IupImOpen_wrapped, "SWIG generated"
  },{
    "IupLoadImage", IupLoadImage_wrapped, "SWIG generated"
  },{
    "IupSaveImage", IupSaveImage_wrapped, "SWIG generated"
  },{
    "IupLoadAnimation", IupLoadAnimation_wrapped, "SWIG generated"
  },{
    "IupLoadAnimationFrames", IupLoadAnimationFrames_wrapped, "SWIG generated"
  },{
    "int-ptr", int_ptr_wrapped, "SWIG generated"
  },{
    "char-ptr", char_ptr_wrapped, "SWIG generated"
  },  {
    NULL, NULL, NULL
  }
};

JANET_MODULE_ENTRY (JanetTable *env) {
  janet_cfuns (env, "iup", cfuns);
}
