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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +30 -8
  3. data/README.md +3 -3
  4. data/ext/wxbase32u_gcc_custom.dll +0 -0
  5. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  7. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  19. data/lib/wx/core/event_loop.rb +7 -0
  20. data/lib/wx/core/image.rb +33 -0
  21. data/lib/wx/core/listctrl.rb +17 -13
  22. data/lib/wx/core/log.rb +90 -0
  23. data/lib/wx/doc/bitmap.rb +11 -15
  24. data/lib/wx/doc/event_loop.rb +7 -0
  25. data/lib/wx/doc/extra/00_starting.md +6 -6
  26. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  27. data/lib/wx/doc/extra/09_exceptions.md +1 -1
  28. data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
  29. data/lib/wx/doc/font.rb +1 -1
  30. data/lib/wx/doc/functions.rb +51 -23
  31. data/lib/wx/doc/gc_dc.rb +1 -1
  32. data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
  33. data/lib/wx/doc/gen/accelerator.rb +6 -6
  34. data/lib/wx/doc/gen/accessible.rb +6 -2
  35. data/lib/wx/doc/gen/activity_indicator.rb +5 -5
  36. data/lib/wx/doc/gen/animation.rb +7 -7
  37. data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
  38. data/lib/wx/doc/gen/any_button.rb +1 -1
  39. data/lib/wx/doc/gen/app.rb +17 -11
  40. data/lib/wx/doc/gen/art_provider.rb +61 -1
  41. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  42. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  43. data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
  44. data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
  45. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
  46. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
  47. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
  48. data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
  49. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  50. data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
  51. data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
  52. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +33 -18
  53. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
  54. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
  55. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
  56. data/lib/wx/doc/gen/bitmap.rb +32 -26
  57. data/lib/wx/doc/gen/bitmap_button.rb +10 -6
  58. data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
  59. data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
  60. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  61. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  62. data/lib/wx/doc/gen/brush.rb +16 -4
  63. data/lib/wx/doc/gen/busy_info.rb +1 -1
  64. data/lib/wx/doc/gen/button.rb +19 -7
  65. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  66. data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
  67. data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
  68. data/lib/wx/doc/gen/calendar_event.rb +3 -3
  69. data/lib/wx/doc/gen/caret.rb +2 -2
  70. data/lib/wx/doc/gen/check_box.rb +10 -6
  71. data/lib/wx/doc/gen/check_list_box.rb +8 -7
  72. data/lib/wx/doc/gen/choice.rb +7 -6
  73. data/lib/wx/doc/gen/choicebook.rb +12 -6
  74. data/lib/wx/doc/gen/client_dc.rb +1 -1
  75. data/lib/wx/doc/gen/clipboard.rb +1 -1
  76. data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
  77. data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
  78. data/lib/wx/doc/gen/colour.rb +16 -6
  79. data/lib/wx/doc/gen/colour_dialog.rb +6 -6
  80. data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
  81. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  82. data/lib/wx/doc/gen/combo_box.rb +22 -13
  83. data/lib/wx/doc/gen/context_help_button.rb +4 -3
  84. data/lib/wx/doc/gen/control.rb +9 -6
  85. data/lib/wx/doc/gen/core.rb +5 -2
  86. data/lib/wx/doc/gen/cursor.rb +16 -11
  87. data/lib/wx/doc/gen/data_format.rb +2 -2
  88. data/lib/wx/doc/gen/data_object.rb +23 -16
  89. data/lib/wx/doc/gen/date_event.rb +3 -3
  90. data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
  91. data/lib/wx/doc/gen/dc.rb +37 -12
  92. data/lib/wx/doc/gen/defs.rb +16 -16
  93. data/lib/wx/doc/gen/dialog.rb +19 -5
  94. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  95. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  96. data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
  97. data/lib/wx/doc/gen/drag_drop.rb +15 -15
  98. data/lib/wx/doc/gen/drag_image.rb +6 -6
  99. data/lib/wx/doc/gen/editable_list_box.rb +7 -3
  100. data/lib/wx/doc/gen/event.rb +44 -13
  101. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  102. data/lib/wx/doc/gen/event_filter.rb +5 -2
  103. data/lib/wx/doc/gen/event_list.rb +15 -15
  104. data/lib/wx/doc/gen/events.rb +215 -79
  105. data/lib/wx/doc/gen/evt_handler.rb +1 -1
  106. data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
  107. data/lib/wx/doc/gen/file_dialog.rb +16 -7
  108. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  109. data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
  110. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  111. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  112. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  113. data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
  114. data/lib/wx/doc/gen/font.rb +30 -29
  115. data/lib/wx/doc/gen/font_data.rb +9 -5
  116. data/lib/wx/doc/gen/font_dialog.rb +3 -3
  117. data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
  118. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  119. data/lib/wx/doc/gen/frame.rb +34 -11
  120. data/lib/wx/doc/gen/fs_file.rb +4 -17
  121. data/lib/wx/doc/gen/gauge.rb +11 -7
  122. data/lib/wx/doc/gen/gcdc.rb +5 -1
  123. data/lib/wx/doc/gen/gdi_common.rb +35 -33
  124. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  125. data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
  126. data/lib/wx/doc/gen/graphics_context.rb +29 -28
  127. data/lib/wx/doc/gen/graphics_object.rb +1 -1
  128. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
  129. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
  130. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
  131. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
  132. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  133. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
  134. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
  135. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
  136. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
  137. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  138. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
  139. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  140. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  141. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  142. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  143. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
  144. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
  145. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
  146. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
  147. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
  148. data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
  149. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  150. data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
  151. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
  152. data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
  153. data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
  154. data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
  155. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  156. data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
  157. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  158. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  159. data/lib/wx/doc/gen/help_controller.rb +18 -12
  160. data/lib/wx/doc/gen/html/html_cell.rb +36 -18
  161. data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
  162. data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
  163. data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
  164. data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
  165. data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
  166. data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
  167. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  168. data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
  169. data/lib/wx/doc/gen/html/html_printout.rb +15 -5
  170. data/lib/wx/doc/gen/html/html_window.rb +19 -8
  171. data/lib/wx/doc/gen/hyperlink_ctrl.rb +12 -7
  172. data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
  173. data/lib/wx/doc/gen/icon.rb +14 -14
  174. data/lib/wx/doc/gen/image.rb +119 -64
  175. data/lib/wx/doc/gen/image_list.rb +10 -6
  176. data/lib/wx/doc/gen/keyboard_state.rb +7 -7
  177. data/lib/wx/doc/gen/list_box.rb +30 -21
  178. data/lib/wx/doc/gen/list_ctrl.rb +169 -78
  179. data/lib/wx/doc/gen/list_event.rb +24 -2
  180. data/lib/wx/doc/gen/listbook.rb +12 -6
  181. data/lib/wx/doc/gen/locale.rb +11 -36
  182. data/lib/wx/doc/gen/log.rb +122 -45
  183. data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
  184. data/lib/wx/doc/gen/mdi_frame.rb +15 -9
  185. data/lib/wx/doc/gen/media_ctrl.rb +7 -4
  186. data/lib/wx/doc/gen/media_event.rb +8 -2
  187. data/lib/wx/doc/gen/memory_dc.rb +23 -27
  188. data/lib/wx/doc/gen/menu.rb +9 -9
  189. data/lib/wx/doc/gen/menu_bar.rb +4 -4
  190. data/lib/wx/doc/gen/menu_item.rb +115 -34
  191. data/lib/wx/doc/gen/message_dialog.rb +48 -30
  192. data/lib/wx/doc/gen/mini_frame.rb +12 -3
  193. data/lib/wx/doc/gen/mouse_state.rb +1 -1
  194. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  195. data/lib/wx/doc/gen/non_owned_window.rb +6 -7
  196. data/lib/wx/doc/gen/notebook.rb +20 -15
  197. data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
  198. data/lib/wx/doc/gen/object.rb +2 -2
  199. data/lib/wx/doc/gen/palette.rb +3 -3
  200. data/lib/wx/doc/gen/panel.rb +4 -3
  201. data/lib/wx/doc/gen/pen.rb +25 -12
  202. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
  203. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
  204. data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
  205. data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
  206. data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
  207. data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
  208. data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
  209. data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
  210. data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
  211. data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
  212. data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
  213. data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
  214. data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
  215. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
  216. data/lib/wx/doc/gen/picker_base.rb +12 -11
  217. data/lib/wx/doc/gen/platform_info.rb +7 -7
  218. data/lib/wx/doc/gen/popup_window.rb +6 -6
  219. data/lib/wx/doc/gen/progress_dialog.rb +1 -1
  220. data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
  221. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  222. data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
  223. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  224. data/lib/wx/doc/gen/prt/print_data.rb +24 -18
  225. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  226. data/lib/wx/doc/gen/prt/printer.rb +22 -22
  227. data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
  228. data/lib/wx/doc/gen/radio_box.rb +12 -10
  229. data/lib/wx/doc/gen/radio_button.rb +8 -6
  230. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
  231. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
  232. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  233. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
  234. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
  235. data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
  236. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
  237. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  238. data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
  239. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
  240. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  241. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
  242. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
  243. data/lib/wx/doc/gen/region.rb +9 -8
  244. data/lib/wx/doc/gen/region_iterator.rb +2 -2
  245. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
  246. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
  247. data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
  248. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
  249. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
  250. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
  251. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
  252. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  253. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  254. data/lib/wx/doc/gen/sash_event.rb +3 -1
  255. data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
  256. data/lib/wx/doc/gen/sash_window.rb +8 -3
  257. data/lib/wx/doc/gen/scroll_bar.rb +29 -8
  258. data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
  259. data/lib/wx/doc/gen/scrolled_control.rb +41 -23
  260. data/lib/wx/doc/gen/scrolled_window.rb +41 -23
  261. data/lib/wx/doc/gen/search_ctrl.rb +15 -8
  262. data/lib/wx/doc/gen/simplebook.rb +2 -2
  263. data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
  264. data/lib/wx/doc/gen/sizer.rb +29 -28
  265. data/lib/wx/doc/gen/slider.rb +49 -16
  266. data/lib/wx/doc/gen/spin_button.rb +15 -9
  267. data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
  268. data/lib/wx/doc/gen/spin_event.rb +5 -2
  269. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  270. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  271. data/lib/wx/doc/gen/splitter_window.rb +20 -4
  272. data/lib/wx/doc/gen/static_bitmap.rb +5 -5
  273. data/lib/wx/doc/gen/static_box.rb +36 -32
  274. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  275. data/lib/wx/doc/gen/static_line.rb +5 -4
  276. data/lib/wx/doc/gen/static_text.rb +12 -6
  277. data/lib/wx/doc/gen/status_bar.rb +14 -5
  278. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
  279. data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
  280. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  281. data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
  282. data/lib/wx/doc/gen/system_options.rb +11 -1
  283. data/lib/wx/doc/gen/system_settings.rb +3 -3
  284. data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
  285. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  286. data/lib/wx/doc/gen/text_attr.rb +11 -7
  287. data/lib/wx/doc/gen/text_ctrl.rb +61 -92
  288. data/lib/wx/doc/gen/text_entry.rb +28 -40
  289. data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
  290. data/lib/wx/doc/gen/text_validator.rb +0 -11
  291. data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
  292. data/lib/wx/doc/gen/timer.rb +8 -4
  293. data/lib/wx/doc/gen/timer_event.rb +19 -26
  294. data/lib/wx/doc/gen/tip_provider.rb +1 -1
  295. data/lib/wx/doc/gen/toggle_button.rb +6 -5
  296. data/lib/wx/doc/gen/tool_bar.rb +41 -24
  297. data/lib/wx/doc/gen/tool_tip.rb +2 -2
  298. data/lib/wx/doc/gen/toolbook.rb +6 -3
  299. data/lib/wx/doc/gen/top_level_window.rb +35 -25
  300. data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
  301. data/lib/wx/doc/gen/tree_event.rb +23 -2
  302. data/lib/wx/doc/gen/treebook.rb +6 -2
  303. data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
  304. data/lib/wx/doc/gen/utils.rb +9 -3
  305. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  306. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  307. data/lib/wx/doc/gen/validator.rb +7 -5
  308. data/lib/wx/doc/gen/variant.rb +34 -97
  309. data/lib/wx/doc/gen/window.rb +157 -102
  310. data/lib/wx/doc/gen/window_dc.rb +1 -1
  311. data/lib/wx/doc/gen/with_images.rb +1 -1
  312. data/lib/wx/doc/gen/wizard.rb +17 -4
  313. data/lib/wx/doc/gen/wizard_event.rb +9 -2
  314. data/lib/wx/doc/gen/wizard_page.rb +1 -1
  315. data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
  316. data/lib/wx/doc/gen/xml_node.rb +3 -3
  317. data/lib/wx/doc/gen/xml_resource.rb +12 -9
  318. data/lib/wx/doc/image.rb +42 -12
  319. data/lib/wx/doc/list_ctrl.rb +32 -0
  320. data/lib/wx/doc/log.rb +28 -0
  321. data/lib/wx/doc/prt/printer_dc.rb +2 -2
  322. data/lib/wx/doc/scaled_dc.rb +1 -1
  323. data/lib/wx/doc/text_validator.rb +12 -0
  324. data/lib/wx/version.rb +1 -1
  325. data/lib/wxruby_aui.so +0 -0
  326. data/lib/wxruby_core.so +0 -0
  327. data/lib/wxruby_grid.so +0 -0
  328. data/lib/wxruby_html.so +0 -0
  329. data/lib/wxruby_pg.so +0 -0
  330. data/lib/wxruby_prt.so +0 -0
  331. data/lib/wxruby_rbn.so +0 -0
  332. data/lib/wxruby_rtc.so +0 -0
  333. data/lib/wxruby_stc.so +0 -0
  334. data/tests/test_art.rb +9 -0
  335. data/tests/test_box_sizer.rb +161 -0
  336. data/tests/test_grid_sizer.rb +148 -0
  337. data/tests/test_list_ctrl.rb +53 -0
  338. data/tests/test_log.rb +163 -0
  339. data/tests/test_std_controls.rb +58 -0
  340. data/tests/test_timer.rb +95 -0
  341. metadata +13 -2
