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
@@ -148,7 +148,7 @@ module Wx
148
148
  def self.remove_filter(filter) end
149
149
 
150
150
  # Constructor.
151
- # @return [EvtHandler]
151
+ # @return [Wx::EvtHandler]
152
152
  def initialize; end
153
153
 
154
154
 
@@ -20,7 +20,7 @@ module Wx
20
20
  class ExtHelpController < Object
21
21
 
22
22
  # @param parentWindow [Wx::Window]
23
- # @return [ExtHelpController]
23
+ # @return [Wx::ExtHelpController]
24
24
  def initialize(parentWindow=nil) end
25
25
 
26
26
  # Tell it which browser to use.
@@ -52,59 +52,58 @@ module Wx
52
52
  # This class represents the file chooser dialog.
53
53
  # The path and filename are distinct elements of a full file pathname. If path is {Wx::EmptyString}, the current directory will be used. If filename is {Wx::EmptyString}, no default filename will be supplied. The wildcard determines what files are displayed in the file selector, and file extension supplies a type extension for the required filename.
54
54
  # The typical usage for the open file dialog is:
55
- # ```
56
- # void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event))
57
- # {
58
- # if (...current content has not been saved...)
59
- # {
60
- # if (wxMessageBox(_("Current content has not been saved! Proceed?"), _("Please confirm"),
61
- # wxICON_QUESTION | wxYES_NO, this) == wxNO )
62
- # return;
63
- # //else: proceed asking to the user the new file to open
64
- # }
65
- #
66
- # wxFileDialog
67
- # openFileDialog(this, _("Open XYZ file"), "", "",
68
- # "XYZ files (*.xyz)|*.xyz", wxFD_OPEN|wxFD_FILE_MUST_EXIST);
69
- #
70
- # if (openFileDialog.ShowModal() == wxID_CANCEL)
71
- # return; // the user changed idea...
72
- #
73
- # // proceed loading the file chosen by the user;
74
- # // this can be done with e.g. wxWidgets input streams:
75
- # wxFileInputStream input_stream(openFileDialog.GetPath());
76
- # if (!input_stream.IsOk())
77
- # {
78
- # wxLogError("Cannot open file '%s'.", openFileDialog.GetPath());
79
- # return;
80
- # }
55
+ # ```ruby
56
+ # class MyFrame
57
+ # ...
58
+ # def on_open(event)
59
+ # if (...current content has not been saved...)
60
+ # if Wx.message_box('Current content has not been saved! Proceed?', 'Please confirm',
61
+ # Wx::ICON_QUESTION | Wx::YES_NO, self) == Wx::NO
62
+ # return
63
+ # #else: proceed asking to the user the new file to open
64
+ # end
65
+ # end
81
66
  #
67
+ # Wx::FileDialog(self, "Open XYZ file", "", "",
68
+ # "XYZ files (*.xyz)|*.xyz", Wx::FD_OPEN|Wx::FD_FILE_MUST_EXIST) do |dlg|
69
+ # return if dlg.show_modal == Wx::ID_CANCEL # the user changed idea...?
70
+ #
71
+ # # proceed loading the file chosen by the user
72
+ # file = File.open(dlg.path, 'r') rescue nil
73
+ # unless file
74
+ # Wx.log_error("Cannot open file '#{dlg.path}'.")
75
+ # return
76
+ # end
82
77
  # ...
83
- # }
78
+ # end
79
+ # end
80
+ #
81
+ # end
84
82
  # ```
85
83
  #
86
84
  # The typical usage for the save file dialog is instead somewhat simpler:
87
- # ```
88
- # void MyFrame::OnSaveAs(wxCommandEvent& WXUNUSED(event))
89
- # {
90
- # wxFileDialog
91
- # saveFileDialog(this, _("Save XYZ file"), "", "",
92
- # "XYZ files (*.xyz)|*.xyz", wxFD_SAVE|wxFD_OVERWRITE_PROMPT);
93
- #
94
- # if (saveFileDialog.ShowModal() == wxID_CANCEL)
95
- # return; // the user changed idea...
96
- #
97
- # // save the current contents in the file;
98
- # // this can be done with e.g. wxWidgets output streams:
99
- # wxFileOutputStream output_stream(saveFileDialog.GetPath());
100
- # if (!output_stream.IsOk())
101
- # {
102
- # wxLogError("Cannot save current contents in file '%s'.", saveFileDialog.GetPath());
103
- # return;
104
- # }
85
+ # ```ruby
86
+ # class MyFrame
87
+ # ...
88
+ # def on_save_as(event)
89
+ # Wx::FileDialog(self, "Save XYZ file", "", "",
90
+ # "XYZ files (*.xyz)|*.xyz", Wx::FD_SAVE|Wx::FD_OVERWRITE_PROMPT) do |dlg|
91
+ # return if dlg.show_modal == Wx::ID_CANCEL # the user changed idea...?
105
92
  #
106
- # ...
107
- # }
93
+ # # save the current contents in the file
94
+ # begin
95
+ # File.open(dlg.path, 'w+') do |f|
96
+ # # save to file
97
+ # end
98
+ # rescue
99
+ # Wx.log_error("Cannot save current contents in file '#{dlg.path}'.")
100
+ # return
101
+ # end
102
+ # end
103
+ # ...
104
+ # end
105
+ #
106
+ # end
108
107
  # ```
