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
@@ -11,25 +11,31 @@ module Wx
11
11
  # === Styles
12
12
  #
13
13
  # This class supports the following styles:
14
- #
14
+ #
15
15
  # - {Wx::CLRP_DEFAULT_STYLE}: The default style: 0.
16
+ #
16
17
  # - {Wx::CLRP_USE_TEXTCTRL}: Creates a text control to the left of the picker button which is completely managed by the {Wx::ColourPickerCtrl} and which can be used by the user to specify a colour (see SetColour). 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::CLRP_SHOW_LABEL}: Shows the colour in HTML form (AABBCC) as colour button label (instead of no label at all).
18
- # - {Wx::CLRP_SHOW_ALPHA}: Allows selecting opacity in the colour-chooser (effective under {Wx::GTK} and {Wx::OSX}).
20
+ #
21
+ # - {Wx::CLRP_SHOW_ALPHA}: Allows selecting opacity in the colour-chooser (effective under wxGTK and wxOSX).
19
22
  #
20
23
  # === Events emitted by this class
21
24
  #
22
25
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ColourPickerEvent} events.
23
26
  # Event handler methods for events emitted by this class:
27
+ #
24
28
  # - {Wx::EvtHandler#evt_colourpicker_changed}(id, meth = nil, &block): The user changed the colour selected in the control either using the button or using text control (see {Wx::CLRP_USE_TEXTCTRL}; note that in this case the event is fired only if the user's input is valid, i.e. recognizable). When using a popup dialog for changing the colour, this event is sent only when the changes in the dialog are accepted by the user, unlike EVT_COLOURPICKER_CURRENT_CHANGED.
25
- # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): The user changed the currently selected colour in the dialog associated with the control. This event is sent immediately when the selection changes and you must also handle EVT_COLOUR_CANCELLED to revert to the previously selected colour if the selection ends up not being accepted. This event is new since wxWidgets 3.1.3 and currently is only implemented in {Wx::MSW}.
26
- # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): The user cancelled the colour dialog associated with the control, i.e. closed it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in {Wx::MSW}.
29
+ #
30
+ # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): The user changed the currently selected colour in the dialog associated with the control. This event is sent immediately when the selection changes and you must also handle EVT_COLOUR_CANCELLED to revert to the previously selected colour if the selection ends up not being accepted. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.
31
+ #
32
+ # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): The user cancelled the colour dialog associated with the control, i.e. closed it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.
27
33
  #
28
34
  # ===
29
35
  #
30
- # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
31
- # </td><td> {Wx::GTK} Appearance
32
- # </td><td> {Wx::OSX} Appearance
36
+ # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
37
+ # </td><td> wxGTK Appearance
38
+ # </td><td> wxOSX Appearance
33
39
  # </td></tr></table></div>
34
40
  # @see Wx::ColourDialog
35
41
  # @see Wx::ColourPickerEvent
@@ -51,7 +57,7 @@ module Wx
51
57
  alias_method :colour=, :set_colour
52
58
 
53
59
  # @overload initialize()
54
- # @return [ColourPickerCtrl]
60
+ # @return [Wx::ColourPickerCtrl]
55
61
  # @overload initialize(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ColourPickerCtrlNameStr)
56
62
  # Initializes the object and calls {Wx::ColourPickerCtrl#create} with all the parameters.
57
63
  # @param parent [Wx::Window]
@@ -62,7 +68,7 @@ module Wx
62
68
  # @param style [Integer]
63
69
  # @param validator [Wx::Validator]
64
70
  # @param name [String]
65
- # @return [ColourPickerCtrl]
71
+ # @return [Wx::ColourPickerCtrl]
66
72
  def initialize(*args) end
67
73
 
68
74
  # Creates a colour picker with the given arguments.
@@ -35,9 +35,12 @@ module Wx
35
35
  #
36
36
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ColourPickerEvent} events.
37
37
  # Event handler methods:
38
+ #
38
39
  # - {Wx::EvtHandler#evt_colourpicker_changed}(id, meth = nil, &block): Generated whenever the selected colour changes.
39
- # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): Generated whenever the currently selected colour in the dialog shown by the picker changes. This event is new since wxWidgets 3.1.3 and currently is only implemented in {Wx::MSW}.
40
- # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): Generated when the user cancels the colour dialog associated with the control, i.e. closes it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in {Wx::MSW}.
40
+ #
41
+ # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): Generated whenever the currently selected colour in the dialog shown by the picker changes. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.
42
+ #
43
+ # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): Generated when the user cancels the colour dialog associated with the control, i.e. closes it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.
41
44
  #
42
45
  # ===
43
46
  #
@@ -48,13 +51,13 @@ module Wx
48
51
  class ColourPickerEvent < CommandEvent
49
52
 
50
53
  # @overload initialize()
51
- # @return [ColourPickerEvent]
54
+ # @return [Wx::ColourPickerEvent]
52
55
  # @overload initialize(generator, id, colour)
53
56
  # The constructor is not normally used by the user code.
54
57
  # @param generator [Wx::Object]
55
58
  # @param id [Integer]
56
59
  # @param colour [Wx::Colour,String,Symbol]
