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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (383) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +73 -22
  3. data/README.md +40 -8
  4. data/assets/hello_button-macos.png +0 -0
  5. data/assets/hello_button-msw.png +0 -0
  6. data/assets/hello_button_clicked-macos.png +0 -0
  7. data/assets/hello_button_clicked-msw.png +0 -0
  8. data/assets/hello_button_clicked_combi.png +0 -0
  9. data/assets/hello_world-macos.png +0 -0
  10. data/assets/hello_world-msw.png +0 -0
  11. data/assets/hello_world_combi.png +0 -0
  12. data/ext/wxbase32u_gcc_custom.dll +0 -0
  13. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  14. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  23. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  24. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  25. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  26. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  27. data/lib/wx/core/brush.rb +6 -0
  28. data/lib/wx/core/event_loop.rb +7 -0
  29. data/lib/wx/core/events/evt_list.rb +7 -0
  30. data/lib/wx/core/evthandler.rb +12 -2
  31. data/lib/wx/core/font.rb +22 -14
  32. data/lib/wx/core/helpprovider.rb +2 -2
  33. data/lib/wx/core/image.rb +33 -0
  34. data/lib/wx/core/listctrl.rb +17 -13
  35. data/lib/wx/core/log.rb +90 -0
  36. data/lib/wx/core/menu.rb +5 -0
  37. data/lib/wx/core/pen.rb +6 -0
  38. data/lib/wx/core/window.rb +28 -1
  39. data/lib/wx/doc/app.rb +40 -0
  40. data/lib/wx/doc/bitmap.rb +11 -15
  41. data/lib/wx/doc/brush.rb +17 -0
  42. data/lib/wx/doc/event_loop.rb +7 -0
  43. data/lib/wx/doc/extra/00_starting.md +6 -6
  44. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  45. data/lib/wx/doc/extra/09_exceptions.md +1 -1
  46. data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
  47. data/lib/wx/doc/font.rb +27 -0
  48. data/lib/wx/doc/functions.rb +51 -23
  49. data/lib/wx/doc/gc_dc.rb +1 -1
  50. data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
  51. data/lib/wx/doc/gen/accelerator.rb +6 -6
  52. data/lib/wx/doc/gen/accessible.rb +6 -2
  53. data/lib/wx/doc/gen/activity_indicator.rb +65 -0
  54. data/lib/wx/doc/gen/animation.rb +7 -7
  55. data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
  56. data/lib/wx/doc/gen/any_button.rb +1 -1
  57. data/lib/wx/doc/gen/app.rb +17 -11
  58. data/lib/wx/doc/gen/art_provider.rb +61 -1
  59. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  60. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  61. data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
  62. data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
  63. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
  64. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
  65. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
  66. data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
  67. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  68. data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
  69. data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
  70. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +35 -20
  71. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
  72. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
  73. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
  74. data/lib/wx/doc/gen/bitmap.rb +32 -26
  75. data/lib/wx/doc/gen/bitmap_button.rb +10 -6
  76. data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
  77. data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
  78. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  79. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  80. data/lib/wx/doc/gen/brush.rb +16 -4
  81. data/lib/wx/doc/gen/busy_info.rb +1 -1
  82. data/lib/wx/doc/gen/button.rb +19 -7
  83. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  84. data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
  85. data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
  86. data/lib/wx/doc/gen/calendar_event.rb +3 -3
  87. data/lib/wx/doc/gen/caret.rb +2 -2
  88. data/lib/wx/doc/gen/check_box.rb +10 -6
  89. data/lib/wx/doc/gen/check_list_box.rb +8 -7
  90. data/lib/wx/doc/gen/choice.rb +7 -6
  91. data/lib/wx/doc/gen/choicebook.rb +12 -6
  92. data/lib/wx/doc/gen/client_dc.rb +1 -1
  93. data/lib/wx/doc/gen/clipboard.rb +1 -1
  94. data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
  95. data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
  96. data/lib/wx/doc/gen/colour.rb +16 -6
  97. data/lib/wx/doc/gen/colour_dialog.rb +6 -6
  98. data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
  99. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  100. data/lib/wx/doc/gen/combo_box.rb +22 -13
  101. data/lib/wx/doc/gen/context_help_button.rb +50 -1
  102. data/lib/wx/doc/gen/control.rb +9 -6
  103. data/lib/wx/doc/gen/core.rb +5 -2
  104. data/lib/wx/doc/gen/cursor.rb +16 -11
  105. data/lib/wx/doc/gen/data_format.rb +2 -2
  106. data/lib/wx/doc/gen/data_object.rb +23 -16
  107. data/lib/wx/doc/gen/date_event.rb +3 -3
  108. data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
  109. data/lib/wx/doc/gen/dc.rb +37 -12
  110. data/lib/wx/doc/gen/defs.rb +16 -16
  111. data/lib/wx/doc/gen/dialog.rb +19 -5
  112. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  113. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  114. data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
  115. data/lib/wx/doc/gen/drag_drop.rb +15 -15
  116. data/lib/wx/doc/gen/drag_image.rb +6 -6
  117. data/lib/wx/doc/gen/editable_list_box.rb +7 -3
  118. data/lib/wx/doc/gen/event.rb +44 -13
  119. data/lib/wx/doc/gen/event_blocker.rb +19 -17
  120. data/lib/wx/doc/gen/event_filter.rb +43 -47
  121. data/lib/wx/doc/gen/event_list.rb +22 -15
  122. data/lib/wx/doc/gen/events.rb +215 -79
  123. data/lib/wx/doc/gen/evt_handler.rb +1 -1
  124. data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
  125. data/lib/wx/doc/gen/file_dialog.rb +64 -56
  126. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  127. data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
  128. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  129. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  130. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  131. data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
  132. data/lib/wx/doc/gen/font.rb +39 -29
  133. data/lib/wx/doc/gen/font_data.rb +9 -5
  134. data/lib/wx/doc/gen/font_dialog.rb +3 -3
  135. data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
  136. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  137. data/lib/wx/doc/gen/frame.rb +34 -11
  138. data/lib/wx/doc/gen/fs_file.rb +4 -17
  139. data/lib/wx/doc/gen/gauge.rb +11 -7
  140. data/lib/wx/doc/gen/gcdc.rb +5 -1
  141. data/lib/wx/doc/gen/gdi_common.rb +35 -33
  142. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  143. data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
  144. data/lib/wx/doc/gen/graphics_context.rb +29 -28
  145. data/lib/wx/doc/gen/graphics_object.rb +1 -1
  146. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
  147. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
  148. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
  149. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
  150. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  151. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
  152. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
  153. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
  154. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
  155. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  156. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
  157. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  158. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  159. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  160. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  161. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
  162. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
  163. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
  164. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
  165. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
  166. data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
  167. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  168. data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
  169. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
  170. data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
  171. data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
  172. data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
  173. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  174. data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
  175. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  176. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  177. data/lib/wx/doc/gen/help_controller.rb +18 -12
  178. data/lib/wx/doc/gen/html/html_cell.rb +36 -18
  179. data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
  180. data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
  181. data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
  182. data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
  183. data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
  184. data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
  185. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  186. data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
  187. data/lib/wx/doc/gen/html/html_printout.rb +15 -5
  188. data/lib/wx/doc/gen/html/html_window.rb +19 -8
  189. data/lib/wx/doc/gen/hyperlink_ctrl.rb +152 -0
  190. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  191. data/lib/wx/doc/gen/icon.rb +14 -14
  192. data/lib/wx/doc/gen/image.rb +119 -64
  193. data/lib/wx/doc/gen/image_list.rb +10 -6
  194. data/lib/wx/doc/gen/keyboard_state.rb +7 -7
  195. data/lib/wx/doc/gen/list_box.rb +30 -21
  196. data/lib/wx/doc/gen/list_ctrl.rb +169 -78
  197. data/lib/wx/doc/gen/list_event.rb +24 -2
  198. data/lib/wx/doc/gen/listbook.rb +12 -6
  199. data/lib/wx/doc/gen/locale.rb +11 -36
  200. data/lib/wx/doc/gen/log.rb +122 -45
  201. data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
  202. data/lib/wx/doc/gen/mdi_frame.rb +15 -9
  203. data/lib/wx/doc/gen/media_ctrl.rb +7 -4
  204. data/lib/wx/doc/gen/media_event.rb +8 -2
  205. data/lib/wx/doc/gen/memory_dc.rb +23 -27
  206. data/lib/wx/doc/gen/menu.rb +9 -9
  207. data/lib/wx/doc/gen/menu_bar.rb +4 -10
  208. data/lib/wx/doc/gen/menu_item.rb +115 -34
  209. data/lib/wx/doc/gen/message_dialog.rb +48 -30
  210. data/lib/wx/doc/gen/mini_frame.rb +12 -3
  211. data/lib/wx/doc/gen/mouse_state.rb +1 -1
  212. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  213. data/lib/wx/doc/gen/non_owned_window.rb +6 -7
  214. data/lib/wx/doc/gen/notebook.rb +20 -15
  215. data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
  216. data/lib/wx/doc/gen/object.rb +2 -2
  217. data/lib/wx/doc/gen/palette.rb +3 -3
  218. data/lib/wx/doc/gen/panel.rb +4 -3
  219. data/lib/wx/doc/gen/pen.rb +25 -12
  220. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
  221. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
  222. data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
  223. data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
  224. data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
  225. data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
  226. data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
  227. data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
  228. data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
  229. data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
  230. data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
  231. data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
  232. data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
  233. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
  234. data/lib/wx/doc/gen/picker_base.rb +12 -11
  235. data/lib/wx/doc/gen/platform_info.rb +7 -7
  236. data/lib/wx/doc/gen/popup_window.rb +6 -6
  237. data/lib/wx/doc/gen/progress_dialog.rb +1 -1
  238. data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
  239. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  240. data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
  241. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  242. data/lib/wx/doc/gen/prt/print_data.rb +24 -18
  243. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  244. data/lib/wx/doc/gen/prt/printer.rb +22 -22
  245. data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
  246. data/lib/wx/doc/gen/radio_box.rb +12 -18
  247. data/lib/wx/doc/gen/radio_button.rb +8 -6
  248. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
  249. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
  250. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  251. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
  252. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
  253. data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
  254. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
  255. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  256. data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
  257. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
  258. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  259. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
  260. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
  261. data/lib/wx/doc/gen/region.rb +9 -8
  262. data/lib/wx/doc/gen/region_iterator.rb +2 -2
  263. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
  264. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
  265. data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
  266. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
  267. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
  268. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
  269. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
  270. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  271. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  272. data/lib/wx/doc/gen/sash_event.rb +3 -1
  273. data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
  274. data/lib/wx/doc/gen/sash_window.rb +8 -3
  275. data/lib/wx/doc/gen/scroll_bar.rb +29 -8
  276. data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
  277. data/lib/wx/doc/gen/scrolled_control.rb +41 -23
  278. data/lib/wx/doc/gen/scrolled_window.rb +41 -23
  279. data/lib/wx/doc/gen/search_ctrl.rb +15 -8
  280. data/lib/wx/doc/gen/simplebook.rb +2 -2
  281. data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
  282. data/lib/wx/doc/gen/sizer.rb +29 -28
  283. data/lib/wx/doc/gen/slider.rb +49 -16
  284. data/lib/wx/doc/gen/spin_button.rb +15 -9
  285. data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
  286. data/lib/wx/doc/gen/spin_event.rb +5 -2
  287. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  288. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  289. data/lib/wx/doc/gen/splitter_window.rb +20 -4
  290. data/lib/wx/doc/gen/static_bitmap.rb +5 -5
  291. data/lib/wx/doc/gen/static_box.rb +36 -32
  292. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  293. data/lib/wx/doc/gen/static_line.rb +5 -4
  294. data/lib/wx/doc/gen/static_text.rb +12 -6
  295. data/lib/wx/doc/gen/status_bar.rb +14 -5
  296. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
  297. data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
  298. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  299. data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
  300. data/lib/wx/doc/gen/system_options.rb +11 -1
  301. data/lib/wx/doc/gen/system_settings.rb +3 -3
  302. data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
  303. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  304. data/lib/wx/doc/gen/text_attr.rb +11 -7
  305. data/lib/wx/doc/gen/text_ctrl.rb +61 -92
  306. data/lib/wx/doc/gen/text_entry.rb +28 -40
  307. data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
  308. data/lib/wx/doc/gen/text_validator.rb +0 -11
  309. data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
  310. data/lib/wx/doc/gen/timer.rb +8 -4
  311. data/lib/wx/doc/gen/timer_event.rb +19 -26
  312. data/lib/wx/doc/gen/tip_provider.rb +1 -1
  313. data/lib/wx/doc/gen/toggle_button.rb +6 -5
  314. data/lib/wx/doc/gen/tool_bar.rb +41 -24
  315. data/lib/wx/doc/gen/tool_tip.rb +2 -2
  316. data/lib/wx/doc/gen/toolbook.rb +6 -3
  317. data/lib/wx/doc/gen/top_level_window.rb +35 -25
  318. data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
  319. data/lib/wx/doc/gen/tree_event.rb +23 -2
  320. data/lib/wx/doc/gen/treebook.rb +6 -2
  321. data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
  322. data/lib/wx/doc/gen/utils.rb +9 -3
  323. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  324. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  325. data/lib/wx/doc/gen/validator.rb +7 -5
  326. data/lib/wx/doc/gen/variant.rb +34 -97
  327. data/lib/wx/doc/gen/window.rb +157 -102
  328. data/lib/wx/doc/gen/window_dc.rb +1 -1
  329. data/lib/wx/doc/gen/with_images.rb +1 -1
  330. data/lib/wx/doc/gen/wizard.rb +17 -4
  331. data/lib/wx/doc/gen/wizard_event.rb +9 -2
  332. data/lib/wx/doc/gen/wizard_page.rb +1 -1
  333. data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
  334. data/lib/wx/doc/gen/xml_node.rb +3 -3
  335. data/lib/wx/doc/gen/xml_resource.rb +12 -9
  336. data/lib/wx/doc/image.rb +42 -12
  337. data/lib/wx/doc/list_ctrl.rb +32 -0
  338. data/lib/wx/doc/log.rb +28 -0
  339. data/lib/wx/doc/pen.rb +17 -0
  340. data/lib/wx/doc/prt/printer_dc.rb +2 -2
  341. data/lib/wx/doc/radio_box.rb +20 -0
  342. data/lib/wx/doc/scaled_dc.rb +1 -1
  343. data/lib/wx/doc/text_validator.rb +12 -0
  344. data/lib/wx/doc/window.rb +27 -0
  345. data/lib/wx/keyword_defs.rb +77 -76
  346. data/lib/wx/prt/keyword_defs.rb +5 -1
  347. data/lib/wx/version.rb +1 -1
  348. data/lib/wxruby_aui.so +0 -0
  349. data/lib/wxruby_core.so +0 -0
  350. data/lib/wxruby_grid.so +0 -0
  351. data/lib/wxruby_html.so +0 -0
  352. data/lib/wxruby_pg.so +0 -0
  353. data/lib/wxruby_prt.so +0 -0
  354. data/lib/wxruby_rbn.so +0 -0
  355. data/lib/wxruby_rtc.so +0 -0
  356. data/lib/wxruby_stc.so +0 -0
  357. data/rakelib/install.rb +17 -6
  358. data/rakelib/lib/config/linux.rb +4 -2
  359. data/rakelib/lib/config/macosx.rb +120 -1
  360. data/rakelib/lib/config/mingw.rb +6 -1
  361. data/rakelib/lib/config/unixish.rb +26 -11
  362. data/rakelib/lib/config.rb +15 -6
  363. data/samples/aui/aui.rb +432 -363
  364. data/samples/propgrid/propgrid.rb +3 -0
  365. data/samples/sampler/editor.rb +33 -25
  366. data/samples/sampler/sample.rb +2 -2
  367. data/samples/sampler/stc_editor.rb +4 -2
  368. data/tests/lib/item_container_tests.rb +82 -0
  369. data/tests/lib/text_entry_tests.rb +80 -0
  370. data/tests/lib/wxapp_runner.rb +12 -0
  371. data/tests/lib/wxframe_runner.rb +89 -4
  372. data/tests/test_art.rb +9 -0
  373. data/tests/test_box_sizer.rb +161 -0
  374. data/tests/test_ext_controls.rb +28 -0
  375. data/tests/test_font.rb +239 -0
  376. data/tests/test_grid_sizer.rb +148 -0
  377. data/tests/test_intl.rb +5 -1
  378. data/tests/test_list_ctrl.rb +53 -0
  379. data/tests/test_log.rb +163 -0
  380. data/tests/test_std_controls.rb +321 -37
  381. data/tests/test_timer.rb +95 -0
  382. data/tests/test_window.rb +340 -0
  383. metadata +36 -2
