fxruby 1.6.50 → 1.6.51

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 (350) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/workflows/binary.yml +17 -0
  4. data/.github/workflows/ci.yml +13 -2
  5. data/Gemfile +7 -2
  6. data/History.md +14 -0
  7. data/Rakefile +28 -46
  8. data/doap.rdf +2 -2
  9. data/docs/Fox/Canvas/CanvasError.html +2 -2
  10. data/docs/Fox/Canvas/CircleShape.html +2 -2
  11. data/docs/Fox/Canvas/ImageShape.html +2 -2
  12. data/docs/Fox/Canvas/LineShape.html +2 -2
  13. data/docs/Fox/Canvas/PolygonShape.html +2 -2
  14. data/docs/Fox/Canvas/RectangleShape.html +2 -2
  15. data/docs/Fox/Canvas/SelectionPolicy.html +2 -2
  16. data/docs/Fox/Canvas/Shape.html +3 -3
  17. data/docs/Fox/Canvas/ShapeCanvas.html +2 -2
  18. data/docs/Fox/Canvas/ShapeGroup.html +2 -2
  19. data/docs/Fox/Canvas/SingleSelectionPolicy.html +2 -2
  20. data/docs/Fox/Canvas/TextShape.html +7 -9
  21. data/docs/Fox/Canvas.html +3 -3
  22. data/docs/Fox/FTNonModal.html +2 -2
  23. data/docs/Fox/FX4Splitter.html +41 -41
  24. data/docs/Fox/FX7Segment.html +5 -5
  25. data/docs/Fox/FXAccelTable.html +2 -2
  26. data/docs/Fox/FXApp.html +54 -54
  27. data/docs/Fox/FXArc.html +2 -2
  28. data/docs/Fox/FXArrowButton.html +22 -22
  29. data/docs/Fox/FXBMPIcon.html +10 -10
  30. data/docs/Fox/FXBMPImage.html +9 -9
  31. data/docs/Fox/FXBitmap.html +7 -7
  32. data/docs/Fox/FXBitmapFrame.html +3 -3
  33. data/docs/Fox/FXBitmapView.html +4 -4
  34. data/docs/Fox/FXButton.html +21 -21
  35. data/docs/Fox/FXCURCursor.html +2 -2
  36. data/docs/Fox/FXCalendar.html +4 -4
  37. data/docs/Fox/FXCanvas.html +7 -7
  38. data/docs/Fox/FXCheckButton.html +13 -13
  39. data/docs/Fox/FXChoiceBox.html +20 -20
  40. data/docs/Fox/FXColor.html +2 -2
  41. data/docs/Fox/FXColorBar.html +10 -10
  42. data/docs/Fox/FXColorDialog.html +7 -7
  43. data/docs/Fox/FXColorItem.html +2 -2
  44. data/docs/Fox/FXColorList.html +2 -2
  45. data/docs/Fox/FXColorRing.html +7 -7
  46. data/docs/Fox/FXColorSelector.html +36 -36
  47. data/docs/Fox/FXColorWell.html +19 -19
  48. data/docs/Fox/FXColorWheel.html +20 -20
  49. data/docs/Fox/FXComboBox.html +31 -31
  50. data/docs/Fox/FXComboTableItem.html +2 -2
  51. data/docs/Fox/FXCommand.html +2 -2
  52. data/docs/Fox/FXComposite.html +5 -5
  53. data/docs/Fox/FXCursor.html +14 -14
  54. data/docs/Fox/FXDC.html +207 -207
  55. data/docs/Fox/FXDCPrint.html +2 -2
  56. data/docs/Fox/FXDCWindow.html +2 -2
  57. data/docs/Fox/FXDataTarget.html +8 -8
  58. data/docs/Fox/FXDebugTarget.html +3 -3
  59. data/docs/Fox/FXDelegator.html +2 -2
  60. data/docs/Fox/FXDial.html +28 -28
  61. data/docs/Fox/FXDialogBox.html +5 -5
  62. data/docs/Fox/FXDict.html +2 -2
  63. data/docs/Fox/FXDirBox.html +7 -7
  64. data/docs/Fox/FXDirDialog.html +2 -2
  65. data/docs/Fox/FXDirItem.html +2 -2
  66. data/docs/Fox/FXDirList.html +19 -19
  67. data/docs/Fox/FXDirSelector.html +15 -15
  68. data/docs/Fox/FXDockBar.html +27 -27
  69. data/docs/Fox/FXDockHandler.html +5 -5
  70. data/docs/Fox/FXDockSite.html +14 -14
  71. data/docs/Fox/FXDockTitle.html +2 -2
  72. data/docs/Fox/FXDocument.html +5 -5
  73. data/docs/Fox/FXDragCorner.html +2 -2
  74. data/docs/Fox/FXDrawable.html +5 -5
  75. data/docs/Fox/FXDriveBox.html +5 -5
  76. data/docs/Fox/FXEvent.html +62 -60
  77. data/docs/Fox/FXExtentd.html +2 -2
  78. data/docs/Fox/FXExtentf.html +2 -2
  79. data/docs/Fox/FXFileAssoc.html +2 -2
  80. data/docs/Fox/FXFileDialog.html +32 -32
  81. data/docs/Fox/FXFileDict.html +7 -7
  82. data/docs/Fox/FXFileItem.html +2 -2
  83. data/docs/Fox/FXFileList.html +27 -27
  84. data/docs/Fox/FXFileSelector.html +35 -35
  85. data/docs/Fox/FXFileStream.html +6 -6
  86. data/docs/Fox/FXFoldingItem.html +2 -2
  87. data/docs/Fox/FXFoldingList.html +41 -41
  88. data/docs/Fox/FXFont.html +172 -170
  89. data/docs/Fox/FXFontDesc.html +2 -2
  90. data/docs/Fox/FXFontDialog.html +2 -2
  91. data/docs/Fox/FXFontSelector.html +14 -14
  92. data/docs/Fox/FXFrame.html +4 -4
  93. data/docs/Fox/FXGIFCursor.html +2 -2
  94. data/docs/Fox/FXGIFIcon.html +10 -10
  95. data/docs/Fox/FXGIFImage.html +9 -9
  96. data/docs/Fox/FXGLCanvas.html +2 -2
  97. data/docs/Fox/FXGLCone.html +2 -2
  98. data/docs/Fox/FXGLContext.html +2 -2
  99. data/docs/Fox/FXGLCube.html +2 -2
  100. data/docs/Fox/FXGLCylinder.html +2 -2
  101. data/docs/Fox/FXGLGroup.html +2 -2
  102. data/docs/Fox/FXGLLine.html +2 -2
  103. data/docs/Fox/FXGLObject.html +14 -14
  104. data/docs/Fox/FXGLPoint.html +2 -2
  105. data/docs/Fox/FXGLShape.html +26 -26
  106. data/docs/Fox/FXGLSphere.html +2 -2
  107. data/docs/Fox/FXGLViewer.html +74 -74
  108. data/docs/Fox/FXGLVisual.html +2 -2
  109. data/docs/Fox/FXGradient.html +2 -2
  110. data/docs/Fox/FXGradientBar.html +34 -34
  111. data/docs/Fox/FXGroupBox.html +7 -7
  112. data/docs/Fox/FXHeader.html +20 -20
  113. data/docs/Fox/FXHeaderItem.html +19 -19
  114. data/docs/Fox/FXHiliteStyle.html +2 -2
  115. data/docs/Fox/FXHorizontalFrame.html +15 -15
  116. data/docs/Fox/FXHorizontalSeparator.html +13 -13
  117. data/docs/Fox/FXICOIcon.html +10 -10
  118. data/docs/Fox/FXICOImage.html +9 -9
  119. data/docs/Fox/FXIcon.html +10 -10
  120. data/docs/Fox/FXIconDict.html +2 -2
  121. data/docs/Fox/FXIconItem.html +2 -2
  122. data/docs/Fox/FXIconList.html +43 -43
  123. data/docs/Fox/FXIconSource.html +2 -2
  124. data/docs/Fox/FXId.html +2 -2
  125. data/docs/Fox/FXImage.html +120 -297
  126. data/docs/Fox/FXImageFrame.html +14 -14
  127. data/docs/Fox/FXImageView.html +13 -13
  128. data/docs/Fox/FXInputDialog.html +7 -7
  129. data/docs/Fox/FXIrb.html +2 -2
  130. data/docs/Fox/FXJPGIcon.html +11 -11
  131. data/docs/Fox/FXJPGImage.html +10 -10
  132. data/docs/Fox/FXKnob.html +17 -17
  133. data/docs/Fox/FXLabel.html +25 -25
  134. data/docs/Fox/FXLight.html +2 -2
  135. data/docs/Fox/FXList.html +29 -29
  136. data/docs/Fox/FXListBox.html +8 -8
  137. data/docs/Fox/FXListItem.html +2 -2
  138. data/docs/Fox/FXMDIChild.html +21 -21
  139. data/docs/Fox/FXMDIClient.html +224 -28
  140. data/docs/Fox/FXMDIDeleteButton.html +2 -2
  141. data/docs/Fox/FXMDIMaximizeButton.html +2 -2
  142. data/docs/Fox/FXMDIMenu.html +2 -2
  143. data/docs/Fox/FXMDIMinimizeButton.html +2 -2
  144. data/docs/Fox/FXMDIRestoreButton.html +2 -2
  145. data/docs/Fox/FXMDIWindowButton.html +2 -2
  146. data/docs/Fox/FXMainWindow.html +4 -4
  147. data/docs/Fox/FXMaterial.html +2 -2
  148. data/docs/Fox/FXMatrix.html +5 -5
  149. data/docs/Fox/FXMemoryBuffer.html +4 -4
  150. data/docs/Fox/FXMemoryStream.html +8 -8
  151. data/docs/Fox/FXMenuBar.html +2 -2
  152. data/docs/Fox/FXMenuButton.html +24 -24
  153. data/docs/Fox/FXMenuCaption.html +5 -5
  154. data/docs/Fox/FXMenuCascade.html +2 -2
  155. data/docs/Fox/FXMenuCheck.html +4 -4
  156. data/docs/Fox/FXMenuCommand.html +4 -4
  157. data/docs/Fox/FXMenuPane.html +2 -2
  158. data/docs/Fox/FXMenuRadio.html +4 -4
  159. data/docs/Fox/FXMenuSeparator.html +2 -2
  160. data/docs/Fox/FXMenuTitle.html +7 -7
  161. data/docs/Fox/FXMessageBox.html +21 -21
  162. data/docs/Fox/FXObject.html +2 -2
  163. data/docs/Fox/FXOption.html +8 -8
  164. data/docs/Fox/FXOptionMenu.html +8 -8
  165. data/docs/Fox/FXPCXIcon.html +10 -10
  166. data/docs/Fox/FXPCXImage.html +9 -9
  167. data/docs/Fox/FXPNGIcon.html +10 -10
  168. data/docs/Fox/FXPNGImage.html +9 -9
  169. data/docs/Fox/FXPPMIcon.html +10 -10
  170. data/docs/Fox/FXPPMImage.html +9 -9
  171. data/docs/Fox/FXPSBounds.html +2 -2
  172. data/docs/Fox/FXPacker.html +2 -2
  173. data/docs/Fox/FXPicker.html +5 -5
  174. data/docs/Fox/FXPopup.html +6 -6
  175. data/docs/Fox/FXPrintDialog.html +23 -23
  176. data/docs/Fox/FXPrinter.html +22 -22
  177. data/docs/Fox/FXProgressBar.html +8 -8
  178. data/docs/Fox/FXProgressDialog.html +6 -6
  179. data/docs/Fox/FXPseudoKeyboard.html +2 -2
  180. data/docs/Fox/FXPseudoMouse.html +2 -2
  181. data/docs/Fox/FXPseudoTarget.html +2 -2
  182. data/docs/Fox/FXQuatd.html +19 -19
  183. data/docs/Fox/FXQuatf.html +24 -24
  184. data/docs/Fox/FXRGBIcon.html +10 -10
  185. data/docs/Fox/FXRGBImage.html +9 -9
  186. data/docs/Fox/FXRadioButton.html +12 -12
  187. data/docs/Fox/FXRanged.html +2 -2
  188. data/docs/Fox/FXRangef.html +2 -2
  189. data/docs/Fox/FXRealSlider.html +40 -40
  190. data/docs/Fox/FXRealSpinner.html +32 -32
  191. data/docs/Fox/FXRecentFiles.html +17 -17
  192. data/docs/Fox/FXRectangle.html +15 -15
  193. data/docs/Fox/FXRegion.html +2 -2
  194. data/docs/Fox/FXRegistry.html +2 -2
  195. data/docs/Fox/FXReplaceDialog.html +29 -29
  196. data/docs/Fox/FXRootWindow.html +5 -5
  197. data/docs/Fox/FXRuler.html +31 -31
  198. data/docs/Fox/FXRulerView.html +2 -2
  199. data/docs/Fox/FXScintilla.html +9116 -2763
  200. data/docs/Fox/FXScrollArea.html +21 -21
  201. data/docs/Fox/FXScrollBar.html +31 -31
  202. data/docs/Fox/FXScrollCorner.html +2 -2
  203. data/docs/Fox/FXScrollPane.html +6 -6
  204. data/docs/Fox/FXScrollWindow.html +9 -9
  205. data/docs/Fox/FXSearchDialog.html +11 -11
  206. data/docs/Fox/FXSegment.html +2 -2
  207. data/docs/Fox/FXSeparator.html +7 -7
  208. data/docs/Fox/FXSettings.html +56 -56
  209. data/docs/Fox/FXShell.html +2 -2
  210. data/docs/Fox/FXShutter.html +24 -24
  211. data/docs/Fox/FXShutterItem.html +19 -19
  212. data/docs/Fox/FXSize.html +12 -12
  213. data/docs/Fox/FXSlider.html +40 -40
  214. data/docs/Fox/FXSphered.html +2 -2
  215. data/docs/Fox/FXSpheref.html +2 -2
  216. data/docs/Fox/FXSpinner.html +31 -31
  217. data/docs/Fox/FXSplashScreen.html +3 -3
  218. data/docs/Fox/FXSplashWindow.html +7 -7
  219. data/docs/Fox/FXSplitter.html +22 -22
  220. data/docs/Fox/FXSpring.html +17 -17
  221. data/docs/Fox/FXStatusBar.html +17 -17
  222. data/docs/Fox/FXStatusLine.html +8 -8
  223. data/docs/Fox/FXStream.html +26 -26
  224. data/docs/Fox/FXStreamAllocError.html +2 -2
  225. data/docs/Fox/FXStreamEndError.html +2 -2
  226. data/docs/Fox/FXStreamError.html +2 -2
  227. data/docs/Fox/FXStreamFailureError.html +2 -2
  228. data/docs/Fox/FXStreamFormatError.html +2 -2
  229. data/docs/Fox/FXStreamFullError.html +2 -2
  230. data/docs/Fox/FXStreamNoReadError.html +2 -2
  231. data/docs/Fox/FXStreamNoWriteError.html +2 -2
  232. data/docs/Fox/FXStreamUnknownError.html +2 -2
  233. data/docs/Fox/FXStringDict.html +2 -2
  234. data/docs/Fox/FXSwitcher.html +30 -30
  235. data/docs/Fox/FXTGAIcon.html +10 -10
  236. data/docs/Fox/FXTGAImage.html +9 -9
  237. data/docs/Fox/FXTIFIcon.html +10 -10
  238. data/docs/Fox/FXTIFImage.html +9 -9
  239. data/docs/Fox/FXTabBar.html +37 -37
  240. data/docs/Fox/FXTabBook.html +15 -15
  241. data/docs/Fox/FXTabItem.html +27 -27
  242. data/docs/Fox/FXTable.html +89 -89
  243. data/docs/Fox/FXTableItem.html +6 -6
  244. data/docs/Fox/FXTablePos.html +2 -2
  245. data/docs/Fox/FXTableRange.html +2 -2
  246. data/docs/Fox/FXText.html +115 -115
  247. data/docs/Fox/FXTextChange.html +2 -2
  248. data/docs/Fox/FXTextField.html +55 -55
  249. data/docs/Fox/FXToggleButton.html +31 -31
  250. data/docs/Fox/FXToolBar.html +15 -15
  251. data/docs/Fox/FXToolBarGrip.html +14 -14
  252. data/docs/Fox/FXToolBarShell.html +11 -11
  253. data/docs/Fox/FXToolBarTab.html +21 -21
  254. data/docs/Fox/FXToolTip.html +12 -10
  255. data/docs/Fox/FXTopWindow.html +34 -34
  256. data/docs/Fox/FXTranslator.html +2 -2
  257. data/docs/Fox/FXTreeItem.html +2 -2
  258. data/docs/Fox/FXTreeList.html +41 -41
  259. data/docs/Fox/FXTreeListBox.html +23 -23
  260. data/docs/Fox/FXTriStateButton.html +21 -21
  261. data/docs/Fox/FXUndoList.html +3 -3
  262. data/docs/Fox/FXVec2d.html +2 -2
  263. data/docs/Fox/FXVec2f.html +2 -2
  264. data/docs/Fox/FXVec3d.html +2 -2
  265. data/docs/Fox/FXVec3f.html +2 -2
  266. data/docs/Fox/FXVec4d.html +2 -2
  267. data/docs/Fox/FXVec4f.html +2 -2
  268. data/docs/Fox/FXVerticalFrame.html +15 -15
  269. data/docs/Fox/FXVerticalSeparator.html +13 -13
  270. data/docs/Fox/FXViewport.html +2 -2
  271. data/docs/Fox/FXVisual.html +24 -24
  272. data/docs/Fox/FXWindow.html +143 -143
  273. data/docs/Fox/FXWizard.html +5 -5
  274. data/docs/Fox/FXXBMIcon.html +11 -11
  275. data/docs/Fox/FXXBMImage.html +10 -10
  276. data/docs/Fox/FXXPMIcon.html +10 -10
  277. data/docs/Fox/FXXPMImage.html +9 -9
  278. data/docs/Fox/NotifyHeader.html +2 -2
  279. data/docs/Fox/SCNotification.html +2 -2
  280. data/docs/Fox/TextRange.html +2 -2
  281. data/docs/Fox.html +89 -89
  282. data/docs/IRB.html +2 -2
  283. data/docs/Responder.html +2 -2
  284. data/docs/Responder2.html +2 -2
  285. data/docs/_index.html +2 -2
  286. data/docs/css/style.css +2 -15
  287. data/docs/file.History.html +1432 -842
  288. data/docs/file.README.html +9 -9
  289. data/docs/index.html +94 -53
  290. data/docs/js/app.js +91 -40
  291. data/docs/js/full_list.js +22 -20
  292. data/docs/method_list.html +2854 -2286
  293. data/docs/top-level-namespace.html +2 -2
  294. data/examples/canvasdemo.rb +4 -4
  295. data/examples/iconlist.rb +79 -4
  296. data/examples/inputs.rb +1 -1
  297. data/examples/rmagick.rb +9 -9
  298. data/ext/fox16_c/FXRbApp.cpp +2 -1
  299. data/ext/fox16_c/FXRbDataTarget.cpp +1 -0
  300. data/ext/fox16_c/FXRbGLViewer.cpp +1 -0
  301. data/ext/fox16_c/FXRbObjRegistry.cpp +12 -5
  302. data/ext/fox16_c/FXRuby.cpp +57 -37
  303. data/ext/fox16_c/core_wrap.cpp +2593 -2155
  304. data/ext/fox16_c/dc_wrap.cpp +1033 -707
  305. data/ext/fox16_c/dialogs_wrap.cpp +1865 -1513
  306. data/ext/fox16_c/extconf.rb +11 -8
  307. data/ext/fox16_c/frames_wrap.cpp +3257 -2876
  308. data/ext/fox16_c/fx3d_wrap.cpp +2170 -1780
  309. data/ext/fox16_c/gvl_wrappers.cpp +1 -0
  310. data/ext/fox16_c/iconlist_wrap.cpp +1209 -882
  311. data/ext/fox16_c/icons_wrap.cpp +1132 -775
  312. data/ext/fox16_c/image_wrap.cpp +1116 -756
  313. data/ext/fox16_c/impl.cpp +1 -0
  314. data/ext/fox16_c/include/FXRbDCWindow.h +1 -1
  315. data/ext/fox16_c/include/FXRuby.h +6 -6
  316. data/ext/fox16_c/label_wrap.cpp +1702 -1354
  317. data/ext/fox16_c/layout_wrap.cpp +1752 -1392
  318. data/ext/fox16_c/list_wrap.cpp +899 -572
  319. data/ext/fox16_c/make_impl.rb +1 -0
  320. data/ext/fox16_c/markfuncs.cpp +1 -0
  321. data/ext/fox16_c/mdi_wrap.cpp +1220 -881
  322. data/ext/fox16_c/menu_wrap.cpp +1402 -1057
  323. data/ext/fox16_c/scintilla_wrap.cpp +658 -337
  324. data/ext/fox16_c/swigruby.h +262 -119
  325. data/ext/fox16_c/table_wrap.cpp +1064 -741
  326. data/ext/fox16_c/text_wrap.cpp +1062 -741
  327. data/ext/fox16_c/treelist_wrap.cpp +1522 -1189
  328. data/ext/fox16_c/ui_wrap.cpp +3610 -3216
  329. data/ext/fox16_c/unregisterOwnedObjects.cpp +1 -0
  330. data/fxruby.gemspec +6 -1
  331. data/lib/fox16/canvas.rb +1 -1
  332. data/lib/fox16/core.rb +97 -26
  333. data/lib/fox16/undolist.rb +32 -32
  334. data/lib/fox16/version.rb +1 -1
  335. data/rdoc-sources/FXApp.rb +12 -0
  336. data/rdoc-sources/FXFont.rb +2 -0
  337. data/rdoc-sources/FXMDIClient.rb +15 -0
  338. data/scripts/iface.rb +1 -0
  339. data/swig-interfaces/FXScintilla.i +1 -1
  340. data/swig-interfaces/FXText.i +1 -1
  341. data/swig-interfaces/freefuncs.i +1 -0
  342. data/swig-interfaces/ruby-typemaps.i +19 -19
  343. data/test/TC_FXBMPImage.rb +1 -1
  344. data/test/TC_FXDC.rb +24 -0
  345. data/test/TC_FXMat4f.rb +23 -14
  346. data/test/TC_FXSize.rb +8 -4
  347. data/test/TS_All.rb +4 -0
  348. data.tar.gz.sig +0 -0
  349. metadata +18 -15
  350. metadata.gz.sig +0 -0
@@ -1,13 +1,13 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (https://www.swig.org).
3
- * Version 4.2.0
3
+ * Version 4.5.0
4
4
  *
5
5
  * Do not make changes to this file unless you know what you are doing - modify
6
6
  * the SWIG interface file instead.
7
7
  * ----------------------------------------------------------------------------- */
8
8
 
9
9
 
10
- #define SWIG_VERSION 0x040200
10
+ #define SWIG_VERSION 0x040500
11
11
  #define SWIGRUBY
12
12
 
13
13
  /* -----------------------------------------------------------------------------
@@ -134,12 +134,43 @@
134
134
  # pragma warning disable 592
135
135
  #endif
136
136
 
137
- #if __cplusplus >=201103L
138
- # define SWIG_NULLPTR nullptr
137
+ #if defined(__cplusplus) && __cplusplus >= 201103L
138
+ # define SWIG_NOEXCEPT noexcept
139
139
  #else
140
- # define SWIG_NULLPTR NULL
140
+ # define SWIG_NOEXCEPT throw()
141
141
  #endif
142
142
 
143
+ #define SWIG_QUOTE_STRING(x) #x
144
+ #define SWIG_STRINGIFY(x) SWIG_QUOTE_STRING(x)
145
+
146
+ /* -----------------------------------------------------------------------------
147
+ * swigcompat.swg
148
+ *
149
+ * Macros to provide support compatibility with older C and C++ standards.
150
+ *
151
+ * Note that SWIG expects __cplusplus to be defined to the appropriate C++ standard.
152
+ * MSVC users are urged to check and examine the /Zc:__cplusplus compiler option.
153
+ * See https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus.
154
+ * ----------------------------------------------------------------------------- */
155
+
156
+ /* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
157
+ * if you're missing it.
158
+ */
159
+ #if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
160
+ (defined __cplusplus && __cplusplus >= 201103L) || \
161
+ defined SWIG_HAVE_SNPRINTF) && \
162
+ !defined SWIG_NO_SNPRINTF
163
+ # define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
164
+ # define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
165
+ #else
166
+ /* Fallback versions ignore the buffer size, but most of our uses either have a
167
+ * fixed maximum possible size or dynamically allocate a buffer that's large
168
+ * enough.
169
+ */
170
+ # define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
171
+ # define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
172
+ #endif
173
+
143
174
  /* -----------------------------------------------------------------------------
144
175
  * This section contains generic SWIG labels for method/variable
145
176
  * declarations/attributes, and other compiler dependent labels.
@@ -264,12 +295,15 @@
264
295
  # pragma warning disable 592
265
296
  #endif
266
297
 
267
- #if __cplusplus >=201103L
268
- # define SWIG_NULLPTR nullptr
298
+ #if defined(__cplusplus) && __cplusplus >= 201103L
299
+ # define SWIG_NOEXCEPT noexcept
269
300
  #else
270
- # define SWIG_NULLPTR NULL
301
+ # define SWIG_NOEXCEPT throw()
271
302
  #endif
272
303
 
304
+ #define SWIG_QUOTE_STRING(x) #x
305
+ #define SWIG_STRINGIFY(x) SWIG_QUOTE_STRING(x)
306
+
273
307
  /* -----------------------------------------------------------------------------
274
308
  * swigrun.swg
275
309
  *
@@ -279,13 +313,11 @@
279
313
 
280
314
  /* This should only be incremented when either the layout of swig_type_info changes,
281
315
  or for whatever reason, the runtime changes incompatibly */
282
- #define SWIG_RUNTIME_VERSION "4"
316
+ #define SWIG_RUNTIME_VERSION "5"
283
317
 
284
318
  /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
285
319
  #ifdef SWIG_TYPE_TABLE
286
- # define SWIG_QUOTE_STRING(x) #x
287
- # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
288
- # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
320
+ # define SWIG_TYPE_TABLE_NAME SWIG_STRINGIFY(SWIG_TYPE_TABLE)
289
321
  #else
290
322
  # define SWIG_TYPE_TABLE_NAME
291
323
  #endif
@@ -453,23 +485,6 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
453
485
  # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
454
486
  #endif
455
487
 
456
- /* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
457
- * if you're missing it.
458
- */
459
- #if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
460
- (defined __cplusplus && __cplusplus >= 201103L) || \
461
- defined SWIG_HAVE_SNPRINTF) && \
462
- !defined SWIG_NO_SNPRINTF
463
- # define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
464
- # define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
465
- #else
466
- /* Fallback versions ignore the buffer size, but most of our uses either have a
467
- * fixed maximum possible size or dynamically allocate a buffer that's large
468
- * enough.
469
- */
470
- # define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
471
- # define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
472
- #endif
473
488
 
474
489
  #include <string.h>
475
490
 
