wxruby3 0.9.0.pre.beta.10-x64-mingw-ucrt → 0.9.0.pre.beta.13-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (283) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +85 -0
  3. data/README.md +2 -0
  4. data/assets/logo.png +0 -0
  5. data/assets/logo.svg +170 -0
  6. data/assets/logo.xcf +0 -0
  7. data/ext/wxbase32u_gcc_custom.dll +0 -0
  8. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  9. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  22. data/lib/wx/core/array_ext.rb +26 -0
  23. data/lib/wx/core/art_locator.rb +92 -0
  24. data/lib/wx/core/artprovider.rb +1 -1
  25. data/lib/wx/core/bitmap.rb +90 -53
  26. data/lib/wx/core/cursor.rb +12 -0
  27. data/lib/wx/core/data_object.rb +74 -6
  28. data/lib/wx/core/dataformat.rb +3 -1
  29. data/lib/wx/core/dc.rb +76 -52
  30. data/lib/wx/core/enum.rb +4 -0
  31. data/lib/wx/core/event.rb +38 -5
  32. data/lib/wx/core/events/evt_list.rb +3 -2
  33. data/lib/wx/core/evthandler.rb +64 -23
  34. data/lib/wx/core/icon.rb +50 -35
  35. data/lib/wx/core/id_helper.rb +32 -0
  36. data/lib/wx/core/image.rb +63 -53
  37. data/lib/wx/core/point.rb +35 -10
  38. data/lib/wx/core/real_point.rb +35 -10
  39. data/lib/wx/core/rect.rb +44 -9
  40. data/lib/wx/core/region_iterator.rb +37 -0
  41. data/lib/wx/core/size.rb +32 -5
  42. data/lib/wx/core/window.rb +8 -31
  43. data/lib/wx/doc/array_ext.rb +27 -0
  44. data/lib/wx/doc/art_locator.rb +57 -0
  45. data/lib/wx/doc/bitmap.rb +27 -0
  46. data/lib/wx/doc/clipboard.rb +12 -0
  47. data/lib/wx/doc/const.rb +77 -0
  48. data/lib/wx/doc/cursor.rb +16 -0
  49. data/lib/wx/doc/data_object.rb +103 -0
  50. data/lib/wx/doc/dc.rb +63 -46
  51. data/lib/wx/doc/event.rb +24 -0
  52. data/lib/wx/doc/events.rb +14 -0
  53. data/lib/wx/doc/evthandler.rb +24 -3
  54. data/lib/wx/doc/extra/00_starting.md +1 -1
  55. data/lib/wx/doc/extra/06_geometry.md +10 -4
  56. data/lib/wx/doc/extra/10_art.md +105 -0
  57. data/lib/wx/doc/gc_dc.rb +21 -0
  58. data/lib/wx/doc/gdi_common.rb +155 -6
  59. data/lib/wx/doc/gen/about_dialog_info.rb +1 -4
  60. data/lib/wx/doc/gen/animation.rb +3 -3
  61. data/lib/wx/doc/gen/animation_ctrl.rb +4 -4
  62. data/lib/wx/doc/gen/any_button.rb +1 -1
  63. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -1
  64. data/lib/wx/doc/gen/aui/aui_manager.rb +2 -2
  65. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -3
  66. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -3
  67. data/lib/wx/doc/gen/aui/aui_notebook.rb +2 -2
  68. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +6 -6
  69. data/lib/wx/doc/gen/bitmap.rb +1 -1
  70. data/lib/wx/doc/gen/bitmap_button.rb +2 -2
  71. data/lib/wx/doc/gen/book_ctrl_base.rb +4 -4
  72. data/lib/wx/doc/gen/brush.rb +1 -1
  73. data/lib/wx/doc/gen/button.rb +2 -2
  74. data/lib/wx/doc/gen/calendar_ctrl.rb +3 -3
  75. data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
  76. data/lib/wx/doc/gen/check_box.rb +2 -2
  77. data/lib/wx/doc/gen/check_list_box.rb +3 -3
  78. data/lib/wx/doc/gen/choice.rb +2 -2
  79. data/lib/wx/doc/gen/choicebook.rb +2 -2
  80. data/lib/wx/doc/gen/collapsible_pane.rb +2 -2
  81. data/lib/wx/doc/gen/colour.rb +1 -3
  82. data/lib/wx/doc/gen/colour_dialog.rb +1 -2
  83. data/lib/wx/doc/gen/colour_picker_ctrl.rb +2 -2
  84. data/lib/wx/doc/gen/combo_box.rb +4 -4
  85. data/lib/wx/doc/gen/context_help_button.rb +1 -1
  86. data/lib/wx/doc/gen/control.rb +3 -3
  87. data/lib/wx/doc/gen/core.rb +2 -2
  88. data/lib/wx/doc/gen/data_format.rb +1 -1
  89. data/lib/wx/doc/gen/data_object.rb +6 -26
  90. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  91. data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
  92. data/lib/wx/doc/gen/dc.rb +9 -9
  93. data/lib/wx/doc/gen/defs.rb +0 -4
  94. data/lib/wx/doc/gen/dialog.rb +3 -3
  95. data/lib/wx/doc/gen/dir_dialog.rb +2 -4
  96. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  97. data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
  98. data/lib/wx/doc/gen/drag_drop.rb +13 -1
  99. data/lib/wx/doc/gen/editable_list_box.rb +2 -2
  100. data/lib/wx/doc/gen/event.rb +0 -1
  101. data/lib/wx/doc/gen/event_list.rb +18 -16
  102. data/lib/wx/doc/gen/events.rb +87 -2
  103. data/lib/wx/doc/gen/ext_help_controller.rb +2 -2
  104. data/lib/wx/doc/gen/file_dialog.rb +1 -1
  105. data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
  106. data/lib/wx/doc/gen/font.rb +6 -6
  107. data/lib/wx/doc/gen/font_dialog.rb +1 -2
  108. data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
  109. data/lib/wx/doc/gen/frame.rb +5 -5
  110. data/lib/wx/doc/gen/fs_file.rb +2 -2
  111. data/lib/wx/doc/gen/gauge.rb +2 -2
  112. data/lib/wx/doc/gen/gdi_common.rb +18 -21
  113. data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
  114. data/lib/wx/doc/gen/graphics_context.rb +4 -4
  115. data/lib/wx/doc/gen/graphics_object.rb +2 -2
  116. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  117. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  118. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  119. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  120. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  121. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  122. data/lib/wx/doc/gen/grid/grid_ctrl.rb +7 -7
  123. data/lib/wx/doc/gen/help_controller.rb +1 -1
  124. data/lib/wx/doc/gen/html/html_cell.rb +4 -4
  125. data/lib/wx/doc/gen/html/html_easy_printing.rb +6 -6
  126. data/lib/wx/doc/gen/html/html_help_controller.rb +6 -6
  127. data/lib/wx/doc/gen/html/html_help_frame.rb +2 -2
  128. data/lib/wx/doc/gen/html/html_help_window.rb +6 -6
  129. data/lib/wx/doc/gen/html/html_list_box.rb +6 -6
  130. data/lib/wx/doc/gen/html/html_printout.rb +4 -4
  131. data/lib/wx/doc/gen/html/html_window.rb +4 -4
  132. data/lib/wx/doc/gen/icon.rb +6 -6
  133. data/lib/wx/doc/gen/image.rb +7 -7
  134. data/lib/wx/doc/gen/list_box.rb +4 -4
  135. data/lib/wx/doc/gen/list_ctrl.rb +5 -5
  136. data/lib/wx/doc/gen/listbook.rb +2 -2
  137. data/lib/wx/doc/gen/locale.rb +8 -8
  138. data/lib/wx/doc/gen/log.rb +2 -2
  139. data/lib/wx/doc/gen/mdi_frame.rb +5 -5
  140. data/lib/wx/doc/gen/media_ctrl.rb +4 -4
  141. data/lib/wx/doc/gen/menu.rb +12 -12
  142. data/lib/wx/doc/gen/menu_item.rb +1 -1
  143. data/lib/wx/doc/gen/message_dialog.rb +2 -4
  144. data/lib/wx/doc/gen/mini_frame.rb +2 -2
  145. data/lib/wx/doc/gen/notebook.rb +3 -3
  146. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -1
  147. data/lib/wx/doc/gen/object.rb +0 -1
  148. data/lib/wx/doc/gen/panel.rb +2 -2
  149. data/lib/wx/doc/gen/pen.rb +2 -2
  150. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +1 -1
  151. data/lib/wx/doc/gen/pg/pg_cell.rb +1 -1
  152. data/lib/wx/doc/gen/pg/pg_properties.rb +20 -20
  153. data/lib/wx/doc/gen/pg/pg_property.rb +12 -12
  154. data/lib/wx/doc/gen/pg/property_grid.rb +3 -3
  155. data/lib/wx/doc/gen/pg/property_grid_interface.rb +14 -14
  156. data/lib/wx/doc/gen/pg/property_grid_manager.rb +3 -3
  157. data/lib/wx/doc/gen/pg/property_grid_page.rb +2 -2
  158. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -2
  159. data/lib/wx/doc/gen/popup_window.rb +3 -3
  160. data/lib/wx/doc/gen/property_sheet_dialog.rb +3 -3
  161. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  162. data/lib/wx/doc/gen/prt/printer.rb +1 -1
  163. data/lib/wx/doc/gen/radio_box.rb +4 -4
  164. data/lib/wx/doc/gen/radio_button.rb +2 -2
  165. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +2 -2
  166. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +12 -12
  167. data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
  168. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +2 -2
  169. data/lib/wx/doc/gen/rbn/ribbon_page.rb +2 -2
  170. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
  171. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +11 -11
  172. data/lib/wx/doc/gen/region.rb +1 -1
  173. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  174. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +10 -10
  175. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
  176. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +2 -2
  177. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -4
  178. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +1 -1
  179. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +6 -6
  180. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  181. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  182. data/lib/wx/doc/gen/sash_event.rb +1 -1
  183. data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
  184. data/lib/wx/doc/gen/sash_window.rb +1 -1
  185. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  186. data/lib/wx/doc/gen/scroll_bar.rb +150 -0
  187. data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
  188. data/lib/wx/doc/gen/scrolled_control.rb +2 -2
  189. data/lib/wx/doc/gen/scrolled_window.rb +2 -2
  190. data/lib/wx/doc/gen/simplebook.rb +2 -2
  191. data/lib/wx/doc/gen/sizer.rb +3 -3
  192. data/lib/wx/doc/gen/slider.rb +2 -2
  193. data/lib/wx/doc/gen/spin_button.rb +2 -2
  194. data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
  195. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  196. data/lib/wx/doc/gen/splitter_window.rb +2 -2
  197. data/lib/wx/doc/gen/static_bitmap.rb +2 -2
  198. data/lib/wx/doc/gen/static_box.rb +4 -4
  199. data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
  200. data/lib/wx/doc/gen/static_line.rb +2 -2
  201. data/lib/wx/doc/gen/static_text.rb +2 -2
  202. data/lib/wx/doc/gen/status_bar.rb +2 -2
  203. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
  204. data/lib/wx/doc/gen/task_bar_icon.rb +2 -2
  205. data/lib/wx/doc/gen/text_attr.rb +3 -3
  206. data/lib/wx/doc/gen/text_ctrl.rb +3 -3
  207. data/lib/wx/doc/gen/text_entry_dialog.rb +6 -8
  208. data/lib/wx/doc/gen/text_validator.rb +1 -1
  209. data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
  210. data/lib/wx/doc/gen/tip_provider.rb +1 -3
  211. data/lib/wx/doc/gen/toggle_button.rb +2 -2
  212. data/lib/wx/doc/gen/tool_bar.rb +10 -10
  213. data/lib/wx/doc/gen/toolbook.rb +2 -2
  214. data/lib/wx/doc/gen/top_level_window.rb +4 -4
  215. data/lib/wx/doc/gen/tree_ctrl.rb +4 -4
  216. data/lib/wx/doc/gen/treebook.rb +2 -2
  217. data/lib/wx/doc/gen/utils.rb +5 -42
  218. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  219. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  220. data/lib/wx/doc/gen/variant.rb +10 -10
  221. data/lib/wx/doc/gen/window.rb +9 -14
  222. data/lib/wx/doc/gen/wizard.rb +2 -2
  223. data/lib/wx/doc/gen/wizard_event.rb +1 -1
  224. data/lib/wx/doc/gen/xml_node.rb +2 -2
  225. data/lib/wx/doc/gen/xml_resource.rb +3 -3
  226. data/lib/wx/doc/graphics_context.rb +42 -0
  227. data/lib/wx/doc/icon.rb +18 -0
  228. data/lib/wx/doc/id_helper.rb +25 -0
  229. data/lib/wx/doc/image.rb +33 -0
  230. data/lib/wx/doc/region_iterator.rb +31 -0
  231. data/lib/wx/doc/scaled_dc.rb +17 -0
  232. data/lib/wx/doc/window.rb +18 -0
  233. data/lib/wx/global_const.rb +4 -3
  234. data/lib/wx/version.rb +1 -1
  235. data/lib/wx/wxruby/cmd/sampler.rb +3 -21
  236. data/lib/wxruby_aui.so +0 -0
  237. data/lib/wxruby_core.so +0 -0
  238. data/lib/wxruby_grid.so +0 -0
  239. data/lib/wxruby_html.so +0 -0
  240. data/lib/wxruby_pg.so +0 -0
  241. data/lib/wxruby_prt.so +0 -0
  242. data/lib/wxruby_rbn.so +0 -0
  243. data/lib/wxruby_rtc.so +0 -0
  244. data/lib/wxruby_stc.so +0 -0
  245. data/rakelib/lib/config.rb +4 -4
  246. data/samples/art/wxruby-128x128.png +0 -0
  247. data/samples/art/wxruby-256x256.png +0 -0
  248. data/samples/art/wxruby-64x64.png +0 -0
  249. data/samples/art/wxruby.ico +0 -0
  250. data/samples/art/wxruby.png +0 -0
  251. data/samples/drawing/graphics_drawing.rb +1 -2
  252. data/samples/propgrid/propgrid.rb +65 -65
  253. data/samples/sample.xpm +246 -470
  254. data/samples/treectrl/treectrl.rb +1 -1
  255. data/tests/art/my_art/sample.xpm +251 -0
  256. data/tests/art/sample3.xpm +251 -0
  257. data/tests/art/test_art/bitmap/sample.xpm +251 -0
  258. data/tests/art/test_art/bitmap/wxruby.bmp +0 -0
  259. data/tests/art/test_art/bitmap/wxruby.png +0 -0
  260. data/tests/art/test_art/bitmap/wxruby.xpm +251 -0
  261. data/tests/art/test_art/cursor/wxruby.bmp +0 -0
  262. data/tests/art/test_art/icon/sample.xpm +251 -0
  263. data/tests/art/test_art/icon/wxruby.ico +0 -0
  264. data/tests/art/test_art/icon/wxruby.png +0 -0
  265. data/tests/art/test_art/image/sample.xpm +251 -0
  266. data/tests/art/test_art/image/wxruby.jpg +0 -0
  267. data/tests/art/test_art/image/wxruby.png +0 -0
  268. data/tests/art/test_art/sample2.xpm +251 -0
  269. data/tests/lib/wxapp_runner.rb +64 -0
  270. data/tests/test_art.rb +91 -0
  271. data/tests/test_basic.rb +0 -5
  272. data/tests/test_clipboard.rb +149 -17
  273. data/tests/test_dc.rb +70 -0
  274. data/tests/test_dialog.rb +2 -13
  275. data/tests/test_event_handling.rb +2 -13
  276. data/tests/test_events.rb +14 -6
  277. data/tests/test_geometry.rb +67 -17
  278. data/tests/test_intl.rb +2 -15
  279. data/tests/test_item_data.rb +2 -15
  280. data/tests/test_variant.rb +1 -15
  281. data/tests/testapp.rb +0 -5
  282. data/tests/testapp_noframe.rb +0 -5
  283. metadata +55 -3