@@ -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.
@@ -26,32 +26,47 @@ module Wx
26
26
  # {Wx::Frame} processes the following events:
27
27
  #
28
28
  # - {Wx::EVT_SIZE}: if the frame has exactly one child window, not counting the status and toolbar, this child is resized to take the entire frame client area. If two or more windows are present, they should be laid out explicitly either by manually handling {Wx::EVT_SIZE} or using sizers;
29
+ #
29
30
  # - {Wx::EVT_MENU_HIGHLIGHT}: the default implementation displays the help string associated with the selected item in the first pane of the status bar, if there is one.
30
31
  #
31
32
  # === Styles
32
33
  #
33
34
  # This class supports the following styles:
34
- #
35
+ #
35
36
  # - {Wx::DEFAULT_FRAME_STYLE}: Defined as {Wx::MINIMIZE_BOX} | {Wx::MAXIMIZE_BOX} | {Wx::RESIZE_BORDER} | {Wx::SYSTEM_MENU} | {Wx::CAPTION} | {Wx::CLOSE_BOX} | {Wx::CLIP_CHILDREN}.
37
+ #
36
38
  # - {Wx::ICONIZE}: Display the frame iconized (minimized). Windows only.
39
+ #
37
40
  # - {Wx::CAPTION}: Puts a caption on the frame. Notice that this flag is required by {Wx::MINIMIZE_BOX}, {Wx::MAXIMIZE_BOX} and {Wx::CLOSE_BOX} on most systems as the corresponding buttons cannot be shown if the window has no title bar at all. I.e. if {Wx::CAPTION} is not specified those styles would be simply ignored.
