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
@@ -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.
@@ -122,21 +122,30 @@ module Wx
122
122
  # == Dialog Customization
123
123
  #
124
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.
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 {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.
126
126
  # Both of the approaches to the dialog customization are demonstrated in the Dialogs Sample, please check it for more details.
127
127
  # === Styles
128
128
  #
129
129
  # This class supports the following styles:
130
- #
130
+ #
131
131
  # - {Wx::FD_DEFAULT_STYLE}: Equivalent to {Wx::FD_OPEN}.
132
+ #
132
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
+ #
133
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}.
134
- # - {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.
135
- # - {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
+ #
136
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
+ #
137
143
  # - {Wx::FD_MULTIPLE}: For open dialog only: allows selecting multiple files.
144
+ #
138
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.
139
- # - {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
+ #
140
149
  # - {Wx::FD_SHOW_HIDDEN}: Show hidden files. This flag was added in wxWidgets 3.1.3
141
150
  #
142
151
  # ===
@@ -159,7 +168,7 @@ module Wx
159
168
  # @param pos [Array(Integer, Integer), Wx::Point] Dialog position. Not implemented.
160
169
  # @param size [Array(Integer, Integer), Wx::Size] Dialog size. Not implemented.
161
170
  # @param name [String] Dialog name. Not implemented.
162
- # @return [FileDialog]
171
+ # @return [Wx::FileDialog]
163
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
164
173
 
165
174
  # Returns the path of the file currently selected in dialog.
@@ -256,7 +265,7 @@ module Wx
256
265
  alias_method :directory=, :set_directory
257
266
 
258
267
  # Sets the default filename.
259
- # 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.
260
269
  # @param setfilename [String]
261
270
  # @return [void]
262
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]
@@ -932,18 +932,18 @@ module Wx
932
932
  # generic syntax
933
933
  # example
934
934
  #
935
- # {Wx::GTK2}
935
+ # wxGTK2
936
936
  # <code>[underlined] [strikethrough] [FACE-NAME] [bold] [oblique|italic] [POINTSIZE]</code>
937
937
  # Monospace bold 10
938
938
  #
939
- # {Wx::MSW}
939
+ # wxMSW
940
940
  # <code>[light|bold] [italic] [FACE-NAME] [POINTSIZE] [ENCODING]</code>
941
941
  # Tahoma 10 WINDOWS-1252
942
942
  #
943
943
  # Todoadd an example for {Wx::Mac}
944
944
  #
945
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).
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 {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.
947
947
  # @see Wx::Font#set_native_font_info
948
948
  # @param info [String]
949
949
  # @return [true,false]
@@ -968,7 +968,7 @@ module Wx
968
968
 
969
969
  # Sets the pixel size.
970
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).
971
- # 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).
972
972
  # @see Wx::Font#get_pixel_size
973
973
  # @param pixelSize [Array(Integer, Integer), Wx::Size]
974
974
  # @return [void]
@@ -1007,7 +1007,7 @@ module Wx
1007
1007
  alias_method :underlined=, :set_underlined
1008
1008
 
1009
1009
  # Sets strike-through attribute of the font.
1010
- # 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.
1011
1011
  # @see Wx::Font#get_strikethrough
1012
1012
  # @param strikethrough [true,false] true to add strike-through style, false to remove it.
1013
1013
  # @return [void]
@@ -1084,27 +1084,28 @@ module Wx
1084
1084
 
1085
1085
  # @overload initialize()
1086
1086
  # Default ctor.
1087
- # @return [Font]
1087
+ # @return [Wx::Font]
1088
1088
  # @overload initialize(font)
1089
1089
  # Copy constructor, uses reference counting.
1090
1090
  # @param font [Wx::Font,Wx::FontInfo]
1091
- # @return [Font]
1091
+ # @return [Wx::Font]
1092
1092
  # @overload initialize(fontInfo)
1093
1093
  # Creates a font object using the specified font description.
1094
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.
1095
1095
  # Example of creating a font using this ctor:
1096
- # ```
1097
- # wxFont font(wxFontInfo(10).Bold().Underlined());
1096
+ # ```ruby
1097
+ # font = Wx::Font.new(Wx::FontInfo.new(10).bold().underlined())
1098
1098
  # ```
1099
1099
  # @param fontInfo [Wx::FontInfo]
1100
- # @return [Font]
1100
+ # @return [Wx::Font]
1101
1101
  # @overload initialize(pointSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1102
1102
  # Creates a font object with the specified attributes and size in points.
1103
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:
1104
1104
  #
1105
- # ```
1106
- # wxFont font(10, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL,
1107
- # 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)
1108
1109
  # ```
1109
1110
  #
1110
1111
  # If the desired font does not exist, the closest match will be chosen. Under Windows, only scalable TrueType fonts are used.
@@ -1115,7 +1116,7 @@ module Wx
1115
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.
1116
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.
1117
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).
1118
- # @return [Font]
1119
+ # @return [Wx::Font]
1119
1120
  # @overload initialize(pixelSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1120
