vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.76k stars 2.16k forks source link

Help question iup #3875

Closed r-k-o closed 4 years ago

r-k-o commented 4 years ago

hi,

i am trying to convert the iup headers to v. when compiling, i can get an executable, that does not do any thing. it runs c in and modula. can anyone tell me what i do wrong?

Summary (Click to expand) ```v //module IUP /* #flag -lfreetype6 #flag -lftgl #flag -liup #flag -liupcd #flag -liupcontrols #flag -liupfiledlg #flag -liupgl #flag -liupglcontrols #flag -liupim #flag -liupimglib #flag -liupole #flag -liupstub #flag -liuptuio #flag -liupweb #flag -liup_mglplot #flag -liup_plot #flag -liup_scintilla #flag -lzlib1 #include "F:\v\iup\include\iup.h" */ #flag -I @VROOT/thirdparty/iup #include "F:\v\iup\include\iup.h" #include "F:\v\iup\include\iupkey.h" #include "F:\v\iup\include\iupdraw.h" #include "F:\v\iup\include\iupcontrols.h" #include "F:\v\iup\include\iupgl.h" #include "F:\v\iup\include\iupglcontrols.h" #include "F:\v\iup\include\iupim.h" #include "F:\v\iup\include\iup_config.h" #include "F:\v\iup\include\iup_mglplot.h" #include "F:\v\iup\include\iup_plot.h" #include "F:\v\iup\include\iupole.h" #include "F:\v\iup\include\iupweb.h" #include "F:\v\iup\include\iup_scintilla.h" #include "F:\v\iup\include\iuptuio.h" #flag -l@VROOT/thirdparty/iup/lib/freetype6 #flag -l@VROOT/thirdparty/iup/lib/ftgl #flag -l@VROOT/thirdparty/iup/lib/iup #flag -l@VROOT/thirdparty/iup/lib/iupcd #flag -l@VROOT/thirdparty/iup/lib/iupcontrols #flag -l@VROOT/thirdparty/iup/lib/iupfiledlg #flag -l@VROOT/thirdparty/iup/lib/iupgl #flag -l@VROOT/thirdparty/iup/lib/iupglcontrols #flag -l@VROOT/thirdparty/iup/lib/iupim #flag -l@VROOT/thirdparty/iup/lib/iupimglib #flag -l@VROOT/thirdparty/iup/lib/iupole #flag -l@VROOT/thirdparty/iup/lib/iupstub #flag -l@VROOT/thirdparty/iup/lib/iuptuio #flag -l@VROOT/thirdparty/iup/lib/iupweb #flag -l@VROOT/thirdparty/iup/lib/iup_mglplot #flag -l@VROOT/thirdparty/iup/lib/iup_plot #flag -l@VROOT/thirdparty/iup/lib/iup_scintilla #flag -l@VROOT/thirdparty/iup/lib/zlib1 /* cdCanvas = RECORD END; cdCanvasPtr = POINTER TO cdCanvas; cdState = cdCanvas; cdStatePtr = POINTER TO cdState; cdContext = RECORD END; cdContextPtr = POINTER TO cdContext; cdImage = RECORD END; cdImagePtr = POINTER TO cdImage; CHARPTRPTR = POINTER TO ARRAY OF ARRAY OF ACHAR; CHARPTR = POINTER TO ARRAY OF ACHAR; voidptr = POINTER TO ARRAY OF byte; UBYTEPTR = voidptr; VOIDPTRPTR = POINTER TO ARRAY OF ARRAY OF byte; LONGREALPTR = POINTER TO ARRAY OF f64; DOUBLEPTR = POINTER TO ARRAY OF f64; INTEGERPTR = POINTER TO ARRAY OF int; CARDINALPTR = POINTER TO ARRAY OF CARDINAL32; */ struct C.Ihandle{} struct C.CdCanvas{} struct C.CdContext{} struct C.CdImage{} pub type IhandlePtr voidptr pub type cdCanvasPtr voidptr pub type cdContextPtr voidptr pub type cdStatePtr voidptr pub type cdImagePtr voidptr /* type cdState &C.CdCanvas */ /******************************************************/ /* Modifiers use last 4 bits. Since IUP 3.9 */ /* These modifiers definitions are specific to IUP */ /******************************************************/ [inline] pub fn iup_isshiftxkey(_c int) int { return _c & 0x10000000 } [inline] pub fn iup_isctrlxkey(_c int) int { return (_c & 0x20000000) } [inline] pub fn iup_isaltxkey(_c int) int { return (_c & 0x40000000) } [inline] pub fn iup_issysxkey(_c i64) int { return (_c & 0x80000000) } [inline] pub fn iup_xkeybase(_c int) int { return _c & 0x0FFFFFFF } [inline] pub fn iup_xkeyshift(_c int) int { return _c | 0x10000000 } /* Shift */ [inline] pub fn iup_xkeyctrl(_c int) int { return _c | 0x20000000 } /* Ctrl */ [inline] pub fn iup_xkeyalt(_c int) int { return _c | 0x40000000 } /* Alt */ [inline] pub fn iup_xkeysys(_c i64) int { return _c | 0x80000000 } /* Sys (Win or Apple) */ /* Printable ASCii keys */ [inline] pub fn iup_isprint(_c byte) bool { return (_c > 31) && (_c < 127) } /* IUP Extended Key Codes, range start at 128 */ [inline] pub fn iup_isxkey(_c byte) bool { return (_c >= 128) } /*define iup_isshift(_s) (_s[0]=='S') */ [inline] pub fn iup_isshift(_s string) bool { return _s[0..1] == 'S' } /*define iup_iscontrol(_s) (_s[1]=='C') */ [inline] pub fn iup_iscontrol(_s string) bool { return _s[1..2] == 'C' } /*define iup_isbutton1(_s) (_s[2]=='1') */ [inline] pub fn iup_isbutton1(_s string) bool { return _s[2..3] == '1' } /*ool iup_isbutton1(char* _s) nothrow { */ /* return _s[2]=='1'; */ /*} */ /*define iup_isbutton2(_s) (_s[3]=='2') */ [inline] pub fn iup_isbutton2(_s string) bool { return _s[3..4] == '2' } /*bool iup_isbutton2(char* _s) nothrow { */ /* return _s[3]=='2'; */ /*} */ /*define iup_isbutton3(_s) (_s[4]=='3') */ [inline] pub fn iup_isbutton3(_s string) bool { return _s[4..5] == '3' } /*ool iup_isbutton3(char* _s) nothrow { */ /* return _s[4]=='3'; */ /*} */ /*define iup_isdouble(_s) (_s[5]=='D') */ [inline] pub fn iup_isdouble(_s string) bool { return _s[5..6] == 'D' } /*define iup_isalt(_s) (_s[6]=='A') */ [inline] pub fn iup_isalt(_s string) bool { return _s[6..7] == 'A' } /*define iup_issys(_s) (_s[7]=='Y') */ [inline] pub fn iup_issys(_s string) bool { return _s[7..8] == 'Y' } /*define iup_isbutton4(_s) (_s[8]=='4') */ [inline] pub fn iup_isbutton4(_s string) bool { return _s[8..9] == '4' } /*define iup_isbutton5(_s) (_s[9]=='5') */ [inline] pub fn iup_isbutton5(_s string) bool { return _s[9..10] == '5' } /* client images using bitmap structure */ struct CdBitmap { /* typedef struct _cdBitmap cdBitmap; */ w int h int typ int data voidptr } type cdbitmapPtr &CdBitmap struct CdCanvasmf { canvas cdCanvasPtr filename charptr data voidptr } type cdCanvasMFPtr &CdCanvasmf // V declaration of the type pub type Icallback fn(IhandlePtr) int pub type Iparamcb fn(IhandlePtr, int, voidptr) int pub type IFidle fn() int /* idle */ pub type IFi fn(int) /* globalentermodal_cb, globalleavemodal_cb, */ pub type IFii fn(int, int) /* globalkeypress_cb */ pub type IFiis fn(int, int, byteptr) /* globalmotion_cb */ pub type IFiiiis fn(int, int, int, int, byteptr) /* globalbutton_cb */ pub type IFfiis fn(f32,int,int,byteptr) /* globalwheel_cb */ pub type IFn fn(IhandlePtr) int /* default definition, same as Icallback */ pub type IFni fn(IhandlePtr, int) int /* k_any, show_cb, toggle_action, spin_cb, branchopen_cb, branchclose_cb, executeleaf_cb, showrename_cb, rightclick_cb, extended_cb, height_cb, width_cb */ pub type IFnii fn(IhandlePtr, int, int) int /* resize_cb, caret_cb, matrix_mousemove_cb, enteritem_cb, leaveitem_cb, scrolltop_cb, dropcheck_cb, selection_cb, select_cb, switch_cb, scrolling_cb, vspan_cb, hspan_cb */ pub type IFniii fn(IhandlePtr, int, int, int) int /* trayclick_cb, edition_cb */ pub type IFniiii fn(IhandlePtr, int, int, int, int) int /* dragdrop_cb */ pub type IFniiiiiiC fn(IhandlePtr, int, int, int, int, int, int, cdCanvasPtr) int /* draw_cb */ pub type IFniiiiii fn(IhandlePtr, int, int, int, int, int, int) int /* OLD draw_cb */ pub type IFnff fn(IhandlePtr, f32, f32) int /* canvas_action, plotmotion_cb (pplot) */ pub type IFniff fn(IhandlePtr, int,f32,f32) int /* scroll_cb */ pub type IFnfiis fn(IhandlePtr, f32,int,int,byteptr) int /* wheel_cb */ pub type IFnsVi fn(IhandlePtr, byteptr, voidptr, int) int /* dragdata_cb */ pub type IFnsViii fn(IhandlePtr, byteptr, voidptr, int, int, int) int /* dropdata_cb */ pub type IFnsiii fn(IhandlePtr, byteptr, int, int, int) int /* dropfiles_cb */ pub type IFnnii fn(IhandlePtr, IhandlePtr, int, int) int /* drop_cb */ pub type IFnn fn(IhandlePtr, IhandlePtr) int /* savemarkers_cb, restoremarkers_cb */ pub type IFnnn fn(IhandlePtr, IhandlePtr, IhandlePtr) int /* tabchange_cb */ pub type IFnss fn(IhandlePtr, byteptr, byteptr) int /* file_cb */ pub type IFns fn(IhandlePtr, byteptr) int /* multiselect_cb */ pub type IFnsi fn(IhandlePtr, byteptr, int) int /* copydata_cb */ pub type IFnis fn(IhandlePtr, int, byteptr) int /* text_action, multiline_action, edit_cb, rename_cb */ pub type IFnsii fn(IhandlePtr, byteptr, int, int) int /* list_action */ pub type IFniis fn(IhandlePtr, int, int, byteptr) int /* motion_cb, click_cb, value_edit_cb */ pub type IFniiis fn(IhandlePtr, int, int, int, byteptr) int /* touch_cb, dblclick_cb */ pub type IFniiiis fn(IhandlePtr, int, int, int, int, byteptr) int /* button_cb, matrix_action, mousemotion_cb */ pub type IFniiiiiis fn(IhandlePtr, int, int, int, int, int, int, byteptr) int /* mouseclick_cb */ pub type IFnIi fn(IhandlePtr, []int, int) int /* multiselection_cb, multiunselection_cb */ pub type IFnd fn(IhandlePtr, f64) int /* mousemove_cb, button_press_cb, button_release_cb */ pub type IFniiIII fn(IhandlePtr, int, int, []int, []int, []int) int /* fgcolor_cb, bgcolor_cb */ pub type IFniinsii fn(IhandlePtr, int, int, IhandlePtr, byteptr, int, int) int /* dropselect_cb */ pub type IFnccc fn(IhandlePtr, byte, byte, byte) int /* drag_cb, change_cb */ pub type IFniIIII fn(IhandlePtr, int, []int, []int, []int, []int) int /* multitouch_cb */ pub type IFnC fn(IhandlePtr, cdCanvasPtr) int /* postdraw_cb, predraw_cb */ pub type IFniiff fn(IhandlePtr, int, int, f32, f32) int /* delete_cb (pplot) */ pub type IFniiffi fn(IhandlePtr, int, int, f32, f32, int) int /* select_cb (pplot) */ pub type IFniidd fn(IhandlePtr, int, int, f64, f64) int /* delete_cb */ pub type IFniiddi fn(IhandlePtr, int, int, f64, f64, int) int /* select_cb */ pub type IFniiddiddi fn(IhandlePtr, int, int, f64, f64, int, f64, f64, int) int /* clicksegment_cb */ pub type IFniiffFF fn(IhandlePtr, int, int, f32, f32, []f32, []f32) int /* edit_cb */ pub type IFniiffs fn(IhandlePtr, int, int, f32, f32, byteptr) int /* plotbutton_cb (pplot) */ pub type IFniidds fn(IhandlePtr, int, int, f64, f64, byteptr) int /* plotbutton_cb */ pub type IFndds fn(IhandlePtr, f64, f64, byteptr) int /* plotmotion_cb */ pub type sIFnii fn(IhandlePtr, int, int) charptr /* value_cb, font_cb */ pub type sIFni fn(IhandlePtr, int) charptr /* cell_cb */ pub type sIFniis fn(IhandlePtr, int, int, byteptr) charptr /* translatevalue_cb */ pub type dIFnii fn(IhandlePtr, int, int) f64 /* numericgetvalue_cb */ pub type IFniid fn(IhandlePtr, int, int, f64) int /* numericsetvalue_cb */ /* from 32 to 126, all character sets are equal, the key code is the same as the ASCii character code. */ pub const ( 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_A = 65 K_B = 66 K_C = 67 K_D = 68 K_E = 69 K_F = 70 K_G = 71 K_H = 72 K_I = 73 K_J = 74 K_K = 75 K_L = 76 K_M = 77 K_N = 78 K_O = 79 K_P = 80 K_Q = 81 K_R = 82 K_S = 83 K_T = 84 K_U = 85 K_V = 86 K_W = 87 K_X = 88 K_Y = 89 K_Z = 90 K_bracketleft = 91 K_backslash = 92 K_bracketright= 93 K_circum = 94 K_underscore = 95 K_grave = 96 K_a = 97 K_b = 98 K_c = 99 K_d = 100 K_e = 101 K_f = 102 K_g = 103 K_h = 104 K_i = 105 K_j = 106 K_k = 107 K_l = 108 K_m = 109 K_n = 110 K_o = 111 K_p = 112 K_q = 113 K_r = 114 K_s = 115 K_t = 116 K_u = 117 K_v = 118 K_w = 119 K_x = 120 K_y = 121 K_z = 122 K_braceleft = 123 K_bar = 124 K_braceright = 125 K_tilde = 126 /* also define the escape sequences that have keys associated */ K_BS = 8 /* 8 */ K_TAB = 9 /* 9 */ K_LF = 10 /* 10 (0x0A) not a real key, is a combination of CR with a modifier, just to document */ K_CR = 13 /* 13 (0x0D) */ /* backward compatible definitions */ K_quoteleft = K_grave K_quoteright = K_apostrophe /* These use the same definition as X11 and GDK. This also means that any X11 or GDK definition can also be used. */ K_PAUSE = 0xFF13 K_ESC = 0xFF1B K_HOME = 0xFF50 K_LEFT = 0xFF51 K_UP = 0xFF52 K_RIGHT = 0xFF53 K_DOWN = 0xFF54 K_PGUP = 0xFF55 K_PGDN = 0xFF56 K_END = 0xFF57 K_MIDDLE = 0xFF0B K_Print = 0xFF61 K_INS = 0xFF63 K_Menu = 0xFF67 K_DEL = 0xFFFF K_F1 = 0xFFBE K_F2 = 0xFFBF K_F3 = 0xFFC0 K_F4 = 0xFFC1 K_F5 = 0xFFC2 K_F6 = 0xFFC3 K_F7 = 0xFFC4 K_F8 = 0xFFC5 K_F9 = 0xFFC6 K_F10 = 0xFFC7 K_F11 = 0xFFC8 K_F12 = 0xFFC9 /* no Shift/Ctrl/Alt */ K_LSHIFT = 0xFFE1 K_RSHIFT = 0xFFE2 K_LCTRL = 0xFFE3 K_RCTRL = 0xFFE4 K_LALT = 0xFFE9 K_RALT = 0xFFEA K_NUM = 0xFF7F K_SCROLL = 0xFF14 K_CAPS = 0xFFE5 /* Also, these are the same as the Latin-1 definition */ K_ccedilla = 0x0E7 K_Ccedilla = 0x0C7 K_acute = 0x0B4 /* no Shift/Ctrl/Alt */ K_diaeresis = 0x0A8 /* These definitions are here for backward compatibility and to simplify some key combination usage. But since IUP 3.9, modifiers can be combined with any key and they can be mixed together. */ K_sHOME = K_HOME | 0x10000000 K_sUP = K_UP | 0x10000000 K_sPGUP = K_PGUP | 0x10000000 K_sLEFT = K_LEFT | 0x10000000 K_sMIDDLE = K_MIDDLE | 0x10000000 K_sRIGHT = K_RIGHT | 0x10000000 K_sEND = K_END | 0x10000000 K_sDOWN = K_DOWN | 0x10000000 K_sPGDN = K_PGDN | 0x10000000 K_sINS = K_INS | 0x10000000 K_sDEL = K_DEL | 0x10000000 K_sSP = K_SP | 0x10000000 K_sTAB = K_TAB | 0x10000000 K_sCR = K_CR | 0x10000000 K_sBS = K_BS | 0x10000000 K_sPAUSE = K_PAUSE | 0x10000000 K_sESC = K_ESC | 0x10000000 K_sF1 = K_F1 | 0x10000000 K_sF2 = K_F2 | 0x10000000 K_sF3 = K_F3 | 0x10000000 K_sF4 = K_F4 | 0x10000000 K_sF5 = K_F5 | 0x10000000 K_sF6 = K_F6 | 0x10000000 K_sF7 = K_F7 | 0x10000000 K_sF8 = K_F8 | 0x10000000 K_sF9 = K_F9 | 0x10000000 K_sF10 = K_F10 | 0x10000000 K_sF11 = K_F11 | 0x10000000 K_sF12 = K_F12 | 0x10000000 K_sPrint = K_Print | 0x10000000 K_sMenu = K_Menu | 0x10000000 K_cHOME = K_HOME | 0x20000000 K_cUP = K_UP | 0x20000000 K_cPGUP = K_PGUP | 0x20000000 K_cLEFT = K_LEFT | 0x20000000 K_cMIDDLE = K_MIDDLE | 0x20000000 K_cRIGHT = K_RIGHT | 0x20000000 K_cEND = K_END | 0x20000000 K_cDOWN = K_DOWN | 0x20000000 K_cPGDN = K_PGDN | 0x20000000 K_cINS = K_INS | 0x20000000 K_cDEL = K_DEL | 0x20000000 K_cSP = K_SP | 0x20000000 K_cTAB = K_TAB | 0x20000000 K_cCR = K_CR | 0x20000000 K_cBS = K_BS | 0x20000000 K_cPAUSE = K_PAUSE | 0x20000000 K_cESC = K_ESC | 0x20000000 K_cCcedilla= K_Ccedilla | 0x20000000 K_cF1 = K_F1 | 0x20000000 K_cF2 = K_F2 | 0x20000000 K_cF3 = K_F3 | 0x20000000 K_cF4 = K_F4 | 0x20000000 K_cF5 = K_F5 | 0x20000000 K_cF6 = K_F6 | 0x20000000 K_cF7 = K_F7 | 0x20000000 K_cF8 = K_F8 | 0x20000000 K_cF9 = K_F9 | 0x20000000 K_cF10 = K_F10 | 0x20000000 K_cF11 = K_F11 | 0x20000000 K_cF12 = K_F12 | 0x20000000 K_cPrint = K_Print | 0x20000000 K_cMenu = K_Menu | 0x20000000 K_mHOME = K_HOME | 0x40000000 K_mUP = K_UP | 0x40000000 K_mPGUP = K_PGUP | 0x40000000 K_mLEFT = K_LEFT | 0x40000000 K_mMIDDLE = K_MIDDLE | 0x40000000 K_mRIGHT = K_RIGHT | 0x40000000 K_mEND = K_END | 0x40000000 K_mDOWN = K_DOWN | 0x40000000 K_mPGDN = K_PGDN | 0x40000000 K_mINS = K_INS | 0x40000000 K_mDEL = K_DEL | 0x40000000 K_mSP = K_SP | 0x40000000 K_mTAB = K_TAB | 0x40000000 K_mCR = K_CR | 0x40000000 K_mBS = K_BS | 0x40000000 K_mPAUSE = K_PAUSE | 0x40000000 K_mESC = K_ESC | 0x40000000 K_mCcedilla= K_Ccedilla | 0x40000000 K_mF1 = K_F1 | 0x40000000 K_mF2 = K_F2 | 0x40000000 K_mF3 = K_F3 | 0x40000000 K_mF4 = K_F4 | 0x40000000 K_mF5 = K_F5 | 0x40000000 K_mF6 = K_F6 | 0x40000000 K_mF7 = K_F7 | 0x40000000 K_mF8 = K_F8 | 0x40000000 K_mF9 = K_F9 | 0x40000000 K_mF10 = K_F10 | 0x40000000 K_mF11 = K_F11 | 0x40000000 K_mF12 = K_F12 | 0x40000000 K_mPrint = K_Print | 0x40000000 K_mMenu = K_Menu | 0x40000000 K_yHOME = K_HOME | 0x80000000 K_yUP = K_UP | 0x80000000 K_yPGUP = K_PGUP | 0x80000000 K_yLEFT = K_LEFT | 0x80000000 K_yMIDDLE = K_MIDDLE | 0x80000000 K_yRIGHT = K_RIGHT | 0x80000000 K_yEND = K_END | 0x80000000 K_yDOWN = K_DOWN | 0x80000000 K_yPGDN = K_PGDN | 0x80000000 K_yINS = K_INS | 0x80000000 K_yDEL = K_DEL | 0x80000000 K_ySP = K_SP | 0x80000000 K_yTAB = K_TAB | 0x80000000 K_yCR = K_CR | 0x80000000 K_yBS = K_BS | 0x80000000 K_yPAUSE = K_PAUSE | 0x80000000 K_yESC = K_ESC | 0x80000000 K_yCcedilla= K_Ccedilla | 0x80000000 K_yF1 = K_F1 | 0x80000000 K_yF2 = K_F2 | 0x80000000 K_yF3 = K_F3 | 0x80000000 K_yF4 = K_F4 | 0x80000000 K_yF5 = K_F5 | 0x80000000 K_yF6 = K_F6 | 0x80000000 K_yF7 = K_F7 | 0x80000000 K_yF8 = K_F8 | 0x80000000 K_yF9 = K_F9 | 0x80000000 K_yF10 = K_F10 | 0x80000000 K_yF11 = K_F11 | 0x80000000 K_yF12 = K_F12 | 0x80000000 K_yPrint = K_Print | 0x80000000 K_yMenu = K_Menu | 0x80000000 K_sPlus = K_plus | 0x10000000 K_sComma = K_comma | 0x10000000 K_sMinus = K_minus | 0x10000000 K_sPeriod = K_period | 0x10000000 K_sSlash = K_slash | 0x10000000 K_sAsterisk = K_asterisk | 0x10000000 K_cA = K_A | 0x20000000 K_cB = K_B | 0x20000000 K_cC = K_C | 0x20000000 K_cD = K_D | 0x20000000 K_cE = K_E | 0x20000000 K_cF = K_F | 0x20000000 K_cG = K_G | 0x20000000 K_cH = K_H | 0x20000000 K_cI = K_I | 0x20000000 K_cJ = K_J | 0x20000000 K_cK = K_K | 0x20000000 K_cL = K_L | 0x20000000 K_cM = K_M | 0x20000000 K_cN = K_N | 0x20000000 K_cO = K_O | 0x20000000 K_cP = K_P | 0x20000000 K_cQ = K_Q | 0x20000000 K_cR = K_R | 0x20000000 K_cS = K_S | 0x20000000 K_cT = K_T | 0x20000000 K_cU = K_U | 0x20000000 K_cV = K_V | 0x20000000 K_cW = K_W | 0x20000000 K_cX = K_X | 0x20000000 K_cY = K_Y | 0x20000000 K_cZ = K_Z | 0x20000000 K_c1 = K_1 | 0x20000000 K_c2 = K_2 | 0x20000000 K_c3 = K_3 | 0x20000000 K_c4 = K_4 | 0x20000000 K_c5 = K_5 | 0x20000000 K_c6 = K_6 | 0x20000000 K_c7 = K_7 | 0x20000000 K_c8 = K_8 | 0x20000000 K_c9 = K_9 | 0x20000000 K_c0 = K_0 | 0x20000000 K_cPlus = K_plus | 0x20000000 K_cComma = K_comma | 0x20000000 K_cMinus = K_minus | 0x20000000 K_cPeriod = K_period | 0x20000000 K_cSlash = K_slash | 0x20000000 K_cSemicolon = K_semicolon | 0x20000000 K_cEqual = K_equal | 0x20000000 K_cBracketleft = K_bracketleft | 0x20000000 K_cBracketright= K_bracketright | 0x20000000 K_cBackslash = K_backslash | 0x20000000 K_cAsterisk = K_asterisk | 0x20000000 K_mA = K_A | 0x40000000 K_mB = K_B | 0x40000000 K_mC = K_C | 0x40000000 K_mD = K_D | 0x40000000 K_mE = K_E | 0x40000000 K_mF = K_F | 0x40000000 K_mG = K_G | 0x40000000 K_mH = K_H | 0x40000000 K_mI = K_I | 0x40000000 K_mJ = K_J | 0x40000000 K_mK = K_K | 0x40000000 K_mL = K_L | 0x40000000 K_mM = K_M | 0x40000000 K_mN = K_N | 0x40000000 K_mO = K_O | 0x40000000 K_mP = K_P | 0x40000000 K_mQ = K_Q | 0x40000000 K_mR = K_R | 0x40000000 K_mS = K_S | 0x40000000 K_mT = K_T | 0x40000000 K_mU = K_U | 0x40000000 K_mV = K_V | 0x40000000 K_mW = K_W | 0x40000000 K_mX = K_X | 0x40000000 K_mY = K_Y | 0x40000000 K_mZ = K_Z | 0x40000000 K_m1 = K_1 | 0x40000000 K_m2 = K_2 | 0x40000000 K_m3 = K_3 | 0x40000000 K_m4 = K_4 | 0x40000000 K_m5 = K_5 | 0x40000000 K_m6 = K_6 | 0x40000000 K_m7 = K_7 | 0x40000000 K_m8 = K_8 | 0x40000000 K_m9 = K_9 | 0x40000000 K_m0 = K_0 | 0x40000000 K_mPlus = K_plus | 0x40000000 K_mComma = K_comma | 0x40000000 K_mMinus = K_minus | 0x40000000 K_mPeriod = K_period | 0x40000000 K_mSlash = K_slash | 0x40000000 K_mSemicolon = K_semicolon | 0x40000000 K_mEqual = K_equal | 0x40000000 K_mBracketleft = K_bracketleft | 0x40000000 K_mBracketright= K_bracketright | 0x40000000 K_mBackslash = K_backslash | 0x40000000 K_mAsterisk = K_asterisk | 0x40000000 K_yA = K_A | 0x80000000 K_yB = K_B | 0x80000000 K_yC = K_C | 0x80000000 K_yD = K_D | 0x80000000 K_yE = K_E | 0x80000000 K_yF = K_F | 0x80000000 K_yG = K_G | 0x80000000 K_yH = K_H | 0x80000000 K_yI = K_I | 0x80000000 K_yJ = K_J | 0x80000000 K_yK = K_K | 0x80000000 K_yL = K_L | 0x80000000 K_yM = K_M | 0x80000000 K_yN = K_N | 0x80000000 K_yO = K_O | 0x80000000 K_yP = K_P | 0x80000000 K_yQ = K_Q | 0x80000000 K_yR = K_R | 0x80000000 K_yS = K_S | 0x80000000 K_yT = K_T | 0x80000000 K_yU = K_U | 0x80000000 K_yV = K_V | 0x80000000 K_yW = K_W | 0x80000000 K_yX = K_X | 0x80000000 K_yY = K_Y | 0x80000000 K_yZ = K_Z | 0x80000000 K_y1 = K_1 | 0x80000000 K_y2 = K_2 | 0x80000000 K_y3 = K_3 | 0x80000000 K_y4 = K_4 | 0x80000000 K_y5 = K_5 | 0x80000000 K_y6 = K_6 | 0x80000000 K_y7 = K_7 | 0x80000000 K_y8 = K_8 | 0x80000000 K_y9 = K_9 | 0x80000000 K_y0 = K_0 | 0x80000000 K_yPlus = K_plus | 0x80000000 K_yComma = K_comma | 0x80000000 K_yMinus = K_minus | 0x80000000 K_yPeriod = K_period | 0x80000000 K_ySlash = K_slash | 0x80000000 K_ySemicolon = K_semicolon | 0x80000000 K_yEqual = K_equal | 0x80000000 K_yBracketleft = K_bracketleft | 0x80000000 K_yBracketright= K_bracketright | 0x80000000 K_yBackslash = K_backslash | 0x80000000 K_yAsterisk = K_asterisk | 0x80000000 IUP_RUN = "RUN" IUP_ENGLISH = "ENGLISH" IUP_PORTUGUESE = "PORTUGUESE" IUP_SBH = "SBH" IUP_SBV = "SBV" /************************************************************************/ /* Callbacks */ /************************************************************************/ IUP_IDLE_ACTION = "IDLE_ACTION" IUP_ACTION = "ACTION" IUP_GETFOCUS_CB = "GETFOCUS_CB" IUP_KILLFOCUS_CB = "KILLFOCUS_CB" IUP_K_ANY = "K_ANY" IUP_KEYPRESS_CB = "KEYPRESS_CB" IUP_HELP_CB = "HELP_CB" IUP_SCROLL_CB = "SCROLL_CB" IUP_RESIZE_CB = "RESIZE_CB" IUP_MOTION_CB = "MOTION_CB" IUP_BUTTON_CB = "BUTTON_CB" IUP_ENTERWINDOW_CB = "ENTERWINDOW_CB" IUP_LEAVEWINDOW_CB = "LEAVEWINDOW_CB" IUP_WHEEL_CB = "WHEEL_CB" IUP_MASK_CB = "MASK_CB" IUP_OPEN_CB = "OPEN_CB" IUP_HIGHLIGHT_CB = "HIGHLIGHT_CB" IUP_MENUCLOSE_CB = "MENUCLOSE_CB" IUP_MAP_CB = "MAP_CB" IUP_CLOSE_CB = "CLOSE_CB" IUP_SHOW_CB = "SHOW_CB" IUP_DROPFILES_CB = "DROPFILES_CB" IUP_WOM_CB = "WOM_CB" /************************************************************************/ /* Attributes */ /************************************************************************/ IUP_DIRECTION = "DIRECTION" IUP_ACTIVE = "ACTIVE" IUP_BGCOLOR = "BGCOLOR" IUP_FRAMECOLOR = "FRAMECOLOR" IUP_FGCOLOR = "FGCOLOR" IUP_COLOR = "COLOR" IUP_WID = "WID" IUP_SIZE = "SIZE" IUP_RASTERSIZE = "RASTERSIZE" IUP_TITLE = "TITLE" IUP_VALUE = "VALUE" IUP_VISIBLE = "VISIBLE" IUP_FONT = "FONT" IUP_TIP = "TIP" IUP_EXPAND = "EXPAND" IUP_SEPARATOR = "SEPARATOR" IUP_HOTSPOT = "HOTSPOT" IUP_HEIGHT = "HEIGHT" IUP_WIDTH = "WIDTH" IUP_KEY = "KEY" IUP_MULTIPLE = "MULTIPLE" IUP_DROPDOWN = "DROPDOWN" IUP_VISIBLE_ITEMS = "VISIBLE_ITEMS" IUP_MARGIN = "MARGIN" IUP_GAP = "GAP" IUP_ALIGNMENT = "ALIGNMENT" IUP_IMAGE = "IMAGE" IUP_IMINACTIVE = "IMINACTIVE" IUP_IMPRESS = "IMPRESS" IUP_WIN_SAVEBITS = "WIN_SAVEBITS" IUP_NC = "NC" IUP_MASK = "MASK" IUP_APPEND = "APPEND" IUP_BORDER = "BORDER" IUP_CARET = "CARET" IUP_SELECTION = "SELECTION" IUP_SELECTEDTEXT = "SELECTEDTEXT" IUP_INSERT = "INSERT" IUP_CONID = "CONID" IUP_CURSOR = "CURSOR" IUP_ICON = "ICON" IUP_MENUBOX = "MENUBOX" IUP_MINBOX = "MINBOX" IUP_MAXBOX = "MAXBOX" IUP_RESIZE = "RESIZE" IUP_MENU = "MENU" IUP_STARTFOCUS = "STARTFOCUS" IUP_PARENTDIALOG = "PARENTDIALOG" IUP_SHRINK = "SHRINK" IUP_DEFAULTENTER = "DEFAULTENTER" IUP_DEFAULTESC = "DEFAULTESC" IUP_X = "X" IUP_Y = "Y" IUP_TOOLBOX = "TOOLBOX" IUP_CONTROL = "CONTROL" IUP_READONLY = "READONLY" IUP_SCROLLBAR = "SCROLLBAR" IUP_POSY = "POSY" IUP_POSX = "POSX" IUP_DX = "DX" IUP_DY = "DY" IUP_XMAX = "XMAX" IUP_XMIN = "XMIN" IUP_YMAX = "YMAX" IUP_YMIN = "YMIN" IUP_RED = "255 0 0" IUP_GREEN = "0 255 0" IUP_BLUE = "0 0 255" IUP_MIN = "MIN" IUP_MAX = "MAX" IUP_TIME = "TIME" IUP_DRAG = "DRAG" IUP_DROP = "DROP" IUP_REPAINT = "REPAINT" IUP_TOPMOST = "TOPMOST" IUP_CLIPCHILDREN = "CLIPCHILDREN" IUP_DIALOGTYPE = "DIALOGTYPE" IUP_FILE = "FILE" IUP_MULTIPLEFILES = "MULTIPLEFILES" IUP_FILTER = "FILTER" IUP_FILTERUSED = "FILTERUSED" IUP_FILTERINFO = "FILTERINFO" IUP_EXTFILTER = "EXTFILTER" IUP_DIRECTORY = "DIRECTORY" IUP_ALLOWNEW = "ALLOWNEW" IUP_NOOVERWRITEPROMPT = "NOOVERWRITEPROMPT" IUP_NOCHANGEDIR = "NOCHANGEDIR" IUP_FILEEXIST = "FILEEXIST" IUP_STATUS = "STATUS" IUP_LOCKLOOP = "LOCKLOOP" IUP_SYSTEM = "SYSTEM" IUP_DRIVER = "DRIVER" IUP_SCREENSIZE = "SCREENSIZE" IUP_SYSTEMLANGUAGE = "SYSTEMLANGUAGE" IUP_COMPUTERNAME = "COMPUTERNAME" IUP_USERNAME = "USERNAME" IUP_OPEN = "OPEN" IUP_SAVE = "SAVE" IUP_DIR = "DIR" IUP_HORIZONTAL = "HORIZONTAL" IUP_VERTICAL = "VERTICAL" /************************************************************************/ /* Attribute Values */ /************************************************************************/ IUP_YES = "YES" IUP_NO = "NO" IUP_ON = "ON" IUP_OFF = "OFF" IUP_ACENTER = "ACENTER" IUP_ALEFT = "ALEFT" IUP_ARIGHT = "ARIGHT" IUP_ATOP = "ATOP" IUP_ABOTTOM = "ABOTTOM" IUP_NORTH = "NORTH" IUP_SOUTH = "SOUTH" IUP_WEST = "WEST" IUP_EAST = "EAST" IUP_NE = "NE" IUP_SE = "SE" IUP_NW = "NW" IUP_SW = "SW" IUP_FULLSCREEN = "FULLSCREEN" IUP_FULL = "FULL" IUP_HALF = "HALF" IUP_THIRD = "THIRD" IUP_QUARTER = "QUARTER" IUP_EIGHTH = "EIGHTH" IUP_ARROW = "ARROW" IUP_BUSY = "BUSY" IUP_RESIZE_N = "RESIZE_N" IUP_RESIZE_S = "RESIZE_S" IUP_RESIZE_E = "RESIZE_E" IUP_RESIZE_W = "RESIZE_W" IUP_RESIZE_NE = "RESIZE_NE" IUP_RESIZE_NW = "RESIZE_NW" IUP_RESIZE_SE = "RESIZE_SE" IUP_RESIZE_SW = "RESIZE_SW" IUP_MOVE = "MOVE" IUP_HAND = "HAND" IUP_NONE = "NONE" IUP_IUP = "IUP" IUP_CROSS = "CROSS" IUP_PEN = "PEN" IUP_TEXT = "TEXT" IUP_RESIZE_C = "RESIZE_C" IUP_OPENHAND = "OPENHAND" /************************************************************************/ /* Keys */ /************************************************************************/ IUP_K_exclam = "K_exclam" IUP_K_quotedbl = "K_quotedbl" IUP_K_numbersign = "K_numbersign" IUP_K_dollar = "K_dollar" IUP_K_percent = "K_percent" IUP_K_ampersand = "K_ampersand" IUP_K_quoteright = "K_quoteright" IUP_K_parentleft = "K_parentleft" IUP_K_parentright = "K_parentright" IUP_K_asterisk = "K_asterisk" IUP_K_plus = "K_plus" IUP_K_comma = "K_comma" IUP_K_minus = "K_minus" IUP_K_period = "K_period" IUP_K_slash = "K_slash" IUP_K_0 = "K_0" IUP_K_1 = "K_1" IUP_K_2 = "K_2" IUP_K_3 = "K_3" IUP_K_4 = "K_4" IUP_K_5 = "K_5" IUP_K_6 = "K_6" IUP_K_7 = "K_7" IUP_K_8 = "K_8" IUP_K_9 = "K_9" IUP_K_colon = "K_colon" IUP_K_semicolon = "K_semicolon " IUP_K_less = "K_less" IUP_K_equal = "K_equal" IUP_K_greater = "K_greater" IUP_K_question = "K_question" IUP_K_at = "K_at" IUP_K_A = "K_A" IUP_K_B = "K_B" IUP_K_C = "K_C" IUP_K_D = "K_D" IUP_K_E = "K_E" IUP_K_F = "K_F" IUP_K_G = "K_G" IUP_K_H = "K_H" IUP_K_I = "K_I" IUP_K_J = "K_J" IUP_K_K = "K_K" IUP_K_L = "K_L" IUP_K_M = "K_M" IUP_K_N = "K_N" IUP_K_O = "K_O" IUP_K_P = "K_P" IUP_K_Q = "K_Q" IUP_K_R = "K_R" IUP_K_S = "K_S" IUP_K_T = "K_T" IUP_K_U = "K_U" IUP_K_V = "K_V" IUP_K_W = "K_W" IUP_K_X = "K_X" IUP_K_Y = "K_Y" IUP_K_Z = "K_Z" IUP_K_bracketleft = "K_bracketleft" IUP_K_backslash = "K_backslash" IUP_K_bracketright = "K_bracketright" IUP_K_circum = "K_circum" IUP_K_underscore = "K_underscore" IUP_K_quoteleft = "K_quoteleft" IUP_K_a = "K_a" IUP_K_b = "K_b" IUP_K_c = "K_c" IUP_K_d = "K_d" IUP_K_e = "K_e" IUP_K_f = "K_f" IUP_K_g = "K_g" IUP_K_h = "K_h" IUP_K_i = "K_i" IUP_K_j = "K_j" IUP_K_k = "K_k" IUP_K_l = "K_l" IUP_K_m = "K_m" IUP_K_n = "K_n" IUP_K_o = "K_o" IUP_K_p = "K_p" IUP_K_q = "K_q" IUP_K_r = "K_r" IUP_K_s = "K_s" IUP_K_t = "K_t" IUP_K_u = "K_u" IUP_K_v = "K_v" IUP_K_w = "K_w" IUP_K_x = "K_x" IUP_K_y = "K_y" IUP_K_z = "K_z" IUP_K_braceleft = "K_braceleft" IUP_K_bar = "K_bar" IUP_K_braceright = "K_braceright" IUP_K_tilde = "K_tilde" IUP_K_cA = "K_cA" IUP_K_cB = "K_cB" IUP_K_cC = "K_cC" IUP_K_cD = "K_cD" IUP_K_cE = "K_cE" IUP_K_cF = "K_cF" IUP_K_cG = "K_cG" IUP_K_cJ = "K_cJ" IUP_K_cK = "K_cK" IUP_K_cL = "K_cL" IUP_K_cN = "K_cN" IUP_K_cO = "K_cO" IUP_K_cP = "K_cP" IUP_K_cQ = "K_cQ" IUP_K_cR = "K_cR" IUP_K_cS = "K_cS" IUP_K_cT = "K_cT" IUP_K_cU = "K_cU" IUP_K_cV = "K_cV" IUP_K_cW = "K_cW" IUP_K_cX = "K_cX" IUP_K_cY = "K_cY" IUP_K_cZ = "K_cZ" IUP_K_mA = "K_mA" IUP_K_mB = "K_mB" IUP_K_mC = "K_mC" IUP_K_mD = "K_mD" IUP_K_mE = "K_mE" IUP_K_mF = "K_mF" IUP_K_mG = "K_mG" IUP_K_mH = "K_mH" IUP_K_mI = "K_mI" IUP_K_mJ = "K_mJ" IUP_K_mK = "K_mK" IUP_K_mL = "K_mL" IUP_K_mM = "K_mM" IUP_K_mN = "K_mN" IUP_K_mO = "K_mO" IUP_K_mP = "K_mP" IUP_K_mQ = "K_mQ" IUP_K_mR = "K_mR" IUP_K_mS = "K_mS" IUP_K_mT = "K_mT" IUP_K_mU = "K_mU" IUP_K_mV = "K_mV" IUP_K_mW = "K_mW" IUP_K_mX = "K_mX" IUP_K_mY = "K_mY" IUP_K_mZ = "K_mZ" IUP_K_BS = "K_BS" IUP_K_TAB = "K_TAB" IUP_K_CR = "K_CR" IUP_K_SP = "K_SP" IUP_K_ESC = "K_ESC" IUP_K_sCR = "K_sCR" IUP_K_sTAB = "K_sTAB" IUP_K_cTAB = "K_cTAB" IUP_K_mTAB = "K_mTAB" IUP_K_HOME = "K_HOME" IUP_K_UP = "K_UP" IUP_K_PGUP = "K_PGUP" IUP_K_LEFT = "K_LEFT" IUP_K_RIGHT = "K_RIGHT" IUP_K_END = "K_END" IUP_K_DOWN = "K_DOWN" IUP_K_PGDN = "K_PGDN" IUP_K_MIDDLE = "K_MIDDLE" IUP_K_INS = "K_INS" IUP_K_DEL = "K_DEL" IUP_K_sHOME = "K_sHOME" IUP_K_sUP = "K_sUP" IUP_K_sPGUP = "K_sPGUP" IUP_K_sLEFT = "K_sLEFT" IUP_K_sRIGHT = "K_sRIGHT" IUP_K_sEND = "K_sEND" IUP_K_sDOWN = "K_sDOWN" IUP_K_sPGDN = "K_sPGDN" IUP_K_cHOME = "K_cHOME" IUP_K_cPGUP = "K_cPGUP" IUP_K_cLEFT = "K_cLEFT" IUP_K_cRIGHT = "K_cRIGHT" IUP_K_cEND = "K_cEND" IUP_K_cPGDN = "K_cPGDN" IUP_K_cUP = "K_cUP" IUP_K_cDOWN = "K_cDOWN" IUP_K_cMIDDLE = "K_cMIDDLE" IUP_K_cINS = "K_cINS" IUP_K_cDEL = "K_cDEL" IUP_K_mHOME = "K_mHOME" IUP_K_mPGUP = "K_mPGUP" IUP_K_mLEFT = "K_mLEFT" IUP_K_mRIGHT = "K_mRIGHT" IUP_K_mEND = "K_mEND" IUP_K_mPGDN = "K_mPGDN" IUP_K_mUP = "K_mUP" IUP_K_mDOWN = "K_mDOWN" IUP_K_mINS = "K_mINS" IUP_K_mDEL = "K_mDEL" IUP_K_F1 = "K_F1" IUP_K_F2 = "K_F2" IUP_K_F3 = "K_F3" IUP_K_F4 = "K_F4" IUP_K_F5 = "K_F5" IUP_K_F6 = "K_F6" IUP_K_F7 = "K_F7" IUP_K_F8 = "K_F8" IUP_K_F9 = "K_F9" IUP_K_F10 = "K_F10" IUP_K_F11 = "K_F11" IUP_K_F12 = "K_F12" IUP_K_sF1 = "K_sF1" IUP_K_sF2 = "K_sF2" IUP_K_sF3 = "K_sF3" IUP_K_sF4 = "K_sF4" IUP_K_sF5 = "K_sF5" IUP_K_sF6 = "K_sF6" IUP_K_sF7 = "K_sF7" IUP_K_sF8 = "K_sF8" IUP_K_sF9 = "K_sF9" IUP_K_sF10 = "K_sF10" IUP_K_sF11 = "K_sF11" IUP_K_sF12 = "K_sF12" IUP_K_cF1 = "K_cF1" IUP_K_cF2 = "K_cF2" IUP_K_cF3 = "K_cF3" IUP_K_cF4 = "K_cF4" IUP_K_cF5 = "K_cF5" IUP_K_cF6 = "K_cF6" IUP_K_cF7 = "K_cF7" IUP_K_cF8 = "K_cF8" IUP_K_cF9 = "K_cF9" IUP_K_cF10 = "K_cF10" IUP_K_cF11 = "K_cF11" IUP_K_cF12 = "K_cF12" IUP_K_mF1 = "K_mF1" IUP_K_mF2 = "K_mF2" IUP_K_mF3 = "K_mF3" IUP_K_mF4 = "K_mF4" IUP_K_mF5 = "K_mF5" IUP_K_mF6 = "K_mF6" IUP_K_mF7 = "K_mF7" IUP_K_mF8 = "K_mF8" IUP_K_mF9 = "K_mF9" IUP_K_mF10 = "K_mF10" IUP_K_m1 = "K_m1" IUP_K_m2 = "K_m2" IUP_K_m3 = "K_m3" IUP_K_m4 = "K_m4" IUP_K_m5 = "K_m5" IUP_K_m6 = "K_m6" IUP_K_m7 = "K_m7" IUP_K_m8 = "K_m8" IUP_K_m9 = "K_m9" IUP_K_m0 = "K_m0" /************/ /* Colorbar */ /************/ IUP_NUM_PARTS = "NUM_PARTS" IUP_NUM_CELLS = "NUM_CELLS" IUP_CELL = "CELL" IUP_PREVIEW_SIZE = "PREVIEW_SIZE" IUP_SHOW_PREVIEW = "SHOW_PREVIEW" IUP_SHOW_SECONDARY = "SHOW_SECONDARY" IUP_PRIMARY_CELL = "PRIMARY_CELL" IUP_SECONDARY_CELL = "SECONDARY_CELL" IUP_ORIENTATION = "ORIENTATION" IUP_SQUARED = "SQUARED" IUP_SHADOWED = "SHADOWED" IUP_BUFFERIZE = "BUFFERIZE" IUP_TRANSPARENCY = "TRANSPARENCY" IUP_CELL_CB = "CELL_CB" IUP_EXTENDED_CB = "EXTENDED_CB" IUP_SELECT_CB = "SELECT_CB" IUP_SWITCH_CB = "SWITCH_CB" /* IUP_VERTICAL = "VERTICAL" */ /* IUP_HORIZONTAL = "HORIZONTAL" */ /************/ /* Cells */ /************/ IUP_ALL = "ALL" IUP_BOXED = "BOXED" IUP_CLIPPED = "CLIPPED" IUP_TRANSPARENT = "TRANSPARENT" IUP_NON_SCROLLABLE_LINES = "NON_SCROLLABLE_LINES" IUP_NON_SCROLLABLE_COLS = "NON_SCROLLABLE_COLS" IUP_ORIGIN = "ORIGIN" IUP_NO_COLOR = "NO_COLOR" IUP_FIRST_LINE = "FIRST_LINE" IUP_FIRST_COL = "FIRST_COL" IUP_DOUBLE_BUFFER = "DOUBLE_BUFFER" IUP_LIMITS = "LIMITS" IUP_CANVAS = "CANVAS" IUP_IMAGE_CANVAS = "IMAGE_CANVAS" IUP_FULL_VISIBLE = "FULL_VISIBLE" IUP_MOUSECLICK_CB = "MOUSECLICK_CB" IUP_MOUSEMOTION_CB = "MOUSEMOTION_CB" IUP_DRAW_CB = "DRAW_CB" IUP_WIDTH_CB = "WIDTH_CB" IUP_HEIGHT_CB = "HEIGHT_CB" IUP_NLINES_CB = "NLINES_CB" IUP_NCOLS_CB = "NCOLS_CB" IUP_HSPAN_CB = "HSPAN_CB" IUP_VSPAN_CB = "VSPAN_CB" IUP_SCROLLING_CB = "SCROLLING_CB" /*****************/ /* ColorBrowser */ /*****************/ IUP_RGB = "RGB" IUP_CHANGE_CB = "CHANGE_CB" IUP_DRAG_CB = "DRAG_CB" /*****************/ /* Val */ /*****************/ ICTL_MOUSEMOVE_CB = "MOUSEMOVE_CB" ICTL_BUTTON_PRESS_CB = "BUTTON_PRESS_CB" ICTL_BUTTON_RELEASE_CB = "BUTTON_RELEASE_CB" ICTL_HORIZONTAL = "HORIZONTAL" ICTL_VERTICAL = "VERTICAL" ICTL_SHOWTICKS = "SHOWTICKS" /*****************/ /* Tabs */ /*****************/ ICTL_TOP = "TOP" ICTL_BOTTOM = "BOTTOM" ICTL_LEFT = "LEFT" ICTL_RIGHT = "RIGHT" ICTL_TABTYPE = "TABTYPE" ICTL_TABTITLE = "TABTITLE" ICTL_TABSIZE = "TABSIZE" ICTL_TABCHANGE_CB = "TABCHANGE_CB" ICTL_FONT = "FONT" ICTL_FONT_ACTIVE = "FONT_ACTIVE" ICTL_FONT_INACTIVE = "FONT_INACTIVE" /*****************/ /* Gauge */ /*****************/ ICTL_SHOW_TEXT = "SHOW_TEXT" ICTL_DASHED = "DASHED" ICTL_MARGIN = "MARGIN" ICTL_TEXT = "TEXT" /*****************/ /* Dial */ /*****************/ ICTL_DENSITY = "DENSITY" /* ICTL_HORIZONTAL = "HORIZONTAL" */ /* ICTL_VERTICAL = "VERTICAL" */ ICTL_CIRCULAR = "CIRCULAR" ICTL_UNIT = "UNIT" /*****************/ /* Matrix */ /*****************/ IUP_ENTERITEM_CB = "ENTERITEM_CB" IUP_LEAVEITEM_CB = "LEAVEITEM_CB" IUP_EDITION_CB = "EDITION_CB" IUP_CLICK_CB = "CLICK_CB" IUP_DROP_CB = "DROP_CB" IUP_DROPSELECT_CB = "DROPSELECT_CB" IUP_DROPCHECK_CB = "DROPCHECK_CB" /* IUP_SCROLL_CB = "SCROLL_CB" */ IUP_VALUE_CB = "VALUE_CB" IUP_VALUE_EDIT_CB = "VALUE_EDIT_CB" IUP_FIELD_CB = "FIELD_CB" IUP_RESIZEMATRIX = "RESIZEMATRIX" IUP_ADDLIN = "ADDLIN" IUP_ADDCOL = "ADDCOL" IUP_DELLIN = "DELLIN" IUP_DELCOL = "DELCOL" IUP_NUMLIN = "NUMLIN" IUP_NUMCOL = "NUMCOL" IUP_NUMLIN_VISIBLE = "NUMLIN_VISIBLE" IUP_NUMCOL_VISIBLE = "NUMCOL_VISIBLE" IUP_MARKED = "MARKED" IUP_WIDTHDEF = "WIDTHDEF" IUP_HEIGHTDEF = "HEIGHTDEF" IUP_AREA = "AREA" IUP_MARK_MODE = "MARK_MODE" IUP_LIN = "LIN" IUP_COL = "COL" IUP_LINCOL = "LINCOL" /* IUP_CELL = "CELL" */ IUP_EDIT_MODE = "EDIT_MODE" IUP_FOCUS_CELL = "FOCUS_CELL" /* IUP_ORIGIN = "ORIGIN" */ IUP_REDRAW = "REDRAW" IUP_PREVIOUSVALUE = "PREVIOUSVALUE" IUP_MOUSEMOVE_CB = "MOUSEMOVE_CB" /*****************/ /* Tree */ /*****************/ IUP_ADDLEAF = "ADDLEAF" IUP_ADDBRANCH = "ADDBRANCH" IUP_DELNODE = "DELNODE" IUP_IMAGELEAF = "IMAGELEAF" IUP_IMAGEBRANCHCOLLAPSED = "IMAGEBRANCHCOLLAPSED" IUP_IMAGEBRANCHEXPANDED = "IMAGEBRANCHEXPANDED" IUP_IMAGEEXPANDED = "IMAGEEXPANDED" IUP_KIND = "KIND" IUP_PARENT = "PARENT" IUP_DEPTH = "DEPTH" /* IUP_MARKED = "MARKED" */ IUP_ADDEXPANDED = "ADDEXPANDED" IUP_CTRL = "CTRL" IUP_SHIFT = "SHIFT" IUP_STATE = "STATE" IUP_STARTING = "STARTING" IUP_LEAF = "LEAF" IUP_BRANCH = "BRANCH" IUP_SELECTED = "SELECTED" IUP_CHILDREN = "CHILDREN" /* IUP_MARKED = "MARKED" */ IUP_ROOT = "ROOT" IUP_LAST = "LAST" IUP_PGUP = "PGUP" IUP_PGDN = "PGDN" IUP_NEXT = "NEXT" IUP_PREVIOUS = "PREVIOUS" IUP_INVERT = "INVERT" IUP_BLOCK = "BLOCK" IUP_CLEARALL = "CLEARALL" IUP_MARKALL = "MARKALL" IUP_INVERTALL = "INVERTALL" /* IUP_REDRAW = "REDRAW" */ IUP_COLLAPSED = "COLLAPSED" IUP_EXPANDED = "EXPANDED" IUP_SELECTION_CB = "SELECTION_CB" IUP_BRANCHOPEN_CB = "BRANCHOPEN_CB" IUP_BRANCHCLOSE_CB = "BRANCHCLOSE_CB" IUP_RIGHTCLICK_CB = "RIGHTCLICK_CB" IUP_EXECUTELEAF_CB = "EXECUTELEAF_CB" IUP_RENAMENODE_CB = "RENAMENODE_CB" IUP_IMGLEAF = "IMGLEAF" IUP_IMGCOLLAPSED = "IMGCOLLAPSED" IUP_IMGEXPANDED = "IMGEXPANDED" IUP_IMGBLANK = "IMGBLANK" IUP_IMGPAPER = "IMGPAPER" /* bindings additions */ IUP_TOGGLECENTERED = "TOGGLECENTERED" IUP_MULTILINE = "MULTILINE" IUP_VISIBLELINES = "VISIBLELINES" IUP_WORDWRAP = "WORDWRAP" IUP_VISIBLEITEMS = "VISIBLEITEMS" /* IupList: VISIBLE_ITEMS renamed to VISIBLEITEMS in IupList. Old names still supported */ IUP_VALUECHANGED_CB = "VALUECHANGED_CB" IUP_TOGGLEVALUE_CB = "TOGGLEVALUE_CB" IUP_SHOWTOGGLE = "SHOWTOGGLE" IUP_PADDING = "PADDING" IUP_REMOVEITEM = "REMOVEITEM" IUP_APPENDITEM = "APPENDITEM" IUP_NAME = "IUP - Portable User Interface" IUP_DESCRIPTION = "Multi-platform Toolkit for Building Graphical User Interfaces" IUP_COPYRIGHT = "Copyright (C) 1994-2018 Tecgraf/PUC-Rio" IUP_VERSION = "3.25" /* bug fixes are reported only by IupVersion functions */ IUP_VERSION_NUMBER = 325000 IUP_VERSION_DATE = "2018/05/28" /* does not include bug fix releases */ /* Attributes ** To set the appropriate visual (pixel format) the following ** attributes may be specified. Their values should be set ** before the canvas is mapped to the scrren. ** After mapping, changing their values has no effect. */ /* IUP_SINGLE (defaut) or IUP_DOUBLE */ IUP_BUFFER = "BUFFER" /* IUP_NO (defaut) or IUP_YES */ IUP_STEREO = "STEREO" /* Number of bits if index mode */ IUP_BUFFER_SIZE = "BUFFER_SIZE" /* Number of red bits */ IUP_RED_SIZE = "RED_SIZE" /* Number of green bits */ IUP_GREEN_SIZE = "GREEN_SIZE" /* Number of blue bits */ IUP_BLUE_SIZE = "BLUE_SIZE" /* Number of alpha bits */ IUP_ALPHA_SIZE = "ALPHA_SIZE" /* Number of bits in depth buffer */ IUP_DEPTH_SIZE = "DEPTH_SIZE" /* Number of bits in stencil buffer */ IUP_STENCIL_SIZE = "STENCIL_SIZE" /* Number of red bits in accum. buffer */ IUP_ACCUM_RED_SIZE = "ACCUM_RED_SIZE" /* Number of green bits in accum. buffer */ IUP_ACCUM_GREEN_SIZE = "ACCUM_GREEN_SIZE" /* Number of blue bits in accum. buffer */ IUP_ACCUM_BLUE_SIZE = "ACCUM_BLUE_SIZE" /* Number of alpha bits in accum. buffer */ IUP_ACCUM_ALPHA_SIZE = "ACCUM_ALPHA_SIZE" /* Attribute values */ IUP_DOUBLE = "DOUBLE" IUP_SINGLE = "SINGLE" IUP_INDEX = "INDEX" IUP_RGBA = "RGBA" /*IUP_YES = "YES" IUP_NO = "NO"*/ /************************************************************************/ /* Common Flags and Return Values */ /************************************************************************/ IUP_ERROR = 1 IUP_NOERROR = 0 IUP_OPENED = -1 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupopen.html */ IUP_INVALID = -1 IUP_INVALID_ID = -10 /************************************************************************/ /* Callback Return Values */ /************************************************************************/ IUP_IGNORE = -1 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call_guide.html */ IUP_DEFAULT = -2 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call_guide.html */ IUP_CLOSE = -3 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call_guide.html */ IUP_CONTINUE = -4 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call_guide.html */ /************************************************************************/ /* IupPopup and IupShowXY Parameter Values */ /************************************************************************/ IUP_CENTER = 0xFFFF /* 65535 */ /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ IUP_LEFT = 0xFFFE /* 65534 */ /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ IUP_RIGHT = 0xFFFD /* 65533 */ /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ IUP_MOUSEPOS = 0xFFFC /* 65532 */ /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ IUP_CURRENT = 0xFFFB /* 65531 */ /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ IUP_CENTERPARENT = 0xFFFA /* 65530 */ /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ IUP_TOP = IUP_LEFT /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ IUP_BOTTOM = IUP_RIGHT/* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ /************************************************************************/ /* SHOW_CB Callback Values */ /************************************************************************/ IUP_SHOW = 0 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_show_cb.html */ IUP_RESTORE = 1 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_show_cb.html */ IUP_MINIMIZE = 2 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_show_cb.html */ IUP_MAXIMIZE = 3 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_show_cb.html */ IUP_HIDE = 4 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_show_cb.html */ /************************************************************************/ /* SCROLL_CB Callback Values */ /************************************************************************/ 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 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_scroll_cb.html */ /************************************************************************/ /* Mouse Button Values and Macros */ /************************************************************************/ IUP_BUTTON1 = '1' /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_button_cb.html */ IUP_BUTTON2 = '2' /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_button_cb.html */ IUP_BUTTON3 = '3' /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_button_cb.html */ IUP_BUTTON4 = '4' /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_button_cb.html */ IUP_BUTTON5 = '5' /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/call/iup_button_cb.html */ /* Old definitions for backward compatibility alias isshift = iup_isshift; alias iscontrol = iup_iscontrol; alias isbutton1 = iup_isbutton1; alias isbutton2 = iup_isbutton2; alias isbutton3 = iup_isbutton3; alias isdouble = iup_isdouble; alias isalt = iup_isalt; alias issys = iup_issys; alias isbutton4 = iup_isbutton4; alias isbutton5 = iup_isbutton5; */ /************************************************************************/ /* Pre-Defined Masks */ /************************************************************************/ /* const(char)* */ IUP_MASK_FLOAT = "[+/-]?(/d+/.?/d*|/./d+)" /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html */ /* const(char)* */ IUP_MASK_UFLOAT = "(/d+/.?/d*|/./d+)" /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html */ /* const(char)* */ IUP_MASK_EFLOAT = "[+/-]?(/d+/.?/d*|/./d+)([eE][+/-]?/d+)?" /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html */ /* const(char)* */ IUP_MASK_UEFLOAT = "(/d+/.?/d*|/./d+)([eE][+/-]?/d+)?" /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html */ /* const(char)* */ IUP_MASK_FLOATCOMMA = "[+/-]?(/d+/,?/d*|/,/d+)" /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html */ /* const(char)* */ IUP_MASK_UFLOATCOMMA = "(/d+/,?/d*|/,/d+)" /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html */ /* const(char)* */ IUP_MASK_INT = "[+/-]?/d+" /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html */ /* const(char)* */ IUP_MASK_UINT = "/d+" /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_mask.html */ /* Old definitions for backward compatibility IUPMASK_FLOAT = IUP_MASK_FLOAT; IUPMASK_UFLOAT = IUP_MASK_UFLOAT; IUPMASK_EFLOAT = IUP_MASK_EFLOAT; IUPMASK_INT = IUP_MASK_INT; IUPMASK_UINT = IUP_MASK_UINT; */ /************************************************************************/ /* IupGetParam Callback situations */ /************************************************************************/ IUP_GETPARAM_BUTTON1 = -1 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ IUP_GETPARAM_INIT = -2 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ IUP_GETPARAM_BUTTON2 = -3 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ IUP_GETPARAM_BUTTON3 = -4 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ IUP_GETPARAM_CLOSE = -5 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ IUP_GETPARAM_MAP = -6 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ IUP_GETPARAM_OK = IUP_GETPARAM_BUTTON1 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ IUP_GETPARAM_CANCEL = IUP_GETPARAM_BUTTON2 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ IUP_GETPARAM_HELP = IUP_GETPARAM_BUTTON3 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ /************************************************************************/ /* Used by IupColorbar */ /************************************************************************/ IUP_PRIMARY = -1 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupcolorbar.html */ IUP_SECONDARY = -2 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupcolorbar.html */ /************************************************************************/ /* Record Input Modes */ /************************************************************************/ IUP_RECBINARY=0 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuprecordinput.html */ IUP_RECTEXT=1 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuprecordinput.html */ ) pub const ( CD_NAME = "CD - A 2D Graphics Library" CD_DESCRIPTION = "Vector Graphics Toolkit with Device Independent Output" CD_COPYRIGHT = "Copyright (C) 1994-2017 Tecgraf/PUC-Rio" CD_VERSION = "5.11" /* bug fixes are reported only by cdVersion functions */ CD_VERSION_NUMBER = 511000 CD_VERSION_DATE = "2016/09/30" /* does not include bug fix releases */ /* CD Values */ CD_QUERY = -1 /* query value */ /* bitmap type */ CD_RGB = 0 /* these definitions are compatible with the IM library */ CD_MAP = 1 CD_RGBA = 0x100 /* bitmap data */ CD_IRED = 0 CD_IGREEN = 1 CD_IBLUE = 2 CD_IALPHA = 3 CD_INDEX = 4 CD_COLORS = 5 /* status report */ CD_ERROR = -1 CD_OK = 0 /* clip mode */ CD_CLIPOFF = 0 CD_CLIPAREA = 1 CD_CLIPPOLYGON = 2 CD_CLIPREGION = 3 /* region combine mode */ CD_UNION = 0 CD_INTERSECT = 1 CD_DIFFERENCE = 2 CD_NOTINTERSECT = 3 /* polygon mode (begin...end) */ CD_FILL = 0 CD_OPEN_LINES = 1 CD_CLOSED_LINES = 2 CD_CLIP = 3 CD_BEZIER = 4 CD_REGION = 5 CD_PATH = 6 CD_POLYCUSTOM = 10 /* path actions */ CD_PATH_NEW = 0 CD_PATH_MOVETO = 1 CD_PATH_LINETO = 2 CD_PATH_ARC = 3 CD_PATH_CURVETO = 4 CD_PATH_CLOSE = 5 CD_PATH_FILL = 6 CD_PATH_STROKE = 7 CD_PATH_FILLSTROKE = 8 CD_PATH_CLIP = 9 /* fill mode */ CD_EVENODD = 0 CD_WINDING = 1 /* line join */ CD_MITER = 0 CD_BEVEL = 1 CD_ROUND = 2 /* line cap */ CD_CAPFLAT = 0 CD_CAPSQUARE = 1 CD_CAPROUND = 2 /* background opacity mode */ CD_OPAQUE = 0 CD_TRANSPARENT = 1 /* write mode */ CD_REPLACE = 0 CD_XOR = 1 CD_NOT_XOR = 2 /* color allocation mode (palette) */ CD_POLITE = 0 CD_FORCE = 1 /* line style */ CD_CONTINUOUS = 0 CD_DASHED = 1 CD_DOTTED = 2 CD_DASH_DOT = 3 CD_DASH_DOT_DOT = 4 CD_CUSTOM = 5 /* marker type */ CD_PLUS = 0 CD_STAR = 1 CD_CIRCLE = 2 CD_X = 3 CD_BOX = 4 CD_DIAMOND = 5 CD_HOLLOW_CIRCLE = 6 CD_HOLLOW_BOX = 7 CD_HOLLOW_DIAMOND = 8 /* hatch type */ CD_HORIZONTAL = 0 CD_VERTICAL = 1 CD_FDIAGONAL = 2 CD_BDIAGONAL = 3 CD_CROSS = 4 CD_DIAGCROSS = 5 /* interior style */ CD_SOLID = 0 CD_HATCH = 1 CD_STIPPLE = 2 CD_PATTERN = 3 CD_HOLLOW = 4 /* text alignment */ CD_NORTH = 0 CD_SOUTH = 2 CD_EAST = 3 CD_WEST = 4 CD_NORTH_EAST = 5 CD_NORTH_WEST = 6 CD_SOUTH_EAST = 7 CD_SOUTH_WEST = 8 CD_CENTER = 9 CD_BASE_LEFT = 10 CD_BASE_CENTER = 11 CD_BASE_RIGHT = 12 /* style */ CD_PLAIN = 0 CD_BOLD = 1 CD_ITALIC = 2 CD_UNDERLINE = 4 CD_STRIKEOUT = 8 CD_BOLD_ITALIC = (CD_BOLD | CD_ITALIC) /* compatibility name */ /* some font sizes */ CD_SMALL = 8 CD_STANDARD = 12 CD_LARGE = 18 /* Context Capabilities */ CD_CAP_NONE = 0x00000000 CD_CAP_FLUSH = 0x00000001 CD_CAP_CLEAR = 0x00000002 CD_CAP_PLAY = 0x00000004 CD_CAP_YAXIS = 0x00000008 CD_CAP_CLIPAREA = 0x00000010 CD_CAP_CLIPPOLY = 0x00000020 CD_CAP_REGION = 0x00000040 CD_CAP_RECT = 0x00000080 CD_CAP_CHORD = 0x00000100 CD_CAP_IMAGERGB = 0x00000200 CD_CAP_IMAGERGBA = 0x00000400 CD_CAP_IMAGEMAP = 0x00000800 CD_CAP_GETIMAGERGB = 0x00001000 CD_CAP_IMAGESRV = 0x00002000 CD_CAP_BACKGROUND = 0x00004000 CD_CAP_BACKOPACITY = 0x00008000 CD_CAP_WRITEMODE = 0x00010000 CD_CAP_LINESTYLE = 0x00020000 CD_CAP_LINEWITH = 0x00040000 CD_CAP_FPRIMTIVES = 0x00080000 CD_CAP_HATCH = 0x00100000 CD_CAP_STIPPLE = 0x00200000 CD_CAP_PATTERN = 0x00400000 CD_CAP_FONT = 0x00800000 CD_CAP_FONTDIM = 0x01000000 CD_CAP_TEXTSIZE = 0x02000000 CD_CAP_TEXTORIENTATION = 0x04000000 CD_CAP_PALETTE = 0x08000000 CD_CAP_LINECAP = 0x10000000 CD_CAP_LINEJOIN = 0x20000000 CD_CAP_PATH = 0x40000000 CD_CAP_BEZIER = 0x80000000 CD_CAP_ALL = 0xFFFFFFFF /* Context Types */ CD_CTX_WINDOW = 0 CD_CTX_DEVICE = 1 CD_CTX_IMAGE = 2 CD_CTX_FILE = 3 /* cdPlay definitions enum CD_SIZECB = 0; /* size callback */ //alias cdSizeCB = int function(canvas cdCanvasPtr, w int, h int, double w_mm, double h_mm) nothrow; */ CD_ABORT = 1 CD_CONTINUE = 0 /* simulation flags */ CD_SIM_NONE = 0x0000 CD_SIM_LINE = 0x0001 CD_SIM_RECT = 0x0002 CD_SIM_BOX = 0x0004 CD_SIM_ARC = 0x0008 CD_SIM_SECTOR = 0x0010 CD_SIM_CHORD = 0x0020 CD_SIM_POLYLINE = 0x0040 CD_SIM_POLYGON = 0x0080 CD_SIM_TEXT = 0x0100 CD_SIM_ALL = 0xFFFF CD_SIM_LINES = (CD_SIM_LINE | CD_SIM_RECT | CD_SIM_ARC | CD_SIM_POLYLINE) CD_SIM_FILLS = (CD_SIM_BOX | CD_SIM_SECTOR | CD_SIM_CHORD | CD_SIM_POLYGON) /* some predefined colors for convenience */ CD_RED = 0x0FF0000 /* 255, 0, 0 */ CD_DARK_RED = 0x0800000 /* 128, 0, 0 */ CD_GREEN = 0x000FF00 /* 0,255, 0 */ CD_DARK_GREEN = 0x0008000 /* 0,128, 0 */ CD_BLUE = 0x00000FF /* 0, 0,255 */ CD_DARK_BLUE = 0x0000080 /* 0, 0,128 */ CD_YELLOW = 0x0FFFF00 /* 255,255, 0 */ CD_DARK_YELLOW = 0x0808000 /* 128,128, 0 */ CD_MAGENTA = 0x0FF00FF /* 255, 0,255 */ CD_DARK_MAGENTA = 0x0800080 /* 128, 0,128 */ CD_CYAN = 0x000FFFF /* 0,255,255 */ CD_DARK_CYAN = 0x0008080 /* 0,128,128 */ CD_WHITE = 0x0FFFFFF /* 255,255,255 */ CD_BLACK = 0x0000000 /* 0, 0, 0 */ CD_DARK_GRAY = 0x0808080 /* 128,128,128 */ CD_GRAY = 0x0C0C0C0 /* 192,192,192 */ /* some usefull conversion factors */ CD_MM2PT = 2.834645669 /* milimeters to points (pt = CD_MM2PT * mm) */ CD_RAD2DEG = 57.295779513 /* radians to degrees (deg = CD_RAD2DEG * rad) */ CD_DEG2RAD = 0.01745329252 /* degrees to radians (rad = CD_DEG2RAD * deg) */ /* paper sizes */ CD_A0 = 0 CD_A1 = 1 CD_A2 = 2 CD_A3 = 3 CD_A4 = 4 CD_A5 = 5 CD_LETTER = 6 CD_LEGAL = 7 CD_CGMCOUNTERCB = 1 CD_CGMSCLMDECB = 2 CD_CGMVDCEXTCB = 3 CD_CGMBEGPICTCB = 4 CD_CGMBEGPICTBCB = 5 CD_CGMBEGMTFCB = 6 /* OLD definitions, defined for backward compatibility */ CDPLAY_ABORT = CD_ABORT CDPLAY_GO = CD_CONTINUE CD_SPLINE = (CD_POLYCUSTOM+0) CD_FILLSPLINE = (CD_POLYCUSTOM+1) CD_FILLGRADIENT = (CD_POLYCUSTOM+2) ) /************************************************************************/ /* Main API */ /************************************************************************/ pub fn C.IupOpen (/*argc: ADDRESS; argv: ADDRESS*/) int //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/sys_guide.html
https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupopen.html */ pub fn C.IupClose () /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/sys_guide.html
https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupclose.html */ pub fn C.IupImageLibOpen () /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/iupimglib.html */ pub fn C.IupMainLoop () int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupmainloop.html */ pub fn C.IupLoopStep () int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuploopstep.html */ pub fn C.IupLoopStepWait () int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuploopstep.html */ pub fn C.IupMainLoopLevel () int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupmainlooplevel.html */ pub fn C.IupFlush () /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupflush.html */ pub fn C.IupExitLoop () /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupexitloop.html */ pub fn C.IupRecordInput(filename byteptr, mode int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuprecordinput.html */ pub fn C.IupPlayInput(filename byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupplayinput.html */ pub fn C.IupUpdate (ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupupdate.html */ pub fn C.IupUpdateChildren(ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupupdate.html */ pub fn C.IupRedraw (ih IhandlePtr, children int) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupredraw.html */ pub fn C.IupRefresh (ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuprefresh.html */ pub fn C.IupRefreshChildren(ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuprefreshchildren.html */ pub fn C.IupExecute (filename byteptr, parameters byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupexecute.html */ pub fn C.IupExecuteWait (filename byteptr, parameters byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupexecutewait.html */ pub fn C.IupHelp (url byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuphelp.html */ pub fn C.IupLog(typ byteptr, format byteptr) //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuplog.html */ pub fn C.IupLoad (filename byteptr) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupload.html */ pub fn C.IupLoadBuffer (buffer byteptr) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupload.html */ pub fn C.IupVersion () /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupversion.html */ pub fn C.IupVersionDate () /* See_Also: undocumented */ pub fn C.IupVersionNumber () int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupversion.html */ pub fn C.IupSetLanguage (lng byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetlanguage.html */ pub fn C.IupGetLanguage () charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetlanguage.html */ pub fn C.IupSetLanguageString(name byteptr, str byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetlanguagestring.html */ pub fn C.IupStoreLanguageString(name byteptr, str byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetlanguagestring.html */ pub fn C.IupGetLanguageString(name byteptr) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetlanguagestring.html */ pub fn C.IupSetLanguagePack(ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetlanguagepack.html */ pub fn C.IupDestroy (ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupdestroy.html */ pub fn C.IupDetach (child IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupdetach.html */ pub fn C.IupAppend (ih IhandlePtr, child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupappend.html */ pub fn C.IupInsert (ih IhandlePtr, ref_child IhandlePtr, child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupinsert.html */ pub fn C.IupGetChild (ih IhandlePtr, pos int) voidptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetchild.html */ pub fn C.IupGetChildPos (ih IhandlePtr, child IhandlePtr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetchildpos.html */ pub fn C.IupGetChildCount (ih IhandlePtr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetchildcount.html */ pub fn C.IupGetNextChild (ih IhandlePtr, child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetnextchild.html */ pub fn C.IupGetBrother (ih IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetbrother.html */ pub fn C.IupGetParent (ih IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetparent.html */ pub fn C.IupGetDialog (ih IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetdialog.html */ pub fn C.IupGetDialogChild(ih IhandlePtr, name byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetdialogchild.html */ pub fn C.IupReparent (ih IhandlePtr, new_parent IhandlePtr, ref_child IhandlePtr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupreparent.html */ pub fn C.IupPopup (ih IhandlePtr, x, y int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppopup.html */ pub fn C.IupShow (ih IhandlePtr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupshow.html */ pub fn C.IupShowXY (ih IhandlePtr, x, y int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupshowxy.html */ pub fn C.IupHide (ih IhandlePtr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuphide.html */ pub fn C.IupMap (ih IhandlePtr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupmap.html */ pub fn C.IupUnmap (ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupunmap.html */ pub fn C.IupResetAttribute(ih IhandlePtr, name byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupresetattribute.html */ pub fn C.IupGetAllAttributes(ih IhandlePtr, names charptr, n int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetallattributes.html */ pub fn C.IupSetAtt(handle_name byteptr, ih IhandlePtr, name byteptr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetatt.html */ pub fn C.IupSetAttributes (ih IhandlePtr, str byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattributes.html */ pub fn C.IupGetAttributes (ih IhandlePtr) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattributes.html */ pub fn C.IupSetAttribute (ih IhandlePtr, name byteptr, value byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib_guide.html
https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetStrAttribute(ih IhandlePtr, name byteptr, value byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetStrf (ih IhandlePtr, name byteptr, format byteptr) //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetInt (ih IhandlePtr, name byteptr, value int) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetFloat (ih IhandlePtr, name byteptr, value f32) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetDouble (ih IhandlePtr, name byteptr, value f64) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetRGB (ih IhandlePtr, name byteptr, r, g, b byte) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupGetAttribute(ih IhandlePtr, name byteptr) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib_guide.html
https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetInt (ih IhandlePtr, name byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetInt2 (ih IhandlePtr, name byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetIntInt (ih IhandlePtr, name byteptr, i1 &int, i2 &int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetFloat (ih IhandlePtr, name byteptr) f32 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetDouble (ih IhandlePtr, name byteptr) f64 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetRGB (ih IhandlePtr, name byteptr, r &byte, g &byte, b &byte) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupSetAttributeId(ih IhandlePtr, name byteptr, id int, value byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetStrAttributeId(ih IhandlePtr, name byteptr, id int, value byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetStrfId(ih IhandlePtr, name byteptr, id int, format byteptr) //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetIntId(ih IhandlePtr, name byteptr, id int, value int) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetFloatId(ih IhandlePtr, name byteptr, id int, value f32) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetDoubleId(ih IhandlePtr, name byteptr, id int, value f64) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetRGBId(ih IhandlePtr, name byteptr, id int, r, g, b byte) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupGetAttributeId(ih IhandlePtr, name byteptr, id int) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetIntId(ih IhandlePtr, name byteptr, id int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetFloatId(ih IhandlePtr, name byteptr, id int) f32 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetDoubleId(ih IhandlePtr, name byteptr, id int) f64 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetRGBId(ih IhandlePtr, name byteptr, id int, r &byte, g &byte, b &byte) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupSetAttributeId2(ih IhandlePtr, name byteptr, lin int, col int, value byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetStrAttributeId2(ih IhandlePtr, name byteptr, lin int, col int, value byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetStrfId2(ih IhandlePtr, name byteptr, lin int, col int, format byteptr) //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetIntId2(ih IhandlePtr, name byteptr, lin int, col int, value int) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetFloatId2(ih IhandlePtr, name byteptr, lin int, col int, value f32) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetDoubleId2(ih IhandlePtr, name byteptr, lin int, col int, value f64) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupSetRGBId2(ih IhandlePtr, name byteptr, lin int, col int, r, g, b byte) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattribute.html */ pub fn C.IupGetAttributeId2(ih IhandlePtr, name byteptr, lin int, col int) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetIntId2(ih IhandlePtr, name byteptr, lin int, col int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetFloatId2(ih IhandlePtr, name byteptr, lin int, col int) f32 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetDoubleId2(ih IhandlePtr, name byteptr, lin int, col int) f64 /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupGetRGBId2(ih IhandlePtr, name byteptr, lin int, col int, r &byte, g &byte, b &byte) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattribute.html */ pub fn C.IupSetGlobal (name byteptr, value byteptr) /* https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_globals.html
See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetglobal.html */ pub fn C.IupSetStrGlobal(name byteptr, value byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetglobal.html */ pub fn C.IupGetGlobal (name byteptr) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/attrib/iup_globals.html
https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetglobal.html */ pub fn C.IupSetFocus (ih IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetfocus.html */ pub fn C.IupGetFocus () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetfocus.html */ pub fn C.IupPreviousField(ih IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuppreviousfield.html */ pub fn C.IupNextField (ih IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupnextfield.html */ pub fn C.IupGetCallback (ih IhandlePtr, name &byteptr) //[EXPORT, OScall]; /*[EXPORT, OScall]*//* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetcallback.html */ pub fn C.IupSetCallback (ih IhandlePtr, name byteptr, func Icallback) //[EXPORT, OScall]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetcallback.html */ pub fn C.IupSetCallbacks(ih IhandlePtr, name byteptr, func Icallback) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetcallbacks.html */ pub fn C.IupGetFunction(name &byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetfunction.html */ pub fn C.IupSetFunction(name byteptr, func Icallback) //[EXPORT, OScall]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetfunction.html */ pub fn C.IupGetHandle (name byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgethandle.html */ pub fn C.IupSetHandle (name byteptr, ih IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsethandle.html */ pub fn C.IupGetAllNames (names charptr, n int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetallnames.html */ pub fn C.IupGetAllDialogs(names charptr, n int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetalldialogs.html */ pub fn C.IupGetName (ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetname.html */ pub fn C.IupSetAttributeHandle(ih IhandlePtr, name byteptr, ih_named IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattributehandle.html */ pub fn C.IupGetAttributeHandle(ih IhandlePtr, name byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattributehandle.html */ pub fn C.IupSetAttributeHandleId(ih IhandlePtr, name byteptr, id int, ih_named IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattributehandle.html */ pub fn C.IupGetAttributeHandleId(ih IhandlePtr, name byteptr, id int) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattributehandle.html */ pub fn C.IupSetAttributeHandleId2(ih IhandlePtr, name byteptr, lin int, col int, ih_named IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetattributehandle.html */ pub fn C.IupGetAttributeHandleId2(ih IhandlePtr, name byteptr, lin int, col int) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetattributehandle.html */ pub fn C.IupGetClassName(ih IhandlePtr) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetclassname.html */ pub fn C.IupGetClassType(ih IhandlePtr) charptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetclasstype.html */ pub fn C.IupGetAllClasses(names charptr, n int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetallclasses.html */ pub fn C.IupGetClassAttributes(classname byteptr, names charptr, n int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetclassattributes.html */ pub fn C.IupGetClassCallbacks(classname byteptr, names charptr, n int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupgetclasscallbacks.html */ pub fn C.IupSaveClassAttributes(ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsaveclassattributes.html */ pub fn C.IupCopyClassAttributes(src_ih IhandlePtr, dst_ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupcopyclassattributes.html */ pub fn C.IupSetClassDefaultAttribute(classname byteptr, name byteptr, value byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsetclassdefaultattribute.html */ pub fn C.IupClassMatch(ih IhandlePtr, classname byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupclassmatch.html */ pub fn C.IupCreate (classname byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupcreate.html */ pub fn C.IupCreatev(classname byteptr, params byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupcreate.html */ pub fn C.IupCreatep(classname byteptr, first byteptr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupcreate.html */ /************************************************************************/ /* Elements */ /************************************************************************/ pub fn C.IupFill () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupfill.html */ pub fn C.IupSpace () IhandlePtr pub fn C.IupRadio (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupradio.html */ pub fn C.IupVbox (child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupvbox.html */ pub fn C.IupVboxv (children []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupvbox.html */ pub fn C.IupZbox (child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupzbox.html */ pub fn C.IupZboxv (children []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupzbox.html */ pub fn C.IupHbox (child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuphbox.html */ pub fn C.IupHboxv (children []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuphbox.html */ pub fn C.IupNormalizer (ih_first IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupnormalizer.html */ pub fn C.IupNormalizerv(ih_list []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupnormalizer.html */ pub fn C.IupCbox (child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupcbox.html */ pub fn C.IupCboxv (children []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupcbox.html */ pub fn C.IupSbox (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupsbox.html */ pub fn C.IupSplit (child1 IhandlePtr, child2 IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupsplit.html */ pub fn C.IupScrollBox (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupscrollbox.html */ pub fn C.IupFlatScrollBox(child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupflatscrollbox.html */ pub fn C.IupGridBox (child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupgridbox.html */ pub fn C.IupGridBoxv (children []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupgridbox.html */ pub fn C.IupExpander (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupexpander.html */ pub fn C.IupDetachBox (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupdetachbox.html */ pub fn C.IupBackgroundBox(child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupbackgroundbox.html */ pub fn C.IupFrame (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupframe.html */ pub fn C.IupFlatFrame (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupflatframe.html */ pub fn C.IupImage (width int, height int, pixmap []byte) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupimage.html */ pub fn C.IupImageRGB (width int, height int, pixmap []byte) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupimage.html */ pub fn C.IupImageRGBA (width int, height int, pixmap []byte) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupimage.html */ pub fn C.IupItem (title byteptr, action byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupitem.html */ pub fn C.IupSubmenu (title byteptr, child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupsubmenu.html */ pub fn C.IupSeparator () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupseparator.html */ pub fn C.IupMenu (child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupmenu.html */ pub fn C.IupMenuv (children []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupmenu.html */ pub fn C.IupButton (title byteptr, action byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupbutton.html */ pub fn C.IupFlatButton (title byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupflatbutton.html */ pub fn C.IupFlatToggle (title byteptr) IhandlePtr pub fn C.IupDropButton (dropchild IhandlePtr) IhandlePtr pub fn C.IupFlatLabel (title byteptr) IhandlePtr pub fn C.IupFlatSeparator() IhandlePtr pub fn C.IupCanvas (action byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupcanvas.html */ pub fn C.IupDialog (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupdialog.html */ pub fn C.IupUser () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupuser.html */ pub fn C.IupLabel (title byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuplabel.html */ pub fn C.IupList (action byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuplist.html */ pub fn C.IupText (action byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptext.html */ pub fn C.IupMultiLine (action byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupmultiline.html */ pub fn C.IupToggle (title byteptr, action byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptoggle.html */ pub fn C.IupTimer () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptimer.html */ pub fn C.IupClipboard () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupclipboard.html */ pub fn C.IupProgressBar() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/.../iupprogressbar.html */ pub fn C.IupVal (typ byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupval.html */ pub fn C.IupTabs (child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptabs.html */ pub fn C.IupTabsv (children mut []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptabs.html */ pub fn C.IupFlatTabs (first IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupflattabs.html */ pub fn C.IupFlatTabsv (children mut []IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupflattabs.html */ pub fn C.IupTree () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptree.html */ pub fn C.IupLink (url byteptr, title byteptr) IhandlePtr /* See_Also: webserver2.tecgraf.puc-rio.br/iup/en/elem/iuplink.html */ pub fn C.IupAnimatedLabel(animation IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/.../iupanimatedlabel.html */ pub fn C.IupDatePick () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupdatepick.html */ pub fn C.IupCalendar () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupcalendar.html */ pub fn C.IupColorbar () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupcolorbar.html */ pub fn C.IupGauge () IhandlePtr /* See_Also: undocumented */ pub fn C.IupDial (typ byteptr) IhandlePtr /* See_Also: http:/*ebserver2.tecgraf.puc-rio.br/iup/en/elem/iupdial.html */ */ pub fn C.IupColorBrowser() IhandlePtr /* See_Also: http:/*ebserver2.tecgraf.puc-rio.br/iup/en/elem/iupcolorbrowser.html */ */ /* Old controls, use SPIN attribute of IupText */ pub fn C.IupSpin () IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupspin.html */ pub fn C.IupSpinbox (child IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupspin.html */ /************************************************************************/ /* Utilities */ /************************************************************************/ /* byteptr compare utility */ pub fn C.IupStringCompare(str1 byteptr, str2 byteptr, casesensitive, lexicographic int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupstringcompare.html */ /* IupImage utility */ pub fn C.IupSaveImageAsText(ih Ihandle, file_name byteptr, format byteptr, name byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupsaveimageastext.html */ /* IupText and IupScintilla utilities */ pub fn C.IupTextConvertLinColToPos(ih IhandlePtr, lin int, col int, pos &int) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptext.html */ pub fn C.IupTextConvertPosToLinCol(ih IhandlePtr, pos int, lin &int, col &int) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptext.html */ /* IupText, IupList, IupTree, IupMatrix and IupScintilla utility */ pub fn C.IupConvertXYToPos(ih Ihandle, x, y int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupconvertxytopos.html */ /* OLD names, kept for backward compatibility, will never be removed. */ pub fn C.IupStoreGlobal(name byteptr, value byteptr) pub fn C.IupStoreAttribute(ih Ihandle, name byteptr, value byteptr) pub fn C.IupSetfAttribute(ih Ihandle, name byteptr, format byteptr) //[VARIABLE, msCdecl]; pub fn C.IupStoreAttributeId(ih Ihandle, name byteptr, id int, value byteptr) pub fn C.IupSetfAttributeId(ih Ihandle, name byteptr, id int, f byteptr) //[VARIABLE, msCdecl]; pub fn C.IupStoreAttributeId2(ih Ihandle, name byteptr, lin int, col int, value byteptr) pub fn C.IupSetfAttributeId2(ih Ihandle, name byteptr, lin int, col int, format byteptr) //[VARIABLE, msCdecl]; /* IupTree utilities */ pub fn C.IupTreeSetUserId(ih Ihandle, id int, userid []byte) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptree.html */ pub fn C.IupTreeGetUserId(ih Ihandle, id int) voidptr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptree.html */ pub fn C.IupTreeGetId(ih Ihandle, userid []byte) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iuptree.html */ /*deprecated("use IupSetAttributeHandleId")*/ pub fn C.IupTreeSetAttributeHandle(ih Ihandle, name byteptr, id int, ih_named IhandlePtr) /************************************************************************/ /* Pre-definided dialogs */ /************************************************************************/ pub fn C.IupFileDlg() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupfiledlg.html */ pub fn C.IupMessageDlg() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupmessagedlg.html */ pub fn C.IupColorDlg() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupcolordlg.html */ pub fn C.IupFontDlg() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupfontdlg.html */ pub fn C.IupProgressDlg() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupprogressdlg.html */ pub fn C.IupGetFile(arq byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupgetfile.html */ pub fn C.IupMessage(title, msg byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupmessage.html */ pub fn C.IupMessagef(title, format byteptr) //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupmessage.html */ pub fn C.IupMessageError(parent IhandlePtr, message byteptr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupmessageerror.html */ pub fn C.IupMessageAlarm(parent IhandlePtr, title, message, buttons byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupmessagealarm.html */ pub fn C.IupAlarm(title, msg, b1, b2, b3 byteptr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupalarm.html */ pub fn C.IupScanf(format byteptr) int //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupscanf.html */ pub fn C.IupListDialog(typ int, title byteptr, size int, list []byte, op, max_col, max_lin int, marks &int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iuplistdialog.html */ pub fn C.IupGetText(title byteptr, text &byteptr, maxsize int) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupgettext.html */ pub fn C.IupGetColor(x, y int, r, g, b mut []byte) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupgetcolor.html */ /*lias Iparamcb = int function(Ihandle* dialog, int param_index, void* user_data) nothrow; */ pub fn C.IupGetParam(title byteptr, action Iparamcb, user_data mut []byte, format byteptr) int //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupgetparam.html */ pub fn C.IupGetParamv(title byteptr, action Iparamcb, user_data mut []byte, format byteptr, param_count, param_extra int, param_data mut []byte) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupgetparam.html */ pub fn C.IupParam(format byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparam.html */ pub fn C.IupParamBox(param IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ pub fn C.IupParamBoxv(param_array mut []Ihandle) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/elem/iupparambox.html */ pub fn C.IupLayoutDialog(dialog IhandlePtr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/.../iuplayoutdialog.html */ pub fn C.IupElementPropertiesDialog(elem Ihandle) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupelementpropdialog.html */ pub fn C.IupConfigLoad(ih IhandlePtr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupconfig.html */ pub fn C.IupConfigSave(ih IhandlePtr) int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupconfig.html */ /****************************************************************/ pub fn C.IupConfigSetVariableStr(ih IhandlePtr, group, key, value byteptr) pub fn C.IupConfigSetVariableStrId(ih IhandlePtr, group, key byteptr, id int, value byteptr) pub fn C.IupConfigSetVariableInt(ih IhandlePtr, group, key byteptr, value int) pub fn C.IupConfigSetVariableIntId(ih IhandlePtr, group, key byteptr, id int, value int) pub fn C.IupConfigSetVariableDouble(ih IhandlePtr, group, key byteptr, value f64) pub fn C.IupConfigSetVariableDoubleId(ih IhandlePtr, group, key byteptr, id int, value f64) pub fn C.IupConfigGetVariableStr(ih IhandlePtr, group, key byteptr) charptr pub fn C.IupConfigGetVariableStrId(ih IhandlePtr, group, key byteptr, id int) charptr pub fn C.IupConfigGetVariableInt(ih IhandlePtr, group, key byteptr) int pub fn C.IupConfigGetVariableIntId(ih IhandlePtr, group, key byteptr, id int) int pub fn C.IupConfigGetVariableDouble(ih IhandlePtr, group, key byteptr) f64 pub fn C.IupConfigGetVariableDoubleId(ih IhandlePtr, group, key byteptr, id int) f64 pub fn C.IupConfigGetVariableStrDef(ih IhandlePtr, group, key, def byteptr) charptr pub fn C.IupConfigGetVariableStrIdDef(ih IhandlePtr, group, key byteptr, id int, def byteptr) charptr pub fn C.IupConfigGetVariableIntDef(ih IhandlePtr, group, key byteptr, def int) int pub fn C.IupConfigGetVariableIntIdDef(ih IhandlePtr, group, key byteptr, id, def int) int pub fn C.IupConfigGetVariableDoubleDef(ih IhandlePtr, group, key byteptr, def f64) f64 pub fn C.IupConfigGetVariableDoubleIdDef(ih IhandlePtr, group, key byteptr, id int, def f64) f64 pub fn C.IupConfigCopy(ih1, ih2 IhandlePtr, exclude_prefix byteptr) /****************************************************************/ pub fn C.IupConfigSetListVariable(ih IhandlePtr, group, key, value byteptr, add int) pub fn C.IupConfigRecentInit(ih IhandlePtr, menu IhandlePtr, recent_cb Icallback, max_recent int) pub fn C.IupConfigRecentUpdate(ih IhandlePtr, filename byteptr) pub fn C.IupConfigDialogShow(ih, dialog IhandlePtr, name &byteptr) pub fn C.IupConfigDialogClosed(ih, dialog IhandlePtr, name &byteptr) pub fn C.IupConfig() IhandlePtr /* Initialize IupMglPlot widget class */ pub fn C.IupMglPlotOpen() /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iup_mglplot.html */ /* Create an IupMglPlot widget instance */ pub fn C.IupMglPlot() IhandlePtr /***********************************************/ /* Additional API */ /* Linear Data Only */ pub fn C.IupMglPlotBegin(ih IhandlePtr, dim int) pub fn C.IupMglPlotAdd1D(ih IhandlePtr, name byteptr, y f64) pub fn C.IupMglPlotAdd2D(ih IhandlePtr, x, y f64) pub fn C.IupMglPlotAdd3D(ih IhandlePtr, x, y, z f64) pub fn C.IupMglPlotEnd(ih IhandlePtr) int /* Linear (dim=1,2,3), Planar (dim=1), Volumetric (dim=1) */ pub fn IupMglPlotNewDataSet(ih IhandlePtr, dim int) int /* Linear Data Only */ pub fn C.IupMglPlotInsert1D(ih IhandlePtr, ds_index, sample_index int, names charptr, y []f64, count int) pub fn C.IupMglPlotInsert2D(ih IhandlePtr, ds_index, sample_index int, x, y []f64, count int) pub fn C.IupMglPlotInsert3D(ih IhandlePtr, ds_index, sample_index int, x, y, z []f64, count int) /* Linear Data Only */ pub fn C.IupMglPlotSet1D(ih IhandlePtr, ds_index int, names charptr, y &f64, count int) pub fn C.IupMglPlotSet2D(ih IhandlePtr, ds_index int, x, y []f64, count int) pub fn C.IupMglPlotSet3D(ih IhandlePtr, ds_index int, x, y, z []f64, count int) pub fn C.IupMglPlotSetFormula(ih IhandlePtr, ds_index int, formulaX, formulaY, formulaZ byteptr, count int) /* Linear (dim=1), Planar (dim=1), Volumetric (dim=1) */ pub fn C.IupMglPlotSetData(ih IhandlePtr, ds_index int, data voidptr, count_x, count_y, count_z int) pub fn C.IupMglPlotLoadData(ih IhandlePtr, ds_index int, filename byteptr, count_x, count_y, count_z int) pub fn C.IupMglPlotSetFromFormula(ih IhandlePtr, ds_index int, formula byteptr, count_x, count_y, count_z int) /* Only inside callbacks */ pub fn C.IupMglPlotTransform(ih IhandlePtr, x, y, z f64, ix, iy []int) pub fn C.IupMglPlotTransformTo(ih IhandlePtr, ix, iy int, x, y, z []f64) /* Only inside callbacks */ pub fn C.IupMglPlotDrawMark(ih IhandlePtr, x, y, z f64) pub fn C.IupMglPlotDrawLine(ih IhandlePtr, x1, y1, z1, x2, y2, z2 f64) pub fn C.IupMglPlotDrawText(ih IhandlePtr, text byteptr, x, y, z f64) pub fn C.IupMglPlotPaintTo(ih IhandlePtr, format byteptr, w, h int, dpi f64, data voidptr) /***********************************************/ /* Utility label for showing TeX labels */ pub fn C.IupMglLabel(title byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iup_mgllabel.html */ /* Initialize IupPlot widget class */ pub fn C.IupPlotOpen() /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iup_plot.html */ /* Create an IupPlot widget instance */ pub fn C.IupPlot() IhandlePtr /***********************************************/ /* Additional API */ pub fn C.IupPlotBegin(ih IhandlePtr, strXdata int) pub fn C.IupPlotAdd(ih IhandlePtr, x, y f64) pub fn C.IupPlotAddStr(ih IhandlePtr, x byteptr, y f64) pub fn C.IupPlotAddSegment(ih IhandlePtr, x, y f64) pub fn C.IupPlotEnd(ih IhandlePtr) int pub fn C.IupPlotLoadData(ih IhandlePtr, filename byteptr, strXdata int) int /* available only when linking with "iupluaplot" */ /*int IupPlotSetFormula(ih IhandlePtr, int sample_count, const(char)* formula, const(char)* init) */ pub fn C.IupPlotInsert(ih IhandlePtr, ds_index, sample_index int, x, y f64) pub fn C.IupPlotInsertStr(ih IhandlePtr, ds_index, sample_index int, x byteptr, y f64) pub fn C.IupPlotInsertSegment(ih IhandlePtr, ds_index, sample_index int, x, y f64) pub fn C.IupPlotInsertStrSamples(ih IhandlePtr, ds_index, sample_index int, x charptr, y []f64, count int) pub fn C.IupPlotInsertSamples(ih IhandlePtr, ds_index, sample_index int, x, y []f64, count int) pub fn C.IupPlotAddSamples(ih IhandlePtr, ds_index int, x, y []f64, count int) pub fn C.IupPlotAddStrSamples(ih IhandlePtr, ds_index int, x charptr, y []f64, count int) pub fn C.IupPlotGetSample(ih IhandlePtr, ds_index, sample_index int, x, y []f64) pub fn C.IupPlotGetSampleStr(ih IhandlePtr, ds_index, sample_index int, x charptr, y []f64) pub fn C.IupPlotGetSampleSelection(ih IhandlePtr, ds_index, sample_index int) int pub fn C.IupPlotGetSampleExtra(ih IhandlePtr, ds_index, sample_index int) f64 pub fn C.IupPlotSetSample(ih IhandlePtr, ds_index, sample_index int, x, y f64) pub fn C.IupPlotSetSampleStr(ih IhandlePtr, ds_index, sample_index int, x byteptr, y f64) pub fn C.IupPlotSetSampleSelection(ih IhandlePtr, ds_index, sample_index, selected int) pub fn C.IupPlotSetSampleExtra(ih IhandlePtr, ds_index, sample_index int, extra f64) pub fn C.IupPlotTransform(ih IhandlePtr, x, y f64, cnv_x, cnv_y []f64) pub fn C.IupPlotTransformTo(ih IhandlePtr, cnv_x, cnv_y f64, x, y []f64) pub fn C.IupPlotFindSample(ih IhandlePtr, cnv_x, cnv_y f64, ds_index, sample_index []int) int pub fn C.IupPlotFindSegment(ih IhandlePtr, cnv_x, cnv_y f64, ds_index, sample_index1, sample_index2 []int) int pub fn C.IupPlotPaintTo(ih IhandlePtr, cnv cdCanvasPtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iup_plot.html */ pub fn C.IupScintillaOpen() /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iup_scintilla.html */ pub fn C.IupScintilla() IhandlePtr pub fn C.IupScintillaDlg() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupscintilladlg.html */ pub fn C.IupScintillaSendMessage(ih IhandlePtr, iMessage u32, wParam, lParam int) int pub fn C.IupControlsOpen() int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/iupcontrols.html */ pub fn C.IupCells() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupcells.html */ pub fn C.IupMatrix(action byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupmatrix.html */ pub fn C.IupMatrixList() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupmatrixlist.html */ pub fn C.IupMatrixEx() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupmatrixex.html */ /* available only when linking with "iupluamatrix" * / void IupMatrixSetFormula(ih IhandlePtr, col int, const(char)* formula, const(char)* init) void IupMatrixSetDynamic(ih IhandlePtr, const(char)* init) */ /* all functions can be used only in IUP canvas and inside the ACTION callback */ pub fn C.IupDrawBegin(ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupdraw.html */ pub fn C.IupDrawEnd(ih IhandlePtr) /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iupdraw.html */ /* all functions can be called only between calls to Begin and End */ pub fn C.IupDrawSetClipRect(ih IhandlePtr, x1, y1, x2, y2 int) pub fn C.IupDrawGetClipRect(ih IhandlePtr, x1, y1, x2, y2 []int) pub fn C.IupDrawResetClip(ih IhandlePtr) /* color controlled by the attribute DRAWCOLOR */ /* line style or fill controlled by the attribute DRAWSTYLE */ pub fn C.IupDrawParentBackground(ih IhandlePtr) pub fn C.IupDrawLine(ih IhandlePtr, x1, y1, x2, y2 int) pub fn C.IupDrawRectangle(ih IhandlePtr, x1, y1, x2, y2 int) pub fn C.IupDrawArc(ih IhandlePtr, x1, y1, x2, y2 int, a1, a2 f64) pub fn C.IupDrawPolygon(ih IhandlePtr, points []int, count int) pub fn C.IupDrawText(ih IhandlePtr, text byteptr, len, x, y, w, h int) /* signature changed from 3.24 to 3.25 */ pub fn C.IupDrawImage(ih IhandlePtr, name byteptr, x, y, w, h int) /* signature changed from 3.24 to 3.25 */ pub fn C.IupDrawSelectRect(ih IhandlePtr, x1, y1, x2, y2 int) pub fn C.IupDrawFocusRect(ih IhandlePtr, x1, y1, x2, y2 int) pub fn C.IupDrawGetSize(ih IhandlePtr, w &int, h &int) pub fn C.IupDrawGetTextSize(ih IhandlePtr, text &byteptr, len int, w &int, h &int) /* signature changed from 3.24 to 3.25 */ pub fn C.IupDrawGetImageInfo(name byteptr, w &int, h &int, bpp &int) /*module iup.iupdraw_cd; version(CD) : /* without CD-binding, type cdContext is unknown */ import cd.cd : cdContext; extern(C) @nogc nothrow : cdContext* cdContextIupDraw() alias CD_IUPDRAW = cdContextIupDraw; */ pub fn C.IupGLCanvasOpen() /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupglcanvas.html */ pub fn C.IupGLCanvas(action byteptr) IhandlePtr pub fn C.IupGLBackgroundBox(child IhandlePtr) IhandlePtr pub fn C.IupGLMakeCurrent(ih IhandlePtr) pub fn C.IupGLIsCurrent(ih IhandlePtr) int pub fn C.IupGLSwapBuffers(ih IhandlePtr) pub fn C.IupGLPalette(ih IhandlePtr, index int, r, g, b f32) pub fn C.IupGLUseFont(ih IhandlePtr, first, count, list_base int) pub fn C.IupGLWait(gl int) pub fn C.IupGLControlsOpen() int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/iupglcontrols.html */ pub fn C.IupGLCanvasBoxv(children IhandlePtr) IhandlePtr pub fn C.IupGLCanvasBox(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupGLSubCanvas() IhandlePtr pub fn C.IupGLLabel(title byteptr) IhandlePtr pub fn C.IupGLSeparator() IhandlePtr pub fn C.IupGLButton(title byteptr) IhandlePtr pub fn C.IupGLToggle(title byteptr) IhandlePtr pub fn C.IupGLLink(url byteptr, title byteptr) IhandlePtr pub fn C.IupGLProgressBar() IhandlePtr pub fn C.IupGLVal() IhandlePtr pub fn C.IupGLFrame(child IhandlePtr) IhandlePtr pub fn C.IupGLExpander(child IhandlePtr) IhandlePtr pub fn C.IupGLScrollBox(child IhandlePtr) IhandlePtr pub fn C.IupGLSizeBox(child IhandlePtr) IhandlePtr pub fn C.IupGLText() IhandlePtr /* Utilities */ pub fn C.IupGLDrawImage(ih IhandlePtr, name byteptr, x, y, active int) pub fn C.IupGLDrawText(ih IhandlePtr, str byteptr, len, x, y int) pub fn C.IupGLDrawGetTextSize(ih IhandlePtr, str byteptr, w &int, h &int) pub fn C.IupGLDrawGetImageInfo(name byteptr, w &int, h &int, bpp &int) pub fn C.IupLoadImage(file_name byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/iupim.html */ pub fn C.IupSaveImage(ih IhandlePtr, file_name byteptr, format byteptr) int pub fn C.IupLoadAnimation(file_name byteptr) IhandlePtr pub fn C.IupLoadAnimationFrames(file_name_list charptr, file_count int) IhandlePtr /* version(IM) { /* without IM-binding, type imImage is unknown */ import im.im_image : imImage; imImage* IupGetNativeHandleImage(void* handle) /* in libiupim.so */ void* IupGetImageNativeHandle(const(imImage)* image) /* in libiupim.so */ Ihandle* IupImageFromImImage(const(imImage)* image) /* in libiupim.so */ imImage* IupImageToImImage(Ihandle* iup_image) } */ pub fn C.IupOleControl(progid byteptr) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupole.html */ pub fn C.IupOleControlOpen() int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupole.html */ pub fn C.IupTuioOpen() int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iuptuio.html */ pub fn C.IupTuioClient(port int) IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iuptuio.html */ pub fn C.IupWebBrowserOpen() int /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupweb.html */ pub fn C.IupWebBrowser() IhandlePtr /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupweb.html */ pub fn C.IupLogV(typ, format byteptr) //[VARIABLE, msCdecl]; /* See_Also: https://webserver2.tecgraf.puc-rio.br/iup/en/func/iuplog.html */ pub fn C.IupSetAttV(handle_name byteptr, ih IhandlePtr, name byteptr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupSetStrfV(ih IhandlePtr, name byteptr, format byteptr) //[VARIABLE, msCdecl]; pub fn C.IupSetStrfIdV(ih IhandlePtr, name byteptr, id int, format byteptr) //[VARIABLE, msCdecl]; pub fn C.IupSetStrfId2V(ih IhandlePtr, name byteptr, lin int, col int, format byteptr) //[VARIABLE, msCdecl]; pub fn C.IupSetCallbacksV(ih IhandlePtr, name byteptr, func Icallback) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupCreateV(classname byteptr, first voidptr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupVboxV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupZboxV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupHboxV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupNormalizerV(ih_first IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupCboxV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupGridBoxV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupMenuV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupTabsV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupFlatTabsV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupMessageV(title byteptr, format byteptr, arg...byteptr) //[VARIABLE, msCdecl]; pub fn C.IupParamBoxV(param IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub fn C.IupGetParamV(title byteptr, action Iparamcb, user_data voidptr, format byteptr) int //[VARIABLE, msCdecl]; pub fn C.IupGLCanvasBoxV(child IhandlePtr) IhandlePtr //[VARIABLE, msCdecl]; pub type cdCallback fn(cdCanvasPtr) int //[VARIABLE, msCdecl]; pub type cdSizeCB fn(cdCanvasPtr, int, int, f64, f64) int pub type cdDrawCB fn(cdCanvasPtr) /* library */ pub fn C.cdVersion() charptr pub fn C.cdVersionDate() charptr pub fn C.cdVersionNumber() int /* canvas init */ pub fn C.cdCreateCanvas(context cdContextPtr, data voidptr) cdCanvasPtr pub fn C.cdCreateCanvasf(context cdContextPtr, format byteptr) cdCanvasPtr //[VARIABLE, msCdecl]; pub fn C.cdKillCanvas(canvas cdCanvasPtr) pub fn C.cdCanvasGetContext(canvas cdCanvasPtr) cdContextPtr pub fn C.cdCanvasActivate(canvas cdCanvasPtr) int pub fn C.cdCanvasDeactivate(canvas cdCanvasPtr) pub fn C.cdUseContextPlus(use int) int pub fn C.cdInitContextPlus() /* need an external library */ pub fn C.cdFinishContextPlus() /* need an external library */ /* context //alias cdCallback = int function(canvas cdCanvasPtr, ...) nothrow; */ pub fn C.cdContextRegisterCallback(context cdContextPtr, cb int, func cdCallback) int pub fn C.cdContextCaps(context cdContextPtr) int pub fn C.cdContextIsPlus(context cdContextPtr) int pub fn C.cdContextType(context cdContextPtr) int /* control */ pub fn C.cdCanvasSimulate(canvas cdCanvasPtr, mode int) int pub fn C.cdCanvasFlush(canvas cdCanvasPtr) pub fn C.cdCanvasClear(canvas cdCanvasPtr) pub fn C.cdCanvasSaveState(canvas cdCanvasPtr) cdStatePtr pub fn C.cdCanvasRestoreState(canvas cdCanvasPtr, state cdStatePtr) pub fn C.cdReleaseState(state cdStatePtr) pub fn C.cdCanvasSetAttribute(canvas cdCanvasPtr, name byteptr, data byteptr) pub fn C.cdCanvasSetfAttribute(canvas cdCanvasPtr, name byteptr, format byteptr) //[VARIABLE, msCdecl]; pub fn C.cdCanvasGetAttribute(canvas cdCanvasPtr, name byteptr) charptr /* interpretation */ pub fn C.cdCanvasPlay(canvas cdCanvasPtr, context cdContextPtr, xmin int, xmax int, ymin int, ymax int, data voidptr) int /* coordinate transformation */ pub fn C.cdCanvasGetSize(canvas cdCanvasPtr, width, height &int, width_mm, height_mm &f64) pub fn C.cdCanvasUpdateYAxis(canvas cdCanvasPtr, y &int) int pub fn C.cdfCanvasUpdateYAxis(canvas cdCanvasPtr, y &f64) f64 pub fn C.cdCanvasInvertYAxis(canvas cdCanvasPtr, y int) int pub fn C.cdfCanvasInvertYAxis(canvas cdCanvasPtr, y f64) f64 pub fn C.cdCanvasMM2Pixel(canvas cdCanvasPtr, mm_dx, mm_dy f64, dx, dy &int) pub fn C.cdCanvasPixel2MM(canvas cdCanvasPtr, dx, dy int, mm_dx, mm_dy &f64) pub fn C.cdfCanvasMM2Pixel(canvas cdCanvasPtr, mm_dx, mm_dy f64, dx, dy &f64) pub fn C.cdfCanvasPixel2MM(canvas cdCanvasPtr, dx f64, dy f64, mm_dx, mm_dy &f64) pub fn C.cdCanvasOrigin(canvas cdCanvasPtr, x int, y int) pub fn C.cdfCanvasOrigin(canvas cdCanvasPtr, x f64, y f64) pub fn C.cdCanvasGetOrigin(canvas cdCanvasPtr, x, y &int) pub fn C.cdfCanvasGetOrigin(canvas cdCanvasPtr, x, y &f64) pub fn C.cdCanvasTransform(canvas cdCanvasPtr, matrix &f64) pub fn C.cdCanvasGetTransform(canvas cdCanvasPtr) &f64 pub fn C.cdCanvasTransformMultiply(canvas cdCanvasPtr, matrix &f64) pub fn C.cdCanvasTransformRotate(canvas cdCanvasPtr, angle f64) pub fn C.cdCanvasTransformScale(canvas cdCanvasPtr, sx f64, sy f64) pub fn C.cdCanvasTransformTranslate(canvas cdCanvasPtr, dx f64, dy f64) pub fn C.cdCanvasTransformPoint(canvas cdCanvasPtr, x int, y int, tx, ty &int) pub fn C.cdfCanvasTransformPoint(canvas cdCanvasPtr, x f64, y f64, tx, ty &f64) /* clipping */ pub fn C.cdCanvasClip(canvas cdCanvasPtr, mode int) int pub fn C.cdCanvasClipArea(canvas cdCanvasPtr, xmin int, xmax int, ymin int, ymax int) pub fn C.cdCanvasGetClipArea(canvas cdCanvasPtr, xmin, xmax, ymin, ymax &int) int pub fn C.cdfCanvasClipArea(canvas cdCanvasPtr, xmin f64, xmax f64, ymin f64, ymax f64) pub fn C.cdfCanvasGetClipArea(canvas cdCanvasPtr, xmin, xmax, ymin, ymax &f64) int /* clipping region */ pub fn C.cdCanvasIsPointInRegion(canvas cdCanvasPtr, x int, y int) int pub fn C.cdCanvasOffsetRegion(canvas cdCanvasPtr, x int, y int) pub fn C.cdCanvasGetRegionBox(canvas cdCanvasPtr, xmin, xmax, ymin, ymax &int) pub fn C.cdCanvasRegionCombineMode(canvas cdCanvasPtr, mode int) int /* primitives */ pub fn C.cdCanvasPixel(canvas cdCanvasPtr, x int, y int, color int) pub fn C.cdCanvasMark(canvas cdCanvasPtr, x int, y int) pub fn C.cdfCanvasPixel(canvas cdCanvasPtr, x f64, y f64, color int) pub fn C.cdfCanvasMark(canvas cdCanvasPtr, x f64, y f64) pub fn C.cdCanvasBegin(canvas cdCanvasPtr, mode int) pub fn C.cdCanvasPathSet(canvas cdCanvasPtr, action int) pub fn C.cdCanvasEnd(canvas cdCanvasPtr) pub fn C.cdCanvasLine(canvas cdCanvasPtr, x1, y1, x2, y2 int) pub fn C.cdCanvasVertex(canvas cdCanvasPtr, x int, y int) pub fn C.cdCanvasRect(canvas cdCanvasPtr, xmin int, xmax int, ymin int, ymax int) pub fn C.cdCanvasBox(canvas cdCanvasPtr, xmin int, xmax int, ymin int, ymax int) pub fn C.cdCanvasArc(canvas cdCanvasPtr, xc, yc, w, h int, angle1, angle2 f64) pub fn C.cdCanvasSector(canvas cdCanvasPtr, xc, yc, w, h int, angle1, angle2 f64) pub fn C.cdCanvasChord(canvas cdCanvasPtr, xc, yc, w, h int, angle1, angle2 f64) pub fn C.cdCanvasText(canvas cdCanvasPtr, x int, y int, s byteptr) pub fn C.cdfCanvasLine(canvas cdCanvasPtr, x1 f64, y1 f64, x2 f64, y2 f64) pub fn C.cdfCanvasVertex(canvas cdCanvasPtr, x f64, y f64) pub fn C.cdfCanvasRect(canvas cdCanvasPtr, xmin f64, xmax f64, ymin f64, ymax f64) pub fn C.cdfCanvasBox(canvas cdCanvasPtr, xmin f64, xmax f64, ymin f64, ymax f64) pub fn C.cdfCanvasArc(canvas cdCanvasPtr, xc, yc, w, h, angle1, angle2 f64) pub fn C.cdfCanvasSector(canvas cdCanvasPtr, xc, yc, w, h, angle1, angle2 f64) pub fn C.cdfCanvasChord(canvas cdCanvasPtr, xc, yc, w, h, angle1, angle2 f64) pub fn C.cdfCanvasText(canvas cdCanvasPtr, x, y f64, s byteptr) /* attributes */ pub fn C.cdCanvasSetBackground(canvas cdCanvasPtr, color int) pub fn C.cdCanvasSetForeground(canvas cdCanvasPtr, color int) pub fn C.cdCanvasBackground(canvas cdCanvasPtr, color int) int pub fn C.cdCanvasForeground(canvas cdCanvasPtr, color int) int pub fn C.cdCanvasBackOpacity(canvas cdCanvasPtr, opacity int) int pub fn C.cdCanvasWriteMode(canvas cdCanvasPtr, mode int) int pub fn C.cdCanvasLineStyle(canvas cdCanvasPtr, style int) int pub fn C.cdCanvasLineStyleDashes(canvas cdCanvasPtr, dashes &int count int) pub fn C.cdCanvasLineWidth(canvas cdCanvasPtr, width int) int pub fn C.cdCanvasLineJoin(canvas cdCanvasPtr, join int) int pub fn C.cdCanvasLineCap(canvas cdCanvasPtr, cap int) int pub fn C.cdCanvasInteriorStyle(canvas cdCanvasPtr, style int) int pub fn C.cdCanvasHatch(canvas cdCanvasPtr, style int) int pub fn C.cdCanvasStipple(canvas cdCanvasPtr, w int, h int, stipple byteptr) pub fn C.cdCanvasGetStipple(canvas cdCanvasPtr, n, m &int) byteptr pub fn C.cdCanvasPattern(canvas cdCanvasPtr, w int, h int, pattern &int) pub fn C.cdCanvasGetPattern(canvas cdCanvasPtr, n, m &int) &int pub fn C.cdCanvasFillMode(canvas cdCanvasPtr, mode int) int pub fn C.cdCanvasFont(canvas cdCanvasPtr, type_face byteptr, style, size int) int pub fn C.cdCanvasGetFont(canvas cdCanvasPtr, type_face byteptr, style, size &int) pub fn C.cdCanvasNativeFont(canvas cdCanvasPtr, font byteptr) charptr pub fn C.cdCanvasTextAlignment(canvas cdCanvasPtr, alignment int) int pub fn C.cdCanvasTextOrientation(canvas cdCanvasPtr, angle f64) f64 pub fn C.cdCanvasMarkType(canvas cdCanvasPtr, typ int) int pub fn C.cdCanvasMarkSize(canvas cdCanvasPtr, size int) int /* vector text */ pub fn C.cdCanvasVectorText(canvas cdCanvasPtr, x int, y int, s byteptr) pub fn C.cdCanvasMultiLineVectorText(canvas cdCanvasPtr, x int, y int, s byteptr) /* vector text attributes */ pub fn C.cdCanvasVectorFont(canvas cdCanvasPtr, filename byteptr) charptr pub fn C.cdCanvasVectorTextDirection(canvas cdCanvasPtr, x1, y1, x2, y2 int) pub fn C.cdCanvasVectorTextTransform(canvas cdCanvasPtr, matrix &f64) &f64 pub fn C.cdCanvasVectorTextSize(canvas cdCanvasPtr, size_x, size_y int, s byteptr) pub fn C.cdCanvasVectorCharSize(canvas cdCanvasPtr, size int) int pub fn C.cdCanvasVectorFontSize(canvas cdCanvasPtr, size_x, size_y f64) pub fn C.cdCanvasGetVectorFontSize(canvas cdCanvasPtr, size_x, size_y &f64) /* vector text properties */ pub fn C.cdCanvasGetVectorTextSize(canvas cdCanvasPtr, s byteptr, x, y &int) pub fn C.cdCanvasGetVectorTextBounds(canvas cdCanvasPtr, s byteptr, x int, y int, rect &int) pub fn C.cdCanvasGetVectorTextBox(canvas cdCanvasPtr, x int, y int, s byteptr, xmin, xmax, ymin, ymax &int) pub fn C.cdfCanvasVectorTextDirection(canvas cdCanvasPtr, x1 f64, y1 f64, x2 f64, y2 f64) pub fn C.cdfCanvasVectorTextSize(canvas cdCanvasPtr, size_x, size_y f64, s byteptr) pub fn C.cdfCanvasGetVectorTextSize(canvas cdCanvasPtr, s byteptr, x, y &f64) pub fn C.cdfCanvasVectorCharSize(canvas cdCanvasPtr, size f64) f64 pub fn C.cdfCanvasVectorText(canvas cdCanvasPtr, x f64, y f64, s byteptr) pub fn C.cdfCanvasMultiLineVectorText(canvas cdCanvasPtr, x f64, y f64, s byteptr) pub fn C.cdfCanvasGetVectorTextBounds(canvas cdCanvasPtr, s byteptr, x f64, y f64, rect &f64) pub fn C.cdfCanvasGetVectorTextBox(canvas cdCanvasPtr, x f64, y f64, s byteptr, xmin, xmax, ymin, ymax &f64) /* properties */ pub fn C.cdCanvasGetFontDim(canvas cdCanvasPtr, max_width, height, ascent, descent &f64) pub fn C.cdCanvasGetTextSize(canvas cdCanvasPtr, s byteptr, width, height &f64) pub fn C.cdCanvasGetTextBox(canvas cdCanvasPtr, x int, y int, s byteptr, xmin, xmax, ymin, ymax &f64) pub fn C.cdfCanvasGetTextBox(canvas cdCanvasPtr, x f64, y f64, s byteptr, xmin, xmax, ymin, ymax &f64) pub fn C.cdCanvasGetTextBounds(canvas cdCanvasPtr, x int, y int, s byteptr, rect &int) pub fn C.cdfCanvasGetTextBounds(canvas cdCanvasPtr, x f64, y f64, s byteptr, rect &f64) pub fn C.cdCanvasGetColorPlanes(canvas cdCanvasPtr) int /* color */ pub fn C.cdCanvasPalette(canvas cdCanvasPtr, n int, palette &int, mode int) /* client images */ pub fn C.cdCanvasGetImageRGB(canvas cdCanvasPtr, r, g, b byteptr, x int, y int, iw int, ih int) pub fn C.cdCanvasPutImageRectRGB(canvas cdCanvasPtr, iw int, ih int, r, g, b byteptr, x int, y int, w int, h int, xmin int, xmax int, ymin int, ymax int) pub fn C.cdCanvasPutImageRectRGBA(canvas cdCanvasPtr, iw int, ih int, r, g, b, a byteptr, x int, y int, w int, h int, xmin int, xmax int, ymin int, ymax int) pub fn C.cdCanvasPutImageRectMap(canvas cdCanvasPtr, iw int, ih int, index byteptr, colors &int, x int, y int, w int, h int, xmin int, xmax int, ymin int, ymax int) pub fn C.cdfCanvasPutImageRectRGB(canvas cdCanvasPtr, iw int, ih int, r, g, b byteptr, x f64, y f64, w f64, h f64, xmin int, xmax int, ymin int, ymax int) pub fn C.cdfCanvasPutImageRectRGBA(canvas cdCanvasPtr, iw int, ih int, r, g, b, a byteptr, x f64, y f64, w f64, h f64, xmin int, xmax int, ymin int, ymax int) pub fn C.cdfCanvasPutImageRectMap(canvas cdCanvasPtr, iw int, ih int, index byteptr, colors &int, x f64, y f64, w f64, h f64, xmin int, xmax int, ymin int, ymax int) /* server images - deprecated (use double buffer drivers) deprecated("use double buffer drivers") { cdImage* cdCanvasCreateImage(canvas cdCanvasPtr, w int, h int) void cdKillImage(cdImage* image) void cdCanvasGetImage(canvas cdCanvasPtr, cdImage* image, x int, y int) void cdCanvasPutImageRect(canvas cdCanvasPtr, cdImage* image, x int, y int, xmin int, xmax int, ymin int, ymax int) void cdCanvasScrollArea(canvas cdCanvasPtr, xmin int, xmax int, ymin int, ymax int, int dx, int dy) } */ /* bitmap - deprecated (use imImage) deprecated("use imImage") { cdBitmap* cdCreateBitmap(w int, h int, int type) cdBitmap* cdInitBitmap(w int, h int, int type, ...) void cdKillBitmap(cdBitmap* bitmap) ubyte* cdBitmapGetData(cdBitmap* bitmap, int dataptr) void cdBitmapSetRect(cdBitmap* bitmap, xmin int, xmax int, ymin int, ymax int) void cdCanvasPutBitmap(canvas cdCanvasPtr, cdBitmap* bitmap, x int, y int, w int, h int) void cdCanvasGetBitmap(canvas cdCanvasPtr, cdBitmap* bitmap, x int, y int) void cdBitmapRGB2Map(cdBitmap* bitmap_rgb, cdBitmap* bitmap_map) } */ /* color */ pub fn C.cdEncodeColor(red, green, blue byte) int pub fn C.cdEncodeColorAlpha(red, green, blue, alpha byte) int pub fn C.cdEncodeAlpha(color int, alpha byte) int pub fn C.cdDecodeColor(color int, red, green, blue byteptr) pub fn C.cdDecodeColorAlpha(color int, red, green, blue, alpha byteptr) pub fn C.cdDecodeAlpha(color int) byte /* client image color conversion */ pub fn C.cdRGB2Map(width, height int, red, green, blue, index byteptr, pal_size int, color &int) /****************************************************************************** Copyright (C) 1994-2016 Tecgraf/PUC-Rio. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE && NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ******************************************************************************/ pub fn C.cdContextCairoNativeWindow() cdContextPtr pub fn C.cdContextCairoImage() cdContextPtr pub fn C.cdContextCairoDBuffer() cdContextPtr pub fn C.cdContextCairoPrinter() cdContextPtr pub fn C.cdContextCairoPS() cdContextPtr pub fn C.cdContextCairoPDF() cdContextPtr pub fn C.cdContextCairoSVG() cdContextPtr pub fn C.cdContextCairoImageRGB() cdContextPtr pub fn C.cdContextCairoEMF() cdContextPtr /* alias CD_CAIRO_NATIVEWINDOW = cdContextCairoNativeWindow; alias CD_CAIRO_IMAGE = cdContextCairoImage; alias CD_CAIRO_DBUFFER = cdContextCairoDBuffer; alias CD_CAIRO_PRINTER = cdContextCairoPrinter; alias CD_CAIRO_PS = cdContextCairoPS; alias CD_CAIRO_PDF = cdContextCairoPDF; alias CD_CAIRO_SVG = cdContextCairoSVG; alias CD_CAIRO_IMAGERGB = cdContextCairoImageRGB; alias CD_CAIRO_EMF = cdContextCairoEMF; */ /* pub fn C.cdContextCGM() cdContextPtr /* alias CD_CGM = cdContextCGM; */ [inline] pub fn cd_cgm() cdContextPtr { return C.cdContextCGM() } pub fn C.cdContextClipboard() cdContextPtr /* alias CD_CLIPBOARD = cdContextClipboard; */ [inline] pub fn cd_clipboard() cdContextPtr { return C.cdContextClipboard() } pub fn C.cdContextDBuffer() cdContextPtr /*alias CD_DBUFFER = cdContextDBuffer;*/ [inline] pub fn cd_dbuffer() cdContextPtr { return C.cdContextDBuffer() } pub fn C.cdContextDebug() cdContextPtr /*alias CD_DEBUG = cdContextDebug;*/ [inline] pub fn cd_debug() cdContextPtr { return C.cdContextDebug() } pub fn C.cdContextDGN() cdContextPtr /*alias CD_DGN = cdContextDGN;*/ [inline] pub fn cd_dgn() cdContextPtr { return C.cdContextDGN() } pub fn C.cdContextDXF() cdContextPtr /*alias CD_DXF = cdContextDXF;*/ [inline] pub fn cd_dxf() cdContextPtr { return C.cdContextDXF() } pub fn C.cdContextEMF() cdContextPtr /*alias CD_EMF = cdContextEMF;*/ [inline] pub fn cd_emf() cdContextPtr { return C.cdContextEMF() } pub fn C.cdInitGdiPlus() /* old function, replaced by cdInitContextPlus */ /* Windows GDI+ Additional Polygons */ pub fn C.cdContextGL() cdContextPtr /*alias CD_GL = cdContextGL;*/ [inline] pub fn cd_gl() cdContextPtr { return C.cdContextGL() } pub fn C.cdContextImImage() cdContextPtr /*alias CD_IMIMAGE = cdContextImImage;*/ [inline] pub fn cd_imimage() cdContextPtr { return C.cdContextImImage() } */ /* version(IM) { import im.im_image : imImage; pub fn cdCanvasPatternImImage(canvas cdCanvasPtr, const(imImage)* image) pub fn cdCanvasStippleImImage(canvas cdCanvasPtr, const(imImage)* image) pub fn cdCanvasPutImImage(canvas cdCanvasPtr, const(imImage)* image, x int, y int, w int, h int) pub fn cdCanvasGetImImage(canvas cdCanvasPtr, imImage* image, x int, y int) pub fn cdfCanvasPutImImage(canvas cdCanvasPtr, const(imImage)* image, x f64, y f64, w f64, h f64) pub fn wdCanvasPutImImage(canvas cdCanvasPtr, const(imImage)* image, x f64, y f64, w f64, h f64) pub fn wdCanvasGetImImage(canvas cdCanvasPtr, imImage* image, x f64, y f64) } */ /* pub fn C.cdContextImage() cdContextPtr /*alias CD_IMAGE = cdContextImage;*/ [inline] pub fn cd_image() cdContextPtr { return C.cdContextImage() } pub fn C.cdContextImageRGB() cdContextPtr pub fn C.cdContextDBufferRGB() cdContextPtr /*alias CD_IMAGERGB = cdContextImageRGB; alias CD_DBUFFERRGB = cdContextDBufferRGB;*/ [inline] pub fn cd_imagergb() cdContextPtr { return C.cdContextImageRGB() } [inline] pub fn cd_dbufferrgb() cdContextPtr { return C.cdContextDBufferRGB() } /* DEPRECATED functions, use REDIMAGE, GREENIMAGE, BLUEIMAGE, and ALPHAIMAGE attributes. deprecated("use REDIMAGE, GREENIMAGE, BLUEIMAGE, and ALPHAIMAGE attributes.") { ubyte* cdRedImage(cdCanvas* cnv) ubyte* cdGreenImage(cdCanvas* cnv) ubyte* cdBlueImage(cdCanvas* cnv) ubyte* cdAlphaImage(cdCanvas* cnv) } */ /* NOTICE: implementation done in IUP at the IUPCD library. Only this file is at the CD files. */ pub fn C.cdContextIup() cdContextPtr /* even with version=CD defined, cdContext* may not be dereferenced, as it is known only via (non-published) cd_private.d */ pub fn C.cdContextIupDBuffer() cdContextPtr pub fn C.cdContextIupDBufferRGB() cdContextPtr /*alias CD_IUP = cdContextIup; alias CD_IUPDBUFFER = cdContextIupDBuffer; alias CD_IUPDBUFFERRGB = cdContextIupDBufferRGB;*/ [inline] pub fn cd_iup() cdContextPtr { return C.cdContextIup() } [inline] pub fn cd_iupdbuffer() cdContextPtr { return C.cdContextIupDBuffer() } [inline] pub fn cd_iupdbufferrgb() cdContextPtr { return C.cdContextIupDBufferRGB() } pub fn C.cdContextMetafile() cdContextPtr /*alias CD_METAFILE = cdContextMetafile;*/ [inline] pub fn cd_metafile() cdContextPtr { return C.cdContextMetafile() } pub fn C.cdcreatecanvasMF(canvas cdCanvasPtr, data voidptr) pub fn C.cdinittableMF(canvas cdCanvasPtr) pub fn C.cdkillcanvasMF(mfcanvas cdCanvasMFPtr) pub fn C.cdContextNativeWindow() cdContextPtr /*alias CD_NATIVEWINDOW = cdContextNativeWindow;*/ [inline] pub fn cd_nativewindow() cdContextPtr { return C.cdContextNativeWindow() } pub fn C.cdGetScreenSize(width, height &int, width_mm, height_mm &f64) pub fn C.cdGetScreenColorPlanes() int pub fn C.cdContextPDF() cdContextPtr /*alias CD_PDF = cdContextPDF;*/ [inline] pub fn cd_pdf() cdContextPtr { return C.cdContextPDF() } pub fn C.cdContextPicture() cdContextPtr /*alias CD_PICTURE = cdContextPicture;*/ [inline] pub fn cd_picture() cdContextPtr { return C.cdContextPicture() } pub fn C.cdContextPPTX() cdContextPtr /*alias CD_PPTX = cdContextPPTX;*/ [inline] pub fn cd_pptx() cdContextPtr { return C.cdContextPPTX() } pub fn C.cdContextPrinter() cdContextPtr /*alias CD_PRINTER = cdContextPrinter;*/ [inline] pub fn cd_printer() cdContextPtr { return C.cdContextPrinter() } pub fn C.cdContextPS() cdContextPtr /*alias CD_PS = cdContextPS;*/ [inline] pub fn cd_ps() cdContextPtr { return C.cdContextPS() } pub fn C.cdContextSVG() cdContextPtr /*alias CD_SVG = cdContextSVG;*/ [inline] pub fn cd_svg() cdContextPtr { return C.cdContextSVG() } pub fn C.cdContextWMF() cdContextPtr /*alias CD_WMF = cdContextWMF;*/ [inline] pub fn cd_wmf() cdContextPtr { return C.cdContextWMF() } */ pub fn C.wdCanvasPlay(canvas cdCanvasPtr, context cdContextPtr, xmin f64, xmax f64, ymin f64, ymax f64, data voidptr) int /* coordinate transformation */ pub fn C.wdCanvasWindow(canvas cdCanvasPtr, xmin f64, xmax f64, ymin f64, ymax f64) pub fn C.wdCanvasGetWindow(canvas cdCanvasPtr, xmin, xmax, ymin, ymax &f64) pub fn C.wdCanvasViewport(canvas cdCanvasPtr, xmin int, xmax int, ymin int, ymax int) pub fn C.wdCanvasGetViewport(canvas cdCanvasPtr, xmin, xmax, ymin, ymax &int) pub fn C.wdCanvasWorld2Canvas(canvas cdCanvasPtr, xw, yw f64, xv, yv &int) pub fn C.wdCanvasWorld2CanvasSize(canvas cdCanvasPtr, hw, vw f64, hv, vv &int) pub fn C.wdCanvasCanvas2World(canvas cdCanvasPtr, xv, yv int, xw, yw &f64) pub fn C.wdCanvasSetTransform(canvas cdCanvasPtr, sx, sy, tx, ty f64) pub fn C.wdCanvasGetTransform(canvas cdCanvasPtr, sx, sy, tx, ty &f64) pub fn C.wdCanvasTranslate(canvas cdCanvasPtr, dtx, dty f64) pub fn C.wdCanvasScale(canvas cdCanvasPtr, dsx, dsy f64) pub fn C.wdCanvasClipArea(canvas cdCanvasPtr, xmin f64, xmax f64, ymin f64, ymax f64) pub fn C.wdCanvasGetClipArea(canvas cdCanvasPtr, xmin, xmax, ymin, ymax &f64) int pub fn C.wdCanvasIsPointInRegion(canvas cdCanvasPtr, x f64, y f64) int pub fn C.wdCanvasOffsetRegion(canvas cdCanvasPtr, x f64, y f64) pub fn C.wdCanvasGetRegionBox(canvas cdCanvasPtr, xmin, xmax, ymin, ymax &f64) pub fn C.wdCanvasHardcopy(canvas cdCanvasPtr, ctx cdContextPtr, data voidptr, draw_func cdDrawCB) /* primitives */ pub fn C.wdCanvasPixel(canvas cdCanvasPtr, x f64, y f64, color int) pub fn C.wdCanvasMark(canvas cdCanvasPtr, x f64, y f64) pub fn C.wdCanvasLine(canvas cdCanvasPtr, x1 f64, y1 f64, x2 f64, y2 f64) pub fn C.wdCanvasVertex(canvas cdCanvasPtr, x f64, y f64) pub fn C.wdCanvasRect(canvas cdCanvasPtr, xmin f64, xmax f64, ymin f64, ymax f64) pub fn C.wdCanvasBox(canvas cdCanvasPtr, xmin f64, xmax f64, ymin f64, ymax f64) pub fn C.wdCanvasArc(canvas cdCanvasPtr, xc, yc, w, h, angle1, angle2 f64) pub fn C.wdCanvasSector(canvas cdCanvasPtr, xc, yc, w, h, angle1, angle2 f64) pub fn C.wdCanvasChord(canvas cdCanvasPtr, xc, yc, w, h, angle1, angle2 f64) pub fn C.wdCanvasText(canvas cdCanvasPtr, x, y f64, s byteptr) pub fn C.wdCanvasGetImageRGB(canvas cdCanvasPtr, r, g, b byteptr, x f64, y f64, iw int, ih int) pub fn C.wdCanvasPutImageRectRGB(canvas cdCanvasPtr, iw int, ih int, r, g, b byteptr, x, y, w, h f64, xmin, xmax, ymin, ymax int) pub fn C.wdCanvasPutImageRectRGBA(canvas cdCanvasPtr, iw int, ih int, r, g, b, a byteptr, x, y, w, h f64, xmin, xmax, ymin, ymax int) pub fn C.wdCanvasPutImageRectMap(canvas cdCanvasPtr, iw int, ih int, index byteptr, colors &int, x, y, w, h f64, xmin, xmax, ymin, ymax int) pub fn C.wdCanvasPutImageRect(canvas cdCanvasPtr, image cdImagePtr, x f64, y f64, xmin int, xmax int, ymin int, ymax int) pub fn C.wdCanvasPutBitmap(canvas cdCanvasPtr, bitmap cdbitmapPtr, x f64, y f64, w f64, h f64) /* attributes */ pub fn C.wdCanvasLineWidth(canvas cdCanvasPtr, width f64) f64 pub fn C.wdCanvasFont(canvas cdCanvasPtr, type_face byteptr, style int, size f64) int pub fn C.wdCanvasGetFont(canvas cdCanvasPtr, type_face byteptr, style &int, size &f64) pub fn C.wdCanvasMarkSize(canvas cdCanvasPtr, size f64) f64 pub fn C.wdCanvasGetFontDim(canvas cdCanvasPtr, max_width, height, ascent, descent &f64) pub fn C.wdCanvasGetTextSize(canvas cdCanvasPtr, s byteptr, width, height &f64) pub fn C.wdCanvasGetTextBox(canvas cdCanvasPtr, x f64, y f64, s byteptr, xmin, xmax, ymin, ymax &f64) pub fn C.wdCanvasGetTextBounds(canvas cdCanvasPtr, x f64, y f64, s byteptr, rect &f64) pub fn C.wdCanvasStipple(canvas cdCanvasPtr, w int, h int, fgbg byteptr, w_mm, h_mm f64) pub fn C.wdCanvasPattern(canvas cdCanvasPtr, w int, h int, color &int, w_mm, h_mm f64) /* vector text */ pub fn C.wdCanvasVectorTextDirection(canvas cdCanvasPtr, x1 f64, y1 f64, x2 f64, y2 f64) pub fn C.wdCanvasVectorTextSize(canvas cdCanvasPtr, size_x, size_y f64, s byteptr) pub fn C.wdCanvasGetVectorTextSize(canvas cdCanvasPtr, s byteptr, x, y &f64) pub fn C.wdCanvasVectorCharSize(canvas cdCanvasPtr, size f64) f64 pub fn C.wdCanvasVectorText(canvas cdCanvasPtr, x, y f64, s byteptr) pub fn C.wdCanvasMultiLineVectorText(canvas cdCanvasPtr, x f64, y f64, s byteptr) pub fn C.wdCanvasGetVectorTextBounds(canvas cdCanvasPtr, s byteptr, x, y f64, rect &f64) pub fn C.wdCanvasGetVectorTextBox(canvas cdCanvasPtr, x, y f64, s byteptr, xmin, xmax, ymin, ymax &f64) /* [inline] pub fn cdAlpha(a byte) byte { return !((a >> 24) & 0xFF) } [inline] pub fn cdReserved(a byte) byte{ return ((a >> 24) & 0xFF) } [inline] pub fn cdRed(a byte) byte { return ((a >> 16) & 0xFF) } [inline] pub fn cdGreen(a byte) byte { return ((a >> 8) & 0xFF) } [inline] pub fn cdBlue(a byte) byte { return (/*a SHR 0*/ a & 0xFF) } */ /******* messagebox sample fn main() { C.IupOpen(0, 0) C.IupMessage("Hello World Ääß1", "Hello world from IUP.") C.IupClose() } ***********************************/ /******* menu sample fn exit_cb(handle IhandlePtr) int { return IUP_CLOSE } fn main() { mut dlg := IhandlePtr(0) mut menu := IhandlePtr(0) mut item_save := IhandlePtr(0) mut item_open := IhandlePtr(0) mut item_undo := IhandlePtr(0) mut item_exit := IhandlePtr(0) mut file_menu := IhandlePtr(0) mut sub1_menu := IhandlePtr(0) //IhandlePtr C.IupOpen(0, 0) item_open = C.IupItem ("Open", "") C.IupSetAttribute(item_open, "KEY", "O") item_save = C.IupItem ("Save", "") C.IupSetAttribute(item_save, "KEY", "S") item_undo = C.IupItem ("Undo", "") C.IupSetAttribute(item_undo, "KEY", "U") C.IupSetAttribute(item_undo, "ACTIVE", "NO") item_exit = C.IupItem ("Exit", "") C.IupSetAttribute(item_exit, "KEY", "x") C.IupSetCallback(item_exit, "ACTION", exit_cb) file_menu = C.IupMenu(item_open, item_save, C.IupSeparator(), item_undo, item_exit, 0) sub1_menu = C.IupSubmenu("File", file_menu) menu = C.IupMenu(sub1_menu, 0) C.IupSetHandle("mymenu", menu) dlg = C.IupDialog(IupCanvas("")) C.IupSetAttribute(dlg, "MENU", "mymenu") C.IupSetAttribute(dlg, "TITLE", "IupMenu") C.IupSetAttribute(dlg, "SIZE", "QUARTERxQUARTER") C.IupShow(dlg) C.IupMainLoop() C.IupClose() } ***********************************/ fn main() { the_fac := 1.0/(100*100*100) mut dlg := IhandlePtr(0) C.IupOpen(0, 0) C.IupPlotOpen() // plot mut plot := C.IupSetAttributes(C.IupPlot(), "GRID=YES") // step 1 create a plot control IupPlotBegin(plot, 0) // step 2 open the plot for i := -100; i <= 100; i+10 { C.IupPlotAdd(plot, i, the_fac*i*i*i) // step 3 add x,y points } C.IupPlotEnd(plot) // step 4 close the plot // create window and show the plot dlg = C.IupDialog(plot) C.IupSetAttributes(dlg, "RASTERSIZE=320x240" ) C.IupSetAttribute(dlg, "TITLE", "resize me ...") C.IupShow(dlg) C.IupMainLoop() C.IupClose() } ```
nedpals commented 4 years ago

@r-k-o Please edit out and leave the most important part of your code or better yet put into a gist and link it back if you want others to see the whole code.

And please do not tag this issue as a feature request if its not related.