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
@@ -168,7 +168,7 @@ module Wx
168
168
 
169
169
  # The constructor.
170
170
  # Note that {Wx::Sizer} is an abstract base class and may not be instantiated.
171
- # @return [Sizer]
171
+ # @return [Wx::Sizer]
172
172
  def initialize; end
173
173
 
174
174
  # @overload add(window, flags)
@@ -222,8 +222,8 @@ module Wx
222
222
 
223
223
  # This base function adds non-stretchable space to both the horizontal and vertical orientation of the sizer.
224
224
  # More readable way of calling:
225
- # ```
226
- # wxSizer::Add(size, size, 0).
225
+ # ```ruby
226
+ # Wx::Sizer::add(size, size, 0)
227
227
  # ```
228
228
  # @see Wx::BoxSizer#add_spacer
229
229
  # @param size [Integer]
@@ -232,8 +232,8 @@ module Wx
232
232
 
233
233
  # Adds stretchable space to the sizer.
234
234
  # More readable way of calling:
235
- # ```
236
- # wxSizer::Add(0, 0, prop).
235
+ # ```ruby
236
+ # Wx::Sizer::add(0, 0, prop)
237
237
  # ```
238
238
  # @param prop [Integer]
239
239
  # @return [Wx::SizerItem]
@@ -625,19 +625,20 @@ module Wx
625
625
  # This method first calls {Wx::Sizer#fit} and then {Wx::TopLevelWindow#set_size_hints} on the window passed to it.
626
626
  # This function is only when window is actually a {Wx::TopLevelWindow} such as a {Wx::Frame} or a {Wx::Dialog}, since SetSizeHints only has any effect in these classes. It does nothing in normal windows or controls.
627
627
  # Note that window does not need to be the window using this sizer and it is, in fact, common to call this function on the sizer associated with the panel covering the client area of a frame passing it the frame pointer, as this has the desired effect of adjusting the frame size to the size fitting the panel, e.g.:
628
- # ```
629
- # MyFrame::MyFrame(...) : wxFrame(...)
630
- # {
631
- # wxPanel* panel = new wxPanel(this);
632
- # wxSizer* sizer = new wxBoxSizer(wxVERTICAL);
633
- # sizer->Add(...);
634
- # sizer->Add(...);
635
- # panel->SetSizer(sizer);
628
+ # ```ruby
629
+ # class MyFrame < Wx::Frame
630
+ # def initialize(...)
631
+ # super
632
+ # panel = Wx::Panel.new(self)
633
+ # sizer = Wx::BoxSizer.new(Wx::VERTICAL)
634
+ # sizer.add(...)
635
+ # sizer.add(...)
636
+ # panel.set_sizer(sizer)
636
637
  #
637
- # // Use the panel sizer to set the initial and minimal size of the
638
- # // frame to fit its contents.
639
- # sizer->SetSizeHints(this);
640
- # }
638
+ # # Use the panel sizer to set the initial and minimal size of the
639
+ # # frame to fit its contents.
640
+ # sizer.set_size_hints(this)
641
+ # end
641
642
  # ```
642
643
  #
643
644
  # This function is also used by {Wx::Window#set_sizer_and_fit} which is commonly invoked in the constructor of {Wx::Dialog}-derived classes, which don't need to use an intermediate panel, see the example in wxBoxSizer overview.
@@ -689,24 +690,24 @@ module Wx
689
690
  # Container for sizer items flags providing readable names for them.
690
691
  # Normally, when you add an item to a sizer via {Wx::Sizer#add}, you have to specify a lot of flags and parameters which can be unwieldy. This is where {Wx::SizerFlags} comes in: it allows you to specify all parameters using the named methods instead. For example, instead of
691
692
  #
692
- # ```
693
- # sizer->Add(ctrl, 0, wxEXPAND | wxALL, 10);
693
+ # ```ruby
694
+ # sizer.add(ctrl, 0, Wx::EXPAND | Wx::ALL, 10)
694
695
  # ```
695
696
  #
696
697
  # you can now write
697
698
  #
698
- # ```
699
- # sizer->Add(ctrl, wxSizerFlags().Expand().Border(wxALL, 10));
699
+ # ```ruby
700
+ # sizer.add(ctrl, Wx::SizerFlags.new.expand.border(Wx::ALL, 10))
700
701
  # ```
701
702
  #
702
703
  # This is more readable and also allows you to create {Wx::SizerFlags} objects which can be reused for several sizer items.
703
704
  #
704
- # ```
705
- # wxSizerFlags flagsExpand(1);
706
- # flagsExpand.Expand().Border(wxALL, 10);
705
+ # ```ruby
706
+ # flagsExpand = Wx::SizerFlags.new(1)
707
+ # flagsExpand.expand.border(Wx::ALL, 10)
707
708
  #
708
- # sizer->Add(ctrl1, flagsExpand);
709
- # sizer->Add(ctrl2, flagsExpand);
709
+ # sizer.add(ctrl1, flagsExpand)
710
+ # sizer.add(ctrl2, flagsExpand)
710
711
  # ```
