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
@@ -18,13 +18,14 @@ module Wx
18
18
  #
19
19
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::DateEvent} events.
20
20
  # Event handler methods for events emitted by this class:
21
+ #
21
22
  # - {Wx::EvtHandler#evt_time_changed}(id, meth = nil, &block): Process a {Wx::EVT_TIME_CHANGED} event, which fires when the user changes the current selection in the control.
22
23
  #
23
24
  # ===
24
25
  #
25
- # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
26
- # </td><td> {Wx::GTK} Appearance
27
- # </td><td> {Wx::OSX} Appearance
26
+ # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
27
+ # </td><td> wxGTK Appearance
28
+ # </td><td> wxOSX Appearance
28
29
  # </td></tr></table></div>
29
30
  # @see Wx::DatePickerCtrl
30
31
  # @see Wx::CalendarCtrl
@@ -35,7 +36,7 @@ module Wx
35
36
 
36
37
  # @overload initialize()
37
38
  # Default constructor.
38
- # @return [TimePickerCtrl]
39
+ # @return [Wx::TimePickerCtrl]
39
40
  # @overload initialize(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TP_DEFAULT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TimePickerCtrlNameStr)
40
41
  # Initializes the object and calls {Wx::TimePickerCtrl#create} with all the parameters.
41
42
  # @param parent [Wx::Window]
@@ -46,7 +47,7 @@ module Wx
46
47
  # @param style [Integer]
47
48
  # @param validator [Wx::Validator]
48
49
  # @param name [String]
49
- # @return [TimePickerCtrl]
50
+ # @return [Wx::TimePickerCtrl]
50
51
  def initialize(*args) end
51
52
 
52
53
  # Create the control window.
@@ -10,7 +10,9 @@ module Wx
10
10
  # Its precision is platform-dependent, but in general will not be better than 1ms nor worse than 1s.
11
11
  # There are three different ways to use this class:
12
12
  #
13
- # - You may derive a new class from {Wx::Timer} and override the {Wx::Timer#notify} member to perform the required action.- You may redirect the notifications to any {Wx::EvtHandler} derived object by using the non-default constructor or {Wx::Timer#set_owner}. Then use the EVT_TIMER macro to connect it to the event handler which will receive {Wx::TimerEvent} notifications.- You may use a derived class and the EVT_TIMER macro to connect it to an event handler defined in the derived class. If the default constructor is used, the timer object will be its own owner object, since it is derived from {Wx::EvtHandler}.
13
+ # - You may derive a new class from {Wx::Timer} and override the {Wx::Timer#notify} member to perform the required action.
14
+ # - You may redirect the notifications to any {Wx::EvtHandler} derived object by using the non-default constructor or {Wx::Timer#set_owner}. Then use the EVT_TIMER macro to connect it to the event handler which will receive {Wx::TimerEvent} notifications.
15
+ # - You may use a derived class and the EVT_TIMER macro to connect it to an event handler defined in the derived class. If the default constructor is used, the timer object will be its own owner object, since it is derived from {Wx::EvtHandler}.
14
16
  #
15
17
  # In any case, you must start the timer with {Wx::Timer#start} after constructing it before it actually starts sending notifications. It can be stopped later with {Wx::Timer#stop}.
16
18
  # A timer can only be used from the main thread.
@@ -26,13 +28,13 @@ module Wx
26
28
  # @overload initialize()
27
29
  # Default constructor.
28
30
  # If you use it to construct the object and don't call {Wx::Timer#set_owner} later, you must override {Wx::Timer#notify} method to process the notifications.
29
- # @return [Timer]
31
+ # @return [Wx::Timer]
30
32
  # @overload initialize(owner, id=-1)
31
33
  # Creates a timer and associates it with owner.
32
34
  # Please see {Wx::Timer#set_owner} for the description of parameters.
33
35
  # @param owner [Wx::EvtHandler]
34
36
  # @param id [Integer]
35
- # @return [Timer]
37
+ # @return [Wx::Timer]
36
38
  def initialize(*args) end
37
39
 
38
40
  # Returns the ID of the events generated by this timer.
@@ -79,7 +81,9 @@ module Wx
79
81
  # If milliseconds parameter is -1 (value by default), the previous value is used. Returns false if the timer could not be started, true otherwise (in MS Windows timers are a limited resource).
80
82
  # If oneShot is false (the default), the {Wx::Timer#notify} function will be called repeatedly until the timer is stopped. If true, it will be called only once and the timer will stop automatically.
81
83
  # To make your code more readable you may also use the following symbolic constants:
82
- # - {Wx::TIMER_CONTINUOUS}: Start a normal, continuously running, timer- {Wx::TIMER_ONE_SHOT}: Start a one shot timer Alternatively, use {Wx::Timer#start_once}.
84
+ #
85
+ # - {Wx::TIMER_CONTINUOUS}: Start a normal, continuously running, timer
86
+ # - {Wx::TIMER_ONE_SHOT}: Start a one shot timer Alternatively, use {Wx::Timer#start_once}.
83
87
  #
