ruby-iup 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (323) hide show
  1. data/Rakefile +97 -0
  2. data/doc/README +10 -0
  3. data/doc/build_install.txt +77 -0
  4. data/examples/README +16 -0
  5. data/examples/ctrl/cbox.rb +221 -0
  6. data/examples/ctrl/checkboard.rb +33 -0
  7. data/examples/ctrl/degrade.rb +73 -0
  8. data/examples/ctrl/example1.rb +53 -0
  9. data/examples/ctrl/example2.rb +39 -0
  10. data/examples/ctrl/iupcolorbar.rb +95 -0
  11. data/examples/ctrl/iupcolorbrowser.rb +45 -0
  12. data/examples/ctrl/iupdial.rb +117 -0
  13. data/examples/ctrl/iupgauge.rb +242 -0
  14. data/examples/ctrl/iupgetcolor.rb +8 -0
  15. data/examples/ctrl/iupgetparam.rb +62 -0
  16. data/examples/ctrl/iupglcanvas.rb +172 -0
  17. data/examples/ctrl/iupmask.rb +15 -0
  18. data/examples/ctrl/iupmatrix.rb +39 -0
  19. data/examples/ctrl/iupplot2.rb +603 -0
  20. data/examples/ctrl/iuptabs.rb +22 -0
  21. data/examples/ctrl/iuptree.rb +190 -0
  22. data/examples/ctrl/iupval.rb +71 -0
  23. data/examples/ctrl/numbering.rb +46 -0
  24. data/examples/ctrl/sample.rb +166 -0
  25. data/examples/dlg/iupalarm.rb +14 -0
  26. data/examples/dlg/iupfiledlg.rb +19 -0
  27. data/examples/dlg/iupgetfile.rb +19 -0
  28. data/examples/dlg/iuplistdialog.rb +26 -0
  29. data/examples/dlg/iupmessage.rb +5 -0
  30. data/examples/dlg/iupscanf.rb +17 -0
  31. data/examples/elem/iupbutton.rb +197 -0
  32. data/examples/elem/iupcanvas.rb +27 -0
  33. data/examples/elem/iupcanvas2.rb +113 -0
  34. data/examples/elem/iupcanvas3.rb +62 -0
  35. data/examples/elem/iupdialog.rb +71 -0
  36. data/examples/elem/iupdialog2.rb +25 -0
  37. data/examples/elem/iupfill.rb +51 -0
  38. data/examples/elem/iupframe.rb +25 -0
  39. data/examples/elem/iuphbox.rb +68 -0
  40. data/examples/elem/iupimage.rb +113 -0
  41. data/examples/elem/iupitem.rb +60 -0
  42. data/examples/elem/iuplabel.rb +57 -0
  43. data/examples/elem/iuplist.rb +41 -0
  44. data/examples/elem/iuplist2.rb +125 -0
  45. data/examples/elem/iupmenu.rb +32 -0
  46. data/examples/elem/iupmultiline.rb +24 -0
  47. data/examples/elem/iupmultiline2.rb +156 -0
  48. data/examples/elem/iupradio.rb +32 -0
  49. data/examples/elem/iupseparator.rb +81 -0
  50. data/examples/elem/iupsubmenu.rb +85 -0
  51. data/examples/elem/iuptext.rb +61 -0
  52. data/examples/elem/iuptimer.rb +36 -0
  53. data/examples/elem/iuptoggle.rb +110 -0
  54. data/examples/elem/iupvbox.rb +87 -0
  55. data/examples/elem/iupzbox.rb +60 -0
  56. data/examples/elem/mdisample.rb +376 -0
  57. data/examples/elem/progressbar.rb +294 -0
  58. data/examples/elem/scrollbar.rb +66 -0
  59. data/examples/elem/tray.rb +90 -0
  60. data/examples/func/iupgetattribute.rb +32 -0
  61. data/examples/func/iupidle.rb +48 -0
  62. data/ext/extconf.rb +27 -0
  63. data/ext/iup-linux/include/cd.h +494 -0
  64. data/ext/iup-linux/include/cd_canvas.hpp +358 -0
  65. data/ext/iup-linux/include/cd_old.h +158 -0
  66. data/ext/iup-linux/include/cd_private.h +362 -0
  67. data/ext/iup-linux/include/cdcgm.h +34 -0
  68. data/ext/iup-linux/include/cdclipbd.h +22 -0
  69. data/ext/iup-linux/include/cddbuf.h +23 -0
  70. data/ext/iup-linux/include/cddebug.h +24 -0
  71. data/ext/iup-linux/include/cddgn.h +23 -0
  72. data/ext/iup-linux/include/cddxf.h +22 -0
  73. data/ext/iup-linux/include/cdemf.h +22 -0
  74. data/ext/iup-linux/include/cdgdiplus.h +29 -0
  75. data/ext/iup-linux/include/cdimage.h +23 -0
  76. data/ext/iup-linux/include/cdirgb.h +30 -0
  77. data/ext/iup-linux/include/cdiup.h +22 -0
  78. data/ext/iup-linux/include/cdlua.h +39 -0
  79. data/ext/iup-linux/include/cdlua3_private.h +120 -0
  80. data/ext/iup-linux/include/cdlua5_private.h +141 -0
  81. data/ext/iup-linux/include/cdluaim.h +24 -0
  82. data/ext/iup-linux/include/cdluaiup.h +27 -0
  83. data/ext/iup-linux/include/cdluapdf.h +27 -0
  84. data/ext/iup-linux/include/cdmf.h +24 -0
  85. data/ext/iup-linux/include/cdmf_private.h +32 -0
  86. data/ext/iup-linux/include/cdnative.h +26 -0
  87. data/ext/iup-linux/include/cdpdf.h +38 -0
  88. data/ext/iup-linux/include/cdpicture.h +22 -0
  89. data/ext/iup-linux/include/cdprint.h +23 -0
  90. data/ext/iup-linux/include/cdps.h +37 -0
  91. data/ext/iup-linux/include/cdwmf.h +22 -0
  92. data/ext/iup-linux/include/im.h +282 -0
  93. data/ext/iup-linux/include/im_attrib.h +116 -0
  94. data/ext/iup-linux/include/im_attrib_flat.h +39 -0
  95. data/ext/iup-linux/include/im_binfile.h +214 -0
  96. data/ext/iup-linux/include/im_capture.h +365 -0
  97. data/ext/iup-linux/include/im_color.h +465 -0
  98. data/ext/iup-linux/include/im_colorhsi.h +61 -0
  99. data/ext/iup-linux/include/im_complex.h +160 -0
  100. data/ext/iup-linux/include/im_convert.h +127 -0
  101. data/ext/iup-linux/include/im_counter.h +69 -0
  102. data/ext/iup-linux/include/im_dib.h +195 -0
  103. data/ext/iup-linux/include/im_file.h +111 -0
  104. data/ext/iup-linux/include/im_format.h +79 -0
  105. data/ext/iup-linux/include/im_format_all.h +576 -0
  106. data/ext/iup-linux/include/im_format_avi.h +87 -0
  107. data/ext/iup-linux/include/im_format_ecw.h +93 -0
  108. data/ext/iup-linux/include/im_format_jp2.h +78 -0
  109. data/ext/iup-linux/include/im_format_raw.h +64 -0
  110. data/ext/iup-linux/include/im_format_wmv.h +100 -0
  111. data/ext/iup-linux/include/im_image.h +403 -0
  112. data/ext/iup-linux/include/im_kernel.h +315 -0
  113. data/ext/iup-linux/include/im_lib.h +191 -0
  114. data/ext/iup-linux/include/im_math.h +368 -0
  115. data/ext/iup-linux/include/im_math_op.h +219 -0
  116. data/ext/iup-linux/include/im_palette.h +172 -0
  117. data/ext/iup-linux/include/im_plus.h +73 -0
  118. data/ext/iup-linux/include/im_process.h +35 -0
  119. data/ext/iup-linux/include/im_process_ana.h +221 -0
  120. data/ext/iup-linux/include/im_process_glo.h +170 -0
  121. data/ext/iup-linux/include/im_process_loc.h +577 -0
  122. data/ext/iup-linux/include/im_process_pon.h +712 -0
  123. data/ext/iup-linux/include/im_raw.h +34 -0
  124. data/ext/iup-linux/include/im_util.h +277 -0
  125. data/ext/iup-linux/include/imlua.h +83 -0
  126. data/ext/iup-linux/include/iup.h +255 -0
  127. data/ext/iup-linux/include/iup_pplot.h +40 -0
  128. data/ext/iup-linux/include/iupcb.h +25 -0
  129. data/ext/iup-linux/include/iupcbox.h +23 -0
  130. data/ext/iup-linux/include/iupcbs.h +42 -0
  131. data/ext/iup-linux/include/iupcells.h +130 -0
  132. data/ext/iup-linux/include/iupcolorbar.h +126 -0
  133. data/ext/iup-linux/include/iupcompat.h +62 -0
  134. data/ext/iup-linux/include/iupcontrols.h +40 -0
  135. data/ext/iup-linux/include/iupcpi.h +76 -0
  136. data/ext/iup-linux/include/iupdef.h +520 -0
  137. data/ext/iup-linux/include/iupdial.h +64 -0
  138. data/ext/iup-linux/include/iupgauge.h +57 -0
  139. data/ext/iup-linux/include/iupgc.h +20 -0
  140. data/ext/iup-linux/include/iupgetparam.h +27 -0
  141. data/ext/iup-linux/include/iupgl.h +101 -0
  142. data/ext/iup-linux/include/iupim.h +21 -0
  143. data/ext/iup-linux/include/iupkey.h +290 -0
  144. data/ext/iup-linux/include/iuplua.h +41 -0
  145. data/ext/iup-linux/include/iuplua_pplot.h +26 -0
  146. data/ext/iup-linux/include/iupluacontrols.h +27 -0
  147. data/ext/iup-linux/include/iupluagl.h +26 -0
  148. data/ext/iup-linux/include/iupluaim.h +26 -0
  149. data/ext/iup-linux/include/iupluaole.h +26 -0
  150. data/ext/iup-linux/include/iupmask.h +52 -0
  151. data/ext/iup-linux/include/iupmatrix.h +69 -0
  152. data/ext/iup-linux/include/iupole.h +24 -0
  153. data/ext/iup-linux/include/iupsbox.h +20 -0
  154. data/ext/iup-linux/include/iupspeech.h +23 -0
  155. data/ext/iup-linux/include/iupspin.h +21 -0
  156. data/ext/iup-linux/include/iuptabs.h +79 -0
  157. data/ext/iup-linux/include/iuptree.h +93 -0
  158. data/ext/iup-linux/include/iupval.h +46 -0
  159. data/ext/iup-linux/include/lauxlib.h +174 -0
  160. data/ext/iup-linux/include/lua.h +388 -0
  161. data/ext/iup-linux/include/lua.hpp +9 -0
  162. data/ext/iup-linux/include/luaconf.h +763 -0
  163. data/ext/iup-linux/include/lualib.h +53 -0
  164. data/ext/iup-linux/include/old_im.h +59 -0
  165. data/ext/iup-linux/include/wd.h +78 -0
  166. data/ext/iup-linux/include/wd_old.h +85 -0
  167. data/ext/iup-linux/libcd.so +0 -0
  168. data/ext/iup-linux/libcdcontextplus.so +0 -0
  169. data/ext/iup-linux/libcdluacontextplus51.so +0 -0
  170. data/ext/iup-linux/libcdpdf.so +0 -0
  171. data/ext/iup-linux/libfreetype.so +0 -0
  172. data/ext/iup-linux/libim.so +0 -0
  173. data/ext/iup-linux/libim_fftw.so +0 -0
  174. data/ext/iup-linux/libim_jp2.so +0 -0
  175. data/ext/iup-linux/libim_process.so +0 -0
  176. data/ext/iup-linux/libiup.so +0 -0
  177. data/ext/iup-linux/libiup_pplot.so +0 -0
  178. data/ext/iup-linux/libiupcd.so +0 -0
  179. data/ext/iup-linux/libiupcontrols.so +0 -0
  180. data/ext/iup-linux/libiupgl.so +0 -0
  181. data/ext/iup-linux/libiupim.so +0 -0
  182. data/ext/iup-linux/libiupimglib.so +0 -0
  183. data/ext/iup-linux/libpdflib.so +0 -0
  184. data/ext/iup-win32/cd.dll +0 -0
  185. data/ext/iup-win32/cd.lib +0 -0
  186. data/ext/iup-win32/cdcontextplus.dll +0 -0
  187. data/ext/iup-win32/cdcontextplus.lib +0 -0
  188. data/ext/iup-win32/cdlua51.lib +0 -0
  189. data/ext/iup-win32/cdluacontextplus51.lib +0 -0
  190. data/ext/iup-win32/cdluaim51.lib +0 -0
  191. data/ext/iup-win32/cdluapdf51.lib +0 -0
  192. data/ext/iup-win32/cdpdf.dll +0 -0
  193. data/ext/iup-win32/cdpdf.lib +0 -0
  194. data/ext/iup-win32/freetype6.dll +0 -0
  195. data/ext/iup-win32/freetype6.lib +0 -0
  196. data/ext/iup-win32/im.dll +0 -0
  197. data/ext/iup-win32/im_avi.dll +0 -0
  198. data/ext/iup-win32/im_capture.dll +0 -0
  199. data/ext/iup-win32/im_ecw.dll +0 -0
  200. data/ext/iup-win32/im_fftw.dll +0 -0
  201. data/ext/iup-win32/im_jp2.dll +0 -0
  202. data/ext/iup-win32/im_process.dll +0 -0
  203. data/ext/iup-win32/im_wmv.dll +0 -0
  204. data/ext/iup-win32/include/cd.h +494 -0
  205. data/ext/iup-win32/include/cd_canvas.hpp +358 -0
  206. data/ext/iup-win32/include/cd_old.h +158 -0
  207. data/ext/iup-win32/include/cd_private.h +362 -0
  208. data/ext/iup-win32/include/cdcgm.h +34 -0
  209. data/ext/iup-win32/include/cdclipbd.h +22 -0
  210. data/ext/iup-win32/include/cddbuf.h +23 -0
  211. data/ext/iup-win32/include/cddebug.h +24 -0
  212. data/ext/iup-win32/include/cddgn.h +23 -0
  213. data/ext/iup-win32/include/cddxf.h +22 -0
  214. data/ext/iup-win32/include/cdemf.h +22 -0
  215. data/ext/iup-win32/include/cdgdiplus.h +29 -0
  216. data/ext/iup-win32/include/cdimage.h +23 -0
  217. data/ext/iup-win32/include/cdirgb.h +30 -0
  218. data/ext/iup-win32/include/cdiup.h +22 -0
  219. data/ext/iup-win32/include/cdlua.h +39 -0
  220. data/ext/iup-win32/include/cdlua3_private.h +120 -0
  221. data/ext/iup-win32/include/cdlua5_private.h +141 -0
  222. data/ext/iup-win32/include/cdluaim.h +24 -0
  223. data/ext/iup-win32/include/cdluaiup.h +27 -0
  224. data/ext/iup-win32/include/cdluapdf.h +27 -0
  225. data/ext/iup-win32/include/cdmf.h +24 -0
  226. data/ext/iup-win32/include/cdmf_private.h +32 -0
  227. data/ext/iup-win32/include/cdnative.h +26 -0
  228. data/ext/iup-win32/include/cdpdf.h +38 -0
  229. data/ext/iup-win32/include/cdpicture.h +22 -0
  230. data/ext/iup-win32/include/cdprint.h +23 -0
  231. data/ext/iup-win32/include/cdps.h +37 -0
  232. data/ext/iup-win32/include/cdwmf.h +22 -0
  233. data/ext/iup-win32/include/iup.h +255 -0
  234. data/ext/iup-win32/include/iup_pplot.h +40 -0
  235. data/ext/iup-win32/include/iupcb.h +25 -0
  236. data/ext/iup-win32/include/iupcbox.h +23 -0
  237. data/ext/iup-win32/include/iupcbs.h +42 -0
  238. data/ext/iup-win32/include/iupcells.h +130 -0
  239. data/ext/iup-win32/include/iupcolorbar.h +126 -0
  240. data/ext/iup-win32/include/iupcompat.h +62 -0
  241. data/ext/iup-win32/include/iupcontrols.h +40 -0
  242. data/ext/iup-win32/include/iupcpi.h +76 -0
  243. data/ext/iup-win32/include/iupdef.h +520 -0
  244. data/ext/iup-win32/include/iupdial.h +64 -0
  245. data/ext/iup-win32/include/iupgauge.h +57 -0
  246. data/ext/iup-win32/include/iupgc.h +20 -0
  247. data/ext/iup-win32/include/iupgetparam.h +27 -0
  248. data/ext/iup-win32/include/iupgl.h +101 -0
  249. data/ext/iup-win32/include/iupim.h +21 -0
  250. data/ext/iup-win32/include/iupkey.h +290 -0
  251. data/ext/iup-win32/include/iuplua.h +41 -0
  252. data/ext/iup-win32/include/iuplua_pplot.h +26 -0
  253. data/ext/iup-win32/include/iupluacontrols.h +27 -0
  254. data/ext/iup-win32/include/iupluagl.h +26 -0
  255. data/ext/iup-win32/include/iupluaim.h +26 -0
  256. data/ext/iup-win32/include/iupluaole.h +26 -0
  257. data/ext/iup-win32/include/iupmask.h +52 -0
  258. data/ext/iup-win32/include/iupmatrix.h +69 -0
  259. data/ext/iup-win32/include/iupole.h +24 -0
  260. data/ext/iup-win32/include/iupsbox.h +20 -0
  261. data/ext/iup-win32/include/iupspeech.h +23 -0
  262. data/ext/iup-win32/include/iupspin.h +21 -0
  263. data/ext/iup-win32/include/iuptabs.h +79 -0
  264. data/ext/iup-win32/include/iuptree.h +93 -0
  265. data/ext/iup-win32/include/iupval.h +46 -0
  266. data/ext/iup-win32/include/wd.h +78 -0
  267. data/ext/iup-win32/include/wd_old.h +85 -0
  268. data/ext/iup-win32/iup.dll +0 -0
  269. data/ext/iup-win32/iup.lib +0 -0
  270. data/ext/iup-win32/iup_pplot.dll +0 -0
  271. data/ext/iup-win32/iup_pplot.lib +0 -0
  272. data/ext/iup-win32/iupcd.dll +0 -0
  273. data/ext/iup-win32/iupcd.lib +0 -0
  274. data/ext/iup-win32/iupcontrols.dll +0 -0
  275. data/ext/iup-win32/iupcontrols.lib +0 -0
  276. data/ext/iup-win32/iupgl.dll +0 -0
  277. data/ext/iup-win32/iupgl.lib +0 -0
  278. data/ext/iup-win32/iupim.dll +0 -0
  279. data/ext/iup-win32/iupim.lib +0 -0
  280. data/ext/iup-win32/iupimglib.dll +0 -0
  281. data/ext/iup-win32/iupimglib.lib +0 -0
  282. data/ext/iup-win32/iuplua51.lib +0 -0
  283. data/ext/iup-win32/iuplua_pplot51.lib +0 -0
  284. data/ext/iup-win32/iupluacd51.lib +0 -0
  285. data/ext/iup-win32/iupluacontrols51.lib +0 -0
  286. data/ext/iup-win32/iupluagl51.lib +0 -0
  287. data/ext/iup-win32/iupluaim51.lib +0 -0
  288. data/ext/iup-win32/iupluaimglib51.lib +0 -0
  289. data/ext/iup-win32/iupluaole51.lib +0 -0
  290. data/ext/iup-win32/iupole.dll +0 -0
  291. data/ext/iup-win32/iupole.lib +0 -0
  292. data/ext/iup-win32/iupstub.lib +0 -0
  293. data/ext/iup-win32/pdflib.dll +0 -0
  294. data/ext/iup-win32/pdflib.lib +0 -0
  295. data/ext/iup.c +1261 -0
  296. data/ext/mkrf_conf.rb +72 -0
  297. data/ext/rb_cd.h +1525 -0
  298. data/ext/rb_iup.h +2446 -0
  299. data/ext/rb_iup_pplot.h +129 -0
  300. data/ext/rb_iupcb.h +13 -0
  301. data/ext/rb_iupcbox.h +40 -0
  302. data/ext/rb_iupcells.h +15 -0
  303. data/ext/rb_iupcolorbar.h +17 -0
  304. data/ext/rb_iupcompat.h +237 -0
  305. data/ext/rb_iupcontrols.h +28 -0
  306. data/ext/rb_iupdef.h +3 -0
  307. data/ext/rb_iupdial.h +24 -0
  308. data/ext/rb_iupgauge.h +15 -0
  309. data/ext/rb_iupgc.h +18 -0
  310. data/ext/rb_iupgetparam.h +72 -0
  311. data/ext/rb_iupgl.h +58 -0
  312. data/ext/rb_iupim.h +25 -0
  313. data/ext/rb_iupmask.h +189 -0
  314. data/ext/rb_iupmatrix.h +80 -0
  315. data/ext/rb_iupole.h +24 -0
  316. data/ext/rb_iupsbox.h +23 -0
  317. data/ext/rb_iupspeech.h +25 -0
  318. data/ext/rb_iupspin.h +29 -0
  319. data/ext/rb_iuptabs.h +29 -0
  320. data/ext/rb_iuptree.h +94 -0
  321. data/ext/rb_iupval.h +24 -0
  322. data/lib/README +1 -0
  323. metadata +391 -0
