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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (703) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +30 -8
  3. data/README.md +3 -3
  4. data/ext/mkrf_conf_bingem.rb +4 -1
  5. data/ext/wxbase32u_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  7. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  20. data/lib/wx/accessors.rb +10 -2
  21. data/lib/wx/aui/auifloatframe.rb +20 -0
  22. data/lib/wx/aui/auimanager.rb +3 -0
  23. data/lib/wx/aui/auinotebook.rb +17 -0
  24. data/lib/wx/aui/events/evt_list.rb +7 -7
  25. data/lib/wx/aui/require.rb +5 -1
  26. data/lib/wx/aui.rb +4 -1
  27. data/lib/wx/core/acceleratortable.rb +8 -0
  28. data/lib/wx/core/animation.rb +8 -0
  29. data/lib/wx/core/app.rb +8 -0
  30. data/lib/wx/core/array_ext.rb +7 -0
  31. data/lib/wx/core/art_locator.rb +7 -0
  32. data/lib/wx/core/artprovider.rb +9 -0
  33. data/lib/wx/core/bitmap.rb +16 -4
  34. data/lib/wx/core/bitmap_combobox.rb +7 -0
  35. data/lib/wx/core/brush.rb +7 -0
  36. data/lib/wx/core/busycursor.rb +9 -0
  37. data/lib/wx/core/choice.rb +7 -0
  38. data/lib/wx/core/choicedlg.rb +7 -0
  39. data/lib/wx/core/clientdc.rb +9 -0
  40. data/lib/wx/core/clipboard.rb +8 -0
  41. data/lib/wx/core/collapsible_pane.rb +8 -1
  42. data/lib/wx/core/colour.rb +8 -0
  43. data/lib/wx/core/combo_ctrl.rb +110 -0
  44. data/lib/wx/core/combobox.rb +7 -0
  45. data/lib/wx/core/config.rb +303 -0
  46. data/lib/wx/core/controlwithitems.rb +12 -1
  47. data/lib/wx/core/cursor.rb +14 -4
  48. data/lib/wx/core/data_object.rb +7 -0
  49. data/lib/wx/core/dataformat.rb +9 -0
  50. data/lib/wx/core/datetime.rb +14 -0
  51. data/lib/wx/core/dc.rb +7 -0
  52. data/lib/wx/core/dialog.rb +18 -1
  53. data/lib/wx/core/enum.rb +7 -0
  54. data/lib/wx/core/event.rb +7 -0
  55. data/lib/wx/core/event_blocker.rb +7 -0
  56. data/lib/wx/core/event_loop.rb +14 -0
  57. data/lib/wx/core/events/evt_list.rb +76 -0
  58. data/lib/wx/core/evthandler.rb +8 -0
  59. data/lib/wx/core/ext.rb +7 -0
  60. data/lib/wx/core/file_dialog.rb +23 -0
  61. data/lib/wx/core/find_replace_dialog.rb +7 -0
  62. data/lib/wx/core/functions.rb +8 -0
  63. data/lib/wx/core/gauge.rb +10 -1
  64. data/lib/wx/core/genericdirctrl.rb +9 -0
  65. data/lib/wx/core/hboxsizer.rb +16 -0
  66. data/lib/wx/core/helpcontroller.rb +8 -0
  67. data/lib/wx/core/helpcontrollerhelpprovider.rb +9 -0
  68. data/lib/wx/core/helpprovider.rb +10 -1
  69. data/lib/wx/core/icon.rb +17 -6
  70. data/lib/wx/core/id_helper.rb +7 -0
  71. data/lib/wx/core/image.rb +49 -4
  72. data/lib/wx/core/imagelist.rb +8 -1
  73. data/lib/wx/core/listbox.rb +7 -0
  74. data/lib/wx/core/listctrl.rb +26 -13
  75. data/lib/wx/core/locale.rb +8 -0
  76. data/lib/wx/core/log.rb +114 -0
  77. data/lib/wx/core/menu.rb +9 -0
  78. data/lib/wx/core/menu_bar.rb +7 -0
  79. data/lib/wx/core/menuitem.rb +9 -0
  80. data/lib/wx/core/notebook.rb +9 -0
  81. data/lib/wx/core/object.rb +9 -0
  82. data/lib/wx/core/paintdc.rb +7 -0
  83. data/lib/wx/core/pen.rb +7 -0
  84. data/lib/wx/core/pen_info.rb +7 -0
  85. data/lib/wx/core/platform_info.rb +7 -0
  86. data/lib/wx/core/point.rb +8 -0
  87. data/lib/wx/core/real_point.rb +8 -0
  88. data/lib/wx/core/rect.rb +9 -0
  89. data/lib/wx/core/region_iterator.rb +7 -0
  90. data/lib/wx/core/simplehelpprovider.rb +9 -0
  91. data/lib/wx/core/size.rb +8 -0
  92. data/lib/wx/core/sizer.rb +9 -0
  93. data/lib/wx/core/splash_screen.rb +22 -2
  94. data/lib/wx/core/text_entry.rb +7 -0
  95. data/lib/wx/core/textctrl.rb +86 -5
  96. data/lib/wx/core/timer.rb +9 -0
  97. data/lib/wx/core/toolbar.rb +9 -0
  98. data/lib/wx/core/toolbartool.rb +8 -0
  99. data/lib/wx/core/treectrl.rb +9 -0
  100. data/lib/wx/core/v_list_box.rb +7 -0
  101. data/lib/wx/core/validator.rb +7 -0
  102. data/lib/wx/core/variant.rb +7 -0
  103. data/lib/wx/core/vboxsizer.rb +16 -0
  104. data/lib/wx/core/window.rb +8 -0
  105. data/lib/wx/core/window_update_locker.rb +9 -0
  106. data/lib/wx/core/xmlresource.rb +8 -0
  107. data/lib/wx/core.rb +4 -1
  108. data/lib/wx/doc/app.rb +7 -1
  109. data/lib/wx/doc/array_ext.rb +6 -0
  110. data/lib/wx/doc/art_locator.rb +7 -0
  111. data/lib/wx/doc/aui/auimanager.rb +6 -0
  112. data/lib/wx/doc/aui/auinotebook.rb +6 -0
  113. data/lib/wx/doc/bitmap.rb +19 -15
  114. data/lib/wx/doc/brush.rb +6 -0
  115. data/lib/wx/doc/busy_info.rb +6 -0
  116. data/lib/wx/doc/client_dc.rb +6 -0
  117. data/lib/wx/doc/clipboard.rb +6 -0
  118. data/lib/wx/doc/colour_dialog.rb +6 -0
  119. data/lib/wx/doc/config.rb +190 -0
  120. data/lib/wx/doc/const.rb +7 -0
  121. data/lib/wx/doc/controlwithitems.rb +6 -0
  122. data/lib/wx/doc/core.rb +6 -0
  123. data/lib/wx/doc/cursor.rb +13 -5
  124. data/lib/wx/doc/data_object.rb +6 -0
  125. data/lib/wx/doc/datetime.rb +16 -0
  126. data/lib/wx/doc/dc.rb +6 -0
  127. data/lib/wx/doc/enum.rb +8 -1
  128. data/lib/wx/doc/event.rb +12 -0
  129. data/lib/wx/doc/event_blocker.rb +6 -0
  130. data/lib/wx/doc/event_loop.rb +13 -0
  131. data/lib/wx/doc/events.rb +6 -0
  132. data/lib/wx/doc/evthandler.rb +8 -0
  133. data/lib/wx/doc/extra/00_starting.md +6 -6
  134. data/lib/wx/doc/extra/01_packages.md +52 -51
  135. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  136. data/lib/wx/doc/extra/05_event-handling.md +37 -12
  137. data/lib/wx/doc/extra/06_geometry.md +5 -5
  138. data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
  139. data/lib/wx/doc/extra/09_exceptions.md +2 -2
  140. data/lib/wx/doc/extra/10_art.md +18 -12
  141. data/lib/wx/doc/extra/11_drawing_and_dc.md +8 -8
  142. data/lib/wx/doc/font.rb +7 -1
  143. data/lib/wx/doc/font_data.rb +16 -0
  144. data/lib/wx/doc/functions.rb +60 -24
  145. data/lib/wx/doc/gc_dc.rb +7 -1
  146. data/lib/wx/doc/gdi_common.rb +8 -1
  147. data/lib/wx/doc/gen/about_dialog_info.rb +10 -10
  148. data/lib/wx/doc/gen/accelerator.rb +8 -13
  149. data/lib/wx/doc/gen/accessible.rb +27 -23
  150. data/lib/wx/doc/gen/activity_indicator.rb +7 -7
  151. data/lib/wx/doc/gen/animation.rb +20 -20
  152. data/lib/wx/doc/gen/animation_ctrl.rb +14 -13
  153. data/lib/wx/doc/gen/any_button.rb +3 -3
  154. data/lib/wx/doc/gen/app.rb +25 -88
  155. data/lib/wx/doc/gen/app_traits.rb +381 -0
  156. data/lib/wx/doc/gen/art_provider.rb +64 -4
  157. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  158. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  159. data/lib/wx/doc/gen/aui/aui_manager.rb +57 -41
  160. data/lib/wx/doc/gen/aui/aui_manager_event.rb +16 -10
  161. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +19 -20
  162. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +7 -7
  163. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +12 -12
  164. data/lib/wx/doc/gen/aui/aui_notebook.rb +136 -26
  165. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  166. data/lib/wx/doc/gen/aui/aui_pane_info.rb +95 -95
  167. data/lib/wx/doc/gen/aui/aui_tab_art.rb +17 -17
  168. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +61 -46
  169. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +18 -18
  170. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +6 -6
  171. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +11 -11
  172. data/lib/wx/doc/gen/aui/event_list.rb +7 -0
  173. data/lib/wx/doc/gen/banner_window.rb +98 -0
  174. data/lib/wx/doc/gen/bitmap.rb +56 -81
  175. data/lib/wx/doc/gen/bitmap_button.rb +13 -9
  176. data/lib/wx/doc/gen/bitmap_combo_box.rb +14 -9
  177. data/lib/wx/doc/gen/book_ctrl_base.rb +20 -16
  178. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  179. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  180. data/lib/wx/doc/gen/brush.rb +24 -12
  181. data/lib/wx/doc/gen/busy_info.rb +1 -1
  182. data/lib/wx/doc/gen/button.rb +23 -11
  183. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  184. data/lib/wx/doc/gen/calendar_ctrl.rb +34 -22
  185. data/lib/wx/doc/gen/calendar_date_attr.rb +13 -13
  186. data/lib/wx/doc/gen/calendar_event.rb +4 -10
  187. data/lib/wx/doc/gen/caret.rb +6 -6
  188. data/lib/wx/doc/gen/check_box.rb +19 -15
  189. data/lib/wx/doc/gen/check_list_box.rb +10 -9
  190. data/lib/wx/doc/gen/choice.rb +10 -9
  191. data/lib/wx/doc/gen/choicebook.rb +13 -7
  192. data/lib/wx/doc/gen/client_dc.rb +1 -1
  193. data/lib/wx/doc/gen/clipboard.rb +10 -10
  194. data/lib/wx/doc/gen/collapsible_pane.rb +13 -10
  195. data/lib/wx/doc/gen/collapsible_pane_event.rb +5 -4
  196. data/lib/wx/doc/gen/colour.rb +42 -32
  197. data/lib/wx/doc/gen/colour_dialog.rb +12 -12
  198. data/lib/wx/doc/gen/colour_picker_ctrl.rb +16 -10
  199. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  200. data/lib/wx/doc/gen/combo_box.rb +29 -20
  201. data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
  202. data/lib/wx/doc/gen/command_link_button.rb +110 -0
  203. data/lib/wx/doc/gen/config_base.rb +10 -0
  204. data/lib/wx/doc/gen/context_help_button.rb +7 -6
  205. data/lib/wx/doc/gen/control.rb +12 -9
  206. data/lib/wx/doc/gen/control_with_items.rb +5 -5
  207. data/lib/wx/doc/gen/core.rb +8 -5
  208. data/lib/wx/doc/gen/cursor.rb +18 -18
  209. data/lib/wx/doc/gen/data_format.rb +5 -5
  210. data/lib/wx/doc/gen/data_object.rb +32 -25
  211. data/lib/wx/doc/gen/date_event.rb +3 -3
  212. data/lib/wx/doc/gen/date_picker_ctrl.rb +16 -11
  213. data/lib/wx/doc/gen/dc.rb +162 -74
  214. data/lib/wx/doc/gen/defs.rb +16 -16
  215. data/lib/wx/doc/gen/dialog.rb +65 -22
  216. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  217. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +3 -3
  218. data/lib/wx/doc/gen/dir_picker_ctrl.rb +17 -12
  219. data/lib/wx/doc/gen/drag_drop.rb +26 -52
  220. data/lib/wx/doc/gen/drag_image.rb +13 -38
  221. data/lib/wx/doc/gen/editable_list_box.rb +9 -5
  222. data/lib/wx/doc/gen/event.rb +55 -32
  223. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  224. data/lib/wx/doc/gen/event_filter.rb +5 -2
  225. data/lib/wx/doc/gen/event_list.rb +117 -19
  226. data/lib/wx/doc/gen/events.rb +351 -215
  227. data/lib/wx/doc/gen/evt_handler.rb +8 -8
  228. data/lib/wx/doc/gen/ext_help_controller.rb +9 -9
  229. data/lib/wx/doc/gen/file_dialog.rb +20 -9
  230. data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
  231. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
  232. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  233. data/lib/wx/doc/gen/file_picker_ctrl.rb +19 -11
  234. data/lib/wx/doc/gen/file_system.rb +250 -0
  235. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  236. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  237. data/lib/wx/doc/gen/find_replace_dialog.rb +2 -2
  238. data/lib/wx/doc/gen/flex_grid_sizer.rb +16 -10
  239. data/lib/wx/doc/gen/font.rb +90 -94
  240. data/lib/wx/doc/gen/font_data.rb +15 -11
  241. data/lib/wx/doc/gen/font_dialog.rb +5 -5
  242. data/lib/wx/doc/gen/font_picker_ctrl.rb +11 -7
  243. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  244. data/lib/wx/doc/gen/frame.rb +36 -27
  245. data/lib/wx/doc/gen/fs_file.rb +65 -38
  246. data/lib/wx/doc/gen/gauge.rb +14 -10
  247. data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
  248. data/lib/wx/doc/gen/gcdc.rb +5 -1
  249. data/lib/wx/doc/gen/gdi_common.rb +43 -41
  250. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  251. data/lib/wx/doc/gen/generic_dir_ctrl.rb +19 -13
  252. data/lib/wx/doc/gen/graphics_context.rb +320 -88
  253. data/lib/wx/doc/gen/graphics_object.rb +48 -102
  254. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +4 -2
  255. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +41 -56
  256. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +3 -1
  257. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +3 -1
  258. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +4 -2
  259. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +3 -1
  260. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
  261. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +3 -1
  262. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +3 -1
  263. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
  264. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +19 -14
  265. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +3 -1
  266. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +3 -1
  267. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +3 -1
  268. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +3 -1
  269. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +3 -1
  270. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +3 -1
  271. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +15 -13
  272. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +3 -1
  273. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +3 -1
  274. data/lib/wx/doc/gen/grid/grid_ctrl.rb +446 -189
  275. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  276. data/lib/wx/doc/gen/grid/grid_event.rb +26 -9
  277. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +15 -11
  278. data/lib/wx/doc/gen/grid/grid_size_event.rb +13 -7
  279. data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -8
  280. data/lib/wx/doc/gen/grid/grid_table_base.rb +21 -21
  281. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  282. data/lib/wx/doc/gen/grid_bag_sizer.rb +15 -15
  283. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  284. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  285. data/lib/wx/doc/gen/header_ctrl.rb +755 -0
  286. data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
  287. data/lib/wx/doc/gen/help_controller.rb +25 -19
  288. data/lib/wx/doc/gen/help_provider.rb +3 -3
  289. data/lib/wx/doc/gen/html/html_cell.rb +100 -59
  290. data/lib/wx/doc/gen/html/html_cell_event.rb +7 -5
  291. data/lib/wx/doc/gen/html/html_easy_printing.rb +14 -9
  292. data/lib/wx/doc/gen/html/html_help_controller.rb +60 -46
  293. data/lib/wx/doc/gen/html/html_help_data.rb +5 -5
  294. data/lib/wx/doc/gen/html/html_help_window.rb +33 -35
  295. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  296. data/lib/wx/doc/gen/html/html_list_box.rb +21 -13
  297. data/lib/wx/doc/gen/html/html_printout.rb +16 -6
  298. data/lib/wx/doc/gen/html/html_window.rb +54 -39
  299. data/lib/wx/doc/gen/hyperlink_ctrl.rb +15 -10
  300. data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
  301. data/lib/wx/doc/gen/icon.rb +24 -24
  302. data/lib/wx/doc/gen/icon_location.rb +1 -1
  303. data/lib/wx/doc/gen/image.rb +164 -114
  304. data/lib/wx/doc/gen/image_list.rb +24 -30
  305. data/lib/wx/doc/gen/info_bar.rb +152 -0
  306. data/lib/wx/doc/gen/keyboard_state.rb +24 -24
  307. data/lib/wx/doc/gen/list_box.rb +40 -31
  308. data/lib/wx/doc/gen/list_ctrl.rb +223 -167
  309. data/lib/wx/doc/gen/list_event.rb +25 -3
  310. data/lib/wx/doc/gen/listbook.rb +13 -7
  311. data/lib/wx/doc/gen/locale.rb +22 -71
  312. data/lib/wx/doc/gen/log.rb +133 -106
  313. data/lib/wx/doc/gen/mdi_client_window.rb +3 -3
  314. data/lib/wx/doc/gen/mdi_frame.rb +23 -17
  315. data/lib/wx/doc/gen/media_ctrl.rb +22 -19
  316. data/lib/wx/doc/gen/media_event.rb +8 -2
  317. data/lib/wx/doc/gen/memory_dc.rb +26 -33
  318. data/lib/wx/doc/gen/menu.rb +24 -25
  319. data/lib/wx/doc/gen/menu_bar.rb +11 -28
  320. data/lib/wx/doc/gen/menu_item.rb +127 -46
  321. data/lib/wx/doc/gen/message_dialog.rb +54 -36
  322. data/lib/wx/doc/gen/mini_frame.rb +14 -5
  323. data/lib/wx/doc/gen/mouse_state.rb +51 -11
  324. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  325. data/lib/wx/doc/gen/non_owned_window.rb +8 -9
  326. data/lib/wx/doc/gen/notebook.rb +27 -22
  327. data/lib/wx/doc/gen/number_entry_dialog.rb +3 -3
  328. data/lib/wx/doc/gen/object.rb +3 -14
  329. data/lib/wx/doc/gen/palette.rb +15 -17
  330. data/lib/wx/doc/gen/panel.rb +8 -7
  331. data/lib/wx/doc/gen/pen.rb +50 -37
  332. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +3 -3
  333. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +17 -17
  334. data/lib/wx/doc/gen/pg/pg_cell.rb +13 -16
  335. data/lib/wx/doc/gen/pg/pg_editor.rb +95 -93
  336. data/lib/wx/doc/gen/pg/pg_multi_button.rb +64 -89
  337. data/lib/wx/doc/gen/pg/pg_properties.rb +379 -349
  338. data/lib/wx/doc/gen/pg/pg_property.rb +260 -307
  339. data/lib/wx/doc/gen/pg/pg_validation_info.rb +3 -3
  340. data/lib/wx/doc/gen/pg/property_grid.rb +49 -49
  341. data/lib/wx/doc/gen/pg/property_grid_event.rb +24 -11
  342. data/lib/wx/doc/gen/pg/property_grid_interface.rb +75 -69
  343. data/lib/wx/doc/gen/pg/property_grid_manager.rb +51 -54
  344. data/lib/wx/doc/gen/pg/property_grid_page.rb +22 -30
  345. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +17 -26
  346. data/lib/wx/doc/gen/picker_base.rb +17 -16
  347. data/lib/wx/doc/gen/platform_info.rb +180 -20
  348. data/lib/wx/doc/gen/popup_window.rb +8 -8
  349. data/lib/wx/doc/gen/progress_dialog.rb +3 -3
  350. data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -18
  351. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  352. data/lib/wx/doc/gen/prt/preview_frame.rb +18 -2
  353. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  354. data/lib/wx/doc/gen/prt/print_data.rb +68 -62
  355. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  356. data/lib/wx/doc/gen/prt/printer.rb +44 -49
  357. data/lib/wx/doc/gen/query_layout_info_event.rb +6 -5
  358. data/lib/wx/doc/gen/radio_box.rb +21 -19
  359. data/lib/wx/doc/gen/radio_button.rb +13 -11
  360. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +67 -67
  361. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +38 -20
  362. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  363. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +22 -15
  364. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +6 -6
  365. data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -11
  366. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +14 -16
  367. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  368. data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -12
  369. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +24 -22
  370. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  371. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +17 -15
  372. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +6 -6
  373. data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
  374. data/lib/wx/doc/gen/rearrange_list.rb +99 -0
  375. data/lib/wx/doc/gen/region.rb +35 -43
  376. data/lib/wx/doc/gen/region_iterator.rb +3 -3
  377. data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
  378. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +626 -1538
  379. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
  380. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
  381. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +488 -503
  382. data/lib/wx/doc/gen/rtc/rich_text_event.rb +31 -12
  383. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +18 -18
  384. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
  385. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +23 -19
  386. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +9 -18
  387. data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
  388. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
  389. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
  390. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +29 -29
  391. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
  392. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
  393. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
  394. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
  395. data/lib/wx/doc/gen/sash_event.rb +8 -6
  396. data/lib/wx/doc/gen/sash_layout_window.rb +13 -11
  397. data/lib/wx/doc/gen/sash_window.rb +14 -9
  398. data/lib/wx/doc/gen/scroll_bar.rb +33 -12
  399. data/lib/wx/doc/gen/scrolled_canvas.rb +49 -37
  400. data/lib/wx/doc/gen/scrolled_control.rb +49 -37
  401. data/lib/wx/doc/gen/scrolled_window.rb +49 -37
  402. data/lib/wx/doc/gen/search_ctrl.rb +20 -13
  403. data/lib/wx/doc/gen/simplebook.rb +7 -7
  404. data/lib/wx/doc/gen/single_choice_dialog.rb +5 -4
  405. data/lib/wx/doc/gen/sizer.rb +69 -73
  406. data/lib/wx/doc/gen/sizer_item.rb +5 -5
  407. data/lib/wx/doc/gen/slider.rb +51 -18
  408. data/lib/wx/doc/gen/spin_button.rb +17 -11
  409. data/lib/wx/doc/gen/spin_ctrl.rb +15 -9
  410. data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
  411. data/lib/wx/doc/gen/spin_double_event.rb +53 -0
  412. data/lib/wx/doc/gen/spin_event.rb +5 -2
  413. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  414. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  415. data/lib/wx/doc/gen/splitter_window.rb +36 -16
  416. data/lib/wx/doc/gen/static_bitmap.rb +9 -9
  417. data/lib/wx/doc/gen/static_box.rb +41 -37
  418. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  419. data/lib/wx/doc/gen/static_line.rb +8 -7
  420. data/lib/wx/doc/gen/static_text.rb +15 -9
  421. data/lib/wx/doc/gen/status_bar.rb +53 -10
  422. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +200 -184
  423. data/lib/wx/doc/gen/stc/styled_text_event.rb +229 -54
  424. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  425. data/lib/wx/doc/gen/svg_file_dc.rb +8 -8
  426. data/lib/wx/doc/gen/system_options.rb +13 -3
  427. data/lib/wx/doc/gen/system_settings.rb +9 -9
  428. data/lib/wx/doc/gen/task_bar_icon.rb +17 -9
  429. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  430. data/lib/wx/doc/gen/text_attr.rb +67 -61
  431. data/lib/wx/doc/gen/text_ctrl.rb +58 -113
  432. data/lib/wx/doc/gen/text_entry.rb +44 -56
  433. data/lib/wx/doc/gen/text_entry_dialog.rb +23 -23
  434. data/lib/wx/doc/gen/text_validator.rb +3 -19
  435. data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -10
  436. data/lib/wx/doc/gen/timer.rb +13 -9
  437. data/lib/wx/doc/gen/timer_event.rb +19 -26
  438. data/lib/wx/doc/gen/tip_provider.rb +3 -3
  439. data/lib/wx/doc/gen/toggle_button.rb +10 -9
  440. data/lib/wx/doc/gen/tool_bar.rb +71 -61
  441. data/lib/wx/doc/gen/tool_tip.rb +2 -10
  442. data/lib/wx/doc/gen/toolbook.rb +12 -9
  443. data/lib/wx/doc/gen/top_level_window.rb +53 -113
  444. data/lib/wx/doc/gen/tree_ctrl.rb +83 -33
  445. data/lib/wx/doc/gen/tree_event.rb +24 -3
  446. data/lib/wx/doc/gen/treebook.rb +20 -16
  447. data/lib/wx/doc/gen/ui_action_simulator.rb +20 -19
  448. data/lib/wx/doc/gen/utils.rb +20 -14
  449. data/lib/wx/doc/gen/v_list_box.rb +11 -11
  450. data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
  451. data/lib/wx/doc/gen/validator.rb +10 -8
  452. data/lib/wx/doc/gen/variant.rb +56 -119
  453. data/lib/wx/doc/gen/window.rb +314 -224
  454. data/lib/wx/doc/gen/window_dc.rb +1 -1
  455. data/lib/wx/doc/gen/with_images.rb +2 -2
  456. data/lib/wx/doc/gen/wizard.rb +21 -8
  457. data/lib/wx/doc/gen/wizard_event.rb +11 -4
  458. data/lib/wx/doc/gen/wizard_page.rb +3 -3
  459. data/lib/wx/doc/gen/wizard_page_simple.rb +8 -8
  460. data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
  461. data/lib/wx/doc/gen/xml_node.rb +13 -13
  462. data/lib/wx/doc/gen/xml_resource.rb +24 -21
  463. data/lib/wx/doc/graphics_context.rb +59 -39
  464. data/lib/wx/doc/grid/grid.rb +16 -1
  465. data/lib/wx/doc/hboxsizer.rb +33 -0
  466. data/lib/wx/doc/help_controller.rb +6 -0
  467. data/lib/wx/doc/html/html_help_controller.rb +6 -0
  468. data/lib/wx/doc/icon.rb +13 -5
  469. data/lib/wx/doc/id_helper.rb +6 -0
  470. data/lib/wx/doc/image.rb +50 -12
  471. data/lib/wx/doc/list_ctrl.rb +38 -0
  472. data/lib/wx/doc/log.rb +45 -0
  473. data/lib/wx/doc/memory_dc.rb +6 -0
  474. data/lib/wx/doc/mirror_dc.rb +6 -0
  475. data/lib/wx/doc/pen.rb +6 -0
  476. data/lib/wx/doc/pg/events.rb +6 -0
  477. data/lib/wx/doc/pg/pg_property.rb +17 -0
  478. data/lib/wx/doc/pg/pgeditor.rb +6 -0
  479. data/lib/wx/doc/pg/property_grid.rb +6 -0
  480. data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
  481. data/lib/wx/doc/progress_dialog.rb +6 -0
  482. data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
  483. data/lib/wx/doc/prt/print_data.rb +6 -0
  484. data/lib/wx/doc/prt/print_dialog.rb +6 -0
  485. data/lib/wx/doc/prt/printer.rb +6 -0
  486. data/lib/wx/doc/prt/printer_dc.rb +8 -2
  487. data/lib/wx/doc/radio_box.rb +6 -0
  488. data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
  489. data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
  490. data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
  491. data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
  492. data/lib/wx/doc/region_iterator.rb +6 -0
  493. data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
  494. data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
  495. data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
  496. data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
  497. data/lib/wx/doc/scaled_dc.rb +7 -1
  498. data/lib/wx/doc/screen_dc.rb +6 -0
  499. data/lib/wx/doc/stock_objects.rb +6 -0
  500. data/lib/wx/doc/stream.rb +6 -0
  501. data/lib/wx/doc/svg_file_dc.rb +6 -0
  502. data/lib/wx/doc/system_settings.rb +6 -0
  503. data/lib/wx/doc/text_validator.rb +18 -0
  504. data/lib/wx/doc/textctrl.rb +89 -0
  505. data/lib/wx/doc/tree_event.rb +20 -0
  506. data/lib/wx/doc/treebook.rb +6 -0
  507. data/lib/wx/doc/v_list_box.rb +6 -0
  508. data/lib/wx/doc/variant.rb +6 -0
  509. data/lib/wx/doc/vboxsizer.rb +33 -0
  510. data/lib/wx/doc/window.rb +6 -0
  511. data/lib/wx/doc/window_disabler.rb +6 -0
  512. data/lib/wx/doc/xml_resource.rb +8 -0
  513. data/lib/wx/global_const.rb +4 -1
  514. data/lib/wx/grid/grid.rb +23 -3
  515. data/lib/wx/grid/keyword_defs.rb +8 -1
  516. data/lib/wx/grid/require.rb +4 -1
  517. data/lib/wx/grid.rb +4 -1
  518. data/lib/wx/helpers.rb +8 -1
  519. data/lib/wx/html/htmlhelpcontroller.rb +29 -3
  520. data/lib/wx/html/htmlwindow.rb +23 -12
  521. data/lib/wx/html/keyword_defs.rb +8 -1
  522. data/lib/wx/html/require.rb +4 -1
  523. data/lib/wx/html/simple_html_listbox.rb +3 -0
  524. data/lib/wx/html.rb +4 -1
  525. data/lib/wx/keyword_ctors.rb +22 -3
  526. data/lib/wx/keyword_defs.rb +55 -3
  527. data/lib/wx/pg/events.rb +4 -1
  528. data/lib/wx/pg/keyword_defs.rb +8 -1
  529. data/lib/wx/pg/pg_editor.rb +3 -0
  530. data/lib/wx/pg/pg_properties.rb +4 -1
  531. data/lib/wx/pg/pg_property.rb +18 -5
  532. data/lib/wx/pg/property_grid.rb +4 -1
  533. data/lib/wx/pg/property_grid_interface.rb +3 -0
  534. data/lib/wx/pg/require.rb +4 -1
  535. data/lib/wx/pg.rb +4 -1
  536. data/lib/wx/prt/keyword_defs.rb +8 -1
  537. data/lib/wx/prt/page_setup_dialog.rb +3 -0
  538. data/lib/wx/prt/previewframe.rb +5 -0
  539. data/lib/wx/prt/require.rb +4 -1
  540. data/lib/wx/prt.rb +4 -1
  541. data/lib/wx/rbn/events.rb +4 -1
  542. data/lib/wx/rbn/keyword_defs.rb +8 -1
  543. data/lib/wx/rbn/require.rb +5 -1
  544. data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
  545. data/lib/wx/rbn/ribbon_bar.rb +3 -0
  546. data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
  547. data/lib/wx/rbn/ribbon_control.rb +3 -0
  548. data/lib/wx/rbn/ribbon_gallery.rb +10 -0
  549. data/lib/wx/rbn/ribbon_page.rb +3 -0
  550. data/lib/wx/rbn/ribbon_panel.rb +3 -0
  551. data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
  552. data/lib/wx/rbn.rb +4 -1
  553. data/lib/wx/rtc/ext.rb +4 -1
  554. data/lib/wx/rtc/keyword_defs.rb +18 -7
  555. data/lib/wx/rtc/require.rb +8 -1
  556. data/lib/wx/rtc/richtext_buffer.rb +36 -0
  557. data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
  558. data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
  559. data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
  560. data/lib/wx/rtc.rb +5 -1
  561. data/lib/wx/stc/keyword_defs.rb +8 -1
  562. data/lib/wx/stc/require.rb +4 -1
  563. data/lib/wx/stc.rb +4 -1
  564. data/lib/wx/version.rb +5 -1
  565. data/lib/wx/wxruby/base.rb +4 -1
  566. data/lib/wx/wxruby/cmd/sampler.rb +4 -1
  567. data/lib/wx/wxruby/cmd/test.rb +4 -1
  568. data/lib/wx.rb +4 -1
  569. data/lib/wxruby_aui.so +0 -0
  570. data/lib/wxruby_core.so +0 -0
  571. data/lib/wxruby_grid.so +0 -0
  572. data/lib/wxruby_html.so +0 -0
  573. data/lib/wxruby_pg.so +0 -0
  574. data/lib/wxruby_prt.so +0 -0
  575. data/lib/wxruby_rbn.so +0 -0
  576. data/lib/wxruby_rtc.so +0 -0
  577. data/lib/wxruby_stc.so +0 -0
  578. data/rakelib/install.rb +4 -1
  579. data/rakelib/lib/config/cygwin.rb +4 -1
  580. data/rakelib/lib/config/linux.rb +4 -1
  581. data/rakelib/lib/config/macosx.rb +5 -2
  582. data/rakelib/lib/config/mingw.rb +4 -1
  583. data/rakelib/lib/config/netbsd.rb +4 -1
  584. data/rakelib/lib/config/unixish.rb +10 -7
  585. data/rakelib/lib/config.rb +7 -2
  586. data/rakelib/lib/ext/enum_chain.rb +4 -1
  587. data/rakelib/prepost.rake +4 -1
  588. data/rakelib/prepost.rb +4 -1
  589. data/samples/aui/aui.rb +8 -3
  590. data/samples/bigdemo/bigdemo.rb +9 -2
  591. data/samples/bigdemo/run.rb +9 -2
  592. data/samples/bigdemo/utils.rb +9 -1
  593. data/samples/calendar/calendar.rb +9 -4
  594. data/samples/caret/caret.rb +8 -3
  595. data/samples/controls/books.rb +8 -2
  596. data/samples/controls/controls.rb +33 -77
  597. data/samples/controls/get_item_sample.rb +8 -2
  598. data/samples/controls/htlbox.rb +10 -3
  599. data/samples/dialogs/dialogs.rb +9 -4
  600. data/samples/dialogs/wizard.rb +8 -3
  601. data/samples/dragdrop/dragdrop.rb +8 -3
  602. data/samples/drawing/bitmap.rb +8 -3
  603. data/samples/drawing/bitmap_image.rb +8 -3
  604. data/samples/drawing/graphics_drawing.rb +44 -33
  605. data/samples/drawing/image_prt.rb +8 -2
  606. data/samples/drawing/maths_images.rb +8 -3
  607. data/samples/drawing/rmagic_bitmap_image.rb +8 -3
  608. data/samples/etc/choice.rb +8 -3
  609. data/samples/etc/miniframe.rb +8 -3
  610. data/samples/etc/sash.rb +8 -3
  611. data/samples/etc/scrollwin.rb +8 -3
  612. data/samples/etc/system_settings.rb +8 -3
  613. data/samples/event/activation.rb +8 -3
  614. data/samples/event/event.rb +8 -3
  615. data/samples/event/threaded.rb +8 -3
  616. data/samples/event/update_ui_event.rb +8 -3
  617. data/samples/grid/grid.rb +9 -3
  618. data/samples/grid/gridtablebase.rb +8 -3
  619. data/samples/html/html.rb +8 -3
  620. data/samples/mdi/mdi.rb +8 -3
  621. data/samples/minimal/minimal.rb +8 -3
  622. data/samples/minimal/nothing.rb +8 -3
  623. data/samples/printing/printing.rb +8 -3
  624. data/samples/printing/printing2.rb +8 -2
  625. data/samples/propgrid/propgrid.rb +4 -1
  626. data/samples/propgrid/propgrid_minimal.rb +4 -2
  627. data/samples/propgrid/sample_props.rb +4 -1
  628. data/samples/ribbon/ribbon.rb +4 -1
  629. data/samples/sampler/editor.rb +4 -1
  630. data/samples/sampler/ext.rb +4 -1
  631. data/samples/sampler/sample.rb +13 -4
  632. data/samples/sampler/stc_editor.rb +4 -1
  633. data/samples/sampler/txt_editor.rb +4 -1
  634. data/samples/sampler.rb +11 -3
  635. data/samples/splash/splash.rb +4 -2
  636. data/samples/text/art/richtext/alignleft.xpm +24 -0
  637. data/samples/text/art/richtext/alignright.xpm +24 -0
  638. data/samples/text/art/richtext/bold.xpm +24 -0
  639. data/samples/text/art/richtext/centre.xpm +24 -0
  640. data/samples/text/art/richtext/copy.xpm +45 -0
  641. data/samples/text/art/richtext/cut.xpm +47 -0
  642. data/samples/text/art/richtext/font.xpm +25 -0
  643. data/samples/text/art/richtext/idea.xpm +47 -0
  644. data/samples/text/art/richtext/indentless.xpm +25 -0
  645. data/samples/text/art/richtext/indentmore.xpm +25 -0
  646. data/samples/text/art/richtext/italic.xpm +25 -0
  647. data/samples/text/art/richtext/open.xpm +58 -0
  648. data/samples/text/art/richtext/paste.xpm +47 -0
  649. data/samples/text/art/richtext/redo.xpm +59 -0
  650. data/samples/text/art/richtext/save.xpm +43 -0
  651. data/samples/text/art/richtext/smiley.xpm +42 -0
  652. data/samples/text/art/richtext/underline.xpm +25 -0
  653. data/samples/text/art/richtext/undo.xpm +59 -0
  654. data/samples/text/art/richtext/zebra.xpm +409 -0
  655. data/samples/text/rich_textctrl.rb +8 -3
  656. data/samples/text/richtext.rb +1824 -0
  657. data/samples/text/scintilla.rb +8 -3
  658. data/samples/text/textctrl.rb +21 -4
  659. data/samples/text/tn_richtext.png +0 -0
  660. data/samples/text/unicode.rb +9 -4
  661. data/samples/treectrl/treectrl.rb +10 -5
  662. data/samples/xrc/custom_xrc_sample.rb +8 -3
  663. data/samples/xrc/xrc_sample.rb +8 -3
  664. data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
  665. data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
  666. data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
  667. data/tests/lib/item_container_tests.rb +3 -0
  668. data/tests/lib/text_entry_tests.rb +3 -0
  669. data/tests/lib/wxapp_runner.rb +3 -0
  670. data/tests/lib/wxframe_runner.rb +81 -3
  671. data/tests/test_app_event_filter.rb +3 -0
  672. data/tests/test_app_traits.rb +33 -0
  673. data/tests/test_art.rb +31 -0
  674. data/tests/test_art_provider.rb +3 -0
  675. data/tests/test_aui.rb +65 -0
  676. data/tests/test_basic.rb +5 -1
  677. data/tests/test_box_sizer.rb +164 -0
  678. data/tests/test_clipboard.rb +3 -0
  679. data/tests/test_config.rb +150 -0
  680. data/tests/test_dc.rb +3 -0
  681. data/tests/test_dialog.rb +3 -0
  682. data/tests/test_event_handling.rb +3 -0
  683. data/tests/test_events.rb +3 -0
  684. data/tests/test_ext_controls.rb +286 -3
  685. data/tests/test_file_dialog.rb +55 -0
  686. data/tests/test_font.rb +8 -5
  687. data/tests/test_gdi_object.rb +3 -0
  688. data/tests/test_geometry.rb +4 -0
  689. data/tests/test_grid_sizer.rb +151 -0
  690. data/tests/test_intl.rb +3 -0
  691. data/tests/test_item_data.rb +3 -0
  692. data/tests/test_list_ctrl.rb +56 -0
  693. data/tests/test_log.rb +226 -0
  694. data/tests/test_proof_check.rb +52 -0
  695. data/tests/test_richtext.rb +204 -0
  696. data/tests/test_std_controls.rb +99 -31
  697. data/tests/test_timer.rb +98 -0
  698. data/tests/test_variant.rb +3 -0
  699. data/tests/test_window.rb +10 -8
  700. data/tests/testapp.rb +4 -0
  701. data/tests/testapp_noframe.rb +4 -0
  702. metadata +87 -3
  703. data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