109
108
  #
110
109
  # == Wildcard Filters
@@ -115,29 +114,38 @@ module Wx
115
114
  # ```
116
115
  #
117
116
  # On Mac macOS in the open file dialog the filter choice box is not shown by default. Instead all given wildcards are applied at the same time: So in the above example all bmp, gif and png files are displayed. To enforce the display of the filter choice set the corresponding {Wx::SystemOptions} before calling the file open dialog:
118
- # ```
119
- # wxSystemOptions::SetOption(wxOSX_FILEDIALOG_ALWAYS_SHOW_TYPES, 1)
117
+ # ```ruby
118
+ # Wx::SystemOptions.set_option(Wx::OSX_FILEDIALOG_ALWAYS_SHOW_TYPES, 1)
120
119
  # ```
121
120
  # But in contrast to Windows and Unix, where the file type choice filters only the selected files, on Mac macOS even in this case the dialog shows all files matching all file types. The files which does not match the currently selected file type are greyed out and are not selectable.
122
121
  #
123
122
  # == Dialog Customization
124
123
  #
125
124
  # Uniquely among the other standard dialogs, {Wx::FileDialog} can be customized by adding extra controls to it. Moreover, there are two ways to do it: the first one is to define a callback function and use {Wx::FileDialog#set_extra_control_creator} to tell the dialog to call it, while the second one requires defining a class inheriting from {Wx::FileDialogCustomizeHook} and implementing its virtual functions, notably Wx::FileDialogCustomizeHook#add_custom_controls where the extra controls have to be created, and finally calling {Wx::FileDialog#set_customize_hook} with this custom hook object.
126
- # The first approach is somewhat simpler and more flexible, as it allows to create any kind of custom controls, but is not supported by the "new style" (where "new" means used since Windows Vista, i.e. circa 2007) file dialogs under MSW. Because of this, calling {Wx::FileDialog#set_extra_control_creator} in {Wx::MSW} forces the use of old style (Windows XP) dialogs, that may look out of place. The second approach is implemented by the MSW dialogs natively and doesn't suffer from this limitation, so its use is recommended, especially if the few simple control types supported by it (see {Wx::FileDialogCustomize} for more information about the supported controls) are sufficient for your needs.
125
+ # The first approach is somewhat simpler and more flexible, as it allows to create any kind of custom controls, but is not supported by the "new style" (where "new" means used since Windows Vista, i.e. circa 2007) file dialogs under MSW. Because of this, calling {Wx::FileDialog#set_extra_control_creator} in wxMSW forces the use of old style (Windows XP) dialogs, that may look out of place. The second approach is implemented by the MSW dialogs natively and doesn't suffer from this limitation, so its use is recommended, especially if the few simple control types supported by it (see {Wx::FileDialogCustomize} for more information about the supported controls) are sufficient for your needs.
127
126
  # Both of the approaches to the dialog customization are demonstrated in the Dialogs Sample, please check it for more details.
128
127
  # === Styles
129
128
  #
130
129
  # This class supports the following styles:
131
- #
130
+ #
132
131
  # - {Wx::FD_DEFAULT_STYLE}: Equivalent to {Wx::FD_OPEN}.
132
+ #
133
133
  # - {Wx::FD_OPEN}: This is an open dialog; usually this means that the default button's label of the dialog is "Open". Cannot be combined with {Wx::FD_SAVE}.
134
+ #
134
135
  # - {Wx::FD_SAVE}: This is a save dialog; usually this means that the default button's label of the dialog is "Save". Cannot be combined with {Wx::FD_OPEN}.
135
- # - {Wx::FD_OVERWRITE_PROMPT}: For save dialog only: prompt for a confirmation if a file will be overwritten. This style is always enabled on {Wx::OSX} and cannot be disabled.
136
- # - {Wx::FD_NO_FOLLOW}: Directs the dialog to return the path and file name of the selected shortcut file, not its target as it does by default. Currently this flag is only implemented in {Wx::MSW} and {Wx::OSX} (where it prevents aliases from being resolved). The non-dereferenced link path is always returned, even without this flag, under Unix and so using it there doesn't do anything. This flag was added in wxWidgets 3.1.0.
136
+ #
137
+ # - {Wx::FD_OVERWRITE_PROMPT}: For save dialog only: prompt for a confirmation if a file will be overwritten. This style is always enabled on wxOSX and cannot be disabled.
138
+ #
139
+ # - {Wx::FD_NO_FOLLOW}: Directs the dialog to return the path and file name of the selected shortcut file, not its target as it does by default. Currently this flag is only implemented in wxMSW and wxOSX (where it prevents aliases from being resolved). The non-dereferenced link path is always returned, even without this flag, under Unix and so using it there doesn't do anything. This flag was added in wxWidgets 3.1.0.
140
+ #
137
141
  # - {Wx::FD_FILE_MUST_EXIST}: For open dialog only: the user may only select files that actually exist. Notice that under macOS the file dialog with {Wx::FD_OPEN} style always behaves as if this style was specified, because it is impossible to choose a file that doesn't exist from a standard macOS file dialog.
