fxruby 1.6.48-x64-mingw32 → 1.6.50-x64-mingw32

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 (333) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/binary.yml +16 -12
  3. data/.github/workflows/ci.yml +30 -14
  4. data/Gemfile +4 -4
  5. data/History.md +17 -0
  6. data/Rakefile +41 -14
  7. data/appveyor.yml +1 -1
  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 +2 -2
  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 +2 -2
  21. data/docs/Fox/Canvas.html +2 -2
  22. data/docs/Fox/FTNonModal.html +2 -2
  23. data/docs/Fox/FX4Splitter.html +2 -2
  24. data/docs/Fox/FX7Segment.html +2 -2
  25. data/docs/Fox/FXAccelTable.html +2 -2
  26. data/docs/Fox/FXApp.html +2 -2
  27. data/docs/Fox/FXArc.html +2 -2
  28. data/docs/Fox/FXArrowButton.html +2 -2
  29. data/docs/Fox/FXBMPIcon.html +2 -2
  30. data/docs/Fox/FXBMPImage.html +2 -2
  31. data/docs/Fox/FXBitmap.html +2 -2
  32. data/docs/Fox/FXBitmapFrame.html +2 -2
  33. data/docs/Fox/FXBitmapView.html +2 -2
  34. data/docs/Fox/FXButton.html +2 -2
  35. data/docs/Fox/FXCURCursor.html +2 -2
  36. data/docs/Fox/FXCalendar.html +2 -2
  37. data/docs/Fox/FXCanvas.html +2 -2
  38. data/docs/Fox/FXCheckButton.html +2 -2
  39. data/docs/Fox/FXChoiceBox.html +2 -2
  40. data/docs/Fox/FXColor.html +2 -2
  41. data/docs/Fox/FXColorBar.html +2 -2
  42. data/docs/Fox/FXColorDialog.html +2 -2
  43. data/docs/Fox/FXColorItem.html +2 -2
  44. data/docs/Fox/FXColorList.html +2 -2
  45. data/docs/Fox/FXColorRing.html +2 -2
  46. data/docs/Fox/FXColorSelector.html +2 -2
  47. data/docs/Fox/FXColorWell.html +2 -2
  48. data/docs/Fox/FXColorWheel.html +2 -2
  49. data/docs/Fox/FXComboBox.html +2 -2
  50. data/docs/Fox/FXComboTableItem.html +2 -2
  51. data/docs/Fox/FXCommand.html +2 -2
  52. data/docs/Fox/FXComposite.html +2 -2
  53. data/docs/Fox/FXCursor.html +2 -2
  54. data/docs/Fox/FXDC.html +2 -2
  55. data/docs/Fox/FXDCPrint.html +2 -2
  56. data/docs/Fox/FXDCWindow.html +2 -2
  57. data/docs/Fox/FXDataTarget.html +2 -2
  58. data/docs/Fox/FXDebugTarget.html +2 -2
  59. data/docs/Fox/FXDelegator.html +2 -2
  60. data/docs/Fox/FXDial.html +2 -2
  61. data/docs/Fox/FXDialogBox.html +21 -7
  62. data/docs/Fox/FXDict.html +2 -2
  63. data/docs/Fox/FXDirBox.html +2 -2
  64. data/docs/Fox/FXDirDialog.html +2 -2
  65. data/docs/Fox/FXDirItem.html +2 -2
  66. data/docs/Fox/FXDirList.html +2 -2
  67. data/docs/Fox/FXDirSelector.html +2 -2
  68. data/docs/Fox/FXDockBar.html +2 -2
  69. data/docs/Fox/FXDockHandler.html +2 -2
  70. data/docs/Fox/FXDockSite.html +2 -2
  71. data/docs/Fox/FXDockTitle.html +2 -2
  72. data/docs/Fox/FXDocument.html +2 -2
  73. data/docs/Fox/FXDragCorner.html +2 -2
  74. data/docs/Fox/FXDrawable.html +2 -2
  75. data/docs/Fox/FXDriveBox.html +2 -2
  76. data/docs/Fox/FXEvent.html +2 -2
  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 +2 -2
  81. data/docs/Fox/FXFileDict.html +2 -2
  82. data/docs/Fox/FXFileItem.html +2 -2
  83. data/docs/Fox/FXFileList.html +2 -2
  84. data/docs/Fox/FXFileSelector.html +2 -2
  85. data/docs/Fox/FXFileStream.html +2 -2
  86. data/docs/Fox/FXFoldingItem.html +2 -2
  87. data/docs/Fox/FXFoldingList.html +2 -2
  88. data/docs/Fox/FXFont.html +2 -2
  89. data/docs/Fox/FXFontDesc.html +2 -2
  90. data/docs/Fox/FXFontDialog.html +2 -2
  91. data/docs/Fox/FXFontSelector.html +2 -2
  92. data/docs/Fox/FXFrame.html +2 -2
  93. data/docs/Fox/FXGIFCursor.html +2 -2
  94. data/docs/Fox/FXGIFIcon.html +2 -2
  95. data/docs/Fox/FXGIFImage.html +2 -2
  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 +2 -2
  104. data/docs/Fox/FXGLPoint.html +2 -2
  105. data/docs/Fox/FXGLShape.html +2 -2
  106. data/docs/Fox/FXGLSphere.html +2 -2
  107. data/docs/Fox/FXGLViewer.html +2 -2
  108. data/docs/Fox/FXGLVisual.html +2 -2
  109. data/docs/Fox/FXGradient.html +2 -2
  110. data/docs/Fox/FXGradientBar.html +2 -2
  111. data/docs/Fox/FXGroupBox.html +2 -2
  112. data/docs/Fox/FXHeader.html +2 -2
  113. data/docs/Fox/FXHeaderItem.html +2 -2
  114. data/docs/Fox/FXHiliteStyle.html +2 -2
  115. data/docs/Fox/FXHorizontalFrame.html +2 -2
  116. data/docs/Fox/FXHorizontalSeparator.html +2 -2
  117. data/docs/Fox/FXICOIcon.html +2 -2
  118. data/docs/Fox/FXICOImage.html +2 -2
  119. data/docs/Fox/FXIcon.html +2 -2
  120. data/docs/Fox/FXIconDict.html +2 -2
  121. data/docs/Fox/FXIconItem.html +2 -2
  122. data/docs/Fox/FXIconList.html +2 -2
  123. data/docs/Fox/FXIconSource.html +2 -2
  124. data/docs/Fox/FXId.html +2 -2
  125. data/docs/Fox/FXImage.html +2 -2
  126. data/docs/Fox/FXImageFrame.html +2 -2
  127. data/docs/Fox/FXImageView.html +2 -2
  128. data/docs/Fox/FXInputDialog.html +2 -2
  129. data/docs/Fox/FXIrb.html +2 -2
  130. data/docs/Fox/FXJPGIcon.html +2 -2
  131. data/docs/Fox/FXJPGImage.html +2 -2
  132. data/docs/Fox/FXKnob.html +2 -2
  133. data/docs/Fox/FXLabel.html +2 -2
  134. data/docs/Fox/FXLight.html +2 -2
  135. data/docs/Fox/FXList.html +2 -2
  136. data/docs/Fox/FXListBox.html +2 -2
  137. data/docs/Fox/FXListItem.html +2 -2
  138. data/docs/Fox/FXMDIChild.html +2 -2
  139. data/docs/Fox/FXMDIClient.html +2 -2
  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 +2 -2
  147. data/docs/Fox/FXMaterial.html +2 -2
  148. data/docs/Fox/FXMatrix.html +2 -2
  149. data/docs/Fox/FXMemoryBuffer.html +2 -2
  150. data/docs/Fox/FXMemoryStream.html +2 -2
  151. data/docs/Fox/FXMenuBar.html +2 -2
  152. data/docs/Fox/FXMenuButton.html +2 -2
  153. data/docs/Fox/FXMenuCaption.html +2 -2
  154. data/docs/Fox/FXMenuCascade.html +2 -2
  155. data/docs/Fox/FXMenuCheck.html +2 -2
  156. data/docs/Fox/FXMenuCommand.html +2 -2
  157. data/docs/Fox/FXMenuPane.html +2 -2
  158. data/docs/Fox/FXMenuRadio.html +2 -2
  159. data/docs/Fox/FXMenuSeparator.html +2 -2
  160. data/docs/Fox/FXMenuTitle.html +2 -2
  161. data/docs/Fox/FXMessageBox.html +2 -2
  162. data/docs/Fox/FXObject.html +2 -2
  163. data/docs/Fox/FXOption.html +2 -2
  164. data/docs/Fox/FXOptionMenu.html +2 -2
  165. data/docs/Fox/FXPCXIcon.html +2 -2
  166. data/docs/Fox/FXPCXImage.html +2 -2
  167. data/docs/Fox/FXPNGIcon.html +2 -2
  168. data/docs/Fox/FXPNGImage.html +2 -2
  169. data/docs/Fox/FXPPMIcon.html +2 -2
  170. data/docs/Fox/FXPPMImage.html +2 -2
  171. data/docs/Fox/FXPSBounds.html +2 -2
  172. data/docs/Fox/FXPacker.html +2 -2
  173. data/docs/Fox/FXPicker.html +2 -2
  174. data/docs/Fox/FXPopup.html +2 -2
  175. data/docs/Fox/FXPrintDialog.html +2 -2
  176. data/docs/Fox/FXPrinter.html +2 -2
  177. data/docs/Fox/FXProgressBar.html +2 -2
  178. data/docs/Fox/FXProgressDialog.html +2 -2
  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 +2 -2
  183. data/docs/Fox/FXQuatf.html +2 -2
  184. data/docs/Fox/FXRGBIcon.html +2 -2
  185. data/docs/Fox/FXRGBImage.html +2 -2
  186. data/docs/Fox/FXRadioButton.html +2 -2
  187. data/docs/Fox/FXRanged.html +2 -2
  188. data/docs/Fox/FXRangef.html +2 -2
  189. data/docs/Fox/FXRealSlider.html +2 -2
  190. data/docs/Fox/FXRealSpinner.html +2 -2
  191. data/docs/Fox/FXRecentFiles.html +2 -2
  192. data/docs/Fox/FXRectangle.html +2 -2
  193. data/docs/Fox/FXRegion.html +2 -2
  194. data/docs/Fox/FXRegistry.html +2 -2
  195. data/docs/Fox/FXReplaceDialog.html +2 -2
  196. data/docs/Fox/FXRootWindow.html +2 -2
  197. data/docs/Fox/FXRuler.html +2 -2
  198. data/docs/Fox/FXRulerView.html +2 -2
  199. data/docs/Fox/FXScintilla.html +2 -2
  200. data/docs/Fox/FXScrollArea.html +2 -2
  201. data/docs/Fox/FXScrollBar.html +2 -2
  202. data/docs/Fox/FXScrollCorner.html +2 -2
  203. data/docs/Fox/FXScrollPane.html +2 -2
  204. data/docs/Fox/FXScrollWindow.html +2 -2
  205. data/docs/Fox/FXSearchDialog.html +2 -2
  206. data/docs/Fox/FXSegment.html +2 -2
  207. data/docs/Fox/FXSeparator.html +2 -2
  208. data/docs/Fox/FXSettings.html +2 -2
  209. data/docs/Fox/FXShell.html +2 -2
  210. data/docs/Fox/FXShutter.html +2 -2
  211. data/docs/Fox/FXShutterItem.html +2 -2
  212. data/docs/Fox/FXSize.html +2 -2
  213. data/docs/Fox/FXSlider.html +2 -2
  214. data/docs/Fox/FXSphered.html +2 -2
  215. data/docs/Fox/FXSpheref.html +2 -2
  216. data/docs/Fox/FXSpinner.html +2 -2
  217. data/docs/Fox/FXSplashScreen.html +2 -2
  218. data/docs/Fox/FXSplashWindow.html +2 -2
  219. data/docs/Fox/FXSplitter.html +2 -2
  220. data/docs/Fox/FXSpring.html +2 -2
  221. data/docs/Fox/FXStatusBar.html +2 -2
  222. data/docs/Fox/FXStatusLine.html +2 -2
  223. data/docs/Fox/FXStream.html +2 -2
  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 +2 -2
  235. data/docs/Fox/FXTGAIcon.html +2 -2
  236. data/docs/Fox/FXTGAImage.html +2 -2
  237. data/docs/Fox/FXTIFIcon.html +2 -2
  238. data/docs/Fox/FXTIFImage.html +2 -2
  239. data/docs/Fox/FXTabBar.html +2 -2
  240. data/docs/Fox/FXTabBook.html +2 -2
  241. data/docs/Fox/FXTabItem.html +2 -2
  242. data/docs/Fox/FXTable.html +2 -2
  243. data/docs/Fox/FXTableItem.html +2 -2
  244. data/docs/Fox/FXTablePos.html +2 -2
  245. data/docs/Fox/FXTableRange.html +2 -2
  246. data/docs/Fox/FXText.html +2 -2
  247. data/docs/Fox/FXTextChange.html +2 -2
  248. data/docs/Fox/FXTextField.html +2 -2
  249. data/docs/Fox/FXToggleButton.html +2 -2
  250. data/docs/Fox/FXToolBar.html +2 -2
  251. data/docs/Fox/FXToolBarGrip.html +2 -2
  252. data/docs/Fox/FXToolBarShell.html +2 -2
  253. data/docs/Fox/FXToolBarTab.html +2 -2
  254. data/docs/Fox/FXToolTip.html +2 -2
  255. data/docs/Fox/FXTopWindow.html +6 -9
  256. data/docs/Fox/FXTranslator.html +2 -2
  257. data/docs/Fox/FXTreeItem.html +2 -2
  258. data/docs/Fox/FXTreeList.html +2 -2
  259. data/docs/Fox/FXTreeListBox.html +2 -2
  260. data/docs/Fox/FXTriStateButton.html +2 -2
  261. data/docs/Fox/FXUndoList.html +2 -2
  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 +2 -2
  269. data/docs/Fox/FXVerticalSeparator.html +2 -2
  270. data/docs/Fox/FXViewport.html +2 -2
  271. data/docs/Fox/FXVisual.html +2 -2
  272. data/docs/Fox/FXWindow.html +3 -3
  273. data/docs/Fox/FXWizard.html +2 -2
  274. data/docs/Fox/FXXBMIcon.html +2 -2
  275. data/docs/Fox/FXXBMImage.html +2 -2
  276. data/docs/Fox/FXXPMIcon.html +2 -2
  277. data/docs/Fox/FXXPMImage.html +2 -2
  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 +3 -3
  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/class_list.html +6 -3
  287. data/docs/css/full_list.css +3 -3
  288. data/docs/css/style.css +6 -0
  289. data/docs/file.History.html +21 -3
  290. data/docs/file.README.html +2 -2
  291. data/docs/file_list.html +5 -2
  292. data/docs/frames.html +9 -4
  293. data/docs/index.html +3 -3
  294. data/docs/js/app.js +294 -264
  295. data/docs/js/full_list.js +30 -4
  296. data/docs/method_list.html +5 -2
  297. data/docs/top-level-namespace.html +2 -2
  298. data/ext/fox16_c/FXRuby.cpp +15 -1
  299. data/ext/fox16_c/extconf.rb +49 -18
  300. data/ext/fox16_c/scintilla_wrap.cpp +8 -1
  301. data/fxruby.gemspec +2 -2
  302. data/lib/fox16/scintilla.rb +750 -22
  303. data/lib/fox16/version.rb +1 -1
  304. data/lib/fox16.rb +1 -17
  305. data/{lib/3.0/fox16_c.so → ports/x64-mingw32/bin/3_0_fox16_c.so} +0 -0
  306. data/ports/x64-mingw32/bin/fxruby-assembly.manifest +6 -0
  307. data/ports/x64-mingw32/bin/libFOX-1.6-0.dll +0 -0
  308. data/ports/x64-mingw32/bin/libfxscintilla-25.dll +0 -0
  309. data/ports/x64-mingw32/bin/libjpeg-62.dll +0 -0
  310. data/ports/x64-mingw32/bin/libpng16-16.dll +0 -0
  311. data/ports/x64-mingw32/bin/libtiff-6.dll +0 -0
  312. data/ports/x64-mingw32/bin/zlib1.dll +0 -0
  313. data/rdoc-sources/FXDialogBox.rb +12 -0
  314. data/rdoc-sources/FXImage.rb +4 -1
  315. data/rdoc-sources/FXToolTip.rb +1 -1
  316. data/rdoc-sources/FXTopWindow.rb +1 -1
  317. data/rdoc-sources/FXWindow.rb +1 -1
  318. data/swig-interfaces/FXScintilla.i +8 -1
  319. data/test/TC_FXApp.rb +2 -1
  320. data/test/TC_FXBMPImage.rb +1 -1
  321. data/test/TC_FXButton.rb +2 -1
  322. data/test/TC_FXDialogBox.rb +2 -1
  323. data/test/TC_FXGLViewer.rb +2 -1
  324. data/test/TC_FXImage.rb +4 -4
  325. data/test/TC_FXMainWindow.rb +2 -1
  326. data/test/TC_FXMessageBox.rb +2 -1
  327. data/test/TC_FXScrollArea.rb +2 -1
  328. data/test/TC_FXShell.rb +2 -1
  329. data/test/TC_FXSize.rb +4 -2
  330. metadata +8 -13
  331. data/lib/2.6/fox16_c.so +0 -0
  332. data/lib/2.7/fox16_c.so +0 -0
  333. data/ports/x64-mingw32/bin/libfxscintilla-20.dll +0 -0