711
712
  #
712
713
  # Note that by specification, all methods of {Wx::SizerFlags} return the {Wx::SizerFlags} object itself to allowing chaining multiple methods calls like in the examples above.
@@ -722,7 +723,7 @@ module Wx
722
723
 
723
724
  # Creates the {Wx::Sizer} with the proportion specified by proportion.
724
725
  # @param proportion [Integer]
725
- # @return [SizerFlags]
726
+ # @return [Wx::SizerFlags]
726
727
  def initialize(proportion=0) end
727
728
 
728
729
  # Sets the alignment of this {Wx::SizerFlags} to align.
@@ -841,7 +842,7 @@ module Wx
841
842
  def self.disable_consistency_checks; end
842
843
 
843
844
  # Returns the border used by default in {Wx::SizerFlags#border} method.
844
- # This value is scaled appropriately for the current DPI on the systems where physical pixel values are used for the control positions and sizes, i.e. not with {Wx::GTK} or {Wx::OSX}.
845
+ # This value is scaled appropriately for the current DPI on the systems where physical pixel values are used for the control positions and sizes, i.e. not with wxGTK or wxOSX.
845
846
  # @see Wx::SizerFlags.get_default_border_fractional
846
847
  # @return [Integer]
847
848
  def self.get_default_border; end
@@ -55,19 +55,31 @@ module Wx
55
55
  # === Styles
56
56
  #
57
57
  # This class supports the following styles:
58
- #
58
+ #
59
59
  # - {Wx::SL_HORIZONTAL}: Displays the slider horizontally (this is the default).
60
+ #
60
61
  # - {Wx::SL_VERTICAL}: Displays the slider vertically.
62
+ #
61
63
  # - {Wx::SL_AUTOTICKS}: Displays tick marks (Windows, GTK+ 2.16 and later).
64
+ #
62
65
  # - {Wx::SL_MIN_MAX_LABELS}: Displays minimum, maximum labels (new since wxWidgets 2.9.1).
66
+ #
63
67
  # - {Wx::SL_VALUE_LABEL}: Displays value label (new since wxWidgets 2.9.1).
68
+ #
64
69
  # - {Wx::SL_LABELS}: Displays minimum, maximum and value labels (same as {Wx::SL_VALUE_LABEL} and {Wx::SL_MIN_MAX_LABELS} together).
70
+ #
65
71
  # - {Wx::SL_LEFT}: Displays ticks on the left and forces the slider to be vertical (Windows and GTK+ 3 only).
72
+ #
66
73
  # - {Wx::SL_RIGHT}: Displays ticks on the right and forces the slider to be vertical.
74
+ #
67
75
  # - {Wx::SL_TOP}: Displays ticks on the top (Windows and GTK+ 3 only).
76
+ #
68
77
  # - {Wx::SL_BOTTOM}: Displays ticks on the bottom (this is the default).
78
+ #
69
79
  # - {Wx::SL_BOTH}: Displays ticks on both sides of the slider. Windows only.
80
+ #
70
81
  # - {Wx::SL_SELRANGE}: Displays a highlighted selection range. Windows only.
82
+ #
71
83
  # - {Wx::SL_INVERSE}: Inverses the minimum and maximum endpoints on the slider. Not compatible with {Wx::SL_SELRANGE}.
72
84
  #
73
85
  # Notice that {Wx::SL_LEFT}, {Wx::SL_TOP}, {Wx::SL_RIGHT} and {Wx::SL_BOTTOM} specify the position of the slider ticks and that the slider labels, if any, are positioned on the opposite side. So, to have a label on the left side of a vertical slider, <b>{Wx::SL_RIGHT}</b> must be used (or none of these styles at all should be specified as left and top are default positions for the vertical and horizontal sliders respectively).
@@ -75,26 +87,47 @@ module Wx
75
87
  #
76
88
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ScrollEvent} events.
77
89
  # Event handler methods for events emitted by this class: except for this, the macros behave exactly the same.
90
+ #
78
91
  # - {Wx::EvtHandler#evt_scroll}(meth = nil, &block): Process all scroll events.
92
+ #
79
93
  # - {Wx::EvtHandler#evt_scroll_top}(meth = nil, &block): Process {Wx::EVT_SCROLL_TOP} scroll-to-top events (minimum position).
94
+ #
80
95
  # - {Wx::EvtHandler#evt_scroll_bottom}(meth = nil, &block): Process {Wx::EVT_SCROLL_BOTTOM} scroll-to-bottom events (maximum position).
96
+ #
81
97
  # - {Wx::EvtHandler#evt_scroll_lineup}(meth = nil, &block): Process {Wx::EVT_SCROLL_LINEUP} line up events.
98
+ #
82
99
  # - {Wx::EvtHandler#evt_scroll_linedown}(meth = nil, &block): Process {Wx::EVT_SCROLL_LINEDOWN} line down events.
100
+ #
83
101
  # - {Wx::EvtHandler#evt_scroll_pageup}(meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEUP} page up events.