@@ -236,7 +236,7 @@ module Wx
236
236
  #
237
237
  # {Wx::TreeCtrl} inherits from {Wx::WithImages} classes providing the functions for associating images with the control items. Each item refers to its image using an index, which can possibly by {Wx::WithImages::NO_IMAGE} to indicate that the item doesn't use any image at all, and the corresponding image is taken either from the vector passed to {Wx::WithImages#set_images} or from the image list passed to {Wx::WithImages#set_image_list} or {Wx::WithImages#assign_image_list} functions.
238
238
  # In addition to normal images, handled with the methods mentioned above, {Wx::TreeCtrl} also provides optional state images that may be used to indicate some additional state of the item, e.g. checked or unchecked status. These images can be set using {Wx::TreeCtrl#set_state_image_list} and {Wx::TreeCtrl#assign_state_image_list} functions that behave in the same way as the corresponding methods of {Wx::WithImages}.
239
- # Finally, in the generic version of this control ({Wx::GenericTreeCtrl}), also provides {Wx::TreeCtrl#set_buttons_image_list} and {Wx::TreeCtrl#assign_buttons_image_list}, which can be used to change the images used for the control buttons, used to expand or collapse its branches. These methods are not available in the native {Wx::MSW} and {Wx::Qt} implementations.
239
+ # Finally, in the generic version of this control ({Wx::GenericTreeCtrl}), also provides {Wx::TreeCtrl#set_buttons_image_list} and {Wx::TreeCtrl#assign_buttons_image_list}, which can be used to change the images used for the control buttons, used to expand or collapse its branches. These methods are not available in the native wxMSW and {Wx::Qt} implementations.
240
240
  #