142
+ #
138
143
  # - {Wx::FD_MULTIPLE}: For open dialog only: allows selecting multiple files.
144
+ #
139
145
  # - {Wx::FD_CHANGE_DIR}: Change the current working directory (when the dialog is dismissed) to the directory where the file(s) chosen by the user are.
140
- # - {Wx::FD_PREVIEW}: Show the preview of the selected files (currently only supported by {Wx::GTK}).
146
+ #
147
+ # - {Wx::FD_PREVIEW}: Show the preview of the selected files (currently only supported by wxGTK).
148
+ #
141
149
  # - {Wx::FD_SHOW_HIDDEN}: Show hidden files. This flag was added in wxWidgets 3.1.3
142
150
  #
143
151
  # ===
@@ -160,7 +168,7 @@ module Wx
160
168
  # @param pos [Array(Integer, Integer), Wx::Point] Dialog position. Not implemented.
161
169
  # @param size [Array(Integer, Integer), Wx::Size] Dialog size. Not implemented.
162
170
  # @param name [String] Dialog name. Not implemented.
163
- # @return [FileDialog]
171
+ # @return [Wx::FileDialog]
164
172
  def initialize(parent, message=Wx::FileSelectorPromptStr, defaultDir=(''), defaultFile=(''), wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, style=Wx::FD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::FileDialogNameStr) end
165
173
 
166
174
  # Returns the path of the file currently selected in dialog.
@@ -257,7 +265,7 @@ module Wx
257
265
  alias_method :directory=, :set_directory
258
266
 
259
267
  # Sets the default filename.
260
- # In {Wx::GTK} this will have little effect unless a default directory has previously been set.
268
+ # In wxGTK this will have little effect unless a default directory has previously been set.
261
269
  # @param setfilename [String]
262
270
  # @return [void]
263
271
  def set_filename(setfilename) end
@@ -58,7 +58,9 @@ module Wx
58
58
  #
59
59
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::FileDirPickerEvent} events.
60
60
  # Event handler methods:
61
+ #
61
62
  # - {Wx::EvtHandler#evt_filepicker_changed}(id, meth = nil, &block): Generated whenever the selected file changes.
63
+ #
62
64
  # - {Wx::EvtHandler#evt_dirpicker_changed}(id, meth = nil, &block): Generated whenever the selected directory changes.
63
65
  #
64
66
  # ===
@@ -71,14 +73,14 @@ module Wx
71
73
  class FileDirPickerEvent < CommandEvent
72
74
 
73
75
  # @overload initialize()
74
- # @return [FileDirPickerEvent]
76
+ # @return [Wx::FileDirPickerEvent]
75
77
  # @overload initialize(type, generator, id, path)
76
78
  # The constructor is not normally used by the user code.
77
- # @param type [Integer]
79
+ # @param type [Wx::AUI::AuiMDIChildFrame::EventType]
78
80
  # @param generator [Wx::Object]
79
81
  # @param id [Integer]
80
82
  # @param path [String]
81
- # @return [FileDirPickerEvent]
83
+ # @return [Wx::FileDirPickerEvent]
82
84
  def initialize(*args) end
83
85
 
84
86
  # Retrieve the absolute path of the file/directory the user has just selected.
@@ -11,27 +11,35 @@ module Wx
11
11
  # === Styles
12
12
  #
13
13
  # This class supports the following styles:
14
- #
15
- # - {Wx::FLP_DEFAULT_STYLE}: The default style: includes {Wx::FLP_OPEN} | {Wx::FLP_FILE_MUST_EXIST} and, under {Wx::MSW} and {Wx::OSX}, {Wx::FLP_USE_TEXTCTRL}.
14
+ #
15
+ # - {Wx::FLP_DEFAULT_STYLE}: The default style: includes {Wx::FLP_OPEN} | {Wx::FLP_FILE_MUST_EXIST} and, under wxMSW and wxOSX, {Wx::FLP_USE_TEXTCTRL}.
16
+ #
16
17
  # - {Wx::FLP_USE_TEXTCTRL}: Creates a text control to the left of the picker button which is completely managed by the {Wx::FilePickerCtrl} and which can be used by the user to specify a path (see SetPath). The text control is automatically synchronized with button's value. Use functions defined in {Wx::PickerBase} to modify the text control.
18
+ #
17
19
  # - {Wx::FLP_OPEN}: Creates a picker which allows the user to select a file to open.
20
+ #
18
21
  # - {Wx::FLP_SAVE}: Creates a picker which allows the user to select a file to save.
22
+ #
19
23
  # - {Wx::FLP_OVERWRITE_PROMPT}: Can be combined with {Wx::FLP_SAVE} only: ask confirmation to the user before selecting a file.
24
+ #
20
25
  # - {Wx::FLP_FILE_MUST_EXIST}: Can be combined with {Wx::FLP_OPEN} only: the file selected in the popup {Wx::FileDialog} must be an existing file. Notice that it still remains possible for the user to enter a non-existent file name in the text control if {Wx::FLP_USE_TEXTCTRL} is also used, this flag is a hint for the user rather than a guarantee that the selected file does exist for the program.
