wxruby3 0.9.0.pre.rc.2-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 (341) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +30 -8
  3. data/README.md +3 -3
  4. data/ext/wxbase32u_gcc_custom.dll +0 -0
  5. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  7. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  19. data/lib/wx/core/event_loop.rb +7 -0
  20. data/lib/wx/core/image.rb +33 -0
  21. data/lib/wx/core/listctrl.rb +17 -13
  22. data/lib/wx/core/log.rb +90 -0
  23. data/lib/wx/doc/bitmap.rb +11 -15
  24. data/lib/wx/doc/event_loop.rb +7 -0
  25. data/lib/wx/doc/extra/00_starting.md +6 -6
  26. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  27. data/lib/wx/doc/extra/09_exceptions.md +1 -1
  28. data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
  29. data/lib/wx/doc/font.rb +1 -1
  30. data/lib/wx/doc/functions.rb +51 -23
  31. data/lib/wx/doc/gc_dc.rb +1 -1
  32. data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
  33. data/lib/wx/doc/gen/accelerator.rb +6 -6
  34. data/lib/wx/doc/gen/accessible.rb +6 -2
  35. data/lib/wx/doc/gen/activity_indicator.rb +5 -5
  36. data/lib/wx/doc/gen/animation.rb +7 -7
  37. data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
  38. data/lib/wx/doc/gen/any_button.rb +1 -1
  39. data/lib/wx/doc/gen/app.rb +17 -11
  40. data/lib/wx/doc/gen/art_provider.rb +61 -1
  41. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  42. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  43. data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
  44. data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
  45. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
  46. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
  47. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
  48. data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
  49. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  50. data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
  51. data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
  52. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +33 -18
  53. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
  54. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
  55. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
  56. data/lib/wx/doc/gen/bitmap.rb +32 -26
  57. data/lib/wx/doc/gen/bitmap_button.rb +10 -6
  58. data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
  59. data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
  60. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  61. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  62. data/lib/wx/doc/gen/brush.rb +16 -4
  63. data/lib/wx/doc/gen/busy_info.rb +1 -1
  64. data/lib/wx/doc/gen/button.rb +19 -7
  65. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  66. data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
  67. data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
  68. data/lib/wx/doc/gen/calendar_event.rb +3 -3
  69. data/lib/wx/doc/gen/caret.rb +2 -2
  70. data/lib/wx/doc/gen/check_box.rb +10 -6
  71. data/lib/wx/doc/gen/check_list_box.rb +8 -7
  72. data/lib/wx/doc/gen/choice.rb +7 -6
  73. data/lib/wx/doc/gen/choicebook.rb +12 -6
  74. data/lib/wx/doc/gen/client_dc.rb +1 -1
  75. data/lib/wx/doc/gen/clipboard.rb +1 -1
  76. data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
  77. data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
  78. data/lib/wx/doc/gen/colour.rb +16 -6
  79. data/lib/wx/doc/gen/colour_dialog.rb +6 -6
  80. data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
  81. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  82. data/lib/wx/doc/gen/combo_box.rb +22 -13
  83. data/lib/wx/doc/gen/context_help_button.rb +4 -3
  84. data/lib/wx/doc/gen/control.rb +9 -6
  85. data/lib/wx/doc/gen/core.rb +5 -2
  86. data/lib/wx/doc/gen/cursor.rb +16 -11
  87. data/lib/wx/doc/gen/data_format.rb +2 -2
  88. data/lib/wx/doc/gen/data_object.rb +23 -16
  89. data/lib/wx/doc/gen/date_event.rb +3 -3
  90. data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
  91. data/lib/wx/doc/gen/dc.rb +37 -12
  92. data/lib/wx/doc/gen/defs.rb +16 -16
  93. data/lib/wx/doc/gen/dialog.rb +19 -5
  94. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  95. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  96. data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
  97. data/lib/wx/doc/gen/drag_drop.rb +15 -15
  98. data/lib/wx/doc/gen/drag_image.rb +6 -6
  99. data/lib/wx/doc/gen/editable_list_box.rb +7 -3
  100. data/lib/wx/doc/gen/event.rb +44 -13
  101. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  102. data/lib/wx/doc/gen/event_filter.rb +5 -2
  103. data/lib/wx/doc/gen/event_list.rb +15 -15
  104. data/lib/wx/doc/gen/events.rb +215 -79
  105. data/lib/wx/doc/gen/evt_handler.rb +1 -1
  106. data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
  107. data/lib/wx/doc/gen/file_dialog.rb +16 -7
  108. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  109. data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
  110. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  111. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  112. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  113. data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
  114. data/lib/wx/doc/gen/font.rb +30 -29
  115. data/lib/wx/doc/gen/font_data.rb +9 -5
  116. data/lib/wx/doc/gen/font_dialog.rb +3 -3
  117. data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
  118. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  119. data/lib/wx/doc/gen/frame.rb +34 -11
  120. data/lib/wx/doc/gen/fs_file.rb +4 -17
  121. data/lib/wx/doc/gen/gauge.rb +11 -7
  122. data/lib/wx/doc/gen/gcdc.rb +5 -1
  123. data/lib/wx/doc/gen/gdi_common.rb +35 -33
  124. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  125. data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
  126. data/lib/wx/doc/gen/graphics_context.rb +29 -28
  127. data/lib/wx/doc/gen/graphics_object.rb +1 -1
  128. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
  129. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
  130. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
  131. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
  132. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  133. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
  134. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
  135. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
  136. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
  137. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  138. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
  139. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  140. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  141. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  142. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  143. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
  144. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
  145. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
  146. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
  147. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
  148. data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
  149. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  150. data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
  151. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
  152. data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
  153. data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
  154. data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
  155. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  156. data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
  157. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  158. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  159. data/lib/wx/doc/gen/help_controller.rb +18 -12
  160. data/lib/wx/doc/gen/html/html_cell.rb +36 -18
  161. data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
  162. data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
  163. data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
  164. data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
  165. data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
  166. data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
  167. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  168. data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
  169. data/lib/wx/doc/gen/html/html_printout.rb +15 -5
  170. data/lib/wx/doc/gen/html/html_window.rb +19 -8
  171. data/lib/wx/doc/gen/hyperlink_ctrl.rb +12 -7
  172. data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
  173. data/lib/wx/doc/gen/icon.rb +14 -14
  174. data/lib/wx/doc/gen/image.rb +119 -64
  175. data/lib/wx/doc/gen/image_list.rb +10 -6
  176. data/lib/wx/doc/gen/keyboard_state.rb +7 -7
  177. data/lib/wx/doc/gen/list_box.rb +30 -21
  178. data/lib/wx/doc/gen/list_ctrl.rb +169 -78
  179. data/lib/wx/doc/gen/list_event.rb +24 -2
  180. data/lib/wx/doc/gen/listbook.rb +12 -6
  181. data/lib/wx/doc/gen/locale.rb +11 -36
  182. data/lib/wx/doc/gen/log.rb +122 -45
  183. data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
  184. data/lib/wx/doc/gen/mdi_frame.rb +15 -9
  185. data/lib/wx/doc/gen/media_ctrl.rb +7 -4
  186. data/lib/wx/doc/gen/media_event.rb +8 -2
  187. data/lib/wx/doc/gen/memory_dc.rb +23 -27
  188. data/lib/wx/doc/gen/menu.rb +9 -9
  189. data/lib/wx/doc/gen/menu_bar.rb +4 -4
  190. data/lib/wx/doc/gen/menu_item.rb +115 -34
  191. data/lib/wx/doc/gen/message_dialog.rb +48 -30
  192. data/lib/wx/doc/gen/mini_frame.rb +12 -3
  193. data/lib/wx/doc/gen/mouse_state.rb +1 -1
  194. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  195. data/lib/wx/doc/gen/non_owned_window.rb +6 -7
  196. data/lib/wx/doc/gen/notebook.rb +20 -15
  197. data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
  198. data/lib/wx/doc/gen/object.rb +2 -2
  199. data/lib/wx/doc/gen/palette.rb +3 -3
  200. data/lib/wx/doc/gen/panel.rb +4 -3
  201. data/lib/wx/doc/gen/pen.rb +25 -12
  202. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
  203. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
  204. data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
  205. data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
  206. data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
  207. data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
  208. data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
  209. data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
  210. data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
  211. data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
  212. data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
  213. data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
  214. data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
  215. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
  216. data/lib/wx/doc/gen/picker_base.rb +12 -11
  217. data/lib/wx/doc/gen/platform_info.rb +7 -7
  218. data/lib/wx/doc/gen/popup_window.rb +6 -6
  219. data/lib/wx/doc/gen/progress_dialog.rb +1 -1
  220. data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
  221. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  222. data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
  223. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  224. data/lib/wx/doc/gen/prt/print_data.rb +24 -18
  225. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  226. data/lib/wx/doc/gen/prt/printer.rb +22 -22
  227. data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
  228. data/lib/wx/doc/gen/radio_box.rb +12 -10
  229. data/lib/wx/doc/gen/radio_button.rb +8 -6
  230. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
  231. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
  232. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  233. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
  234. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
  235. data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
  236. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
  237. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  238. data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
  239. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
  240. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  241. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
  242. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
  243. data/lib/wx/doc/gen/region.rb +9 -8
  244. data/lib/wx/doc/gen/region_iterator.rb +2 -2
  245. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
  246. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
  247. data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
  248. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
  249. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
  250. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
  251. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
  252. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  253. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  254. data/lib/wx/doc/gen/sash_event.rb +3 -1
  255. data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
  256. data/lib/wx/doc/gen/sash_window.rb +8 -3
  257. data/lib/wx/doc/gen/scroll_bar.rb +29 -8
  258. data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
  259. data/lib/wx/doc/gen/scrolled_control.rb +41 -23
  260. data/lib/wx/doc/gen/scrolled_window.rb +41 -23
  261. data/lib/wx/doc/gen/search_ctrl.rb +15 -8
  262. data/lib/wx/doc/gen/simplebook.rb +2 -2
  263. data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
  264. data/lib/wx/doc/gen/sizer.rb +29 -28
  265. data/lib/wx/doc/gen/slider.rb +49 -16
  266. data/lib/wx/doc/gen/spin_button.rb +15 -9
  267. data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
  268. data/lib/wx/doc/gen/spin_event.rb +5 -2
  269. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  270. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  271. data/lib/wx/doc/gen/splitter_window.rb +20 -4
  272. data/lib/wx/doc/gen/static_bitmap.rb +5 -5
  273. data/lib/wx/doc/gen/static_box.rb +36 -32
  274. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  275. data/lib/wx/doc/gen/static_line.rb +5 -4
  276. data/lib/wx/doc/gen/static_text.rb +12 -6
  277. data/lib/wx/doc/gen/status_bar.rb +14 -5
  278. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
  279. data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
  280. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  281. data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
  282. data/lib/wx/doc/gen/system_options.rb +11 -1
  283. data/lib/wx/doc/gen/system_settings.rb +3 -3
  284. data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
  285. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  286. data/lib/wx/doc/gen/text_attr.rb +11 -7
  287. data/lib/wx/doc/gen/text_ctrl.rb +61 -92
  288. data/lib/wx/doc/gen/text_entry.rb +28 -40
  289. data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
  290. data/lib/wx/doc/gen/text_validator.rb +0 -11
  291. data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
  292. data/lib/wx/doc/gen/timer.rb +8 -4
  293. data/lib/wx/doc/gen/timer_event.rb +19 -26
  294. data/lib/wx/doc/gen/tip_provider.rb +1 -1
  295. data/lib/wx/doc/gen/toggle_button.rb +6 -5
  296. data/lib/wx/doc/gen/tool_bar.rb +41 -24
  297. data/lib/wx/doc/gen/tool_tip.rb +2 -2
  298. data/lib/wx/doc/gen/toolbook.rb +6 -3
  299. data/lib/wx/doc/gen/top_level_window.rb +35 -25
  300. data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
  301. data/lib/wx/doc/gen/tree_event.rb +23 -2
  302. data/lib/wx/doc/gen/treebook.rb +6 -2
  303. data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
  304. data/lib/wx/doc/gen/utils.rb +9 -3
  305. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  306. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  307. data/lib/wx/doc/gen/validator.rb +7 -5
  308. data/lib/wx/doc/gen/variant.rb +34 -97
  309. data/lib/wx/doc/gen/window.rb +157 -102
  310. data/lib/wx/doc/gen/window_dc.rb +1 -1
  311. data/lib/wx/doc/gen/with_images.rb +1 -1
  312. data/lib/wx/doc/gen/wizard.rb +17 -4
  313. data/lib/wx/doc/gen/wizard_event.rb +9 -2
  314. data/lib/wx/doc/gen/wizard_page.rb +1 -1
  315. data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
  316. data/lib/wx/doc/gen/xml_node.rb +3 -3
  317. data/lib/wx/doc/gen/xml_resource.rb +12 -9
  318. data/lib/wx/doc/image.rb +42 -12
  319. data/lib/wx/doc/list_ctrl.rb +32 -0
  320. data/lib/wx/doc/log.rb +28 -0
  321. data/lib/wx/doc/prt/printer_dc.rb +2 -2
  322. data/lib/wx/doc/scaled_dc.rb +1 -1
  323. data/lib/wx/doc/text_validator.rb +12 -0
  324. data/lib/wx/version.rb +1 -1
  325. data/lib/wxruby_aui.so +0 -0
  326. data/lib/wxruby_core.so +0 -0
  327. data/lib/wxruby_grid.so +0 -0
  328. data/lib/wxruby_html.so +0 -0
  329. data/lib/wxruby_pg.so +0 -0
  330. data/lib/wxruby_prt.so +0 -0
  331. data/lib/wxruby_rbn.so +0 -0
  332. data/lib/wxruby_rtc.so +0 -0
  333. data/lib/wxruby_stc.so +0 -0
  334. data/tests/test_art.rb +9 -0
  335. data/tests/test_box_sizer.rb +161 -0
  336. data/tests/test_grid_sizer.rb +148 -0
  337. data/tests/test_list_ctrl.rb +53 -0
  338. data/tests/test_log.rb +163 -0
  339. data/tests/test_std_controls.rb +58 -0
  340. data/tests/test_timer.rb +95 -0
  341. metadata +13 -2