1121
  # Creates a font object with the specified attributes and size in pixels.
1121
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.
@@ -1128,12 +1129,12 @@ module Wx
1128
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.
1129
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.
1130
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).
1131
- # @return [Font]
1132
+ # @return [Wx::Font]
1132
1133
  # @overload initialize(nativeInfoString)
1133
1134
  # Constructor from font description string.
1134
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.
1135
1136
  # @param nativeInfoString [String]
1136
- # @return [Font]
1137
+ # @return [Wx::Font]
1137
1138
  def initialize(*args) end
1138
1139
 
1139
1140
  # Equality operator.
@@ -1169,8 +1170,8 @@ module Wx
1169
1170
 
1170
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.
1171
1172
  # For example, to create an italic font with the given face name and size you could use:
1172
- # ```
1173
- # wxFont font(wxFontInfo(12).FaceName("Helvetica").Italic());
1173
+ # ```ruby
1174
+ # font = Wx::Font.new(Wx::FontInfo.new(12).face_name('Helvetica').italic())
1174
1175
  # ```
1175
1176
  #
1176
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.
@@ -1182,19 +1183,19 @@ module Wx
1182
1183
 
1183
1184
  # @overload initialize()
1184
1185
  # Default constructor uses the default font size for the current platform.
1185
- # @return [FontInfo]
1186
+ # @return [Wx::FontInfo]
1186
1187
  # @overload initialize(pointSize)
1187
1188
  # Constructor setting the font size in points to use.
1188
1189
  # Note that until wxWidgets 3.1.2 fractional point sizes were not supported, and the type of pointSize was int.
1189
1190
  # @see Wx::Font#set_point_size
1190
1191
  # @param pointSize [Float]
1191
- # @return [FontInfo]
1192
+ # @return [Wx::FontInfo]
1192
1193
  # @overload initialize(pixelSize)
1193
1194
  # Constructor setting the font size in pixels to use.
1194
1195
  #
1195
1196
  # @see Wx::Font#set_pixel_size
1196
1197
  # @param pixelSize [Array(Integer, Integer), Wx::Size]
1197
- # @return [FontInfo]
1198
+ # @return [Wx::FontInfo]
1198
1199
  def initialize(*args) end
1199
1200
 
1200
1201
  # Set the font family.
@@ -1267,7 +1268,7 @@ module Wx
1267
1268
  def underlined(underlined=true) end
1268
1269
 
1269
1270
  # Use a strike-through version of the font.
1270
- # Currently this is only implemented in {Wx::MSW}, {Wx::GTK}, and {Wx::OSX}.
1271
+ # Currently this is only implemented in wxMSW, wxGTK, and wxOSX.
1271
1272
  # @param strikethrough [true,false]
1272
1273
  # @return [Wx::FontInfo]
1273
1274
  def strikethrough(strikethrough=true) end
@@ -21,7 +21,7 @@ module Wx
21
21
 
22
22
  # Constructor.
23
23
  # Initializes fontColour to black, showHelp to false, allowSymbols to true, enableEffects to true, minSize to 0 and maxSize to 0.
24
- # @return [FontData]
24
+ # @return [Wx::FontData]
25
25
  def initialize; end
26
26
 
27
27
  # Enables or disables "effects" under Windows or generic only.
@@ -56,9 +56,11 @@ module Wx
56
56
  def get_enable_effects; end
57
57
 
58
58
  # Returns the state of the flags restricting the selection.
59
- # Note that currently these flags are only effectively used in {Wx::MSW}.
59
+ # Note that currently these flags are only effectively used in wxMSW.
60
60
  #
61
- # - {Wx::FONTRESTRICT_NONE} If no restriction applies, or a combination of the following flags:- {Wx::FONTRESTRICT_SCALABLE} To show only scalable fonts - no raster fonts.- {Wx::FONTRESTRICT_FIXEDPITCH} To show only monospaced fonts.
61
+ # - {Wx::FONTRESTRICT_NONE} If no restriction applies, or a combination of the following flags:
62
+ # - {Wx::FONTRESTRICT_SCALABLE} To show only scalable fonts - no raster fonts.
63
+ # - {Wx::FONTRESTRICT_FIXEDPITCH} To show only monospaced fonts.
62
64
  #
63
65
  # The default value is {Wx::FONTRESTRICT_NONE}.
64
66
  # @return [Integer]
@@ -77,10 +79,12 @@ module Wx
77
79
  alias_method :show_help, :get_show_help
78
80
 
79
81
  # Restricts the selection to a subset of the available fonts.
80
- # Note that currently these flags are only effectively used in {Wx::MSW} and are ignored in the other ports.
82
+ # Note that currently these flags are only effectively used in wxMSW and are ignored in the other ports.
81
83
  # Possible values are:
82
84
  #
