fxruby 1.6.29-x64-mingw32 → 1.6.30-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/History.txt +11 -0
  3. data/Manifest.txt +5 -0
  4. data/Rakefile +8 -2
  5. data/examples/gltest.rb +0 -7
  6. data/examples/groupbox.rb +5 -3
  7. data/examples/thread.rb +55 -0
  8. data/ext/fox16_c/FXRbApp.cpp +67 -5
  9. data/ext/fox16_c/FXRuby.cpp +142 -110
  10. data/ext/fox16_c/extconf.rb +36 -28
  11. data/ext/fox16_c/gvl_wrappers.cpp +12 -0
  12. data/ext/fox16_c/include/FXRbApp.h +41 -6
  13. data/ext/fox16_c/include/FXRbBitmap.h +12 -12
  14. data/ext/fox16_c/include/FXRbCommon.h +3 -0
  15. data/ext/fox16_c/include/FXRbCursor.h +2 -2
  16. data/ext/fox16_c/include/FXRbDC.h +62 -62
  17. data/ext/fox16_c/include/FXRbDialogBox.h +2 -2
  18. data/ext/fox16_c/include/FXRbDockBar.h +3 -3
  19. data/ext/fox16_c/include/FXRbDockSite.h +4 -4
  20. data/ext/fox16_c/include/FXRbDrawable.h +1 -1
  21. data/ext/fox16_c/include/FXRbFileDict.h +3 -3
  22. data/ext/fox16_c/include/FXRbFoldingList.h +28 -28
  23. data/ext/fox16_c/include/FXRbFont.h +18 -18
  24. data/ext/fox16_c/include/FXRbGLCanvas.h +4 -4
  25. data/ext/fox16_c/include/FXRbGLObject.h +8 -8
  26. data/ext/fox16_c/include/FXRbGLShape.h +1 -1
  27. data/ext/fox16_c/include/FXRbGLViewer.h +3 -3
  28. data/ext/fox16_c/include/FXRbHeader.h +7 -7
  29. data/ext/fox16_c/include/FXRbIconList.h +28 -28
  30. data/ext/fox16_c/include/FXRbIconSource.h +12 -12
  31. data/ext/fox16_c/include/FXRbId.h +3 -3
  32. data/ext/fox16_c/include/FXRbImage.h +19 -19
  33. data/ext/fox16_c/include/FXRbList.h +21 -21
  34. data/ext/fox16_c/include/FXRbListBox.h +1 -1
  35. data/ext/fox16_c/include/FXRbMDIChild.h +4 -4
  36. data/ext/fox16_c/include/FXRbMDIClient.h +4 -4
  37. data/ext/fox16_c/include/FXRbObject.h +2 -2
  38. data/ext/fox16_c/include/FXRbPopup.h +2 -2
  39. data/ext/fox16_c/include/FXRbRealSpinner.h +1 -1
  40. data/ext/fox16_c/include/FXRbScrollArea.h +4 -4
  41. data/ext/fox16_c/include/FXRbShutter.h +1 -1
  42. data/ext/fox16_c/include/FXRbSpinner.h +1 -1
  43. data/ext/fox16_c/include/FXRbStream.h +3 -3
  44. data/ext/fox16_c/include/FXRbTabBar.h +1 -1
  45. data/ext/fox16_c/include/FXRbTable.h +53 -53
  46. data/ext/fox16_c/include/FXRbText.h +23 -23
  47. data/ext/fox16_c/include/FXRbTopWindow.h +5 -5
  48. data/ext/fox16_c/include/FXRbTranslator.h +1 -1
  49. data/ext/fox16_c/include/FXRbTreeList.h +28 -28
  50. data/ext/fox16_c/include/FXRbTreeListBox.h +1 -1
  51. data/ext/fox16_c/include/FXRbWindow.h +31 -31
  52. data/ext/fox16_c/include/FXRuby.h +200 -94
  53. data/ext/fox16_c/include/gvl_wrappers.h +594 -0
  54. data/lib/2.0/fox16_c.so +0 -0
  55. data/lib/2.1/fox16_c.so +0 -0
  56. data/lib/2.2/fox16_c.so +0 -0
  57. data/lib/fox16.rb +1 -0
  58. data/lib/fox16/thread.rb +51 -0
  59. data/lib/fox16/version.rb +1 -1
  60. data/lib/x64-mingw32/libFOX-1.6-0.dll +0 -0
  61. data/lib/x64-mingw32/libfxscintilla-20.dll +0 -0
  62. data/lib/x64-mingw32/libgcc_s_sjlj-1.dll +0 -0
  63. data/lib/x64-mingw32/libjpeg-8.dll +0 -0
  64. data/lib/x64-mingw32/libpng15-15.dll +0 -0
  65. data/lib/x64-mingw32/libstdc++-6.dll +0 -0
  66. data/lib/x64-mingw32/libtiff-5.dll +0 -0
  67. data/lib/x64-mingw32/libwinpthread-1.dll +0 -0
  68. data/lib/x64-mingw32/zlib1.dll +0 -0
  69. data/rdoc-sources/FXApp.rb +5 -0
  70. data/rdoc-sources/FXId.rb +5 -0
  71. data/swig-interfaces/FXApp.i +14 -78
  72. data/swig-interfaces/macros.i +56 -0
  73. data/test/TC_FXApp.rb +60 -10
  74. data/test/TC_FXJPGImage.rb +47 -0
  75. metadata +24 -103
  76. checksums.yaml.gz.sig +0 -0
  77. data.tar.gz.sig +0 -3
  78. metadata.gz.sig +0 -0