@@ -17,13 +17,21 @@ module Wx
17
17
  #
18
18
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::TaskBarIconEvent} events.
19
19
  # Event handler methods for events emitted by this class:{Wx::TaskBarIcon#create_popup_menu} or {Wx::TaskBarIcon#get_popup_menu} if all that the application does is that it shows a popup menu in reaction to mouse click.
20
+ #
20
21
  # - {Wx::EvtHandler#evt_taskbar_move}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_MOVE} event.
22
+ #
21
23
  # - {Wx::EvtHandler#evt_taskbar_left_down}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_LEFT_DOWN} event.
24
+ #
22
25
  # - {Wx::EvtHandler#evt_taskbar_left_up}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_LEFT_UP} event.
26
+ #
23
27
  # - {Wx::EvtHandler#evt_taskbar_right_down}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_RIGHT_DOWN} event.
28
+ #
24
29
  # - {Wx::EvtHandler#evt_taskbar_right_up}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_RIGHT_UP} event.
30
+ #
25
31
  # - {Wx::EvtHandler#evt_taskbar_left_dclick}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_LEFT_DCLICK} event.
32
+ #
26
33
  # - {Wx::EvtHandler#evt_taskbar_right_dclick}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_RIGHT_DCLICK} event.
34
+ #
27
35
  # - {Wx::EvtHandler#evt_taskbar_click}(meth = nil, &block): This is a synonym for either EVT_TASKBAR_RIGHT_DOWN or UP depending on the platform, use this event macro to catch the event which should result in the menu being displayed on the current platform.