83
- # - {Wx::FONTRESTRICT_NONE} No restriction, show all fonts in the dialog.- {Wx::FONTRESTRICT_SCALABLE} To show only scalable fonts - no raster fonts.- {Wx::FONTRESTRICT_FIXEDPITCH} To show only monospaced fonts.
85
+ # - {Wx::FONTRESTRICT_NONE} No restriction, show all fonts in the dialog.
86
+ # - {Wx::FONTRESTRICT_SCALABLE} To show only scalable fonts - no raster fonts.
87
+ # - {Wx::FONTRESTRICT_FIXEDPITCH} To show only monospaced fonts.
84
88
  #
85
89
  # The default value is {Wx::FONTRESTRICT_NONE}.
86
90
  # @param flags [Integer]
@@ -32,17 +32,17 @@ module Wx
32
32
  # @overload initialize()
33
33
  # Default ctor.
34
34
  # {Wx::FontDialog#create} must be called before the dialog can be shown.
35
- # @return [FontDialog]
35
+ # @return [Wx::FontDialog]
36
36
  # @overload initialize(parent)
37
37
  # Constructor with parent window.
38
38
  # @param parent [Wx::Window]
39
- # @return [FontDialog]
39
+ # @return [Wx::FontDialog]
40
40
  # @overload initialize(parent, data)
41
41
  # Constructor.
42
42
  # Pass a parent window, and the font data object to be used to initialize the dialog controls.
43
43
  # @param parent [Wx::Window]
44
44
  # @param data [Wx::FontData]
45
- # @return [FontDialog]
45
+ # @return [Wx::FontDialog]
46
46
  def initialize(*args) end
47
47
 
48
48
  # @overload create(parent)
@@ -11,24 +11,28 @@ module Wx
11
11
  # === Styles
12
12
  #
13
13
  # This class supports the following styles:
14
- #
14
+ #
15
15
  # - {Wx::FNTP_DEFAULT_STYLE}: The default style: {Wx::FNTP_FONTDESC_AS_LABEL} | {Wx::FNTP_USEFONT_FOR_LABEL}.
16
+ #
16
17
  # - {Wx::FNTP_USE_TEXTCTRL}: Creates a text control to the left of the picker button which is completely managed by the {Wx::FontPickerCtrl} and which can be used by the user to specify a font (see SetSelectedFont). 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::FNTP_FONTDESC_AS_LABEL}: Keeps the label of the button updated with the fontface name and the font size. E.g. choosing "Times New Roman bold, italic with
18
20
  # size 10" from the fontdialog, will update the label (overwriting any previous label) with the "Times New Roman, 10" text.
21
+ #
19
22
  # - {Wx::FNTP_USEFONT_FOR_LABEL}: Uses the currently selected font to draw the label of the button.
20
23
  #
21
24
  # === Events emitted by this class
22
25
  #
23
26
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::FontPickerEvent} events.
24
27
  # Event handler methods for events emitted by this class:
28
+ #
25
29
  # - {Wx::EvtHandler#evt_fontpicker_changed}(id, meth = nil, &block): The user changed the font selected in the control either using the button or using text control (see {Wx::FNTP_USE_TEXTCTRL}; note that in this case the event is fired only if the user's input is valid, i.e. recognizable).
26
30
  #
27
31
  # ===
28
32
  #
29
- # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
30
- # </td><td> {Wx::GTK} Appearance
31
- # </td><td> {Wx::OSX} Appearance
33
+ # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
34
+ # </td><td> wxGTK Appearance
35
+ # </td><td> wxOSX Appearance
32
36
  # </td></tr></table></div>
33
37
  # @see Wx::FontDialog
34
38
  # @see Wx::FontPickerEvent
@@ -37,7 +41,7 @@ module Wx
37
41
  class FontPickerCtrl < PickerBase
38
42
 
39
43
  # @overload initialize()
40
- # @return [FontPickerCtrl]
44
+ # @return [Wx::FontPickerCtrl]
41
45
  # @overload initialize(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FontPickerCtrlNameStr)
42
46
  # Initializes the object and calls {Wx::FontPickerCtrl#create} with all the parameters.
43
47
  # @param parent [Wx::Window]
@@ -48,7 +52,7 @@ module Wx
48
52
  # @param style [Integer]
49
53
  # @param validator [Wx::Validator]
50
54
  # @param name [String]
51
- # @return [FontPickerCtrl]
55
+ # @return [Wx::FontPickerCtrl]
52
56
  def initialize(*args) end
53
57
 
54
58
  # Creates this widget with given parameters.
@@ -30,6 +30,7 @@ module Wx
30
30
  #
31
31
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::FontPickerEvent} events.
32
32
  # Event handler methods:
33
+ #
33
34
  # - {Wx::EvtHandler#evt_fontpicker_changed}(id, meth = nil, &block): Generated whenever the selected font changes.
34
35
  #
35
36
  # ===
@@ -44,7 +45,7 @@ module Wx
44
45
  # @param generator [Wx::Object]
45
46
  # @param id [Integer]
46
47
  # @param font [Wx::Font,Wx::FontInfo]
47
- # @return [FontPickerEvent]
48
+ # @return [Wx::FontPickerEvent]
48
49
  def initialize(generator, id, font) end
49
50
 
50
51
  # Retrieve the font the user has just selected.