ruby-iup 0.0.1-i386-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. data/doc/README +10 -0
  2. data/doc/build_install.txt +77 -0
  3. data/examples/README +16 -0
  4. data/examples/ctrl/cbox.rb +221 -0
  5. data/examples/ctrl/checkboard.rb +33 -0
  6. data/examples/ctrl/degrade.rb +73 -0
  7. data/examples/ctrl/example1.rb +53 -0
  8. data/examples/ctrl/example2.rb +39 -0
  9. data/examples/ctrl/iupcolorbar.rb +95 -0
  10. data/examples/ctrl/iupcolorbrowser.rb +45 -0
  11. data/examples/ctrl/iupdial.rb +117 -0
  12. data/examples/ctrl/iupgauge.rb +242 -0
  13. data/examples/ctrl/iupgetcolor.rb +8 -0
  14. data/examples/ctrl/iupgetparam.rb +62 -0
  15. data/examples/ctrl/iupglcanvas.rb +172 -0
  16. data/examples/ctrl/iupmask.rb +15 -0
  17. data/examples/ctrl/iupmatrix.rb +39 -0
  18. data/examples/ctrl/iupplot2.rb +603 -0
  19. data/examples/ctrl/iuptabs.rb +22 -0
  20. data/examples/ctrl/iuptree.rb +190 -0
  21. data/examples/ctrl/iupval.rb +71 -0
  22. data/examples/ctrl/numbering.rb +46 -0
  23. data/examples/ctrl/sample.rb +166 -0
  24. data/examples/dlg/iupalarm.rb +14 -0
  25. data/examples/dlg/iupfiledlg.rb +19 -0
  26. data/examples/dlg/iupgetfile.rb +19 -0
  27. data/examples/dlg/iuplistdialog.rb +26 -0
  28. data/examples/dlg/iupmessage.rb +5 -0
  29. data/examples/dlg/iupscanf.rb +17 -0
  30. data/examples/elem/iupbutton.rb +197 -0
  31. data/examples/elem/iupcanvas.rb +27 -0
  32. data/examples/elem/iupcanvas2.rb +113 -0
  33. data/examples/elem/iupcanvas3.rb +62 -0
  34. data/examples/elem/iupdialog.rb +71 -0
  35. data/examples/elem/iupdialog2.rb +25 -0
  36. data/examples/elem/iupfill.rb +51 -0
  37. data/examples/elem/iupframe.rb +25 -0
  38. data/examples/elem/iuphbox.rb +68 -0
  39. data/examples/elem/iupimage.rb +113 -0
  40. data/examples/elem/iupitem.rb +60 -0
  41. data/examples/elem/iuplabel.rb +57 -0
  42. data/examples/elem/iuplist.rb +41 -0
  43. data/examples/elem/iuplist2.rb +125 -0
  44. data/examples/elem/iupmenu.rb +32 -0
  45. data/examples/elem/iupmultiline.rb +24 -0
  46. data/examples/elem/iupmultiline2.rb +156 -0
  47. data/examples/elem/iupradio.rb +32 -0
  48. data/examples/elem/iupseparator.rb +81 -0
  49. data/examples/elem/iupsubmenu.rb +85 -0
  50. data/examples/elem/iuptext.rb +61 -0
  51. data/examples/elem/iuptimer.rb +36 -0
  52. data/examples/elem/iuptoggle.rb +110 -0
  53. data/examples/elem/iupvbox.rb +87 -0
  54. data/examples/elem/iupzbox.rb +60 -0
  55. data/examples/elem/mdisample.rb +376 -0
  56. data/examples/elem/progressbar.rb +294 -0
  57. data/examples/elem/scrollbar.rb +66 -0
  58. data/examples/elem/tray.rb +90 -0
  59. data/examples/func/iupgetattribute.rb +32 -0
  60. data/examples/func/iupidle.rb +48 -0
  61. data/ext/extconf.rb +27 -0
  62. data/ext/iup-win32/cd.dll +0 -0
  63. data/ext/iup-win32/cd.lib +0 -0
  64. data/ext/iup-win32/cdcontextplus.dll +0 -0
  65. data/ext/iup-win32/cdcontextplus.lib +0 -0
  66. data/ext/iup-win32/cdlua51.lib +0 -0
  67. data/ext/iup-win32/cdluacontextplus51.lib +0 -0
  68. data/ext/iup-win32/cdluaim51.lib +0 -0
  69. data/ext/iup-win32/cdluapdf51.lib +0 -0
  70. data/ext/iup-win32/cdpdf.dll +0 -0
  71. data/ext/iup-win32/cdpdf.lib +0 -0
  72. data/ext/iup-win32/freetype6.dll +0 -0
  73. data/ext/iup-win32/freetype6.lib +0 -0
  74. data/ext/iup-win32/im.dll +0 -0
  75. data/ext/iup-win32/im_avi.dll +0 -0
  76. data/ext/iup-win32/im_capture.dll +0 -0
  77. data/ext/iup-win32/im_ecw.dll +0 -0
  78. data/ext/iup-win32/im_fftw.dll +0 -0
  79. data/ext/iup-win32/im_jp2.dll +0 -0
  80. data/ext/iup-win32/im_process.dll +0 -0
  81. data/ext/iup-win32/im_wmv.dll +0 -0
  82. data/ext/iup-win32/iup.dll +0 -0
  83. data/ext/iup-win32/iup.lib +0 -0
  84. data/ext/iup-win32/iup_pplot.dll +0 -0
  85. data/ext/iup-win32/iup_pplot.lib +0 -0
  86. data/ext/iup-win32/iupcd.dll +0 -0
  87. data/ext/iup-win32/iupcd.lib +0 -0
  88. data/ext/iup-win32/iupcontrols.dll +0 -0
  89. data/ext/iup-win32/iupcontrols.lib +0 -0
  90. data/ext/iup-win32/iupgl.dll +0 -0
  91. data/ext/iup-win32/iupgl.lib +0 -0
  92. data/ext/iup-win32/iupim.dll +0 -0
  93. data/ext/iup-win32/iupim.lib +0 -0
  94. data/ext/iup-win32/iupimglib.dll +0 -0
  95. data/ext/iup-win32/iupimglib.lib +0 -0
  96. data/ext/iup-win32/iuplua51.lib +0 -0
  97. data/ext/iup-win32/iuplua_pplot51.lib +0 -0
  98. data/ext/iup-win32/iupluacd51.lib +0 -0
  99. data/ext/iup-win32/iupluacontrols51.lib +0 -0
  100. data/ext/iup-win32/iupluagl51.lib +0 -0
  101. data/ext/iup-win32/iupluaim51.lib +0 -0
  102. data/ext/iup-win32/iupluaimglib51.lib +0 -0
  103. data/ext/iup-win32/iupluaole51.lib +0 -0
  104. data/ext/iup-win32/iupole.dll +0 -0
  105. data/ext/iup-win32/iupole.lib +0 -0
  106. data/ext/iup-win32/iupstub.lib +0 -0
  107. data/ext/iup-win32/pdflib.dll +0 -0
  108. data/ext/iup-win32/pdflib.lib +0 -0
  109. data/ext/iup.c +1261 -0
  110. data/ext/mkrf_conf.rb +72 -0
  111. data/ext/rb_cd.h +1525 -0
  112. data/ext/rb_iup.h +2446 -0
  113. data/ext/rb_iup_pplot.h +129 -0
  114. data/ext/rb_iupcb.h +13 -0
  115. data/ext/rb_iupcbox.h +40 -0
  116. data/ext/rb_iupcells.h +15 -0
  117. data/ext/rb_iupcolorbar.h +17 -0
  118. data/ext/rb_iupcompat.h +237 -0
  119. data/ext/rb_iupcontrols.h +28 -0
  120. data/ext/rb_iupdef.h +3 -0
  121. data/ext/rb_iupdial.h +24 -0
  122. data/ext/rb_iupgauge.h +15 -0
  123. data/ext/rb_iupgc.h +18 -0
  124. data/ext/rb_iupgetparam.h +72 -0
  125. data/ext/rb_iupgl.h +58 -0
  126. data/ext/rb_iupim.h +25 -0
  127. data/ext/rb_iupmask.h +189 -0
  128. data/ext/rb_iupmatrix.h +80 -0
  129. data/ext/rb_iupole.h +24 -0
  130. data/ext/rb_iupsbox.h +23 -0
  131. data/ext/rb_iupspeech.h +25 -0
  132. data/ext/rb_iupspin.h +29 -0
  133. data/ext/rb_iuptabs.h +29 -0
  134. data/ext/rb_iuptree.h +94 -0
  135. data/ext/rb_iupval.h +24 -0
  136. data/lib/README +1 -0
  137. data/lib/iup.so +0 -0
  138. metadata +187 -0
