ruby-iup 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. data/Rakefile +1 -1
  2. data/examples/ctrl/degrade.rb +5 -2
  3. data/examples/ctrl/iupgauge.rb +5 -5
  4. data/examples/ctrl/iupplot2.rb +2 -5
  5. data/examples/dlg/iupalarm.rb +3 -1
  6. data/examples/elem/iupbutton.rb +42 -59
  7. data/examples/elem/iupcanvas.rb +4 -2
  8. data/examples/elem/iupcanvas2.rb +9 -8
  9. data/examples/elem/iupcanvas3.rb +19 -29
  10. data/examples/elem/iupdialog.rb +3 -7
  11. data/examples/elem/progressbar.rb +104 -118
  12. data/ext/iup-linux/include/cd.h +494 -494
  13. data/ext/iup-linux/include/cd_canvas.hpp +358 -358
  14. data/ext/iup-linux/include/cd_old.h +158 -158
  15. data/ext/iup-linux/include/cd_private.h +362 -362
  16. data/ext/iup-linux/include/cdcgm.h +34 -34
  17. data/ext/iup-linux/include/cdclipbd.h +22 -22
  18. data/ext/iup-linux/include/cddbuf.h +23 -23
  19. data/ext/iup-linux/include/cddebug.h +24 -24
  20. data/ext/iup-linux/include/cddgn.h +23 -23
  21. data/ext/iup-linux/include/cddxf.h +22 -22
  22. data/ext/iup-linux/include/cdemf.h +22 -22
  23. data/ext/iup-linux/include/cdgdiplus.h +29 -29
  24. data/ext/iup-linux/include/cdimage.h +23 -23
  25. data/ext/iup-linux/include/cdirgb.h +30 -30
  26. data/ext/iup-linux/include/cdiup.h +22 -22
  27. data/ext/iup-linux/include/cdlua.h +39 -39
  28. data/ext/iup-linux/include/cdlua3_private.h +120 -120
  29. data/ext/iup-linux/include/cdlua5_private.h +141 -141
  30. data/ext/iup-linux/include/cdluaim.h +24 -24
  31. data/ext/iup-linux/include/cdluaiup.h +27 -27
  32. data/ext/iup-linux/include/cdluapdf.h +27 -27
  33. data/ext/iup-linux/include/cdmf.h +24 -24
  34. data/ext/iup-linux/include/cdmf_private.h +32 -32
  35. data/ext/iup-linux/include/cdnative.h +26 -26
  36. data/ext/iup-linux/include/cdpdf.h +38 -38
  37. data/ext/iup-linux/include/cdpicture.h +22 -22
  38. data/ext/iup-linux/include/cdprint.h +23 -23
  39. data/ext/iup-linux/include/cdps.h +37 -37
  40. data/ext/iup-linux/include/cdwmf.h +22 -22
  41. data/ext/iup-linux/include/iup.h +318 -255
  42. data/ext/iup-linux/include/iup_pplot.h +40 -40
  43. data/ext/iup-linux/include/iupcb.h +25 -25
  44. data/ext/iup-linux/include/iupcbs.h +43 -42
  45. data/ext/iup-linux/include/iupcells.h +130 -130
  46. data/ext/iup-linux/include/iupcolorbar.h +126 -126
  47. data/ext/iup-linux/include/iupcontrols.h +36 -40
  48. data/ext/iup-linux/include/iupdef.h +520 -520
  49. data/ext/iup-linux/include/iupdial.h +63 -64
  50. data/ext/iup-linux/include/iupgauge.h +57 -57
  51. data/ext/iup-linux/include/iupgetparam.h +1 -1
  52. data/ext/iup-linux/include/iupgl.h +101 -101
  53. data/ext/iup-linux/include/iupim.h +21 -21
  54. data/ext/iup-linux/include/iupkey.h +457 -290
  55. data/ext/iup-linux/include/iuplua.h +41 -41
  56. data/ext/iup-linux/include/iuplua_pplot.h +26 -26
  57. data/ext/iup-linux/include/iupluacontrols.h +27 -27
  58. data/ext/iup-linux/include/iupluagl.h +26 -26
  59. data/ext/iup-linux/include/iupluaim.h +26 -26
  60. data/ext/iup-linux/include/iupluaole.h +26 -26
  61. data/ext/iup-linux/include/iupmask.h +40 -52
  62. data/ext/iup-linux/include/iupmatrix.h +63 -69
  63. data/ext/iup-linux/include/iupole.h +24 -24
  64. data/ext/iup-linux/include/iupspin.h +21 -21
  65. data/ext/iup-linux/include/iuptabs.h +75 -79
  66. data/ext/iup-linux/include/iuptree.h +93 -93
  67. data/ext/iup-linux/include/iupval.h +46 -46
  68. data/ext/iup-linux/include/wd.h +78 -78
  69. data/ext/iup-linux/include/wd_old.h +85 -85
  70. data/ext/iup-linux/libcd.so +0 -0
  71. data/ext/iup-linux/libcdcontextplus.so +0 -0
  72. data/ext/iup-linux/libcdpdf.so +0 -0
  73. data/ext/iup-linux/libim.so +0 -0
  74. data/ext/iup-linux/libim_fftw.so +0 -0
  75. data/ext/iup-linux/libim_jp2.so +0 -0
  76. data/ext/iup-linux/libim_process.so +0 -0
  77. data/ext/iup-linux/libiup.so +0 -0
  78. data/ext/iup-linux/libiup_pplot.so +0 -0
  79. data/ext/iup-linux/libiupcontrols.so +0 -0
  80. data/ext/iup-linux/libiupgl.so +0 -0
  81. data/ext/iup-linux/libiupim.so +0 -0
  82. data/ext/iup-linux/libiupimglib.so +0 -0
  83. data/ext/iup-linux/libiupmot.so +0 -0
  84. data/ext/iup-win32/cd.dll +0 -0
  85. data/ext/iup-win32/cd.lib +0 -0
  86. data/ext/iup-win32/cdcontextplus.dll +0 -0
  87. data/ext/iup-win32/cdcontextplus.lib +0 -0
  88. data/ext/iup-win32/cdpdf.dll +0 -0
  89. data/ext/iup-win32/cdpdf.lib +0 -0
  90. data/ext/iup-win32/freetype6.dll +0 -0
  91. data/ext/iup-win32/freetype6.lib +0 -0
  92. data/ext/iup-win32/im.dll +0 -0
  93. data/ext/iup-win32/im.lib +0 -0
  94. data/ext/iup-win32/im_avi.dll +0 -0
  95. data/ext/iup-win32/im_avi.lib +0 -0
  96. data/ext/iup-win32/im_capture.dll +0 -0
  97. data/ext/iup-win32/im_capture.lib +0 -0
  98. data/ext/iup-win32/im_fftw.dll +0 -0
  99. data/ext/iup-win32/im_fftw.lib +0 -0
  100. data/ext/iup-win32/im_jp2.dll +0 -0
  101. data/ext/iup-win32/im_jp2.lib +0 -0
  102. data/ext/iup-win32/im_process.dll +0 -0
  103. data/ext/iup-win32/im_process.lib +0 -0
  104. data/ext/iup-win32/im_wmv.dll +0 -0
  105. data/ext/iup-win32/im_wmv.lib +0 -0
  106. data/ext/iup-win32/imlua_capture51.dll +0 -0
  107. data/ext/iup-win32/imlua_capture51.lib +0 -0
  108. data/ext/iup-win32/imlua_wmv51.dll +0 -0
  109. data/ext/iup-win32/imlua_wmv51.lib +0 -0
  110. data/ext/iup-win32/include/cd.h +494 -494
  111. data/ext/iup-win32/include/cd_canvas.hpp +358 -358
  112. data/ext/iup-win32/include/cd_old.h +158 -158
  113. data/ext/iup-win32/include/cd_private.h +362 -362
  114. data/ext/iup-win32/include/cdcgm.h +34 -34
  115. data/ext/iup-win32/include/cdclipbd.h +22 -22
  116. data/ext/iup-win32/include/cddbuf.h +23 -23
  117. data/ext/iup-win32/include/cddebug.h +24 -24
  118. data/ext/iup-win32/include/cddgn.h +23 -23
  119. data/ext/iup-win32/include/cddxf.h +22 -22
  120. data/ext/iup-win32/include/cdemf.h +22 -22
  121. data/ext/iup-win32/include/cdgdiplus.h +29 -29
  122. data/ext/iup-win32/include/cdimage.h +23 -23
  123. data/ext/iup-win32/include/cdirgb.h +30 -30
  124. data/ext/iup-win32/include/cdiup.h +22 -22
  125. data/ext/iup-win32/include/cdlua.h +39 -39
  126. data/ext/iup-win32/include/cdlua3_private.h +120 -120
  127. data/ext/iup-win32/include/cdlua5_private.h +141 -141
  128. data/ext/iup-win32/include/cdluaim.h +24 -24
  129. data/ext/iup-win32/include/cdluaiup.h +27 -27
  130. data/ext/iup-win32/include/cdluapdf.h +27 -27
  131. data/ext/iup-win32/include/cdmf.h +24 -24
  132. data/ext/iup-win32/include/cdmf_private.h +32 -32
  133. data/ext/iup-win32/include/cdnative.h +26 -26
  134. data/ext/iup-win32/include/cdpdf.h +38 -38
  135. data/ext/iup-win32/include/cdpicture.h +22 -22
  136. data/ext/iup-win32/include/cdprint.h +23 -23
  137. data/ext/iup-win32/include/cdps.h +37 -37
  138. data/ext/iup-win32/include/cdwmf.h +22 -22
  139. data/ext/iup-win32/include/iup.h +318 -255
  140. data/ext/iup-win32/include/iup_pplot.h +40 -40
  141. data/ext/iup-win32/include/iupcb.h +25 -25
  142. data/ext/iup-win32/include/iupcbs.h +43 -42
  143. data/ext/iup-win32/include/iupcells.h +130 -130
  144. data/ext/iup-win32/include/iupcolorbar.h +126 -126
  145. data/ext/iup-win32/include/iupcontrols.h +36 -40
  146. data/ext/iup-win32/include/iupdef.h +520 -520
  147. data/ext/iup-win32/include/iupdial.h +63 -64
  148. data/ext/iup-win32/include/iupgauge.h +57 -57
  149. data/ext/iup-win32/include/iupgetparam.h +1 -1
  150. data/ext/iup-win32/include/iupgl.h +101 -101
  151. data/ext/iup-win32/include/iupim.h +21 -21
  152. data/ext/iup-win32/include/iupkey.h +457 -290
  153. data/ext/iup-win32/include/iuplua.h +41 -41
  154. data/ext/iup-win32/include/iuplua_pplot.h +26 -26
  155. data/ext/iup-win32/include/iupluacontrols.h +27 -27
  156. data/ext/iup-win32/include/iupluagl.h +26 -26
  157. data/ext/iup-win32/include/iupluaim.h +26 -26
  158. data/ext/iup-win32/include/iupluaole.h +26 -26
  159. data/ext/iup-win32/include/iupmask.h +40 -52
  160. data/ext/iup-win32/include/iupmatrix.h +63 -69
  161. data/ext/iup-win32/include/iupole.h +24 -24
  162. data/ext/iup-win32/include/iupspin.h +21 -21
  163. data/ext/iup-win32/include/iuptabs.h +75 -79
  164. data/ext/iup-win32/include/iuptree.h +93 -93
  165. data/ext/iup-win32/include/iupval.h +46 -46
  166. data/ext/iup-win32/include/wd.h +78 -78
  167. data/ext/iup-win32/include/wd_old.h +85 -85
  168. data/ext/iup-win32/iup.dll +0 -0
  169. data/ext/iup-win32/iup.lib +0 -0
  170. data/ext/iup-win32/iup_pplot.dll +0 -0
  171. data/ext/iup-win32/iup_pplot.lib +0 -0
  172. data/ext/iup-win32/iupcd.dll +0 -0
  173. data/ext/iup-win32/iupcd.lib +0 -0
  174. data/ext/iup-win32/iupcontrols.dll +0 -0
  175. data/ext/iup-win32/iupcontrols.lib +0 -0
  176. data/ext/iup-win32/iupgl.dll +0 -0
  177. data/ext/iup-win32/iupgl.lib +0 -0
  178. data/ext/iup-win32/iupgtk.dll +0 -0
  179. data/ext/iup-win32/iupgtk.lib +0 -0
  180. data/ext/iup-win32/iupim.dll +0 -0
  181. data/ext/iup-win32/iupim.lib +0 -0
  182. data/ext/iup-win32/iupimglib.dll +0 -0
  183. data/ext/iup-win32/iupimglib.lib +0 -0
  184. data/ext/iup-win32/iupole.dll +0 -0
  185. data/ext/iup-win32/iupole.lib +0 -0
  186. data/ext/iup-win32/iupstub.lib +0 -0
  187. data/ext/iup-win32/pdflib.dll +0 -0
  188. data/ext/iup-win32/pdflib.lib +0 -0
  189. data/ext/iup.c +3 -351
  190. data/ext/rb_iup.h +48 -15
  191. data/ext/rb_iupcb.h +1 -0
  192. data/ext/rb_iupcells.h +1 -0
  193. data/ext/rb_iupcolorbar.h +1 -4
  194. data/ext/rb_iupcontrols.h +0 -5
  195. data/ext/rb_iupdial.h +1 -0
  196. data/ext/rb_iupgauge.h +1 -0
  197. data/ext/rb_iupgc.h +0 -1
  198. data/ext/rb_iupmatrix.h +1 -0
  199. data/ext/rb_iupsbox.h +0 -1
  200. data/ext/rb_iuptabs.h +1 -0
  201. data/ext/rb_iuptree.h +1 -0
  202. data/ext/rb_iupval.h +1 -0
  203. metadata +16 -29
  204. data/ext/iup-linux/include/iupcbox.h +0 -23
  205. data/ext/iup-linux/include/iupcompat.h +0 -62
  206. data/ext/iup-linux/include/iupcpi.h +0 -76
  207. data/ext/iup-linux/include/iupgc.h +0 -20
  208. data/ext/iup-linux/include/iupsbox.h +0 -20
  209. data/ext/iup-linux/include/iupspeech.h +0 -23
  210. data/ext/iup-linux/libcdluacontextplus51.so +0 -0
  211. data/ext/iup-win32/cdlua51.lib +0 -0
  212. data/ext/iup-win32/cdluacontextplus51.lib +0 -0
  213. data/ext/iup-win32/cdluaim51.lib +0 -0
  214. data/ext/iup-win32/cdluapdf51.lib +0 -0
  215. data/ext/iup-win32/include/iupcbox.h +0 -23
  216. data/ext/iup-win32/include/iupcompat.h +0 -62
  217. data/ext/iup-win32/include/iupcpi.h +0 -76
  218. data/ext/iup-win32/include/iupgc.h +0 -20
  219. data/ext/iup-win32/include/iupsbox.h +0 -20
  220. data/ext/iup-win32/include/iupspeech.h +0 -23
  221. data/ext/iup-win32/iuplua51.lib +0 -0
  222. data/ext/iup-win32/iuplua_pplot51.lib +0 -0
  223. data/ext/iup-win32/iupluacd51.lib +0 -0
  224. data/ext/iup-win32/iupluacontrols51.lib +0 -0
  225. data/ext/iup-win32/iupluagl51.lib +0 -0
  226. data/ext/iup-win32/iupluaim51.lib +0 -0
  227. data/ext/iup-win32/iupluaimglib51.lib +0 -0
  228. data/ext/iup-win32/iupluaole51.lib +0 -0
  229. data/ext/rb_iupcbox.h +0 -40
  230. data/ext/rb_iupspeech.h +0 -25