data/lib/fox16/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Fox
2
2
  def Fox.fxrubyversion
3
- "1.6.48"
3
+ "1.6.50"
4
4
  end
5
5
  end
data/lib/fox16.rb CHANGED
@@ -6,24 +6,8 @@ rescue LoadError
6
6
  major_minor = RUBY_VERSION[ /^(\d+\.\d+)/ ] or
7
7
  raise "Oops, can't extract the major/minor version from #{RUBY_VERSION.dump}"
8
8
 
9
- add_dll_path = proc do |path, &block|
10
- begin
11
- require 'ruby_installer/runtime'
12
- RubyInstaller::Runtime.add_dll_directory(path, &block)
13
- rescue LoadError
14
- old_path = ENV['PATH']
15
- ENV['PATH'] = "#{path};#{old_path}"
16
- block.call
17
- ENV['PATH'] = old_path
18
- end
19
- end
20
-
21
9
  ruby_plat = RUBY_PLATFORM.gsub("i386", "x86")
22
- # Temporary add this directory for DLL search, so that bundled DLLs can be found.
23
- ports_bin = File.expand_path("../../ports/#{ruby_plat}/bin", __FILE__)
24
- add_dll_path.call(ports_bin) do
25
- require "#{major_minor}/fox16_c"
26
- end
10
+ require_relative "../ports/#{ruby_plat}/bin/#{major_minor.gsub(".","_")}_fox16_c"
27
11
  else
