ruby-iup 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +97 -0
- data/doc/README +10 -0
- data/doc/build_install.txt +77 -0
- data/examples/README +16 -0
- data/examples/ctrl/cbox.rb +221 -0
- data/examples/ctrl/checkboard.rb +33 -0
- data/examples/ctrl/degrade.rb +73 -0
- data/examples/ctrl/example1.rb +53 -0
- data/examples/ctrl/example2.rb +39 -0
- data/examples/ctrl/iupcolorbar.rb +95 -0
- data/examples/ctrl/iupcolorbrowser.rb +45 -0
- data/examples/ctrl/iupdial.rb +117 -0
- data/examples/ctrl/iupgauge.rb +242 -0
- data/examples/ctrl/iupgetcolor.rb +8 -0
- data/examples/ctrl/iupgetparam.rb +62 -0
- data/examples/ctrl/iupglcanvas.rb +172 -0
- data/examples/ctrl/iupmask.rb +15 -0
- data/examples/ctrl/iupmatrix.rb +39 -0
- data/examples/ctrl/iupplot2.rb +603 -0
- data/examples/ctrl/iuptabs.rb +22 -0
- data/examples/ctrl/iuptree.rb +190 -0
- data/examples/ctrl/iupval.rb +71 -0
- data/examples/ctrl/numbering.rb +46 -0
- data/examples/ctrl/sample.rb +166 -0
- data/examples/dlg/iupalarm.rb +14 -0
- data/examples/dlg/iupfiledlg.rb +19 -0
- data/examples/dlg/iupgetfile.rb +19 -0
- data/examples/dlg/iuplistdialog.rb +26 -0
- data/examples/dlg/iupmessage.rb +5 -0
- data/examples/dlg/iupscanf.rb +17 -0
- data/examples/elem/iupbutton.rb +197 -0
- data/examples/elem/iupcanvas.rb +27 -0
- data/examples/elem/iupcanvas2.rb +113 -0
- data/examples/elem/iupcanvas3.rb +62 -0
- data/examples/elem/iupdialog.rb +71 -0
- data/examples/elem/iupdialog2.rb +25 -0
- data/examples/elem/iupfill.rb +51 -0
- data/examples/elem/iupframe.rb +25 -0
- data/examples/elem/iuphbox.rb +68 -0
- data/examples/elem/iupimage.rb +113 -0
- data/examples/elem/iupitem.rb +60 -0
- data/examples/elem/iuplabel.rb +57 -0
- data/examples/elem/iuplist.rb +41 -0
- data/examples/elem/iuplist2.rb +125 -0
- data/examples/elem/iupmenu.rb +32 -0
- data/examples/elem/iupmultiline.rb +24 -0
- data/examples/elem/iupmultiline2.rb +156 -0
- data/examples/elem/iupradio.rb +32 -0
- data/examples/elem/iupseparator.rb +81 -0
- data/examples/elem/iupsubmenu.rb +85 -0
- data/examples/elem/iuptext.rb +61 -0
- data/examples/elem/iuptimer.rb +36 -0
- data/examples/elem/iuptoggle.rb +110 -0
- data/examples/elem/iupvbox.rb +87 -0
- data/examples/elem/iupzbox.rb +60 -0
- data/examples/elem/mdisample.rb +376 -0
- data/examples/elem/progressbar.rb +294 -0
- data/examples/elem/scrollbar.rb +66 -0
- data/examples/elem/tray.rb +90 -0
- data/examples/func/iupgetattribute.rb +32 -0
- data/examples/func/iupidle.rb +48 -0
- data/ext/extconf.rb +27 -0
- data/ext/iup-linux/include/cd.h +494 -0
- data/ext/iup-linux/include/cd_canvas.hpp +358 -0
- data/ext/iup-linux/include/cd_old.h +158 -0
- data/ext/iup-linux/include/cd_private.h +362 -0
- data/ext/iup-linux/include/cdcgm.h +34 -0
- data/ext/iup-linux/include/cdclipbd.h +22 -0
- data/ext/iup-linux/include/cddbuf.h +23 -0
- data/ext/iup-linux/include/cddebug.h +24 -0
- data/ext/iup-linux/include/cddgn.h +23 -0
- data/ext/iup-linux/include/cddxf.h +22 -0
- data/ext/iup-linux/include/cdemf.h +22 -0
- data/ext/iup-linux/include/cdgdiplus.h +29 -0
- data/ext/iup-linux/include/cdimage.h +23 -0
- data/ext/iup-linux/include/cdirgb.h +30 -0
- data/ext/iup-linux/include/cdiup.h +22 -0
- data/ext/iup-linux/include/cdlua.h +39 -0
- data/ext/iup-linux/include/cdlua3_private.h +120 -0
- data/ext/iup-linux/include/cdlua5_private.h +141 -0
- data/ext/iup-linux/include/cdluaim.h +24 -0
- data/ext/iup-linux/include/cdluaiup.h +27 -0
- data/ext/iup-linux/include/cdluapdf.h +27 -0
- data/ext/iup-linux/include/cdmf.h +24 -0
- data/ext/iup-linux/include/cdmf_private.h +32 -0
- data/ext/iup-linux/include/cdnative.h +26 -0
- data/ext/iup-linux/include/cdpdf.h +38 -0
- data/ext/iup-linux/include/cdpicture.h +22 -0
- data/ext/iup-linux/include/cdprint.h +23 -0
- data/ext/iup-linux/include/cdps.h +37 -0
- data/ext/iup-linux/include/cdwmf.h +22 -0
- data/ext/iup-linux/include/im.h +282 -0
- data/ext/iup-linux/include/im_attrib.h +116 -0
- data/ext/iup-linux/include/im_attrib_flat.h +39 -0
- data/ext/iup-linux/include/im_binfile.h +214 -0
- data/ext/iup-linux/include/im_capture.h +365 -0
- data/ext/iup-linux/include/im_color.h +465 -0
- data/ext/iup-linux/include/im_colorhsi.h +61 -0
- data/ext/iup-linux/include/im_complex.h +160 -0
- data/ext/iup-linux/include/im_convert.h +127 -0
- data/ext/iup-linux/include/im_counter.h +69 -0
- data/ext/iup-linux/include/im_dib.h +195 -0
- data/ext/iup-linux/include/im_file.h +111 -0
- data/ext/iup-linux/include/im_format.h +79 -0
- data/ext/iup-linux/include/im_format_all.h +576 -0
- data/ext/iup-linux/include/im_format_avi.h +87 -0
- data/ext/iup-linux/include/im_format_ecw.h +93 -0
- data/ext/iup-linux/include/im_format_jp2.h +78 -0
- data/ext/iup-linux/include/im_format_raw.h +64 -0
- data/ext/iup-linux/include/im_format_wmv.h +100 -0
- data/ext/iup-linux/include/im_image.h +403 -0
- data/ext/iup-linux/include/im_kernel.h +315 -0
- data/ext/iup-linux/include/im_lib.h +191 -0
- data/ext/iup-linux/include/im_math.h +368 -0
- data/ext/iup-linux/include/im_math_op.h +219 -0
- data/ext/iup-linux/include/im_palette.h +172 -0
- data/ext/iup-linux/include/im_plus.h +73 -0
- data/ext/iup-linux/include/im_process.h +35 -0
- data/ext/iup-linux/include/im_process_ana.h +221 -0
- data/ext/iup-linux/include/im_process_glo.h +170 -0
- data/ext/iup-linux/include/im_process_loc.h +577 -0
- data/ext/iup-linux/include/im_process_pon.h +712 -0
- data/ext/iup-linux/include/im_raw.h +34 -0
- data/ext/iup-linux/include/im_util.h +277 -0
- data/ext/iup-linux/include/imlua.h +83 -0
- data/ext/iup-linux/include/iup.h +255 -0
- data/ext/iup-linux/include/iup_pplot.h +40 -0
- data/ext/iup-linux/include/iupcb.h +25 -0
- data/ext/iup-linux/include/iupcbox.h +23 -0
- data/ext/iup-linux/include/iupcbs.h +42 -0
- data/ext/iup-linux/include/iupcells.h +130 -0
- data/ext/iup-linux/include/iupcolorbar.h +126 -0
- data/ext/iup-linux/include/iupcompat.h +62 -0
- data/ext/iup-linux/include/iupcontrols.h +40 -0
- data/ext/iup-linux/include/iupcpi.h +76 -0
- data/ext/iup-linux/include/iupdef.h +520 -0
- data/ext/iup-linux/include/iupdial.h +64 -0
- data/ext/iup-linux/include/iupgauge.h +57 -0
- data/ext/iup-linux/include/iupgc.h +20 -0
- data/ext/iup-linux/include/iupgetparam.h +27 -0
- data/ext/iup-linux/include/iupgl.h +101 -0
- data/ext/iup-linux/include/iupim.h +21 -0
- data/ext/iup-linux/include/iupkey.h +290 -0
- data/ext/iup-linux/include/iuplua.h +41 -0
- data/ext/iup-linux/include/iuplua_pplot.h +26 -0
- data/ext/iup-linux/include/iupluacontrols.h +27 -0
- data/ext/iup-linux/include/iupluagl.h +26 -0
- data/ext/iup-linux/include/iupluaim.h +26 -0
- data/ext/iup-linux/include/iupluaole.h +26 -0
- data/ext/iup-linux/include/iupmask.h +52 -0
- data/ext/iup-linux/include/iupmatrix.h +69 -0
- data/ext/iup-linux/include/iupole.h +24 -0
- data/ext/iup-linux/include/iupsbox.h +20 -0
- data/ext/iup-linux/include/iupspeech.h +23 -0
- data/ext/iup-linux/include/iupspin.h +21 -0
- data/ext/iup-linux/include/iuptabs.h +79 -0
- data/ext/iup-linux/include/iuptree.h +93 -0
- data/ext/iup-linux/include/iupval.h +46 -0
- data/ext/iup-linux/include/lauxlib.h +174 -0
- data/ext/iup-linux/include/lua.h +388 -0
- data/ext/iup-linux/include/lua.hpp +9 -0
- data/ext/iup-linux/include/luaconf.h +763 -0
- data/ext/iup-linux/include/lualib.h +53 -0
- data/ext/iup-linux/include/old_im.h +59 -0
- data/ext/iup-linux/include/wd.h +78 -0
- data/ext/iup-linux/include/wd_old.h +85 -0
- data/ext/iup-linux/libcd.so +0 -0
- data/ext/iup-linux/libcdcontextplus.so +0 -0
- data/ext/iup-linux/libcdluacontextplus51.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/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/cdlua51.lib +0 -0
- data/ext/iup-win32/cdluacontextplus51.lib +0 -0
- data/ext/iup-win32/cdluaim51.lib +0 -0
- data/ext/iup-win32/cdluapdf51.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_avi.dll +0 -0
- data/ext/iup-win32/im_capture.dll +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_jp2.dll +0 -0
- data/ext/iup-win32/im_process.dll +0 -0
- data/ext/iup-win32/im_wmv.dll +0 -0
- data/ext/iup-win32/include/cd.h +494 -0
- data/ext/iup-win32/include/cd_canvas.hpp +358 -0
- data/ext/iup-win32/include/cd_old.h +158 -0
- data/ext/iup-win32/include/cd_private.h +362 -0
- data/ext/iup-win32/include/cdcgm.h +34 -0
- data/ext/iup-win32/include/cdclipbd.h +22 -0
- data/ext/iup-win32/include/cddbuf.h +23 -0
- data/ext/iup-win32/include/cddebug.h +24 -0
- data/ext/iup-win32/include/cddgn.h +23 -0
- data/ext/iup-win32/include/cddxf.h +22 -0
- data/ext/iup-win32/include/cdemf.h +22 -0
- data/ext/iup-win32/include/cdgdiplus.h +29 -0
- data/ext/iup-win32/include/cdimage.h +23 -0
- data/ext/iup-win32/include/cdirgb.h +30 -0
- data/ext/iup-win32/include/cdiup.h +22 -0
- data/ext/iup-win32/include/cdlua.h +39 -0
- data/ext/iup-win32/include/cdlua3_private.h +120 -0
- data/ext/iup-win32/include/cdlua5_private.h +141 -0
- data/ext/iup-win32/include/cdluaim.h +24 -0
- data/ext/iup-win32/include/cdluaiup.h +27 -0
- data/ext/iup-win32/include/cdluapdf.h +27 -0
- data/ext/iup-win32/include/cdmf.h +24 -0
- data/ext/iup-win32/include/cdmf_private.h +32 -0
- data/ext/iup-win32/include/cdnative.h +26 -0
- data/ext/iup-win32/include/cdpdf.h +38 -0
- data/ext/iup-win32/include/cdpicture.h +22 -0
- data/ext/iup-win32/include/cdprint.h +23 -0
- data/ext/iup-win32/include/cdps.h +37 -0
- data/ext/iup-win32/include/cdwmf.h +22 -0
- data/ext/iup-win32/include/iup.h +255 -0
- data/ext/iup-win32/include/iup_pplot.h +40 -0
- data/ext/iup-win32/include/iupcb.h +25 -0
- data/ext/iup-win32/include/iupcbox.h +23 -0
- data/ext/iup-win32/include/iupcbs.h +42 -0
- data/ext/iup-win32/include/iupcells.h +130 -0
- data/ext/iup-win32/include/iupcolorbar.h +126 -0
- data/ext/iup-win32/include/iupcompat.h +62 -0
- data/ext/iup-win32/include/iupcontrols.h +40 -0
- data/ext/iup-win32/include/iupcpi.h +76 -0
- data/ext/iup-win32/include/iupdef.h +520 -0
- data/ext/iup-win32/include/iupdial.h +64 -0
- data/ext/iup-win32/include/iupgauge.h +57 -0
- data/ext/iup-win32/include/iupgc.h +20 -0
- data/ext/iup-win32/include/iupgetparam.h +27 -0
- data/ext/iup-win32/include/iupgl.h +101 -0
- data/ext/iup-win32/include/iupim.h +21 -0
- data/ext/iup-win32/include/iupkey.h +290 -0
- data/ext/iup-win32/include/iuplua.h +41 -0
- data/ext/iup-win32/include/iuplua_pplot.h +26 -0
- data/ext/iup-win32/include/iupluacontrols.h +27 -0
- data/ext/iup-win32/include/iupluagl.h +26 -0
- data/ext/iup-win32/include/iupluaim.h +26 -0
- data/ext/iup-win32/include/iupluaole.h +26 -0
- data/ext/iup-win32/include/iupmask.h +52 -0
- data/ext/iup-win32/include/iupmatrix.h +69 -0
- data/ext/iup-win32/include/iupole.h +24 -0
- data/ext/iup-win32/include/iupsbox.h +20 -0
- data/ext/iup-win32/include/iupspeech.h +23 -0
- data/ext/iup-win32/include/iupspin.h +21 -0
- data/ext/iup-win32/include/iuptabs.h +79 -0
- data/ext/iup-win32/include/iuptree.h +93 -0
- data/ext/iup-win32/include/iupval.h +46 -0
- data/ext/iup-win32/include/wd.h +78 -0
- data/ext/iup-win32/include/wd_old.h +85 -0
- 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/iupim.dll +0 -0
- data/ext/iup-win32/iupim.lib +0 -0
- data/ext/iup-win32/iupimglib.dll +0 -0
- data/ext/iup-win32/iupimglib.lib +0 -0
- data/ext/iup-win32/iuplua51.lib +0 -0
- data/ext/iup-win32/iuplua_pplot51.lib +0 -0
- data/ext/iup-win32/iupluacd51.lib +0 -0
- data/ext/iup-win32/iupluacontrols51.lib +0 -0
- data/ext/iup-win32/iupluagl51.lib +0 -0
- data/ext/iup-win32/iupluaim51.lib +0 -0
- data/ext/iup-win32/iupluaimglib51.lib +0 -0
- data/ext/iup-win32/iupluaole51.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/iup.c +1261 -0
- data/ext/mkrf_conf.rb +72 -0
- data/ext/rb_cd.h +1525 -0
- data/ext/rb_iup.h +2446 -0
- data/ext/rb_iup_pplot.h +129 -0
- data/ext/rb_iupcb.h +13 -0
- data/ext/rb_iupcbox.h +40 -0
- data/ext/rb_iupcells.h +15 -0
- data/ext/rb_iupcolorbar.h +17 -0
- data/ext/rb_iupcompat.h +237 -0
- data/ext/rb_iupcontrols.h +28 -0
- data/ext/rb_iupdef.h +3 -0
- data/ext/rb_iupdial.h +24 -0
- data/ext/rb_iupgauge.h +15 -0
- data/ext/rb_iupgc.h +18 -0
- data/ext/rb_iupgetparam.h +72 -0
- data/ext/rb_iupgl.h +58 -0
- data/ext/rb_iupim.h +25 -0
- data/ext/rb_iupmask.h +189 -0
- data/ext/rb_iupmatrix.h +80 -0
- data/ext/rb_iupole.h +24 -0
- data/ext/rb_iupsbox.h +23 -0
- data/ext/rb_iupspeech.h +25 -0
- data/ext/rb_iupspin.h +29 -0
- data/ext/rb_iuptabs.h +29 -0
- data/ext/rb_iuptree.h +94 -0
- data/ext/rb_iupval.h +24 -0
- data/lib/README +1 -0
- metadata +391 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief CD+IM Lua Binding
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_LUAIM_H
|
8
|
+
#define __CD_LUAIM_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
15
|
+
int cdluaim_open(lua_State *L);
|
16
|
+
int luaopen_cdluaim(lua_State *L);
|
17
|
+
#endif
|
18
|
+
|
19
|
+
#ifdef __cplusplus
|
20
|
+
}
|
21
|
+
#endif
|
22
|
+
|
23
|
+
#endif
|
24
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief IUP Canvas Lua Binding
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_LUAIUP_H
|
8
|
+
#define __CD_LUAIUP_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_NOOBJECT /* Lua 3 */
|
15
|
+
void cdluaiup_open(void);
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
19
|
+
int cdluaiup_open(lua_State *L);
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
}
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#endif
|
27
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief PDF Canvas Lua Binding
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_LUAPDF_H
|
8
|
+
#define __CD_LUAPDF_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifdef LUA_NOOBJECT /* Lua 3 */
|
15
|
+
void cdluapdf_open(void);
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#ifdef LUA_TNONE /* Lua 5 */
|
19
|
+
int cdluapdf_open(lua_State *L);
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#ifdef __cplusplus
|
23
|
+
}
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#endif
|
27
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief CD Metafile driver
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_MF_H
|
8
|
+
#define __CD_MF_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
cdContext* cdContextMetafile(void);
|
15
|
+
|
16
|
+
#define CD_METAFILE cdContextMetafile()
|
17
|
+
|
18
|
+
#ifdef __cplusplus
|
19
|
+
}
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#endif /* ifndef __CD_MF_ */
|
23
|
+
|
24
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief CD Metafile driver private declarations
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CDMF_PRIVATE_H
|
8
|
+
#define __CDMF_PRIVATE_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
/* public part of the internal cdCtxCanvas */
|
15
|
+
typedef struct cdCanvasMF
|
16
|
+
{
|
17
|
+
cdCanvas* canvas;
|
18
|
+
char* filename;
|
19
|
+
void* data;
|
20
|
+
} cdCanvasMF;
|
21
|
+
|
22
|
+
void cdcreatecanvasMF(cdCanvas *canvas, void *data);
|
23
|
+
void cdinittableMF(cdCanvas* canvas);
|
24
|
+
void cdkillcanvasMF(cdCanvasMF *mfcanvas);
|
25
|
+
|
26
|
+
#ifdef __cplusplus
|
27
|
+
}
|
28
|
+
#endif
|
29
|
+
|
30
|
+
#endif
|
31
|
+
|
32
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief NativeWindow driver
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_NATIVE_H
|
8
|
+
#define __CD_NATIVE_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
cdContext* cdContextNativeWindow(void);
|
15
|
+
|
16
|
+
#define CD_NATIVEWINDOW cdContextNativeWindow()
|
17
|
+
|
18
|
+
void cdGetScreenSize(int *width, int *height, double *width_mm, double *height_mm);
|
19
|
+
int cdGetScreenColorPlanes(void);
|
20
|
+
|
21
|
+
#ifdef __cplusplus
|
22
|
+
}
|
23
|
+
#endif
|
24
|
+
|
25
|
+
#endif /* ifndef __CD_NATIVE_ */
|
26
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief PDF driver
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_PDF_H
|
8
|
+
#define __CD_PDF_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
cdContext* cdContextPDF(void);
|
15
|
+
|
16
|
+
#define CD_PDF cdContextPDF()
|
17
|
+
|
18
|
+
#ifndef CD_PAPERSIZE
|
19
|
+
#define CD_PAPERSIZE
|
20
|
+
enum { /* paper sizes */
|
21
|
+
CD_A0,
|
22
|
+
CD_A1,
|
23
|
+
CD_A2,
|
24
|
+
CD_A3,
|
25
|
+
CD_A4,
|
26
|
+
CD_A5,
|
27
|
+
CD_LETTER,
|
28
|
+
CD_LEGAL
|
29
|
+
};
|
30
|
+
#endif
|
31
|
+
|
32
|
+
|
33
|
+
#ifdef __cplusplus
|
34
|
+
}
|
35
|
+
#endif
|
36
|
+
|
37
|
+
#endif /* ifndef _CD_PDF_ */
|
38
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief CD Picture driver
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_PICTURE_H
|
8
|
+
#define __CD_PICTURE_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
cdContext* cdContextPicture(void);
|
15
|
+
|
16
|
+
#define CD_PICTURE cdContextPicture()
|
17
|
+
|
18
|
+
#ifdef __cplusplus
|
19
|
+
}
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#endif
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief Printer driver
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_PRINTER_H
|
8
|
+
#define __CD_PRINTER_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
cdContext* cdContextPrinter(void);
|
15
|
+
|
16
|
+
#define CD_PRINTER cdContextPrinter()
|
17
|
+
|
18
|
+
#ifdef __cplusplus
|
19
|
+
}
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#endif /* ifndef __CD_PRINTER_ */
|
23
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief PS driver
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_PS_H
|
8
|
+
#define __CD_PS_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
cdContext* cdContextPS(void);
|
15
|
+
|
16
|
+
#define CD_PS cdContextPS()
|
17
|
+
|
18
|
+
#ifndef CD_PAPERSIZE
|
19
|
+
#define CD_PAPERSIZE
|
20
|
+
enum { /* paper sizes */
|
21
|
+
CD_A0,
|
22
|
+
CD_A1,
|
23
|
+
CD_A2,
|
24
|
+
CD_A3,
|
25
|
+
CD_A4,
|
26
|
+
CD_A5,
|
27
|
+
CD_LETTER,
|
28
|
+
CD_LEGAL
|
29
|
+
};
|
30
|
+
#endif
|
31
|
+
|
32
|
+
#ifdef __cplusplus
|
33
|
+
}
|
34
|
+
#endif
|
35
|
+
|
36
|
+
#endif /* ifndef __CD_PS_ */
|
37
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief WMF driver
|
3
|
+
*
|
4
|
+
* See Copyright Notice in cd.h
|
5
|
+
*/
|
6
|
+
|
7
|
+
#ifndef __CD_WMF_H
|
8
|
+
#define __CD_WMF_H
|
9
|
+
|
10
|
+
#ifdef __cplusplus
|
11
|
+
extern "C" {
|
12
|
+
#endif
|
13
|
+
|
14
|
+
cdContext* cdContextWMF(void);
|
15
|
+
|
16
|
+
#define CD_WMF cdContextWMF()
|
17
|
+
|
18
|
+
#ifdef __cplusplus
|
19
|
+
}
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#endif
|
@@ -0,0 +1,255 @@
|
|
1
|
+
/** \file
|
2
|
+
* \brief User API
|
3
|
+
* IUP - A Portable User Interface Toolkit
|
4
|
+
* Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
|
5
|
+
* http://www.tecgraf.puc-rio.br/iup mailto:iup@tecgraf.puc-rio.br
|
6
|
+
*
|
7
|
+
* See Copyright Notice at the end of this file
|
8
|
+
*/
|
9
|
+
|
10
|
+
#ifndef __IUP_H
|
11
|
+
#define __IUP_H
|
12
|
+
|
13
|
+
#include <iupkey.h>
|
14
|
+
#include <iupdef.h>
|
15
|
+
|
16
|
+
#ifdef __cplusplus
|
17
|
+
extern "C" {
|
18
|
+
#endif
|
19
|
+
|
20
|
+
|
21
|
+
#define IUP_NAME "IUP - Portable User Interface"
|
22
|
+
#define IUP_COPYRIGHT "Copyright (C) 1994-2008 Tecgraf, PUC-Rio."
|
23
|
+
#define IUP_DESCRIPTION "Portable toolkit for building graphical user interfaces."
|
24
|
+
#define IUP_VERSION "2.7.0"
|
25
|
+
#define IUP_VERSION_DATE "2008/10/14"
|
26
|
+
#define IUP_VERSION_NUMBER 207000
|
27
|
+
|
28
|
+
typedef struct Ihandle_ Ihandle;
|
29
|
+
typedef int (*Icallback)(Ihandle*);
|
30
|
+
|
31
|
+
/************************************************************************/
|
32
|
+
/* pre-definided dialogs */
|
33
|
+
/************************************************************************/
|
34
|
+
Ihandle* IupFileDlg(void);
|
35
|
+
|
36
|
+
int IupGetFile (char *arq);
|
37
|
+
void IupMessage (const char *title, const char *msg);
|
38
|
+
void IupMessagef (const char *title, const char *format, ...);
|
39
|
+
int IupAlarm (const char *title, const char *msg, const char *b1, const char *b2, const char *b3);
|
40
|
+
int IupScanf (const char *format, ...);
|
41
|
+
int IupListDialog (int type, const char *title, int size, const char *lst[],
|
42
|
+
int op, int col, int line, int marks[]);
|
43
|
+
int IupGetText (const char* title, char* text);
|
44
|
+
|
45
|
+
/************************************************************************/
|
46
|
+
/* Functions */
|
47
|
+
/************************************************************************/
|
48
|
+
|
49
|
+
int IupOpen (int *argc, char ***argv);
|
50
|
+
void IupClose (void);
|
51
|
+
|
52
|
+
int IupMainLoop (void);
|
53
|
+
int IupLoopStep (void);
|
54
|
+
void IupFlush (void);
|
55
|
+
void IupExitLoop (void);
|
56
|
+
|
57
|
+
void IupUpdate (Ihandle* ih);
|
58
|
+
void IupRefresh (Ihandle* ih);
|
59
|
+
char* IupMapFont (const char *iupfont);
|
60
|
+
char* IupUnMapFont (const char *driverfont);
|
61
|
+
int IupHelp (const char* url);
|
62
|
+
char * IupLoad (const char *filename);
|
63
|
+
|
64
|
+
char* IupVersion (void);
|
65
|
+
char* IupVersionDate (void);
|
66
|
+
int IupVersionNumber (void);
|
67
|
+
void IupSetLanguage (const char *lng);
|
68
|
+
char* IupGetLanguage (void);
|
69
|
+
|
70
|
+
void IupDestroy (Ihandle *ih);
|
71
|
+
void IupDetach (Ihandle *child);
|
72
|
+
Ihandle* IupAppend (Ihandle *ih, Ihandle *child);
|
73
|
+
Ihandle* IupGetNextChild (Ihandle *ih, Ihandle *child);
|
74
|
+
Ihandle* IupGetBrother (Ihandle *ih);
|
75
|
+
Ihandle* IupGetParent (Ihandle *ih);
|
76
|
+
Ihandle* IupGetDialog (Ihandle *ih);
|
77
|
+
|
78
|
+
int IupPopup (Ihandle *ih, int x, int y);
|
79
|
+
int IupShow (Ihandle *ih);
|
80
|
+
int IupShowXY (Ihandle *ih, int x, int y);
|
81
|
+
int IupHide (Ihandle *ih);
|
82
|
+
int IupMap (Ihandle *ih);
|
83
|
+
|
84
|
+
void IupSetAttribute (Ihandle *ih, const char* name, const char* value);
|
85
|
+
void IupStoreAttribute(Ihandle *ih, const char* name, const char* value);
|
86
|
+
Ihandle* IupSetAttributes (Ihandle *ih, const char *str);
|
87
|
+
char* IupGetAttribute (Ihandle *ih, const char* name);
|
88
|
+
char* IupGetAttributes (Ihandle *ih);
|
89
|
+
int IupGetInt (Ihandle *ih, const char* name);
|
90
|
+
int IupGetInt2 (Ihandle *ih, const char* name);
|
91
|
+
float IupGetFloat (Ihandle *ih, const char* name);
|
92
|
+
void IupSetfAttribute (Ihandle *ih, const char* name, const char* format, ...);
|
93
|
+
|
94
|
+
void IupSetGlobal (const char* name, const char* value);
|
95
|
+
void IupStoreGlobal (const char* name, const char* value);
|
96
|
+
char* IupGetGlobal (const char* name);
|
97
|
+
|
98
|
+
Ihandle* IupSetFocus (Ihandle *ih);
|
99
|
+
Ihandle* IupGetFocus (void);
|
100
|
+
Ihandle* IupPreviousField (Ihandle *ih);
|
101
|
+
Ihandle* IupNextField (Ihandle *ih);
|
102
|
+
|
103
|
+
Icallback IupGetCallback(Ihandle *ih, const char *name);
|
104
|
+
Icallback IupSetCallback(Ihandle *ih, const char *name, Icallback func);
|
105
|
+
Ihandle* IupSetCallbacks(Ihandle* ih, ...);
|
106
|
+
|
107
|
+
Icallback IupGetFunction (const char *name);
|
108
|
+
Icallback IupSetFunction (const char *name, Icallback func);
|
109
|
+
const char* IupGetActionName (void);
|
110
|
+
|
111
|
+
Ihandle* IupGetHandle (const char *name);
|
112
|
+
Ihandle* IupSetHandle (const char *name, Ihandle *ih);
|
113
|
+
int IupGetAllNames (char *names[], int n);
|
114
|
+
int IupGetAllDialogs (char *names[], int n);
|
115
|
+
char* IupGetName (Ihandle* ih);
|
116
|
+
|
117
|
+
void IupSetAttributeHandle (Ihandle *ih, const char* name, Ihandle *ih_named);
|
118
|
+
Ihandle* IupGetAttributeHandle(Ihandle *ih, const char* name);
|
119
|
+
|
120
|
+
char* IupGetClassName (Ihandle *ih);
|
121
|
+
|
122
|
+
Ihandle* IupCreate (const char *name);
|
123
|
+
Ihandle* IupCreatev (const char *name, void* *params);
|
124
|
+
Ihandle* IupCreatep (const char *name, void* first, ...);
|
125
|
+
|
126
|
+
Ihandle* IupFill (void);
|
127
|
+
Ihandle* IupRadio (Ihandle *child);
|
128
|
+
Ihandle* IupVbox (Ihandle* child, ...);
|
129
|
+
Ihandle* IupVboxv (Ihandle* *children);
|
130
|
+
Ihandle* IupZbox (Ihandle* child, ...);
|
131
|
+
Ihandle* IupZboxv (Ihandle* *children);
|
132
|
+
Ihandle* IupHbox (Ihandle* child,...);
|
133
|
+
Ihandle* IupHboxv (Ihandle* *children);
|
134
|
+
|
135
|
+
|
136
|
+
Ihandle* IupFrame (Ihandle* child);
|
137
|
+
|
138
|
+
Ihandle* IupImage (int width, int height, const unsigned char *pixmap);
|
139
|
+
Ihandle* IupButton (const char* title, const char* action);
|
140
|
+
Ihandle* IupCanvas (const char* action);
|
141
|
+
Ihandle* IupDialog (Ihandle* child);
|
142
|
+
Ihandle* IupUser (void);
|
143
|
+
Ihandle* IupItem (const char* title, const char* action);
|
144
|
+
Ihandle* IupSubmenu (const char* title, Ihandle* child);
|
145
|
+
Ihandle* IupSeparator (void);
|
146
|
+
Ihandle* IupLabel (const char* title);
|
147
|
+
Ihandle* IupList (const char* action);
|
148
|
+
Ihandle* IupMenu (Ihandle *child,...);
|
149
|
+
Ihandle* IupMenuv (Ihandle **children);
|
150
|
+
Ihandle* IupText (const char* action);
|
151
|
+
Ihandle* IupMultiLine (const char* action);
|
152
|
+
Ihandle* IupToggle (const char* title, const char* action);
|
153
|
+
Ihandle* IupTimer (void);
|
154
|
+
|
155
|
+
#ifdef __cplusplus
|
156
|
+
}
|
157
|
+
#endif
|
158
|
+
|
159
|
+
/************************************************************************/
|
160
|
+
/* Common Return Values */
|
161
|
+
/************************************************************************/
|
162
|
+
#define IUP_ERROR 1
|
163
|
+
#define IUP_NOERROR 0
|
164
|
+
#define IUP_OPENED -1
|
165
|
+
#define IUP_INVALID -1
|
166
|
+
|
167
|
+
/************************************************************************/
|
168
|
+
/* Callback Return Values */
|
169
|
+
/************************************************************************/
|
170
|
+
#define IUP_IGNORE -1
|
171
|
+
#define IUP_DEFAULT -2
|
172
|
+
#define IUP_CLOSE -3
|
173
|
+
#define IUP_CONTINUE -4
|
174
|
+
|
175
|
+
/************************************************************************/
|
176
|
+
/* IupPopup and IupShowXY Parameter Values */
|
177
|
+
/************************************************************************/
|
178
|
+
#define IUP_CENTER 0xFFFF /* 65535 */
|
179
|
+
#define IUP_LEFT 0xFFFE /* 65534 */
|
180
|
+
#define IUP_RIGHT 0xFFFD /* 65533 */
|
181
|
+
#define IUP_MOUSEPOS 0xFFFC /* 65532 */
|
182
|
+
#define IUP_CURRENT 0xFFFB /* 65531 */
|
183
|
+
#define IUP_CENTERPARENT 0xFFFA
|
184
|
+
#define IUP_TOP IUP_LEFT
|
185
|
+
#define IUP_BOTTOM IUP_RIGHT
|
186
|
+
|
187
|
+
/************************************************************************/
|
188
|
+
/* SHOW_CB Callback Values */
|
189
|
+
/************************************************************************/
|
190
|
+
enum{IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE};
|
191
|
+
|
192
|
+
/************************************************************************/
|
193
|
+
/* SCROLL_CB Callback Values */
|
194
|
+
/************************************************************************/
|
195
|
+
enum{IUP_SBUP, IUP_SBDN, IUP_SBPGUP, IUP_SBPGDN, IUP_SBPOSV, IUP_SBDRAGV,
|
196
|
+
IUP_SBLEFT, IUP_SBRIGHT, IUP_SBPGLEFT, IUP_SBPGRIGHT, IUP_SBPOSH, IUP_SBDRAGH};
|
197
|
+
|
198
|
+
/************************************************************************/
|
199
|
+
/* Mouse Button Values and Macros */
|
200
|
+
/************************************************************************/
|
201
|
+
#define IUP_BUTTON1 '1'
|
202
|
+
#define IUP_BUTTON2 '2'
|
203
|
+
#define IUP_BUTTON3 '3'
|
204
|
+
#define IUP_BUTTON4 '4'
|
205
|
+
#define IUP_BUTTON5 '5'
|
206
|
+
|
207
|
+
#define isshift(_s) (_s[0]=='S')
|
208
|
+
#define iscontrol(_s) (_s[1]=='C')
|
209
|
+
#define isbutton1(_s) (_s[2]=='1')
|
210
|
+
#define isbutton2(_s) (_s[3]=='2')
|
211
|
+
#define isbutton3(_s) (_s[4]=='3')
|
212
|
+
#define isdouble(_s) (_s[5]=='D')
|
213
|
+
#define isalt(_s) (_s[6]=='A')
|
214
|
+
#define issys(_s) (_s[7]=='Y')
|
215
|
+
#define isbutton4(_s) (_s[8]=='4')
|
216
|
+
#define isbutton5(_s) (_s[9]=='5')
|
217
|
+
|
218
|
+
|
219
|
+
/************************************************************************/
|
220
|
+
/* Replacement for the WinMain in Windows, */
|
221
|
+
/* this allows the application to start from "main". */
|
222
|
+
/************************************************************************/
|
223
|
+
#if defined (__WATCOMC__) || defined (__MWERKS__)
|
224
|
+
#ifdef __cplusplus
|
225
|
+
extern "C" {
|
226
|
+
int IupMain (int argc, char** argv); /* In C++ we have to declare the prototype */
|
227
|
+
}
|
228
|
+
#endif
|
229
|
+
#define main IupMain /* this is the trick for Watcom and MetroWerks */
|
230
|
+
#endif
|
231
|
+
|
232
|
+
/******************************************************************************
|
233
|
+
* Copyright (C) 1994-2008 Tecgraf, PUC-Rio.
|
234
|
+
*
|
235
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
236
|
+
* a copy of this software and associated documentation files (the
|
237
|
+
* "Software"), to deal in the Software without restriction, including
|
238
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
239
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
240
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
241
|
+
* the following conditions:
|
242
|
+
*
|
243
|
+
* The above copyright notice and this permission notice shall be
|
244
|
+
* included in all copies or substantial portions of the Software.
|
245
|
+
*
|
246
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
247
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
248
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
249
|
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
250
|
+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
251
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
252
|
+
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
253
|
+
******************************************************************************/
|
254
|
+
|
255
|
+
#endif
|