PIhandle = ptr Ihandle
Icallback = proc (arg: PIhandle): cint {.cdecl.}
Iparamcb = proc (dialog: PIhandle; paramIndex: cint; userData: pointer): cint {.cdecl.}
IUP_NAME = "IUP - Portable User Interface"
IUP_COPYRIGHT = "Copyright (C) 1994-2009 Tecgraf, PUC-Rio."
IUP_DESCRIPTION = "Portable toolkit for building graphical user interfaces."
constIUP_VERSION = "3.0"
constIUP_VERSION_NUMBER = 300000
constIUP_VERSION_DATE = "2009/07/18"
IUP_ERROR = 1
IUP_NOERROR = 0
IUP_OPENED = -1
IUP_INVALID = -1
IUP_IGNORE = -1
IUP_DEFAULT = -2
IUP_CLOSE = -3
IUP_CONTINUE = -4
IUP_CENTER = 0x0000FFFF
IUP_LEFT = 0x0000FFFE
IUP_RIGHT = 0x0000FFFD
IUP_MOUSEPOS = 0x0000FFFC
IUP_CURRENT = 0x0000FFFB
IUP_CENTERPARENT = 0x0000FFFA
IUP_TOP = 0x0000FFFE
IUP_BOTTOM = 0x0000FFFD
IUP_SHOW = 0
IUP_RESTORE = 1
IUP_MINIMIZE = 2
IUP_MAXIMIZE = 3
IUP_HIDE = 4
IUP_SBUP = 0
IUP_SBDN = 1
IUP_SBPGUP = 2
IUP_SBPGDN = 3
IUP_SBPOSV = 4
IUP_SBDRAGV = 5
IUP_SBLEFT = 6
IUP_SBRIGHT = 7
IUP_SBPGLEFT = 8
IUP_SBPGRIGHT = 9
IUP_SBPOSH = 10
IUP_SBDRAGH = 11
IUP_BUTTON1 = 49
IUP_BUTTON2 = 50
IUP_BUTTON3 = 51
IUP_BUTTON4 = 52
IUP_BUTTON5 = 53
IUP_MASK_FLOAT = "[+/-]?(/d+/.?/d*|/./d+)"
IUP_MASK_UFLOAT = "(/d+/.?/d*|/./d+)"
IUP_MASK_EFLOAT = "[+/-]?(/d+/.?/d*|/./d+)([eE][+/-]?/d+)?"
IUP_MASK_INT = "[+/-]?/d+"
IUP_MASK_UINT = "/d+"
K_SP = 32
K_exclam = 33
K_quotedbl = 34
K_numbersign = 35
K_dollar = 36
K_percent = 37
K_ampersand = 38
K_apostrophe = 39
K_parentleft = 40
K_parentright = 41
K_asterisk = 42
K_plus = 43
K_comma = 44
K_minus = 45
K_period = 46
K_slash = 47
K_0 = 48
K_1 = 49
K_2 = 50
K_3 = 51
K_4 = 52
K_5 = 53
K_6 = 54
K_7 = 55
K_8 = 56
K_9 = 57
K_colon = 58
K_semicolon = 59
K_less = 60
K_equal = 61
K_greater = 62
K_question = 63
K_at = 64
K_upperA = 65
K_upperB = 66
K_upperC = 67
K_upperD = 68
K_upperE = 69
K_upperF = 70
K_upperG = 71
K_upperH = 72
K_upperI = 73
K_upperJ = 74
K_upperK = 75
K_upperL = 76
K_upperM = 77
K_upperN = 78
K_upperO = 79
K_upperP = 80
K_upperQ = 81
K_upperR = 82
K_upperS = 83
K_upperT = 84
K_upperU = 85
K_upperV = 86
K_upperW = 87
K_upperX = 88
K_upperY = 89
K_upperZ = 90
K_bracketleft = 91
K_backslash = 92
K_bracketright = 93
K_circum = 94
K_underscore = 95
K_grave = 96
K_lowera = 97
K_lowerb = 98
K_lowerc = 99
K_lowerd = 100
K_lowere = 101
K_lowerf = 102
K_lowerg = 103
K_lowerh = 104
K_loweri = 105
K_lowerj = 106
K_lowerk = 107
K_lowerl = 108
K_lowerm = 109
K_lowern = 110
K_lowero = 111
K_lowerp = 112
K_lowerq = 113
K_lowerr = 114
K_lowers = 115
K_lowert = 116
K_loweru = 117
K_lowerv = 118
K_lowerw = 119
K_lowerx = 120
K_lowery = 121
K_lowerz = 122
K_braceleft = 123
K_bar = 124
K_braceright = 125
K_tilde = 126
K_BS = 8
K_TAB = 9
K_LF = 10
K_CR = 13
IUP_NUMMAXCODES = 1280
K_HOME = 129
K_UP = 130
K_PGUP = 131
K_LEFT = 132
K_MIDDLE = 133
K_RIGHT = 134
K_END = 135
K_DOWN = 136
K_PGDN = 137
K_INS = 138
K_DEL = 139
K_PAUSE = 140
K_ESC = 141
K_ccedilla = 142
K_F1 = 143
K_F2 = 144
K_F3 = 145
K_F4 = 146
K_F5 = 147
K_F6 = 148
K_F7 = 149
K_F8 = 150
K_F9 = 151
K_F10 = 152
K_F11 = 153
K_F12 = 154
K_Print = 155
K_Menu = 156
K_acute = 157
K_sHOME = 385
K_sUP = 386
K_sPGUP = 387
K_sLEFT = 388
K_sMIDDLE = 389
K_sRIGHT = 390
K_sEND = 391
K_sDOWN = 392
K_sPGDN = 393
K_sINS = 394
K_sDEL = 395
K_sSP = 288
K_sTAB = 265
K_sCR = 269
K_sBS = 264
K_sPAUSE = 396
K_sESC = 397
K_sCcedilla = 398
K_sF1 = 399
K_sF2 = 400
K_sF3 = 401
K_sF4 = 402
K_sF5 = 403
K_sF6 = 404
K_sF7 = 405
K_sF8 = 406
K_sF9 = 407
K_sF10 = 408
K_sF11 = 409
K_sF12 = 410
K_sPrint = 411
K_sMenu = 412
K_cHOME = 641
K_cUP = 642
K_cPGUP = 643
K_cLEFT = 644
K_cMIDDLE = 645
K_cRIGHT = 646
K_cEND = 647
K_cDOWN = 648
K_cPGDN = 649
K_cINS = 650
K_cDEL = 651
K_cSP = 544
K_cTAB = 521
K_cCR = 525
K_cBS = 520
K_cPAUSE = 652
K_cESC = 653
K_cCcedilla = 654
K_cF1 = 655
K_cF2 = 656
K_cF3 = 657
K_cF4 = 658
K_cF5 = 659
K_cF6 = 660
K_cF7 = 661
K_cF8 = 662
K_cF9 = 663
K_cF10 = 664
K_cF11 = 665
K_cF12 = 666
K_cPrint = 667
K_cMenu = 668
K_mHOME = 897
K_mUP = 898
K_mPGUP = 899
K_mLEFT = 900
K_mMIDDLE = 901
K_mRIGHT = 902
K_mEND = 903
K_mDOWN = 904
K_mPGDN = 905
K_mINS = 906
K_mDEL = 907
K_mSP = 800
K_mTAB = 777
K_mCR = 781
K_mBS = 776
K_mPAUSE = 908
K_mESC = 909
K_mCcedilla = 910
K_mF1 = 911
K_mF2 = 912
K_mF3 = 913
K_mF4 = 914
K_mF5 = 915
K_mF6 = 916
K_mF7 = 917
K_mF8 = 918
K_mF9 = 919
K_mF10 = 920
K_mF11 = 921
K_mF12 = 922
K_mPrint = 923
K_mMenu = 924
K_yHOME = 1153
K_yUP = 1154
K_yPGUP = 1155
K_yLEFT = 1156
K_yMIDDLE = 1157
K_yRIGHT = 1158
K_yEND = 1159
K_yDOWN = 1160
K_yPGDN = 1161
K_yINS = 1162
K_yDEL = 1163
K_ySP = 1056
K_yTAB = 1033
K_yCR = 1037
K_yBS = 1032
K_yPAUSE = 1164
K_yESC = 1165
K_yCcedilla = 1166
K_yF1 = 1167
K_yF2 = 1168
K_yF3 = 1169
K_yF4 = 1170
K_yF5 = 1171
K_yF6 = 1172
K_yF7 = 1173
K_yF8 = 1174
K_yF9 = 1175
K_yF10 = 1176
K_yF11 = 1177
K_yF12 = 1178
K_yPrint = 1179
K_yMenu = 1180
K_sPlus = 299
K_sComma = 300
K_sMinus = 301
K_sPeriod = 302
K_sSlash = 303
K_sAsterisk = 298
K_cupperA = 577
K_cupperB = 578
K_cupperC = 579
K_cupperD = 580
K_cupperE = 581
K_cupperF = 582
K_cupperG = 583
K_cupperH = 584
K_cupperI = 585
K_cupperJ = 586
K_cupperK = 587
K_cupperL = 588
K_cupperM = 589
K_cupperN = 590
K_cupperO = 591
K_cupperP = 592
K_cupperQ = 593
K_cupperR = 594
K_cupperS = 595
K_cupperT = 596
K_cupperU = 597
K_cupperV = 598
K_cupperW = 599
K_cupperX = 600
K_cupperY = 601
K_cupperZ = 602
K_c1 = 561
K_c2 = 562
K_c3 = 563
K_c4 = 564
K_c5 = 565
K_c6 = 566
K_c7 = 567
K_c8 = 568
K_c9 = 569
K_c0 = 560
K_cPlus = 555
K_cComma = 556
K_cMinus = 557
K_cPeriod = 558
K_cSlash = 559
K_cSemicolon = 571
K_cEqual = 573
K_cBracketleft = 603
K_cBracketright = 605
K_cBackslash = 604
K_cAsterisk = 554
K_mupperA = 833
K_mupperB = 834
K_mupperC = 835
K_mupperD = 836
K_mupperE = 837
K_mupperF = 838
K_mupperG = 839
K_mupperH = 840
K_mupperI = 841
K_mupperJ = 842
K_mupperK = 843
K_mupperL = 844
K_mupperM = 845
K_mupperN = 846
K_mupperO = 847
K_mupperP = 848
K_mupperQ = 849
K_mupperR = 850
K_mupperS = 851
K_mupperT = 852
K_mupperU = 853
K_mupperV = 854
K_mupperW = 855
K_mupperX = 856
K_mupperY = 857
K_mupperZ = 858
K_m1 = 817
K_m2 = 818
K_m3 = 819
K_m4 = 820
K_m5 = 821
K_m6 = 822
K_m7 = 823
K_m8 = 824
K_m9 = 825
K_m0 = 816
K_mPlus = 811
K_mComma = 812
K_mMinus = 813
K_mPeriod = 814
K_mSlash = 815
K_mSemicolon = 827
K_mEqual = 829
K_mBracketleft = 859
K_mBracketright = 861
K_mBackslash = 860
K_mAsterisk = 810
K_yA = 1089
K_yB = 1090
K_yC = 1091
K_yD = 1092
K_yE = 1093
K_yF = 1094
K_yG = 1095
K_yH = 1096
K_yI = 1097
K_yJ = 1098
K_yK = 1099
K_yL = 1100
K_yM = 1101
K_yN = 1102
K_yO = 1103
K_yP = 1104
K_yQ = 1105
K_yR = 1106
K_yS = 1107
K_yT = 1108
K_yU = 1109
K_yV = 1110
K_yW = 1111
K_yX = 1112
K_yY = 1113
K_yZ = 1114
K_y1 = 1073
K_y2 = 1074
K_y3 = 1075
K_y4 = 1076
K_y5 = 1077
K_y6 = 1078
K_y7 = 1079
K_y8 = 1080
K_y9 = 1081
K_y0 = 1072
K_yPlus = 1067
K_yComma = 1068
K_yMinus = 1069
K_yPeriod = 1070
K_ySlash = 1071
K_ySemicolon = 1083
K_yEqual = 1085
K_yBracketleft = 1115
K_yBracketright = 1117
K_yBackslash = 1116
K_yAsterisk = 1066
IUP_PRIMARY = -1
IUP_SECONDARY = -2
proc fileDlg(): PIhandle {.importc: "IupFileDlg", dynlib: dllname, cdecl.}
proc messageDlg(): PIhandle {.importc: "IupMessageDlg", dynlib: dllname, cdecl.}
proc colorDlg(): PIhandle {.importc: "IupColorDlg", dynlib: dllname, cdecl.}
proc fontDlg(): PIhandle {.importc: "IupFontDlg", dynlib: dllname, cdecl.}
proc getFile(arq: cstring): cint {.importc: "IupGetFile", dynlib: dllname, cdecl.}
proc message(title, msg: cstring) {.importc: "IupMessage", dynlib: dllname, cdecl.}
proc messagef(title, format: cstring) {.importc: "IupMessagef", dynlib: dllname, cdecl, varargs.}
proc alarm(title, msg, b1, b2, b3: cstring): cint {.importc: "IupAlarm", dynlib: dllname, cdecl.}
proc scanf(format: cstring): cint {.importc: "IupScanf", dynlib: dllname, cdecl, varargs.}
proc listDialog(theType: cint; title: cstring; size: cint; list: cstringArray; op, maxCol, maxLin: cint; marks: ptr cint): cint {. importc: "IupListDialog", dynlib: dllname, cdecl.}
proc getText(title, text: cstring): cint {.importc: "IupGetText", dynlib: dllname, cdecl.}
proc getColor(x, y: cint; r, g, b: var byte): cint {.importc: "IupGetColor", dynlib: dllname, cdecl.}
proc getParam(title: cstring; action: Iparamcb; userData: pointer; format: cstring): cint {. importc: "IupGetParam", cdecl, varargs, dynlib: dllname.}
proc getParamv(title: cstring; action: Iparamcb; userData: pointer; format: cstring; paramCount, paramExtra: cint; paramData: pointer): cint {. importc: "IupGetParamv", cdecl, dynlib: dllname.}
proc open(argc: ptr cint; argv: ptr cstringArray): cint {.importc: "IupOpen", cdecl, dynlib: dllname.}
proc close() {.importc: "IupClose", cdecl, dynlib: dllname.}
proc imageLibOpen() {.importc: "IupImageLibOpen", cdecl, dynlib: dllname.}
proc mainLoop(): cint {.importc: "IupMainLoop", cdecl, dynlib: dllname, discardable.}
proc loopStep(): cint {.importc: "IupLoopStep", cdecl, dynlib: dllname, discardable.}
proc mainLoopLevel(): cint {.importc: "IupMainLoopLevel", cdecl, dynlib: dllname, discardable.}
proc flush() {.importc: "IupFlush", cdecl, dynlib: dllname.}
proc exitLoop() {.importc: "IupExitLoop", cdecl, dynlib: dllname.}
proc update(ih: PIhandle) {.importc: "IupUpdate", cdecl, dynlib: dllname.}
proc updateChildren(ih: PIhandle) {.importc: "IupUpdateChildren", cdecl, dynlib: dllname.}
proc redraw(ih: PIhandle; children: cint) {.importc: "IupRedraw", cdecl, dynlib: dllname.}
proc refresh(ih: PIhandle) {.importc: "IupRefresh", cdecl, dynlib: dllname.}
proc mapFont(iupfont: cstring): cstring {.importc: "IupMapFont", cdecl, dynlib: dllname.}
proc unMapFont(driverfont: cstring): cstring {.importc: "IupUnMapFont", cdecl, dynlib: dllname.}
proc help(url: cstring): cint {.importc: "IupHelp", cdecl, dynlib: dllname.}
proc load(filename: cstring): cstring {.importc: "IupLoad", cdecl, dynlib: dllname.}
proc iupVersion(): cstring {.importc: "IupVersion", cdecl, dynlib: dllname.}
proc iupVersionDate(): cstring {.importc: "IupVersionDate", cdecl, dynlib: dllname.}
proc iupVersionNumber(): cint {.importc: "IupVersionNumber", cdecl, dynlib: dllname.}
proc setLanguage(lng: cstring) {.importc: "IupSetLanguage", cdecl, dynlib: dllname.}
proc getLanguage(): cstring {.importc: "IupGetLanguage", cdecl, dynlib: dllname.}
proc destroy(ih: PIhandle) {.importc: "IupDestroy", cdecl, dynlib: dllname.}
proc detach(child: PIhandle) {.importc: "IupDetach", cdecl, dynlib: dllname.}
proc append(ih, child: PIhandle): PIhandle {.importc: "IupAppend", cdecl, dynlib: dllname, discardable.}
proc insert(ih, refChild, child: PIhandle): PIhandle {.importc: "IupInsert", cdecl, dynlib: dllname, discardable.}
proc getChild(ih: PIhandle; pos: cint): PIhandle {.importc: "IupGetChild", cdecl, dynlib: dllname.}
proc getChildPos(ih, child: PIhandle): cint {.importc: "IupGetChildPos", cdecl, dynlib: dllname.}
proc getChildCount(ih: PIhandle): cint {.importc: "IupGetChildCount", cdecl, dynlib: dllname.}
proc getNextChild(ih, child: PIhandle): PIhandle {.importc: "IupGetNextChild", cdecl, dynlib: dllname.}
proc getBrother(ih: PIhandle): PIhandle {.importc: "IupGetBrother", cdecl, dynlib: dllname.}
proc getParent(ih: PIhandle): PIhandle {.importc: "IupGetParent", cdecl, dynlib: dllname.}
proc getDialog(ih: PIhandle): PIhandle {.importc: "IupGetDialog", cdecl, dynlib: dllname.}
proc getDialogChild(ih: PIhandle; name: cstring): PIhandle {. importc: "IupGetDialogChild", cdecl, dynlib: dllname.}
proc reparent(ih, newParent: PIhandle): cint {.importc: "IupReparent", cdecl, dynlib: dllname.}
proc popup(ih: PIhandle; x, y: cint): cint {.importc: "IupPopup", cdecl, dynlib: dllname, discardable.}
proc show(ih: PIhandle): cint {.importc: "IupShow", cdecl, dynlib: dllname, discardable.}
proc showXY(ih: PIhandle; x, y: cint): cint {.importc: "IupShowXY", cdecl, dynlib: dllname, discardable.}
proc hide(ih: PIhandle): cint {.importc: "IupHide", cdecl, dynlib: dllname, discardable.}
proc map(ih: PIhandle): cint {.importc: "IupMap", cdecl, dynlib: dllname, discardable.}
proc unmap(ih: PIhandle) {.importc: "IupUnmap", cdecl, dynlib: dllname, discardable.}
proc setAttribute(ih: PIhandle; name, value: cstring) {.importc: "IupSetAttribute", cdecl, dynlib: dllname.}
proc storeAttribute(ih: PIhandle; name, value: cstring) {. importc: "IupStoreAttribute", cdecl, dynlib: dllname.}
proc setAttributes(ih: PIhandle; str: cstring): PIhandle {. importc: "IupSetAttributes", cdecl, dynlib: dllname.}
proc getAttribute(ih: PIhandle; name: cstring): cstring {.importc: "IupGetAttribute", cdecl, dynlib: dllname.}
proc getAttributes(ih: PIhandle): cstring {.importc: "IupGetAttributes", cdecl, dynlib: dllname.}
proc getInt(ih: PIhandle; name: cstring): cint {.importc: "IupGetInt", cdecl, dynlib: dllname.}
proc getInt2(ih: PIhandle; name: cstring): cint {.importc: "IupGetInt2", cdecl, dynlib: dllname.}
proc getIntInt(ih: PIhandle; name: cstring; i1, i2: var cint): cint {. importc: "IupGetIntInt", cdecl, dynlib: dllname.}
proc getFloat(ih: PIhandle; name: cstring): cfloat {.importc: "IupGetFloat", cdecl, dynlib: dllname.}
proc setfAttribute(ih: PIhandle; name, format: cstring) {.importc: "IupSetfAttribute", cdecl, dynlib: dllname, varargs.}
proc getAllAttributes(ih: PIhandle; names: cstringArray; n: cint): cint {. importc: "IupGetAllAttributes", cdecl, dynlib: dllname.}
proc setAtt(handleName: cstring; ih: PIhandle; name: cstring): PIhandle {. importc: "IupSetAtt", cdecl, dynlib: dllname, varargs, discardable.}
proc setGlobal(name, value: cstring) {.importc: "IupSetGlobal", cdecl, dynlib: dllname.}
proc storeGlobal(name, value: cstring) {.importc: "IupStoreGlobal", cdecl, dynlib: dllname.}
proc getGlobal(name: cstring): cstring {.importc: "IupGetGlobal", cdecl, dynlib: dllname.}
proc setFocus(ih: PIhandle): PIhandle {.importc: "IupSetFocus", cdecl, dynlib: dllname.}
proc getFocus(): PIhandle {.importc: "IupGetFocus", cdecl, dynlib: dllname.}
proc previousField(ih: PIhandle): PIhandle {.importc: "IupPreviousField", cdecl, dynlib: dllname.}
proc nextField(ih: PIhandle): PIhandle {.importc: "IupNextField", cdecl, dynlib: dllname.}
proc getCallback(ih: PIhandle; name: cstring): Icallback {.importc: "IupGetCallback", cdecl, dynlib: dllname.}
proc setCallback(ih: PIhandle; name: cstring; fn: Icallback): Icallback {. importc: "IupSetCallback", cdecl, dynlib: dllname, discardable.}
proc setCallbacks(ih: PIhandle; name: cstring; fn: Icallback): PIhandle {. importc: "IupSetCallbacks", cdecl, dynlib: dllname, varargs, discardable.}
proc getFunction(name: cstring): Icallback {.importc: "IupGetFunction", cdecl, dynlib: dllname.}
proc setFunction(name: cstring; fn: Icallback): Icallback {.importc: "IupSetFunction", cdecl, dynlib: dllname, discardable.}
proc getActionName(): cstring {.importc: "IupGetActionName", cdecl, dynlib: dllname.}
proc getHandle(name: cstring): PIhandle {.importc: "IupGetHandle", cdecl, dynlib: dllname.}
proc setHandle(name: cstring; ih: PIhandle): PIhandle {.importc: "IupSetHandle", cdecl, dynlib: dllname.}
proc getAllNames(names: cstringArray; n: cint): cint {.importc: "IupGetAllNames", cdecl, dynlib: dllname.}
proc getAllDialogs(names: cstringArray; n: cint): cint {.importc: "IupGetAllDialogs", cdecl, dynlib: dllname.}
proc getName(ih: PIhandle): cstring {.importc: "IupGetName", cdecl, dynlib: dllname.}
proc setAttributeHandle(ih: PIhandle; name: cstring; ihNamed: PIhandle) {. importc: "IupSetAttributeHandle", cdecl, dynlib: dllname.}
proc getAttributeHandle(ih: PIhandle; name: cstring): PIhandle {. importc: "IupGetAttributeHandle", cdecl, dynlib: dllname.}
proc getClassName(ih: PIhandle): cstring {.importc: "IupGetClassName", cdecl, dynlib: dllname.}
proc getClassType(ih: PIhandle): cstring {.importc: "IupGetClassType", cdecl, dynlib: dllname.}
proc getClassAttributes(classname: cstring; names: cstringArray; n: cint): cint {. importc: "IupGetClassAttributes", cdecl, dynlib: dllname.}
proc saveClassAttributes(ih: PIhandle) {.importc: "IupSaveClassAttributes", cdecl, dynlib: dllname.}
proc setClassDefaultAttribute(classname, name, value: cstring) {. importc: "IupSetClassDefaultAttribute", cdecl, dynlib: dllname.}
proc create(classname: cstring): PIhandle {.importc: "IupCreate", cdecl, dynlib: dllname.}
proc createv(classname: cstring; params: pointer): PIhandle {.importc: "IupCreatev", cdecl, dynlib: dllname.}
proc createp(classname: cstring; first: pointer): PIhandle {.importc: "IupCreatep", cdecl, dynlib: dllname, varargs.}
proc fill(): PIhandle {.importc: "IupFill", cdecl, dynlib: dllname.}
proc radio(child: PIhandle): PIhandle {.importc: "IupRadio", cdecl, dynlib: dllname.}
proc vbox(child: PIhandle): PIhandle {.importc: "IupVbox", cdecl, dynlib: dllname, varargs.}
proc vboxv(children: ptr PIhandle): PIhandle {.importc: "IupVboxv", cdecl, dynlib: dllname.}
proc zbox(child: PIhandle): PIhandle {.importc: "IupZbox", cdecl, dynlib: dllname, varargs.}
proc zboxv(children: ptr PIhandle): PIhandle {.importc: "IupZboxv", cdecl, dynlib: dllname.}
proc hbox(child: PIhandle): PIhandle {.importc: "IupHbox", cdecl, dynlib: dllname, varargs.}
proc hboxv(children: ptr PIhandle): PIhandle {.importc: "IupHboxv", cdecl, dynlib: dllname.}
proc normalizer(ihFirst: PIhandle): PIhandle {.importc: "IupNormalizer", cdecl, dynlib: dllname, varargs.}
proc normalizerv(ihList: ptr PIhandle): PIhandle {.importc: "IupNormalizerv", cdecl, dynlib: dllname.}
proc cbox(child: PIhandle): PIhandle {.importc: "IupCbox", cdecl, dynlib: dllname, varargs.}
proc cboxv(children: ptr PIhandle): PIhandle {.importc: "IupCboxv", cdecl, dynlib: dllname.}
proc sbox(child: PIhandle): PIhandle {.importc: "IupSbox", cdecl, dynlib: dllname.}
proc frame(child: PIhandle): PIhandle {.importc: "IupFrame", cdecl, dynlib: dllname.}
proc image(width, height: cint; pixmap: pointer): PIhandle {.importc: "IupImage", cdecl, dynlib: dllname.}
proc imageRGB(width, height: cint; pixmap: pointer): PIhandle {.importc: "IupImageRGB", cdecl, dynlib: dllname.}
proc imageRGBA(width, height: cint; pixmap: pointer): PIhandle {. importc: "IupImageRGBA", cdecl, dynlib: dllname.}
proc item(title, action: cstring): PIhandle {.importc: "IupItem", cdecl, dynlib: dllname.}
proc separator(): PIhandle {.importc: "IupSeparator", cdecl, dynlib: dllname.}
proc link(url, title: cstring): PIhandle {.importc: "IupLink", cdecl, dynlib: dllname.}
proc canvas(action: cstring): PIhandle {.importc: "IupCanvas", cdecl, dynlib: dllname.}
proc dialog(child: PIhandle): PIhandle {.importc: "IupDialog", cdecl, dynlib: dllname.}
proc user(): PIhandle {.importc: "IupUser", cdecl, dynlib: dllname.}
proc label(title: cstring): PIhandle {.importc: "IupLabel", cdecl, dynlib: dllname.}
proc list(action: cstring): PIhandle {.importc: "IupList", cdecl, dynlib: dllname.}
proc text(action: cstring): PIhandle {.importc: "IupText", cdecl, dynlib: dllname.}
proc multiLine(action: cstring): PIhandle {.importc: "IupMultiLine", cdecl, dynlib: dllname.}
proc toggle(title, action: cstring): PIhandle {.importc: "IupToggle", cdecl, dynlib: dllname.}
proc timer(): PIhandle {.importc: "IupTimer", cdecl, dynlib: dllname.}
proc progressBar(): PIhandle {.importc: "IupProgressBar", cdecl, dynlib: dllname.}
proc val(theType: cstring): PIhandle {.importc: "IupVal", cdecl, dynlib: dllname.}
proc tabs(child: PIhandle): PIhandle {.importc: "IupTabs", cdecl, dynlib: dllname, varargs.}
proc tabsv(children: ptr PIhandle): PIhandle {.importc: "IupTabsv", cdecl, dynlib: dllname.}
proc tree(): PIhandle {.importc: "IupTree", cdecl, dynlib: dllname.}
proc spin(): PIhandle {.importc: "IupSpin", cdecl, dynlib: dllname.}
proc spinbox(child: PIhandle): PIhandle {.importc: "IupSpinbox", cdecl, dynlib: dllname.}
proc textConvertLinColToPos(ih: PIhandle; lin, col: cint; pos: var cint) {. importc: "IupTextConvertLinColToPos", cdecl, dynlib: dllname.}
proc textConvertPosToLinCol(ih: PIhandle; pos: cint; lin, col: var cint) {. importc: "IupTextConvertPosToLinCol", cdecl, dynlib: dllname.}
proc convertXYToPos(ih: PIhandle; x, y: cint): cint {.importc: "IupConvertXYToPos", cdecl, dynlib: dllname.}
proc treeSetUserId(ih: PIhandle; id: cint; userid: pointer): cint {. importc: "IupTreeSetUserId", cdecl, dynlib: dllname, discardable.}
proc treeGetUserId(ih: PIhandle; id: cint): pointer {.importc: "IupTreeGetUserId", cdecl, dynlib: dllname.}
proc treeGetId(ih: PIhandle; userid: pointer): cint {.importc: "IupTreeGetId", cdecl, dynlib: dllname.}
proc treeSetAttribute(ih: PIhandle; name: cstring; id: cint; value: cstring) {. importc: "IupTreeSetAttribute", cdecl, dynlib: dllname.}
proc treeStoreAttribute(ih: PIhandle; name: cstring; id: cint; value: cstring) {. importc: "IupTreeStoreAttribute", cdecl, dynlib: dllname.}
proc treeGetAttribute(ih: PIhandle; name: cstring; id: cint): cstring {. importc: "IupTreeGetAttribute", cdecl, dynlib: dllname.}
proc treeGetInt(ih: PIhandle; name: cstring; id: cint): cint {.importc: "IupTreeGetInt", cdecl, dynlib: dllname.}
proc treeGetFloat(ih: PIhandle; name: cstring; id: cint): cfloat {. importc: "IupTreeGetFloat", cdecl, dynlib: dllname.}
proc treeSetfAttribute(ih: PIhandle; name: cstring; id: cint; format: cstring) {. importc: "IupTreeSetfAttribute", cdecl, dynlib: dllname, varargs.}
proc isShift(s: cstring): bool {.raises: [], tags: [].}
proc isControl(s: cstring): bool {.raises: [], tags: [].}
proc isButton1(s: cstring): bool {.raises: [], tags: [].}
proc isButton2(s: cstring): bool {.raises: [], tags: [].}
proc isDouble(s: cstring): bool {.raises: [], tags: [].}
proc isAlt(s: cstring): bool {.raises: [], tags: [].}
proc isSys(s: cstring): bool {.raises: [], tags: [].}
proc isButton4(s: cstring): bool {.raises: [], tags: [].}
proc isButton5(s: cstring): bool {.raises: [], tags: [].}
proc isPrint(c: cint): bool {.raises: [], tags: [].}
proc isXkey(c: cint): bool {.raises: [], tags: [].}
proc isShiftXkey(c: cint): bool {.raises: [], tags: [].}
proc isCtrlXkey(c: cint): bool {.raises: [], tags: [].}
proc isAltXkey(c: cint): bool {.raises: [], tags: [].}
proc isSysXkey(c: cint): bool {.raises: [], tags: [].}
proc iUPxCODE(c: cint): cint {.raises: [], tags: [].}
proc iUPsxCODE(c: cint): cint {.raises: [], tags: [].}
proc iUPcxCODE(c: cint): cint {.raises: [], tags: [].}
proc iUPmxCODE(c: cint): cint {.raises: [], tags: [].}
proc iUPyxCODE(c: cint): cint {.raises: [], tags: [].}
proc controlsOpen(): cint {.cdecl, importc: "IupControlsOpen", dynlib: dllname.}
proc controlsClose() {.cdecl, importc: "IupControlsClose", dynlib: dllname.}
proc oldValOpen() {.cdecl, importc: "IupOldValOpen", dynlib: dllname.}
proc oldTabsOpen() {.cdecl, importc: "IupOldTabsOpen", dynlib: dllname.}
proc colorbar(): PIhandle {.cdecl, importc: "IupColorbar", dynlib: dllname.}
proc cells(): PIhandle {.cdecl, importc: "IupCells", dynlib: dllname.}
proc colorBrowser(): PIhandle {.cdecl, importc: "IupColorBrowser", dynlib: dllname.}
proc gauge(): PIhandle {.cdecl, importc: "IupGauge", dynlib: dllname.}
proc dial(theType: cstring): PIhandle {.cdecl, importc: "IupDial", dynlib: dllname.}
proc matrix(action: cstring): PIhandle {.cdecl, importc: "IupMatrix", dynlib: dllname.}
proc matSetAttribute(ih: PIhandle; name: cstring; lin, col: cint; value: cstring) {.cdecl, importc: "IupMatSetAttribute", dynlib: dllname.}
proc matStoreAttribute(ih: PIhandle; name: cstring; lin, col: cint; value: cstring) {. cdecl, importc: "IupMatStoreAttribute", dynlib: dllname.}
proc matGetAttribute(ih: PIhandle; name: cstring; lin, col: cint): cstring {.cdecl, importc: "IupMatGetAttribute", dynlib: dllname.}
proc matGetInt(ih: PIhandle; name: cstring; lin, col: cint): cint {.cdecl, importc: "IupMatGetInt", dynlib: dllname.}
proc matGetFloat(ih: PIhandle; name: cstring; lin, col: cint): cfloat {.cdecl, importc: "IupMatGetFloat", dynlib: dllname.}
proc matSetfAttribute(ih: PIhandle; name: cstring; lin, col: cint; format: cstring) {. cdecl, importc: "IupMatSetfAttribute", dynlib: dllname, varargs.}
proc pPlotOpen() {.cdecl, importc: "IupPPlotOpen", dynlib: dllname.}
proc pPlot(): PIhandle {.cdecl, importc: "IupPPlot", dynlib: dllname.}
proc pPlotBegin(ih: PIhandle; strXdata: cint) {.cdecl, importc: "IupPPlotBegin", dynlib: dllname.}
proc pPlotAdd(ih: PIhandle; x, y: cfloat) {.cdecl, importc: "IupPPlotAdd", dynlib: dllname.}
proc pPlotAddStr(ih: PIhandle; x: cstring; y: cfloat) {.cdecl, importc: "IupPPlotAddStr", dynlib: dllname.}
proc pPlotEnd(ih: PIhandle): cint {.cdecl, importc: "IupPPlotEnd", dynlib: dllname.}
proc pPlotInsertStr(ih: PIhandle; index, sampleIndex: cint; x: cstring; y: cfloat) {. cdecl, importc: "IupPPlotInsertStr", dynlib: dllname.}
proc pPlotInsert(ih: PIhandle; index, sampleIndex: cint; x, y: cfloat) {.cdecl, importc: "IupPPlotInsert", dynlib: dllname.}
proc pPlotTransform(ih: PIhandle; x, y: cfloat; ix, iy: var cint) {.cdecl, importc: "IupPPlotTransform", dynlib: dllname.}
proc pPlotPaintTo(ih: PIhandle; cnv: pointer) {.cdecl, importc: "IupPPlotPaintTo", dynlib: dllname.}
© 2006–2017 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/iup.html