ruby-iup 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +3 -0
- data/MANIFEST +8 -0
- data/MIT-LICENSE +18 -0
- data/README +12 -0
- data/Rakefile +68 -80
- data/doc/build_install.txt +9 -12
- data/examples/ctrl/cbox.rb +14 -15
- data/examples/ctrl/checkboard.rb +1 -1
- data/examples/ctrl/example1.rb +53 -53
- data/examples/ctrl/example2.rb +39 -39
- data/examples/ctrl/iupcolorbar.rb +95 -95
- data/examples/ctrl/iupcolorbrowser.rb +45 -45
- data/examples/ctrl/iupdial.rb +117 -117
- data/examples/ctrl/iupgetcolor.rb +7 -7
- data/examples/ctrl/iupgetparam.rb +62 -62
- data/examples/ctrl/iupglcanvas.rb +172 -172
- data/examples/ctrl/iupmask.rb +1 -3
- data/examples/ctrl/iupmatrix.rb +39 -39
- data/examples/ctrl/iupplot2.rb +2 -1
- data/examples/ctrl/iuptabs.rb +22 -22
- data/examples/ctrl/iuptree.rb +190 -190
- data/examples/ctrl/iupval.rb +71 -71
- data/examples/ctrl/numbering.rb +46 -46
- data/examples/ctrl/sample.rb +166 -166
- data/examples/dlg/iupfiledlg.rb +19 -19
- data/examples/dlg/iupgetfile.rb +19 -19
- data/examples/dlg/iuplistdialog.rb +26 -26
- data/examples/dlg/iupmessage.rb +5 -5
- data/examples/dlg/iupscanf.rb +17 -17
- data/examples/elem/iupdialog2.rb +25 -25
- data/examples/elem/iupfill.rb +51 -51
- data/examples/elem/iupframe.rb +25 -25
- data/examples/elem/iuphbox.rb +68 -68
- data/examples/elem/iupimage.rb +113 -113
- data/examples/elem/iupitem.rb +60 -60
- data/examples/elem/iuplabel.rb +57 -57
- data/examples/elem/iuplist.rb +41 -41
- data/examples/elem/iuplist2.rb +125 -125
- data/examples/elem/iupmenu.rb +32 -32
- data/examples/elem/iupmultiline.rb +24 -24
- data/examples/elem/iupmultiline2.rb +156 -156
- data/examples/elem/iupradio.rb +32 -32
- data/examples/elem/iupseparator.rb +81 -81
- data/examples/elem/iupsubmenu.rb +85 -85
- data/examples/elem/iuptext.rb +61 -61
- data/examples/elem/iuptimer.rb +36 -36
- data/examples/elem/iuptoggle.rb +110 -110
- data/examples/elem/iupvbox.rb +87 -87
- data/examples/elem/iupzbox.rb +60 -60
- data/examples/elem/mdisample.rb +377 -376
- data/examples/elem/scrollbar.rb +66 -66
- data/examples/elem/tray.rb +90 -90
- data/examples/func/iupgetattribute.rb +32 -32
- data/examples/func/iupidle.rb +48 -48
- data/ext/extconf.rb +62 -27
- data/ext/iup-linux/include/cd.h +9 -5
- data/ext/iup-linux/include/cd_private.h +13 -6
- data/ext/iup-linux/include/cdsvg.h +22 -0
- data/ext/iup-linux/include/im.h +287 -282
- data/ext/iup-linux/include/im_attrib.h +120 -116
- data/ext/iup-linux/include/im_attrib_flat.h +39 -39
- data/ext/iup-linux/include/im_binfile.h +224 -214
- data/ext/iup-linux/include/im_capture.h +365 -365
- data/ext/iup-linux/include/im_color.h +465 -465
- data/ext/iup-linux/include/im_colorhsi.h +56 -61
- data/ext/iup-linux/include/im_complex.h +180 -160
- data/ext/iup-linux/include/im_convert.h +142 -127
- data/ext/iup-linux/include/im_counter.h +69 -69
- data/ext/iup-linux/include/im_dib.h +195 -195
- data/ext/iup-linux/include/im_file.h +115 -111
- data/ext/iup-linux/include/im_format.h +97 -79
- data/ext/iup-linux/include/im_format_all.h +575 -576
- data/ext/iup-linux/include/im_format_avi.h +88 -87
- data/ext/iup-linux/include/im_format_ecw.h +93 -93
- data/ext/iup-linux/include/im_format_jp2.h +79 -78
- data/ext/iup-linux/include/im_format_raw.h +74 -64
- data/ext/iup-linux/include/im_format_wmv.h +101 -100
- data/ext/iup-linux/include/im_image.h +425 -403
- data/ext/iup-linux/include/im_kernel.h +315 -315
- data/ext/iup-linux/include/im_lib.h +191 -191
- data/ext/iup-linux/include/im_math.h +368 -368
- data/ext/iup-linux/include/im_math_op.h +214 -219
- data/ext/iup-linux/include/im_palette.h +172 -172
- data/ext/iup-linux/include/im_plus.h +73 -73
- data/ext/iup-linux/include/im_process.h +36 -35
- data/ext/iup-linux/include/im_process_ana.h +222 -221
- data/ext/iup-linux/include/im_process_glo.h +170 -170
- data/ext/iup-linux/include/im_process_loc.h +608 -577
- data/ext/iup-linux/include/im_process_pon.h +734 -712
- data/ext/iup-linux/include/im_raw.h +34 -34
- data/ext/iup-linux/include/im_util.h +277 -277
- data/ext/iup-linux/include/imlua.h +75 -83
- data/ext/iup-linux/include/iup.h +86 -40
- data/ext/iup-linux/include/iupcb.h +1 -25
- data/ext/iup-linux/include/iupcbox.h +1 -0
- data/ext/iup-linux/include/iupcbs.h +1 -1
- data/ext/iup-linux/include/iupcells.h +1 -130
- data/ext/iup-linux/include/iupcolorbar.h +1 -126
- data/ext/iup-linux/include/iupcontrols.h +26 -16
- data/ext/iup-linux/include/iupdef.h +205 -0
- data/ext/iup-linux/include/iupdial.h +1 -63
- data/ext/iup-linux/include/iupgauge.h +1 -57
- data/ext/iup-linux/include/iupgc.h +1 -0
- data/ext/iup-linux/include/iupgetparam.h +1 -27
- data/ext/iup-linux/include/iupgl.h +2 -7
- data/ext/iup-linux/include/iupim.h +7 -1
- data/ext/iup-linux/include/iupkey.h +4 -4
- data/ext/iup-linux/include/iupmask.h +2 -1
- data/ext/iup-linux/include/iupmatrix.h +1 -63
- data/ext/iup-linux/include/iupsbox.h +1 -0
- data/ext/iup-linux/include/iupspin.h +1 -21
- data/ext/iup-linux/include/iuptabs.h +1 -75
- data/ext/iup-linux/include/iuptree.h +1 -93
- data/ext/iup-linux/include/iupval.h +1 -46
- data/ext/iup-linux/include/old_im.h +59 -59
- data/ext/iup-linux/include/wd.h +5 -0
- data/ext/iup-linux/libcd.a +0 -0
- data/ext/iup-linux/libcdcontextplus.a +0 -0
- data/ext/iup-linux/libcdgdk.a +0 -0
- data/ext/iup-linux/libcdpdf.a +0 -0
- data/ext/iup-linux/libfreetype.a +0 -0
- data/ext/iup-linux/libim.a +0 -0
- data/ext/iup-linux/libim_fftw.a +0 -0
- data/ext/iup-linux/libim_jp2.a +0 -0
- data/ext/iup-linux/libim_process.a +0 -0
- data/ext/iup-linux/libiup.a +0 -0
- data/ext/iup-linux/libiup_pplot.a +0 -0
- data/ext/iup-linux/libiupcd.a +0 -0
- data/ext/iup-linux/libiupcontrols.a +0 -0
- data/ext/iup-linux/libiupgl.a +0 -0
- data/ext/iup-linux/libiupim.a +0 -0
- data/ext/iup-linux/libiupimglib.a +0 -0
- data/ext/iup-linux/libiupmot.a +0 -0
- data/ext/iup-linux/libpdflib.a +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cd.h +9 -5
- data/ext/{iup-win32 → iup-mingw32}/include/cd_canvas.hpp +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cd_old.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cd_private.h +13 -6
- data/ext/{iup-win32 → iup-mingw32}/include/cdcgm.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdclipbd.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cddbuf.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cddebug.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cddgn.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cddxf.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdemf.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdgdiplus.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdimage.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdirgb.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdiup.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdlua.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdlua3_private.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdlua5_private.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdluaim.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdluaiup.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdluapdf.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdmf.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdmf_private.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdnative.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdpdf.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdpicture.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdprint.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdps.h +0 -0
- data/ext/iup-mingw32/include/cdsvg.h +22 -0
- data/ext/{iup-win32 → iup-mingw32}/include/cdwmf.h +0 -0
- data/ext/iup-mingw32/include/im.h +287 -0
- data/ext/iup-mingw32/include/im_attrib.h +120 -0
- data/ext/iup-mingw32/include/im_attrib_flat.h +39 -0
- data/ext/iup-mingw32/include/im_binfile.h +224 -0
- data/ext/iup-mingw32/include/im_capture.h +365 -0
- data/ext/iup-mingw32/include/im_color.h +465 -0
- data/ext/iup-mingw32/include/im_colorhsi.h +56 -0
- data/ext/iup-mingw32/include/im_complex.h +180 -0
- data/ext/iup-mingw32/include/im_convert.h +142 -0
- data/ext/iup-mingw32/include/im_counter.h +69 -0
- data/ext/iup-mingw32/include/im_dib.h +195 -0
- data/ext/iup-mingw32/include/im_file.h +115 -0
- data/ext/iup-mingw32/include/im_format.h +97 -0
- data/ext/iup-mingw32/include/im_format_all.h +575 -0
- data/ext/iup-mingw32/include/im_format_avi.h +88 -0
- data/ext/iup-mingw32/include/im_format_ecw.h +93 -0
- data/ext/iup-mingw32/include/im_format_jp2.h +79 -0
- data/ext/iup-mingw32/include/im_format_raw.h +74 -0
- data/ext/iup-mingw32/include/im_format_wmv.h +101 -0
- data/ext/iup-mingw32/include/im_image.h +425 -0
- data/ext/iup-mingw32/include/im_kernel.h +315 -0
- data/ext/iup-mingw32/include/im_lib.h +191 -0
- data/ext/iup-mingw32/include/im_math.h +368 -0
- data/ext/iup-mingw32/include/im_math_op.h +214 -0
- data/ext/iup-mingw32/include/im_palette.h +172 -0
- data/ext/iup-mingw32/include/im_plus.h +73 -0
- data/ext/iup-mingw32/include/im_process.h +36 -0
- data/ext/iup-mingw32/include/im_process_ana.h +222 -0
- data/ext/iup-mingw32/include/im_process_glo.h +170 -0
- data/ext/iup-mingw32/include/im_process_loc.h +608 -0
- data/ext/iup-mingw32/include/im_process_pon.h +734 -0
- data/ext/iup-mingw32/include/im_raw.h +34 -0
- data/ext/iup-mingw32/include/im_util.h +277 -0
- data/ext/iup-mingw32/include/imlua.h +75 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iup.h +86 -40
- data/ext/{iup-win32 → iup-mingw32}/include/iup_pplot.h +0 -0
- data/ext/iup-mingw32/include/iupcb.h +1 -0
- data/ext/iup-mingw32/include/iupcbox.h +1 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupcbs.h +1 -1
- data/ext/iup-mingw32/include/iupcells.h +1 -0
- data/ext/iup-mingw32/include/iupcolorbar.h +1 -0
- data/ext/iup-mingw32/include/iupcontrols.h +46 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupdef.h +205 -0
- data/ext/iup-mingw32/include/iupdial.h +1 -0
- data/ext/iup-mingw32/include/iupgauge.h +1 -0
- data/ext/iup-mingw32/include/iupgc.h +1 -0
- data/ext/iup-mingw32/include/iupgetparam.h +1 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupgl.h +2 -7
- data/ext/{iup-win32 → iup-mingw32}/include/iupim.h +7 -1
- data/ext/{iup-win32 → iup-mingw32}/include/iupkey.h +4 -4
- data/ext/{iup-win32 → iup-mingw32}/include/iuplua.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iuplua_pplot.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupluacontrols.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupluagl.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupluaim.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupluaole.h +0 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupmask.h +2 -1
- data/ext/iup-mingw32/include/iupmatrix.h +1 -0
- data/ext/{iup-win32 → iup-mingw32}/include/iupole.h +0 -0
- data/ext/iup-mingw32/include/iupsbox.h +1 -0
- data/ext/iup-mingw32/include/iupspin.h +1 -0
- data/ext/iup-mingw32/include/iuptabs.h +1 -0
- data/ext/iup-mingw32/include/iuptree.h +1 -0
- data/ext/iup-mingw32/include/iupval.h +1 -0
- data/ext/iup-mingw32/include/old_im.h +59 -0
- data/ext/{iup-win32 → iup-mingw32}/include/wd.h +5 -0
- data/ext/{iup-win32 → iup-mingw32}/include/wd_old.h +0 -0
- data/ext/iup-mingw32/libcd.a +0 -0
- data/ext/iup-mingw32/libcdpdf.a +0 -0
- data/ext/iup-mingw32/libfreetype6.a +0 -0
- data/ext/iup-mingw32/libim.a +0 -0
- data/ext/iup-mingw32/libim_avi.a +0 -0
- data/ext/iup-mingw32/libim_fftw.a +0 -0
- data/ext/iup-mingw32/libim_jp2.a +0 -0
- data/ext/iup-mingw32/libim_process.a +0 -0
- data/ext/iup-mingw32/libiup.a +0 -0
- data/ext/iup-mingw32/libiup_pplot.a +0 -0
- data/ext/iup-mingw32/libiupcd.a +0 -0
- data/ext/iup-mingw32/libiupcontrols.a +0 -0
- data/ext/iup-mingw32/libiupgl.a +0 -0
- data/ext/iup-mingw32/libiupim.a +0 -0
- data/ext/iup-mingw32/libiupimglib.a +0 -0
- data/ext/iup-mingw32/libiupole.a +0 -0
- data/ext/iup-mingw32/libpdflib.a +0 -0
- data/ext/iup-mswin32/cd.lib +0 -0
- data/ext/iup-mswin32/cdcontextplus.lib +0 -0
- data/ext/iup-mswin32/cdgdk.lib +0 -0
- data/ext/iup-mswin32/cdpdf.lib +0 -0
- data/ext/iup-mswin32/freetype6.lib +0 -0
- data/ext/iup-mswin32/im.lib +0 -0
- data/ext/iup-mswin32/im_avi.lib +0 -0
- data/ext/iup-mswin32/im_capture.lib +0 -0
- data/ext/iup-mswin32/im_fftw.lib +0 -0
- data/ext/iup-mswin32/im_jp2.lib +0 -0
- data/ext/iup-mswin32/im_process.lib +0 -0
- data/ext/iup-mswin32/im_wmv.lib +0 -0
- data/ext/iup-mswin32/include/cd.h +498 -0
- data/ext/iup-mswin32/include/cd_canvas.hpp +358 -0
- data/ext/iup-mswin32/include/cd_old.h +158 -0
- data/ext/iup-mswin32/include/cd_private.h +369 -0
- data/ext/iup-mswin32/include/cdcgm.h +34 -0
- data/ext/iup-mswin32/include/cdclipbd.h +22 -0
- data/ext/iup-mswin32/include/cddbuf.h +23 -0
- data/ext/iup-mswin32/include/cddebug.h +24 -0
- data/ext/iup-mswin32/include/cddgn.h +23 -0
- data/ext/iup-mswin32/include/cddxf.h +22 -0
- data/ext/iup-mswin32/include/cdemf.h +22 -0
- data/ext/iup-mswin32/include/cdgdiplus.h +29 -0
- data/ext/iup-mswin32/include/cdimage.h +23 -0
- data/ext/iup-mswin32/include/cdirgb.h +30 -0
- data/ext/iup-mswin32/include/cdiup.h +22 -0
- data/ext/iup-mswin32/include/cdlua.h +39 -0
- data/ext/iup-mswin32/include/cdlua3_private.h +120 -0
- data/ext/iup-mswin32/include/cdlua5_private.h +141 -0
- data/ext/iup-mswin32/include/cdluaim.h +24 -0
- data/ext/iup-mswin32/include/cdluaiup.h +27 -0
- data/ext/iup-mswin32/include/cdluapdf.h +27 -0
- data/ext/iup-mswin32/include/cdmf.h +24 -0
- data/ext/iup-mswin32/include/cdmf_private.h +32 -0
- data/ext/iup-mswin32/include/cdnative.h +26 -0
- data/ext/iup-mswin32/include/cdpdf.h +38 -0
- data/ext/iup-mswin32/include/cdpicture.h +22 -0
- data/ext/iup-mswin32/include/cdprint.h +23 -0
- data/ext/iup-mswin32/include/cdps.h +37 -0
- data/ext/iup-mswin32/include/cdsvg.h +22 -0
- data/ext/iup-mswin32/include/cdwmf.h +22 -0
- data/ext/iup-mswin32/include/im.h +287 -0
- data/ext/iup-mswin32/include/im_attrib.h +120 -0
- data/ext/iup-mswin32/include/im_attrib_flat.h +39 -0
- data/ext/iup-mswin32/include/im_binfile.h +224 -0
- data/ext/iup-mswin32/include/im_capture.h +365 -0
- data/ext/iup-mswin32/include/im_color.h +465 -0
- data/ext/iup-mswin32/include/im_colorhsi.h +56 -0
- data/ext/iup-mswin32/include/im_complex.h +180 -0
- data/ext/iup-mswin32/include/im_convert.h +142 -0
- data/ext/iup-mswin32/include/im_counter.h +69 -0
- data/ext/iup-mswin32/include/im_dib.h +195 -0
- data/ext/iup-mswin32/include/im_file.h +115 -0
- data/ext/iup-mswin32/include/im_format.h +97 -0
- data/ext/iup-mswin32/include/im_format_all.h +575 -0
- data/ext/iup-mswin32/include/im_format_avi.h +88 -0
- data/ext/iup-mswin32/include/im_format_ecw.h +93 -0
- data/ext/iup-mswin32/include/im_format_jp2.h +79 -0
- data/ext/iup-mswin32/include/im_format_raw.h +74 -0
- data/ext/iup-mswin32/include/im_format_wmv.h +101 -0
- data/ext/iup-mswin32/include/im_image.h +425 -0
- data/ext/iup-mswin32/include/im_kernel.h +315 -0
- data/ext/iup-mswin32/include/im_lib.h +191 -0
- data/ext/iup-mswin32/include/im_math.h +368 -0
- data/ext/iup-mswin32/include/im_math_op.h +214 -0
- data/ext/iup-mswin32/include/im_palette.h +172 -0
- data/ext/iup-mswin32/include/im_plus.h +73 -0
- data/ext/iup-mswin32/include/im_process.h +36 -0
- data/ext/iup-mswin32/include/im_process_ana.h +222 -0
- data/ext/iup-mswin32/include/im_process_glo.h +170 -0
- data/ext/iup-mswin32/include/im_process_loc.h +608 -0
- data/ext/iup-mswin32/include/im_process_pon.h +734 -0
- data/ext/iup-mswin32/include/im_raw.h +34 -0
- data/ext/iup-mswin32/include/im_util.h +277 -0
- data/ext/iup-mswin32/include/imlua.h +75 -0
- data/ext/iup-mswin32/include/iup.h +364 -0
- data/ext/iup-mswin32/include/iup_pplot.h +40 -0
- data/ext/iup-mswin32/include/iupcb.h +1 -0
- data/ext/iup-mswin32/include/iupcbox.h +1 -0
- data/ext/iup-mswin32/include/iupcbs.h +43 -0
- data/ext/iup-mswin32/include/iupcells.h +1 -0
- data/ext/iup-mswin32/include/iupcolorbar.h +1 -0
- data/ext/iup-mswin32/include/iupcontrols.h +46 -0
- data/ext/iup-mswin32/include/iupdef.h +725 -0
- data/ext/iup-mswin32/include/iupdial.h +1 -0
- data/ext/iup-mswin32/include/iupgauge.h +1 -0
- data/ext/iup-mswin32/include/iupgc.h +1 -0
- data/ext/iup-mswin32/include/iupgetparam.h +1 -0
- data/ext/iup-mswin32/include/iupgl.h +96 -0
- data/ext/iup-mswin32/include/iupim.h +27 -0
- data/ext/iup-mswin32/include/iupkey.h +457 -0
- data/ext/iup-mswin32/include/iuplua.h +41 -0
- data/ext/iup-mswin32/include/iuplua_pplot.h +26 -0
- data/ext/iup-mswin32/include/iupluacontrols.h +27 -0
- data/ext/iup-mswin32/include/iupluagl.h +26 -0
- data/ext/iup-mswin32/include/iupluaim.h +26 -0
- data/ext/iup-mswin32/include/iupluaole.h +26 -0
- data/ext/iup-mswin32/include/iupmask.h +41 -0
- data/ext/iup-mswin32/include/iupmatrix.h +1 -0
- data/ext/iup-mswin32/include/iupole.h +24 -0
- data/ext/iup-mswin32/include/iupsbox.h +1 -0
- data/ext/iup-mswin32/include/iupspin.h +1 -0
- data/ext/iup-mswin32/include/iuptabs.h +1 -0
- data/ext/iup-mswin32/include/iuptree.h +1 -0
- data/ext/iup-mswin32/include/iupval.h +1 -0
- data/ext/iup-mswin32/include/old_im.h +59 -0
- data/ext/iup-mswin32/include/wd.h +83 -0
- data/ext/iup-mswin32/include/wd_old.h +85 -0
- data/ext/iup-mswin32/iup.lib +0 -0
- data/ext/iup-mswin32/iup_pplot.lib +0 -0
- data/ext/iup-mswin32/iupcd.lib +0 -0
- data/ext/iup-mswin32/iupcontrols.lib +0 -0
- data/ext/iup-mswin32/iupgl.lib +0 -0
- data/ext/iup-mswin32/iupgtk.lib +0 -0
- data/ext/iup-mswin32/iupim.lib +0 -0
- data/ext/{iup-win32/iupimglib.dll → iup-mswin32/iupimglib.lib} +0 -0
- data/ext/iup-mswin32/iupole.lib +0 -0
- data/ext/iup-mswin32/pdflib.lib +0 -0
- data/ext/iup.c +6 -37
- data/ext/{rb_cd.h → rb_cd.c} +300 -302
- data/ext/rb_iup.c +2485 -0
- data/ext/rb_iup.h +400 -2475
- data/ext/{rb_iup_pplot.h → rb_iup_pplot.c} +21 -22
- data/ext/{rb_iupcb.h → rb_iupcb.c} +2 -3
- data/ext/{rb_iupcells.h → rb_iupcells.c} +5 -5
- data/ext/{rb_iupcolorbar.h → rb_iupcolorbar.c} +2 -3
- data/ext/{rb_iupcontrols.h → rb_iupcontrols.c} +1 -1
- data/ext/{rb_iupdial.h → rb_iupdial.c} +3 -4
- data/ext/{rb_iupgauge.h → rb_iupgauge.c} +2 -3
- data/ext/{rb_iupgc.h → rb_iupgc.c} +1 -1
- data/ext/{rb_iupgetparam.h → rb_iupgetparam.c} +12 -10
- data/ext/{rb_iupgl.h → rb_iupgl.c} +10 -10
- data/ext/{rb_iupim.h → rb_iupim.c} +6 -6
- data/ext/{rb_iupmatrix.h → rb_iupmatrix.c} +15 -16
- data/ext/{rb_iupole.h → rb_iupole.c} +4 -4
- data/ext/{rb_iupsbox.h → rb_iupsbox.c} +3 -3
- data/ext/{rb_iupspin.h → rb_iupspin.c} +4 -5
- data/ext/{rb_iuptabs.h → rb_iuptabs.c} +5 -6
- data/ext/{rb_iuptree.h → rb_iuptree.c} +20 -21
- data/ext/{rb_iupval.h → rb_iupval.c} +3 -4
- data/ruby-iup.gemspec +26 -0
- data/test/test_ruby_iup.rb +25 -0
- metadata +395 -270
- data/ext/iup-linux/include/lauxlib.h +0 -174
- data/ext/iup-linux/include/lua.h +0 -388
- data/ext/iup-linux/include/lua.hpp +0 -9
- data/ext/iup-linux/include/luaconf.h +0 -763
- data/ext/iup-linux/include/lualib.h +0 -53
- data/ext/iup-linux/libcd.so +0 -0
- data/ext/iup-linux/libcdcontextplus.so +0 -0
- data/ext/iup-linux/libcdpdf.so +0 -0
- data/ext/iup-linux/libfreetype.so +0 -0
- data/ext/iup-linux/libim.so +0 -0
- data/ext/iup-linux/libim_fftw.so +0 -0
- data/ext/iup-linux/libim_jp2.so +0 -0
- data/ext/iup-linux/libim_process.so +0 -0
- data/ext/iup-linux/libiup.so +0 -0
- data/ext/iup-linux/libiup_pplot.so +0 -0
- data/ext/iup-linux/libiupcd.so +0 -0
- data/ext/iup-linux/libiupcontrols.so +0 -0
- data/ext/iup-linux/libiupgl.so +0 -0
- data/ext/iup-linux/libiupim.so +0 -0
- data/ext/iup-linux/libiupimglib.so +0 -0
- data/ext/iup-linux/libiupmot.so +0 -0
- data/ext/iup-linux/libpdflib.so +0 -0
- data/ext/iup-win32/cd.dll +0 -0
- data/ext/iup-win32/cd.lib +0 -0
- data/ext/iup-win32/cdcontextplus.dll +0 -0
- data/ext/iup-win32/cdcontextplus.lib +0 -0
- data/ext/iup-win32/cdpdf.dll +0 -0
- data/ext/iup-win32/cdpdf.lib +0 -0
- data/ext/iup-win32/freetype6.dll +0 -0
- data/ext/iup-win32/freetype6.lib +0 -0
- data/ext/iup-win32/im.dll +0 -0
- data/ext/iup-win32/im.lib +0 -0
- data/ext/iup-win32/im_avi.dll +0 -0
- data/ext/iup-win32/im_avi.lib +0 -0
- data/ext/iup-win32/im_capture.dll +0 -0
- data/ext/iup-win32/im_capture.lib +0 -0
- data/ext/iup-win32/im_ecw.dll +0 -0
- data/ext/iup-win32/im_fftw.dll +0 -0
- data/ext/iup-win32/im_fftw.lib +0 -0
- data/ext/iup-win32/im_jp2.dll +0 -0
- data/ext/iup-win32/im_jp2.lib +0 -0
- data/ext/iup-win32/im_process.dll +0 -0
- data/ext/iup-win32/im_process.lib +0 -0
- data/ext/iup-win32/im_wmv.dll +0 -0
- data/ext/iup-win32/im_wmv.lib +0 -0
- data/ext/iup-win32/imlua_capture51.dll +0 -0
- data/ext/iup-win32/imlua_capture51.lib +0 -0
- data/ext/iup-win32/imlua_wmv51.dll +0 -0
- data/ext/iup-win32/imlua_wmv51.lib +0 -0
- data/ext/iup-win32/include/iupcb.h +0 -25
- data/ext/iup-win32/include/iupcells.h +0 -130
- data/ext/iup-win32/include/iupcolorbar.h +0 -126
- data/ext/iup-win32/include/iupcontrols.h +0 -36
- data/ext/iup-win32/include/iupdial.h +0 -63
- data/ext/iup-win32/include/iupgauge.h +0 -57
- data/ext/iup-win32/include/iupgetparam.h +0 -27
- data/ext/iup-win32/include/iupmatrix.h +0 -63
- data/ext/iup-win32/include/iupspin.h +0 -21
- data/ext/iup-win32/include/iuptabs.h +0 -75
- data/ext/iup-win32/include/iuptree.h +0 -93
- data/ext/iup-win32/include/iupval.h +0 -46
- data/ext/iup-win32/iup.dll +0 -0
- data/ext/iup-win32/iup.lib +0 -0
- data/ext/iup-win32/iup_pplot.dll +0 -0
- data/ext/iup-win32/iup_pplot.lib +0 -0
- data/ext/iup-win32/iupcd.dll +0 -0
- data/ext/iup-win32/iupcd.lib +0 -0
- data/ext/iup-win32/iupcontrols.dll +0 -0
- data/ext/iup-win32/iupcontrols.lib +0 -0
- data/ext/iup-win32/iupgl.dll +0 -0
- data/ext/iup-win32/iupgl.lib +0 -0
- data/ext/iup-win32/iupgtk.dll +0 -0
- data/ext/iup-win32/iupgtk.lib +0 -0
- data/ext/iup-win32/iupim.dll +0 -0
- data/ext/iup-win32/iupim.lib +0 -0
- data/ext/iup-win32/iupimglib.lib +0 -0
- data/ext/iup-win32/iupole.dll +0 -0
- data/ext/iup-win32/iupole.lib +0 -0
- data/ext/iup-win32/iupstub.lib +0 -0
- data/ext/iup-win32/pdflib.dll +0 -0
- data/ext/iup-win32/pdflib.lib +0 -0
- data/ext/mkrf_conf.rb +0 -72
- data/ext/rb_iupcompat.h +0 -237
- data/ext/rb_iupdef.h +0 -3
- data/ext/rb_iupmask.h +0 -189
- data/lib/README +0 -1
@@ -0,0 +1,41 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief IUP Binding for Lua.
|
3
|
+
*
|
4
|
+
* See Copyright Notice in "iup.h"
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IUPLUA_H
|
8
|
+
#define __IUPLUA_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_NOOBJECT /* Lua 3 */
|
15
|
+
int iuplua_open (void);
|
16
|
+
int iupkey_open (void);
|
17
|
+
|
18
|
+
/* utilities */
|
19
|
+
Ihandle* iuplua_checkihandle(int pos);
|
20
|
+
void iuplua_pushihandle(Ihandle *n);
|
21
|
+
int iuplua_dofile (char *filename);
|
22
|
+
#endif
|
23
|
+
|
24
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
25
|
+
int iuplua_open(lua_State *L);
|
26
|
+
int iupkey_open(lua_State *L);
|
27
|
+
int iuplua_close(lua_State * L);
|
28
|
+
|
29
|
+
/* utilities */
|
30
|
+
Ihandle* iuplua_checkihandle(lua_State *L, int pos);
|
31
|
+
void iuplua_pushihandle(lua_State *L, Ihandle *n);
|
32
|
+
int iuplua_dofile(lua_State *L, const char *filename);
|
33
|
+
int iuplua_dostring(lua_State *L, const char *string, const char *chunk_name);
|
34
|
+
|
35
|
+
#endif
|
36
|
+
|
37
|
+
#ifdef __cplusplus
|
38
|
+
}
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#endif
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief iup_pplot Binding for Lua.
|
3
|
+
*
|
4
|
+
* See Copyright Notice in "iup.h"
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IUPLUA_PPLOT_H
|
8
|
+
#define __IUPLUA_PPLOT_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_NOOBJECT /* Lua 3 */
|
15
|
+
int iup_pplotlua_open (void);
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
19
|
+
int iup_pplotlua_open (lua_State * L);
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
}
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#endif
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief iupcontrols Binding for Lua.
|
3
|
+
*
|
4
|
+
* See Copyright Notice in "iup.h"
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IUPLUACONTROLS_H
|
8
|
+
#define __IUPLUACONTROLS_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_NOOBJECT /* Lua 3 */
|
15
|
+
int iupcontrolslua_open (void);
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
19
|
+
int iupcontrolslua_open (lua_State * L);
|
20
|
+
int iupcontrolslua_close(lua_State * L);
|
21
|
+
#endif
|
22
|
+
|
23
|
+
#ifdef __cplusplus
|
24
|
+
}
|
25
|
+
#endif
|
26
|
+
|
27
|
+
#endif
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief Binding of iupglcanvas to Lua.
|
3
|
+
*
|
4
|
+
* See Copyright Notice in "iup.h"
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IUPLUAGL_H
|
8
|
+
#define __IUPLUAGL_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_NOOBJECT /* Lua 3 */
|
15
|
+
int iupgllua_open(void);
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
19
|
+
int iupgllua_open (lua_State * L);
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
}
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#endif
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief Bindig of iupim functions to Lua.
|
3
|
+
*
|
4
|
+
* See Copyright Notice in "iup.h"
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IUPLUAIM_H
|
8
|
+
#define __IUPLUAIM_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_NOOBJECT /* Lua 3 */
|
15
|
+
void iupimlua_open(void);
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
19
|
+
int iupimlua_open(lua_State * L);
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
}
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#endif
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief Binding of iupolecontrol to Lua.
|
3
|
+
*
|
4
|
+
* See Copyright Notice in "iup.h"
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IUPLUAOLE_H
|
8
|
+
#define __IUPLUAOLE_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_NOOBJECT /* Lua 3 */
|
15
|
+
int iupolelua_open(void);
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
19
|
+
int iupolelua_open (lua_State * L);
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
}
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#endif
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief iupmask functions.
|
3
|
+
*
|
4
|
+
* See Copyright Notice in "iup.h"
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IUP_OLDMASK_H
|
8
|
+
#define __IUP_OLDMASK_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#pragma message("Warning: Using OLD iupMask definitions, use the MASK attribute in IupText or IupMatrix.")
|
15
|
+
|
16
|
+
/* OLD definitions, use the MASK attribute in IupText or IupMatrix */
|
17
|
+
int iupmaskSet (Ihandle *h, const char *mask, int autofill, int casei);
|
18
|
+
int iupmaskSetInt (Ihandle *h, int autofill, int min , int max);
|
19
|
+
int iupmaskSetFloat(Ihandle *h, int autofill, float min , float max);
|
20
|
+
void iupmaskRemove (Ihandle *h);
|
21
|
+
int iupmaskCheck (Ihandle *h);
|
22
|
+
int iupmaskGet (Ihandle *h, char **val);
|
23
|
+
int iupmaskGetFloat (Ihandle *h, float *fval);
|
24
|
+
int iupmaskGetDouble(Ihandle *h, double *dval);
|
25
|
+
int iupmaskGetInt (Ihandle *h, int *ival);
|
26
|
+
int iupmaskMatSet (Ihandle *h, const char *mask, int autofill, int casei, int lin, int col);
|
27
|
+
int iupmaskMatSetInt (Ihandle *h, int autofill, int min, int max, int lin, int col);
|
28
|
+
int iupmaskMatSetFloat(Ihandle *h, int autofill, float min, float max, int lin, int col);
|
29
|
+
void iupmaskMatRemove (Ihandle *h, int lin, int col);
|
30
|
+
int iupmaskMatCheck (Ihandle *h, int lin, int col);
|
31
|
+
int iupmaskMatGet (Ihandle *h, char **val, int lin, int col);
|
32
|
+
int iupmaskMatGetFloat (Ihandle *h, float *fval, int lin, int col);
|
33
|
+
int iupmaskMatGetDouble(Ihandle *h, double *dval, int lin, int col);
|
34
|
+
int iupmaskMatGetInt (Ihandle *h, int *ival, int lin, int col);
|
35
|
+
|
36
|
+
|
37
|
+
#ifdef __cplusplus
|
38
|
+
}
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#endif
|
@@ -0,0 +1 @@
|
|
1
|
+
#include <iupcontrols.h>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief Ole control.
|
3
|
+
*
|
4
|
+
* See Copyright Notice in "iup.h"
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IUPOLE_H
|
8
|
+
#define __IUPOLE_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
|
15
|
+
Ihandle *IupOleControl(const char* progid);
|
16
|
+
|
17
|
+
int IupOleControlOpen(void);
|
18
|
+
|
19
|
+
|
20
|
+
#ifdef __cplusplus
|
21
|
+
}
|
22
|
+
#endif
|
23
|
+
|
24
|
+
#endif
|
@@ -0,0 +1 @@
|
|
1
|
+
#include <iup.h>
|
@@ -0,0 +1 @@
|
|
1
|
+
#include <iup.h>
|
@@ -0,0 +1 @@
|
|
1
|
+
#include <iup.h>
|
@@ -0,0 +1 @@
|
|
1
|
+
#include <iupcontrols.h>
|
@@ -0,0 +1 @@
|
|
1
|
+
#include <iup.h>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief Old API
|
3
|
+
*
|
4
|
+
* See Copyright Notice in im_lib.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __IM_OLD_H
|
8
|
+
#define __IM_OLD_H
|
9
|
+
|
10
|
+
#if defined(__cplusplus)
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
enum {IM_BMP, IM_PCX, IM_GIF, IM_TIF, IM_RAS, IM_SGI, IM_JPG, IM_LED, IM_TGA};
|
15
|
+
enum {IM_NONE = 0x0000, IM_DEFAULT = 0x0100, IM_COMPRESSED = 0x0200};
|
16
|
+
|
17
|
+
#define IM_ERR_READ IM_ERR_ACCESS
|
18
|
+
#define IM_ERR_WRITE IM_ERR_ACCESS
|
19
|
+
#define IM_ERR_TYPE IM_ERR_DATA
|
20
|
+
#define IM_ERR_COMP IM_ERR_COMPRESS
|
21
|
+
|
22
|
+
long imEncodeColor(unsigned char red, unsigned char green, unsigned char blue);
|
23
|
+
void imDecodeColor(unsigned char* red, unsigned char* green, unsigned char* blue, long palette);
|
24
|
+
int imFileFormat(char *filename, int* format);
|
25
|
+
int imImageInfo(char *filename, int *width, int *height, int *type, int *palette_count);
|
26
|
+
int imLoadRGB(char *filename, unsigned char *red, unsigned char *green, unsigned char *blue);
|
27
|
+
int imSaveRGB(int width, int height, int format, unsigned char *red, unsigned char *green, unsigned char *blue, char *filename);
|
28
|
+
int imLoadMap(char *filename, unsigned char *map, long *palette);
|
29
|
+
int imSaveMap(int width, int height, int format, unsigned char *map, int palette_count, long *palette, char *filename);
|
30
|
+
void imRGB2Map(int width, int height, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *map, int palette_count, long *palette);
|
31
|
+
void imMap2RGB(int width, int height, unsigned char *map, int palette_count, long *colors, unsigned char *red, unsigned char *green, unsigned char *blue);
|
32
|
+
void imRGB2Gray(int width, int height, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *map, long *grays);
|
33
|
+
void imMap2Gray(int width, int height, unsigned char *map, int palette_count, long *colors, unsigned char *grey_map, long *grays);
|
34
|
+
void imResize(int src_width, int src_height, unsigned char *src_map, int dst_width, int dst_height, unsigned char *dst_map);
|
35
|
+
void imStretch(int src_width, int src_height, unsigned char *src_map, int dst_width, int dst_height, unsigned char *dst_map);
|
36
|
+
typedef int (*imCallback)(char *filename);
|
37
|
+
int imRegisterCallback(imCallback cb, int cb_id, int format);
|
38
|
+
|
39
|
+
#define IM_INTERRUPTED -1
|
40
|
+
#define IM_ALL -1
|
41
|
+
#define IM_COUNTER_CB 0
|
42
|
+
typedef int (*imFileCounterCallback)(char *filename, int percent, int io);
|
43
|
+
|
44
|
+
#define IM_RESOLUTION_CB 1
|
45
|
+
typedef int (*imResolutionCallback)(char *filename, double* xres, double* yres, int* res_unit);
|
46
|
+
|
47
|
+
enum {IM_RES_NONE, IM_RES_DPI, IM_RES_DPC};
|
48
|
+
|
49
|
+
#define IM_GIF_TRANSPARENT_COLOR_CB 0
|
50
|
+
typedef int (*imGifTranspIndex)(char *filename, unsigned char *transp_index);
|
51
|
+
|
52
|
+
#define IM_TIF_IMAGE_DESCRIPTION_CB 0
|
53
|
+
typedef int (*imTiffImageDesc)(char *filename, char* img_desc);
|
54
|
+
|
55
|
+
#if defined(__cplusplus)
|
56
|
+
}
|
57
|
+
#endif
|
58
|
+
|
59
|
+
#endif
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief World Coordinate Functions
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __WD_H
|
8
|
+
#define __WD_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
/* coordinate transformation */
|
15
|
+
void wdCanvasWindow(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
|
16
|
+
void wdCanvasGetWindow(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax);
|
17
|
+
void wdCanvasViewport(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax);
|
18
|
+
void wdCanvasGetViewport(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax);
|
19
|
+
void wdCanvasWorld2Canvas(cdCanvas* canvas, double xw, double yw, int *xv, int *yv);
|
20
|
+
void wdCanvasWorld2CanvasSize(cdCanvas* canvas, double hw, double vw, int *hv, int *vv);
|
21
|
+
void wdCanvasCanvas2World(cdCanvas* canvas, int xv, int yv, double *xw, double *yw);
|
22
|
+
void wdCanvasSetTransform(cdCanvas* canvas, double sx, double sy, double tx, double ty);
|
23
|
+
void wdCanvasGetTransform(cdCanvas* canvas, double *sx, double *sy, double *tx, double *ty);
|
24
|
+
void wdCanvasTranslate(cdCanvas* canvas, double dtx, double dty);
|
25
|
+
void wdCanvasScale(cdCanvas* canvas, double dsx, double dsy);
|
26
|
+
|
27
|
+
void wdCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
|
28
|
+
int wdCanvasGetClipArea(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax);
|
29
|
+
int wdCanvasIsPointInRegion(cdCanvas* canvas, double x, double y);
|
30
|
+
void wdCanvasOffsetRegion(cdCanvas* canvas, double x, double y);
|
31
|
+
void wdCanvasGetRegionBox(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax);
|
32
|
+
|
33
|
+
void wdCanvasHardcopy(cdCanvas* canvas, cdContext* ctx, void *data, void(*draw_func)(cdCanvas *canvas_copy));
|
34
|
+
|
35
|
+
/* primitives */
|
36
|
+
void wdCanvasPixel(cdCanvas* canvas, double x, double y, long color);
|
37
|
+
void wdCanvasMark(cdCanvas* canvas, double x, double y);
|
38
|
+
void wdCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2);
|
39
|
+
void wdCanvasVertex(cdCanvas* canvas, double x, double y);
|
40
|
+
void wdCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
|
41
|
+
void wdCanvasBox(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
|
42
|
+
void wdCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
|
43
|
+
void wdCanvasSector(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
|
44
|
+
void wdCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
|
45
|
+
void wdCanvasText(cdCanvas* canvas, double x, double y, const char* s);
|
46
|
+
|
47
|
+
void wdCanvasPutImageRect(cdCanvas* canvas, cdImage* image, double x, double y, int xmin, int xmax, int ymin, int ymax);
|
48
|
+
void wdCanvasPutImageRectRGB(cdCanvas* canvas, int iw, int ih, const unsigned char* r, const unsigned char* g, const unsigned char* b, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax);
|
49
|
+
void wdCanvasPutImageRectRGBA(cdCanvas* canvas, int iw, int ih, const unsigned char* r, const unsigned char* g, const unsigned char* b, const unsigned char* a, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax);
|
50
|
+
void wdCanvasPutImageRectMap(cdCanvas* canvas, int iw, int ih, const unsigned char* index, const long* colors, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax);
|
51
|
+
void wdCanvasPutBitmap(cdCanvas* canvas, cdBitmap* bitmap, double x, double y, double w, double h);
|
52
|
+
|
53
|
+
/* attributes */
|
54
|
+
double wdCanvasLineWidth(cdCanvas* canvas, double width);
|
55
|
+
int wdCanvasFont(cdCanvas* canvas, const char* type_face, int style, double size);
|
56
|
+
void wdCanvasGetFont(cdCanvas* canvas, char *type_face, int *style, double *size);
|
57
|
+
double wdCanvasMarkSize(cdCanvas* canvas, double size);
|
58
|
+
void wdCanvasGetFontDim(cdCanvas* canvas, double *max_width, double *height, double *ascent, double *descent);
|
59
|
+
void wdCanvasGetTextSize(cdCanvas* canvas, const char* s, double *width, double *height);
|
60
|
+
void wdCanvasGetTextBox(cdCanvas* canvas, double x, double y, const char* s, double *xmin, double *xmax, double *ymin, double *ymax);
|
61
|
+
void wdCanvasGetTextBounds(cdCanvas* canvas, double x, double y, const char* s, double *rect);
|
62
|
+
void wdCanvasStipple(cdCanvas* canvas, int w, int h, const unsigned char*fgbg, double w_mm, double h_mm);
|
63
|
+
void wdCanvasPattern(cdCanvas* canvas, int w, int h, const long *color, double w_mm, double h_mm);
|
64
|
+
|
65
|
+
/* vector text */
|
66
|
+
void wdCanvasVectorTextDirection(cdCanvas* canvas, double x1, double y1, double x2, double y2);
|
67
|
+
void wdCanvasVectorTextSize(cdCanvas* canvas, double size_x, double size_y, const char* s);
|
68
|
+
void wdCanvasGetVectorTextSize(cdCanvas* canvas, const char* s, double *x, double *y);
|
69
|
+
double wdCanvasVectorCharSize(cdCanvas* canvas, double size);
|
70
|
+
void wdCanvasVectorText(cdCanvas* canvas, double x, double y, const char* s);
|
71
|
+
void wdCanvasMultiLineVectorText(cdCanvas* canvas, double x, double y, const char* s);
|
72
|
+
void wdCanvasGetVectorTextBounds(cdCanvas* canvas, const char* s, double x, double y, double *rect);
|
73
|
+
void wdCanvasGetVectorTextBox(cdCanvas* canvas, double x, double y, const char *s, double *xmin, double *xmax, double *ymin, double *ymax);
|
74
|
+
|
75
|
+
#ifdef __cplusplus
|
76
|
+
}
|
77
|
+
#endif
|
78
|
+
|
79
|
+
#ifndef CD_NO_OLD_INTERFACE
|
80
|
+
#include "wd_old.h"
|
81
|
+
#endif
|
82
|
+
|
83
|
+
#endif
|
@@ -0,0 +1,85 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief Old WC API
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef WD_OLD_H
|
8
|
+
#define WD_OLD_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
/* coordinate transformation */
|
15
|
+
void wdWindow(double xmin, double xmax, double ymin, double ymax);
|
16
|
+
void wdGetWindow(double *xmin, double *xmax, double *ymin, double *ymax);
|
17
|
+
void wdViewport(int xmin, int xmax, int ymin, int ymax);
|
18
|
+
void wdGetViewport(int *xmin, int *xmax, int *ymin, int *ymax);
|
19
|
+
void wdWorld2Canvas(double xw, double yw, int *xv, int *yv);
|
20
|
+
void wdWorld2CanvasSize(double hw, double vw, int *hv, int *vv);
|
21
|
+
void wdCanvas2World(int xv, int yv, double *xw, double *yw);
|
22
|
+
|
23
|
+
void wdClipArea(double xmin, double xmax, double ymin, double ymax);
|
24
|
+
int wdGetClipArea(double *xmin, double *xmax, double *ymin, double *ymax);
|
25
|
+
double* wdGetClipPoly(int *n);
|
26
|
+
int wdPointInRegion(double x, double y);
|
27
|
+
void wdOffsetRegion(double x, double y);
|
28
|
+
void wdRegionBox(double *xmin, double *xmax, double *ymin, double *ymax);
|
29
|
+
|
30
|
+
void wdHardcopy(cdContext* ctx, void *data, cdCanvas *cnv, void(*draw_func)(void));
|
31
|
+
|
32
|
+
/* primitives */
|
33
|
+
void wdPixel(double x, double y, long color);
|
34
|
+
void wdMark(double x, double y);
|
35
|
+
void wdLine(double x1, double y1, double x2, double y2);
|
36
|
+
void wdVertex(double x, double y);
|
37
|
+
void wdRect(double xmin, double xmax, double ymin, double ymax);
|
38
|
+
void wdBox(double xmin, double xmax, double ymin, double ymax);
|
39
|
+
void wdArc(double xc, double yc, double w, double h, double angle1, double angle2);
|
40
|
+
void wdSector(double xc, double yc, double w, double h, double angle1, double angle2);
|
41
|
+
void wdChord(double xc, double yc, double w, double h, double angle1, double angle2);
|
42
|
+
void wdText(double x, double y, const char* s);
|
43
|
+
|
44
|
+
void wdPutImageRect(cdImage* image, double x, double y, int xmin, int xmax, int ymin, int ymax);
|
45
|
+
void wdPutImageRectRGB(int iw, int ih, const unsigned char* r, const unsigned char* g, const unsigned char* b, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax);
|
46
|
+
void wdPutImageRectRGBA(int iw, int ih, const unsigned char* r, const unsigned char* g, const unsigned char* b, const unsigned char* a, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax);
|
47
|
+
void wdPutImageRectMap(int iw, int ih, const unsigned char* index, const long* colors, double x, double y, double w, double h, int xmin, int xmax, int ymin, int ymax);
|
48
|
+
void wdPutBitmap(cdBitmap* bitmap, double x, double y, double w, double h);
|
49
|
+
|
50
|
+
/* attributes */
|
51
|
+
double wdLineWidth(double width);
|
52
|
+
void wdFont(int type_face, int style, double size);
|
53
|
+
void wdGetFont(int *type_face, int *style, double *size);
|
54
|
+
double wdMarkSize(double size);
|
55
|
+
void wdFontDim(double *max_width, double *height, double *ascent, double *descent);
|
56
|
+
void wdTextSize(const char* s, double *width, double *height);
|
57
|
+
void wdTextBox(double x, double y, const char* s, double *xmin, double *xmax, double *ymin, double *ymax);
|
58
|
+
void wdTextBounds(double x, double y, const char* s, double *rect);
|
59
|
+
void wdStipple(int w, int h, const unsigned char* stipple, double w_mm, double h_mm);
|
60
|
+
void wdPattern(int w, int h, const long* pattern, double w_mm, double h_mm);
|
61
|
+
|
62
|
+
/* vector text */
|
63
|
+
void wdVectorTextDirection(double x1, double y1, double x2, double y2);
|
64
|
+
void wdVectorTextSize(double size_x, double size_y, const char* s);
|
65
|
+
void wdGetVectorTextSize(const char* s, double *x, double *y);
|
66
|
+
double wdVectorCharSize(double size);
|
67
|
+
void wdVectorText(double x, double y, const char* s);
|
68
|
+
void wdMultiLineVectorText(double x, double y, const char* s);
|
69
|
+
void wdGetVectorTextBounds(const char* s, double x, double y, double *rect);
|
70
|
+
|
71
|
+
/* OLD definitions, defined for backward compatibility */
|
72
|
+
#define wdVectorFont cdVectorFont
|
73
|
+
#define wdVectorTextTransform cdVectorTextTransform
|
74
|
+
#define wdActivate cdActivate
|
75
|
+
#define wdClip(mode) cdClip(mode)
|
76
|
+
#define wdBegin(mode) cdBegin(mode)
|
77
|
+
#define wdEnd() cdEnd();
|
78
|
+
#define wdMM2Pixel(mm_dx, mm_dy, dx, dy) cdMM2Pixel(mm_dx, mm_dy, dx, dy)
|
79
|
+
#define wdPixel2MM(dx, dy, mm_dx, mm_dy) cdPixel2MM(dx, dy, mm_dx, mm_dy)
|
80
|
+
|
81
|
+
#ifdef __cplusplus
|
82
|
+
}
|
83
|
+
#endif
|
84
|
+
|
85
|
+
#endif
|