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
@@ -12,39 +12,51 @@ module Wx
12
12
  # All global settings (such as colours and fonts used) can, of course, be changed. But also, the display style for each day in the month can be set independently using {Wx::CalendarDateAttr} class.
13
13
  # An item without custom attributes is drawn with the default colours and font and without border, but setting custom attributes with {Wx::CalendarCtrl#set_attr} allows modifying its appearance. Just create a custom attribute object and set it for the day you want to be displayed specially (note that the control will take ownership of the pointer, i.e. it will delete it itself). A day may be marked as being a holiday, even if it is not recognized as one by {Wx::DateTime} using the {Wx::CalendarDateAttr#set_holiday} method.
14
14
  # As the attributes are specified for each day, they may change when the month is changed, so you will often want to update them in EVT_CALENDAR_PAGE_CHANGED event handler.
15
- # If neither the {Wx::CAL_SUNDAY_FIRST} or {Wx::CAL_MONDAY_FIRST} style is given, the first day of the week is determined from operating system's settings, if possible. The native {Wx::GTK} calendar chooses the first weekday based on locale, and these styles have no effect on it.
15
+ # If neither the {Wx::CAL_SUNDAY_FIRST} or {Wx::CAL_MONDAY_FIRST} style is given, the first day of the week is determined from operating system's settings, if possible. The native wxGTK calendar chooses the first weekday based on locale, and these styles have no effect on it.
16
16
  # === Styles
17
17
  #
18
18
  # This class supports the following styles:
19
- #
20
- # - {Wx::CAL_SUNDAY_FIRST}: Show Sunday as the first day in the week (not in {Wx::GTK})
21
- # - {Wx::CAL_MONDAY_FIRST}: Show Monday as the first day in the week (not in {Wx::GTK})
19
+ #
20
+ # - {Wx::CAL_SUNDAY_FIRST}: Show Sunday as the first day in the week (not in wxGTK)
21
+ #
22
+ # - {Wx::CAL_MONDAY_FIRST}: Show Monday as the first day in the week (not in wxGTK)
23
+ #
22
24
  # - {Wx::CAL_SHOW_HOLIDAYS}: Highlight holidays in the calendar (only generic)
25
+ #
23
26
  # - {Wx::CAL_NO_YEAR_CHANGE}: Disable the year changing (deprecated, only generic)
27
+ #
24
28
  # - {Wx::CAL_NO_MONTH_CHANGE}: Disable the month (and, implicitly, the year) changing
29
+ #
25
30
  # - {Wx::CAL_SHOW_SURROUNDING_WEEKS}: Show the neighbouring weeks in the previous and next months (only generic, always on for the native controls)
31
+ #
26
32
  # - {Wx::CAL_SEQUENTIAL_MONTH_SELECTION}: Use alternative, more compact, style for the month and year selection controls. (only generic)
33
+ #
27
34
  # - {Wx::CAL_SHOW_WEEK_NUMBERS}: Show week numbers on the left side of the calendar. (not in generic)
28
35
  #
29
36
  # === Events emitted by this class
30
37
  #
31
38
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CalendarEvent} events.
32
39
  # Event handler methods for events emitted by this class:
40
+ #
33
41
  # - {Wx::EvtHandler#evt_calendar}(id, meth = nil, &block): A day was double clicked in the calendar.
42
+ #
34
43
  # - {Wx::EvtHandler#evt_calendar_sel_changed}(id, meth = nil, &block): The selected date changed.
44
+ #
35
45
  # - {Wx::EvtHandler#evt_calendar_page_changed}(id, meth = nil, &block): The selected month (and/or year) changed.
46
+ #
36
47
  # - {Wx::EvtHandler#evt_calendar_weekday_clicked}(id, meth = nil, &block): User clicked on the week day header (only generic).
48
+ #
37
49
  # - {Wx::EvtHandler#evt_calendar_week_clicked}(id, meth = nil, &block): User clicked on the week of the year number (only generic).
38
50
  #
39
51
  # Changing the selected date will trigger an EVT_CALENDAR_DAY, MONTH or YEAR event as well as an EVT_CALENDAR_SEL_CHANGED event.
40
52
  #
41
53
  # ===
42
54
  #
43
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
44
- # </td><td> {Wx::GTK} Appearance
45
- # </td><td> {Wx::OSX} Appearance
55
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
56
+ # </td><td> wxGTK Appearance
57
+ # </td><td> wxOSX Appearance
46
58
  # </td></tr></table></div>