41
+ #
38
42
  # - {Wx::MINIMIZE}: Identical to {Wx::ICONIZE}. Windows only.
43
+ #
39
44
  # - {Wx::MINIMIZE_BOX}: Displays a minimize box on the frame.
45
+ #
40
46
  # - {Wx::MAXIMIZE}: Displays the frame maximized. Windows and GTK+ only.
41
- # - {Wx::MAXIMIZE_BOX}: Displays a maximize box on the frame. Notice that under {Wx::GTK} {Wx::RESIZE_BORDER} must be used as well or this style is ignored.
47
+ #
48
+ # - {Wx::MAXIMIZE_BOX}: Displays a maximize box on the frame. Notice that under wxGTK {Wx::RESIZE_BORDER} must be used as well or this style is ignored.
49
+ #
42
50
  # - {Wx::CLOSE_BOX}: Displays a close box on the frame.
51
+ #
43
52
  # - {Wx::STAY_ON_TOP}: Stay on top of all other windows, see also {Wx::FRAME_FLOAT_ON_PARENT}.
53
+ #
44
54
  # - {Wx::SYSTEM_MENU}: Displays a system menu containing the list of various windows commands in the window title bar. Unlike {Wx::MINIMIZE_BOX}, {Wx::MAXIMIZE_BOX} and {Wx::CLOSE_BOX} styles this style can be used without {Wx::CAPTION}, at least under Windows, and makes the system menu available without showing it on screen in this case. However it is recommended to only use it together with {Wx::CAPTION} for consistent behaviour under all platforms.