57
- # @return [ColourPickerEvent]
60
+ # @return [Wx::ColourPickerEvent]
58
61
  def initialize(*args) end
59
62
 
60
63
  # Retrieve the colour the user has just selected.
@@ -14,28 +14,37 @@ module Wx
14
14
  # === Styles
15
15
  #
16
16
  # This class supports the following styles:
17
- #
17
+ #
18
18
  # - {Wx::CB_SIMPLE}: Creates a combobox with a permanently displayed list. Windows only.
19
+ #
19
20
  # - {Wx::CB_DROPDOWN}: Creates a combobox with a drop-down list. MSW and Motif only.
21
+ #
20
22
  # - {Wx::CB_READONLY}: A combobox with this style behaves like a {Wx::Choice} (and may look in the same way as well, although this is platform-dependent), i.e. it allows the user to choose from the list of options but doesn't allow to enter a value not present in the list.
23
+ #
21
24
  # - {Wx::CB_SORT}: Sorts the entries in the list alphabetically.
25
+ #
22
26
  # - {Wx::TE_PROCESS_ENTER}: The control will generate the event {Wx::EVT_TEXT_ENTER} that can be handled by the program. Otherwise, i.e. either if this style not specified at all, or it is used, but there is no event handler for this event or the event handler called {Wx::Event#skip} to avoid overriding the default handling, pressing Enter key is either processed internally by the control or used to activate the default button of the dialog, if any.
23
27
  #
24
28
  # === Events emitted by this class
25
29
  #
26
30
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
27
31
  # Event handler methods for events emitted by this class:
32
+ #
28
33
  # - {Wx::EvtHandler#evt_combobox}(id, meth = nil, &block): Process a {Wx::EVT_COMBOBOX} event, when an item on the list is selected. Note that calling {Wx::ComboBox#get_value} returns the new value of selection.
34
+ #
29
35
  # - {Wx::EvtHandler#evt_text}(id, meth = nil, &block): Process a {Wx::EVT_TEXT} event, when the combobox text changes.
36
+ #
30
37
  # - {Wx::EvtHandler#evt_text_enter}(id, meth = nil, &block): Process a {Wx::EVT_TEXT_ENTER} event, when RETURN is pressed in the combobox (notice that the combobox must have been created with {Wx::TE_PROCESS_ENTER} style to receive this event).
31
- # - {Wx::EvtHandler#evt_combobox_dropdown}(id, meth = nil, &block): Process a {Wx::EVT_COMBOBOX_DROPDOWN} event, which is generated when the list box part of the combo box is shown (drops down). Notice that this event is only supported by {Wx::MSW}, {Wx::GTK} with GTK+ 2.10 or later, and {Wx::OSX}/Cocoa.
38
+ #
39
+ # - {Wx::EvtHandler#evt_combobox_dropdown}(id, meth = nil, &block): Process a {Wx::EVT_COMBOBOX_DROPDOWN} event, which is generated when the list box part of the combo box is shown (drops down). Notice that this event is only supported by wxMSW, wxGTK with GTK+ 2.10 or later, and wxOSX/Cocoa.
40
+ #
32
41
  # - {Wx::EvtHandler#evt_combobox_closeup}(id, meth = nil, &block): Process a {Wx::EVT_COMBOBOX_CLOSEUP} event, which is generated when the list box of the combo box disappears (closes up). This event is only generated for the same platforms as {Wx::EVT_COMBOBOX_DROPDOWN} above.
33
42
  #
34
43
  # ===
35
44
  #
36
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
37
- # </td><td> {Wx::GTK} Appearance
38
- # </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
39
48
  # </td></tr></table></div>
40
49
  # @see Wx::ListBox
41
50
  # @see Wx::TextCtrl
@@ -77,7 +86,7 @@ module Wx
77
86
 
78
87
  # @overload initialize()
79
88
  # Default constructor.
80
- # @return [ComboBox]
89
+ # @return [Wx::ComboBox]
81
90
  # @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
82
91
  # Constructor, creating and showing a combobox.
83
92
  #
@@ -92,7 +101,7 @@ module Wx
92
101
  # @param style [Integer] Window style. See {Wx::ComboBox}.
93
102
  # @param validator [Wx::Validator] Window validator.
94
103
  # @param name [String] Window name.
95
- # @return [ComboBox]
104
+ # @return [Wx::ComboBox]
96
105
  # @overload initialize(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
97
106
  # Constructor, creating and showing a combobox.
98
107
  #
@@ -107,7 +116,7 @@ module Wx
107
116
  # @param style [Integer] Window style. See {Wx::ComboBox}.
108
117
  # @param validator [Wx::Validator] Window validator.
109
118
  # @param name [String] Window name.
110
- # @return [ComboBox]
119
+ # @return [Wx::ComboBox]
111
120
  def initialize(*args) end
112
121
 
113
122
  # Returns the item being selected right now.
@@ -117,7 +126,7 @@ module Wx
117
126
  alias_method :current_selection, :get_current_selection
118
127
 
119
128
  # Same as {Wx::TextEntry#get_insertion_point}.