@@ -28,14 +28,14 @@
28
28
  #define FXRBDIALOGBOX_H
29
29
 
30
30
  #define DECLARE_FXDIALOGBOX_STUBS(klass) \
31
- inline FXuint klass ## _execute(klass* self,FXuint placement){ \
31
+ inline FXuint klass ## _execute_gvl(klass* self,FXuint placement){ \
32
32
  return self->klass::execute(placement); \
33
33
  }
34
34
 
35
35
 
36
36
  #define IMPLEMENT_FXDIALOGBOX_STUBS(cls) \
37
37
  FXuint cls::execute(FXuint placement){ \
38
- return FXRbCallUIntMethod(this,rb_intern("execute"),placement); \
38
+ return FXRbCallUIntMethod(this,"execute",placement); \
39
39
  }
40
40
 
41
41
 
@@ -40,13 +40,13 @@
40
40
 
41
41
  #define IMPLEMENT_FXDOCKBAR_STUBS(cls) \
42
42
  void cls::dock(FXDockSite* docksite,FXWindow* before,FXbool notify){ \
43
- FXRbCallVoidMethod(this,rb_intern("dock"),docksite,before,notify); \
43
+ FXRbCallVoidMethod(this,"dock",docksite,before,notify); \
44
44
  } \
45
45
  void cls::dock(FXDockSite* docksite,FXint localx,FXint localy,FXbool notify){ \
46
- FXRbCallVoidMethod(this,rb_intern("dock"),docksite,localx,localy,notify); \
46
+ FXRbCallVoidMethod(this,"dock",docksite,localx,localy,notify); \
47
47
  } \
48
48
  void cls::undock(FXint rootx,FXint rooty, FXbool notify){ \
49
- FXRbCallVoidMethod(this,rb_intern("undock"),rootx,rooty,notify); \
49
+ FXRbCallVoidMethod(this,"undock",rootx,rooty,notify); \
50
50
  }
51
51
 
52
52
 
@@ -43,16 +43,16 @@
43
43
 
44
44
  #define IMPLEMENT_FXDOCKSITE_STUBS(cls) \
45
45
  void cls::moveToolBar(FXDockBar* bar,FXint barx,FXint bary){ \
46
- FXRbCallVoidMethod(this,rb_intern("moveToolBar"),bar,barx,bary); \
46
+ FXRbCallVoidMethod(this,"moveToolBar",bar,barx,bary); \
47
47
  } \
48
48
  void cls::dockToolBar(FXDockBar* bar,FXWindow* before){ \
49
- FXRbCallVoidMethod(this,rb_intern("dockToolBar"),bar,before); \
49
+ FXRbCallVoidMethod(this,"dockToolBar",bar,before); \
50
50
  } \
51
51
  void cls::dockToolBar(FXDockBar* bar,FXint barx,FXint bary){ \
52
- FXRbCallVoidMethod(this,rb_intern("dockToolBar"),bar,barx,bary); \
52
+ FXRbCallVoidMethod(this,"dockToolBar",bar,barx,bary); \
53
53
  } \
54
54
  void cls::undockToolBar(FXDockBar* bar){ \
55
- FXRbCallVoidMethod(this,rb_intern("undockToolBar"),bar); \
55
+ FXRbCallVoidMethod(this,"undockToolBar",bar); \
56
56
  }
57
57
 
58
58
 
@@ -35,7 +35,7 @@ inline void klass ## _resize(klass* self,FXint w,FXint h){ \
35
35
 
36
36
  #define IMPLEMENT_FXDRAWABLE_STUBS(cls) \
37
37
  void cls::resize(FXint w,FXint h){ \
38
- FXRbCallVoidMethod(this,rb_intern("resize"),w,h); \
38
+ FXRbCallVoidMethod(this, "resize", w, h); \
39
39
  }
40
40
 
41
41
 
@@ -61,13 +61,13 @@ inline FXFileAssoc* klass ## _findExecBinding(klass* self,const FXchar* pathname
61
61
 
62
62
  #define IMPLEMENT_FXFILEDICT_STUBS(cls) \
63
63
  FXFileAssoc* cls::findFileBinding(const FXchar* pathname){ \
64
- return FXRbCallFileAssocMethod(this,rb_intern("findFileBinding"),pathname); \
64
+ return FXRbCallFileAssocMethod(this,"findFileBinding",pathname); \
65
65
  } \