55
+ #
45
56
  # - {Wx::RESIZE_BORDER}: Displays a resizable border around the window.
57
+ #
46
58
  # - {Wx::FRAME_TOOL_WINDOW}: Causes a frame with a small title bar to be created; the frame does not appear in the taskbar under Windows or GTK+.
47
- # - {Wx::FRAME_NO_TASKBAR}: Creates an otherwise normal frame but it does not appear in the taskbar under Windows or GTK+ (note that it will minimize to the desktop window under Windows which may seem strange to the users and thus it might be better to use this style only without {Wx::MINIMIZE_BOX} style). In {Wx::GTK}, the flag is respected only if the window manager supports _NET_WM_STATE_SKIP_TASKBAR hint.
59
+ #
60
+ # - {Wx::FRAME_NO_TASKBAR}: Creates an otherwise normal frame but it does not appear in the taskbar under Windows or GTK+ (note that it will minimize to the desktop window under Windows which may seem strange to the users and thus it might be better to use this style only without {Wx::MINIMIZE_BOX} style). In wxGTK, the flag is respected only if the window manager supports _NET_WM_STATE_SKIP_TASKBAR hint.
61
+ #
48
62
  # - {Wx::FRAME_FLOAT_ON_PARENT}: The frame will always be on top of its parent (unlike {Wx::STAY_ON_TOP}). A frame created with this style must have a non-NULL parent.
63
+ #
49
64
  # - {Wx::FRAME_SHAPED}: Windows with this style are allowed to have their shape changed with the {Wx::Frame#set_shape} method.
50
65
  #
51
66
  # The default frame style is for normal, resizable frames. To create a frame which cannot be resized by user, you may use the following combination of styles:
52
67
  #
53
- # ```
54
- # wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX)
68
+ # ```ruby
69
+ # Wx::DEFAULT_FRAME_STYLE & ~(Wx::RESIZE_BORDER | Wx::MAXIMIZE_BOX)
55
70
  # ```
56
71
  #
57
72
  # See also the Window Styles.
@@ -59,19 +74,25 @@ module Wx
59
74
  # === Extra Styles
60
75
  #
61
76
  # This class supports the following extra styles:
62
- #
77
+ #
63
78
  # - {Wx::FRAME_EX_CONTEXTHELP}: Under Windows, puts a query button on the caption. When pressed, Windows will go into a context-sensitive help mode and wxWidgets will send a {Wx::EVT_HELP} event if the user clicked on an application window. Note that this is an extended style and must be set by calling SetExtraStyle before Create is called (two-step construction). You cannot use this style together with {Wx::MAXIMIZE_BOX} or {Wx::MINIMIZE_BOX}, so you should use {Wx::DEFAULT_FRAME_STYLE} ~ ({Wx::MINIMIZE_BOX} | {Wx::MAXIMIZE_BOX}) for the frames having this style (the dialogs don't have a minimize or a maximize box by default)