47
- # Implementations: native under {Wx::GTK}, {Wx::MSW} ports; a generic implementation is used elsewhere.
59
+ # Implementations: native under wxGTK, wxMSW ports; a generic implementation is used elsewhere.
48
60
  # @see Calendar Sample
49
61
  # @see Wx::CalendarDateAttr
50
62
  # @see Wx::CalendarEvent
@@ -60,20 +72,20 @@ module Wx
60
72
  # @see Wx::CalendarCtrl#get_date_range
61
73
  # @param lowerdate [Time,Date,DateTime] The low limit for the dates shown by the control or {Wx::DefaultDateTime}.
62
74
  # @param upperdate [Time,Date,DateTime] The high limit for the dates shown by the control or {Wx::DefaultDateTime}.
63
- # @return [void]
75
+ # @return []
64
76
  def set_date_range(lowerdate=Wx::DefaultDateTime, upperdate=Wx::DefaultDateTime) end
65
77
  alias_method :date_range=, :set_date_range
66
78
 
67
79
  # Returns the limits currently being used.
68
80
  # true if either limit is set, false otherwise
69
81
  # @see Wx::CalendarCtrl#set_date_range
70
- # @return [Array(Time, Time), nil]
82
+ # @return [Array(,Array(Time, Time), nil)]
71
83
  def get_date_range; end
72
84
  alias_method :date_range, :get_date_range
73
85
 
74
86
  # @overload initialize()
75
87
  # Default constructor.
76
- # @return [CalendarCtrl]
88
+ # @return [Wx::CalendarCtrl]
77
89
  # @overload initialize(parent, id, date=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CalendarNameStr)
78
90
  # Does the same as {Wx::CalendarCtrl#create} method.
79
91
  # @param parent [Wx::Window]
@@ -83,7 +95,7 @@ module Wx
83
95
  # @param size [Array(Integer, Integer), Wx::Size]
84
96
  # @param style [Integer]
85
97
  # @param name [String]
86
- # @return [CalendarCtrl]
98
+ # @return [Wx::CalendarCtrl]
87
99
  def initialize(*args) end
88
100
 
89
101
  # Creates the control.
@@ -95,7 +107,7 @@ module Wx
95
107
  # @param size [Array(Integer, Integer), Wx::Size]
96
108
  # @param style [Integer]
97
109
  # @param name [String]
98
- # @return [void]
110
+ # @return []
99
111
  def create(parent, id, date=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CalendarNameStr) end
100
112
 
101
113
  # This function should be used instead of changing {Wx::CAL_SHOW_HOLIDAYS} style bit directly.
@@ -108,7 +120,7 @@ module Wx
108
120
  # It allows or disallows the user to change the month interactively. Note that if the month cannot be changed, the year cannot be changed either.
109
121
  # true if the value of this option really changed or false if it was already set to the requested value.
110
122
  # @param enable [true,false]
111
- # @return [void]
123
+ # @return []
112
124
  def enable_month_change(enable=true) end
113
125
 
114
126
  # Returns the attribute for the given date (should be in the range 1...31).
@@ -168,7 +180,7 @@ module Wx
168
180
  alias_method :holiday_colour_fg, :get_holiday_colour_fg
169
181
 
170
182
  # Returns one of {Wx::CalendarHitTestResult} constants and fills either date or wd pointer with the corresponding value depending on the hit test code.
171
- # Not implemented in {Wx::GTK} currently.
183
+ # Not implemented in wxGTK currently.
172
184
  # @param pos [Array(Integer, Integer), Wx::Point]
173
185
  # @param date [Wx::DateTime]
174
186
  # @param wd [Wx::DateTime::WeekDay]
@@ -191,7 +203,7 @@ module Wx
191
203
  # Sets the current date.
192
204
  # The date parameter must be valid and in the currently valid range as set by {Wx::CalendarCtrl#set_date_range}, otherwise the current date is not changed and the function returns false and, additionally, triggers an assertion failure if the date is invalid.
193
205
  # @param date [Time,Date,DateTime]
194
- # @return [void]
206
+ # @return []
195
207
  def set_date(date) end
196
208
  alias_method :date=, :set_date
197
209
 
@@ -23,12 +23,12 @@ module Wx
23
23
  # @param colBorder [Wx::Colour,String,Symbol]
24
24
  # @param font [Wx::Font,Wx::FontInfo]
25
25
  # @param border [CalendarDateBorder]