@@ -319,7 +319,7 @@ module Wx
319
319
  # Virtual list control can be used as a normal one except that no operations which can take time proportional to the number of items in the control happen this is required to allow having a practically infinite number of items. For example, in a multiple selection virtual list control, the selections won't be sent when many items are selected at once because this could mean iterating over all the items.
320
320
  # Using many of {Wx::ListCtrl} features is shown in the corresponding sample.
321
321
  # To intercept events from a list control, use the event table macros described in {Wx::ListEvent}.
322
- # The native {Wx::OSX} implementation for report mode that was added in wxWidgets 2.8 was removed in wxWidgets 3.1, meaning for wxWidgets 3.1+ {Wx::OSX} uses the generic implementation for all modes.
322
+ # The native wxOSX implementation for report mode that was added in wxWidgets 2.8 was removed in wxWidgets 3.1, meaning for wxWidgets 3.1+ wxOSX uses the generic implementation for all modes.
323
323
  #
324
324
  # == Column Ordering
325
325
  #
@@ -328,77 +328,109 @@ module Wx
328
328
  # All the other functions still work with the column indices, i.e. the visual positioning of the columns on screen doesn't affect the code setting or getting their values for example.
329
329
  #
330
330
  # Example of reordering columns:
331
- # ```
332
- # wxListCtrl *list = new wxListCtrl(...);
333
- # for ( int i = 0; i < 3; i++ )
334
- # list->InsertColumn(i, wxString::Format("Column %d", i));
331
+ # ```ruby
332
+ # list = Wx::ListCtrl.new(...)
333
+ # 3.times { |i| list.insert_column(i, "Column #{i}") }
335
334
  #