241
241
  # == Events
242
242
  #
@@ -244,45 +244,78 @@ module Wx
244
244
  # === Styles
245
245
  #
246
246
  # This class supports the following styles:
247
- #
247
+ #
248
248
  # - {Wx::TR_EDIT_LABELS}: Use this style if you wish the user to be able to edit labels in the tree control.
249
+ #
249
250
  # - {Wx::TR_NO_BUTTONS}: For convenience to document that no buttons are to be drawn.
251
+ #
250
252
  # - {Wx::TR_HAS_BUTTONS}: Use this style to show + and - buttons to the left of parent items.
253
+ #
251
254
  # - {Wx::TR_TWIST_BUTTONS}: Selects alternative style of <code>+/<code>-</code> buttons</code> and shows rotating ("twisting") arrows instead. Currently this style is only implemented under Microsoft Windows Vista and later Windows versions and is ignored under the other platforms as enabling it is equivalent to using Wx::SystemThemedControl#enable_system_theme.
255
+ #
252
256
  # - {Wx::TR_NO_LINES}: Use this style to hide vertical level connectors.
257
+ #
253
258
  # - {Wx::TR_FULL_ROW_HIGHLIGHT}: Use this style to have the background colour and the selection highlight extend over the entire horizontal row of the tree control window. (This flag is ignored under Windows unless you specify {Wx::TR_NO_LINES} as well.)
259
+ #
254
260
  # - {Wx::TR_LINES_AT_ROOT}: Use this style to show lines leading to the root nodes (unless no {Wx::TR_NO_LINES} is also used, in which case no lines are shown). Note that in the MSW version, if this style is omitted, not only the lines, but also the button used for expanding the root item is not shown, which can be unexpected, so it is recommended to always use it.
261
+ #
255
262
  # - {Wx::TR_HIDE_ROOT}: Use this style to suppress the display of the root node, effectively causing the first-level nodes to appear as a series of root nodes.
263
+ #
256
264
  # - {Wx::TR_ROW_LINES}: Use this style to draw a contrasting border between displayed rows.
265
+ #
257
266
  # - {Wx::TR_HAS_VARIABLE_ROW_HEIGHT}: Use this style to cause row heights to be just big enough to fit the content. If not set, all rows use the largest row height. The default is that this flag is unset. Generic only.
267
+ #
258
268
  # - {Wx::TR_SINGLE}: For convenience to document that only one item may be selected at a time. Selecting another item causes the current selection, if any, to be deselected. This is the default.
269
+ #
259
270
  # - {Wx::TR_MULTIPLE}: Use this style to allow a range of items to be selected. If a second range is selected, the current range, if any, is deselected.
271
+ #
260
272
  # - {Wx::TR_DEFAULT_STYLE}: The set of flags that are closest to the defaults for the native control for a particular toolkit.
261
273
  #
262
274
  # === Events emitted by this class
263
275
  #
264
276
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::TreeEvent} events.
265
277
  # Event handler methods for events emitted by this class:
278
+ #
266
279
  # - {Wx::EvtHandler#evt_tree_begin_drag}(id, meth = nil, &block): Begin dragging with the left mouse button. If you want to enable left-dragging you need to intercept this event and explicitly call {Wx::TreeEvent#allow}, as it's vetoed by default. Processes a {Wx::EVT_TREE_BEGIN_DRAG} event type.
280
+ #
267
281
  # - {Wx::EvtHandler#evt_tree_begin_rdrag}(id, meth = nil, &block): Begin dragging with the right mouse button. If you want to enable right-dragging you need to intercept this event and explicitly call {Wx::TreeEvent#allow}, as it's vetoed by default. Processes a {Wx::EVT_TREE_BEGIN_RDRAG} event type.
282
+ #
268
283
  # - {Wx::EvtHandler#evt_tree_end_drag}(id, meth = nil, &block): End dragging with the left or right mouse button. Processes a {Wx::EVT_TREE_END_DRAG} event type.
284
+ #
269
285
  # - {Wx::EvtHandler#evt_tree_begin_label_edit}(id, meth = nil, &block): Begin editing a label. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_BEGIN_LABEL_EDIT} event type.
286
+ #
270
287
  # - {Wx::EvtHandler#evt_tree_end_label_edit}(id, meth = nil, &block): Finish editing a label. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_END_LABEL_EDIT} event type.
288
+ #
271
289
  # - {Wx::EvtHandler#evt_tree_delete_item}(id, meth = nil, &block): An item was deleted. Processes a {Wx::EVT_TREE_DELETE_ITEM} event type.
290
+ #
272
291
  # - {Wx::EvtHandler#evt_tree_get_info}(id, meth = nil, &block): Request information from the application. Processes a {Wx::EVT_TREE_GET_INFO} event type.
292
+ #
273
293
  # - {Wx::EvtHandler#evt_tree_set_info}(id, meth = nil, &block): Information is being supplied. Processes a {Wx::EVT_TREE_SET_INFO} event type.
294
+ #
274
295
  # - {Wx::EvtHandler#evt_tree_item_activated}(id, meth = nil, &block): The item has been activated, i.e. chosen by double clicking it with mouse or from keyboard. Processes a {Wx::EVT_TREE_ITEM_ACTIVATED} event type.
296
+ #
275
297
  # - {Wx::EvtHandler#evt_tree_item_collapsed}(id, meth = nil, &block): The item has been collapsed. Processes a {Wx::EVT_TREE_ITEM_COLLAPSED} event type.
298
+ #
276
299
  # - {Wx::EvtHandler#evt_tree_item_collapsing}(id, meth = nil, &block): The item is being collapsed. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_ITEM_COLLAPSING} event type.
300
+ #
277
301
  # - {Wx::EvtHandler#evt_tree_item_expanded}(id, meth = nil, &block): The item has been expanded. Processes a {Wx::EVT_TREE_ITEM_EXPANDED} event type.
302
+ #
278
303
  # - {Wx::EvtHandler#evt_tree_item_expanding}(id, meth = nil, &block): The item is being expanded. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_ITEM_EXPANDING} event type.
304
+ #
279
305
  # - {Wx::EvtHandler#evt_tree_item_right_click}(id, meth = nil, &block): The user has clicked the item with the right mouse button. Processes a {Wx::EVT_TREE_ITEM_RIGHT_CLICK} event type.