@@ -0,0 +1,64 @@
1
+ /** \file
2
+ * \brief iupdial control.
3
+ *
4
+ * See Copyright Notice in iup.h
5
+ */
6
+
7
+ #ifndef __IUPDIAL_H
8
+ #define __IUPDIAL_H
9
+
10
+ #ifdef __cplusplus
11
+ extern "C" {
12
+ #endif
13
+
14
+ /* callbacks */
15
+ #ifndef ICTL_MOUSEMOVE_CB
16
+ #define ICTL_MOUSEMOVE_CB "MOUSEMOVE_CB"
17
+ #endif
18
+
19
+ #ifndef ICTL_BUTTON_PRESS_CB
20
+ #define ICTL_BUTTON_PRESS_CB "BUTTON_PRESS_CB"
21
+ #endif
22
+
23
+ #ifndef ICTL_BUTTON_RELEASE_CB
24
+ #define ICTL_BUTTON_RELEASE_CB "BUTTON_RELEASE_CB"
25
+ #endif
26
+
27
+ #ifndef ICTL_DENSITY
28
+ #define ICTL_DENSITY "DENSITY"
29
+ #endif
30
+
31
+ /* Atributos */
32
+ #ifndef ICTL_HORIZONTAL
33
+ #define ICTL_HORIZONTAL "HORIZONTAL"
34
+ #endif
35
+
36
+ #ifndef ICTL_VERTICAL
37
+ #define ICTL_VERTICAL "VERTICAL"
38
+ #endif
39
+
40
+ #ifndef ICTL_CIRCULAR
41
+ #define ICTL_CIRCULAR "CIRCULAR"
42
+ #endif
43
+
44
+ #ifndef ICTL_UNIT
45
+ #define ICTL_UNIT "UNIT"
46
+ #endif
47
+
48
+ #ifndef IUP_FGCOLOR
49
+ #define IUP_FGCOLOR "FGCOLOR"
50
+ #endif
51
+
52
+ #ifndef IUP_BGCOLOR
53
+ #define IUP_BGCOLOR "BGCOLOR"
54
+ #endif
55
+
56
+ /* iupdial */
57
+
58
+ Ihandle *IupDial(const char *);
59
+
60
+ #ifdef __cplusplus
61
+ }
62
+ #endif
63
+
64
+ #endif
@@ -0,0 +1,57 @@
1
+ /** \file
2
+ * \brief iupgauge control.
3
+ *
4
+ * See Copyright Notice in iup.h
5
+ */
6
+
7
+ #ifndef __IUPGAUGE_H
8
+ #define __IUPGAUGE_H
9
+
10
+ #ifdef __cplusplus
11
+ extern "C" {
12
+ #endif
13
+
14
+ /* callbacks */
15
+ #ifndef ICTL_MOUSEMOVE_CB
16
+ #define ICTL_MOUSEMOVE_CB "MOUSEMOVE_CB"
17
+ #endif
18
+
19
+ #ifndef ICTL_BUTTON_PRESS_CB
20
+ #define ICTL_BUTTON_PRESS_CB "BUTTON_PRESS_CB"
21
+ #endif
22
+
23
+ #ifndef ICTL_BUTTON_RELEASE_CB
24
+ #define ICTL_BUTTON_RELEASE_CB "BUTTON_RELEASE_CB"
25
+ #endif
26
+
27
+ #ifndef ICTL_SHOW_TEXT
28
+ #define ICTL_SHOW_TEXT "SHOW_TEXT"
29
+ #endif
30
+
31
+ #ifndef ICTL_DASHED
32
+ #define ICTL_DASHED "DASHED"
33
+ #endif
34
+
35
+ #ifndef ICTL_MARGIN
36
+ #define ICTL_MARGIN "MARGIN"
37
+ #endif
38
+
39
+ #ifndef ICTL_TEXT
40
+ #define ICTL_TEXT "TEXT"
41
+ #endif
42
+
43
+ #ifndef IUP_FGCOLOR
44
+ #define IUP_FGCOLOR "FGCOLOR"
45
+ #endif
46
+
47
+ #ifndef IUP_BGCOLOR
48
+ #define IUP_BGCOLOR "BGCOLOR"
49
+ #endif
50
+
51
+ Ihandle *IupGauge(void);
52
+
53
+ #ifdef __cplusplus
54
+ }
55
+ #endif
56
+
57
+ #endif
@@ -0,0 +1,20 @@
1
+ /** \file
2
+ * \brief iupgetcolor pre-defined dialog.
3
+ *
4
+ * See Copyright Notice in iup.h
5
+ */
6
+
7
+ #ifndef __IUPGC_H
8
+ #define __IUPGC_H
9
+
10
+ #ifdef __cplusplus
11
+ extern "C" {
12
+ #endif
13
+
14
+ int IupGetColor(int x, int y, unsigned char *r, unsigned char *g, unsigned char *b);
15
+
16
+ #ifdef __cplusplus
17
+ }
18
+ #endif
19
+
20
+ #endif
@@ -0,0 +1,27 @@
1
+ /** \file
2
+ * \brief iupgetparam dialog.
3
+ *
4
+ * See Copyright Notice in iup.h
5
+ */
6
+
7
+ #ifndef __IUPGETPARAM_H
8
+ #define __IUPGETPARAM_H
9
+
10
+ #ifdef __cplusplus
11
+ extern "C" {
12
+ #endif
13
+
14
+ typedef int (*Iparamcb)(Ihandle* dialog, int param_index, void* user_data);
15
+
16
+ int IupGetParam(const char* title, Iparamcb action, void* user_data, const char* format,...);
17
+ int IupGetParamv(const char* title, Iparamcb action, void* user_data, const char* format, int param_count, int param_extra, void** param_data);
18
+
19
+ /* Utility functions to parse one param line string. Used by the Lua binding. */
20
+ int IupGetParamCount(const char *format, int *param_extra);
21
+ char *IupGetParamType(const char* format, int *line_size);
22
+
23
+ #ifdef __cplusplus
24
+ }
25
+ #endif
26
+
27
+ #endif
@@ -0,0 +1,101 @@
1
+ /** \file
2
+ * \brief OpenGL canvas for Iup.
3
+ *
4
+ * See Copyright Notice in iup.h
5
+ */
6
+
7
+ #ifndef __IUPGL_H
8
+ #define __IUPGL_H
9
+
10
+ #ifdef __cplusplus
11
+ extern "C" {
12
+ #endif
13
+
14
+ /* Attributes
15
+ ** To set the appropriate visual (pixel format) the following
16
+ ** attributes may be specified. Their values should be set
17
+ ** before the canvas is mapped to the scrren.
18
+ ** After mapping, changing their values has no effect.
19
+ */
20
+ #ifndef IUP_BUFFER /* IUP_SINGLE (defaut) or IUP_DOUBLE */
21
+ #define IUP_BUFFER "BUFFER"
22
+ #endif
23
+ #ifndef IUP_STEREO /* IUP_NO (defaut) or IUP_YES */
24
+ #define IUP_STEREO "STEREO"
25
+ #endif
26
+ #ifndef IUP_BUFFER_SIZE /* Number of bits if index mode */
27
+ #define IUP_BUFFER_SIZE "BUFFER_SIZE"
28
+ #endif
29
+ #ifndef IUP_RED_SIZE /* Number of red bits */
30
+ #define IUP_RED_SIZE "RED_SIZE"
31
+ #endif
32
+ #ifndef IUP_GREEN_SIZE /* Number of green bits */
33
+ #define IUP_GREEN_SIZE "GREEN_SIZE"
34
+ #endif
35
+ #ifndef IUP_BLUE_SIZE /* Number of blue bits */
36
+ #define IUP_BLUE_SIZE "BLUE_SIZE"
37
+ #endif
38
+ #ifndef IUP_ALPHA_SIZE /* Number of alpha bits */
39
+ #define IUP_ALPHA_SIZE "ALPHA_SIZE"
40
+ #endif
41
+ #ifndef IUP_DEPTH_SIZE /* Number of bits in depth buffer */
42
+ #define IUP_DEPTH_SIZE "DEPTH_SIZE"
43
+ #endif
44
+ #ifndef IUP_STENCIL_SIZE /* Number of bits in stencil buffer */
45
+ #define IUP_STENCIL_SIZE "STENCIL_SIZE"
46
+ #endif
47
+ #ifndef IUP_ACCUM_RED_SIZE /* Number of red bits in accum. buffer */
48
+ #define IUP_ACCUM_RED_SIZE "ACCUM_RED_SIZE"
49
+ #endif
50
+ #ifndef IUP_ACCUM_GREEN_SIZE /* Number of green bits in accum. buffer */
51
+ #define IUP_ACCUM_GREEN_SIZE "ACCUM_GREEN_SIZE"
52
+ #endif
53
+ #ifndef IUP_ACCUM_BLUE_SIZE /* Number of blue bits in accum. buffer */
54
+ #define IUP_ACCUM_BLUE_SIZE "ACCUM_BLUE_SIZE"
55
+ #endif
56
+ #ifndef IUP_ACCUM_ALPHA_SIZE /* Number of alpha bits in accum. buffer */
57
+ #define IUP_ACCUM_ALPHA_SIZE "ACCUM_ALPHA_SIZE"
58
+ #endif
59
+
60
+
61
+ /* Attribute values */
62
+ #ifndef IUP_DOUBLE
63
+ #define IUP_DOUBLE "DOUBLE"
64
+ #endif
65
+ #ifndef IUP_SINGLE
66
+ #define IUP_SINGLE "SINGLE"
67
+ #endif
68
+ #ifndef IUP_INDEX
69
+ #define IUP_INDEX "INDEX"
70
+ #endif
71
+ #ifndef IUP_RGBA
72
+ #define IUP_RGBA "RGBA"
73
+ #endif
74
+ #ifndef IUP_YES
75
+ #define IUP_YES "YES"
76
+ #endif
77
+ #ifndef IUP_NO
78
+ #define IUP_NO "NO"
79
+ #endif
80
+
81
+ /* Initialize OpenGL widget class */
82
+ void IupGLCanvasOpen (void);
83
+
84
+ /* Create an OpenGL widget instance, providing the 'redraw' action */
85
+ Ihandle *IupGLCanvas (const char *);
86
+
87
+ /* Make associated rendering context current */
88
+ void IupGLMakeCurrent (Ihandle* self);
89
+ int IupGLIsCurrent (Ihandle* self);
90
+
91
+ /* Swap associated buffers (for use with double buffer) */
92
+ void IupGLSwapBuffers (Ihandle* self);
93
+
94
+ /* Set color palette for index color mode */
95
+ void IupGLPalette (Ihandle* self, int index, float r, float g, float b);
96
+
97
+ #ifdef __cplusplus
98
+ }
99
+ #endif
100
+
101
+ #endif
@@ -0,0 +1,21 @@
1
+ /** \file
2
+ * \brief Utilities using IM
3
+ *
4
+ * See Copyright Notice in iup.h
5
+ */
6
+
7
+ #ifndef __IUPIM_H
8
+ #define __IUPIM_H
9
+
10
+ #if defined(__cplusplus)
11
+ extern "C" {
12
+ #endif
13
+
14
+ Ihandle* IupLoadImage(const char* file_name);
15
+ int IupSaveImage(Ihandle* image, const char* file_name, const char* format);
16
+
17
+ #if defined(__cplusplus)
18
+ }
19
+ #endif
20
+
21
+ #endif
@@ -0,0 +1,290 @@
1
+ /** \file
2
+ * \brief Keyboard Keys definitions.
3
+ *
4
+ * See Copyright Notice in iup.h
5
+ */
6
+
7
+ #ifndef __IUPKEY_H
8
+ #define __IUPKEY_H
9
+
10
+ #define iup_isprint(_c) ((_c) > 31 && (_c) < 127)
11
+
12
+ #define xCODE(c) ((c) | 0x0100)
13
+ #define isxkey(c) ((c) & 0x0100)
14
+
15
+ #define K_exclam '!'
16
+ #define K_quotedbl '\"'
17
+ #define K_numbersign '#'
18
+ #define K_dollar '$'
19
+ #define K_percent '%'
20
+ #define K_ampersand '&'
21
+ #define K_apostrophe '\''
22
+ #define K_parentleft '('
23
+ #define K_parentright ')'
24
+ #define K_asterisk '*'
25
+ #define K_plus '+'
26
+ #define K_comma ','
27
+ #define K_minus '-'
28
+ #define K_period '.'
29
+ #define K_slash '/'
30
+ #define K_0 '0'
31
+ #define K_1 '1'
32
+ #define K_2 '2'
33
+ #define K_3 '3'
34
+ #define K_4 '4'
35
+ #define K_5 '5'
36
+ #define K_6 '6'
37
+ #define K_7 '7'
38
+ #define K_8 '8'
39
+ #define K_9 '9'
40
+ #define K_colon ':'
41
+ #define K_semicolon ';'
42
+ #define K_less '<'
43
+ #define K_equal '='
44
+ #define K_greater '>'
45
+ #define K_question '?'
46
+ #define K_at '@'
47
+ #define K_A 'A'
48
+ #define K_B 'B'
49
+ #define K_C 'C'
50
+ #define K_D 'D'
51
+ #define K_E 'E'
52
+ #define K_F 'F'
53
+ #define K_G 'G'
54
+ #define K_H 'H'
55
+ #define K_I 'I'
56
+ #define K_J 'J'
57
+ #define K_K 'K'
58
+ #define K_L 'L'
59
+ #define K_M 'M'
60
+ #define K_N 'N'
61
+ #define K_O 'O'
62
+ #define K_P 'P'
63
+ #define K_Q 'Q'
64
+ #define K_R 'R'
65
+ #define K_S 'S'
66
+ #define K_T 'T'
67
+ #define K_U 'U'
68
+ #define K_V 'V'
69
+ #define K_W 'W'
70
+ #define K_X 'X'
71
+ #define K_Y 'Y'
72
+ #define K_Z 'Z'
73
+ #define K_bracketleft '['
74
+ #define K_backslash '\\'
75
+ #define K_bracketright ']'
76
+ #define K_circum '^'
77
+ #define K_underscore '_'
78
+ #define K_grave '`'
79
+ #define K_a 'a'
80
+ #define K_b 'b'
81
+ #define K_c 'c'
82
+ #define K_d 'd'
83
+ #define K_e 'e'
84
+ #define K_f 'f'
85
+ #define K_g 'g'
86
+ #define K_h 'h'
87
+ #define K_i 'i'
88
+ #define K_j 'j'
89
+ #define K_k 'k'
90
+ #define K_l 'l'
91
+ #define K_m 'm'
92
+ #define K_n 'n'
93
+ #define K_o 'o'
94
+ #define K_p 'p'
95
+ #define K_q 'q'
96
+ #define K_r 'r'
97
+ #define K_s 's'
98
+ #define K_t 't'
99
+ #define K_u 'u'
100
+ #define K_v 'v'
101
+ #define K_w 'w'
102
+ #define K_x 'x'
103
+ #define K_y 'y'
104
+ #define K_z 'z'
105
+ #define K_braceleft '{'
106
+ #define K_bar '|'
107
+ #define K_braceright '}'
108
+ #define K_tilde '~'
109
+
110
+ #define K_quoteleft K_grave
111
+ #define K_quoteright K_apostrophe
112
+
113
+ #define K_cA 1
114
+ #define K_cB 2
115
+ #define K_cC 3
116
+ #define K_cD 4
117
+ #define K_cE 5
118
+ #define K_cF 6
119
+ #define K_cG 7
120
+ #define K_cH 8
121
+ #define K_cI 9
122
+ #define K_cJ 10
123
+ #define K_cK 11
124
+ #define K_cL 12
125
+ #define K_cM 13
126
+ #define K_cN 14
127
+ #define K_cO 15
128
+ #define K_cP 16
129
+ #define K_cQ 17
130
+ #define K_cR 18
131
+ #define K_cS 19
132
+ #define K_cT 20
133
+ #define K_cU 21
134
+ #define K_cV 22
135
+ #define K_cW 23
136
+ #define K_cX 24
137
+ #define K_cY 25
138
+ #define K_cZ 26
139
+
140
+ #define K_mA xCODE(30)
141
+ #define K_mB xCODE(48)
142
+ #define K_mC xCODE(46)
143
+ #define K_mD xCODE(32)
144
+ #define K_mE xCODE(18)
145
+ #define K_mF xCODE(33)
146
+ #define K_mG xCODE(34)
147
+ #define K_mH xCODE(35)
148
+ #define K_mI xCODE(23)
149
+ #define K_mJ xCODE(36)
150
+ #define K_mK xCODE(37)
151
+ #define K_mL xCODE(38)
152
+ #define K_mM xCODE(50)
153
+ #define K_mN xCODE(49)
154
+ #define K_mO xCODE(24)
155
+ #define K_mP xCODE(25)
156
+ #define K_mQ xCODE(16)
157
+ #define K_mR xCODE(19)
158
+ #define K_mS xCODE(31)
159
+ #define K_mT xCODE(20)
160
+ #define K_mU xCODE(22)
161
+ #define K_mV xCODE(47)
162
+ #define K_mW xCODE(17)
163
+ #define K_mX xCODE(45)
164
+ #define K_mY xCODE(21)
165
+ #define K_mZ xCODE(44)
166
+
167
+ #define K_BS '\b'
168
+ #define K_CR '\r'
169
+ #define K_sCR xCODE(14)
170
+ #define K_ESC 27
171
+ #define K_SP ' '
172
+
173
+ #define K_TAB '\t'
174
+ #define K_sTAB xCODE(15)
175
+ #define K_cTAB xCODE(148)
176
+ #define K_mTAB xCODE(165)
177
+
178
+ #define K_PAUSE xCODE(70)
179
+ #define K_HOME xCODE(71)
180
+ #define K_UP xCODE(72)
181
+ #define K_PGUP xCODE(73)
182
+ #define K_LEFT xCODE(75)
183
+ #define K_MIDDLE xCODE(76)
184
+ #define K_RIGHT xCODE(77)
185
+ #define K_END xCODE(79)
186
+ #define K_DOWN xCODE(80)
187
+ #define K_PGDN xCODE(81)
188
+ #define K_INS xCODE(82)
189
+ #define K_DEL xCODE(83)
190
+
191
+ #define K_sHOME xCODE(200)
192
+ #define K_sUP xCODE(201)
193
+ #define K_sPGUP xCODE(202)
194
+ #define K_sLEFT xCODE(203)
195
+ #define K_sRIGHT xCODE(204)
196
+ #define K_sEND xCODE(205)
197
+ #define K_sDOWN xCODE(206)
198
+ #define K_sPGDN xCODE(207)
199
+ #define K_sSP xCODE(208)
200
+ #define K_sINS xCODE(210)
201
+ #define K_sDEL xCODE(211)
202
+
203
+ #define K_cHOME xCODE(119)
204
+ #define K_cPGUP xCODE(132)
205
+ #define K_cLEFT xCODE(115)
206
+ #define K_cRIGHT xCODE(116)
207
+ #define K_cEND xCODE(117)
208
+ #define K_cPGDN xCODE(118)
209
+ #define K_cUP xCODE(141)
210
+ #define K_cMIDDLE xCODE(143)
211
+ #define K_cDOWN xCODE(145)
212
+ #define K_cINS xCODE(146)
213
+ #define K_cDEL xCODE(147)
214
+ #define K_cSP xCODE(209)
215
+
216
+ #define K_mHOME xCODE(151)
217
+ #define K_mPGUP xCODE(153)
218
+ #define K_mLEFT xCODE(155)
219
+ #define K_mRIGHT xCODE(157)
220
+ #define K_mEND xCODE(159)
221
+ #define K_mPGDN xCODE(161)
222
+ #define K_mUP xCODE(152)
223
+ #define K_mDOWN xCODE(160)
224
+ #define K_mINS xCODE(162)
225
+ #define K_mDEL xCODE(163)
226
+
227
+ #define K_F1 xCODE(59)
228
+ #define K_F2 xCODE(60)
229
+ #define K_F3 xCODE(61)
230
+ #define K_F4 xCODE(62)
231
+ #define K_F5 xCODE(63)
232
+ #define K_F6 xCODE(64)
233
+ #define K_F7 xCODE(65)
234
+ #define K_F8 xCODE(66)
235
+ #define K_F9 xCODE(67)
236
+ #define K_F10 xCODE(68)
237
+ #define K_F11 xCODE(133)
238
+ #define K_F12 xCODE(134)
239
+
240
+ #define K_sF1 xCODE(84)
241
+ #define K_sF2 xCODE(85)
242
+ #define K_sF3 xCODE(86)
243
+ #define K_sF4 xCODE(87)
244
+ #define K_sF5 xCODE(88)
245
+ #define K_sF6 xCODE(89)
246
+ #define K_sF7 xCODE(90)
247
+ #define K_sF8 xCODE(91)
248
+ #define K_sF9 xCODE(92)
249
+ #define K_sF10 xCODE(93)
250
+ #define K_sF11 xCODE(135)
251
+ #define K_sF12 xCODE(136)
252
+
253
+ #define K_cF1 xCODE(94)
254
+ #define K_cF2 xCODE(95)
255
+ #define K_cF3 xCODE(96)
256
+ #define K_cF4 xCODE(97)
257
+ #define K_cF5 xCODE(98)
258
+ #define K_cF6 xCODE(99)
259
+ #define K_cF7 xCODE(100)
260
+ #define K_cF8 xCODE(101)
261
+ #define K_cF9 xCODE(102)
262
+ #define K_cF10 xCODE(103)
263
+ #define K_cF11 xCODE(137)
264
+ #define K_cF12 xCODE(138)
265
+
266
+ #define K_mF1 xCODE(104)
267
+ #define K_mF2 xCODE(105)
268
+ #define K_mF3 xCODE(106)
269
+ #define K_mF4 xCODE(107)
270
+ #define K_mF5 xCODE(108)
271
+ #define K_mF6 xCODE(109)
272
+ #define K_mF7 xCODE(110)
273
+ #define K_mF8 xCODE(111)
274
+ #define K_mF9 xCODE(112)
275
+ #define K_mF10 xCODE(113)
276
+ #define K_mF11 xCODE(139)
277
+ #define K_mF12 xCODE(140)
278
+
279
+ #define K_m1 xCODE(120)
280
+ #define K_m2 xCODE(121)
281
+ #define K_m3 xCODE(122)
282
+ #define K_m4 xCODE(123)
283
+ #define K_m5 xCODE(124)
284
+ #define K_m6 xCODE(125)
285
+ #define K_m7 xCODE(126)
286
+ #define K_m8 xCODE(127)
287
+ #define K_m9 xCODE(128)
288
+ #define K_m0 xCODE(129)
289
+
290
+ #endif