28
12
  raise
29
13
  end
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
+ <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3
+ <assemblyIdentity type="win32" name="fxruby-assembly" version="1.0.0.0"></assemblyIdentity>
4
+
5
+ <file name="libwinpthread-1.dll"/><file name="libgcc_s_seh-1.dll"/><file name="libstdc++-6.dll"/><file name="libfxscintilla-25.dll"/><file name="libFOX-1.6-0.dll"/><file name="libjpeg-62.dll"/><file name="libpng16-16.dll"/><file name="libtiff-6.dll"/><file name="zlib1.dll"/>
6
+ </assembly>
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -6,6 +6,18 @@ module Fox
6
6
  # +ID_CANCEL+ or +ID_ACCEPT+, the dialog box breaks out of the modal
7
7
  # loop and returns a completion code of either 0 or 1, respectively.
8
8
  #
9
+ # A modal dialog can be closed directly from a button:
10
+ #
11
+ # FXButton.new(self, "&OK", nil, self, ID_ACCEPT)
12
+ #
13
+ # A modal dialog can also be closed from an event handler like so:
14
+ #
15
+ # FXButton.new(self, "&OK") do |bu|
16
+ # bu.connect(SEL_COMMAND) do
17
+ # handle(self, Fox.MKUINT(ID_ACCEPT, SEL_COMMAND), nil)
18
+ # end
19
+ # end
20
+ #
9
21
  # To close a dialog box when it's not running modally, simply call