26
- # @return [CalendarDateAttr]
26
+ # @return [Wx::CalendarDateAttr]
27
27
  # @overload initialize(border, colBorder=Wx::NULL_COLOUR)
28
28
  # Constructor using default properties except the given border.
29
29
  # @param border [CalendarDateBorder]
30
30
  # @param colBorder [Wx::Colour,String,Symbol]
31
- # @return [CalendarDateAttr]
31
+ # @return [Wx::CalendarDateAttr]
32
32
  def initialize(*args) end
33
33
 
34
34
  # Returns the background colour set for the calendar date.
@@ -124,12 +124,12 @@ module Wx
124
124
  class CalendarEvent < DateEvent
125
125
 
126
126
  # @overload initialize()
127
- # @return [CalendarEvent]
127
+ # @return [Wx::CalendarEvent]
128
128
  # @overload initialize(win, dt, type)
129
129
  # @param win [Wx::Window]
130
130
  # @param dt [Time,Date,DateTime]
131
- # @param type [Integer]
132
- # @return [CalendarEvent]
131
+ # @param type [Wx::AUI::AuiMDIChildFrame::EventType]
132
+ # @return [Wx::CalendarEvent]
133
133
  def initialize(*args) end
134
134
 
135
135
  # Returns the week day on which the user clicked in EVT_CALENDAR_WEEKDAY_CLICKED handler.
@@ -20,10 +20,10 @@ module Wx
20
20
  # Creates a caret with the given size (in pixels) and associates it with the window.
21
21
  # @param window [Wx::Window]
22
22
  # @param size [Array(Integer, Integer), Wx::Size]
23
- # @return [Caret]
23
+ # @return [Wx::Caret]
24
24
  # @overload initialize()
25
25
  # Default constructor.
26
- # @return [Caret]
26
+ # @return [Wx::Caret]
27
27
  def initialize(*args) end
28
28
 
29
29
  # Creates a caret with the given size (in pixels) and associates it with the window (same as the equivalent constructors).
@@ -40,23 +40,27 @@ module Wx
40
40
  # === Styles
41
41
  #
42
42
  # This class supports the following styles:
43
- #
43
+ #
44
44
  # - {Wx::CHK_2STATE}: Create a 2-state checkbox. This is the default.
45
+ #
45
46
  # - {Wx::CHK_3STATE}: Create a 3-state checkbox.
47
+ #
46
48
  # - {Wx::CHK_ALLOW_3RD_STATE_FOR_USER}: By default a user can't set a 3-state checkbox to the third state. It can only be done from code. Using this flags allows the user to set the checkbox to the third state by clicking.
49
+ #
47
50
  # - {Wx::Alignment::ALIGN_RIGHT}: Makes the text appear on the left of the checkbox.
48
51
  #
49
52
  # === Events emitted by this class
50
53
  #
51
54
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
52
55
  # Event handler methods for events emitted by this class:
56
+ #
53
57
  # - {Wx::EvtHandler#evt_checkbox}(id, meth = nil, &block): Process a {Wx::EVT_CHECKBOX} event, when the checkbox is clicked.
54
58
  #
55
59
  # ===
56
60
  #
57
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
58
- # </td><td> {Wx::GTK} Appearance
59
- # </td><td> {Wx::OSX} Appearance
61
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
62
+ # </td><td> wxGTK Appearance
63
+ # </td><td> wxOSX Appearance
60
64
  # </td></tr></table></div>
61
65
  # @see Wx::RadioButton
62
66
  # @see Wx::CommandEvent
@@ -69,7 +73,7 @@ module Wx
69
73
  #
70
74
  # @see Wx::CheckBox#create
71
75
  # @see Wx::Validator
72
- # @return [CheckBox]
76
+ # @return [Wx::CheckBox]
73
77
  # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CheckBoxNameStr)
74
78
  # Constructor, creating and showing a checkbox.
75
79
  #
@@ -83,7 +87,7 @@ module Wx
83
87
  # @param style [Integer] Window style. See {Wx::CheckBox}.
84
88
  # @param validator [Wx::Validator] Window validator.
85
89
  # @param name [String] Window name.
86
- # @return [CheckBox]
90
+ # @return [Wx::CheckBox]
87
91
  def initialize(*args) end
88
92
 
89
93
  # Creates the checkbox for two-step construction.
@@ -12,13 +12,14 @@ module Wx
12
12
  #
13
13
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
14
14
  # Event handler methods for events emitted by this class:
15
+ #
15
16
  # - {Wx::EvtHandler#evt_checklistbox}(id, meth = nil, &block): Process a {Wx::EVT_CHECKLISTBOX} event, when an item in the check list box is checked or unchecked. {Wx::CommandEvent#get_int} will contain the index of the item that was checked or unchecked. {Wx::CommandEvent#is_checked} is not valid! Use {Wx::CheckListBox#is_checked} instead.
16
17
  #
17
18
  # ===
18
19
  #
19
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
20
- # </td><td> {Wx::GTK} Appearance
21
- # </td><td> {Wx::OSX} Appearance
20
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
21
+ # </td><td> wxGTK Appearance
22
+ # </td><td> wxOSX Appearance
22
23
  # </td></tr></table></div>
23
24
  # @see Wx::ListBox
24
25
  # @see Wx::Choice
@@ -39,7 +40,7 @@ module Wx
39
40
  # @param style [Integer] Window style. See {Wx::CheckListBox}.
40
41
  # @param validator [Wx::Validator] Window validator.
41
42
  # @param name [String] Window name.
42
- # @return [CheckListBox]
43
+ # @return [Wx::CheckListBox]
43
44
  # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("listBox"))
44
45
  # Constructor, creating and showing a list box.
45
46
  # @param parent [Wx::Window] Parent window. Must not be NULL.
@@ -50,10 +51,10 @@ module Wx
50
51
  # @param style [Integer] Window style. See {Wx::CheckListBox}.
51
52
  # @param validator [Wx::Validator] Window validator.
52
53
  # @param name [String] Window name.
53
- # @return [CheckListBox]
54
+ # @return [Wx::CheckListBox]
54
55
  # @overload initialize()
55
56
  # Default constructor.
56
- # @return [CheckListBox]
57
+ # @return [Wx::CheckListBox]
57
58
  def initialize(*args) end
58
59
 
59
60
  # @param parent [Wx::Window]
@@ -84,7 +85,7 @@ module Wx
84
85
  # The number of checked items.
85
86
  # @see Wx::CheckListBox#check
86
87
  # @see Wx::CheckListBox#is_checked
87
- # @return [Array<Integer>]
88
+ # @return [Array(,Array<Integer>)]
88
89
  def get_checked_items; end
89
90
  alias_method :checked_items, :get_checked_items
90
91
 
@@ -11,20 +11,21 @@ module Wx
11
11
  # === Styles
12
12
  #
13
13
  # This class supports the following styles:
14
- #
14
+ #
15
15
  # - {Wx::CB_SORT}: Sorts the entries alphabetically.
16
16
  #
17
17
  # === Events emitted by this class
18
18
  #
19
19
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
20
20
  # Event handler methods for events emitted by this class:
21
+ #
21
22
  # - {Wx::EvtHandler#evt_choice}(id, meth = nil, &block): Process a {Wx::EVT_CHOICE} event, when an item on the list is selected.
22
23
  #
23
24
  # ===
24
25
  #
25
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
26
- # </td><td> {Wx::GTK} Appearance
27
- # </td><td> {Wx::OSX} Appearance
26
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
27
+ # </td><td> wxGTK Appearance
28
+ # </td><td> wxOSX Appearance
28
29
  # </td></tr></table></div>
29
30
  # @see Wx::ListBox
30
31
  # @see Wx::ComboBox
@@ -51,7 +52,7 @@ module Wx
51
52
  #
52
53
  # @see Wx::Choice#create
53
54
  # @see Wx::Validator
54
- # @return [Choice]
55
+ # @return [Wx::Choice]
55
56
  # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ChoiceNameStr)
56
57
  # Constructor, creating and showing a choice.
57
58
  #
@@ -65,7 +66,7 @@ module Wx
65
66
  # @param style [Integer] Window style. See {Wx::Choice}.
66
67
  # @param validator [Wx::Validator] Window validator.
67
68
  # @param name [String] Window name.
68
- # @return [Choice]
69
+ # @return [Wx::Choice]
69
70
  def initialize(*args) end
70
71
 
71
72
  # Gets the number of columns in this choice item.
@@ -38,25 +38,31 @@ module Wx
38
38
  # === Styles
39
39
  #
40
40
  # This class supports the following styles:
41
- #
41
+ #
42
42
  # - {Wx::CHB_DEFAULT}: Choose the default location for the labels depending on the current platform (but currently it's the same everywhere, namely {Wx::CHB_TOP}).
43
+ #
43
44
  # - {Wx::CHB_TOP}: Place labels above the page area.
