fxruby 1.6.48 → 1.6.50

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 (325) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/workflows/binary.yml +16 -12
  4. data/.github/workflows/ci.yml +30 -14
  5. data/Gemfile +4 -4
  6. data/History.md +17 -0
  7. data/Rakefile +41 -14
  8. data/appveyor.yml +1 -1
  9. data/doap.rdf +2 -2
  10. data/docs/Fox/Canvas/CanvasError.html +2 -2
  11. data/docs/Fox/Canvas/CircleShape.html +2 -2
  12. data/docs/Fox/Canvas/ImageShape.html +2 -2
  13. data/docs/Fox/Canvas/LineShape.html +2 -2
  14. data/docs/Fox/Canvas/PolygonShape.html +2 -2
  15. data/docs/Fox/Canvas/RectangleShape.html +2 -2
  16. data/docs/Fox/Canvas/SelectionPolicy.html +2 -2
  17. data/docs/Fox/Canvas/Shape.html +2 -2
  18. data/docs/Fox/Canvas/ShapeCanvas.html +2 -2
  19. data/docs/Fox/Canvas/ShapeGroup.html +2 -2
  20. data/docs/Fox/Canvas/SingleSelectionPolicy.html +2 -2
  21. data/docs/Fox/Canvas/TextShape.html +2 -2
  22. data/docs/Fox/Canvas.html +2 -2
  23. data/docs/Fox/FTNonModal.html +2 -2
  24. data/docs/Fox/FX4Splitter.html +2 -2
  25. data/docs/Fox/FX7Segment.html +2 -2
  26. data/docs/Fox/FXAccelTable.html +2 -2
  27. data/docs/Fox/FXApp.html +2 -2
  28. data/docs/Fox/FXArc.html +2 -2
  29. data/docs/Fox/FXArrowButton.html +2 -2
  30. data/docs/Fox/FXBMPIcon.html +2 -2
  31. data/docs/Fox/FXBMPImage.html +2 -2
  32. data/docs/Fox/FXBitmap.html +2 -2
  33. data/docs/Fox/FXBitmapFrame.html +2 -2
  34. data/docs/Fox/FXBitmapView.html +2 -2
  35. data/docs/Fox/FXButton.html +2 -2
  36. data/docs/Fox/FXCURCursor.html +2 -2
  37. data/docs/Fox/FXCalendar.html +2 -2
  38. data/docs/Fox/FXCanvas.html +2 -2
  39. data/docs/Fox/FXCheckButton.html +2 -2
  40. data/docs/Fox/FXChoiceBox.html +2 -2
  41. data/docs/Fox/FXColor.html +2 -2
  42. data/docs/Fox/FXColorBar.html +2 -2
  43. data/docs/Fox/FXColorDialog.html +2 -2
  44. data/docs/Fox/FXColorItem.html +2 -2
  45. data/docs/Fox/FXColorList.html +2 -2
  46. data/docs/Fox/FXColorRing.html +2 -2
  47. data/docs/Fox/FXColorSelector.html +2 -2
  48. data/docs/Fox/FXColorWell.html +2 -2
  49. data/docs/Fox/FXColorWheel.html +2 -2
  50. data/docs/Fox/FXComboBox.html +2 -2
  51. data/docs/Fox/FXComboTableItem.html +2 -2
  52. data/docs/Fox/FXCommand.html +2 -2
  53. data/docs/Fox/FXComposite.html +2 -2
  54. data/docs/Fox/FXCursor.html +2 -2
  55. data/docs/Fox/FXDC.html +2 -2
  56. data/docs/Fox/FXDCPrint.html +2 -2
  57. data/docs/Fox/FXDCWindow.html +2 -2
  58. data/docs/Fox/FXDataTarget.html +2 -2
  59. data/docs/Fox/FXDebugTarget.html +2 -2
  60. data/docs/Fox/FXDelegator.html +2 -2
  61. data/docs/Fox/FXDial.html +2 -2
  62. data/docs/Fox/FXDialogBox.html +21 -7
  63. data/docs/Fox/FXDict.html +2 -2
  64. data/docs/Fox/FXDirBox.html +2 -2
  65. data/docs/Fox/FXDirDialog.html +2 -2
  66. data/docs/Fox/FXDirItem.html +2 -2
  67. data/docs/Fox/FXDirList.html +2 -2
  68. data/docs/Fox/FXDirSelector.html +2 -2
  69. data/docs/Fox/FXDockBar.html +2 -2
  70. data/docs/Fox/FXDockHandler.html +2 -2
  71. data/docs/Fox/FXDockSite.html +2 -2
  72. data/docs/Fox/FXDockTitle.html +2 -2
  73. data/docs/Fox/FXDocument.html +2 -2
  74. data/docs/Fox/FXDragCorner.html +2 -2
  75. data/docs/Fox/FXDrawable.html +2 -2
  76. data/docs/Fox/FXDriveBox.html +2 -2
  77. data/docs/Fox/FXEvent.html +2 -2
  78. data/docs/Fox/FXExtentd.html +2 -2
  79. data/docs/Fox/FXExtentf.html +2 -2
  80. data/docs/Fox/FXFileAssoc.html +2 -2
  81. data/docs/Fox/FXFileDialog.html +2 -2
  82. data/docs/Fox/FXFileDict.html +2 -2
  83. data/docs/Fox/FXFileItem.html +2 -2
  84. data/docs/Fox/FXFileList.html +2 -2
  85. data/docs/Fox/FXFileSelector.html +2 -2
  86. data/docs/Fox/FXFileStream.html +2 -2
  87. data/docs/Fox/FXFoldingItem.html +2 -2
  88. data/docs/Fox/FXFoldingList.html +2 -2
  89. data/docs/Fox/FXFont.html +2 -2
  90. data/docs/Fox/FXFontDesc.html +2 -2
  91. data/docs/Fox/FXFontDialog.html +2 -2
  92. data/docs/Fox/FXFontSelector.html +2 -2
  93. data/docs/Fox/FXFrame.html +2 -2
  94. data/docs/Fox/FXGIFCursor.html +2 -2
  95. data/docs/Fox/FXGIFIcon.html +2 -2
  96. data/docs/Fox/FXGIFImage.html +2 -2
  97. data/docs/Fox/FXGLCanvas.html +2 -2
  98. data/docs/Fox/FXGLCone.html +2 -2
  99. data/docs/Fox/FXGLContext.html +2 -2
  100. data/docs/Fox/FXGLCube.html +2 -2
  101. data/docs/Fox/FXGLCylinder.html +2 -2
  102. data/docs/Fox/FXGLGroup.html +2 -2
  103. data/docs/Fox/FXGLLine.html +2 -2
  104. data/docs/Fox/FXGLObject.html +2 -2
  105. data/docs/Fox/FXGLPoint.html +2 -2
  106. data/docs/Fox/FXGLShape.html +2 -2
  107. data/docs/Fox/FXGLSphere.html +2 -2
  108. data/docs/Fox/FXGLViewer.html +2 -2
  109. data/docs/Fox/FXGLVisual.html +2 -2
  110. data/docs/Fox/FXGradient.html +2 -2
  111. data/docs/Fox/FXGradientBar.html +2 -2
  112. data/docs/Fox/FXGroupBox.html +2 -2
  113. data/docs/Fox/FXHeader.html +2 -2
  114. data/docs/Fox/FXHeaderItem.html +2 -2
  115. data/docs/Fox/FXHiliteStyle.html +2 -2
  116. data/docs/Fox/FXHorizontalFrame.html +2 -2
  117. data/docs/Fox/FXHorizontalSeparator.html +2 -2
  118. data/docs/Fox/FXICOIcon.html +2 -2
  119. data/docs/Fox/FXICOImage.html +2 -2
  120. data/docs/Fox/FXIcon.html +2 -2
  121. data/docs/Fox/FXIconDict.html +2 -2
  122. data/docs/Fox/FXIconItem.html +2 -2
  123. data/docs/Fox/FXIconList.html +2 -2
  124. data/docs/Fox/FXIconSource.html +2 -2
  125. data/docs/Fox/FXId.html +2 -2
  126. data/docs/Fox/FXImage.html +2 -2
  127. data/docs/Fox/FXImageFrame.html +2 -2
  128. data/docs/Fox/FXImageView.html +2 -2
  129. data/docs/Fox/FXInputDialog.html +2 -2
  130. data/docs/Fox/FXIrb.html +2 -2
  131. data/docs/Fox/FXJPGIcon.html +2 -2
  132. data/docs/Fox/FXJPGImage.html +2 -2
  133. data/docs/Fox/FXKnob.html +2 -2
  134. data/docs/Fox/FXLabel.html +2 -2
  135. data/docs/Fox/FXLight.html +2 -2
  136. data/docs/Fox/FXList.html +2 -2
  137. data/docs/Fox/FXListBox.html +2 -2
  138. data/docs/Fox/FXListItem.html +2 -2
  139. data/docs/Fox/FXMDIChild.html +2 -2
  140. data/docs/Fox/FXMDIClient.html +2 -2
  141. data/docs/Fox/FXMDIDeleteButton.html +2 -2
  142. data/docs/Fox/FXMDIMaximizeButton.html +2 -2
  143. data/docs/Fox/FXMDIMenu.html +2 -2
  144. data/docs/Fox/FXMDIMinimizeButton.html +2 -2
  145. data/docs/Fox/FXMDIRestoreButton.html +2 -2
  146. data/docs/Fox/FXMDIWindowButton.html +2 -2
  147. data/docs/Fox/FXMainWindow.html +2 -2
  148. data/docs/Fox/FXMaterial.html +2 -2
  149. data/docs/Fox/FXMatrix.html +2 -2
  150. data/docs/Fox/FXMemoryBuffer.html +2 -2
  151. data/docs/Fox/FXMemoryStream.html +2 -2
  152. data/docs/Fox/FXMenuBar.html +2 -2
  153. data/docs/Fox/FXMenuButton.html +2 -2
  154. data/docs/Fox/FXMenuCaption.html +2 -2
  155. data/docs/Fox/FXMenuCascade.html +2 -2
  156. data/docs/Fox/FXMenuCheck.html +2 -2
  157. data/docs/Fox/FXMenuCommand.html +2 -2
  158. data/docs/Fox/FXMenuPane.html +2 -2
  159. data/docs/Fox/FXMenuRadio.html +2 -2
  160. data/docs/Fox/FXMenuSeparator.html +2 -2
  161. data/docs/Fox/FXMenuTitle.html +2 -2
  162. data/docs/Fox/FXMessageBox.html +2 -2
  163. data/docs/Fox/FXObject.html +2 -2
  164. data/docs/Fox/FXOption.html +2 -2
  165. data/docs/Fox/FXOptionMenu.html +2 -2
  166. data/docs/Fox/FXPCXIcon.html +2 -2
  167. data/docs/Fox/FXPCXImage.html +2 -2
  168. data/docs/Fox/FXPNGIcon.html +2 -2
  169. data/docs/Fox/FXPNGImage.html +2 -2
  170. data/docs/Fox/FXPPMIcon.html +2 -2
  171. data/docs/Fox/FXPPMImage.html +2 -2
  172. data/docs/Fox/FXPSBounds.html +2 -2
  173. data/docs/Fox/FXPacker.html +2 -2
  174. data/docs/Fox/FXPicker.html +2 -2
  175. data/docs/Fox/FXPopup.html +2 -2
  176. data/docs/Fox/FXPrintDialog.html +2 -2
  177. data/docs/Fox/FXPrinter.html +2 -2
  178. data/docs/Fox/FXProgressBar.html +2 -2
  179. data/docs/Fox/FXProgressDialog.html +2 -2
  180. data/docs/Fox/FXPseudoKeyboard.html +2 -2
  181. data/docs/Fox/FXPseudoMouse.html +2 -2
  182. data/docs/Fox/FXPseudoTarget.html +2 -2
  183. data/docs/Fox/FXQuatd.html +2 -2
  184. data/docs/Fox/FXQuatf.html +2 -2
  185. data/docs/Fox/FXRGBIcon.html +2 -2
  186. data/docs/Fox/FXRGBImage.html +2 -2
  187. data/docs/Fox/FXRadioButton.html +2 -2
  188. data/docs/Fox/FXRanged.html +2 -2
  189. data/docs/Fox/FXRangef.html +2 -2
  190. data/docs/Fox/FXRealSlider.html +2 -2
  191. data/docs/Fox/FXRealSpinner.html +2 -2
  192. data/docs/Fox/FXRecentFiles.html +2 -2
  193. data/docs/Fox/FXRectangle.html +2 -2
  194. data/docs/Fox/FXRegion.html +2 -2
  195. data/docs/Fox/FXRegistry.html +2 -2
  196. data/docs/Fox/FXReplaceDialog.html +2 -2
  197. data/docs/Fox/FXRootWindow.html +2 -2
  198. data/docs/Fox/FXRuler.html +2 -2
  199. data/docs/Fox/FXRulerView.html +2 -2
  200. data/docs/Fox/FXScintilla.html +2 -2
  201. data/docs/Fox/FXScrollArea.html +2 -2
  202. data/docs/Fox/FXScrollBar.html +2 -2
  203. data/docs/Fox/FXScrollCorner.html +2 -2
  204. data/docs/Fox/FXScrollPane.html +2 -2
  205. data/docs/Fox/FXScrollWindow.html +2 -2
  206. data/docs/Fox/FXSearchDialog.html +2 -2
  207. data/docs/Fox/FXSegment.html +2 -2
  208. data/docs/Fox/FXSeparator.html +2 -2
  209. data/docs/Fox/FXSettings.html +2 -2
  210. data/docs/Fox/FXShell.html +2 -2
  211. data/docs/Fox/FXShutter.html +2 -2
  212. data/docs/Fox/FXShutterItem.html +2 -2
  213. data/docs/Fox/FXSize.html +2 -2
  214. data/docs/Fox/FXSlider.html +2 -2
  215. data/docs/Fox/FXSphered.html +2 -2
  216. data/docs/Fox/FXSpheref.html +2 -2
  217. data/docs/Fox/FXSpinner.html +2 -2
  218. data/docs/Fox/FXSplashScreen.html +2 -2
  219. data/docs/Fox/FXSplashWindow.html +2 -2
  220. data/docs/Fox/FXSplitter.html +2 -2
  221. data/docs/Fox/FXSpring.html +2 -2
  222. data/docs/Fox/FXStatusBar.html +2 -2
  223. data/docs/Fox/FXStatusLine.html +2 -2
  224. data/docs/Fox/FXStream.html +2 -2
  225. data/docs/Fox/FXStreamAllocError.html +2 -2
  226. data/docs/Fox/FXStreamEndError.html +2 -2
  227. data/docs/Fox/FXStreamError.html +2 -2
  228. data/docs/Fox/FXStreamFailureError.html +2 -2
  229. data/docs/Fox/FXStreamFormatError.html +2 -2
  230. data/docs/Fox/FXStreamFullError.html +2 -2
  231. data/docs/Fox/FXStreamNoReadError.html +2 -2
  232. data/docs/Fox/FXStreamNoWriteError.html +2 -2
  233. data/docs/Fox/FXStreamUnknownError.html +2 -2
  234. data/docs/Fox/FXStringDict.html +2 -2
  235. data/docs/Fox/FXSwitcher.html +2 -2
  236. data/docs/Fox/FXTGAIcon.html +2 -2
  237. data/docs/Fox/FXTGAImage.html +2 -2
  238. data/docs/Fox/FXTIFIcon.html +2 -2
  239. data/docs/Fox/FXTIFImage.html +2 -2
  240. data/docs/Fox/FXTabBar.html +2 -2
  241. data/docs/Fox/FXTabBook.html +2 -2
  242. data/docs/Fox/FXTabItem.html +2 -2
  243. data/docs/Fox/FXTable.html +2 -2
  244. data/docs/Fox/FXTableItem.html +2 -2
  245. data/docs/Fox/FXTablePos.html +2 -2
  246. data/docs/Fox/FXTableRange.html +2 -2
  247. data/docs/Fox/FXText.html +2 -2
  248. data/docs/Fox/FXTextChange.html +2 -2
  249. data/docs/Fox/FXTextField.html +2 -2
  250. data/docs/Fox/FXToggleButton.html +2 -2
  251. data/docs/Fox/FXToolBar.html +2 -2
  252. data/docs/Fox/FXToolBarGrip.html +2 -2
  253. data/docs/Fox/FXToolBarShell.html +2 -2
  254. data/docs/Fox/FXToolBarTab.html +2 -2
  255. data/docs/Fox/FXToolTip.html +2 -2
  256. data/docs/Fox/FXTopWindow.html +6 -9
  257. data/docs/Fox/FXTranslator.html +2 -2
  258. data/docs/Fox/FXTreeItem.html +2 -2
  259. data/docs/Fox/FXTreeList.html +2 -2
  260. data/docs/Fox/FXTreeListBox.html +2 -2
  261. data/docs/Fox/FXTriStateButton.html +2 -2
  262. data/docs/Fox/FXUndoList.html +2 -2
  263. data/docs/Fox/FXVec2d.html +2 -2
  264. data/docs/Fox/FXVec2f.html +2 -2
  265. data/docs/Fox/FXVec3d.html +2 -2
  266. data/docs/Fox/FXVec3f.html +2 -2
  267. data/docs/Fox/FXVec4d.html +2 -2
  268. data/docs/Fox/FXVec4f.html +2 -2
  269. data/docs/Fox/FXVerticalFrame.html +2 -2
  270. data/docs/Fox/FXVerticalSeparator.html +2 -2
  271. data/docs/Fox/FXViewport.html +2 -2
  272. data/docs/Fox/FXVisual.html +2 -2
  273. data/docs/Fox/FXWindow.html +3 -3
  274. data/docs/Fox/FXWizard.html +2 -2
  275. data/docs/Fox/FXXBMIcon.html +2 -2
  276. data/docs/Fox/FXXBMImage.html +2 -2
  277. data/docs/Fox/FXXPMIcon.html +2 -2
  278. data/docs/Fox/FXXPMImage.html +2 -2
  279. data/docs/Fox/NotifyHeader.html +2 -2
  280. data/docs/Fox/SCNotification.html +2 -2
  281. data/docs/Fox/TextRange.html +2 -2
  282. data/docs/Fox.html +3 -3
  283. data/docs/IRB.html +2 -2
  284. data/docs/Responder.html +2 -2
  285. data/docs/Responder2.html +2 -2
  286. data/docs/_index.html +2 -2
  287. data/docs/class_list.html +6 -3
  288. data/docs/css/full_list.css +3 -3
  289. data/docs/css/style.css +6 -0
  290. data/docs/file.History.html +21 -3
  291. data/docs/file.README.html +2 -2
  292. data/docs/file_list.html +5 -2
  293. data/docs/frames.html +9 -4
  294. data/docs/index.html +3 -3
  295. data/docs/js/app.js +294 -264
  296. data/docs/js/full_list.js +30 -4
  297. data/docs/method_list.html +5 -2
  298. data/docs/top-level-namespace.html +2 -2
  299. data/ext/fox16_c/FXRuby.cpp +15 -1
  300. data/ext/fox16_c/extconf.rb +49 -18
  301. data/ext/fox16_c/scintilla_wrap.cpp +8 -1
  302. data/fxruby.gemspec +2 -2
  303. data/lib/fox16/scintilla.rb +750 -22
  304. data/lib/fox16/version.rb +1 -1
  305. data/lib/fox16.rb +1 -17
  306. data/rdoc-sources/FXDialogBox.rb +12 -0
  307. data/rdoc-sources/FXImage.rb +4 -1
  308. data/rdoc-sources/FXToolTip.rb +1 -1
  309. data/rdoc-sources/FXTopWindow.rb +1 -1
  310. data/rdoc-sources/FXWindow.rb +1 -1
  311. data/swig-interfaces/FXScintilla.i +8 -1
  312. data/test/TC_FXApp.rb +2 -1
  313. data/test/TC_FXBMPImage.rb +1 -1
  314. data/test/TC_FXButton.rb +2 -1
  315. data/test/TC_FXDialogBox.rb +2 -1
  316. data/test/TC_FXGLViewer.rb +2 -1
  317. data/test/TC_FXImage.rb +4 -4
  318. data/test/TC_FXMainWindow.rb +2 -1
  319. data/test/TC_FXMessageBox.rb +2 -1
  320. data/test/TC_FXScrollArea.rb +2 -1
  321. data/test/TC_FXShell.rb +2 -1
  322. data/test/TC_FXSize.rb +4 -2
  323. data.tar.gz.sig +0 -0
  324. metadata +17 -20
  325. metadata.gz.sig +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