102
+ #
84
103
  # - {Wx::EvtHandler#evt_scroll_pagedown}(meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEDOWN} page down events.
104
+ #
85
105
  # - {Wx::EvtHandler#evt_scroll_thumbtrack}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
106
+ #
86
107
  # - {Wx::EvtHandler#evt_scroll_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBRELEASE} thumb release events.
108
+ #
87
109
  # - {Wx::EvtHandler#evt_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
110
+ #
88
111
  # - {Wx::EvtHandler#evt_command_scroll}(id, meth = nil, &block): Process all scroll events.
112
+ #
89
113
  # - {Wx::EvtHandler#evt_command_scroll_top}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_TOP} scroll-to-top events (minimum position).
114
+ #
90
115
  # - {Wx::EvtHandler#evt_command_scroll_bottom}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_BOTTOM} scroll-to-bottom events (maximum position).
116
+ #
91
117
  # - {Wx::EvtHandler#evt_command_scroll_lineup}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_LINEUP} line up events.
118
+ #
92
119
  # - {Wx::EvtHandler#evt_command_scroll_linedown}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_LINEDOWN} line down events.
120
+ #
93
121
  # - {Wx::EvtHandler#evt_command_scroll_pageup}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEUP} page up events.
122
+ #
94
123
  # - {Wx::EvtHandler#evt_command_scroll_pagedown}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEDOWN} page down events.
124
+ #
95
125
  # - {Wx::EvtHandler#evt_command_scroll_thumbtrack}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
126
+ #
96
127
  # - {Wx::EvtHandler#evt_command_scroll_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBRELEASE} thumb release events.
128
+ #
97
129
  # - {Wx::EvtHandler#evt_command_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
130
+ #
98
131
  # - {Wx::EvtHandler#evt_slider}(id, meth = nil, &block): Process {Wx::EVT_SLIDER} which is generated after any change of {Wx::Slider} position in addition to one of the events above. Notice that the handler of this event receives a {Wx::CommandEvent} as argument and not {Wx::ScrollEvent}, as all the other handlers.
99
132
  #
100
133
  # == The difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED
@@ -103,9 +136,9 @@ module Wx
103
136
  # The EVT_SCROLL_CHANGED event also occurs when using the keyboard to change the thumb position, and when clicking next to the thumb (In all these cases the EVT_SCROLL_THUMBRELEASE event does not happen). In short, the EVT_SCROLL_CHANGED event is triggered when scrolling/ moving has finished independently of the way it had started. Please see the Widgets Sample ("Slider" page) to see the difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED in action.
104
137
  # ===
105
138
  #
106
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
107
- # </td><td> {Wx::GTK} Appearance
108
- # </td><td> {Wx::OSX} Appearance
139
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
140
+ # </td><td> wxGTK Appearance
141
+ # </td><td> wxOSX Appearance
109
142
  # </td></tr></table></div>
110
143
  # @see Events and Event Handling
111
144
  # @see Wx::ScrollBar
@@ -115,7 +148,7 @@ module Wx
115
148
 
116
149
  # @overload initialize()
117
150
  # Default constructor.
118
- # @return [Slider]
151
+ # @return [Wx::Slider]
119
152
  # @overload initialize(parent, id, value, minValue, maxValue, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SliderNameStr)
120
153
  # Constructor, creating and showing a slider.
121
154
  #
@@ -131,16 +164,16 @@ module Wx
131
164
  # @param style [Integer] Window style. See {Wx::Slider}.
132
165
  # @param validator [Wx::Validator] Window validator.
133
166
  # @param name [String] Window name.
134
- # @return [Slider]
167
+ # @return [Wx::Slider]
135
168
  def initialize(*args) end
136
169
 
137
170
  # Clears the selection, for a slider with the <b>{Wx::SL_SELRANGE}</b> style.
138
- # Availability: only available for the {Wx::MSW} port. {Wx::msw}
171
+ # Availability: only available for the wxMSW port. {Wx::msw}
139
172
  # @return [void]
140
173
  def clear_sel; end
141
174
 
142
175
  # Clears the ticks.
143
- # Availability: only available for the {Wx::MSW}, {Wx::GTK} ports. {Wx::msw},{Wx::gtk}
176
+ # Availability: only available for the wxMSW, wxGTK ports. {Wx::msw},{Wx::gtk}
144
177
  # @return [void]
145
178
  def clear_ticks; end
146
179
 
@@ -190,7 +223,7 @@ module Wx
190
223
  alias_method :page_size, :get_page_size
191
224
 
192
225
  # Returns the selection end point.
193
- # Availability: only available for the {Wx::MSW} port. {Wx::msw}
226
+ # Availability: only available for the wxMSW port. {Wx::msw}
194
227
  # @see Wx::Slider#get_sel_start
195
228
  # @see Wx::Slider#set_selection
196
229
  # @return [Integer]
@@ -198,7 +231,7 @@ module Wx
198
231
  alias_method :sel_end, :get_sel_end
199
232
 
200
233
  # Returns the selection start point.