306
+ #
280
307
  # - {Wx::EvtHandler#evt_tree_item_middle_click}(id, meth = nil, &block): The user has clicked the item with the middle mouse button. This is only supported by the generic control. Processes a {Wx::EVT_TREE_ITEM_MIDDLE_CLICK} event type.
308
+ #
281
309
  # - {Wx::EvtHandler#evt_tree_sel_changed}(id, meth = nil, &block): Selection has changed. Processes a {Wx::EVT_TREE_SEL_CHANGED} event type.
310
+ #
282
311
  # - {Wx::EvtHandler#evt_tree_sel_changing}(id, meth = nil, &block): Selection is changing. This can be prevented by calling Veto(). Processes a {Wx::EVT_TREE_SEL_CHANGING} event type.
312
+ #
283
313
  # - {Wx::EvtHandler#evt_tree_key_down}(id, meth = nil, &block): A key has been pressed. Processes a {Wx::EVT_TREE_KEY_DOWN} event type.
314
+ #
284
315
  # - {Wx::EvtHandler#evt_tree_item_gettooltip}(id, meth = nil, &block): The opportunity to set the item tooltip is being given to the application (call {Wx::TreeEvent#set_tool_tip}). Windows only. Processes a {Wx::EVT_TREE_ITEM_GETTOOLTIP} event type.
316
+ #
285
317
  # - {Wx::EvtHandler#evt_tree_item_menu}(id, meth = nil, &block): The context menu for the selected item has been requested, either by a right click or by using the menu key. Notice that these events always carry a valid tree item and so are not generated when (right) clicking outside of the items area. If you need to handle such events, consider using {Wx::EVT_CONTEXT_MENU} instead. Processes a {Wx::EVT_TREE_ITEM_MENU} event type.
318
+ #
286
319
  # - {Wx::EvtHandler#evt_tree_state_image_click}(id, meth = nil, &block): The state image has been clicked. Processes a {Wx::EVT_TREE_STATE_IMAGE_CLICK} event type.
287
320
  #
288
321
  # See also Window Styles.
@@ -290,9 +323,9 @@ module Wx
290
323
  # {Wx::TreeCtrl} class uses the standard common treeview control under Win32 implemented in the system library comctl32.dll. Some versions of this library are known to have bugs with handling the tree control colours: the usual symptom is that the expanded items leave black (or otherwise incorrectly coloured) background behind them, especially for the controls using non-default background colour. The recommended solution is to upgrade the comctl32.dll to a newer version: see http://www.microsoft.com/downloads/details.aspx?familyid=cb2cf3a2-8025-4e8f-8511-9b476a8d35d2
291
324
  # ===
292
325
  #
293
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
294
- # </td><td> {Wx::GTK} Appearance
295
- # </td><td> {Wx::OSX} Appearance
326
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
327
+ # </td><td> wxGTK Appearance
328
+ # </td><td> wxOSX Appearance
296
329
  # </td></tr></table></div>
297
330
  # @see Wx::DataViewTreeCtrl
298
331
  # @see Wx::TreeEvent
@@ -309,7 +342,7 @@ module Wx
309
342
 
310
343
  # @overload initialize()
311
344
  # Default Constructor.
312
- # @return [TreeCtrl]
345
+ # @return [Wx::TreeCtrl]
313
346
  # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TreeCtrlNameStr)
314
347
  # Constructor, creating and showing a tree control.
315
348
  #
@@ -322,7 +355,7 @@ module Wx
322
355
  # @param style [Integer] Window style. See {Wx::TreeCtrl}.
323
356
  # @param validator [Wx::Validator] Window validator.
324
357
  # @param name [String] Window name.
325
- # @return [TreeCtrl]
358
+ # @return [Wx::TreeCtrl]
326
359
  def initialize(*args) end
327
360
 
328
361
  # Adds the root node to the tree, returning the new item.
@@ -399,7 +432,7 @@ module Wx
399
432
  def delete_children(item) end
400
433
 
401
434
  # Enable or disable a beep if there is no match for the currently entered text when searching for the item from keyboard.
402
- # The default is to not beep in this case except in {Wx::MSW} where the beep is always generated by the native control and cannot be disabled, i.e. calls to this function do nothing there.
435
+ # The default is to not beep in this case except in wxMSW where the beep is always generated by the native control and cannot be disabled, i.e. calls to this function do nothing there.
403
436
  # @param on [true,false]
404
437
  # @return [void]
405
438
  def enable_bell_on_no_match(on=true) end
@@ -459,7 +492,7 @@ module Wx
459
492
 
460
493
  # Returns the edit control being currently used to edit a label.
461
494
  # Returns NULL if no label is being edited.
462
- # This is currently only implemented for {Wx::MSW}.
495
+ # This is currently only implemented for wxMSW.
463
496
  # @return [Wx::TextCtrl]
464
497
  def get_edit_control; end
465
498
  alias_method :edit_control, :get_edit_control
@@ -519,7 +552,11 @@ module Wx
519
552
 
520
553
  # Gets the specified item image.
521
554
  # The value of which may be:
522
- # - {Wx::TreeItemIcon::TreeItemIcon_Normal}: to get the normal item image.- {Wx::TreeItemIcon::TreeItemIcon_Selected}: to get the selected item image (i.e. the image which is shown when the item is currently selected).- {Wx::TreeItemIcon::TreeItemIcon_Expanded}: to get the expanded image (this only makes sense for items which have children - then this image is shown when the item is expanded and the normal image is shown when it is collapsed).- {Wx::TreeItemIcon::TreeItemIcon_SelectedExpanded}: to get the selected expanded image (which is shown when an expanded item is currently selected).
555
+ #
556
+ # - {Wx::TreeItemIcon::TreeItemIcon_Normal}: to get the normal item image.
557
+ # - {Wx::TreeItemIcon::TreeItemIcon_Selected}: to get the selected item image (i.e. the image which is shown when the item is currently selected).
558
+ # - {Wx::TreeItemIcon::TreeItemIcon_Expanded}: to get the expanded image (this only makes sense for items which have children - then this image is shown when the item is expanded and the normal image is shown when it is collapsed).
559
+ # - {Wx::TreeItemIcon::TreeItemIcon_SelectedExpanded}: to get the selected expanded image (which is shown when an expanded item is currently selected).
523
560
  # @param item [Wx::TreeItemId]
524
561
  # @param which [TreeItemIcon]
525
562
  # @return [Integer]
@@ -616,7 +653,17 @@ module Wx
616
653
  # Calculates which (if any) item is under the given point, returning the tree item id at this point plus extra information flags.
617
654
  # flags is a bitlist of the following:
618
655
  #