@@ -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
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
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: ruby
6
6
  authors:
7
7
  - Lyle Johnson
@@ -10,9 +10,9 @@ bindir: exe
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIEBDCCAmygAwIBAgIBAzANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1sYXJz
14
- L0RDPWdyZWl6LXJlaW5zZG9yZi9EQz1kZTAeFw0yNDAyMjgxOTMxNDdaFw0yNTAy
15
- MjcxOTMxNDdaMCgxJjAkBgNVBAMMHWxhcnMvREM9Z3JlaXotcmVpbnNkb3JmL0RD
13
+ MIIEBDCCAmygAwIBAgIBBDANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1sYXJz
14
+ L0RDPWdyZWl6LXJlaW5zZG9yZi9EQz1kZTAeFw0yNTEyMjkyMDMyMzFaFw0yNjEy
15
+ MjkyMDMyMzFaMCgxJjAkBgNVBAMMHWxhcnMvREM9Z3JlaXotcmVpbnNkb3JmL0RD
16
16
  PWRlMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAwum6Y1KznfpzXOT/
17
17
  mZgJTBbxZuuZF49Fq3K0WA67YBzNlDv95qzSp7V/7Ek3NCcnT7G+2kSuhNo1FhdN
18
18
  eSDO/moYebZNAcu3iqLsuzuULXPLuoU0GsMnVMqV9DZPh7cQHE5EBZ7hlzDBK7k/