84
88
  # If the timer was already running, it will be stopped by this method before restarting it.
85
89
  # @param milliseconds [Integer]
@@ -19,32 +19,25 @@ module Wx
19
19
  # {Wx::TimerEvent} object is passed to the event handler of timer events (see {Wx::Timer#set_owner}).
20
20
  # For example:
21
21
  #
22
- # ```
23
- # class MyFrame : public wxFrame
24
- # {
25
- # public:
26
- # ...
27
- # void OnTimer(wxTimerEvent& event);
28
- #
29
- # private:
30
- # wxTimer m_timer;
31
- # wxDECLARE_EVENT_TABLE();
32
- # };
33
- #
34
- # wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
35
- # EVT_TIMER(TIMER_ID, MyFrame::OnTimer)
36
- # wxEND_EVENT_TABLE()
37
- #
38
- # MyFrame::MyFrame()
39
- # : m_timer(this, TIMER_ID)
40
- # {
41
- # m_timer.Start(1000); // 1 second interval
42
- # }
22
+ # ```ruby
23
+ # class MyFrame < Wx::Frame
24
+ #
25
+ # def initialize
26
+ # super(nil)
27
+ # @timer = Wx::Timer.new(self, TIMER_ID)
28
+ #
29
+ # evt_timer(TIMER_ID, :on_timer)
30
+ #
31
+ # @timer.start(1000) # 1 second interval
32
+ # end
33
+ #
34
+ # ...
35
+ #
36
+ # def on_timer(event)
37
+ # # do whatever you want to do every second here
38
+ # end
43
39
  #
44
- # void MyFrame::OnTimer(wxTimerEvent& event)
45
- # {
46
- # // do whatever you want to do every second here
47
- # }
40
+ # end
48
41
  # ```
49
42
  #
50
43
  # ===
@@ -56,7 +49,7 @@ module Wx
56
49
  class TimerEvent < Event
57
50
 
58
51
  # @param timer [Wx::Timer]
59
- # @return [TimerEvent]
52
+ # @return [Wx::TimerEvent]
60
53
  def initialize(timer) end
61
54
 
62
55
  # Returns the interval of the timer which generated this event.
@@ -37,7 +37,7 @@ module Wx
37
37
 
38
38
  # Constructor.
39
39
  # @param currentTip [Integer] The starting tip index.
40
- # @return [TipProvider]
40
+ # @return [Wx::TipProvider]
41
41
  def initialize(currentTip) end
42
42
 
43
43
  # Returns the index of the current tip (i.e. the one which would be returned by {Wx::TipProvider#get_tip}).
@@ -18,13 +18,14 @@ module Wx
18
18
  #
19
19
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
20
20
  # Event handler methods for events emitted by this class:
21
+ #
21
22
  # - {Wx::EvtHandler#evt_togglebutton}(id, meth = nil, &block): Handles a {Wx::EVT_TOGGLEBUTTON} event.
22
23
  #
23
24
  # ===
24
25
  #
25
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
26
- # </td><td> {Wx::GTK} Appearance
27
- # </td><td> {Wx::OSX} Appearance
26
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
27
+ # </td><td> wxGTK Appearance
28
+ # </td><td> wxOSX Appearance
28
29
  # </td></tr></table></div>
29
30
  # @see Wx::CheckBox
30
31
  # @see Wx::Button
@@ -35,7 +36,7 @@ module Wx
35
36
 
36
37
  # @overload initialize()
37
38
  # Default constructor.
38
- # @return [ToggleButton]
39
+ # @return [Wx::ToggleButton]
39
40
  # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, val=Wx::DEFAULT_VALIDATOR, name=Wx::CheckBoxNameStr)
40
41
  # Constructor, creating and showing a toggle button.
41
42
  #
@@ -49,7 +50,7 @@ module Wx
49
50
  # @param style [Integer] Window style. See {Wx::ToggleButton}.
50
51
  # @param val [Wx::Validator] Window validator.
51
52
  # @param name [String] Window name.
52
- # @return [ToggleButton]
53
+ # @return [Wx::ToggleButton]
53
54
  def initialize(*args) end
54
55
 
55
56
  # Creates the toggle button for two-step construction.
@@ -95,50 +95,67 @@ module Wx
95
95
  # There are several different types of tools you can add to a toolbar. These types are controlled by the {Wx::ItemKind} enumeration.
96
96
  # Note that many methods in {Wx::ToolBar} such as {Wx::ToolBar#add_tool} return a <code>wxToolBarToolBase*</code> object. This should be regarded as an opaque handle representing the newly added toolbar item, providing access to its id and position within the toolbar. Changes to the item's state should be made through calls to {Wx::ToolBar} methods, for example {Wx::ToolBar#enable_tool}. Calls to {Wx::ToolBarToolBase} methods (undocumented by purpose) will not change the visible state of the item within the tool bar.