@@ -1,78 +1,78 @@
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
-
23
- void wdCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
24
- int wdCanvasGetClipArea(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax);
25
- int wdCanvasIsPointInRegion(cdCanvas* canvas, double x, double y);
26
- void wdCanvasOffsetRegion(cdCanvas* canvas, double x, double y);
27
- void wdCanvasGetRegionBox(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax);
28
-
29
- void wdCanvasHardcopy(cdCanvas* canvas, cdContext* ctx, void *data, void(*draw_func)(cdCanvas *canvas_copy));
30
-
31
- /* primitives */
32
- void wdCanvasPixel(cdCanvas* canvas, double x, double y, long color);
33
- void wdCanvasMark(cdCanvas* canvas, double x, double y);
34
- void wdCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2);
35
- void wdCanvasVertex(cdCanvas* canvas, double x, double y);
36
- void wdCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
37
- void wdCanvasBox(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
38
- void wdCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
39
- void wdCanvasSector(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
40
- void wdCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
41
- void wdCanvasText(cdCanvas* canvas, double x, double y, const char* s);
42
-
43
- void wdCanvasPutImageRect(cdCanvas* canvas, cdImage* image, double x, double y, int xmin, int xmax, int ymin, int ymax);
44
- 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);
45
- 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);
46
- 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);
47
- void wdCanvasPutBitmap(cdCanvas* canvas, cdBitmap* bitmap, double x, double y, double w, double h);
48
-
49
- /* attributes */
50
- double wdCanvasLineWidth(cdCanvas* canvas, double width);
51
- int wdCanvasFont(cdCanvas* canvas, const char* type_face, int style, double size);
52
- void wdCanvasGetFont(cdCanvas* canvas, char *type_face, int *style, double *size);
53
- double wdCanvasMarkSize(cdCanvas* canvas, double size);
54
- void wdCanvasGetFontDim(cdCanvas* canvas, double *max_width, double *height, double *ascent, double *descent);
55
- void wdCanvasGetTextSize(cdCanvas* canvas, const char* s, double *width, double *height);
56
- void wdCanvasGetTextBox(cdCanvas* canvas, double x, double y, const char* s, double *xmin, double *xmax, double *ymin, double *ymax);
57
- void wdCanvasGetTextBounds(cdCanvas* canvas, double x, double y, const char* s, double *rect);
58
- void wdCanvasStipple(cdCanvas* canvas, int w, int h, const unsigned char*fgbg, double w_mm, double h_mm);
59
- void wdCanvasPattern(cdCanvas* canvas, int w, int h, const long *color, double w_mm, double h_mm);
60
-
61
- /* vector text */
62
- void wdCanvasVectorTextDirection(cdCanvas* canvas, double x1, double y1, double x2, double y2);
63
- void wdCanvasVectorTextSize(cdCanvas* canvas, double size_x, double size_y, const char* s);
64
- void wdCanvasGetVectorTextSize(cdCanvas* canvas, const char* s, double *x, double *y);
65
- double wdCanvasVectorCharSize(cdCanvas* canvas, double size);
66
- void wdCanvasVectorText(cdCanvas* canvas, double x, double y, const char* s);
67
- void wdCanvasMultiLineVectorText(cdCanvas* canvas, double x, double y, const char* s);
68
- void wdCanvasGetVectorTextBounds(cdCanvas* canvas, const char* s, double x, double y, double *rect);
69
-
70
- #ifdef __cplusplus
71
- }
72
- #endif
73
-
74
- #ifndef CD_NO_OLD_INTERFACE
75
- #include "wd_old.h"
76
- #endif
77
-
78
- #endif
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
+
23
+ void wdCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
24
+ int wdCanvasGetClipArea(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax);
25
+ int wdCanvasIsPointInRegion(cdCanvas* canvas, double x, double y);
26
+ void wdCanvasOffsetRegion(cdCanvas* canvas, double x, double y);
27
+ void wdCanvasGetRegionBox(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax);
28
+
29
+ void wdCanvasHardcopy(cdCanvas* canvas, cdContext* ctx, void *data, void(*draw_func)(cdCanvas *canvas_copy));
30
+
31
+ /* primitives */
32
+ void wdCanvasPixel(cdCanvas* canvas, double x, double y, long color);
33
+ void wdCanvasMark(cdCanvas* canvas, double x, double y);
34
+ void wdCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2);
35
+ void wdCanvasVertex(cdCanvas* canvas, double x, double y);
36
+ void wdCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
37
+ void wdCanvasBox(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax);
38
+ void wdCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
39
+ void wdCanvasSector(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
40
+ void wdCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2);
41
+ void wdCanvasText(cdCanvas* canvas, double x, double y, const char* s);
42
+
43
+ void wdCanvasPutImageRect(cdCanvas* canvas, cdImage* image, double x, double y, int xmin, int xmax, int ymin, int ymax);
44
+ 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);
45
+ 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);
46
+ 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);
47
+ void wdCanvasPutBitmap(cdCanvas* canvas, cdBitmap* bitmap, double x, double y, double w, double h);
48
+
49
+ /* attributes */
50
+ double wdCanvasLineWidth(cdCanvas* canvas, double width);
51
+ int wdCanvasFont(cdCanvas* canvas, const char* type_face, int style, double size);
52
+ void wdCanvasGetFont(cdCanvas* canvas, char *type_face, int *style, double *size);
53
+ double wdCanvasMarkSize(cdCanvas* canvas, double size);
54
+ void wdCanvasGetFontDim(cdCanvas* canvas, double *max_width, double *height, double *ascent, double *descent);
55
+ void wdCanvasGetTextSize(cdCanvas* canvas, const char* s, double *width, double *height);
56
+ void wdCanvasGetTextBox(cdCanvas* canvas, double x, double y, const char* s, double *xmin, double *xmax, double *ymin, double *ymax);
57
+ void wdCanvasGetTextBounds(cdCanvas* canvas, double x, double y, const char* s, double *rect);
58
+ void wdCanvasStipple(cdCanvas* canvas, int w, int h, const unsigned char*fgbg, double w_mm, double h_mm);
59
+ void wdCanvasPattern(cdCanvas* canvas, int w, int h, const long *color, double w_mm, double h_mm);
60
+
61
+ /* vector text */
62
+ void wdCanvasVectorTextDirection(cdCanvas* canvas, double x1, double y1, double x2, double y2);
63
+ void wdCanvasVectorTextSize(cdCanvas* canvas, double size_x, double size_y, const char* s);
64
+ void wdCanvasGetVectorTextSize(cdCanvas* canvas, const char* s, double *x, double *y);
65
+ double wdCanvasVectorCharSize(cdCanvas* canvas, double size);
66
+ void wdCanvasVectorText(cdCanvas* canvas, double x, double y, const char* s);
67
+ void wdCanvasMultiLineVectorText(cdCanvas* canvas, double x, double y, const char* s);
68
+ void wdCanvasGetVectorTextBounds(cdCanvas* canvas, const char* s, double x, double y, double *rect);
69
+
70
+ #ifdef __cplusplus
71
+ }
72
+ #endif
73
+
74
+ #ifndef CD_NO_OLD_INTERFACE
75
+ #include "wd_old.h"
76
+ #endif
77
+
78
+ #endif
@@ -1,85 +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
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/ext/iup.c CHANGED
@@ -3,7 +3,6 @@
3
3
  #include "rb_iup.h"