120
- # Under {Wx::MSW}, this function always returns 0 if the combobox doesn't have the focus.
129
+ # Under wxMSW, this function always returns 0 if the combobox doesn't have the focus.
121
130
  # @return [Integer]
122
131
  def get_insertion_point; end
123
132
  alias_method :insertion_point, :get_insertion_point
@@ -159,14 +168,14 @@ module Wx
159
168
  alias_method :value=, :set_value
160
169
 
161
170
  # Shows the list box portion of the combo box.
162
- # Currently this method is implemented in {Wx::MSW}, {Wx::GTK} and {Wx::OSX}/Cocoa.
163
- # Notice that calling this function will generate a {Wx::EVT_COMBOBOX_DROPDOWN} event except under {Wx::OSX} where generation of this event is not supported at all.
171
+ # Currently this method is implemented in wxMSW, wxGTK and wxOSX/Cocoa.
172
+ # Notice that calling this function will generate a {Wx::EVT_COMBOBOX_DROPDOWN} event except under wxOSX where generation of this event is not supported at all.
164
173
  # @return [void]
165
174
  def popup; end
166
175
 
167
176
  # Hides the list box portion of the combo box.
168
- # Currently this method is implemented in {Wx::MSW}, {Wx::GTK} and {Wx::OSX}/Cocoa.
169
- # Notice that calling this function will generate a {Wx::EVT_COMBOBOX_CLOSEUP} event except under {Wx::OSX} where generation of this event is not supported at all.
177
+ # Currently this method is implemented in wxMSW, wxGTK and wxOSX/Cocoa.
178
+ # Notice that calling this function will generate a {Wx::EVT_COMBOBOX_CLOSEUP} event except under wxOSX where generation of this event is not supported at all.
170
179
  # @return [void]
171
180
  def dismiss; end
172
181
 
@@ -25,10 +25,59 @@ module Wx
25
25
  # @param pos [Array(Integer, Integer), Wx::Point] Button position. If {Wx::DEFAULT_POSITION} is specified then a default position is chosen.
26
26
  # @param size [Array(Integer, Integer), Wx::Size] Button size. If {Wx::DEFAULT_SIZE} is specified then the button is sized appropriately for the question mark bitmap.
27
27
  # @param style [Integer] Window style.
28
- # @return [ContextHelpButton]
28
+ # @return [Wx::ContextHelpButton]
29
29
  def initialize(parent, id=Wx::StandardID::ID_CONTEXT_HELP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
30
30
 
31
31
  end # ContextHelpButton
32
32
 
33
+ # This class changes the cursor to a query and puts the application into a 'context-sensitive help mode'.
34
+ # When the user left-clicks on a window within the specified window, a {Wx::EVT_HELP} event is sent to that control, and the application may respond to it by popping up some help.
35
+ # For example:
36
+ # ```ruby
37
+ # # puts the application into a 'context-sensitive help mode' for my_window
38
+ # context_help = Wx::ContextHelp.new(my_window)
39
+ # ...
40
+ # ...
41
+ # # ends the 'context-sensitive help mode' for my_window
42
+ # context_help.end_context_help
43
+ # ```
44
+ #
45
+ # There are a couple of ways to invoke this behaviour implicitly:
46
+ #
47
+ # - Use the {Wx::DIALOG_EX_CONTEXTHELP} style for a dialog (Windows only). This will put a question mark in the titlebar, and Windows will put the application into context-sensitive help mode automatically, with further programming.
48
+ # - Create a {Wx::ContextHelpButton}, whose predefined behaviour is to create a context help object. Normally you will write your application so that this button is only added to a dialog for non-Windows platforms (use {Wx::DIALOG_EX_CONTEXTHELP} on Windows).
49
+ #
50
+ # Note that on macOS, the cursor does not change when in context-sensitive help mode.
51
+ # ===
52
+ #
53
+ # Category: {Wx::HELP}
54
+ # @see Wx::HelpEvent
55
+ # @see Wx::HelpController
56
+ # @see Wx::ContextHelpButton
57
+ #
58
+ #
59
+ class ContextHelp < Object
60
+
61
+ # Constructs a context help object, calling {Wx::ContextHelp#begin_context_help} if doNow is true (the default).
62
+ # If window is NULL, the top window is used.
63
+ # @param window [Wx::Window]
64
+ # @param doNow [true,false]
65
+ # @return [Wx::ContextHelp]
66
+ def initialize(window=nil, doNow=true) end
67
+
68
+ # Puts the application into context-sensitive help mode.
69
+ # window is the window which will be used to catch events; if NULL, the top window will be used.
70
+ # Returns true if the application was successfully put into context-sensitive help mode. This function only returns when the event loop has finished.
71
+ # @param window [Wx::Window]
72
+ # @return [true,false]
73
+ def begin_context_help(window) end
74
+
75
+ # Ends context-sensitive help mode.
76
+ # Not normally called by the application.
77
+ # @return [true,false]
78
+ def end_context_help; end
79
+
80
+ end # ContextHelp
81
+
33
82
 
34
83
  end
@@ -12,8 +12,11 @@ module Wx
12
12
  #
13
13
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ClipboardTextEvent} events.
14
14
  # Event handler methods for events emitted by this class:
15
+ #
15
16
  # - {Wx::EvtHandler#evt_text_copy}(id, meth = nil, &block): Some or all of the controls content was copied to the clipboard.
17
+ #
16
18
  # - {Wx::EvtHandler#evt_text_cut}(id, meth = nil, &block): Some or all of the controls content was cut (i.e. copied and deleted).
19
+ #
17
20
  # - {Wx::EvtHandler#evt_text_paste}(id, meth = nil, &block): Clipboard content was pasted into the control.
18
21
  #
19
22
  # ===
@@ -33,10 +36,10 @@ module Wx
33
36
  # @param style [Integer] Control style. For generic window styles, please see {Wx::Window}.
34
37
  # @param validator [Wx::Validator] Control validator.
35
38
  # @param name [String] Control name.
36
- # @return [Control]
39
+ # @return [Wx::Control]
37
40
  # @overload initialize()
38
41
  # Default constructor to allow 2-phase creation.
39
- # @return [Control]
42
+ # @return [Wx::Control]
40
43
  def initialize(*args) end
41
44
 
42
45
  # @param parent [Wx::Window]
@@ -83,7 +86,7 @@ module Wx
83
86
  # postcode.get_text_extent("99999")))
84
87
  # ```
85
88
  #
86
- # Currently this method is only implemented for {Wx::TextCtrl}, {Wx::ComboBox} and {Wx::Choice} in {Wx::MSW} and {Wx::GTK}.
89
+ # Currently this method is only implemented for {Wx::TextCtrl}, {Wx::ComboBox} and {Wx::Choice} in wxMSW and wxGTK.
87
90
  #
88
91
  # The size that the control should have to leave the area of the specified size for its text. May return {Wx::DEFAULT_SIZE} if this method is not implemented for this particular control under the current platform.
89
92
  # @param xlen [Integer] The horizontal extent of the area to leave for text, in pixels.
@@ -135,7 +138,7 @@ module Wx
135
138
  # "<span foreground='red'>breakfast</span> "+
136
139
  # "available <big>HERE</big>")
137
140
  # ```
138
- # would show the string using bold, red and big for the corresponding words under {Wx::GTK} but will simply show the string "Bed &amp; breakfast
141
+ # would show the string using bold, red and big for the corresponding words under wxGTK but will simply show the string "Bed &amp; breakfast
139
142
  # available HERE" on the other platforms. In any case, the "B" of "Bed" will be underlined to indicate that it can be used as a mnemonic for this control.
140
143
  # The supported tags are:
141
144
  # <b>Tag</b>
@@ -211,8 +214,8 @@ module Wx
211
214
  #
212
215
  # true if the new label was set (even if markup in it was ignored) or false if we failed to parse the markup. In this case the label remains unchanged.
213
216
  #
214
- # Currently {Wx::Button} supports markup in all major ports ({Wx::MSW}, {Wx::GTK} and {Wx::OSX}/Cocoa) while {Wx::StaticText} supports it in {Wx::GTK} and {Wx::OSX} and its generic version (which can be used under MSW if markup support is required). Extending support to more controls is planned in the future.
215
- # @param markup [String] String containing markup for the label. It may contain markup tags described above and newline characters but currently only {Wx::GTK} and {Wx::OSX} support multiline labels with markup, the generic implementation (also used in {Wx::MSW}) only handles single line markup labels. Notice that the string must be well-formed (e.g. all tags must be correctly closed) and won't be shown at all otherwise.
217
+ # Currently {Wx::Button} supports markup in all major ports (wxMSW, wxGTK and wxOSX/Cocoa) while {Wx::StaticText} supports it in wxGTK and wxOSX and its generic version (which can be used under MSW if markup support is required). Extending support to more controls is planned in the future.
218
+ # @param markup [String] String containing markup for the label. It may contain markup tags described above and newline characters but currently only wxGTK and wxOSX support multiline labels with markup, the generic implementation (also used in wxMSW) only handles single line markup labels. Notice that the string must be well-formed (e.g. all tags must be correctly closed) and won't be shown at all otherwise.
216
219
  # @return [true,false]
217
220
  def set_label_markup(markup) end
218
221
  alias_method :label_markup=, :set_label_markup
@@ -7,10 +7,10 @@
7
7
  module Wx
8
8
 
9
9
  # wxRuby version string
10
- Wx::WXRUBY_VERSION = '0.9.0-rc.1'
10
+ Wx::WXRUBY_VERSION = '0.9.0-rc.3'
11
11
 
12
12
  # wxRuby version release type (alpha, beta, rc)
13
- Wx::WXRUBY_RELEASE_TYPE = 'rc.1'
13
+ Wx::WXRUBY_RELEASE_TYPE = 'rc.3'
14
14
  # wxRuby major version number
15
15
  Wx::WXRUBY_MAJOR = 0
16
16
  # wxRuby minor version number
@@ -33,6 +33,9 @@ module Wx
33
33
  # Integer constant reflecting the sub-release number of the wxWidgets release used to build wxRuby
34
34
  WXWIDGETS_SUBRELEASE_NUMBER = 1
35
35
 
