wxruby3 0.9.0.pre.rc.1-x64-mingw-ucrt → 0.9.0.pre.rc.3-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (383) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +73 -22
  3. data/README.md +40 -8
  4. data/assets/hello_button-macos.png +0 -0
  5. data/assets/hello_button-msw.png +0 -0
  6. data/assets/hello_button_clicked-macos.png +0 -0
  7. data/assets/hello_button_clicked-msw.png +0 -0
  8. data/assets/hello_button_clicked_combi.png +0 -0
  9. data/assets/hello_world-macos.png +0 -0
  10. data/assets/hello_world-msw.png +0 -0
  11. data/assets/hello_world_combi.png +0 -0
  12. data/ext/wxbase32u_gcc_custom.dll +0 -0
  13. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  14. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  23. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  24. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  25. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  26. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  27. data/lib/wx/core/brush.rb +6 -0
  28. data/lib/wx/core/event_loop.rb +7 -0
  29. data/lib/wx/core/events/evt_list.rb +7 -0
  30. data/lib/wx/core/evthandler.rb +12 -2
  31. data/lib/wx/core/font.rb +22 -14
  32. data/lib/wx/core/helpprovider.rb +2 -2
  33. data/lib/wx/core/image.rb +33 -0
  34. data/lib/wx/core/listctrl.rb +17 -13
  35. data/lib/wx/core/log.rb +90 -0
  36. data/lib/wx/core/menu.rb +5 -0
  37. data/lib/wx/core/pen.rb +6 -0
  38. data/lib/wx/core/window.rb +28 -1
  39. data/lib/wx/doc/app.rb +40 -0
  40. data/lib/wx/doc/bitmap.rb +11 -15
  41. data/lib/wx/doc/brush.rb +17 -0
  42. data/lib/wx/doc/event_loop.rb +7 -0
  43. data/lib/wx/doc/extra/00_starting.md +6 -6
  44. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  45. data/lib/wx/doc/extra/09_exceptions.md +1 -1
  46. data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
  47. data/lib/wx/doc/font.rb +27 -0
  48. data/lib/wx/doc/functions.rb +51 -23
  49. data/lib/wx/doc/gc_dc.rb +1 -1
  50. data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
  51. data/lib/wx/doc/gen/accelerator.rb +6 -6
  52. data/lib/wx/doc/gen/accessible.rb +6 -2
  53. data/lib/wx/doc/gen/activity_indicator.rb +65 -0
  54. data/lib/wx/doc/gen/animation.rb +7 -7
  55. data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
  56. data/lib/wx/doc/gen/any_button.rb +1 -1
  57. data/lib/wx/doc/gen/app.rb +17 -11
  58. data/lib/wx/doc/gen/art_provider.rb +61 -1
  59. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  60. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  61. data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
  62. data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
  63. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
  64. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
  65. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
  66. data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
  67. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  68. data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
  69. data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
  70. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +35 -20
  71. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
  72. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
  73. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
  74. data/lib/wx/doc/gen/bitmap.rb +32 -26
  75. data/lib/wx/doc/gen/bitmap_button.rb +10 -6
  76. data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
  77. data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
  78. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  79. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  80. data/lib/wx/doc/gen/brush.rb +16 -4
  81. data/lib/wx/doc/gen/busy_info.rb +1 -1
  82. data/lib/wx/doc/gen/button.rb +19 -7
  83. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  84. data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
  85. data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
  86. data/lib/wx/doc/gen/calendar_event.rb +3 -3
  87. data/lib/wx/doc/gen/caret.rb +2 -2
  88. data/lib/wx/doc/gen/check_box.rb +10 -6
  89. data/lib/wx/doc/gen/check_list_box.rb +8 -7
  90. data/lib/wx/doc/gen/choice.rb +7 -6
  91. data/lib/wx/doc/gen/choicebook.rb +12 -6
  92. data/lib/wx/doc/gen/client_dc.rb +1 -1
  93. data/lib/wx/doc/gen/clipboard.rb +1 -1
  94. data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
  95. data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
  96. data/lib/wx/doc/gen/colour.rb +16 -6
  97. data/lib/wx/doc/gen/colour_dialog.rb +6 -6
  98. data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
  99. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  100. data/lib/wx/doc/gen/combo_box.rb +22 -13
  101. data/lib/wx/doc/gen/context_help_button.rb +50 -1
  102. data/lib/wx/doc/gen/control.rb +9 -6
  103. data/lib/wx/doc/gen/core.rb +5 -2
  104. data/lib/wx/doc/gen/cursor.rb +16 -11
  105. data/lib/wx/doc/gen/data_format.rb +2 -2
  106. data/lib/wx/doc/gen/data_object.rb +23 -16
  107. data/lib/wx/doc/gen/date_event.rb +3 -3
  108. data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
  109. data/lib/wx/doc/gen/dc.rb +37 -12
  110. data/lib/wx/doc/gen/defs.rb +16 -16
  111. data/lib/wx/doc/gen/dialog.rb +19 -5
  112. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  113. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  114. data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
  115. data/lib/wx/doc/gen/drag_drop.rb +15 -15
  116. data/lib/wx/doc/gen/drag_image.rb +6 -6
  117. data/lib/wx/doc/gen/editable_list_box.rb +7 -3
  118. data/lib/wx/doc/gen/event.rb +44 -13
  119. data/lib/wx/doc/gen/event_blocker.rb +19 -17
  120. data/lib/wx/doc/gen/event_filter.rb +43 -47
  121. data/lib/wx/doc/gen/event_list.rb +22 -15
  122. data/lib/wx/doc/gen/events.rb +215 -79
  123. data/lib/wx/doc/gen/evt_handler.rb +1 -1
  124. data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
  125. data/lib/wx/doc/gen/file_dialog.rb +64 -56
  126. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  127. data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
  128. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  129. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  130. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  131. data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
  132. data/lib/wx/doc/gen/font.rb +39 -29
  133. data/lib/wx/doc/gen/font_data.rb +9 -5
  134. data/lib/wx/doc/gen/font_dialog.rb +3 -3
  135. data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
  136. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  137. data/lib/wx/doc/gen/frame.rb +34 -11
  138. data/lib/wx/doc/gen/fs_file.rb +4 -17
  139. data/lib/wx/doc/gen/gauge.rb +11 -7
  140. data/lib/wx/doc/gen/gcdc.rb +5 -1
  141. data/lib/wx/doc/gen/gdi_common.rb +35 -33
  142. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  143. data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
  144. data/lib/wx/doc/gen/graphics_context.rb +29 -28
  145. data/lib/wx/doc/gen/graphics_object.rb +1 -1
  146. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
  147. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
  148. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
  149. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
  150. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  151. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
  152. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
  153. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
  154. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
  155. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  156. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
  157. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  158. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  159. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  160. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  161. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
  162. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
  163. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
  164. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
  165. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
  166. data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
  167. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  168. data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
  169. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
  170. data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
  171. data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
  172. data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
  173. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  174. data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
  175. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  176. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  177. data/lib/wx/doc/gen/help_controller.rb +18 -12
  178. data/lib/wx/doc/gen/html/html_cell.rb +36 -18
  179. data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
  180. data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
  181. data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
  182. data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
  183. data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
  184. data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
  185. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  186. data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
  187. data/lib/wx/doc/gen/html/html_printout.rb +15 -5
  188. data/lib/wx/doc/gen/html/html_window.rb +19 -8
  189. data/lib/wx/doc/gen/hyperlink_ctrl.rb +152 -0
  190. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  191. data/lib/wx/doc/gen/icon.rb +14 -14
  192. data/lib/wx/doc/gen/image.rb +119 -64
  193. data/lib/wx/doc/gen/image_list.rb +10 -6
  194. data/lib/wx/doc/gen/keyboard_state.rb +7 -7
  195. data/lib/wx/doc/gen/list_box.rb +30 -21
  196. data/lib/wx/doc/gen/list_ctrl.rb +169 -78
  197. data/lib/wx/doc/gen/list_event.rb +24 -2
  198. data/lib/wx/doc/gen/listbook.rb +12 -6
  199. data/lib/wx/doc/gen/locale.rb +11 -36
  200. data/lib/wx/doc/gen/log.rb +122 -45
  201. data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
  202. data/lib/wx/doc/gen/mdi_frame.rb +15 -9
  203. data/lib/wx/doc/gen/media_ctrl.rb +7 -4
  204. data/lib/wx/doc/gen/media_event.rb +8 -2
  205. data/lib/wx/doc/gen/memory_dc.rb +23 -27
  206. data/lib/wx/doc/gen/menu.rb +9 -9
  207. data/lib/wx/doc/gen/menu_bar.rb +4 -10
  208. data/lib/wx/doc/gen/menu_item.rb +115 -34
  209. data/lib/wx/doc/gen/message_dialog.rb +48 -30
  210. data/lib/wx/doc/gen/mini_frame.rb +12 -3
  211. data/lib/wx/doc/gen/mouse_state.rb +1 -1
  212. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  213. data/lib/wx/doc/gen/non_owned_window.rb +6 -7
  214. data/lib/wx/doc/gen/notebook.rb +20 -15
  215. data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
  216. data/lib/wx/doc/gen/object.rb +2 -2
  217. data/lib/wx/doc/gen/palette.rb +3 -3
  218. data/lib/wx/doc/gen/panel.rb +4 -3
  219. data/lib/wx/doc/gen/pen.rb +25 -12
  220. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
  221. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
  222. data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
  223. data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
  224. data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
  225. data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
  226. data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
  227. data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
  228. data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
  229. data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
  230. data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
  231. data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
  232. data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
  233. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
  234. data/lib/wx/doc/gen/picker_base.rb +12 -11
  235. data/lib/wx/doc/gen/platform_info.rb +7 -7
  236. data/lib/wx/doc/gen/popup_window.rb +6 -6
  237. data/lib/wx/doc/gen/progress_dialog.rb +1 -1
  238. data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
  239. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  240. data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
  241. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  242. data/lib/wx/doc/gen/prt/print_data.rb +24 -18
  243. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  244. data/lib/wx/doc/gen/prt/printer.rb +22 -22
  245. data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
  246. data/lib/wx/doc/gen/radio_box.rb +12 -18
  247. data/lib/wx/doc/gen/radio_button.rb +8 -6
  248. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
  249. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
  250. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  251. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
  252. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
  253. data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
  254. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
  255. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  256. data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
  257. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
  258. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  259. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
  260. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
  261. data/lib/wx/doc/gen/region.rb +9 -8
  262. data/lib/wx/doc/gen/region_iterator.rb +2 -2
  263. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
  264. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
  265. data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
  266. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
  267. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
  268. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
  269. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
  270. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  271. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  272. data/lib/wx/doc/gen/sash_event.rb +3 -1
  273. data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
  274. data/lib/wx/doc/gen/sash_window.rb +8 -3
  275. data/lib/wx/doc/gen/scroll_bar.rb +29 -8
  276. data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
  277. data/lib/wx/doc/gen/scrolled_control.rb +41 -23
  278. data/lib/wx/doc/gen/scrolled_window.rb +41 -23
  279. data/lib/wx/doc/gen/search_ctrl.rb +15 -8
  280. data/lib/wx/doc/gen/simplebook.rb +2 -2
  281. data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
  282. data/lib/wx/doc/gen/sizer.rb +29 -28
  283. data/lib/wx/doc/gen/slider.rb +49 -16
  284. data/lib/wx/doc/gen/spin_button.rb +15 -9
  285. data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
  286. data/lib/wx/doc/gen/spin_event.rb +5 -2
  287. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  288. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  289. data/lib/wx/doc/gen/splitter_window.rb +20 -4
  290. data/lib/wx/doc/gen/static_bitmap.rb +5 -5
  291. data/lib/wx/doc/gen/static_box.rb +36 -32
  292. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  293. data/lib/wx/doc/gen/static_line.rb +5 -4
  294. data/lib/wx/doc/gen/static_text.rb +12 -6
  295. data/lib/wx/doc/gen/status_bar.rb +14 -5
  296. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
  297. data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
  298. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  299. data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
  300. data/lib/wx/doc/gen/system_options.rb +11 -1
  301. data/lib/wx/doc/gen/system_settings.rb +3 -3
  302. data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
  303. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  304. data/lib/wx/doc/gen/text_attr.rb +11 -7
  305. data/lib/wx/doc/gen/text_ctrl.rb +61 -92
  306. data/lib/wx/doc/gen/text_entry.rb +28 -40
  307. data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
  308. data/lib/wx/doc/gen/text_validator.rb +0 -11
  309. data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
  310. data/lib/wx/doc/gen/timer.rb +8 -4
  311. data/lib/wx/doc/gen/timer_event.rb +19 -26
  312. data/lib/wx/doc/gen/tip_provider.rb +1 -1
  313. data/lib/wx/doc/gen/toggle_button.rb +6 -5
  314. data/lib/wx/doc/gen/tool_bar.rb +41 -24
  315. data/lib/wx/doc/gen/tool_tip.rb +2 -2
  316. data/lib/wx/doc/gen/toolbook.rb +6 -3
  317. data/lib/wx/doc/gen/top_level_window.rb +35 -25
  318. data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
  319. data/lib/wx/doc/gen/tree_event.rb +23 -2
  320. data/lib/wx/doc/gen/treebook.rb +6 -2
  321. data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
  322. data/lib/wx/doc/gen/utils.rb +9 -3
  323. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  324. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  325. data/lib/wx/doc/gen/validator.rb +7 -5
  326. data/lib/wx/doc/gen/variant.rb +34 -97
  327. data/lib/wx/doc/gen/window.rb +157 -102
  328. data/lib/wx/doc/gen/window_dc.rb +1 -1
  329. data/lib/wx/doc/gen/with_images.rb +1 -1
  330. data/lib/wx/doc/gen/wizard.rb +17 -4
  331. data/lib/wx/doc/gen/wizard_event.rb +9 -2
  332. data/lib/wx/doc/gen/wizard_page.rb +1 -1
  333. data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
  334. data/lib/wx/doc/gen/xml_node.rb +3 -3
  335. data/lib/wx/doc/gen/xml_resource.rb +12 -9
  336. data/lib/wx/doc/image.rb +42 -12
  337. data/lib/wx/doc/list_ctrl.rb +32 -0
  338. data/lib/wx/doc/log.rb +28 -0
  339. data/lib/wx/doc/pen.rb +17 -0
  340. data/lib/wx/doc/prt/printer_dc.rb +2 -2
  341. data/lib/wx/doc/radio_box.rb +20 -0
  342. data/lib/wx/doc/scaled_dc.rb +1 -1
  343. data/lib/wx/doc/text_validator.rb +12 -0
  344. data/lib/wx/doc/window.rb +27 -0
  345. data/lib/wx/keyword_defs.rb +77 -76
  346. data/lib/wx/prt/keyword_defs.rb +5 -1
  347. data/lib/wx/version.rb +1 -1
  348. data/lib/wxruby_aui.so +0 -0
  349. data/lib/wxruby_core.so +0 -0
  350. data/lib/wxruby_grid.so +0 -0
  351. data/lib/wxruby_html.so +0 -0
  352. data/lib/wxruby_pg.so +0 -0
  353. data/lib/wxruby_prt.so +0 -0
  354. data/lib/wxruby_rbn.so +0 -0
  355. data/lib/wxruby_rtc.so +0 -0
  356. data/lib/wxruby_stc.so +0 -0
  357. data/rakelib/install.rb +17 -6
  358. data/rakelib/lib/config/linux.rb +4 -2
  359. data/rakelib/lib/config/macosx.rb +120 -1
  360. data/rakelib/lib/config/mingw.rb +6 -1
  361. data/rakelib/lib/config/unixish.rb +26 -11
  362. data/rakelib/lib/config.rb +15 -6
  363. data/samples/aui/aui.rb +432 -363
  364. data/samples/propgrid/propgrid.rb +3 -0
  365. data/samples/sampler/editor.rb +33 -25
  366. data/samples/sampler/sample.rb +2 -2
  367. data/samples/sampler/stc_editor.rb +4 -2
  368. data/tests/lib/item_container_tests.rb +82 -0
  369. data/tests/lib/text_entry_tests.rb +80 -0
  370. data/tests/lib/wxapp_runner.rb +12 -0
  371. data/tests/lib/wxframe_runner.rb +89 -4
  372. data/tests/test_art.rb +9 -0
  373. data/tests/test_box_sizer.rb +161 -0
  374. data/tests/test_ext_controls.rb +28 -0
  375. data/tests/test_font.rb +239 -0
  376. data/tests/test_grid_sizer.rb +148 -0
  377. data/tests/test_intl.rb +5 -1
  378. data/tests/test_list_ctrl.rb +53 -0
  379. data/tests/test_log.rb +163 -0
  380. data/tests/test_std_controls.rb +321 -37
  381. data/tests/test_timer.rb +95 -0
  382. data/tests/test_window.rb +340 -0
  383. metadata +36 -2