4
4
 
5
5
  #include "rb_iupcb.h"
6
- #include "rb_iupcbox.h"
7
6
  #include "rb_iupcells.h"
8
7
  #include "rb_iupcolorbar.h"
9
8
  #include "rb_iupcontrols.h"
@@ -16,7 +15,6 @@
16
15
  #include "rb_iupmask.h"
17
16
  #include "rb_iupmatrix.h"
18
17
  #include "rb_iupsbox.h"
19
- #include "rb_iupspeech.h"
20
18
  #include "rb_iupspin.h"
21
19
  #include "rb_iuptabs.h"
22
20
  #include "rb_iuptree.h"
@@ -32,7 +30,7 @@
32
30
 
33
31
  DLLEXPORT void Init_iup()
34
32
  {
35
- VALUE VERSION = rb_str_new2("0.0.1");
33
+ VALUE VERSION = rb_str_new2("0.0.2");
36
34
  rb_mIup = rb_define_module("Iup");
37
35
  rb_mCd = rb_define_module("Cd");
38
36
  rb_define_const(rb_mIup, "RUBY_IUP_VERSION", VERSION);
@@ -78,6 +76,7 @@ DLLEXPORT void Init_iup()
78
76
  rb_cIupPPlot = rb_define_class_under(rb_mIup, "PPlot", rb_cIupCanvas);
79
77
  rb_cIupVal = rb_define_class_under(rb_mIup, "Val", rb_cIupCanvas);
80
78
  rb_cIupTimer = rb_define_class_under(rb_mIup, "Timer", rb_cIupNode);
79
+ rb_cIupProgressBar = rb_define_class_under(rb_mIup, "ProgressBar", rb_cIupNode);
81
80
 
82
81
  rb_define_const(rb_mIup, "NAME", rb_str_new2(IUP_NAME));
83
82
  rb_define_const(rb_mIup, "COPYRIGHT", rb_str_new2(IUP_COPYRIGHT));
@@ -206,6 +205,7 @@ DLLEXPORT void Init_iup()
206
205
  rb_define_module_function(rb_mIup, "MultiLine", rb_IupMultiLine, -1);
207
206
  rb_define_module_function(rb_mIup, "Toggle", rb_IupToggle, -1);
208
207
  rb_define_module_function(rb_mIup, "Timer", rb_IupTimer, 0);
208
+ rb_define_module_function(rb_mIup, "ProgressBar", rb_IupProgressBar, 0);
209
209
  rb_define_const(rb_mIup, "ERROR", INT2FIX(IUP_ERROR));
210
210
  rb_define_const(rb_mIup, "NOERROR", INT2FIX(IUP_NOERROR));
211
211
  rb_define_const(rb_mIup, "OPENED", INT2FIX(IUP_OPENED));
@@ -229,58 +229,12 @@ DLLEXPORT void Init_iup()
229
229
  rb_define_const(rb_mIup, "BUTTON5", INT2FIX(IUP_BUTTON5));
230
230
 
231
231
  rb_define_module_function(rb_mIup, "ColorBrowser", rb_IupColorBrowser, 0);
232
- rb_define_const(rb_mIup, "RGB", rb_str_new2(IUP_RGB));
233
- rb_define_const(rb_mIup, "CHANGE_CB", rb_str_new2(IUP_CHANGE_CB));
234
- rb_define_const(rb_mIup, "DRAG_CB", rb_str_new2(IUP_DRAG_CB));
235
232
 
236
233
  rb_define_module_function(rb_mIup, "Cbox", rb_IupCboxv, -1);
237
- rb_define_module_function(rb_mIup, "CboxBuilder", rb_IupCboxBuilderv, 1);
238
234
 
239
235
  rb_define_const(rb_mIup, "OUT", INT2FIX(IUP_OUT));
240
- rb_define_const(rb_mIup, "ALL", rb_str_new2(IUP_ALL));
241
- rb_define_const(rb_mIup, "BOXED", rb_str_new2(IUP_BOXED));
242
- rb_define_const(rb_mIup, "CLIPPED", rb_str_new2(IUP_CLIPPED));
243
- rb_define_const(rb_mIup, "TRANSPARENT", rb_str_new2(IUP_TRANSPARENT));
244
- rb_define_const(rb_mIup, "NON_SCROLLABLE_LINES", rb_str_new2(IUP_NON_SCROLLABLE_LINES));
245
- rb_define_const(rb_mIup, "NON_SCROLLABLE_COLS", rb_str_new2(IUP_NON_SCROLLABLE_COLS));
246
- rb_define_const(rb_mIup, "ORIGIN", rb_str_new2(IUP_ORIGIN));
247
- rb_define_const(rb_mIup, "NO_COLOR", rb_str_new2(IUP_NO_COLOR));
248
- rb_define_const(rb_mIup, "FIRST_LINE", rb_str_new2(IUP_FIRST_LINE));
249
- rb_define_const(rb_mIup, "FIRST_COL", rb_str_new2(IUP_FIRST_COL));
250
- rb_define_const(rb_mIup, "DOUBLE_BUFFER", rb_str_new2(IUP_DOUBLE_BUFFER));
251
- rb_define_const(rb_mIup, "BUFFERIZE", rb_str_new2(IUP_BUFFERIZE));
252
- rb_define_const(rb_mIup, "REPAINT", rb_str_new2(IUP_REPAINT));
253
- rb_define_const(rb_mIup, "LIMITS", rb_str_new2(IUP_LIMITS));
254
- rb_define_const(rb_mIup, "CANVAS", rb_str_new2(IUP_CANVAS));
255
- rb_define_const(rb_mIup, "IMAGE_CANVAS", rb_str_new2(IUP_IMAGE_CANVAS));
256
- rb_define_const(rb_mIup, "FULL_VISIBLE", rb_str_new2(IUP_FULL_VISIBLE));
257
- rb_define_const(rb_mIup, "MOUSECLICK_CB", rb_str_new2(IUP_MOUSECLICK_CB));
258
- rb_define_const(rb_mIup, "MOUSEMOTION_CB", rb_str_new2(IUP_MOUSEMOTION_CB));
259
- rb_define_const(rb_mIup, "DRAW_CB", rb_str_new2(IUP_DRAW_CB));
260
- rb_define_const(rb_mIup, "WIDTH_CB", rb_str_new2(IUP_WIDTH_CB));
261
- rb_define_const(rb_mIup, "HEIGHT_CB", rb_str_new2(IUP_HEIGHT_CB));
262
- rb_define_const(rb_mIup, "NLINES_CB", rb_str_new2(IUP_NLINES_CB));
263
- rb_define_const(rb_mIup, "NCOLS_CB", rb_str_new2(IUP_NCOLS_CB));
264
- rb_define_const(rb_mIup, "HSPAN_CB", rb_str_new2(IUP_HSPAN_CB));
265
- rb_define_const(rb_mIup, "VSPAN_CB", rb_str_new2(IUP_VSPAN_CB));
266
- rb_define_const(rb_mIup, "SCROLLING_CB", rb_str_new2(IUP_SCROLLING_CB));
267
236
  rb_define_module_function(rb_mIup, "Cells", rb_IupCells, -1);
268
237
 
269
- rb_define_const(rb_mIup, "NUM_PARTS", rb_str_new2(IUP_NUM_PARTS));
270
- rb_define_const(rb_mIup, "NUM_CELLS", rb_str_new2(IUP_NUM_CELLS));
271
- rb_define_const(rb_mIup, "PREVIEW_SIZE", rb_str_new2(IUP_PREVIEW_SIZE));
272
- rb_define_const(rb_mIup, "SHOW_PREVIEW", rb_str_new2(IUP_SHOW_PREVIEW));
273
- rb_define_const(rb_mIup, "SHOW_SECONDARY", rb_str_new2(IUP_SHOW_SECONDARY));
274
- rb_define_const(rb_mIup, "PRIMARY_CELL", rb_str_new2(IUP_PRIMARY_CELL));
275
- rb_define_const(rb_mIup, "SECONDARY_CELL", rb_str_new2(IUP_SECONDARY_CELL));
276
- rb_define_const(rb_mIup, "ORIENTATION", INT2FIX(IUP_ORIENTATION));
277
- rb_define_const(rb_mIup, "SQUARED", INT2FIX(IUP_SQUARED));
278
- rb_define_const(rb_mIup, "SHADOWED", INT2FIX(IUP_SHADOWED));
279
- rb_define_const(rb_mIup, "TRANSPARENCY", INT2FIX(IUP_TRANSPARENCY));
280
- rb_define_const(rb_mIup, "CELL_CB", rb_str_new2(IUP_CELL_CB));
281
- rb_define_const(rb_mIup, "EXTENDED_CB", rb_str_new2(IUP_EXTENDED_CB));
282
- rb_define_const(rb_mIup, "SELECT_CB", rb_str_new2(IUP_SELECT_CB));
283
- rb_define_const(rb_mIup, "SWITCH_CB", rb_str_new2(IUP_SWITCH_CB));
284
238
  rb_define_const(rb_mIup, "PRIMARY", INT2FIX(IUP_PRIMARY));
285
239
  rb_define_const(rb_mIup, "SECONDARY", INT2FIX(IUP_SECONDARY));
286
240
  rb_define_module_function(rb_mIup, "Colorbar", rb_IupColorbar, 0);
@@ -288,213 +242,7 @@ DLLEXPORT void Init_iup()
288
242
  rb_define_module_function(rb_mIup, "ControlsOpen", rb_IupControlsOpen, 0);
289
243
  rb_define_module_function(rb_mIup, "ControlsClose", rb_IupControlsClose, 0);
290
244
  rb_define_module_function(rb_mIup, "ImageLibOpen", rb_IupImageLibOpen, 0);
291
- rb_define_module_function(rb_mIup, "ImageLibClose", rb_IupImageLibClose, 0);
292
245
 
293
- rb_define_const(rb_mIup, "RUN", rb_str_new2(IUP_RUN));
294
- rb_define_const(rb_mIup, "ENGLISH", rb_str_new2(IUP_ENGLISH));
295
- rb_define_const(rb_mIup, "PORTUGUESE", rb_str_new2(IUP_PORTUGUESE));
296
- rb_define_const(rb_mIup, "SBH", rb_str_new2(IUP_SBH));
297
- rb_define_const(rb_mIup, "SBV", rb_str_new2(IUP_SBV));
298
- rb_define_const(rb_mIup, "DEFAULT_ACTION", rb_str_new2(IUP_DEFAULT_ACTION));
299
- rb_define_const(rb_mIup, "IDLE_ACTION", rb_str_new2(IUP_IDLE_ACTION));
300
- rb_define_const(rb_mIup, "ACTION", rb_str_new2(IUP_ACTION));
301
- rb_define_const(rb_mIup, "GETFOCUS_CB", rb_str_new2(IUP_GETFOCUS_CB));
302
- rb_define_const(rb_mIup, "KILLFOCUS_CB", rb_str_new2(IUP_KILLFOCUS_CB));
303
- rb_define_const(rb_mIup, "K_ANY", rb_str_new2(IUP_K_ANY));
304
- rb_define_const(rb_mIup, "KEYPRESS_CB", rb_str_new2(IUP_KEYPRESS_CB));
305
- rb_define_const(rb_mIup, "HELP_CB", rb_str_new2(IUP_HELP_CB));
306
- rb_define_const(rb_mIup, "SCROLL_CB", rb_str_new2(IUP_SCROLL_CB));
307
- rb_define_const(rb_mIup, "RESIZE_CB", rb_str_new2(IUP_RESIZE_CB));
308
- rb_define_const(rb_mIup, "MOTION_CB", rb_str_new2(IUP_MOTION_CB));
309
- rb_define_const(rb_mIup, "BUTTON_CB", rb_str_new2(IUP_BUTTON_CB));
310
- rb_define_const(rb_mIup, "ENTERWINDOW_CB", rb_str_new2(IUP_ENTERWINDOW_CB));
311
- rb_define_const(rb_mIup, "LEAVEWINDOW_CB", rb_str_new2(IUP_LEAVEWINDOW_CB));
312
- rb_define_const(rb_mIup, "WHEEL_CB", rb_str_new2(IUP_WHEEL_CB));
313
- rb_define_const(rb_mIup, "MASK_CB", rb_str_new2(IUP_MASK_CB));
314
- rb_define_const(rb_mIup, "OPEN_CB", rb_str_new2(IUP_OPEN_CB));
315
- rb_define_const(rb_mIup, "HIGHLIGHT_CB", rb_str_new2(IUP_HIGHLIGHT_CB));
316
- rb_define_const(rb_mIup, "MENUCLOSE_CB", rb_str_new2(IUP_MENUCLOSE_CB));
317
- rb_define_const(rb_mIup, "MAP_CB", rb_str_new2(IUP_MAP_CB));
318
- rb_define_const(rb_mIup, "CLOSE_CB", rb_str_new2(IUP_CLOSE_CB));
319
- rb_define_const(rb_mIup, "SHOW_CB", rb_str_new2(IUP_SHOW_CB));
320
- rb_define_const(rb_mIup, "DROPFILES_CB", rb_str_new2(IUP_DROPFILES_CB));
321
- rb_define_const(rb_mIup, "WOM_CB", rb_str_new2(IUP_WOM_CB));
322
- rb_define_const(rb_mIup, "DIRECTION", rb_str_new2(IUP_DIRECTION));
323
- rb_define_const(rb_mIup, "ACTIVE", rb_str_new2(IUP_ACTIVE));
324
- rb_define_const(rb_mIup, "BGCOLOR", rb_str_new2(IUP_BGCOLOR));
325
- rb_define_const(rb_mIup, "FRAMECOLOR", rb_str_new2(IUP_FRAMECOLOR));
326
- rb_define_const(rb_mIup, "FGCOLOR", rb_str_new2(IUP_FGCOLOR));
327
- rb_define_const(rb_mIup, "COLOR", rb_str_new2(IUP_COLOR));
328
- rb_define_const(rb_mIup, "WID", rb_str_new2(IUP_WID));
329
- rb_define_const(rb_mIup, "SIZE", rb_str_new2(IUP_SIZE));
330
- rb_define_const(rb_mIup, "RASTERSIZE", rb_str_new2(IUP_RASTERSIZE));
331
- rb_define_const(rb_mIup, "TITLE", rb_str_new2(IUP_TITLE));
332
- rb_define_const(rb_mIup, "VALUE", rb_str_new2(IUP_VALUE));
333
- rb_define_const(rb_mIup, "VISIBLE", rb_str_new2(IUP_VISIBLE));
334
- rb_define_const(rb_mIup, "FONT", rb_str_new2(IUP_FONT));
335
- rb_define_const(rb_mIup, "TIP", rb_str_new2(IUP_TIP));
336
- rb_define_const(rb_mIup, "EXPAND", rb_str_new2(IUP_EXPAND));
337
- rb_define_const(rb_mIup, "SEPARATOR", rb_str_new2(IUP_SEPARATOR));
338
- rb_define_const(rb_mIup, "HOTSPOT", rb_str_new2(IUP_HOTSPOT));
339
- rb_define_const(rb_mIup, "HEIGHT", rb_str_new2(IUP_HEIGHT));
340
- rb_define_const(rb_mIup, "WIDTH", rb_str_new2(IUP_WIDTH));
341
- rb_define_const(rb_mIup, "KEY", rb_str_new2(IUP_KEY));
342
- rb_define_const(rb_mIup, "MULTIPLE", rb_str_new2(IUP_MULTIPLE));
343
- rb_define_const(rb_mIup, "DROPDOWN", rb_str_new2(IUP_DROPDOWN));
344
- rb_define_const(rb_mIup, "VISIBLE_ITEMS", rb_str_new2(IUP_VISIBLE_ITEMS));
345
- rb_define_const(rb_mIup, "MARGIN", rb_str_new2(IUP_MARGIN));
346
- rb_define_const(rb_mIup, "GAP", rb_str_new2(IUP_GAP));
347
- rb_define_const(rb_mIup, "ALIGNMENT", rb_str_new2(IUP_ALIGNMENT));
348
- rb_define_const(rb_mIup, "IMAGE", rb_str_new2(IUP_IMAGE));
349
- rb_define_const(rb_mIup, "IMINACTIVE", rb_str_new2(IUP_IMINACTIVE));
350
- rb_define_const(rb_mIup, "IMPRESS", rb_str_new2(IUP_IMPRESS));
351
- rb_define_const(rb_mIup, "SAVEUNDER", rb_str_new2(IUP_SAVEUNDER));
352
- rb_define_const(rb_mIup, "NC", rb_str_new2(IUP_NC));
353
- rb_define_const(rb_mIup, "MASK", rb_str_new2(IUP_MASK));
354
- rb_define_const(rb_mIup, "APPEND", rb_str_new2(IUP_APPEND));
355
- rb_define_const(rb_mIup, "BORDER", rb_str_new2(IUP_BORDER));
356
- rb_define_const(rb_mIup, "CARET", rb_str_new2(IUP_CARET));
357
- rb_define_const(rb_mIup, "SELECTION", rb_str_new2(IUP_SELECTION));
358
- rb_define_const(rb_mIup, "SELECTEDTEXT", rb_str_new2(IUP_SELECTEDTEXT));
359
- rb_define_const(rb_mIup, "INSERT", rb_str_new2(IUP_INSERT));
360
- rb_define_const(rb_mIup, "CONID", rb_str_new2(IUP_CONID));
361
- rb_define_const(rb_mIup, "CURSOR", rb_str_new2(IUP_CURSOR));
362
- rb_define_const(rb_mIup, "ICON", rb_str_new2(IUP_ICON));
363
- rb_define_const(rb_mIup, "MENUBOX", rb_str_new2(IUP_MENUBOX));
364
- rb_define_const(rb_mIup, "MINBOX", rb_str_new2(IUP_MINBOX));
365
- rb_define_const(rb_mIup, "MAXBOX", rb_str_new2(IUP_MAXBOX));
366
- rb_define_const(rb_mIup, "RESIZE", rb_str_new2(IUP_RESIZE));
367
- rb_define_const(rb_mIup, "MENU", rb_str_new2(IUP_MENU));
368
- rb_define_const(rb_mIup, "STARTFOCUS", rb_str_new2(IUP_STARTFOCUS));
369
- rb_define_const(rb_mIup, "PARENTDIALOG", rb_str_new2(IUP_PARENTDIALOG));
370
- rb_define_const(rb_mIup, "SHRINK", rb_str_new2(IUP_SHRINK));
371
- rb_define_const(rb_mIup, "DEFAULTENTER", rb_str_new2(IUP_DEFAULTENTER));
372
- rb_define_const(rb_mIup, "DEFAULTESC", rb_str_new2(IUP_DEFAULTESC));
373
- rb_define_const(rb_mIup, "X", rb_str_new2(IUP_X));
374
- rb_define_const(rb_mIup, "Y", rb_str_new2(IUP_Y));
375
- rb_define_const(rb_mIup, "TOOLBOX", rb_str_new2(IUP_TOOLBOX));
376
- rb_define_const(rb_mIup, "CONTROL", rb_str_new2(IUP_CONTROL));
377
- rb_define_const(rb_mIup, "READONLY", rb_str_new2(IUP_READONLY));
378
- rb_define_const(rb_mIup, "SCROLLBAR", rb_str_new2(IUP_SCROLLBAR));
379
- rb_define_const(rb_mIup, "POSY", rb_str_new2(IUP_POSY));
380
- rb_define_const(rb_mIup, "POSX", rb_str_new2(IUP_POSX));
381
- rb_define_const(rb_mIup, "DX", rb_str_new2(IUP_DX));
382
- rb_define_const(rb_mIup, "DY", rb_str_new2(IUP_DY));
383
- rb_define_const(rb_mIup, "XMAX", rb_str_new2(IUP_XMAX));
384
- rb_define_const(rb_mIup, "XMIN", rb_str_new2(IUP_XMIN));
385
- rb_define_const(rb_mIup, "YMAX", rb_str_new2(IUP_YMAX));
386
- rb_define_const(rb_mIup, "YMIN", rb_str_new2(IUP_YMIN));
387
- rb_define_const(rb_mIup, "RED", rb_str_new2(IUP_RED));
388
- rb_define_const(rb_mIup, "GREEN", rb_str_new2(IUP_GREEN));
389
- rb_define_const(rb_mIup, "BLUE", rb_str_new2(IUP_BLUE));
390
- rb_define_const(rb_mIup, "MIN", rb_str_new2(IUP_MIN));
391
- rb_define_const(rb_mIup, "MAX", rb_str_new2(IUP_MAX));
392
- rb_define_const(rb_mIup, "TIME", rb_str_new2(IUP_TIME));
393
- rb_define_const(rb_mIup, "DRAG", rb_str_new2(IUP_DRAG));
394
- rb_define_const(rb_mIup, "DROP", rb_str_new2(IUP_DROP));
395
- rb_define_const(rb_mIup, "TOPMOST", rb_str_new2(IUP_TOPMOST));
396
- rb_define_const(rb_mIup, "CLIPCHILDREN", rb_str_new2(IUP_CLIPCHILDREN));
397
- rb_define_const(rb_mIup, "DIALOGTYPE", rb_str_new2(IUP_DIALOGTYPE));
398
- rb_define_const(rb_mIup, "FILE", rb_str_new2(IUP_FILE));
399
- rb_define_const(rb_mIup, "MULTIPLEFILES", rb_str_new2(IUP_MULTIPLEFILES));
400
- rb_define_const(rb_mIup, "FILTER", rb_str_new2(IUP_FILTER));
401
- rb_define_const(rb_mIup, "FILTERUSED", rb_str_new2(IUP_FILTERUSED));
402
- rb_define_const(rb_mIup, "FILTERINFO", rb_str_new2(IUP_FILTERINFO));
403
- rb_define_const(rb_mIup, "EXTFILTER", rb_str_new2(IUP_EXTFILTER));
404
- rb_define_const(rb_mIup, "DIRECTORY", rb_str_new2(IUP_DIRECTORY));
405
- rb_define_const(rb_mIup, "ALLOWNEW", rb_str_new2(IUP_ALLOWNEW));
406
- rb_define_const(rb_mIup, "NOOVERWRITEPROMPT", rb_str_new2(IUP_NOOVERWRITEPROMPT));
407
- rb_define_const(rb_mIup, "NOCHANGEDIR", rb_str_new2(IUP_NOCHANGEDIR));
408
- rb_define_const(rb_mIup, "FILEEXIST", rb_str_new2(IUP_FILEEXIST));
409
- rb_define_const(rb_mIup, "STATUS", rb_str_new2(IUP_STATUS));
410
- rb_define_const(rb_mIup, "LOCKLOOP", rb_str_new2(IUP_LOCKLOOP));
411
- rb_define_const(rb_mIup, "SYSTEM", rb_str_new2(IUP_SYSTEM));
412
- rb_define_const(rb_mIup, "DRIVER", rb_str_new2(IUP_DRIVER));
413
- rb_define_const(rb_mIup, "SCREENSIZE", rb_str_new2(IUP_SCREENSIZE));
414
- rb_define_const(rb_mIup, "SYSTEMLANGUAGE", rb_str_new2(IUP_SYSTEMLANGUAGE));
415
- rb_define_const(rb_mIup, "COMPUTERNAME", rb_str_new2(IUP_COMPUTERNAME));
416
- rb_define_const(rb_mIup, "USERNAME", rb_str_new2(IUP_USERNAME));
417
- rb_define_const(rb_mIup, "OPEN", rb_str_new2(IUP_OPEN));
418
- rb_define_const(rb_mIup, "SAVE", rb_str_new2(IUP_SAVE));
419
- rb_define_const(rb_mIup, "DIR", rb_str_new2(IUP_DIR));
420
- rb_define_const(rb_mIup, "HORIZONTAL", rb_str_new2(IUP_HORIZONTAL));
421
- rb_define_const(rb_mIup, "VERTICAL", rb_str_new2(IUP_VERTICAL));
422
- rb_define_const(rb_mIup, "ON", rb_str_new2(IUP_ON));
423
- rb_define_const(rb_mIup, "OFF", rb_str_new2(IUP_OFF));
424
- rb_define_const(rb_mIup, "ACENTER", rb_str_new2(IUP_ACENTER));
425
- rb_define_const(rb_mIup, "ALEFT", rb_str_new2(IUP_ALEFT));
426
- rb_define_const(rb_mIup, "ARIGHT", rb_str_new2(IUP_ARIGHT));
427
- rb_define_const(rb_mIup, "ATOP", rb_str_new2(IUP_ATOP));
428
- rb_define_const(rb_mIup, "ABOTTOM", rb_str_new2(IUP_ABOTTOM));
429
- rb_define_const(rb_mIup, "NORTH", rb_str_new2(IUP_NORTH));
430
- rb_define_const(rb_mIup, "SOUTH", rb_str_new2(IUP_SOUTH));
431
- rb_define_const(rb_mIup, "WEST", rb_str_new2(IUP_WEST));
432
- rb_define_const(rb_mIup, "EAST", rb_str_new2(IUP_EAST));
433
- rb_define_const(rb_mIup, "NE", rb_str_new2(IUP_NE));
434
- rb_define_const(rb_mIup, "SE", rb_str_new2(IUP_SE));
435
- rb_define_const(rb_mIup, "NW", rb_str_new2(IUP_NW));
436
- rb_define_const(rb_mIup, "SW", rb_str_new2(IUP_SW));
437
- rb_define_const(rb_mIup, "FULLSCREEN", rb_str_new2(IUP_FULLSCREEN));
438
- rb_define_const(rb_mIup, "FULL", rb_str_new2(IUP_FULL));
439
- rb_define_const(rb_mIup, "HALF", rb_str_new2(IUP_HALF));
440
- rb_define_const(rb_mIup, "THIRD", rb_str_new2(IUP_THIRD));
441
- rb_define_const(rb_mIup, "QUARTER", rb_str_new2(IUP_QUARTER));
442
- rb_define_const(rb_mIup, "EIGHTH", rb_str_new2(IUP_EIGHTH));
443
- rb_define_const(rb_mIup, "ARROW", rb_str_new2(IUP_ARROW));
444
- rb_define_const(rb_mIup, "BUSY", rb_str_new2(IUP_BUSY));
445
- rb_define_const(rb_mIup, "RESIZE_N", rb_str_new2(IUP_RESIZE_N));
446
- rb_define_const(rb_mIup, "RESIZE_S", rb_str_new2(IUP_RESIZE_S));
447
- rb_define_const(rb_mIup, "RESIZE_E", rb_str_new2(IUP_RESIZE_E));
448
- rb_define_const(rb_mIup, "RESIZE_W", rb_str_new2(IUP_RESIZE_W));
449
- rb_define_const(rb_mIup, "RESIZE_NE", rb_str_new2(IUP_RESIZE_NE));
450
- rb_define_const(rb_mIup, "RESIZE_NW", rb_str_new2(IUP_RESIZE_NW));
451
- rb_define_const(rb_mIup, "RESIZE_SE", rb_str_new2(IUP_RESIZE_SE));
452
- rb_define_const(rb_mIup, "RESIZE_SW", rb_str_new2(IUP_RESIZE_SW));
453
- rb_define_const(rb_mIup, "MOVE", rb_str_new2(IUP_MOVE));
454
- rb_define_const(rb_mIup, "HAND", rb_str_new2(IUP_HAND));
455
- rb_define_const(rb_mIup, "NONE", rb_str_new2(IUP_NONE));
456
- rb_define_const(rb_mIup, "IUP", rb_str_new2(IUP_IUP));
457
- rb_define_const(rb_mIup, "CROSS", rb_str_new2(IUP_CROSS));
458
- rb_define_const(rb_mIup, "PEN", rb_str_new2(IUP_PEN));
459
- rb_define_const(rb_mIup, "TEXT", rb_str_new2(IUP_TEXT));
460
- rb_define_const(rb_mIup, "RESIZE_C", rb_str_new2(IUP_RESIZE_C));
461
- rb_define_const(rb_mIup, "OPENHAND", rb_str_new2(IUP_OPENHAND));
462
- rb_define_const(rb_mIup, "HELVETICA_NORMAL_8", rb_str_new2(IUP_HELVETICA_NORMAL_8));
463
- rb_define_const(rb_mIup, "HELVETICA_ITALIC_8", rb_str_new2(IUP_HELVETICA_ITALIC_8));
464
- rb_define_const(rb_mIup, "HELVETICA_BOLD_8", rb_str_new2(IUP_HELVETICA_BOLD_8));
465
- rb_define_const(rb_mIup, "HELVETICA_NORMAL_10", rb_str_new2(IUP_HELVETICA_NORMAL_10));
466
- rb_define_const(rb_mIup, "HELVETICA_ITALIC_10", rb_str_new2(IUP_HELVETICA_ITALIC_10));
467
- rb_define_const(rb_mIup, "HELVETICA_BOLD_10", rb_str_new2(IUP_HELVETICA_BOLD_10));
468
- rb_define_const(rb_mIup, "HELVETICA_NORMAL_12", rb_str_new2(IUP_HELVETICA_NORMAL_12));
469
- rb_define_const(rb_mIup, "HELVETICA_ITALIC_12", rb_str_new2(IUP_HELVETICA_ITALIC_12));
470
- rb_define_const(rb_mIup, "HELVETICA_BOLD_12", rb_str_new2(IUP_HELVETICA_BOLD_12));
471
- rb_define_const(rb_mIup, "HELVETICA_NORMAL_14", rb_str_new2(IUP_HELVETICA_NORMAL_14));
472
- rb_define_const(rb_mIup, "HELVETICA_ITALIC_14", rb_str_new2(IUP_HELVETICA_ITALIC_14));
473
- rb_define_const(rb_mIup, "HELVETICA_BOLD_14", rb_str_new2(IUP_HELVETICA_BOLD_14));
474
- rb_define_const(rb_mIup, "COURIER_NORMAL_8", rb_str_new2(IUP_COURIER_NORMAL_8));
475
- rb_define_const(rb_mIup, "COURIER_ITALIC_8", rb_str_new2(IUP_COURIER_ITALIC_8));
476
- rb_define_const(rb_mIup, "COURIER_BOLD_8", rb_str_new2(IUP_COURIER_BOLD_8));
477
- rb_define_const(rb_mIup, "COURIER_NORMAL_10", rb_str_new2(IUP_COURIER_NORMAL_10));
478
- rb_define_const(rb_mIup, "COURIER_ITALIC_10", rb_str_new2(IUP_COURIER_ITALIC_10));
479
- rb_define_const(rb_mIup, "COURIER_BOLD_10", rb_str_new2(IUP_COURIER_BOLD_10));
480
- rb_define_const(rb_mIup, "COURIER_NORMAL_12", rb_str_new2(IUP_COURIER_NORMAL_12));
481
- rb_define_const(rb_mIup, "COURIER_ITALIC_12", rb_str_new2(IUP_COURIER_ITALIC_12));
482
- rb_define_const(rb_mIup, "COURIER_BOLD_12", rb_str_new2(IUP_COURIER_BOLD_12));
483
- rb_define_const(rb_mIup, "COURIER_NORMAL_14", rb_str_new2(IUP_COURIER_NORMAL_14));
484
- rb_define_const(rb_mIup, "COURIER_ITALIC_14", rb_str_new2(IUP_COURIER_ITALIC_14));
485
- rb_define_const(rb_mIup, "COURIER_BOLD_14", rb_str_new2(IUP_COURIER_BOLD_14));
486
- rb_define_const(rb_mIup, "TIMES_NORMAL_8", rb_str_new2(IUP_TIMES_NORMAL_8));
487
- rb_define_const(rb_mIup, "TIMES_ITALIC_8", rb_str_new2(IUP_TIMES_ITALIC_8));
488
- rb_define_const(rb_mIup, "TIMES_BOLD_8", rb_str_new2(IUP_TIMES_BOLD_8));
489
- rb_define_const(rb_mIup, "TIMES_NORMAL_10", rb_str_new2(IUP_TIMES_NORMAL_10));
490
- rb_define_const(rb_mIup, "TIMES_ITALIC_10", rb_str_new2(IUP_TIMES_ITALIC_10));
491
- rb_define_const(rb_mIup, "TIMES_BOLD_10", rb_str_new2(IUP_TIMES_BOLD_10));
492
- rb_define_const(rb_mIup, "TIMES_NORMAL_12", rb_str_new2(IUP_TIMES_NORMAL_12));
493
- rb_define_const(rb_mIup, "TIMES_ITALIC_12", rb_str_new2(IUP_TIMES_ITALIC_12));
494
- rb_define_const(rb_mIup, "TIMES_BOLD_12", rb_str_new2(IUP_TIMES_BOLD_12));
495
- rb_define_const(rb_mIup, "TIMES_NORMAL_14", rb_str_new2(IUP_TIMES_NORMAL_14));
496
- rb_define_const(rb_mIup, "TIMES_ITALIC_14", rb_str_new2(IUP_TIMES_ITALIC_14));
497
- rb_define_const(rb_mIup, "TIMES_BOLD_14", rb_str_new2(IUP_TIMES_BOLD_14));
498
246
 
499
247
  rb_define_const(rb_mIup, "ICTL_MOUSEMOVE_CB", rb_str_new2(ICTL_MOUSEMOVE_CB));
500
248
  rb_define_const(rb_mIup, "ICTL_BUTTON_PRESS_CB", rb_str_new2(ICTL_BUTTON_PRESS_CB));
@@ -516,25 +264,6 @@ DLLEXPORT void Init_iup()
516
264
 
517
265
  rb_define_module_function(rb_mIup, "GetParam", rb_IupGetParam, -1);
518
266
 
519
- rb_define_const(rb_mIup, "BUFFER", rb_str_new2(IUP_BUFFER));
520
- rb_define_const(rb_mIup, "STEREO", rb_str_new2(IUP_STEREO));
521
- rb_define_const(rb_mIup, "BUFFER_SIZE", rb_str_new2(IUP_BUFFER_SIZE));
522
- rb_define_const(rb_mIup, "RED_SIZE", rb_str_new2(IUP_RED_SIZE));
523
- rb_define_const(rb_mIup, "GREEN_SIZE", rb_str_new2(IUP_GREEN_SIZE));
524
- rb_define_const(rb_mIup, "BLUE_SIZE", rb_str_new2(IUP_BLUE_SIZE));
525
- rb_define_const(rb_mIup, "ALPHA_SIZE", rb_str_new2(IUP_ALPHA_SIZE));
526
- rb_define_const(rb_mIup, "DEPTH_SIZE", rb_str_new2(IUP_DEPTH_SIZE));
527
- rb_define_const(rb_mIup, "STENCIL_SIZE", rb_str_new2(IUP_STENCIL_SIZE));
528
- rb_define_const(rb_mIup, "ACCUM_RED_SIZE", rb_str_new2(IUP_ACCUM_RED_SIZE));
529
- rb_define_const(rb_mIup, "ACCUM_GREEN_SIZE", rb_str_new2(IUP_ACCUM_GREEN_SIZE));
530
- rb_define_const(rb_mIup, "ACCUM_BLUE_SIZE", rb_str_new2(IUP_ACCUM_BLUE_SIZE));
531
- rb_define_const(rb_mIup, "ACCUM_ALPHA_SIZE", rb_str_new2(IUP_ACCUM_ALPHA_SIZE));
532
- rb_define_const(rb_mIup, "DOUBLE", rb_str_new2(IUP_DOUBLE));
533
- rb_define_const(rb_mIup, "SINGLE", rb_str_new2(IUP_SINGLE));
534
- rb_define_const(rb_mIup, "INDEX", rb_str_new2(IUP_INDEX));
535
- rb_define_const(rb_mIup, "RGBA", rb_str_new2(IUP_RGBA));
536
- rb_define_const(rb_mIup, "YES", rb_str_new2(IUP_YES));
537
- rb_define_const(rb_mIup, "NO", rb_str_new2(IUP_NO));
538
267
  rb_define_module_function(rb_mIup, "GLCanvasOpen", rb_IupGLCanvasOpen, 0);
539
268
  rb_define_module_function(rb_mIup, "GLCanvas", rb_IupGLCanvas, -1);
540
269
  rb_define_module_function(rb_mIup, "GLMakeCurrent", rb_IupGLMakeCurrent, 1);
@@ -818,39 +547,6 @@ DLLEXPORT void Init_iup()
818
547
  rb_define_method(rb_cIupMatrix, "MatGetAttribute", rb_IupMatGetAttribute, 3);
819
548
  rb_define_method(rb_cIupMatrix, "MatGetInt", rb_IupMatGetInt, 3);
820
549
  rb_define_method(rb_cIupMatrix, "MatGetFloat", rb_IupMatGetFloat, 3);
821
- rb_define_const(rb_mIup, "ENTERITEM_CB", rb_str_new2(IUP_ENTERITEM_CB));
822
- rb_define_const(rb_mIup, "LEAVEITEM_CB", rb_str_new2(IUP_LEAVEITEM_CB));
823
- rb_define_const(rb_mIup, "EDITION_CB", rb_str_new2(IUP_EDITION_CB));
824
- rb_define_const(rb_mIup, "CLICK_CB", rb_str_new2(IUP_CLICK_CB));
825
- rb_define_const(rb_mIup, "DROP_CB", rb_str_new2(IUP_DROP_CB));
826
- rb_define_const(rb_mIup, "DROPSELECT_CB", rb_str_new2(IUP_DROPSELECT_CB));
827
- rb_define_const(rb_mIup, "DROPCHECK_CB", rb_str_new2(IUP_DROPCHECK_CB));
828
- rb_define_const(rb_mIup, "VALUE_CB", rb_str_new2(IUP_VALUE_CB));
829
- rb_define_const(rb_mIup, "VALUE_EDIT_CB", rb_str_new2(IUP_VALUE_EDIT_CB));
830
- rb_define_const(rb_mIup, "FIELD_CB", rb_str_new2(IUP_FIELD_CB));
831
- rb_define_const(rb_mIup, "RESIZEMATRIX", rb_str_new2(IUP_RESIZEMATRIX));
832
- rb_define_const(rb_mIup, "ADDLIN", rb_str_new2(IUP_ADDLIN));
833
- rb_define_const(rb_mIup, "ADDCOL", rb_str_new2(IUP_ADDCOL));
834
- rb_define_const(rb_mIup, "DELLIN", rb_str_new2(IUP_DELLIN));
835
- rb_define_const(rb_mIup, "DELCOL", rb_str_new2(IUP_DELCOL));
836
- rb_define_const(rb_mIup, "NUMLIN", rb_str_new2(IUP_NUMLIN));
837
- rb_define_const(rb_mIup, "NUMCOL", rb_str_new2(IUP_NUMCOL));
838
- rb_define_const(rb_mIup, "NUMLIN_VISIBLE", rb_str_new2(IUP_NUMLIN_VISIBLE));
839
- rb_define_const(rb_mIup, "NUMCOL_VISIBLE", rb_str_new2(IUP_NUMCOL_VISIBLE));
840
- rb_define_const(rb_mIup, "MARKED", rb_str_new2(IUP_MARKED));
841
- rb_define_const(rb_mIup, "WIDTHDEF", rb_str_new2(IUP_WIDTHDEF));
842
- rb_define_const(rb_mIup, "HEIGHTDEF", rb_str_new2(IUP_HEIGHTDEF));
843
- rb_define_const(rb_mIup, "AREA", rb_str_new2(IUP_AREA));
844
- rb_define_const(rb_mIup, "MARK_MODE", rb_str_new2(IUP_MARK_MODE));
845
- rb_define_const(rb_mIup, "LIN", rb_str_new2(IUP_LIN));
846
- rb_define_const(rb_mIup, "COL", rb_str_new2(IUP_COL));
847
- rb_define_const(rb_mIup, "LINCOL", rb_str_new2(IUP_LINCOL));
848
- rb_define_const(rb_mIup, "CELL", rb_str_new2(IUP_CELL));
849
- rb_define_const(rb_mIup, "EDIT_MODE", rb_str_new2(IUP_EDIT_MODE));
850
- rb_define_const(rb_mIup, "FOCUS_CELL", rb_str_new2(IUP_FOCUS_CELL));
851
- rb_define_const(rb_mIup, "REDRAW", rb_str_new2(IUP_REDRAW));
852
- rb_define_const(rb_mIup, "PREVIOUSVALUE", rb_str_new2(IUP_PREVIOUSVALUE));
853
- rb_define_const(rb_mIup, "MOUSEMOVE_CB", rb_str_new2(IUP_MOUSEMOVE_CB));
854
550
 
855
551
  //rb_define_module_function(rb_mIup, "OleControl", rb_IupOleControl, 1);
856
552
  //rb_define_module_function(rb_mIup, "OleControlOpen", rb_IupOleControlOpen, 0);
@@ -887,49 +583,6 @@ DLLEXPORT void Init_iup()
887
583
  rb_define_method(rb_mIup, "TreeGetAttribute", rb_IupTreeGetAttribute, 2);
888
584
  rb_define_method(rb_mIup, "TreeGetInt", rb_IupTreeGetInt, 2);
889
585
  rb_define_method(rb_mIup, "TreeGetFloat", rb_IupTreeGetFloat, 2);
890
- rb_define_const(rb_mIup, "ADDLEAF", rb_str_new2(IUP_ADDLEAF));
891
- rb_define_const(rb_mIup, "ADDBRANCH", rb_str_new2(IUP_ADDBRANCH));
892
- rb_define_const(rb_mIup, "DELNODE", rb_str_new2(IUP_DELNODE));
893
- rb_define_const(rb_mIup, "IMAGELEAF", rb_str_new2(IUP_IMAGELEAF));
894
- rb_define_const(rb_mIup, "IMAGEBRANCHCOLLAPSED", rb_str_new2(IUP_IMAGEBRANCHCOLLAPSED));
895
- rb_define_const(rb_mIup, "IMAGEBRANCHEXPANDED", rb_str_new2(IUP_IMAGEBRANCHEXPANDED));
896
- rb_define_const(rb_mIup, "IMAGEEXPANDED", rb_str_new2(IUP_IMAGEEXPANDED));
897
- rb_define_const(rb_mIup, "KIND", rb_str_new2(IUP_KIND));
898
- rb_define_const(rb_mIup, "PARENT", rb_str_new2(IUP_PARENT));
899
- rb_define_const(rb_mIup, "DEPTH", rb_str_new2(IUP_DEPTH));
900
- rb_define_const(rb_mIup, "ADDEXPANDED", rb_str_new2(IUP_ADDEXPANDED));
901
- rb_define_const(rb_mIup, "CTRL", rb_str_new2(IUP_CTRL));
902
- rb_define_const(rb_mIup, "SHIFT", rb_str_new2(IUP_SHIFT));
903
- rb_define_const(rb_mIup, "STATE", rb_str_new2(IUP_STATE));
904
- rb_define_const(rb_mIup, "STARTING", rb_str_new2(IUP_STARTING));
905
- rb_define_const(rb_mIup, "LEAF", rb_str_new2(IUP_LEAF));
906
- rb_define_const(rb_mIup, "BRANCH", rb_str_new2(IUP_BRANCH));
907
- rb_define_const(rb_mIup, "SELECTED", rb_str_new2(IUP_SELECTED));
908
- rb_define_const(rb_mIup, "CHILDREN", rb_str_new2(IUP_CHILDREN));
909
- rb_define_const(rb_mIup, "ROOT", rb_str_new2(IUP_ROOT));
910
- rb_define_const(rb_mIup, "LAST", rb_str_new2(IUP_LAST));
911
- rb_define_const(rb_mIup, "PGUP", rb_str_new2(IUP_PGUP));
912
- rb_define_const(rb_mIup, "PGDN", rb_str_new2(IUP_PGDN));
913
- rb_define_const(rb_mIup, "NEXT", rb_str_new2(IUP_NEXT));
914
- rb_define_const(rb_mIup, "PREVIOUS", rb_str_new2(IUP_PREVIOUS));
915
- rb_define_const(rb_mIup, "INVERT", rb_str_new2(IUP_INVERT));
916
- rb_define_const(rb_mIup, "BLOCK", rb_str_new2(IUP_BLOCK));
917
- rb_define_const(rb_mIup, "CLEARALL", rb_str_new2(IUP_CLEARALL));
918
- rb_define_const(rb_mIup, "MARKALL", rb_str_new2(IUP_MARKALL));
919
- rb_define_const(rb_mIup, "INVERTALL", rb_str_new2(IUP_INVERTALL));
920
- rb_define_const(rb_mIup, "COLLAPSED", rb_str_new2(IUP_COLLAPSED));
921
- rb_define_const(rb_mIup, "EXPANDED", rb_str_new2(IUP_EXPANDED));
922
- rb_define_const(rb_mIup, "SELECTION_CB", rb_str_new2(IUP_SELECTION_CB));
923
- rb_define_const(rb_mIup, "BRANCHOPEN_CB", rb_str_new2(IUP_BRANCHOPEN_CB));
924
- rb_define_const(rb_mIup, "BRANCHCLOSE_CB", rb_str_new2(IUP_BRANCHCLOSE_CB));
925
- rb_define_const(rb_mIup, "RIGHTCLICK_CB", rb_str_new2(IUP_RIGHTCLICK_CB));
926
- rb_define_const(rb_mIup, "EXECUTELEAF_CB", rb_str_new2(IUP_EXECUTELEAF_CB));
927
- rb_define_const(rb_mIup, "RENAMENODE_CB", rb_str_new2(IUP_RENAMENODE_CB));
928
- rb_define_const(rb_mIup, "IMGLEAF", INT2FIX(IUP_IMGLEAF));
929
- rb_define_const(rb_mIup, "IMGCOLLAPSED", INT2FIX(IUP_IMGCOLLAPSED));
930
- rb_define_const(rb_mIup, "IMGEXPANDED", INT2FIX(IUP_IMGEXPANDED));
931
- rb_define_const(rb_mIup, "IMGBLANK", INT2FIX(IUP_IMGBLANK));
932
- rb_define_const(rb_mIup, "IMGPAPER", INT2FIX(IUP_IMGPAPER));
933
586
 
934
587
  rb_define_const(rb_mIup, "ICTL_SHOWTICKS", rb_str_new2(ICTL_SHOWTICKS));
935
588
  rb_define_module_function(rb_mIup, "Val", rb_IupVal, -1);
@@ -1254,7 +907,6 @@ DLLEXPORT void Init_iup()
1254
907
  rb_define_module_function(rb_mCd, "ContextPDF", rb_cdContextPDF, 0);
1255
908
 
1256
909
  rb_IupOpen(rb_mIup);
1257
- IupControlsOpen();
1258
910
  IupSetLanguage(IUP_ENGLISH);
1259
911
 
1260
912
  atexit(exit_handler);