619
- # - {Wx::TREE_HITTEST_ABOVE}: Above the client area.- {Wx::TREE_HITTEST_BELOW}: Below the client area.- {Wx::TREE_HITTEST_NOWHERE}: In the client area but below the last item.- {Wx::TREE_HITTEST_ONITEMBUTTON}: On the button associated with an item.- {Wx::TREE_HITTEST_ONITEMICON}: On the bitmap associated with an item.- {Wx::TREE_HITTEST_ONITEMINDENT}: In the indentation associated with an item.- {Wx::TREE_HITTEST_ONITEMLABEL}: On the label (string) associated with an item.- {Wx::TREE_HITTEST_ONITEMRIGHT}: In the area to the right of an item.- {Wx::TREE_HITTEST_ONITEMSTATEICON}: On the state icon for a tree view item that is in a user-defined state.- {Wx::TREE_HITTEST_TOLEFT}: To the right of the client area.- {Wx::TREE_HITTEST_TORIGHT}: To the left of the client area.
656
+ # - {Wx::TREE_HITTEST_ABOVE}: Above the client area.
657
+ # - {Wx::TREE_HITTEST_BELOW}: Below the client area.
658
+ # - {Wx::TREE_HITTEST_NOWHERE}: In the client area but below the last item.
659
+ # - {Wx::TREE_HITTEST_ONITEMBUTTON}: On the button associated with an item.
660
+ # - {Wx::TREE_HITTEST_ONITEMICON}: On the bitmap associated with an item.
661
+ # - {Wx::TREE_HITTEST_ONITEMINDENT}: In the indentation associated with an item.
662
+ # - {Wx::TREE_HITTEST_ONITEMLABEL}: On the label (string) associated with an item.
663
+ # - {Wx::TREE_HITTEST_ONITEMRIGHT}: In the area to the right of an item.
664
+ # - {Wx::TREE_HITTEST_ONITEMSTATEICON}: On the state icon for a tree view item that is in a user-defined state.
665
+ # - {Wx::TREE_HITTEST_TOLEFT}: To the right of the client area.
666
+ # - {Wx::TREE_HITTEST_TORIGHT}: To the left of the client area.
620
667
  # @param point [Array(Integer, Integer), Wx::Point]
621
668
  # @return [Array(Wx::TreeItemId,Integer)]
622
669
  def hit_test(point) end
@@ -709,7 +756,7 @@ module Wx
709
756
  alias_method :indent=, :set_indent
710
757
 
711
758
  # Sets the spacing for the tree control.
712
- # Spacing is the number of horizontal pixels between the buttons and the state images. This has no effect under {Wx::MSW}.
759
+ # Spacing is the number of horizontal pixels between the buttons and the state images. This has no effect under wxMSW.
713
760
  # @param spacing [Integer]
714
761
  # @return [void]
715
762
  def set_spacing(spacing) end
@@ -770,7 +817,10 @@ module Wx
770
817
 
771
818
  # Sets the specified item state.
772
819
  # The value of state may be an index into the state image list, or one of the special values:
773
- # - {Wx::TREE_ITEMSTATE_NONE}: to disable the item state (the state image will be not displayed).- {Wx::TREE_ITEMSTATE_NEXT}: to set the next item state.- {Wx::TREE_ITEMSTATE_PREV}: to set the previous item state.
820
+ #
821
+ # - {Wx::TREE_ITEMSTATE_NONE}: to disable the item state (the state image will be not displayed).
822
+ # - {Wx::TREE_ITEMSTATE_NEXT}: to set the next item state.
823
+ # - {Wx::TREE_ITEMSTATE_PREV}: to set the previous item state.
774
824
  # @param item [Wx::TreeItemId]
775
825
  # @param state [Integer]
776
826
  # @return [void]
@@ -12,26 +12,47 @@ module Wx
12
12
  #
13
13
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::TreeEvent} events.
14
14
  # Event handler methods:
15
+ #
15
16
  # - {Wx::EvtHandler#evt_tree_begin_drag}(id, meth = nil, &block): Begin dragging with the left mouse button. If you want to enable left-dragging you need to intercept this event and explicitly call {Wx::TreeEvent#allow}, as it's vetoed by default. Also notice that the control must have an associated image list (see SetImageList()) to drag its items under MSW.
17
+ #
16
18
  # - {Wx::EvtHandler#evt_tree_begin_rdrag}(id, meth = nil, &block): Begin dragging with the right mouse button. If you want to enable right-dragging you need to intercept this event and explicitly call {Wx::TreeEvent#allow}, as it's vetoed by default.
19
+ #
17
20
  # - {Wx::EvtHandler#evt_tree_end_drag}(id, meth = nil, &block): End dragging with the left or right mouse button.
21
+ #
18
22
  # - {Wx::EvtHandler#evt_tree_begin_label_edit}(id, meth = nil, &block): Begin editing a label. This can be prevented by calling {Wx::TreeEvent#veto}.
23
+ #
19
24
  # - {Wx::EvtHandler#evt_tree_end_label_edit}(id, meth = nil, &block): Finish editing a label. This can be prevented by calling {Wx::TreeEvent#veto}.
25
+ #
20
26
  # - {Wx::EvtHandler#evt_tree_delete_item}(id, meth = nil, &block): Delete an item.
27
+ #
21
28
  # - {Wx::EvtHandler#evt_tree_get_info}(id, meth = nil, &block): Request information from the application.
29
+ #
22
30
  # - {Wx::EvtHandler#evt_tree_set_info}(id, meth = nil, &block): Information is being supplied.
31
+ #
23
32
  # - {Wx::EvtHandler#evt_tree_item_activated}(id, meth = nil, &block): The item has been activated, i.e. chosen by double clicking it with mouse or from keyboard.
33
+ #
24
34
  # - {Wx::EvtHandler#evt_tree_item_collapsed}(id, meth = nil, &block): The item has been collapsed.
35
+ #
25
36
  # - {Wx::EvtHandler#evt_tree_item_collapsing}(id, meth = nil, &block): The item is being collapsed. This can be prevented by calling {Wx::TreeEvent#veto}.
37
+ #
26
38
  # - {Wx::EvtHandler#evt_tree_item_expanded}(id, meth = nil, &block): The item has been expanded.
39
+ #
27
40
  # - {Wx::EvtHandler#evt_tree_item_expanding}(id, meth = nil, &block): The item is being expanded. This can be prevented by calling {Wx::TreeEvent#veto}.
41
+ #
28
42
  # - {Wx::EvtHandler#evt_tree_item_right_click}(id, meth = nil, &block): The user has clicked the item with the right mouse button.
43
+ #
29
44
  # - {Wx::EvtHandler#evt_tree_item_middle_click}(id, meth = nil, &block): The user has clicked the item with the middle mouse button.
45
+ #
30
46
  # - {Wx::EvtHandler#evt_tree_sel_changed}(id, meth = nil, &block): Selection has changed.
47
+ #
31
48
  # - {Wx::EvtHandler#evt_tree_sel_changing}(id, meth = nil, &block): Selection is changing. This can be prevented by calling {Wx::TreeEvent#veto}.
49
+ #
32
50
  # - {Wx::EvtHandler#evt_tree_key_down}(id, meth = nil, &block): A key has been pressed.
51
+ #
33
52
  # - {Wx::EvtHandler#evt_tree_item_gettooltip}(id, meth = nil, &block): The opportunity to set the item tooltip is being given to the application (call {Wx::TreeEvent#set_tool_tip}). Windows only.
53
+ #
34
54
  # - {Wx::EvtHandler#evt_tree_item_menu}(id, meth = nil, &block): The context menu for the selected item has been requested, either by a right click or by using the menu key.
55
+ #
35
56
  # - {Wx::EvtHandler#evt_tree_state_image_click}(id, meth = nil, &block): The state image has been clicked.
36
57
  #
37
58
  # ===
@@ -43,10 +64,10 @@ module Wx
43
64
  class TreeEvent < NotifyEvent
44
65
 
45
66
  # Constructor, used by wxWidgets itself only.
46
- # @param commandType [Integer]
67
+ # @param commandType [Wx::AUI::AuiMDIChildFrame::EventType]
47
68
  # @param tree [Wx::TreeCtrl]
48
69
  # @param item [Wx::TreeItemId]