@@ -127,27 +127,22 @@ module Wx
127
127
  end # WindowVariant
128
128
 
129
129
  # Find the deepest window at the mouse pointer position, returning the window and current pointer position in screen coordinates.
130
- # Include file: #include <wx/window.h>
131
130
  # @param pt [Array(Integer, Integer), Wx::Point]
132
131
  # @return [Wx::Window]
133
132
  def self.find_window_at_pointer(pt) end
134
133
 
135
134
  # Gets the currently active window (implemented for MSW and GTK only currently, always returns NULL in the other ports).
136
- # Include file: #include <wx/window.h>
137
135
  # @return [Wx::Window]
138
136
  def self.get_active_window; end
139
137
 
140
138
  # Returns the first top level parent of the given window, or in other words, the frame or dialog containing it, or NULL.
141
139
  # Notice that if window is itself already a TLW, it is returned directly.
142
- # Include file: #include <wx/window.h>
143
140
  # @param window [Wx::Window]
144
141
  # @return [Wx::Window]
145
142
  def self.get_top_level_parent(window) end
146
143
 
147
144
  # Return a string with human-readable platform-specific description of the window useful for diagnostic purposes.
148
145
  # The string returned from this function doesn't have any fixed form and can vary between different wxWidgets ports and versions, but contains some useful description of the window and uniquely identifies it. This can be useful to include in debug or tracing messages.