36
+ # Integer constant reflecting the wxWidgets wxDEBUG_LEVEL
37
+ WXWIDGETS_DEBUG_LEVEL = 1
38
+
36
39
  # Boolean constant indicating if wxRuby was build in debug (true) or release (false) mode
37
40
  DEBUG = false
38
41
 
@@ -39,25 +39,30 @@ module Wx
39
39
 
40
40
  # @overload initialize()
41
41
  # Default constructor.
42
- # @return [Cursor]
42
+ # @return [Wx::Cursor]
43
43
  # @overload initialize(cursorName, type=Wx::CURSOR_DEFAULT_TYPE, hotSpotX=0, hotSpotY=0)
44
44
  # Constructs a cursor by passing a string resource name or filename.
45
- # The arguments hotSpotX and hotSpotY are only used when there's no hotspot info in the resource/image-file to load (e.g. when using {Wx::BitmapType::BITMAP_TYPE_ICO} under {Wx::MSW} or {Wx::BitmapType::BITMAP_TYPE_XPM} under {Wx::GTK}).
45
+ # The arguments hotSpotX and hotSpotY are only used when there's no hotspot info in the resource/image-file to load (e.g. when using {Wx::BitmapType::BITMAP_TYPE_ICO} under wxMSW or {Wx::BitmapType::BITMAP_TYPE_XPM} under wxGTK).
46
46
  # @param cursorName [String] The name of the resource or the image file to load.
47
47
  # @param type [BitmapType] Icon type to load. It defaults to {Wx::CURSOR_DEFAULT_TYPE}, which is a #define associated to different values on different platforms:
48
- # - under Windows, it defaults to {Wx::BITMAP_TYPE_CUR_RESOURCE}. Other permitted types under Windows are {Wx::BitmapType::BITMAP_TYPE_CUR} (to load a cursor from a .cur cursor file), {Wx::BitmapType::BITMAP_TYPE_ICO} (to load a cursor from a .ico icon file) and {Wx::BitmapType::BITMAP_TYPE_ANI} (to load a cursor from a .ani icon file).- under MacOS, it defaults to {Wx::BITMAP_TYPE_MACCURSOR_RESOURCE}; when specifying a string resource name, first the color cursors 'crsr' and then the black/white cursors 'CURS' in the resource chain are scanned through. Note that resource forks are deprecated on macOS so this is only available for legacy reasons and should not be used in new code.- under GTK, it defaults to {Wx::BitmapType::BITMAP_TYPE_XPM}. See the wxCursor(const wxImage& image) ctor for more info.- under X11, it defaults to {Wx::BitmapType::BITMAP_TYPE_XPM}.- under Motif, it defaults to {Wx::BitmapType::BITMAP_TYPE_XBM}.
48
+ #
49
+ # - under Windows, it defaults to {Wx::BITMAP_TYPE_CUR_RESOURCE}. Other permitted types under Windows are {Wx::BitmapType::BITMAP_TYPE_CUR} (to load a cursor from a .cur cursor file), {Wx::BitmapType::BITMAP_TYPE_ICO} (to load a cursor from a .ico icon file) and {Wx::BitmapType::BITMAP_TYPE_ANI} (to load a cursor from a .ani icon file).
50
+ # - under MacOS, it defaults to {Wx::BITMAP_TYPE_MACCURSOR_RESOURCE}; when specifying a string resource name, first the color cursors 'crsr' and then the black/white cursors 'CURS' in the resource chain are scanned through. Note that resource forks are deprecated on macOS so this is only available for legacy reasons and should not be used in new code.
51
+ # - under GTK, it defaults to {Wx::BitmapType::BITMAP_TYPE_XPM}. See the wxCursor(const wxImage& image) ctor for more info.
52
+ # - under X11, it defaults to {Wx::BitmapType::BITMAP_TYPE_XPM}.
53
+ # - under Motif, it defaults to {Wx::BitmapType::BITMAP_TYPE_XBM}.
49
54
  # @param hotSpotX [Integer] Hotspot x coordinate (relative to the top left of the image).
50
55
  # @param hotSpotY [Integer] Hotspot y coordinate (relative to the top left of the image).
51
- # @return [Cursor]
56
+ # @return [Wx::Cursor]
52
57
  # @overload initialize(cursorId)
53
58
  # Constructs a cursor using a cursor identifier.
54
59
  # @param cursorId [StockCursor] A stock cursor identifier. See {Wx::StockCursor}.
55
- # @return [Cursor]
60
+ # @return [Wx::Cursor]
56
61
  # @overload initialize(image)
57
62
  # Constructs a cursor from a {Wx::Image}.
58
63
  # If cursor are monochrome on the current platform, colors with the RGB elements all greater than 127 will be foreground, colors less than this background. The mask (if any) will be used to specify the transparent area.
59
- # In {Wx::MSW} the foreground will be white and the background black. If the cursor is larger than 32x32 it is resized.
60
- # In {Wx::GTK}, colour cursors and alpha channel are supported (starting from GTK+ 2.2). Otherwise the two most frequent colors will be used for foreground and background. In any case, the cursor will be displayed at the size of the image.
64
+ # In wxMSW the foreground will be white and the background black. If the cursor is larger than 32x32 it is resized.
65
+ # In wxGTK, colour cursors and alpha channel are supported (starting from GTK+ 2.2). Otherwise the two most frequent colors will be used for foreground and background. In any case, the cursor will be displayed at the size of the image.
61
66
  # Under {Wx::Mac} (Cocoa), large cursors are supported.