79
+ #
64
80
  # - {Wx::FRAME_EX_METAL}: On macOS, frames with this style will be shown with a metallic look. This is an extra style.
65
81
  #
66
82
  # === Events emitted by this class
67
83
  #
68
84
  # Event handler methods for events emitted by this class:
69
- #
85
+ #
70
86
  # - {Wx::EvtHandler#evt_close}(meth = nil, &block): Process a {Wx::EVT_CLOSE_WINDOW} event when the frame is being closed by the user or programmatically (see {Wx::Window#close}). The user may generate this event clicking the close button (typically the 'X' on the top-right of the title bar) if it's present (see the {Wx::CLOSE_BOX} style). See {Wx::CloseEvent}.
87
+ #
71
88
  # - {Wx::EvtHandler#evt_iconize}(meth = nil, &block): Process a {Wx::EVT_ICONIZE} event. See {Wx::IconizeEvent}.
89
+ #
72
90
  # - {Wx::EvtHandler#evt_menu_open}(meth = nil, &block): A menu is about to be opened. See {Wx::MenuEvent}.
91
+ #
73
92
  # - {Wx::EvtHandler#evt_menu_close}(meth = nil, &block): A menu has been just closed. See {Wx::MenuEvent}.
93
+ #
74
94
  # - {Wx::EvtHandler#evt_menu_highlight}(id, meth = nil, &block): The menu item with the specified id has been highlighted: used to show help prompts in the status bar by {Wx::Frame}. See {Wx::MenuEvent}.
95
+ #
75
96
  # - {Wx::EvtHandler#evt_menu_highlight_all}(meth = nil, &block): A menu item has been highlighted, i.e. the currently selected menu item has changed. See {Wx::MenuEvent}.
76
97
  #
77
98
  # ===
@@ -87,7 +108,7 @@ module Wx
87
108
 
88
109
  # @overload initialize()
89
110
  # Default constructor.
90
- # @return [Frame]
111
+ # @return [Wx::Frame]
91
112
  # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
92
113
  # Constructor, creating the window.
93
114
  # For Motif, MWM (the Motif Window Manager) should be running for any window styles to work (otherwise all styles take effect).
@@ -99,7 +120,7 @@ module Wx
99
120
  # @param size [Array(Integer, Integer), Wx::Size] The window size. The value {Wx::DEFAULT_SIZE} indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
100
121
  # @param style [Integer] The window style. See {Wx::Frame} class description.
101
122
  # @param name [String] The name of the window. This parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual windows.
102
- # @return [Frame]
123
+ # @return [Wx::Frame]
103
124
  def initialize(*args) end
104
125
 
105
126
  # Centres the frame on the display.
@@ -255,8 +276,10 @@ module Wx
255
276
  # Returns a {Wx::TaskBarButton} pointer representing the taskbar button of the window under Windows 7 or later. The returned {Wx::TaskBarButton} may be used, if non-NULL, to access the functionality including thumbnail representations, thumbnail toolbars, notification and status overlays, and progress indicators.
256
277
  # The returned pointer must not be deleted, it is owned by the frame and will be only deleted when the frame itself is destroyed.
257
278
  # This function is not available in the other ports by design, any occurrences of it in the portable code must be guarded by
258
- # ```
259
- # #ifdef __WXMSW__
279
+ # ```ruby
280
+ # if Wx::PLATFORM == 'WXMSW'
281
+ # #...
282
+ # end
260
283
  # ```
261
284
  # preprocessor guards.
262
285
  # @return [Wx::TaskBarButton]
@@ -38,19 +38,6 @@ module Wx
38
38
 
39
39
  # Constructor.
40
40
  # You probably won't use it. See the Note for details.
41
- # It is seldom used by the application programmer but you will need it if you are writing your own virtual FS. For example you may need something similar to {Wx::MemoryInputStream}, but because {Wx::MemoryInputStream} doesn't free the memory when destroyed and thus passing a memory stream pointer into {Wx::FSFile} constructor would lead to memory leaks, you can write your own class derived from {Wx::FSFile}:
42
- #
43
- # ```
44
- # class wxMyFSFile : public wxFSFile
45
- # {
46
- # private:
47
- # void *m_Mem;
48
- # public:
49
- # wxMyFSFile(.....)
50
- # ~wxMyFSFile() {free(m_Mem);}
51
- # // of course dtor is virtual ;-)
52
- # };
53
- # ```
54
41
  #
55
42
  # If you are not sure of the meaning of these params, see the description of the GetXXXX() functions.
56
43
  # @param stream [IO] The input stream that will be used to access data
@@ -58,7 +45,7 @@ module Wx
58
45
  # @param mimetype [String] MIME type of this file. It may be left empty, in which case the type will be determined from file's extension (location must not be empty in this case).
59
46
  # @param anchor [String] Anchor. See {Wx::FSFile#get_anchor} for details.
60
47
  # @param modif [Wx::DateTime] Modification date and time for this file.
61
- # @return [FSFile]
48
+ # @return [Wx::FSFile]
62
49
  def initialize(stream, location, mimetype, anchor, modif) end
63
50
 
64
51
  # Detaches the stream from the {Wx::FSFile} object.
@@ -121,7 +108,7 @@ module Wx
121
108
 
122
109
  # Creates a dummy stream object.
123
110
  # It doesn't do anything.
124
- # @return [StreamBase]
111
+ # @return [Wx::StreamBase]
125
112
  def initialize; end
126
113
 
127
114
  # This function returns the last error.
@@ -175,7 +162,7 @@ module Wx
175
162
  class InputStream < StreamBase
176
163
 
177
164
  # Creates a dummy input stream.
178
- # @return [InputStream]
165
+ # @return [Wx::InputStream]
179
166
  def initialize; end
180
167
 