336
- # wxArrayInt order(3);
337
- # order[0] = 2;
338
- # order[1] = 0;
339
- # order[2] = 1;
340
- # list->SetColumnsOrder(order);
335
+ # order = [2, 0, 1]
336
+ # list.set_columns_order(order)
341
337
  #
342
- # // now list->GetColumnsOrder() will return order and
343
- # // list->GetColumnIndexFromOrder(n) will return order[n] and
344
- # // list->GetColumnOrder() will return 1, 2 and 0 for the column 0,
345
- # // 1 and 2 respectively
338
+ # # now list.get_columns_order() will return order and
339
+ # # list.get_column_index_from_order(n) will return order[n] and
340
+ # # list.get_column_order() will return 1, 2 and 0 for the column 0,
341
+ # # 1 and 2 respectively
346
342
  # ```
347
343
  #
348
344
  # === Styles
349
345
  #
350
346
  # This class supports the following styles:
351
- #
347
+ #
352
348
  # - {Wx::LC_LIST}: Multicolumn list view, with optional small icons. Columns are computed automatically, i.e. you don't set columns as in {Wx::LC_REPORT}. In other words, the list wraps, unlike a {Wx::ListBox}.
349
+ #
353
350
  # - {Wx::LC_REPORT}: Single or multicolumn report view, with optional header.
