ruby-iup 0.0.1-i386-mswin32 → 0.0.2-i386-mswin32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. data/examples/ctrl/degrade.rb +5 -2
  2. data/examples/ctrl/iupgauge.rb +5 -5
  3. data/examples/ctrl/iupplot2.rb +2 -5
  4. data/examples/dlg/iupalarm.rb +3 -1
  5. data/examples/elem/iupbutton.rb +42 -59
  6. data/examples/elem/iupcanvas.rb +4 -2
  7. data/examples/elem/iupcanvas2.rb +9 -8
  8. data/examples/elem/iupcanvas3.rb +19 -29
  9. data/examples/elem/iupdialog.rb +3 -7
  10. data/examples/elem/progressbar.rb +104 -118
  11. data/ext/iup-win32/cd.dll +0 -0
  12. data/ext/iup-win32/cd.lib +0 -0
  13. data/ext/iup-win32/cdcontextplus.dll +0 -0
  14. data/ext/iup-win32/cdcontextplus.lib +0 -0
  15. data/ext/iup-win32/cdpdf.dll +0 -0
  16. data/ext/iup-win32/cdpdf.lib +0 -0
  17. data/ext/iup-win32/freetype6.dll +0 -0
  18. data/ext/iup-win32/freetype6.lib +0 -0
  19. data/ext/iup-win32/im.dll +0 -0
  20. data/ext/iup-win32/im.lib +0 -0
  21. data/ext/iup-win32/im_avi.dll +0 -0
  22. data/ext/iup-win32/im_avi.lib +0 -0
  23. data/ext/iup-win32/im_capture.dll +0 -0
  24. data/ext/iup-win32/im_capture.lib +0 -0
  25. data/ext/iup-win32/im_fftw.dll +0 -0
  26. data/ext/iup-win32/im_fftw.lib +0 -0
  27. data/ext/iup-win32/im_jp2.dll +0 -0
  28. data/ext/iup-win32/im_jp2.lib +0 -0
  29. data/ext/iup-win32/im_process.dll +0 -0
  30. data/ext/iup-win32/im_process.lib +0 -0
  31. data/ext/iup-win32/im_wmv.dll +0 -0
  32. data/ext/iup-win32/im_wmv.lib +0 -0
  33. data/ext/iup-win32/imlua_capture51.dll +0 -0
  34. data/ext/iup-win32/imlua_capture51.lib +0 -0
  35. data/ext/iup-win32/imlua_wmv51.dll +0 -0
  36. data/ext/iup-win32/imlua_wmv51.lib +0 -0
  37. data/ext/iup-win32/iup.dll +0 -0
  38. data/ext/iup-win32/iup.lib +0 -0
  39. data/ext/iup-win32/iup_pplot.dll +0 -0
  40. data/ext/iup-win32/iup_pplot.lib +0 -0
  41. data/ext/iup-win32/iupcd.dll +0 -0
  42. data/ext/iup-win32/iupcd.lib +0 -0
  43. data/ext/iup-win32/iupcontrols.dll +0 -0
  44. data/ext/iup-win32/iupcontrols.lib +0 -0
  45. data/ext/iup-win32/iupgl.dll +0 -0
  46. data/ext/iup-win32/iupgl.lib +0 -0
  47. data/ext/iup-win32/iupgtk.dll +0 -0
  48. data/ext/iup-win32/iupgtk.lib +0 -0
  49. data/ext/iup-win32/iupim.dll +0 -0
  50. data/ext/iup-win32/iupim.lib +0 -0
  51. data/ext/iup-win32/iupimglib.dll +0 -0
  52. data/ext/iup-win32/iupimglib.lib +0 -0
  53. data/ext/iup-win32/iupole.dll +0 -0
  54. data/ext/iup-win32/iupole.lib +0 -0
  55. data/ext/iup-win32/iupstub.lib +0 -0
  56. data/ext/iup-win32/pdflib.dll +0 -0
  57. data/ext/iup-win32/pdflib.lib +0 -0
  58. data/ext/iup.c +3 -351
  59. data/ext/rb_iup.h +48 -15
  60. data/ext/rb_iupcb.h +1 -0
  61. data/ext/rb_iupcells.h +1 -0
  62. data/ext/rb_iupcolorbar.h +1 -4
  63. data/ext/rb_iupcontrols.h +0 -5
  64. data/ext/rb_iupdial.h +1 -0
  65. data/ext/rb_iupgauge.h +1 -0
  66. data/ext/rb_iupgc.h +0 -1
  67. data/ext/rb_iupmatrix.h +1 -0
  68. data/ext/rb_iupsbox.h +0 -1
  69. data/ext/rb_iuptabs.h +1 -0
  70. data/ext/rb_iuptree.h +1 -0
  71. data/ext/rb_iupval.h +1 -0
  72. data/lib/iup.so +0 -0
  73. metadata +15 -16
  74. data/ext/iup-win32/cdlua51.lib +0 -0
  75. data/ext/iup-win32/cdluacontextplus51.lib +0 -0
  76. data/ext/iup-win32/cdluaim51.lib +0 -0
  77. data/ext/iup-win32/cdluapdf51.lib +0 -0
  78. data/ext/iup-win32/iuplua51.lib +0 -0
  79. data/ext/iup-win32/iuplua_pplot51.lib +0 -0
  80. data/ext/iup-win32/iupluacd51.lib +0 -0
  81. data/ext/iup-win32/iupluacontrols51.lib +0 -0
  82. data/ext/iup-win32/iupluagl51.lib +0 -0
  83. data/ext/iup-win32/iupluaim51.lib +0 -0
  84. data/ext/iup-win32/iupluaimglib51.lib +0 -0
  85. data/ext/iup-win32/iupluaole51.lib +0 -0
  86. data/ext/rb_iupcbox.h +0 -40
  87. data/ext/rb_iupspeech.h +0 -25