62
67
  # Notice that the image can define the cursor hot spot. To set it you need to use {Wx::Image#set_option} with {Wx::IMAGE_OPTION_CUR_HOTSPOT_X} or {Wx::IMAGE_OPTION_CUR_HOTSPOT_Y}, e.g.
63
68
  # ```ruby
@@ -65,16 +70,16 @@ module Wx
65
70
  # image.set_option(Wx::IMAGE_OPTION_CUR_HOTSPOT_X, hotSpotY)
66
71
  # ```
67
72
  # @param image [Wx::Image]
68
- # @return [Cursor]
73
+ # @return [Wx::Cursor]
69
74
  # @overload initialize(xpmData)
70
75
  # Constructs a cursor from XPM data.
71
76
  # In versions of wxWidgets until 3.1.6 constructing {Wx::Cursor} from XPM data implicitly used {Wx::Image} constructor from XPM data and {Wx::Cursor} constructor from {Wx::Image}. Since 3.1.6 this constructor overload is available to allow constructing {Wx::Cursor} from XPM to still work, even though {Wx::Image} constructor from XPM is now explicit.
72
77
  # @param xpmData [char]
73
- # @return [Cursor]
78
+ # @return [Wx::Cursor]
74
79
  # @overload initialize(cursor)
75
80
  # Copy constructor, uses reference counting.
76
81
  # @param cursor [Wx::Cursor] Pointer or reference to a cursor to copy.
77
- # @return [Cursor]
82
+ # @return [Wx::Cursor]
78
83
  def initialize(*args) end
79
84
 
80
85
  # Returns true if cursor data is present.
@@ -84,7 +89,7 @@ module Wx
84
89
 
85
90
  # Returns the coordinates of the cursor hot spot.
86
91
  # The hot spot is the point at which the mouse is actually considered to be when this cursor is used.
87
- # This method is currently only implemented in {Wx::MSW} and {Wx::GTK2}+ and simply returns {Wx::DEFAULT_POSITION} in the other ports.
92
+ # This method is currently only implemented in wxMSW and wxGTK2+ and simply returns {Wx::DEFAULT_POSITION} in the other ports.
88
93
  # @return [Wx::Point]
89
94
  def get_hot_spot; end
90
95
  alias_method :hot_spot, :get_hot_spot
@@ -49,11 +49,11 @@ module Wx
49
49
  # @overload initialize(format=Wx::DataFormatId::DF_INVALID)
50
50
  # Constructs a data format object for one of the standard data formats or an empty data object (use {Wx::DataFormat#set_type} or {Wx::DataFormat#set_id} later in this case).
51
51
  # @param format [DataFormatId]
52
- # @return [DataFormat]
52
+ # @return [Wx::DataFormat]
53
53
  # @overload initialize(format)
54
54
  # Constructs a data format object for a custom format identified by its name format.
55
55
  # @param format [String]
56
- # @return [DataFormat]
56
+ # @return [Wx::DataFormat]
57
57
  def initialize(*args) end
58
58
 
59
59
  # Returns the name of a custom format (this function will fail for a standard format).
@@ -19,9 +19,16 @@ module Wx
19
19
  # So, you have several solutions when you need a {Wx::DataObject} class (and you need one as soon as you want to transfer data via the clipboard or drag and drop):
20
20
  #
21
21
  # - Use one of the built-in classes.
22
- # - You may use {Wx::TextDataObject}, {Wx::BitmapDataObject} {Wx::FileDataObject}, {Wx::URLDataObject} in the simplest cases when you only need to support one format and your data is either text, bitmap or list of files.- Use {Wx::DataObjectSimple}
23
- # - Deriving from {Wx::DataObjectSimple} is the simplest solution for custom data - you will only support one format and so probably won't be able to communicate with other programs, but data transfer will work in your program (or between different instances of it).- Use {Wx::DataObjectComposite}
24
- # - This is a simple but powerful solution which allows you to support any number of formats (either standard or custom if you combine it with the previous solution).- Use {Wx::DataObject} directly
22
+ #
23
+ # - You may use {Wx::TextDataObject}, {Wx::BitmapDataObject} {Wx::FileDataObject}, {Wx::URLDataObject} in the simplest cases when you only need to support one format and your data is either text, bitmap or list of files.
24
+ # - Use {Wx::DataObjectSimple}
25
+ #
26
+ # - Deriving from {Wx::DataObjectSimple} is the simplest solution for custom data - you will only support one format and so probably won't be able to communicate with other programs, but data transfer will work in your program (or between different instances of it).
27
+ # - Use {Wx::DataObjectComposite}
28
+ #
29
+ # - This is a simple but powerful solution which allows you to support any number of formats (either standard or custom if you combine it with the previous solution).
30
+ # - Use {Wx::DataObject} directly
31
+ #
25
32
  # - This is the solution for maximum flexibility and efficiency, but it is also the most difficult to implement.