49
- # @return [TreeEvent]
70
+ # @return [Wx::TreeEvent]
50
71
  def initialize(commandType, tree, item=(Wx::TreeItemId.new())) end
51
72
 
52
73
  # Returns the item.
@@ -30,9 +30,13 @@ module Wx
30
30
  #
31
31
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::BookCtrlEvent} events.
32
32
  # Event handler methods for events emitted by this class:
33
+ #
33
34
  # - {Wx::EvtHandler#evt_treebook_page_changed}(id, meth = nil, &block): The page selection was changed. Processes a {Wx::EVT_TREEBOOK_PAGE_CHANGED} event.
35
+ #
34
36
  # - {Wx::EvtHandler#evt_treebook_page_changing}(id, meth = nil, &block): The page selection is about to be changed. Processes a {Wx::EVT_TREEBOOK_PAGE_CHANGING} event. This event can be {Wx::vetoed}.
37
+ #
35
38
  # - {Wx::EvtHandler#evt_treebook_node_collapsed}(id, meth = nil, &block): The page node is going to be collapsed. Processes a {Wx::EVT_TREEBOOK_NODE_COLLAPSED} event.
39
+ #
36
40
  # - {Wx::EvtHandler#evt_treebook_node_expanded}(id, meth = nil, &block): The page node is going to be expanded. Processes a {Wx::EVT_TREEBOOK_NODE_EXPANDED} event.
37
41
  #
38
42
  # ===
@@ -51,7 +55,7 @@ module Wx
51
55
 
52
56
  # @overload initialize()
53
57
  # Default constructor.
54
- # @return [Treebook]
58
+ # @return [Wx::Treebook]
55
59
  # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::BK_DEFAULT, name=(''))
56
60
  # Creates an empty {Wx::Treebook}.
57
61
  # @param parent [Wx::Window] The parent window. Must be non-NULL.
@@ -60,7 +64,7 @@ module Wx
60
64
  # @param size [Array(Integer, Integer), Wx::Size] The window size.
61
65
  # @param style [Integer] The window style. See {Wx::Notebook}.
62
66
  # @param name [String] The name of the control (used only under Motif).
63
- # @return [Treebook]
67
+ # @return [Wx::Treebook]
64
68
  def initialize(*args) end
65
69
 
66
70
  # Adds a new page.
@@ -17,7 +17,7 @@ module Wx
17
17
  class UIActionSimulator < ::Object
18
18
 
19
19
  # Default constructor.
20
- # @return [UIActionSimulator]
20
+ # @return [Wx::UIActionSimulator]
21
21
  def initialize; end
22
22
 
23
23
  # @overload mouse_move(x, y)
@@ -50,7 +50,7 @@ module Wx
50
50
  # For normal keys, returns true if the specified key is currently down.
51
51
  # For togglable keys (Caps Lock, Num Lock and Scroll Lock), returns true if the key is toggled such that its LED indicator is lit. There is currently no way to test whether togglable keys are up or down.
52
52
  # Even though there are virtual key codes defined for mouse buttons, they cannot be used with this function currently.
53
- # In {Wx::GTK}, this function can be only used with modifier keys ({Wx::K_ALT}, {Wx::K_CONTROL} and {Wx::K_SHIFT}) when not using X11 backend currently.
53
+ # In wxGTK, this function can be only used with modifier keys ({Wx::K_ALT}, {Wx::K_CONTROL} and {Wx::K_SHIFT}) when not using X11 backend currently.
54
54
  # @param key [KeyCode]
55
55
  # @return [true,false]
56
56
  def self.get_key_state(key) end
@@ -102,7 +102,10 @@ module Wx
102
102
  # If the flags parameter contains {Wx::BROWSER_NEW_WINDOW} flag, a new window is opened for the URL (currently this is only supported under Windows).
103
103
  # And unless the flags parameter contains {Wx::BROWSER_NOBUSYCURSOR} flag, a busy cursor is shown while the browser is being launched (using {Wx::BusyCursor}).
104
104
  # The parameter url is interpreted as follows:
105
- # - if it has a valid scheme (e.g. <code>"file:"</code>, <code>"http:"</code> or <code>"mailto:"</code>) it is passed to the appropriate browser configured in the user system.- if it has no valid scheme (e.g. it's a local file path without the <code>"file:"</code> prefix), then {Wx::FileExists} and {Wx::DirExists} are used to test if it's a local file/directory; if it is, then the browser is called with the url parameter eventually prefixed by <code>"file:"</code>.- if it has no valid scheme and it's not a local file/directory, then <code>"http:"</code> is prepended and the browser is called.
105
+ #
106
+ # - if it has a valid scheme (e.g. <code>"file:"</code>, <code>"http:"</code> or <code>"mailto:"</code>) it is passed to the appropriate browser configured in the user system.
107
+ # - if it has no valid scheme (e.g. it's a local file path without the <code>"file:"</code> prefix), then {Wx::FileExists} and {Wx::DirExists} are used to test if it's a local file/directory; if it is, then the browser is called with the url parameter eventually prefixed by <code>"file:"</code>.
108
+ # - if it has no valid scheme and it's not a local file/directory, then <code>"http:"</code> is prepended and the browser is called.
106
109
  #
107
110
  # Returns true if the application was successfully launched.
108
111
  # For some configurations of the running user, the application which is launched to open the given URL may be URL-dependent (e.g. a browser may be used for local URLs while another one may be used for remote URLs).
@@ -201,7 +204,10 @@ module Wx
201
204
  # In some situations the current process and native CPU architecture may be different.
202
205
  # This returns the native CPU architecture regardless of the current process CPU architecture.
203
206
  # Common examples for CPU architecture differences are the following:
204
- # - Win32 process in x64 Windows (WoW)- Win32 or x64 process on ARM64 Windows (WoW64)- x86_64 process on ARM64 macOS (Rosetta 2)
207
+ #
208
+ # - Win32 process in x64 Windows (WoW)
209
+ # - Win32 or x64 process on ARM64 Windows (WoW64)
210
+ # - x86_64 process on ARM64 macOS (Rosetta 2)
205
211
  #
206
212
  # The returned string may be empty if the CPU architecture couldn't be recognized.
207
213
  # @see get_cpu_architecture_name
@@ -34,7 +34,7 @@ module Wx
34
34
 
35
35
  # @overload initialize()
36
36
  # Default constructor, you must call {Wx::VListBox#create} later.
37
- # @return [VListBox]
37
+ # @return [Wx::VListBox]
38
38
  # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::VListBoxNameStr)
39
39
  # Normal constructor which calls {Wx::VListBox#create} internally.
40
40
  # @param parent [Wx::Window]
@@ -43,7 +43,7 @@ module Wx
43
43
  # @param size [Array(Integer, Integer), Wx::Size]
44
44
  # @param style [Integer]
45
45
  # @param name [String]
46
- # @return [VListBox]
46
+ # @return [Wx::VListBox]
47
47
  def initialize(*args) end
48
48
 
49
49
  # Deletes all items from the control.
@@ -64,7 +64,7 @@ module Wx
64
64
 
65
65
  # @overload initialize()
66
66
  # Default constructor, you must call {Wx::VScrolledWindow#create} later.
67
- # @return [VScrolledWindow]
67
+ # @return [Wx::VScrolledWindow]
68
68
  # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr)
69
69
  # This is the normal constructor, no need to call {Wx::VScrolledWindow#create} after using this constructor.