data/ext/rb_iupgc.h CHANGED
@@ -1,6 +1,5 @@
1
1
  #include <ruby.h>
2
2
  #include "iup.h"
3
- #include "iupgc.h"
4
3
 
5
4
  VALUE rb_IupGetColor(VALUE self,VALUE v_x,VALUE v_y)
6
5
  {
data/ext/rb_iupmatrix.h CHANGED
@@ -15,6 +15,7 @@ VALUE rb_IupMatrix(int argc,VALUE *argv,VALUE self)
15
15
  }
16
16
  if(v_action!=Qnil)
17
17
  action = RSTRING(v_action)->ptr;
18
+ IupControlsOpen();
18
19
  v = IupMatrix(action);
19
20
  if(argc==1 && TYPE(argv[0])==T_HASH)
20
21
  rb_set_attribute(v,argv[0]);
data/ext/rb_iupsbox.h CHANGED
@@ -1,6 +1,5 @@
1
1
  #include <ruby.h>
2
2
  #include "iup.h"
3
- #include "iupsbox.h"
4
3
 
5
4
  VALUE rb_IupSbox(int argc,VALUE *argv,VALUE self)
6
5
  {
data/ext/rb_iuptabs.h CHANGED
@@ -19,6 +19,7 @@ VALUE rb_IupTabsv(int argc,VALUE *argv,VALUE self)
19
19
  params[i] = (Ihandle*)NUM2UINT(rb_iv_get(node,"@ihandle"));
20
20
  }
21
21
  params[i] = NULL;
22
+ IupControlsOpen();
22
23
  v = IupTabsv(params);
23
24
  if(TYPE(v_hash)==T_HASH)
24
25
  rb_set_attribute(v,v_hash);