26
33
  #
27
34
  # Please note that the easiest way to use drag and drop and the clipboard with multiple formats is by using {Wx::DataObjectComposite}, but it is not the most efficient one as each {Wx::DataObjectSimple} would contain the whole data in its respective formats. Now imagine that you want to paste 200 pages of text in your proprietary format, as well as Word, RTF, HTML, Unicode and plain text to the clipboard and even today's computers are in trouble. For this case, you will have to derive from {Wx::DataObject} directly and make it enumerate its formats and provide the data in the requested format on demand.
@@ -67,7 +74,7 @@ module Wx
67
74
  end # Direction
68
75
 
69
76
  # Constructor.
70
- # @return [DataObject]
77
+ # @return [Wx::DataObject]
71
78
  def initialize; end
72
79
 
73
80
  # Copies all formats supported in the given direction dir to the array pointed to by formats.
@@ -80,7 +87,7 @@ module Wx
80
87
  # The method will write the data of the format format to the buffer buf.
81
88
  # In other words, copy the data from this object in the given format to the supplied buffer. Returns true on success, false on failure.
82
89
  # @param format [Wx::DataFormat]
83
- # @return [String]
90
+ # @return [Array(,String)]
84
91
  def get_data_here(format) end
85
92
  alias_method :data_here, :get_data_here
86
93
 
@@ -103,13 +110,13 @@ module Wx
103
110
  # true on success, false on failure.
104
111
  # @param format [Wx::DataFormat] The format for which to set the data.
105
112
  # @param buf [String] Non-NULL pointer to the data.
106
- # @return [void]
113
+ # @return []
107
114
  def set_data(format, buf) end
108
115
 
109
116
  # Returns true if this format is supported.
110
117
  # @param format [Wx::DataFormat]
111
118
  # @param dir [Direction]
112
- # @return [void]
119
+ # @return []
113
120
  def is_supported(format, dir=Wx::DataObjectSimpleBase::Direction::Get) end
114
121
  alias_method :supported?, :is_supported
115
122
 
@@ -119,7 +126,7 @@ module Wx
119
126
 
120
127
  # Constructor accepts the supported format (none by default) which may also be set later with {Wx::DataObjectSimple#set_format}.
121
128
  # @param format [Wx::DataFormat]
122
- # @return [DataObjectSimple]
129
+ # @return [Wx::DataObjectSimple]
123
130
  def initialize(format=Wx::FORMAT_INVALID) end
124
131
 
125
132
  # Returns the (one and only one) format supported by this object.
@@ -187,7 +194,7 @@ module Wx
187
194
  class DataObjectComposite < DataObject
188
195
 
189
196
  # The default constructor.
190
- # @return [DataObjectComposite]
197
+ # @return [Wx::DataObjectComposite]
191
198
  def initialize; end
192
199
 
193
200
  # Adds the dataObject to the list of supported objects and it becomes the preferred object if preferred is true.
@@ -230,7 +237,7 @@ module Wx
230
237
 
231
238
  # Constructor, optionally passing a bitmap (otherwise use {Wx::BitmapDataObject#set_bitmap} later).
232
239
  # @param bitmap [Wx::Bitmap]
233
- # @return [BitmapDataObject]
240
+ # @return [Wx::BitmapDataObject]
234
241
  def initialize(bitmap=Wx::NULL_BITMAP) end
235
242
 
236
243
  # Returns the bitmap associated with the data object.
@@ -263,7 +270,7 @@ module Wx
263
270
  class FileDataObject < DataObjectSimple
264
271
 
265
272
  # Constructor.
266
- # @return [FileDataObject]
273
+ # @return [Wx::FileDataObject]
267
274
  def initialize; end
268
275
 
269
276
  # Adds a file to the file list represented by this data object (Windows only).
@@ -295,7 +302,7 @@ module Wx
295
302
 
296
303
  # Constructor, may be used to initialise the text (otherwise {Wx::TextDataObject#set_text} should be used later).
297
304
  # @param text [String]
298
- # @return [TextDataObject]
305
+ # @return [Wx::TextDataObject]
299
306
  def initialize(text=('')) end
300
307
 
301
308
  # Returns the text associated with the data object.
@@ -334,7 +341,7 @@ module Wx
334
341
  # The constructor accepts a format argument which specifies the (single) format supported by this object.
335
342
  # If it isn't set here, {Wx::DataObjectSimple#set_format} should be used.
336
343
  # @param format [Wx::DataFormat]
337
- # @return [CustomDataObject]
344
+ # @return [Wx::CustomDataObject]
338
345
  def initialize(format=Wx::FORMAT_INVALID) end
339
346
 
340
347
  end # CustomDataObject
@@ -355,7 +362,7 @@ module Wx
355
362
 
356
363
  # Constructor, optionally passing an image (otherwise use {Wx::ImageDataObject#set_image} later).
357
364
  # @param image [Wx::Image]
358
- # @return [ImageDataObject]
365
+ # @return [Wx::ImageDataObject]
359
366
  def initialize(image=Wx::NULL_IMAGE) end
360
367
 
361
368
  # Returns the image associated with the data object.