201
- # Availability: only available for the {Wx::MSW} port. {Wx::msw}
234
+ # Availability: only available for the wxMSW port. {Wx::msw}
202
235
  # @see Wx::Slider#get_sel_end
203
236
  # @see Wx::Slider#set_selection
204
237
  # @return [Integer]
@@ -206,14 +239,14 @@ module Wx
206
239
  alias_method :sel_start, :get_sel_start
207
240
 
208
241
  # Returns the thumb length.
209
- # Availability: only available for the {Wx::MSW} port. {Wx::msw}
242
+ # Availability: only available for the wxMSW port. {Wx::msw}
210
243
  # @see Wx::Slider#set_thumb_length
211
244
  # @return [Integer]
212
245
  def get_thumb_length; end
213
246
  alias_method :thumb_length, :get_thumb_length
214
247
 
215
248
  # Returns the tick frequency.
216
- # Availability: only available for the {Wx::MSW}, {Wx::GTK} ports. {Wx::msw},{Wx::gtk}
249
+ # Availability: only available for the wxMSW, wxGTK ports. {Wx::msw},{Wx::gtk}
217
250
  # @see Wx::Slider#set_tick_freq
218
251
  # @return [Integer]
219
252
  def get_tick_freq; end
@@ -272,7 +305,7 @@ module Wx
272
305
  def set_range(minValue, maxValue) end
273
306
 
274
307
  # Sets the selection.
275
- # Availability: only available for the {Wx::MSW} port. {Wx::msw}
308
+ # Availability: only available for the wxMSW port. {Wx::msw}
276
309
  # @see Wx::Slider#get_sel_start
277
310
  # @see Wx::Slider#get_sel_end
278
311
  # @param startPos [Integer] The selection start position.
@@ -281,7 +314,7 @@ module Wx
281
314
  def set_selection(startPos, endPos) end
282
315
 
283
316
  # Sets the slider thumb length.
284
- # Availability: only available for the {Wx::MSW} port. {Wx::msw}
317
+ # Availability: only available for the wxMSW port. {Wx::msw}
285
318
  # @see Wx::Slider#get_thumb_length
286
319
  # @param len [Integer] The thumb length.
287
320
  # @return [void]
@@ -289,7 +322,7 @@ module Wx
289
322
  alias_method :thumb_length=, :set_thumb_length
290
323
 
291
324
  # Sets a tick position.
292
- # Availability: only available for the {Wx::MSW}, {Wx::GTK} ports. {Wx::msw},{Wx::gtk}
325
+ # Availability: only available for the wxMSW, wxGTK ports. {Wx::msw},{Wx::gtk}
293
326
  # @see Wx::Slider#set_tick_freq
294
327
  # @param tickPos [Integer] The tick position.
295
328
  # @return [void]
@@ -297,7 +330,7 @@ module Wx
297
330
  alias_method :tick=, :set_tick
298
331
 
299
332
  # Sets the tick mark frequency and position.
300
- # Availability: only available for the {Wx::MSW}, {Wx::GTK} ports. {Wx::msw},{Wx::gtk}
333
+ # Availability: only available for the wxMSW, wxGTK ports. {Wx::msw},{Wx::gtk}
301
334
  # @see Wx::Slider#get_tick_freq
302
335
  # @param freq [Integer] Frequency. For example, if the frequency is set to two, a tick mark is displayed for every other increment in the slider's range.
303
336
  # @return [void]
@@ -13,26 +13,32 @@ module Wx
13
13
  # === Styles
14
14
  #
15
15
  # This class supports the following styles:
16
- #
17
- # - {Wx::SP_HORIZONTAL}: Specifies a horizontal spin button (note that this style is not supported in {Wx::GTK}).
16
+ #
17
+ # - {Wx::SP_HORIZONTAL}: Specifies a horizontal spin button (note that this style is not supported in wxGTK).
18
+ #
18
19
  # - {Wx::SP_VERTICAL}: Specifies a vertical spin button.
20
+ #
19
21
  # - {Wx::SP_ARROW_KEYS}: The user can use arrow keys to change the value.
22
+ #
20
23
  # - {Wx::SP_WRAP}: The value wraps at the minimum and maximum.
21
24
  #
22
25
  # === Events emitted by this class
23
26
  #
24
27
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::SpinEvent} events.
25
28
  # Event handler methods for events emitted by this class:
29
+ #
26
30
  # - {Wx::EvtHandler#evt_spin}(id, meth = nil, &block): Generated whenever pressing an arrow changed the spin button value.
31
+ #
27
32
  # - {Wx::EvtHandler#evt_spin_up}(id, meth = nil, &block): Generated whenever pressing left/up arrow changed the spin button value.
33
+ #
28
34
  # - {Wx::EvtHandler#evt_spin_down}(id, meth = nil, &block): Generated whenever pressing right/down arrow changed the spin button value.
29
35
  #
30
36
  # Note that if you handle both SPIN and UP or DOWN events, you will be notified about each of them twice: first the UP/DOWN event will be received and then, if it wasn't vetoed, the SPIN event will be sent.
31
37
  # ===
32
38
  #