97
97
  # After you have added all the tools you need, you must call {Wx::ToolBar#realize} to effectively construct and display the toolbar.
98
- # <b>{Wx::MSW} note</b>: Note that under {Wx::MSW} toolbar paints tools to reflect system-wide colours. If you use more than 16 colours in your tool bitmaps, you may wish to suppress this behaviour, otherwise system colours in your bitmaps will inadvertently be mapped to system colours. To do this, set the msw.remap system option before creating the toolbar:
99
- # ```
100
- # wxSystemOptions::SetOption("msw.remap", 0);
98
+ # <b>wxMSW note</b>: Note that under wxMSW toolbar paints tools to reflect system-wide colours. If you use more than 16 colours in your tool bitmaps, you may wish to suppress this behaviour, otherwise system colours in your bitmaps will inadvertently be mapped to system colours. To do this, set the msw.remap system option before creating the toolbar:
99
+ # ```ruby
100
+ # Wx::SystemOptions.set_option('msw.remap', 0)
101
101
  # ```
102
102
  # If you wish to use 32-bit images (which include an alpha channel for transparency) use:
103
+ # ```ruby
104
+ # Wx::SystemOptions.set_option('msw.remap', 2)
103
105
  # ```
104
- # wxSystemOptions::SetOption("msw.remap", 2);
105
- # ```
106
- # Then colour remapping is switched off, and a transparent background used. But only use this option under Windows XP with true colour:
107
- # ```
108
- # if (wxTheApp->GetComCtl32Version() >= 600 && ::wxDisplayDepth() >= 32)
109
- # ```
110
- #
106
+ # Then colour remapping is switched off, and a transparent background used.
111
107
  # === Styles
112
108
  #
113
109
  # This class supports the following styles:
114
- #
110
+ #
115
111
  # - {Wx::TB_FLAT}: Gives the toolbar a flat look (Windows and GTK only).
112
+ #
116
113
  # - {Wx::TB_DOCKABLE}: Makes the toolbar floatable and dockable (GTK only).
114
+ #
117
115
  # - {Wx::TB_HORIZONTAL}: Specifies horizontal layout (default).
116
+ #
118
117
  # - {Wx::TB_VERTICAL}: Specifies vertical layout.
118
+ #
119
119
  # - {Wx::TB_TEXT}: Shows the text in the toolbar buttons; by default only icons are shown.
120
+ #
120
121
  # - {Wx::TB_NOICONS}: Specifies no icons in the toolbar buttons; by default they are shown.
122
+ #
121
123
  # - {Wx::TB_NODIVIDER}: Specifies no divider (border) above the toolbar (Windows only)
124
+ #
122
125
  # - {Wx::TB_NOALIGN}: Specifies no alignment with the parent window (Windows only, not very useful).
126
+ #
123
127
  # - {Wx::TB_HORZ_LAYOUT}: Shows the text and the icons alongside, not vertically stacked (Windows and GTK 2 only). This style must be used with {Wx::TB_TEXT}.
128
+ #
124
129
  # - {Wx::TB_HORZ_TEXT}: Combination of {Wx::TB_HORZ_LAYOUT} and {Wx::TB_TEXT}.
130
+ #
125
131
  # - {Wx::TB_NO_TOOLTIPS}: Don't show the short help tooltips for the tools when the mouse hovers over them.
132
+ #
126
133
  # - {Wx::TB_BOTTOM}: Align the toolbar at the bottom of parent window.
134
+ #
127
135
  # - {Wx::TB_RIGHT}: Align the toolbar at the right side of parent window.
136
+ #
128
137
  # - {Wx::TB_DEFAULT_STYLE}: The {Wx::TB_HORIZONTAL} style. This style is new since wxWidgets 2.9.5.
129
138
  #
130
- # See also Window Styles. Note that the {Wx::MSW} native toolbar ignores {Wx::TB_NOICONS} style. Also, toggling the {Wx::TB_TEXT} works only if the style was initially on.
139
+ # See also Window Styles. Note that the wxMSW native toolbar ignores {Wx::TB_NOICONS} style. Also, toggling the {Wx::TB_TEXT} works only if the style was initially on.
131
140
  # === Events emitted by this class
132
141
  #
133
142
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
134
143
  # Event handler methods for events emitted by this class:
144
+ #
135
145
  # - {Wx::EvtHandler#evt_tool}(id, meth = nil, &block): Process a {Wx::EVT_TOOL} event (a synonym for {Wx::EVT_MENU}). Pass the id of the tool.
146
+ #
136
147
  # - {Wx::EvtHandler#evt_menu}(id, meth = nil, &block): The same as EVT_TOOL().