@@ -494,8 +509,8 @@ typedef struct swig_type_info {
494
509
  typedef struct swig_cast_info {
495
510
  swig_type_info *type; /* pointer to type that is equivalent to this type */
496
511
  swig_converter_func converter; /* function to cast the void pointers */
497
- struct swig_cast_info *next; /* pointer to next cast in linked list */
498
- struct swig_cast_info *prev; /* pointer to the previous cast */
512
+ struct swig_cast_info *next; /* pointer to next array of casts | pointer to cast hashed by value */
513
+ unsigned int value; /* index of the last valid element in the array | typename hash value */
499
514
  } swig_cast_info;
500
515
 
501
516
  /* Structure used to store module information
@@ -556,55 +571,147 @@ SWIG_TypeEquiv(const char *nb, const char *tb) {
556
571
  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
557
572
  }
558
573
 
574
+ /*
575
+ * Hash function for type name strings, based on maRushPrime1Hash (http://amsoftware.narod.ru/algo2.html)
576
+ */
577
+ SWIGRUNTIME unsigned int SWIG_Hash(const char *str, unsigned int len) {
578
+ const unsigned char *data = (const unsigned char *)str;
579
+ unsigned int hash = len, i = 0, k;
580
+ int rem = (int)len;
581
+
582
+ while (rem >= (int)sizeof(unsigned int)) {
583
+ memcpy(&k, data, sizeof(unsigned int));
584
+ k += i++;
585
+ hash ^= k;
586
+ hash *= 171717;
587
+ data += sizeof(unsigned int);
588
+ rem -= (int)sizeof(unsigned int);
589
+ }
590
+
591
+ switch (rem) {
592
+ case 3: k = (unsigned int)(data[2]) << 16;
593
+ k |= (unsigned int)(data[1]) << 8;
594
+ k |= (unsigned int)(data[0]);
595
+ k += i++;
596
+ hash ^= k;
597
+ hash *= 171717;
598
+ break;
599
+ case 2: k = (unsigned int)(data[1]) << 8;
600
+ k |= (unsigned int)(data[0]);
601
+ k += i++;
602
+ hash ^= k;
603
+ hash *= 171717;
604
+ break;
605
+ case 1: k = (unsigned int)(data[0]);
606
+ k += i++;
607
+ hash ^= k;
608
+ hash *= 171717;
609
+ break;
610
+ }
611
+ return hash;
612
+ }
613
+
559
614
  /*
560
615
  Check the typename
561
616
  */
562
617
  SWIGRUNTIME swig_cast_info *
563
618
  SWIG_TypeCheck(const char *c, swig_type_info *ty) {
619
+ static const unsigned int scan_threshold = 4;
564
620
  if (ty) {
565
- swig_cast_info *iter = ty->cast;
566
- while (iter) {
567
- if (strcmp(iter->type->name, c) == 0) {
568
- if (iter == ty->cast)
569
- return iter;
570
- /* Move iter to the top of the linked list */
571
- iter->prev->next = iter->next;
572
- if (iter->next)
573
- iter->next->prev = iter->prev;
574
- iter->next = ty->cast;
575
- iter->prev = 0;
576
- if (ty->cast) ty->cast->prev = iter;
577
- ty->cast = iter;
578
- return iter;
621
+ swig_cast_info *head = ty->cast;
622
+ unsigned int hash_value = 0;
623
+ int hashed = 0;
624
+
625
+ while (head) {
626
+
627
+ if (strcmp(head->type->name, c) == 0) {
628
+ return head;
579
629
  }
580
- iter = iter->next;
630
+
631
+ if (head->value) {
632
+ swig_cast_info *iter;
633
+ swig_cast_info *last = head + head->value;
634
+ swig_cast_info *first = head + 1;
635
+ int search = 1;
636
+
637
+ if (!hashed) {
638
+ if (head->value < scan_threshold) {
639
+ for (iter = first; iter <= last; iter++) {
640
+ if (strcmp(iter->type->name, c) == 0) {
641
+ return iter;
642
+ }
643
+ }
644
+ search = 0;
645
+ } else {
646
+ hashed = 1;
647
+ hash_value = SWIG_Hash(c, (unsigned int)strlen(c));
648
+ }
649
+ }
650
+
651
+ if (search) {
652
+ /* Binary search over sorted <'next'|'value'> pairs */
653
+ do {
654
+ iter = first + ((last - first) >> 1);
655
+ if (iter->value < hash_value) {
656
+ first = iter + 1;
657
+ } else if (iter->value == hash_value) {
658
+
659
+ if (strcmp(iter->next->type->name, c) == 0) {
660
+ return iter->next;
661
+ }
662
+
663
+ /* Hash collision check */
664
+ for (last = iter + 1; last->next && last->value == hash_value; last++) {
665
+ if (strcmp(last->next->type->name, c) == 0) {
666
+ return last->next;
667
+ }
668
+ }
669
+ for (first = iter - 1; first != head && first->value == hash_value; first--) {
670
+ if (strcmp(first->next->type->name, c) == 0) {
671
+ return first->next;
672
+ }
673
+ }
674
+ break;
675
+ } else
676
+ last = iter - 1;
677
+ } while (first <= last);
678
+ }
679
+ }
680
+ head = head->next;
581
681
  }
582
682
  }
583
683
  return 0;
584
684
  }
585
685
 
586
686
  /*
587
- Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
687
+ Check the type by type address
588
688
  */
589
689
  SWIGRUNTIME swig_cast_info *
590
690
  SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
591
691
  if (ty) {
592
- swig_cast_info *iter = ty->cast;
593
- while (iter) {
594
- if (iter->type == from) {
595
- if (iter == ty->cast)
596
- return iter;
597
- /* Move iter to the top of the linked list */
598
- iter->prev->next = iter->next;
599
- if (iter->next)
600
- iter->next->prev = iter->prev;
601
- iter->next = ty->cast;
602
- iter->prev = 0;
603
- if (ty->cast) ty->cast->prev = iter;
604
- ty->cast = iter;
605
- return iter;
692
+ swig_cast_info *head = ty->cast;
693
+ while (head) {
694
+ if (head->type == from) {
695
+ return head;
606
696
  }
607
- iter = iter->next;
697
+
698
+ if (head->value) {
699
+ swig_cast_info *iter;
700
+ swig_cast_info *last = head + head->value;
701
+ swig_cast_info *first = head + 1;
702
+
703
+ /* Binary search over sorted array of casts */
704
+ do {
705
+ iter = first + ((last - first) >> 1);
706
+ if (iter->type < from) {
707
+ first = iter + 1;
708
+ } else if (iter->type == from) {
709
+ return iter;
710
+ } else
711
+ last = iter - 1;
712
+ } while (first <= last);
713
+ }
714
+ head = head->next;
608
715
  }
609
716
  }
610
717
  return 0;
@@ -667,20 +774,24 @@ SWIG_TypePrettyName(const swig_type_info *type) {
667
774
  */
668
775
  SWIGRUNTIME void
669
776
  SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
670
- swig_cast_info *cast = ti->cast;
777
+ swig_cast_info *head = ti->cast;
671
778
  /* if (ti->clientdata == clientdata) return; */
672
779
  ti->clientdata = clientdata;
673
780
 
674
- while (cast) {
675
- if (!cast->converter) {
676
- swig_type_info *tc = cast->type;
677
- if (!tc->clientdata) {
678
- SWIG_TypeClientData(tc, clientdata);
781
+ while (head) {
782
+ swig_cast_info *cast;
783
+ for (cast = head; (unsigned int)(cast - head) <= head->value; cast++) {
784
+ if (!cast->converter) {
785
+ swig_type_info *tc = cast->type;
786
+ if (!tc->clientdata) {
787
+ SWIG_TypeClientData(tc, clientdata);
788
+ }
679
789
  }
680
790
  }
681
- cast = cast->next;
791
+ head = head->next;
682
792
  }
683
793
  }
794
+
684
795
  SWIGRUNTIME void
685
796
  SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
686
797
  SWIG_TypeClientData(ti, clientdata);
@@ -819,7 +930,7 @@ SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
819
930
  if ((2*sizeof(void *) + 2) > bsz) return 0;
820
931
  *(r++) = '_';
821
932
  r = SWIG_PackData(r,&ptr,sizeof(void *));
822
- if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
933
+ if (strlen(name) + 1 > (bsz - (size_t)(r - buff))) return 0;
823
934
  strcpy(r,name);
824
935
  return buff;
825
936
  }
@@ -898,20 +1009,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
898
1009
  #endif
899
1010
  #endif
900
1011
 
901
- #include <ruby.h>
902
-
903
- #if defined(RB_METHOD_DEFINITION_DECL)
904
- # define RUBY_VALUE_METHOD_FUNC(func) (func)
905
- # define RUBY_INT_METHOD_FUNC(func) (func)
906
- # define RUBY_VOID_METHOD_FUNC(func) (func)
907
- # define RUBY_VOIDP_METHOD_FUNC(func) (func)
908
- #else
909
- # define RUBY_VALUE_METHOD_FUNC(func) ((VALUE (*)(ANYARGS))(func))
910
- # define RUBY_INT_METHOD_FUNC(func) ((int (*)(ANYARGS))(func))
911
- # define RUBY_VOID_METHOD_FUNC(func) ((void (*)(ANYARGS))(func))
912
- # define RUBY_VOIDP_METHOD_FUNC(func) ((void *(*)(ANYARGS))(func))
913
- #endif
914
-
1012
+ #include <ruby.h>
915
1013
  #include <ruby/version.h> /* For RUBY_API_VERSION_CODE */
916
1014
 
917
1015
  #if __GNUC__ >= 7
@@ -1012,7 +1110,15 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
1012
1110
  #ifndef RTYPEDDATA_P
1013
1111
  # define RTYPEDDATA_P(x) (TYPE(x) != T_DATA)
1014
1112
  #endif
1113
+ #ifndef TYPED_DATA_EMBEDDED
1114
+ # define RTYPEDDATA_GET_DATA(x) RTYPEDDATA_DATA(x)
1115
+ #endif
1015
1116
 
1117
+ struct ruby_wrapped_object {
1118
+ void *data;
1119
+ void (*dmark)(void *);
1120
+ void (*dfree)(void *);
1121
+ };
1016
1122
 
1017
1123
 
1018
1124
  /*
@@ -1095,15 +1201,12 @@ static VALUE _mSWIG = Qnil;
1095
1201
 
1096
1202
 
1097
1203
  /* Define custom exceptions for errors that do not map to existing Ruby
1098
- exceptions. Note this only works for C++ since a global cannot be
1099
- initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
1204
+ exceptions. */
1100
1205
 
1101
1206
  SWIGINTERN VALUE
1102
1207
  getNullReferenceError(void) {
1103
- static int init = 0;
1104
- static VALUE rb_eNullReferenceError ;
1105
- if (!init) {
1106
- init = 1;
1208
+ static VALUE rb_eNullReferenceError = Qnil;
1209
+ if (rb_eNullReferenceError == Qnil) {
1107
1210
  rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1108
1211
  }
1109
1212
  return rb_eNullReferenceError;
@@ -1111,10 +1214,8 @@ getNullReferenceError(void) {
1111
1214
 
1112
1215
  SWIGINTERN VALUE
1113
1216
  getObjectPreviouslyDeletedError(void) {
1114
- static int init = 0;
1115
- static VALUE rb_eObjectPreviouslyDeleted ;
1116
- if (!init) {
1117
- init = 1;
1217
+ static VALUE rb_eObjectPreviouslyDeleted = Qnil;
1218
+ if (rb_eObjectPreviouslyDeleted == Qnil) {
1118
1219
  rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1119
1220
  }
1120
1221
  return rb_eObjectPreviouslyDeleted;
@@ -1353,7 +1454,7 @@ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
1353
1454
  // object might have the T_ZOMBIE type, but that's just
1354
1455
  // because the GC has flagged it as such for a deferred
1355
1456
  // destruction. Until then, it's still a T_DATA object.
1356
- DATA_PTR(object) = 0;
1457
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(object))->data = 0;
1357
1458
  }
1358
1459
  }
1359
1460
 
@@ -1386,8 +1487,8 @@ extern "C" {
1386
1487
  #endif
1387
1488
 
1388
1489
  SWIGINTERN VALUE
1389
- SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1390
- if (NIL_P(target)) {
1490
+ SWIG_Ruby_AppendOutput(VALUE target, VALUE o, int is_void) {
1491
+ if (NIL_P(target) && is_void) {
1391
1492
  target = o;
1392
1493
  } else {
1393
1494
  if (TYPE(target) != T_ARRAY) {
@@ -1485,6 +1586,7 @@ typedef struct {
1485
1586
  VALUE mImpl;
1486
1587
  void (*mark)(void *);
1487
1588
  void (*destroy)(void *);
1589
+ rb_data_type_t cext_type;
1488
1590
  int trackObjects;
1489
1591
  } swig_class;
1490
1592
 
@@ -1530,10 +1632,8 @@ static ID swig_lowerthan_id = 0;
1530
1632
 
1531
1633
  SWIGRUNTIME VALUE
1532
1634
  getExceptionClass(void) {
1533
- static int init = 0;
1534
- static VALUE rubyExceptionClass ;
1535
- if (!init) {
1536
- init = 1;
1635
+ static VALUE rubyExceptionClass = Qnil;
1636
+ if (rubyExceptionClass == Qnil) {
1537
1637
  rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
1538
1638
  }
1539
1639
  return rubyExceptionClass;
@@ -1580,6 +1680,27 @@ SWIG_Ruby_define_class(swig_type_info *type)
1580
1680
  free((void *) klass_name);
1581
1681
  }
1582
1682
 
1683
+ static void SWIG_Ruby_mark_swig_type(void *_wrobj)
1684
+ {
1685
+ struct ruby_wrapped_object *wrobj = (struct ruby_wrapped_object *)_wrobj;
1686
+ if (wrobj->dmark) {
1687
+ wrobj->dmark(wrobj->data);
1688
+ }
1689
+ }
1690
+
1691
+ static void SWIG_Ruby_free_swig_type(void *_wrobj)
1692
+ {
1693
+ struct ruby_wrapped_object *wrobj = (struct ruby_wrapped_object *)_wrobj;
1694
+ if (wrobj->dfree) {
1695
+ wrobj->dfree(wrobj->data);
1696
+ }
1697
+ free(wrobj);
1698
+ }
1699
+
1700
+ static const rb_data_type_t swig_type_type = {
1701
+ .wrap_struct_name = "swig_type"
1702
+ };
1703
+
1583
1704
  /* Create a new pointer object */
1584
1705
  SWIGRUNTIME VALUE
1585
1706
  SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
@@ -1590,6 +1711,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1590
1711
  swig_class *sklass;
1591
1712
  VALUE klass;
1592
1713
  VALUE obj;
1714
+ struct ruby_wrapped_object *wrobj;
1593
1715
 
1594
1716
  if (!ptr)
1595
1717
  return Qnil;
@@ -1617,10 +1739,11 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1617
1739
  }
1618
1740
 
1619
1741
  /* Create a new Ruby object */
1620
- obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
1621
- ( own ? VOIDFUNC(sklass->destroy) :
1622
- (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
1623
- ), ptr);
1742
+ obj = TypedData_Make_Struct(sklass->klass, struct ruby_wrapped_object, &sklass->cext_type, wrobj);
1743
+ wrobj->data = ptr;
1744
+ wrobj->dmark = sklass->mark;
1745
+ wrobj->dfree = own ? sklass->destroy:
1746
+ (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 );
1624
1747
 
1625
1748
  /* If tracking is on for this class then track this object. */
1626
1749
  if (track) {
@@ -1632,7 +1755,11 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1632
1755
  SWIG_snprintf(klass_name, klass_len, "TYPE%s", type->name);
1633
1756
  klass = rb_const_get(_mSWIG, rb_intern(klass_name));
1634
1757
  free((void *) klass_name);
1635
- obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1758
+
1759
+ obj = TypedData_Make_Struct(klass, struct ruby_wrapped_object, &swig_type_type, wrobj);
1760
+ wrobj->data = ptr;
1761
+ wrobj->dmark = 0;
1762
+ wrobj->dfree = 0;
1636
1763
  }
1637
1764
  rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1638
1765
 
@@ -1645,7 +1772,13 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
1645
1772
  {
1646
1773
  VALUE obj;
1647
1774
  swig_class *sklass = (swig_class *) type->clientdata;
1648
- obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
1775
+ struct ruby_wrapped_object *wrobj;
1776
+
1777
+ obj = TypedData_Make_Struct(klass, struct ruby_wrapped_object, &sklass->cext_type, wrobj);
1778
+ wrobj->data = 0;
1779
+ wrobj->dmark = sklass->mark;
1780
+ wrobj->dfree = sklass->destroy;
1781
+
1649
1782
  rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1650
1783
  return obj;
1651
1784
  }
@@ -1669,9 +1802,10 @@ typedef struct {
1669
1802
  SWIGRUNTIME swig_ruby_owntype
1670
1803
  SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) {
1671
1804
  swig_ruby_owntype oldown = {0, 0};
1672
- if (TYPE(obj) == T_DATA && !RTYPEDDATA_P(obj)) {
1673
- oldown.datafree = RDATA(obj)->dfree;
1674
- RDATA(obj)->dfree = own.datafree;
1805
+ if (RB_TYPE_P(obj, RUBY_T_DATA) && RTYPEDDATA_P(obj)) {
1806
+ struct ruby_wrapped_object *wrobj = (struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(obj);
1807
+ oldown.datafree = wrobj->dfree;
1808
+ wrobj->dfree = own.datafree;
1675
1809
  }
1676
1810
  return oldown;
1677
1811
  }
@@ -1683,26 +1817,27 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1683
1817
  char *c;
1684
1818
  swig_cast_info *tc;
1685
1819
  void *vptr = 0;
1820
+ struct ruby_wrapped_object *wrobj;
1686
1821
 
1687
1822
  /* Grab the pointer */
1688
1823
  if (NIL_P(obj)) {
1689
1824
  if (ptr)
1690
1825
  *ptr = 0;
1691
1826
  return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
1827
+ } else if (RB_TYPE_P(obj, RUBY_T_DATA) && RTYPEDDATA_P(obj)) {
1828
+ wrobj = (struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(obj);
1829
+ vptr = wrobj->data;
1692
1830
  } else {
1693
- if (TYPE(obj) != T_DATA || (TYPE(obj) == T_DATA && RTYPEDDATA_P(obj))) {
1694
- return SWIG_ERROR;
1695
- }
1696
- Data_Get_Struct(obj, void, vptr);
1831
+ return SWIG_ERROR;
1697
1832
  }
1698
1833
 
1699
1834
  if (own) {
1700
- own->datafree = RDATA(obj)->dfree;
1835
+ own->datafree = wrobj->dfree;
1701
1836
  own->own = 0;
1702
1837
  }
1703
1838
 
1704
1839
  if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE)) {
1705
- if (!RDATA(obj)->dfree)
1840
+ if (!wrobj->dfree)
1706
1841
  return SWIG_ERROR_RELEASE_NOT_OWNED;
1707
1842
  }
1708
1843
 
@@ -1725,14 +1860,14 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1725
1860
  * when the Ruby object is garbage collected. If we don't
1726
1861
  * do this, then it is possible we will return a reference
1727
1862
  * to a Ruby object that no longer exists thereby crashing Ruby. */
1728
- RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
1863
+ wrobj->dfree = SWIG_RubyRemoveTracking;
1729
1864
  } else {
1730
- RDATA(obj)->dfree = 0;
1865
+ wrobj->dfree = 0;
1731
1866
  }
1732
1867
  }
1733
1868
 
1734
1869
  if (flags & SWIG_POINTER_CLEAR) {
1735
- DATA_PTR(obj) = 0;
1870
+ wrobj->data = 0;
1736
1871
  }
1737
1872
 
1738
1873
  /* Do type-checking if type info was provided */
@@ -1816,6 +1951,11 @@ SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
1816
1951
  return SWIG_ERROR;
1817
1952
  }
1818
1953
 
1954
+
1955
+ static const rb_data_type_t swig_runtime_data_type = {
1956
+ .wrap_struct_name = "swig_runtime_data" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME
1957
+ };
1958
+
1819
1959
  SWIGRUNTIME swig_module_info *
1820
1960
  SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
1821
1961
  {
@@ -1825,11 +1965,13 @@ SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
1825
1965
 
1826
1966
  /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
1827
1967
  rb_gv_set("VERBOSE", Qfalse);
1828
-
1968
+
1829
1969
  /* first check if pointer already created */
1830
1970
  pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
1831
1971
  if (pointer != Qnil) {
1832
- Data_Get_Struct(pointer, swig_module_info, ret);
1972
+ /* Can not use TypedData_Get_Struct because swig_runtime_data_type is not global, but once per file. */
1973
+ if (!RB_TYPE_P(pointer, RUBY_T_DATA)) rb_check_typeddata(pointer, &swig_runtime_data_type);
1974
+ ret = (swig_module_info *)RTYPEDDATA_GET_DATA(pointer);
1833
1975
  }
1834
1976
 
1835
1977
  /* reinstate warnings */
@@ -1841,10 +1983,10 @@ SWIGRUNTIME void
1841
1983
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1842
1984
  {
1843
1985
  /* register a new class */
1844
- VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1986
+ VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1845
1987
  rb_undef_alloc_func(cl);
1846
1988
  /* create and store the structure pointer to a global variable */
1847
- swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1989
+ swig_runtime_data_type_pointer = TypedData_Wrap_Struct(cl, &swig_runtime_data_type, pointer);
1848
1990
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
1849
1991
  }
1850
1992
 
@@ -1946,7 +2088,7 @@ static swig_module_info swig_module = {swig_types, 36, 0, 0, 0, 0};
1946
2088
  #define SWIG_init Init_dc
1947
2089
  #define SWIG_name "Dc"
1948
2090
 
1949
-
2091
+ static VALUE mDc;
1950
2092
 
1951
2093
  #ifdef __cplusplus
1952
2094
  #include <utility>
@@ -1964,7 +2106,7 @@ template<typename T> class SwigValueWrapper {
1964
2106
  public:
1965
2107
  SwigValueWrapper() : pointer(0) { }
1966
2108
  SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1967
- #if __cplusplus >=201103L
2109
+ #if __cplusplus >= 201103L
1968
2110
  SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1969
2111
  operator T&&() const { return std::move(*pointer.ptr); }
1970
2112
  #else
@@ -1987,12 +2129,18 @@ template <typename T> T SwigValueInit() {
1987
2129
  return T();
1988
2130
  }
1989
2131
 
1990
- #if __cplusplus >=201103L
2132
+ #if __cplusplus >= 201103L
1991
2133
  # define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1992
2134
  #else
1993
2135
  # define SWIG_STD_MOVE(OBJ) OBJ
1994
2136
  #endif
1995
2137
 
2138
+ #if __cplusplus >= 201103L
2139
+ # define SWIG_OVERRIDE override
2140
+ #else
2141
+ # define SWIG_OVERRIDE
2142
+ #endif
2143
+
1996
2144
  #endif
1997
2145
 
1998
2146
 
@@ -2052,7 +2200,7 @@ inline void* to_FXEvent(VALUE obj){
2052
2200
  FXEventTypeInfo=SWIG_TypeQuery("FXEvent *");
2053
2201
  FXASSERT(FXEventTypeInfo!=0);
2054
2202
  }
2055
- SWIG_ConvertPtr(obj,&ptr,FXEventTypeInfo,1);
2203
+ SWIG_ConvertPtr(obj,&ptr,FXEventTypeInfo,SWIG_POINTER_DISOWN);
2056
2204
  return ptr;
2057
2205
  }
2058
2206
 
@@ -2117,11 +2265,9 @@ SWIGINTERN VALUE FXDC_getDashPattern(FXDC const *self){
2117
2265
  SWIGINTERN swig_type_info*
2118
2266
  SWIG_pchar_descriptor(void)
2119
2267
  {
2120
- static int init = 0;
2121
2268
  static swig_type_info* info = 0;
2122
- if (!init) {
2269
+ if (!info) {
2123
2270
  info = SWIG_TypeQuery("_p_char");
2124
- init = 1;
2125
2271
  }
2126
2272
  return info;
2127
2273
  }
@@ -2136,7 +2282,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
2136
2282
  if (cptr) {
2137
2283
  if (alloc) {
2138
2284
  if (*alloc == SWIG_NEWOBJ) {
2139
- *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size)));
2285
+ *cptr = reinterpret_cast< char* >(memcpy(new char[size], cstr, sizeof(char)*(size_t)(size)));
2140
2286
  } else {
2141
2287
  *cptr = cstr;
2142
2288
  *alloc = SWIG_OLDOBJ;
@@ -2171,7 +2317,6 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
2171
2317
  }
2172
2318
 
2173
2319
 
2174
- /*@SWIG:/usr/share/swig4.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2175
2320
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
2176
2321
  {
2177
2322
  VALUE *args = (VALUE *)arg;
@@ -2181,7 +2326,6 @@ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
2181
2326
  *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
2182
2327
  return obj;
2183
2328
  }
2184
- /*@SWIG@*/
2185
2329
 
2186
2330
  SWIGINTERN int
2187
2331
  SWIG_AsVal_long (VALUE obj, long* val)
@@ -2223,7 +2367,6 @@ SWIGINTERN FXDCWindow *new_FXDCWindow__SWIG_1(FXDrawable *drawable){
2223
2367
  return new FXRbDCWindow(drawable);
2224
2368
  }
2225
2369
 
2226
- /*@SWIG:/usr/share/swig4.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2227
2370
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
2228
2371
  {
2229
2372
  VALUE *args = (VALUE *)arg;
@@ -2233,7 +2376,6 @@ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
2233
2376
  *res = NUM2DBL(obj); (void)type;
2234
2377
  return obj;
2235
2378
  }
2236
- /*@SWIG@*/
2237
2379
 
2238
2380
  SWIGINTERN int
2239
2381
  SWIG_AsVal_double (VALUE obj, double *val)
@@ -2277,10 +2419,10 @@ _wrap_FXSegment_allocate(int argc, VALUE *argv, VALUE self)
2277
2419
 
2278
2420
  SWIGINTERN VALUE
2279
2421
  _wrap_new_FXSegment(int argc, VALUE *argv, VALUE self) {
2280
- FXshort arg1 = (FXshort) 0 ;
2281
- FXshort arg2 = (FXshort) 0 ;
2282
- FXshort arg3 = (FXshort) 0 ;
2283
- FXshort arg4 = (FXshort) 0 ;
2422
+ FXshort arg1 = 0 ;
2423
+ FXshort arg2 = 0 ;
2424
+ FXshort arg3 = 0 ;
2425
+ FXshort arg4 = 0 ;
2284
2426
  FXSegment *result = 0 ;
2285
2427
 
2286
2428
  if ((argc < 0) || (argc > 4)) {
@@ -2299,7 +2441,7 @@ _wrap_new_FXSegment(int argc, VALUE *argv, VALUE self) {
2299
2441
  arg4 = NUM2INT(argv[3]);
2300
2442
  }
2301
2443
  result = (FXSegment *)new_FXSegment(arg1,arg2,arg3,arg4);
2302
- DATA_PTR(self) = result;
2444
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(self))->data = result;
2303
2445
  return self;
2304
2446
  fail:
2305
2447
  return Qnil;
@@ -2308,7 +2450,7 @@ fail:
2308
2450
 
2309
2451
  SWIGINTERN VALUE
2310
2452
  _wrap_FXSegment_x1_set(int argc, VALUE *argv, VALUE self) {
2311
- FXSegment *arg1 = (FXSegment *) 0 ;
2453
+ FXSegment *arg1 = 0 ;
2312
2454
  FXshort arg2 ;
2313
2455
  void *argp1 = 0 ;
2314
2456
  int res1 = 0 ;
@@ -2331,7 +2473,7 @@ fail:
2331
2473
 
2332
2474
  SWIGINTERN VALUE
2333
2475
  _wrap_FXSegment_x1_get(int argc, VALUE *argv, VALUE self) {
2334
- FXSegment *arg1 = (FXSegment *) 0 ;
2476
+ FXSegment *arg1 = 0 ;
2335
2477
  void *argp1 = 0 ;
2336
2478
  int res1 = 0 ;
2337
2479
  FXshort result;
@@ -2355,7 +2497,7 @@ fail:
2355
2497
 
2356
2498
  SWIGINTERN VALUE
2357
2499
  _wrap_FXSegment_y1_set(int argc, VALUE *argv, VALUE self) {
2358
- FXSegment *arg1 = (FXSegment *) 0 ;
2500
+ FXSegment *arg1 = 0 ;
2359
2501
  FXshort arg2 ;
2360
2502
  void *argp1 = 0 ;
2361
2503
  int res1 = 0 ;
@@ -2378,7 +2520,7 @@ fail:
2378
2520
 
2379
2521
  SWIGINTERN VALUE
2380
2522
  _wrap_FXSegment_y1_get(int argc, VALUE *argv, VALUE self) {
2381
- FXSegment *arg1 = (FXSegment *) 0 ;
2523
+ FXSegment *arg1 = 0 ;
2382
2524
  void *argp1 = 0 ;
2383
2525
  int res1 = 0 ;
2384
2526
  FXshort result;
@@ -2402,7 +2544,7 @@ fail:
2402
2544
 
2403
2545
  SWIGINTERN VALUE
2404
2546
  _wrap_FXSegment_x2_set(int argc, VALUE *argv, VALUE self) {
2405
- FXSegment *arg1 = (FXSegment *) 0 ;
2547
+ FXSegment *arg1 = 0 ;
2406
2548
  FXshort arg2 ;
2407
2549
  void *argp1 = 0 ;
2408
2550
  int res1 = 0 ;
@@ -2425,7 +2567,7 @@ fail:
2425
2567
 
2426
2568
  SWIGINTERN VALUE
2427
2569
  _wrap_FXSegment_x2_get(int argc, VALUE *argv, VALUE self) {
2428
- FXSegment *arg1 = (FXSegment *) 0 ;
2570
+ FXSegment *arg1 = 0 ;
2429
2571
  void *argp1 = 0 ;
2430
2572
  int res1 = 0 ;
2431
2573
  FXshort result;
@@ -2449,7 +2591,7 @@ fail:
2449
2591
 
2450
2592
  SWIGINTERN VALUE
2451
2593
  _wrap_FXSegment_y2_set(int argc, VALUE *argv, VALUE self) {
2452
- FXSegment *arg1 = (FXSegment *) 0 ;
2594
+ FXSegment *arg1 = 0 ;
2453
2595
  FXshort arg2 ;
2454
2596
  void *argp1 = 0 ;
2455
2597
  int res1 = 0 ;
@@ -2472,7 +2614,7 @@ fail:
2472
2614
 
2473
2615
  SWIGINTERN VALUE
2474
2616
  _wrap_FXSegment_y2_get(int argc, VALUE *argv, VALUE self) {
2475
- FXSegment *arg1 = (FXSegment *) 0 ;
2617
+ FXSegment *arg1 = 0 ;
2476
2618
  void *argp1 = 0 ;
2477
2619
  int res1 = 0 ;
2478
2620
  FXshort result;
@@ -2519,12 +2661,12 @@ _wrap_FXArc_allocate(int argc, VALUE *argv, VALUE self)
2519
2661
 
2520
2662
  SWIGINTERN VALUE
2521
2663
  _wrap_new_FXArc(int argc, VALUE *argv, VALUE self) {
2522
- FXshort arg1 = (FXshort) 0 ;
2523
- FXshort arg2 = (FXshort) 0 ;
2524
- FXshort arg3 = (FXshort) 0 ;
2525
- FXshort arg4 = (FXshort) 0 ;
2526
- FXshort arg5 = (FXshort) 0 ;
2527
- FXshort arg6 = (FXshort) 0 ;
2664
+ FXshort arg1 = 0 ;
2665
+ FXshort arg2 = 0 ;
2666
+ FXshort arg3 = 0 ;
2667
+ FXshort arg4 = 0 ;
2668
+ FXshort arg5 = 0 ;
2669
+ FXshort arg6 = 0 ;
2528
2670
  FXArc *result = 0 ;
2529
2671
 
2530
2672
  if ((argc < 0) || (argc > 6)) {
@@ -2549,7 +2691,7 @@ _wrap_new_FXArc(int argc, VALUE *argv, VALUE self) {
2549
2691
  arg6 = NUM2INT(argv[5]);
2550
2692
  }
2551
2693
  result = (FXArc *)new_FXArc(arg1,arg2,arg3,arg4,arg5,arg6);
2552
- DATA_PTR(self) = result;
2694
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(self))->data = result;
2553
2695
  return self;
2554
2696
  fail:
2555
2697
  return Qnil;
@@ -2558,7 +2700,7 @@ fail:
2558
2700
 
2559
2701
  SWIGINTERN VALUE
2560
2702
  _wrap_FXArc_x_set(int argc, VALUE *argv, VALUE self) {
2561
- FXArc *arg1 = (FXArc *) 0 ;
2703
+ FXArc *arg1 = 0 ;
2562
2704
  FXshort arg2 ;
2563
2705
  void *argp1 = 0 ;
2564
2706
  int res1 = 0 ;
@@ -2581,7 +2723,7 @@ fail:
2581
2723
 
2582
2724
  SWIGINTERN VALUE
2583
2725
  _wrap_FXArc_x_get(int argc, VALUE *argv, VALUE self) {
2584
- FXArc *arg1 = (FXArc *) 0 ;
2726
+ FXArc *arg1 = 0 ;
2585
2727
  void *argp1 = 0 ;
2586
2728
  int res1 = 0 ;
2587
2729
  FXshort result;
@@ -2605,7 +2747,7 @@ fail:
2605
2747
 
2606
2748
  SWIGINTERN VALUE
2607
2749
  _wrap_FXArc_y_set(int argc, VALUE *argv, VALUE self) {
2608
- FXArc *arg1 = (FXArc *) 0 ;
2750
+ FXArc *arg1 = 0 ;
2609
2751
  FXshort arg2 ;
2610
2752
  void *argp1 = 0 ;
2611
2753
  int res1 = 0 ;
@@ -2628,7 +2770,7 @@ fail:
2628
2770
 
2629
2771
  SWIGINTERN VALUE
2630
2772
  _wrap_FXArc_y_get(int argc, VALUE *argv, VALUE self) {
2631
- FXArc *arg1 = (FXArc *) 0 ;
2773
+ FXArc *arg1 = 0 ;
2632
2774
  void *argp1 = 0 ;
2633
2775
  int res1 = 0 ;
2634
2776
  FXshort result;
@@ -2652,7 +2794,7 @@ fail:
2652
2794
 
2653
2795
  SWIGINTERN VALUE
2654
2796
  _wrap_FXArc_w_set(int argc, VALUE *argv, VALUE self) {
2655
- FXArc *arg1 = (FXArc *) 0 ;
2797
+ FXArc *arg1 = 0 ;
2656
2798
  FXshort arg2 ;
2657
2799
  void *argp1 = 0 ;
2658
2800
  int res1 = 0 ;
@@ -2675,7 +2817,7 @@ fail:
2675
2817
 
2676
2818
  SWIGINTERN VALUE
2677
2819
  _wrap_FXArc_w_get(int argc, VALUE *argv, VALUE self) {
2678
- FXArc *arg1 = (FXArc *) 0 ;
2820
+ FXArc *arg1 = 0 ;
2679
2821
  void *argp1 = 0 ;
2680
2822
  int res1 = 0 ;
2681
2823
  FXshort result;
@@ -2699,7 +2841,7 @@ fail:
2699
2841
 
2700
2842
  SWIGINTERN VALUE
2701
2843
  _wrap_FXArc_h_set(int argc, VALUE *argv, VALUE self) {
2702
- FXArc *arg1 = (FXArc *) 0 ;
2844
+ FXArc *arg1 = 0 ;
2703
2845
  FXshort arg2 ;
2704
2846
  void *argp1 = 0 ;
2705
2847
  int res1 = 0 ;
@@ -2722,7 +2864,7 @@ fail:
2722
2864
 
2723
2865
  SWIGINTERN VALUE
2724
2866
  _wrap_FXArc_h_get(int argc, VALUE *argv, VALUE self) {
2725
- FXArc *arg1 = (FXArc *) 0 ;
2867
+ FXArc *arg1 = 0 ;
2726
2868
  void *argp1 = 0 ;
2727
2869
  int res1 = 0 ;
2728
2870
  FXshort result;
@@ -2746,7 +2888,7 @@ fail:
2746
2888
 
2747
2889
  SWIGINTERN VALUE
2748
2890
  _wrap_FXArc_a_set(int argc, VALUE *argv, VALUE self) {
2749
- FXArc *arg1 = (FXArc *) 0 ;
2891
+ FXArc *arg1 = 0 ;
2750
2892
  FXshort arg2 ;
2751
2893
  void *argp1 = 0 ;
2752
2894
  int res1 = 0 ;
@@ -2769,7 +2911,7 @@ fail:
2769
2911
 
2770
2912
  SWIGINTERN VALUE
2771
2913
  _wrap_FXArc_a_get(int argc, VALUE *argv, VALUE self) {
2772
- FXArc *arg1 = (FXArc *) 0 ;
2914
+ FXArc *arg1 = 0 ;
2773
2915
  void *argp1 = 0 ;
2774
2916
  int res1 = 0 ;
2775
2917
  FXshort result;
@@ -2793,7 +2935,7 @@ fail:
2793
2935
 
2794
2936
  SWIGINTERN VALUE
2795
2937
  _wrap_FXArc_b_set(int argc, VALUE *argv, VALUE self) {
2796
- FXArc *arg1 = (FXArc *) 0 ;
2938
+ FXArc *arg1 = 0 ;
2797
2939
  FXshort arg2 ;
2798
2940
  void *argp1 = 0 ;
2799
2941
  int res1 = 0 ;
@@ -2816,7 +2958,7 @@ fail:
2816
2958
 
2817
2959
  SWIGINTERN VALUE
2818
2960
  _wrap_FXArc_b_get(int argc, VALUE *argv, VALUE self) {
2819
- FXArc *arg1 = (FXArc *) 0 ;
2961
+ FXArc *arg1 = 0 ;
2820
2962
  void *argp1 = 0 ;
2821
2963
  int res1 = 0 ;
2822
2964
  FXshort result;
@@ -2863,7 +3005,7 @@ _wrap_FXDC_allocate(int argc, VALUE *argv, VALUE self)
2863
3005
 
2864
3006
  SWIGINTERN VALUE
2865
3007
  _wrap_new_FXDC(int argc, VALUE *argv, VALUE self) {
2866
- FXApp *arg1 = (FXApp *) 0 ;
3008
+ FXApp *arg1 = 0 ;
2867
3009
  void *argp1 = 0 ;
2868
3010
  int res1 = 0 ;
2869
3011
  FXDC *result = 0 ;
@@ -2878,12 +3020,12 @@ _wrap_new_FXDC(int argc, VALUE *argv, VALUE self) {
2878
3020
  arg1 = reinterpret_cast< FXApp * >(argp1);
2879
3021
  {
2880
3022
  if (!arg1) {
2881
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
3023
+ SWIG_exception(SWIG_NullReferenceError,"Received a NULL pointer.");
2882
3024
  }
2883
3025
  }
2884
3026
  {
2885
3027
  result = (FXDC *)new_FXDC(arg1);
2886
- DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
3028
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(self))->data = result; FXRbRegisterRubyObj(self, result);
2887
3029
  if(rb_block_given_p()){
2888
3030
  rb_yield(self);
2889
3031
  }
@@ -2896,7 +3038,7 @@ fail:
2896
3038
 
2897
3039
  SWIGINTERN VALUE
2898
3040
  _wrap_FXDC_getApp(int argc, VALUE *argv, VALUE self) {
2899
- FXDC *arg1 = (FXDC *) 0 ;
3041
+ FXDC *arg1 = 0 ;
2900
3042
  void *argp1 = 0 ;
2901
3043
  int res1 = 0 ;
2902
3044
  FXApp *result = 0 ;
@@ -2923,7 +3065,7 @@ fail:
2923
3065
 
2924
3066
  SWIGINTERN VALUE
2925
3067
  _wrap_FXDC_getForeground(int argc, VALUE *argv, VALUE self) {
2926
- FXDC *arg1 = (FXDC *) 0 ;
3068
+ FXDC *arg1 = 0 ;
2927
3069
  void *argp1 = 0 ;
2928
3070
  int res1 = 0 ;
2929
3071
  FXColor result;
@@ -2947,7 +3089,7 @@ fail:
2947
3089
 
2948
3090
  SWIGINTERN VALUE
2949
3091
  _wrap_FXDC_getBackground(int argc, VALUE *argv, VALUE self) {
2950
- FXDC *arg1 = (FXDC *) 0 ;
3092
+ FXDC *arg1 = 0 ;
2951
3093
  void *argp1 = 0 ;
2952
3094
  int res1 = 0 ;
2953
3095
  FXColor result;
@@ -2971,7 +3113,7 @@ fail:
2971
3113
 
2972
3114
  SWIGINTERN VALUE
2973
3115
  _wrap_FXDC_getDashPattern(int argc, VALUE *argv, VALUE self) {
2974
- FXDC *arg1 = (FXDC *) 0 ;
3116
+ FXDC *arg1 = 0 ;
2975
3117
  void *argp1 = 0 ;
2976
3118
  int res1 = 0 ;
2977
3119
  VALUE result;
@@ -2995,7 +3137,7 @@ fail:
2995
3137
 
2996
3138
  SWIGINTERN VALUE
2997
3139
  _wrap_FXDC_getDashOffset(int argc, VALUE *argv, VALUE self) {
2998
- FXDC *arg1 = (FXDC *) 0 ;
3140
+ FXDC *arg1 = 0 ;
2999
3141
  void *argp1 = 0 ;
3000
3142
  int res1 = 0 ;
3001
3143
  FXuint result;
@@ -3019,7 +3161,7 @@ fail:
3019
3161
 
3020
3162
  SWIGINTERN VALUE
3021
3163
  _wrap_FXDC_getLineWidth(int argc, VALUE *argv, VALUE self) {
3022
- FXDC *arg1 = (FXDC *) 0 ;
3164
+ FXDC *arg1 = 0 ;
3023
3165
  void *argp1 = 0 ;
3024
3166
  int res1 = 0 ;
3025
3167
  FXuint result;
@@ -3043,7 +3185,7 @@ fail:
3043
3185
 
3044
3186
  SWIGINTERN VALUE
3045
3187
  _wrap_FXDC_getLineCap(int argc, VALUE *argv, VALUE self) {
3046
- FXDC *arg1 = (FXDC *) 0 ;
3188
+ FXDC *arg1 = 0 ;
3047
3189
  void *argp1 = 0 ;
3048
3190
  int res1 = 0 ;
3049
3191
  FXCapStyle result;
@@ -3067,7 +3209,7 @@ fail:
3067
3209
 
3068
3210
  SWIGINTERN VALUE
3069
3211
  _wrap_FXDC_getLineJoin(int argc, VALUE *argv, VALUE self) {
3070
- FXDC *arg1 = (FXDC *) 0 ;
3212
+ FXDC *arg1 = 0 ;
3071
3213
  void *argp1 = 0 ;
3072
3214
  int res1 = 0 ;
3073
3215
  FXJoinStyle result;
@@ -3091,7 +3233,7 @@ fail:
3091
3233
 
3092
3234
  SWIGINTERN VALUE
3093
3235
  _wrap_FXDC_getLineStyle(int argc, VALUE *argv, VALUE self) {
3094
- FXDC *arg1 = (FXDC *) 0 ;
3236
+ FXDC *arg1 = 0 ;
3095
3237
  void *argp1 = 0 ;
3096
3238
  int res1 = 0 ;
3097
3239
  FXLineStyle result;
@@ -3115,7 +3257,7 @@ fail:
3115
3257
 
3116
3258
  SWIGINTERN VALUE
3117
3259
  _wrap_FXDC_getFillStyle(int argc, VALUE *argv, VALUE self) {
3118
- FXDC *arg1 = (FXDC *) 0 ;
3260
+ FXDC *arg1 = 0 ;
3119
3261
  void *argp1 = 0 ;
3120
3262
  int res1 = 0 ;
3121
3263
  FXFillStyle result;
@@ -3139,7 +3281,7 @@ fail:
3139
3281
 
3140
3282
  SWIGINTERN VALUE
3141
3283
  _wrap_FXDC_getFillRule(int argc, VALUE *argv, VALUE self) {
3142
- FXDC *arg1 = (FXDC *) 0 ;
3284
+ FXDC *arg1 = 0 ;
3143
3285
  void *argp1 = 0 ;
3144
3286
  int res1 = 0 ;
3145
3287
  FXFillRule result;
@@ -3163,7 +3305,7 @@ fail:
3163
3305
 
3164
3306
  SWIGINTERN VALUE
3165
3307
  _wrap_FXDC_getFunction(int argc, VALUE *argv, VALUE self) {
3166
- FXDC *arg1 = (FXDC *) 0 ;
3308
+ FXDC *arg1 = 0 ;
3167
3309
  void *argp1 = 0 ;
3168
3310
  int res1 = 0 ;
3169
3311
  FXFunction result;
@@ -3187,7 +3329,7 @@ fail:
3187
3329
 
3188
3330
  SWIGINTERN VALUE
3189
3331
  _wrap_FXDC_getTile(int argc, VALUE *argv, VALUE self) {
3190
- FXDC *arg1 = (FXDC *) 0 ;
3332
+ FXDC *arg1 = 0 ;
3191
3333
  void *argp1 = 0 ;
3192
3334
  int res1 = 0 ;
3193
3335
  FXImage *result = 0 ;
@@ -3214,7 +3356,7 @@ fail:
3214
3356
 
3215
3357
  SWIGINTERN VALUE
3216
3358
  _wrap_FXDC_getStippleBitmap(int argc, VALUE *argv, VALUE self) {
3217
- FXDC *arg1 = (FXDC *) 0 ;
3359
+ FXDC *arg1 = 0 ;
3218
3360
  void *argp1 = 0 ;
3219
3361
  int res1 = 0 ;
3220
3362
  FXBitmap *result = 0 ;
@@ -3241,7 +3383,7 @@ fail:
3241
3383
 
3242
3384
  SWIGINTERN VALUE
3243
3385
  _wrap_FXDC_getStipplePattern(int argc, VALUE *argv, VALUE self) {
3244
- FXDC *arg1 = (FXDC *) 0 ;
3386
+ FXDC *arg1 = 0 ;
3245
3387
  void *argp1 = 0 ;
3246
3388
  int res1 = 0 ;
3247
3389
  FXStipplePattern result;
@@ -3265,7 +3407,7 @@ fail:
3265
3407
 
3266
3408
  SWIGINTERN VALUE
3267
3409
  _wrap_FXDC_getClipRectangle(int argc, VALUE *argv, VALUE self) {
3268
- FXDC *arg1 = (FXDC *) 0 ;
3410
+ FXDC *arg1 = 0 ;
3269
3411
  void *argp1 = 0 ;
3270
3412
  int res1 = 0 ;
3271
3413
  FXRectangle *result = 0 ;
@@ -3289,7 +3431,7 @@ fail:
3289
3431
 
3290
3432
  SWIGINTERN VALUE
3291
3433
  _wrap_FXDC_getClipX(int argc, VALUE *argv, VALUE self) {
3292
- FXDC *arg1 = (FXDC *) 0 ;
3434
+ FXDC *arg1 = 0 ;
3293
3435
  void *argp1 = 0 ;
3294
3436
  int res1 = 0 ;
3295
3437
  FXint result;
@@ -3313,7 +3455,7 @@ fail:
3313
3455
 
3314
3456
  SWIGINTERN VALUE
3315
3457
  _wrap_FXDC_getClipY(int argc, VALUE *argv, VALUE self) {
3316
- FXDC *arg1 = (FXDC *) 0 ;
3458
+ FXDC *arg1 = 0 ;
3317
3459
  void *argp1 = 0 ;
3318
3460
  int res1 = 0 ;
3319
3461
  FXint result;
@@ -3337,7 +3479,7 @@ fail:
3337
3479
 
3338
3480
  SWIGINTERN VALUE
3339
3481
  _wrap_FXDC_getClipWidth(int argc, VALUE *argv, VALUE self) {
3340
- FXDC *arg1 = (FXDC *) 0 ;
3482
+ FXDC *arg1 = 0 ;
3341
3483
  void *argp1 = 0 ;
3342
3484
  int res1 = 0 ;
3343
3485
  FXint result;
@@ -3361,7 +3503,7 @@ fail:
3361
3503
 
3362
3504
  SWIGINTERN VALUE
3363
3505
  _wrap_FXDC_getClipHeight(int argc, VALUE *argv, VALUE self) {
3364
- FXDC *arg1 = (FXDC *) 0 ;
3506
+ FXDC *arg1 = 0 ;
3365
3507
  void *argp1 = 0 ;
3366
3508
  int res1 = 0 ;
3367
3509
  FXint result;
@@ -3385,7 +3527,7 @@ fail:
3385
3527
 
3386
3528
  SWIGINTERN VALUE
3387
3529
  _wrap_FXDC_getFont(int argc, VALUE *argv, VALUE self) {
3388
- FXDC *arg1 = (FXDC *) 0 ;
3530
+ FXDC *arg1 = 0 ;
3389
3531
  void *argp1 = 0 ;
3390
3532
  int res1 = 0 ;
3391
3533
  FXFont *result = 0 ;
@@ -3412,7 +3554,7 @@ fail:
3412
3554
 
3413
3555
  SWIGINTERN VALUE
3414
3556
  _wrap_FXDC_readPixel(int argc, VALUE *argv, VALUE self) {
3415
- FXDC *arg1 = (FXDC *) 0 ;
3557
+ FXDC *arg1 = 0 ;
3416
3558
  FXint arg2 ;
3417
3559
  FXint arg3 ;
3418
3560
  void *argp1 = 0 ;
@@ -3440,7 +3582,7 @@ fail:
3440
3582
 
3441
3583
  SWIGINTERN VALUE
3442
3584
  _wrap_FXDC_drawPoint(int argc, VALUE *argv, VALUE self) {
3443
- FXDC *arg1 = (FXDC *) 0 ;
3585
+ FXDC *arg1 = 0 ;
3444
3586
  FXint arg2 ;
3445
3587
  FXint arg3 ;
3446
3588
  void *argp1 = 0 ;
@@ -3465,8 +3607,8 @@ fail:
3465
3607
 
3466
3608
  SWIGINTERN VALUE
3467
3609
  _wrap_FXDC_drawPoints(int argc, VALUE *argv, VALUE self) {
3468
- FXDC *arg1 = (FXDC *) 0 ;
3469
- FXPoint *arg2 = (FXPoint *) 0 ;
3610
+ FXDC *arg1 = 0 ;
3611
+ FXPoint *arg2 = 0 ;
3470
3612
  FXuint arg3 ;
3471
3613
  void *argp1 = 0 ;
3472
3614
  int res1 = 0 ;
@@ -3484,8 +3626,8 @@ _wrap_FXDC_drawPoints(int argc, VALUE *argv, VALUE self) {
3484
3626
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
3485
3627
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
3486
3628
  for (FXuint i = 0; i < arg3; i++) {
3487
- FXPoint *pPoint;
3488
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
3629
+ VALUE entry = rb_ary_entry(argv[0], i);
3630
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
3489
3631
  arg2[i] = *pPoint;
3490
3632
  }
3491
3633
  }
@@ -3504,8 +3646,8 @@ fail:
3504
3646
 
3505
3647
  SWIGINTERN VALUE
3506
3648
  _wrap_FXDC_drawPointsRel(int argc, VALUE *argv, VALUE self) {
3507
- FXDC *arg1 = (FXDC *) 0 ;
3508
- FXPoint *arg2 = (FXPoint *) 0 ;
3649
+ FXDC *arg1 = 0 ;
3650
+ FXPoint *arg2 = 0 ;
3509
3651
  FXuint arg3 ;
3510
3652
  void *argp1 = 0 ;
3511
3653
  int res1 = 0 ;
@@ -3523,8 +3665,8 @@ _wrap_FXDC_drawPointsRel(int argc, VALUE *argv, VALUE self) {
3523
3665
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
3524
3666
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
3525
3667
  for (FXuint i = 0; i < arg3; i++) {
3526
- FXPoint *pPoint;
3527
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
3668
+ VALUE entry = rb_ary_entry(argv[0], i);
3669
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
3528
3670
  arg2[i] = *pPoint;
3529
3671
  }
3530
3672
  }
@@ -3543,7 +3685,7 @@ fail:
3543
3685
 
3544
3686
  SWIGINTERN VALUE
3545
3687
  _wrap_FXDC_drawLine(int argc, VALUE *argv, VALUE self) {
3546
- FXDC *arg1 = (FXDC *) 0 ;
3688
+ FXDC *arg1 = 0 ;
3547
3689
  FXint arg2 ;
3548
3690
  FXint arg3 ;
3549
3691
  FXint arg4 ;
@@ -3572,8 +3714,8 @@ fail:
3572
3714
 
3573
3715
  SWIGINTERN VALUE
3574
3716
  _wrap_FXDC_drawLines(int argc, VALUE *argv, VALUE self) {
3575
- FXDC *arg1 = (FXDC *) 0 ;
3576
- FXPoint *arg2 = (FXPoint *) 0 ;
3717
+ FXDC *arg1 = 0 ;
3718
+ FXPoint *arg2 = 0 ;
3577
3719
  FXuint arg3 ;
3578
3720
  void *argp1 = 0 ;
3579
3721
  int res1 = 0 ;
@@ -3591,8 +3733,8 @@ _wrap_FXDC_drawLines(int argc, VALUE *argv, VALUE self) {
3591
3733
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
3592
3734
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
3593
3735
  for (FXuint i = 0; i < arg3; i++) {
3594
- FXPoint *pPoint;
3595
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
3736
+ VALUE entry = rb_ary_entry(argv[0], i);
3737
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
3596
3738
  arg2[i] = *pPoint;
3597
3739
  }
3598
3740
  }
@@ -3611,8 +3753,8 @@ fail:
3611
3753
 
3612
3754
  SWIGINTERN VALUE
3613
3755
  _wrap_FXDC_drawLinesRel(int argc, VALUE *argv, VALUE self) {
3614
- FXDC *arg1 = (FXDC *) 0 ;
3615
- FXPoint *arg2 = (FXPoint *) 0 ;
3756
+ FXDC *arg1 = 0 ;
3757
+ FXPoint *arg2 = 0 ;
3616
3758
  FXuint arg3 ;
3617
3759
  void *argp1 = 0 ;
3618
3760
  int res1 = 0 ;
@@ -3630,8 +3772,8 @@ _wrap_FXDC_drawLinesRel(int argc, VALUE *argv, VALUE self) {
3630
3772
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
3631
3773
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
3632
3774
  for (FXuint i = 0; i < arg3; i++) {
3633
- FXPoint *pPoint;
3634
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
3775
+ VALUE entry = rb_ary_entry(argv[0], i);
3776
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
3635
3777
  arg2[i] = *pPoint;
3636
3778
  }
3637
3779
  }
@@ -3650,8 +3792,8 @@ fail:
3650
3792
 
3651
3793
  SWIGINTERN VALUE
3652
3794
  _wrap_FXDC_drawLineSegments(int argc, VALUE *argv, VALUE self) {
3653
- FXDC *arg1 = (FXDC *) 0 ;
3654
- FXSegment *arg2 = (FXSegment *) 0 ;
3795
+ FXDC *arg1 = 0 ;
3796
+ FXSegment *arg2 = 0 ;
3655
3797
  FXuint arg3 ;
3656
3798
  void *argp1 = 0 ;
3657
3799
  int res1 = 0 ;
@@ -3669,8 +3811,8 @@ _wrap_FXDC_drawLineSegments(int argc, VALUE *argv, VALUE self) {
3669
3811
  arg2 = new FXSegment[RARRAY_LEN(argv[0])];
3670
3812
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
3671
3813
  for (FXuint i = 0; i < arg3; i++) {
3672
- FXSegment *pSeg;
3673
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
3814
+ VALUE entry = rb_ary_entry(argv[0], i);
3815
+ FXSegment *pSeg = (FXSegment*)FXRbConvertPtr(entry, SWIGTYPE_p_FXSegment, 0);
3674
3816
  arg2[i] = *pSeg;
3675
3817
  }
3676
3818
  }
@@ -3689,7 +3831,7 @@ fail:
3689
3831
 
3690
3832
  SWIGINTERN VALUE
3691
3833
  _wrap_FXDC_drawRectangle(int argc, VALUE *argv, VALUE self) {
3692
- FXDC *arg1 = (FXDC *) 0 ;
3834
+ FXDC *arg1 = 0 ;
3693
3835
  FXint arg2 ;
3694
3836
  FXint arg3 ;
3695
3837
  FXint arg4 ;
@@ -3718,8 +3860,8 @@ fail:
3718
3860
 
3719
3861
  SWIGINTERN VALUE
3720
3862
  _wrap_FXDC_drawRectangles(int argc, VALUE *argv, VALUE self) {
3721
- FXDC *arg1 = (FXDC *) 0 ;
3722
- FXRectangle *arg2 = (FXRectangle *) 0 ;
3863
+ FXDC *arg1 = 0 ;
3864
+ FXRectangle *arg2 = 0 ;
3723
3865
  FXuint arg3 ;
3724
3866
  void *argp1 = 0 ;
3725
3867
  int res1 = 0 ;
@@ -3737,8 +3879,8 @@ _wrap_FXDC_drawRectangles(int argc, VALUE *argv, VALUE self) {
3737
3879
  arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
3738
3880
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
3739
3881
  for (FXuint i = 0; i < arg3; i++) {
3740
- FXRectangle *pRect;
3741
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
3882
+ VALUE entry = rb_ary_entry(argv[0], i);
3883
+ FXRectangle *pRect = (FXRectangle*)FXRbConvertPtr(entry, SWIGTYPE_p_FXRectangle, 0);
3742
3884
  arg2[i] = *pRect;
3743
3885
  }
3744
3886
  }
@@ -3757,7 +3899,7 @@ fail:
3757
3899
 
3758
3900
  SWIGINTERN VALUE
3759
3901
  _wrap_FXDC_drawRoundRectangle(int argc, VALUE *argv, VALUE self) {
3760
- FXDC *arg1 = (FXDC *) 0 ;
3902
+ FXDC *arg1 = 0 ;
3761
3903
  FXint arg2 ;
3762
3904
  FXint arg3 ;
3763
3905
  FXint arg4 ;
@@ -3790,7 +3932,7 @@ fail:
3790
3932
 
3791
3933
  SWIGINTERN VALUE
3792
3934
  _wrap_FXDC_drawArc(int argc, VALUE *argv, VALUE self) {
3793
- FXDC *arg1 = (FXDC *) 0 ;
3935
+ FXDC *arg1 = 0 ;
3794
3936
  FXint arg2 ;
3795
3937
  FXint arg3 ;
3796
3938
  FXint arg4 ;
@@ -3823,8 +3965,8 @@ fail:
3823
3965
 
3824
3966
  SWIGINTERN VALUE
3825
3967
  _wrap_FXDC_drawArcs(int argc, VALUE *argv, VALUE self) {
3826
- FXDC *arg1 = (FXDC *) 0 ;
3827
- FXArc *arg2 = (FXArc *) 0 ;
3968
+ FXDC *arg1 = 0 ;
3969
+ FXArc *arg2 = 0 ;
3828
3970
  FXuint arg3 ;
3829
3971
  void *argp1 = 0 ;
3830
3972
  int res1 = 0 ;
@@ -3842,8 +3984,8 @@ _wrap_FXDC_drawArcs(int argc, VALUE *argv, VALUE self) {
3842
3984
  arg2 = new FXArc[RARRAY_LEN(argv[0])];
3843
3985
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
3844
3986
  for (FXuint i = 0; i < arg3; i++) {
3845
- FXArc *pArc;
3846
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
3987
+ VALUE entry = rb_ary_entry(argv[0], i);
3988
+ FXArc *pArc = (FXArc*)FXRbConvertPtr(entry, SWIGTYPE_p_FXArc, 0);
3847
3989
  arg2[i] = *pArc;
3848
3990
  }
3849
3991
  }
@@ -3856,7 +3998,7 @@ fail:
3856
3998
 
3857
3999
  SWIGINTERN VALUE
3858
4000
  _wrap_FXDC_drawEllipse(int argc, VALUE *argv, VALUE self) {
3859
- FXDC *arg1 = (FXDC *) 0 ;
4001
+ FXDC *arg1 = 0 ;
3860
4002
  FXint arg2 ;
3861
4003
  FXint arg3 ;
3862
4004
  FXint arg4 ;
@@ -3885,7 +4027,7 @@ fail:
3885
4027
 
3886
4028
  SWIGINTERN VALUE
3887
4029
  _wrap_FXDC_fillRectangle(int argc, VALUE *argv, VALUE self) {
3888
- FXDC *arg1 = (FXDC *) 0 ;
4030
+ FXDC *arg1 = 0 ;
3889
4031
  FXint arg2 ;
3890
4032
  FXint arg3 ;
3891
4033
  FXint arg4 ;
@@ -3914,8 +4056,8 @@ fail:
3914
4056
 
3915
4057
  SWIGINTERN VALUE
3916
4058
  _wrap_FXDC_fillRectangles(int argc, VALUE *argv, VALUE self) {
3917
- FXDC *arg1 = (FXDC *) 0 ;
3918
- FXRectangle *arg2 = (FXRectangle *) 0 ;
4059
+ FXDC *arg1 = 0 ;
4060
+ FXRectangle *arg2 = 0 ;
3919
4061
  FXuint arg3 ;
3920
4062
  void *argp1 = 0 ;
3921
4063
  int res1 = 0 ;
@@ -3933,8 +4075,8 @@ _wrap_FXDC_fillRectangles(int argc, VALUE *argv, VALUE self) {
3933
4075
  arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
3934
4076
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
3935
4077
  for (FXuint i = 0; i < arg3; i++) {
3936
- FXRectangle *pRect;
3937
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
4078
+ VALUE entry = rb_ary_entry(argv[0], i);
4079
+ FXRectangle *pRect = (FXRectangle*)FXRbConvertPtr(entry, SWIGTYPE_p_FXRectangle, 0);
3938
4080
  arg2[i] = *pRect;
3939
4081
  }
3940
4082
  }
@@ -3953,7 +4095,7 @@ fail:
3953
4095
 
3954
4096
  SWIGINTERN VALUE
3955
4097
  _wrap_FXDC_fillRoundRectangle(int argc, VALUE *argv, VALUE self) {
3956
- FXDC *arg1 = (FXDC *) 0 ;
4098
+ FXDC *arg1 = 0 ;
3957
4099
  FXint arg2 ;
3958
4100
  FXint arg3 ;
3959
4101
  FXint arg4 ;
@@ -3986,7 +4128,7 @@ fail:
3986
4128
 
3987
4129
  SWIGINTERN VALUE
3988
4130
  _wrap_FXDC_fillChord(int argc, VALUE *argv, VALUE self) {
3989
- FXDC *arg1 = (FXDC *) 0 ;
4131
+ FXDC *arg1 = 0 ;
3990
4132
  FXint arg2 ;
3991
4133
  FXint arg3 ;
3992
4134
  FXint arg4 ;
@@ -4019,8 +4161,8 @@ fail:
4019
4161
 
4020
4162
  SWIGINTERN VALUE
4021
4163
  _wrap_FXDC_fillChords(int argc, VALUE *argv, VALUE self) {
4022
- FXDC *arg1 = (FXDC *) 0 ;
4023
- FXArc *arg2 = (FXArc *) 0 ;
4164
+ FXDC *arg1 = 0 ;
4165
+ FXArc *arg2 = 0 ;
4024
4166
  FXuint arg3 ;
4025
4167
  void *argp1 = 0 ;
4026
4168
  int res1 = 0 ;
@@ -4050,7 +4192,7 @@ fail:
4050
4192
 
4051
4193
  SWIGINTERN VALUE
4052
4194
  _wrap_FXDC_fillArc(int argc, VALUE *argv, VALUE self) {
4053
- FXDC *arg1 = (FXDC *) 0 ;
4195
+ FXDC *arg1 = 0 ;
4054
4196
  FXint arg2 ;
4055
4197
  FXint arg3 ;
4056
4198
  FXint arg4 ;
@@ -4083,8 +4225,8 @@ fail:
4083
4225
 
4084
4226
  SWIGINTERN VALUE
4085
4227
  _wrap_FXDC_fillArcs(int argc, VALUE *argv, VALUE self) {
4086
- FXDC *arg1 = (FXDC *) 0 ;
4087
- FXArc *arg2 = (FXArc *) 0 ;
4228
+ FXDC *arg1 = 0 ;
4229
+ FXArc *arg2 = 0 ;
4088
4230
  FXuint arg3 ;
4089
4231
  void *argp1 = 0 ;
4090
4232
  int res1 = 0 ;
@@ -4102,8 +4244,8 @@ _wrap_FXDC_fillArcs(int argc, VALUE *argv, VALUE self) {
4102
4244
  arg2 = new FXArc[RARRAY_LEN(argv[0])];
4103
4245
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
4104
4246
  for (FXuint i = 0; i < arg3; i++) {
4105
- FXArc *pArc;
4106
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
4247
+ VALUE entry = rb_ary_entry(argv[0], i);
4248
+ FXArc *pArc = (FXArc*)FXRbConvertPtr(entry, SWIGTYPE_p_FXArc, 0);
4107
4249
  arg2[i] = *pArc;
4108
4250
  }
4109
4251
  }
@@ -4116,8 +4258,8 @@ fail:
4116
4258
 
4117
4259
  SWIGINTERN VALUE
4118
4260
  _wrap_FXDC_fillPolygon(int argc, VALUE *argv, VALUE self) {
4119
- FXDC *arg1 = (FXDC *) 0 ;
4120
- FXPoint *arg2 = (FXPoint *) 0 ;
4261
+ FXDC *arg1 = 0 ;
4262
+ FXPoint *arg2 = 0 ;
4121
4263
  FXuint arg3 ;
4122
4264
  void *argp1 = 0 ;
4123
4265
  int res1 = 0 ;
@@ -4135,8 +4277,8 @@ _wrap_FXDC_fillPolygon(int argc, VALUE *argv, VALUE self) {
4135
4277
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
4136
4278
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
4137
4279
  for (FXuint i = 0; i < arg3; i++) {
4138
- FXPoint *pPoint;
4139
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
4280
+ VALUE entry = rb_ary_entry(argv[0], i);
4281
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
4140
4282
  arg2[i] = *pPoint;
4141
4283
  }
4142
4284
  }
@@ -4155,8 +4297,8 @@ fail:
4155
4297
 
4156
4298
  SWIGINTERN VALUE
4157
4299
  _wrap_FXDC_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
4158
- FXDC *arg1 = (FXDC *) 0 ;
4159
- FXPoint *arg2 = (FXPoint *) 0 ;
4300
+ FXDC *arg1 = 0 ;
4301
+ FXPoint *arg2 = 0 ;
4160
4302
  FXuint arg3 ;
4161
4303
  void *argp1 = 0 ;
4162
4304
  int res1 = 0 ;
@@ -4174,8 +4316,8 @@ _wrap_FXDC_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
4174
4316
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
4175
4317
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
4176
4318
  for (FXuint i = 0; i < arg3; i++) {
4177
- FXPoint *pPoint;
4178
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
4319
+ VALUE entry = rb_ary_entry(argv[0], i);
4320
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
4179
4321
  arg2[i] = *pPoint;
4180
4322
  }
4181
4323
  }
@@ -4194,8 +4336,8 @@ fail:
4194
4336
 
4195
4337
  SWIGINTERN VALUE
4196
4338
  _wrap_FXDC_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
4197
- FXDC *arg1 = (FXDC *) 0 ;
4198
- FXPoint *arg2 = (FXPoint *) 0 ;
4339
+ FXDC *arg1 = 0 ;
4340
+ FXPoint *arg2 = 0 ;
4199
4341
  FXuint arg3 ;
4200
4342
  void *argp1 = 0 ;
4201
4343
  int res1 = 0 ;
@@ -4213,8 +4355,8 @@ _wrap_FXDC_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
4213
4355
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
4214
4356
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
4215
4357
  for (FXuint i = 0; i < arg3; i++) {
4216
- FXPoint *pPoint;
4217
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
4358
+ VALUE entry = rb_ary_entry(argv[0], i);
4359
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
4218
4360
  arg2[i] = *pPoint;
4219
4361
  }
4220
4362
  }
@@ -4233,8 +4375,8 @@ fail:
4233
4375
 
4234
4376
  SWIGINTERN VALUE
4235
4377
  _wrap_FXDC_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
4236
- FXDC *arg1 = (FXDC *) 0 ;
4237
- FXPoint *arg2 = (FXPoint *) 0 ;
4378
+ FXDC *arg1 = 0 ;
4379
+ FXPoint *arg2 = 0 ;
4238
4380
  FXuint arg3 ;
4239
4381
  void *argp1 = 0 ;
4240
4382
  int res1 = 0 ;
@@ -4252,8 +4394,8 @@ _wrap_FXDC_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
4252
4394
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
4253
4395
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
4254
4396
  for (FXuint i = 0; i < arg3; i++) {
4255
- FXPoint *pPoint;
4256
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
4397
+ VALUE entry = rb_ary_entry(argv[0], i);
4398
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
4257
4399
  arg2[i] = *pPoint;
4258
4400
  }
4259
4401
  }
@@ -4272,8 +4414,8 @@ fail:
4272
4414
 
4273
4415
  SWIGINTERN VALUE
4274
4416
  _wrap_FXDC_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
4275
- FXDC *arg1 = (FXDC *) 0 ;
4276
- FXPoint *arg2 = (FXPoint *) 0 ;
4417
+ FXDC *arg1 = 0 ;
4418
+ FXPoint *arg2 = 0 ;
4277
4419
  FXuint arg3 ;
4278
4420
  void *argp1 = 0 ;
4279
4421
  int res1 = 0 ;
@@ -4291,8 +4433,8 @@ _wrap_FXDC_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
4291
4433
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
4292
4434
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
4293
4435
  for (FXuint i = 0; i < arg3; i++) {
4294
- FXPoint *pPoint;
4295
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
4436
+ VALUE entry = rb_ary_entry(argv[0], i);
4437
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
4296
4438
  arg2[i] = *pPoint;
4297
4439
  }
4298
4440
  }
@@ -4311,8 +4453,8 @@ fail:
4311
4453
 
4312
4454
  SWIGINTERN VALUE
4313
4455
  _wrap_FXDC_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
4314
- FXDC *arg1 = (FXDC *) 0 ;
4315
- FXPoint *arg2 = (FXPoint *) 0 ;
4456
+ FXDC *arg1 = 0 ;
4457
+ FXPoint *arg2 = 0 ;
4316
4458
  FXuint arg3 ;
4317
4459
  void *argp1 = 0 ;
4318
4460
  int res1 = 0 ;
@@ -4330,8 +4472,8 @@ _wrap_FXDC_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
4330
4472
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
4331
4473
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
4332
4474
  for (FXuint i = 0; i < arg3; i++) {
4333
- FXPoint *pPoint;
4334
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
4475
+ VALUE entry = rb_ary_entry(argv[0], i);
4476
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
4335
4477
  arg2[i] = *pPoint;
4336
4478
  }
4337
4479
  }
@@ -4350,12 +4492,12 @@ fail:
4350
4492
 
4351
4493
  SWIGINTERN VALUE
4352
4494
  _wrap_FXDC_drawHashBox(int argc, VALUE *argv, VALUE self) {
4353
- FXDC *arg1 = (FXDC *) 0 ;
4495
+ FXDC *arg1 = 0 ;
4354
4496
  FXint arg2 ;
4355
4497
  FXint arg3 ;
4356
4498
  FXint arg4 ;
4357
4499
  FXint arg5 ;
4358
- FXint arg6 = (FXint) 1 ;
4500
+ FXint arg6 = 1 ;
4359
4501
  void *argp1 = 0 ;
4360
4502
  int res1 = 0 ;
4361
4503
 
@@ -4383,7 +4525,7 @@ fail:
4383
4525
 
4384
4526
  SWIGINTERN VALUE
4385
4527
  _wrap_FXDC_drawFocusRectangle(int argc, VALUE *argv, VALUE self) {
4386
- FXDC *arg1 = (FXDC *) 0 ;
4528
+ FXDC *arg1 = 0 ;
4387
4529
  FXint arg2 ;
4388
4530
  FXint arg3 ;
4389
4531
  FXint arg4 ;
@@ -4412,8 +4554,8 @@ fail:
4412
4554
 
4413
4555
  SWIGINTERN VALUE
4414
4556
  _wrap_FXDC_drawArea__SWIG_0(int argc, VALUE *argv, VALUE self) {
4415
- FXDC *arg1 = (FXDC *) 0 ;
4416
- FXDrawable *arg2 = (FXDrawable *) 0 ;
4557
+ FXDC *arg1 = 0 ;
4558
+ FXDrawable *arg2 = 0 ;
4417
4559
  FXint arg3 ;
4418
4560
  FXint arg4 ;
4419
4561
  FXint arg5 ;
@@ -4453,8 +4595,8 @@ fail:
4453
4595
 
4454
4596
  SWIGINTERN VALUE
4455
4597
  _wrap_FXDC_drawArea__SWIG_1(int argc, VALUE *argv, VALUE self) {
4456
- FXDC *arg1 = (FXDC *) 0 ;
4457
- FXDrawable *arg2 = (FXDrawable *) 0 ;
4598
+ FXDC *arg1 = 0 ;
4599
+ FXDrawable *arg2 = 0 ;
4458
4600
  FXint arg3 ;
4459
4601
  FXint arg4 ;
4460
4602
  FXint arg5 ;
@@ -4617,8 +4759,8 @@ fail:
4617
4759
 
4618
4760
  SWIGINTERN VALUE
4619
4761
  _wrap_FXDC_drawImage(int argc, VALUE *argv, VALUE self) {
4620
- FXDC *arg1 = (FXDC *) 0 ;
4621
- FXImage *arg2 = (FXImage *) 0 ;
4762
+ FXDC *arg1 = 0 ;
4763
+ FXImage *arg2 = 0 ;
4622
4764
  FXint arg3 ;
4623
4765
  FXint arg4 ;
4624
4766
  void *argp1 = 0 ;
@@ -4650,8 +4792,8 @@ fail:
4650
4792
 
4651
4793
  SWIGINTERN VALUE
4652
4794
  _wrap_FXDC_drawBitmap(int argc, VALUE *argv, VALUE self) {
4653
- FXDC *arg1 = (FXDC *) 0 ;
4654
- FXBitmap *arg2 = (FXBitmap *) 0 ;
4795
+ FXDC *arg1 = 0 ;
4796
+ FXBitmap *arg2 = 0 ;
4655
4797
  FXint arg3 ;
4656
4798
  FXint arg4 ;
4657
4799
  void *argp1 = 0 ;
@@ -4683,8 +4825,8 @@ fail:
4683
4825
 
4684
4826
  SWIGINTERN VALUE
4685
4827
  _wrap_FXDC_drawIcon(int argc, VALUE *argv, VALUE self) {
4686
- FXDC *arg1 = (FXDC *) 0 ;
4687
- FXIcon *arg2 = (FXIcon *) 0 ;
4828
+ FXDC *arg1 = 0 ;
4829
+ FXIcon *arg2 = 0 ;
4688
4830
  FXint arg3 ;
4689
4831
  FXint arg4 ;
4690
4832
  void *argp1 = 0 ;
@@ -4716,8 +4858,8 @@ fail:
4716
4858
 
4717
4859
  SWIGINTERN VALUE
4718
4860
  _wrap_FXDC_drawIconShaded(int argc, VALUE *argv, VALUE self) {
4719
- FXDC *arg1 = (FXDC *) 0 ;
4720
- FXIcon *arg2 = (FXIcon *) 0 ;
4861
+ FXDC *arg1 = 0 ;
4862
+ FXIcon *arg2 = 0 ;
4721
4863
  FXint arg3 ;
4722
4864
  FXint arg4 ;
4723
4865
  void *argp1 = 0 ;
@@ -4749,8 +4891,8 @@ fail:
4749
4891
 
4750
4892
  SWIGINTERN VALUE
4751
4893
  _wrap_FXDC_drawIconSunken(int argc, VALUE *argv, VALUE self) {
4752
- FXDC *arg1 = (FXDC *) 0 ;
4753
- FXIcon *arg2 = (FXIcon *) 0 ;
4894
+ FXDC *arg1 = 0 ;
4895
+ FXIcon *arg2 = 0 ;
4754
4896
  FXint arg3 ;
4755
4897
  FXint arg4 ;
4756
4898
  void *argp1 = 0 ;
@@ -4782,10 +4924,10 @@ fail:
4782
4924
 
4783
4925
  SWIGINTERN VALUE
4784
4926
  _wrap_FXDC_drawText(int argc, VALUE *argv, VALUE self) {
4785
- FXDC *arg1 = (FXDC *) 0 ;
4927
+ FXDC *arg1 = 0 ;
4786
4928
  FXint arg2 ;
4787
4929
  FXint arg3 ;
4788
- FXchar *arg4 = (FXchar *) 0 ;
4930
+ FXchar *arg4 = 0 ;
4789
4931
  FXuint arg5 ;
4790
4932
  void *argp1 = 0 ;
4791
4933
  int res1 = 0 ;
@@ -4814,10 +4956,10 @@ fail:
4814
4956
 
4815
4957
  SWIGINTERN VALUE
4816
4958
  _wrap_FXDC_drawImageText(int argc, VALUE *argv, VALUE self) {
4817
- FXDC *arg1 = (FXDC *) 0 ;
4959
+ FXDC *arg1 = 0 ;
4818
4960
  FXint arg2 ;
4819
4961
  FXint arg3 ;
4820
- FXchar *arg4 = (FXchar *) 0 ;
4962
+ FXchar *arg4 = 0 ;
4821
4963
  FXuint arg5 ;
4822
4964
  void *argp1 = 0 ;
4823
4965
  int res1 = 0 ;
@@ -4846,7 +4988,7 @@ fail:
4846
4988
 
4847
4989
  SWIGINTERN VALUE
4848
4990
  _wrap_FXDC_setForeground(int argc, VALUE *argv, VALUE self) {
4849
- FXDC *arg1 = (FXDC *) 0 ;
4991
+ FXDC *arg1 = 0 ;
4850
4992
  FXColor arg2 ;
4851
4993
  void *argp1 = 0 ;
4852
4994
  int res1 = 0 ;
@@ -4869,7 +5011,7 @@ fail:
4869
5011
 
4870
5012
  SWIGINTERN VALUE
4871
5013
  _wrap_FXDC_setBackground(int argc, VALUE *argv, VALUE self) {
4872
- FXDC *arg1 = (FXDC *) 0 ;
5014
+ FXDC *arg1 = 0 ;
4873
5015
  FXColor arg2 ;
4874
5016
  void *argp1 = 0 ;
4875
5017
  int res1 = 0 ;
@@ -4892,9 +5034,9 @@ fail:
4892
5034
 
4893
5035
  SWIGINTERN VALUE
4894
5036
  _wrap_FXDC_setDashes(int argc, VALUE *argv, VALUE self) {
4895
- FXDC *arg1 = (FXDC *) 0 ;
5037
+ FXDC *arg1 = 0 ;
4896
5038
  FXuint arg2 ;
4897
- FXchar *arg3 = (FXchar *) 0 ;
5039
+ FXchar *arg3 = 0 ;
4898
5040
  FXuint arg4 ;
4899
5041
  void *argp1 = 0 ;
4900
5042
  int res1 = 0 ;
@@ -4931,8 +5073,8 @@ fail:
4931
5073
 
4932
5074
  SWIGINTERN VALUE
4933
5075
  _wrap_FXDC_setLineWidth(int argc, VALUE *argv, VALUE self) {
4934
- FXDC *arg1 = (FXDC *) 0 ;
4935
- FXuint arg2 = (FXuint) 0 ;
5076
+ FXDC *arg1 = 0 ;
5077
+ FXuint arg2 = 0 ;
4936
5078
  void *argp1 = 0 ;
4937
5079
  int res1 = 0 ;
4938
5080
 
@@ -4956,8 +5098,8 @@ fail:
4956
5098
 
4957
5099
  SWIGINTERN VALUE
4958
5100
  _wrap_FXDC_setLineCap(int argc, VALUE *argv, VALUE self) {
4959
- FXDC *arg1 = (FXDC *) 0 ;
4960
- FXCapStyle arg2 = (FXCapStyle) CAP_BUTT ;
5101
+ FXDC *arg1 = 0 ;
5102
+ FXCapStyle arg2 = CAP_BUTT ;
4961
5103
  void *argp1 = 0 ;
4962
5104
  int res1 = 0 ;
4963
5105
  int val2 ;
@@ -4987,8 +5129,8 @@ fail:
4987
5129
 
4988
5130
  SWIGINTERN VALUE
4989
5131
  _wrap_FXDC_setLineJoin(int argc, VALUE *argv, VALUE self) {
4990
- FXDC *arg1 = (FXDC *) 0 ;
4991
- FXJoinStyle arg2 = (FXJoinStyle) JOIN_MITER ;
5132
+ FXDC *arg1 = 0 ;
5133
+ FXJoinStyle arg2 = JOIN_MITER ;
4992
5134
  void *argp1 = 0 ;
4993
5135
  int res1 = 0 ;
4994
5136
  int val2 ;
@@ -5018,8 +5160,8 @@ fail:
5018
5160
 
5019
5161
  SWIGINTERN VALUE
5020
5162
  _wrap_FXDC_setLineStyle(int argc, VALUE *argv, VALUE self) {
5021
- FXDC *arg1 = (FXDC *) 0 ;
5022
- FXLineStyle arg2 = (FXLineStyle) LINE_SOLID ;
5163
+ FXDC *arg1 = 0 ;
5164
+ FXLineStyle arg2 = LINE_SOLID ;
5023
5165
  void *argp1 = 0 ;
5024
5166
  int res1 = 0 ;
5025
5167
  int val2 ;
@@ -5049,8 +5191,8 @@ fail:
5049
5191
 
5050
5192
  SWIGINTERN VALUE
5051
5193
  _wrap_FXDC_setFillStyle(int argc, VALUE *argv, VALUE self) {
5052
- FXDC *arg1 = (FXDC *) 0 ;
5053
- FXFillStyle arg2 = (FXFillStyle) FILL_SOLID ;
5194
+ FXDC *arg1 = 0 ;
5195
+ FXFillStyle arg2 = FILL_SOLID ;
5054
5196
  void *argp1 = 0 ;
5055
5197
  int res1 = 0 ;
5056
5198
  int val2 ;
@@ -5080,8 +5222,8 @@ fail:
5080
5222
 
5081
5223
  SWIGINTERN VALUE
5082
5224
  _wrap_FXDC_setFillRule(int argc, VALUE *argv, VALUE self) {
5083
- FXDC *arg1 = (FXDC *) 0 ;
5084
- FXFillRule arg2 = (FXFillRule) RULE_EVEN_ODD ;
5225
+ FXDC *arg1 = 0 ;
5226
+ FXFillRule arg2 = RULE_EVEN_ODD ;
5085
5227
  void *argp1 = 0 ;
5086
5228
  int res1 = 0 ;
5087
5229
  int val2 ;
@@ -5111,8 +5253,8 @@ fail:
5111
5253
 
5112
5254
  SWIGINTERN VALUE
5113
5255
  _wrap_FXDC_setFunction(int argc, VALUE *argv, VALUE self) {
5114
- FXDC *arg1 = (FXDC *) 0 ;
5115
- FXFunction arg2 = (FXFunction) BLT_SRC ;
5256
+ FXDC *arg1 = 0 ;
5257
+ FXFunction arg2 = BLT_SRC ;
5116
5258
  void *argp1 = 0 ;
5117
5259
  int res1 = 0 ;
5118
5260
  int val2 ;
@@ -5142,10 +5284,10 @@ fail:
5142
5284
 
5143
5285
  SWIGINTERN VALUE
5144
5286
  _wrap_FXDC_setTile(int argc, VALUE *argv, VALUE self) {
5145
- FXDC *arg1 = (FXDC *) 0 ;
5146
- FXImage *arg2 = (FXImage *) 0 ;
5147
- FXint arg3 = (FXint) 0 ;
5148
- FXint arg4 = (FXint) 0 ;
5287
+ FXDC *arg1 = 0 ;
5288
+ FXImage *arg2 = 0 ;
5289
+ FXint arg3 = 0 ;
5290
+ FXint arg4 = 0 ;
5149
5291
  void *argp1 = 0 ;
5150
5292
  int res1 = 0 ;
5151
5293
  void *argp2 = 0 ;
@@ -5179,10 +5321,10 @@ fail:
5179
5321
 
5180
5322
  SWIGINTERN VALUE
5181
5323
  _wrap_FXDC_setStipple__SWIG_0(int argc, VALUE *argv, VALUE self) {
5182
- FXDC *arg1 = (FXDC *) 0 ;
5183
- FXBitmap *arg2 = (FXBitmap *) 0 ;
5184
- FXint arg3 = (FXint) 0 ;
5185
- FXint arg4 = (FXint) 0 ;
5324
+ FXDC *arg1 = 0 ;
5325
+ FXBitmap *arg2 = 0 ;
5326
+ FXint arg3 = 0 ;
5327
+ FXint arg4 = 0 ;
5186
5328
  void *argp1 = 0 ;
5187
5329
  int res1 = 0 ;
5188
5330
  void *argp2 = 0 ;
@@ -5216,10 +5358,10 @@ fail:
5216
5358
 
5217
5359
  SWIGINTERN VALUE
5218
5360
  _wrap_FXDC_setStipple__SWIG_1(int argc, VALUE *argv, VALUE self) {
5219
- FXDC *arg1 = (FXDC *) 0 ;
5361
+ FXDC *arg1 = 0 ;
5220
5362
  FXStipplePattern arg2 ;
5221
- FXint arg3 = (FXint) 0 ;
5222
- FXint arg4 = (FXint) 0 ;
5363
+ FXint arg3 = 0 ;
5364
+ FXint arg4 = 0 ;
5223
5365
  void *argp1 = 0 ;
5224
5366
  int res1 = 0 ;
5225
5367
  int val2 ;
@@ -5335,7 +5477,7 @@ fail:
5335
5477
 
5336
5478
  SWIGINTERN VALUE
5337
5479
  _wrap_FXDC_setClipRegion(int argc, VALUE *argv, VALUE self) {
5338
- FXDC *arg1 = (FXDC *) 0 ;
5480
+ FXDC *arg1 = 0 ;
5339
5481
  FXRegion *arg2 = 0 ;
5340
5482
  void *argp1 = 0 ;
5341
5483
  int res1 = 0 ;
@@ -5355,7 +5497,7 @@ _wrap_FXDC_setClipRegion(int argc, VALUE *argv, VALUE self) {
5355
5497
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setClipRegion", 2, argv[0] ));
5356
5498
  }
5357
5499
  if (!argp2) {
5358
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0]));
5500
+ SWIG_exception_fail(SWIG_NullReferenceError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0]));
5359
5501
  }
5360
5502
  arg2 = reinterpret_cast< FXRegion * >(argp2);
5361
5503
  FXDC_setClipRegion(arg1,(FXRegion const &)*arg2);
@@ -5367,7 +5509,7 @@ fail:
5367
5509
 
5368
5510
  SWIGINTERN VALUE
5369
5511
  _wrap_FXDC_setClipRectangle__SWIG_0(int argc, VALUE *argv, VALUE self) {
5370
- FXDC *arg1 = (FXDC *) 0 ;
5512
+ FXDC *arg1 = 0 ;
5371
5513
  FXint arg2 ;
5372
5514
  FXint arg3 ;
5373
5515
  FXint arg4 ;
@@ -5396,7 +5538,7 @@ fail:
5396
5538
 
5397
5539
  SWIGINTERN VALUE
5398
5540
  _wrap_FXDC_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
5399
- FXDC *arg1 = (FXDC *) 0 ;
5541
+ FXDC *arg1 = 0 ;
5400
5542
  FXRectangle *arg2 = 0 ;
5401
5543
  void *argp1 = 0 ;
5402
5544
  int res1 = 0 ;
@@ -5416,7 +5558,7 @@ _wrap_FXDC_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
5416
5558
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","setClipRectangle", 2, argv[0] ));
5417
5559
  }
5418
5560
  if (!argp2) {
5419
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0]));
5561
+ SWIG_exception_fail(SWIG_NullReferenceError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0]));
5420
5562
  }
5421
5563
  arg2 = reinterpret_cast< FXRectangle * >(argp2);
5422
5564
  FXDC_setClipRectangle(arg1,(FXRectangle const &)*arg2);
@@ -5492,7 +5634,7 @@ fail:
5492
5634
 
5493
5635
  SWIGINTERN VALUE
5494
5636
  _wrap_FXDC_clearClipRectangle(int argc, VALUE *argv, VALUE self) {
5495
- FXDC *arg1 = (FXDC *) 0 ;
5637
+ FXDC *arg1 = 0 ;
5496
5638
  void *argp1 = 0 ;
5497
5639
  int res1 = 0 ;
5498
5640
 
@@ -5513,10 +5655,10 @@ fail:
5513
5655
 
5514
5656
  SWIGINTERN VALUE
5515
5657
  _wrap_FXDC_setClipMask(int argc, VALUE *argv, VALUE self) {
5516
- FXDC *arg1 = (FXDC *) 0 ;
5517
- FXBitmap *arg2 = (FXBitmap *) 0 ;
5518
- FXint arg3 = (FXint) 0 ;
5519
- FXint arg4 = (FXint) 0 ;
5658
+ FXDC *arg1 = 0 ;
5659
+ FXBitmap *arg2 = 0 ;
5660
+ FXint arg3 = 0 ;
5661
+ FXint arg4 = 0 ;
5520
5662
  void *argp1 = 0 ;
5521
5663
  int res1 = 0 ;
5522
5664
  void *argp2 = 0 ;
@@ -5550,7 +5692,7 @@ fail:
5550
5692
 
5551
5693
  SWIGINTERN VALUE
5552
5694
  _wrap_FXDC_clearClipMask(int argc, VALUE *argv, VALUE self) {
5553
- FXDC *arg1 = (FXDC *) 0 ;
5695
+ FXDC *arg1 = 0 ;
5554
5696
  void *argp1 = 0 ;
5555
5697
  int res1 = 0 ;
5556
5698
 
@@ -5571,8 +5713,8 @@ fail:
5571
5713
 
5572
5714
  SWIGINTERN VALUE
5573
5715
  _wrap_FXDC_setFont(int argc, VALUE *argv, VALUE self) {
5574
- FXDC *arg1 = (FXDC *) 0 ;
5575
- FXFont *arg2 = (FXFont *) 0 ;
5716
+ FXDC *arg1 = 0 ;
5717
+ FXFont *arg2 = 0 ;
5576
5718
  void *argp1 = 0 ;
5577
5719
  int res1 = 0 ;
5578
5720
  void *argp2 = 0 ;
@@ -5600,7 +5742,7 @@ fail:
5600
5742
 
5601
5743
  SWIGINTERN VALUE
5602
5744
  _wrap_FXDC_clipChildren(int argc, VALUE *argv, VALUE self) {
5603
- FXDC *arg1 = (FXDC *) 0 ;
5745
+ FXDC *arg1 = 0 ;
5604
5746
  FXbool arg2 ;
5605
5747
  void *argp1 = 0 ;
5606
5748
  int res1 = 0 ;
@@ -5625,8 +5767,8 @@ static swig_class SwigClassFXDCWindow;
5625
5767
 
5626
5768
  SWIGINTERN VALUE
5627
5769
  _wrap_new_FXDCWindow__SWIG_0(int argc, VALUE *argv, VALUE self) {
5628
- FXDrawable *arg1 = (FXDrawable *) 0 ;
5629
- FXEvent *arg2 = (FXEvent *) 0 ;
5770
+ FXDrawable *arg1 = 0 ;
5771
+ FXEvent *arg2 = 0 ;
5630
5772
  void *argp1 = 0 ;
5631
5773
  int res1 = 0 ;
5632
5774
  void *argp2 = 0 ;
@@ -5648,9 +5790,9 @@ _wrap_new_FXDCWindow__SWIG_0(int argc, VALUE *argv, VALUE self) {
5648
5790
  arg2 = reinterpret_cast< FXEvent * >(argp2);
5649
5791
  {
5650
5792
  result = (FXDCWindow *)new_FXDCWindow__SWIG_0(arg1,arg2);
5651
- DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
5793
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(self))->data = result; FXRbRegisterRubyObj(self, result);
5652
5794
  if(rb_block_given_p()){
5653
- rb_ensure(RUBY_VALUE_METHOD_FUNC(rb_yield), self, RUBY_VALUE_METHOD_FUNC(FXRbDCWindow::endit), self);
5795
+ rb_ensure(VALUEFUNC(rb_yield), self, VALUEFUNC(FXRbDCWindow::endit), self);
5654
5796
  }
5655
5797
  }
5656
5798
  return self;
@@ -5676,7 +5818,7 @@ _wrap_FXDCWindow_allocate(int argc, VALUE *argv, VALUE self)
5676
5818
 
5677
5819
  SWIGINTERN VALUE
5678
5820
  _wrap_new_FXDCWindow__SWIG_1(int argc, VALUE *argv, VALUE self) {
5679
- FXDrawable *arg1 = (FXDrawable *) 0 ;
5821
+ FXDrawable *arg1 = 0 ;
5680
5822
  void *argp1 = 0 ;
5681
5823
  int res1 = 0 ;
5682
5824
  FXDCWindow *result = 0 ;
@@ -5691,9 +5833,9 @@ _wrap_new_FXDCWindow__SWIG_1(int argc, VALUE *argv, VALUE self) {
5691
5833
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
5692
5834
  {
5693
5835
  result = (FXDCWindow *)new_FXDCWindow__SWIG_1(arg1);
5694
- DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
5836
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(self))->data = result; FXRbRegisterRubyObj(self, result);
5695
5837
  if(rb_block_given_p()){
5696
- rb_ensure(RUBY_VALUE_METHOD_FUNC(rb_yield), self, RUBY_VALUE_METHOD_FUNC(FXRbDCWindow::endit), self);
5838
+ rb_ensure(VALUEFUNC(rb_yield), self, VALUEFUNC(FXRbDCWindow::endit), self);
5697
5839
  }
5698
5840
  }
5699
5841
  return self;
@@ -5747,8 +5889,8 @@ fail:
5747
5889
 
5748
5890
  SWIGINTERN VALUE
5749
5891
  _wrap_FXDCWindow_begin(int argc, VALUE *argv, VALUE self) {
5750
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
5751
- FXDrawable *arg2 = (FXDrawable *) 0 ;
5892
+ FXDCWindow *arg1 = 0 ;
5893
+ FXDrawable *arg2 = 0 ;
5752
5894
  void *argp1 = 0 ;
5753
5895
  int res1 = 0 ;
5754
5896
  void *argp2 = 0 ;
@@ -5776,7 +5918,7 @@ fail:
5776
5918
 
5777
5919
  SWIGINTERN VALUE
5778
5920
  _wrap_FXDCWindow_end(int argc, VALUE *argv, VALUE self) {
5779
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
5921
+ FXDCWindow *arg1 = 0 ;
5780
5922
  void *argp1 = 0 ;
5781
5923
  int res1 = 0 ;
5782
5924
 
@@ -5795,15 +5937,9 @@ fail:
5795
5937
  }
5796
5938
 
5797
5939
 
5798
- SWIGINTERN void
5799
- free_FXDCWindow(void *self) {
5800
- FXDCWindow *arg1 = (FXDCWindow *)self;
5801
- delete arg1;
5802
- }
5803
-
5804
5940
  SWIGINTERN VALUE
5805
5941
  _wrap_FXDCWindow_readPixel(int argc, VALUE *argv, VALUE self) {
5806
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
5942
+ FXDCWindow *arg1 = 0 ;
5807
5943
  FXint arg2 ;
5808
5944
  FXint arg3 ;
5809
5945
  void *argp1 = 0 ;
@@ -5831,7 +5967,7 @@ fail:
5831
5967
 
5832
5968
  SWIGINTERN VALUE
5833
5969
  _wrap_FXDCWindow_drawPoint(int argc, VALUE *argv, VALUE self) {
5834
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
5970
+ FXDCWindow *arg1 = 0 ;
5835
5971
  FXint arg2 ;
5836
5972
  FXint arg3 ;
5837
5973
  void *argp1 = 0 ;
@@ -5856,8 +5992,8 @@ fail:
5856
5992
 
5857
5993
  SWIGINTERN VALUE
5858
5994
  _wrap_FXDCWindow_drawPoints(int argc, VALUE *argv, VALUE self) {
5859
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
5860
- FXPoint *arg2 = (FXPoint *) 0 ;
5995
+ FXDCWindow *arg1 = 0 ;
5996
+ FXPoint *arg2 = 0 ;
5861
5997
  FXuint arg3 ;
5862
5998
  void *argp1 = 0 ;
5863
5999
  int res1 = 0 ;
@@ -5875,8 +6011,8 @@ _wrap_FXDCWindow_drawPoints(int argc, VALUE *argv, VALUE self) {
5875
6011
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
5876
6012
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
5877
6013
  for (FXuint i = 0; i < arg3; i++) {
5878
- FXPoint *pPoint;
5879
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6014
+ VALUE entry = rb_ary_entry(argv[0], i);
6015
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
5880
6016
  arg2[i] = *pPoint;
5881
6017
  }
5882
6018
  }
@@ -5895,8 +6031,8 @@ fail:
5895
6031
 
5896
6032
  SWIGINTERN VALUE
5897
6033
  _wrap_FXDCWindow_drawPointsRel(int argc, VALUE *argv, VALUE self) {
5898
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
5899
- FXPoint *arg2 = (FXPoint *) 0 ;
6034
+ FXDCWindow *arg1 = 0 ;
6035
+ FXPoint *arg2 = 0 ;
5900
6036
  FXuint arg3 ;
5901
6037
  void *argp1 = 0 ;
5902
6038
  int res1 = 0 ;
@@ -5914,8 +6050,8 @@ _wrap_FXDCWindow_drawPointsRel(int argc, VALUE *argv, VALUE self) {
5914
6050
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
5915
6051
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
5916
6052
  for (FXuint i = 0; i < arg3; i++) {
5917
- FXPoint *pPoint;
5918
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6053
+ VALUE entry = rb_ary_entry(argv[0], i);
6054
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
5919
6055
  arg2[i] = *pPoint;
5920
6056
  }
5921
6057
  }
@@ -5934,7 +6070,7 @@ fail:
5934
6070
 
5935
6071
  SWIGINTERN VALUE
5936
6072
  _wrap_FXDCWindow_drawLine(int argc, VALUE *argv, VALUE self) {
5937
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6073
+ FXDCWindow *arg1 = 0 ;
5938
6074
  FXint arg2 ;
5939
6075
  FXint arg3 ;
5940
6076
  FXint arg4 ;
@@ -5963,8 +6099,8 @@ fail:
5963
6099
 
5964
6100
  SWIGINTERN VALUE
5965
6101
  _wrap_FXDCWindow_drawLines(int argc, VALUE *argv, VALUE self) {
5966
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
5967
- FXPoint *arg2 = (FXPoint *) 0 ;
6102
+ FXDCWindow *arg1 = 0 ;
6103
+ FXPoint *arg2 = 0 ;
5968
6104
  FXuint arg3 ;
5969
6105
  void *argp1 = 0 ;
5970
6106
  int res1 = 0 ;
@@ -5982,8 +6118,8 @@ _wrap_FXDCWindow_drawLines(int argc, VALUE *argv, VALUE self) {
5982
6118
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
5983
6119
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
5984
6120
  for (FXuint i = 0; i < arg3; i++) {
5985
- FXPoint *pPoint;
5986
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6121
+ VALUE entry = rb_ary_entry(argv[0], i);
6122
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
5987
6123
  arg2[i] = *pPoint;
5988
6124
  }
5989
6125
  }
@@ -6002,8 +6138,8 @@ fail:
6002
6138
 
6003
6139
  SWIGINTERN VALUE
6004
6140
  _wrap_FXDCWindow_drawLinesRel(int argc, VALUE *argv, VALUE self) {
6005
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6006
- FXPoint *arg2 = (FXPoint *) 0 ;
6141
+ FXDCWindow *arg1 = 0 ;
6142
+ FXPoint *arg2 = 0 ;
6007
6143
  FXuint arg3 ;
6008
6144
  void *argp1 = 0 ;
6009
6145
  int res1 = 0 ;
@@ -6021,8 +6157,8 @@ _wrap_FXDCWindow_drawLinesRel(int argc, VALUE *argv, VALUE self) {
6021
6157
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
6022
6158
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6023
6159
  for (FXuint i = 0; i < arg3; i++) {
6024
- FXPoint *pPoint;
6025
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6160
+ VALUE entry = rb_ary_entry(argv[0], i);
6161
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
6026
6162
  arg2[i] = *pPoint;
6027
6163
  }
6028
6164
  }
@@ -6041,8 +6177,8 @@ fail:
6041
6177
 
6042
6178
  SWIGINTERN VALUE
6043
6179
  _wrap_FXDCWindow_drawLineSegments(int argc, VALUE *argv, VALUE self) {
6044
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6045
- FXSegment *arg2 = (FXSegment *) 0 ;
6180
+ FXDCWindow *arg1 = 0 ;
6181
+ FXSegment *arg2 = 0 ;
6046
6182
  FXuint arg3 ;
6047
6183
  void *argp1 = 0 ;
6048
6184
  int res1 = 0 ;
@@ -6060,8 +6196,8 @@ _wrap_FXDCWindow_drawLineSegments(int argc, VALUE *argv, VALUE self) {
6060
6196
  arg2 = new FXSegment[RARRAY_LEN(argv[0])];
6061
6197
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6062
6198
  for (FXuint i = 0; i < arg3; i++) {
6063
- FXSegment *pSeg;
6064
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
6199
+ VALUE entry = rb_ary_entry(argv[0], i);
6200
+ FXSegment *pSeg = (FXSegment*)FXRbConvertPtr(entry, SWIGTYPE_p_FXSegment, 0);
6065
6201
  arg2[i] = *pSeg;
6066
6202
  }
6067
6203
  }
@@ -6080,7 +6216,7 @@ fail:
6080
6216
 
6081
6217
  SWIGINTERN VALUE
6082
6218
  _wrap_FXDCWindow_drawRectangle(int argc, VALUE *argv, VALUE self) {
6083
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6219
+ FXDCWindow *arg1 = 0 ;
6084
6220
  FXint arg2 ;
6085
6221
  FXint arg3 ;
6086
6222
  FXint arg4 ;
@@ -6109,8 +6245,8 @@ fail:
6109
6245
 
6110
6246
  SWIGINTERN VALUE
6111
6247
  _wrap_FXDCWindow_drawRectangles(int argc, VALUE *argv, VALUE self) {
6112
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6113
- FXRectangle *arg2 = (FXRectangle *) 0 ;
6248
+ FXDCWindow *arg1 = 0 ;
6249
+ FXRectangle *arg2 = 0 ;
6114
6250
  FXuint arg3 ;
6115
6251
  void *argp1 = 0 ;
6116
6252
  int res1 = 0 ;
@@ -6128,8 +6264,8 @@ _wrap_FXDCWindow_drawRectangles(int argc, VALUE *argv, VALUE self) {
6128
6264
  arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
6129
6265
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6130
6266
  for (FXuint i = 0; i < arg3; i++) {
6131
- FXRectangle *pRect;
6132
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
6267
+ VALUE entry = rb_ary_entry(argv[0], i);
6268
+ FXRectangle *pRect = (FXRectangle*)FXRbConvertPtr(entry, SWIGTYPE_p_FXRectangle, 0);
6133
6269
  arg2[i] = *pRect;
6134
6270
  }
6135
6271
  }
@@ -6148,7 +6284,7 @@ fail:
6148
6284
 
6149
6285
  SWIGINTERN VALUE
6150
6286
  _wrap_FXDCWindow_drawRoundRectangle(int argc, VALUE *argv, VALUE self) {
6151
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6287
+ FXDCWindow *arg1 = 0 ;
6152
6288
  FXint arg2 ;
6153
6289
  FXint arg3 ;
6154
6290
  FXint arg4 ;
@@ -6181,7 +6317,7 @@ fail:
6181
6317
 
6182
6318
  SWIGINTERN VALUE
6183
6319
  _wrap_FXDCWindow_drawArc(int argc, VALUE *argv, VALUE self) {
6184
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6320
+ FXDCWindow *arg1 = 0 ;
6185
6321
  FXint arg2 ;
6186
6322
  FXint arg3 ;
6187
6323
  FXint arg4 ;
@@ -6214,8 +6350,8 @@ fail:
6214
6350
 
6215
6351
  SWIGINTERN VALUE
6216
6352
  _wrap_FXDCWindow_drawArcs(int argc, VALUE *argv, VALUE self) {
6217
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6218
- FXArc *arg2 = (FXArc *) 0 ;
6353
+ FXDCWindow *arg1 = 0 ;
6354
+ FXArc *arg2 = 0 ;
6219
6355
  FXuint arg3 ;
6220
6356
  void *argp1 = 0 ;
6221
6357
  int res1 = 0 ;
@@ -6233,8 +6369,8 @@ _wrap_FXDCWindow_drawArcs(int argc, VALUE *argv, VALUE self) {
6233
6369
  arg2 = new FXArc[RARRAY_LEN(argv[0])];
6234
6370
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6235
6371
  for (FXuint i = 0; i < arg3; i++) {
6236
- FXArc *pArc;
6237
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
6372
+ VALUE entry = rb_ary_entry(argv[0], i);
6373
+ FXArc *pArc = (FXArc*)FXRbConvertPtr(entry, SWIGTYPE_p_FXArc, 0);
6238
6374
  arg2[i] = *pArc;
6239
6375
  }
6240
6376
  }
@@ -6247,7 +6383,7 @@ fail:
6247
6383
 
6248
6384
  SWIGINTERN VALUE
6249
6385
  _wrap_FXDCWindow_drawEllipse(int argc, VALUE *argv, VALUE self) {
6250
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6386
+ FXDCWindow *arg1 = 0 ;
6251
6387
  FXint arg2 ;
6252
6388
  FXint arg3 ;
6253
6389
  FXint arg4 ;
@@ -6276,7 +6412,7 @@ fail:
6276
6412
 
6277
6413
  SWIGINTERN VALUE
6278
6414
  _wrap_FXDCWindow_fillRectangle(int argc, VALUE *argv, VALUE self) {
6279
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6415
+ FXDCWindow *arg1 = 0 ;
6280
6416
  FXint arg2 ;
6281
6417
  FXint arg3 ;
6282
6418
  FXint arg4 ;
@@ -6305,8 +6441,8 @@ fail:
6305
6441
 
6306
6442
  SWIGINTERN VALUE
6307
6443
  _wrap_FXDCWindow_fillRectangles(int argc, VALUE *argv, VALUE self) {
6308
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6309
- FXRectangle *arg2 = (FXRectangle *) 0 ;
6444
+ FXDCWindow *arg1 = 0 ;
6445
+ FXRectangle *arg2 = 0 ;
6310
6446
  FXuint arg3 ;
6311
6447
  void *argp1 = 0 ;
6312
6448
  int res1 = 0 ;
@@ -6324,8 +6460,8 @@ _wrap_FXDCWindow_fillRectangles(int argc, VALUE *argv, VALUE self) {
6324
6460
  arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
6325
6461
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6326
6462
  for (FXuint i = 0; i < arg3; i++) {
6327
- FXRectangle *pRect;
6328
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
6463
+ VALUE entry = rb_ary_entry(argv[0], i);
6464
+ FXRectangle *pRect = (FXRectangle*)FXRbConvertPtr(entry, SWIGTYPE_p_FXRectangle, 0);
6329
6465
  arg2[i] = *pRect;
6330
6466
  }
6331
6467
  }
@@ -6344,7 +6480,7 @@ fail:
6344
6480
 
6345
6481
  SWIGINTERN VALUE
6346
6482
  _wrap_FXDCWindow_fillRoundRectangle(int argc, VALUE *argv, VALUE self) {
6347
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6483
+ FXDCWindow *arg1 = 0 ;
6348
6484
  FXint arg2 ;
6349
6485
  FXint arg3 ;
6350
6486
  FXint arg4 ;
@@ -6377,7 +6513,7 @@ fail:
6377
6513
 
6378
6514
  SWIGINTERN VALUE
6379
6515
  _wrap_FXDCWindow_fillChord(int argc, VALUE *argv, VALUE self) {
6380
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6516
+ FXDCWindow *arg1 = 0 ;
6381
6517
  FXint arg2 ;
6382
6518
  FXint arg3 ;
6383
6519
  FXint arg4 ;
@@ -6410,8 +6546,8 @@ fail:
6410
6546
 
6411
6547
  SWIGINTERN VALUE
6412
6548
  _wrap_FXDCWindow_fillChords(int argc, VALUE *argv, VALUE self) {
6413
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6414
- FXArc *arg2 = (FXArc *) 0 ;
6549
+ FXDCWindow *arg1 = 0 ;
6550
+ FXArc *arg2 = 0 ;
6415
6551
  FXuint arg3 ;
6416
6552
  void *argp1 = 0 ;
6417
6553
  int res1 = 0 ;
@@ -6441,7 +6577,7 @@ fail:
6441
6577
 
6442
6578
  SWIGINTERN VALUE
6443
6579
  _wrap_FXDCWindow_fillArc(int argc, VALUE *argv, VALUE self) {
6444
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6580
+ FXDCWindow *arg1 = 0 ;
6445
6581
  FXint arg2 ;
6446
6582
  FXint arg3 ;
6447
6583
  FXint arg4 ;
@@ -6474,8 +6610,8 @@ fail:
6474
6610
 
6475
6611
  SWIGINTERN VALUE
6476
6612
  _wrap_FXDCWindow_fillArcs(int argc, VALUE *argv, VALUE self) {
6477
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6478
- FXArc *arg2 = (FXArc *) 0 ;
6613
+ FXDCWindow *arg1 = 0 ;
6614
+ FXArc *arg2 = 0 ;
6479
6615
  FXuint arg3 ;
6480
6616
  void *argp1 = 0 ;
6481
6617
  int res1 = 0 ;
@@ -6493,8 +6629,8 @@ _wrap_FXDCWindow_fillArcs(int argc, VALUE *argv, VALUE self) {
6493
6629
  arg2 = new FXArc[RARRAY_LEN(argv[0])];
6494
6630
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6495
6631
  for (FXuint i = 0; i < arg3; i++) {
6496
- FXArc *pArc;
6497
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
6632
+ VALUE entry = rb_ary_entry(argv[0], i);
6633
+ FXArc *pArc = (FXArc*)FXRbConvertPtr(entry, SWIGTYPE_p_FXArc, 0);
6498
6634
  arg2[i] = *pArc;
6499
6635
  }
6500
6636
  }
@@ -6507,8 +6643,8 @@ fail:
6507
6643
 
6508
6644
  SWIGINTERN VALUE
6509
6645
  _wrap_FXDCWindow_fillPolygon(int argc, VALUE *argv, VALUE self) {
6510
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6511
- FXPoint *arg2 = (FXPoint *) 0 ;
6646
+ FXDCWindow *arg1 = 0 ;
6647
+ FXPoint *arg2 = 0 ;
6512
6648
  FXuint arg3 ;
6513
6649
  void *argp1 = 0 ;
6514
6650
  int res1 = 0 ;
@@ -6526,8 +6662,8 @@ _wrap_FXDCWindow_fillPolygon(int argc, VALUE *argv, VALUE self) {
6526
6662
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
6527
6663
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6528
6664
  for (FXuint i = 0; i < arg3; i++) {
6529
- FXPoint *pPoint;
6530
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6665
+ VALUE entry = rb_ary_entry(argv[0], i);
6666
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
6531
6667
  arg2[i] = *pPoint;
6532
6668
  }
6533
6669
  }
@@ -6546,8 +6682,8 @@ fail:
6546
6682
 
6547
6683
  SWIGINTERN VALUE
6548
6684
  _wrap_FXDCWindow_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
6549
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6550
- FXPoint *arg2 = (FXPoint *) 0 ;
6685
+ FXDCWindow *arg1 = 0 ;
6686
+ FXPoint *arg2 = 0 ;
6551
6687
  FXuint arg3 ;
6552
6688
  void *argp1 = 0 ;
6553
6689
  int res1 = 0 ;
@@ -6565,8 +6701,8 @@ _wrap_FXDCWindow_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
6565
6701
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
6566
6702
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6567
6703
  for (FXuint i = 0; i < arg3; i++) {
6568
- FXPoint *pPoint;
6569
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6704
+ VALUE entry = rb_ary_entry(argv[0], i);
6705
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
6570
6706
  arg2[i] = *pPoint;
6571
6707
  }
6572
6708
  }
@@ -6585,8 +6721,8 @@ fail:
6585
6721
 
6586
6722
  SWIGINTERN VALUE
6587
6723
  _wrap_FXDCWindow_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
6588
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6589
- FXPoint *arg2 = (FXPoint *) 0 ;
6724
+ FXDCWindow *arg1 = 0 ;
6725
+ FXPoint *arg2 = 0 ;
6590
6726
  FXuint arg3 ;
6591
6727
  void *argp1 = 0 ;
6592
6728
  int res1 = 0 ;
@@ -6604,8 +6740,8 @@ _wrap_FXDCWindow_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
6604
6740
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
6605
6741
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6606
6742
  for (FXuint i = 0; i < arg3; i++) {
6607
- FXPoint *pPoint;
6608
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6743
+ VALUE entry = rb_ary_entry(argv[0], i);
6744
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
6609
6745
  arg2[i] = *pPoint;
6610
6746
  }
6611
6747
  }
@@ -6624,8 +6760,8 @@ fail:
6624
6760
 
6625
6761
  SWIGINTERN VALUE
6626
6762
  _wrap_FXDCWindow_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
6627
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6628
- FXPoint *arg2 = (FXPoint *) 0 ;
6763
+ FXDCWindow *arg1 = 0 ;
6764
+ FXPoint *arg2 = 0 ;
6629
6765
  FXuint arg3 ;
6630
6766
  void *argp1 = 0 ;
6631
6767
  int res1 = 0 ;
@@ -6643,8 +6779,8 @@ _wrap_FXDCWindow_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
6643
6779
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
6644
6780
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6645
6781
  for (FXuint i = 0; i < arg3; i++) {
6646
- FXPoint *pPoint;
6647
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6782
+ VALUE entry = rb_ary_entry(argv[0], i);
6783
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
6648
6784
  arg2[i] = *pPoint;
6649
6785
  }
6650
6786
  }
@@ -6663,8 +6799,8 @@ fail:
6663
6799
 
6664
6800
  SWIGINTERN VALUE
6665
6801
  _wrap_FXDCWindow_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
6666
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6667
- FXPoint *arg2 = (FXPoint *) 0 ;
6802
+ FXDCWindow *arg1 = 0 ;
6803
+ FXPoint *arg2 = 0 ;
6668
6804
  FXuint arg3 ;
6669
6805
  void *argp1 = 0 ;
6670
6806
  int res1 = 0 ;
@@ -6682,8 +6818,8 @@ _wrap_FXDCWindow_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
6682
6818
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
6683
6819
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6684
6820
  for (FXuint i = 0; i < arg3; i++) {
6685
- FXPoint *pPoint;
6686
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6821
+ VALUE entry = rb_ary_entry(argv[0], i);
6822
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
6687
6823
  arg2[i] = *pPoint;
6688
6824
  }
6689
6825
  }
@@ -6702,8 +6838,8 @@ fail:
6702
6838
 
6703
6839
  SWIGINTERN VALUE
6704
6840
  _wrap_FXDCWindow_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
6705
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6706
- FXPoint *arg2 = (FXPoint *) 0 ;
6841
+ FXDCWindow *arg1 = 0 ;
6842
+ FXPoint *arg2 = 0 ;
6707
6843
  FXuint arg3 ;
6708
6844
  void *argp1 = 0 ;
6709
6845
  int res1 = 0 ;
@@ -6721,8 +6857,8 @@ _wrap_FXDCWindow_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
6721
6857
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
6722
6858
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
6723
6859
  for (FXuint i = 0; i < arg3; i++) {
6724
- FXPoint *pPoint;
6725
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
6860
+ VALUE entry = rb_ary_entry(argv[0], i);
6861
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
6726
6862
  arg2[i] = *pPoint;
6727
6863
  }
6728
6864
  }
@@ -6741,12 +6877,12 @@ fail:
6741
6877
 
6742
6878
  SWIGINTERN VALUE
6743
6879
  _wrap_FXDCWindow_drawHashBox(int argc, VALUE *argv, VALUE self) {
6744
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6880
+ FXDCWindow *arg1 = 0 ;
6745
6881
  FXint arg2 ;
6746
6882
  FXint arg3 ;
6747
6883
  FXint arg4 ;
6748
6884
  FXint arg5 ;
6749
- FXint arg6 = (FXint) 1 ;
6885
+ FXint arg6 = 1 ;
6750
6886
  void *argp1 = 0 ;
6751
6887
  int res1 = 0 ;
6752
6888
 
@@ -6774,7 +6910,7 @@ fail:
6774
6910
 
6775
6911
  SWIGINTERN VALUE
6776
6912
  _wrap_FXDCWindow_drawFocusRectangle(int argc, VALUE *argv, VALUE self) {
6777
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6913
+ FXDCWindow *arg1 = 0 ;
6778
6914
  FXint arg2 ;
6779
6915
  FXint arg3 ;
6780
6916
  FXint arg4 ;
@@ -6803,8 +6939,8 @@ fail:
6803
6939
 
6804
6940
  SWIGINTERN VALUE
6805
6941
  _wrap_FXDCWindow_drawArea__SWIG_0(int argc, VALUE *argv, VALUE self) {
6806
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6807
- FXDrawable *arg2 = (FXDrawable *) 0 ;
6942
+ FXDCWindow *arg1 = 0 ;
6943
+ FXDrawable *arg2 = 0 ;
6808
6944
  FXint arg3 ;
6809
6945
  FXint arg4 ;
6810
6946
  FXint arg5 ;
@@ -6844,8 +6980,8 @@ fail:
6844
6980
 
6845
6981
  SWIGINTERN VALUE
6846
6982
  _wrap_FXDCWindow_drawArea__SWIG_1(int argc, VALUE *argv, VALUE self) {
6847
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
6848
- FXDrawable *arg2 = (FXDrawable *) 0 ;
6983
+ FXDCWindow *arg1 = 0 ;
6984
+ FXDrawable *arg2 = 0 ;
6849
6985
  FXint arg3 ;
6850
6986
  FXint arg4 ;
6851
6987
  FXint arg5 ;
@@ -7008,8 +7144,8 @@ fail:
7008
7144
 
7009
7145
  SWIGINTERN VALUE
7010
7146
  _wrap_FXDCWindow_drawImage(int argc, VALUE *argv, VALUE self) {
7011
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7012
- FXImage *arg2 = (FXImage *) 0 ;
7147
+ FXDCWindow *arg1 = 0 ;
7148
+ FXImage *arg2 = 0 ;
7013
7149
  FXint arg3 ;
7014
7150
  FXint arg4 ;
7015
7151
  void *argp1 = 0 ;
@@ -7041,8 +7177,8 @@ fail:
7041
7177
 
7042
7178
  SWIGINTERN VALUE
7043
7179
  _wrap_FXDCWindow_drawBitmap(int argc, VALUE *argv, VALUE self) {
7044
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7045
- FXBitmap *arg2 = (FXBitmap *) 0 ;
7180
+ FXDCWindow *arg1 = 0 ;
7181
+ FXBitmap *arg2 = 0 ;
7046
7182
  FXint arg3 ;
7047
7183
  FXint arg4 ;
7048
7184
  void *argp1 = 0 ;
@@ -7074,8 +7210,8 @@ fail:
7074
7210
 
7075
7211
  SWIGINTERN VALUE
7076
7212
  _wrap_FXDCWindow_drawIcon(int argc, VALUE *argv, VALUE self) {
7077
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7078
- FXIcon *arg2 = (FXIcon *) 0 ;
7213
+ FXDCWindow *arg1 = 0 ;
7214
+ FXIcon *arg2 = 0 ;
7079
7215
  FXint arg3 ;
7080
7216
  FXint arg4 ;
7081
7217
  void *argp1 = 0 ;
@@ -7107,8 +7243,8 @@ fail:
7107
7243
 
7108
7244
  SWIGINTERN VALUE
7109
7245
  _wrap_FXDCWindow_drawIconShaded(int argc, VALUE *argv, VALUE self) {
7110
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7111
- FXIcon *arg2 = (FXIcon *) 0 ;
7246
+ FXDCWindow *arg1 = 0 ;
7247
+ FXIcon *arg2 = 0 ;
7112
7248
  FXint arg3 ;
7113
7249
  FXint arg4 ;
7114
7250
  void *argp1 = 0 ;
@@ -7140,8 +7276,8 @@ fail:
7140
7276
 
7141
7277
  SWIGINTERN VALUE
7142
7278
  _wrap_FXDCWindow_drawIconSunken(int argc, VALUE *argv, VALUE self) {
7143
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7144
- FXIcon *arg2 = (FXIcon *) 0 ;
7279
+ FXDCWindow *arg1 = 0 ;
7280
+ FXIcon *arg2 = 0 ;
7145
7281
  FXint arg3 ;
7146
7282
  FXint arg4 ;
7147
7283
  void *argp1 = 0 ;
@@ -7173,10 +7309,10 @@ fail:
7173
7309
 
7174
7310
  SWIGINTERN VALUE
7175
7311
  _wrap_FXDCWindow_drawText(int argc, VALUE *argv, VALUE self) {
7176
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7312
+ FXDCWindow *arg1 = 0 ;
7177
7313
  FXint arg2 ;
7178
7314
  FXint arg3 ;
7179
- FXchar *arg4 = (FXchar *) 0 ;
7315
+ FXchar *arg4 = 0 ;
7180
7316
  FXuint arg5 ;
7181
7317
  void *argp1 = 0 ;
7182
7318
  int res1 = 0 ;
@@ -7205,10 +7341,10 @@ fail:
7205
7341
 
7206
7342
  SWIGINTERN VALUE
7207
7343
  _wrap_FXDCWindow_drawImageText(int argc, VALUE *argv, VALUE self) {
7208
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7344
+ FXDCWindow *arg1 = 0 ;
7209
7345
  FXint arg2 ;
7210
7346
  FXint arg3 ;
7211
- FXchar *arg4 = (FXchar *) 0 ;
7347
+ FXchar *arg4 = 0 ;
7212
7348
  FXuint arg5 ;
7213
7349
  void *argp1 = 0 ;
7214
7350
  int res1 = 0 ;
@@ -7237,7 +7373,7 @@ fail:
7237
7373
 
7238
7374
  SWIGINTERN VALUE
7239
7375
  _wrap_FXDCWindow_setForeground(int argc, VALUE *argv, VALUE self) {
7240
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7376
+ FXDCWindow *arg1 = 0 ;
7241
7377
  FXColor arg2 ;
7242
7378
  void *argp1 = 0 ;
7243
7379
  int res1 = 0 ;
@@ -7260,7 +7396,7 @@ fail:
7260
7396
 
7261
7397
  SWIGINTERN VALUE
7262
7398
  _wrap_FXDCWindow_setBackground(int argc, VALUE *argv, VALUE self) {
7263
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7399
+ FXDCWindow *arg1 = 0 ;
7264
7400
  FXColor arg2 ;
7265
7401
  void *argp1 = 0 ;
7266
7402
  int res1 = 0 ;
@@ -7283,9 +7419,9 @@ fail:
7283
7419
 
7284
7420
  SWIGINTERN VALUE
7285
7421
  _wrap_FXDCWindow_setDashes(int argc, VALUE *argv, VALUE self) {
7286
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7422
+ FXDCWindow *arg1 = 0 ;
7287
7423
  FXuint arg2 ;
7288
- FXchar *arg3 = (FXchar *) 0 ;
7424
+ FXchar *arg3 = 0 ;
7289
7425
  FXuint arg4 ;
7290
7426
  void *argp1 = 0 ;
7291
7427
  int res1 = 0 ;
@@ -7322,8 +7458,8 @@ fail:
7322
7458
 
7323
7459
  SWIGINTERN VALUE
7324
7460
  _wrap_FXDCWindow_setLineWidth(int argc, VALUE *argv, VALUE self) {
7325
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7326
- FXuint arg2 = (FXuint) 0 ;
7461
+ FXDCWindow *arg1 = 0 ;
7462
+ FXuint arg2 = 0 ;
7327
7463
  void *argp1 = 0 ;
7328
7464
  int res1 = 0 ;
7329
7465
 
@@ -7347,8 +7483,8 @@ fail:
7347
7483
 
7348
7484
  SWIGINTERN VALUE
7349
7485
  _wrap_FXDCWindow_setLineCap(int argc, VALUE *argv, VALUE self) {
7350
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7351
- FXCapStyle arg2 = (FXCapStyle) CAP_BUTT ;
7486
+ FXDCWindow *arg1 = 0 ;
7487
+ FXCapStyle arg2 = CAP_BUTT ;
7352
7488
  void *argp1 = 0 ;
7353
7489
  int res1 = 0 ;
7354
7490
  int val2 ;
@@ -7378,8 +7514,8 @@ fail:
7378
7514
 
7379
7515
  SWIGINTERN VALUE
7380
7516
  _wrap_FXDCWindow_setLineJoin(int argc, VALUE *argv, VALUE self) {
7381
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7382
- FXJoinStyle arg2 = (FXJoinStyle) JOIN_MITER ;
7517
+ FXDCWindow *arg1 = 0 ;
7518
+ FXJoinStyle arg2 = JOIN_MITER ;
7383
7519
  void *argp1 = 0 ;
7384
7520
  int res1 = 0 ;
7385
7521
  int val2 ;
@@ -7409,8 +7545,8 @@ fail:
7409
7545
 
7410
7546
  SWIGINTERN VALUE
7411
7547
  _wrap_FXDCWindow_setLineStyle(int argc, VALUE *argv, VALUE self) {
7412
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7413
- FXLineStyle arg2 = (FXLineStyle) LINE_SOLID ;
7548
+ FXDCWindow *arg1 = 0 ;
7549
+ FXLineStyle arg2 = LINE_SOLID ;
7414
7550
  void *argp1 = 0 ;
7415
7551
  int res1 = 0 ;
7416
7552
  int val2 ;
@@ -7440,8 +7576,8 @@ fail:
7440
7576
 
7441
7577
  SWIGINTERN VALUE
7442
7578
  _wrap_FXDCWindow_setFillStyle(int argc, VALUE *argv, VALUE self) {
7443
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7444
- FXFillStyle arg2 = (FXFillStyle) FILL_SOLID ;
7579
+ FXDCWindow *arg1 = 0 ;
7580
+ FXFillStyle arg2 = FILL_SOLID ;
7445
7581
  void *argp1 = 0 ;
7446
7582
  int res1 = 0 ;
7447
7583
  int val2 ;
@@ -7471,8 +7607,8 @@ fail:
7471
7607
 
7472
7608
  SWIGINTERN VALUE
7473
7609
  _wrap_FXDCWindow_setFillRule(int argc, VALUE *argv, VALUE self) {
7474
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7475
- FXFillRule arg2 = (FXFillRule) RULE_EVEN_ODD ;
7610
+ FXDCWindow *arg1 = 0 ;
7611
+ FXFillRule arg2 = RULE_EVEN_ODD ;
7476
7612
  void *argp1 = 0 ;
7477
7613
  int res1 = 0 ;
7478
7614
  int val2 ;
@@ -7502,8 +7638,8 @@ fail:
7502
7638
 
7503
7639
  SWIGINTERN VALUE
7504
7640
  _wrap_FXDCWindow_setFunction(int argc, VALUE *argv, VALUE self) {
7505
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7506
- FXFunction arg2 = (FXFunction) BLT_SRC ;
7641
+ FXDCWindow *arg1 = 0 ;
7642
+ FXFunction arg2 = BLT_SRC ;
7507
7643
  void *argp1 = 0 ;
7508
7644
  int res1 = 0 ;
7509
7645
  int val2 ;
@@ -7533,10 +7669,10 @@ fail:
7533
7669
 
7534
7670
  SWIGINTERN VALUE
7535
7671
  _wrap_FXDCWindow_setTile(int argc, VALUE *argv, VALUE self) {
7536
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7537
- FXImage *arg2 = (FXImage *) 0 ;
7538
- FXint arg3 = (FXint) 0 ;
7539
- FXint arg4 = (FXint) 0 ;
7672
+ FXDCWindow *arg1 = 0 ;
7673
+ FXImage *arg2 = 0 ;
7674
+ FXint arg3 = 0 ;
7675
+ FXint arg4 = 0 ;
7540
7676
  void *argp1 = 0 ;
7541
7677
  int res1 = 0 ;
7542
7678
  void *argp2 = 0 ;
@@ -7570,10 +7706,10 @@ fail:
7570
7706
 
7571
7707
  SWIGINTERN VALUE
7572
7708
  _wrap_FXDCWindow_setStipple__SWIG_0(int argc, VALUE *argv, VALUE self) {
7573
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7574
- FXBitmap *arg2 = (FXBitmap *) 0 ;
7575
- FXint arg3 = (FXint) 0 ;
7576
- FXint arg4 = (FXint) 0 ;
7709
+ FXDCWindow *arg1 = 0 ;
7710
+ FXBitmap *arg2 = 0 ;
7711
+ FXint arg3 = 0 ;
7712
+ FXint arg4 = 0 ;
7577
7713
  void *argp1 = 0 ;
7578
7714
  int res1 = 0 ;
7579
7715
  void *argp2 = 0 ;
@@ -7607,10 +7743,10 @@ fail:
7607
7743
 
7608
7744
  SWIGINTERN VALUE
7609
7745
  _wrap_FXDCWindow_setStipple__SWIG_1(int argc, VALUE *argv, VALUE self) {
7610
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7746
+ FXDCWindow *arg1 = 0 ;
7611
7747
  FXStipplePattern arg2 ;
7612
- FXint arg3 = (FXint) 0 ;
7613
- FXint arg4 = (FXint) 0 ;
7748
+ FXint arg3 = 0 ;
7749
+ FXint arg4 = 0 ;
7614
7750
  void *argp1 = 0 ;
7615
7751
  int res1 = 0 ;
7616
7752
  int val2 ;
@@ -7726,7 +7862,7 @@ fail:
7726
7862
 
7727
7863
  SWIGINTERN VALUE
7728
7864
  _wrap_FXDCWindow_setClipRegion(int argc, VALUE *argv, VALUE self) {
7729
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7865
+ FXDCWindow *arg1 = 0 ;
7730
7866
  FXRegion *arg2 = 0 ;
7731
7867
  void *argp1 = 0 ;
7732
7868
  int res1 = 0 ;
@@ -7746,7 +7882,7 @@ _wrap_FXDCWindow_setClipRegion(int argc, VALUE *argv, VALUE self) {
7746
7882
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setClipRegion", 2, argv[0] ));
7747
7883
  }
7748
7884
  if (!argp2) {
7749
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0]));
7885
+ SWIG_exception_fail(SWIG_NullReferenceError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0]));
7750
7886
  }
7751
7887
  arg2 = reinterpret_cast< FXRegion * >(argp2);
7752
7888
  FXDCWindow_setClipRegion(arg1,(FXRegion const &)*arg2);
@@ -7758,7 +7894,7 @@ fail:
7758
7894
 
7759
7895
  SWIGINTERN VALUE
7760
7896
  _wrap_FXDCWindow_setClipRectangle__SWIG_0(int argc, VALUE *argv, VALUE self) {
7761
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7897
+ FXDCWindow *arg1 = 0 ;
7762
7898
  FXint arg2 ;
7763
7899
  FXint arg3 ;
7764
7900
  FXint arg4 ;
@@ -7787,7 +7923,7 @@ fail:
7787
7923
 
7788
7924
  SWIGINTERN VALUE
7789
7925
  _wrap_FXDCWindow_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
7790
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7926
+ FXDCWindow *arg1 = 0 ;
7791
7927
  FXRectangle *arg2 = 0 ;
7792
7928
  void *argp1 = 0 ;
7793
7929
  int res1 = 0 ;
@@ -7807,7 +7943,7 @@ _wrap_FXDCWindow_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
7807
7943
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","setClipRectangle", 2, argv[0] ));
7808
7944
  }
7809
7945
  if (!argp2) {
7810
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0]));
7946
+ SWIG_exception_fail(SWIG_NullReferenceError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0]));
7811
7947
  }
7812
7948
  arg2 = reinterpret_cast< FXRectangle * >(argp2);
7813
7949
  FXDCWindow_setClipRectangle(arg1,(FXRectangle const &)*arg2);
@@ -7883,7 +8019,7 @@ fail:
7883
8019
 
7884
8020
  SWIGINTERN VALUE
7885
8021
  _wrap_FXDCWindow_clearClipRectangle(int argc, VALUE *argv, VALUE self) {
7886
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
8022
+ FXDCWindow *arg1 = 0 ;
7887
8023
  void *argp1 = 0 ;
7888
8024
  int res1 = 0 ;
7889
8025
 
@@ -7904,10 +8040,10 @@ fail:
7904
8040
 
7905
8041
  SWIGINTERN VALUE
7906
8042
  _wrap_FXDCWindow_setClipMask(int argc, VALUE *argv, VALUE self) {
7907
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7908
- FXBitmap *arg2 = (FXBitmap *) 0 ;
7909
- FXint arg3 = (FXint) 0 ;
7910
- FXint arg4 = (FXint) 0 ;
8043
+ FXDCWindow *arg1 = 0 ;
8044
+ FXBitmap *arg2 = 0 ;
8045
+ FXint arg3 = 0 ;
8046
+ FXint arg4 = 0 ;
7911
8047
  void *argp1 = 0 ;
7912
8048
  int res1 = 0 ;
7913
8049
  void *argp2 = 0 ;
@@ -7941,7 +8077,7 @@ fail:
7941
8077
 
7942
8078
  SWIGINTERN VALUE
7943
8079
  _wrap_FXDCWindow_clearClipMask(int argc, VALUE *argv, VALUE self) {
7944
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
8080
+ FXDCWindow *arg1 = 0 ;
7945
8081
  void *argp1 = 0 ;
7946
8082
  int res1 = 0 ;
7947
8083
 
@@ -7962,8 +8098,8 @@ fail:
7962
8098
 
7963
8099
  SWIGINTERN VALUE
7964
8100
  _wrap_FXDCWindow_setFont(int argc, VALUE *argv, VALUE self) {
7965
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
7966
- FXFont *arg2 = (FXFont *) 0 ;
8101
+ FXDCWindow *arg1 = 0 ;
8102
+ FXFont *arg2 = 0 ;
7967
8103
  void *argp1 = 0 ;
7968
8104
  int res1 = 0 ;
7969
8105
  void *argp2 = 0 ;
@@ -7991,7 +8127,7 @@ fail:
7991
8127
 
7992
8128
  SWIGINTERN VALUE
7993
8129
  _wrap_FXDCWindow_clipChildren(int argc, VALUE *argv, VALUE self) {
7994
- FXDCWindow *arg1 = (FXDCWindow *) 0 ;
8130
+ FXDCWindow *arg1 = 0 ;
7995
8131
  FXbool arg2 ;
7996
8132
  void *argp1 = 0 ;
7997
8133
  int res1 = 0 ;
@@ -8037,7 +8173,7 @@ _wrap_new_FXPSBounds(int argc, VALUE *argv, VALUE self) {
8037
8173
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8038
8174
  }
8039
8175
  result = (FXPSBounds *)new FXPSBounds();
8040
- DATA_PTR(self) = result;
8176
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(self))->data = result;
8041
8177
  return self;
8042
8178
  fail:
8043
8179
  return Qnil;
@@ -8046,7 +8182,7 @@ fail:
8046
8182
 
8047
8183
  SWIGINTERN VALUE
8048
8184
  _wrap_FXPSBounds_xmin_set(int argc, VALUE *argv, VALUE self) {
8049
- FXPSBounds *arg1 = (FXPSBounds *) 0 ;
8185
+ FXPSBounds *arg1 = 0 ;
8050
8186
  FXdouble arg2 ;
8051
8187
  void *argp1 = 0 ;
8052
8188
  int res1 = 0 ;
@@ -8075,7 +8211,7 @@ fail:
8075
8211
 
8076
8212
  SWIGINTERN VALUE
8077
8213
  _wrap_FXPSBounds_xmin_get(int argc, VALUE *argv, VALUE self) {
8078
- FXPSBounds *arg1 = (FXPSBounds *) 0 ;
8214
+ FXPSBounds *arg1 = 0 ;
8079
8215
  void *argp1 = 0 ;
8080
8216
  int res1 = 0 ;
8081
8217
  FXdouble result;
@@ -8099,7 +8235,7 @@ fail:
8099
8235
 
8100
8236
  SWIGINTERN VALUE
8101
8237
  _wrap_FXPSBounds_xmax_set(int argc, VALUE *argv, VALUE self) {
8102
- FXPSBounds *arg1 = (FXPSBounds *) 0 ;
8238
+ FXPSBounds *arg1 = 0 ;
8103
8239
  FXdouble arg2 ;
8104
8240
  void *argp1 = 0 ;
8105
8241
  int res1 = 0 ;
@@ -8128,7 +8264,7 @@ fail:
8128
8264
 
8129
8265
  SWIGINTERN VALUE
8130
8266
  _wrap_FXPSBounds_xmax_get(int argc, VALUE *argv, VALUE self) {
8131
- FXPSBounds *arg1 = (FXPSBounds *) 0 ;
8267
+ FXPSBounds *arg1 = 0 ;
8132
8268
  void *argp1 = 0 ;
8133
8269
  int res1 = 0 ;
8134
8270
  FXdouble result;
@@ -8152,7 +8288,7 @@ fail:
8152
8288
 
8153
8289
  SWIGINTERN VALUE
8154
8290
  _wrap_FXPSBounds_ymin_set(int argc, VALUE *argv, VALUE self) {
8155
- FXPSBounds *arg1 = (FXPSBounds *) 0 ;
8291
+ FXPSBounds *arg1 = 0 ;
8156
8292
  FXdouble arg2 ;
8157
8293
  void *argp1 = 0 ;
8158
8294
  int res1 = 0 ;
@@ -8181,7 +8317,7 @@ fail:
8181
8317
 
8182
8318
  SWIGINTERN VALUE
8183
8319
  _wrap_FXPSBounds_ymin_get(int argc, VALUE *argv, VALUE self) {
8184
- FXPSBounds *arg1 = (FXPSBounds *) 0 ;
8320
+ FXPSBounds *arg1 = 0 ;
8185
8321
  void *argp1 = 0 ;
8186
8322
  int res1 = 0 ;
8187
8323
  FXdouble result;
@@ -8205,7 +8341,7 @@ fail:
8205
8341
 
8206
8342
  SWIGINTERN VALUE
8207
8343
  _wrap_FXPSBounds_ymax_set(int argc, VALUE *argv, VALUE self) {
8208
- FXPSBounds *arg1 = (FXPSBounds *) 0 ;
8344
+ FXPSBounds *arg1 = 0 ;
8209
8345
  FXdouble arg2 ;
8210
8346
  void *argp1 = 0 ;
8211
8347
  int res1 = 0 ;
@@ -8234,7 +8370,7 @@ fail:
8234
8370
 
8235
8371
  SWIGINTERN VALUE
8236
8372
  _wrap_FXPSBounds_ymax_get(int argc, VALUE *argv, VALUE self) {
8237
- FXPSBounds *arg1 = (FXPSBounds *) 0 ;
8373
+ FXPSBounds *arg1 = 0 ;
8238
8374
  void *argp1 = 0 ;
8239
8375
  int res1 = 0 ;
8240
8376
  FXdouble result;
@@ -8287,7 +8423,7 @@ _wrap_new_FXPrinter(int argc, VALUE *argv, VALUE self) {
8287
8423
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8288
8424
  }
8289
8425
  result = (FXPrinter *)new FXPrinter();
8290
- DATA_PTR(self) = result;
8426
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(self))->data = result;
8291
8427
  return self;
8292
8428
  fail:
8293
8429
  return Qnil;
@@ -8296,7 +8432,7 @@ fail:
8296
8432
 
8297
8433
  SWIGINTERN VALUE
8298
8434
  _wrap_FXPrinter_name_set(int argc, VALUE *argv, VALUE self) {
8299
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8435
+ FXPrinter *arg1 = 0 ;
8300
8436
  FXString arg2 ;
8301
8437
  void *argp1 = 0 ;
8302
8438
  int res1 = 0 ;
@@ -8319,7 +8455,7 @@ fail:
8319
8455
 
8320
8456
  SWIGINTERN VALUE
8321
8457
  _wrap_FXPrinter_name_get(int argc, VALUE *argv, VALUE self) {
8322
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8458
+ FXPrinter *arg1 = 0 ;
8323
8459
  void *argp1 = 0 ;
8324
8460
  int res1 = 0 ;
8325
8461
  FXString result;
@@ -8343,7 +8479,7 @@ fail:
8343
8479
 
8344
8480
  SWIGINTERN VALUE
8345
8481
  _wrap_FXPrinter_firstpage_set(int argc, VALUE *argv, VALUE self) {
8346
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8482
+ FXPrinter *arg1 = 0 ;
8347
8483
  FXuint arg2 ;
8348
8484
  void *argp1 = 0 ;
8349
8485
  int res1 = 0 ;
@@ -8366,7 +8502,7 @@ fail:
8366
8502
 
8367
8503
  SWIGINTERN VALUE
8368
8504
  _wrap_FXPrinter_firstpage_get(int argc, VALUE *argv, VALUE self) {
8369
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8505
+ FXPrinter *arg1 = 0 ;
8370
8506
  void *argp1 = 0 ;
8371
8507
  int res1 = 0 ;
8372
8508
  FXuint result;
@@ -8390,7 +8526,7 @@ fail:
8390
8526
 
8391
8527
  SWIGINTERN VALUE
8392
8528
  _wrap_FXPrinter_lastpage_set(int argc, VALUE *argv, VALUE self) {
8393
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8529
+ FXPrinter *arg1 = 0 ;
8394
8530
  FXuint arg2 ;
8395
8531
  void *argp1 = 0 ;
8396
8532
  int res1 = 0 ;
@@ -8413,7 +8549,7 @@ fail:
8413
8549
 
8414
8550
  SWIGINTERN VALUE
8415
8551
  _wrap_FXPrinter_lastpage_get(int argc, VALUE *argv, VALUE self) {
8416
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8552
+ FXPrinter *arg1 = 0 ;
8417
8553
  void *argp1 = 0 ;
8418
8554
  int res1 = 0 ;
8419
8555
  FXuint result;
@@ -8437,7 +8573,7 @@ fail:
8437
8573
 
8438
8574
  SWIGINTERN VALUE
8439
8575
  _wrap_FXPrinter_currentpage_set(int argc, VALUE *argv, VALUE self) {
8440
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8576
+ FXPrinter *arg1 = 0 ;
8441
8577
  FXuint arg2 ;
8442
8578
  void *argp1 = 0 ;
8443
8579
  int res1 = 0 ;
@@ -8460,7 +8596,7 @@ fail:
8460
8596
 
8461
8597
  SWIGINTERN VALUE
8462
8598
  _wrap_FXPrinter_currentpage_get(int argc, VALUE *argv, VALUE self) {
8463
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8599
+ FXPrinter *arg1 = 0 ;
8464
8600
  void *argp1 = 0 ;
8465
8601
  int res1 = 0 ;
8466
8602
  FXuint result;
@@ -8484,7 +8620,7 @@ fail:
8484
8620
 
8485
8621
  SWIGINTERN VALUE
8486
8622
  _wrap_FXPrinter_frompage_set(int argc, VALUE *argv, VALUE self) {
8487
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8623
+ FXPrinter *arg1 = 0 ;
8488
8624
  FXuint arg2 ;
8489
8625
  void *argp1 = 0 ;
8490
8626
  int res1 = 0 ;
@@ -8507,7 +8643,7 @@ fail:
8507
8643
 
8508
8644
  SWIGINTERN VALUE
8509
8645
  _wrap_FXPrinter_frompage_get(int argc, VALUE *argv, VALUE self) {
8510
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8646
+ FXPrinter *arg1 = 0 ;
8511
8647
  void *argp1 = 0 ;
8512
8648
  int res1 = 0 ;
8513
8649
  FXuint result;
@@ -8531,7 +8667,7 @@ fail:
8531
8667
 
8532
8668
  SWIGINTERN VALUE
8533
8669
  _wrap_FXPrinter_topage_set(int argc, VALUE *argv, VALUE self) {
8534
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8670
+ FXPrinter *arg1 = 0 ;
8535
8671
  FXuint arg2 ;
8536
8672
  void *argp1 = 0 ;
8537
8673
  int res1 = 0 ;
@@ -8554,7 +8690,7 @@ fail:
8554
8690
 
8555
8691
  SWIGINTERN VALUE
8556
8692
  _wrap_FXPrinter_topage_get(int argc, VALUE *argv, VALUE self) {
8557
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8693
+ FXPrinter *arg1 = 0 ;
8558
8694
  void *argp1 = 0 ;
8559
8695
  int res1 = 0 ;
8560
8696
  FXuint result;
@@ -8578,7 +8714,7 @@ fail:
8578
8714
 
8579
8715
  SWIGINTERN VALUE
8580
8716
  _wrap_FXPrinter_mediasize_set(int argc, VALUE *argv, VALUE self) {
8581
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8717
+ FXPrinter *arg1 = 0 ;
8582
8718
  FXuint arg2 ;
8583
8719
  void *argp1 = 0 ;
8584
8720
  int res1 = 0 ;
@@ -8601,7 +8737,7 @@ fail:
8601
8737
 
8602
8738
  SWIGINTERN VALUE
8603
8739
  _wrap_FXPrinter_mediasize_get(int argc, VALUE *argv, VALUE self) {
8604
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8740
+ FXPrinter *arg1 = 0 ;
8605
8741
  void *argp1 = 0 ;
8606
8742
  int res1 = 0 ;
8607
8743
  FXuint result;
@@ -8625,7 +8761,7 @@ fail:
8625
8761
 
8626
8762
  SWIGINTERN VALUE
8627
8763
  _wrap_FXPrinter_mediawidth_set(int argc, VALUE *argv, VALUE self) {
8628
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8764
+ FXPrinter *arg1 = 0 ;
8629
8765
  FXdouble arg2 ;
8630
8766
  void *argp1 = 0 ;
8631
8767
  int res1 = 0 ;
@@ -8654,7 +8790,7 @@ fail:
8654
8790
 
8655
8791
  SWIGINTERN VALUE
8656
8792
  _wrap_FXPrinter_mediawidth_get(int argc, VALUE *argv, VALUE self) {
8657
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8793
+ FXPrinter *arg1 = 0 ;
8658
8794
  void *argp1 = 0 ;
8659
8795
  int res1 = 0 ;
8660
8796
  FXdouble result;
@@ -8678,7 +8814,7 @@ fail:
8678
8814
 
8679
8815
  SWIGINTERN VALUE
8680
8816
  _wrap_FXPrinter_mediaheight_set(int argc, VALUE *argv, VALUE self) {
8681
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8817
+ FXPrinter *arg1 = 0 ;
8682
8818
  FXdouble arg2 ;
8683
8819
  void *argp1 = 0 ;
8684
8820
  int res1 = 0 ;
@@ -8707,7 +8843,7 @@ fail:
8707
8843
 
8708
8844
  SWIGINTERN VALUE
8709
8845
  _wrap_FXPrinter_mediaheight_get(int argc, VALUE *argv, VALUE self) {
8710
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8846
+ FXPrinter *arg1 = 0 ;
8711
8847
  void *argp1 = 0 ;
8712
8848
  int res1 = 0 ;
8713
8849
  FXdouble result;
@@ -8731,7 +8867,7 @@ fail:
8731
8867
 
8732
8868
  SWIGINTERN VALUE
8733
8869
  _wrap_FXPrinter_leftmargin_set(int argc, VALUE *argv, VALUE self) {
8734
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8870
+ FXPrinter *arg1 = 0 ;
8735
8871
  FXdouble arg2 ;
8736
8872
  void *argp1 = 0 ;
8737
8873
  int res1 = 0 ;
@@ -8760,7 +8896,7 @@ fail:
8760
8896
 
8761
8897
  SWIGINTERN VALUE
8762
8898
  _wrap_FXPrinter_leftmargin_get(int argc, VALUE *argv, VALUE self) {
8763
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8899
+ FXPrinter *arg1 = 0 ;
8764
8900
  void *argp1 = 0 ;
8765
8901
  int res1 = 0 ;
8766
8902
  FXdouble result;
@@ -8784,7 +8920,7 @@ fail:
8784
8920
 
8785
8921
  SWIGINTERN VALUE
8786
8922
  _wrap_FXPrinter_rightmargin_set(int argc, VALUE *argv, VALUE self) {
8787
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8923
+ FXPrinter *arg1 = 0 ;
8788
8924
  FXdouble arg2 ;
8789
8925
  void *argp1 = 0 ;
8790
8926
  int res1 = 0 ;
@@ -8813,7 +8949,7 @@ fail:
8813
8949
 
8814
8950
  SWIGINTERN VALUE
8815
8951
  _wrap_FXPrinter_rightmargin_get(int argc, VALUE *argv, VALUE self) {
8816
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8952
+ FXPrinter *arg1 = 0 ;
8817
8953
  void *argp1 = 0 ;
8818
8954
  int res1 = 0 ;
8819
8955
  FXdouble result;
@@ -8837,7 +8973,7 @@ fail:
8837
8973
 
8838
8974
  SWIGINTERN VALUE
8839
8975
  _wrap_FXPrinter_topmargin_set(int argc, VALUE *argv, VALUE self) {
8840
- FXPrinter *arg1 = (FXPrinter *) 0 ;
8976
+ FXPrinter *arg1 = 0 ;
8841
8977
  FXdouble arg2 ;
8842
8978
  void *argp1 = 0 ;
8843
8979
  int res1 = 0 ;
@@ -8866,7 +9002,7 @@ fail:
8866
9002
 
8867
9003
  SWIGINTERN VALUE
8868
9004
  _wrap_FXPrinter_topmargin_get(int argc, VALUE *argv, VALUE self) {
8869
- FXPrinter *arg1 = (FXPrinter *) 0 ;
9005
+ FXPrinter *arg1 = 0 ;
8870
9006
  void *argp1 = 0 ;
8871
9007
  int res1 = 0 ;
8872
9008
  FXdouble result;
@@ -8890,7 +9026,7 @@ fail:
8890
9026
 
8891
9027
  SWIGINTERN VALUE
8892
9028
  _wrap_FXPrinter_bottommargin_set(int argc, VALUE *argv, VALUE self) {
8893
- FXPrinter *arg1 = (FXPrinter *) 0 ;
9029
+ FXPrinter *arg1 = 0 ;
8894
9030
  FXdouble arg2 ;
8895
9031
  void *argp1 = 0 ;
8896
9032
  int res1 = 0 ;
@@ -8919,7 +9055,7 @@ fail:
8919
9055
 
8920
9056
  SWIGINTERN VALUE
8921
9057
  _wrap_FXPrinter_bottommargin_get(int argc, VALUE *argv, VALUE self) {
8922
- FXPrinter *arg1 = (FXPrinter *) 0 ;
9058
+ FXPrinter *arg1 = 0 ;
8923
9059
  void *argp1 = 0 ;
8924
9060
  int res1 = 0 ;
8925
9061
  FXdouble result;
@@ -8943,7 +9079,7 @@ fail:
8943
9079
 
8944
9080
  SWIGINTERN VALUE
8945
9081
  _wrap_FXPrinter_numcopies_set(int argc, VALUE *argv, VALUE self) {
8946
- FXPrinter *arg1 = (FXPrinter *) 0 ;
9082
+ FXPrinter *arg1 = 0 ;
8947
9083
  FXuint arg2 ;
8948
9084
  void *argp1 = 0 ;
8949
9085
  int res1 = 0 ;
@@ -8966,7 +9102,7 @@ fail:
8966
9102
 
8967
9103
  SWIGINTERN VALUE
8968
9104
  _wrap_FXPrinter_numcopies_get(int argc, VALUE *argv, VALUE self) {
8969
- FXPrinter *arg1 = (FXPrinter *) 0 ;
9105
+ FXPrinter *arg1 = 0 ;
8970
9106
  void *argp1 = 0 ;
8971
9107
  int res1 = 0 ;
8972
9108
  FXuint result;
@@ -8990,7 +9126,7 @@ fail:
8990
9126
 
8991
9127
  SWIGINTERN VALUE
8992
9128
  _wrap_FXPrinter_flags_set(int argc, VALUE *argv, VALUE self) {
8993
- FXPrinter *arg1 = (FXPrinter *) 0 ;
9129
+ FXPrinter *arg1 = 0 ;
8994
9130
  FXuint arg2 ;
8995
9131
  void *argp1 = 0 ;
8996
9132
  int res1 = 0 ;
@@ -9013,7 +9149,7 @@ fail:
9013
9149
 
9014
9150
  SWIGINTERN VALUE
9015
9151
  _wrap_FXPrinter_flags_get(int argc, VALUE *argv, VALUE self) {
9016
- FXPrinter *arg1 = (FXPrinter *) 0 ;
9152
+ FXPrinter *arg1 = 0 ;
9017
9153
  void *argp1 = 0 ;
9018
9154
  int res1 = 0 ;
9019
9155
  FXuint result;
@@ -9054,7 +9190,7 @@ _wrap_FXDCPrint_allocate(int argc, VALUE *argv, VALUE self)
9054
9190
 
9055
9191
  SWIGINTERN VALUE
9056
9192
  _wrap_new_FXDCPrint(int argc, VALUE *argv, VALUE self) {
9057
- FXApp *arg1 = (FXApp *) 0 ;
9193
+ FXApp *arg1 = 0 ;
9058
9194
  void *argp1 = 0 ;
9059
9195
  int res1 = 0 ;
9060
9196
  FXDCPrint *result = 0 ;
@@ -9069,12 +9205,12 @@ _wrap_new_FXDCPrint(int argc, VALUE *argv, VALUE self) {
9069
9205
  arg1 = reinterpret_cast< FXApp * >(argp1);
9070
9206
  {
9071
9207
  if (!arg1) {
9072
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
9208
+ SWIG_exception(SWIG_NullReferenceError,"Received a NULL pointer.");
9073
9209
  }
9074
9210
  }
9075
9211
  {
9076
9212
  result = (FXDCPrint *)new_FXDCPrint(arg1);
9077
- DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
9213
+ ((struct ruby_wrapped_object *)RTYPEDDATA_GET_DATA(self))->data = result; FXRbRegisterRubyObj(self, result);
9078
9214
  if(rb_block_given_p()){
9079
9215
  rb_yield(self);
9080
9216
  }
@@ -9087,7 +9223,7 @@ fail:
9087
9223
 
9088
9224
  SWIGINTERN VALUE
9089
9225
  _wrap_FXDCPrint_beginPrint(int argc, VALUE *argv, VALUE self) {
9090
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9226
+ FXDCPrint *arg1 = 0 ;
9091
9227
  FXPrinter *arg2 = 0 ;
9092
9228
  void *argp1 = 0 ;
9093
9229
  int res1 = 0 ;
@@ -9109,7 +9245,7 @@ _wrap_FXDCPrint_beginPrint(int argc, VALUE *argv, VALUE self) {
9109
9245
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXPrinter &","beginPrint", 2, argv[0] ));
9110
9246
  }
9111
9247
  if (!argp2) {
9112
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXPrinter &","beginPrint", 2, argv[0]));
9248
+ SWIG_exception_fail(SWIG_NullReferenceError, Ruby_Format_TypeError("invalid null reference ", "FXPrinter &","beginPrint", 2, argv[0]));
9113
9249
  }
9114
9250
  arg2 = reinterpret_cast< FXPrinter * >(argp2);
9115
9251
  result = (FXbool)(arg1)->beginPrint(*arg2);
@@ -9122,7 +9258,7 @@ fail:
9122
9258
 
9123
9259
  SWIGINTERN VALUE
9124
9260
  _wrap_FXDCPrint_endPrint(int argc, VALUE *argv, VALUE self) {
9125
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9261
+ FXDCPrint *arg1 = 0 ;
9126
9262
  void *argp1 = 0 ;
9127
9263
  int res1 = 0 ;
9128
9264
  FXbool result;
@@ -9146,8 +9282,8 @@ fail:
9146
9282
 
9147
9283
  SWIGINTERN VALUE
9148
9284
  _wrap_FXDCPrint_beginPage(int argc, VALUE *argv, VALUE self) {
9149
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9150
- FXuint arg2 = (FXuint) 1 ;
9285
+ FXDCPrint *arg1 = 0 ;
9286
+ FXuint arg2 = 1 ;
9151
9287
  void *argp1 = 0 ;
9152
9288
  int res1 = 0 ;
9153
9289
  FXbool result;
@@ -9174,7 +9310,7 @@ fail:
9174
9310
 
9175
9311
  SWIGINTERN VALUE
9176
9312
  _wrap_FXDCPrint_endPage(int argc, VALUE *argv, VALUE self) {
9177
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9313
+ FXDCPrint *arg1 = 0 ;
9178
9314
  void *argp1 = 0 ;
9179
9315
  int res1 = 0 ;
9180
9316
  FXbool result;
@@ -9198,7 +9334,7 @@ fail:
9198
9334
 
9199
9335
  SWIGINTERN VALUE
9200
9336
  _wrap_FXDCPrint_setContentRange(int argc, VALUE *argv, VALUE self) {
9201
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9337
+ FXDCPrint *arg1 = 0 ;
9202
9338
  FXint arg2 ;
9203
9339
  FXint arg3 ;
9204
9340
  FXint arg4 ;
@@ -9230,7 +9366,7 @@ fail:
9230
9366
 
9231
9367
  SWIGINTERN VALUE
9232
9368
  _wrap_FXDCPrint_readPixel(int argc, VALUE *argv, VALUE self) {
9233
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9369
+ FXDCPrint *arg1 = 0 ;
9234
9370
  FXint arg2 ;
9235
9371
  FXint arg3 ;
9236
9372
  void *argp1 = 0 ;
@@ -9258,7 +9394,7 @@ fail:
9258
9394
 
9259
9395
  SWIGINTERN VALUE
9260
9396
  _wrap_FXDCPrint_drawPoint(int argc, VALUE *argv, VALUE self) {
9261
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9397
+ FXDCPrint *arg1 = 0 ;
9262
9398
  FXint arg2 ;
9263
9399
  FXint arg3 ;
9264
9400
  void *argp1 = 0 ;
@@ -9283,8 +9419,8 @@ fail:
9283
9419
 
9284
9420
  SWIGINTERN VALUE
9285
9421
  _wrap_FXDCPrint_drawPoints(int argc, VALUE *argv, VALUE self) {
9286
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9287
- FXPoint *arg2 = (FXPoint *) 0 ;
9422
+ FXDCPrint *arg1 = 0 ;
9423
+ FXPoint *arg2 = 0 ;
9288
9424
  FXuint arg3 ;
9289
9425
  void *argp1 = 0 ;
9290
9426
  int res1 = 0 ;
@@ -9302,8 +9438,8 @@ _wrap_FXDCPrint_drawPoints(int argc, VALUE *argv, VALUE self) {
9302
9438
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
9303
9439
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9304
9440
  for (FXuint i = 0; i < arg3; i++) {
9305
- FXPoint *pPoint;
9306
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
9441
+ VALUE entry = rb_ary_entry(argv[0], i);
9442
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
9307
9443
  arg2[i] = *pPoint;
9308
9444
  }
9309
9445
  }
@@ -9322,8 +9458,8 @@ fail:
9322
9458
 
9323
9459
  SWIGINTERN VALUE
9324
9460
  _wrap_FXDCPrint_drawPointsRel(int argc, VALUE *argv, VALUE self) {
9325
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9326
- FXPoint *arg2 = (FXPoint *) 0 ;
9461
+ FXDCPrint *arg1 = 0 ;
9462
+ FXPoint *arg2 = 0 ;
9327
9463
  FXuint arg3 ;
9328
9464
  void *argp1 = 0 ;
9329
9465
  int res1 = 0 ;
@@ -9341,8 +9477,8 @@ _wrap_FXDCPrint_drawPointsRel(int argc, VALUE *argv, VALUE self) {
9341
9477
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
9342
9478
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9343
9479
  for (FXuint i = 0; i < arg3; i++) {
9344
- FXPoint *pPoint;
9345
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
9480
+ VALUE entry = rb_ary_entry(argv[0], i);
9481
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
9346
9482
  arg2[i] = *pPoint;
9347
9483
  }
9348
9484
  }
@@ -9361,7 +9497,7 @@ fail:
9361
9497
 
9362
9498
  SWIGINTERN VALUE
9363
9499
  _wrap_FXDCPrint_drawLine(int argc, VALUE *argv, VALUE self) {
9364
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9500
+ FXDCPrint *arg1 = 0 ;
9365
9501
  FXint arg2 ;
9366
9502
  FXint arg3 ;
9367
9503
  FXint arg4 ;
@@ -9390,8 +9526,8 @@ fail:
9390
9526
 
9391
9527
  SWIGINTERN VALUE
9392
9528
  _wrap_FXDCPrint_drawLines(int argc, VALUE *argv, VALUE self) {
9393
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9394
- FXPoint *arg2 = (FXPoint *) 0 ;
9529
+ FXDCPrint *arg1 = 0 ;
9530
+ FXPoint *arg2 = 0 ;
9395
9531
  FXuint arg3 ;
9396
9532
  void *argp1 = 0 ;
9397
9533
  int res1 = 0 ;
@@ -9409,8 +9545,8 @@ _wrap_FXDCPrint_drawLines(int argc, VALUE *argv, VALUE self) {
9409
9545
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
9410
9546
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9411
9547
  for (FXuint i = 0; i < arg3; i++) {
9412
- FXPoint *pPoint;
9413
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
9548
+ VALUE entry = rb_ary_entry(argv[0], i);
9549
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
9414
9550
  arg2[i] = *pPoint;
9415
9551
  }
9416
9552
  }
@@ -9429,8 +9565,8 @@ fail:
9429
9565
 
9430
9566
  SWIGINTERN VALUE
9431
9567
  _wrap_FXDCPrint_drawLinesRel(int argc, VALUE *argv, VALUE self) {
9432
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9433
- FXPoint *arg2 = (FXPoint *) 0 ;
9568
+ FXDCPrint *arg1 = 0 ;
9569
+ FXPoint *arg2 = 0 ;
9434
9570
  FXuint arg3 ;
9435
9571
  void *argp1 = 0 ;
9436
9572
  int res1 = 0 ;
@@ -9448,8 +9584,8 @@ _wrap_FXDCPrint_drawLinesRel(int argc, VALUE *argv, VALUE self) {
9448
9584
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
9449
9585
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9450
9586
  for (FXuint i = 0; i < arg3; i++) {
9451
- FXPoint *pPoint;
9452
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
9587
+ VALUE entry = rb_ary_entry(argv[0], i);
9588
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
9453
9589
  arg2[i] = *pPoint;
9454
9590
  }
9455
9591
  }
@@ -9468,8 +9604,8 @@ fail:
9468
9604
 
9469
9605
  SWIGINTERN VALUE
9470
9606
  _wrap_FXDCPrint_drawLineSegments(int argc, VALUE *argv, VALUE self) {
9471
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9472
- FXSegment *arg2 = (FXSegment *) 0 ;
9607
+ FXDCPrint *arg1 = 0 ;
9608
+ FXSegment *arg2 = 0 ;
9473
9609
  FXuint arg3 ;
9474
9610
  void *argp1 = 0 ;
9475
9611
  int res1 = 0 ;
@@ -9487,8 +9623,8 @@ _wrap_FXDCPrint_drawLineSegments(int argc, VALUE *argv, VALUE self) {
9487
9623
  arg2 = new FXSegment[RARRAY_LEN(argv[0])];
9488
9624
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9489
9625
  for (FXuint i = 0; i < arg3; i++) {
9490
- FXSegment *pSeg;
9491
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
9626
+ VALUE entry = rb_ary_entry(argv[0], i);
9627
+ FXSegment *pSeg = (FXSegment*)FXRbConvertPtr(entry, SWIGTYPE_p_FXSegment, 0);
9492
9628
  arg2[i] = *pSeg;
9493
9629
  }
9494
9630
  }
@@ -9507,7 +9643,7 @@ fail:
9507
9643
 
9508
9644
  SWIGINTERN VALUE
9509
9645
  _wrap_FXDCPrint_drawRectangle(int argc, VALUE *argv, VALUE self) {
9510
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9646
+ FXDCPrint *arg1 = 0 ;
9511
9647
  FXint arg2 ;
9512
9648
  FXint arg3 ;
9513
9649
  FXint arg4 ;
@@ -9536,8 +9672,8 @@ fail:
9536
9672
 
9537
9673
  SWIGINTERN VALUE
9538
9674
  _wrap_FXDCPrint_drawRectangles(int argc, VALUE *argv, VALUE self) {
9539
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9540
- FXRectangle *arg2 = (FXRectangle *) 0 ;
9675
+ FXDCPrint *arg1 = 0 ;
9676
+ FXRectangle *arg2 = 0 ;
9541
9677
  FXuint arg3 ;
9542
9678
  void *argp1 = 0 ;
9543
9679
  int res1 = 0 ;
@@ -9555,8 +9691,8 @@ _wrap_FXDCPrint_drawRectangles(int argc, VALUE *argv, VALUE self) {
9555
9691
  arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
9556
9692
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9557
9693
  for (FXuint i = 0; i < arg3; i++) {
9558
- FXRectangle *pRect;
9559
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
9694
+ VALUE entry = rb_ary_entry(argv[0], i);
9695
+ FXRectangle *pRect = (FXRectangle*)FXRbConvertPtr(entry, SWIGTYPE_p_FXRectangle, 0);
9560
9696
  arg2[i] = *pRect;
9561
9697
  }
9562
9698
  }
@@ -9575,7 +9711,7 @@ fail:
9575
9711
 
9576
9712
  SWIGINTERN VALUE
9577
9713
  _wrap_FXDCPrint_drawRoundRectangle(int argc, VALUE *argv, VALUE self) {
9578
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9714
+ FXDCPrint *arg1 = 0 ;
9579
9715
  FXint arg2 ;
9580
9716
  FXint arg3 ;
9581
9717
  FXint arg4 ;
@@ -9608,7 +9744,7 @@ fail:
9608
9744
 
9609
9745
  SWIGINTERN VALUE
9610
9746
  _wrap_FXDCPrint_drawArc(int argc, VALUE *argv, VALUE self) {
9611
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9747
+ FXDCPrint *arg1 = 0 ;
9612
9748
  FXint arg2 ;
9613
9749
  FXint arg3 ;
9614
9750
  FXint arg4 ;
@@ -9641,8 +9777,8 @@ fail:
9641
9777
 
9642
9778
  SWIGINTERN VALUE
9643
9779
  _wrap_FXDCPrint_drawArcs(int argc, VALUE *argv, VALUE self) {
9644
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9645
- FXArc *arg2 = (FXArc *) 0 ;
9780
+ FXDCPrint *arg1 = 0 ;
9781
+ FXArc *arg2 = 0 ;
9646
9782
  FXuint arg3 ;
9647
9783
  void *argp1 = 0 ;
9648
9784
  int res1 = 0 ;
@@ -9660,8 +9796,8 @@ _wrap_FXDCPrint_drawArcs(int argc, VALUE *argv, VALUE self) {
9660
9796
  arg2 = new FXArc[RARRAY_LEN(argv[0])];
9661
9797
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9662
9798
  for (FXuint i = 0; i < arg3; i++) {
9663
- FXArc *pArc;
9664
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
9799
+ VALUE entry = rb_ary_entry(argv[0], i);
9800
+ FXArc *pArc = (FXArc*)FXRbConvertPtr(entry, SWIGTYPE_p_FXArc, 0);
9665
9801
  arg2[i] = *pArc;
9666
9802
  }
9667
9803
  }
@@ -9674,7 +9810,7 @@ fail:
9674
9810
 
9675
9811
  SWIGINTERN VALUE
9676
9812
  _wrap_FXDCPrint_drawEllipse(int argc, VALUE *argv, VALUE self) {
9677
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9813
+ FXDCPrint *arg1 = 0 ;
9678
9814
  FXint arg2 ;
9679
9815
  FXint arg3 ;
9680
9816
  FXint arg4 ;
@@ -9703,7 +9839,7 @@ fail:
9703
9839
 
9704
9840
  SWIGINTERN VALUE
9705
9841
  _wrap_FXDCPrint_fillRectangle(int argc, VALUE *argv, VALUE self) {
9706
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9842
+ FXDCPrint *arg1 = 0 ;
9707
9843
  FXint arg2 ;
9708
9844
  FXint arg3 ;
9709
9845
  FXint arg4 ;
@@ -9732,8 +9868,8 @@ fail:
9732
9868
 
9733
9869
  SWIGINTERN VALUE
9734
9870
  _wrap_FXDCPrint_fillRectangles(int argc, VALUE *argv, VALUE self) {
9735
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9736
- FXRectangle *arg2 = (FXRectangle *) 0 ;
9871
+ FXDCPrint *arg1 = 0 ;
9872
+ FXRectangle *arg2 = 0 ;
9737
9873
  FXuint arg3 ;
9738
9874
  void *argp1 = 0 ;
9739
9875
  int res1 = 0 ;
@@ -9751,8 +9887,8 @@ _wrap_FXDCPrint_fillRectangles(int argc, VALUE *argv, VALUE self) {
9751
9887
  arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
9752
9888
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9753
9889
  for (FXuint i = 0; i < arg3; i++) {
9754
- FXRectangle *pRect;
9755
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
9890
+ VALUE entry = rb_ary_entry(argv[0], i);
9891
+ FXRectangle *pRect = (FXRectangle*)FXRbConvertPtr(entry, SWIGTYPE_p_FXRectangle, 0);
9756
9892
  arg2[i] = *pRect;
9757
9893
  }
9758
9894
  }
@@ -9771,7 +9907,7 @@ fail:
9771
9907
 
9772
9908
  SWIGINTERN VALUE
9773
9909
  _wrap_FXDCPrint_fillRoundRectangle(int argc, VALUE *argv, VALUE self) {
9774
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9910
+ FXDCPrint *arg1 = 0 ;
9775
9911
  FXint arg2 ;
9776
9912
  FXint arg3 ;
9777
9913
  FXint arg4 ;
@@ -9804,7 +9940,7 @@ fail:
9804
9940
 
9805
9941
  SWIGINTERN VALUE
9806
9942
  _wrap_FXDCPrint_fillChord(int argc, VALUE *argv, VALUE self) {
9807
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9943
+ FXDCPrint *arg1 = 0 ;
9808
9944
  FXint arg2 ;
9809
9945
  FXint arg3 ;
9810
9946
  FXint arg4 ;
@@ -9837,8 +9973,8 @@ fail:
9837
9973
 
9838
9974
  SWIGINTERN VALUE
9839
9975
  _wrap_FXDCPrint_fillChords(int argc, VALUE *argv, VALUE self) {
9840
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9841
- FXArc *arg2 = (FXArc *) 0 ;
9976
+ FXDCPrint *arg1 = 0 ;
9977
+ FXArc *arg2 = 0 ;
9842
9978
  FXuint arg3 ;
9843
9979
  void *argp1 = 0 ;
9844
9980
  int res1 = 0 ;
@@ -9868,7 +10004,7 @@ fail:
9868
10004
 
9869
10005
  SWIGINTERN VALUE
9870
10006
  _wrap_FXDCPrint_fillArc(int argc, VALUE *argv, VALUE self) {
9871
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10007
+ FXDCPrint *arg1 = 0 ;
9872
10008
  FXint arg2 ;
9873
10009
  FXint arg3 ;
9874
10010
  FXint arg4 ;
@@ -9901,8 +10037,8 @@ fail:
9901
10037
 
9902
10038
  SWIGINTERN VALUE
9903
10039
  _wrap_FXDCPrint_fillArcs(int argc, VALUE *argv, VALUE self) {
9904
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9905
- FXArc *arg2 = (FXArc *) 0 ;
10040
+ FXDCPrint *arg1 = 0 ;
10041
+ FXArc *arg2 = 0 ;
9906
10042
  FXuint arg3 ;
9907
10043
  void *argp1 = 0 ;
9908
10044
  int res1 = 0 ;
@@ -9920,8 +10056,8 @@ _wrap_FXDCPrint_fillArcs(int argc, VALUE *argv, VALUE self) {
9920
10056
  arg2 = new FXArc[RARRAY_LEN(argv[0])];
9921
10057
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9922
10058
  for (FXuint i = 0; i < arg3; i++) {
9923
- FXArc *pArc;
9924
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
10059
+ VALUE entry = rb_ary_entry(argv[0], i);
10060
+ FXArc *pArc = (FXArc*)FXRbConvertPtr(entry, SWIGTYPE_p_FXArc, 0);
9925
10061
  arg2[i] = *pArc;
9926
10062
  }
9927
10063
  }
@@ -9934,8 +10070,8 @@ fail:
9934
10070
 
9935
10071
  SWIGINTERN VALUE
9936
10072
  _wrap_FXDCPrint_fillPolygon(int argc, VALUE *argv, VALUE self) {
9937
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9938
- FXPoint *arg2 = (FXPoint *) 0 ;
10073
+ FXDCPrint *arg1 = 0 ;
10074
+ FXPoint *arg2 = 0 ;
9939
10075
  FXuint arg3 ;
9940
10076
  void *argp1 = 0 ;
9941
10077
  int res1 = 0 ;
@@ -9953,8 +10089,8 @@ _wrap_FXDCPrint_fillPolygon(int argc, VALUE *argv, VALUE self) {
9953
10089
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
9954
10090
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9955
10091
  for (FXuint i = 0; i < arg3; i++) {
9956
- FXPoint *pPoint;
9957
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
10092
+ VALUE entry = rb_ary_entry(argv[0], i);
10093
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
9958
10094
  arg2[i] = *pPoint;
9959
10095
  }
9960
10096
  }
@@ -9973,8 +10109,8 @@ fail:
9973
10109
 
9974
10110
  SWIGINTERN VALUE
9975
10111
  _wrap_FXDCPrint_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
9976
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
9977
- FXPoint *arg2 = (FXPoint *) 0 ;
10112
+ FXDCPrint *arg1 = 0 ;
10113
+ FXPoint *arg2 = 0 ;
9978
10114
  FXuint arg3 ;
9979
10115
  void *argp1 = 0 ;
9980
10116
  int res1 = 0 ;
@@ -9992,8 +10128,8 @@ _wrap_FXDCPrint_fillConcavePolygon(int argc, VALUE *argv, VALUE self) {
9992
10128
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
9993
10129
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
9994
10130
  for (FXuint i = 0; i < arg3; i++) {
9995
- FXPoint *pPoint;
9996
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
10131
+ VALUE entry = rb_ary_entry(argv[0], i);
10132
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
9997
10133
  arg2[i] = *pPoint;
9998
10134
  }
9999
10135
  }
@@ -10012,8 +10148,8 @@ fail:
10012
10148
 
10013
10149
  SWIGINTERN VALUE
10014
10150
  _wrap_FXDCPrint_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
10015
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10016
- FXPoint *arg2 = (FXPoint *) 0 ;
10151
+ FXDCPrint *arg1 = 0 ;
10152
+ FXPoint *arg2 = 0 ;
10017
10153
  FXuint arg3 ;
10018
10154
  void *argp1 = 0 ;
10019
10155
  int res1 = 0 ;
@@ -10031,8 +10167,8 @@ _wrap_FXDCPrint_fillComplexPolygon(int argc, VALUE *argv, VALUE self) {
10031
10167
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
10032
10168
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
10033
10169
  for (FXuint i = 0; i < arg3; i++) {
10034
- FXPoint *pPoint;
10035
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
10170
+ VALUE entry = rb_ary_entry(argv[0], i);
10171
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
10036
10172
  arg2[i] = *pPoint;
10037
10173
  }
10038
10174
  }
@@ -10051,8 +10187,8 @@ fail:
10051
10187
 
10052
10188
  SWIGINTERN VALUE
10053
10189
  _wrap_FXDCPrint_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
10054
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10055
- FXPoint *arg2 = (FXPoint *) 0 ;
10190
+ FXDCPrint *arg1 = 0 ;
10191
+ FXPoint *arg2 = 0 ;
10056
10192
  FXuint arg3 ;
10057
10193
  void *argp1 = 0 ;
10058
10194
  int res1 = 0 ;
@@ -10070,8 +10206,8 @@ _wrap_FXDCPrint_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
10070
10206
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
10071
10207
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
10072
10208
  for (FXuint i = 0; i < arg3; i++) {
10073
- FXPoint *pPoint;
10074
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
10209
+ VALUE entry = rb_ary_entry(argv[0], i);
10210
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
10075
10211
  arg2[i] = *pPoint;
10076
10212
  }
10077
10213
  }
@@ -10090,8 +10226,8 @@ fail:
10090
10226
 
10091
10227
  SWIGINTERN VALUE
10092
10228
  _wrap_FXDCPrint_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
10093
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10094
- FXPoint *arg2 = (FXPoint *) 0 ;
10229
+ FXDCPrint *arg1 = 0 ;
10230
+ FXPoint *arg2 = 0 ;
10095
10231
  FXuint arg3 ;
10096
10232
  void *argp1 = 0 ;
10097
10233
  int res1 = 0 ;
@@ -10109,8 +10245,8 @@ _wrap_FXDCPrint_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) {
10109
10245
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
10110
10246
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
10111
10247
  for (FXuint i = 0; i < arg3; i++) {
10112
- FXPoint *pPoint;
10113
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
10248
+ VALUE entry = rb_ary_entry(argv[0], i);
10249
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
10114
10250
  arg2[i] = *pPoint;
10115
10251
  }
10116
10252
  }
@@ -10129,8 +10265,8 @@ fail:
10129
10265
 
10130
10266
  SWIGINTERN VALUE
10131
10267
  _wrap_FXDCPrint_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
10132
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10133
- FXPoint *arg2 = (FXPoint *) 0 ;
10268
+ FXDCPrint *arg1 = 0 ;
10269
+ FXPoint *arg2 = 0 ;
10134
10270
  FXuint arg3 ;
10135
10271
  void *argp1 = 0 ;
10136
10272
  int res1 = 0 ;
@@ -10148,8 +10284,8 @@ _wrap_FXDCPrint_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) {
10148
10284
  arg2 = new FXPoint[RARRAY_LEN(argv[0])];
10149
10285
  arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
10150
10286
  for (FXuint i = 0; i < arg3; i++) {
10151
- FXPoint *pPoint;
10152
- Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
10287
+ VALUE entry = rb_ary_entry(argv[0], i);
10288
+ FXPoint *pPoint = (FXPoint*)FXRbConvertPtr(entry, FXRbTypeQuery("FXPoint *"), 0);
10153
10289
  arg2[i] = *pPoint;
10154
10290
  }
10155
10291
  }
@@ -10168,12 +10304,12 @@ fail:
10168
10304
 
10169
10305
  SWIGINTERN VALUE
10170
10306
  _wrap_FXDCPrint_drawHashBox(int argc, VALUE *argv, VALUE self) {
10171
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10307
+ FXDCPrint *arg1 = 0 ;
10172
10308
  FXint arg2 ;
10173
10309
  FXint arg3 ;
10174
10310
  FXint arg4 ;
10175
10311
  FXint arg5 ;
10176
- FXint arg6 = (FXint) 1 ;
10312
+ FXint arg6 = 1 ;
10177
10313
  void *argp1 = 0 ;
10178
10314
  int res1 = 0 ;
10179
10315
 
@@ -10201,7 +10337,7 @@ fail:
10201
10337
 
10202
10338
  SWIGINTERN VALUE
10203
10339
  _wrap_FXDCPrint_drawFocusRectangle(int argc, VALUE *argv, VALUE self) {
10204
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10340
+ FXDCPrint *arg1 = 0 ;
10205
10341
  FXint arg2 ;
10206
10342
  FXint arg3 ;
10207
10343
  FXint arg4 ;
@@ -10230,8 +10366,8 @@ fail:
10230
10366
 
10231
10367
  SWIGINTERN VALUE
10232
10368
  _wrap_FXDCPrint_drawArea__SWIG_0(int argc, VALUE *argv, VALUE self) {
10233
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10234
- FXDrawable *arg2 = (FXDrawable *) 0 ;
10369
+ FXDCPrint *arg1 = 0 ;
10370
+ FXDrawable *arg2 = 0 ;
10235
10371
  FXint arg3 ;
10236
10372
  FXint arg4 ;
10237
10373
  FXint arg5 ;
@@ -10271,8 +10407,8 @@ fail:
10271
10407
 
10272
10408
  SWIGINTERN VALUE
10273
10409
  _wrap_FXDCPrint_drawArea__SWIG_1(int argc, VALUE *argv, VALUE self) {
10274
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10275
- FXDrawable *arg2 = (FXDrawable *) 0 ;
10410
+ FXDCPrint *arg1 = 0 ;
10411
+ FXDrawable *arg2 = 0 ;
10276
10412
  FXint arg3 ;
10277
10413
  FXint arg4 ;
10278
10414
  FXint arg5 ;
@@ -10435,8 +10571,8 @@ fail:
10435
10571
 
10436
10572
  SWIGINTERN VALUE
10437
10573
  _wrap_FXDCPrint_drawImage(int argc, VALUE *argv, VALUE self) {
10438
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10439
- FXImage *arg2 = (FXImage *) 0 ;
10574
+ FXDCPrint *arg1 = 0 ;
10575
+ FXImage *arg2 = 0 ;
10440
10576
  FXint arg3 ;
10441
10577
  FXint arg4 ;
10442
10578
  void *argp1 = 0 ;
@@ -10468,8 +10604,8 @@ fail:
10468
10604
 
10469
10605
  SWIGINTERN VALUE
10470
10606
  _wrap_FXDCPrint_drawBitmap(int argc, VALUE *argv, VALUE self) {
10471
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10472
- FXBitmap *arg2 = (FXBitmap *) 0 ;
10607
+ FXDCPrint *arg1 = 0 ;
10608
+ FXBitmap *arg2 = 0 ;
10473
10609
  FXint arg3 ;
10474
10610
  FXint arg4 ;
10475
10611
  void *argp1 = 0 ;
@@ -10501,8 +10637,8 @@ fail:
10501
10637
 
10502
10638
  SWIGINTERN VALUE
10503
10639
  _wrap_FXDCPrint_drawIcon(int argc, VALUE *argv, VALUE self) {
10504
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10505
- FXIcon *arg2 = (FXIcon *) 0 ;
10640
+ FXDCPrint *arg1 = 0 ;
10641
+ FXIcon *arg2 = 0 ;
10506
10642
  FXint arg3 ;
10507
10643
  FXint arg4 ;
10508
10644
  void *argp1 = 0 ;
@@ -10534,8 +10670,8 @@ fail:
10534
10670
 
10535
10671
  SWIGINTERN VALUE
10536
10672
  _wrap_FXDCPrint_drawIconShaded(int argc, VALUE *argv, VALUE self) {
10537
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10538
- FXIcon *arg2 = (FXIcon *) 0 ;
10673
+ FXDCPrint *arg1 = 0 ;
10674
+ FXIcon *arg2 = 0 ;
10539
10675
  FXint arg3 ;
10540
10676
  FXint arg4 ;
10541
10677
  void *argp1 = 0 ;
@@ -10567,8 +10703,8 @@ fail:
10567
10703
 
10568
10704
  SWIGINTERN VALUE
10569
10705
  _wrap_FXDCPrint_drawIconSunken(int argc, VALUE *argv, VALUE self) {
10570
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10571
- FXIcon *arg2 = (FXIcon *) 0 ;
10706
+ FXDCPrint *arg1 = 0 ;
10707
+ FXIcon *arg2 = 0 ;
10572
10708
  FXint arg3 ;
10573
10709
  FXint arg4 ;
10574
10710
  void *argp1 = 0 ;
@@ -10600,10 +10736,10 @@ fail:
10600
10736
 
10601
10737
  SWIGINTERN VALUE
10602
10738
  _wrap_FXDCPrint_drawText(int argc, VALUE *argv, VALUE self) {
10603
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10739
+ FXDCPrint *arg1 = 0 ;
10604
10740
  FXint arg2 ;
10605
10741
  FXint arg3 ;
10606
- FXchar *arg4 = (FXchar *) 0 ;
10742
+ FXchar *arg4 = 0 ;
10607
10743
  FXuint arg5 ;
10608
10744
  void *argp1 = 0 ;
10609
10745
  int res1 = 0 ;
@@ -10632,10 +10768,10 @@ fail:
10632
10768
 
10633
10769
  SWIGINTERN VALUE
10634
10770
  _wrap_FXDCPrint_drawImageText(int argc, VALUE *argv, VALUE self) {
10635
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10771
+ FXDCPrint *arg1 = 0 ;
10636
10772
  FXint arg2 ;
10637
10773
  FXint arg3 ;
10638
- FXchar *arg4 = (FXchar *) 0 ;
10774
+ FXchar *arg4 = 0 ;
10639
10775
  FXuint arg5 ;
10640
10776
  void *argp1 = 0 ;
10641
10777
  int res1 = 0 ;
@@ -10664,7 +10800,7 @@ fail:
10664
10800
 
10665
10801
  SWIGINTERN VALUE
10666
10802
  _wrap_FXDCPrint_setForeground(int argc, VALUE *argv, VALUE self) {
10667
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10803
+ FXDCPrint *arg1 = 0 ;
10668
10804
  FXColor arg2 ;
10669
10805
  void *argp1 = 0 ;
10670
10806
  int res1 = 0 ;
@@ -10687,7 +10823,7 @@ fail:
10687
10823
 
10688
10824
  SWIGINTERN VALUE
10689
10825
  _wrap_FXDCPrint_setBackground(int argc, VALUE *argv, VALUE self) {
10690
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10826
+ FXDCPrint *arg1 = 0 ;
10691
10827
  FXColor arg2 ;
10692
10828
  void *argp1 = 0 ;
10693
10829
  int res1 = 0 ;
@@ -10710,9 +10846,9 @@ fail:
10710
10846
 
10711
10847
  SWIGINTERN VALUE
10712
10848
  _wrap_FXDCPrint_setDashes(int argc, VALUE *argv, VALUE self) {
10713
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10849
+ FXDCPrint *arg1 = 0 ;
10714
10850
  FXuint arg2 ;
10715
- FXchar *arg3 = (FXchar *) 0 ;
10851
+ FXchar *arg3 = 0 ;
10716
10852
  FXuint arg4 ;
10717
10853
  void *argp1 = 0 ;
10718
10854
  int res1 = 0 ;
@@ -10749,8 +10885,8 @@ fail:
10749
10885
 
10750
10886
  SWIGINTERN VALUE
10751
10887
  _wrap_FXDCPrint_setLineWidth(int argc, VALUE *argv, VALUE self) {
10752
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10753
- FXuint arg2 = (FXuint) 0 ;
10888
+ FXDCPrint *arg1 = 0 ;
10889
+ FXuint arg2 = 0 ;
10754
10890
  void *argp1 = 0 ;
10755
10891
  int res1 = 0 ;
10756
10892
 
@@ -10774,8 +10910,8 @@ fail:
10774
10910
 
10775
10911
  SWIGINTERN VALUE
10776
10912
  _wrap_FXDCPrint_setLineCap(int argc, VALUE *argv, VALUE self) {
10777
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10778
- FXCapStyle arg2 = (FXCapStyle) CAP_BUTT ;
10913
+ FXDCPrint *arg1 = 0 ;
10914
+ FXCapStyle arg2 = CAP_BUTT ;
10779
10915
  void *argp1 = 0 ;
10780
10916
  int res1 = 0 ;
10781
10917
  int val2 ;
@@ -10805,8 +10941,8 @@ fail:
10805
10941
 
10806
10942
  SWIGINTERN VALUE
10807
10943
  _wrap_FXDCPrint_setLineJoin(int argc, VALUE *argv, VALUE self) {
10808
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10809
- FXJoinStyle arg2 = (FXJoinStyle) JOIN_MITER ;
10944
+ FXDCPrint *arg1 = 0 ;
10945
+ FXJoinStyle arg2 = JOIN_MITER ;
10810
10946
  void *argp1 = 0 ;
10811
10947
  int res1 = 0 ;
10812
10948
  int val2 ;
@@ -10836,8 +10972,8 @@ fail:
10836
10972
 
10837
10973
  SWIGINTERN VALUE
10838
10974
  _wrap_FXDCPrint_setLineStyle(int argc, VALUE *argv, VALUE self) {
10839
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10840
- FXLineStyle arg2 = (FXLineStyle) LINE_SOLID ;
10975
+ FXDCPrint *arg1 = 0 ;
10976
+ FXLineStyle arg2 = LINE_SOLID ;
10841
10977
  void *argp1 = 0 ;
10842
10978
  int res1 = 0 ;
10843
10979
  int val2 ;
@@ -10867,8 +11003,8 @@ fail:
10867
11003
 
10868
11004
  SWIGINTERN VALUE
10869
11005
  _wrap_FXDCPrint_setFillStyle(int argc, VALUE *argv, VALUE self) {
10870
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10871
- FXFillStyle arg2 = (FXFillStyle) FILL_SOLID ;
11006
+ FXDCPrint *arg1 = 0 ;
11007
+ FXFillStyle arg2 = FILL_SOLID ;
10872
11008
  void *argp1 = 0 ;
10873
11009
  int res1 = 0 ;
10874
11010
  int val2 ;
@@ -10898,8 +11034,8 @@ fail:
10898
11034
 
10899
11035
  SWIGINTERN VALUE
10900
11036
  _wrap_FXDCPrint_setFillRule(int argc, VALUE *argv, VALUE self) {
10901
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10902
- FXFillRule arg2 = (FXFillRule) RULE_EVEN_ODD ;
11037
+ FXDCPrint *arg1 = 0 ;
11038
+ FXFillRule arg2 = RULE_EVEN_ODD ;
10903
11039
  void *argp1 = 0 ;
10904
11040
  int res1 = 0 ;
10905
11041
  int val2 ;
@@ -10929,8 +11065,8 @@ fail:
10929
11065
 
10930
11066
  SWIGINTERN VALUE
10931
11067
  _wrap_FXDCPrint_setFunction(int argc, VALUE *argv, VALUE self) {
10932
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10933
- FXFunction arg2 = (FXFunction) BLT_SRC ;
11068
+ FXDCPrint *arg1 = 0 ;
11069
+ FXFunction arg2 = BLT_SRC ;
10934
11070
  void *argp1 = 0 ;
10935
11071
  int res1 = 0 ;
10936
11072
  int val2 ;
@@ -10960,10 +11096,10 @@ fail:
10960
11096
 
10961
11097
  SWIGINTERN VALUE
10962
11098
  _wrap_FXDCPrint_setTile(int argc, VALUE *argv, VALUE self) {
10963
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
10964
- FXImage *arg2 = (FXImage *) 0 ;
10965
- FXint arg3 = (FXint) 0 ;
10966
- FXint arg4 = (FXint) 0 ;
11099
+ FXDCPrint *arg1 = 0 ;
11100
+ FXImage *arg2 = 0 ;
11101
+ FXint arg3 = 0 ;
11102
+ FXint arg4 = 0 ;
10967
11103
  void *argp1 = 0 ;
10968
11104
  int res1 = 0 ;
10969
11105
  void *argp2 = 0 ;
@@ -10997,10 +11133,10 @@ fail:
10997
11133
 
10998
11134
  SWIGINTERN VALUE
10999
11135
  _wrap_FXDCPrint_setStipple__SWIG_0(int argc, VALUE *argv, VALUE self) {
11000
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11001
- FXBitmap *arg2 = (FXBitmap *) 0 ;
11002
- FXint arg3 = (FXint) 0 ;
11003
- FXint arg4 = (FXint) 0 ;
11136
+ FXDCPrint *arg1 = 0 ;
11137
+ FXBitmap *arg2 = 0 ;
11138
+ FXint arg3 = 0 ;
11139
+ FXint arg4 = 0 ;
11004
11140
  void *argp1 = 0 ;
11005
11141
  int res1 = 0 ;
11006
11142
  void *argp2 = 0 ;
@@ -11034,10 +11170,10 @@ fail:
11034
11170
 
11035
11171
  SWIGINTERN VALUE
11036
11172
  _wrap_FXDCPrint_setStipple__SWIG_1(int argc, VALUE *argv, VALUE self) {
11037
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11173
+ FXDCPrint *arg1 = 0 ;
11038
11174
  FXStipplePattern arg2 ;
11039
- FXint arg3 = (FXint) 0 ;
11040
- FXint arg4 = (FXint) 0 ;
11175
+ FXint arg3 = 0 ;
11176
+ FXint arg4 = 0 ;
11041
11177
  void *argp1 = 0 ;
11042
11178
  int res1 = 0 ;
11043
11179
  int val2 ;
@@ -11153,7 +11289,7 @@ fail:
11153
11289
 
11154
11290
  SWIGINTERN VALUE
11155
11291
  _wrap_FXDCPrint_setClipRegion(int argc, VALUE *argv, VALUE self) {
11156
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11292
+ FXDCPrint *arg1 = 0 ;
11157
11293
  FXRegion *arg2 = 0 ;
11158
11294
  void *argp1 = 0 ;
11159
11295
  int res1 = 0 ;
@@ -11173,7 +11309,7 @@ _wrap_FXDCPrint_setClipRegion(int argc, VALUE *argv, VALUE self) {
11173
11309
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRegion const &","setClipRegion", 2, argv[0] ));
11174
11310
  }
11175
11311
  if (!argp2) {
11176
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0]));
11312
+ SWIG_exception_fail(SWIG_NullReferenceError, Ruby_Format_TypeError("invalid null reference ", "FXRegion const &","setClipRegion", 2, argv[0]));
11177
11313
  }
11178
11314
  arg2 = reinterpret_cast< FXRegion * >(argp2);
11179
11315
  FXDCPrint_setClipRegion(arg1,(FXRegion const &)*arg2);
@@ -11185,7 +11321,7 @@ fail:
11185
11321
 
11186
11322
  SWIGINTERN VALUE
11187
11323
  _wrap_FXDCPrint_setClipRectangle__SWIG_0(int argc, VALUE *argv, VALUE self) {
11188
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11324
+ FXDCPrint *arg1 = 0 ;
11189
11325
  FXint arg2 ;
11190
11326
  FXint arg3 ;
11191
11327
  FXint arg4 ;
@@ -11214,7 +11350,7 @@ fail:
11214
11350
 
11215
11351
  SWIGINTERN VALUE
11216
11352
  _wrap_FXDCPrint_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
11217
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11353
+ FXDCPrint *arg1 = 0 ;
11218
11354
  FXRectangle *arg2 = 0 ;
11219
11355
  void *argp1 = 0 ;
11220
11356
  int res1 = 0 ;
@@ -11234,7 +11370,7 @@ _wrap_FXDCPrint_setClipRectangle__SWIG_1(int argc, VALUE *argv, VALUE self) {
11234
11370
  SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","setClipRectangle", 2, argv[0] ));
11235
11371
  }
11236
11372
  if (!argp2) {
11237
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0]));
11373
+ SWIG_exception_fail(SWIG_NullReferenceError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","setClipRectangle", 2, argv[0]));
11238
11374
  }
11239
11375
  arg2 = reinterpret_cast< FXRectangle * >(argp2);
11240
11376
  FXDCPrint_setClipRectangle(arg1,(FXRectangle const &)*arg2);
@@ -11310,7 +11446,7 @@ fail:
11310
11446
 
11311
11447
  SWIGINTERN VALUE
11312
11448
  _wrap_FXDCPrint_clearClipRectangle(int argc, VALUE *argv, VALUE self) {
11313
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11449
+ FXDCPrint *arg1 = 0 ;
11314
11450
  void *argp1 = 0 ;
11315
11451
  int res1 = 0 ;
11316
11452
 
@@ -11331,10 +11467,10 @@ fail:
11331
11467
 
11332
11468
  SWIGINTERN VALUE
11333
11469
  _wrap_FXDCPrint_setClipMask(int argc, VALUE *argv, VALUE self) {
11334
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11335
- FXBitmap *arg2 = (FXBitmap *) 0 ;
11336
- FXint arg3 = (FXint) 0 ;
11337
- FXint arg4 = (FXint) 0 ;
11470
+ FXDCPrint *arg1 = 0 ;
11471
+ FXBitmap *arg2 = 0 ;
11472
+ FXint arg3 = 0 ;
11473
+ FXint arg4 = 0 ;
11338
11474
  void *argp1 = 0 ;
11339
11475
  int res1 = 0 ;
11340
11476
  void *argp2 = 0 ;
@@ -11368,7 +11504,7 @@ fail:
11368
11504
 
11369
11505
  SWIGINTERN VALUE
11370
11506
  _wrap_FXDCPrint_clearClipMask(int argc, VALUE *argv, VALUE self) {
11371
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11507
+ FXDCPrint *arg1 = 0 ;
11372
11508
  void *argp1 = 0 ;
11373
11509
  int res1 = 0 ;
11374
11510
 
@@ -11389,8 +11525,8 @@ fail:
11389
11525
 
11390
11526
  SWIGINTERN VALUE
11391
11527
  _wrap_FXDCPrint_setFont(int argc, VALUE *argv, VALUE self) {
11392
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11393
- FXFont *arg2 = (FXFont *) 0 ;
11528
+ FXDCPrint *arg1 = 0 ;
11529
+ FXFont *arg2 = 0 ;
11394
11530
  void *argp1 = 0 ;
11395
11531
  int res1 = 0 ;
11396
11532
  void *argp2 = 0 ;
@@ -11418,7 +11554,7 @@ fail:
11418
11554
 
11419
11555
  SWIGINTERN VALUE
11420
11556
  _wrap_FXDCPrint_clipChildren(int argc, VALUE *argv, VALUE self) {
11421
- FXDCPrint *arg1 = (FXDCPrint *) 0 ;
11557
+ FXDCPrint *arg1 = 0 ;
11422
11558
  FXbool arg2 ;
11423
11559
  void *argp1 = 0 ;
11424
11560
  int res1 = 0 ;
@@ -11632,7 +11768,7 @@ static swig_cast_info *swig_cast_initial[] = {
11632
11768
 
11633
11769
  /* -----------------------------------------------------------------------------
11634
11770
  * Type initialization:
11635
- * This problem is tough by the requirement that no dynamic
11771
+ * This problem is made tough by the requirement that no dynamic
11636
11772
  * memory is used. Also, since swig_type_info structures store pointers to
11637
11773
  * swig_cast_info structures and swig_cast_info structures store pointers back
11638
11774
  * to swig_type_info structures, we need some lookup code at initialization.
@@ -11647,15 +11783,20 @@ static swig_cast_info *swig_cast_initial[] = {
11647
11783
  * array. We just loop through that array, and handle each type individually.
11648
11784
  * First we lookup if this type has been already loaded, and if so, use the
11649
11785
  * loaded structure instead of the generated one. Then we have to fill in the
11650
- * cast linked list. The cast data is initially stored in something like a
11786
+ * cast dependencies. The cast data is initially stored in something like a
11651
11787
  * two-dimensional array. Each row corresponds to a type (there are the same
11652
11788
  * number of rows as there are in the swig_type_initial array). Each entry in
11653
11789
  * a column is one of the swig_cast_info structures for that type.
11654
11790
  * The cast_initial array is actually an array of arrays, because each row has
11655
- * a variable number of columns. So to actually build the cast linked list,
11656
- * we find the array of casts associated with the type, and loop through it
11657
- * adding the casts to the list. The one last trick we need to do is making
11658
- * sure the type pointer in the swig_cast_info struct is correct.
11791
+ * a variable number of columns.
11792
+ *
11793
+ * We loop through the cast[] array associated with the type and mark casts
11794
+ * which have not been defined in previously loaded modules by assigning
11795
+ * cast pointer value to cast->next. We also hash cast->type->name string
11796
+ * and store the value in the cast->value field. If we encounter swig_cast_info
11797
+ * structure that represents a cast to self we move it to the beginning
11798
+ * of the cast array. One trick we need to do is making sure the type pointer
11799
+ * in the swig_cast_info struct is correct.
11659
11800
  *
11660
11801
  * First off, we lookup the cast->type name to see if it is already loaded.
11661
11802
  * There are three cases to handle:
@@ -11667,8 +11808,71 @@ static swig_cast_info *swig_cast_initial[] = {
11667
11808
  * cast->type) are loaded, THEN the cast info has already been loaded by
11668
11809
  * the previous module so we just ignore it.
11669
11810
  * 3) Finally, if cast->type has not already been loaded, then we add that
11670
- * swig_cast_info to the linked list (because the cast->type) pointer will
11811
+ * swig_cast_info to the list (because the cast->type) pointer will
11671
11812
  * be correct.
11813
+ *
11814
+ * Once the cast array has been set up AND it does have new casts that need
11815
+ * to be added we sort non-self cast entries to move filtered out entries
11816
+ * to the end of the array and to arrange the rest in the increasing order
11817
+ * of their type pointer values. We store the index of the last added entry
11818
+ * in the cast->value field of the entry[0] (overwriting the name hash). Then
11819
+ * we sort <next|value> fields of the remaining entries to arrange hash values
11820
+ * in the increasing order. This way cast->next->type->name field matches
11821
+ * the cast->value hash.
11822
+ *
11823
+ * Example:
11824
+ * Array of casts for type stored at 0x5000, cast to type stored at 0x3000
11825
+ * has already been loaded
11826
+ *
11827
+ * After sweep-and-hash: After sort-by-type: After sort-by-hash:
11828
+ * ________________ ________________ ________________
11829
+ * | | | | | |
11830
+ * Entry | type = 0x5000 | | type = 0x5000 | | type = 0x5000 |
11831
+ * 0 | | | | | |
11832
+ * | next = Entry0 | | next = Entry0 | | next = Entry0 |
11833
+ * | value = 1212 | | value = 3 | | value = 3 |
11834
+ * | | | | | |
11835
+ * |================| |================| |================|
11836
+ * | | | | | |
11837
+ * Entry | type = 0x2000 | | type = 0x1000 | | type = 0x1000 |
11838
+ * 1 | | | | | |
11839
+ * | next = Entry1 | | next = Entry1 | | next = Entry3 |
11840
+ * | value = 3434 | | value = 4545 | | value = 2323 |
11841
+ * |________________| |________________| |________________|
11842
+ * | | | | | |
11843
+ * Entry | type = 0x3000 | | type = 0x2000 | | type = 0x2000 |
11844
+ * 2 | | | | | |
11845
+ * | next = 0 | | next = Entry2 | | next = Entry2 |
11846
+ * | value = 0 | | value = 3434 | | value = 3434 |
11847
+ * |________________| |________________| |________________|
11848
+ * | | | | | |
11849
+ * Entry | type = 0x1000 | | type = 0x4000 | | type = 0x4000 |
11850
+ * 3 | | | | | |
11851
+ * | next = Entry3 | | next = Entry3 | | next = Entry1 |
11852
+ * | value = 4545 | | value = 2323 | | value = 4545 |
11853
+ * |________________| |________________| |________________|
11854
+ * | | | | | |
11855
+ * Entry | type = 0x4000 | | type = 0x3000 | | type = 0x3000 |
11856
+ * 4 | | | | | |
11857
+ * | next = Entry4 | | next = 0 | | next = 0 |
11858
+ * | value = 2323 | | value = 0 | | value = 0 |
11859
+ * |________________| |________________| |________________|
11860
+ *
11861
+ * Once the cast array has been initialized, we use cast[0]->next field to link
11862
+ * it into the list of cast arrays for the type.
11863
+ * ____ ____ ____
11864
+ * type->cast->|next|->|next|->|next|->0
11865
+ * |----| |----| |----|
11866
+ * |----| |----| |----|
11867
+ * |----| |----| |----|
11868
+ *
11869
+ * Subsequent cast resolution works as follows:
11870
+ *
11871
+ * 1. Check whether the type matches the first entry in the current cast array.
11872
+ * 2. If not, then do a binary search over the (0:cast->value] interval using
11873
+ * either type address or the hash value of the type name.
11874
+ * 3. If not found, then move over to the next cast array (cast[0]->next).
11875
+ *
11672
11876
  * ----------------------------------------------------------------------------- */
11673
11877
 
11674
11878
  #ifdef __cplusplus
@@ -11686,6 +11890,46 @@ extern "C" {
11686
11890
  #define SWIG_INIT_CLIENT_DATA_TYPE void *
11687
11891
  #endif
11688
11892
 
11893
+ /*
11894
+ * Sort function that puts cast entries with nonzero 'next' at the front
11895
+ * of the array while ordering them by addresses of their 'type' structs.
11896
+ */
11897
+ SWIGINTERN int SWIG_CastCmpStruct(const void *pa, const void *pb) {
11898
+ swig_cast_info *pca = (swig_cast_info *)pa;
11899
+ swig_cast_info *pcb = (swig_cast_info *)pb;
11900
+ if (pca->type < pcb->type)
11901
+ return (pca->next || pcb->next == 0) ? -1 : 1;
11902
+ if (pca->type > pcb->type)
11903
+ return (pcb->next || pca->next == 0) ? 1 : -1;
11904
+ return 0;
11905
+ }
11906
+
11907
+ /*
11908
+ * Shell-sort 'next' and 'value' field pairs to order them by 'value'.
11909
+ */
11910
+ SWIGINTERN void SWIG_CastHashSort(swig_cast_info *cast, int size) {
11911
+ const int hmax = size/9;
11912
+ int h, i;
11913
+ for(h = 1; h <= hmax; h = 3*h+1);
11914
+ for(; h > 0; h /= 3)
11915
+ {
11916
+ for(i = h; i < size; ++i)
11917
+ {
11918
+ swig_cast_info *p = cast[i].next;
11919
+ unsigned int hash = cast[i].value;
11920
+ int j = i;
11921
+ while(j >= h && hash < cast[j-h].value)
11922
+ {
11923
+ cast[j].next = cast[j-h].next;
11924
+ cast[j].value = cast[j-h].value;
11925
+ j -= h;
11926
+ }
11927
+ cast[j].next = p;
11928
+ cast[j].value = hash;
11929
+ }
11930
+ }
11931
+ }
11932
+
11689
11933
  SWIGRUNTIME void
11690
11934
  SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
11691
11935
  size_t i;
@@ -11737,8 +11981,9 @@ SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
11737
11981
  #endif
11738
11982
  for (i = 0; i < swig_module.size; ++i) {
11739
11983
  swig_type_info *type = 0;
11740
- swig_type_info *ret;
11741
- swig_cast_info *cast;
11984
+ swig_type_info *target_type;
11985
+ swig_cast_info *cast, *first;
11986
+ int num_mapped = 0;
11742
11987
 
11743
11988
  #ifdef SWIGRUNTIME_DEBUG
11744
11989
  printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
@@ -11764,49 +12009,107 @@ SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
11764
12009
  }
11765
12010
 
11766
12011
  /* Insert casting types */
11767
- cast = swig_module.cast_initial[i];
12012
+ cast = first = swig_module.cast_initial[i];
11768
12013
  while (cast->type) {
11769
12014
 
11770
12015
  /* Don't need to add information already in the list */
11771
- ret = 0;
12016
+ target_type = 0;
11772
12017
  #ifdef SWIGRUNTIME_DEBUG
11773
12018
  printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
11774
12019
  #endif
11775
12020
  if (swig_module.next != &swig_module) {
11776
- ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
12021
+ target_type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
12022
+ if (target_type) {
12023
+
12024
+ /* Target type already defined in another module */
11777
12025
  #ifdef SWIGRUNTIME_DEBUG
11778
- if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
12026
+ printf("SWIG_InitializeModule: found cast %s\n", target_type->name);
11779
12027
  #endif
11780
- }
11781
- if (ret) {
11782
- if (type == swig_module.type_initial[i]) {
12028
+ if (type == swig_module.type_initial[i]) {
11783
12029
  #ifdef SWIGRUNTIME_DEBUG
11784
- printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
12030
+ printf("SWIG_InitializeModule: skip old type %s\n", target_type->name);
11785
12031
  #endif
11786
- cast->type = ret;
11787
- ret = 0;
11788
- } else {
11789
- /* Check for casting already in the list */
11790
- swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
12032
+ cast->type = target_type;
12033
+ target_type = 0;
12034
+ } else {
12035
+ /* Check if this cast is already in the list */
12036
+ swig_cast_info *ocast = SWIG_TypeCheck(target_type->name, type);
11791
12037
  #ifdef SWIGRUNTIME_DEBUG
11792
- if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
12038
+ if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", target_type->name);
11793
12039
  #endif
11794
- if (!ocast) ret = 0;
11795
- }
12040
+ if (!ocast) {
12041
+ cast->type = target_type;
12042
+ target_type = 0;
12043
+ }
12044
+ }
12045
+ }
11796
12046
  }
11797
12047
 
11798
- if (!ret) {
12048
+ if (!target_type) {
11799
12049
  #ifdef SWIGRUNTIME_DEBUG
11800
- printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
12050
+ printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
11801
12051
  #endif
11802
- if (type->cast) {
11803
- type->cast->prev = cast;
11804
- cast->next = type->cast;
12052
+ /* Set inclusion mark for sorting */
12053
+ cast->next = cast;
12054
+ num_mapped++;
12055
+
12056
+ if (type == cast->type) {
12057
+ #ifdef SWIGRUNTIME_DEBUG
12058
+ printf("%s : self cast at pos [%li]\n", type->name, cast - first);
12059
+ #endif
12060
+ if (cast - first) {
12061
+
12062
+ /* Move cast to itself to the first entry in the array */
12063
+
12064
+ swig_cast_info tmp = *cast;
12065
+ *cast = *first;
12066
+ *first = tmp;
12067
+ }
12068
+ first++;
12069
+
12070
+ } else {
12071
+ cast->value = SWIG_Hash(cast->type->name, (unsigned int)strlen(cast->type->name));
11805
12072
  }
11806
- type->cast = cast;
11807
12073
  }
11808
12074
  cast++;
11809
12075
  }
12076
+
12077
+ if (num_mapped) {
12078
+ if (cast - first) {
12079
+ swig_cast_info *tmp;
12080
+
12081
+ /* Sort casts by type address for binary search in SWIG_TypeCheckStruct */
12082
+ qsort(first, (size_t)(cast - first), sizeof(swig_cast_info), SWIG_CastCmpStruct);
12083
+
12084
+ /* Remap back links for added entries */
12085
+ cast = swig_module.cast_initial[i] + num_mapped;
12086
+ for (tmp = first; tmp < cast; tmp++) {
12087
+ tmp->next = tmp;
12088
+ }
12089
+ }
12090
+
12091
+ /* Set the value field of the first entry to the index of the last added entry */
12092
+ cast = swig_module.cast_initial[i];
12093
+ cast->value = (unsigned int)(num_mapped - 1);
12094
+
12095
+ num_mapped -= (int)(first - cast);
12096
+ if (num_mapped > 1) {
12097
+ /* Sort <'next','value'> pairs by 'value' for binary search in SWIG_TypeCheck */
12098
+
12099
+ SWIG_CastHashSort(first, num_mapped);
12100
+ }
12101
+
12102
+ first = type->cast;
12103
+ if (first) {
12104
+ /* Link the current set into the list of cast arrays */
12105
+ cast->next = first->next;
12106
+ first->next = cast;
12107
+ } else {
12108
+ cast->next = 0;
12109
+ type->cast = cast;
12110
+ }
12111
+ }
12112
+
11810
12113
  /* Set entry in modules->types array equal to the type */
11811
12114
  swig_module.types[i] = type;
11812
12115
  }
@@ -11837,7 +12140,6 @@ SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
11837
12140
  SWIGRUNTIME void
11838
12141
  SWIG_PropagateClientData(void) {
11839
12142
  size_t i;
11840
- swig_cast_info *equiv;
11841
12143
  static int init_run = 0;
11842
12144
 
11843
12145
  if (init_run) return;
@@ -11845,13 +12147,16 @@ SWIG_PropagateClientData(void) {
11845
12147
 
11846
12148
  for (i = 0; i < swig_module.size; i++) {
11847
12149
  if (swig_module.types[i]->clientdata) {
11848
- equiv = swig_module.types[i]->cast;
11849
- while (equiv) {
11850
- if (!equiv->converter) {
11851
- if (equiv->type && !equiv->type->clientdata)
11852
- SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
12150
+ swig_cast_info *head, *cast;
12151
+ head = swig_module.types[i]->cast;
12152
+ while (head) {
12153
+ for (cast = head; (cast - head) <= head->value; cast++) {
12154
+ if (!cast->converter) {
12155
+ if (cast->type && !cast->type->clientdata)
12156
+ SWIG_TypeClientData(cast->type, swig_module.types[i]->clientdata);
12157
+ }
11853
12158
  }
11854
- equiv = equiv->next;
12159
+ head = head->next;
11855
12160
  }
11856
12161
  }
11857
12162
  }
@@ -11955,8 +12260,11 @@ SWIGEXPORT void Init_dc(void) {
11955
12260
  rb_define_method(SwigClassFXSegment.klass, "x2", VALUEFUNC(_wrap_FXSegment_x2_get), -1);
11956
12261
  rb_define_method(SwigClassFXSegment.klass, "y2=", VALUEFUNC(_wrap_FXSegment_y2_set), -1);
11957
12262
  rb_define_method(SwigClassFXSegment.klass, "y2", VALUEFUNC(_wrap_FXSegment_y2_get), -1);
12263
+ SwigClassFXSegment.cext_type.wrap_struct_name = "C++ class FXSegment";
11958
12264
  SwigClassFXSegment.mark = 0;
12265
+ SwigClassFXSegment.cext_type.function.dmark = SWIG_Ruby_mark_swig_type;
11959
12266
  SwigClassFXSegment.destroy = (void (*)(void *)) free_FXSegment;
12267
+ SwigClassFXSegment.cext_type.function.dfree = SWIG_Ruby_free_swig_type;
11960
12268
  SwigClassFXSegment.trackObjects = 0;
11961
12269
 
11962
12270
  SwigClassFXArc.klass = rb_define_class_under(mFox, "FXArc", rb_cObject);
@@ -11975,8 +12283,11 @@ SWIGEXPORT void Init_dc(void) {
11975
12283
  rb_define_method(SwigClassFXArc.klass, "a", VALUEFUNC(_wrap_FXArc_a_get), -1);
11976
12284
  rb_define_method(SwigClassFXArc.klass, "b=", VALUEFUNC(_wrap_FXArc_b_set), -1);
11977
12285
  rb_define_method(SwigClassFXArc.klass, "b", VALUEFUNC(_wrap_FXArc_b_get), -1);
12286
+ SwigClassFXArc.cext_type.wrap_struct_name = "C++ class FXArc";
11978
12287
  SwigClassFXArc.mark = 0;
12288
+ SwigClassFXArc.cext_type.function.dmark = SWIG_Ruby_mark_swig_type;
11979
12289
  SwigClassFXArc.destroy = (void (*)(void *)) free_FXArc;
12290
+ SwigClassFXArc.cext_type.function.dfree = SWIG_Ruby_free_swig_type;
11980
12291
  SwigClassFXArc.trackObjects = 0;
11981
12292
 
11982
12293
  SwigClassFXDC.klass = rb_define_class_under(mFox, "FXDC", rb_cObject);
@@ -12060,8 +12371,11 @@ SWIGEXPORT void Init_dc(void) {
12060
12371
  rb_define_method(SwigClassFXDC.klass, "clearClipMask", VALUEFUNC(_wrap_FXDC_clearClipMask), -1);
12061
12372
  rb_define_method(SwigClassFXDC.klass, "setFont", VALUEFUNC(_wrap_FXDC_setFont), -1);
12062
12373
  rb_define_method(SwigClassFXDC.klass, "clipChildren", VALUEFUNC(_wrap_FXDC_clipChildren), -1);
12374
+ SwigClassFXDC.cext_type.wrap_struct_name = "C++ class FXDC";
12063
12375
  SwigClassFXDC.mark = (void (*)(void *)) FXRbDC::markfunc;
12376
+ SwigClassFXDC.cext_type.function.dmark = SWIG_Ruby_mark_swig_type;
12064
12377
  SwigClassFXDC.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
12378
+ SwigClassFXDC.cext_type.function.dfree = SWIG_Ruby_free_swig_type;
12065
12379
  SwigClassFXDC.trackObjects = 0;
12066
12380
 
12067
12381
  SwigClassFXDCWindow.klass = rb_define_class_under(mFox, "FXDCWindow", ((swig_class *) SWIGTYPE_p_FXDC->clientdata)->klass);
@@ -12126,8 +12440,11 @@ SWIGEXPORT void Init_dc(void) {
12126
12440
  rb_define_method(SwigClassFXDCWindow.klass, "clearClipMask", VALUEFUNC(_wrap_FXDCWindow_clearClipMask), -1);
12127
12441
  rb_define_method(SwigClassFXDCWindow.klass, "setFont", VALUEFUNC(_wrap_FXDCWindow_setFont), -1);
12128
12442
  rb_define_method(SwigClassFXDCWindow.klass, "clipChildren", VALUEFUNC(_wrap_FXDCWindow_clipChildren), -1);
12443
+ SwigClassFXDCWindow.cext_type.wrap_struct_name = "C++ class FXDCWindow";
12129
12444
  SwigClassFXDCWindow.mark = (void (*)(void *)) FXRbDCWindow::markfunc;
12130
- SwigClassFXDCWindow.destroy = (void (*)(void *)) free_FXDCWindow;
12445
+ SwigClassFXDCWindow.cext_type.function.dmark = SWIG_Ruby_mark_swig_type;
12446
+ SwigClassFXDCWindow.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
12447
+ SwigClassFXDCWindow.cext_type.function.dfree = SWIG_Ruby_free_swig_type;
12131
12448
  SwigClassFXDCWindow.trackObjects = 0;
12132
12449
  rb_define_const(mFox, "PRINT_DEST_PAPER", SWIG_From_int(static_cast< int >(PRINT_DEST_PAPER)));
12133
12450
  rb_define_const(mFox, "PRINT_DEST_FILE", SWIG_From_int(static_cast< int >(PRINT_DEST_FILE)));
@@ -12160,8 +12477,11 @@ SWIGEXPORT void Init_dc(void) {
12160
12477
  rb_define_method(SwigClassFXPSBounds.klass, "ymin", VALUEFUNC(_wrap_FXPSBounds_ymin_get), -1);
12161
12478
  rb_define_method(SwigClassFXPSBounds.klass, "ymax=", VALUEFUNC(_wrap_FXPSBounds_ymax_set), -1);
12162
12479
  rb_define_method(SwigClassFXPSBounds.klass, "ymax", VALUEFUNC(_wrap_FXPSBounds_ymax_get), -1);
12480
+ SwigClassFXPSBounds.cext_type.wrap_struct_name = "C++ class FXPSBounds";
12163
12481
  SwigClassFXPSBounds.mark = 0;
12482
+ SwigClassFXPSBounds.cext_type.function.dmark = SWIG_Ruby_mark_swig_type;
12164
12483
  SwigClassFXPSBounds.destroy = (void (*)(void *)) free_FXPSBounds;
12484
+ SwigClassFXPSBounds.cext_type.function.dfree = SWIG_Ruby_free_swig_type;
12165
12485
  SwigClassFXPSBounds.trackObjects = 0;
12166
12486
 
12167
12487
  SwigClassFXPrinter.klass = rb_define_class_under(mFox, "FXPrinter", rb_cObject);
@@ -12198,8 +12518,11 @@ SWIGEXPORT void Init_dc(void) {
12198
12518
  rb_define_method(SwigClassFXPrinter.klass, "numcopies", VALUEFUNC(_wrap_FXPrinter_numcopies_get), -1);
12199
12519
  rb_define_method(SwigClassFXPrinter.klass, "flags=", VALUEFUNC(_wrap_FXPrinter_flags_set), -1);
12200
12520
  rb_define_method(SwigClassFXPrinter.klass, "flags", VALUEFUNC(_wrap_FXPrinter_flags_get), -1);
12521
+ SwigClassFXPrinter.cext_type.wrap_struct_name = "C++ class FXPrinter";
12201
12522
  SwigClassFXPrinter.mark = 0;
12523
+ SwigClassFXPrinter.cext_type.function.dmark = SWIG_Ruby_mark_swig_type;
12202
12524
  SwigClassFXPrinter.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
12525
+ SwigClassFXPrinter.cext_type.function.dfree = SWIG_Ruby_free_swig_type;
12203
12526
  SwigClassFXPrinter.trackObjects = 0;
12204
12527
 
12205
12528
  SwigClassFXDCPrint.klass = rb_define_class_under(mFox, "FXDCPrint", ((swig_class *) SWIGTYPE_p_FXDC->clientdata)->klass);
@@ -12267,8 +12590,11 @@ SWIGEXPORT void Init_dc(void) {
12267
12590
  rb_define_method(SwigClassFXDCPrint.klass, "clearClipMask", VALUEFUNC(_wrap_FXDCPrint_clearClipMask), -1);
12268
12591
  rb_define_method(SwigClassFXDCPrint.klass, "setFont", VALUEFUNC(_wrap_FXDCPrint_setFont), -1);
12269
12592
  rb_define_method(SwigClassFXDCPrint.klass, "clipChildren", VALUEFUNC(_wrap_FXDCPrint_clipChildren), -1);
12593
+ SwigClassFXDCPrint.cext_type.wrap_struct_name = "C++ class FXDCPrint";
12270
12594
  SwigClassFXDCPrint.mark = (void (*)(void *)) FXRbDCPrint::markfunc;
12595
+ SwigClassFXDCPrint.cext_type.function.dmark = SWIG_Ruby_mark_swig_type;
12271
12596
  SwigClassFXDCPrint.destroy = (void (*)(void *)) FXRbUnregisterRubyObj;
12597
+ SwigClassFXDCPrint.cext_type.function.dfree = SWIG_Ruby_free_swig_type;
12272
12598
  SwigClassFXDCPrint.trackObjects = 0;
12273
12599
  }
12274
12600