33
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
34
- # </td><td> {Wx::GTK} Appearance
35
- # </td><td> {Wx::OSX} Appearance
39
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
40
+ # </td><td> wxGTK Appearance
41
+ # </td><td> wxOSX Appearance
36
42
  # </td></tr></table></div>
37
43
  # @see Wx::SpinCtrl
38
44
  #
@@ -41,7 +47,7 @@ module Wx
41
47
 
42
48
  # @overload initialize()
43
49
  # Default constructor.
44
- # @return [SpinButton]
50
+ # @return [Wx::SpinButton]
45
51
  # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("spinButton"))
46
52
  # Constructor, creating and showing a spin button.
47
53
  #
@@ -52,7 +58,7 @@ module Wx
52
58
  # @param size [Array(Integer, Integer), Wx::Size] Window size. If {Wx::DEFAULT_SIZE} is specified then a default size is chosen.
53
59
  # @param style [Integer] Window style. See {Wx::SpinButton} class description.
54
60
  # @param name [String] Window name.
55
- # @return [SpinButton]
61
+ # @return [Wx::SpinButton]
56
62
  def initialize(*args) end
57
63
 
58
64
  # Scrollbar creation function called by the spin button constructor.
@@ -96,7 +102,7 @@ module Wx
96
102
  # Sets the increment for the control.
97
103
  # The increment is the number by which the value changes when the up or down arrow is used.
98
104
  # The default is 1.
99
- # This function is currently implemented only in {Wx::MSW} and does nothing under the other platforms.
105
+ # This function is currently implemented only in wxMSW and does nothing under the other platforms.
100
106
  # @see Wx::SpinCtrl#set_increment
101
107
  # @param value [Integer]
102
108
  # @return [void]
@@ -104,7 +110,7 @@ module Wx
104
110
  alias_method :increment=, :set_increment
105
111
 
106
112
  # Sets the range of the spin button.
107
- # In portable code, min should be less than or equal to max. In {Wx::MSW} it is possible to specify minimum greater than maximum and the native control supports the same range as if they were reversed, but swaps the meaning of up and down arrows, however this dubious feature is not supported on other platforms.
113
+ # In portable code, min should be less than or equal to max. In wxMSW it is possible to specify minimum greater than maximum and the native control supports the same range as if they were reversed, but swaps the meaning of up and down arrows, however this dubious feature is not supported on other platforms.
108
114
  # @see Wx::SpinButton#get_min
109
115
  # @see Wx::SpinButton#get_max
110
116
  # @param min [Integer] The minimum value for the spin button.
@@ -18,26 +18,32 @@ module Wx
18
18
  # === Styles
19
19
  #
20
20
  # This class supports the following styles:
21
- #
21
+ #
22
22
  # - {Wx::SP_ARROW_KEYS}: The user can use arrow keys to change the value.
23
+ #
23
24
  # - {Wx::SP_WRAP}: The value wraps at the minimum and maximum.
25
+ #
24
26
  # - {Wx::TE_PROCESS_ENTER}: Indicates that the control should generate {Wx::EVT_TEXT_ENTER} events. Using this style will prevent the user from using the Enter key for dialog navigation (e.g. activating the default button in the dialog) under MSW.
27
+ #
25
28
  # - {Wx::Alignment::ALIGN_LEFT}: Same as {Wx::TE_LEFT} for {Wx::TextCtrl}: the text is left aligned (this is the default).
29
+ #
26
30
  # - {Wx::Alignment::ALIGN_CENTRE_HORIZONTAL}: Same as {Wx::TE_CENTRE} for {Wx::TextCtrl}: the text is centered.
31
+ #
27
32
  # - {Wx::Alignment::ALIGN_RIGHT}: Same as {Wx::TE_RIGHT} for {Wx::TextCtrl}: the text is right aligned.
28
33
  #
29
34
  # === Events emitted by this class
30
35
  #
31
36
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::SpinEvent} events.
32
37
  # Event handler methods for events emitted by this class:
38
+ #
33
39
  # - {Wx::EvtHandler#evt_spinctrl}(id, meth = nil, &block): Process a {Wx::EVT_SPINCTRL} event, which is generated whenever the numeric value of the spin control is updated.
34
40
  #
35
41
  # You may also use the {Wx::SpinButton} event macros, however the corresponding events will not be generated under all platforms. Finally, if the user modifies the text in the edit part of the spin control directly, the EVT_TEXT is generated, like for the {Wx::TextCtrl}. When the use enters text into the text area, the text is not validated until the control loses focus (e.g. by using the TAB key). The value is then adjusted to the range and a {Wx::SpinEvent} sent then if the value is different from the last value sent.
36
42
  # ===
37
43
  #
38
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
39
- # </td><td> {Wx::GTK} Appearance
40
- # </td><td> {Wx::OSX} Appearance
44
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
45
+ # </td><td> wxGTK Appearance
46
+ # </td><td> wxOSX Appearance
41
47
  # </td></tr></table></div>
42
48
  # @see Wx::SpinButton
43
49
  # @see Wx::SpinCtrlDouble