148
+ #
137
149
  # - {Wx::EvtHandler#evt_tool_range}(id1, id2, meth = nil, &block): Process a {Wx::EVT_TOOL} event for a range of identifiers. Pass the ids of the tools.
150
+ #
138
151
  # - {Wx::EvtHandler#evt_menu_range}(id1, id2, meth = nil, &block): The same as EVT_TOOL_RANGE().
139
- # - {Wx::EvtHandler#evt_tool_rclicked}(id, meth = nil, &block): Process a {Wx::EVT_TOOL_RCLICKED} event. Pass the id of the tool. (Not available on {Wx::OSX}.)
140
- # - {Wx::EvtHandler#evt_tool_rclicked_range}(id1, id2, meth = nil, &block): Process a {Wx::EVT_TOOL_RCLICKED} event for a range of ids. Pass the ids of the tools. (Not available on {Wx::OSX}.)
141
- # - {Wx::EvtHandler#evt_tool_enter}(id, meth = nil, &block): Process a {Wx::EVT_TOOL_ENTER} event. Pass the id of the toolbar itself. The value of {Wx::CommandEvent#get_selection} is the tool id, or -1 if the mouse cursor has moved off a tool. (Not available on {Wx::OSX}.)
152
+ #
153
+ # - {Wx::EvtHandler#evt_tool_rclicked}(id, meth = nil, &block): Process a {Wx::EVT_TOOL_RCLICKED} event. Pass the id of the tool. (Not available on wxOSX.)
154
+ #
155
+ # - {Wx::EvtHandler#evt_tool_rclicked_range}(id1, id2, meth = nil, &block): Process a {Wx::EVT_TOOL_RCLICKED} event for a range of ids. Pass the ids of the tools. (Not available on wxOSX.)
156
+ #
157
+ # - {Wx::EvtHandler#evt_tool_enter}(id, meth = nil, &block): Process a {Wx::EVT_TOOL_ENTER} event. Pass the id of the toolbar itself. The value of {Wx::CommandEvent#get_selection} is the tool id, or -1 if the mouse cursor has moved off a tool. (Not available on wxOSX.)
158
+ #
142
159
  # - {Wx::EvtHandler#evt_tool_dropdown}(id, meth = nil, &block): Process a {Wx::EVT_TOOL_DROPDOWN} event. If unhandled, displays the default dropdown menu set using {Wx::ToolBar#set_dropdown_menu}.
143
160
  #
144
161
  # The toolbar class emits menu commands in the same way that a frame menubar does, so you can use one EVT_MENU() macro for both a menu item and a toolbar button. The event handler functions take a {Wx::CommandEvent} argument. For most event macros, the identifier of the tool is passed, but for EVT_TOOL_ENTER() the toolbar window identifier is passed and the tool identifier is retrieved from the {Wx::CommandEvent}. This is because the identifier may be {Wx::StandardID::ID_ANY} when the mouse moves off a tool, and {Wx::StandardID::ID_ANY} is not allowed as an identifier in the event system.
@@ -227,7 +244,7 @@ module Wx
227
244
 
228
245
  # @overload initialize()
229
246
  # Default constructor.
230
- # @return [ToolBar]
247
+ # @return [Wx::ToolBar]
231
248
  # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TB_HORIZONTAL, name=Wx::ToolBarNameStr)
232
249
  # Constructs a toolbar.
233
250
  # After a toolbar is created, you use {Wx::ToolBar#add_tool} and perhaps {Wx::ToolBar#add_separator}, and then you must call {Wx::ToolBar#realize} to construct and display the toolbar tools.
@@ -237,7 +254,7 @@ module Wx
237
254
  # @param size [Array(Integer, Integer), Wx::Size] Window size. {Wx::DEFAULT_SIZE} indicates that wxWidgets should generate a default size for the window.
238
255
  # @param style [Integer] Window style. See {Wx::ToolBar} initial description for details.
239
256
  # @param name [String] Window name.
240
- # @return [ToolBar]
257
+ # @return [Wx::ToolBar]
241
258
  def initialize(*args) end
242
259
 
243
260
  # Adds a new check (or toggle) tool to the toolbar.
@@ -331,7 +348,7 @@ module Wx
331
348
  # Finds a tool for the given mouse position.
332
349
  # A pointer to a tool if a tool is found, or NULL otherwise.
333
350
  #
334
- # Currently not implemented in {Wx::GTK} (always returns NULL there).
351
+ # Currently not implemented in wxGTK (always returns NULL there).
335
352
  # @param x [Integer] X position.
336
353
  # @param y [Integer] Y position.
337
354
  # @return [Wx::ToolBarToolBase]