351
+ #
354
352
  # - {Wx::LC_VIRTUAL}: The application provides items text on demand. May only be used with {Wx::LC_REPORT}.
353
+ #
355
354
  # - {Wx::LC_ICON}: Large icon view, with optional labels.
355
+ #
356
356
  # - {Wx::LC_SMALL_ICON}: Small icon view, with optional labels.
357
+ #
357
358
  # - {Wx::LC_ALIGN_TOP}: Icons align to the top. Win32 default, Win32 only.
359
+ #
358
360
  # - {Wx::LC_ALIGN_LEFT}: Icons align to the left.
361
+ #
359
362
  # - {Wx::LC_AUTOARRANGE}: Icons arrange themselves. Win32 only.
363
+ #
360
364
  # - {Wx::LC_EDIT_LABELS}: Labels are editable: the application will be notified when editing starts.
365
+ #
361
366
  # - {Wx::LC_NO_HEADER}: No header in report mode.
367
+ #
362
368
  # - {Wx::LC_SINGLE_SEL}: Single selection (default is multiple).
369
+ #
363
370
  # - {Wx::LC_SORT_ASCENDING}: Sort in ascending order. (You must still supply a comparison callback in {Wx::ListCtrl#sort_items}.)
371
+ #
364
372
  # - {Wx::LC_SORT_DESCENDING}: Sort in descending order. (You must still supply a comparison callback in {Wx::ListCtrl#sort_items}.)
373
+ #
365
374
  # - {Wx::LC_HRULES}: Draws light horizontal rules between rows in report mode.
375
+ #
366
376
  # - {Wx::LC_VRULES}: Draws light vertical rules between columns in report mode.
367
377
  #
368
378
  # === Events emitted by this class
369
379
  #
370
380
  # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ListEvent} events.
371
381
  # Event handler methods for events emitted by this class:
382
+ #
372
383
  # - {Wx::EvtHandler#evt_list_begin_drag}(id, meth = nil, &block): Begin dragging with the left mouse button. Processes a {Wx::EVT_LIST_BEGIN_DRAG} event type.
384
+ #
373
385
  # - {Wx::EvtHandler#evt_list_begin_rdrag}(id, meth = nil, &block): Begin dragging with the right mouse button. Processes a {Wx::EVT_LIST_BEGIN_RDRAG} event type.
386
+ #
374
387
  # - {Wx::EvtHandler#evt_list_begin_label_edit}(id, meth = nil, &block): Begin editing a label. This can be prevented by calling Veto(). Processes a {Wx::EVT_LIST_BEGIN_LABEL_EDIT} event type.
388
+ #
375
389
  # - {Wx::EvtHandler#evt_list_end_label_edit}(id, meth = nil, &block): Finish editing a label. This can be prevented by calling Veto(). Processes a {Wx::EVT_LIST_END_LABEL_EDIT} event type.
390
+ #
376
391
  # - {Wx::EvtHandler#evt_list_delete_item}(id, meth = nil, &block): An item was deleted. Processes a {Wx::EVT_LIST_DELETE_ITEM} event type.
392
+ #
377
393
  # - {Wx::EvtHandler#evt_list_delete_all_items}(id, meth = nil, &block): All items were deleted. Processes a {Wx::EVT_LIST_DELETE_ALL_ITEMS} event type.
394
+ #
378
395
  # - {Wx::EvtHandler#evt_list_item_selected}(id, meth = nil, &block): The item has been selected. Notice that the mouse is captured by the control itself when this event is generated, see event handling overview. Processes a {Wx::EVT_LIST_ITEM_SELECTED} event type.
396
+ #
379
397
  # - {Wx::EvtHandler#evt_list_item_deselected}(id, meth = nil, &block): The item has been deselected. Processes a {Wx::EVT_LIST_ITEM_DESELECTED} event type.
398
+ #
380
399
  # - {Wx::EvtHandler#evt_list_item_activated}(id, meth = nil, &block): The item has been activated (ENTER or double click). Processes a {Wx::EVT_LIST_ITEM_ACTIVATED} event type.
400
+ #
381
401
  # - {Wx::EvtHandler#evt_list_item_focused}(id, meth = nil, &block): The currently focused item has changed. Processes a {Wx::EVT_LIST_ITEM_FOCUSED} event type.
402
+ #
382
403
  # - {Wx::EvtHandler#evt_list_item_middle_click}(id, meth = nil, &block): The middle mouse button has been clicked on an item. This is only supported by the generic control. Processes a {Wx::EVT_LIST_ITEM_MIDDLE_CLICK} event type.
404
+ #
383
405
  # - {Wx::EvtHandler#evt_list_item_right_click}(id, meth = nil, &block): The right mouse button has been clicked on an item. Processes a {Wx::EVT_LIST_ITEM_RIGHT_CLICK} event type.
406
+ #
384
407
  # - {Wx::EvtHandler#evt_list_key_down}(id, meth = nil, &block): A key has been pressed. Processes a {Wx::EVT_LIST_KEY_DOWN} event type.
408
+ #
385
409
  # - {Wx::EvtHandler#evt_list_insert_item}(id, meth = nil, &block): An item has been inserted. Processes a {Wx::EVT_LIST_INSERT_ITEM} event type.
410
+ #
386
411
  # - {Wx::EvtHandler#evt_list_col_click}(id, meth = nil, &block): A column (m_col) has been left-clicked. Processes a {Wx::EVT_LIST_COL_CLICK} event type.
412
+ #
387
413
  # - {Wx::EvtHandler#evt_list_col_right_click}(id, meth = nil, &block): A column (m_col) has been right-clicked. Processes a {Wx::EVT_LIST_COL_RIGHT_CLICK} event type.
414
+ #
388
415
  # - {Wx::EvtHandler#evt_list_col_begin_drag}(id, meth = nil, &block): The user started resizing a column - can be vetoed. Processes a {Wx::EVT_LIST_COL_BEGIN_DRAG} event type.
416
+ #
389
417
  # - {Wx::EvtHandler#evt_list_col_dragging}(id, meth = nil, &block): The divider between columns is being dragged. Processes a {Wx::EVT_LIST_COL_DRAGGING} event type.
418
+ #
390
419
  # - {Wx::EvtHandler#evt_list_col_end_drag}(id, meth = nil, &block): A column has been resized by the user. Processes a {Wx::EVT_LIST_COL_END_DRAG} event type.
420
+ #
391
421
  # - {Wx::EvtHandler#evt_list_cache_hint}(id, meth = nil, &block): Prepare cache for a virtual list control. Processes a {Wx::EVT_LIST_CACHE_HINT} event type.
422
+ #
392
423
  # - {Wx::EvtHandler#evt_list_item_checked}(id, meth = nil, &block): The item has been checked. Processes a {Wx::EVT_LIST_ITEM_CHECKED} event type (new since wxWidgets 3.1.0).
424
+ #
393
425
  # - {Wx::EvtHandler#evt_list_item_unchecked}(id, meth = nil, &block): The item has been unchecked. Processes a {Wx::EVT_LIST_ITEM_UNCHECKED} event type (new since wxWidgets 3.1.0).
394
426
  #
395
- # Under {Wx::MSW} this control uses {Wx::SystemThemedControl} for an explorer style appearance by default since wxWidgets 3.1.0. If this is not desired, you can call Wx::SystemThemedControl::EnableSystemTheme with false argument to disable this.
427
+ # Under wxMSW this control uses {Wx::SystemThemedControl} for an explorer style appearance by default since wxWidgets 3.1.0. If this is not desired, you can call Wx::SystemThemedControl::EnableSystemTheme with false argument to disable this.
396
428
  #
397
429
  # ===
398
430
  #
399
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
400
- # </td><td> {Wx::GTK} Appearance
401
- # </td><td> {Wx::OSX} Appearance
431
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
432
+ # </td><td> wxGTK Appearance
433
+ # </td><td> wxOSX Appearance
402
434
  # </td></tr></table></div>
403
435
  # @see wxListCtrl Overview
404
436
  # @see Wx::ListView
@@ -414,7 +446,7 @@ module Wx
414
446
 
415
447
  # @overload initialize()
416
448
  # Default constructor.
417
- # @return [ListCtrl]
449
+ # @return [Wx::ListCtrl]
418
450
  # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_ICON, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListCtrlNameStr)
419
451
  # Constructor, creating and showing a list control.
420
452
  #
@@ -427,22 +459,26 @@ module Wx
427
459
  # @param style [Integer] Window style. See {Wx::ListCtrl}.