data/ext/rb_iuptree.h CHANGED
@@ -6,6 +6,7 @@ VALUE rb_IupTree(int argc,VALUE *argv,VALUE self)
6
6
  {
7
7
  extern VALUE rb_cIupTree;
8
8
  Ihandle* v;
9
+ IupControlsOpen();
9
10
  v = IupTree();
10
11
  if(argc==1 && TYPE(argv[0])==T_HASH)
11
12
  rb_set_attribute(v,argv[0]);
data/ext/rb_iupval.h CHANGED
@@ -15,6 +15,7 @@ VALUE rb_IupVal(int argc,VALUE *argv,VALUE self)
15
15
  }
16
16
  if(v_type!=Qnil)
17
17
  type = RSTRING(v_type)->ptr;
18
+ IupControlsOpen();
18
19
  v = IupVal(type);
19
20
  if(argc==1 && TYPE(argv[0])==T_HASH)
20
21
  rb_set_attribute(v,argv[0]);
data/lib/iup.so CHANGED
Binary file
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.3
3
3
  specification_version: 1
4
4
  name: ruby-iup
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2008-12-08 00:00:00 +09:00
6
+ version: 0.0.2
7
+ date: 2008-12-21 00:00:00 +09:00
8
8
  summary: IUP Interface for Ruby
9
9
  require_paths:
10
10
  - lib
@@ -37,22 +37,29 @@ files:
37
37
  - ext/iup-win32/cd.lib
38
38
  - ext/iup-win32/cdcontextplus.dll
39
39
  - ext/iup-win32/cdcontextplus.lib
40
- - ext/iup-win32/cdlua51.lib
41
- - ext/iup-win32/cdluacontextplus51.lib
42
- - ext/iup-win32/cdluaim51.lib
43
- - ext/iup-win32/cdluapdf51.lib
44
40
  - ext/iup-win32/cdpdf.dll
45
41
  - ext/iup-win32/cdpdf.lib
46
42
  - ext/iup-win32/freetype6.dll
47
43
  - ext/iup-win32/freetype6.lib
48
44
  - ext/iup-win32/im.dll
45
+ - ext/iup-win32/im.lib
46
+ - ext/iup-win32/imlua_capture51.dll
47
+ - ext/iup-win32/imlua_capture51.lib
48
+ - ext/iup-win32/imlua_wmv51.dll
49
+ - ext/iup-win32/imlua_wmv51.lib
49
50
  - ext/iup-win32/im_avi.dll
51
+ - ext/iup-win32/im_avi.lib
50
52
  - ext/iup-win32/im_capture.dll
53
+ - ext/iup-win32/im_capture.lib
51
54
  - ext/iup-win32/im_ecw.dll
52
55
  - ext/iup-win32/im_fftw.dll
56
+ - ext/iup-win32/im_fftw.lib
53
57
  - ext/iup-win32/im_jp2.dll
58
+ - ext/iup-win32/im_jp2.lib
54
59
  - ext/iup-win32/im_process.dll
60
+ - ext/iup-win32/im_process.lib
55
61
  - ext/iup-win32/im_wmv.dll
62
+ - ext/iup-win32/im_wmv.lib
56
63
  - ext/iup-win32/iup.dll
57
64
  - ext/iup-win32/iup.lib
58
65
  - ext/iup-win32/iupcd.dll
@@ -61,18 +68,12 @@ files:
61
68
  - ext/iup-win32/iupcontrols.lib
62
69
  - ext/iup-win32/iupgl.dll
63
70
  - ext/iup-win32/iupgl.lib
71
+ - ext/iup-win32/iupgtk.dll
72
+ - ext/iup-win32/iupgtk.lib
64
73
  - ext/iup-win32/iupim.dll
65
74
  - ext/iup-win32/iupim.lib
66
75
  - ext/iup-win32/iupimglib.dll
67
76
  - ext/iup-win32/iupimglib.lib