@@ -206,12 +206,22 @@ module Wx::GRID
206
206
  # A {Wx::GRID::GridTableBase} class holds the actual data to be displayed by a {Wx::GRID::Grid} class. One or more {Wx::GRID::Grid} classes may act as a view for one table class. The default table class is called {Wx::GRID::GridStringTable} and holds an array of strings. An instance of such a class is created by {Wx::GRID::Grid#create_grid}.
207
207
  # {Wx::GRID::GridCellRenderer} is the abstract base class for rendering contents in a cell. The following renderers are predefined:
208
208
  #
209
- # - {Wx::GRID::GridCellBoolRenderer}- {Wx::GRID::GridCellFloatRenderer}- {Wx::GRID::GridCellNumberRenderer}- {Wx::GRID::GridCellStringRenderer}- {Wx::GRID::GridCellDateRenderer}- {Wx::GRID::GridCellDateTimeRenderer}
209
+ # - {Wx::GRID::GridCellBoolRenderer}
210
+ # - {Wx::GRID::GridCellFloatRenderer}
211
+ # - {Wx::GRID::GridCellNumberRenderer}
212
+ # - {Wx::GRID::GridCellStringRenderer}
213
+ # - {Wx::GRID::GridCellDateRenderer}
214
+ # - {Wx::GRID::GridCellDateTimeRenderer}
210
215
  #