@@ -509,11 +526,11 @@ module Wx
509
526
  # It is usually unnecessary to call this function, as the tools will always be made big enough to fit the size of the bitmaps used in them. Moreover, calling it forces {Wx::ToolBar} to scale its images in high DPI using the provided size, instead of letting {Wx::BitmapBundle} used for the tool bitmaps determine the best suitable bitmap size, which may result in suboptimal appearance.
510
527
  # If you do call it, it must be done before toolbar is {Wx::ToolBar#realize}'d.
511
528
  # Example of using this function to force the bitmaps to be at least 32 pixels wide and tall (at normal DPI):
512
- # ```
513
- # toolbar->SetToolBitmapSize(FromDIP(wxSize(32, 32)));
514
- # toolbar->AddTool(wxID_NEW, "New", wxBitmapBundle::FromXXX(...));
529
+ # ```ruby
530
+ # toolbar.set_tool_bitmap_size(from_dip(Wx::Size.new(32, 32)))
531
+ # toolbar.add_tool(Wx::ID_NEW, 'New', Wx::BitmapBundle.from_XXX(...))
515
532
  # ...
516
- # toolbar->Realize();
533
+ # toolbar.realize
517
534
  # ```
518
535
  # @see Wx::ToolBar#get_tool_bitmap_size
519
536
  # @see Wx::ToolBar#get_tool_size
@@ -630,12 +647,12 @@ module Wx
630
647
  # @param clientData [Wx::Object]
631
648
  # @param shortHelpString [String]
632
649
  # @param longHelpString [String]
633
- # @return [ToolBarToolBase]
650
+ # @return [Wx::ToolBarToolBase]
634
651
  # @overload initialize(tbar, control, label)
635
652
  # @param tbar [Wx::ToolBarBase]
636
653
  # @param control [Wx::Control]
637
654
  # @param label [String]
638
- # @return [ToolBarToolBase]
655
+ # @return [Wx::ToolBarToolBase]
639
656
  def initialize(*args) end
640
657
 
641
658
  # @return [Integer]
@@ -16,7 +16,7 @@ module Wx
16
16
 
17
17
  # Constructor.
18
18
  # @param tip [String]
19
- # @return [ToolTip]
19
+ # @return [Wx::ToolTip]
20
20
  def initialize(tip) end
21
21
 
22
22
  # Get the tooltip text.
@@ -56,7 +56,7 @@ module Wx
56
56
  # Set tooltip maximal width in pixels.
57
57
  # By default, tooltips are wrapped at a suitably chosen width. You can pass -1 as width to disable wrapping them completely, 0 to restore the default behaviour or an arbitrary positive value to wrap them at the given width.
58
58
  # Notice that this function does not change the width of the tooltips created before calling it.
59
- # Currently this function is {Wx::MSW}-only.
59
+ # Currently this function is wxMSW-only.
60
60
  # @param width [Integer]
61
61
  # @return [void]
62
62
  def self.set_max_width(width) end
@@ -26,8 +26,9 @@ module Wx
26
26
  # === Styles
27
27
  #
28
28
  # This class supports the following styles:
29
- #
29
+ #
30
30
  # - {Wx::TBK_BUTTONBAR}: Use {Wx::ButtonToolBar}-based implementation under macOS (ignored under other platforms).
31
+ #
31
32
  # - {Wx::TBK_HORZ_LAYOUT}: Shows the text and the icons alongside, not vertically stacked (only implement under Windows and GTK 2 platforms as it relies on {Wx::TB_HORZ_LAYOUT} flag support).
32
33
  #
33
34
  # The common {Wx::BookCtrl} styles described in the wxBookCtrl Overview are also supported.
@@ -35,7 +36,9 @@ module Wx
35
36
  #
36
37
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::BookCtrlEvent} events.
37
38
  # Event handler methods for events emitted by this class:
39
+ #
38
40
  # - {Wx::EvtHandler#evt_toolbook_page_changed}(id, meth = nil, &block): The page selection was changed. Processes a {Wx::EVT_TOOLBOOK_PAGE_CHANGED} event.
41
+ #
39
42
  # - {Wx::EvtHandler#evt_toolbook_page_changing}(id, meth = nil, &block): The page selection is about to be changed. Processes a {Wx::EVT_TOOLBOOK_PAGE_CHANGING} event. This event can be vetoed (using {Wx::NotifyEvent#veto}).
40
43
  #
41
44
  # ===
@@ -51,7 +54,7 @@ module Wx
51
54
 
52
55
  # @overload initialize()
53
56
  # Constructs a choicebook control.
54
- # @return [Toolbook]
57
+ # @return [Wx::Toolbook]
55
58
  # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
56
59
  # Constructs a choicebook control.
57
60
  # @param parent [Wx::Window]
@@ -60,7 +63,7 @@ module Wx
60
63
  # @param size [Array(Integer, Integer), Wx::Size]
61
64
  # @param style [Integer]
62
65
  # @param name [String]
63
- # @return [Toolbook]
66
+ # @return [Wx::Toolbook]
64
67
  def initialize(*args) end