149
- #
150
- # Include file: #include <wx/window.h>
151
146
  # @param window [Wx::Window] Window pointer which is allowed to be NULL.
152
147
  # @return [String]
153
148
  def self.dump_window(window) end
@@ -1015,19 +1010,19 @@ module Wx
1015
1010
  # A synonym for {Wx::Window#centre}.
1016
1011
  # @param dir [Integer]
1017
1012
  # @return [void]
1018
- def center(dir=Wx::BOTH) end
1013
+ def center(dir=Wx::Orientation::BOTH) end
1019
1014
 
1020
1015
  # A synonym for {Wx::Window#centre_on_parent}.
1021
1016
  # @param dir [Integer]
1022
1017
  # @return [void]
1023
- def center_on_parent(dir=Wx::BOTH) end
1018
+ def center_on_parent(dir=Wx::Orientation::BOTH) end
1024
1019
 
1025
1020
  # Centres the window.
1026
1021
  # If the window is a top level one (i.e. doesn't have a parent), it will be centred relative to the screen anyhow.
1027
1022
  # @see Wx::Window#center
1028
1023
  # @param direction [Integer] Specifies the direction for the centring. May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}. It may also include the {Wx::CENTRE_ON_SCREEN} flag if you want to centre the window on the entire screen and not on its parent window.