211
216
  # The look of a cell can be further defined using {Wx::GRID::GridCellAttr}. An object of this type may be returned by {Wx::GRID::GridTableBase#get_attr}.
212
217
  # {Wx::GRID::GridCellEditor} is the abstract base class for editing the value of a cell. The following editors are predefined:
213
218
  #
214
- # - {Wx::GRID::GridCellBoolEditor}- {Wx::GRID::GridCellChoiceEditor}- {Wx::GRID::GridCellFloatEditor}- {Wx::GRID::GridCellNumberEditor}- {Wx::GRID::GridCellTextEditor}- {Wx::GRID::GridCellDateEditor}
219
+ # - {Wx::GRID::GridCellBoolEditor}
220
+ # - {Wx::GRID::GridCellChoiceEditor}
221
+ # - {Wx::GRID::GridCellFloatEditor}
222
+ # - {Wx::GRID::GridCellNumberEditor}
223
+ # - {Wx::GRID::GridCellTextEditor}
224
+ # - {Wx::GRID::GridCellDateEditor}
215
225
  #
216
226
  # Please see {Wx::GRID::GridEvent}, {Wx::GRID::GridSizeEvent}, {Wx::GRID::GridRangeSelectEvent}, and {Wx::GRID::GridEditorCreatedEvent} for the documentation of all event types you can use with {Wx::GRID::Grid}.
217
227
  # ===
@@ -297,7 +307,7 @@ module Wx::GRID
297
307
  # @overload initialize()
298
308
  # Default constructor.
299
309
  # You must call {Wx::GRID::Grid#create} to really create the grid window and also call {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize its contents.
300
- # @return [Grid]
310
+ # @return [Wx::GRID::Grid]
301
311
  # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GridNameStr)
302
312
  # Constructor creating the grid window.
303
313
  # You must call either {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize the grid contents before using it.
@@ -307,7 +317,7 @@ module Wx::GRID
307
317
  # @param size [Array(Integer, Integer), Wx::Size]
308
318
  # @param style [Integer]
309
319
  # @param name [String]
310
- # @return [Grid]
320
+ # @return [Wx::GRID::Grid]
311
321
  def initialize(*args) end
312
322
 
313
323
  # Creates the grid window for an object initialized using the default constructor.
@@ -333,13 +343,13 @@ module Wx::GRID
333
343
  # Assigns a pointer to a custom grid table to be used by the grid.
334
344
  # This function is identical to {Wx::GRID::Grid#set_table} with takeOwnership parameter set to true, i.e. it simply always takes the ownership of the passed in pointer. This makes it simpler to use than {Wx::GRID::Grid#set_table} in the common case when the table should be owned by the grid object.
335
345
  # Note that this function should be called at most once and can't be used to change the table used by the grid later on or reset it: if such extra flexibility is needed, use {Wx::GRID::Grid#set_table} directly.
336
- # @param table [Wx::GridTableBase] The heap-allocated pointer to the table.
346
+ # @param table [Wx::GRID::GridTableBase] The heap-allocated pointer to the table.
337
347
  # @param selmode [GridSelectionModes] Selection mode to use.
338
348
  # @return [void]
339
349
  def assign_table(table, selmode=Wx::GRID::Grid::GridSelectionModes::GridSelectCells) end
340
350
 
341
351
  # Receive and handle a message from the table.
342
- # @param msg [Wx::GridTableMessage]
352
+ # @param msg [Wx::GRID::GridTableMessage]
343
353
  # @return [true,false]
344
354
  def process_table_message(msg) end
345
355
 
@@ -823,8 +833,8 @@ module Wx::GRID
823
833
  # However if a custom table returns {Wx::GRID::GRID_VALUE_BOOL} from its {Wx::GRID::GridTableBase#get_type_name} method, then {Wx::GRID::GridCellBoolRenderer} and {Wx::GRID::GridCellBoolEditor} are used for it because the grid also registers a boolean data type with this name.
824
834
  # And as this mechanism is completely generic, you may register your own data types using your own custom renderers and editors. Just remember that the table must identify a cell as being of the given type for them to be used for this cell.
825
835
  # @param typeName [String] Name of the new type. May be any string, but if the type name is the same as the name of an already registered type, including one of the standard ones (which are {Wx::GRID::GRID_VALUE_STRING}, {Wx::GRID::GRID_VALUE_BOOL}, {Wx::GRID::GRID_VALUE_NUMBER}, {Wx::GRID::GRID_VALUE_FLOAT}, {Wx::GRID::GRID_VALUE_CHOICE} and {Wx::GRID::GRID_VALUE_DATE}), then the new registration information replaces the previously used renderer and editor.