65
68
 
66
69
  # Create the tool book control that has already been constructed with the default constructor.
@@ -63,12 +63,17 @@ module Wx
63
63
  # === Events emitted by this class
64
64
  #
65
65
  # Event handler methods for events emitted by this class:
66
- #
66
+ #
67
67
  # - {Wx::EvtHandler#EVT_MAXIMIZE}(meth = nil, &block): Process a {Wx::EVT_MAXIMIZE} event. See {Wx::MaximizeEvent}.
68
+ #
68
69
  # - {Wx::EvtHandler#evt_move}(meth = nil, &block): Process a {Wx::EVT_MOVE} event, which is generated when a window is moved. See {Wx::MoveEvent}.
69
- # - {Wx::EvtHandler#evt_move_start}(meth = nil, &block): Process a {Wx::EVT_MOVE_START} event, which is generated when the user starts to move or size a window. {Wx::MSW} only. See {Wx::MoveEvent}.
70
- # - {Wx::EvtHandler#evt_move_end}(meth = nil, &block): Process a {Wx::EVT_MOVE_END} event, which is generated when the user stops moving or sizing a window. {Wx::MSW} only. See {Wx::MoveEvent}.
70
+ #
71
+ # - {Wx::EvtHandler#evt_move_start}(meth = nil, &block): Process a {Wx::EVT_MOVE_START} event, which is generated when the user starts to move or size a window. wxMSW only. See {Wx::MoveEvent}.
72
+ #
73
+ # - {Wx::EvtHandler#evt_move_end}(meth = nil, &block): Process a {Wx::EVT_MOVE_END} event, which is generated when the user stops moving or sizing a window. wxMSW only. See {Wx::MoveEvent}.
74
+ #
71
75
  # - {Wx::EvtHandler#evt_show}(meth = nil, &block): Process a {Wx::EVT_SHOW} event. See {Wx::ShowEvent}.
76
+ #
72
77
  # - {Wx::EvtHandler#EVT_FULLSCREEN}(meth = nil, &block): Process a {Wx::EVT_FULLSCREEN} event. See {Wx::FullScreenEvent}.
73
78
  #
74
79
  # ===
@@ -82,7 +87,7 @@ module Wx
82
87
 
83
88
  # @overload initialize()
84
89
  # Default ctor.
85
- # @return [TopLevelWindow]
90
+ # @return [Wx::TopLevelWindow]
86
91
  # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
87
92
  # Constructor creating the top level window.
88
93
  # @param parent [Wx::Window]
@@ -92,7 +97,7 @@ module Wx
92
97
  # @param size [Array(Integer, Integer), Wx::Size]
93
98
  # @param style [Integer]
94
99
  # @param name [String]
95
- # @return [TopLevelWindow]
100
+ # @return [Wx::TopLevelWindow]
96
101
  def initialize(*args) end
97
102
 
98
103
  # Creates the top level window.
@@ -132,7 +137,7 @@ module Wx
132
137
  def enable_close_button(enable=true) end
133
138
 
134
139
  # Enables or disables the Maximize button (in the right or left upper corner of a frame or dialog).
135
- # Currently only implemented for {Wx::MSW} and {Wx::OSX}.
140
+ # Currently only implemented for wxMSW and wxOSX.
136
141
  # The window style must contain {Wx::MAXIMIZE_BOX}.
137
142
  # Returns true if operation was successful. Note that a successful operation does not change the window style flags.
138
143
  # @param enable [true,false]
@@ -140,9 +145,9 @@ module Wx
140
145
  def enable_maximize_button(enable=true) end
141
146
 
142
147
  # Enables or disables the Minimize button (in the right or left upper corner of a frame or dialog).
143
- # Currently only implemented for {Wx::MSW} and {Wx::OSX}.
148
+ # Currently only implemented for wxMSW and wxOSX.
144
149
  # The window style must contain {Wx::MINIMIZE_BOX}.
145
- # Note that in {Wx::MSW} a successful operation will change the window style flags.
150
+ # Note that in wxMSW a successful operation will change the window style flags.
146
151
  # Returns true if operation was successful. Note that a successful operation does not change the window style flags.
147
152
  # @param enable [true,false]
148
153
  # @return [true,false]
@@ -176,7 +181,7 @@ module Wx
176
181
  alias_method :title, :get_title
177
182
 
178
183
  # Iconizes or restores the window.
179
- # Note that in {Wx::GTK} the change to the window state is not immediate, i.e. {Wx::TopLevelWindow#is_iconized} will typically return false right after a call to {Wx::TopLevelWindow#iconize} and its return value will only change after the control flow returns to the event loop and the notification about the window being really iconized is received.
184
+ # Note that in wxGTK the change to the window state is not immediate, i.e. {Wx::TopLevelWindow#is_iconized} will typically return false right after a call to {Wx::TopLevelWindow#iconize} and its return value will only change after the control flow returns to the event loop and the notification about the window being really iconized is received.
180
185
  # @see Wx::TopLevelWindow#is_iconized