45
+ #
44
46
  # - {Wx::CHB_LEFT}: Place labels on the left side.
47
+ #
45
48
  # - {Wx::CHB_RIGHT}: Place labels on the right side.
49
+ #
46
50
  # - {Wx::CHB_BOTTOM}: Place labels below the page area.
47
51
  #
48
52
  # === Events emitted by this class
49
53
  #
50
54
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::BookCtrlEvent} events.
51
55
  # Event handler methods for events emitted by this class:
56
+ #
52
57
  # - {Wx::EvtHandler#evt_choicebook_page_changed}(id, meth = nil, &block): The page selection was changed. Processes a {Wx::EVT_CHOICEBOOK_PAGE_CHANGED} event.
58
+ #
53
59
  # - {Wx::EvtHandler#evt_choicebook_page_changing}(id, meth = nil, &block): The page selection is about to be changed. Processes a {Wx::EVT_CHOICEBOOK_PAGE_CHANGING} event. This event can be vetoed (using {Wx::NotifyEvent#veto}).
54
60
  #
55
61
  # ===
56
62
  #
57
- # Category: Book Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
58
- # </td><td> {Wx::GTK} Appearance
59
- # </td><td> {Wx::OSX} Appearance
63
+ # Category: Book Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
64
+ # </td><td> wxGTK Appearance
65
+ # </td><td> wxOSX Appearance
60
66
  # </td></tr></table></div>
61
67
  # @see wxBookCtrl Overview
62
68
  # @see Wx::Notebook
@@ -67,7 +73,7 @@ module Wx
67
73
 
68
74
  # @overload initialize()
69
75
  # Constructs a choicebook control.
70
- # @return [Choicebook]
76
+ # @return [Wx::Choicebook]
71
77
  # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
72
78
  # Constructs a choicebook control.
73
79
  # @param parent [Wx::Window]
@@ -76,7 +82,7 @@ module Wx
76
82
  # @param size [Array(Integer, Integer), Wx::Size]
77
83
  # @param style [Integer]
78
84
  # @param name [String]
79
- # @return [Choicebook]
85
+ # @return [Wx::Choicebook]
80
86
  def initialize(*args) end
81
87
 
82
88
  # Create the choicebook control that has already been constructed with the default constructor.
@@ -20,7 +20,7 @@ module Wx
20
20
  # end
21
21
  # ```
22
22
  #
23
- # While {Wx::ClientDC} may also be used for drawing on the client area of a window from outside an EVT_PAINT() handler in some ports, this does not work on all platforms (neither {Wx::OSX} nor {Wx::GTK} with GTK 3 Wayland backend support this, so drawing using {Wx::ClientDC} simply doesn't have any effect there) and the only portable way of drawing is via {Wx::PaintDC}. To redraw a small part of the window, use {Wx::Window#refresh_rect} to invalidate just this part and check {Wx::Window#get_update_region} in the paint event handler to redraw this part only.
23
+ # While {Wx::ClientDC} may also be used for drawing on the client area of a window from outside an EVT_PAINT() handler in some ports, this does not work on all platforms (neither wxOSX nor wxGTK with GTK 3 Wayland backend support this, so drawing using {Wx::ClientDC} simply doesn't have any effect there) and the only portable way of drawing is via {Wx::PaintDC}. To redraw a small part of the window, use {Wx::Window#refresh_rect} to invalidate just this part and check {Wx::Window#get_update_region} in the paint event handler to redraw this part only.
24
24
  #
25
25
  # {Wx::ClientDC} objects should normally be constructed as temporary stack objects, i.e. don't store a {Wx::ClientDC} object.
26
26
  # A {Wx::ClientDC} object is initialized to use the same font and colours as the window it is associated with.
@@ -49,7 +49,7 @@ module Wx
49
49
  class Clipboard < Object
50
50
 
51
51
  # Default constructor.
52
- # @return [Clipboard]
52
+ # @return [Wx::Clipboard]
53
53
  def initialize; end
54
54
 
55
55
  # Call this function to add the data object to the clipboard.
@@ -39,22 +39,25 @@ module Wx
39
39
  # === Styles
40
40
  #
41
41
  # This class supports the following styles:
42
- #
42
+ #
43
43
  # - {Wx::CP_DEFAULT_STYLE}: The default style. It includes {Wx::TAB_TRAVERSAL} and {Wx::Border::BORDER_NONE}.