26
+ #
21
27
  # - {Wx::FLP_CHANGE_DIR}: Change current working directory on each user file selection change.
28
+ #
22
29
  # - {Wx::FLP_SMALL}: Use smaller version of the control with a small "..." button instead of the normal "Browse" one. This flag is new since wxWidgets 2.9.3.
23
30
  #
24
31
  # === Events emitted by this class
25
32
  #
26
33
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::FileDirPickerEvent} events.
27
34
  # Event handler methods for events emitted by this class:
35
+ #
28
36
  # - {Wx::EvtHandler#evt_filepicker_changed}(id, meth = nil, &block): The user changed the file selected in the control either using the button or using text control (see {Wx::FLP_USE_TEXTCTRL}; note that in this case the event is fired only if the user's input is valid, e.g. an existing file path if {Wx::FLP_FILE_MUST_EXIST} was given).
29
37
  #
30
38
  # ===
31
39
  #
32
- # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
33
- # </td><td> {Wx::GTK} Appearance
34
- # </td><td> {Wx::OSX} Appearance
40
+ # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
41
+ # </td><td> wxGTK Appearance
42
+ # </td><td> wxOSX Appearance
35
43
  # </td></tr></table></div>
36
44
  # @see Wx::FileDialog
37
45
  # @see Wx::FileDirPickerEvent
@@ -40,7 +48,7 @@ module Wx
40
48
  class FilePickerCtrl < PickerBase
41
49
 
42
50
  # @overload initialize()
43
- # @return [FilePickerCtrl]
51
+ # @return [Wx::FilePickerCtrl]
44
52
  # @overload initialize(parent, id, path=(''), message=Wx::FileSelectorPromptStr, wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FLP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FilePickerCtrlNameStr)
45
53
  # Initializes the object and calls {Wx::FilePickerCtrl#create} with all the parameters.
46
54
  # @param parent [Wx::Window]
@@ -53,7 +61,7 @@ module Wx
53
61
  # @param style [Integer]
54
62
  # @param validator [Wx::Validator]
55
63
  # @param name [String]
56
- # @return [FilePickerCtrl]
64
+ # @return [Wx::FilePickerCtrl]
57
65
  def initialize(*args) end
58
66
 
59
67
  # Creates this widget with the given parameters.
@@ -95,7 +103,7 @@ module Wx
95
103
  alias_method :initial_directory=, :set_initial_directory
96
104
 
97
105
  # Sets the absolute path of the currently selected file.
98
- # If the control uses {Wx::FLP_FILE_MUST_EXIST} and does not use {Wx::FLP_USE_TEXTCTRL} style, the filename must be a name of an existing file and will be simply ignored by the native {Wx::GTK} implementation if this is not the case (the generic implementation used under the other platforms accepts even invalid file names currently, but this is subject to change in the future, don't rely on being able to use non-existent paths with it).
106
+ # If the control uses {Wx::FLP_FILE_MUST_EXIST} and does not use {Wx::FLP_USE_TEXTCTRL} style, the filename must be a name of an existing file and will be simply ignored by the native wxGTK implementation if this is not the case (the generic implementation used under the other platforms accepts even invalid file names currently, but this is subject to change in the future, don't rely on being able to use non-existent paths with it).
99
107
  # @param filename [String]
100
108
  # @return [void]
101
109
  def set_path(filename) end
@@ -75,10 +75,15 @@ module Wx
75
75
  #
76
76
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::FindDialogEvent} events.
77
77
  # Event handler methods:
78
+ #
78
79
  # - {Wx::EvtHandler#evt_find}(id, meth = nil, &block): Find button was pressed in the dialog.
80
+ #
79
81
  # - {Wx::EvtHandler#evt_find_next}(id, meth = nil, &block): Find next button was pressed in the dialog.
82
+ #
80
83
  # - {Wx::EvtHandler#evt_find_replace}(id, meth = nil, &block): Replace button was pressed in the dialog.
84
+ #
81
85
  # - {Wx::EvtHandler#evt_find_replace_all}(id, meth = nil, &block): Replace all button was pressed in the dialog.
86
+ #
82
87
  # - {Wx::EvtHandler#evt_find_close}(id, meth = nil, &block): The dialog is being destroyed, any pointers to it cannot be used any longer.
83
88
  #
84
89
  # ===
@@ -88,9 +93,9 @@ module Wx
88
93
  class FindDialogEvent < CommandEvent
89
94
 
90
95
  # Constructor used by wxWidgets only.
91
- # @param commandType [Integer]
96
+ # @param commandType [Wx::AUI::AuiMDIChildFrame::EventType]
92
97
  # @param id [Integer]
93
- # @return [FindDialogEvent]
98
+ # @return [Wx::FindDialogEvent]
94
99
  def initialize(commandType=Wx::EVT_NULL, id=0) end
95
100
 
96
101
  # Return the pointer to the dialog which generated this event.
@@ -17,7 +17,7 @@ module Wx
17
17
 
18
18
  # Constructor initializes the flags to default value (0).