1029
1024
  # @return [void]
1030
- def centre(direction=Wx::BOTH) end
1025
+ def centre(direction=Wx::Orientation::BOTH) end
1031
1026
 
1032
1027
  # Centres the window on its parent.
1033
1028
  # This is a more readable synonym for {Wx::Window#centre}.
@@ -1036,7 +1031,7 @@ module Wx
1036
1031
  # @see Wx::TopLevelWindow#centre_on_screen
1037
1032
  # @param direction [Integer] Specifies the direction for the centring. May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}.
1038
1033
  # @return [void]
1039
- def centre_on_parent(direction=Wx::BOTH) end
1034
+ def centre_on_parent(direction=Wx::Orientation::BOTH) end
1040
1035
 
1041
1036
  # This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows.
1042
1037
  #
@@ -1246,7 +1241,7 @@ module Wx
1246
1241
  # Should only be called within a {Wx::PaintEvent} handler.
1247
1242
  # @see Wx::Region
1248
1243
  # @see Wx::RegionIterator
1249
- # @return [void]
1244
+ # @return [Wx::Region]
1250
1245
  def get_update_region; end
1251
1246
  alias_method :update_region, :get_update_region
1252
1247
 
@@ -2269,7 +2264,7 @@ module Wx
2269
2264
  # @see Wx::Window#on_internal_idle
2270
2265
  # @param flags [Integer]
2271
2266
  # @return [void]
2272
- def update_window_ui(flags=Wx::UPDATE_UI_NONE) end
2267
+ def update_window_ui(flags=Wx::UpdateUI::UPDATE_UI_NONE) end
2273
2268
 
2274
2269
  # Returns the default font and colours which are used by the control.
2275
2270
  # This is useful if you want to use the same font or colour in your own control as in a standard control which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the users system, especially if it uses themes.
@@ -2279,7 +2274,7 @@ module Wx
2279
2274
  # @see Wx::Window#inherit_attributes
2280
2275
  # @param variant [WindowVariant]
2281
2276
  # @return [Wx::VisualAttributes]
2282
- def self.get_class_default_attributes(variant=Wx::WINDOW_VARIANT_NORMAL) end
2277
+ def self.get_class_default_attributes(variant=Wx::WindowVariant::WINDOW_VARIANT_NORMAL) end
2283
2278
 
2284
2279
  # Finds the window or control which currently has the keyboard focus.
2285
2280
  # Note that this is a static function, so it can be called without needing a {Wx::Window} pointer.