28
36
  #
29
37
  # ===
@@ -33,9 +41,9 @@ module Wx
33
41
  class TaskBarIcon < EvtHandler
34
42
 
35
43
  # Default constructor.
36
- # The iconType is only applicable on {Wx::OSX}/Cocoa.
44
+ # The iconType is only applicable on wxOSX/Cocoa.
37
45
  # @param iconType [TaskBarIconType]
38
- # @return [TaskBarIcon]
46
+ # @return [Wx::TaskBarIcon]
39
47
  def initialize(iconType=Wx::TaskBarIconType::TBI_DEFAULT_TYPE) end
40
48
 
41
49
  # This method is similar to {Wx::Window#destroy} and can be used to schedule the task bar icon object for the delayed destruction: it will be deleted during the next event loop iteration, which allows the task bar icon to process any pending events for it before being destroyed.
@@ -6,7 +6,7 @@
6
6
 
7
7
  module Wx
8
8
 
9
- # On {Wx::OSX}/Cocoa the taskbar icon can be in the doc or in the status area.
9
+ # On wxOSX/Cocoa the taskbar icon can be in the doc or in the status area.
10
10
  #
11
11
  # This enumeration can be used to select which will be instantiated.
12
12
  #
@@ -75,9 +75,9 @@ module Wx
75
75
  class TaskBarIconEvent < Event
76
76
 
77
77
  # Constructor.
78
- # @param evtType [Integer]
78
+ # @param evtType [Wx::AUI::AuiMDIChildFrame::EventType]
79
79
  # @param tbIcon [Wx::TaskBarIcon]
80
- # @return [TaskBarIconEvent]
80
+ # @return [Wx::TaskBarIconEvent]
81
81
  def initialize(evtType, tbIcon) end
82
82
 
83
83
  end # TaskBarIconEvent
@@ -19,18 +19,18 @@ module Wx
19
19
 
20
20
  # @overload initialize()
21
21
  # Constructors.
22
- # @return [TextAttr]
22
+ # @return [Wx::TextAttr]
23
23
  # @overload initialize(colText, colBack=Wx::NULL_COLOUR, font=Wx::NULL_FONT, alignment=Wx::TextAttrAlignment::TEXT_ALIGNMENT_DEFAULT)
24
24
  # Constructors.
25
25
  # @param colText [Wx::Colour,String,Symbol]
26
26
  # @param colBack [Wx::Colour,String,Symbol]
27
27
  # @param font [Wx::Font,Wx::FontInfo]
28
28
  # @param alignment [TextAttrAlignment]
29
- # @return [TextAttr]
29
+ # @return [Wx::TextAttr]
30
30
  # @overload initialize(attr)
31
31
  # Constructors.
32
32
  # @param attr [Wx::TextAttr]
33
- # @return [TextAttr]
33
+ # @return [Wx::TextAttr]
34
34
  def initialize(*args) end
35
35
 
36
36
  # Returns the alignment flags.
@@ -52,7 +52,11 @@ module Wx
52
52
 
53
53
  # Returns the standard bullet name, applicable if the bullet style is {Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD}.
54
54
  # Currently the following standard bullet names are supported:
55
- # - <code>standard/circle</code> - <code>standard/square</code> - <code>standard/diamond</code> - <code>standard/triangle</code>
55
+ #
56
+ # - <code>standard/circle</code>
57
+ # - <code>standard/square</code>
58
+ # - <code>standard/diamond</code>
59
+ # - <code>standard/triangle</code>
56
60
  #
57
61
  # For {Wx::RTC::RichTextCtrl} users only: if you wish your rich text controls to support further bullet graphics, you can derive a class from {Wx::RichTextRenderer} or {Wx::RichTextStdRenderer}, override DrawStandardBullet and EnumerateStandardBulletNames, and set an instance of the class using {Wx::RTC::RichTextBuffer::SetRenderer}.
58
62
  # @return [Wx::String]
@@ -507,11 +511,11 @@ module Wx
507
511
  # @return [void]
508
512
  # @overload set_font_underlined(type, colour=Wx::NULL_COLOUR)
509
513
  # Sets the font underlining.
510
- # On {Wx::MSW}, {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_DOUBLE} is shown as {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SOLID}. There is only a limited number of colours supported, the RGB values are listed here. {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a waved line.
514
+ # On wxMSW, {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_DOUBLE} is shown as {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SOLID}. There is only a limited number of colours supported, the RGB values are listed here. {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a waved line.
511
515
  #