181
186
  # @see Wx::TopLevelWindow#restore()
182
187
  # @see Wx::IconizeEvent.
@@ -227,7 +232,7 @@ module Wx
227
232
  def layout; end
228
233
 
229
234
  # Maximizes or restores the window.
230
- # Note that, just as with {Wx::TopLevelWindow#iconize}, the change to the window state is not immediate in at least {Wx::GTK} port.
235
+ # Note that, just as with {Wx::TopLevelWindow#iconize}, the change to the window state is not immediate in at least wxGTK port.
231
236
  # @see Wx::TopLevelWindow#restore
232
237
  # @see Wx::TopLevelWindow#iconize
233
238
  # @param maximize [true,false] If true, maximizes the window, otherwise it restores it.
@@ -239,8 +244,8 @@ module Wx
239
244
  # Notice that because of the native system limitations the identifiers of the items added to the system menu must be multiples of 16, otherwise no events will be generated for them.
240
245
  # The returned pointer must not be deleted, it is owned by the window and will be only deleted when the window itself is destroyed.
241
246
  # This function is not available in the other ports by design, any occurrences of it in the portable code must be guarded by
242
- # ```
243
- # #ifdef __WXMSW__
247
+ # ```ruby
248
+ # if Wx::PLATFORM == 'WXMSW'
244
249
  # ```
245
250
  # preprocessor guards.
246
251
  # @return [Wx::Menu]
@@ -250,13 +255,13 @@ module Wx
250
255
  # flags may have the value of either {Wx::USER_ATTENTION_INFO} (default) or {Wx::USER_ATTENTION_ERROR} which results in a more drastic action. When in doubt, use the default value.
251
256
  # This function should normally be only used when the application is not already in foreground.
252
257
  #
253
- # This function is currently implemented for Win32 where it flashes the window icon in the taskbar, and for {Wx::GTK} with task bars supporting it.
258
+ # This function is currently implemented for Win32 where it flashes the window icon in the taskbar, and for wxGTK with task bars supporting it.
254
259
  # @param flags [Integer]
255
260
  # @return [void]
256
261
  def request_user_attention(flags=Wx::USER_ATTENTION_INFO) end
257
262
 
258
263
  # Restore a previously iconized or maximized window to its normal state.
259
- # In {Wx::GTK} this method currently doesn't return the maximized window to its normal state and you must use {Wx::TopLevelWindow#maximize} with false argument explicitly for this. In the other ports, it both unmaximizes the maximized windows and uniconizes the iconized ones.
264
+ # In wxGTK this method currently doesn't return the maximized window to its normal state and you must use {Wx::TopLevelWindow#maximize} with false argument explicitly for this. In the other ports, it both unmaximizes the maximized windows and uniconizes the iconized ones.
260
265
  # @see Wx::TopLevelWindow#iconize
261
266
  # @see Wx::TopLevelWindow#maximize
262
267
  # @return [void]
@@ -282,7 +287,7 @@ module Wx
282
287
  # Sets the icon for this window.
283
288
  # The window takes a 'copy' of icon, but since it uses reference counting, the copy is very quick. It is safe to delete icon after calling this function.
284
289
  #
285
- # In {Wx::MSW}, icon must be either 16x16 or 32x32 icon.
290
+ # In wxMSW, icon must be either 16x16 or 32x32 icon.
286
291
  # @see Wx::Icon
287
292
  # @see Wx::TopLevelWindow#set_icons
288
293
  # @param icon [Wx::Icon] The {Wx::Icon} to associate with this window.
@@ -293,7 +298,7 @@ module Wx
293
298
  # Sets several icons of different sizes for this window: this allows using different icons for different situations (e.g.
294
299
  # task switching bar, taskbar, window title bar) instead of scaling, with possibly bad looking results, the only icon set by {Wx::TopLevelWindow#set_icon}.
295
300
  #
296
- # In {Wx::MSW}, icons must contain a 16x16 or 32x32 icon, preferably both.
301
+ # In wxMSW, icons must contain a 16x16 or 32x32 icon, preferably both.
297
302
  # @see Wx::IconBundle
298
303
  # @param icons [Wx::IconBundle] The icons to associate with this window.
299
304
  # @return [void]
@@ -331,7 +336,7 @@ module Wx
331
336
  # Notice that this function not only prevents the user from resizing the window outside the given bounds but it also prevents the program itself from doing it using {Wx::Window#set_size}.
332
337
  # @param minSize [Array(Integer, Integer), Wx::Size] The minimum size of the window.
333
338
  # @param maxSize [Array(Integer, Integer), Wx::Size] The maximum size of the window.