181
168
  # Returns true if some data is available in the stream right now, so that calling {Wx::InputStream#read} wouldn't block.
@@ -241,7 +228,7 @@ module Wx
241
228
  class OutputStream < StreamBase
242
229
 
243
230
  # Creates a dummy {Wx::OutputStream} object.
244
- # @return [OutputStream]
231
+ # @return [Wx::OutputStream]
245
232
  def initialize; end
246
233
 
247
234
  # Closes the stream, returning false if an error occurs.
@@ -29,18 +29,22 @@ module Wx
29
29
  # === Styles
30
30
  #
31
31
  # This class supports the following styles:
32
- #
32
+ #
33
33
  # - {Wx::GA_HORIZONTAL}: Creates a horizontal gauge.
34
+ #
34
35
  # - {Wx::GA_VERTICAL}: Creates a vertical gauge.
36
+ #
35
37
  # - {Wx::GA_SMOOTH}: Creates smooth progress bar with one pixel wide update step (not supported by all platforms).
38
+ #
36
39
  # - {Wx::GA_TEXT}: Display the current value in percents in the gauge itself. This style is only supported in {Wx::Qt} and ignored under the other platforms. This flag is only available in wxWidgets 3.1.0 and later.
40
+ #
37
41
  # - {Wx::GA_PROGRESS}: Reflect the value of gauge in the application taskbar button under Windows 7 and later and the dock icon under macOS, ignored under the other platforms. This flag is only available in wxWidgets 3.1.0 and later.
38
42
  #
39
43
  # ===
40
44
  #
41
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
42
- # </td><td> {Wx::GTK} Appearance
43
- # </td><td> {Wx::OSX} Appearance
45
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
46
+ # </td><td> wxGTK Appearance
47
+ # </td><td> wxOSX Appearance
44
48
  # </td></tr></table></div>
45
49
  # @see Wx::Slider
46
50
  # @see Wx::ScrollBar
@@ -50,7 +54,7 @@ module Wx
50
54
 
51
55
  # @overload initialize()
52
56
  # Default constructor.
53
- # @return [Gauge]
57
+ # @return [Wx::Gauge]
54
58
  # @overload initialize(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::GaugeNameStr)
55
59
  # Constructor, creating and showing a gauge.
56
60
  #
@@ -63,7 +67,7 @@ module Wx
63
67
  # @param style [Integer] Gauge style.
64
68
  # @param validator [Wx::Validator] Window validator.
65
69
  # @param name [String] Window name.
66
- # @return [Gauge]
70
+ # @return [Wx::Gauge]
67
71
  def initialize(*args) end
68
72
 
69
73
  # Creates the gauge for two-step construction.
@@ -105,7 +109,7 @@ module Wx
105
109
 
106
110
  # Sets the range (maximum value) of the gauge.
107
111
  # This function makes the gauge switch to determinate mode, if it's not already.
108
- # When the gauge is in indeterminate mode, under {Wx::MSW} the gauge repeatedly goes from zero to range and back; under other ports when in indeterminate mode, the range setting is ignored.
112
+ # When the gauge is in indeterminate mode, under wxMSW the gauge repeatedly goes from zero to range and back; under other ports when in indeterminate mode, the range setting is ignored.
109
113
  # @see Wx::Gauge#get_range
110
114
  # @param range [Integer]
111
115
  # @return [void]
@@ -9,7 +9,11 @@ module Wx
9
9
  # {Wx::GCDC} is a device context that draws on a {Wx::GraphicsContext}.
10
10
  # {Wx::GCDC} does its best to implement {Wx::DC} API, but the following features are not (fully) implemented because {Wx::GraphicsContext} doesn't support them:
11
11
  #
12
- # - {Wx::GCDC#get_pixel} method is not implemented and always returns false because modern graphics layers don't support retrieving the contents of the drawn pixels.- {Wx::GCDC#flood_fill} method is not, and can't be, implemented, as its functionality relies on reading the pixels from {Wx::GraphicsContext} too.- {Wx::GCDC#set_logical_function} method only works with {Wx::RasterOperationMode::COPY}, {Wx::RasterOperationMode::OR}, {Wx::RasterOperationMode::NO_OP}, {Wx::RasterOperationMode::CLEAR} and {Wx::RasterOperationMode::XOR} functions, attempts to use any other function (including {Wx::RasterOperationMode::INVERT}) don't do anything.- Similarly, {Wx::RasterOperationMode} parameter of {Wx::GCDC#blit} and {Wx::GCDC#stretch_blit} can only be one of the supported logical functions listed above, using any other function will result in an assertion failure and not drawing anything.- For Direct2D-based {Wx::GraphicsContext}, only true-type fonts can be used in the font-related functions.
12
+ # - {Wx::GCDC#get_pixel} method is not implemented and always returns false because modern graphics layers don't support retrieving the contents of the drawn pixels.
13
+ # - {Wx::GCDC#flood_fill} method is not, and can't be, implemented, as its functionality relies on reading the pixels from {Wx::GraphicsContext} too.
14
+ # - {Wx::GCDC#set_logical_function} method only works with {Wx::RasterOperationMode::COPY}, {Wx::RasterOperationMode::OR}, {Wx::RasterOperationMode::NO_OP}, {Wx::RasterOperationMode::CLEAR} and {Wx::RasterOperationMode::XOR} functions, attempts to use any other function (including {Wx::RasterOperationMode::INVERT}) don't do anything.
15
+ # - Similarly, {Wx::RasterOperationMode} parameter of {Wx::GCDC#blit} and {Wx::GCDC#stretch_blit} can only be one of the supported logical functions listed above, using any other function will result in an assertion failure and not drawing anything.
16
+ # - For Direct2D-based {Wx::GraphicsContext}, only true-type fonts can be used in the font-related functions.
13
17
  #