428
460
  # @param validator [Wx::Validator] Window validator.
429
461
  # @param name [String] Window name.
430
- # @return [ListCtrl]
462
+ # @return [Wx::ListCtrl]
431
463
  def initialize(*args) end
432
464
 
433
465
  # Adds a new column to the list control in report view mode.
434
466
  # This is just a convenient wrapper for {Wx::ListCtrl#insert_column} which adds the new column after all the existing ones without having to specify its position explicitly.
435
467
  # @param heading [String]
436
- # @param format [ListColumnFormat]
468
+ # @param format [Wx::ListColumnFormat]
437
469
  # @param width [Integer]
438
470
  # @return [Integer]
439
471
  def append_column(heading, format=Wx::ListColumnFormat::LIST_FORMAT_LEFT, width=-1) end
440
472
 
441
473
  # Arranges the items in icon or small icon view.
442
474
  # This only has effect on Win32. flag is one of:
443
- # - {Wx::LIST_ALIGN_DEFAULT}: Default alignment.- {Wx::LIST_ALIGN_LEFT}: Align to the left side of the control.- {Wx::LIST_ALIGN_TOP}: Align to the top side of the control.- {Wx::LIST_ALIGN_SNAP_TO_GRID}: Snap to grid.
475
+ #
476
+ # - {Wx::LIST_ALIGN_DEFAULT}: Default alignment.
477
+ # - {Wx::LIST_ALIGN_LEFT}: Align to the left side of the control.
478
+ # - {Wx::LIST_ALIGN_TOP}: Align to the top side of the control.
479
+ # - {Wx::LIST_ALIGN_SNAP_TO_GRID}: Snap to grid.
444
480
  # @param flag [Integer]
445
- # @return [true,false]
481
+ # @return [Boolean]
446
482
  def arrange(flag=Wx::LIST_ALIGN_DEFAULT) end
447
483
 
448
484
  # Deletes all items and all columns.
@@ -451,7 +487,7 @@ module Wx
451
487
  def clear_all; end
452
488
 
453
489
  # Creates the list control.
454
- # See {Wx::ListCtrl#list_ctrl} for further details.
490
+ # See {Wx::ListCtrl#initialize} for further details.
455
491
  # @param parent [Wx::Window]
456
492
  # @param id [Integer]
457
493
  # @param pos [Array(Integer, Integer), Wx::Point]
@@ -459,59 +495,59 @@ module Wx
459
495
  # @param style [Integer]
460
496
  # @param validator [Wx::Validator]
461
497
  # @param name [String]
462
- # @return [true,false]
498
+ # @return [Boolean]
463
499
  def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_ICON, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListCtrlNameStr) end
464
500
 
465
501
  # Delete all columns in the list control.
466
502
  # true if all columns were successfully deleted, false otherwise.
467
- # @return [true,false]
503
+ # @return [Boolean]
468
504
  def delete_all_columns; end
469
505
 
470
506
  # Deletes all items in the list control.
471
507
  # This function does not send the {Wx::EVT_LIST_DELETE_ITEM} event because deleting many items from the control would be too slow then (unlike {Wx::ListCtrl#delete_item}) but it does send the special {Wx::EVT_LIST_DELETE_ALL_ITEMS} event if the control was not empty. If it was already empty, nothing is done and no event is sent.
472
508
  # true if the items were successfully deleted or if the control was already empty, false if an error occurred while deleting the items.
473
- # @return [true,false]
509
+ # @return [Boolean]
474
510
  def delete_all_items; end
475
511
 
476
512
  # Deletes a column.
477
513
  # @param col [Integer]
478
- # @return [true,false]
514
+ # @return [Boolean]
479
515
  def delete_column(col) end
480
516
 
481
517
  # Deletes the specified item.
482
518
  # This function sends the {Wx::EVT_LIST_DELETE_ITEM} event for the item being deleted.
483
519
  # @see Wx::ListCtrl#delete_all_items
484
520
  # @param item [Integer]
485
- # @return [true,false]
521
+ # @return [Boolean]
486
522
  def delete_item(item) end
487
523
 
488
524
  # Enable alternating row background colours (also called zebra striping).
489
525
  # This method can only be called for the control in virtual report mode, i.e. having {Wx::LC_REPORT} and {Wx::LC_VIRTUAL} styles.
490
526
  # When enabling alternating colours, the appropriate colour for the even rows is chosen automatically depending on the default foreground and background colours which are used for the odd rows.
491
527
  # @see Wx::ListCtrl#set_alternate_row_colour
492
- # @param enable [true,false] If true, enable alternating row background colours, i.e. different colours for the odd and even rows. If false, disable this feature and use the same background colour for all rows.
528
+ # @param enable [Boolean] If true, enable alternating row background colours, i.e. different colours for the odd and even rows. If false, disable this feature and use the same background colour for all rows.
493
529
  # @return [void]
494
530
  def enable_alternate_row_colours(enable=true) end
495
531
 
496
532
  # Enable or disable a beep if there is no match for the currently entered text when searching for the item from keyboard.
497
- # The default is to not beep in this case except in {Wx::MSW} where the beep is always generated by the native control and cannot be disabled, i.e. calls to this function do nothing there.
498
- # @param on [true,false]
533
+ # The default is to not beep in this case except in wxMSW where the beep is always generated by the native control and cannot be disabled, i.e. calls to this function do nothing there.
534
+ # @param on [Boolean]
499
535
  # @return [void]
500
536
  def enable_bell_on_no_match(on=true) end
501
537
 
502
538
  # Finish editing the label.
503
539
  # This method allows one to programmatically end editing a list control item in place. Usually it will only be called when editing is in progress, i.e. if {Wx::ListCtrl#get_edit_control} returns non-NULL. In particular, do not call it from EVT_LIST_BEGIN_LABEL_EDIT handler as the edit control is not yet fully created by then, just veto the event in this handler instead to prevent the editing from even starting.
504
540
  # Notice that calling this method will result in EVT_LIST_END_LABEL_EDIT event being generated.
505
- # Currently only implemented in {Wx::MSW}.
541
+ # Currently only implemented in wxMSW.
506
542
  #
507
543
  # true if item editing was finished or false if no item as being edited.
508
- # @param cancel [true,false] If true, discard the changes made by user, as if Escape key was pressed. Otherwise, accept the changes as if Return was pressed.
509
- # @return [true,false]
544
+ # @param cancel [Boolean] If true, discard the changes made by user, as if Escape key was pressed. Otherwise, accept the changes as if Return was pressed.
545
+ # @return [Boolean]
510
546
  def end_edit_label(cancel) end
511
547
 
512
548
  # Ensures this item is visible.
513
549
  # @param item [Integer]
514
- # @return [true,false]
550
+ # @return [Boolean]
515
551
  def ensure_visible(item) end
516
552
 
517
553
  # @overload find_item(start, str, partial=false)
@@ -521,7 +557,7 @@ module Wx
521
557
  # The next matching item if any or <code>-1</code> ({Wx::NOT_FOUND}) otherwise.
522
558
  # @param start [Integer]
523
559
  # @param str [String]
524
- # @param partial [true,false]
560
+ # @param partial [Boolean]
525
561
  # @return [Integer]
526
562
  # @overload find_item(start, data)
527
563
  # Find an item whose data matches this data, starting from start or the beginning if 'start' is <code>-1</code>.
@@ -542,7 +578,7 @@ module Wx
542
578
  # See {Wx::ListCtrl#set_item} for more information.
543
579
  # @param col [Integer]
544
580
  # @param item [Wx::ListItem]
545
- # @return [true,false]
581
+ # @return [Boolean]
546
582
  def get_column(col, item) end
547
583
  alias_method :column, :get_column
548
584
 
@@ -552,40 +588,12 @@ module Wx
552
588
  def get_column_count; end
553
589
  alias_method :column_count, :get_column_count
554
590
 
555
- # Gets the column index from its position in visual order.
556
- # After calling {Wx::ListCtrl#set_columns_order}, the index returned by this function corresponds to the value of the element number pos in the array returned by {Wx::ListCtrl#get_columns_order}.
557
- # This function makes sense for report view only and currently is only implemented in the {Wx::MSW} port. Use {Wx::HAS_LISTCTRL_COLUMN_ORDER} to guard uses of this function so that they will start working under the other platforms when support for the column reordering is added there.
558
- # @see Wx::ListCtrl#get_column_order
559
- # @param pos [Integer]
560
- # @return [Integer]
561
- def get_column_index_from_order(pos) end
562
- alias_method :column_index_from_order, :get_column_index_from_order
563
-
564
- # Gets the column visual order position.
565
- # This function returns the index of the column which appears at the given visual position, e.g. calling it with col equal to 0 returns the index of the first shown column.
566
- # This function makes sense for report view only and currently is only implemented in the {Wx::MSW} port. Use {Wx::HAS_LISTCTRL_COLUMN_ORDER} to guard uses of this function so that they will start working under the other platforms when support for the column reordering is added there.
567
- # @see Wx::ListCtrl#get_columns_order
568
- # @see Wx::ListCtrl#get_column_index_from_order
569
- # @param col [Integer]
570
- # @return [Integer]
571
- def get_column_order(col) end
572
- alias_method :column_order, :get_column_order
573
-
574
591
  # Gets the column width (report view only).
575
592
  # @param col [Integer]
576
593
  # @return [Integer]
577
594
  def get_column_width(col) end
578
595
  alias_method :column_width, :get_column_width
579
596
 
580
- # Returns the array containing the orders of all columns.
581
- # On error, an empty array is returned.
582
- # This function makes sense for report view only and currently is only implemented in the {Wx::MSW} port. Use {Wx::HAS_LISTCTRL_COLUMN_ORDER} to guard uses of this function so that they will start working under the other platforms when support for the column reordering is added there.
583
- # @see Wx::ListCtrl#get_column_order
584
- # @see Wx::ListCtrl#get_column_index_from_order
585
- # @return [Array<Integer>]
586
- def get_columns_order; end
587
- alias_method :columns_order, :get_columns_order
588
-
589
597
  # Gets the number of items that can fit vertically in the visible area of the list control (list or report view) or the total number of items in the list control (icon or small icon view).
590
598
  # @return [Integer]
591
599
  def get_count_per_page; end
@@ -593,14 +601,17 @@ module Wx
593
601
 
594
602
  # Returns the edit control being currently used to edit a label.
595
603
  # Returns NULL if no label is being edited.
596
- # It is currently only implemented for {Wx::MSW} and the generic version, not for the native macOS version.
604
+ # It is currently only implemented for wxMSW and the generic version, not for the native macOS version.
597
605
  # @return [Wx::TextCtrl]
598
606
  def get_edit_control; end
599
607
  alias_method :edit_control, :get_edit_control
600
608
 
601
609
  # Returns the specified image list.
602
610
  # which may be one of:
603
- # - {Wx::IMAGE_LIST_NORMAL}: The normal (large icon) image list.- {Wx::IMAGE_LIST_SMALL}: The small icon image list.- {Wx::IMAGE_LIST_STATE}: The user-defined state image list (unimplemented).
611
+ #
612
+ # - {Wx::IMAGE_LIST_NORMAL}: The normal (large icon) image list.
613
+ # - {Wx::IMAGE_LIST_SMALL}: The small icon image list.
614
+ # - {Wx::IMAGE_LIST_STATE}: The user-defined state image list (unimplemented).
604
615
  # @param which [Integer]
605
616
  # @return [Wx::ImageList]
606
617
  def get_image_list(which) end
@@ -628,7 +639,7 @@ module Wx
628
639
  # Returns the position of the item, in icon or small icon view.
629
640
  # @param item [Integer]
630
641
  # @param pos [Array(Integer, Integer), Wx::Point]
631
- # @return [true,false]
642
+ # @return [Boolean]
632
643
  def get_item_position(item, pos) end
633
644
  alias_method :item_position, :get_item_position
634
645
 
@@ -636,7 +647,7 @@ module Wx
636
647
  # code is one of {Wx::LIST_RECT_BOUNDS}, {Wx::LIST_RECT_ICON}, {Wx::LIST_RECT_LABEL}.
637
648
  # @param item [Integer]
638
649
  # @param code [Integer]
639
- # @return [Array(true,false,Wx::Rect)]
650
+ # @return [Array(Boolean,Wx::Rect)]
640
651
  def get_item_rect(item, code=Wx::LIST_RECT_BOUNDS) end
641
652
  alias_method :item_rect, :get_item_rect
642
653
 
@@ -670,28 +681,36 @@ module Wx
670
681
  # Searches for an item with the given geometry or state, starting from item but excluding the item itself.
671
682
  # If item is -1, the first item that matches the specified flags will be returned. Returns the first item with given state following item or -1 if no such item found. This function may be used to find all selected items in the control like this:
672
683
  #