19
19
  # @param flags [Integer]
20
- # @return [FindReplaceData]
20
+ # @return [Wx::FindReplaceData]
21
21
  def initialize(flags=0) end
22
22
 
23
23
  # Get the string to find.
@@ -21,7 +21,7 @@ module Wx
21
21
  # @param data [Wx::FindReplaceData]
22
22
  # @param title [String]
23
23
  # @param style [Integer]
24
- # @return [FindReplaceDialog]
24
+ # @return [Wx::FindReplaceDialog]
25
25
  def initialize(parent, data, title, style=0) end
26
26
 
27
27
  # Creates the dialog; use {Wx::Window#show} to show it on screen.
@@ -23,13 +23,13 @@ module Wx
23
23
  # @param cols [Integer]
24
24
  # @param vgap [Integer]
25
25
  # @param hgap [Integer]
26
- # @return [FlexGridSizer]
26
+ # @return [Wx::FlexGridSizer]
27
27
  # @overload initialize(cols, gap=(Wx::Size.new(0, 0)))
28
28
  # {Wx::FlexGridSizer} constructors.
29
29
  # Please see {Wx::GridSizer::GridSizer} documentation.
30
30
  # @param cols [Integer]
31
31
  # @param gap [Array(Integer, Integer), Wx::Size]
32
- # @return [FlexGridSizer]
32
+ # @return [Wx::FlexGridSizer]
33
33
  # @overload initialize(rows, cols, vgap, hgap)
34
34
  # {Wx::FlexGridSizer} constructors.
35
35
  # Please see {Wx::GridSizer::GridSizer} documentation.
@@ -37,14 +37,14 @@ module Wx
37
37
  # @param cols [Integer]
38
38
  # @param vgap [Integer]
39
39
  # @param hgap [Integer]
40
- # @return [FlexGridSizer]
40
+ # @return [Wx::FlexGridSizer]
41
41
  # @overload initialize(rows, cols, gap)
42
42
  # {Wx::FlexGridSizer} constructors.
43
43
  # Please see {Wx::GridSizer::GridSizer} documentation.
44
44
  # @param rows [Integer]
45
45
  # @param cols [Integer]
46
46
  # @param gap [Array(Integer, Integer), Wx::Size]
47
- # @return [FlexGridSizer]
47
+ # @return [Wx::FlexGridSizer]
48
48
  def initialize(*args) end
49
49
 
50
50
  # Specifies that column idx (starting from zero) should be grown if there is extra space available to the sizer.
@@ -64,7 +64,10 @@ module Wx
64
64
 
65
65
  # Returns a {Wx::Orientation} value that specifies whether the sizer flexibly resizes its columns, rows, or both (default).
66
66
  # One of the following values:
67
- # - {Wx::Orientation::VERTICAL}: Rows are flexibly sized.- {Wx::Orientation::HORIZONTAL}: Columns are flexibly sized.- {Wx::Orientation::BOTH}: Both rows and columns are flexibly sized (this is the default value).
67
+ #
68
+ # - {Wx::Orientation::VERTICAL}: Rows are flexibly sized.
69
+ # - {Wx::Orientation::HORIZONTAL}: Columns are flexibly sized.
70
+ # - {Wx::Orientation::BOTH}: Both rows and columns are flexibly sized (this is the default value).
68
71
  # @see Wx::FlexGridSizer#set_flexible_direction
69
72
  # @return [Integer]
70
73
  def get_flexible_direction; end
@@ -73,7 +76,10 @@ module Wx
73
76
  # Returns the value that specifies how the sizer grows in the "non-flexible" direction if there is one.
74
77
  # The behaviour of the elements in the flexible direction (i.e. both rows and columns by default, or rows only if {Wx::FlexGridSizer#get_flexible_direction} is {Wx::Orientation::VERTICAL} or columns only if it is {Wx::Orientation::HORIZONTAL}) is always governed by their proportion as specified in the call to {Wx::FlexGridSizer#add_growable_row} or {Wx::FlexGridSizer#add_growable_col}. What happens in the other direction depends on the value of returned by this function as described below.
75
78
  # One of the following values:
76
- # - {Wx::FlexSizerGrowMode::FLEX_GROWMODE_NONE}: Sizer doesn't grow its elements at all in the non-flexible direction.- {Wx::FlexSizerGrowMode::FLEX_GROWMODE_SPECIFIED}: Sizer honors growable columns/rows set with {Wx::FlexGridSizer#add_growable_col} and {Wx::FlexGridSizer#add_growable_row} in the non-flexible direction as well. In this case equal sizing applies to minimum sizes of columns or rows (this is the default value).- {Wx::FlexSizerGrowMode::FLEX_GROWMODE_ALL}: Sizer equally stretches all columns or rows in the non-flexible direction, independently of the proportions applied in the flexible direction.
79
+ #
80
+ # - {Wx::FlexSizerGrowMode::FLEX_GROWMODE_NONE}: Sizer doesn't grow its elements at all in the non-flexible direction.
81
+ # - {Wx::FlexSizerGrowMode::FLEX_GROWMODE_SPECIFIED}: Sizer honors growable columns/rows set with {Wx::FlexGridSizer#add_growable_col} and {Wx::FlexGridSizer#add_growable_row} in the non-flexible direction as well. In this case equal sizing applies to minimum sizes of columns or rows (this is the default value).
82
+ # - {Wx::FlexSizerGrowMode::FLEX_GROWMODE_ALL}: Sizer equally stretches all columns or rows in the non-flexible direction, independently of the proportions applied in the flexible direction.
77
83
  # @see Wx::FlexGridSizer#set_flexible_direction