@@ -2354,7 +2349,7 @@ module Wx
2354
2349
  # @overload initialize()
2355
2350
  # Default constructor.
2356
2351
  # @return [Window]
2357
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR)
2352
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr)
2358
2353
  # Constructs a window, which can be a child of a frame, dialog or any other non-control window.
2359
2354
  # @param parent [Wx::Window] Pointer to a parent window.
2360
2355
  # @param id [Integer] Window identifier. If {Wx::StandardID::ID_ANY}, will automatically create an identifier. See Window IDs for more information about IDs.
@@ -2406,7 +2401,7 @@ module Wx
2406
2401
  # @param style [Integer]
2407
2402
  # @param name [String]
2408
2403
  # @return [true,false]
2409
- def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR) end
2404
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr) end
2410
2405
 
2411
2406
  end # Window
2412
2407
 
@@ -49,7 +49,7 @@ module Wx
49
49
  # Default constructor.
50
50
  # Use this if you wish to derive from {Wx::Wizard} and then call {Wx::Wizard#create}, for example if you wish to set an extra style with {Wx::Window#set_extra_style} between the two calls.
51
51
  # @return [Wizard]
52
- # @overload initialize(parent, id=Wx::ID_ANY, title=Wx::EMPTY_STRING, bitmap=(Wx::BitmapBundle.new()), pos=Wx::DEFAULT_POSITION, style=Wx::DEFAULT_DIALOG_STYLE)
52
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, title=(''), bitmap=(Wx::BitmapBundle.new()), pos=Wx::DEFAULT_POSITION, style=Wx::DEFAULT_DIALOG_STYLE)
53
53
  # Constructor which really creates the wizard if you use this constructor, you shouldn't call {Wx::Wizard#create}.
54
54
  # Notice that unlike almost all other wxWidgets classes, there is no size parameter in the {Wx::Wizard} constructor because the wizard will have a predefined default size by default. If you want to change this, you should use the {Wx::Wizard#get_page_area_sizer} function.
55
55
  # @param parent [Wx::Window] The parent window, may be NULL.
@@ -71,7 +71,7 @@ module Wx
71
71
  # @param pos [Array(Integer, Integer), Wx::Point] The position of the dialog, it will be centered on the screen by default.
72
72
  # @param style [Integer] Window style is passed to {Wx::Dialog}.
73
73
  # @return [true,false]
74
- def create(parent, id=Wx::ID_ANY, title=Wx::EMPTY_STRING, bitmap=(Wx::BitmapBundle.new()), pos=Wx::DEFAULT_POSITION, style=Wx::DEFAULT_DIALOG_STYLE) end
74
+ def create(parent, id=Wx::StandardID::ID_ANY, title=(''), bitmap=(Wx::BitmapBundle.new()), pos=Wx::DEFAULT_POSITION, style=Wx::DEFAULT_DIALOG_STYLE) end
75
75
 
76
76
  # This method is obsolete, use {Wx::Wizard#get_page_area_sizer} instead.
77
77
  # Sets the page size to be big enough for all the pages accessible via the given firstPage, i.e. this page, its next page and so on.
@@ -87,7 +87,7 @@ module Wx
87
87
  # @param direction [true,false]
88
88
  # @param page [Wx::WizardPage]
89
89
  # @return [WizardEvent]
90
- def initialize(type=Wx::EVT_NULL, id=Wx::ID_ANY, direction=true, page=0) end
90
+ def initialize(type=Wx::EVT_NULL, id=Wx::StandardID::ID_ANY, direction=true, page=0) end
91
91
 
92
92
  # Return the direction in which the page is changing: for EVT_WIZARD_PAGE_CHANGING, return true if we're going forward or false otherwise and for EVT_WIZARD_PAGE_CHANGED return true if we came from the previous page and false if we returned from the next one.
93
93
  # @return [true,false]
@@ -106,7 +106,7 @@ module Wx
106
106
  #
107
107
  class XmlNode < ::Object
108
108
 
109
- # @overload initialize(type, name, content=Wx::EMPTY_STRING, lineNo=-1)
109
+ # @overload initialize(type, name, content=(''), lineNo=-1)
110
110
  # A simplified version of the first constructor form, assuming a NULL parent.
111
111
  # @param type [XmlNodeType] One of the {Wx::XmlNodeType} enumeration value.
112
112
  # @param name [String] The name of the node. This is the string which appears between angular brackets.
@@ -145,7 +145,7 @@ module Wx
145
145
  # @param attrName [String]
146
146
  # @param defaultVal [String]
147
147
  # @return [String]
148
- def get_attribute(attrName, defaultVal=Wx::EMPTY_STRING) end
148
+ def get_attribute(attrName, defaultVal=('')) end
149
149
  alias_method :attribute, :get_attribute
150
150
 
151
151
  # Returns the first child of this node.
@@ -43,13 +43,13 @@ module Wx
43
43
  #
44
44
  class XmlResource < Object
45
45
 
46
- # @overload initialize(filemask, flags=Wx::XRC_USE_LOCALE, domain=Wx::EMPTY_STRING)
46
+ # @overload initialize(filemask, flags=Wx::XmlResourceFlags::XRC_USE_LOCALE, domain=(''))
47
47
  # Constructor.
48
48
  # @param filemask [String] The XRC file, archive file, or wildcard specification that will be used to load all resource files inside a zip archive.