826
- # @param renderer [Wx::GridCellRenderer] The renderer to use for the cells of this type. Its ownership is taken by the grid, i.e. it will call DecRef() on this pointer when it doesn't need it any longer.
827
- # @param editor [Wx::GridCellEditor] The editor to use for the cells of this type. Its ownership is also taken by the grid.
836
+ # @param renderer [Wx::GRID::GridCellRenderer] The renderer to use for the cells of this type. Its ownership is taken by the grid, i.e. it will call DecRef() on this pointer when it doesn't need it any longer.
837
+ # @param editor [Wx::GRID::GridCellEditor] The editor to use for the cells of this type. Its ownership is also taken by the grid.
828
838
  # @return [void]
829
839
  def register_data_type(typeName, renderer, editor) end
830
840
 
@@ -838,7 +848,7 @@ module Wx::GRID
838
848
  # See {Wx::GRID::GridCellEditor} and the wxGrid Overview for more information about cell editors and renderers.
839
849
  # @param row [Integer]
840
850
  # @param col [Integer]
841
- # @param editor [Wx::GridCellEditor]
851
+ # @param editor [Wx::GRID::GridCellEditor]
842
852
  # @return [void]
843
853
  def set_cell_editor(row, col, editor) end
844
854
 
@@ -847,7 +857,7 @@ module Wx::GRID
847
857
  # See {Wx::GRID::GridCellRenderer} and the wxGrid Overview for more information about cell editors and renderers.
848
858
  # @param row [Integer]
849
859
  # @param col [Integer]
850
- # @param renderer [Wx::GridCellRenderer]
860
+ # @param renderer [Wx::GRID::GridCellRenderer]
851
861
  # @return [void]
852
862
  def set_cell_renderer(row, col, renderer) end
853
863
 
@@ -906,7 +916,7 @@ module Wx::GRID
906
916
  # Sets the default editor for grid cells.
907
917
  # The grid will take ownership of the pointer.
908
918
  # See {Wx::GRID::GridCellEditor} and the wxGrid Overview for more information about cell editors and renderers.
909
- # @param editor [Wx::GridCellEditor]
919
+ # @param editor [Wx::GRID::GridCellEditor]
910
920
  # @return [void]
911
921
  def set_default_editor(editor) end
912
922
  alias_method :default_editor=, :set_default_editor
@@ -914,7 +924,7 @@ module Wx::GRID
914
924
  # Sets the default renderer for grid cells.
915
925
  # The grid will take ownership of the pointer.
916
926
  # See {Wx::GRID::GridCellRenderer} and the wxGrid Overview for more information about cell editors and renderers.
917
- # @param renderer [Wx::GridCellRenderer]
927
+ # @param renderer [Wx::GRID::GridCellRenderer]
918
928
  # @return [void]
919
929
  def set_default_renderer(renderer) end
920
930
  alias_method :default_renderer=, :set_default_renderer
@@ -2017,7 +2027,11 @@ module Wx::GRID
2017
2027
  # true on success or false if it failed.
2018
2028
  #
2019
2029
  # Note that this method doesn't do anything, and returns false, if any of the following conditions are true:
2020
- # - Either row or col are out of range- Size of the frozen area would be bigger than the current viewing area- There are any merged cells in the area to be frozen- Grid uses a native header control (see {Wx::GRID::Grid#use_native_col_header})
2030
+ #
2031
+ # - Either row or col are out of range
2032
+ # - Size of the frozen area would be bigger than the current viewing area
2033
+ # - There are any merged cells in the area to be frozen
2034
+ # - Grid uses a native header control (see {Wx::GRID::Grid#use_native_col_header})
2021
2035
  #
2022
2036
  # (some of these limitations could be lifted in the future).
2023
2037
  # @param row [unsigned] The number of rows to freeze, 0 means to unfreeze all rows.
@@ -2088,7 +2102,7 @@ module Wx::GRID
2088
2102
 
2089
2103
  # Returns a base pointer to the current table object.
2090
2104
  # The returned pointer is still owned by the grid.
2091
- # @return [Wx::GridTableBase]
2105
+ # @return [Wx::GRID::GridTableBase]
2092
2106
  def get_table; end
2093
2107
  alias_method :table, :get_table
2094
2108
 
@@ -2151,14 +2165,14 @@ module Wx::GRID
2151
2165
  # See the {Wx::GRID::GridCellAttr} class for more information about controlling cell attributes.
2152
2166
  # @param row [Integer]
2153
2167
  # @param col [Integer]
2154
- # @param attr [Wx::GridCellAttr]
2168
+ # @param attr [Wx::GRID::GridCellAttr]
2155
2169
  # @return [void]
2156
2170
  def set_attr(row, col, attr) end
2157
2171
 
2158
2172
  # Sets the cell attributes for all cells in the specified column.
2159
2173
  # For more information about controlling grid cell attributes see the {Wx::GRID::GridCellAttr} cell attribute class and the wxGrid Overview.
2160
2174
  # @param col [Integer]
2161
- # @param attr [Wx::GridCellAttr]
2175
+ # @param attr [Wx::GRID::GridCellAttr]
2162
2176
  # @return [void]
2163
2177
  def set_col_attr(col, attr) end
2164
2178
 
@@ -2173,7 +2187,7 @@ module Wx::GRID
2173
2187
  # The grid takes ownership of the attribute pointer.
2174
2188
  # See the {Wx::GRID::GridCellAttr} class for more information about controlling cell attributes.
2175
2189
  # @param row [Integer]
2176
- # @param attr [Wx::GridCellAttr]
2190
+ # @param attr [Wx::GRID::GridCellAttr]
2177
2191
  # @return [void]
2178
2192
  def set_row_attr(row, attr) end
2179
2193
 
@@ -2294,7 +2308,7 @@ module Wx::GRID
2294
2308
  alias_method :using_native_header?, :is_using_native_header
2295
2309
 
2296
2310
  # @param dc [Wx::DC]
2297
- # @param attr [Wx::GridCellAttr]
2311
+ # @param attr [Wx::GRID::GridCellAttr]
2298
2312
  # @return [void]
2299
2313
  def draw_cell_highlight(dc, attr) end
2300
2314
 
@@ -11,7 +11,9 @@ module Wx::GRID
11
11
  #
12
12
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::GRID::GridEditorCreatedEvent} events.
13
13
  # Event handler methods:
14
+ #
14
15
  # - {Wx::EvtHandler#evt_grid_editor_created}(meth = nil, &block): The editor for a cell was created. Processes a {Wx::GRID::EVT_GRID_EDITOR_CREATED} event type.
16
+ #
15
17
  # - {Wx::EvtHandler#evt_grid_cmd_editor_created}(id, meth = nil, &block): The editor for a cell was created; variant taking a window identifier. Processes a {Wx::GRID::EVT_GRID_EDITOR_CREATED} event type.
16
18
  #
17
19
  # ===
@@ -22,16 +24,16 @@ module Wx::GRID
22
24
 
23
25
  # @overload initialize()
24
26
  # Default constructor.
25
- # @return [GridEditorCreatedEvent]
27
+ # @return [Wx::GRID::GridEditorCreatedEvent]
26
28
  # @overload initialize(id, type, obj, row, col, ctrl)
27
29
  # Constructor for initializing all event attributes.
28
30
  # @param id [Integer]
29
- # @param type [Integer]
31
+ # @param type [Wx::AUI::AuiMDIChildFrame::EventType]
30
32
  # @param obj [Wx::Object]
31
33
  # @param row [Integer]
32
34
  # @param col [Integer]
33
35
  # @param ctrl [Wx::Control]
34
- # @return [GridEditorCreatedEvent]
36
+ # @return [Wx::GRID::GridEditorCreatedEvent]
35
37
  def initialize(*args) end
36
38
 
37
39
  # Returns the column at which the event occurred.
@@ -12,22 +12,39 @@ module Wx::GRID
12
12
  #