673
- # ```
674
- # long item = -1;
675
- # for ( ;; )
676
- # {
677
- # item = listctrl->GetNextItem(item,
678
- # wxLIST_NEXT_ALL,
679
- # wxLIST_STATE_SELECTED);
680
- # if ( item == -1 )
681
- # break;
682
- #
683
- # // this item is selected - do whatever is needed with it
684
- # wxLogMessage("Item %ld is selected.", item);
685
- # }
684
+ # ```ruby
685
+ # item = -1
686
+ # while (item = list_ctrl.get_next_item(item, Wx::LIST_NEXT_ALL, Wx::LIST_STATE_SELECTED)) != -1
687
+ # # item is selected - do whatever is needed with it
688
+ # Wx.log_message("Item #{item} is selected.")
689
+ # end
690
+ #
691
+ # # alternatively in wxRuby you could do
692
+ # list_ctrl.each_selected do |item|
693
+ # Wx.log_message("Item #{item} is selected.")
694
+ # end
686
695
  # ```
687
696
  #
688
697
  # geometry can be one of:
689
- # - {Wx::LIST_NEXT_ABOVE}: Searches for an item above the specified item.- {Wx::LIST_NEXT_ALL}: Searches for subsequent item by index.- {Wx::LIST_NEXT_BELOW}: Searches for an item below the specified item.- {Wx::LIST_NEXT_LEFT}: Searches for an item to the left of the specified item.- {Wx::LIST_NEXT_RIGHT}: Searches for an item to the right of the specified item.
690
698
  #
691
- # this parameter is only supported by {Wx::MSW} currently and ignored on other platforms.
699
+ # - {Wx::LIST_NEXT_ABOVE}: Searches for an item above the specified item.
700
+ # - {Wx::LIST_NEXT_ALL}: Searches for subsequent item by index.
701
+ # - {Wx::LIST_NEXT_BELOW}: Searches for an item below the specified item.
702
+ # - {Wx::LIST_NEXT_LEFT}: Searches for an item to the left of the specified item.
703
+ # - {Wx::LIST_NEXT_RIGHT}: Searches for an item to the right of the specified item.
704
+ #
705
+ # this parameter is only supported by wxMSW currently and ignored on other platforms.
692
706
  #
693
707
  # state can be a bitlist of the following:
694
- # - {Wx::LIST_STATE_DONTCARE}: Don't care what the state is.- {Wx::LIST_STATE_DROPHILITED}: The item indicates it is a drop target.- {Wx::LIST_STATE_FOCUSED}: The item has the focus.- {Wx::LIST_STATE_SELECTED}: The item is selected.- {Wx::LIST_STATE_CUT}: The item is selected as part of a cut and paste operation.
708
+ #
709
+ # - {Wx::LIST_STATE_DONTCARE}: Don't care what the state is.
710
+ # - {Wx::LIST_STATE_DROPHILITED}: The item indicates it is a drop target.
711
+ # - {Wx::LIST_STATE_FOCUSED}: The item has the focus.
712
+ # - {Wx::LIST_STATE_SELECTED}: The item is selected.
713
+ # - {Wx::LIST_STATE_CUT}: The item is selected as part of a cut and paste operation.
695
714
  # @param item [Integer]
696
715
  # @param geometry [Integer]
697
716
  # @param state [Integer]
@@ -712,7 +731,7 @@ module Wx
712
731
  # @param item [Integer]
713
732
  # @param subItem [Integer]
714
733
  # @param code [Integer]
715
- # @return [Array(true,false,Wx::Rect)]
734
+ # @return [Array(Boolean,Wx::Rect)]
716
735
  def get_sub_item_rect(item, subItem, code=Wx::LIST_RECT_BOUNDS) end
717
736
  alias_method :sub_item_rect, :get_sub_item_rect
718
737
 
@@ -751,15 +770,24 @@ module Wx
751
770
  # Determines which item (if any) is at the specified point, giving details in flags.
752
771
  # Returns index of the item or {Wx::NOT_FOUND} if no item is at the specified point.
753
772
  # flags will be a combination of the following flags:
754
- # - {Wx::LIST_HITTEST_ABOVE}: Above the control's client area.- {Wx::LIST_HITTEST_BELOW}: Below the control's client area.- {Wx::LIST_HITTEST_TOLEFT}: To the left of the control's client area.- {Wx::LIST_HITTEST_TORIGHT}: To the right of the control's client area.- {Wx::LIST_HITTEST_NOWHERE}: Inside the control's client area but not over an item.- {Wx::LIST_HITTEST_ONITEMICON}: Over an item's icon.- {Wx::LIST_HITTEST_ONITEMLABEL}: Over an item's text.- {Wx::LIST_HITTEST_ONITEMSTATEICON}: Over the checkbox of an item.- {Wx::LIST_HITTEST_ONITEM}: Combination of {Wx::LIST_HITTEST_ONITEMICON}, {Wx::LIST_HITTEST_ONITEMLABEL}, {Wx::LIST_HITTEST_ONITEMSTATEICON}.
755
773
  #
756
- # If ptrSubItem is not NULL and the {Wx::ListCtrl} is in the report mode the subitem (or column) number will also be provided. This feature is only available in version 2.7.0 or higher and is currently only implemented under {Wx::MSW} and requires at least comctl32.dll of version 4.70 on the host system or the value stored in ptrSubItem will be always -1. To compile this feature into wxWidgets library you need to have access to commctrl.h of version 4.70 that is provided by Microsoft.
774
+ # - {Wx::LIST_HITTEST_ABOVE}: Above the control's client area.
775
+ # - {Wx::LIST_HITTEST_BELOW}: Below the control's client area.
776
+ # - {Wx::LIST_HITTEST_TOLEFT}: To the left of the control's client area.
777
+ # - {Wx::LIST_HITTEST_TORIGHT}: To the right of the control's client area.
778
+ # - {Wx::LIST_HITTEST_NOWHERE}: Inside the control's client area but not over an item.
779
+ # - {Wx::LIST_HITTEST_ONITEMICON}: Over an item's icon.
780
+ # - {Wx::LIST_HITTEST_ONITEMLABEL}: Over an item's text.
781
+ # - {Wx::LIST_HITTEST_ONITEMSTATEICON}: Over the checkbox of an item.
782
+ # - {Wx::LIST_HITTEST_ONITEM}: Combination of {Wx::LIST_HITTEST_ONITEMICON}, {Wx::LIST_HITTEST_ONITEMLABEL}, {Wx::LIST_HITTEST_ONITEMSTATEICON}.
783
+ #
784
+ # If ptrSubItem is not NULL and the {Wx::ListCtrl} is in the report mode the subitem (or column) number will also be provided. This feature is only available in version 2.7.0 or higher and is currently only implemented under wxMSW and requires at least comctl32.dll of version 4.70 on the host system or the value stored in ptrSubItem will be always -1. To compile this feature into wxWidgets library you need to have access to commctrl.h of version 4.70 that is provided by Microsoft.
757
785
  # @param point [Array(Integer, Integer), Wx::Point]
758
786
  # @return [Array(Integer,Integer)]
759
787
  def hit_test(point) end
760
788
 
761
789
  # Returns true if the control is currently using {Wx::LC_REPORT} style.
762
- # @return [true,false]
790
+ # @return [Boolean]
763
791
  def in_report_view; end
764
792
 
765
793
  # @overload insert_column(col, info)
@@ -805,12 +833,12 @@ module Wx
805
833
 
806
834
  # Returns true if the control doesn't currently contain any items.
807
835
  # Note that the control with some columns is still considered to be empty if it has no rows.
808
- # @return [true,false]
836
+ # @return [Boolean]
809
837
  def is_empty; end
810
838
  alias_method :empty?, :is_empty
811
839
 
812
840
  # Returns true if the control is currently in virtual report view.
813
- # @return [true,false]
841
+ # @return [Boolean]
814
842
  def is_virtual; end
815
843
  alias_method :virtual?, :is_virtual
816
844
 
@@ -834,14 +862,14 @@ module Wx
834
862
  # This method is currently only implemented in the Windows version.
835
863
  # @param dx [Integer]
836
864
  # @param dy [Integer]
837
- # @return [true,false]
865
+ # @return [Boolean]
838
866
  def scroll_list(dx, dy) end
839
867
 
840
868
  # Sets the background colour.
841
869
  # Note that the {Wx::Window#get_background_colour} function of {Wx::Window} base class can be used to retrieve the current background colour.
842
870
  # If alternate row colouring is enabled, then call {Wx::ListCtrl#enable_alternate_row_colours} again after changing the background colour. This will update the alternate row color to match the new background colour.
843
871
  # @param col [Wx::Colour,String,Symbol]
844
- # @return [true,false]
872
+ # @return [Boolean]
845
873
  def set_background_colour(col) end
846
874
  alias_method :background_colour=, :set_background_colour
847
875
 
@@ -849,7 +877,7 @@ module Wx
849
877
  # See {Wx::ListCtrl#set_item} for more information.
850
878
  # @param col [Integer]
851
879
  # @param item [Wx::ListItem]
852
- # @return [true,false]
880
+ # @return [Boolean]
853
881
  def set_column(col, item) end
854
882
 
855
883
  # Sets the column width.
@@ -859,25 +887,16 @@ module Wx
859
887
  # In small or normal icon view, col must be -1, and the column width is set for all columns.
860
888
  # @param col [Integer]
861
889
  # @param width [Integer]
862
- # @return [true,false]
890
+ # @return [Boolean]
863
891
  def set_column_width(col, width) end
864
892
 
865
- # Changes the order in which the columns are shown.
866
- # The orders array must have the same number elements as the number of columns and contain each position exactly once. Its n-th element contains the index of the column to be shown in n-th position, so for a control with three columns passing an array with elements 2, 0 and 1 results in the third column being displayed first, the first one next and the second one last.
867
- # This function makes sense for report view only and currently is only implemented in the {Wx::MSW} port. Use {Wx::HAS_LISTCTRL_COLUMN_ORDER} to guard uses of this function so that they will start working under the other platforms when support for the column reordering is added there.
868
- # @see Wx::ListCtrl#get_columns_order
869
- # @param orders [Array<Integer>]
870
- # @return [true,false]
871
- def set_columns_order(orders) end
872
- alias_method :columns_order=, :set_columns_order
873
-
874
893
  # Change the font and the colours used for the list control header.
875
894
  # This method can be used to change the appearance of the header shown by the control in report mode (unless {Wx::LC_NO_HEADER} style is used).
876
- # Currently it is implemented only for {Wx::MSW} and does nothing in the other ports.
895
+ # Currently it is implemented only for wxMSW and does nothing in the other ports.
877
896
  #
878
897
  # true if the attributes have been updated or false if this is not supported by the current platform.
879
898
  # @param attr [Wx::ItemAttr] The object containing the font and text and background colours to use. It may be default, i.e. not specify any custom font nor colours, to reset any previously set custom attribute.
880
- # @return [true,false]
899
+ # @return [Boolean]
881
900
  def set_header_attr(attr) end
882
901
  alias_method :header_attr=, :set_header_attr
883
902
 
@@ -895,7 +914,7 @@ module Wx
895
914
  # Sets the images to use when showing large, normal icons in this control.
896
915
  # These images are used by the items when the list control is in {Wx::LC_ICON} mode, in all the other modes the images set by {Wx::ListCtrl#set_small_images} are used.
897
916
  # This function should be preferred to calling {Wx::ListCtrl#set_image_list} or {Wx::ListCtrl#assign_image_list} with {Wx::IMAGE_LIST_NORMAL} argument in the new code, as using {Wx::BitmapBundle} makes it possible to specify multiple versions of the icons, allowing the control to choose the right one for the current DPI scaling.
898
- # @param images [Wx::Vector< wxBitmapBundle >]
917
+ # @param images [Array<Wx::ImageBundle>]
899
918
  # @return [void]
900
919
  def set_normal_images(images) end
901
920
  alias_method :normal_images=, :set_normal_images
@@ -903,7 +922,7 @@ module Wx
903
922
  # Sets the images to use when showing small icons in this control.
904
923
  # These images are used by the items when the list control is in {Wx::LC_SMALL_ICON} or {Wx::LC_REPORT} mode, use {Wx::ListCtrl#set_normal_images} for the icons used in {Wx::LC_ICON} mode.
905
924
  # This function should be preferred to calling {Wx::ListCtrl#set_image_list} or {Wx::ListCtrl#assign_image_list} with {Wx::IMAGE_LIST_SMALL} argument in the new code, as using {Wx::BitmapBundle} makes it possible to specify multiple versions of the icons, allowing the control to choose the right one for the current DPI scaling.
906
- # @param images [Wx::Vector< wxBitmapBundle >]
925
+ # @param images [Array<Wx::ImageBundle>]
907
926
  # @return [void]
908
927
  def set_small_images(images) end
909
928
  alias_method :small_images=, :set_small_images
@@ -911,7 +930,7 @@ module Wx
911
930
  # Check if the item is visible.
912
931
  # An item is considered visible if at least one pixel of it is present on the screen.
913
932
  # @param item [Integer]
914
- # @return [true,false]
933
+ # @return [Boolean]
915
934
  def is_visible(item) end