66
66
  FXFileAssoc* cls::findDirBinding(const FXchar* pathname){ \
67
- return FXRbCallFileAssocMethod(this,rb_intern("findDirBinding"),pathname); \
67
+ return FXRbCallFileAssocMethod(this,"findDirBinding",pathname); \
68
68
  } \
69
69
  FXFileAssoc* cls::findExecBinding(const FXchar* pathname){ \
70
- return FXRbCallFileAssocMethod(this,rb_intern("findExecBinding"),pathname); \
70
+ return FXRbCallFileAssocMethod(this,"findExecBinding",pathname); \
71
71
  }
72
72
 
73
73
 
@@ -74,46 +74,46 @@ inline void klass ## _destroy(klass* self){ \
74
74
 
75
75
  #define IMPLEMENT_FXFOLDINGITEM_STUBS(cls) \
76
76
  void cls::setText(const FXString& txt){ \
77
- FXRbCallVoidMethod(this,rb_intern("setText"),txt); \
77
+ FXRbCallVoidMethod(this,"setText",txt); \
78
78
  } \
79
79
  void cls::setOpenIcon(FXIcon* icn,FXbool owned){ \
80
- FXRbCallVoidMethod(this,rb_intern("setOpenIcon"),icn,owned); \
80
+ FXRbCallVoidMethod(this,"setOpenIcon",icn,owned); \
81
81
  } \
82
82
  void cls::setClosedIcon(FXIcon* icn,FXbool owned){ \
83
- FXRbCallVoidMethod(this,rb_intern("setClosedIcon"),icn,owned); \
83
+ FXRbCallVoidMethod(this,"setClosedIcon",icn,owned); \
84
84
  } \
85
85
  void cls::setFocus(FXbool focus){ \
86
- FXRbCallVoidMethod(this,rb_intern("setFocus"),focus); \
86
+ FXRbCallVoidMethod(this,"setFocus",focus); \
87
87
  } \
88
88
  void cls::setSelected(FXbool selected){ \
89
- FXRbCallVoidMethod(this,rb_intern("setSelected"),selected); \
89
+ FXRbCallVoidMethod(this,"setSelected",selected); \
90
90
  } \
91
91
  void cls::setOpened(FXbool opened){ \
92
- FXRbCallVoidMethod(this,rb_intern("setOpened"),opened); \
92
+ FXRbCallVoidMethod(this,"setOpened",opened); \
93
93
  } \
94
94
  void cls::setExpanded(FXbool expanded){ \
95
- FXRbCallVoidMethod(this,rb_intern("setExpanded"),expanded); \
95
+ FXRbCallVoidMethod(this,"setExpanded",expanded); \
96
96
  } \
97
97
  void cls::setEnabled(FXbool enabled){ \
98
- FXRbCallVoidMethod(this,rb_intern("setEnabled"),enabled); \
98
+ FXRbCallVoidMethod(this,"setEnabled",enabled); \
99
99
  } \
100
100
  void cls::setDraggable(FXbool draggable){ \
101
- FXRbCallVoidMethod(this,rb_intern("setDraggable"),draggable); \
101
+ FXRbCallVoidMethod(this,"setDraggable",draggable); \
102
102
  } \
103
103
  FXint cls::getWidth(const FXFoldingList* list) const { \
104
- return FXRbCallIntMethod(this,rb_intern("getWidth"),list); \
104
+ return FXRbCallIntMethod(this,"getWidth",list); \
105
105
  } \
106
106
  FXint cls::getHeight(const FXFoldingList* list) const { \
107
- return FXRbCallIntMethod(this,rb_intern("getHeight"),list); \
107
+ return FXRbCallIntMethod(this,"getHeight",list); \
108
108
  } \
109
109
  void cls::create(){ \
110
- FXRbCallVoidMethod(this,rb_intern("create")); \
110
+ FXRbCallVoidMethod(this,"create"); \
111
111
  } \
112
112
  void cls::detach(){ \
113
- FXRbCallVoidMethod(this,rb_intern("detach")); \
113
+ FXRbCallVoidMethod(this,"detach"); \
114
114
  } \
115
115
  void cls::destroy(){ \
116
- FXRbCallVoidMethod(this,rb_intern("destroy")); \
116
+ FXRbCallVoidMethod(this,"destroy"); \
117
117
  }
118
118
 
119
119
 
@@ -189,46 +189,46 @@ inline void klass ## _setCurrentItem(klass *self,FXFoldingItem *item,FXbool noti
189
189
 
190
190
  #define IMPLEMENT_FXFOLDINGLIST_STUBS(cls) \
191
191
  FXFoldingItem * cls::getItemAt(FXint x,FXint y) const { \
192
- return FXRbCallFoldingItemMethod(this,rb_intern("getItemAt"),x,y); \
192
+ return FXRbCallFoldingItemMethod(this,"getItemAt",x,y); \
193
193
  } \