44
+ #
44
45
  # - {Wx::CP_NO_TLW_RESIZE}: By default {Wx::CollapsiblePane} resizes the top level window containing it when its own size changes. This allows easily implementing dialogs containing an optionally shown part, for example, and so is the default behaviour but can be inconvenient in some specific cases use this flag to disable this automatic parent resizing then.
45
46
  #
46
47
  # === Events emitted by this class
47
48
  #
48
49
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::NavigationKeyEvent} events.
49
50
  # Event handler methods for events emitted by this class:
51
+ #
50
52
  # - {Wx::EvtHandler#evt_collapsiblepane_changed}(id, meth = nil, &block): The user expanded or collapsed the collapsible pane.
53
+ #
51
54
  # - {Wx::EvtHandler#evt_navigation_key}(meth = nil, &block): Process a navigation key event.
52
55
  #
53
56
  # ===
54
57
  #
55
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
56
- # </td><td> {Wx::GTK} Appearance
57
- # </td><td> {Wx::OSX} Appearance
58
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
59
+ # </td><td> wxGTK Appearance
60
+ # </td><td> wxOSX Appearance
58
61
  # </td></tr></table></div>
59
62
  # @see Wx::Panel
60
63
  # @see Wx::CollapsiblePaneEvent
@@ -64,7 +67,7 @@ module Wx
64
67
 
65
68
  # @overload initialize()
66
69
  # Default constructor.
67
- # @return [CollapsiblePane]
70
+ # @return [Wx::CollapsiblePane]
68
71
  # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CollapsiblePaneNameStr)
69
72
  # Initializes the object and calls {Wx::CollapsiblePane#create} with all the parameters.
70
73
  # @param parent [Wx::Window]
@@ -75,7 +78,7 @@ module Wx
75
78
  # @param style [Integer]
76
79
  # @param validator [Wx::Validator]
77
80
  # @param name [String]
78
- # @return [CollapsiblePane]
81
+ # @return [Wx::CollapsiblePane]
79
82
  def initialize(*args) end
80
83
 
81
84
  #
@@ -11,6 +11,7 @@ module Wx
11
11
  #
12
12
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CollapsiblePaneEvent} events.
13
13
  # Event handler methods:
14
+ #
14
15
  # - {Wx::EvtHandler#evt_collapsiblepane_changed}(id, meth = nil, &block): The user expanded or collapsed the collapsible pane.
15
16
  #
16
17
  # ===
@@ -25,7 +26,7 @@ module Wx
25
26
  # @param generator [Wx::Object]
26
27
  # @param id [Integer]
27
28
  # @param collapsed [true,false]
28
- # @return [CollapsiblePaneEvent]
29
+ # @return [Wx::CollapsiblePaneEvent]
29
30
  def initialize(generator, id, collapsed) end
30
31
 
31
32
  # Returns true if the pane has been collapsed.
@@ -58,7 +58,17 @@ module Wx
58
58
  #
59
59
  # Category: Graphics Device Interface (GDI)
60
60
  # Predefined objects/pointers:
61
- # - {Wx::NULL_COLOUR} - An empty, invalid colour.- {Wx::TransparentColour} - Valid but fully transparent colour (new in 2.9.1).- {Wx::BLACK}- {Wx::BLUE}- {Wx::CYAN}- {Wx::GREEN}- {Wx::YELLOW}- {Wx::LIGHT_GREY}- {Wx::RED}- {Wx::WHITE}
61
+ #
62
+ # - {Wx::NULL_COLOUR} - An empty, invalid colour.
63
+ # - {Wx::TransparentColour} - Valid but fully transparent colour (new in 2.9.1).
64
+ # - {Wx::BLACK}
65
+ # - {Wx::BLUE}
66
+ # - {Wx::CYAN}
67
+ # - {Wx::GREEN}
68
+ # - {Wx::YELLOW}
69
+ # - {Wx::LIGHT_GREY}
70
+ # - {Wx::RED}
71
+ # - {Wx::WHITE}
62
72
  # @see Wx::ColourDatabase
63
73
  # @see Wx::Pen
64
74
  # @see Wx::Brush
@@ -129,23 +139,23 @@ module Wx
129
139
 
130
140
  # @overload initialize()
131
141
  # Default constructor.
132
- # @return [Colour]
142
+ # @return [Wx::Colour]
133
143
  # @overload initialize(red, green, blue, alpha=Wx::ALPHA_OPAQUE)
134
144
  # @param red [Integer] The red value.
135
145
  # @param green [Integer] The green value.
136
146
  # @param blue [Integer] The blue value.