@@ -48,7 +54,7 @@ module Wx
48
54
 
49
55
  # @overload initialize()
50
56
  # Default constructor.
51
- # @return [SpinCtrl]
57
+ # @return [Wx::SpinCtrl]
52
58
  # @overload initialize(parent, id=Wx::StandardID::ID_ANY, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_ARROW_KEYS, min=0, max=100, initial=0, name=("Wx::SpinCtrl"))
53
59
  # Constructor, creating and showing a spin control.
54
60
  # If value is non-empty, it will be shown in the text entry part of the control and if it has numeric value, the initial numeric value of the control, as returned by {Wx::SpinCtrl#get_value} will also be determined by it instead of by initial. Hence, it only makes sense to specify initial if value is an empty string or is not convertible to a number, otherwise initial is simply ignored and the number specified by value is used.
@@ -63,7 +69,7 @@ module Wx
63
69
  # @param max [Integer] Maximal value.
64
70
  # @param initial [Integer] Initial value.
65
71
  # @param name [String] Window name.
66
- # @return [SpinCtrl]
72
+ # @return [Wx::SpinCtrl]
67
73
  def initialize(*args) end
68
74
 
69
75
  # Creation function called by the spin control constructor.
@@ -11,8 +11,11 @@ module Wx
11
11
  #
12
12
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::SpinEvent} events.
13
13
  # Event handler methods:
14
+ #
14
15
  # - {Wx::EvtHandler#evt_spin}(id, meth = nil, &block): Generated whenever an arrow is pressed.
16
+ #
15
17
  # - {Wx::EvtHandler#evt_spin_up}(id, meth = nil, &block): Generated when left/up arrow is pressed.
18
+ #
16
19
  # - {Wx::EvtHandler#evt_spin_down}(id, meth = nil, &block): Generated when right/down arrow is pressed.
17
20
  #
18
21
  # Note that if you handle both SPIN and UP or DOWN events, you will be notified about each of them twice: first the UP/DOWN event will be received and then, if it wasn't vetoed, the SPIN event will be sent.
@@ -25,9 +28,9 @@ module Wx
25
28
  class SpinEvent < NotifyEvent
26
29
 
27
30
  # The constructor is not normally used by the user code.
28
- # @param commandType [Integer]
31
+ # @param commandType [Wx::AUI::AuiMDIChildFrame::EventType]
29
32
  # @param id [Integer]
30
- # @return [SpinEvent]
33
+ # @return [Wx::SpinEvent]
31
34
  def initialize(commandType=Wx::EVT_NULL, id=0) end
32
35
 
33
36
  # Retrieve the current spin button or control value.
@@ -25,16 +25,15 @@ module Wx
25
25
  # Show it in application initialisation, and then either explicitly destroy it or let it time-out.
26
26
  # Example usage:
27
27
  #
28
- # ```
29
- # wxBitmap bitmap;
30
- # if (bitmap.LoadFile("splash16.png", wxBITMAP_TYPE_PNG))
31
- # {
32
- # wxSplashScreen* splash = new wxSplashScreen(bitmap,
33
- # wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
34
- # 6000, NULL, -1, wxDefaultPosition, wxDefaultSize,
35
- # wxBORDER_SIMPLE|wxSTAY_ON_TOP);
36
- # }
37
- # wxYield();
28
+ # ```ruby
29
+ # bitmap Wx::Bitmap.new
30
+ # if bitmap.load_file("splash16.png", Wx::BITMAP_TYPE_PNG))
31
+ # splash = Wx::SplashScreen.new(bitmap,
32
+ # Wx::SPLASH_CENTRE_ON_SCREEN|Wx::SPLASH_TIMEOUT,
33
+ # 6000, nil, -1, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE,
34
+ # Wx::BORDER_SIMPLE|Wx::STAY_ON_TOP)
35
+ # end
36
+ # Wx.get_app.yield
38
37
  # ```
39
38
  #
40
39
  # ===
@@ -45,7 +44,12 @@ module Wx
45
44
 
46
45
  # Construct the splash screen passing a bitmap, a style, a timeout, a window id, optional position and size, and a window style.
47
46
  # splashStyle is a bitlist of some of the following:
48
- # - {Wx::SPLASH_CENTRE_ON_PARENT}- {Wx::SPLASH_CENTRE_ON_SCREEN}- {Wx::SPLASH_NO_CENTRE}- {Wx::SPLASH_TIMEOUT}- {Wx::SPLASH_NO_TIMEOUT}
47
+ #
48
+ # - {Wx::SPLASH_CENTRE_ON_PARENT}
49
+ # - {Wx::SPLASH_CENTRE_ON_SCREEN}
50
+ # - {Wx::SPLASH_NO_CENTRE}
51
+ # - {Wx::SPLASH_TIMEOUT}
52
+ # - {Wx::SPLASH_NO_TIMEOUT}
49
53
  #
50
54
  # milliseconds is the timeout in milliseconds.
51
55
  # @param bitmap [Wx::Bitmap]
@@ -56,7 +60,7 @@ module Wx
56
60
  # @param pos [Array(Integer, Integer), Wx::Point]