194
194
  void cls::makeItemVisible(FXFoldingItem *item) { \
195
- FXRbCallVoidMethod(this,rb_intern("makeItemVisible"),item); \
195
+ FXRbCallVoidMethod(this,"makeItemVisible",item); \
196
196
  } \
197
197
  FXbool cls::enableItem(FXFoldingItem *item) { \
198
- return FXRbCallBoolMethod(this,rb_intern("enableItem"),item); \
198
+ return FXRbCallBoolMethod(this,"enableItem",item); \
199
199
  } \
200
200
  FXbool cls::disableItem(FXFoldingItem *item) { \
201
- return FXRbCallBoolMethod(this,rb_intern("disableItem"),item); \
201
+ return FXRbCallBoolMethod(this,"disableItem",item); \
202
202
  } \
203
203
  FXbool cls::selectItem(FXFoldingItem *item,FXbool notify) { \
204
- return FXRbCallBoolMethod(this,rb_intern("selectItem"),item,notify); \
204
+ return FXRbCallBoolMethod(this,"selectItem",item,notify); \
205
205
  } \
206
206
  FXbool cls::deselectItem(FXFoldingItem *item,FXbool notify) { \
207
- return FXRbCallBoolMethod(this,rb_intern("deselectItem"),item,notify); \
207
+ return FXRbCallBoolMethod(this,"deselectItem",item,notify); \
208
208
  } \
209
209
  FXbool cls::toggleItem(FXFoldingItem *item,FXbool notify) { \
210
- return FXRbCallBoolMethod(this,rb_intern("toggleItem"),item,notify); \
210
+ return FXRbCallBoolMethod(this,"toggleItem",item,notify); \
211
211
  } \
212
212
  FXbool cls::extendSelection(FXFoldingItem *item,FXbool notify) { \
213
- return FXRbCallBoolMethod(this,rb_intern("extendSelection"),item,notify); \
213
+ return FXRbCallBoolMethod(this,"extendSelection",item,notify); \
214
214
  } \
215
215
  FXbool cls::killSelection(FXbool notify) { \
216
- return FXRbCallBoolMethod(this,rb_intern("killSelection"),notify); \
216
+ return FXRbCallBoolMethod(this,"killSelection",notify); \
217
217
  } \
218
218
  FXbool cls::openItem(FXFoldingItem *item,FXbool notify) { \
219
- return FXRbCallBoolMethod(this,rb_intern("openItem"),item,notify); \
219
+ return FXRbCallBoolMethod(this,"openItem",item,notify); \
220
220
  } \
221
221
  FXbool cls::closeItem(FXFoldingItem *item,FXbool notify) { \
222
- return FXRbCallBoolMethod(this,rb_intern("closeItem"),item,notify); \
222
+ return FXRbCallBoolMethod(this,"closeItem",item,notify); \
223
223
  } \
224
224
  FXbool cls::collapseTree(FXFoldingItem *item,FXbool notify) { \
225
- return FXRbCallBoolMethod(this,rb_intern("collapseTree"),item,notify); \
225
+ return FXRbCallBoolMethod(this,"collapseTree",item,notify); \
226
226
  } \
227
227
  FXbool cls::expandTree(FXFoldingItem *item,FXbool notify) { \
228
- return FXRbCallBoolMethod(this,rb_intern("expandTree"),item,notify); \
228
+ return FXRbCallBoolMethod(this,"expandTree",item,notify); \
229
229
  } \
230
230
  void cls::setCurrentItem(FXFoldingItem *item,FXbool notify) { \
231
- FXRbCallVoidMethod(this,rb_intern("setCurrentItem"),item,notify); \
231
+ FXRbCallVoidMethod(this,"setCurrentItem",item,notify); \
232
232
  }
233
233
 