49
49
  # @param flags [Integer] One or more value of the {Wx::XmlResourceFlags} enumeration.
50
50
  # @param domain [String] The name of the gettext catalog to search for translatable strings. By default all loaded catalogs will be searched. This provides a way to allow the strings to only come from a specific catalog.
51
51
  # @return [XmlResource]
52
- # @overload initialize(flags=Wx::XRC_USE_LOCALE, domain=Wx::EMPTY_STRING)
52
+ # @overload initialize(flags=Wx::XmlResourceFlags::XRC_USE_LOCALE, domain=(''))
53
53
  # Constructor.
54
54
  # @param flags [Integer] One or more value of the {Wx::XmlResourceFlags} enumeration.
55
55
  # @param domain [String] The name of the gettext catalog to search for translatable strings. By default all loaded catalogs will be searched. This provides a way to allow the strings to only come from a specific catalog.
@@ -291,7 +291,7 @@ module Wx
291
291
  # @param str_id [String]
292
292
  # @param value_if_not_found [Integer]
293
293
  # @return [Integer]
294
- def self.get_xrcid(str_id, value_if_not_found=Wx::ID_NONE) end
294
+ def self.get_xrcid(str_id, value_if_not_found=Wx::StandardID::ID_NONE) end
295
295
 
296
296
  # Sets the global resources object and returns a pointer to the previous one (may be NULL).
297
297
  # @param res [Wx::XmlResource]