10
22
  # {#hide} (or send it the +ID_HIDE+ command message).
11
23
  #
@@ -80,7 +80,10 @@ module Fox
80
80
  #
81
81
  # Populate the image with new pixel data of the same size or of a new size
82
82
  #
83
- # Pixel data is copied and IMAGE_OWNED option is set.
83
+ # Pixel data is copied when IMAGE_OWNED option is set or when provided as Array.
84
+ # Pixel data is used without copying when IMAGE_OWNED isn't set and provided as String.
85
+ # In that case the string must be writable and receives modifications to the image.
86
+ #
84
87
  # If called with +width+ and +height+, the size of the serverside representation
85
88
  # of the image, if it exists, is adjusted but the contents are not updated yet.
86
89
  # This can be done by calling render().
@@ -4,7 +4,7 @@ module Fox
4
4
  # = Tooltip styles
5
5
  # TOOLTIP_PERMANENT:: Tooltip stays up indefinitely
6
6
  # TOOLTIP_VARIABLE:: Tooltip stays up variable time, depending on the length of the string
7
- # TOOLTIP_NORMAL::
7
+ # TOOLTIP_NORMAL:: Normal tooltip
8
8
  #
9
9
  # = Message identifiers
10
10
  #
@@ -43,7 +43,7 @@ module Fox
43
43
  # +SEL_CLOSE+::