137
147
  # @param alpha [Integer] The alpha value. Alpha values range from 0 ({Wx::ALPHA_TRANSPARENT}) to 255 ({Wx::ALPHA_OPAQUE}).
138
- # @return [Colour]
148
+ # @return [Wx::Colour]
139
149
  # @overload initialize(colourName)
140
150
  # @param colourName [String] The colour name.
141
- # @return [Colour]
151
+ # @return [Wx::Colour]
142
152
  # @overload initialize(colRGB)
143
153
  # @param colRGB [Integer] A packed RGB value.
144
- # @return [Colour]
154
+ # @return [Wx::Colour]
145
155
  # @overload initialize(colour)
146
156
  # Copy constructor.
147
157
  # @param colour [Wx::Colour,String,Symbol]
148
- # @return [Colour]
158
+ # @return [Wx::Colour]
149
159
  def initialize(*args) end
150
160
 
151
161
  # Returns the alpha value, on platforms where alpha is not yet supported, this always returns {Wx::ALPHA_OPAQUE}.
@@ -64,7 +64,7 @@ module Wx
64
64
  # @see Wx::ColourData
65
65
  # @param parent [Wx::Window]
66
66
  # @param data [Wx::ColourData]
67
- # @return [ColourDialog]
67
+ # @return [Wx::ColourDialog]
68
68
  def initialize(parent, data=nil) end
69
69
 
70
70
  # Same as {colour_dialog}.
@@ -98,7 +98,7 @@ module Wx
98
98
 
99
99
  # Constructor.
100
100
  # Initializes the custom colours to {Wx::NULL_COLOUR}, the data colour setting to black, and the choose full setting to true.
101
- # @return [ColourData]
101
+ # @return [Wx::ColourData]
102
102
  def initialize; end
103
103
 
104
104
  # Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls.
@@ -109,8 +109,8 @@ module Wx
109
109
  alias_method :choose_full, :get_choose_full
110
110
 
111
111
  # Indicates whether the colour dialog will display alpha values and an opacity selector.
112
- # It is meaningful under {Wx::GTK}, {Wx::OSX} and with regards to generic colour dialog.
113
- # The default value is false, except {Wx::OSX} where it is true (for the sake of backward compatibility).
112
+ # It is meaningful under wxGTK, wxOSX and with regards to generic colour dialog.
113
+ # The default value is false, except wxOSX where it is true (for the sake of backward compatibility).
114
114
  # @return [true,false]
115
115
  def get_choose_alpha; end
116
116
  alias_method :choose_alpha, :get_choose_alpha
@@ -136,8 +136,8 @@ module Wx
136
136
  alias_method :choose_full=, :set_choose_full
137
137
 
138
138
  # Tells the colour dialog to show alpha values and an opacity selector (slider).
139
- # Currently it has effect under {Wx::GTK}, {Wx::OSX} and for generic colour dialog.
140
- # The default value is false, except {Wx::OSX} where it is true for backward compatibility.
139
+ # Currently it has effect under wxGTK, wxOSX and for generic colour dialog.
140
+ # The default value is false, except wxOSX where it is true for backward compatibility.
141
141
  # @param flag [true,false]
142
142
  # @return [void]
143
143
  def set_choose_alpha(flag) end
@@ -11,25 +11,31 @@ module Wx
11
11
  # === Styles
12
12
  #
13
13
  # This class supports the following styles:
14
- #
14
+ #
15
15
  # - {Wx::CLRP_DEFAULT_STYLE}: The default style: 0.
16
+ #
16
17
  # - {Wx::CLRP_USE_TEXTCTRL}: Creates a text control to the left of the picker button which is completely managed by the {Wx::ColourPickerCtrl} and which can be used by the user to specify a colour (see SetColour). The text control is automatically synchronized with button's value. Use functions defined in {Wx::PickerBase} to modify the text control.
18
+ #
17
19
  # - {Wx::CLRP_SHOW_LABEL}: Shows the colour in HTML form (AABBCC) as colour button label (instead of no label at all).
18
- # - {Wx::CLRP_SHOW_ALPHA}: Allows selecting opacity in the colour-chooser (effective under {Wx::GTK} and {Wx::OSX}).
20
+ #
21
+ # - {Wx::CLRP_SHOW_ALPHA}: Allows selecting opacity in the colour-chooser (effective under wxGTK and wxOSX).
19
22
  #
20
23
  # === Events emitted by this class
21
24
  #