13
13
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::GRID::GridEvent} events.
14
14
  # Event handler methods:
15
+ #
15
16
  # - {Wx::EvtHandler#evt_grid_cell_changing}(meth = nil, &block): The user is about to change the data in a cell. The new cell value as string is available from {Wx::GRID::GridEvent#get_string} event object method. This event can be vetoed if the change is not allowed. Processes a {Wx::GRID::EVT_GRID_CELL_CHANGING} event type.
17
+ #
16
18
  # - {Wx::EvtHandler#evt_grid_cell_changed}(meth = nil, &block): The user changed the data in a cell. The old cell value as string is available from {Wx::GRID::GridEvent#get_string} event object method. Notice that vetoing this event still works for backwards compatibility reasons but any new code should only veto EVT_GRID_CELL_CHANGING event and not this one. Processes a {Wx::GRID::EVT_GRID_CELL_CHANGED} event type.
19
+ #
17
20
  # - {Wx::EvtHandler#evt_grid_cell_left_click}(meth = nil, &block): The user clicked a cell with the left mouse button. Processes a {Wx::GRID::EVT_GRID_CELL_LEFT_CLICK} event type.
21
+ #
18
22
  # - {Wx::EvtHandler#evt_grid_cell_left_dclick}(meth = nil, &block): The user double-clicked a cell with the left mouse button. Processes a {Wx::GRID::EVT_GRID_CELL_LEFT_DCLICK} event type.
23
+ #
19
24
  # - {Wx::EvtHandler#evt_grid_cell_right_click}(meth = nil, &block): The user clicked a cell with the right mouse button. Processes a {Wx::GRID::EVT_GRID_CELL_RIGHT_CLICK} event type.
25
+ #
20
26
  # - {Wx::EvtHandler#evt_grid_cell_right_dclick}(meth = nil, &block): The user double-clicked a cell with the right mouse button. Processes a {Wx::GRID::EVT_GRID_CELL_RIGHT_DCLICK} event type.
27
+ #
21
28
  # - {Wx::EvtHandler#evt_grid_editor_hidden}(meth = nil, &block): The editor for a cell was hidden. Processes a {Wx::GRID::EVT_GRID_EDITOR_HIDDEN} event type.
29
+ #
22
30
  # - {Wx::EvtHandler#evt_grid_editor_shown}(meth = nil, &block): The editor for a cell was shown. Processes a {Wx::GRID::EVT_GRID_EDITOR_SHOWN} event type.
31
+ #
23
32
  # - {Wx::EvtHandler#evt_grid_label_left_click}(meth = nil, &block): The user clicked a label with the left mouse button. Processes a {Wx::GRID::EVT_GRID_LABEL_LEFT_CLICK} event type.
33
+ #
24
34
  # - {Wx::EvtHandler#evt_grid_label_left_dclick}(meth = nil, &block): The user double-clicked a label with the left mouse button. Processes a {Wx::GRID::EVT_GRID_LABEL_LEFT_DCLICK} event type.
35
+ #
25
36
  # - {Wx::EvtHandler#evt_grid_label_right_click}(meth = nil, &block): The user clicked a label with the right mouse button. Processes a {Wx::GRID::EVT_GRID_LABEL_RIGHT_CLICK} event type.
37
+ #
26
38
  # - {Wx::EvtHandler#evt_grid_label_right_dclick}(meth = nil, &block): The user double-clicked a label with the right mouse button. Processes a {Wx::GRID::EVT_GRID_LABEL_RIGHT_DCLICK} event type.
39
+ #
27
40
  # - {Wx::EvtHandler#evt_grid_select_cell}(meth = nil, &block): The given cell is about to be made current, either by user or by the program via a call to {Wx::GRID::Grid#set_grid_cursor} or {Wx::GRID::Grid#go_to_cell}. The event can be vetoed to prevent this from happening and {Wx::GRID::Grid#get_grid_cursor_coords} still returns the previous current cell coordinates during the event handler execution, while the new ones are available via the event object {Wx::GRID::GridEvent#get_row} and {Wx::GRID::GridEvent#get_col} functions. Processes a {Wx::GRID::EVT_GRID_SELECT_CELL} event type.
41
+ #
28
42
  # - {Wx::EvtHandler#evt_grid_row_move}(meth = nil, &block): The user tries to change the order of the rows in the grid by dragging the row specified by {Wx::GRID::GridEvent#get_row}. This event can be vetoed to either prevent the user from reordering the row change completely (but notice that if you don't want to allow it at all, you simply shouldn't call {Wx::GRID::Grid#enable_drag_row_move} in the first place), vetoed but handled in some way in the handler, e.g. by really moving the row to the new position at the associated table level, or allowed to proceed in which case {Wx::GRID::Grid#set_row_pos} is used to reorder the rows display order without affecting the use of the row indices otherwise. This event macro corresponds to {Wx::GRID::EVT_GRID_ROW_MOVE} event type. It is only available since wxWidgets 3.1.7.
43
+ #
29
44
  # - {Wx::EvtHandler#evt_grid_col_move}(meth = nil, &block): The user tries to change the order of the columns in the grid by dragging the column specified by {Wx::GRID::GridEvent#get_col}. This event can be vetoed to either prevent the user from reordering the column change completely (but notice that if you don't want to allow it at all, you simply shouldn't call {Wx::GRID::Grid#enable_drag_col_move} in the first place), vetoed but handled in some way in the handler, e.g. by really moving the column to the new position at the associated table level, or allowed to proceed in which case {Wx::GRID::Grid#set_col_pos} is used to reorder the columns display order without affecting the use of the column indices otherwise. This event macro corresponds to {Wx::GRID::EVT_GRID_COL_MOVE} event type.
45
+ #
30
46
  # - {Wx::EvtHandler#evt_grid_col_sort}(meth = nil, &block): This event is generated when a column is clicked by the user and its name is explained by the fact that the custom reaction to a click on a column is to sort the grid contents by this column. However the grid itself has no special support for sorting and it's up to the handler of this event to update the associated table. But if the event is handled (and not vetoed) the grid supposes that the table was indeed resorted and updates the column to indicate the new sort order and refreshes itself. This event macro corresponds to {Wx::GRID::EVT_GRID_COL_SORT} event type.
47
+ #
31
48
  # - {Wx::EvtHandler#evt_grid_tabbing}(meth = nil, &block): This event is generated when the user presses TAB or Shift-TAB in the grid. It can be used to customize the simple default TAB handling logic, e.g. to go to the next non-empty cell instead of just the next cell. See also {Wx::GRID::Grid#set_tab_behaviour}. This event is new since wxWidgets 2.9.5.
32
49
  #
33
50
  # ===
@@ -38,11 +55,11 @@ module Wx::GRID
38
55
 
39
56
  # @overload initialize()
40
57
  # Default constructor.
41
- # @return [GridEvent]
58
+ # @return [Wx::GRID::GridEvent]
42
59
  # @overload initialize(id, type, obj, row=-1, col=-1, x=-1, y=-1, sel=true, kbd=(Wx::KeyboardState.new()))
43
60
  # Constructor for initializing all event attributes.
44
61
  # @param id [Integer]
45
- # @param type [Integer]
62
+ # @param type [Wx::AUI::AuiMDIChildFrame::EventType]
46
63
  # @param obj [Wx::Object]
47
64
  # @param row [Integer]
48
65
  # @param col [Integer]
@@ -50,7 +67,7 @@ module Wx::GRID
50
67
  # @param y [Integer]
51
68
  # @param sel [true,false]
52
69
  # @param kbd [Wx::KeyboardState]
53
- # @return [GridEvent]
70
+ # @return [Wx::GRID::GridEvent]
54
71
  def initialize(*args) end
55
72
 