70
70
  # {Wx::VSCROLL} is always automatically added to the style, there is no need to specify it explicitly.
@@ -74,7 +74,7 @@ module Wx
74
74
  # @param size [Array(Integer, Integer), Wx::Size] The initial window size.
75
75
  # @param style [Integer] The window style. There are no special style bits defined for this class.
76
76
  # @param name [String] The name for this window; usually not used.
77
- # @return [VScrolledWindow]
77
+ # @return [Wx::VScrolledWindow]
78
78
  def initialize(*args) end
79
79
 
80
80
  # Same as the non-default constructor, but returns a status code: true if ok, false if the window couldn't be created.
@@ -13,7 +13,9 @@ module Wx
13
13
  # {Wx::Validator} is the base class for a family of validator classes that mediate between a class of control, and application data.
14
14
  # A validator has three major roles:
15
15
  #
16
- # - To transfer data from a C++ variable or own storage to and from a control.- To validate data in a control, and show an appropriate error message.- To filter events (such as keystrokes), thereby changing the behaviour of the associated control.
16
+ # - To transfer data from a C++ variable or own storage to and from a control.
17
+ # - To validate data in a control, and show an appropriate error message.
18
+ # - To filter events (such as keystrokes), thereby changing the behaviour of the associated control.
17
19
  #
18
20
  # Validators can be plugged into controls dynamically.
19
21
  # To specify a default, "null" validator, use {Wx::DEFAULT_VALIDATOR}.
@@ -32,7 +34,7 @@ module Wx
32
34
  class Validator < EvtHandler
33
35
 
34
36
  # Constructor.
35
- # @return [Validator]
37
+ # @return [Wx::Validator]
36
38
  def initialize; end
37
39
 
38
40
  # Returns the window associated with the validator.
@@ -43,9 +45,9 @@ module Wx
43
45
  # Associates a window with the validator.
44
46
  # This function is automatically called by wxWidgets when creating a {Wx::Window}-derived class instance which takes a {Wx::Validator} reference. Since wxWidgets 3.1.1, it can be overridden in custom validators in order to perform any one-time initialization or checks of the window when the validator is associated with it.
45
47
  # E.g.
46
- # ```
47
- # new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0,
48
- # wxTextValidator(wxFILTER_ALPHA, &g_data.m_string));
48
+ # ```ruby
49
+ # Wx::TextCtrl.new(self, Wx::ID_ANY, '', Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, 0,
50
+ # Wx::TextValidator.new(Wx::FILTER_ALPHA))
49
51
  # ```
50
52
  # will automatically link the {Wx::TextValidator} instance with the {Wx::TextCtrl} instance and call {Wx::Validator#set_window} method on the {Wx::TextValidator} object.
51
53
  # @param window [Wx::Window]
@@ -8,92 +8,17 @@ module Wx
8
8
 
9
9
  # The {Wx::Variant} class represents a container for any type.
10
10
  # A variant's value can be changed at run time, possibly to a different type of value.
11
- # As of wxWidgets 2.9.1, {Wx::GRID::GridCellAttr::AttrKind::Any} has become the preferred variant class. While most controls still use {Wx::Variant} in their interface, you can start using {Wx::GRID::GridCellAttr::AttrKind::Any} in your code because of an implicit conversion layer. See below for more information.
11
+ # In wxRuby Wx::Variant is the only available Wx variant class (unlike in C++) and almost exclusively for
12
+ # use in combination with the property grid classes (see the {Wx::PG} module).
12
13
  #
13
- # As standard, {Wx::Variant} can store values of type bool, {Wx::Char}, double, long, string, string list, time, date, void pointer, list of strings, and list of variants. However, an application can extend {Wx::Variant}'s capabilities by deriving from the class {Wx::VariantData} and using the {Wx::VariantData} form of the {Wx::Variant} constructor or assignment operator to assign this data to a variant. Actual values for user-defined types will need to be accessed via the {Wx::VariantData} object, unlike the case for basic data types where convenience functions such as {Wx::Variant#get_long} can be used.
14
- # Under Microsoft Windows, three additional {Wx::VariantData}-derived classes {Wx::VariantDataCurrency}, {Wx::VariantDataErrorCode} and {Wx::VariantDataSafeArray} are available for interoperation with OLE VARIANT when using {Wx::AutomationObject}.
15
- # Pointers to any {Wx::Object} derived class can also easily be stored in a {Wx::Variant}. {Wx::Variant} will then use wxWidgets' built-in RTTI system to set the type name (returned by {Wx::Variant#get_type}) and to perform type-safety checks at runtime.
16
- # This class is useful for reducing the programming for certain tasks, such as an editor for different data types, or a remote procedure call protocol.
17
- # An optional name member is associated with a {Wx::Variant}. This might be used, for example, in CORBA or OLE automation classes, where named parameters are required.
18
- # Note that as of wxWidgets 2.7.1, {Wx::Variant} is reference counted. Additionally, the convenience macros DECLARE_VARIANT_OBJECT() and IMPLEMENT_VARIANT_OBJECT() were added so that adding (limited) support for conversion to and from {Wx::Variant} can be very easily implemented without modifying either {Wx::Variant} or the class to be stored by {Wx::Variant}. Since assignment operators cannot be declared outside the class, the shift left operators are used like this:
14
+ # By default Wx::Variant can store values of type bool, {Integer}, {Float}, {String}, {Time} (or {Date} / {DateTime}), {Array} of {String},
15
+ # {Array} of {Wx::Variant}, {Wx::Font}, {Wx::Colour} and {Wx::ColourPropertyValue}.
16
+ # In addition Wx::Variant can store any Ruby {Object}.
19
17
  #