512
- # On {Wx::GTK}, underline colour is only supported by {Wx::GTK3}. {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a waved line. GTK might overrule the colour of {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL}.
516
+ # On wxGTK, underline colour is only supported by wxGTK3. {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a waved line. GTK might overrule the colour of {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL}.
513
517
  #
514
- # On {Wx::OSX}, {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a dotted line.
518
+ # On wxOSX, {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a dotted line.
515
519
  # @param type [TextAttrUnderlineType] Type of underline.
516
520
  # @param colour [Wx::Colour,String,Symbol] Colour to use for underlining, text colour is used by default.
517
521
  # @return [void]
@@ -481,28 +481,46 @@ module Wx
481
481
  # === Styles
482
482
  #
483
483
  # This class supports the following styles:
484
- #
484
+ #
485
485
  # - {Wx::TE_PROCESS_ENTER}: The control will generate the event {Wx::EVT_TEXT_ENTER} that can be handled by the program. Otherwise, i.e. either if this style not specified at all, or it is used, but there is no event handler for this event or the event handler called {Wx::Event#skip} to avoid overriding the default handling, pressing Enter key is either processed internally by the control or used to activate the default button of the dialog, if any.
486
- # - {Wx::TE_PROCESS_TAB}: Normally, TAB key is used for keyboard navigation and pressing it in a control switches focus to the next one. With this style, this won't happen and if the TAB is not otherwise processed (e.g. by {Wx::EVT_CHAR} event handler), a literal TAB character is inserted into the control. Notice that this style has no effect for single-line text controls when using {Wx::GTK}.
486
+ #
487
+ # - {Wx::TE_PROCESS_TAB}: Normally, TAB key is used for keyboard navigation and pressing it in a control switches focus to the next one. With this style, this won't happen and if the TAB is not otherwise processed (e.g. by {Wx::EVT_CHAR} event handler), a literal TAB character is inserted into the control. Notice that this style has no effect for single-line text controls when using wxGTK.
488
+ #
487
489
  # - {Wx::TE_MULTILINE}: The text control allows multiple lines. If this style is not specified, line break characters should not be used in the controls value.
490
+ #
488
491
  # - {Wx::TE_PASSWORD}: The text will be echoed as asterisks.
492
+ #
489
493
  # - {Wx::TE_READONLY}: The text will not be user-editable.
494
+ #
490
495
  # - {Wx::TE_RICH}: Use rich text control under MSW, this allows having more than 64KB of text in the control. This style is ignored under other platforms and it is recommended to use {Wx::TE_RICH2} instead of it under MSW.
496
+ #
491
497
  # - {Wx::TE_RICH2}: Use rich text control version 2.0 or higher under MSW, this style is ignored under other platforms. Note that this style may be turned on automatically even if it is not used explicitly when creating a text control with a long (i.e. much more than 64KiB) initial text, as creating the control would simply fail in this case under MSW if neither this style nor {Wx::TE_RICH} is used.
498
+ #
492
499
  # - {Wx::TE_AUTO_URL}: Highlight the URLs and generate the {Wx::TextUrlEvents} when mouse events occur over them.
500
+ #
493
501
  # - {Wx::TE_NOHIDESEL}: By default, the Windows text control doesn't show the selection when it doesn't have focus - use this style to force it to always show it. It doesn't do anything under other platforms.
502
+ #
494
503
  # - {Wx::HSCROLL}: A horizontal scrollbar will be created and used, so that text won't be wrapped.
495
- # - {Wx::TE_NO_VSCROLL}: For multiline controls only: vertical scrollbar will never be created. This limits the amount of text which can be entered into the control to what can be displayed in it under {Wx::MSW} but not under {Wx::GTK} or {Wx::OSX}. Currently not implemented for the other platforms.
504
+ #
505
+ # - {Wx::TE_NO_VSCROLL}: For multiline controls only: vertical scrollbar will never be created. This limits the amount of text which can be entered into the control to what can be displayed in it under wxMSW but not under wxGTK or wxOSX. Currently not implemented for the other platforms.
506
+ #
496
507
  # - {Wx::TE_LEFT}: The text in the control will be left-justified (default).
497
- # - {Wx::TE_CENTRE}: The text in the control will be centered ({Wx::MSW}, {Wx::GTK}, {Wx::OSX}).
498
- # - {Wx::TE_RIGHT}: The text in the control will be right-justified ({Wx::MSW}, {Wx::GTK}, {Wx::OSX}).
508
+ #
509
+ # - {Wx::TE_CENTRE}: The text in the control will be centered (wxMSW, wxGTK, wxOSX).
510
+ #
511
+ # - {Wx::TE_RIGHT}: The text in the control will be right-justified (wxMSW, wxGTK, wxOSX).
512
+ #
499
513
  # - {Wx::TE_DONTWRAP}: Same as {Wx::HSCROLL} style: don't wrap at all, show horizontal scrollbar instead.
500
- # - {Wx::TE_CHARWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at any position ({Wx::Univ}, {Wx::GTK}, {Wx::OSX}).
501
- # - {Wx::TE_WORDWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at word boundaries ({Wx::Univ}, {Wx::MSW}, {Wx::GTK}, {Wx::OSX}).
514
+ #
515
+ # - {Wx::TE_CHARWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at any position ({Wx::Univ}, wxGTK, wxOSX).
516
+ #
517
+ # - {Wx::TE_WORDWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at word boundaries ({Wx::Univ}, wxMSW, wxGTK, wxOSX).
518
+ #
502
519
  # - {Wx::TE_BESTWRAP}: For multiline controls only: wrap the lines at word boundaries or at any other character if there are words longer than the window width (this is the default).
520
+ #
503
521
  # - {Wx::TE_CAPITALIZE}: On PocketPC and Smartphone, causes the first letter to be capitalized.
504
522
  #
505
- # Note that alignment styles ({Wx::TE_LEFT}, {Wx::TE_CENTRE} and {Wx::TE_RIGHT}) can be changed dynamically after control creation on {Wx::MSW}, {Wx::GTK} and {Wx::OSX}. {Wx::TE_READONLY}, {Wx::TE_PASSWORD} and wrapping styles can be dynamically changed under {Wx::GTK} but not {Wx::MSW}. The other styles can be only set during control creation.
523
+ # Note that alignment styles ({Wx::TE_LEFT}, {Wx::TE_CENTRE} and {Wx::TE_RIGHT}) can be changed dynamically after control creation on wxMSW, wxGTK and wxOSX. {Wx::TE_READONLY}, {Wx::TE_PASSWORD} and wrapping styles can be dynamically changed under wxGTK but not wxMSW. The other styles can be only set during control creation.
506
524
  #
507
525
  # == wxTextCtrl Text Format
508
526
  #
@@ -522,67 +540,14 @@ module Wx
522
540
  # In either case, if the style doesn't specify some of the attributes (for example you only want to set the text colour but without changing the font nor the text background), the values of the default style will be used for them. If there is no default style, the attributes of the text control itself are used.