56
73
  # Returns true if the Alt key was down at the time of the event.
@@ -14,9 +14,13 @@ module Wx::GRID
14
14
  #
15
15
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::GRID::GridRangeSelectEvent} events.
16
16
  # Event handler methods:
17
+ #
17
18
  # - {Wx::EvtHandler#evt_grid_range_selecting}(meth = nil, &block): The user is selecting a group of contiguous cells. Processes a {Wx::GRID::EVT_GRID_RANGE_SELECTING} event type. This event is available in wxWidgets 3.1.5 and later only.
19
+ #
18
20
  # - {Wx::EvtHandler#evt_grid_cmd_range_selecting}(id, meth = nil, &block): The user is selecting a group of contiguous cells; variant taking a window identifier. Processes a {Wx::GRID::EVT_GRID_RANGE_SELECTING} event type. This event is available in wxWidgets 3.1.5 and later only.
21
+ #
19
22
  # - {Wx::EvtHandler#evt_grid_range_selected}(meth = nil, &block): The user selected a group of contiguous cells. Processes a {Wx::GRID::EVT_GRID_RANGE_SELECTED} event type. This event is available in wxWidgets 3.1.5 and later only and was called {Wx::EVT_GRID_RANGE_SELECT} in the previous versions.
23
+ #
20
24
  # - {Wx::EvtHandler#evt_grid_cmd_range_selected}(id, meth = nil, &block): The user selected a group of contiguous cells; variant taking a window identifier. Processes a {Wx::GRID::EVT_GRID_RANGE_SELECTED} event type. This event is available in wxWidgets 3.1.5 and later only and was called {Wx::EVT_GRID_CMD_RANGE_SELECT} in the previous versions.
21
25
  #
22
26
  # ===
@@ -27,17 +31,17 @@ module Wx::GRID
27
31
 
28
32
  # @overload initialize()
29
33
  # Default constructor.
30
- # @return [GridRangeSelectEvent]
34
+ # @return [Wx::GRID::GridRangeSelectEvent]
31
35
  # @overload initialize(id, type, obj, topLeft, bottomRight, sel=true, kbd=(Wx::KeyboardState.new()))
32
36
  # Constructor for initializing all event attributes.
33
37
  # @param id [Integer]
34
- # @param type [Integer]
38
+ # @param type [Wx::AUI::AuiMDIChildFrame::EventType]
35
39
  # @param obj [Wx::Object]
36
40
  # @param topLeft [Wx::GridCellCoords]
37
41
  # @param bottomRight [Wx::GridCellCoords]
38
42
  # @param sel [true,false]
39
43
  # @param kbd [Wx::KeyboardState]
40
- # @return [GridRangeSelectEvent]
44
+ # @return [Wx::GRID::GridRangeSelectEvent]
41
45
  def initialize(*args) end
42
46
 
43
47
  # Returns true if the Alt key was down at the time of the event.
@@ -11,11 +11,17 @@ module Wx::GRID
11
11
  #
12
12
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::GRID::GridSizeEvent} events.
13
13
  # Event handler methods:
14
+ #
14
15
  # - {Wx::EvtHandler#evt_grid_cmd_col_size}(id, meth = nil, &block): The user resized a column, corresponds to {Wx::GRID::EVT_GRID_COL_SIZE} event type.
16
+ #
15
17
  # - {Wx::EvtHandler#evt_grid_cmd_row_size}(id, meth = nil, &block): The user resized a row, corresponds to {Wx::GRID::EVT_GRID_ROW_SIZE} event type.
18
+ #
16
19
  # - {Wx::EvtHandler#evt_grid_row_auto_size}(meth = nil, &block): This event is sent when a row must be resized to its best size, e.g. when the user double clicks the row divider. The default implementation simply resizes the row to fit the row label (but not its contents as this could be too slow for big grids). This macro corresponds to {Wx::GRID::EVT_GRID_ROW_AUTO_SIZE} event type and is new since wxWidgets 3.1.7.
20
+ #
17
21
  # - {Wx::EvtHandler#evt_grid_col_size}(meth = nil, &block): Same as EVT_GRID_CMD_COL_SIZE() but uses {Wx::StandardID::ID_ANY} id.
22
+ #
18
23
  # - {Wx::EvtHandler#evt_grid_col_auto_size}(meth = nil, &block): This event is sent when a column must be resized to its best size, e.g. when the user double clicks the column divider. The default implementation simply resizes the column to fit the column label (but not its contents as this could be too slow for big grids). This macro corresponds to {Wx::GRID::EVT_GRID_COL_AUTO_SIZE} event type and is new since wxWidgets 2.9.5.
24
+ #
19
25
  # - {Wx::EvtHandler#evt_grid_row_size}(meth = nil, &block): Same as EVT_GRID_CMD_ROW_SIZE() but uses {Wx::StandardID::ID_ANY} id.
20
26
  #
21
27
  # ===
@@ -26,17 +32,17 @@ module Wx::GRID
26
32
 
27
33
  # @overload initialize()
28
34
  # Default constructor.
29
- # @return [GridSizeEvent]
35
+ # @return [Wx::GRID::GridSizeEvent]
30
36
  # @overload initialize(id, type, obj, rowOrCol=-1, x=-1, y=-1, kbd=(Wx::KeyboardState.new()))
31
37
  # Constructor for initializing all event attributes.
32
38
  # @param id [Integer]
33
- # @param type [Integer]
39
+ # @param type [Wx::AUI::AuiMDIChildFrame::EventType]
34
40
  # @param obj [Wx::Object]
35
41
  # @param rowOrCol [Integer]
36
42
  # @param x [Integer]
37
43
  # @param y [Integer]
38
44
  # @param kbd [Wx::KeyboardState]
39
- # @return [GridSizeEvent]
45
+ # @return [Wx::GRID::GridSizeEvent]
40
46
  def initialize(*args) end
41
47
 
42
48
  # Returns true if the Alt key was down at the time of the event.
@@ -13,12 +13,12 @@ module Wx::GRID
13
13
 
14
14
  # @overload initialize()
15
15
  # Default constructor creates an empty table.
16
- # @return [GridStringTable]
16
+ # @return [Wx::GRID::GridStringTable]
17
17
  # @overload initialize(numRows, numCols)
18
18
  # Constructor taking number of rows and columns.
19
19
  # @param numRows [Integer]
20
20
  # @param numCols [Integer]
21
- # @return [GridStringTable]
21
+ # @return [Wx::GRID::GridStringTable]
22
22
  def initialize(*args) end
23
23
 
24
24
  # Must be overridden to return the number of rows in the table.
@@ -204,7 +204,7 @@ module Wx::GRID
204
204
  # Prefer to use {Wx::GRID::GridTableBase#get_attr_ptr} to avoid the need to call DecRef() on the returned pointer manually.
205
205
  # @param row [Integer]
206
206
  # @param col [Integer]
207
- # @param kind [Wx::GridCellAttr::wxAttrKind]
207
+ # @param kind [Wx::GRID::GridCellAttr::AttrKind]
208
208
  # @return [Wx::GRID::GridCellAttr]
209
209
  def get_attr(row, col, kind) end
210
210
  alias_method :attr, :get_attr
@@ -212,7 +212,7 @@ module Wx::GRID
212
212
  # Set attribute of the specified cell.
213
213
  # By default this function is simply forwarded to Wx::GridCellAttrProvider#set_attr.
214
214
  # The table takes ownership of attr, i.e. will call DecRef() on it.
215
- # @param attr [Wx::GridCellAttr]
215
+ # @param attr [Wx::GRID::GridCellAttr]
216
216
  # @param row [Integer]
217
217
  # @param col [Integer]
218
218
  # @return [void]
@@ -221,7 +221,7 @@ module Wx::GRID
221
221
  # Set attribute of the specified row.