334
- # @param incSize [Array(Integer, Integer), Wx::Size] Increment size (only taken into account under X11-based ports such as {Wx::GTK}/{Wx::Motif}/{Wx::X11}).
339
+ # @param incSize [Array(Integer, Integer), Wx::Size] Increment size (only taken into account under X11-based ports such as wxGTK/{Wx::Motif}/wxX11).
335
340
  # @return [void]
336
341
  def set_size_hints(*args) end
337
342
  alias_method :size_hints=, :set_size_hints
@@ -345,7 +350,7 @@ module Wx
345
350
  alias_method :title=, :set_title
346
351
 
347
352
  # If the platform supports it will set the window to be translucent.
348
- # Note that in {Wx::GTK} this function must be called before the window is shown the first time it's called (but it can be called again after showing the window too).
353
+ # Note that in wxGTK this function must be called before the window is shown the first time it's called (but it can be called again after showing the window too).
349
354
  # See the shaped sample for an example of using this function.
350
355
  # @param alpha [Integer] Determines how opaque or transparent the window will be, if the platform supports the operation. A value of 0 sets the window to be fully transparent, and a value of 255 sets the window to be fully opaque.
351
356
  # @return [true,false]
@@ -389,7 +394,7 @@ module Wx
389
394
  #
390
395
  # Having the button is also required to let {Wx::TopLevelWindow#show_full_screen} make use of the full screen API: a full screen window gets its own space and entering and exiting the mode is animated. If the button is not present the old way of switching to full screen is used. Only {Wx::FULLSCREEN_NOTOOLBAR} and {Wx::FULLSCREEN_NOMENUBAR} will be used when using the fullscreen API (other values are ignored).
391
396
  #
392
- # Availability: only available for the {Wx::OSX/Cocoa} port. {Wx::osx}
397
+ # Availability: only available for the wxOSX/Cocoa port. {Wx::osx}
393
398
  # @see Wx::TopLevelWindow#show_full_screen
394
399
  # @see Wx::FullScreenEvent
395
400
  # @param enable [true,false] If true (default) make the zoom button toggle full screen; if false the button does only toggle zoom.
@@ -400,7 +405,12 @@ module Wx
400
405
  # Depending on the value of show parameter the window is either shown full screen or restored to its normal state.
401
406
  # style is a bit list containing some or all of the following values, which indicate what elements of the window to hide in full-screen mode:
402
407
  #
403
- # - {Wx::FULLSCREEN_NOMENUBAR} - {Wx::FULLSCREEN_NOTOOLBAR} - {Wx::FULLSCREEN_NOSTATUSBAR} - {Wx::FULLSCREEN_NOBORDER} - {Wx::FULLSCREEN_NOCAPTION} - {Wx::FULLSCREEN_ALL} (all of the above)
408
+ # - {Wx::FULLSCREEN_NOMENUBAR}
409
+ # - {Wx::FULLSCREEN_NOTOOLBAR}
410
+ # - {Wx::FULLSCREEN_NOSTATUSBAR}
411
+ # - {Wx::FULLSCREEN_NOBORDER}
412
+ # - {Wx::FULLSCREEN_NOCAPTION}
413
+ # - {Wx::FULLSCREEN_ALL} (all of the above)
404
414
  #
405
415
  # This function has not been tested with MDI frames.
406
416
  # Showing a window full screen also actually {Wx::TopLevelWindow#show}s the window if it isn't shown.
@@ -425,7 +435,7 @@ module Wx
425
435
  #
426
436
  # Windows 7 or newer is required but any macOS version is supported.
427
437
  #
428
- # Availability: only available for the {Wx::MSW}, {Wx::OSX/Cocoa} ports. {Wx::msw},{Wx::osx}
438
+ # Availability: only available for the wxMSW, wxOSX/Cocoa ports. {Wx::msw},{Wx::osx}
429
439
  # @see Wx::TopLevelWindow#get_content_protection
430
440
  # @param contentProtection [ContentProtection]
431
441
  # @return [true,false]
@@ -435,10 +445,10 @@ module Wx
435
445
  # This method is specific to {Wx::Universal} port.
436
446
  # Use native or custom-drawn decorations for this window only. Notice that to have any effect this method must be called before really creating the window, i.e. two step creation must be used:
437
447
  #
438
- # ```
439
- # MyFrame *frame = new MyFrame; // use default ctor
440
- # frame->UseNativeDecorations(false); // change from default "true"
441
- # frame->Create(parent, title, ...); // really create the frame
448
+ # ```ruby
449
+ # frame = MyFrame.new # use default ctor
450
+ # frame.use_native_decorations(false) # change from default "true"
451
+ # frame.create(parent, title, ...) # really create the frame
442
452
  # ```
443
453
  # @see Wx::TopLevelWindow#use_native_decorations_by_default
444
454
  # @see Wx::TopLevelWindow#is_using_native_decorations