44
44
  # sent when the user clicks the close button in the upper right-hand
45
45
  # corner of the top-level window.
46
- # +SEL_SESSION_NOTIFY+:
46
+ # +SEL_SESSION_NOTIFY+::
47
47
  # sent when the session is closed.:
48
48
  # +SEL_SESSION_CLOSED+::
49
49
  # sent after the session is closed.
@@ -78,7 +78,7 @@ module Fox
78
78
  # +LAYOUT_MIN_HEIGHT+:: Minimum height is the default
79
79
  # +LAYOUT_FILL_X+:: Stretch or shrink horizontally
80
80
  # +LAYOUT_FILL_Y+:: Stretch or shrink vertically
81
- # +LAYOUT_FILL:: Stretch or shrink in both directions
81
+ # +LAYOUT_FILL+:: Stretch or shrink in both directions
82
82
  # +LAYOUT_EXPLICIT+:: Explicit placement
83
83
  # +LAYOUT_DOCK_SAME+:: Dock on same galley, if it fits
84
84
  # +LAYOUT_DOCK_NEXT+:: Dock on next galley
@@ -96,7 +96,14 @@ struct TextRange {
96
96
  class FXScintilla : public FXScrollArea {
97
97
  public:
98
98
  enum{
99
- ID_TICK,
99
+ ID_TICK_CARET,
100
+ ID_TICK_SCROLL,
101
+ ID_TICK_WIDEN,
102
+ ID_TICK_DWELL,
103
+ ID_TICK_PLATFORM,
104
+ ID_IDLE,
105
+ ID_STYLE_IDLE,
106
+ ID_LAST
100
107
  };
101
108
  public:
102
109
  long onScintillaCommand(FXObject*, FXSelector, void* PTR_IGNORE);
data/test/TC_FXApp.rb CHANGED
@@ -21,7 +21,8 @@ class TC_FXApp2 < Fox::TestCase
21
21
  end
22
22
 
23
23
  def test_nil_window_raises_argument_error
24
- assert_raise(ArgumentError){ app.runPopup(nil) }
24
+ err = assert_raise{ app.runPopup(nil) }
25
+ assert_match(/NULL pointer/, err.to_s)
25
26
  end
26
27
 
27
28
  def check_events(pipe_rd, pipe_wr)
@@ -15,7 +15,7 @@ class TC_FXBMPImage < Fox::TestCase
15
15
 
16
16
  def test_image_from_pixel_data
17
17
  img = FXBMPImage.new app
18
- img.setPixels "rgbaRGBA", 0, 1, 2
18
+ img.setPixels +"rgbaRGBA", 0, 1, 2
19
19
  bmp_data = FXMemoryStream.open(FXStreamSave, nil) do |outfile|
20
20
  img.savePixels(outfile)
21
21
  outfile.takeBuffer
data/test/TC_FXButton.rb CHANGED
@@ -11,7 +11,8 @@ class TC_FXButton < Fox::TestCase
11
11
  end
12
12
 
13
13
  def test_nil_parent_raises_argument_error
14
- assert_raise(ArgumentError){ FXButton.new(nil, "buttonText") }
14
+ err = assert_raise{ FXButton.new(nil, "buttonText") }
15
+ assert_match(/NULL pointer/, err.to_s)
15
16
  end
16
17
 
17
18
  def testText
@@ -5,8 +5,9 @@ class TC_FXDialogBox < Test::Unit::TestCase
5
5
  include Fox
6
6
 
7
7
  def test_nil_app_raises_argument_error
8
- assert_raise ArgumentError do
8
+ err = assert_raise do
9
9
  FXDialogBox.new(nil, "title")
10
10
  end
11
+ assert_match(/NULL pointer/, err.to_s)
11
12
  end
12
13
  end
@@ -23,7 +23,8 @@ class TC_FXGLViewer < Fox::TestCase
23
23
  end
24
24
 
25
25
  def test_nil_app_raises_argument_error
26
- assert_raise(ArgumentError){ FXGLVisual.supported?(nil) }
26
+ err = assert_raise{ FXGLVisual.supported?(nil) }
27
+ assert_match(/NULL pointer/, err.to_s)
27
28
  end
28
29
 
29
30
  =begin
data/test/TC_FXImage.rb CHANGED
@@ -76,14 +76,14 @@ class TC_FXImage < Fox::TestCase
76
76
 
77
77
  def test_setPixels_string
78
78
  img = FXImage.new(app, nil, 0, 2, 1)
79
- img.pixels = "rgbaRGBA"
79
+ img.pixels = +"rgbaRGBA"
80
80
  assert_equal(0, img.options)
81
81
  assert_equal("rgbaRGBA", img.pixel_string)
82
82
  end
83
83
 
84
84
  def test_dataPtr
85
85
  img = FXImage.new(app, nil, 0, 2, 1)
86
- img.pixels = "rgbaRGBA"
86
+ img.pixels = +"rgbaRGBA"
87
87
  assert_equal(0, img.options)
88
88
  assert_equal("rgbaRGBA", Fiddle::Pointer.new(img.dataPtr)[0, 8])
89
89
  end
@@ -121,7 +121,7 @@ class TC_FXImage < Fox::TestCase
121
121
  end
122
122
 
123
123
  def image_with_non_owned_data
124
- FXImage.new(app, "rgbaRGBA", 0, 1, 2)
124
+ FXImage.new(app, +"rgbaRGBA", 0, 1, 2)
125
125
  end
126
126
 
127
127
  def test_create_with_non_owned_data
@@ -135,7 +135,7 @@ class TC_FXImage < Fox::TestCase
135
135
  end
136
136
 
137
137
  def set_non_owned_data(img)
138
- img.setPixels("rgbaRGBA", 0, 2, 1)
138
+ img.setPixels(+"rgbaRGBA", 0, 2, 1)
139
139
  end
140
140
 
141
141
  def test_set_pixel_with_non_owned_data
@@ -5,9 +5,10 @@ class TC_FXMainWindow < Test::Unit::TestCase
5
5
  include Fox
6
6
 
7
7
  def test_nil_app_raises_argument_error
8
- assert_raise ArgumentError do
8
+ err = assert_raise do
9
9
  FXMainWindow.new(nil, "title")
10
10
  end
11
+ assert_match(/NULL pointer/, err.to_s)
11
12
  end
12
13
 
13
14
  def test_non_created_app_raises_runtime_error
@@ -10,7 +10,8 @@ class TC_FXMessageBox < Fox::TestCase
10
10
  end
11
11
 
12
12
  def test_nil_app_raises_argument_error
13
- assert_raise(ArgumentError){ FXMessageBox.new(nil, "Save?", "Save?", :opts => MBOX_SAVE_CANCEL_DONTSAVE) }
13
+ err = assert_raise{ FXMessageBox.new(nil, "Save?", "Save?", :opts => MBOX_SAVE_CANCEL_DONTSAVE) }
14
+ assert_match(/NULL pointer/, err.to_s)
14
15
  end
15
16
 
16
17
  def test_construct_with_save_cancel_dontsave
@@ -11,7 +11,8 @@ class TC_FXScrollArea < Fox::TestCase
11
11
  end
12
12
 
13
13
  def test_nil_parent_raises_argument_error
14
- assert_raise(ArgumentError){ FXScrollArea.new(nil) }
14
+ err = assert_raise{ FXScrollArea.new(nil) }
15
+ assert_match(/NULL pointer/, err.to_s)
15
16
  end
16
17
 
17
18
  def test_position_get
data/test/TC_FXShell.rb CHANGED
@@ -16,7 +16,8 @@ class TC_FXShell < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def test_nil_parent_raises_argument_error
19
- assert_raise(ArgumentError){ FXShell.new(nil, 0, 0, 0, 0, 0) }
19
+ err = assert_raise{ FXShell.new(nil, 0, 0, 0, 0, 0) }
20
+ assert_match(/NULL pointer/, err.to_s)
20
21
  end
21
22
 
22
23
  def test_new
data/test/TC_FXSize.rb CHANGED
@@ -31,9 +31,11 @@ class TC_FXSize < Test::Unit::TestCase
31
31
 
32
32
  def test_uminus
33
33
  size1 = -(@size1)
34
- assert(size1.w == -(@size1.w) && size1.h == -(@size1.h))
34
+ assert_equal(size1.w, -(@size1.w))
35
+ assert_equal(size1.h, -(@size1.h))
35
36
  size2 = -(@size2)
36
- assert(size2.w == -(@size2.w) && size2.h == -(@size2.h))
37
+ assert_equal(size2.w, -(@size2.w))
38
+ assert_equal(size2.h, -(@size2.h))
37
39
  end
38
40
 
39
41
  def test_float
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fxruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.48
4
+ version: 1.6.50
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Lyle Johnson
8
8
  - Lars Kanis
9
- autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mini_portile2
@@ -25,7 +24,6 @@ dependencies:
25
24
  - - "~>"
26
25
  - !ruby/object:Gem::Version
27
26
  version: '2.1'
28
- description:
29
27
  email:
30
28
  - lyle@lylejohnson.name
31
29
  - lars@greiz-reinsdorf.de
@@ -949,9 +947,6 @@ files:
949
947
  - ext/fox16_c/unregisterOwnedObjects.cpp
950
948
  - fxruby.gemspec
951
949
  - index.html
952
- - lib/2.6/fox16_c.so
953
- - lib/2.7/fox16_c.so
954
- - lib/3.0/fox16_c.so
955
950
  - lib/fox16.rb
956
951
  - lib/fox16/accel_table.rb
957
952
  - lib/fox16/aliases.rb
@@ -985,8 +980,10 @@ files:
985
980
  - lib/fox16/tkcompat.rb
986
981
  - lib/fox16/undolist.rb
987
982
  - lib/fox16/version.rb
983
+ - ports/x64-mingw32/bin/3_0_fox16_c.so
984
+ - ports/x64-mingw32/bin/fxruby-assembly.manifest
988
985
  - ports/x64-mingw32/bin/libFOX-1.6-0.dll
989
- - ports/x64-mingw32/bin/libfxscintilla-20.dll
986
+ - ports/x64-mingw32/bin/libfxscintilla-25.dll
990
987
  - ports/x64-mingw32/bin/libgcc_s_seh-1.dll
991
988
  - ports/x64-mingw32/bin/libjpeg-62.dll
992
989
  - ports/x64-mingw32/bin/libpng16-16.dll
@@ -1513,11 +1510,10 @@ files:
1513
1510
  - test/testcase.rb
1514
1511
  homepage: https://github.com/larskanis/fxruby
1515
1512
  licenses:
1516
- - LGPL-2.1
1513
+ - LGPL-2.1-or-later
1517
1514
  metadata:
1518
1515
  changelog_uri: https://github.com/larskanis/fxruby/blob/1.6/History.md
1519
1516
  documentation_uri: https://rubydoc.info/gems/fxruby/frames
1520
- post_install_message:
1521
1517
  rdoc_options:
1522
1518
  - "--main"
1523
1519
  - README.md
@@ -1529,7 +1525,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1529
1525
  requirements:
1530
1526
  - - ">="
1531
1527
  - !ruby/object:Gem::Version
1532
- version: '2.6'
1528
+ version: '3.0'
1533
1529
  - - "<"
1534
1530
  - !ruby/object:Gem::Version
1535
1531
  version: 3.1.dev
@@ -1539,8 +1535,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1539
1535
  - !ruby/object:Gem::Version
1540
1536
  version: '0'
1541
1537
  requirements: []
1542
- rubygems_version: 3.3.26
1543
- signing_key:
1538
+ rubygems_version: 4.0.3
1544
1539
  specification_version: 4
1545
1540
  summary: FXRuby is the Ruby binding to the FOX GUI toolkit.
1546
1541
  test_files: []
data/lib/2.6/fox16_c.so DELETED
Binary file
data/lib/2.7/fox16_c.so DELETED
Binary file