523
541
  # So the following code correctly describes what it does: the second call to {Wx::TextCtrl#set_default_style} doesn't change the text foreground colour (which stays red) while the last one doesn't change the background colour (which stays grey):
524
542
  #
543
+ # ```ruby
544
+ # text.set_default_style(Wx::TextAttr.new(Wx::RED))
545
+ # text.append_text("Red text\n")
546
+ # text.set_default_style(Wx::TextAttr.new(Wx::NULL_COLOUR, Wx::LIGHT_GREY))
547
+ # text.append_text("Red on grey text\n")
548
+ # text.set_default_style(Wx::TextAttr.new(Wx::BLUE))
549
+ # text.append_text("Blue on grey text\n")
525
550
  # ```
526
- # text->SetDefaultStyle(wxTextAttr(*wxRED));
527
- # text->AppendText("Red text\n");
528
- # text->SetDefaultStyle(wxTextAttr(wxNullColour, *wxLIGHT_GREY));
529
- # text->AppendText("Red on grey text\n");
530
- # text->SetDefaultStyle(wxTextAttr(*wxBLUE));
531
- # text->AppendText("Blue on grey text\n");
532
- # ```
533
- #
534
- # == wxTextCtrl and C++ Streams
535
- #
536
- # This class multiply-inherits from std::streambuf (except for some really old compilers using non-standard iostream library), allowing code such as the following:
537
- #
538
- # ```
539
- # wxTextCtrl *control = new wxTextCtrl(...);
540
- #
541
- # ostream stream(control)
542
- #
543
- # stream << 123.456 << " some text\n";
544
- # stream.flush();
545
- # ```
546
- #
547
- # Note that even if your build of wxWidgets doesn't support this (the symbol {Wx::HAS_TEXT_WINDOW_STREAM} has value of 0 then) you can still use {Wx::TextCtrl} itself in a stream-like manner:
548
- #
549
- # ```
550
- # wxTextCtrl *control = new wxTextCtrl(...);
551
- #
552
- # *control << 123.456 << " some text\n";
553
- # ```
554
- #
555
- # However the possibility to create a std::ostream associated with {Wx::TextCtrl} may be useful if you need to redirect the output of a function taking a std::ostream as parameter to a text control.
556
- # Another commonly requested need is to redirect std::cout to the text control. This may be done in the following way:
557
- #
558
- # ```
559
- # #include <iostream>
560
- #
561
- # wxTextCtrl *control = new wxTextCtrl(...);
562
- #
563
- # std::streambuf *sbOld = std::cout.rdbuf();
564
- # std::cout.rdbuf(control);
565
- #
566
- # // use cout as usual, the output appears in the text control
567
- # ...
568
- #
569
- # std::cout.rdbuf(sbOld);
570
- # ```
571
- #
572
- # But wxWidgets provides a convenient class to make it even simpler so instead you may just do
573
- #
574
- # ```
575
- # #include <iostream>
576
- #
577
- # wxTextCtrl *control = new wxTextCtrl(...);
578
- #
579
- # wxStreamToTextRedirector redirect(control);
580
- #
581
- # // all output to cout goes into the text control until the exit from
582
- # // current scope
583
- # ```
584
- #
585
- # See {Wx::StreamToTextRedirector} for more details.
586
551
  #
587
552
  # == Event Handling.
588
553
  #
@@ -591,16 +556,20 @@ module Wx
591
556
  #
592
557
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
593
558
  # Event handler methods for events emitted by this class:
559
+ #
594
560
  # - {Wx::EvtHandler#evt_text}(id, meth = nil, &block): Respond to a {Wx::EVT_TEXT} event, generated when the text changes. Notice that this event will be sent when the text controls contents changes whether this is due to user input or comes from the program itself (for example, if {Wx::TextCtrl#set_value} is called); see {Wx::TextCtrl#change_value} for a function which does not send this event. This event is however not sent during the control creation.
561
+ #
595
562
  # - {Wx::EvtHandler#evt_text_enter}(id, meth = nil, &block): Respond to a {Wx::EVT_TEXT_ENTER} event, generated when enter is pressed in a text control which must have {Wx::TE_PROCESS_ENTER} style for this event to be generated.
563
+ #
596
564
  # - {Wx::EvtHandler#evt_text_url}(id, meth = nil, &block): A mouse event occurred over an URL in the text control.
565
+ #
597
566
  # - {Wx::EvtHandler#evt_text_maxlen}(id, meth = nil, &block): This event is generated when the user tries to enter more text into the control than the limit set by {Wx::TextCtrl#set_max_length}, see its description.
598
567
  #
599
568
  # ===
600
569
  #
601
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
602
- # </td><td> {Wx::GTK} Appearance
603
- # </td><td> {Wx::OSX} Appearance
570
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
571
+ # </td><td> wxGTK Appearance
572
+ # </td><td> wxOSX Appearance
604
573
  # </td></tr></table></div>
605
574
  # @see Wx::TextCtrl#create
606
575
  # @see Wx::Validator
@@ -614,14 +583,14 @@ module Wx
614
583
  # This feature is enabled by default and will replace any new line (<code>\n</code>) character entered into a single-line text field with the space character. Usually single-line text fields are not expected to hold multiple lines of text (that is what {Wx::TE_MULTILINE} is for, after all) and it is impossible to have multiple lines of text in them under non-Mac platforms. However, under macOS/Cocoa, a single-line text control can still show multiple lines and this function allows to lift the restriction preventing multiple lines from being entered unless {Wx::TE_MULTILINE} is specified.
615
584
  # This function is only available for macOS/Cocoa. It also has no effect if the {Wx::TE_MULTILINE} flag is set on a text control.
616
585
  #
617
- # Availability: only available for the {Wx::OSX/Cocoa} port. {Wx::osx}
586
+ # Availability: only available for the wxOSX/Cocoa port. {Wx::osx}
618
587
  # @param enable [true,false]
619
588
  # @return [void]
620
589
  def osx_enable_new_line_replacement(enable) end
621
590
 
622
591
  # @overload initialize()
623
592
  # Default ctor.
624
- # @return [TextCtrl]
593
+ # @return [Wx::TextCtrl]
625
594
  # @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr)
626
595
  # Constructor, creating and showing a text control.
627
596
  # The horizontal scrollbar ({Wx::HSCROLL} style flag) will only be created for multi-line text controls. Without a horizontal scrollbar, text lines that don't fit in the control's size will be wrapped (but no newline character is inserted). Single line controls don't have a horizontal scrollbar, the text is automatically scrolled so that the insertion point is always visible.
@@ -635,7 +604,7 @@ module Wx
635
604
  # @param style [Integer] Window style. See {Wx::TextCtrl}.
636
605
  # @param validator [Wx::Validator] Window validator.
637
606
  # @param name [String] Window name.