57
61
  # @param size [Array(Integer, Integer), Wx::Size]
58
62
  # @param style [Integer]
59
- # @return [SplashScreen]
63
+ # @return [Wx::SplashScreen]
60
64
  def initialize(bitmap, splashStyle, milliseconds, parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::Border::BORDER_SIMPLE|Wx::FRAME_NO_TASKBAR|Wx::STAY_ON_TOP)) end
61
65
 
62
66
  # Returns the splash style (see {splash_screen} for details).
@@ -12,9 +12,13 @@ module Wx
12
12
  #
13
13
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::SplitterEvent} events.
14
14
  # Event handler methods:
15
+ #
15
16
  # - {Wx::EvtHandler#evt_splitter_sash_pos_changing}(id, meth = nil, &block): The sash position is in the process of being changed. May be used to modify the position of the tracking bar to properly reflect the position that would be set if the drag were to be completed at this point. Processes a {Wx::EVT_SPLITTER_SASH_POS_CHANGING} event.
17
+ #
16
18
  # - {Wx::EvtHandler#evt_splitter_sash_pos_changed}(id, meth = nil, &block): The sash position was changed. May be used to modify the sash position before it is set, or to prevent the change from taking place. Processes a {Wx::EVT_SPLITTER_SASH_POS_CHANGED} event.
19
+ #
17
20
  # - {Wx::EvtHandler#evt_splitter_unsplit}(id, meth = nil, &block): The splitter has been just unsplit. Processes a {Wx::EVT_SPLITTER_UNSPLIT} event.
21
+ #
18
22
  # - {Wx::EvtHandler#evt_splitter_dclick}(id, meth = nil, &block): The sash was double clicked. The default behaviour is to unsplit the window when this happens (unless the minimum pane size has been set to a value greater than zero). Processes a {Wx::EVT_SPLITTER_DOUBLECLICKED} event.
19
23
  #
20
24
  # ===
@@ -28,9 +32,9 @@ module Wx
28
32
 
29
33
  # Constructor.
30
34
  # Used internally by wxWidgets only.
31
- # @param eventType [Integer]
35
+ # @param eventType [Wx::AUI::AuiMDIChildFrame::EventType]
32
36
  # @param splitter [Wx::SplitterWindow]
33
- # @return [SplitterEvent]
37
+ # @return [Wx::SplitterEvent]
34
38
  def initialize(eventType=Wx::EVT_NULL, splitter=nil) end
35
39
 
36
40
  # Returns the new sash position.
@@ -89,25 +89,38 @@ module Wx
89
89
  # === Styles
90
90
  #
91
91
  # This class supports the following styles:
92
- #
92
+ #
93
93
  # - {Wx::SP_3D}: Draws a 3D effect border and sash.
94
+ #
94
95
  # - {Wx::SP_THIN_SASH}: Draws a thin sash.
96
+ #
95
97
  # - {Wx::SP_3DSASH}: Draws a 3D effect sash (part of default style).
98
+ #
96
99
  # - {Wx::SP_3DBORDER}: Synonym for {Wx::SP_BORDER}.
100
+ #
97
101
  # - {Wx::SP_BORDER}: Draws a standard border.
102
+ #
98
103
  # - {Wx::SP_NOBORDER}: No border (default).
104
+ #
99
105
  # - {Wx::SP_NO_XP_THEME}: Under Windows, switches off the attempt to draw the splitter using Windows theming, so the borders and sash will take on the pre-XP look.
106
+ #
100
107
  # - {Wx::SP_PERMIT_UNSPLIT}: Always allow to unsplit, even with the minimum pane size other than zero.
108
+ #
101
109
  # - {Wx::SP_LIVE_UPDATE}: Don't draw XOR line but resize the child windows immediately.
102
110
  #
103
111
  # === Events emitted by this class
104
112
  #
105
113
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::SplitterEvent} events.
106
114
  # Event handler methods for events emitted by this class:
115
+ #
107
116
  # - {Wx::EvtHandler#evt_splitter_sash_pos_changing}(id, meth = nil, &block): The sash position is in the process of being changed. May be used to modify the position of the tracking bar to properly reflect the position that would be set if the drag were to be completed at this point. Processes a {Wx::EVT_SPLITTER_SASH_POS_CHANGING} event.
117
+ #
108
118
  # - {Wx::EvtHandler#evt_splitter_sash_pos_resize}(id, meth = nil, &block): The sash position is in the process of being updated. May be used to modify the position of the tracking bar to properly reflect the position that would be set if the update were to be completed. This can happen e.g. when the window is resized and the sash is moved according to the gravity setting. This event is sent when the window is resized and allows the application to select the desired new sash position. If it doesn't process the event, the position is determined by the gravity setting. Processes a {Wx::EVT_SPLITTER_SASH_POS_RESIZE} event and is only available in wxWidgets 3.1.6 or newer.