@@ -23,17 +23,17 @@ cert_chain:
23
23
  chQPnWX+N3Gj+jjYxqTFdwT7Mj3pv1VHa+aNUbqSPpvJeDyxRIuo9hvzDaBHb/Cg
24
24
  9qRVcm8a96n4t7y2lrX1oookY6bkBaxWOMtWlqIprq8JZXM9AgMBAAGjOTA3MAkG
25
25
  A1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQ4h1tIyvdUWtMI739xMzTR
26
- 7EfMFzANBgkqhkiG9w0BAQsFAAOCAYEArBmHSfnUyNWf3R1Fx0mMHloWGdcKn2D2
27
- BsqTApXU2nADiyppIqRq4b9e7hw342uzadSLkoQcEFOxThLRhAcijoWfQVBcsbV/
28
- ZsCY1qlUTIJuSWxaSyS4efUX+N4eMNyPM9oW/sphlWFo0DgI34Y9WB6HDzH+O71y
29
- R7PARke3f4kYnRJf5yRQLPDrH9UYt9KlBQm6l7XMtr5EMnQt0EfcmZEi9H4t/vS2
30
- haxvpFMdAKo4H46GBYNO96r6b74t++vgQSBTg/AFVwvRZwNSrPPcBfb4xxeEAhRR
31
- x+LU7feIH7lZ//3buiyD03gLAEtHXai0Y+/VfuWIpwYJAl2BO/tU7FS/dtbJq9oc
32
- dI36Yyzy+BrCM0WT4oCsagePNb97FaNhl4F6sM5JEPT0ZPxRx0i3G4TNNIYziVos
33
- 5wFER6XhvvLDFAMh/jMg+s7Wd5SbSHgHNSUaUGVtdWkVPOer6oF0aLdZUR3CETkn
34
- 5nWXZma/BUd3YgYA/Xumc6QQqIS4p7mr
26
+ 7EfMFzANBgkqhkiG9w0BAQsFAAOCAYEAUVIier9xybHmXNsj801xD+Q7Jz7wpRsf
27
+ fMHpV2sAzvYcAa7pn+mbu9nf7RUhe5hiaUv88Usk9nRUYYrjBOO5RuD+wYNowpcE
28
+ kxUiTAP/fgUBdW6hYUJy57CH3xUD6tj1Cg9hxdKy7jItZXbfhX+qPq2BwGaXz7gn
29
+ nhrALITRmpuPnlsccM94dgSArCInSo2SEc12h2oB6FAnFG1Lre3dmQamI5q1EKp0
30
+ Yafb2+cPbFcVYUdE50wf+cdeGDOsCGlAmo2OGqXWxTP2hIfyhsFoamD6UGufLoPG
31
+ Dh6tAEZIuEvLjq93qoNceUQn+xxiiIszjY5mkTu9rVY+/gh5PJzu9IHvyIqBpb2o
32
+ fdWDISWK+KSLCrqkFtKoliLDTZau73GcYCVOkjca+3cxqABKZ+M8r42Sq8JPxPiv
33
+ KyLQBzqPeLN9qRDD1bEFHIcgwdY/zQTs4mWRBSmBWa7w+k8nP8aSV1dN/fvhYwY3
34
+ HCQwtPaMYOznIOcc8shL4zLJpcl8uCqE
35
35
  -----END CERTIFICATE-----