78
84
  # @see Wx::FlexGridSizer#set_non_flexible_grow_mode
79
85
  # @return [FlexSizerGrowMode]
@@ -206,7 +206,7 @@ module Wx
206
206
  #
207
207
  FONTFLAG_UNDERLINED = Wx::FontFlag.new(64)
208
208
 
209
- # Strike-through style (implemented in MSW, GTK, and {Wx::OSX})
209
+ # Strike-through style (implemented in MSW, GTK, and wxOSX)
210
210
  #
211
211
  FONTFLAG_STRIKETHROUGH = Wx::FontFlag.new(128)
212
212
 
@@ -667,7 +667,7 @@ module Wx
667
667
  alias_method :base_font, :get_base_font
668
668
 
669
669
  # Returns the encoding of this font.
670
- # Note that under {Wx::GTK} the returned value is always {Wx::FontEncoding::FONTENCODING_UTF8}.
670
+ # Note that under wxGTK the returned value is always {Wx::FontEncoding::FONTENCODING_UTF8}.
671
671
  # @see Wx::Font#set_encoding
672
672
  # @return [FontEncoding]
673
673
  def get_encoding; end
@@ -700,7 +700,7 @@ module Wx
700
700
 
701
701
  # Returns a user-friendly string for this font object.
702
702
  # Returned string is always non-empty unless the font is invalid (in which case an assert is triggered).
703
- # The string does not encode all {Wx::Font} infos under all platforms; e.g. under {Wx::MSW} the font family is not present in the returned string.
703
+ # The string does not encode all {Wx::Font} infos under all platforms; e.g. under wxMSW the font family is not present in the returned string.
704
704
  # Some examples of the formats of returned strings (which are platform-dependent) are in {Wx::Font#set_native_font_info_user_desc}.
705
705
  # @see Wx::Font#set_native_font_info_user_desc
706
706
  # @see Wx::Font#get_native_font_info_desc
@@ -726,7 +726,7 @@ module Wx
726
726
  alias_method :fractional_point_size, :get_fractional_point_size
727
727
 
728
728
  # Gets the pixel size.
729
- # Note that under {Wx::MSW} if you passed to {Wx::Font#set_pixel_size} (or to the ctor) a {Wx::Size} object with a null width value, you'll get a null width in the returned object.
729
+ # Note that under wxMSW if you passed to {Wx::Font#set_pixel_size} (or to the ctor) a {Wx::Size} object with a null width value, you'll get a null width in the returned object.
730
730
  # @see Wx::Font#set_pixel_size
731
731
  # @return [Wx::Size]
732
732
  def get_pixel_size; end
@@ -824,7 +824,7 @@ module Wx
824
824
  def underlined; end
825
825
 
826
826
  # Returns stricken-through version of this font.
827
- # Currently stricken-through fonts are only supported in {Wx::MSW}, {Wx::GTK}, and {Wx::OSX}.
827
+ # Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
828
828
  # @see Wx::Font#make_strikethrough
829
829
  # @return [Wx::Font]
830
830
  def strikethrough; end
@@ -864,7 +864,7 @@ module Wx
864
864
  def make_underlined; end
865
865
 
866
866
  # Changes this font to be stricken-through.
867
- # Currently stricken-through fonts are only supported in {Wx::MSW}, {Wx::GTK}, and {Wx::OSX}.
867
+ # Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
868
868
  # @see Wx::Font#strikethrough
869
869
  # @return [Wx::Font]
870
870
  def make_strikethrough; end
@@ -888,7 +888,7 @@ module Wx
888
888
  def scaled(x) end
889
889
 
890
890
  # Sets the encoding for this font.
891
- # Note that under {Wx::GTK} this function has no effect (because the underlying Pango library always uses {Wx::FontEncoding::FONTENCODING_UTF8}).
891
+ # Note that under wxGTK this function has no effect (because the underlying Pango library always uses {Wx::FontEncoding::FONTENCODING_UTF8}).
892
892
  # @see Wx::Font#get_encoding
893
893
  # @param encoding [FontEncoding]
894
894
  # @return [void]
@@ -916,6 +916,15 @@ module Wx
916
916
  def set_family(family) end
917
917
  alias_method :family=, :set_family
918
918
 
919
+ # Creates the font corresponding to the given native font description string which must have been previously returned by {Wx::Font#get_native_font_info_desc}.
920
+ # If the string is invalid, font is unchanged. This function is typically used for de-serializing a {Wx::Font} object previously saved in a string-form.
921
+ # true if the creation was successful.
922
+ # @see Wx::Font#set_native_font_info_user_desc
923
+ # @param info [String]
924
+ # @return [true,false]
925
+ def set_native_font_info(info) end
926
+ alias_method :native_font_info=, :set_native_font_info
927
+
919
928
  # Creates the font corresponding to the given native font description string and returns true if the creation was successful.