638
- # @return [TextCtrl]
607
+ # @return [Wx::TextCtrl]
639
608
  def initialize(*args) end
640
609
 
641
610
  # Creates the text control for two-step construction.
@@ -648,7 +617,7 @@ module Wx
648
617
  # @param style [Integer]
649
618
  # @param validator [Wx::Validator]
650
619
  # @param name [String]
651
- # @return [void]
620
+ # @return []
652
621
  def create(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr) end
653
622
 
654
623
  # Resets the internal modified flag as if the current changes had been saved.
@@ -656,7 +625,7 @@ module Wx
656
625
  def discard_edits; end
657
626
 
658
627
  # Delete the undo history.
659
- # Currently only implemented in {Wx::MSW} (for controls using {Wx::TE_RICH2} style only) and {Wx::OSX} (for multiline text controls only), does nothing in the other ports or for the controls not using the appropriate styles.
628
+ # Currently only implemented in wxMSW (for controls using {Wx::TE_RICH2} style only) and wxOSX (for multiline text controls only), does nothing in the other ports or for the controls not using the appropriate styles.
660
629
  # @return [void]
661
630
  def empty_undo_buffer; end
662
631
 
@@ -664,16 +633,16 @@ module Wx
664
633
  # The event object should be the same as the one passed to EVT_KEY_DOWN handler previously by wxWidgets. Please note that this function doesn't currently work correctly for all keys under any platform but MSW.
665
634
  # true if the event resulted in a change to the control, false otherwise.
666
635
  # @param event [Wx::KeyEvent]
667
- # @return [void]
636
+ # @return []
668
637
  def emulate_key_press(event) end
669
638
 
670
639
  # Enable or disable native spell checking on this text control if it is available on the current platform.
671
- # Currently this is supported in {Wx::MSW} (when running under Windows 8 or later), {Wx::GTK} when using GTK 3 and {Wx::OSX}. In addition, {Wx::MSW} requires that the text control has the {Wx::TE_RICH2} style set, while {Wx::OSX} requires that the control has the {Wx::TE_MULTILINE} style.
672
- # When using {Wx::GTK}, this method only works if gspell library was available during the library build.
640
+ # Currently this is supported in wxMSW (when running under Windows 8 or later), wxGTK when using GTK 3 and wxOSX. In addition, wxMSW requires that the text control has the {Wx::TE_RICH2} style set, while wxOSX requires that the control has the {Wx::TE_MULTILINE} style.
641
+ # When using wxGTK, this method only works if gspell library was available during the library build.
673
642
  #
674
643
  # true if proof checking has been successfully enabled or disabled, false otherwise (usually because the corresponding functionality is not available under the current platform or for this type of text control).
675
644
  # @param options [Wx::TextProofOptions] A {Wx::TextProofOptions} object specifying the desired behaviour of the proof checker (e.g. language to use, spell check, grammar check, etc.) and whether the proof checks should be enabled at all. By default, spelling checks for the current language are enabled. Passing Wx::TextProofOptions#disable disables all the checks.
676
- # @return [void]
645
+ # @return []
677
646
  def enable_proof_check(options=(Wx::TextProofOptions.default())) end
678
647
 
679
648
  # Returns the style currently used for the new text.
@@ -698,7 +667,7 @@ module Wx
698
667
  alias_method :line_text, :get_line_text
699
668
 
700
669
  # Returns the number of lines in the text control buffer.
701
- # The returned number is the number of logical lines, i.e. just the count of the number of newline characters in the control + 1, for {Wx::GTK} and {Wx::OSX}/Cocoa ports while it is the number of physical lines, i.e. the count of lines actually shown in the control, in {Wx::MSW}. Because of this discrepancy, it is not recommended to use this function.
670
+ # The returned number is the number of logical lines, i.e. just the count of the number of newline characters in the control + 1, for wxGTK and wxOSX/Cocoa ports while it is the number of physical lines, i.e. the count of lines actually shown in the control, in wxMSW. Because of this discrepancy, it is not recommended to use this function.
702
671
  # Note that even empty text controls have one line (where the insertion point is), so {Wx::TextCtrl#get_number_of_lines} never returns 0.
703
672
  # @return [Integer]
704
673
  def get_number_of_lines; end
@@ -711,13 +680,13 @@ module Wx
711
680
  # @see Wx::TextAttr
712
681
  # @param position [Integer]
713
682
  # @param style [Wx::TextAttr]
714
- # @return [void]
683
+ # @return []
715
684
  def get_style(position, style) end
716
685
  alias_method :style, :get_style
717
686
 
718
687
  # Finds the row and column of the character at the specified point.
719
688
  # If the return code is not {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} the row and column of the character closest to this position are returned, otherwise the output parameters are not modified.
720
- # Please note that this function is currently only implemented in {Wx::Univ}, {Wx::MSW} and {Wx::GTK} ports and always returns {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} in the other ports.
689
+ # Please note that this function is currently only implemented in {Wx::Univ}, wxMSW and wxGTK ports and always returns {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} in the other ports.
721
690
  # @see Wx::TextCtrl#position_to_xy
722
691
  # @see Wx::TextCtrl#xy_to_position
723
692
  # @param pt [Array(Integer, Integer), Wx::Point] The position of the point to check, in window device coordinates.
@@ -727,14 +696,14 @@ module Wx
727
696
  # Returns true if the text has been modified by user.
728
697
  # Note that calling {Wx::TextCtrl#set_value} doesn't make the control modified.
729
698
  # @see Wx::TextCtrl#mark_dirty
730
- # @return [void]
699
+ # @return []
731
700
  def is_modified; end
732
701
  alias_method :modified?, :is_modified
733
702
 
734
703
  # Returns true if this is a multi line edit control and false otherwise.
735
704
  #
736
705
  # @see Wx::TextCtrl#is_single_line
737
- # @return [void]
706
+ # @return []
738
707
  def is_multi_line; end
739
708
  alias_method :multi_line?, :is_multi_line
740
709
 
@@ -742,7 +711,7 @@ module Wx
742
711
  #
743
712
  # @see Wx::TextCtrl#is_single_line
744
713
  # @see Wx::TextCtrl#is_multi_line
745
- # @return [void]
714
+ # @return []
746
715
  def is_single_line; end
747
716
  alias_method :single_line?, :is_single_line
748
717
 
@@ -756,7 +725,7 @@ module Wx
756
725
  # true if successful, false otherwise.
757
726
  # @param filename [String] The filename of the file to load.
758
727
  # @param fileType [Integer] The type of file to load. This is currently ignored in {Wx::TextCtrl}.
759
- # @return [void]
728
+ # @return []
760
729
  def load_file(filename, fileType=Wx::TEXT_TYPE_ANY) end
761
730
 
762
731
  # Mark text as modified (dirty).