20
- # ```
21
- # // in the header file
22
- # DECLARE_VARIANT_OBJECT(MyClass)
23
- #
24
- # // in the implementation file
25
- # IMPLEMENT_VARIANT_OBJECT(MyClass)
26
- #
27
- # // in the user code
28
- # wxVariant variant;
29
- # MyClass value;
30
- # variant << value;
31
- #
32
- # // or
33
- # value << variant;
34
- # ```
35
- #
36
- # For this to work, MyClass must derive from {Wx::Object}, implement the wxWidgets RTTI system and support the assignment operator and equality operator for itself. Ideally, it should also be reference counted to make copying operations cheap and fast. This can be most easily implemented using the reference counting support offered by {Wx::Object} itself. By default, wxWidgets already implements the shift operator conversion for a few of its drawing related classes:
37
- #
38
- # ```
39
- # IMPLEMENT_VARIANT_OBJECT(wxColour)
40
- # IMPLEMENT_VARIANT_OBJECT(wxImage)
41
- # IMPLEMENT_VARIANT_OBJECT(wxIcon)
42
- # IMPLEMENT_VARIANT_OBJECT(wxBitmap)
43
- # ```
44
- #
45
- # Note that as of wxWidgets 2.9.0, {Wx::VariantData} no longer inherits from {Wx::Object} and {Wx::Variant} no longer uses the type-unsafe {Wx::List} class for list operations but the type-safe {Wx::VariantList} class. Also, {Wx::VariantData} now supports the Wx::VariantData#clone function for implementing the {Wx::Variant#unshare} function. Wx::VariantData#clone is implemented automatically by IMPLEMENT_VARIANT_OBJECT().
46
- # Since {Wx::VariantData} no longer derives from {Wx::Object}, any code that tests the type of the data using {dynamic_cast} will require adjustment. You can use the macro {dynamic_cast_variant_data} with the same arguments as {dynamic_cast}, to use C++ RTTI type information instead of wxWidgets RTTI.
47
- #
48
- # == wxVariant to wxAny Conversion Layer
49
- #
50
- # {Wx::GRID::GridCellAttr::AttrKind::Any} is a more modern, template-based variant class. It is not directly compatible with {Wx::Variant}, but there is a transparent conversion layer.
51
- # Following is an example how to use these conversions with {Wx::PG::PropertyGrid}'s property class {Wx::PG::PGProperty} (which currently uses {Wx::Variants} both internally and in the public API):
52
- #
53
- # ```
54
- # // Get property value as wxAny instead of wxVariant
55
- # wxAny value = property->GetValue();
56
- #
57
- # // Do something with it
58
- # DoSomethingWithString(value.As<wxString>());
59
- #
60
- # // Write back new value to property
61
- # value = "New Value";
62
- # property->SetValue(value);
63
- # ```
64
- #
65
- # Some caveats:
66
- # - In {Wx::GRID::GridCellAttr::AttrKind::Any}, there are no separate types for handling integers of different sizes, so converting {Wx::GRID::GridCellAttr::AttrKind::Any} with 'long long' value will yield {Wx::Variant} of "long" type when the value is small enough to fit in without overflow. Otherwise, variant type "longlong" is used. Also note that {Wx::GRID::GridCellAttr::AttrKind::Any} holding unsigned integer will always be converted to "ulonglong" {Wx::Variant} type.
67
- #
68
- # - Unlike {Wx::Variant}, {Wx::GRID::GridCellAttr::AttrKind::Any} does not store a (rarely needed) name string.
69
- #
70
- # - Because of implicit conversion of {Wx::Variant} to {Wx::GRID::GridCellAttr::AttrKind::Any}, {Wx::GRID::GridCellAttr::AttrKind::Any} cannot usually contain value of type {Wx::Variant}. In other words, any.CheckType<{Wx::Variant}>() can never return true.
71
- #
72
- # Supplied conversion functions will automatically work with all built-in {Wx::Variant} types, and also with all user-specified types generated using IMPLEMENT_VARIANT_OBJECT(). For hand-built {Wx::VariantData} classes, you will need to use supplied macros in a following manner:
73
- #
74
- # ```
75
- # // Declare wxVariantData for data type Foo
76
- # class wxVariantDataFoo: public wxVariantData
77
- # {
78
- # public:
79
- # // interface
80
- # // ...
81
- #
82
- # DECLARE_WXANY_CONVERSION()
83
- # protected:
84
- # // data storage etc
85
- # // ...
86
- # };
87
- #
88
- # IMPLEMENT_TRIVIAL_WXANY_CONVERSION(Foo, wxVariantDataFoo)
89
- # ```
90
- #
91
- # ===
92
- #
93
- # Category: Data Structures
94
- # @see Wx::VariantData
95
- # @see Wx::GRID::GridCellAttr::AttrKind::Any
18
+ # An optional name member is associated with a Wx::Variant.
96
19
  #
20
+ # In wxRuby Wx::Variant also provides the standard conversion methods #to_i, #to_s and #to_f for supported
21
+ # value types. In case of incompatible value types these methods will raise a {TypeError} exception.
97
22
  #
98
23
  #
99
24
  # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
@@ -192,62 +117,62 @@ module Wx
192
117
 
193
118
  # @overload initialize()
194
119
  # Default constructor.
195
- # @return [Variant]
120
+ # @return [Wx::Variant]
196
121
  # @overload initialize(data, name=(''))
197
122
  # Constructs a variant directly with a {Wx::VariantData} object.
198
123
  # {Wx::Variant} will take ownership of the {Wx::VariantData} and will not increase its reference count.
199
124
  # @param data [Object]
200
125
  # @param name [String]
201
- # @return [Variant]
126
+ # @return [Wx::Variant]
202
127
  # @overload initialize(variant)
203
128
  # Constructs a variant from another variant by increasing the reference count.
204
129
  # @param variant [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
205
- # @return [Variant]
130
+ # @return [Wx::Variant]
206
131
  # @overload initialize(value, name=(''))
207
132
  # Constructs a variant from a string.
208
133
  # @param value [String]
209
134
  # @param name [String]
210
- # @return [Variant]
135
+ # @return [Wx::Variant]
211
136
  # @overload initialize(value, name=(''))
212
137
  # Constructs a variant from a long.
213
138
  # @param value [Integer]
214
139
  # @param name [String]
215
- # @return [Variant]
140
+ # @return [Wx::Variant]
216
141
  # @overload initialize(value, name=(''))
217
142
  # Constructs a variant from a bool.
218
143
  # @param value [true,false]
219
144
  # @param name [String]
220
- # @return [Variant]
145
+ # @return [Wx::Variant]
221
146
  # @overload initialize(value, name=(''))
222
147
  # Constructs a variant from a double.
223
148
  # @param value [Float]
224
149
  # @param name [String]
225
- # @return [Variant]
150
+ # @return [Wx::Variant]
226
151
  # @overload initialize(value, name=(''))
227
152
  # Constructs a variant from a {Wx::LongLong}.
228
153
  # @param value [Integer]
229
154
  # @param name [String]
230
- # @return [Variant]
155
+ # @return [Wx::Variant]
231
156
  # @overload initialize(value, name=(''))
232
157
  # Constructs a variant from a {Wx::ULongLong}.
233
158
  # @param value [Integer]
234
159
  # @param name [String]
235
- # @return [Variant]
160
+ # @return [Wx::Variant]
236
161
  # @overload initialize(value, name=(''))
237
162
  # Constructs a variant from a list of variants.
238
163
  # @param value [Array<Wx::Variant>]
239
164
  # @param name [String]
240
- # @return [Variant]
165
+ # @return [Wx::Variant]
241
166
  # @overload initialize(val, name=(''))
242
167
  # Constructs a variant from a {Wx::DateTime}.
243
168
  # @param val [Time,Date,DateTime]
244
169
  # @param name [String]
245
- # @return [Variant]
170
+ # @return [Wx::Variant]
246
171
  # @overload initialize(val, name=(''))
247
172
  # Constructs a variant from a {Wx::ArrayString}.
248
173
  # @param val [Array<String>]
249
174
  # @param name [String]
250
- # @return [Variant]
175
+ # @return [Wx::Variant]
251
176
  def initialize(*args) end
252
177
 
253
178
  # Returns the string array value.
@@ -303,9 +228,21 @@ module Wx
303
228
 
304
229
  # Returns the value type as a string.
305
230
  # The built-in types are:
306
- # - "bool"- "char"- "datetime"- "double"- "list"- "long"- "longlong"- "string"- "ulonglong"- "arrstring"- "void*"
307
231
  #
308
- # If the variant is null, the value type returned is the string "null" (not the empty string).
232
+ # - "bool"
233
+ # - "char"
234
+ # - "datetime"
235
+ # - "double"
236
+ # - "list"
237
+ # - "long"
238
+ # - "longlong"
239
+ # - "string"
240
+ # - "ulonglong"
241
+ # - "arrstring"
242
+ #
243
+ # If the variant is null, the value type returned is the string "null" (not the empty string).
244
+ #
245
+ # If the variant contains an arbitrary Ruby {Object}, the value type returned is the result of `variant.get_object.class.name`.
309
246
  # @return [String]
310
247
  def get_type; end
311
248
  alias_method :type, :get_type