@@ -0,0 +1,66 @@
1
+ require 'rubygems'
2
+ require 'iup'
3
+
4
+
5
+ cdcanvas = nil
6
+
7
+ action = lambda do |ih, posx, posy|
8
+
9
+ iposx = posx.to_i
10
+ iposy = posy.to_i
11
+ # invert scroll reference (YMAX - DY - POSY)
12
+ iposy = 399 - ih.dy.to_i - iposy
13
+
14
+ cdcanvas.CanvasClear()
15
+
16
+ cdcanvas.CanvasForeground(Cd::RED)
17
+ cdcanvas.CanvasLine(0-iposx, 0-iposy, 599-iposx, 399-iposy)
18
+ cdcanvas.CanvasLine(0-iposx, 399-iposy, 599-iposx, 0-iposy)
19
+
20
+ Iup::DEFAULT
21
+ end
22
+
23
+ scroll_cb = lambda do |ih, op, posx, posy|
24
+ action.call(ih, posx, posy)
25
+ Iup::DEFAULT
26
+ end
27
+
28
+ resize_cb = lambda do |ih, w, h|
29
+ return Iup::DEFAULT if cdcanvas==nil
30
+ # update CD canvas size
31
+ cdcanvas.CanvasActivate()
32
+
33
+ # update page size, it is always the client size of the canvas
34
+ ih.dx = w
35
+ ih.dy = h
36
+
37
+ # refresh scroolbar in IUP 2.x
38
+ ih.posx = ih.posx
39
+ ih.posy = ih.posy
40
+ return Iup::DEFAULT
41
+ end
42
+
43
+ canvas = Iup.Canvas()
44
+ canvas.rastersize = "300x200" # initial size
45
+ canvas.scrollbar = "YES"
46
+ canvas.xmax = 599
47
+ canvas.ymax = 399
48
+
49
+ canvas.scroll_cb = scroll_cb
50
+ canvas.resize_cb = resize_cb
51
+ canvas.action = action
52
+
53
+ dialog = Iup.Dialog(canvas)
54
+ dialog.title = "Scrollbar Test"
55
+
56
+ dialog.Map()
57
+ cdcanvas = Cd.CreateCanvas(Cd.CD_IUP, canvas)
58
+ canvas.rastersize = nil # release the minimum limitation
59
+
60
+ dialog.ShowXY(Iup::CENTER,Iup::CENTER)
61
+
62
+ Iup.MainLoop()
63
+
64
+ cdcanvas.KillCanvas()
65
+ dialog.Destroy()
66
+
@@ -0,0 +1,90 @@
1
+ require 'rubygems'
2
+ require 'iup'
3
+
4
+ img = [
5
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
8
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,11, 5, 5, 5, 5,12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
9
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,10, 6, 5, 3, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
10
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 5, 1, 1, 3, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
11
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 5, 1, 1, 3, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
12
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 9, 9, 1, 1, 3, 7, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
13
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 6, 1, 1, 1, 1, 2, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
14
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 6, 1, 1, 1, 1, 4, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
15
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 6, 1, 1, 1, 1, 4, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
16
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,11, 2, 7, 5, 4, 4, 4, 4, 4, 4,11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
17
+ 1, 1, 1, 1, 1, 1, 7, 4, 4, 4, 6, 3, 3, 7, 5, 5, 7, 7, 4, 4, 4, 4,10,10,10,10,10, 1, 1, 1, 1, 1,
18
+ 1, 1, 1, 1, 4, 4, 4, 9, 9, 6, 5, 4, 8, 7, 5, 1, 1, 1, 1, 7, 5, 6, 3, 3, 3, 3, 4,10, 7, 9, 1, 1,
19
+ 1, 1, 1, 4, 4, 6, 6, 8, 1, 1, 1, 1, 1,10, 5, 1, 1, 1, 1,10, 6, 1, 1, 1, 1, 1, 3, 3, 7, 7, 7, 1,
20
+ 1, 1, 2, 4, 4, 5, 1, 1, 1, 1, 1, 1, 1, 4, 5, 1, 1, 1, 1, 7, 9, 1, 1, 1, 1, 1, 1, 1, 7, 7, 5, 1,
21
+ 1, 1, 1, 3, 4, 4, 4, 1, 1, 1, 1, 1, 1, 4, 5, 1, 1, 1, 1, 7, 6, 1, 1, 1, 1, 1, 7, 7, 7, 9, 7, 1,
22
+ 1, 1, 1, 1, 3, 3, 3, 4,10,10,10,11, 1, 4, 5, 1, 1, 1, 1, 5, 6,15, 5, 7, 7, 7, 9, 6, 5, 5, 1, 1,
23
+ 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 2, 4, 7, 5, 5, 5, 5, 6, 9,14,14, 6, 5, 5, 5, 7,12, 1, 1, 1, 1,
24
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 3, 3, 2, 2, 2, 4, 4, 2, 2,10,16, 1, 1, 1, 1, 1, 1, 1, 1, 1,
25
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 1, 1, 1, 1, 6, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
26
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 1, 1, 1, 1, 6, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
27
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 1, 1, 1, 1, 6, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
28
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 7, 9, 1, 1, 4, 9, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
29
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,12, 3, 5, 1, 1, 5, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
30
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 5, 1, 1, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
31
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 5, 5, 4, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
32
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 3, 5, 7, 7,13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
33
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
34
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
35
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
36
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
37
+
38
+
39
+
40
+
41
+ tecgraf = Iup.Image(32,32,img)
42
+ tecgraf["1"] = "BGCOLOR"
43
+ tecgraf["2"] = "079 086 099"
44
+ tecgraf["3"] = "040 045 053"
45
+ tecgraf["4"] = "104 113 129"
46
+ tecgraf["5"] = "136 147 170"
47
+ tecgraf["6"] = "155 164 179"
48
+ tecgraf["7"] = "121 136 167"
49
+ tecgraf["8"] = "239 239 243"
50
+ tecgraf["9"] = "176 190 214"
51
+ tecgraf["10"] = "127 133 143"
52
+ tecgraf["11"] = "207 209 214"
53
+ tecgraf["12"] = "247 255 255"
54
+ tecgraf["13"] = "244 247 249"
55
+ tecgraf["14"] = "212 217 225"
56
+ tecgraf["15"] = "215 226 241"
57
+ tecgraf["16"] = "231 237 245"
58
+
59
+ dg = Iup.Dialog(Iup.Label("Tray example"))
60
+ dg.title = "Tray"
61
+ dg.tray = "YES"
62
+ dg.traytip = "This is a tip at tray"
63
+ dg.trayimage = tecgraf
64
+ dg.Show()
65
+
66
+ action1 = lambda do |ih|
67
+ dg.Show()
68
+ end
69
+
70
+ action2 = lambda do |ih|
71
+ dg.tray = "NO"
72
+ dg.Hide()
73
+ Iup::CLOSE
74
+ end
75
+
76
+ trayclick_cb = lambda do |ih, b, press, dclick|
77
+ if b == 1 && press!=0
78
+ item_show = Iup.Item(:title=>"Show",:action=>action1)
79
+ item_exit = Iup.Item(:title=>"Exit",:action=>action2)
80
+ menu = Iup.Menu([item_show, item_exit])
81
+ menu.Popup(Iup::MOUSEPOS, Iup::MOUSEPOS)
82
+ end
83
+ Iup::DEFAULT
84
+ end
85
+
86
+ dg.hidetaskbar = "YES"
87
+ dg.trayclick_cb = trayclick_cb
88
+
89
+ Iup.MainLoop()
90
+
@@ -0,0 +1,32 @@
1
+ require 'rubygems'
2
+ require 'iup'
3
+
4
+ acao_numero = lambda do |ih, c, new_value|
5
+ valid_character = "0123456789.+-Ee"
6
+
7
+ if(c == Iup::K_CR) # replaces TAB for ENTER */
8
+ return Iup::K_TAB
9
+ elsif(c<256 && valid_character[c.chr]) # c is a valid character */
10
+ return Iup::DEFAULT
11
+ elsif(c<20 || c>=256) # c is a control character(TAB, BACKSPACE, ...) */
12
+ return Iup::DEFAULT
13
+ end
14
+ return Iup::IGNORE
15
+ end
16
+
17
+ campo = Iup.Text("acao_numero") # creates TEXT field */
18
+ campo.action = acao_numero # registers callback */
19
+ campo.value = 1.0 # defines initial value */
20
+
21
+ mensagem = Iup.Label("Entre a Number: ") # creates message */
22
+ prompt = Iup.Hbox([mensagem, campo]) # creates prompt */
23
+
24
+ dlg = Iup.Dialog(prompt)
25
+ dlg.Show() # displays and creates dialog */
26
+ Iup.MainLoop() # interacts with user */
27
+
28
+ puts("Integer Number: %d" % campo.GetInt("VALUE")) # prints the integer number entered by the user */
29
+ puts("Real Number: %g" % campo.GetFloat("VALUE")) # prints the real number entered by the user */
30
+ puts("Text: %s" % campo.value) # prints the text entered by the user */
31
+
32
+ dlg.Destroy()
@@ -0,0 +1,48 @@
1
+ require 'rubygems'
2
+
3
+ require 'iup'
4
+
5
+ calc = {}
6
+
7
+
8
+ text = Iup.Text(:size=>"100x20")
9
+
10
+ calc_end = lambda do
11
+ Iup.SetIdle(nil)
12
+ Iup::DEFAULT
13
+ end
14
+
15
+ idle_function = lambda do
16
+ # Iup::TITLE value for IUP */
17
+ sleep 0.01
18
+ calc[:passo]+= 1 # next iteration step */
19
+ calc[:fatorial] *= calc[:passo] # executes one computation step */
20
+
21
+ # feedback to the user on the current step and the last computed value */
22
+ str = "%d -> %10.4g" % [calc[:passo],calc[:fatorial]]
23
+ text.value = str
24
+
25
+ if(calc[:passo] == 100) # computation ends when step = 100 */
26
+ calc_end.call
27
+ end
28
+ Iup::DEFAULT
29
+ end
30
+
31
+ calc_begin = lambda do |ih|
32
+ calc[:passo] = 0
33
+ calc[:fatorial] = 1.0
34
+ Iup.SetIdle(idle_function)
35
+ text.value = "Computing..."
36
+ Iup::DEFAULT
37
+ end
38
+
39
+ bt = Iup.Button(:title=>"Calcular",:action=>calc_begin)
40
+
41
+ dg = Iup.Dialog(Iup.Vbox([text, bt]))
42
+
43
+ dg.ShowXY(Iup::CENTER, Iup::CENTER)
44
+
45
+ Iup.MainLoop()
46
+ dg.Destroy()
47
+
48
+
data/ext/extconf.rb ADDED
@@ -0,0 +1,27 @@
1
+ # extconf.rb for ruby-iup extension module.
2
+ #
3
+ # Copyright (C) 2008 Park Heesob <jmg3000@gmail.com>
4
+ #
5
+ # This program is distributed under the terms of the MIT license.
6
+ # See the included COPYRIGHT file for the terms of this license.
7
+ #
8
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
9
+ # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
10
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
11
+ # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
12
+ # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
13
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
14
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+
16
+ require 'ftools'
17
+
18
+ if RUBY_PLATFORM =~ /win32/
19
+ ldir = "./iup-win32"
20
+ Dir[ldir+"/*.dll"].each do |f|
21
+ File.install(f,Config::CONFIG['bindir'],0644,true)
22
+ end
23
+ end
24
+ File.open("nmake.bat","w")
25
+ File.open("Makefile","w") {|f|
26
+ f.puts("install:")
27
+ }
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
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/ext/iup.c ADDED
@@ -0,0 +1,1261 @@
1
+ #include <ruby.h>
2
+ #include <ctype.h>
3
+ #include "rb_iup.h"
4
+
5
+ #include "rb_iupcb.h"
6
+ #include "rb_iupcbox.h"
7
+ #include "rb_iupcells.h"
8
+ #include "rb_iupcolorbar.h"
9
+ #include "rb_iupcontrols.h"
10
+ #include "rb_iupdial.h"
11
+ #include "rb_iupgauge.h"
12
+ #include "rb_iupgc.h"
13
+ #include "rb_iupgetparam.h"
14
+ #include "rb_iupgl.h"
15
+ #include "rb_iupim.h"
16
+ #include "rb_iupmask.h"
17
+ #include "rb_iupmatrix.h"
18
+ #include "rb_iupsbox.h"
19
+ #include "rb_iupspeech.h"
20
+ #include "rb_iupspin.h"
21
+ #include "rb_iuptabs.h"
22
+ #include "rb_iuptree.h"
23
+ #include "rb_iupval.h"
24
+ #include "rb_iup_pplot.h"
25
+ #include "rb_cd.h"
26
+
27
+ #ifdef WIN32
28
+ #define DLLEXPORT __declspec(dllexport)
29
+ #else
30
+ #define DLLEXPORT
31
+ #endif
32
+
33
+ DLLEXPORT void Init_iup()
34
+ {
35
+ VALUE VERSION = rb_str_new2("0.0.1");
36
+ rb_mIup = rb_define_module("Iup");
37
+ rb_mCd = rb_define_module("Cd");
38
+ rb_define_const(rb_mIup, "RUBY_IUP_VERSION", VERSION);
39
+
40
+ rb_eIupError = rb_define_class_under(rb_mIup, "IupError", rb_eStandardError);
41
+
42
+ rb_cIupNode = rb_define_class_under(rb_mIup, "Node", rb_cObject);
43
+ rb_cIupFileDlg = rb_define_class_under(rb_mIup, "FileDlg", rb_cIupNode);
44
+ rb_cIupImage = rb_define_class_under(rb_mIup, "Image", rb_cIupNode);
45
+ rb_cIupButton = rb_define_class_under(rb_mIup, "Button", rb_cIupNode);
46
+ rb_cIupCanvas = rb_define_class_under(rb_mIup, "Canvas", rb_cIupNode);
47
+ rb_cIupDialog = rb_define_class_under(rb_mIup, "Dialog", rb_cIupNode);
48
+ rb_cIupFill = rb_define_class_under(rb_mIup, "Fill", rb_cIupNode);
49
+ rb_cIupFrame = rb_define_class_under(rb_mIup, "Frame", rb_cIupNode);
50
+ rb_cIupHbox = rb_define_class_under(rb_mIup, "Hbox", rb_cIupNode);
51
+ rb_cIupItem = rb_define_class_under(rb_mIup, "Item", rb_cIupNode);
52
+ rb_cIupSeparator = rb_define_class_under(rb_mIup, "Separator", rb_cIupNode);
53
+ rb_cIupSubmenu = rb_define_class_under(rb_mIup, "Submenu", rb_cIupNode);
54
+ rb_cIupLabel = rb_define_class_under(rb_mIup, "Label", rb_cIupNode);
55
+ rb_cIupList = rb_define_class_under(rb_mIup, "List", rb_cIupNode);
56
+ rb_cIupMenu = rb_define_class_under(rb_mIup, "Menu", rb_cIupNode);
57
+ rb_cIupRadio = rb_define_class_under(rb_mIup, "Radio", rb_cIupNode);
58
+ rb_cIupText = rb_define_class_under(rb_mIup, "Text", rb_cIupNode);
59
+ rb_cIupToggle = rb_define_class_under(rb_mIup, "Toggle", rb_cIupNode);
60
+ rb_cIupVbox = rb_define_class_under(rb_mIup, "Vbox", rb_cIupNode);
61
+ rb_cIupZbox = rb_define_class_under(rb_mIup, "Zbox", rb_cIupNode);
62
+ rb_cIupMultiLine = rb_define_class_under(rb_mIup, "MultiLine", rb_cIupNode);
63
+ rb_cIupUser = rb_define_class_under(rb_mIup, "User", rb_cIupNode);
64
+ rb_cIupControl = rb_define_class_under(rb_mIup, "Control", rb_cIupNode);
65
+ rb_cIupTree = rb_define_class_under(rb_mIup, "Tree", rb_cIupNode);
66
+ rb_cIupTabs = rb_define_class_under(rb_mIup, "Tabs", rb_cIupCanvas);
67
+ rb_cIupGLCanvas = rb_define_class_under(rb_mIup, "GLCanvas", rb_cIupCanvas);
68
+ rb_cIupSpin = rb_define_class_under(rb_mIup, "Spin", rb_cIupNode);
69
+ rb_cIupSpinbox = rb_define_class_under(rb_mIup, "Spinbox", rb_cIupNode);
70
+ rb_cIupSbox = rb_define_class_under(rb_mIup, "Sbox", rb_cIupNode);
71
+ rb_cIupCbox = rb_define_class_under(rb_mIup, "Cbox", rb_cIupNode);
72
+ rb_cIupMatrix = rb_define_class_under(rb_mIup, "Matrix", rb_cIupCanvas);
73
+ rb_cIupGauge = rb_define_class_under(rb_mIup, "Gauge", rb_cIupCanvas);
74
+ rb_cIupDial = rb_define_class_under(rb_mIup, "Dial", rb_cIupCanvas);
75
+ rb_cIupColorbar = rb_define_class_under(rb_mIup, "Colorbar", rb_cIupCanvas);
76
+ rb_cIupColorBrowser = rb_define_class_under(rb_mIup, "ColorBrowser", rb_cIupCanvas);
77
+ rb_cIupCells = rb_define_class_under(rb_mIup, "Cells", rb_cIupCanvas);
78
+ rb_cIupPPlot = rb_define_class_under(rb_mIup, "PPlot", rb_cIupCanvas);
79
+ rb_cIupVal = rb_define_class_under(rb_mIup, "Val", rb_cIupCanvas);
80
+ rb_cIupTimer = rb_define_class_under(rb_mIup, "Timer", rb_cIupNode);
81
+
82
+ rb_define_const(rb_mIup, "NAME", rb_str_new2(IUP_NAME));
83
+ rb_define_const(rb_mIup, "COPYRIGHT", rb_str_new2(IUP_COPYRIGHT));
84
+ rb_define_const(rb_mIup, "DESCRIPTION", rb_str_new2(IUP_DESCRIPTION));
85
+ rb_define_const(rb_mIup, "VERSION", rb_str_new2(IUP_VERSION));
86
+ rb_define_const(rb_mIup, "VERSION_DATE", rb_str_new2(IUP_VERSION_DATE));
87
+ rb_define_const(rb_mIup, "VERSION_NUMBER", INT2FIX(IUP_VERSION_NUMBER));
88
+
89
+ rb_cCdCanvas = rb_define_class_under(rb_mCd, "CdCanvas", rb_cObject);
90
+ rb_define_method(rb_cCdCanvas, "initialize", rb_cCdCanvas_initialize, 1);
91
+ rb_define_const(rb_mCd, "NAME", rb_str_new2(CD_NAME));
92
+ rb_define_const(rb_mCd, "COPYRIGHT", rb_str_new2(CD_COPYRIGHT));
93
+ rb_define_const(rb_mCd, "DESCRIPTION", rb_str_new2(CD_DESCRIPTION));
94
+ rb_define_const(rb_mCd, "VERSION", rb_str_new2(CD_VERSION));
95
+ rb_define_const(rb_mCd, "VERSION_DATE", rb_str_new2(CD_VERSION_DATE));
96
+ rb_define_const(rb_mCd, "VERSION_NUMBER", INT2FIX(CD_VERSION_NUMBER));
97
+
98
+ rb_define_attr(rb_cIupNode, "ihandle", 1, 0);
99
+ rb_define_attr(rb_cCdCanvas, "canvas", 1, 0);
100
+ rb_undef_method(rb_cIupNode, "type");
101
+ rb_define_method(rb_cIupNode, "method_missing", rb_method_missing, -1);
102
+ rb_define_method(rb_cIupNode, "[]", rb_IupGetAttribute, 1);
103
+ rb_define_method(rb_cIupNode, "[]=", rb_IupSetAttribute, 2);
104
+ rb_define_module_function(rb_mIup, "isxkey", rb_isxkey, 1);
105
+ rb_define_module_function(rb_mIup, "isshift", rb_isshift, 1);
106
+ rb_define_module_function(rb_mIup, "iscontrol", rb_iscontrol, 1);
107
+ rb_define_module_function(rb_mIup, "isbutton1", rb_isbutton1, 1);
108
+ rb_define_module_function(rb_mIup, "isbutton2", rb_isbutton2, 1);
109
+ rb_define_module_function(rb_mIup, "isbutton3", rb_isbutton3, 1);
110
+ rb_define_module_function(rb_mIup, "isdouble", rb_isdouble, 1);
111
+ rb_define_module_function(rb_mIup, "isalt", rb_isalt, 1);
112
+ rb_define_module_function(rb_mIup, "issys", rb_issys, 1);
113
+ rb_define_module_function(rb_mIup, "isbutton4", rb_isbutton4, 1);
114
+ rb_define_module_function(rb_mIup, "isbutton5", rb_isbutton5, 1);
115
+
116
+ rb_define_module_function(rb_mIup, "FileDlg", rb_IupFileDlg, -1);
117
+ rb_define_module_function(rb_mIup, "GetFile", rb_IupGetFile, 1);
118
+ rb_define_module_function(rb_mIup, "Message", rb_IupMessage, 2);
119
+ rb_define_module_function(rb_mIup, "Messagef", rb_IupMessagef, -1);
120
+ rb_define_module_function(rb_mIup, "Alarm", rb_IupAlarm, 5);
121
+ rb_define_module_function(rb_mIup, "Scanf", rb_IupScanf, -1);
122
+ rb_define_module_function(rb_mIup, "ListDialog", rb_IupListDialog, 8);
123
+ rb_define_module_function(rb_mIup, "GetText", rb_IupGetText, 2);
124
+ rb_define_module_function(rb_mIup, "Open", rb_IupOpen, 0);
125
+ rb_define_module_function(rb_mIup, "Close", rb_IupClose, 0);
126
+ rb_define_module_function(rb_mIup, "MainLoop", rb_IupMainLoop, 0);
127
+ rb_define_module_function(rb_mIup, "LoopStep", rb_IupLoopStep, 0);
128
+ rb_define_module_function(rb_mIup, "Flush", rb_IupFlush, 0);
129
+ rb_define_module_function(rb_mIup, "ExitLoop", rb_IupExitLoop, 0);
130
+ rb_define_module_function(rb_mIup, "Update", rb_IupUpdate, 1);
131
+ rb_define_module_function(rb_mIup, "Refresh", rb_IupRefresh, 1);
132
+ rb_define_module_function(rb_mIup, "MapFont", rb_IupMapFont, 1);
133
+ rb_define_module_function(rb_mIup, "UnMapFont", rb_IupUnMapFont, 1);
134
+ rb_define_module_function(rb_mIup, "Help", rb_IupHelp, 1);
135
+ rb_define_module_function(rb_mIup, "Version", rb_IupVersion, 0);
136
+ rb_define_module_function(rb_mIup, "VersionDate", rb_IupVersionDate, 0);
137
+ rb_define_module_function(rb_mIup, "VersionNumber", rb_IupVersionNumber, 0);
138
+ rb_define_module_function(rb_mIup, "SetLanguage", rb_IupSetLanguage, 1);
139
+ rb_define_module_function(rb_mIup, "GetLanguage", rb_IupGetLanguage, 0);
140
+ rb_define_method(rb_cIupNode, "Destroy", rb_IupDestroy, 0);
141
+ rb_define_module_function(rb_mIup, "Detach", rb_IupDetach, 1);
142
+ rb_define_module_function(rb_mIup, "Append", rb_IupAppend, 2);
143
+ rb_define_module_function(rb_mIup, "GetNextChild", rb_IupGetNextChild, 2);
144
+ rb_define_module_function(rb_mIup, "GetBrother", rb_IupGetBrother, 1);
145
+ rb_define_module_function(rb_mIup, "GetParent", rb_IupGetParent, 1);
146
+ rb_define_module_function(rb_mIup, "GetDialog", rb_IupGetDialog, 1);
147
+ rb_define_method(rb_cIupNode, "Popup", rb_IupPopup, 2);
148
+ rb_define_method(rb_cIupNode, "Show", rb_IupShow, 0);
149
+ rb_define_method(rb_cIupNode, "ShowXY", rb_IupShowXY, 2);
150
+ rb_define_method(rb_cIupNode, "Hide", rb_IupHide, 0);
151
+ rb_define_method(rb_cIupNode, "Map", rb_IupMap, 0);
152
+ rb_define_method(rb_cIupNode, "SetAttribute", rb_IupSetAttribute, 2);
153
+ rb_define_method(rb_cIupNode, "SetAttributePtr", rb_IupSetAttributePtr, 2);
154
+ rb_define_method(rb_cIupNode, "StoreAttribute", rb_IupStoreAttribute, 2);
155
+ rb_define_method(rb_cIupNode, "SetAttributes", rb_IupSetAttributes, 1);
156
+ rb_define_method(rb_cIupNode, "GetAttribute", rb_IupGetAttribute, 1);
157
+ rb_define_method(rb_cIupNode, "GetAttributePtr", rb_IupGetAttributePtr, 1);
158
+ rb_define_method(rb_cIupNode, "GetNode", rb_IupGetAttributePtr, 1);
159
+ rb_define_method(rb_cIupNode, "GetAttributes", rb_IupGetAttributes, 0);
160
+ rb_define_method(rb_cIupNode, "GetInt", rb_IupGetInt, 1);
161
+ rb_define_method(rb_cIupNode, "GetFloat", rb_IupGetFloat, 1);
162
+ rb_define_module_function(rb_mIup, "SetGlobal", rb_IupSetGlobal, 2);
163
+ rb_define_module_function(rb_mIup, "StoreGlobal", rb_IupStoreGlobal, 2);
164
+ rb_define_module_function(rb_mIup, "GetGlobal", rb_IupGetGlobal, 1);
165
+ rb_define_module_function(rb_mIup, "SetFocus", rb_IupSetFocus, 1);
166
+ rb_define_module_function(rb_mIup, "GetFocus", rb_IupGetFocus, 0);
167
+ rb_define_module_function(rb_mIup, "PreviousField", rb_IupPreviousField, 1);
168
+ rb_define_module_function(rb_mIup, "NextField", rb_IupNextField, 1);
169
+ rb_define_method(rb_cIupNode, "GetCallback", rb_IupGetCallback, 1);
170
+ rb_define_method(rb_cIupNode, "SetCallback", rb_IupSetCallback, 2);
171
+ rb_define_module_function(rb_mIup, "GetFunction", rb_IupGetFunction, 1);
172
+ rb_define_module_function(rb_mIup, "SetFunction", rb_IupSetFunction, 2);
173
+ rb_define_module_function(rb_mIup, "SetIdle", rb_IupSetIdle, 1);
174
+ rb_define_module_function(rb_mIup, "GetIdle", rb_IupGetIdle, 0);
175
+ rb_define_module_function(rb_mIup, "GetActionName", rb_IupGetActionName, 0);
176
+ rb_define_module_function(rb_mIup, "GetHandle", rb_IupGetHandle, 1);
177
+ rb_define_module_function(rb_mIup, "SetHandle", rb_IupSetHandle, 2);
178
+ rb_define_module_function(rb_mIup, "GetAllNames", rb_IupGetAllNames, 1);
179
+ rb_define_module_function(rb_mIup, "GetAllDialogs", rb_IupGetAllDialogs, 1);
180
+ rb_define_module_function(rb_mIup, "GetName", rb_IupGetName, 1);
181
+ rb_define_method(rb_cIupNode, "SetAttributeHandle", rb_IupSetAttributeHandle, 2);
182
+ rb_define_method(rb_cIupNode, "GetAttributeHandle", rb_IupGetAttributeHandle, 1);
183
+ rb_define_method(rb_cIupNode, "GetClassName", rb_IupGetClassName, 0);
184
+ //rb_define_module_function(rb_mIup, "Create", rb_IupCreate, 1);
185
+ //rb_define_module_function(rb_mIup, "Createv", rb_IupCreatev, -1);
186
+
187
+ rb_define_method(rb_cIupNode, "initialize", rb_IupNode_initialize, -1);
188
+ rb_define_module_function(rb_mIup, "Fill", rb_IupFill, -1);
189
+ rb_define_module_function(rb_mIup, "Radio", rb_IupRadio, -1);
190
+ rb_define_module_function(rb_mIup, "Vbox", rb_IupVboxv, -1);
191
+ rb_define_module_function(rb_mIup, "Zbox", rb_IupZboxv, -1);
192
+ rb_define_module_function(rb_mIup, "Hbox", rb_IupHboxv, -1);
193
+ rb_define_module_function(rb_mIup, "Frame", rb_IupFrame, -1);
194
+ rb_define_module_function(rb_mIup, "Image", rb_IupImage, -1);
195
+ rb_define_module_function(rb_mIup, "Button", rb_IupButton, -1);
196
+ rb_define_module_function(rb_mIup, "Canvas", rb_IupCanvas, -1);
197
+ rb_define_module_function(rb_mIup, "Dialog", rb_IupDialog, -1);
198
+ rb_define_module_function(rb_mIup, "User", rb_IupUser, 0);
199
+ rb_define_module_function(rb_mIup, "Item", rb_IupItem, -1);
200
+ rb_define_module_function(rb_mIup, "Submenu", rb_IupSubmenu, -1);
201
+ rb_define_module_function(rb_mIup, "Separator", rb_IupSeparator, 0);
202
+ rb_define_module_function(rb_mIup, "Label", rb_IupLabel, -1);
203
+ rb_define_module_function(rb_mIup, "List", rb_IupList, -1);
204
+ rb_define_module_function(rb_mIup, "Menu", rb_IupMenuv, 1);
205
+ rb_define_module_function(rb_mIup, "Text", rb_IupText, -1);
206
+ rb_define_module_function(rb_mIup, "MultiLine", rb_IupMultiLine, -1);
207
+ rb_define_module_function(rb_mIup, "Toggle", rb_IupToggle, -1);
208
+ rb_define_module_function(rb_mIup, "Timer", rb_IupTimer, 0);
209
+ rb_define_const(rb_mIup, "ERROR", INT2FIX(IUP_ERROR));
210
+ rb_define_const(rb_mIup, "NOERROR", INT2FIX(IUP_NOERROR));
211
+ rb_define_const(rb_mIup, "OPENED", INT2FIX(IUP_OPENED));
212
+ rb_define_const(rb_mIup, "INVALID", INT2FIX(IUP_INVALID));
213
+ rb_define_const(rb_mIup, "IGNORE", INT2FIX(IUP_IGNORE));
214
+ rb_define_const(rb_mIup, "DEFAULT", INT2FIX(IUP_DEFAULT));
215
+ rb_define_const(rb_mIup, "CLOSE", INT2FIX(IUP_CLOSE));
216
+ rb_define_const(rb_mIup, "CONTINUE", INT2FIX(IUP_CONTINUE));
217
+ rb_define_const(rb_mIup, "CENTER", INT2FIX(IUP_CENTER));
218
+ rb_define_const(rb_mIup, "LEFT", INT2FIX(IUP_LEFT));
219
+ rb_define_const(rb_mIup, "RIGHT", INT2FIX(IUP_RIGHT));
220
+ rb_define_const(rb_mIup, "MOUSEPOS", INT2FIX(IUP_MOUSEPOS));
221
+ rb_define_const(rb_mIup, "CURRENT", INT2FIX(IUP_CURRENT));
222
+ rb_define_const(rb_mIup, "CENTERPARENT", INT2FIX(IUP_CENTERPARENT));
223
+ rb_define_const(rb_mIup, "TOP", INT2FIX(IUP_TOP));
224
+ rb_define_const(rb_mIup, "BOTTOM", INT2FIX(IUP_BOTTOM));
225
+ rb_define_const(rb_mIup, "BUTTON1", INT2FIX(IUP_BUTTON1));
226
+ rb_define_const(rb_mIup, "BUTTON2", INT2FIX(IUP_BUTTON2));
227
+ rb_define_const(rb_mIup, "BUTTON3", INT2FIX(IUP_BUTTON3));
228
+ rb_define_const(rb_mIup, "BUTTON4", INT2FIX(IUP_BUTTON4));
229
+ rb_define_const(rb_mIup, "BUTTON5", INT2FIX(IUP_BUTTON5));
230
+
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
+
236
+ rb_define_module_function(rb_mIup, "Cbox", rb_IupCboxv, -1);
237
+ rb_define_module_function(rb_mIup, "CboxBuilder", rb_IupCboxBuilderv, 1);
238
+
239
+ 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
+ rb_define_module_function(rb_mIup, "Cells", rb_IupCells, -1);
268
+
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
+ rb_define_const(rb_mIup, "PRIMARY", INT2FIX(IUP_PRIMARY));
285
+ rb_define_const(rb_mIup, "SECONDARY", INT2FIX(IUP_SECONDARY));
286
+ rb_define_module_function(rb_mIup, "Colorbar", rb_IupColorbar, 0);
287
+
288
+ rb_define_module_function(rb_mIup, "ControlsOpen", rb_IupControlsOpen, 0);
289
+ rb_define_module_function(rb_mIup, "ControlsClose", rb_IupControlsClose, 0);
290
+ rb_define_module_function(rb_mIup, "ImageLibOpen", rb_IupImageLibOpen, 0);
291
+ rb_define_module_function(rb_mIup, "ImageLibClose", rb_IupImageLibClose, 0);
292
+
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
+
499
+ rb_define_const(rb_mIup, "ICTL_MOUSEMOVE_CB", rb_str_new2(ICTL_MOUSEMOVE_CB));
500
+ rb_define_const(rb_mIup, "ICTL_BUTTON_PRESS_CB", rb_str_new2(ICTL_BUTTON_PRESS_CB));
501
+ rb_define_const(rb_mIup, "ICTL_BUTTON_RELEASE_CB", rb_str_new2(ICTL_BUTTON_RELEASE_CB));
502
+ rb_define_const(rb_mIup, "ICTL_DENSITY", rb_str_new2(ICTL_DENSITY));
503
+ rb_define_const(rb_mIup, "ICTL_HORIZONTAL", rb_str_new2(ICTL_HORIZONTAL));
504
+ rb_define_const(rb_mIup, "ICTL_VERTICAL", rb_str_new2(ICTL_VERTICAL));
505
+ rb_define_const(rb_mIup, "ICTL_CIRCULAR", rb_str_new2(ICTL_CIRCULAR));
506
+ rb_define_const(rb_mIup, "ICTL_UNIT", rb_str_new2(ICTL_UNIT));
507
+ rb_define_module_function(rb_mIup, "Dial", rb_IupDial, -1);
508
+
509
+ rb_define_const(rb_mIup, "ICTL_SHOW_TEXT", rb_str_new2(ICTL_SHOW_TEXT));
510
+ rb_define_const(rb_mIup, "ICTL_DASHED", rb_str_new2(ICTL_DASHED));
511
+ rb_define_const(rb_mIup, "ICTL_MARGIN", rb_str_new2(ICTL_MARGIN));
512
+ rb_define_const(rb_mIup, "ICTL_TEXT", rb_str_new2(ICTL_TEXT));
513
+ rb_define_module_function(rb_mIup, "Gauge", rb_IupGauge, -1);
514
+
515
+ rb_define_module_function(rb_mIup, "GetColor", rb_IupGetColor, 2);
516
+
517
+ rb_define_module_function(rb_mIup, "GetParam", rb_IupGetParam, -1);
518
+
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
+ rb_define_module_function(rb_mIup, "GLCanvasOpen", rb_IupGLCanvasOpen, 0);
539
+ rb_define_module_function(rb_mIup, "GLCanvas", rb_IupGLCanvas, -1);
540
+ rb_define_module_function(rb_mIup, "GLMakeCurrent", rb_IupGLMakeCurrent, 1);
541
+ rb_define_module_function(rb_mIup, "GLIsCurrent", rb_IupGLIsCurrent, 1);
542
+ rb_define_module_function(rb_mIup, "GLSwapBuffers", rb_IupGLSwapBuffers, 1);
543
+ rb_define_module_function(rb_mIup, "GLPalette", rb_IupGLPalette, 5);
544
+
545
+ rb_define_module_function(rb_mIup, "LoadImage", rb_IupLoadImage, 1);
546
+ rb_define_module_function(rb_mIup, "SaveImage", rb_IupSaveImage, 3);
547
+
548
+ rb_define_const(rb_mIup, "K_exclam", INT2FIX(K_exclam));
549
+ rb_define_const(rb_mIup, "K_quotedbl", INT2FIX(K_quotedbl));
550
+ rb_define_const(rb_mIup, "K_numbersign", INT2FIX(K_numbersign));
551
+ rb_define_const(rb_mIup, "K_dollar", INT2FIX(K_dollar));
552
+ rb_define_const(rb_mIup, "K_percent", INT2FIX(K_percent));
553
+ rb_define_const(rb_mIup, "K_ampersand", INT2FIX(K_ampersand));
554
+ rb_define_const(rb_mIup, "K_quoteright", INT2FIX(K_quoteright));
555
+ rb_define_const(rb_mIup, "K_parentleft", INT2FIX(K_parentleft));
556
+ rb_define_const(rb_mIup, "K_parentright", INT2FIX(K_parentright));
557
+ rb_define_const(rb_mIup, "K_asterisk", INT2FIX(K_asterisk));
558
+ rb_define_const(rb_mIup, "K_plus", INT2FIX(K_plus));
559
+ rb_define_const(rb_mIup, "K_comma", INT2FIX(K_comma));
560
+ rb_define_const(rb_mIup, "K_minus", INT2FIX(K_minus));
561
+ rb_define_const(rb_mIup, "K_period", INT2FIX(K_period));
562
+ rb_define_const(rb_mIup, "K_slash", INT2FIX(K_slash));
563
+ rb_define_const(rb_mIup, "K_0", INT2FIX(K_0));
564
+ rb_define_const(rb_mIup, "K_1", INT2FIX(K_1));
565
+ rb_define_const(rb_mIup, "K_2", INT2FIX(K_2));
566
+ rb_define_const(rb_mIup, "K_3", INT2FIX(K_3));
567
+ rb_define_const(rb_mIup, "K_4", INT2FIX(K_4));
568
+ rb_define_const(rb_mIup, "K_5", INT2FIX(K_5));
569
+ rb_define_const(rb_mIup, "K_6", INT2FIX(K_6));
570
+ rb_define_const(rb_mIup, "K_7", INT2FIX(K_7));
571
+ rb_define_const(rb_mIup, "K_8", INT2FIX(K_8));
572
+ rb_define_const(rb_mIup, "K_9", INT2FIX(K_9));
573
+ rb_define_const(rb_mIup, "K_colon", INT2FIX(K_colon));
574
+ rb_define_const(rb_mIup, "K_semicolon", INT2FIX(K_semicolon));
575
+ rb_define_const(rb_mIup, "K_less", INT2FIX(K_less));
576
+ rb_define_const(rb_mIup, "K_equal", INT2FIX(K_equal));
577
+ rb_define_const(rb_mIup, "K_greater", INT2FIX(K_greater));
578
+ rb_define_const(rb_mIup, "K_question", INT2FIX(K_question));
579
+ rb_define_const(rb_mIup, "K_at", INT2FIX(K_at));
580
+ rb_define_const(rb_mIup, "K_A", INT2FIX(K_A));
581
+ rb_define_const(rb_mIup, "K_B", INT2FIX(K_B));
582
+ rb_define_const(rb_mIup, "K_C", INT2FIX(K_C));
583
+ rb_define_const(rb_mIup, "K_D", INT2FIX(K_D));
584
+ rb_define_const(rb_mIup, "K_E", INT2FIX(K_E));
585
+ rb_define_const(rb_mIup, "K_F", INT2FIX(K_F));
586
+ rb_define_const(rb_mIup, "K_G", INT2FIX(K_G));
587
+ rb_define_const(rb_mIup, "K_H", INT2FIX(K_H));
588
+ rb_define_const(rb_mIup, "K_I", INT2FIX(K_I));
589
+ rb_define_const(rb_mIup, "K_J", INT2FIX(K_J));
590
+ rb_define_const(rb_mIup, "K_K", INT2FIX(K_K));
591
+ rb_define_const(rb_mIup, "K_L", INT2FIX(K_L));
592
+ rb_define_const(rb_mIup, "K_M", INT2FIX(K_M));
593
+ rb_define_const(rb_mIup, "K_N", INT2FIX(K_N));
594
+ rb_define_const(rb_mIup, "K_O", INT2FIX(K_O));
595
+ rb_define_const(rb_mIup, "K_P", INT2FIX(K_P));
596
+ rb_define_const(rb_mIup, "K_Q", INT2FIX(K_Q));
597
+ rb_define_const(rb_mIup, "K_R", INT2FIX(K_R));
598
+ rb_define_const(rb_mIup, "K_S", INT2FIX(K_S));
599
+ rb_define_const(rb_mIup, "K_T", INT2FIX(K_T));
600
+ rb_define_const(rb_mIup, "K_U", INT2FIX(K_U));
601
+ rb_define_const(rb_mIup, "K_V", INT2FIX(K_V));
602
+ rb_define_const(rb_mIup, "K_W", INT2FIX(K_W));
603
+ rb_define_const(rb_mIup, "K_X", INT2FIX(K_X));
604
+ rb_define_const(rb_mIup, "K_Y", INT2FIX(K_Y));
605
+ rb_define_const(rb_mIup, "K_Z", INT2FIX(K_Z));
606
+ rb_define_const(rb_mIup, "K_bracketleft", INT2FIX(K_bracketleft));
607
+ rb_define_const(rb_mIup, "K_backslash", INT2FIX(K_backslash));
608
+ rb_define_const(rb_mIup, "K_bracketright", INT2FIX(K_bracketright));
609
+ rb_define_const(rb_mIup, "K_circum", INT2FIX(K_circum));
610
+ rb_define_const(rb_mIup, "K_underscore", INT2FIX(K_underscore));
611
+ rb_define_const(rb_mIup, "K_quoteleft", INT2FIX(K_quoteleft));
612
+ rb_define_const(rb_mIup, "K_a", INT2FIX(K_a));
613
+ rb_define_const(rb_mIup, "K_b", INT2FIX(K_b));
614
+ rb_define_const(rb_mIup, "K_c", INT2FIX(K_c));
615
+ rb_define_const(rb_mIup, "K_d", INT2FIX(K_d));
616
+ rb_define_const(rb_mIup, "K_e", INT2FIX(K_e));
617
+ rb_define_const(rb_mIup, "K_f", INT2FIX(K_f));
618
+ rb_define_const(rb_mIup, "K_g", INT2FIX(K_g));
619
+ rb_define_const(rb_mIup, "K_h", INT2FIX(K_h));
620
+ rb_define_const(rb_mIup, "K_i", INT2FIX(K_i));
621
+ rb_define_const(rb_mIup, "K_j", INT2FIX(K_j));
622
+ rb_define_const(rb_mIup, "K_k", INT2FIX(K_k));
623
+ rb_define_const(rb_mIup, "K_l", INT2FIX(K_l));
624
+ rb_define_const(rb_mIup, "K_m", INT2FIX(K_m));
625
+ rb_define_const(rb_mIup, "K_n", INT2FIX(K_n));
626
+ rb_define_const(rb_mIup, "K_o", INT2FIX(K_o));
627
+ rb_define_const(rb_mIup, "K_p", INT2FIX(K_p));
628
+ rb_define_const(rb_mIup, "K_q", INT2FIX(K_q));
629
+ rb_define_const(rb_mIup, "K_r", INT2FIX(K_r));
630
+ rb_define_const(rb_mIup, "K_s", INT2FIX(K_s));
631
+ rb_define_const(rb_mIup, "K_t", INT2FIX(K_t));
632
+ rb_define_const(rb_mIup, "K_u", INT2FIX(K_u));
633
+ rb_define_const(rb_mIup, "K_v", INT2FIX(K_v));
634
+ rb_define_const(rb_mIup, "K_w", INT2FIX(K_w));
635
+ rb_define_const(rb_mIup, "K_x", INT2FIX(K_x));
636
+ rb_define_const(rb_mIup, "K_y", INT2FIX(K_y));
637
+ rb_define_const(rb_mIup, "K_z", INT2FIX(K_z));
638
+ rb_define_const(rb_mIup, "K_braceleft", INT2FIX(K_braceleft));
639
+ rb_define_const(rb_mIup, "K_bar", INT2FIX(K_bar));
640
+ rb_define_const(rb_mIup, "K_braceright", INT2FIX(K_braceright));
641
+ rb_define_const(rb_mIup, "K_tilde", INT2FIX(K_tilde));
642
+ rb_define_const(rb_mIup, "K_cA", INT2FIX(K_cA));
643
+ rb_define_const(rb_mIup, "K_cB", INT2FIX(K_cB));
644
+ rb_define_const(rb_mIup, "K_cC", INT2FIX(K_cC));
645
+ rb_define_const(rb_mIup, "K_cD", INT2FIX(K_cD));
646
+ rb_define_const(rb_mIup, "K_cE", INT2FIX(K_cE));
647
+ rb_define_const(rb_mIup, "K_cF", INT2FIX(K_cF));
648
+ rb_define_const(rb_mIup, "K_cG", INT2FIX(K_cG));
649
+ rb_define_const(rb_mIup, "K_cH", INT2FIX(K_cH));
650
+ rb_define_const(rb_mIup, "K_cI", INT2FIX(K_cI));
651
+ rb_define_const(rb_mIup, "K_cJ", INT2FIX(K_cJ));
652
+ rb_define_const(rb_mIup, "K_cK", INT2FIX(K_cK));
653
+ rb_define_const(rb_mIup, "K_cL", INT2FIX(K_cL));
654
+ rb_define_const(rb_mIup, "K_cM", INT2FIX(K_cM));
655
+ rb_define_const(rb_mIup, "K_cN", INT2FIX(K_cN));
656
+ rb_define_const(rb_mIup, "K_cO", INT2FIX(K_cO));
657
+ rb_define_const(rb_mIup, "K_cP", INT2FIX(K_cP));
658
+ rb_define_const(rb_mIup, "K_cQ", INT2FIX(K_cQ));
659
+ rb_define_const(rb_mIup, "K_cR", INT2FIX(K_cR));
660
+ rb_define_const(rb_mIup, "K_cS", INT2FIX(K_cS));
661
+ rb_define_const(rb_mIup, "K_cT", INT2FIX(K_cT));
662
+ rb_define_const(rb_mIup, "K_cU", INT2FIX(K_cU));
663
+ rb_define_const(rb_mIup, "K_cV", INT2FIX(K_cV));
664
+ rb_define_const(rb_mIup, "K_cW", INT2FIX(K_cW));
665
+ rb_define_const(rb_mIup, "K_cX", INT2FIX(K_cX));
666
+ rb_define_const(rb_mIup, "K_cY", INT2FIX(K_cY));
667
+ rb_define_const(rb_mIup, "K_cZ", INT2FIX(K_cZ));
668
+ rb_define_const(rb_mIup, "K_mA", INT2FIX(K_mA));
669
+ rb_define_const(rb_mIup, "K_mB", INT2FIX(K_mB));
670
+ rb_define_const(rb_mIup, "K_mC", INT2FIX(K_mC));
671
+ rb_define_const(rb_mIup, "K_mD", INT2FIX(K_mD));
672
+ rb_define_const(rb_mIup, "K_mE", INT2FIX(K_mE));
673
+ rb_define_const(rb_mIup, "K_mF", INT2FIX(K_mF));
674
+ rb_define_const(rb_mIup, "K_mG", INT2FIX(K_mG));
675
+ rb_define_const(rb_mIup, "K_mH", INT2FIX(K_mH));
676
+ rb_define_const(rb_mIup, "K_mI", INT2FIX(K_mI));
677
+ rb_define_const(rb_mIup, "K_mJ", INT2FIX(K_mJ));
678
+ rb_define_const(rb_mIup, "K_mK", INT2FIX(K_mK));
679
+ rb_define_const(rb_mIup, "K_mL", INT2FIX(K_mL));
680
+ rb_define_const(rb_mIup, "K_mM", INT2FIX(K_mM));
681
+ rb_define_const(rb_mIup, "K_mN", INT2FIX(K_mN));
682
+ rb_define_const(rb_mIup, "K_mO", INT2FIX(K_mO));
683
+ rb_define_const(rb_mIup, "K_mP", INT2FIX(K_mP));
684
+ rb_define_const(rb_mIup, "K_mQ", INT2FIX(K_mQ));
685
+ rb_define_const(rb_mIup, "K_mR", INT2FIX(K_mR));
686
+ rb_define_const(rb_mIup, "K_mS", INT2FIX(K_mS));
687
+ rb_define_const(rb_mIup, "K_mT", INT2FIX(K_mT));
688
+ rb_define_const(rb_mIup, "K_mU", INT2FIX(K_mU));
689
+ rb_define_const(rb_mIup, "K_mV", INT2FIX(K_mV));
690
+ rb_define_const(rb_mIup, "K_mW", INT2FIX(K_mW));
691
+ rb_define_const(rb_mIup, "K_mX", INT2FIX(K_mX));
692
+ rb_define_const(rb_mIup, "K_mY", INT2FIX(K_mY));
693
+ rb_define_const(rb_mIup, "K_mZ", INT2FIX(K_mZ));
694
+ rb_define_const(rb_mIup, "K_BS", INT2FIX(K_BS));
695
+ rb_define_const(rb_mIup, "K_CR", INT2FIX(K_CR));
696
+ rb_define_const(rb_mIup, "K_sCR", INT2FIX(K_sCR));
697
+ rb_define_const(rb_mIup, "K_ESC", INT2FIX(K_ESC));
698
+ rb_define_const(rb_mIup, "K_SP", INT2FIX(K_SP));
699
+ rb_define_const(rb_mIup, "K_TAB", INT2FIX(K_TAB));
700
+ rb_define_const(rb_mIup, "K_sTAB", INT2FIX(K_sTAB));
701
+ rb_define_const(rb_mIup, "K_cTAB", INT2FIX(K_cTAB));
702
+ rb_define_const(rb_mIup, "K_mTAB", INT2FIX(K_mTAB));
703
+ rb_define_const(rb_mIup, "K_PAUSE", INT2FIX(K_PAUSE));
704
+ rb_define_const(rb_mIup, "K_HOME", INT2FIX(K_HOME));
705
+ rb_define_const(rb_mIup, "K_UP", INT2FIX(K_UP));
706
+ rb_define_const(rb_mIup, "K_PGUP", INT2FIX(K_PGUP));
707
+ rb_define_const(rb_mIup, "K_LEFT", INT2FIX(K_LEFT));
708
+ rb_define_const(rb_mIup, "K_MIDDLE", INT2FIX(K_MIDDLE));
709
+ rb_define_const(rb_mIup, "K_RIGHT", INT2FIX(K_RIGHT));
710
+ rb_define_const(rb_mIup, "K_END", INT2FIX(K_END));
711
+ rb_define_const(rb_mIup, "K_DOWN", INT2FIX(K_DOWN));
712
+ rb_define_const(rb_mIup, "K_PGDN", INT2FIX(K_PGDN));
713
+ rb_define_const(rb_mIup, "K_INS", INT2FIX(K_INS));
714
+ rb_define_const(rb_mIup, "K_DEL", INT2FIX(K_DEL));
715
+ rb_define_const(rb_mIup, "K_sHOME", INT2FIX(K_sHOME));
716
+ rb_define_const(rb_mIup, "K_sUP", INT2FIX(K_sUP));
717
+ rb_define_const(rb_mIup, "K_sPGUP", INT2FIX(K_sPGUP));
718
+ rb_define_const(rb_mIup, "K_sLEFT", INT2FIX(K_sLEFT));
719
+ rb_define_const(rb_mIup, "K_sRIGHT", INT2FIX(K_sRIGHT));
720
+ rb_define_const(rb_mIup, "K_sEND", INT2FIX(K_sEND));
721
+ rb_define_const(rb_mIup, "K_sDOWN", INT2FIX(K_sDOWN));
722
+ rb_define_const(rb_mIup, "K_sPGDN", INT2FIX(K_sPGDN));
723
+ rb_define_const(rb_mIup, "K_sSP", INT2FIX(K_sSP));
724
+ rb_define_const(rb_mIup, "K_sINS", INT2FIX(K_sINS));
725
+ rb_define_const(rb_mIup, "K_sDEL", INT2FIX(K_sDEL));
726
+ rb_define_const(rb_mIup, "K_cHOME", INT2FIX(K_cHOME));
727
+ rb_define_const(rb_mIup, "K_cPGUP", INT2FIX(K_cPGUP));
728
+ rb_define_const(rb_mIup, "K_cLEFT", INT2FIX(K_cLEFT));
729
+ rb_define_const(rb_mIup, "K_cRIGHT", INT2FIX(K_cRIGHT));
730
+ rb_define_const(rb_mIup, "K_cEND", INT2FIX(K_cEND));
731
+ rb_define_const(rb_mIup, "K_cPGDN", INT2FIX(K_cPGDN));
732
+ rb_define_const(rb_mIup, "K_cUP", INT2FIX(K_cUP));
733
+ rb_define_const(rb_mIup, "K_cMIDDLE", INT2FIX(K_cMIDDLE));
734
+ rb_define_const(rb_mIup, "K_cDOWN", INT2FIX(K_cDOWN));
735
+ rb_define_const(rb_mIup, "K_cINS", INT2FIX(K_cINS));
736
+ rb_define_const(rb_mIup, "K_cDEL", INT2FIX(K_cDEL));
737
+ rb_define_const(rb_mIup, "K_cSP", INT2FIX(K_cSP));
738
+ rb_define_const(rb_mIup, "K_mHOME", INT2FIX(K_mHOME));
739
+ rb_define_const(rb_mIup, "K_mPGUP", INT2FIX(K_mPGUP));
740
+ rb_define_const(rb_mIup, "K_mLEFT", INT2FIX(K_mLEFT));
741
+ rb_define_const(rb_mIup, "K_mRIGHT", INT2FIX(K_mRIGHT));
742
+ rb_define_const(rb_mIup, "K_mEND", INT2FIX(K_mEND));
743
+ rb_define_const(rb_mIup, "K_mPGDN", INT2FIX(K_mPGDN));
744
+ rb_define_const(rb_mIup, "K_mUP", INT2FIX(K_mUP));
745
+ rb_define_const(rb_mIup, "K_mDOWN", INT2FIX(K_mDOWN));
746
+ rb_define_const(rb_mIup, "K_mINS", INT2FIX(K_mINS));
747
+ rb_define_const(rb_mIup, "K_mDEL", INT2FIX(K_mDEL));
748
+ rb_define_const(rb_mIup, "K_F1", INT2FIX(K_F1));
749
+ rb_define_const(rb_mIup, "K_F2", INT2FIX(K_F2));
750
+ rb_define_const(rb_mIup, "K_F3", INT2FIX(K_F3));
751
+ rb_define_const(rb_mIup, "K_F4", INT2FIX(K_F4));
752
+ rb_define_const(rb_mIup, "K_F5", INT2FIX(K_F5));
753
+ rb_define_const(rb_mIup, "K_F6", INT2FIX(K_F6));
754
+ rb_define_const(rb_mIup, "K_F7", INT2FIX(K_F7));
755
+ rb_define_const(rb_mIup, "K_F8", INT2FIX(K_F8));
756
+ rb_define_const(rb_mIup, "K_F9", INT2FIX(K_F9));
757
+ rb_define_const(rb_mIup, "K_F10", INT2FIX(K_F10));
758
+ rb_define_const(rb_mIup, "K_F11", INT2FIX(K_F11));
759
+ rb_define_const(rb_mIup, "K_F12", INT2FIX(K_F12));
760
+ rb_define_const(rb_mIup, "K_sF1", INT2FIX(K_sF1));
761
+ rb_define_const(rb_mIup, "K_sF2", INT2FIX(K_sF2));
762
+ rb_define_const(rb_mIup, "K_sF3", INT2FIX(K_sF3));
763
+ rb_define_const(rb_mIup, "K_sF4", INT2FIX(K_sF4));
764
+ rb_define_const(rb_mIup, "K_sF5", INT2FIX(K_sF5));
765
+ rb_define_const(rb_mIup, "K_sF6", INT2FIX(K_sF6));
766
+ rb_define_const(rb_mIup, "K_sF7", INT2FIX(K_sF7));
767
+ rb_define_const(rb_mIup, "K_sF8", INT2FIX(K_sF8));
768
+ rb_define_const(rb_mIup, "K_sF9", INT2FIX(K_sF9));
769
+ rb_define_const(rb_mIup, "K_sF10", INT2FIX(K_sF10));
770
+ rb_define_const(rb_mIup, "K_sF11", INT2FIX(K_sF11));
771
+ rb_define_const(rb_mIup, "K_sF12", INT2FIX(K_sF12));
772
+ rb_define_const(rb_mIup, "K_cF1", INT2FIX(K_cF1));
773
+ rb_define_const(rb_mIup, "K_cF2", INT2FIX(K_cF2));
774
+ rb_define_const(rb_mIup, "K_cF3", INT2FIX(K_cF3));
775
+ rb_define_const(rb_mIup, "K_cF4", INT2FIX(K_cF4));
776
+ rb_define_const(rb_mIup, "K_cF5", INT2FIX(K_cF5));
777
+ rb_define_const(rb_mIup, "K_cF6", INT2FIX(K_cF6));
778
+ rb_define_const(rb_mIup, "K_cF7", INT2FIX(K_cF7));
779
+ rb_define_const(rb_mIup, "K_cF8", INT2FIX(K_cF8));
780
+ rb_define_const(rb_mIup, "K_cF9", INT2FIX(K_cF9));
781
+ rb_define_const(rb_mIup, "K_cF10", INT2FIX(K_cF10));
782
+ rb_define_const(rb_mIup, "K_cF11", INT2FIX(K_cF11));
783
+ rb_define_const(rb_mIup, "K_cF12", INT2FIX(K_cF12));
784
+ rb_define_const(rb_mIup, "K_mF1", INT2FIX(K_mF1));
785
+ rb_define_const(rb_mIup, "K_mF2", INT2FIX(K_mF2));
786
+ rb_define_const(rb_mIup, "K_mF3", INT2FIX(K_mF3));
787
+ rb_define_const(rb_mIup, "K_mF4", INT2FIX(K_mF4));
788
+ rb_define_const(rb_mIup, "K_mF5", INT2FIX(K_mF5));
789
+ rb_define_const(rb_mIup, "K_mF6", INT2FIX(K_mF6));
790
+ rb_define_const(rb_mIup, "K_mF7", INT2FIX(K_mF7));
791
+ rb_define_const(rb_mIup, "K_mF8", INT2FIX(K_mF8));
792
+ rb_define_const(rb_mIup, "K_mF9", INT2FIX(K_mF9));
793
+ rb_define_const(rb_mIup, "K_mF10", INT2FIX(K_mF10));
794
+ rb_define_const(rb_mIup, "K_mF11", INT2FIX(K_mF11));
795
+ rb_define_const(rb_mIup, "K_mF12", INT2FIX(K_mF12));
796
+ rb_define_const(rb_mIup, "K_m1", INT2FIX(K_m1));
797
+ rb_define_const(rb_mIup, "K_m2", INT2FIX(K_m2));
798
+ rb_define_const(rb_mIup, "K_m3", INT2FIX(K_m3));
799
+ rb_define_const(rb_mIup, "K_m4", INT2FIX(K_m4));
800
+ rb_define_const(rb_mIup, "K_m5", INT2FIX(K_m5));
801
+ rb_define_const(rb_mIup, "K_m6", INT2FIX(K_m6));
802
+ rb_define_const(rb_mIup, "K_m7", INT2FIX(K_m7));
803
+ rb_define_const(rb_mIup, "K_m8", INT2FIX(K_m8));
804
+ rb_define_const(rb_mIup, "K_m9", INT2FIX(K_m9));
805
+ rb_define_const(rb_mIup, "K_m0", INT2FIX(K_m0));
806
+
807
+ rb_define_const(rb_mIup, "IUPMASK_FLOAT", rb_str_new2(IUPMASK_FLOAT));
808
+ rb_define_const(rb_mIup, "IUPMASK_UFLOAT", rb_str_new2(IUPMASK_UFLOAT));
809
+ rb_define_const(rb_mIup, "IUPMASK_EFLOAT", rb_str_new2(IUPMASK_EFLOAT));
810
+ rb_define_const(rb_mIup, "IUPMASK_INT", rb_str_new2(IUPMASK_INT));
811
+ rb_define_const(rb_mIup, "IUPMASK_UINT", rb_str_new2(IUPMASK_UINT));
812
+ rb_define_method(rb_cIupNode, "maskSet", rb_iupmaskSet, 3);
813
+ rb_define_method(rb_cIupNode, "maskRemove", rb_iupmaskRemove, 0);
814
+
815
+ rb_define_module_function(rb_mIup, "Matrix", rb_IupMatrix, -1);
816
+ rb_define_method(rb_cIupMatrix, "MatSetAttribute", rb_IupMatSetAttribute, 4);
817
+ rb_define_method(rb_cIupMatrix, "MatStoreAttribute", rb_IupMatStoreAttribute, 4);
818
+ rb_define_method(rb_cIupMatrix, "MatGetAttribute", rb_IupMatGetAttribute, 3);
819
+ rb_define_method(rb_cIupMatrix, "MatGetInt", rb_IupMatGetInt, 3);
820
+ 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
+
855
+ //rb_define_module_function(rb_mIup, "OleControl", rb_IupOleControl, 1);
856
+ //rb_define_module_function(rb_mIup, "OleControlOpen", rb_IupOleControlOpen, 0);
857
+ //rb_define_module_function(rb_mIup, "OleControl_getclass", rb_IupOleControl_getclass, 0);
858
+
859
+ rb_define_module_function(rb_mIup, "Sbox", rb_IupSbox, -1);
860
+
861
+ //rb_define_module_function(rb_mIup, "SpeechOpen", rb_IupSpeechOpen, 0);
862
+ //rb_define_module_function(rb_mIup, "SpeechClose", rb_IupSpeechClose, 0);
863
+ //rb_define_module_function(rb_mIup, "Speech", rb_IupSpeech, 0);
864
+
865
+ rb_define_module_function(rb_mIup, "Spin", rb_IupSpin, 0);
866
+ rb_define_module_function(rb_mIup, "Spinbox", rb_IupSpinbox, -1);
867
+
868
+ rb_define_const(rb_mIup, "ICTL_TOP", rb_str_new2(ICTL_TOP));
869
+ rb_define_const(rb_mIup, "ICTL_BOTTOM", rb_str_new2(ICTL_BOTTOM));
870
+ rb_define_const(rb_mIup, "ICTL_LEFT", rb_str_new2(ICTL_LEFT));
871
+ rb_define_const(rb_mIup, "ICTL_RIGHT", rb_str_new2(ICTL_RIGHT));
872
+ rb_define_const(rb_mIup, "ICTL_TABTYPE", rb_str_new2(ICTL_TABTYPE));
873
+ rb_define_const(rb_mIup, "ICTL_TABTITLE", rb_str_new2(ICTL_TABTITLE));
874
+ rb_define_const(rb_mIup, "ICTL_TABSIZE", rb_str_new2(ICTL_TABSIZE));
875
+ rb_define_const(rb_mIup, "ICTL_TABCHANGE_CB", rb_str_new2(ICTL_TABCHANGE_CB));
876
+ rb_define_const(rb_mIup, "ICTL_FONT", rb_str_new2(ICTL_FONT));
877
+ rb_define_const(rb_mIup, "ICTL_FONT_ACTIVE", rb_str_new2(ICTL_FONT_ACTIVE));
878
+ rb_define_const(rb_mIup, "ICTL_FONT_INACTIVE", rb_str_new2(ICTL_FONT_INACTIVE));
879
+ rb_define_module_function(rb_mIup, "Tabs", rb_IupTabsv, -1);
880
+
881
+ rb_define_module_function(rb_mIup, "Tree", rb_IupTree, -1);
882
+ rb_define_method(rb_mIup, "TreeSetUserId", rb_IupTreeSetUserId, 2);
883
+ rb_define_method(rb_mIup, "TreeGetUserId", rb_IupTreeGetUserId, 1);
884
+ rb_define_method(rb_mIup, "TreeGetId", rb_IupTreeGetId, 1);
885
+ rb_define_method(rb_mIup, "TreeSetAttribute", rb_IupTreeSetAttribute, 3);
886
+ rb_define_method(rb_mIup, "TreeStoreAttribute", rb_IupTreeStoreAttribute, 3);
887
+ rb_define_method(rb_mIup, "TreeGetAttribute", rb_IupTreeGetAttribute, 2);
888
+ rb_define_method(rb_mIup, "TreeGetInt", rb_IupTreeGetInt, 2);
889
+ 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
+
934
+ rb_define_const(rb_mIup, "ICTL_SHOWTICKS", rb_str_new2(ICTL_SHOWTICKS));
935
+ rb_define_module_function(rb_mIup, "Val", rb_IupVal, -1);
936
+
937
+ rb_define_module_function(rb_mIup, "PPlotOpen", rb_IupPPlotOpen, 0);
938
+ rb_define_module_function(rb_mIup, "PPlot", rb_IupPPlot, 0);
939
+ rb_define_method(rb_cIupPPlot, "PPlotBegin", rb_IupPPlotBegin, 1);
940
+ rb_define_method(rb_cIupPPlot, "PPlotAdd", rb_IupPPlotAdd, 2);
941
+ rb_define_method(rb_cIupPPlot, "PPlotAddStr", rb_IupPPlotAddStr, 2);
942
+ rb_define_method(rb_cIupPPlot, "PPlotEnd", rb_IupPPlotEnd, 0);
943
+ rb_define_method(rb_cIupPPlot, "PPlotInsertStr", rb_IupPPlotInsertStr, 4);
944
+ rb_define_method(rb_cIupPPlot, "PPlotInsert", rb_IupPPlotInsert, 4);
945
+ rb_define_method(rb_cIupPPlot, "PPlotTransform", rb_IupPPlotTransform, 2);
946
+ rb_define_method(rb_cIupPPlot, "PPlotPaintTo", rb_IupPPlotPaintTo, 1);
947
+
948
+ rb_define_const(rb_mCd,"QUERY",INT2FIX(CD_QUERY));
949
+ rb_define_const(rb_mCd,"RGB",INT2FIX(CD_RGB));
950
+ rb_define_const(rb_mCd,"MAP",INT2FIX(CD_MAP));
951
+ rb_define_const(rb_mCd,"RGBA",INT2FIX(CD_RGBA));
952
+ rb_define_const(rb_mCd,"IRED",INT2FIX(CD_IRED));
953
+ rb_define_const(rb_mCd,"IGREEN",INT2FIX(CD_IGREEN));
954
+ rb_define_const(rb_mCd,"IBLUE",INT2FIX(CD_IBLUE));
955
+ rb_define_const(rb_mCd,"IALPHA",INT2FIX(CD_IALPHA));
956
+ rb_define_const(rb_mCd,"INDEX",INT2FIX(CD_INDEX));
957
+ rb_define_const(rb_mCd,"COLORS",INT2FIX(CD_COLORS));
958
+ rb_define_const(rb_mCd,"ERROR",INT2FIX(CD_ERROR));
959
+ rb_define_const(rb_mCd,"OK",INT2FIX(CD_OK));
960
+ rb_define_const(rb_mCd,"CLIPOFF",INT2FIX(CD_CLIPOFF));
961
+ rb_define_const(rb_mCd,"CLIPAREA",INT2FIX(CD_CLIPAREA));
962
+ rb_define_const(rb_mCd,"CLIPPOLYGON",INT2FIX(CD_CLIPPOLYGON));
963
+ rb_define_const(rb_mCd,"CLIPREGION",INT2FIX(CD_CLIPREGION));
964
+ rb_define_const(rb_mCd,"UNION",INT2FIX(CD_UNION));
965
+ rb_define_const(rb_mCd,"INTERSECT",INT2FIX(CD_INTERSECT));
966
+ rb_define_const(rb_mCd,"DIFFERENCE",INT2FIX(CD_DIFFERENCE));
967
+ rb_define_const(rb_mCd,"NOTINTERSECT",INT2FIX(CD_NOTINTERSECT));
968
+ rb_define_const(rb_mCd,"FILL",INT2FIX(CD_FILL));
969
+ rb_define_const(rb_mCd,"OPEN_LINES",INT2FIX(CD_OPEN_LINES));
970
+ rb_define_const(rb_mCd,"CLOSED_LINES",INT2FIX(CD_CLOSED_LINES));
971
+ rb_define_const(rb_mCd,"CLIP",INT2FIX(CD_CLIP));
972
+ rb_define_const(rb_mCd,"BEZIER",INT2FIX(CD_BEZIER));
973
+ rb_define_const(rb_mCd,"REGION",INT2FIX(CD_REGION));
974
+ rb_define_const(rb_mCd,"POLYCUSTOM",INT2FIX(CD_POLYCUSTOM));
975
+ rb_define_const(rb_mCd,"EVENODD",INT2FIX(CD_EVENODD));
976
+ rb_define_const(rb_mCd,"WINDING",INT2FIX(CD_WINDING));
977
+ rb_define_const(rb_mCd,"MITER",INT2FIX(CD_MITER));
978
+ rb_define_const(rb_mCd,"BEVEL",INT2FIX(CD_BEVEL));
979
+ rb_define_const(rb_mCd,"ROUND",INT2FIX(CD_ROUND));
980
+ rb_define_const(rb_mCd,"CAPFLAT",INT2FIX(CD_CAPFLAT));
981
+ rb_define_const(rb_mCd,"CAPSQUARE",INT2FIX(CD_CAPSQUARE));
982
+ rb_define_const(rb_mCd,"CAPROUND",INT2FIX(CD_CAPROUND));
983
+ rb_define_const(rb_mCd,"OPAQUE",INT2FIX(CD_OPAQUE));
984
+ rb_define_const(rb_mCd,"TRANSPARENT",INT2FIX(CD_TRANSPARENT));
985
+ rb_define_const(rb_mCd,"REPLACE",INT2FIX(CD_REPLACE));
986
+ rb_define_const(rb_mCd,"XOR",INT2FIX(CD_XOR));
987
+ rb_define_const(rb_mCd,"NOT_XOR",INT2FIX(CD_NOT_XOR));
988
+ rb_define_const(rb_mCd,"POLITE",INT2FIX(CD_POLITE));
989
+ rb_define_const(rb_mCd,"FORCE",INT2FIX(CD_FORCE));
990
+ rb_define_const(rb_mCd,"CONTINUOUS",INT2FIX(CD_CONTINUOUS));
991
+ rb_define_const(rb_mCd,"DASHED",INT2FIX(CD_DASHED));
992
+ rb_define_const(rb_mCd,"DOTTED",INT2FIX(CD_DOTTED));
993
+ rb_define_const(rb_mCd,"DASH_DOT",INT2FIX(CD_DASH_DOT));
994
+ rb_define_const(rb_mCd,"DASH_DOT_DOT",INT2FIX(CD_DASH_DOT_DOT));
995
+ rb_define_const(rb_mCd,"CUSTOM",INT2FIX(CD_CUSTOM));
996
+ rb_define_const(rb_mCd,"PLUS",INT2FIX(CD_PLUS));
997
+ rb_define_const(rb_mCd,"STAR",INT2FIX(CD_STAR));
998
+ rb_define_const(rb_mCd,"CIRCLE",INT2FIX(CD_CIRCLE));
999
+ rb_define_const(rb_mCd,"X",INT2FIX(CD_X));
1000
+ rb_define_const(rb_mCd,"BOX",INT2FIX(CD_BOX));
1001
+ rb_define_const(rb_mCd,"DIAMOND",INT2FIX(CD_DIAMOND));
1002
+ rb_define_const(rb_mCd,"HOLLOW_CIRCLE",INT2FIX(CD_HOLLOW_CIRCLE));
1003
+ rb_define_const(rb_mCd,"HOLLOW_BOX",INT2FIX(CD_HOLLOW_BOX));
1004
+ rb_define_const(rb_mCd,"HOLLOW_DIAMOND",INT2FIX(CD_HOLLOW_DIAMOND));
1005
+ rb_define_const(rb_mCd,"HORIZONTAL",INT2FIX(CD_HORIZONTAL));
1006
+ rb_define_const(rb_mCd,"VERTICAL",INT2FIX(CD_VERTICAL));
1007
+ rb_define_const(rb_mCd,"FDIAGONAL",INT2FIX(CD_FDIAGONAL));
1008
+ rb_define_const(rb_mCd,"BDIAGONAL",INT2FIX(CD_BDIAGONAL));
1009
+ rb_define_const(rb_mCd,"CROSS",INT2FIX(CD_CROSS));
1010
+ rb_define_const(rb_mCd,"DIAGCROSS",INT2FIX(CD_DIAGCROSS));
1011
+ rb_define_const(rb_mCd,"SOLID",INT2FIX(CD_SOLID));
1012
+ rb_define_const(rb_mCd,"HATCH",INT2FIX(CD_HATCH));
1013
+ rb_define_const(rb_mCd,"STIPPLE",INT2FIX(CD_STIPPLE));
1014
+ rb_define_const(rb_mCd,"PATTERN",INT2FIX(CD_PATTERN));
1015
+ rb_define_const(rb_mCd,"HOLLOW",INT2FIX(CD_HOLLOW));
1016
+ rb_define_const(rb_mCd,"NORTH",INT2FIX(CD_NORTH));
1017
+ rb_define_const(rb_mCd,"SOUTH",INT2FIX(CD_SOUTH));
1018
+ rb_define_const(rb_mCd,"EAST",INT2FIX(CD_EAST));
1019
+ rb_define_const(rb_mCd,"WEST",INT2FIX(CD_WEST));
1020
+ rb_define_const(rb_mCd,"NORTH_EAST",INT2FIX(CD_NORTH_EAST));
1021
+ rb_define_const(rb_mCd,"NORTH_WEST",INT2FIX(CD_NORTH_WEST));
1022
+ rb_define_const(rb_mCd,"SOUTH_EAST",INT2FIX(CD_SOUTH_EAST));
1023
+ rb_define_const(rb_mCd,"SOUTH_WEST",INT2FIX(CD_SOUTH_WEST));
1024
+ rb_define_const(rb_mCd,"CENTER",INT2FIX(CD_CENTER));
1025
+ rb_define_const(rb_mCd,"BASE_LEFT",INT2FIX(CD_BASE_LEFT));
1026
+ rb_define_const(rb_mCd,"BASE_CENTER",INT2FIX(CD_BASE_CENTER));
1027
+ rb_define_const(rb_mCd,"BASE_RIGHT",INT2FIX(CD_BASE_RIGHT));
1028
+ rb_define_const(rb_mCd,"PLAIN",INT2FIX(CD_PLAIN));
1029
+ rb_define_const(rb_mCd,"BOLD",INT2FIX(CD_BOLD));
1030
+ rb_define_const(rb_mCd,"ITALIC",INT2FIX(CD_ITALIC));
1031
+ rb_define_const(rb_mCd,"UNDERLINE",INT2FIX(CD_UNDERLINE));
1032
+ rb_define_const(rb_mCd,"STRIKEOUT",INT2FIX(CD_STRIKEOUT));
1033
+ rb_define_const(rb_mCd,"BOLD_ITALIC",INT2FIX(CD_BOLD_ITALIC));
1034
+ rb_define_const(rb_mCd,"SMALL",INT2FIX(CD_SMALL));
1035
+ rb_define_const(rb_mCd,"STANDARD",INT2FIX(CD_STANDARD));
1036
+ rb_define_const(rb_mCd,"LARGE",INT2FIX(CD_LARGE));
1037
+ rb_define_const(rb_mCd,"CAP_NONE",INT2FIX(CD_CAP_NONE));
1038
+ rb_define_const(rb_mCd,"CAP_FLUSH",INT2FIX(CD_CAP_FLUSH));
1039
+ rb_define_const(rb_mCd,"CAP_CLEAR",INT2FIX(CD_CAP_CLEAR));
1040
+ rb_define_const(rb_mCd,"CAP_PLAY",INT2FIX(CD_CAP_PLAY));
1041
+ rb_define_const(rb_mCd,"CAP_YAXIS",INT2FIX(CD_CAP_YAXIS));
1042
+ rb_define_const(rb_mCd,"CAP_CLIPAREA",INT2FIX(CD_CAP_CLIPAREA));
1043
+ rb_define_const(rb_mCd,"CAP_CLIPPOLY",INT2FIX(CD_CAP_CLIPPOLY));
1044
+ rb_define_const(rb_mCd,"CAP_REGION",INT2FIX(CD_CAP_REGION));
1045
+ rb_define_const(rb_mCd,"CAP_RECT",INT2FIX(CD_CAP_RECT));
1046
+ rb_define_const(rb_mCd,"CAP_CHORD",INT2FIX(CD_CAP_CHORD));
1047
+ rb_define_const(rb_mCd,"CAP_IMAGERGB",INT2FIX(CD_CAP_IMAGERGB));
1048
+ rb_define_const(rb_mCd,"CAP_IMAGERGBA",INT2FIX(CD_CAP_IMAGERGBA));
1049
+ rb_define_const(rb_mCd,"CAP_IMAGEMAP",INT2FIX(CD_CAP_IMAGEMAP));
1050
+ rb_define_const(rb_mCd,"CAP_GETIMAGERGB",INT2FIX(CD_CAP_GETIMAGERGB));
1051
+ rb_define_const(rb_mCd,"CAP_IMAGESRV",INT2FIX(CD_CAP_IMAGESRV));
1052
+ rb_define_const(rb_mCd,"CAP_BACKGROUND",INT2FIX(CD_CAP_BACKGROUND));
1053
+ rb_define_const(rb_mCd,"CAP_BACKOPACITY",INT2FIX(CD_CAP_BACKOPACITY));
1054
+ rb_define_const(rb_mCd,"CAP_WRITEMODE",INT2FIX(CD_CAP_WRITEMODE));
1055
+ rb_define_const(rb_mCd,"CAP_LINESTYLE",INT2FIX(CD_CAP_LINESTYLE));
1056
+ rb_define_const(rb_mCd,"CAP_LINEWITH",INT2FIX(CD_CAP_LINEWITH));
1057
+ rb_define_const(rb_mCd,"CAP_FPRIMTIVES",INT2FIX(CD_CAP_FPRIMTIVES));
1058
+ rb_define_const(rb_mCd,"CAP_HATCH",INT2FIX(CD_CAP_HATCH));
1059
+ rb_define_const(rb_mCd,"CAP_STIPPLE",INT2FIX(CD_CAP_STIPPLE));
1060
+ rb_define_const(rb_mCd,"CAP_PATTERN",INT2FIX(CD_CAP_PATTERN));
1061
+ rb_define_const(rb_mCd,"CAP_FONT",INT2FIX(CD_CAP_FONT));
1062
+ rb_define_const(rb_mCd,"CAP_FONTDIM",INT2FIX(CD_CAP_FONTDIM));
1063
+ rb_define_const(rb_mCd,"CAP_TEXTSIZE",INT2FIX(CD_CAP_TEXTSIZE));
1064
+ rb_define_const(rb_mCd,"CAP_TEXTORIENTATION",INT2FIX(CD_CAP_TEXTORIENTATION));
1065
+ rb_define_const(rb_mCd,"CAP_PALETTE",INT2FIX(CD_CAP_PALETTE));
1066
+ rb_define_const(rb_mCd,"CAP_LINECAP",INT2FIX(CD_CAP_LINECAP));
1067
+ rb_define_const(rb_mCd,"CAP_LINEJOIN",INT2FIX(CD_CAP_LINEJOIN));
1068
+ rb_define_const(rb_mCd,"CAP_ALL",INT2FIX(CD_CAP_ALL));
1069
+ rb_define_const(rb_mCd,"SIZECB",INT2FIX(CD_SIZECB));
1070
+ rb_define_const(rb_mCd,"ABORT",INT2FIX(CD_ABORT));
1071
+ rb_define_const(rb_mCd,"CONTINUE",INT2FIX(CD_CONTINUE));
1072
+ rb_define_const(rb_mCd,"SIM_NONE",INT2FIX(CD_SIM_NONE));
1073
+ rb_define_const(rb_mCd,"SIM_LINE",INT2FIX(CD_SIM_LINE));
1074
+ rb_define_const(rb_mCd,"SIM_RECT",INT2FIX(CD_SIM_RECT));
1075
+ rb_define_const(rb_mCd,"SIM_BOX",INT2FIX(CD_SIM_BOX));
1076
+ rb_define_const(rb_mCd,"SIM_ARC",INT2FIX(CD_SIM_ARC));
1077
+ rb_define_const(rb_mCd,"SIM_SECTOR",INT2FIX(CD_SIM_SECTOR));
1078
+ rb_define_const(rb_mCd,"SIM_CHORD",INT2FIX(CD_SIM_CHORD));
1079
+ rb_define_const(rb_mCd,"SIM_POLYLINE",INT2FIX(CD_SIM_POLYLINE));
1080
+ rb_define_const(rb_mCd,"SIM_POLYGON",INT2FIX(CD_SIM_POLYGON));
1081
+ rb_define_const(rb_mCd,"SIM_TEXT",INT2FIX(CD_SIM_TEXT));
1082
+ rb_define_const(rb_mCd,"SIM_ALL",INT2FIX(CD_SIM_ALL));
1083
+ rb_define_const(rb_mCd,"SIM_LINES",INT2FIX(CD_SIM_LINES));
1084
+ rb_define_const(rb_mCd,"SIM_FILLS",INT2FIX(CD_SIM_FILLS));
1085
+ rb_define_const(rb_mCd,"RED",INT2FIX(CD_RED));
1086
+ rb_define_const(rb_mCd,"DARK_RED",INT2FIX(CD_DARK_RED));
1087
+ rb_define_const(rb_mCd,"GREEN",INT2FIX(CD_GREEN));
1088
+ rb_define_const(rb_mCd,"DARK_GREEN",INT2FIX(CD_DARK_GREEN));
1089
+ rb_define_const(rb_mCd,"BLUE",INT2FIX(CD_BLUE));
1090
+ rb_define_const(rb_mCd,"DARK_BLUE",INT2FIX(CD_DARK_BLUE));
1091
+ rb_define_const(rb_mCd,"YELLOW",INT2FIX(CD_YELLOW));
1092
+ rb_define_const(rb_mCd,"DARK_YELLOW",INT2FIX(CD_DARK_YELLOW));
1093
+ rb_define_const(rb_mCd,"MAGENTA",INT2FIX(CD_MAGENTA));
1094
+ rb_define_const(rb_mCd,"DARK_MAGENTA",INT2FIX(CD_DARK_MAGENTA));
1095
+ rb_define_const(rb_mCd,"CYAN",INT2FIX(CD_CYAN));
1096
+ rb_define_const(rb_mCd,"DARK_CYAN",INT2FIX(CD_DARK_CYAN));
1097
+ rb_define_const(rb_mCd,"WHITE",INT2FIX(CD_WHITE));
1098
+ rb_define_const(rb_mCd,"BLACK",INT2FIX(CD_BLACK));
1099
+ rb_define_const(rb_mCd,"DARK_GRAY",INT2FIX(CD_DARK_GRAY));
1100
+ rb_define_const(rb_mCd,"GRAY",INT2FIX(CD_GRAY));
1101
+ rb_define_const(rb_mCd,"MM2PT",rb_float_new(CD_MM2PT));
1102
+ rb_define_const(rb_mCd,"RAD2DEG",rb_float_new(CD_RAD2DEG));
1103
+ rb_define_const(rb_mCd,"DEG2RAD",rb_float_new(CD_DEG2RAD));
1104
+ rb_define_const(rb_mCd,"A0",INT2FIX(CD_A0));
1105
+ rb_define_const(rb_mCd,"A1",INT2FIX(CD_A1));
1106
+ rb_define_const(rb_mCd,"A2",INT2FIX(CD_A2));
1107
+ rb_define_const(rb_mCd,"A3",INT2FIX(CD_A3));
1108
+ rb_define_const(rb_mCd,"A4",INT2FIX(CD_A4));
1109
+ rb_define_const(rb_mCd,"A5",INT2FIX(CD_A5));
1110
+ rb_define_const(rb_mCd,"LETTER",INT2FIX(CD_LETTER));
1111
+ rb_define_const(rb_mCd,"LEGAL",INT2FIX(CD_LEGAL));
1112
+
1113
+ rb_define_module_function(rb_mCd, "Version", rb_cdVersion, 0);
1114
+ rb_define_module_function(rb_mCd, "VersionDate", rb_cdVersionDate, 0);
1115
+ rb_define_module_function(rb_mCd, "ActiveCanvas", rb_cdActiveCanvas, 0);
1116
+ rb_define_method(rb_cCdCanvas, "Activate", rb_cdActivate, 0);
1117
+ rb_define_module_function(rb_mCd, "CreateCanvas", rb_cdCreateCanvas, 2);
1118
+ rb_define_method(rb_cCdCanvas, "KillCanvas", rb_cdKillCanvas, 0);
1119
+ rb_define_method(rb_cCdCanvas, "CanvasGetContext", rb_cdCanvasGetContext, 0);
1120
+ rb_define_method(rb_cCdCanvas, "CanvasActivate", rb_cdCanvasActivate, 0);
1121
+ rb_define_method(rb_cCdCanvas, "CanvasDeactivate", rb_cdCanvasDeactivate, 0);
1122
+ rb_define_module_function(rb_mCd, "UseContextPlus", rb_cdUseContextPlus, 0);
1123
+ rb_define_module_function(rb_mCd, "ContextRegisterCallback", rb_cdContextRegisterCallback, 3);
1124
+ rb_define_module_function(rb_mCd, "ContextCaps", rb_cdContextCaps, 1);
1125
+ rb_define_method(rb_cCdCanvas, "CanvasSimulate", rb_cdCanvasSimulate, 1);
1126
+ rb_define_method(rb_cCdCanvas, "CanvasFlush", rb_cdCanvasFlush, 0);
1127
+ rb_define_method(rb_cCdCanvas, "CanvasClear", rb_cdCanvasClear, 0);
1128
+ rb_define_method(rb_cCdCanvas, "CanvasSaveState", rb_cdCanvasSaveState, 0);
1129
+ rb_define_method(rb_cCdCanvas, "CanvasRestoreState", rb_cdCanvasRestoreState, 1);
1130
+ rb_define_module_function(rb_mCd, "ReleaseState", rb_cdReleaseState, 1);
1131
+ rb_define_method(rb_cCdCanvas, "CanvasSetAttribute", rb_cdCanvasSetAttribute, 2);
1132
+ rb_define_method(rb_cCdCanvas, "CanvasGetAttribute", rb_cdCanvasGetAttribute, 1);
1133
+ rb_define_method(rb_cCdCanvas, "CanvasPlay", rb_cdCanvasPlay, 6);
1134
+ rb_define_method(rb_cCdCanvas, "CanvasGetSize", rb_cdCanvasGetSize, 4);
1135
+ rb_define_method(rb_cCdCanvas, "CanvasUpdateYAxis", rb_cdCanvasUpdateYAxis, 1);
1136
+ rb_define_method(rb_cCdCanvas, "fCanvasUpdateYAxis", rb_cdfCanvasUpdateYAxis, 1);
1137
+ rb_define_method(rb_cCdCanvas, "CanvasInvertYAxis", rb_cdCanvasInvertYAxis, 1);
1138
+ rb_define_method(rb_cCdCanvas, "fCanvasInvertYAxis", rb_cdfCanvasInvertYAxis, 1);
1139
+ rb_define_method(rb_cCdCanvas, "CanvasMM2Pixel", rb_cdCanvasMM2Pixel, 2);
1140
+ rb_define_method(rb_cCdCanvas, "CanvasPixel2MM", rb_cdCanvasPixel2MM, 2);
1141
+ rb_define_method(rb_cCdCanvas, "fCanvasMM2Pixel", rb_cdfCanvasMM2Pixel, 2);
1142
+ rb_define_method(rb_cCdCanvas, "fCanvasPixel2MM", rb_cdfCanvasPixel2MM, 2);
1143
+ rb_define_method(rb_cCdCanvas, "CanvasOrigin", rb_cdCanvasOrigin, 2);
1144
+ rb_define_method(rb_cCdCanvas, "fCanvasOrigin", rb_cdfCanvasOrigin, 2);
1145
+ rb_define_method(rb_cCdCanvas, "CanvasGetOrigin", rb_cdCanvasGetOrigin, 0);
1146
+ rb_define_method(rb_cCdCanvas, "fCanvasGetOrigin", rb_cdfCanvasGetOrigin, 2);
1147
+ rb_define_method(rb_cCdCanvas, "CanvasTransform", rb_cdCanvasTransform, 1);
1148
+ rb_define_method(rb_cCdCanvas, "CanvasGetTransform", rb_cdCanvasGetTransform, 0);
1149
+ rb_define_method(rb_cCdCanvas, "CanvasTransformMultiply", rb_cdCanvasTransformMultiply, 1);
1150
+ rb_define_method(rb_cCdCanvas, "CanvasTransformRotate", rb_cdCanvasTransformRotate, 1);
1151
+ rb_define_method(rb_cCdCanvas, "CanvasTransformScale", rb_cdCanvasTransformScale, 2);
1152
+ rb_define_method(rb_cCdCanvas, "CanvasTransformTranslate", rb_cdCanvasTransformTranslate, 2);
1153
+ rb_define_method(rb_cCdCanvas, "CanvasTransformPoint", rb_cdCanvasTransformPoint,2);
1154
+ rb_define_method(rb_cCdCanvas, "fCanvasTransformPoint", rb_cdfCanvasTransformPoint, 2);
1155
+ rb_define_method(rb_cCdCanvas, "CanvasClip", rb_cdCanvasClip, 1);
1156
+ rb_define_method(rb_cCdCanvas, "CanvasClipArea", rb_cdCanvasClipArea, 4);
1157
+ rb_define_method(rb_cCdCanvas, "CanvasGetClipArea", rb_cdCanvasGetClipArea, 0);
1158
+ rb_define_method(rb_cCdCanvas, "fCanvasClipArea", rb_cdfCanvasClipArea, 4);
1159
+ rb_define_method(rb_cCdCanvas, "fCanvasGetClipArea", rb_cdfCanvasGetClipArea, 0);
1160
+ rb_define_method(rb_cCdCanvas, "CanvasIsPointInRegion", rb_cdCanvasIsPointInRegion, 2);
1161
+ rb_define_method(rb_cCdCanvas, "CanvasOffsetRegion", rb_cdCanvasOffsetRegion, 2);
1162
+ rb_define_method(rb_cCdCanvas, "CanvasGetRegionBox", rb_cdCanvasGetRegionBox, 0);
1163
+ rb_define_method(rb_cCdCanvas, "CanvasRegionCombineMode", rb_cdCanvasRegionCombineMode, 1);
1164
+ rb_define_method(rb_cCdCanvas, "CanvasPixel", rb_cdCanvasPixel, 3);
1165
+ rb_define_method(rb_cCdCanvas, "CanvasMark", rb_cdCanvasMark, 2);
1166
+ rb_define_method(rb_cCdCanvas, "CanvasLine", rb_cdCanvasLine, 4);
1167
+ rb_define_method(rb_cCdCanvas, "CanvasBegin", rb_cdCanvasBegin, 1);
1168
+ rb_define_method(rb_cCdCanvas, "CanvasVertex", rb_cdCanvasVertex, 2);
1169
+ rb_define_method(rb_cCdCanvas, "CanvasEnd", rb_cdCanvasEnd, 0);
1170
+ rb_define_method(rb_cCdCanvas, "CanvasRect", rb_cdCanvasRect, 4);
1171
+ rb_define_method(rb_cCdCanvas, "CanvasBox", rb_cdCanvasBox, 4);
1172
+ rb_define_method(rb_cCdCanvas, "CanvasArc", rb_cdCanvasArc, 6);
1173
+ rb_define_method(rb_cCdCanvas, "CanvasSector", rb_cdCanvasSector, 6);
1174
+ rb_define_method(rb_cCdCanvas, "CanvasChord", rb_cdCanvasChord, 6);
1175
+ rb_define_method(rb_cCdCanvas, "CanvasText", rb_cdCanvasText, 3);
1176
+ rb_define_method(rb_cCdCanvas, "fCanvasLine", rb_cdfCanvasLine, 4);
1177
+ rb_define_method(rb_cCdCanvas, "fCanvasVertex", rb_cdfCanvasVertex, 2);
1178
+ rb_define_method(rb_cCdCanvas, "fCanvasRect", rb_cdfCanvasRect, 4);
1179
+ rb_define_method(rb_cCdCanvas, "fCanvasBox", rb_cdfCanvasBox, 4);
1180
+ rb_define_method(rb_cCdCanvas, "fCanvasArc", rb_cdfCanvasArc, 6);
1181
+ rb_define_method(rb_cCdCanvas, "fCanvasSector", rb_cdfCanvasSector, 6);
1182
+ rb_define_method(rb_cCdCanvas, "fCanvasChord", rb_cdfCanvasChord, 6);
1183
+ rb_define_method(rb_cCdCanvas, "fCanvasText", rb_cdfCanvasText, 3);
1184
+ rb_define_method(rb_cCdCanvas, "CanvasSetBackground", rb_cdCanvasSetBackground, 1);
1185
+ rb_define_method(rb_cCdCanvas, "CanvasSetForeground", rb_cdCanvasSetForeground, 1);
1186
+ rb_define_method(rb_cCdCanvas, "CanvasBackground", rb_cdCanvasBackground, 1);
1187
+ rb_define_method(rb_cCdCanvas, "CanvasForeground", rb_cdCanvasForeground, 1);
1188
+ rb_define_method(rb_cCdCanvas, "CanvasBackOpacity", rb_cdCanvasBackOpacity, 1);
1189
+ rb_define_method(rb_cCdCanvas, "CanvasWriteMode", rb_cdCanvasWriteMode, 1);
1190
+ rb_define_method(rb_cCdCanvas, "CanvasLineStyle", rb_cdCanvasLineStyle, 1);
1191
+ rb_define_method(rb_cCdCanvas, "CanvasLineStyleDashes", rb_cdCanvasLineStyleDashes, 1);
1192
+ rb_define_method(rb_cCdCanvas, "CanvasLineWidth", rb_cdCanvasLineWidth, 1);
1193
+ rb_define_method(rb_cCdCanvas, "CanvasLineJoin", rb_cdCanvasLineJoin, 1);
1194
+ rb_define_method(rb_cCdCanvas, "CanvasLineCap", rb_cdCanvasLineCap, 1);
1195
+ rb_define_method(rb_cCdCanvas, "CanvasInteriorStyle", rb_cdCanvasInteriorStyle, 1);
1196
+ rb_define_method(rb_cCdCanvas, "CanvasHatch", rb_cdCanvasHatch, 1);
1197
+ rb_define_method(rb_cCdCanvas, "CanvasStipple", rb_cdCanvasStipple, 3);
1198
+ rb_define_method(rb_cCdCanvas, "CanvasGetStipple", rb_cdCanvasGetStipple, 2);
1199
+ rb_define_method(rb_cCdCanvas, "CanvasPattern", rb_cdCanvasPattern, 3);
1200
+ rb_define_method(rb_cCdCanvas, "CanvasGetPattern", rb_cdCanvasGetPattern, 0);
1201
+ rb_define_method(rb_cCdCanvas, "CanvasFillMode", rb_cdCanvasFillMode, 1);
1202
+ rb_define_method(rb_cCdCanvas, "CanvasFont", rb_cdCanvasFont, 3);
1203
+ rb_define_method(rb_cCdCanvas, "CanvasGetFont", rb_cdCanvasGetFont, 0);
1204
+ rb_define_method(rb_cCdCanvas, "CanvasNativeFont", rb_cdCanvasNativeFont, 1);
1205
+ rb_define_method(rb_cCdCanvas, "CanvasTextAlignment", rb_cdCanvasTextAlignment, 1);
1206
+ rb_define_method(rb_cCdCanvas, "CanvasTextOrientation", rb_cdCanvasTextOrientation, 1);
1207
+ rb_define_method(rb_cCdCanvas, "CanvasMarkType", rb_cdCanvasMarkType, 1);
1208
+ rb_define_method(rb_cCdCanvas, "CanvasMarkSize", rb_cdCanvasMarkSize, 1);
1209
+ rb_define_method(rb_cCdCanvas, "CanvasVectorText", rb_cdCanvasVectorText, 3);
1210
+ rb_define_method(rb_cCdCanvas, "CanvasMultiLineVectorText", rb_cdCanvasMultiLineVectorText, 3);
1211
+ rb_define_method(rb_cCdCanvas, "CanvasVectorFont", rb_cdCanvasVectorFont, 1);
1212
+ rb_define_method(rb_cCdCanvas, "CanvasVectorTextDirection", rb_cdCanvasVectorTextDirection, 4);
1213
+ rb_define_method(rb_cCdCanvas, "CanvasVectorTextTransform", rb_cdCanvasVectorTextTransform, 1);
1214
+ rb_define_method(rb_cCdCanvas, "CanvasVectorTextSize", rb_cdCanvasVectorTextSize, 3);
1215
+ rb_define_method(rb_cCdCanvas, "CanvasVectorCharSize", rb_cdCanvasVectorCharSize, 1);
1216
+ rb_define_method(rb_cCdCanvas, "CanvasGetVectorTextSize", rb_cdCanvasGetVectorTextSize, 1);
1217
+ rb_define_method(rb_cCdCanvas, "CanvasGetVectorTextBounds", rb_cdCanvasGetVectorTextBounds, 4);
1218
+ rb_define_method(rb_cCdCanvas, "CanvasGetFontDim", rb_cdCanvasGetFontDim, 0);
1219
+ rb_define_method(rb_cCdCanvas, "CanvasGetTextSize", rb_cdCanvasGetTextSize, 1);
1220
+ rb_define_method(rb_cCdCanvas, "CanvasGetTextBox", rb_cdCanvasGetTextBox, 3);
1221
+ rb_define_method(rb_cCdCanvas, "CanvasGetTextBounds", rb_cdCanvasGetTextBounds, 3);
1222
+ rb_define_method(rb_cCdCanvas, "CanvasGetColorPlanes", rb_cdCanvasGetColorPlanes, 0);
1223
+ rb_define_method(rb_cCdCanvas, "CanvasPalette", rb_cdCanvasPalette, 3);
1224
+ rb_define_method(rb_cCdCanvas, "CanvasGetImageRGB", rb_cdCanvasGetImageRGB, 4);
1225
+ rb_define_method(rb_cCdCanvas, "CanvasPutImageRectRGB", rb_cdCanvasPutImageRectRGB, 13);
1226
+ rb_define_method(rb_cCdCanvas, "CanvasPutImageRectRGBA", rb_cdCanvasPutImageRectRGBA, 14);
1227
+ rb_define_method(rb_cCdCanvas, "CanvasPutImageRectMap", rb_cdCanvasPutImageRectMap, 12);
1228
+ rb_define_method(rb_cCdCanvas, "CanvasCreateImage", rb_cdCanvasCreateImage, 2);
1229
+ rb_define_module_function(rb_mCd, "KillImage", rb_cdKillImage, 1);
1230
+ rb_define_method(rb_cCdCanvas, "CanvasGetImage", rb_cdCanvasGetImage, 3);
1231
+ rb_define_method(rb_cCdCanvas, "CanvasPutImageRect", rb_cdCanvasPutImageRect, 7);
1232
+ rb_define_method(rb_cCdCanvas, "CanvasScrollArea", rb_cdCanvasScrollArea, 6);
1233
+ rb_define_module_function(rb_mCd, "CreateBitmap", rb_cdCreateBitmap, 3);
1234
+ rb_define_module_function(rb_mCd, "InitBitmap", rb_cdInitBitmap, -1);
1235
+ rb_define_module_function(rb_mCd, "KillBitmap", rb_cdKillBitmap, 1);
1236
+ rb_define_module_function(rb_mCd, "BitmapGetData", rb_cdBitmapGetData, 2);
1237
+ rb_define_module_function(rb_mCd, "BitmapSetRect", rb_cdBitmapSetRect, 5);
1238
+ rb_define_method(rb_cCdCanvas, "CanvasPutBitmap", rb_cdCanvasPutBitmap, 5);
1239
+ rb_define_method(rb_cCdCanvas, "CanvasGetBitmap", rb_cdCanvasGetBitmap, 3);
1240
+ rb_define_module_function(rb_mCd, "BitmapRGB2Map", rb_cdBitmapRGB2Map, 2);
1241
+ rb_define_module_function(rb_mCd, "EncodeColor", rb_cdEncodeColor, 3);
1242
+ rb_define_module_function(rb_mCd, "DecodeColor", rb_cdDecodeColor, 1);
1243
+ rb_define_module_function(rb_mCd, "DecodeAlpha", rb_cdDecodeAlpha, 1);
1244
+ rb_define_module_function(rb_mCd, "EncodeAlpha", rb_cdEncodeAlpha, 2);
1245
+ rb_define_module_function(rb_mCd, "Alpha", rb_cdAlpha, 1);
1246
+ rb_define_module_function(rb_mCd, "Reserved", rb_cdReserved, 1);
1247
+ rb_define_module_function(rb_mCd, "Red", rb_cdRed, 1);
1248
+ rb_define_module_function(rb_mCd, "Green", rb_cdGreen, 1);
1249
+ rb_define_module_function(rb_mCd, "Blue", rb_cdBlue, 1);
1250
+ rb_define_module_function(rb_mCd, "RGB2Map", rb_cdRGB2Map, 8);
1251
+ rb_define_module_function(rb_mCd, "ContextIup", rb_cdContextIup, 0);
1252
+ rb_define_module_function(rb_mCd, "CD_IUP", rb_cdContextIup, 0);
1253
+ rb_define_module_function(rb_mCd, "Iup", rb_cdContextIup, 0);
1254
+ rb_define_module_function(rb_mCd, "ContextPDF", rb_cdContextPDF, 0);
1255
+
1256
+ rb_IupOpen(rb_mIup);
1257
+ IupControlsOpen();
1258
+ IupSetLanguage(IUP_ENGLISH);
1259
+
1260
+ atexit(exit_handler);
1261
+ }