222
222
  # By default this function is simply forwarded to Wx::GridCellAttrProvider#set_row_attr.
223
223
  # The table takes ownership of attr, i.e. will call DecRef() on it.
224
- # @param attr [Wx::GridCellAttr]
224
+ # @param attr [Wx::GRID::GridCellAttr]
225
225
  # @param row [Integer]
226
226
  # @return [void]
227
227
  def set_row_attr(attr, row) end
@@ -229,13 +229,13 @@ module Wx::GRID
229
229
  # Set attribute of the specified column.
230
230
  # By default this function is simply forwarded to Wx::GridCellAttrProvider#set_col_attr.
231
231
  # The table takes ownership of attr, i.e. will call DecRef() on it.
232
- # @param attr [Wx::GridCellAttr]
232
+ # @param attr [Wx::GRID::GridCellAttr]
233
233
  # @param col [Integer]
234
234
  # @return [void]
235
235
  def set_col_attr(attr, col) end
236
236
 
237
237
  # Default constructor.
238
- # @return [GridTableBase]
238
+ # @return [Wx::GRID::GridTableBase]
239
239
  def initialize; end
240
240
 
241
241
  # Must be overridden to return the number of rows in the table.
@@ -264,13 +264,13 @@ module Wx::GRID
264
264
 
265
265
  # Called by the grid when the table is associated with it.
266
266
  # The default implementation stores the pointer and returns it from its {Wx::GRID::GridTableBase#get_view} and so only makes sense if the table cannot be associated with more than one grid at a time.
267
- # @param grid [Wx::Grid]
267
+ # @param grid [Wx::GRID::Grid]
268
268
  # @return [void]
269
269
  def set_view(grid) end
270
270
  alias_method :view=, :set_view
271
271
 
272
272
  # Returns the last grid passed to {Wx::GRID::GridTableBase#set_view}.
273
- # @return [Wx::Grid]
273
+ # @return [Wx::GRID::Grid]
274
274
  def get_view; end
275
275
  alias_method :view, :get_view
276
276
 
@@ -15,24 +15,24 @@ module Wx::GRID
15
15
 
16
16
  # @overload initialize()
17
17
  # Default constructor initializes the object to invalid state.
18
- # @return [GridTableMessage]
18
+ # @return [Wx::GRID::GridTableMessage]
19
19
  # @overload initialize(table, id, comInt1=-1, comInt2=-1)
20
20
  # Constructor really initialize the message.
21
- # @param table [Wx::GridTableBase] Pointer to the grid table
21
+ # @param table [Wx::GRID::GridTableBase] Pointer to the grid table
22
22
  # @param id [Integer] One of {Wx::GRID::GridTableRequest} enum elements.
23
23
  # @param comInt1 [Integer] For the insert/delete messages, position after which the rows or columns are inserted/deleted. For the append messages, the number of rows or columns that were appended.
24
24
  # @param comInt2 [Integer] For the insert/deleted messages, number of rows or columns to be inserted/deleted. For the append messages, this parameter is not used.
25
- # @return [GridTableMessage]
25
+ # @return [Wx::GRID::GridTableMessage]
26
26
  def initialize(*args) end
27
27
 
28
28
  # Sets the table object.
29
- # @param table [Wx::GridTableBase]
29
+ # @param table [Wx::GRID::GridTableBase]
30
30
  # @return [void]
31
31
  def set_table_object(table) end
32
32
  alias_method :table_object=, :set_table_object
33
33
 
34
34
  # Gets the table object.
35
- # @return [Wx::GridTableBase]
35
+ # @return [Wx::GRID::GridTableBase]
36
36
  def get_table_object; end
37
37
  alias_method :table_object, :get_table_object
38
38
 
@@ -151,7 +151,7 @@ module Wx
151
151
  # Constructor, with optional parameters to specify the gap between the rows and columns.
152
152
  # @param vgap [Integer]
153
153
  # @param hgap [Integer]
154
- # @return [GridBagSizer]
154
+ # @return [Wx::GridBagSizer]
155
155
  def initialize(vgap=0, hgap=0) end
156
156
 
157
157
  # Called when the managed size of the sizer is needed or when layout needs done.
@@ -213,12 +213,12 @@ module Wx
213
213
 
214
214
  # @overload initialize()
215
215
  # Default constructor, setting the rowspan and colspan to (1,1) meaning that the item occupies one cell in each direction.
216
- # @return [GBSpan]
216
+ # @return [Wx::GBSpan]
217
217
  # @overload initialize(rowspan, colspan)
218
218
  # Construct a new {Wx::GBSpan}, setting the rowspan and colspan.
219
219
  # @param rowspan [Integer]
220
220
  # @param colspan [Integer]
221
- # @return [GBSpan]
221
+ # @return [Wx::GBSpan]
222
222
  def initialize(*args) end
223
223
 
224
224
  # Get the current colspan value.
@@ -261,12 +261,12 @@ module Wx
261
261
 
262
262
  # @overload initialize()
263
263
  # Default constructor, setting the row and column to (0,0).
264
- # @return [GBPosition]
264
+ # @return [Wx::GBPosition]
265
265
  # @overload initialize(row, col)
266
266
  # Construct a new {Wx::GBPosition}, setting the row and column.
267
267
  # @param row [Integer]
268
268
  # @param col [Integer]
269
- # @return [GBPosition]
269
+ # @return [Wx::GBPosition]
270
270
  def initialize(*args) end
271
271
 
272
272
  # Get the current column value.
@@ -26,7 +26,7 @@ module Wx
26
26
  # @param cols [Integer]
27
27
  # @param vgap [Integer]
28
28
  # @param hgap [Integer]
29
- # @return [GridSizer]
29
+ # @return [Wx::GridSizer]
30
30
  # @overload initialize(cols, gap=(Wx::Size.new(0, 0)))
31
31
  # {Wx::GridSizer} constructors.
32
32
  # Usually only the number of columns in the flex grid sizer needs to be specified using cols argument. The number of rows will be deduced automatically depending on the number of the elements added to the sizer.
@@ -35,7 +35,7 @@ module Wx
35
35
  # The gap (or vgap and hgap, which correspond to the height and width of the {Wx::Size} object) argument defines the size of the padding between the rows (its vertical component, or vgap) and columns (its horizontal component, or hgap), in pixels.
36
36
  # @param cols [Integer]
37
37
  # @param gap [Array(Integer, Integer), Wx::Size]
38
- # @return [GridSizer]
38
+ # @return [Wx::GridSizer]
39
39
  # @overload initialize(rows, cols, vgap, hgap)
40
40
  # {Wx::GridSizer} constructors.
41
41
  # Usually only the number of columns in the flex grid sizer needs to be specified using cols argument. The number of rows will be deduced automatically depending on the number of the elements added to the sizer.
@@ -46,7 +46,7 @@ module Wx
46
46
  # @param cols [Integer]
47
47
  # @param vgap [Integer]
48
48
  # @param hgap [Integer]
49
- # @return [GridSizer]
49
+ # @return [Wx::GridSizer]
50
50
  # @overload initialize(rows, cols, gap)
51
51
  # {Wx::GridSizer} constructors.
52
52
  # Usually only the number of columns in the flex grid sizer needs to be specified using cols argument. The number of rows will be deduced automatically depending on the number of the elements added to the sizer.
@@ -56,7 +56,7 @@ module Wx
56
56
  # @param rows [Integer]
57
57
  # @param cols [Integer]
58
58
  # @param gap [Array(Integer, Integer), Wx::Size]
59
- # @return [GridSizer]
59
+ # @return [Wx::GridSizer]
60
60
  def initialize(*args) end
61
61
 
62
62
  # Returns the number of columns that has been specified for the sizer.