@@ -0,0 +1,42 @@
1
+
2
+ class Wx::GraphicsContext
3
+
4
+ # @overload self.draw_on(window)
5
+ # Creates a {Wx::GraphicsContext} from a {Wx::Window} and passes that object to the given block.
6
+ # Deletes the gc object after the block returns.
7
+ # @see Wx::GraphicsRenderer#create_context
8
+ # @param window [Wx::Window]
9
+ # @return [Wx::GraphicsContext]
10
+ # @overload self.draw_on(windowDC)
11
+ # Creates a {Wx::GraphicsContext} from a {Wx::WindowDC} and passes that object to the given block.
12
+ # Deletes the gc object after the block returns.
13
+ # @see Wx::GraphicsRenderer#create_context
14
+ # @param windowDC [Wx::WindowDC]
15
+ # @return [Wx::GraphicsContext]
16
+ # @overload self.draw_on(memoryDC)
17
+ # Creates a {Wx::GraphicsContext} from a {Wx::MemoryDC} and passes that object to the given block.
18
+ # Deletes the gc object after the block returns.
19
+ # @see Wx::GraphicsRenderer#create_context
20
+ # @param memoryDC [Wx::MemoryDC]
21
+ # @return [Wx::GraphicsContext]
22
+ # @overload self.draw_on(printerDC)
23
+ # Creates a {Wx::GraphicsContext} from a {Wx::PrinterDC} and passes that object to the given block.
24
+ # Deletes the gc object after the block returns.
25
+ # Under GTK+, this will only work when using the GtkPrint printing backend which is available since GTK+ 2.10.
26
+ # @see Wx::GraphicsRenderer#create_context
27
+ # @see Printing Under Unix (GTK+)
28
+ # @param printerDC [Wx::PrinterDC]
29
+ # @return [Wx::GraphicsContext]
30
+ # @overload self.draw_on(image)
31
+ # Creates a {Wx::GraphicsContext} associated with a {Wx::Image} and passes that object to the given block.
32
+ # Deletes the gc object after the block returns.
33
+ # The image specifies the size of the context as well as whether alpha is supported (if {Wx::Image#has_alpha}) or not and the initial contents of the context. The image object must have a life time greater than that of the new context as the context copies its contents back to the image when it is destroyed.
34
+ # @param image [Wx::Image]
35
+ # @return [Wx::GraphicsContext]
36
+ # @overload self.draw_on()
37
+ # Create a lightweight context that can be used only for measuring text and passes that object to the given block.
38
+ # Deletes the gc object after the block returns.
39
+ # @return [Wx::GraphicsContext]
40
+ def self.draw_on(*args) end
41
+
42
+ end
@@ -0,0 +1,18 @@
1
+
2
+ class Wx::Icon
3
+
4
+ # Searches for an art file with basename 'name' and creates an Icon if found.
5
+ # Raises an ArgumentError if not found.
6
+ # Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
7
+ # determine the values for the 'art_path' and 'art_owner' arguments ('art_path' is set to the
8
+ # absolute path to the folder holding the caller's code and 'art_owner' to the basename of the
9
+ # caller's source file). The 'art_type' argument is set to <code>:icon</code>.
10
+ # @param [String,Symbol] name base name of art file
11
+ # @param [Wx::BitmapType,nil] bmp_type bitmap type for art file (nil means any supported type)
12
+ # @param [Integer] desired_width
13
+ # @param [Integer] desired_height
14
+ # @return [Wx::Icon]
15
+ # @see Wx::ArtLocator::find_art
16
+ def self.Icon(name, bmp_type = nil, desired_width=-1, desired_height=-1); end
17
+
18
+ end
@@ -0,0 +1,25 @@
1
+
2
+ module Wx
3
+
4
+ # Mixin module to provide convenience method for defining Windows/Control ids.
5
+ # @example Define an ID module
6
+ # module MyIDS
7
+ # include Wx::IDHelper
8
+ # # by default the offset for the next id is Wx::ID_HIGHEST which makes 'Wx::ID_HIGHEST+1'
9
+ # # the first id value returned.
10
+ # MY_FIRST_ID = self.next_id
11
+ # MY_SECOND_ID = self.next_id # MY_SECOND_ID will have value Wx::ID_HIGHEST+2
12
+ #
13
+ # # optionally a user defined offset can be specified like this:
14
+ # MY_OTHER_ID = self.next_id(MY_FIRST_ID+1000) # MY_OTHER_ID will have value MY_FIRST_ID+1001
15
+ # MY_OTHER_ID2 = self.next_id # MY_OTHER_ID2 will have value MY_FIRST_ID+1002
16
+ # end
17
+ #
18
+ module IDHelper
19
+
20
+ # Provides the singleton method #next_id to the including module.
21
+ def self.included(base) end
22
+
23
+ end
24
+
25
+ end
@@ -0,0 +1,33 @@
1
+
2
+ module Wx
3
+
4
+ class Image
5
+
6
+ # Returns an array of BitmapTypes identifying the available image handlers.
7
+ # @return [Array<Wx::BitmapType>]
8
+ def self.handlers; end
9
+
10
+ # Returns an array with the supported file extensions (as 'bmp') of the available image handlers.
11
+ # @return [Array<String>]
12
+ def self.extensions; end
13
+
14
+ # returns a Hash with all supported extensions per available BitmapType
15
+ # @return [Hash]
16
+ def self.handler_extensions; end
17
+
18
+ # Searches for an art file with basename 'name' and creates an Image if found.
19
+ # Raises an ArgumentError if not found.
20
+ # Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
21
+ # determine the values for the 'art_path' and 'art_owner' arguments ('art_path' is set to the
22
+ # absolute path to the folder holding the caller's code and 'art_owner' to the basename of the
23
+ # caller's source file). The 'art_type' argument is set to <code>:icon</code>.
24
+ # @param [String,Symbol] name base name of art file
25
+ # @param [Wx::BitmapType,nil] bmp_type bitmap type for art file (nil means any supported type)
26
+ # @param [Integer] index Index of the image to load in the case that the image file contains multiple images. This is only used by GIF, ICO and TIFF handlers. The default value (-1) means "choose the default image" and is interpreted as the first image (index=0) by the GIF and TIFF handler and as the largest and most colourful one by the ICO handler.
27
+ # @return [Wx::Image]
28
+ # @see Wx::ArtLocator::find_art
29
+ def self.Image(name, bmp_type = nil, index=-1); end
30
+
31
+ end
32
+
33
+ end
@@ -0,0 +1,31 @@
1
+
2
+ class Wx::RegionIterator
3
+
4
+ # Creates a Wx::RegionIterator and passes that to the given block.
5
+ # Removes the iterator after the block finishes.
6
+ # @param [Wx::Region] region
7
+ # @yieldparam [Wx::RegionIterator] region_it
8
+ def self.for_region(region) end
9
+
10
+ # Creates a Wx::RegionIterator and iterates each rectangle in the region executing the given block
11
+ # for each iteration passing the region iterator.
12
+ # @param [Wx::Region] region
13
+ # @yieldparam [Wx::RegionIterator] region_it
14
+ def self.iterate(region) end
15
+
16
+ alias :have_rects? :have_rects
17
+
18
+ # Moves to the next rectangle of the iterated region.
19
+ # @return [void]
20
+ def next_rect; end
21
+
22
+ # If a block is given the given block is called for each rectangle in the region passing the rectangle.
23
+ # If no block is given an Enumerator is returned.
24
+ # @overload each(&block)
25
+ # @yieldparam [Wx::Rect] rect
26
+ # @return [Object]
27
+ # @overload each()
28
+ # @return [Enumerator]
29
+ def each; end
30
+
31
+ end
@@ -0,0 +1,17 @@
1
+
2
+ class Wx
3
+
4
+ class ScaledDC < Wx::DC
5
+
6
+ private :initialize
7
+
8
+ # Creates a Wx::ScaledDC instance for target and scale and
9
+ # passes the instance to the given block to draw on.
10
+ # @param [Wx::DC] target DC to draw on (scaled)
11
+ # @param [Float] scale scale factor
12
+ # @yieldparam [Wx::ScaledDC] dc scaled dc to draw on
13
+ # @return [Object] result from block
14
+ def self.draw_on(target, scale) end
15
+ end
16
+
17
+ end
@@ -0,0 +1,18 @@
1
+
2
+ class Wx::Window
3
+
4
+ # Creates an appropriate (temporary) DC to paint on and
5
+ # passes that to the given block. Deletes the DC when the block returns.
6
+ # Creates a Wx::PaintDC when called from an evt_paint handler and a
7
+ # Wx::ClientDC otherwise.
8
+ # @yieldparam [Wx::PaintDC,Wx::ClientDC] dc dc to paint on
9
+ # @return [Object] result from block
10
+ def paint; end
11
+
12
+ # Similar to #paint but this time creates a Wx::AutoBufferedPaintDC when called
13
+ # from an evt_paint handler and a Wx::ClientDC otherwise.
14
+ # @yieldparam [Wx::AutoBufferedPaintDC,Wx::ClientDC] dc dc to paint on
15
+ # @return [Object] result from block
16
+ def paint_buffered; end
17
+
18
+ end
@@ -4,7 +4,7 @@
4
4
  module WxGlobalConstants