@@ -378,7 +385,7 @@ module Wx
378
385
  # Wx::Clipboard.open { |clip| clip.place(Wx::URLDataObject.new(url))
379
386
  # ```
380
387
  #
381
- # The actual base class of this class is not always {Wx::DataObject} itself, but rather either {Wx::DataObjectComposite} in {Wx::MSW} and {Wx::GTK} or {Wx::TextDataObject} in the other ports. Please don't rely on the exact base class, it is not guaranteed that it won't change in the future.
388
+ # The actual base class of this class is not always {Wx::DataObject} itself, but rather either {Wx::DataObjectComposite} in wxMSW and wxGTK or {Wx::TextDataObject} in the other ports. Please don't rely on the exact base class, it is not guaranteed that it won't change in the future.
382
389
  #
383
390
  # ===
384
391
  #
@@ -392,7 +399,7 @@ module Wx
392
399
  # Constructor, may be used to initialize the URL.
393
400
  # If url is empty, {Wx::URLDataObject#set_url} can be used later.
394
401
  # @param url [String]
395
- # @return [URLDataObject]
402
+ # @return [Wx::URLDataObject]
396
403
  def initialize(url=('')) end
397
404
 
398
405
  # Returns the URL stored by this object, as a string.
@@ -23,12 +23,12 @@ module Wx
23
23
  class DateEvent < CommandEvent
24
24
 
25
25
  # @overload initialize()
26
- # @return [DateEvent]
26
+ # @return [Wx::DateEvent]
27
27
  # @overload initialize(win, dt, type)
28
28
  # @param win [Wx::Window]
29
29
  # @param dt [Time,Date,DateTime]
30
- # @param type [Integer]
31
- # @return [DateEvent]
30
+ # @param type [Wx::AUI::AuiMDIChildFrame::EventType]
31
+ # @return [Wx::DateEvent]
32
32
  def initialize(*args) end
33
33
 
34
34
  # Returns the date.
@@ -32,11 +32,15 @@ module Wx
32
32
  # === Styles
33
33
  #
34
34
  # This class supports the following styles:
35
- #
35
+ #
36
36
  # - {Wx::DP_SPIN}: Creates a control without a month calendar drop down but with spin-control-like arrows to change individual date components. This style is not supported by the generic version.
37
+ #
37
38
  # - {Wx::DP_DROPDOWN}: Creates a control with a month calendar drop-down part from which the user can select a date. This style is not supported in OSX/Cocoa native version.
39
+ #
38
40
  # - {Wx::DP_DEFAULT}: Creates a control with the style that is best supported for the current platform (currently {Wx::DP_SPIN} under Windows and OSX/Cocoa and {Wx::DP_DROPDOWN} elsewhere).
41
+ #
39
42
  # - {Wx::DP_ALLOWNONE}: With this style, the control allows the user to not enter any valid date at all. Without it - the default - the control always has some valid date. This style is not supported in OSX/Cocoa native version.
43
+ #
40
44
  # - {Wx::DP_SHOWCENTURY}: Forces display of the century in the default date format. Without this style the century could be displayed, or not, depending on the default date representation in the system. This style is not supported in OSX/Cocoa native version currently.
41
45
  #
42
46
  # As can be seen from the remarks above, most of the control style are only supported in the native MSW implementation. In portable code it's recommended to use {Wx::DP_DEFAULT} style only, possibly combined with {Wx::DP_SHOWCENTURY} (this is also the style used by default if none is specified).
@@ -44,13 +48,14 @@ module Wx
44
48
  #
45
49
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::DateEvent} events.
46
50
  # Event handler methods for events emitted by this class:
51
+ #
47
52
  # - {Wx::EvtHandler#evt_date_changed}(id, meth = nil, &block): Process a {Wx::EVT_DATE_CHANGED} event, which fires when the user changes the current selection in the control.
48
53
  #
49
54
  # ===
50
55
  #
51
- # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
52
- # </td><td> {Wx::GTK} Appearance
53
- # </td><td> {Wx::OSX} Appearance
56
+ # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
57
+ # </td><td> wxGTK Appearance
58
+ # </td><td> wxOSX Appearance
54
59
  # </td></tr></table></div>
55
60
  # @see Wx::TimePickerCtrl
56
61
  # @see Wx::CalendarCtrl
@@ -61,7 +66,7 @@ module Wx
61
66
 
62
67
  # @overload initialize()
63
68
  # Default constructor.
64
- # @return [DatePickerCtrl]
69
+ # @return [Wx::DatePickerCtrl]
65
70
  # @overload initialize(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY), validator=Wx::DEFAULT_VALIDATOR, name=("datectrl"))
66
71
  # Initializes the object and calls {Wx::DatePickerCtrl#create} with all the parameters.
67
72
  # @param parent [Wx::Window]
@@ -72,7 +77,7 @@ module Wx
72
77
  # @param style [Integer]
73
78
  # @param validator [Wx::Validator]
74
79
  # @param name [String]
75
- # @return [DatePickerCtrl]
80
+ # @return [Wx::DatePickerCtrl]
76
81
  def initialize(*args) end
77
82
 
78
83
  # Create the control window.