14
18
  # ===
15
19
  #
@@ -120,7 +120,7 @@ module Wx
120
120
 
121
121
  # Standard cursors.
122
122
  #
123
- # Notice that under {Wx::MSW} some of these cursors are defined in wx.rc file and not by the system itself so you should include this file from your own resource file (possibly creating a trivial resource file just containing a single include line if you don't need it otherwise) to be able to use them.
123
+ # Notice that under wxMSW some of these cursors are defined in wx.rc file and not by the system itself so you should include this file from your own resource file (possibly creating a trivial resource file just containing a single include line if you don't need it otherwise) to be able to use them.
124
124
  # See {Wx::Cursor}.
125
125
  #
126
126
  class StockCursor < Wx::Enum
@@ -365,11 +365,10 @@ module Wx
365
365
  # Combine this object with another one replacing the uninitialized values.
366
366
  # It is typically used like this:
367
367
  #
368
- # ```
369
- # if ( !pos.IsFullySpecified() )
370
- # {
371
- # pos.SetDefaults(GetDefaultPosition());
372
- # }
368
+ # ```ruby
369
+ # if !pos.is_fully_specified
370
+ # pos.set_defaults(get_default_position)
371
+ # end
373
372
  # ```
374
373
  # @see Wx::Point#is_fully_specified
375
374
  # @param pt [Array(Integer, Integer), Wx::Point]
@@ -404,23 +403,21 @@ module Wx
404
403
  # @overload initialize()
405
404
  # Constructs a point.
406
405
  # Initializes the internal x and y coordinates to zero.
407
- # @return [Point]
406
+ # @return [Wx::Point]
408
407
  # @overload initialize(x, y)
409
408
  # Initializes the point object with the given x and y coordinates.
410
409
  # @param x [Integer]
411
410
  # @param y [Integer]
412
- # @return [Point]
411
+ # @return [Wx::Point]
413
412
  # @overload initialize(pt)
414
413
  # Converts the given {Wx::RealPoint} (with floating point coordinates) to a {Wx::Point} instance.
415
414
  # Notice that this truncates the floating point values of pt components, if you want to round them instead you need to do it manually, e.g.
416
- # ```
417
- # #include <wx/math.h> // for wxRound()
418
- #
419
- # wxRealPoint rp = ...;
420
- # wxPoint p(wxRound(rp.x), wxRound(rp.y));
415
+ # ```ruby
416
+ # real_point = ...
417
+ # p = Wx::Point.new(real_point.x.round, real_point.y.round)
421
418
  # ```
422
419
  # @param pt [Wx::RealPoint]
423
- # @return [Point]
420
+ # @return [Wx::Point]
424
421
  def initialize(*args) end
425
422
 
426
423
  end # Point
@@ -497,12 +494,12 @@ module Wx
497
494
 
498
495
  # @overload initialize()
499
496
  # Initializes this size object with zero width and height.
500
- # @return [Size]
497
+ # @return [Wx::Size]
501
498
  # @overload initialize(width, height)
502
499
  # Initializes this size object with the given width and height.
503
500
  # @param width [Integer]
504
501
  # @param height [Integer]
505
- # @return [Size]
502
+ # @return [Wx::Size]
506
503
  def initialize(*args) end
507
504
 
508
505
  # Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size.
@@ -558,11 +555,10 @@ module Wx
558
555
  # Combine this size object with another one replacing the default (i.e. equal to -1) components of this object with those of the other.
559
556
  # It is typically used like this:
560
557
  #
561
- # ```
562
- # if ( !size.IsFullySpecified() )
563
- # {
564
- # size.SetDefaults(GetDefaultSize());
565
- # }
558
+ # ```ruby
559
+ # if !size.is_fully_specified
560
+ # size.set_defaults(get_default_size)
561
+ # end
566
562
  # ```
567
563
  # @see Wx::Size#is_fully_specified
568
564
  # @param sizeDefault [Array(Integer, Integer), Wx::Size]
@@ -640,7 +636,9 @@ module Wx
640
636
  # Increases the size of the rectangle.
641
637
  # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
642
638
  # Inflating and deflating behaves "naturally". Defined more precisely, that means:
643
- # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
639
+ #
640
+ # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
641
+ # - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
644
642
  # @see Wx::Rect#deflate
645
643
  # @param dx [Integer]
646
644
  # @param dy [Integer]
@@ -649,7 +647,9 @@ module Wx
649
647
  # Increases the size of the rectangle.
650
648
  # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
651
649
  # Inflating and deflating behaves "naturally". Defined more precisely, that means:
652
- # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
650
+ #
651
+ # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
652
+ # - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
653
653
  # @see Wx::Rect#deflate
654
654
  # @param diff [Array(Integer, Integer), Wx::Size]
655
655
  # @return [Wx::Rect]
@@ -657,7 +657,9 @@ module Wx
657
657
  # Increases the size of the rectangle.
658
658
  # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
659
659
  # Inflating and deflating behaves "naturally". Defined more precisely, that means:
660
- # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
660
+ #
661
+ # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
662
+ # - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
661
663
  # @see Wx::Rect#deflate
662
664
  # @param diff [Integer]
663
665
  # @return [Wx::Rect]
@@ -671,29 +673,29 @@ module Wx
671
673
  # @overload initialize()
672
674
  # Default constructor.
673
675
  # Initializes to zero the internal x, y, width and height members.
674
- # @return [Rect]
676
+ # @return [Wx::Rect]
675
677
  # @overload initialize(x, y, width, height)
676
678
  # Creates a {Wx::Rect} object from x, y, width and height values.
677
679
  # @param x [Integer]
678
680
  # @param y [Integer]
679
681
  # @param width [Integer]
680
682
  # @param height [Integer]
681
- # @return [Rect]
683
+ # @return [Wx::Rect]
682
684
  # @overload initialize(topLeft, bottomRight)