119
+ #
109
120
  # - {Wx::EvtHandler#evt_splitter_sash_pos_changed}(id, meth = nil, &block): The sash position was changed. May be used to modify the sash position before it is set, or to prevent the change from taking place. Processes a {Wx::EVT_SPLITTER_SASH_POS_CHANGED} event.
121
+ #
110
122
  # - {Wx::EvtHandler#evt_splitter_unsplit}(id, meth = nil, &block): The splitter has been just unsplit. Processes a {Wx::EVT_SPLITTER_UNSPLIT} event.
123
+ #
111
124
  # - {Wx::EvtHandler#evt_splitter_dclick}(id, meth = nil, &block): The sash was double clicked. The default behaviour is to unsplit the window when this happens (unless the minimum pane size has been set to a value greater than zero). Processes a {Wx::EVT_SPLITTER_DOUBLECLICKED} event.
112
125
  #
113
126
  # ===
@@ -121,7 +134,7 @@ module Wx
121
134
 
122
135
  # @overload initialize()
123
136
  # Default constructor.
124
- # @return [SplitterWindow]
137
+ # @return [Wx::SplitterWindow]
125
138
  # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("splitterWindow"))
126
139
  # Constructor for creating the window.
127
140
  # After using this constructor, you must create either one or two subwindows with the splitter window as parent, and then call one of {Wx::SplitterWindow#initialize}, {Wx::SplitterWindow#split_vertically} and {Wx::SplitterWindow#split_horizontally} in order to set the pane(s). You can create two windows, with one hidden when not being shown; or you can create and delete the second pane on demand.
@@ -135,7 +148,7 @@ module Wx
135
148
  # @param size [Array(Integer, Integer), Wx::Size] The window size.
136
149
  # @param style [Integer] The window style. See {Wx::SplitterWindow}.
137
150
  # @param name [String] The window name.
138
- # @return [SplitterWindow]
151
+ # @return [Wx::SplitterWindow]
139
152
  def initialize(*args) end
140
153
 
141
154
  # Creation function, for two-step construction.
@@ -267,7 +280,10 @@ module Wx
267
280
 
268
281
  # Sets the sash gravity.
269
282
  # Gravity is real factor which controls position of sash while resizing {Wx::SplitterWindow}. Gravity tells {Wx::SplitterWindow} how much will left/top window grow while resizing. Example values:
270
- # - 0.0: only the bottom/right window is automatically resized- 0.5: both windows grow by equal size- 1.0: only left/top window grows Gravity should be a real value between 0.0 and 1.0. Default value of sash gravity is 0.0. That value is compatible with previous (before gravity was introduced) behaviour of {Wx::SplitterWindow}.
283
+ #
284
+ # - 0.0: only the bottom/right window is automatically resized
285
+ # - 0.5: both windows grow by equal size
286
+ # - 1.0: only left/top window grows Gravity should be a real value between 0.0 and 1.0. Default value of sash gravity is 0.0. That value is compatible with previous (before gravity was introduced) behaviour of {Wx::SplitterWindow}.
271
287
  #
272
288
  # Notice that when sash gravity for a newly created splitter window, it is often necessary to explicitly set the splitter size using {Wx::SplitterWindow#set_size} to ensure that is big enough for its initial sash position. Otherwise, i.e. if the window is created with the default tiny size and only resized to its correct size later, the initial sash position will be affected by the gravity and typically result in sash being at the rightmost position for the gravity of 1. See the example code creating {Wx::SplitterWindow} in the splitter sample for more details.
273
289
  # @see Wx::SplitterWindow#get_sash_gravity
@@ -12,9 +12,9 @@ module Wx
12
12
  # Notice that for the best results, the size of the control should be the same as the size of the image displayed in it, as happens by default if it's not resized explicitly. Otherwise, behaviour depends on the platform: under MSW, the bitmap is drawn centred inside the control, while elsewhere it is drawn at the origin of the control. You can use {Wx::StaticBitmap#set_scale_mode} to control how the image is scaled inside the control.
13
13
  # ===
14
14
  #
15
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
16
- # </td><td> {Wx::GTK} Appearance
17
- # </td><td> {Wx::OSX} Appearance
15
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
16
+ # </td><td> wxGTK Appearance
17
+ # </td><td> wxOSX Appearance
18
18
  # </td></tr></table></div>
19
19
  # @see Wx::Bitmap
20
20
  #
@@ -50,7 +50,7 @@ module Wx
50
50
 
51
51
  # @overload initialize()
52
52
  # Default constructor.
53
- # @return [StaticBitmap]
53
+ # @return [Wx::StaticBitmap]
54
54
  # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBitmapNameStr)
55
55
  # Constructor, creating and showing a static bitmap control.
56
56
  #
@@ -62,7 +62,7 @@ module Wx
62
62
  # @param size [Array(Integer, Integer), Wx::Size] Window size.
63
63
  # @param style [Integer] Window style. See {Wx::StaticBitmap}.
64
64
  # @param name [String] Window name.
65
- # @return [StaticBitmap]
65
+ # @return [Wx::StaticBitmap]
66
66
  def initialize(*args) end
67
67
 
68
68
  # Creation function, for two-step construction.