@@ -776,12 +745,12 @@ module Wx
776
745
  # true on success, false on failure (most likely due to a too large position parameter).
777
746
  # @see Wx::TextCtrl#xy_to_position
778
747
  # @param pos [Integer] Position.
779
- # @return [Array(Integer, Integer), nil]
748
+ # @return [Array(,Array(Integer, Integer), nil)]
780
749
  def position_to_xy(pos) end
781
750
 
782
751
  # Converts given text position to client coordinates in pixels.
783
752
  # This function allows finding where is the character at the given position displayed in the text control.
784
- # Availability: only available for the {Wx::MSW}, {Wx::GTK} ports. {Wx::msw},{Wx::gtk} . Additionally, {Wx::GTK} only implements this method for multiline controls and {Wx::DEFAULT_POSITION} is always returned for the single line ones.
753
+ # Availability: only available for the wxMSW, wxGTK ports. {Wx::msw},{Wx::gtk} . Additionally, wxGTK only implements this method for multiline controls and {Wx::DEFAULT_POSITION} is always returned for the single line ones.
785
754
  #
786
755
  # On success returns a {Wx::Point} which contains client coordinates for the given position in pixels, otherwise returns {Wx::DEFAULT_POSITION}.
787
756
  # @see Wx::TextCtrl#xy_to_position
@@ -794,7 +763,7 @@ module Wx
794
763
  # true if the operation was successful, false otherwise.
795
764
  # @param filename [String] The name of the file in which to save the text.
796
765
  # @param fileType [Integer] The type of file to save. This is currently ignored in {Wx::TextCtrl}.
797
- # @return [void]
766
+ # @return []
798
767
  def save_file(filename=(''), fileType=Wx::TEXT_TYPE_ANY) end
799
768
 
800
769
  # Changes the default style to use for the new text which is going to be added to the control.
@@ -805,7 +774,7 @@ module Wx
805
774
  # true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).
806
775
  # @see Wx::TextCtrl#get_default_style
807
776
  # @param style [Wx::TextAttr] The style for the new text.
808
- # @return [void]
777
+ # @return []
809
778
  def set_default_style(style) end
810
779
  alias_method :default_style=, :set_default_style
811
780
 
@@ -827,7 +796,7 @@ module Wx
827
796
  # @param start [Integer] The start of the range to change.
828
797
  # @param end_ [Integer]
829
798
  # @param style [Wx::TextAttr] The new style for the range.
830
- # @return [void]
799
+ # @return []
831
800
  def set_style(start, end_, style) end
832
801
 
833
802
  # Makes the line containing the given position visible.
@@ -61,7 +61,7 @@ module Wx
61
61
  def auto_complete(*args) end
62
62
 
63
63
  # Call this function to enable auto-completion of the text typed in a single-line text control using all valid file system paths.
64
- # Notice that currently this function is only implemented in {Wx::MSW} port and does nothing under the other platforms.
64
+ # Notice that currently this function is only implemented in wxMSW port and does nothing under the other platforms.
65
65
  #
66
66
  # true if the auto-completion was enabled or false if the operation failed, typically because auto-completion is not supported by the current platform.
67
67
  # @see Wx::TextEntry#auto_complete
@@ -70,7 +70,7 @@ module Wx
70
70
 
71
71
  # Call this function to enable auto-completion of the text using the file system directories.
72
72
  # Unlike {Wx::TextEntry#auto_complete_file_names} which completes both file names and directories, this function only completes the directory names.
73
- # Notice that currently this function is only implemented in {Wx::MSW} port and does nothing under the other platforms.
73
+ # Notice that currently this function is only implemented in wxMSW port and does nothing under the other platforms.
74
74
  #
75
75
  # true if the auto-completion was enabled or false if the operation failed, typically because auto-completion is not supported by the current platform.
76
76
  # @see Wx::TextEntry#auto_complete
@@ -135,15 +135,13 @@ module Wx
135
135
  # Notice that insertion position is, in general, different from the index of the character the cursor position at in the string returned by {Wx::TextEntry#get_value}. While this is always the case for the single line controls, multi-line controls can use two characters <code>"\\r\\n"</code> as line separator (this is notably the case under MSW) meaning that indices in the control and its string value are offset by 1 for every line.
136
136
  # Hence to correctly get the character at the current cursor position, taking into account that there can be none if the cursor is at the end of the string, you could do the following:
137
137
  #
138
- # ```
139
- # wxString GetCurrentChar(wxTextCtrl *tc)
140
- # {
141
- # long pos = tc->GetInsertionPoint();
142
- # if ( pos == tc->GetLastPosition() )
143
- # return wxString();
138
+ # ```ruby
139
+ # def get_current_char(txt_ctrl)
140
+ # pos = txt_ctrl.get_insertion_point
141
+ # return '' if pos == txt_ctrl.get_last_position
144
142
  #
145
- # return tc->GetRange(pos, pos + 1);
146
- # }
143
+ # txt_ctrl.get_range(pos, pos + 1)
144
+ # end
147
145
  # ```
148
146
  # @return [Integer]
149
147
  def get_insertion_point; end
@@ -238,7 +236,7 @@ module Wx
238
236
  # This function sets the maximum number of characters the user can enter into the control.
239
237
  # In other words, it allows limiting the text value length to len not counting the terminating NUL character.
240
238
  # If len is 0, the previously set max length limit, if any, is discarded and the user may enter as much text as the underlying native text control widget supports (typically at least 32Kb). If the user tries to enter more characters into the text control when it already is filled up to the maximal length, a {Wx::EVT_TEXT_MAXLEN} event is sent to notify the program about it (giving it the possibility to show an explanatory message, for example) and the extra input is discarded.
241
- # Note that in {Wx::GTK} this function may only be used with single line text controls.
239
+ # Note that in wxGTK this function may only be used with single line text controls.
242
240
  # @param len [Integer]
243
241
  # @return [void]
244
242
  def set_max_length(len) end
@@ -343,33 +341,24 @@ module Wx
343
341
  # A simpler base class for custom completer objects.
344
342
  # This class may be simpler to use than the base {Wx::TextCompleter} as it allows to implement only a single virtual method instead of two of them (at the price of storing all completions in a temporary array).
345
343
  # Here is a simple example of a custom completer that completes the names of some chess pieces. Of course, as the total list here has only four items it would have been much simpler to just specify the array containing all the completions in this example but the same approach could be used when the total number of completions is much higher provided the number of possibilities for each word is still relatively small:
346
- # ```
347
- # class MyTextCompleter : public wxTextCompleterSimple
348
- # {
349
- # public:
350
- # virtual void GetCompletions(const wxString& prefix, wxArrayString& res)
351
- # {
352
- # const wxString firstWord = prefix.BeforeFirst(' ');
353
- # if ( firstWord == "white" )
354
- # {
355
- # res.push_back("white pawn");
356
- # res.push_back("white rook");
357
- # }
358
- # else if ( firstWord == "black" )
359
- # {
360
- # res.push_back("black king");
361
- # res.push_back("black queen");
362
- # }
363
- # else
364
- # {
365
- # res.push_back("white");
366
- # res.push_back("black");
367
- # }
368
- # }
369
- # };
344
+ # ```ruby
345
+ # class MyTextCompleter < Wx::TextCompleterSimple
346
+ #
347
+ # def get_completions(prefix)
348
+ # firstWord = prefix.split(' ').shift
349
+ # if firstWord == 'white'
350
+ # ['white pawn', 'white rook']
351
+ # elsif firstWord == 'black'
352
+ # ['black king', 'black queen']
353
+ # else
354
+ # ['white', 'black']
355
+ # end
356
+ # end
357
+ #
358
+ # end
370
359
  # ...
371
- # wxTextCtrl *text = ...;
372
- # text->AutoComplete(new MyTextCompleter);
360
+ # text_ctrl = ...
361
+ # text_ctrl.auto_complete(MyTextCompleter.new)
373
362
  # ```
374
363
  #
375
364
  # ===
@@ -383,9 +372,8 @@ module Wx
383
372
  # Please notice that the returned values should start with the prefix, otherwise they will be simply ignored, making adding them to the array in the first place useless.
384
373
  # Notice that this function may be called from thread other than main one (this is currently always the case under MSW) so the appropriate synchronization mechanism should be used to protect the shared data.
385
374
  # @param prefix [String] The possibly empty prefix that the user had already entered.
386
- # @param res [Array<String>] Initially empty array that should be filled with all possible completions (possibly none if there are no valid possibilities starting with the given prefix).
387
- # @return [void]
388
- def get_completions(prefix, res) end
375
+ # @return [Array<String>]
376
+ def get_completions(prefix) end
389
377
  alias_method :completions, :get_completions
390
378
 
391
379
  end # TextCompleterSimple
@@ -53,14 +53,14 @@ module Wx
53
53
  # @overload set_text_validator(validator)
54
54
  # Associate a validator with the text control used by the dialog.
55
55
  # These methods can be used to limit the user entry to only some characters, e.g.
56
- # ```
57
- # wxTextEntryDialog dlg(this, ...);
58
- # dlg.SetTextValidator(wxFILTER_ALPHA);
59
- # if ( dlg.ShowModal() == wxID_OK )
60
- # {
61
- # // We can be certain that this string contains letters only.
62
- # wxString value = dlg.GetValue();
63
- # }
56
+ # ```ruby
57
+ # Wx::TextEntryDialog(self, ...) do |dlg|
58
+ # dlg.set_text_validator(Wx::FILTER_ALPHA)
59
+ # if dlg.show_modal == Wx::ID_OK
60
+ # # We can be certain that this string contains letters only.
61
+ # value = dlg.get_value
62
+ # end
63
+ # end
64
64
  # ```
65
65
  #
66
66
  # The first overload uses the provided validator which can be of a custom class derived from {Wx::TextValidator} while the second one creates a {Wx::TextValidator} with the specified style.
@@ -69,14 +69,14 @@ module Wx
69
69
  # @overload set_text_validator(style=Wx::TextValidatorStyle::FILTER_NONE)
70
70
  # Associate a validator with the text control used by the dialog.
71
71
  # These methods can be used to limit the user entry to only some characters, e.g.
72
- # ```
73
- # wxTextEntryDialog dlg(this, ...);
74
- # dlg.SetTextValidator(wxFILTER_ALPHA);
75
- # if ( dlg.ShowModal() == wxID_OK )
76
- # {
77
- # // We can be certain that this string contains letters only.
78
- # wxString value = dlg.GetValue();
79
- # }
72
+ # ```ruby
73
+ # Wx::TextEntryDialog(self, ...) do |dlg|
74
+ # dlg.set_text_validator(Wx::FILTER_ALPHA)
75
+ # if dlg.show_modal == Wx::ID_OK
76
+ # # We can be certain that this string contains letters only.
77
+ # value = dlg.get_value
78
+ # end
79
+ # end
80
80
  # ```
81
81
  #
82
82
  # The first overload uses the provided validator which can be of a custom class derived from {Wx::TextValidator} while the second one creates a {Wx::TextValidator} with the specified style.
@@ -88,7 +88,7 @@ module Wx
88
88
  # @overload initialize()
89
89
  # Default constructor.
90
90
  # Call {Wx::TextEntryDialog#create} to really create the dialog later.
91
- # @return [TextEntryDialog]
91
+ # @return [Wx::TextEntryDialog]
92
92
  # @overload initialize(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION)
93
93
  # Constructor.
94
94
  # Use {Wx::TextEntryDialog#show_modal} to show the dialog.
@@ -99,7 +99,7 @@ module Wx
99
99
  # @param value [String]
100
100
  # @param style [Integer]
101
101
  # @param pos [Array(Integer, Integer), Wx::Point]
102
- # @return [TextEntryDialog]
102
+ # @return [Wx::TextEntryDialog]
103
103
  def initialize(*args) end
104
104
 
105
105
  # @param parent [Wx::Window] Parent window.
@@ -161,7 +161,7 @@ module Wx
161
161
  # @param defaultValue [String] The default value, which may be the empty string.
162
162
  # @param style [Integer] A dialog style, specifying the buttons ({Wx::OK}, {Wx::CANCEL}) and an optional {Wx::GeometryCentre::CENTRE} style. You do not need to specify the {Wx::TE_PASSWORD} style, it is always applied.
163
163
  # @param pos [Array(Integer, Integer), Wx::Point] Dialog position.
164
- # @return [PasswordEntryDialog]
164
+ # @return [Wx::PasswordEntryDialog]
165
165
  def initialize(parent, message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, defaultValue=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION) end
166
166
 
167
167
  end # PasswordEntryDialog
@@ -80,17 +80,6 @@ module Wx
80
80
  #
81
81
  class TextValidator < Validator
82
82
 
83
- # @overload initialize(validator)
84
- # Copy constructor.
85
- # @param validator [Wx::TextValidator]
86
- # @return [TextValidator]
87
- # @overload initialize(style=Wx::TextValidatorStyle::FILTER_NONE, valPtr=nil)
88
- # Constructor taking a style and optional pointer to a {Wx::String} variable.
89
- # @param style [Integer] One or more of the {Wx::TextValidatorStyle} styles. See {Wx::TextValidator#set_style}.
90
- # @param valPtr [String] A pointer to a {Wx::String} variable that contains the value. This variable should have a lifetime equal to or longer than the validator lifetime (which is usually determined by the lifetime of the window).
91
- # @return [TextValidator]
92
- def initialize(*args) end
93
-
94
83
  # Clones the text validator using the copy constructor.
95
84
  # @return [Wx::TextValidator]
96
85
  def clone; end