234
234
  class FXRbFoldingList : public FXFoldingList {
@@ -85,58 +85,58 @@ inline FXint klass ## _getTextHeight(const klass* self,const FXString& str){ \
85
85
 
86
86
  #define IMPLEMENT_FXFONT_STUBS(cls) \
87
87
  void cls::setFontDesc(const FXFontDesc& desc) { \
88
- FXRbCallVoidMethod(this,rb_intern("setFontDesc"),desc); \
88
+ FXRbCallVoidMethod(this,"setFontDesc",desc); \
89
89
  } \
90
90
  void cls::setAngle(FXint ang) { \
91
- FXRbCallVoidMethod(this,rb_intern("setAngle"),ang); \
91
+ FXRbCallVoidMethod(this,"setAngle",ang); \
92
92
  } \
93
93
  void cls::setFont(const FXString& string) { \
94
- FXRbCallVoidMethod(this,rb_intern("setFont"),string); \
94
+ FXRbCallVoidMethod(this,"setFont",string); \
95
95
  } \
96
96
  FXbool cls::isFontMono() const { \
97
- return FXRbCallBoolMethod(this,rb_intern("isFontMono")); \
97
+ return FXRbCallBoolMethod(this,"isFontMono"); \
98
98
  } \
99
99
  FXbool cls::hasChar(FXwchar ch) const { \
100
- return FXRbCallBoolMethod(this,rb_intern("hasChar"),ch); \
100
+ return FXRbCallBoolMethod(this,"hasChar",ch); \
101
101
  } \
102
102
  FXwchar cls::getMinChar() const { \
103
- return FXRbCallWCharMethod(this,rb_intern("getMinChar")); \
103
+ return FXRbCallWCharMethod(this,"getMinChar"); \
104
104
  } \
105
105
  FXwchar cls::getMaxChar() const { \
106
- return FXRbCallWCharMethod(this,rb_intern("getMaxChar")); \
106
+ return FXRbCallWCharMethod(this,"getMaxChar"); \
107
107
  } \
108
108
  FXint cls::leftBearing(FXwchar ch) const { \
109
- return FXRbCallIntMethod(this,rb_intern("leftBearing"),ch); \
109
+ return FXRbCallIntMethod(this,"leftBearing",ch); \
110
110
  } \
111
111
  FXint cls::rightBearing(FXwchar ch) const { \
112
- return FXRbCallIntMethod(this,rb_intern("rightBearing"),ch); \
112
+ return FXRbCallIntMethod(this,"rightBearing",ch); \
113
113
  } \
114
114
  FXint cls::getFontWidth() const { \
115
- return FXRbCallIntMethod(this,rb_intern("getFontWidth")); \
115
+ return FXRbCallIntMethod(this,"getFontWidth"); \
116
116
  } \
117
117
  FXint cls::getFontHeight() const { \
118
- return FXRbCallIntMethod(this,rb_intern("getFontHeight")); \
118
+ return FXRbCallIntMethod(this,"getFontHeight"); \
119
119
  } \
120
120
  FXint cls::getFontAscent() const { \
121
- return FXRbCallIntMethod(this,rb_intern("getFontAscent")); \
121
+ return FXRbCallIntMethod(this,"getFontAscent"); \
122
122
  } \
123
123
  FXint cls::getFontDescent() const { \
124
- return FXRbCallIntMethod(this,rb_intern("getFontDescent")); \
124
+ return FXRbCallIntMethod(this,"getFontDescent"); \
125
125
  } \
126
126
  FXint cls::getFontLeading() const { \
127
- return FXRbCallIntMethod(this,rb_intern("getFontLeading")); \
127
+ return FXRbCallIntMethod(this,"getFontLeading"); \
128
128
  } \
129
129
  FXint cls::getFontSpacing() const { \
130
- return FXRbCallIntMethod(this,rb_intern("getFontSpacing")); \
130
+ return FXRbCallIntMethod(this,"getFontSpacing"); \
131
131
  } \
132
132
  FXint cls::getCharWidth(FXwchar ch) const { \
133
- return FXRbCallIntMethod(this,rb_intern("getCharWidth"),ch); \
133
+ return FXRbCallIntMethod(this,"getCharWidth",ch); \
134
134
  } \
135
135
  FXint cls::getTextWidth(const FXString& str) const { \
136
- return FXRbCallIntMethod(this,rb_intern("getTextWidth"),str); \
136
+ return FXRbCallIntMethod(this,"getTextWidth",str); \
137
137
  } \
138
138
  FXint cls::getTextHeight(const FXString& str) const { \
139
- return FXRbCallIntMethod(this,rb_intern("getTextHeight"),str); \
139
+ return FXRbCallIntMethod(this,"getTextHeight",str); \
140
140
  }
141
141
 
142
142
  class FXRbFont : public FXFont {
@@ -44,16 +44,16 @@ inline void klass ## _swapBuffers(klass* self){ \
44
44
 
45
45
  #define IMPLEMENT_FXGLCANVAS_STUBS(cls) \
46
46
  FXbool cls::makeCurrent(){ \
47
- return FXRbCallBoolMethod(this,rb_intern("makeCurrent")); \
47
+ return FXRbCallBoolMethod(this,"makeCurrent"); \
48
48
  } \
49
49
  FXbool cls::makeNonCurrent(){ \
50
- return FXRbCallBoolMethod(this,rb_intern("makeNonCurrent")); \
50
+ return FXRbCallBoolMethod(this,"makeNonCurrent"); \
51
51
  } \
52
52
  FXbool cls::isCurrent() const { \
53
- return FXRbCallBoolMethod(this,rb_intern("isCurrent")); \
53
+ return FXRbCallBoolMethod(this,"isCurrent"); \
54
54
  } \
55
55
  void cls::swapBuffers(){ \
56
- FXRbCallVoidMethod(this,rb_intern("swapBuffers")); \
56
+ FXRbCallVoidMethod(this,"swapBuffers"); \
57
57
  }
58
58
 
59
59
 
@@ -55,28 +55,28 @@ inline FXbool klass ## _drag(klass* self,FXGLViewer* viewer,FXint fx,FXint fy,FX
55
55
 
56
56
  #define IMPLEMENT_FXGLOBJECT_STUBS(cls) \
57
57
  void cls::bounds(FXRangef& box){ \
58
- box=FXRbCallRangeMethod(this,rb_intern("bounds")); \
58
+ box=FXRbCallRangeMethod(this,"bounds"); \
59
59
  } \
60
60
  void cls::draw(FXGLViewer* viewer){ \
61
- FXRbCallVoidMethod(this,rb_intern("draw"),viewer); \
61
+ FXRbCallVoidMethod(this,"draw",viewer); \
62
62
  } \
63
63
  void cls::hit(FXGLViewer* viewer){ \
64
- FXRbCallVoidMethod(this,rb_intern("hit"),viewer); \
64
+ FXRbCallVoidMethod(this,"hit",viewer); \
65
65
  } \
66
66
  FXGLObject* cls::copy(){ \
67
- return FXRbCallGLObjectMethod(this,rb_intern("copy")); \
67
+ return FXRbCallGLObjectMethod(this,"copy"); \
68
68
  } \
69
69
  FXGLObject* cls::identify(FXuint* path,FXint n){ \
70
- return FXRbCallGLObjectMethod(this,rb_intern("identify"),path,n); \
70
+ return FXRbCallGLObjectMethod(this,"identify",path,n); \
71
71
  } \
72
72
  FXbool cls::canDrag() const { \
73
- return FXRbCallBoolMethod(this,rb_intern("canDrag")); \
73
+ return FXRbCallBoolMethod(this,"canDrag"); \
74
74
  } \
75
75
  FXbool cls::canDelete() const{ \
76
- return FXRbCallBoolMethod(this,rb_intern("canDelete")); \
76
+ return FXRbCallBoolMethod(this,"canDelete"); \
77
77
  } \
78
78
  FXbool cls::drag(FXGLViewer* viewer,FXint fx,FXint fy,FXint tx,FXint ty){ \
79
- return FXRbCallBoolMethod(this,rb_intern("drag"),viewer,fx,fy,tx,ty); \
79
+ return FXRbCallBoolMethod(this,"drag",viewer,fx,fy,tx,ty); \
80
80
  }
81
81
 
82
82
 
@@ -35,7 +35,7 @@ inline void klass ## _drawshape(klass* self,FXGLViewer* viewer){ \
35
35
 
36
36
  #define IMPLEMENT_FXGLSHAPE_STUBS(klass,superklass) \
37
37
  void klass::drawshape(FXGLViewer* viewer){ \
38
- FXRbCallVoidMethod(this,rb_intern("drawshape"),viewer); \
38
+ FXRbCallVoidMethod(this,"drawshape",viewer); \
39
39
  } \
40
40
  void klass::_drawshape(FXGLViewer* viewer){ \
41
41
  superklass::drawshape(viewer); \
@@ -42,13 +42,13 @@ inline FXbool klass ## _setBounds(klass *self,const FXRangef& box){ \
42
42
 
43
43
  #define IMPLEMENT_FXGLVIEWER_STUBS(cls) \
44
44
  FXGLObject** cls::select(FXint x,FXint y,FXint w,FXint h){ \
45
- return FXRbCallGLObjectArrayMethod(this,rb_intern("select"),x,y,w,h); \
45
+ return FXRbCallGLObjectArrayMethod(this,"select",x,y,w,h); \
46
46
  } \
47
47
  FXGLObject* cls::pick(FXint x,FXint y){ \
48
- return FXRbCallGLObjectMethod(this,rb_intern("pick"),x,y); \
48
+ return FXRbCallGLObjectMethod(this,"pick",x,y); \
49
49
  } \
50
50
  FXbool cls::setBounds(const FXRangef& box){ \
51
- return FXRbCallBoolMethod(this,rb_intern("setBounds"),box); \
51
+ return FXRbCallBoolMethod(this,"setBounds",box); \
52
52
  }
53
53
 
54
54
 
@@ -53,25 +53,25 @@ inline void klass ## _destroy(klass* self){ \
53
53
 
54
54
  #define IMPLEMENT_FXHEADERITEM_STUBS(cls) \
55
55
  void cls::setText(const FXString& text){ \
56
- FXRbCallVoidMethod(this,rb_intern("setText"),text); \
56
+ FXRbCallVoidMethod(this,"setText",text); \
57
57
  } \
58
58
  void cls::setIcon(FXIcon* icn){ \
59
- FXRbCallVoidMethod(this,rb_intern("setIcon"),icn); \
59
+ FXRbCallVoidMethod(this,"setIcon",icn); \
60
60
  } \
61
61
  FXint cls::getWidth(const FXHeader* header) const { \
62
- return FXRbCallIntMethod(this,rb_intern("getWidth"),header); \
62
+ return FXRbCallIntMethod(this,"getWidth",header); \
63
63
  } \
64
64
  FXint cls::getHeight(const FXHeader* header) const { \
65
- return FXRbCallIntMethod(this,rb_intern("getHeight"),header); \
65
+ return FXRbCallIntMethod(this,"getHeight",header); \
66
66
  } \
67
67
  void cls::create(){ \
68
- FXRbCallVoidMethod(this,rb_intern("create")); \
68
+ FXRbCallVoidMethod(this,"create"); \
69
69
  } \
70
70
  void cls::detach(){ \
71
- FXRbCallVoidMethod(this,rb_intern("detach")); \
71
+ FXRbCallVoidMethod(this,"detach"); \
72
72
  } \
73
73
  void cls::destroy(){ \
74
- FXRbCallVoidMethod(this,rb_intern("destroy")); \
74
+ FXRbCallVoidMethod(this,"destroy"); \
75
75
  }
76
76
 
77
77
 
@@ -88,70 +88,70 @@ inline void klass ## _destroy(klass* self){ \
88
88
 
89
89
  #define IMPLEMENT_FXICONITEM_STUBS(klass,superklass) \
90
90
  void klass::draw(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const { \
91
- FXRbCallVoidMethod(this,rb_intern("draw"),list,dc,x,y,w,h); \
91
+ FXRbCallVoidMethod(this,"draw",list,dc,x,y,w,h); \
92
92
  } \
93
93
  void klass::public_draw(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const { \
94
94
  superklass::draw(list,dc,x,y,w,h); \
95
95
  } \
96
96
  FXint klass::hitItem(const FXIconList* list,FXint rx,FXint ry,FXint rw,FXint rh) const { \
97
- return FXRbCallIntMethod(this,rb_intern("hitItem"),list,rx,ry,rw,rh); \
97
+ return FXRbCallIntMethod(this,"hitItem",list,rx,ry,rw,rh); \
98
98
  } \
99
99
  FXint klass::public_hitItem(const FXIconList* list,FXint rx,FXint ry,FXint rw,FXint rh) const { \
100
100
  return superklass::hitItem(list,rx,ry,rw,rh); \
101
101
  } \
102
102
  void klass::drawBigIcon(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const { \
103
- FXRbCallVoidMethod(this,rb_intern("drawBigIcon"),list,dc,x,y,w,h); \
103
+ FXRbCallVoidMethod(this,"drawBigIcon",list,dc,x,y,w,h); \
104
104
  } \
105
105
  void klass::public_drawBigIcon(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const { \
106
106
  superklass::drawBigIcon(list,dc,x,y,w,h); \
107
107
  } \
108
108
  void klass::drawMiniIcon(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const { \
109
- FXRbCallVoidMethod(this,rb_intern("drawMiniIcon"),list,dc,x,y,w,h); \
109
+ FXRbCallVoidMethod(this,"drawMiniIcon",list,dc,x,y,w,h); \
110
110
  } \
111
111
  void klass::public_drawMiniIcon(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const { \
112
112
  superklass::drawMiniIcon(list,dc,x,y,w,h); \
113
113
  } \
114
114
  void klass::drawDetails(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const { \
115
- FXRbCallVoidMethod(this,rb_intern("drawDetails"),list,dc,x,y,w,h); \
115
+ FXRbCallVoidMethod(this,"drawDetails",list,dc,x,y,w,h); \
116
116
  } \
117
117
  void klass::public_drawDetails(const FXIconList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const { \
118
118
  superklass::drawDetails(list,dc,x,y,w,h); \
119
119
  } \
120
120
  void klass::setText(const FXString& txt){ \
121
- FXRbCallVoidMethod(this,rb_intern("setText"),txt); \
121
+ FXRbCallVoidMethod(this,"setText",txt); \
122
122
  } \
123
123
  void klass::setBigIcon(FXIcon* icn,FXbool owned){ \
124
- FXRbCallVoidMethod(this,rb_intern("setBigIcon"),icn,owned); \
124
+ FXRbCallVoidMethod(this,"setBigIcon",icn,owned); \
125
125
  } \
126
126
  void klass::setMiniIcon(FXIcon* icn,FXbool owned){ \
127
- FXRbCallVoidMethod(this,rb_intern("setMiniIcon"),icn,owned); \
127
+ FXRbCallVoidMethod(this,"setMiniIcon",icn,owned); \
128
128
  } \
129
129
  void klass::setFocus(FXbool focus){ \
130
- FXRbCallVoidMethod(this,rb_intern("setFocus"),focus); \
130
+ FXRbCallVoidMethod(this,"setFocus",focus); \
131
131
  } \
132
132
  void klass::setSelected(FXbool selected){ \
133
- FXRbCallVoidMethod(this,rb_intern("setSelected"),selected); \
133
+ FXRbCallVoidMethod(this,"setSelected",selected); \
134
134
  } \
135
135
  void klass::setEnabled(FXbool enabled){ \
136
- FXRbCallVoidMethod(this,rb_intern("setEnabled"),enabled); \
136
+ FXRbCallVoidMethod(this,"setEnabled",enabled); \
137
137
  } \
138
138
  void klass::setDraggable(FXbool draggable){ \
139
- FXRbCallVoidMethod(this,rb_intern("setDraggable"),draggable); \
139
+ FXRbCallVoidMethod(this,"setDraggable",draggable); \
140
140
  } \
141
141
  FXint klass::getWidth(const FXIconList* list) const { \
142
- return FXRbCallIntMethod(this,rb_intern("getWidth"),list); \
142
+ return FXRbCallIntMethod(this,"getWidth",list); \
143
143
  } \
144
144
  FXint klass::getHeight(const FXIconList* list) const { \
145
- return FXRbCallIntMethod(this,rb_intern("getHeight"),list); \
145
+ return FXRbCallIntMethod(this,"getHeight",list); \
146
146
  } \
147
147
  void klass::create(){ \
148
- FXRbCallVoidMethod(this,rb_intern("create")); \
148
+ FXRbCallVoidMethod(this,"create"); \
149
149
  } \
150
150
  void klass::detach(){ \
151
- FXRbCallVoidMethod(this,rb_intern("detach")); \
151
+ FXRbCallVoidMethod(this,"detach"); \
152
152
  } \
153
153
  void klass::destroy(){ \
154
- FXRbCallVoidMethod(this,rb_intern("destroy")); \
154
+ FXRbCallVoidMethod(this,"destroy"); \
155
155
  }
156
156
 
157
157
 
@@ -219,37 +219,37 @@ inline FXbool klass ## _disableItem(klass* self,FXint index){ \
219
219
 
220
220
  #define IMPLEMENT_FXICONLIST_STUBS(cls) \
221
221
  FXbool cls::selectItem(FXint index,FXbool notify){ \
222
- return FXRbCallBoolMethod(this,rb_intern("selectItem"),index,notify); \
222
+ return FXRbCallBoolMethod(this,"selectItem",index,notify); \
223
223
  } \
224
224
  FXbool cls::deselectItem(FXint index,FXbool notify){ \
225
- return FXRbCallBoolMethod(this,rb_intern("deselectItem"),index,notify); \
225
+ return FXRbCallBoolMethod(this,"deselectItem",index,notify); \
226
226
  } \
227
227
  FXbool cls::toggleItem(FXint index,FXbool notify){ \
228
- return FXRbCallBoolMethod(this,rb_intern("toggleItem"),index,notify); \
228
+ return FXRbCallBoolMethod(this,"toggleItem",index,notify); \
229
229
  } \
230
230
  FXbool cls::selectInRectangle(FXint x,FXint y,FXint w,FXint h,FXbool notify){ \
231
- return FXRbCallBoolMethod(this,rb_intern("selectInRectangle"),x,y,w,h,notify); \
231
+ return FXRbCallBoolMethod(this,"selectInRectangle",x,y,w,h,notify); \
232
232
  } \
233
233
  FXbool cls::extendSelection(FXint index,FXbool notify){ \
234
- return FXRbCallBoolMethod(this,rb_intern("extendSelection"),index,notify); \
234
+ return FXRbCallBoolMethod(this,"extendSelection",index,notify); \
235
235
  } \
236
236
  FXbool cls::killSelection(FXbool notify){ \
237
- return FXRbCallBoolMethod(this,rb_intern("killSelection"),notify); \
237
+ return FXRbCallBoolMethod(this,"killSelection",notify); \
238
238
  } \
239
239
  void cls::setCurrentItem(FXint index,FXbool notify){ \
240
- FXRbCallVoidMethod(this,rb_intern("setCurrentItem"),index,notify); \
240
+ FXRbCallVoidMethod(this,"setCurrentItem",index,notify); \
241
241
  } \
242
242
  FXint cls::getItemAt(FXint x,FXint y) const { \
243
- return FXRbCallIntMethod(this,rb_intern("getItemAt"),x,y); \
243
+ return FXRbCallIntMethod(this,"getItemAt",x,y); \
244
244
  } \
245
245
  void cls::makeItemVisible(FXint index){ \
246
- FXRbCallVoidMethod(this,rb_intern("makeItemVisible"),index); \
246
+ FXRbCallVoidMethod(this,"makeItemVisible",index); \
247
247
  } \
248
248
  FXbool cls::enableItem(FXint index){ \
249
- return FXRbCallBoolMethod(this,rb_intern("enableItem"),index); \
249
+ return FXRbCallBoolMethod(this,"enableItem",index); \
250
250
  } \
251
251
  FXbool cls::disableItem(FXint index){ \
252
- return FXRbCallBoolMethod(this,rb_intern("disableItem"),index); \
252
+ return FXRbCallBoolMethod(this,"disableItem",index); \
253
253
  }
254
254
 
255
255