68
- - ext/iup-win32/iuplua51.lib
69
- - ext/iup-win32/iupluacd51.lib
70
- - ext/iup-win32/iupluacontrols51.lib
71
- - ext/iup-win32/iupluagl51.lib
72
- - ext/iup-win32/iupluaim51.lib
73
- - ext/iup-win32/iupluaimglib51.lib
74
- - ext/iup-win32/iupluaole51.lib
75
- - ext/iup-win32/iuplua_pplot51.lib
76
77
  - ext/iup-win32/iupole.dll
77
78
  - ext/iup-win32/iupole.lib
78
79
  - ext/iup-win32/iupstub.lib
@@ -85,7 +86,6 @@ files:
85
86
  - ext/rb_cd.h
86
87
  - ext/rb_iup.h
87
88
  - ext/rb_iupcb.h
88
- - ext/rb_iupcbox.h
89
89
  - ext/rb_iupcells.h
90
90
  - ext/rb_iupcolorbar.h
91
91
  - ext/rb_iupcompat.h
@@ -101,7 +101,6 @@ files:
101
101
  - ext/rb_iupmatrix.h
102
102
  - ext/rb_iupole.h
103
103
  - ext/rb_iupsbox.h
104
- - ext/rb_iupspeech.h
105
104
  - ext/rb_iupspin.h
106
105
  - ext/rb_iuptabs.h
107
106
  - ext/rb_iuptree.h
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/rb_iupcbox.h DELETED
@@ -1,40 +0,0 @@
1
- #include <ruby.h>
2
- #include "iup.h"
3
- #include "iupcbox.h"
4
-
5
- VALUE rb_IupCboxv(int argc,VALUE *argv,VALUE self)
6
- {
7
- extern VALUE rb_cIupCbox;
8
- Ihandle* v;
9
- int i;
10
- Ihandle *params[100];
11
- VALUE v_params,v_hash;
12
- VALUE node;
13
- rb_scan_args(argc,argv,"11",&v_params,&v_hash);
14
- for(i=0;i<RARRAY(v_params)->len;i++) {
15
- node = RARRAY(v_params)->ptr[i];
16
- params[i] = (Ihandle*)NUM2UINT(rb_iv_get(node,"@ihandle"));
17
- }
18
- params[i] = NULL;
19
- v = IupCboxv(params);
20
- if(TYPE(v_hash)==T_HASH)
21
- rb_set_attribute(v,v_hash);
22
- if(v)
23
- return rb_funcall(rb_cIupCbox,rb_intern("new"),1,UINT2NUM((unsigned)v));
24
- return Qnil;
25
- }
26
-
27
- VALUE rb_IupCboxBuilderv(VALUE self,VALUE v_params)
28
- {
29
- Ihandle* v;
30
- int i;
31
- Ihandle *params[100];
32
- VALUE node;
33
- for(i=0;i<RARRAY(v_params)->len;i++) {
34
- node = RARRAY(v_params)->ptr[i];
35
- params[i] = (Ihandle*)NUM2UINT(rb_iv_get(node,"@ihandle"));
36
- }
37
- params[i] = NULL;
38
- v = IupCboxBuilderv(params);
39
- return UINT2NUM((unsigned)v);
40
- }
data/ext/rb_iupspeech.h DELETED
@@ -1,25 +0,0 @@
1
- #include <ruby.h>
2
- #include "iup.h"
3
- #include "iupspeech.h"
4
-
5
- /*
6
- VALUE rb_IupSpeechOpen(VALUE self)
7
- {
8
- int v;
9
- v = IupSpeechOpen();
10
- return INT2FIX((int)v);
11
- }
12
-
13
- VALUE rb_IupSpeechClose(VALUE self)
14
- {
15
- IupSpeechClose();
16
- return Qnil;
17
- }
18
-
19
- VALUE rb_IupSpeech(VALUE self)
20
- {
21
- Ihandle* v;
22
- v = IupSpeech();
23
- return INT2FIX((int)v);
24
- }
25
- */