683
685
  # Creates a {Wx::Rect} object from top-left and bottom-right points.
684
686
  # The width of the rectangle will be <code>bottomRight.x-topLeft.x+1</code> and the height will be <code>bottomRight.y-topLeft.y+1</code>.
685
687
  # @param topLeft [Wx::Point]
686
688
  # @param bottomRight [Wx::Point]
687
- # @return [Rect]
689
+ # @return [Wx::Rect]
688
690
  # @overload initialize(pos, size)
689
691
  # Creates a {Wx::Rect} object from position pos and size values.
690
692
  # @param pos [Array(Integer, Integer), Wx::Point]
691
693
  # @param size [Array(Integer, Integer), Wx::Size]
692
- # @return [Rect]
694
+ # @return [Wx::Rect]
693
695
  # @overload initialize(size)
694
696
  # Creates a {Wx::Rect} object from size values at the origin.
695
697
  # @param size [Array(Integer, Integer), Wx::Size]
696
- # @return [Rect]
698
+ # @return [Wx::Rect]
697
699
  def initialize(*args) end
698
700
 
699
701
  # @overload contains(x, y)
@@ -929,16 +931,16 @@ module Wx
929
931
 
930
932
  # @overload initialize()
931
933
  # Initializes to zero the x and y members.
932
- # @return [RealPoint]
934
+ # @return [Wx::RealPoint]
933
935
  # @overload initialize(x, y)
934
936
  # Initializes the point with the given coordinates.
935
937
  # @param x [Float]
936
938
  # @param y [Float]
937
- # @return [RealPoint]
939
+ # @return [Wx::RealPoint]
938
940
  # @overload initialize(pt)
939
941
  # Converts the given {Wx::Point} (with integer coordinates) to a {Wx::RealPoint}.
940
942
  # @param pt [Array(Integer, Integer), Wx::Point]
941
- # @return [RealPoint]
943
+ # @return [Wx::RealPoint]
942
944
  def initialize(*args) end
943
945
 
944
946
  end # RealPoint
@@ -1093,7 +1095,7 @@ module Wx
1093
1095
 
1094
1096
  # Constructs the colour database.
1095
1097
  # It will be initialized at the first use.
1096
- # @return [ColourDatabase]
1098
+ # @return [Wx::ColourDatabase]
1097
1099
  def initialize; end
1098
1100
 
1099
1101
  # Adds a colour to the database.
@@ -22,7 +22,7 @@ module Wx
22
22
  class GDIObject < Object
23
23
 
24
24
  # Default constructor.
25
- # @return [GDIObject]
25
+ # @return [Wx::GDIObject]
26
26
  def initialize; end
27
27
 
28
28
  end # GDIObject
@@ -11,32 +11,38 @@ module Wx
11
11
  # === Styles
12
12
  #
13
13
  # This class supports the following styles:
14
- #
14
+ #
15
15
  # - {Wx::DIRCTRL_DIR_ONLY}: Only show directories, and not files.
16
+ #
16
17
  # - {Wx::DIRCTRL_3D_INTERNAL}: Use 3D borders for internal controls. This is the default.
18
+ #
17
19
  # - {Wx::DIRCTRL_SELECT_FIRST}: When setting the default path, select the first file in the directory.
20
+ #
18
21
  # - {Wx::DIRCTRL_SHOW_FILTERS}: Show the drop-down filter list.
22
+ #
19
23
  # - {Wx::DIRCTRL_EDIT_LABELS}: Allow the folder and file labels to be editable.
24
+ #
20
25
  # - {Wx::DIRCTRL_MULTIPLE}: Allows multiple files and folders to be selected.
21
26
  #
22
27
  # ===
23
28
  #
24
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
25
- # </td><td> {Wx::GTK} Appearance
26
- # </td><td> {Wx::OSX} Appearance
29
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
30
+ # </td><td> wxGTK Appearance
31
+ # </td><td> wxOSX Appearance
27
32
  # </td></tr></table></div>
28
33
  # === Events emitted by this class
29
34
  #
30
35
  # Event handler methods for events emitted by this class:
31
- #
36
+ #
32
37
  # - {Wx::EvtHandler#evt_dirctrl_selectionchanged}(id, meth = nil, &block): Selected directory has changed. Processes a {Wx::EVT_DIRCTRL_SELECTIONCHANGED} event type. Notice that this event is generated even for the changes done by the program itself and not only those done by the user. Available since wxWidgets 2.9.5.
38
+ #
33
39
  # - {Wx::EvtHandler#evt_dirctrl_fileactivated}(id, meth = nil, &block): The user activated a file by double-clicking or pressing Enter. Available since wxWidgets 2.9.5.
34
40
  #
35
41
  class GenericDirCtrl < Control
36
42
 
37
43
  # @overload initialize()
38
44
  # Default constructor.
39
- # @return [GenericDirCtrl]
45
+ # @return [Wx::GenericDirCtrl]
40
46
  # @overload initialize(parent, id=Wx::StandardID::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=(''), defaultFilter=0, name=Wx::TreeCtrlNameStr)
41
47
  # Main constructor.
42
48
  # @param parent [Wx::Window] Parent window.
@@ -48,7 +54,7 @@ module Wx
48
54
  # @param filter [String] A filter string, using the same syntax as that for {Wx::FileDialog}. This may be empty if filters are not being used. Example: <code>"All files (*.*)|*.*|JPEG files (*.jpg)|*.jpg"</code>
49
55
  # @param defaultFilter [Integer] The zero-indexed default filter setting.
50
56
  # @param name [String] The window name.
51
- # @return [GenericDirCtrl]
57
+ # @return [Wx::GenericDirCtrl]
52
58
  def initialize(*args) end
53
59
 
54
60
  # Collapse the given path.