916
935
  alias_method :visible?, :is_visible
917
936
 
@@ -920,7 +939,7 @@ module Wx
920
939
  # Using the {Wx::ListItem}'s mask and state mask, you can change only selected attributes of a {Wx::ListCtrl} item.
921
940
  # true if the item was successfully updated or false if the update failed for some reason (e.g. an invalid item index).
922
941
  # @param info [Wx::ListItem]
923
- # @return [true,false]
942
+ # @return [Boolean]
924
943
  # @overload set_item(index, column, label, imageId=-1)
925
944
  # Sets an item string field at a particular column.
926
945
  # true if the item was successfully updated or false if the update failed for some reason (e.g. an invalid item index).
@@ -928,7 +947,7 @@ module Wx
928
947
  # @param column [Integer]
929
948
  # @param label [String]
930
949
  # @param imageId [Integer]
931
- # @return [true,false]
950
+ # @return [Boolean]
932
951
  def set_item(*args) end
933
952
  alias_method :item=, :set_item
934
953
 
@@ -944,7 +963,7 @@ module Wx
944
963
  # @param item [Integer]
945
964
  # @param column [Integer]
946
965
  # @param image [Integer]
947
- # @return [true,false]
966
+ # @return [Boolean]
948
967
  def set_item_column_image(item, column, image) end
949
968
 
950
969
  # This method can only be used with virtual list controls.
@@ -966,25 +985,25 @@ module Wx
966
985
  # @param item [Integer]
967
986
  # @param image [Integer]
968
987
  # @param selImage [Integer]
969
- # @return [true,false]
988
+ # @return [Boolean]
970
989
  def set_item_image(item, image, selImage=-1) end
971
990
 
972
991
  # Sets the position of the item, in icon or small icon view.
973
992
  # Windows only.
974
993
  # @param item [Integer]
975
994
  # @param pos [Array(Integer, Integer), Wx::Point]
976
- # @return [true,false]
995
+ # @return [Boolean]
977
996
  def set_item_position(item, pos) end
978
997
 
979
998
  # Sets the item state.
980
999
  # The stateMask is a combination of {Wx::LIST_STATE_XXX} constants described in {Wx::ListItem} documentation. For each of the bits specified in stateMask, the corresponding state is set or cleared depending on whether state argument contains the same bit or not.
981
1000
  # So to select an item you can use
982
- # ```
983
- # list->SetItemState(item, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
1001
+ # ```ruby
1002
+ # list.set_item_state(item, Wx::LIST_STATE_SELECTED, Wx::LIST_STATE_SELECTED)
984
1003
  # ```
985
1004
  # while to deselect it you should use
986
- # ```
987
- # list->SetItemState(item, 0, wxLIST_STATE_SELECTED);
1005
+ # ```ruby
1006
+ # list.set_item_state(item, 0, Wx::LIST_STATE_SELECTED)
988
1007
  # ```
989
1008
  #
990
1009
  # Consider using {Wx::ListView} if possible to avoid dealing with this error-prone and confusing method.
@@ -992,7 +1011,7 @@ module Wx
992
1011
  # @param item [Integer]
993
1012
  # @param state [Integer]
994
1013
  # @param stateMask [Integer]
995
- # @return [true,false]
1014
+ # @return [Boolean]
996
1015
  def set_item_state(item, state, stateMask) end
997
1016
 
998
1017
  # Sets the item text for this item.
@@ -1010,7 +1029,7 @@ module Wx
1010
1029
 
1011
1030
  # Adds or removes a single window style.
1012
1031
  # @param style [Integer]
1013
- # @param add [true,false]
1032
+ # @param add [Boolean]
1014
1033
  # @return [void]
1015
1034
  def set_single_style(style, add=true) end
1016
1035
  alias_method :single_style=, :set_single_style
@@ -1030,7 +1049,7 @@ module Wx
1030
1049
  # Returns true if checkboxes are enabled for list items.
1031
1050
  #
1032
1051
  # @see Wx::ListCtrl#enable_check_boxes
1033
- # @return [true,false]
1052
+ # @return [Boolean]
1034
1053
  def has_check_boxes; end
1035
1054
  alias_method :has_check_boxes?, :has_check_boxes
1036
1055
 
@@ -1039,21 +1058,23 @@ module Wx
1039
1058
  #
1040
1059
  # In a list control with {Wx::LC_VIRTUAL} style you have to keep track of the checkbox state. When a checkbox is clicked (EVT_LIST_ITEM_CHECKED or EVT_LIST_ITEM_UNCHECKED) you have to update the state and refresh the item yourself.
1041
1060
  # @see Wx::ListCtrl#on_get_item_is_checked Wx::ListCtrl#refresh_item
1042
- # @param enable [true,false] If true, enable checkboxes, otherwise disable checkboxes.
1043
- # @return [true,false]
1061
+ # @param enable [Boolean] If true, enable checkboxes, otherwise disable checkboxes.
1062
+ # @return [Boolean]
1044
1063
  def enable_check_boxes(enable=true) end
1045
1064
 
1046
1065
  # Return true if the checkbox for the given {Wx::ListItem} is checked.
1047
1066
  # Always returns false if checkboxes support hadn't been enabled.
1067
+ # For a control with {Wx::LC_VIRTUAL} style, this uses {Wx::ListCtrl#on_get_item_is_checked}.
1048
1068
  # @param item [Integer] Item (zero-based) index.
1049
- # @return [true,false]
1069
+ # @return [Boolean]
1050
1070
  def is_item_checked(item) end
1051
1071
  alias_method :item_checked?, :is_item_checked
1052
1072
 
1053
1073
  # Check or uncheck a {Wx::ListItem} in a control using checkboxes.
1054
1074
  # This method only works if checkboxes support had been successfully enabled using {Wx::ListCtrl#enable_check_boxes}.
1075
+ # For a control with {Wx::LC_VIRTUAL} style, this will only generate the EVT_LIST_ITEM_CHECKED and EVT_LIST_ITEM_UNCHECKED events. See {Wx::ListCtrl#on_get_item_is_checked} for information on how to update the checkbox state.
1055
1076
  # @param item [Integer] Item (zero-based) index.
1056
- # @param check [true,false] If true, check the item, otherwise uncheck.
1077
+ # @param check [Boolean] If true, check the item, otherwise uncheck.
1057
1078
  # @return [void]
1058
1079
  def check_item(item, check) end
1059
1080
 
@@ -1062,16 +1083,16 @@ module Wx
1062
1083
  # Calling this function extends the display of the rules and alternate background rows to the entire client area.
1063
1084
  # Similarly to {Wx::ListCtrl#enable_alternate_row_colours}, this method can only be used with controls having {Wx::LC_REPORT} and {Wx::LC_VIRTUAL} styles.
1064
1085
  # Note that this method is currently not implemented in the native MSW version and does nothing there.
1065
- # @param extend [true,false] if true, draws horizontal rules and vertical rules on empty rows and uses the colour parameter to paint the background of alternate rows when those rows are blank, empty, with no data.
1086
+ # @param extend [Boolean] if true, draws horizontal rules and vertical rules on empty rows and uses the colour parameter to paint the background of alternate rows when those rows are blank, empty, with no data.
1066
1087
  # @return [void]
1067
1088
  def extend_rules_and_alternate_colour(extend=true) end
1068
1089
 
1069
1090
  # Show the sort indicator of a specific column in a specific direction.
1070
- # Sort indicators are only shown in report view and in the native {Wx::MSW} version override any column icon, i.e. if the sort indicator is shown for a column, no (other) icon is shown.
1091
+ # Sort indicators are only shown in report view and in the native wxMSW version override any column icon, i.e. if the sort indicator is shown for a column, no (other) icon is shown.
1071
1092
  # This function should typically be called from EVT_LIST_COL_CLICK handler.
1072
1093
  # This does not actually sort the list, use {Wx::ListCtrl#sort_items} for this.
1073
1094
  # @param col [Integer] The column to set the sort indicator for. If <code>-1</code> is given, then the currently shown sort indicator will be removed.
1074
- # @param ascending [true,false] If true or false show the sort indicator corresponding to ascending or descending sort order respectively.
1095
+ # @param ascending [Boolean] If true or false show the sort indicator corresponding to ascending or descending sort order respectively.
1075
1096
  # @return [void]
1076
1097
  def show_sort_indicator(col, ascending=true) end
1077
1098
 
@@ -1088,25 +1109,28 @@ module Wx
1088
1109
  # Returns the new value to use for sort indicator after clicking a column.
1089
1110
  # This helper function can be useful in the EVT_LIST_COL_CLICK handler when it updates the sort indicator after the user clicked on a column.
1090
1111
  # For example:
1091
- # ```
1092
- # void MyListCtrl::OnColClick(wxListEvent& event)
1093
- # {
1094
- # int col = event.GetColumn();
1095
- # if ( col == -1 )
1096
- # return; // clicked outside any column.
1112
+ # ```ruby
1113
+ # class MyListCtrl
1114
+ #
1115
+ # def on_col_click(event)
1116
+ # col = event.column
1117
+ # if col == -1
1118
+ # return # clicked outside any column.
1097
1119
  #
1098
- # const bool ascending = GetUpdatedAscendingSortIndicator(col);
1099
- # SortItems(MyCompareFunction, ascending);
1100
- # ShowSortIndicator(col, ascending);
1101
- # }
1120
+ # ascending = get_updated_ascending_sort_indicator(col)
1121
+ # sort_items(ascending) { |itm1_data, itm2_data, data| ... }
1122
+ # show_sort_indicator(col, ascending)
1123
+ # end
1124
+ #
1125
+ # end
1102
1126
  # ```
1103
1127
  # @param col [Integer]
1104
- # @return [true,false]
1128
+ # @return [Boolean]
1105
1129
  def get_updated_ascending_sort_indicator(col) end
1106
1130
  alias_method :updated_ascending_sort_indicator, :get_updated_ascending_sort_indicator
1107
1131
 
1108
1132
  # Returns true if the sort indicator direction is ascending, false when the direction is descending.
1109
- # @return [true,false]
1133
+ # @return [Boolean]
1110
1134
  def is_ascending_sort_indicator; end
1111
1135
  alias_method :ascending_sort_indicator?, :is_ascending_sort_indicator
1112
1136
 
@@ -1129,7 +1153,7 @@ module Wx
1129
1153
  # This function may be overridden in the derived class for a control with {Wx::LC_VIRTUAL} style.
1130
1154
  # It should return the attribute for the for the specified item and column or NULL to use the default appearance parameters.
1131
1155
  # The base class version returns <code>OnGetItemAttr(item)</code>.
1132
- # Currently this function is only called under {Wx::MSW}, the other ports only support {Wx::ListCtrl#on_get_item_attr}
1156
+ # Currently this function is only called under wxMSW, the other ports only support {Wx::ListCtrl#on_get_item_attr}
1133
1157
  # @see Wx::ListCtrl#on_get_item_attr
1134
1158
  # @see Wx::ListCtrl#on_get_item_text
1135
1159
  # @see Wx::ListCtrl#on_get_item_image
@@ -1179,16 +1203,37 @@ module Wx
1179
1203
  # @see Wx::ListCtrl#enable_check_boxes
1180
1204
  # @see Wx::ListCtrl#on_get_item_text
1181
1205
  # @param item [Integer]
1182
- # @return [true,false]
1206
+ # @return [Boolean]
1183
1207
  def on_get_item_is_checked(item) end
1184
1208
 
1185
1209
  end # ListCtrl
1186
1210
 
1187
1211
  # This class stores information about a {Wx::ListCtrl} item or column.
1188
1212
  # {Wx::ListItem} is a class which contains information about:
1189
- # - Zero based item position; see {Wx::ListItem#set_id} and {Wx::ListItem#get_id}.- Zero based column index; see {Wx::ListItem#set_column} and {Wx::ListItem#get_column}.- The label (or header for columns); see {Wx::ListItem#set_text} and {Wx::ListItem#get_text}.- The zero based index into an image list; see {Wx::ListItem#get_image} and {Wx::ListItem#set_image}.- Application defined data; see {Wx::ListItem#set_data} and {Wx::ListItem#get_data}.- For columns only: the width of the column; see {Wx::ListItem#set_width} and {Wx::ListItem#get_width}.- For columns only: the format of the column; one of {Wx::ListColumnFormat::LIST_FORMAT_LEFT}, {Wx::ListColumnFormat::LIST_FORMAT_RIGHT}, {Wx::ListColumnFormat::LIST_FORMAT_CENTRE}. See {Wx::ListItem#set_align} and {Wx::ListItem#get_align}.- The state of the item; see {Wx::ListItem#set_state} and {Wx::ListItem#get_state}. This is a bitlist of the following flags:
1190
- # - {Wx::LIST_STATE_FOCUSED}: The item has the focus.- {Wx::LIST_STATE_SELECTED}: The item is selected.- {Wx::LIST_STATE_DONTCARE}: No special flags (the value of this constant is 0).- {Wx::LIST_STATE_DROPHILITED}: The item is highlighted to receive a drop event. Win32 only.- {Wx::LIST_STATE_CUT}: The item is in the cut state. Win32 only.- A mask indicating which state flags are valid; this is a bitlist of the flags reported above for the item state. See {Wx::ListItem#set_state_mask} and GetStateMask().- A mask indicating which fields of this class are valid; see {Wx::ListItem#set_mask} and {Wx::ListItem#get_mask}. This is a bitlist of the following flags:
1191
- # - {Wx::LIST_MASK_STATE}: The state field is valid.- {Wx::LIST_MASK_TEXT}: The label field is valid.- {Wx::LIST_MASK_IMAGE}: The image field is valid.- {Wx::LIST_MASK_DATA}: The application-defined data field is valid.- {Wx::LIST_MASK_WIDTH}: The column width field is valid.- {Wx::LIST_MASK_FORMAT}: The column format field is valid.
1213
+ #
1214
+ # - Zero based item position; see {Wx::ListItem#set_id} and {Wx::ListItem#get_id}.
1215
+ # - Zero based column index; see {Wx::ListItem#set_column} and {Wx::ListItem#get_column}.
1216
+ # - The label (or header for columns); see {Wx::ListItem#set_text} and {Wx::ListItem#get_text}.
1217
+ # - The zero based index into an image list; see {Wx::ListItem#get_image} and {Wx::ListItem#set_image}.
1218
+ # - Application defined data; see {Wx::ListItem#set_data} and {Wx::ListItem#get_data}.
1219
+ # - For columns only: the width of the column; see {Wx::ListItem#set_width} and {Wx::ListItem#get_width}.
1220
+ # - For columns only: the format of the column; one of {Wx::ListColumnFormat::LIST_FORMAT_LEFT}, {Wx::ListColumnFormat::LIST_FORMAT_RIGHT}, {Wx::ListColumnFormat::LIST_FORMAT_CENTRE}. See {Wx::ListItem#set_align} and {Wx::ListItem#get_align}.
1221
+ # - The state of the item; see {Wx::ListItem#set_state} and {Wx::ListItem#get_state}. This is a bitlist of the following flags:
1222
+ #
1223
+ # - {Wx::LIST_STATE_FOCUSED}: The item has the focus.
1224
+ # - {Wx::LIST_STATE_SELECTED}: The item is selected.
1225
+ # - {Wx::LIST_STATE_DONTCARE}: No special flags (the value of this constant is 0).
1226
+ # - {Wx::LIST_STATE_DROPHILITED}: The item is highlighted to receive a drop event. Win32 only.
1227
+ # - {Wx::LIST_STATE_CUT}: The item is in the cut state. Win32 only.
1228
+ # - A mask indicating which state flags are valid; this is a bitlist of the flags reported above for the item state. See {Wx::ListItem#set_state_mask} and GetStateMask().
1229
+ # - A mask indicating which fields of this class are valid; see {Wx::ListItem#set_mask} and {Wx::ListItem#get_mask}. This is a bitlist of the following flags:
1230
+ #
1231
+ # - {Wx::LIST_MASK_STATE}: The state field is valid.
1232
+ # - {Wx::LIST_MASK_TEXT}: The label field is valid.
1233
+ # - {Wx::LIST_MASK_IMAGE}: The image field is valid.
1234
+ # - {Wx::LIST_MASK_DATA}: The application-defined data field is valid.
1235
+ # - {Wx::LIST_MASK_WIDTH}: The column width field is valid.
1236
+ # - {Wx::LIST_MASK_FORMAT}: The column format field is valid.
1192
1237
  #
1193
1238
  # The {Wx::ListItem} object can also contain item-specific colour and font information: for this you need to call one of {Wx::ListItem#set_text_colour}, {Wx::ListItem#set_background_colour} or {Wx::ListItem#set_font} functions on it passing it the colour/font to use. If the colour/font is not specified, the default list control colour/font is used.
1194
1239
  # ===
@@ -1207,7 +1252,7 @@ module Wx
1207
1252
  alias_method :data=, :set_data
1208
1253
 
1209
1254
  # Constructor.
1210
- # @return [ListItem]
1255
+ # @return [Wx::ListItem]
1211
1256
  def initialize; end
1212
1257
 
1213
1258
  # Resets the item state to the default.
@@ -1216,7 +1261,7 @@ module Wx
1216
1261
 
1217
1262
  # Returns the alignment for this item.
1218
1263
  # Can be one of {Wx::ListColumnFormat::LIST_FORMAT_LEFT}, {Wx::ListColumnFormat::LIST_FORMAT_RIGHT} or {Wx::ListColumnFormat::LIST_FORMAT_CENTRE}.
1219
- # @return [ListColumnFormat]
1264
+ # @return [Wx::ListColumnFormat]
1220
1265
  def get_align; end
1221
1266
  alias_method :align, :get_align
1222
1267
 
@@ -1247,14 +1292,25 @@ module Wx
1247
1292
 
1248
1293
  # Returns a bit mask indicating which fields of the structure are valid.
1249
1294
  # Can be any combination of the following values:
1250
- # - {Wx::LIST_MASK_STATE}: <b>GetState</b> is valid.- {Wx::LIST_MASK_TEXT}: <b>GetText</b> is valid.- {Wx::LIST_MASK_IMAGE}: <b>GetImage</b> is valid.- {Wx::LIST_MASK_DATA}: <b>GetData</b> is valid.- {Wx::LIST_MASK_WIDTH}: <b>GetWidth</b> is valid.- {Wx::LIST_MASK_FORMAT}: <b>GetFormat</b> is valid.
1295
+ #
1296
+ # - {Wx::LIST_MASK_STATE}: <b>GetState</b> is valid.
1297
+ # - {Wx::LIST_MASK_TEXT}: <b>GetText</b> is valid.
1298
+ # - {Wx::LIST_MASK_IMAGE}: <b>GetImage</b> is valid.
1299
+ # - {Wx::LIST_MASK_DATA}: <b>GetData</b> is valid.
1300
+ # - {Wx::LIST_MASK_WIDTH}: <b>GetWidth</b> is valid.
1301
+ # - {Wx::LIST_MASK_FORMAT}: <b>GetFormat</b> is valid.
1251
1302
  # @return [Integer]
1252
1303
  def get_mask; end
1253
1304
  alias_method :mask, :get_mask
1254
1305
 
1255
1306
  # Returns a bit field representing the state of the item.
1256
1307
  # Can be any combination of:
1257
- # - {Wx::LIST_STATE_DONTCARE}: No special flags (the values of this constant is 0).- {Wx::LIST_STATE_DROPHILITED}: The item is highlighted to receive a drop event. Win32 only.- {Wx::LIST_STATE_FOCUSED}: The item has the focus.- {Wx::LIST_STATE_SELECTED}: The item is selected.- {Wx::LIST_STATE_CUT}: The item is in the cut state. Win32 only.
1308
+ #
1309
+ # - {Wx::LIST_STATE_DONTCARE}: No special flags (the values of this constant is 0).
1310
+ # - {Wx::LIST_STATE_DROPHILITED}: The item is highlighted to receive a drop event. Win32 only.
1311
+ # - {Wx::LIST_STATE_FOCUSED}: The item has the focus.
1312
+ # - {Wx::LIST_STATE_SELECTED}: The item is selected.
1313
+ # - {Wx::LIST_STATE_CUT}: The item is in the cut state. Win32 only.
1258
1314
  # @return [Integer]
1259
1315
  def get_state; end
1260
1316
  alias_method :state, :get_state
@@ -1277,7 +1333,7 @@ module Wx
1277
1333
 
1278
1334
  # Sets the alignment for the item.
1279
1335
  # See also {Wx::ListItem#get_align}
1280
- # @param align [ListColumnFormat]
1336
+ # @param align [Wx::ListColumnFormat]
1281
1337
  # @return [void]
1282
1338
  def set_align(align) end
1283
1339
  alias_method :align=, :set_align
@@ -1367,18 +1423,18 @@ module Wx
1367
1423
 
1368
1424
  # @overload initialize()
1369
1425
  # Default Constructor.
1370
- # @return [ItemAttr]
1426
+ # @return [Wx::ItemAttr]
1371
1427
  # @overload initialize(colText, colBack, font)
1372
1428
  # Construct a {Wx::ItemAttr} with the specified foreground and background colours and font.
1373
1429
  # @param colText [Wx::Colour,String,Symbol]
1374
1430
  # @param colBack [Wx::Colour,String,Symbol]
1375
1431
  # @param font [Wx::Font,Wx::FontInfo]
1376
- # @return [ItemAttr]
1432
+ # @return [Wx::ItemAttr]
1377
1433
  def initialize(*args) end
1378
1434
 
1379
1435
  # Compare two item attributes for equality.
1380
1436
  # @param other [Wx::ItemAttr]
1381
- # @return [true,false]
1437
+ # @return [Boolean]
1382
1438
  def ==(other) end
1383
1439
 
1384
1440
  # Returns the currently set background colour.
@@ -1397,7 +1453,7 @@ module Wx
1397
1453
  alias_method :text_colour, :get_text_colour
1398
1454
 
1399
1455
  # Returns true if the currently set background colour is valid.
1400
- # @return [true,false]
1456
+ # @return [Boolean]
1401
1457
  def has_background_colour; end
1402
1458
  alias_method :has_background_colour?, :has_background_colour
1403
1459
 
@@ -1405,22 +1461,22 @@ module Wx
1405
1461
  #
1406
1462
  # @see Wx::ItemAttr#has_background_colour
1407
1463
  # @see Wx::ItemAttr#has_text_colour
1408
- # @return [true,false]
1464
+ # @return [Boolean]
1409
1465
  def has_colours; end
1410
1466
  alias_method :has_colours?, :has_colours
1411
1467
 
1412
1468
  # Returns true if the currently set font is valid.
1413
- # @return [true,false]
1469
+ # @return [Boolean]
1414
1470
  def has_font; end
1415
1471
  alias_method :has_font?, :has_font
1416
1472
 
1417
1473
  # Returns true if the currently set text colour is valid.
1418
- # @return [true,false]
1474
+ # @return [Boolean]
1419
1475
  def has_text_colour; end
1420
1476
  alias_method :has_text_colour?, :has_text_colour
1421
1477
 
1422
1478
  # Returns true if this object has no custom attributes set.
1423
- # @return [true,false]
1479
+ # @return [Boolean]
1424
1480
  def is_default; end
1425
1481
  alias_method :default?, :is_default
1426
1482
 
@@ -1449,9 +1505,9 @@ module Wx
1449
1505
  # Other than different interface, this class is identical to {Wx::ListCtrl}. In particular, it uses the same events, same window styles and so on.
1450
1506
  # ===
1451
1507
  #
1452
- # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
1453
- # </td><td> {Wx::GTK} Appearance
1454
- # </td><td> {Wx::OSX} Appearance
1508
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
1509
+ # </td><td> wxGTK Appearance
1510
+ # </td><td> wxOSX Appearance
1455
1511
  # </td></tr></table></div>
1456
1512
  # @see Wx::ListView#set_column_image
1457
1513
  #
@@ -1460,7 +1516,7 @@ module Wx
1460
1516
 
1461
1517
  # @overload initialize()
1462
1518
  # Default constructor.
1463
- # @return [ListView]
1519
+ # @return [Wx::ListView]
1464
1520
  # @overload initialize(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_REPORT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListCtrlNameStr)
1465
1521
  # Constructor, creating and showing a listview control.
1466
1522
  #
@@ -1473,7 +1529,7 @@ module Wx
1473
1529
  # @param style [Integer] Window style. See {Wx::ListCtrl}.
1474
1530
  # @param validator [Wx::Validator] Window validator.
1475
1531
  # @param name [String] Window name.
1476
- # @return [ListView]
1532
+ # @return [Wx::ListView]
1477
1533
  def initialize(*args) end
1478
1534
 
1479
1535
  # Resets the column image after calling this function, no image will be shown.
@@ -1515,14 +1571,14 @@ module Wx
1515
1571
  # @see Wx::ListView#get_first_selected
1516
1572
  # @see Wx::ListView#get_next_selected
1517
1573
  # @param index [Integer]
1518
- # @return [true,false]
1574
+ # @return [Boolean]
1519
1575
  def is_selected(index) end
1520
1576
  alias_method :selected?, :is_selected
1521
1577
 
1522
1578
  # Selects or unselects the given item.
1523
1579
  # Notice that this method inherits the unusual behaviour of {Wx::ListCtrl#set_item_state} which sends a {Wx::EVT_LIST_ITEM_SELECTED} event when it is used to select an item, contrary to the usual rule that only the user actions result in selection.
1524
1580
  # @param n [Integer] the item to select or unselect
1525
- # @param on [true,false] if true (default), selects the item, otherwise unselects it
1581
+ # @param on [Boolean] if true (default), selects the item, otherwise unselects it
1526
1582
  # @return [void]
1527
1583
  def select(n, on=true) end
1528
1584