36
- date: 2024-07-02 00:00:00.000000000 Z
36
+ date: 1980-01-02 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: mini_portile2
@@ -1525,7 +1525,7 @@ files:
1525
1525
  - test/testcase.rb
1526
1526
  homepage: https://github.com/larskanis/fxruby
1527
1527
  licenses:
1528
- - LGPL-2.1
1528
+ - LGPL-2.1-or-later
1529
1529
  metadata:
1530
1530
  changelog_uri: https://github.com/larskanis/fxruby/blob/1.6/History.md
1531
1531
  documentation_uri: https://rubydoc.info/gems/fxruby/frames
@@ -1541,17 +1541,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
1541
1541
  requirements:
1542
1542
  - - ">="
1543
1543
  - !ruby/object:Gem::Version
1544
- version: '2.6'
1545
- - - "<"
1546
- - !ruby/object:Gem::Version
1547
- version: '4'
1544
+ version: '2.7'
1548
1545
  required_rubygems_version: !ruby/object:Gem::Requirement
1549
1546
  requirements:
1550
1547
  - - ">="
1551
1548
  - !ruby/object:Gem::Version
1552
1549
  version: '0'
1553
1550
  requirements: []
1554
- rubygems_version: 3.6.0.dev
1551
+ rubygems_version: 4.0.3
1555
1552
  specification_version: 4
1556
1553
  summary: FXRuby is the Ruby binding to the FOX GUI toolkit.
1557
1554
  test_files: []
metadata.gz.sig CHANGED
Binary file