5
5
 
6
6
  class << self
7
- def search_nested(mod, sym)
7
+ def search_nested(mod, sym, path = [])
8
8
  # check any nested modules and/or (enum) classes
9
9
  const_val = nil
10
10
  mod.constants.each do |c|
@@ -16,11 +16,12 @@ module WxGlobalConstants
16
16
  elsif cv.name.start_with?('Wx::') # only search Wx namespace
17
17
  # prevent const_missing being triggered here since that may lead to unexpected results
18
18
  const_val = cv.const_get(sym) if cv.constants.include?(sym)
19
- const_val = search_nested(cv, sym) unless const_val
19
+ const_val = search_nested(cv, sym, path+[mod]) unless const_val || path.include?(cv)
20
20
  end
21
21
  when ::Module
22
22
  if cv.name.start_with?('Wx::') # only search Wx namespace
23
- const_val = cv.const_get(sym) rescue nil
23
+ const_val = cv.const_get(sym) if cv.constants.include?(sym)
24
+ const_val = search_nested(cv, sym, path+[mod]) unless const_val || path.include?(cv)
24
25
  end
25
26
  end unless mod == cv # watch out for infinite recursion
26
27
  break if const_val
data/lib/wx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wx
2
- WXRUBY_VERSION = '0.9.0-beta.10'
2
+ WXRUBY_VERSION = '0.9.0-beta.13'
3
3
  end
@@ -15,24 +15,6 @@ module WxRuby
15
15
  " sampler [help]|[copy DEST]\tRun wxRuby3 Sampler application (or copy samples)."
16
16
  end
17
17
 
18
- def self.parse_args(args)
19
- opts = OptionParser.new
20
- opts.banner = "Usage: wxruby [global options] sampler [-h]|[-s PATH]\n"
21
- opts.separator ''
22
- opts.on('-s PATH', '--save=PATH',
23
- 'Save wxRuby samples under PATH.') do |v|
24
- OPTIONS[:save_path] = v.to_s
25
- end
26
- opts.on('-h', '--help',
27
- 'Show this message.') do |v|
28
- puts opts
29
- puts
30
- exit(0)
31
- end
32
- opts.raise_unknown = false
33
- opts.parse!(args)
34
- end
35
-
36
18
  def self.run(argv)
37
19
  if argv == :describe
38
20
  description
@@ -47,15 +29,15 @@ module WxRuby
47
29
  puts ' Starts the sampler application if called without arguments.'
48
30
  puts ' Otherwise shows this help for argument "help" or copies the included wxRuby'
49
31
  puts ' sample folders under the directory indicated by DEST for argument "copy DEST".'
50
- puts ' The directory indicated by DEST *must* already exist.'
32
+ puts ' The directory indicated by DEST *must* already exist.'
51
33
  puts
52
34
  elsif arg == 'copy'
53
35
  unless File.directory?(dest = argv.shift)
54
- STDERR.puts "ERROR: Invalid destination folder #{DEST}"
36
+ STDERR.puts "ERROR: Invalid destination folder #{dest}"
55
37
  exit(1)
56
38
  end
57
39
  Dir[File.join(WxRuby::ROOT, 'samples', '*')].each do |fp|
58
- FileUtils.cp_r(fp, dest, verbose: true, noop: true)
40
+ FileUtils.cp_r(fp, dest, verbose: true)
59
41
  end
60
42
  end
61
43
  end
data/lib/wxruby_aui.so CHANGED
Binary file
data/lib/wxruby_core.so CHANGED
Binary file
data/lib/wxruby_grid.so CHANGED
Binary file
data/lib/wxruby_html.so CHANGED
Binary file
data/lib/wxruby_pg.so CHANGED
Binary file
data/lib/wxruby_prt.so CHANGED
Binary file
data/lib/wxruby_rbn.so CHANGED
Binary file
data/lib/wxruby_rtc.so CHANGED
Binary file
data/lib/wxruby_stc.so CHANGED
Binary file
@@ -145,11 +145,11 @@ module WXRuby3
145
145
  end
146
146
  private :do_run
147
147
 
148
- def make_ruby_cmd(*cmd)
148
+ def make_ruby_cmd(*cmd, verbose: true)
149
149
  [
150
150
  FileUtils::RUBY,
151
151
  '-I', rb_lib_path,
152
- (verbose? ? '-v' : nil),
152
+ (verbose && verbose? ? '-v' : nil),
153
153
  *cmd.flatten
154
154
  ].compact
155
155
  end
@@ -159,8 +159,8 @@ module WXRuby3
159
159
  do_run(*cmd.flatten)
160
160
  end
161
161
 
162
- def run(*cmd, capture: nil)
163
- do_run(*make_ruby_cmd(cmd), capture: capture)
162
+ def run(*cmd, capture: nil, verbose: true)
163
+ do_run(*make_ruby_cmd(cmd, verbose: verbose), capture: capture)
164
164
  end
165
165
 
166
166
  def debug_command(*args)
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -155,8 +155,7 @@ class GraphicsWindow < Wx::Window
155
155
  def on_paint
156
156
  # We do our drawing now
157
157
  rect = self.get_client_size
158
- paint do |dc|
159
- gdc = Wx::GraphicsContext.create(dc)
158
+ Wx::GraphicsContext.draw_on(self) do |gdc|
160
159
  unless @rtxt
161
160
  create_resources(gdc)
162
161
  end