920
929
  # Unlike {Wx::Font#set_native_font_info}, this function accepts strings which are user-friendly. Examples of accepted string formats are:
921
930
  #
@@ -923,18 +932,18 @@ module Wx
923
932
  # generic syntax
924
933
  # example
925
934
  #
926
- # {Wx::GTK2}
935
+ # wxGTK2
927
936
  # <code>[underlined] [strikethrough] [FACE-NAME] [bold] [oblique|italic] [POINTSIZE]</code>
928
937
  # Monospace bold 10
929
938
  #
930
- # {Wx::MSW}
939
+ # wxMSW
931
940
  # <code>[light|bold] [italic] [FACE-NAME] [POINTSIZE] [ENCODING]</code>
932
941
  # Tahoma 10 WINDOWS-1252
933
942
  #
934
943
  # Todoadd an example for {Wx::Mac}
935
944
  #
936
945
  # For more detailed information about the allowed syntaxes you can look at the documentation of the native API used for font-rendering (e.g. pango_font_description_from_string under GTK, although notice that it doesn't support the "underlined" and "strikethrough" attributes and so those are handled by wxWidgets itself).
937
- # Note that unlike {Wx::Font#set_native_font_info}, this function doesn't always restore all attributes of the {Wx::Font} object under all platforms; e.g. on {Wx::MSW} the font family is not restored (because GetNativeFontInfoUserDesc doesn't return it on {Wx::MSW}). If you want to serialize/deserialize a font in string form, you should use {Wx::Font#get_native_font_info_desc} and {Wx::Font#set_native_font_info} instead.
946
+ # Note that unlike {Wx::Font#set_native_font_info}, this function doesn't always restore all attributes of the {Wx::Font} object under all platforms; e.g. on wxMSW the font family is not restored (because GetNativeFontInfoUserDesc doesn't return it on wxMSW). If you want to serialize/deserialize a font in string form, you should use {Wx::Font#get_native_font_info_desc} and {Wx::Font#set_native_font_info} instead.
938
947
  # @see Wx::Font#set_native_font_info
939
948
  # @param info [String]
940
949
  # @return [true,false]
@@ -959,7 +968,7 @@ module Wx
959
968
 
960
969
  # Sets the pixel size.
961
970
  # The height parameter of pixelSize must be positive while the width parameter may also be zero (to indicate that you're not interested in the width of the characters: a suitable width will be chosen for best rendering).
962
- # This feature (specifying the font pixel size) is directly supported only under {Wx::MSW} and {Wx::GTK} currently; under other platforms a font with the closest size to the given one is found using binary search (this maybe slower).
971
+ # This feature (specifying the font pixel size) is directly supported only under wxMSW and wxGTK currently; under other platforms a font with the closest size to the given one is found using binary search (this maybe slower).
963
972
  # @see Wx::Font#get_pixel_size
964
973
  # @param pixelSize [Array(Integer, Integer), Wx::Size]
965
974
  # @return [void]
@@ -998,7 +1007,7 @@ module Wx
998
1007
  alias_method :underlined=, :set_underlined
999
1008
 
1000
1009
  # Sets strike-through attribute of the font.
1001
- # Currently stricken-through fonts are only supported in {Wx::MSW}, {Wx::GTK}, and {Wx::OSX}.
1010
+ # Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
1002
1011
  # @see Wx::Font#get_strikethrough
1003
1012
  # @param strikethrough [true,false] true to add strike-through style, false to remove it.
1004
1013
  # @return [void]
@@ -1075,27 +1084,28 @@ module Wx
1075
1084
 
1076
1085
  # @overload initialize()
1077
1086
  # Default ctor.
1078
- # @return [Font]
1087
+ # @return [Wx::Font]
1079
1088
  # @overload initialize(font)
1080
1089
  # Copy constructor, uses reference counting.
1081
1090
  # @param font [Wx::Font,Wx::FontInfo]
1082
- # @return [Font]
1091
+ # @return [Wx::Font]
1083
1092
  # @overload initialize(fontInfo)
1084
1093
  # Creates a font object using the specified font description.
1085
1094
  # This is the preferred way to create font objects as using this ctor results in more readable code and it is also extensible, e.g. it could continue to be used if support for more font attributes is added in the future. For example, this constructor provides the only way of creating fonts with strike-through style.
1086
1095
  # Example of creating a font using this ctor:
1087
- # ```
1088
- # wxFont font(wxFontInfo(10).Bold().Underlined());
1096
+ # ```ruby
1097
+ # font = Wx::Font.new(Wx::FontInfo.new(10).bold().underlined())
1089
1098
  # ```
1090
1099
  # @param fontInfo [Wx::FontInfo]
1091
- # @return [Font]
1100
+ # @return [Wx::Font]
1092
1101
  # @overload initialize(pointSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1093
1102
  # Creates a font object with the specified attributes and size in points.
1094
1103
  # Notice that the use of this constructor is often more verbose and less readable than using wxFont(const wxFontInfo& font), e.g. the example in that constructor documentation would need to be written as:
1095
1104
  #
1096
- # ```
1097
- # wxFont font(10, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL,
1098
- # wxFONTWEIGHT_BOLD, true);
1105
+ # ```ruby
1106
+ # font = Wx::Font.new(10, Wx::FontFamily::FONTFAMILY_DEFAULT,
1107
+ # Wx::FontStyle::FONTSTYLE_NORMAL,
1108
+ # Wx::FontWeight::FONTWEIGHT_BOLD, true)
1099
1109
  # ```
1100
1110
  #
1101
1111
  # If the desired font does not exist, the closest match will be chosen. Under Windows, only scalable TrueType fonts are used.
@@ -1106,7 +1116,7 @@ module Wx
1106
1116
  # @param underline [true,false] The value can be true or false. At present this has an effect on Windows and Motif 2.x only.
1107
1117
  # @param faceName [String] An optional string specifying the face name to be used. If it is an empty string, a default face name will be chosen based on the family.
1108
1118
  # @param encoding [FontEncoding] An encoding which may be one of the enumeration values of {Wx::FontEncoding}. If the specified encoding isn't available, no font is created (see also Font Encodings).
1109
- # @return [Font]
1119
+ # @return [Wx::Font]
1110
1120
  # @overload initialize(pixelSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1111
1121
  # Creates a font object with the specified attributes and size in pixels.
1112
1122
  # Notice that the use of this constructor is often more verbose and less readable than the use of constructor from {Wx::FontInfo}, consider using that constructor instead.
@@ -1119,12 +1129,12 @@ module Wx
1119
1129
  # @param underline [true,false] The value can be true or false. At present this has an effect on Windows and Motif 2.x only.
1120
1130
  # @param faceName [String] An optional string specifying the face name to be used. If it is an empty string, a default face name will be chosen based on the family.
1121
1131
  # @param encoding [FontEncoding] An encoding which may be one of the enumeration values of {Wx::FontEncoding}. If the specified encoding isn't available, no font is created (see also Font Encodings).
1122
- # @return [Font]
1132
+ # @return [Wx::Font]
1123
1133
  # @overload initialize(nativeInfoString)
1124
1134
  # Constructor from font description string.
1125
1135
  # This constructor uses {Wx::Font#set_native_font_info} to initialize the font. If fontdesc is invalid the font remains uninitialized, i.e. its {Wx::Font#is_ok} method will return false.
1126
1136
  # @param nativeInfoString [String]
1127
- # @return [Font]
1137
+ # @return [Wx::Font]
1128
1138
  def initialize(*args) end
1129
1139
 
1130
1140
  # Equality operator.
@@ -1160,8 +1170,8 @@ module Wx
1160
1170
 
1161
1171
  # This class is a helper used for {Wx::Font} creation using named parameter idiom: it allows specifying various {Wx::Font} attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to {Wx::Font} constructors.
1162
1172
  # For example, to create an italic font with the given face name and size you could use:
1163
- # ```
1164
- # wxFont font(wxFontInfo(12).FaceName("Helvetica").Italic());
1173
+ # ```ruby
1174
+ # font = Wx::Font.new(Wx::FontInfo.new(12).face_name('Helvetica').italic())
1165
1175
  # ```
1166
1176
  #
1167
1177
  # Notice that all of the methods of this object return a reference to the object itself, allowing the calls to them to be chained as in the example above.
@@ -1173,19 +1183,19 @@ module Wx
1173
1183
 
1174
1184
  # @overload initialize()
1175
1185
  # Default constructor uses the default font size for the current platform.
1176
- # @return [FontInfo]
1186
+ # @return [Wx::FontInfo]
1177
1187
  # @overload initialize(pointSize)
1178
1188
  # Constructor setting the font size in points to use.
1179
1189
  # Note that until wxWidgets 3.1.2 fractional point sizes were not supported, and the type of pointSize was int.
1180
1190
  # @see Wx::Font#set_point_size
1181
1191
  # @param pointSize [Float]
1182
- # @return [FontInfo]
1192
+ # @return [Wx::FontInfo]
1183
1193
  # @overload initialize(pixelSize)
1184
1194
  # Constructor setting the font size in pixels to use.
1185
1195
  #
1186
1196
  # @see Wx::Font#set_pixel_size
1187
1197
  # @param pixelSize [Array(Integer, Integer), Wx::Size]
1188
- # @return [FontInfo]
1198
+ # @return [Wx::FontInfo]
1189
1199
  def initialize(*args) end
1190
1200
 
1191
1201
  # Set the font family.
@@ -1258,7 +1268,7 @@ module Wx
1258
1268
  def underlined(underlined=true) end
1259
1269
 
1260
1270
  # Use a strike-through version of the font.
1261
- # Currently this is only implemented in {Wx::MSW}, {Wx::GTK}, and {Wx::OSX}.
1271
+ # Currently this is only implemented in wxMSW, wxGTK, and wxOSX.
1262
1272
  # @param strikethrough [true,false]
1263
1273
  # @return [Wx::FontInfo]
1264
1274
  def strikethrough(strikethrough=true) end