@@ -0,0 +1,132 @@
1
+ # :stopdoc:
2
+ # This file is automatically generated by the WXRuby3 documentation
3
+ # generator. Do not alter this file.
4
+ # :startdoc:
5
+
6
+
7
+ module Wx
8
+
9
+ # A generic implementation of the GUI event loop.
10
+ # ===
11
+ #
12
+ # Category: Application and Process Management
13
+ #
14
+ #
15
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
16
+ class GUIEventLoop < ::Object
17
+
18
+ # @return [Wx::GUIEventLoop]
19
+ def initialize; end
20
+
21
+ # Start the event loop, return the exit code when it is finished.
22
+ # Logically, this method calls {Wx::GUIEventLoop#dispatch} in a loop until it returns false and also takes care of generating idle events during each loop iteration. However not all implementations of this class really implement it like this (e.g. wxGTK does not) so you shouldn't rely on {Wx::GUIEventLoop#dispatch} being called from inside this function.
23
+ # The argument passed to {Wx::GUIEventLoop#exit} which terminated this event loop.
24
+ # @return [Integer]
25
+ def run; end
26
+
27
+ # Return true if this event loop is currently running.
28
+ # Notice that even if this event loop hasn't terminated yet but has just spawned a nested (e.g. modal) event loop, this method would return false.
29
+ # @return [true,false]
30
+ def is_running; end
31
+ alias_method :running?, :is_running
32
+
33
+ # Use this to check whether the event loop was successfully created before using it.
34
+ # @return [true,false]
35
+ def is_ok; end
36
+ alias_method :ok?, :is_ok
37
+
38
+ # Exit the currently running loop with the given exit code.
39
+ # The loop will exit, i.e. its {Wx::GUIEventLoop#run} method will return, during the next event loop iteration.
40
+ # Notice that this method can only be used if this event loop is the currently running one, i.e. its {Wx::GUIEventLoop#is_running} returns true. If this is not the case, an assert failure is triggered and nothing is done as outer event loops can't be exited from immediately. Use {Wx::GUIEventLoop#schedule_exit} if you'd like to exit this loop even if it doesn't run currently.
41
+ # @param rc [Integer]
42
+ # @return [void]
43
+ def exit(rc=0) end
44
+
45
+ # Schedule an exit from the loop with the given exit code.
46
+ # This method is similar to {Wx::GUIEventLoop#exit} but can be called even if this event loop is not the currently running one and if it is the active loop, then it works in exactly the same way as {Wx::GUIEventLoop#exit}.
47
+ # The loop will exit as soon as the control flow returns to it, i.e. after any nested loops terminate.
48
+ # @param rc [Integer]
49
+ # @return [void]
50
+ def schedule_exit(rc=0) end
51
+
52
+ # Return true if any events are available.
53
+ # If this method returns true, calling {Wx::GUIEventLoop#dispatch} will not block.
54
+ # @return [true,false]
55
+ def pending; end
56
+
57
+ # Dispatches the next event in the windowing system event queue.
58
+ # Blocks until an event appears if there are none currently (use {Wx::GUIEventLoop#pending} if this is not wanted).
59
+ # This can be used for programming event loops, e.g.
60
+ #
61
+ # ```ruby
62
+ # while evt_loop.pending
63
+ # evt_loop.dispatch
64
+ # ```
65
+ #
66
+ # false if the event loop should stop and true otherwise.
67
+ # @see Wx::GUIEventLoop#pending
68
+ # @see Wx::EventLoopBase
69
+ # @return [true,false]
70
+ def dispatch; end
71
+
72
+ # Dispatch an event but not wait longer than the specified timeout for it.
73
+ # If an event is received before the specified timeout expires, it is processed and the function returns 1 normally or 0 if the event loop should quite. Otherwise, i.e. if the timeout expires, the functions returns -1 without processing any events.
74
+ #
75
+ # 1 if an event was processed, 0 if the event loop should quit or -1 if the timeout expired.
76
+ # @param timeout [Integer] The maximal time to wait for the events in milliseconds.
77
+ # @return [Integer]
78
+ def dispatch_timeout(timeout) end
79
+
80
+ # Called by wxWidgets to wake up the event loop even if it is currently blocked inside {Wx::GUIEventLoop#dispatch}.
81
+ # @return [void]
82
+ def wake_up; end
83
+
84
+ # Makes sure that idle events are sent again.
85
+ # @return [void]
86
+ def wake_up_idle; end
87
+
88
+ # This virtual function is called when the application becomes idle and normally just sends {Wx::IdleEvent} to all interested parties.
89
+ # It should return true if more idle events are needed, false if not.
90
+ # @return [true,false]
91
+ def process_idle; end
92
+
93
+ # Returns true if called from inside {Wx::GUIEventLoop#yield} or from inside {Wx::GUIEventLoop#yield_for}.
94
+ # @return [true,false]
95
+ def is_yielding; end
96
+ alias_method :yielding?, :is_yielding
97
+
98
+ # Yields control to pending messages in the windowing system.
99
+ # This can be useful, for example, when a time-consuming process writes to a text window. Without an occasional yield, the text window will not be updated properly, and on systems with cooperative multitasking, other processes will not respond.
100
+ # Caution should be exercised, however, since yielding may allow the user to perform actions which are not compatible with the current task. Disabling menu items or whole menus during processing can avoid unwanted reentrance of code: see {Wx::SafeYield} for a better function.
101
+ # Note that {Wx::GUIEventLoop#yield} will not flush the message logs. This is intentional as calling {Wx::GUIEventLoop#yield} is usually done to quickly update the screen and popping up a message box dialog may be undesirable. If you do wish to flush the log messages immediately (otherwise it will be done during the next idle loop iteration), call {Wx::Log.flush_active}.
102
+ # If onlyIfNeeded parameter is true and the flow control is already inside {Wx::GUIEventLoop#yield}, i.e. {Wx::GUIEventLoop#is_yielding} returns true, the method just silently returns false and doesn't do anything.
103
+ # @param onlyIfNeeded [true,false]
104
+ # @return [true,false]
105
+ def yield(onlyIfNeeded=false) end
106
+
107
+ # Works like {Wx::GUIEventLoop#yield} with onlyIfNeeded == true, except that it allows the caller to specify a mask of the {Wx::EventCategory} values which indicates which events should be processed and which should instead be "delayed" (i.e.
108
+ # processed by the main loop later).
109
+ # Note that this is a safer alternative to {Wx::GUIEventLoop#yield} since it ensures that only the events you're interested to will be processed; i.e. this method helps to avoid unwanted reentrancies.
110
+ # Note that currently only wxMSW and wxGTK do support selective yield of native events coming from the underlying GUI toolkit. wxWidgets events posted using {Wx::EvtHandler#add_pending_event} or {Wx::EvtHandler#queue_event} are instead selectively processed by all ports.
111
+ # @see Wx::Event#get_event_category
112
+ # @param eventsToProcess [Integer]
113
+ # @return [true,false]
114
+ def yield_for(eventsToProcess) end
115
+
116
+ # Returns true if the given event category is allowed inside a {Wx::GUIEventLoop#yield_for} call (i.e.
117
+ # compares the given category against the last mask passed to {Wx::GUIEventLoop#yield_for}).
118
+ # @see Wx::Event#get_event_category
119
+ # @param cat [EventCategory]
120
+ # @return [true,false]
121
+ def is_event_allowed_inside_yield(cat) end
122
+ alias_method :event_allowed_inside_yield?, :is_event_allowed_inside_yield
123
+
124
+ # Returns true if this is the main loop executed by {Wx::App#on_run}.
125
+ # @return [true,false]
126
+ def is_main; end
127
+ alias_method :main?, :is_main
128
+
129
+ end # GUIEventLoop
130
+
131
+
132
+ end