22
25
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ColourPickerEvent} events.
23
26
  # Event handler methods for events emitted by this class:
27
+ #
24
28
  # - {Wx::EvtHandler#evt_colourpicker_changed}(id, meth = nil, &block): The user changed the colour selected in the control either using the button or using text control (see {Wx::CLRP_USE_TEXTCTRL}; note that in this case the event is fired only if the user's input is valid, i.e. recognizable). When using a popup dialog for changing the colour, this event is sent only when the changes in the dialog are accepted by the user, unlike EVT_COLOURPICKER_CURRENT_CHANGED.
25
- # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): The user changed the currently selected colour in the dialog associated with the control. This event is sent immediately when the selection changes and you must also handle EVT_COLOUR_CANCELLED to revert to the previously selected colour if the selection ends up not being accepted. This event is new since wxWidgets 3.1.3 and currently is only implemented in {Wx::MSW}.
26
- # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): The user cancelled the colour dialog associated with the control, i.e. closed it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in {Wx::MSW}.
29
+ #
30
+ # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): The user changed the currently selected colour in the dialog associated with the control. This event is sent immediately when the selection changes and you must also handle EVT_COLOUR_CANCELLED to revert to the previously selected colour if the selection ends up not being accepted. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.
31
+ #
32
+ # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): The user cancelled the colour dialog associated with the control, i.e. closed it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.
27
33
  #
28
34
  # ===
29
35
  #
30
- # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
31
- # </td><td> {Wx::GTK} Appearance
32
- # </td><td> {Wx::OSX} Appearance
36
+ # Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
37
+ # </td><td> wxGTK Appearance
38
+ # </td><td> wxOSX Appearance
33
39
  # </td></tr></table></div>
34
40
  # @see Wx::ColourDialog
35
41
  # @see Wx::ColourPickerEvent
@@ -51,7 +57,7 @@ module Wx
51
57
  alias_method :colour=, :set_colour
52
58
 
53
59
  # @overload initialize()
54
- # @return [ColourPickerCtrl]
60
+ # @return [Wx::ColourPickerCtrl]
55
61
  # @overload initialize(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ColourPickerCtrlNameStr)
56
62
  # Initializes the object and calls {Wx::ColourPickerCtrl#create} with all the parameters.
57
63
  # @param parent [Wx::Window]
@@ -62,7 +68,7 @@ module Wx
62
68
  # @param style [Integer]
63
69
  # @param validator [Wx::Validator]
64
70
  # @param name [String]
65
- # @return [ColourPickerCtrl]
71
+ # @return [Wx::ColourPickerCtrl]
66
72
  def initialize(*args) end
67
73
 
68
74
  # Creates a colour picker with the given arguments.
@@ -35,9 +35,12 @@ module Wx
35
35
  #
36
36
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ColourPickerEvent} events.
37
37
  # Event handler methods:
38
+ #
38
39
  # - {Wx::EvtHandler#evt_colourpicker_changed}(id, meth = nil, &block): Generated whenever the selected colour changes.
39
- # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): Generated whenever the currently selected colour in the dialog shown by the picker changes. This event is new since wxWidgets 3.1.3 and currently is only implemented in {Wx::MSW}.
40
- # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): Generated when the user cancels the colour dialog associated with the control, i.e. closes it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in {Wx::MSW}.
40
+ #
41
+ # - {Wx::EvtHandler#evt_colourpicker_current_changed}(id, meth = nil, &block): Generated whenever the currently selected colour in the dialog shown by the picker changes. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.
42
+ #
43
+ # - {Wx::EvtHandler#evt_colourpicker_dialog_cancelled}(id, meth = nil, &block): Generated when the user cancels the colour dialog associated with the control, i.e. closes it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.
41
44
  #
42
45
  # ===
43
46
  #
@@ -48,13 +51,13 @@ module Wx
48
51
  class ColourPickerEvent < CommandEvent
49
52
 
50
53
  # @overload initialize()
51
- # @return [ColourPickerEvent]
54
+ # @return [Wx::ColourPickerEvent]
52
55
  # @overload initialize(generator, id, colour)
53
56
  # The constructor is not normally used by the user code.
54
57
  # @param generator [Wx::Object]
55
58
  # @param id [Integer]
56
59
  # @param colour [Wx::Colour,String,Symbol]
57
- # @return [ColourPickerEvent]
60
+ # @return [Wx::ColourPickerEvent]
58
61
  def initialize(*args) end
59
62
 
60
63
  # Retrieve the colour the user has just selected.