wxruby3 0.9.0.pre.beta.1-x64-mingw-ucrt-3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (822) hide show
  1. checksums.yaml +7 -0
  2. data/.wxconfig +17 -0
  3. data/.yardopts +13 -0
  4. data/CREDITS.md +52 -0
  5. data/LICENSE +21 -0
  6. data/README.md +138 -0
  7. data/bin/wxruby +9 -0
  8. data/bin/wxruby.bat +20 -0
  9. data/ext/mkrf_conf_bingem.rb +18 -0
  10. data/lib/wx/accessors.rb +63 -0
  11. data/lib/wx/aui/auimanager.rb +17 -0
  12. data/lib/wx/aui/auinotebook.rb +9 -0
  13. data/lib/wx/aui/events/evt_list.rb +143 -0
  14. data/lib/wx/aui/require.rb +9 -0
  15. data/lib/wx/aui.rb +14 -0
  16. data/lib/wx/core/acceleratortable.rb +28 -0
  17. data/lib/wx/core/animation.rb +18 -0
  18. data/lib/wx/core/app.rb +89 -0
  19. data/lib/wx/core/artprovider.rb +31 -0
  20. data/lib/wx/core/bitmap.rb +59 -0
  21. data/lib/wx/core/busycursor.rb +12 -0
  22. data/lib/wx/core/choice.rb +4 -0
  23. data/lib/wx/core/choicedlg.rb +54 -0
  24. data/lib/wx/core/clientdc.rb +13 -0
  25. data/lib/wx/core/clipboard.rb +56 -0
  26. data/lib/wx/core/collapsible_pane.rb +12 -0
  27. data/lib/wx/core/colour.rb +34 -0
  28. data/lib/wx/core/combobox.rb +4 -0
  29. data/lib/wx/core/controlwithitems.rb +10 -0
  30. data/lib/wx/core/data_object.rb +10 -0
  31. data/lib/wx/core/dataformat.rb +26 -0
  32. data/lib/wx/core/dc.rb +68 -0
  33. data/lib/wx/core/dialog.rb +50 -0
  34. data/lib/wx/core/event.rb +16 -0
  35. data/lib/wx/core/events/evt_list.rb +1378 -0
  36. data/lib/wx/core/evthandler.rb +240 -0
  37. data/lib/wx/core/ext.rb +58 -0
  38. data/lib/wx/core/font/encoding.rb +113 -0
  39. data/lib/wx/core/font.rb +22 -0
  40. data/lib/wx/core/functions.rb +44 -0
  41. data/lib/wx/core/gauge.rb +12 -0
  42. data/lib/wx/core/genericdirctrl.rb +36 -0
  43. data/lib/wx/core/hboxsizer.rb +6 -0
  44. data/lib/wx/core/helpcontroller.rb +5 -0
  45. data/lib/wx/core/helpcontrollerhelpprovider.rb +24 -0
  46. data/lib/wx/core/helpprovider.rb +15 -0
  47. data/lib/wx/core/icon.rb +40 -0
  48. data/lib/wx/core/image.rb +68 -0
  49. data/lib/wx/core/imagelist.rb +3 -0
  50. data/lib/wx/core/listbox.rb +4 -0
  51. data/lib/wx/core/listctrl.rb +33 -0
  52. data/lib/wx/core/locale.rb +73 -0
  53. data/lib/wx/core/log.rb +20 -0
  54. data/lib/wx/core/menu.rb +78 -0
  55. data/lib/wx/core/menu_bar.rb +20 -0
  56. data/lib/wx/core/menuitem.rb +7 -0
  57. data/lib/wx/core/notebook.rb +9 -0
  58. data/lib/wx/core/object.rb +14 -0
  59. data/lib/wx/core/pen_info.rb +11 -0
  60. data/lib/wx/core/platform_info.rb +13 -0
  61. data/lib/wx/core/point.rb +92 -0
  62. data/lib/wx/core/real_point.rb +92 -0
  63. data/lib/wx/core/rect.rb +57 -0
  64. data/lib/wx/core/simplehelpprovider.rb +38 -0
  65. data/lib/wx/core/size.rb +86 -0
  66. data/lib/wx/core/sizer.rb +43 -0
  67. data/lib/wx/core/splash_screen.rb +44 -0
  68. data/lib/wx/core/textctrl.rb +8 -0
  69. data/lib/wx/core/timer.rb +105 -0
  70. data/lib/wx/core/toolbar.rb +37 -0
  71. data/lib/wx/core/toolbartool.rb +4 -0
  72. data/lib/wx/core/treectrl.rb +46 -0
  73. data/lib/wx/core/validator.rb +8 -0
  74. data/lib/wx/core/variant.rb +62 -0
  75. data/lib/wx/core/vboxsizer.rb +6 -0
  76. data/lib/wx/core/window.rb +95 -0
  77. data/lib/wx/core/window_update_locker.rb +12 -0
  78. data/lib/wx/core/xmlresource.rb +56 -0
  79. data/lib/wx/core.rb +61 -0
  80. data/lib/wx/doc/aui/auimanager.rb +12 -0
  81. data/lib/wx/doc/aui/auinotebook.rb +9 -0
  82. data/lib/wx/doc/colour_dialog.rb +15 -0
  83. data/lib/wx/doc/dc.rb +49 -0
  84. data/lib/wx/doc/enum.rb +66 -0
  85. data/lib/wx/doc/evthandler.rb +84 -0
  86. data/lib/wx/doc/extra/00_starting.md +154 -0
  87. data/lib/wx/doc/extra/01_packages.md +179 -0
  88. data/lib/wx/doc/extra/02_lifecycles.md +116 -0
  89. data/lib/wx/doc/extra/03_dialogs.md +57 -0
  90. data/lib/wx/doc/extra/04_enums.md +143 -0
  91. data/lib/wx/doc/extra/05_event-handling.md +166 -0
  92. data/lib/wx/doc/extra/06_geometry.md +56 -0
  93. data/lib/wx/doc/extra/07_colour_and_font.md +52 -0
  94. data/lib/wx/doc/extra/08_extensions.md +144 -0
  95. data/lib/wx/doc/extra/09_exceptions.md +54 -0
  96. data/lib/wx/doc/functions.rb +221 -0
  97. data/lib/wx/doc/gdi_common.rb +181 -0
  98. data/lib/wx/doc/gen/about_dialog_info.rb +315 -0
  99. data/lib/wx/doc/gen/accelerator.rb +172 -0
  100. data/lib/wx/doc/gen/accessible.rb +817 -0
  101. data/lib/wx/doc/gen/animation.rb +253 -0
  102. data/lib/wx/doc/gen/animation_ctrl.rb +129 -0
  103. data/lib/wx/doc/gen/any_button.rb +170 -0
  104. data/lib/wx/doc/gen/app.rb +363 -0
  105. data/lib/wx/doc/gen/art_provider.rb +497 -0
  106. data/lib/wx/doc/gen/aui/aui_dock_art.rb +421 -0
  107. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +39 -0
  108. data/lib/wx/doc/gen/aui/aui_manager.rb +323 -0
  109. data/lib/wx/doc/gen/aui/aui_manager_event.rb +112 -0
  110. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +163 -0
  111. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +46 -0
  112. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +109 -0
  113. data/lib/wx/doc/gen/aui/aui_notebook.rb +329 -0
  114. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +179 -0
  115. data/lib/wx/doc/gen/aui/aui_pane_info.rb +665 -0
  116. data/lib/wx/doc/gen/aui/aui_tab_art.rb +372 -0
  117. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +147 -0
  118. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +437 -0
  119. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +272 -0
  120. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +195 -0
  121. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +224 -0
  122. data/lib/wx/doc/gen/aui/event_list.rb +162 -0
  123. data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +47 -0
  124. data/lib/wx/doc/gen/bitmap.rb +638 -0
  125. data/lib/wx/doc/gen/bitmap_button.rb +91 -0
  126. data/lib/wx/doc/gen/book_ctrl_base.rb +240 -0
  127. data/lib/wx/doc/gen/book_ctrl_event.rb +60 -0
  128. data/lib/wx/doc/gen/box_sizer.rb +66 -0
  129. data/lib/wx/doc/gen/brush.rb +219 -0
  130. data/lib/wx/doc/gen/buffered_dc.rb +95 -0
  131. data/lib/wx/doc/gen/buffered_paint_dc.rb +55 -0
  132. data/lib/wx/doc/gen/busy_info.rb +141 -0
  133. data/lib/wx/doc/gen/button.rb +133 -0
  134. data/lib/wx/doc/gen/calculate_layout_event.rb +59 -0
  135. data/lib/wx/doc/gen/calendar_ctrl.rb +236 -0
  136. data/lib/wx/doc/gen/calendar_date_attr.rb +137 -0
  137. data/lib/wx/doc/gen/calendar_event.rb +150 -0
  138. data/lib/wx/doc/gen/caret.rb +99 -0
  139. data/lib/wx/doc/gen/check_box.rb +145 -0
  140. data/lib/wx/doc/gen/check_list_box.rb +96 -0
  141. data/lib/wx/doc/gen/choice.rb +143 -0
  142. data/lib/wx/doc/gen/choicebook.rb +100 -0
  143. data/lib/wx/doc/gen/client_dc.rb +49 -0
  144. data/lib/wx/doc/gen/clipboard.rb +128 -0
  145. data/lib/wx/doc/gen/collapsible_pane.rb +120 -0
  146. data/lib/wx/doc/gen/collapsible_pane_event.rb +45 -0
  147. data/lib/wx/doc/gen/colour.rb +289 -0
  148. data/lib/wx/doc/gen/colour_data.rb +96 -0
  149. data/lib/wx/doc/gen/colour_dialog.rb +84 -0
  150. data/lib/wx/doc/gen/colour_picker_ctrl.rb +89 -0
  151. data/lib/wx/doc/gen/colour_picker_event.rb +74 -0
  152. data/lib/wx/doc/gen/combo_box.rb +228 -0
  153. data/lib/wx/doc/gen/context_help_button.rb +34 -0
  154. data/lib/wx/doc/gen/control.rb +245 -0
  155. data/lib/wx/doc/gen/control_with_items.rb +339 -0
  156. data/lib/wx/doc/gen/core.rb +42 -0
  157. data/lib/wx/doc/gen/cursor.rb +127 -0
  158. data/lib/wx/doc/gen/data_format.rb +94 -0
  159. data/lib/wx/doc/gen/data_object.rb +439 -0
  160. data/lib/wx/doc/gen/date_event.rb +48 -0
  161. data/lib/wx/doc/gen/date_picker_ctrl.rb +127 -0
  162. data/lib/wx/doc/gen/dc.rb +1278 -0
  163. data/lib/wx/doc/gen/defs.rb +2832 -0
  164. data/lib/wx/doc/gen/dialog.rb +426 -0
  165. data/lib/wx/doc/gen/dir_dialog.rb +134 -0
  166. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +80 -0
  167. data/lib/wx/doc/gen/dir_picker_ctrl.rb +103 -0
  168. data/lib/wx/doc/gen/drag_drop.rb +292 -0
  169. data/lib/wx/doc/gen/drag_image.rb +123 -0
  170. data/lib/wx/doc/gen/editable_list_box.rb +89 -0
  171. data/lib/wx/doc/gen/event.rb +911 -0
  172. data/lib/wx/doc/gen/event_list.rb +1512 -0
  173. data/lib/wx/doc/gen/events.rb +2499 -0
  174. data/lib/wx/doc/gen/evt_handler.rb +224 -0
  175. data/lib/wx/doc/gen/ext_help_controller.rb +100 -0
  176. data/lib/wx/doc/gen/file_dialog.rb +294 -0
  177. data/lib/wx/doc/gen/file_dir_picker_event.rb +98 -0
  178. data/lib/wx/doc/gen/file_picker_ctrl.rb +107 -0
  179. data/lib/wx/doc/gen/find_dialog_event.rb +119 -0
  180. data/lib/wx/doc/gen/find_replace_data.rb +59 -0
  181. data/lib/wx/doc/gen/find_replace_dialog.rb +44 -0
  182. data/lib/wx/doc/gen/flex_grid_sizer.rb +145 -0
  183. data/lib/wx/doc/gen/font.rb +1282 -0
  184. data/lib/wx/doc/gen/font_data.rb +132 -0
  185. data/lib/wx/doc/gen/font_dialog.rb +71 -0
  186. data/lib/wx/doc/gen/font_picker_ctrl.rb +120 -0
  187. data/lib/wx/doc/gen/font_picker_event.rb +64 -0
  188. data/lib/wx/doc/gen/frame.rb +276 -0
  189. data/lib/wx/doc/gen/fs_file.rb +269 -0
  190. data/lib/wx/doc/gen/functions.rb +10 -0
  191. data/lib/wx/doc/gen/gauge.rb +127 -0
  192. data/lib/wx/doc/gen/gb_sizer_item.rb +78 -0
  193. data/lib/wx/doc/gen/gcdc.rb +61 -0
  194. data/lib/wx/doc/gen/gdi_common.rb +1108 -0
  195. data/lib/wx/doc/gen/gdi_object.rb +29 -0
  196. data/lib/wx/doc/gen/generic_dir_ctrl.rb +198 -0
  197. data/lib/wx/doc/gen/graphics_context.rb +764 -0
  198. data/lib/wx/doc/gen/graphics_object.rb +494 -0
  199. data/lib/wx/doc/gen/grid/event_list.rb +173 -0
  200. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +33 -0
  201. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +279 -0
  202. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +31 -0
  203. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +32 -0
  204. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +44 -0
  205. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +31 -0
  206. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +48 -0
  207. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +33 -0
  208. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +40 -0
  209. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +35 -0
  210. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +181 -0
  211. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +34 -0
  212. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +39 -0
  213. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +41 -0
  214. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +74 -0
  215. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +41 -0
  216. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +31 -0
  217. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +98 -0
  218. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +31 -0
  219. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +45 -0
  220. data/lib/wx/doc/gen/grid/grid_ctrl.rb +2381 -0
  221. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +87 -0
  222. data/lib/wx/doc/gen/grid/grid_event.rb +96 -0
  223. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +96 -0
  224. data/lib/wx/doc/gen/grid/grid_size_event.rb +71 -0
  225. data/lib/wx/doc/gen/grid/grid_string_table.rb +130 -0
  226. data/lib/wx/doc/gen/grid/grid_table_base.rb +288 -0
  227. data/lib/wx/doc/gen/grid/grid_table_message.rb +73 -0
  228. data/lib/wx/doc/gen/grid_bag_sizer.rb +298 -0
  229. data/lib/wx/doc/gen/grid_sizer.rb +135 -0
  230. data/lib/wx/doc/gen/help_controller.rb +136 -0
  231. data/lib/wx/doc/gen/help_provider.rb +80 -0
  232. data/lib/wx/doc/gen/html/event_list.rb +46 -0
  233. data/lib/wx/doc/gen/html/html_cell.rb +441 -0
  234. data/lib/wx/doc/gen/html/html_cell_event.rb +62 -0
  235. data/lib/wx/doc/gen/html/html_easy_printing.rb +169 -0
  236. data/lib/wx/doc/gen/html/html_help_controller.rb +256 -0
  237. data/lib/wx/doc/gen/html/html_help_data.rb +144 -0
  238. data/lib/wx/doc/gen/html/html_help_frame.rb +112 -0
  239. data/lib/wx/doc/gen/html/html_help_window.rb +230 -0
  240. data/lib/wx/doc/gen/html/html_link_event.rb +36 -0
  241. data/lib/wx/doc/gen/html/html_list_box.rb +150 -0
  242. data/lib/wx/doc/gen/html/html_printout.rb +87 -0
  243. data/lib/wx/doc/gen/html/html_window.rb +386 -0
  244. data/lib/wx/doc/gen/icon.rb +267 -0
  245. data/lib/wx/doc/gen/icon_location.rb +38 -0
  246. data/lib/wx/doc/gen/image.rb +1144 -0
  247. data/lib/wx/doc/gen/image_list.rb +181 -0
  248. data/lib/wx/doc/gen/keyboard_state.rb +124 -0
  249. data/lib/wx/doc/gen/list_box.rb +260 -0
  250. data/lib/wx/doc/gen/list_ctrl.rb +1542 -0
  251. data/lib/wx/doc/gen/list_event.rb +177 -0
  252. data/lib/wx/doc/gen/listbook.rb +100 -0
  253. data/lib/wx/doc/gen/locale.rb +4143 -0
  254. data/lib/wx/doc/gen/log.rb +505 -0
  255. data/lib/wx/doc/gen/mdi_client_window.rb +38 -0
  256. data/lib/wx/doc/gen/mdi_frame.rb +235 -0
  257. data/lib/wx/doc/gen/media_ctrl.rb +225 -0
  258. data/lib/wx/doc/gen/media_event.rb +109 -0
  259. data/lib/wx/doc/gen/memory_dc.rb +95 -0
  260. data/lib/wx/doc/gen/menu.rb +493 -0
  261. data/lib/wx/doc/gen/menu_bar.rb +247 -0
  262. data/lib/wx/doc/gen/menu_item.rb +333 -0
  263. data/lib/wx/doc/gen/message_dialog.rb +195 -0
  264. data/lib/wx/doc/gen/mini_frame.rb +72 -0
  265. data/lib/wx/doc/gen/mirror_dc.rb +29 -0
  266. data/lib/wx/doc/gen/mouse_state.rb +108 -0
  267. data/lib/wx/doc/gen/multi_choice_dialog.rb +58 -0
  268. data/lib/wx/doc/gen/non_owned_window.rb +46 -0
  269. data/lib/wx/doc/gen/notebook.rb +220 -0
  270. data/lib/wx/doc/gen/number_entry_dialog.rb +75 -0
  271. data/lib/wx/doc/gen/object.rb +69 -0
  272. data/lib/wx/doc/gen/paint_dc.rb +34 -0
  273. data/lib/wx/doc/gen/palette.rb +90 -0
  274. data/lib/wx/doc/gen/panel.rb +96 -0
  275. data/lib/wx/doc/gen/pen.rb +484 -0
  276. data/lib/wx/doc/gen/pg/event_list.rb +102 -0
  277. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +47 -0
  278. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +295 -0
  279. data/lib/wx/doc/gen/pg/pg_cell.rb +166 -0
  280. data/lib/wx/doc/gen/pg/pg_editor.rb +569 -0
  281. data/lib/wx/doc/gen/pg/pg_multi_button.rb +161 -0
  282. data/lib/wx/doc/gen/pg/pg_properties.rb +2193 -0
  283. data/lib/wx/doc/gen/pg/pg_property.rb +1852 -0
  284. data/lib/wx/doc/gen/pg/pg_validation_info.rb +327 -0
  285. data/lib/wx/doc/gen/pg/property_grid.rb +619 -0
  286. data/lib/wx/doc/gen/pg/property_grid_event.rb +135 -0
  287. data/lib/wx/doc/gen/pg/property_grid_interface.rb +847 -0
  288. data/lib/wx/doc/gen/pg/property_grid_manager.rb +349 -0
  289. data/lib/wx/doc/gen/pg/property_grid_page.rb +265 -0
  290. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +155 -0
  291. data/lib/wx/doc/gen/picker_base.rb +143 -0
  292. data/lib/wx/doc/gen/platform_info.rb +379 -0
  293. data/lib/wx/doc/gen/popup_window.rb +93 -0
  294. data/lib/wx/doc/gen/progress_dialog.rb +106 -0
  295. data/lib/wx/doc/gen/property_sheet_dialog.rb +185 -0
  296. data/lib/wx/doc/gen/prt/event_list.rb +13 -0
  297. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +38 -0
  298. data/lib/wx/doc/gen/prt/post_script_dc.rb +32 -0
  299. data/lib/wx/doc/gen/prt/preview_frame.rb +39 -0
  300. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +127 -0
  301. data/lib/wx/doc/gen/prt/print_data.rb +598 -0
  302. data/lib/wx/doc/gen/prt/print_dialog.rb +47 -0
  303. data/lib/wx/doc/gen/prt/printer.rb +428 -0
  304. data/lib/wx/doc/gen/prt/printer_dc.rb +35 -0
  305. data/lib/wx/doc/gen/query_layout_info_event.rb +98 -0
  306. data/lib/wx/doc/gen/radio_box.rb +258 -0
  307. data/lib/wx/doc/gen/radio_button.rb +128 -0
  308. data/lib/wx/doc/gen/rbn/event_list.rb +132 -0
  309. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1652 -0
  310. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +227 -0
  311. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +40 -0
  312. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +400 -0
  313. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +58 -0
  314. data/lib/wx/doc/gen/rbn/ribbon_control.rb +116 -0
  315. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +208 -0
  316. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +51 -0
  317. data/lib/wx/doc/gen/rbn/ribbon_page.rb +129 -0
  318. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +232 -0
  319. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +41 -0
  320. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +321 -0
  321. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +36 -0
  322. data/lib/wx/doc/gen/region.rb +299 -0
  323. data/lib/wx/doc/gen/rtc/event_list.rb +121 -0
  324. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +2052 -0
  325. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2031 -0
  326. data/lib/wx/doc/gen/rtc/rich_text_event.rb +146 -0
  327. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +171 -0
  328. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +180 -0
  329. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +104 -0
  330. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +241 -0
  331. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +55 -0
  332. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +153 -0
  333. data/lib/wx/doc/gen/sash_event.rb +133 -0
  334. data/lib/wx/doc/gen/sash_layout_window.rb +203 -0
  335. data/lib/wx/doc/gen/sash_window.rb +154 -0
  336. data/lib/wx/doc/gen/screen_dc.rb +27 -0
  337. data/lib/wx/doc/gen/scrolled_canvas.rb +317 -0
  338. data/lib/wx/doc/gen/scrolled_control.rb +317 -0
  339. data/lib/wx/doc/gen/scrolled_window.rb +337 -0
  340. data/lib/wx/doc/gen/simplebook.rb +93 -0
  341. data/lib/wx/doc/gen/single_choice_dialog.rb +74 -0
  342. data/lib/wx/doc/gen/sizer.rb +847 -0
  343. data/lib/wx/doc/gen/sizer_item.rb +227 -0
  344. data/lib/wx/doc/gen/slider.rb +316 -0
  345. data/lib/wx/doc/gen/spin_button.rb +124 -0
  346. data/lib/wx/doc/gen/spin_ctrl.rb +170 -0
  347. data/lib/wx/doc/gen/spin_event.rb +47 -0
  348. data/lib/wx/doc/gen/splash_screen.rb +83 -0
  349. data/lib/wx/doc/gen/splitter_event.rb +87 -0
  350. data/lib/wx/doc/gen/splitter_window.rb +357 -0
  351. data/lib/wx/doc/gen/static_bitmap.rb +126 -0
  352. data/lib/wx/doc/gen/static_box.rb +123 -0
  353. data/lib/wx/doc/gen/static_box_sizer.rb +67 -0
  354. data/lib/wx/doc/gen/static_line.rb +66 -0
  355. data/lib/wx/doc/gen/static_text.rb +98 -0
  356. data/lib/wx/doc/gen/status_bar.rb +203 -0
  357. data/lib/wx/doc/gen/stc/event_list.rb +217 -0
  358. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4000 -0
  359. data/lib/wx/doc/gen/stc/styled_text_event.rb +7319 -0
  360. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +74 -0
  361. data/lib/wx/doc/gen/svg_file_dc.rb +153 -0
  362. data/lib/wx/doc/gen/system_options.rb +109 -0
  363. data/lib/wx/doc/gen/system_settings.rb +481 -0
  364. data/lib/wx/doc/gen/task_bar_icon.rb +94 -0
  365. data/lib/wx/doc/gen/task_bar_icon_event.rb +86 -0
  366. data/lib/wx/doc/gen/text_attr.rb +645 -0
  367. data/lib/wx/doc/gen/text_ctrl.rb +841 -0
  368. data/lib/wx/doc/gen/text_entry.rb +389 -0
  369. data/lib/wx/doc/gen/text_entry_dialog.rb +170 -0
  370. data/lib/wx/doc/gen/text_validator.rb +212 -0
  371. data/lib/wx/doc/gen/time_picker_ctrl.rb +103 -0
  372. data/lib/wx/doc/gen/timer.rb +103 -0
  373. data/lib/wx/doc/gen/timer_event.rb +73 -0
  374. data/lib/wx/doc/gen/tip_provider.rb +60 -0
  375. data/lib/wx/doc/gen/toggle_button.rb +84 -0
  376. data/lib/wx/doc/gen/tool_bar.rb +744 -0
  377. data/lib/wx/doc/gen/tool_tip.rb +73 -0
  378. data/lib/wx/doc/gen/toolbook.rb +103 -0
  379. data/lib/wx/doc/gen/top_level_window.rb +462 -0
  380. data/lib/wx/doc/gen/tree_ctrl.rb +863 -0
  381. data/lib/wx/doc/gen/tree_event.rb +101 -0
  382. data/lib/wx/doc/gen/treebook.rb +154 -0
  383. data/lib/wx/doc/gen/utils.rb +257 -0
  384. data/lib/wx/doc/gen/v_list_box.rb +224 -0
  385. data/lib/wx/doc/gen/v_scrolled_window.rb +224 -0
  386. data/lib/wx/doc/gen/validator.rb +73 -0
  387. data/lib/wx/doc/gen/variant.rb +340 -0
  388. data/lib/wx/doc/gen/window.rb +2414 -0
  389. data/lib/wx/doc/gen/window_dc.rb +35 -0
  390. data/lib/wx/doc/gen/window_disabler.rb +24 -0
  391. data/lib/wx/doc/gen/with_images.rb +73 -0
  392. data/lib/wx/doc/gen/wizard.rb +197 -0
  393. data/lib/wx/doc/gen/wizard_event.rb +105 -0
  394. data/lib/wx/doc/gen/wizard_page.rb +61 -0
  395. data/lib/wx/doc/gen/wizard_page_simple.rb +72 -0
  396. data/lib/wx/doc/gen/xml_node.rb +282 -0
  397. data/lib/wx/doc/gen/xml_resource.rb +304 -0
  398. data/lib/wx/doc/grid/grid.rb +20 -0
  399. data/lib/wx/doc/help_controller.rb +14 -0
  400. data/lib/wx/doc/html/html_help_controller.rb +8 -0
  401. data/lib/wx/doc/pg/events.rb +15 -0
  402. data/lib/wx/doc/pg/pg_property.rb +8 -0
  403. data/lib/wx/doc/pg/pgeditor.rb +21 -0
  404. data/lib/wx/doc/pg/property_grid.rb +48 -0
  405. data/lib/wx/doc/pg/property_grid_interface.rb +64 -0
  406. data/lib/wx/doc/prt/page_setup_dialog.rb +15 -0
  407. data/lib/wx/doc/prt/print_data.rb +9 -0
  408. data/lib/wx/doc/prt/print_dialog.rb +26 -0
  409. data/lib/wx/doc/prt/printer.rb +15 -0
  410. data/lib/wx/doc/rbn/ribbon_bar.rb +9 -0
  411. data/lib/wx/doc/rbn/ribbon_button_bar.rb +9 -0
  412. data/lib/wx/doc/rbn/ribbon_gallery.rb +9 -0
  413. data/lib/wx/doc/rbn/ribbon_tool_bar.rb +9 -0
  414. data/lib/wx/doc/rtc/richtext_printing.rb +14 -0
  415. data/lib/wx/doc/screen_dc.rb +10 -0
  416. data/lib/wx/doc/stock_objects.rb +98 -0
  417. data/lib/wx/doc/stream.rb +38 -0
  418. data/lib/wx/doc/system_settings.rb +29 -0
  419. data/lib/wx/doc/treebook.rb +9 -0
  420. data/lib/wx/doc/variant.rb +163 -0
  421. data/lib/wx/doc/xml_resource.rb +19 -0
  422. data/lib/wx/global_const.rb +84 -0
  423. data/lib/wx/grid/events/evt_list.rb +156 -0
  424. data/lib/wx/grid/grid.rb +7 -0
  425. data/lib/wx/grid/keyword_defs.rb +10 -0
  426. data/lib/wx/grid/require.rb +9 -0
  427. data/lib/wx/grid.rb +14 -0
  428. data/lib/wx/helpers.rb +65 -0
  429. data/lib/wx/html/events/evt_list.rb +37 -0
  430. data/lib/wx/html/htmlhelpcontroller.rb +6 -0
  431. data/lib/wx/html/htmlwindow.rb +19 -0
  432. data/lib/wx/html/keyword_defs.rb +22 -0
  433. data/lib/wx/html/require.rb +10 -0
  434. data/lib/wx/html.rb +15 -0
  435. data/lib/wx/keyword_ctors.rb +226 -0
  436. data/lib/wx/keyword_defs.rb +487 -0
  437. data/lib/wx/pg/events/evt_list.rb +73 -0
  438. data/lib/wx/pg/events.rb +14 -0
  439. data/lib/wx/pg/keyword_defs.rb +15 -0
  440. data/lib/wx/pg/pg_editor.rb +13 -0
  441. data/lib/wx/pg/pg_properties.rb +24 -0
  442. data/lib/wx/pg/pg_property.rb +26 -0
  443. data/lib/wx/pg/property_grid.rb +56 -0
  444. data/lib/wx/pg/property_grid_interface.rb +33 -0
  445. data/lib/wx/pg/require.rb +12 -0
  446. data/lib/wx/pg.rb +14 -0
  447. data/lib/wx/prt/keyword_defs.rb +8 -0
  448. data/lib/wx/prt/page_setup_dialog.rb +15 -0
  449. data/lib/wx/prt/previewframe.rb +13 -0
  450. data/lib/wx/prt/require.rb +8 -0
  451. data/lib/wx/prt.rb +14 -0
  452. data/lib/wx/rbn/events/evt_list.rb +102 -0
  453. data/lib/wx/rbn/events.rb +4 -0
  454. data/lib/wx/rbn/keyword_defs.rb +43 -0
  455. data/lib/wx/rbn/require.rb +12 -0
  456. data/lib/wx/rbn/ribbon_art_provider.rb +10 -0
  457. data/lib/wx/rbn/ribbon_bar.rb +12 -0
  458. data/lib/wx/rbn/ribbon_button_bar.rb +26 -0
  459. data/lib/wx/rbn/ribbon_control.rb +25 -0
  460. data/lib/wx/rbn/ribbon_gallery.rb +26 -0
  461. data/lib/wx/rbn/ribbon_page.rb +15 -0
  462. data/lib/wx/rbn/ribbon_panel.rb +15 -0
  463. data/lib/wx/rbn/ribbon_tool_bar.rb +26 -0
  464. data/lib/wx/rbn.rb +14 -0
  465. data/lib/wx/rtc/events/evt_list.rb +98 -0
  466. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  467. data/lib/wx/rtc/ext.rb +15 -0
  468. data/lib/wx/rtc/keyword_defs.rb +17 -0
  469. data/lib/wx/rtc/require.rb +8 -0
  470. data/lib/wx/rtc.rb +15 -0
  471. data/lib/wx/stc/events/evt_list.rb +178 -0
  472. data/lib/wx/stc/keyword_defs.rb +8 -0
  473. data/lib/wx/stc/require.rb +7 -0
  474. data/lib/wx/stc.rb +14 -0
  475. data/lib/wx/version.rb +3 -0
  476. data/lib/wx/wxruby/base.rb +87 -0
  477. data/lib/wx/wxruby/cmd/sampler.rb +68 -0
  478. data/lib/wx/wxruby/cmd/test.rb +27 -0
  479. data/lib/wx.rb +14 -0
  480. data/lib/wxruby_aui.so +0 -0
  481. data/lib/wxruby_core.so +0 -0
  482. data/lib/wxruby_grid.so +0 -0
  483. data/lib/wxruby_html.so +0 -0
  484. data/lib/wxruby_pg.so +0 -0
  485. data/lib/wxruby_prt.so +0 -0
  486. data/lib/wxruby_rbn.so +0 -0
  487. data/lib/wxruby_rtc.so +0 -0
  488. data/lib/wxruby_stc.so +0 -0
  489. data/rakelib/install.rb +220 -0
  490. data/rakelib/lib/config/cygwin.rb +6 -0
  491. data/rakelib/lib/config/linux.rb +78 -0
  492. data/rakelib/lib/config/macosx.rb +6 -0
  493. data/rakelib/lib/config/mingw.rb +133 -0
  494. data/rakelib/lib/config/netbsd.rb +6 -0
  495. data/rakelib/lib/config/unixish.rb +187 -0
  496. data/rakelib/lib/config.rb +673 -0
  497. data/rakelib/lib/ext/enum_chain.rb +22 -0
  498. data/rakelib/prepost.rake +91 -0
  499. data/rakelib/prepost.rb +26 -0
  500. data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +7 -0
  501. data/rakelib/yard/templates/default/layout/html/setup.rb +5 -0
  502. data/rakelib/yard/yard/relative_markdown_links/version.rb +8 -0
  503. data/rakelib/yard/yard/relative_markdown_links.rb +39 -0
  504. data/rakelib/yard/yard-custom-templates.rb +2 -0
  505. data/rakelib/yard/yard-relative_markdown_links.rb +4 -0
  506. data/samples/art/wxruby-128x128.png +0 -0
  507. data/samples/art/wxruby-256x256.png +0 -0
  508. data/samples/art/wxruby-64x64.png +0 -0
  509. data/samples/art/wxruby.ico +0 -0
  510. data/samples/art/wxruby.png +0 -0
  511. data/samples/aui/aui.rb +1321 -0
  512. data/samples/aui/tn_aui.png +0 -0
  513. data/samples/bigdemo/About.rbw +39 -0
  514. data/samples/bigdemo/ColorPanel.rbw +23 -0
  515. data/samples/bigdemo/GridSimple.rbw +78 -0
  516. data/samples/bigdemo/MDIDemo.rbw +57 -0
  517. data/samples/bigdemo/PopupMenu.rbw +146 -0
  518. data/samples/bigdemo/ShapedWindow.rbw +128 -0
  519. data/samples/bigdemo/Sizers.rbw +541 -0
  520. data/samples/bigdemo/bigdemo.rb +810 -0
  521. data/samples/bigdemo/demoTemplate.rbw +33 -0
  522. data/samples/bigdemo/helpfile.htb +0 -0
  523. data/samples/bigdemo/icons/Test 015.jpg +0 -0
  524. data/samples/bigdemo/icons/Test 015.png +0 -0
  525. data/samples/bigdemo/icons/choice.bmp +0 -0
  526. data/samples/bigdemo/icons/choice.xpm +27 -0
  527. data/samples/bigdemo/icons/combo.bmp +0 -0
  528. data/samples/bigdemo/icons/combo.xpm +27 -0
  529. data/samples/bigdemo/icons/copy.xpm +25 -0
  530. data/samples/bigdemo/icons/cut.xpm +24 -0
  531. data/samples/bigdemo/icons/gauge.bmp +0 -0
  532. data/samples/bigdemo/icons/gauge.xpm +27 -0
  533. data/samples/bigdemo/icons/help.xpm +25 -0
  534. data/samples/bigdemo/icons/list.bmp +0 -0
  535. data/samples/bigdemo/icons/list.xpm +27 -0
  536. data/samples/bigdemo/icons/mondrian.ico +0 -0
  537. data/samples/bigdemo/icons/mondrian.xpm +44 -0
  538. data/samples/bigdemo/icons/new.xpm +24 -0
  539. data/samples/bigdemo/icons/ogl.ico +0 -0
  540. data/samples/bigdemo/icons/ogl.xpm +45 -0
  541. data/samples/bigdemo/icons/open.xpm +26 -0
  542. data/samples/bigdemo/icons/paste.bmp +0 -0
  543. data/samples/bigdemo/icons/paste.xpm +38 -0
  544. data/samples/bigdemo/icons/pointy.png +0 -0
  545. data/samples/bigdemo/icons/preview.xpm +26 -0
  546. data/samples/bigdemo/icons/print.xpm +26 -0
  547. data/samples/bigdemo/icons/radio.bmp +0 -0
  548. data/samples/bigdemo/icons/radio.xpm +27 -0
  549. data/samples/bigdemo/icons/robert.xpm +415 -0
  550. data/samples/bigdemo/icons/sashtest.ico +0 -0
  551. data/samples/bigdemo/icons/save.xpm +25 -0
  552. data/samples/bigdemo/icons/smiles.bmp +0 -0
  553. data/samples/bigdemo/icons/smiles.xpm +39 -0
  554. data/samples/bigdemo/icons/smiley.ico +0 -0
  555. data/samples/bigdemo/icons/smiley.xpm +42 -0
  556. data/samples/bigdemo/icons/stattext.xpm +24 -0
  557. data/samples/bigdemo/icons/test2.bmp +0 -0
  558. data/samples/bigdemo/icons/test2.png +0 -0
  559. data/samples/bigdemo/icons/test2.xpm +79 -0
  560. data/samples/bigdemo/icons/text.bmp +0 -0
  561. data/samples/bigdemo/icons/text.xpm +27 -0
  562. data/samples/bigdemo/icons/tog1.bmp +0 -0
  563. data/samples/bigdemo/icons/tog1.xpm +38 -0
  564. data/samples/bigdemo/icons/tog2.bmp +0 -0
  565. data/samples/bigdemo/icons/tog2.xpm +38 -0
  566. data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
  567. data/samples/bigdemo/icons/wxwin.ico +0 -0
  568. data/samples/bigdemo/icons/wxwin16x16.png +0 -0
  569. data/samples/bigdemo/icons/wxwin16x16.xpm +25 -0
  570. data/samples/bigdemo/icons/wxwin32x32.png +0 -0
  571. data/samples/bigdemo/icons/wxwin48x48.png +0 -0
  572. data/samples/bigdemo/run.rb +91 -0
  573. data/samples/bigdemo/tips.txt +7 -0
  574. data/samples/bigdemo/utils.rb +12 -0
  575. data/samples/bigdemo/wxArtProvider.rbw +281 -0
  576. data/samples/bigdemo/wxBitmapButton.rbw +65 -0
  577. data/samples/bigdemo/wxButton.rbw +64 -0
  578. data/samples/bigdemo/wxCalendarCtrl.rbw +59 -0
  579. data/samples/bigdemo/wxCheckBox.rbw +50 -0
  580. data/samples/bigdemo/wxCheckListBox.rbw +65 -0
  581. data/samples/bigdemo/wxChoice.rbw +47 -0
  582. data/samples/bigdemo/wxChoicebook.rbw +78 -0
  583. data/samples/bigdemo/wxColourDialog.rbw +33 -0
  584. data/samples/bigdemo/wxComboBox.rbw +77 -0
  585. data/samples/bigdemo/wxCursor.rbw +136 -0
  586. data/samples/bigdemo/wxDialog.rbw +74 -0
  587. data/samples/bigdemo/wxDirDialog.rbw +29 -0
  588. data/samples/bigdemo/wxDragImage.rbw +70 -0
  589. data/samples/bigdemo/wxFileDialog.rbw +37 -0
  590. data/samples/bigdemo/wxFileDialog_Save.rbw +35 -0
  591. data/samples/bigdemo/wxFindReplaceDialog.rbw +82 -0
  592. data/samples/bigdemo/wxFontDialog.rbw +200 -0
  593. data/samples/bigdemo/wxFrame.rbw +53 -0
  594. data/samples/bigdemo/wxGauge.rbw +65 -0
  595. data/samples/bigdemo/wxGenericDirCtrl.rbw +74 -0
  596. data/samples/bigdemo/wxGrid.rbw +66 -0
  597. data/samples/bigdemo/wxHtmlHelpController.rbw +52 -0
  598. data/samples/bigdemo/wxListBox.rbw +140 -0
  599. data/samples/bigdemo/wxListCtrl_virtual.rbw +112 -0
  600. data/samples/bigdemo/wxMDIWindows.rbw +50 -0
  601. data/samples/bigdemo/wxMenu.rbw +247 -0
  602. data/samples/bigdemo/wxMessageDialog.rbw +27 -0
  603. data/samples/bigdemo/wxMiniFrame.rbw +70 -0
  604. data/samples/bigdemo/wxMultipleChoiceDialog.rbw +29 -0
  605. data/samples/bigdemo/wxNotebook.rbw +136 -0
  606. data/samples/bigdemo/wxProgressDialog.rbw +43 -0
  607. data/samples/bigdemo/wxRadioBox.rbw +72 -0
  608. data/samples/bigdemo/wxRadioButton.rbw +125 -0
  609. data/samples/bigdemo/wxSashWindow.rbw +141 -0
  610. data/samples/bigdemo/wxScrolledMessageDialog.rbw +57 -0
  611. data/samples/bigdemo/wxScrolledWindow.rbw +199 -0
  612. data/samples/bigdemo/wxSingleChoiceDialog.rbw +33 -0
  613. data/samples/bigdemo/wxSlider.rbw +42 -0
  614. data/samples/bigdemo/wxSpinButton.rbw +50 -0
  615. data/samples/bigdemo/wxSpinCtrl.rbw +51 -0
  616. data/samples/bigdemo/wxSplitterWindow.rbw +63 -0
  617. data/samples/bigdemo/wxStaticBitmap.rbw +47 -0
  618. data/samples/bigdemo/wxStaticText.rbw +55 -0
  619. data/samples/bigdemo/wxStatusBar.rbw +126 -0
  620. data/samples/bigdemo/wxTextCtrl.rbw +149 -0
  621. data/samples/bigdemo/wxTextEntryDialog.rbw +31 -0
  622. data/samples/bigdemo/wxToggleButton.rbw +49 -0
  623. data/samples/bigdemo/wxToolBar.rbw +131 -0
  624. data/samples/bigdemo/wxTreeCtrl.rbw +191 -0
  625. data/samples/calendar/calendar.rb +363 -0
  626. data/samples/calendar/tn_calendar.png +0 -0
  627. data/samples/caret/caret.rb +293 -0
  628. data/samples/caret/mondrian.xpm +44 -0
  629. data/samples/caret/tn_caret.png +0 -0
  630. data/samples/controls/books.rb +183 -0
  631. data/samples/controls/controls.rb +1143 -0
  632. data/samples/controls/get_item_sample.rb +117 -0
  633. data/samples/controls/icons/choice.xpm +27 -0
  634. data/samples/controls/icons/combo.xpm +27 -0
  635. data/samples/controls/icons/gauge.xpm +27 -0
  636. data/samples/controls/icons/list.xpm +27 -0
  637. data/samples/controls/icons/radio.xpm +27 -0
  638. data/samples/controls/icons/stattext.xpm +24 -0
  639. data/samples/controls/icons/text.xpm +27 -0
  640. data/samples/controls/mondrian.ico +0 -0
  641. data/samples/controls/mondrian.xpm +44 -0
  642. data/samples/controls/test2.bmp +0 -0
  643. data/samples/controls/tn_books.png +0 -0
  644. data/samples/controls/tn_controls.png +0 -0
  645. data/samples/controls/tn_get_item_sample.png +0 -0
  646. data/samples/dialogs/dialogs.rb +879 -0
  647. data/samples/dialogs/tips.txt +18 -0
  648. data/samples/dialogs/tn_dialogs.png +0 -0
  649. data/samples/dialogs/tn_wizard.png +0 -0
  650. data/samples/dialogs/wizard.rb +89 -0
  651. data/samples/dragdrop/dragdrop.rb +200 -0
  652. data/samples/dragdrop/tn_dragdrop.png +0 -0
  653. data/samples/drawing/SVGlogo24.xpm +310 -0
  654. data/samples/drawing/bitmap.rb +76 -0
  655. data/samples/drawing/bitmap_image.rb +131 -0
  656. data/samples/drawing/graphics_drawing.rb +257 -0
  657. data/samples/drawing/maths_images.rb +327 -0
  658. data/samples/drawing/rmagic_bitmap_image.rb +139 -0
  659. data/samples/drawing/ruby-logo.jpg +0 -0
  660. data/samples/drawing/svgtest.rb +373 -0
  661. data/samples/drawing/tn_bitmap.png +0 -0
  662. data/samples/drawing/tn_bitmap_image.png +0 -0
  663. data/samples/drawing/tn_graphics_drawing.png +0 -0
  664. data/samples/drawing/tn_maths_images.png +0 -0
  665. data/samples/drawing/tn_rmagic_bitmap_image.png +0 -0
  666. data/samples/drawing/tn_svgtest.png +0 -0
  667. data/samples/etc/choice.rb +82 -0
  668. data/samples/etc/miniframe.rb +92 -0
  669. data/samples/etc/sash.rb +140 -0
  670. data/samples/etc/scrollwin.rb +120 -0
  671. data/samples/etc/system_settings.rb +263 -0
  672. data/samples/etc/tn_choice.png +0 -0
  673. data/samples/etc/tn_miniframe.png +0 -0
  674. data/samples/etc/tn_sash.png +0 -0
  675. data/samples/etc/tn_scrollwin.png +0 -0
  676. data/samples/etc/tn_system_settings.png +0 -0
  677. data/samples/event/activation.rb +129 -0
  678. data/samples/event/event.rb +220 -0
  679. data/samples/event/threaded.rb +141 -0
  680. data/samples/event/tn_activation.png +0 -0
  681. data/samples/event/tn_event.png +0 -0
  682. data/samples/event/tn_threaded.png +0 -0
  683. data/samples/event/tn_update_ui_event.png +0 -0
  684. data/samples/event/update_ui_event.rb +91 -0
  685. data/samples/grid/grid.rb +224 -0
  686. data/samples/grid/gridtablebase.rb +178 -0
  687. data/samples/grid/tn_grid.png +0 -0
  688. data/samples/grid/tn_gridtablebase.png +0 -0
  689. data/samples/html/8859_2.htm +14 -0
  690. data/samples/html/cp1250.htm +19 -0
  691. data/samples/html/foo.png +0 -0
  692. data/samples/html/html.rb +278 -0
  693. data/samples/html/i18n.gif +0 -0
  694. data/samples/html/imagemap.htm +20 -0
  695. data/samples/html/imagemap.png +0 -0
  696. data/samples/html/listtest.htm +28 -0
  697. data/samples/html/pic.png +0 -0
  698. data/samples/html/pic2.bmp +0 -0
  699. data/samples/html/regres.htm +20 -0
  700. data/samples/html/subsup.html +42 -0
  701. data/samples/html/tables.htm +255 -0
  702. data/samples/html/test.htm +375 -0
  703. data/samples/html/tn_html.png +0 -0
  704. data/samples/mdi/mdi.rb +118 -0
  705. data/samples/mdi/tn_mdi.png +0 -0
  706. data/samples/minimal/minimal.rb +95 -0
  707. data/samples/minimal/mondrian.ico +0 -0
  708. data/samples/minimal/mondrian.png +0 -0
  709. data/samples/minimal/nothing.rb +38 -0
  710. data/samples/minimal/tn_minimal.png +0 -0
  711. data/samples/minimal/tn_nothing.png +0 -0
  712. data/samples/printing/mondrian.ico +0 -0
  713. data/samples/printing/mondrian.xpm +44 -0
  714. data/samples/printing/printing.rb +499 -0
  715. data/samples/printing/printing2.rb +251 -0
  716. data/samples/printing/sample-text.txt +213 -0
  717. data/samples/printing/tn_printing.png +0 -0
  718. data/samples/printing/tn_printing2.png +0 -0
  719. data/samples/propgrid/propgrid.rb +2707 -0
  720. data/samples/propgrid/propgrid_minimal.rb +106 -0
  721. data/samples/propgrid/sample_props.rb +434 -0
  722. data/samples/propgrid/tn_propgrid.png +0 -0
  723. data/samples/propgrid/tn_propgrid_minimal.png +0 -0
  724. data/samples/ribbon/align_center.xpm +21 -0
  725. data/samples/ribbon/align_left.xpm +21 -0
  726. data/samples/ribbon/align_right.xpm +21 -0
  727. data/samples/ribbon/aui_style.xpm +53 -0
  728. data/samples/ribbon/auto_crop_selection.xpm +55 -0
  729. data/samples/ribbon/auto_crop_selection_small.xpm +33 -0
  730. data/samples/ribbon/circle.xpm +38 -0
  731. data/samples/ribbon/circle_small.xpm +22 -0
  732. data/samples/ribbon/colours.xpm +25 -0
  733. data/samples/ribbon/cross.xpm +38 -0
  734. data/samples/ribbon/empty.xpm +23 -0
  735. data/samples/ribbon/expand_selection_h.xpm +46 -0
  736. data/samples/ribbon/expand_selection_v.xpm +46 -0
  737. data/samples/ribbon/eye.xpm +26 -0
  738. data/samples/ribbon/hexagon.xpm +38 -0
  739. data/samples/ribbon/msw_style.xpm +65 -0
  740. data/samples/ribbon/position_left.xpm +22 -0
  741. data/samples/ribbon/position_top.xpm +22 -0
  742. data/samples/ribbon/ribbon.rb +900 -0
  743. data/samples/ribbon/ribbon.xpm +54 -0
  744. data/samples/ribbon/selection_panel.xpm +23 -0
  745. data/samples/ribbon/square.xpm +38 -0
  746. data/samples/ribbon/tn_ribbon.png +0 -0
  747. data/samples/ribbon/triangle.xpm +38 -0
  748. data/samples/sample.xpm +475 -0
  749. data/samples/sampler/back.xpm +21 -0
  750. data/samples/sampler/copy.xpm +44 -0
  751. data/samples/sampler/cut.xpm +46 -0
  752. data/samples/sampler/editor.rb +534 -0
  753. data/samples/sampler/ext.rb +51 -0
  754. data/samples/sampler/filesave.xpm +42 -0
  755. data/samples/sampler/find.xpm +62 -0
  756. data/samples/sampler/findrepl.xpm +63 -0
  757. data/samples/sampler/forward.xpm +21 -0
  758. data/samples/sampler/paste.xpm +46 -0
  759. data/samples/sampler/play.xpm +24 -0
  760. data/samples/sampler/redo.xpm +58 -0
  761. data/samples/sampler/sample.rb +337 -0
  762. data/samples/sampler/stc_editor.rb +326 -0
  763. data/samples/sampler/txt_editor.rb +135 -0
  764. data/samples/sampler/undo.xpm +58 -0
  765. data/samples/sampler.rb +401 -0
  766. data/samples/splash/mobile.xpm +1835 -0
  767. data/samples/splash/splash.png +0 -0
  768. data/samples/splash/splash.rb +164 -0
  769. data/samples/splash/tn_splash.png +0 -0
  770. data/samples/text/document-open.png +0 -0
  771. data/samples/text/document-save.png +0 -0
  772. data/samples/text/edit-copy.png +0 -0
  773. data/samples/text/edit-cut.png +0 -0
  774. data/samples/text/edit-paste.png +0 -0
  775. data/samples/text/edit-redo.png +0 -0
  776. data/samples/text/edit-undo.png +0 -0
  777. data/samples/text/format-text-bold.png +0 -0
  778. data/samples/text/format-text-italic.png +0 -0
  779. data/samples/text/format-text-underline.png +0 -0
  780. data/samples/text/mondrian.ico +0 -0
  781. data/samples/text/mondrian.xpm +44 -0
  782. data/samples/text/preferences-desktop-font.png +0 -0
  783. data/samples/text/rich_textctrl.rb +326 -0
  784. data/samples/text/scintilla.rb +179 -0
  785. data/samples/text/textctrl.rb +124 -0
  786. data/samples/text/tn_rich_textctrl.png +0 -0
  787. data/samples/text/tn_scintilla.png +0 -0
  788. data/samples/text/tn_textctrl.png +0 -0
  789. data/samples/text/tn_unicode.png +0 -0
  790. data/samples/text/unicode.rb +238 -0
  791. data/samples/text/utf8.txt +15 -0
  792. data/samples/treectrl/checked.xpm +54 -0
  793. data/samples/treectrl/icon1.xpm +79 -0
  794. data/samples/treectrl/icon2.xpm +53 -0
  795. data/samples/treectrl/icon3.xpm +79 -0
  796. data/samples/treectrl/icon4.xpm +43 -0
  797. data/samples/treectrl/icon5.xpm +79 -0
  798. data/samples/treectrl/state1.xpm +145 -0
  799. data/samples/treectrl/state2.xpm +144 -0
  800. data/samples/treectrl/state3.xpm +142 -0
  801. data/samples/treectrl/state4.xpm +145 -0
  802. data/samples/treectrl/state5.xpm +85 -0
  803. data/samples/treectrl/tn_treectrl.png +0 -0
  804. data/samples/treectrl/treectrl.rb +1720 -0
  805. data/samples/treectrl/unchecked.xpm +30 -0
  806. data/samples/xrc/custom_dialog.xrc +46 -0
  807. data/samples/xrc/custom_xrc_sample.rb +84 -0
  808. data/samples/xrc/samples.xrc +46 -0
  809. data/samples/xrc/tn_xrc_sample.png +0 -0
  810. data/samples/xrc/xrc_sample.rb +86 -0
  811. data/tests/test_basic.rb +20 -0
  812. data/tests/test_clipboard.rb +241 -0
  813. data/tests/test_dialog.rb +28 -0
  814. data/tests/test_event_handling.rb +103 -0
  815. data/tests/test_events.rb +45 -0
  816. data/tests/test_geometry.rb +141 -0
  817. data/tests/test_intl.rb +107 -0
  818. data/tests/test_item_data.rb +120 -0
  819. data/tests/test_variant.rb +151 -0
  820. data/tests/testapp.rb +40 -0
  821. data/tests/testapp_noframe.rb +28 -0
  822. metadata +912 -0
@@ -0,0 +1,2381 @@
1
+ # :stopdoc:
2
+ # This file is automatically generated by the WXRuby3 documentation
3
+ # generator. Do not alter this file.
4
+ # :startdoc:
5
+
6
+
7
+ module Wx::GRID
8
+
9
+ #
10
+ GRID_AUTOSIZE = -1
11
+
12
+ # Specifier used to format the data to string for the numbers handled by {Wx::GRID::GridCellFloatRenderer} and {Wx::GRID::GridCellFloatEditor}.
13
+ #
14
+ #
15
+ #
16
+ class GridCellFloatFormat < Wx::Enum
17
+
18
+ # Decimal floating point (f).
19
+ #
20
+ GRID_FLOAT_FORMAT_FIXED = Wx::GRID::GridCellFloatFormat.new(16)
21
+
22
+ # Scientific notation (mantissa/exponent) using e character (e).
23
+ #
24
+ GRID_FLOAT_FORMAT_SCIENTIFIC = Wx::GRID::GridCellFloatFormat.new(32)
25
+
26
+ # Use the shorter of e or f (g).
27
+ #
28
+ GRID_FLOAT_FORMAT_COMPACT = Wx::GRID::GridCellFloatFormat.new(64)
29
+
30
+ # To use in combination with one of the above formats for the upper case version (F/E/G)
31
+ #
32
+ GRID_FLOAT_FORMAT_UPPER = Wx::GRID::GridCellFloatFormat.new(128)
33
+
34
+ # The format used by default ({Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_FIXED}).
35
+ #
36
+ GRID_FLOAT_FORMAT_DEFAULT = Wx::GRID::GridCellFloatFormat.new(16)
37
+
38
+ end # GridCellFloatFormat
39
+
40
+ # Possible types for grid table notifications.
41
+ #
42
+ #
43
+ #
44
+ class GridTableRequest < Wx::Enum
45
+
46
+ # New rows have been inserted into the table.
47
+ #
48
+ GRIDTABLE_NOTIFY_ROWS_INSERTED = Wx::GRID::GridTableRequest.new(2002)
49
+
50
+ # New rows have been append to the table.
51
+ #
52
+ GRIDTABLE_NOTIFY_ROWS_APPENDED = Wx::GRID::GridTableRequest.new(2003)
53
+
54
+ # Rows have been deleted from the table.
55
+ #
56
+ GRIDTABLE_NOTIFY_ROWS_DELETED = Wx::GRID::GridTableRequest.new(2004)
57
+
58
+ # New columns have been inserted into the table.
59
+ #
60
+ GRIDTABLE_NOTIFY_COLS_INSERTED = Wx::GRID::GridTableRequest.new(2005)
61
+
62
+ # New columns have been append to the table.
63
+ #
64
+ GRIDTABLE_NOTIFY_COLS_APPENDED = Wx::GRID::GridTableRequest.new(2006)
65
+
66
+ # Columns have been deleted from the table.
67
+ #
68
+ GRIDTABLE_NOTIFY_COLS_DELETED = Wx::GRID::GridTableRequest.new(2007)
69
+
70
+ end # GridTableRequest
71
+
72
+ # Rendering styles supported by {Wx::GRID::Grid#render} method.
73
+ #
74
+ #
75
+ #
76
+ class GridRenderStyle < Wx::Enum
77
+
78
+ # Draw grid row header labels.
79
+ #
80
+ GRID_DRAW_ROWS_HEADER = Wx::GRID::GridRenderStyle.new(1)
81
+
82
+ # Draw grid column header labels.
83
+ #
84
+ GRID_DRAW_COLS_HEADER = Wx::GRID::GridRenderStyle.new(2)
85
+
86
+ # Draw grid cell border lines.
87
+ #
88
+ GRID_DRAW_CELL_LINES = Wx::GRID::GridRenderStyle.new(4)
89
+
90
+ # Draw a bounding rectangle around the rendered cell area.
91
+ #
92
+ GRID_DRAW_BOX_RECT = Wx::GRID::GridRenderStyle.new(8)
93
+
94
+ # Draw the grid cell selection highlight if a selection is present.
95
+ #
96
+ GRID_DRAW_SELECTION = Wx::GRID::GridRenderStyle.new(16)
97
+
98
+ # The default render style.
99
+ #
100
+ GRID_DRAW_DEFAULT = Wx::GRID::GridRenderStyle.new(15)
101
+
102
+ end # GridRenderStyle
103
+
104
+ #
105
+ #
106
+ EVT_GRID_CELL_LEFT_CLICK = 10051
107
+
108
+ #
109
+ #
110
+ EVT_GRID_CELL_RIGHT_CLICK = 10052
111
+
112
+ #
113
+ #
114
+ EVT_GRID_CELL_LEFT_DCLICK = 10053
115
+
116
+ #
117
+ #
118
+ EVT_GRID_CELL_RIGHT_DCLICK = 10054
119
+
120
+ #
121
+ #
122
+ EVT_GRID_LABEL_LEFT_CLICK = 10056
123
+
124
+ #
125
+ #
126
+ EVT_GRID_LABEL_RIGHT_CLICK = 10057
127
+
128
+ #
129
+ #
130
+ EVT_GRID_LABEL_LEFT_DCLICK = 10058
131
+
132
+ #
133
+ #
134
+ EVT_GRID_LABEL_RIGHT_DCLICK = 10059
135
+
136
+ #
137
+ #
138
+ EVT_GRID_ROW_SIZE = 10060
139
+
140
+ #
141
+ #
142
+ EVT_GRID_ROW_AUTO_SIZE = 10061
143
+
144
+ #
145
+ #
146
+ EVT_GRID_COL_SIZE = 10062
147
+
148
+ #
149
+ #
150
+ EVT_GRID_COL_AUTO_SIZE = 10063
151
+
152
+ #
153
+ #
154
+ EVT_GRID_RANGE_SELECTING = 10067
155
+
156
+ #
157
+ #
158
+ EVT_GRID_RANGE_SELECTED = 10068
159
+
160
+ #
161
+ #
162
+ EVT_GRID_CELL_CHANGING = 10069
163
+
164
+ #
165
+ #
166
+ EVT_GRID_CELL_CHANGED = 10070
167
+
168
+ #
169
+ #
170
+ EVT_GRID_SELECT_CELL = 10071
171
+
172
+ #
173
+ #
174
+ EVT_GRID_EDITOR_SHOWN = 10072
175
+
176
+ #
177
+ #
178
+ EVT_GRID_EDITOR_HIDDEN = 10073
179
+
180
+ #
181
+ #
182
+ EVT_GRID_EDITOR_CREATED = 10074
183
+
184
+ #
185
+ #
186
+ EVT_GRID_CELL_BEGIN_DRAG = 10055
187
+
188
+ #
189
+ #
190
+ EVT_GRID_ROW_MOVE = 10064
191
+
192
+ #
193
+ #
194
+ EVT_GRID_COL_MOVE = 10065
195
+
196
+ #
197
+ #
198
+ EVT_GRID_COL_SORT = 10066
199
+
200
+ #
201
+ #
202
+ EVT_GRID_TABBING = 10075
203
+
204
+ # {Wx::GRID::Grid} and its related classes are used for displaying and editing tabular data.
205
+ # They provide a rich set of features for display, editing, and interacting with a variety of data sources. For simple applications, and to help you get started, {Wx::GRID::Grid} is the only class you need to refer to directly. It will set up default instances of the other classes and manage them for you. For more complex applications you can derive your own classes for custom grid views, grid data tables, cell editors and renderers. The wxGrid Overview has examples of simple and more complex applications, explains the relationship between the various grid classes and has a summary of the keyboard shortcuts and mouse functions provided by {Wx::GRID::Grid}.
206
+ # A {Wx::GRID::GridTableBase} class holds the actual data to be displayed by a {Wx::GRID::Grid} class. One or more {Wx::GRID::Grid} classes may act as a view for one table class. The default table class is called {Wx::GRID::GridStringTable} and holds an array of strings. An instance of such a class is created by {Wx::GRID::Grid#create_grid}.
207
+ # {Wx::GRID::GridCellRenderer} is the abstract base class for rendering contents in a cell. The following renderers are predefined:
208
+ #
209
+ # - {Wx::GRID::GridCellBoolRenderer}- {Wx::GRID::GridCellFloatRenderer}- {Wx::GRID::GridCellNumberRenderer}- {Wx::GRID::GridCellStringRenderer}- {Wx::GRID::GridCellDateRenderer}- {Wx::GRID::GridCellDateTimeRenderer}
210
+ #
211
+ # The look of a cell can be further defined using {Wx::GRID::GridCellAttr}. An object of this type may be returned by {Wx::GRID::GridTableBase#get_attr}.
212
+ # {Wx::GRID::GridCellEditor} is the abstract base class for editing the value of a cell. The following editors are predefined:
213
+ #
214
+ # - {Wx::GRID::GridCellBoolEditor}- {Wx::GRID::GridCellChoiceEditor}- {Wx::GRID::GridCellFloatEditor}- {Wx::GRID::GridCellNumberEditor}- {Wx::GRID::GridCellTextEditor}- {Wx::GRID::GridCellDateEditor}
215
+ #
216
+ # Please see {Wx::GRID::GridEvent}, {Wx::GRID::GridSizeEvent}, {Wx::GRID::GridRangeSelectEvent}, and {Wx::GRID::GridEditorCreatedEvent} for the documentation of all event types you can use with {Wx::GRID::Grid}.
217
+ # ===
218
+ #
219
+ # Category: Grid Related Classes
220
+ # @see wxGrid Overview
221
+ # @see Wx::GridUpdateLocker
222
+ #
223
+ #
224
+ class Grid < ScrolledCanvas
225
+
226
+ # Different selection modes supported by the grid.
227
+ #
228
+ #
229
+ #
230
+ class GridSelectionModes < Wx::Enum
231
+
232
+ # The default selection mode allowing selection of the individual cells as well as of the entire rows and columns.
233
+ #
234
+ GridSelectCells = Wx::GRID::Grid::GridSelectionModes.new(0)
235
+
236
+ # The selection mode allowing the selection of the entire rows only.
237
+ #
238
+ GridSelectRows = Wx::GRID::Grid::GridSelectionModes.new(1)
239
+
240
+ # The selection mode allowing the selection of the entire columns only.
241
+ #
242
+ GridSelectColumns = Wx::GRID::Grid::GridSelectionModes.new(2)
243
+
244
+ # The selection mode allowing the user to select either the entire columns or the entire rows but not individual cells nor blocks.
245
+ #
246
+ GridSelectRowsOrColumns = Wx::GRID::Grid::GridSelectionModes.new(3)
247
+
248
+ # The selection mode allowing no selections to be made at all.
249
+ #
250
+ GridSelectNone = Wx::GRID::Grid::GridSelectionModes.new(4)
251
+
252
+ end # GridSelectionModes
253
+
254
+ # Return values for {Wx::GRID::Grid#get_cell_size}.
255
+ #
256
+ #
257
+ #
258
+ class CellSpan < Wx::Enum
259
+
260
+ # This cell is inside a span covered by another cell.
261
+ #
262
+ CellSpan_Inside = Wx::GRID::Grid::CellSpan.new(-1)
263
+
264
+ # This is a normal, non-spanning cell.
265
+ #
266
+ CellSpan_None = Wx::GRID::Grid::CellSpan.new(0)
267
+
268
+ # This cell spans several physical {Wx::GRID::Grid} cells.
269
+ #
270
+ CellSpan_Main = Wx::GRID::Grid::CellSpan.new(1)
271
+
272
+ end # CellSpan
273
+
274
+ # Constants defining different support built-in TAB handling behaviours.
275
+ #
276
+ # The elements of this enum determine what happens when TAB is pressed when the cursor is in the rightmost column (or Shift-TAB is pressed when the cursor is in the leftmost one).
277
+ # @see Wx::GRID::Grid#set_tab_behaviour
278
+ # @see Wx::GRID::EVT_GRID_TABBING
279
+ #
280
+ #
281
+ class TabBehaviour < Wx::Enum
282
+
283
+ # Do nothing, this is default.
284
+ #
285
+ Tab_Stop = Wx::GRID::Grid::TabBehaviour.new(0)
286
+
287
+ # Move to the beginning of the next (or the end of the previous) row.
288
+ #
289
+ Tab_Wrap = Wx::GRID::Grid::TabBehaviour.new(1)
290
+
291
+ # Move to the next (or the previous) control after the grid.
292
+ #
293
+ Tab_Leave = Wx::GRID::Grid::TabBehaviour.new(2)
294
+
295
+ end # TabBehaviour
296
+
297
+ # @overload initialize()
298
+ # Default constructor.
299
+ # You must call {Wx::GRID::Grid#create} to really create the grid window and also call {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize its contents.
300
+ # @return [Grid]
301
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GRID_NAME_STR)
302
+ # Constructor creating the grid window.
303
+ # You must call either {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize the grid contents before using it.
304
+ # @param parent [Wx::Window]
305
+ # @param id [Integer]
306
+ # @param pos [Array(Integer, Integer), Wx::Point]
307
+ # @param size [Array(Integer, Integer), Wx::Size]
308
+ # @param style [Integer]
309
+ # @param name [String]
310
+ # @return [Grid]
311
+ def initialize(*args) end
312
+
313
+ # Creates the grid window for an object initialized using the default constructor.
314
+ # You must call either {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize the grid contents before using it.
315
+ # @param parent [Wx::Window]
316
+ # @param id [Integer]
317
+ # @param pos [Array(Integer, Integer), Wx::Point]
318
+ # @param size [Array(Integer, Integer), Wx::Size]
319
+ # @param style [Integer]
320
+ # @param name [String]
321
+ # @return [true,false]
322
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GRID_NAME_STR) end
323
+
324
+ # Creates a grid with the specified initial number of rows and columns.
325
+ # Call this directly after the grid constructor. When you use this function {Wx::GRID::Grid} will create and manage a simple table of string values for you. All of the grid data will be stored in memory.
326
+ # For applications with more complex data types or relationships, or for dealing with very large datasets, you should derive your own grid table class and pass a table object to the grid with {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table}.
327
+ # @param numRows [Integer]
328
+ # @param numCols [Integer]
329
+ # @param selmode [GridSelectionModes]
330
+ # @return [true,false]
331
+ def create_grid(numRows, numCols, selmode=Wx::GRID_SELECT_CELLS) end
332
+
333
+ # Assigns a pointer to a custom grid table to be used by the grid.
334
+ # This function is identical to {Wx::GRID::Grid#set_table} with takeOwnership parameter set to true, i.e. it simply always takes the ownership of the passed in pointer. This makes it simpler to use than {Wx::GRID::Grid#set_table} in the common case when the table should be owned by the grid object.
335
+ # Note that this function should be called at most once and can't be used to change the table used by the grid later on or reset it: if such extra flexibility is needed, use {Wx::GRID::Grid#set_table} directly.
336
+ # @param table [Wx::GridTableBase] The heap-allocated pointer to the table.
337
+ # @param selmode [GridSelectionModes] Selection mode to use.
338
+ # @return [void]
339
+ def assign_table(table, selmode=Wx::GRID_SELECT_CELLS) end
340
+
341
+ # Receive and handle a message from the table.
342
+ # @param msg [Wx::GridTableMessage]
343
+ # @return [true,false]
344
+ def process_table_message(msg) end
345
+
346
+ # Turns the drawing of grid lines on or off.
347
+ # @param enable [true,false]
348
+ # @return [void]
349
+ def enable_grid_lines(enable=true) end
350
+
351
+ # Returns the pen used for vertical grid lines.
352
+ # This virtual function may be overridden in derived classes in order to change the appearance of individual grid lines for the given column col.
353
+ # See {Wx::GRID::Grid#get_row_grid_line_pen} for an example.
354
+ # @param col [Integer]
355
+ # @return [Wx::Pen]
356
+ def get_col_grid_line_pen(col) end
357
+ alias_method :col_grid_line_pen, :get_col_grid_line_pen
358
+
359
+ # Returns the pen used for grid lines.
360
+ # This virtual function may be overridden in derived classes in order to change the appearance of grid lines. Note that currently the pen width must be 1.
361
+ # @see Wx::GRID::Grid#get_col_grid_line_pen
362
+ # @see Wx::GRID::Grid#get_row_grid_line_pen
363
+ # @return [Wx::Pen]
364
+ def get_default_grid_line_pen; end
365
+ alias_method :default_grid_line_pen, :get_default_grid_line_pen
366
+
367
+ # Returns the colour used for grid lines.
368
+ #
369
+ # @see Wx::GRID::Grid#get_default_grid_line_pen
370
+ # @return [Wx::Colour]
371
+ def get_grid_line_colour; end
372
+ alias_method :grid_line_colour, :get_grid_line_colour
373
+
374
+ # Returns the pen used for horizontal grid lines.
375
+ # This virtual function may be overridden in derived classes in order to change the appearance of individual grid line for the given row.
376
+ # Example:
377
+ #
378
+ # // in a grid displaying music notation, use a solid black pen between
379
+ # // octaves (C0=row 127, C1=row 115 etc.)
380
+ # wxPen MidiGrid::GetRowGridLinePen(int row)
381
+ # {
382
+ # if ( row % 12 == 7 )
383
+ # return wxPen(*wxBLACK, 1, wxPENSTYLE_SOLID);
384
+ # else
385
+ # return GetDefaultGridLinePen();
386
+ # }
387
+ # @param row [Integer]
388
+ # @return [Wx::Pen]
389
+ def get_row_grid_line_pen(row) end
390
+ alias_method :row_grid_line_pen, :get_row_grid_line_pen
391
+
392
+ # Returns true if drawing of grid lines is turned on, false otherwise.
393
+ # @return [true,false]
394
+ def grid_lines_enabled; end
395
+
396
+ # Sets the colour used to draw grid lines.
397
+ # @param colour [Wx::Colour,String,Symbol]
398
+ # @return [void]
399
+ def set_grid_line_colour(colour) end
400
+ alias_method :grid_line_colour=, :set_grid_line_colour
401
+
402
+ # Sets the arguments to the current column label alignment values.
403
+ # Horizontal alignment will be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}.
404
+ # Vertical alignment will be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
405
+ # @return [Array(Integer,Integer)]
406
+ def get_col_label_alignment; end
407
+ alias_method :col_label_alignment, :get_col_label_alignment
408
+
409
+ # Returns the orientation of the column labels (either {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}).
410
+ # @return [Integer]
411
+ def get_col_label_text_orientation; end
412
+ alias_method :col_label_text_orientation, :get_col_label_text_orientation
413
+
414
+ # Returns the specified column label.
415
+ # The default grid table class provides column labels of the form A,B...Z,AA,AB...ZZ,AAA... If you are using a custom grid table you can override {Wx::GRID::GridTableBase#get_col_label_value} to provide your own labels.
416
+ # @param col [Integer]
417
+ # @return [String]
418
+ def get_col_label_value(col) end
419
+ alias_method :col_label_value, :get_col_label_value
420
+
421
+ # Sets the arguments to the current corner label alignment values.
422
+ # Horizontal alignment will be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}.
423
+ # Vertical alignment will be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
424
+ # @return [Array(Integer,Integer)]
425
+ def get_corner_label_alignment; end
426
+ alias_method :corner_label_alignment, :get_corner_label_alignment
427
+
428
+ # Returns the orientation of the corner label (either {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}).
429
+ # @return [Integer]
430
+ def get_corner_label_text_orientation; end
431
+ alias_method :corner_label_text_orientation, :get_corner_label_text_orientation
432
+
433
+ # Returns the (top-left) corner label.
434
+ # @return [String]
435
+ def get_corner_label_value; end
436
+ alias_method :corner_label_value, :get_corner_label_value
437
+
438
+ # Returns the colour used for the background of row and column labels.
439
+ # @return [Wx::Colour]
440
+ def get_label_background_colour; end
441
+ alias_method :label_background_colour, :get_label_background_colour
442
+
443
+ # Returns the font used for row and column labels.
444
+ # @return [Wx::Font]
445
+ def get_label_font; end
446
+ alias_method :label_font, :get_label_font
447
+
448
+ # Returns the colour used for row and column label text.
449
+ # @return [Wx::Colour]
450
+ def get_label_text_colour; end
451
+ alias_method :label_text_colour, :get_label_text_colour
452
+
453
+ # Returns the alignment used for row labels.
454
+ # Horizontal alignment will be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}.
455
+ # Vertical alignment will be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
456
+ # @return [Array(Integer,Integer)]
457
+ def get_row_label_alignment; end
458
+ alias_method :row_label_alignment, :get_row_label_alignment
459
+
460
+ # Returns the specified row label.
461
+ # The default grid table class provides numeric row labels. If you are using a custom grid table you can override {Wx::GRID::GridTableBase#get_row_label_value} to provide your own labels.
462
+ # @param row [Integer]
463
+ # @return [String]
464
+ def get_row_label_value(row) end
465
+ alias_method :row_label_value, :get_row_label_value
466
+
467
+ # Hides the column labels by calling {Wx::GRID::Grid#set_col_label_size} with a size of 0.
468
+ # The labels can be shown again by calling {Wx::GRID::Grid#set_col_label_size} with a height greater than 0.
469
+ # Note that when the column labels are hidden, the grid won't have any visible border on the top side, which may result in a less than ideal appearance. Because of this, you may want to create the grid window with a border style, such as {Wx::Border::BORDER_SIMPLE}, when you don't plan to show the column labels for it.
470
+ # @see Wx::GRID::Grid#hide_row_labels
471
+ # @return [void]
472
+ def hide_col_labels; end
473
+
474
+ # Hides the row labels by calling {Wx::GRID::Grid#set_row_label_size} with a size of 0.
475
+ # The labels can be shown again by calling {Wx::GRID::Grid#set_row_label_size} with a width greater than 0.
476
+ # See {Wx::GRID::Grid#hide_col_labels} for a note explaining why you may want to use a border with a grid without the row labels.
477
+ # @return [void]
478
+ def hide_row_labels; end
479
+
480
+ # Sets the horizontal and vertical alignment of column label text.
481
+ # Horizontal alignment should be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}. Vertical alignment should be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
482
+ # @param horiz [Integer]
483
+ # @param vert [Integer]
484
+ # @return [void]
485
+ def set_col_label_alignment(horiz, vert) end
486
+
487
+ # Sets the orientation of the column labels (either {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}).
488
+ # @param textOrientation [Integer]
489
+ # @return [void]
490
+ def set_col_label_text_orientation(textOrientation) end
491
+ alias_method :col_label_text_orientation=, :set_col_label_text_orientation
492
+
493
+ # Set the value for the given column label.
494
+ # If you are using a custom grid table you must override {Wx::GRID::GridTableBase#set_col_label_value} for this to have any effect.
495
+ # @param col [Integer]
496
+ # @param value [String]
497
+ # @return [void]
498
+ def set_col_label_value(col, value) end
499
+
500
+ # Sets the horizontal and vertical alignment of the (top-left) corner label text.
501
+ # Horizontal alignment should be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}. Vertical alignment should be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
502
+ # @param horiz [Integer]
503
+ # @param vert [Integer]
504
+ # @return [void]
505
+ def set_corner_label_alignment(horiz, vert) end
506
+
507
+ # Sets the orientation of the (top-left) corner label (either {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}).
508
+ # @param textOrientation [Integer]
509
+ # @return [void]
510
+ def set_corner_label_text_orientation(textOrientation) end
511
+ alias_method :corner_label_text_orientation=, :set_corner_label_text_orientation
512
+
513
+ # Set the value for the (top-left) corner label.
514
+ # If you are using a custom grid table you must override {Wx::GRID::GridTableBase#set_corner_label_value} for this to have any effect.
515
+ # @param arg [String]
516
+ # @return [void]
517
+ def set_corner_label_value(arg) end
518
+ alias_method :corner_label_value=, :set_corner_label_value
519
+
520
+ # Sets the background colour for row and column labels.
521
+ # @param colour [Wx::Colour,String,Symbol]
522
+ # @return [void]
523
+ def set_label_background_colour(colour) end
524
+ alias_method :label_background_colour=, :set_label_background_colour
525
+
526
+ # Sets the font for row and column labels.
527
+ # @param font [Wx::Font,Wx::FontInfo]
528
+ # @return [void]
529
+ def set_label_font(font) end
530
+ alias_method :label_font=, :set_label_font
531
+
532
+ # Sets the colour for row and column label text.
533
+ # @param colour [Wx::Colour,String,Symbol]
534
+ # @return [void]
535
+ def set_label_text_colour(colour) end
536
+ alias_method :label_text_colour=, :set_label_text_colour
537
+
538
+ # Sets the horizontal and vertical alignment of row label text.
539
+ # Horizontal alignment should be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}. Vertical alignment should be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
540
+ # @param horiz [Integer]
541
+ # @param vert [Integer]
542
+ # @return [void]
543
+ def set_row_label_alignment(horiz, vert) end
544
+
545
+ # Sets the value for the given row label.
546
+ # If you are using a derived grid table you must override {Wx::GRID::GridTableBase#set_row_label_value} for this to have any effect.
547
+ # @param row [Integer]
548
+ # @param value [String]
549
+ # @return [void]
550
+ def set_row_label_value(row, value) end
551
+
552
+ # Call this in order to make the column labels use a native look by using Wx::RendererNative#draw_header_button internally.
553
+ # There is no equivalent method for drawing row columns as there is not native look for that. This option is useful when using {Wx::GRID::Grid} for displaying tables and not as a spread-sheet.
554
+ # @see Wx::GRID::Grid#use_native_col_header
555
+ # @param native [true,false]
556
+ # @return [void]
557
+ def set_use_native_col_labels(native=true) end
558
+ alias_method :use_native_col_labels=, :set_use_native_col_labels
559
+
560
+ # Enable the use of native header window for column labels.
561
+ # If this function is called with true argument, a {Wx::HeaderCtrl} is used instead to display the column labels instead of drawing them in {Wx::GRID::Grid} code itself. This has the advantage of making the grid look and feel perfectly the same as native applications (using {Wx::GRID::Grid#set_use_native_col_labels} the grid can be made to look more natively but it still doesn't feel natively, notably the column resizing and dragging still works slightly differently as it is implemented in wxWidgets itself) but results in different behaviour for column and row headers, for which there is no equivalent function, and, most importantly, is unsuitable for grids with huge numbers of columns as {Wx::HeaderCtrl} doesn't support virtual mode. Because of this, by default the grid does not use the native header control but you should call this function to enable it if you are using the grid to display tabular data and don't have thousands of columns in it.
562
+ # Another difference between the default behaviour and the native header behaviour is that the latter provides the user with a context menu (which appears on right clicking the header) allowing to rearrange the grid columns if {Wx::GRID::Grid#can_drag_col_move} returns true. If you want to prevent this from happening for some reason, you need to define a handler for {Wx::GRID::EVT_GRID_LABEL_RIGHT_CLICK} event which simply does nothing (in particular doesn't skip the event) as this will prevent the default right click handling from working.
563
+ # Also note that currently {Wx::GRID::EVT_GRID_LABEL_RIGHT_DCLICK} event is not generated for the column labels if the native columns header is used (but this limitation could possibly be lifted in the future).
564
+ # Finally, please note that using the native control is currently incompatible with freezing columns in the grid (see {Wx::GRID::Grid#freeze_to}) and this function will return false, without doing anything, if it's called on a grid in which any columns are frozen.
565
+ # @param native [true,false]
566
+ # @return [true,false]
567
+ def use_native_col_header(native=true) end
568
+
569
+ # Sets the arguments to the horizontal and vertical text alignment values for the grid cell at the specified location.
570
+ # Horizontal alignment will be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}.
571
+ # Vertical alignment will be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
572
+ # @param row [Integer]
573
+ # @param col [Integer]
574
+ # @return [Array(Integer,Integer)]
575
+ def get_cell_alignment(row, col) end
576
+ alias_method :cell_alignment, :get_cell_alignment
577
+
578
+ # Returns the background colour of the cell at the specified location.
579
+ # @param row [Integer]
580
+ # @param col [Integer]
581
+ # @return [Wx::Colour]
582
+ def get_cell_background_colour(row, col) end
583
+ alias_method :cell_background_colour, :get_cell_background_colour
584
+
585
+ # Returns the font for text in the grid cell at the specified location.
586
+ # @param row [Integer]
587
+ # @param col [Integer]
588
+ # @return [Wx::Font]
589
+ def get_cell_font(row, col) end
590
+ alias_method :cell_font, :get_cell_font
591
+
592
+ # Returns the text colour for the grid cell at the specified location.
593
+ # @param row [Integer]
594
+ # @param col [Integer]
595
+ # @return [Wx::Colour]
596
+ def get_cell_text_colour(row, col) end
597
+ alias_method :cell_text_colour, :get_cell_text_colour
598
+
599
+ # Returns the default cell alignment.
600
+ # Horizontal alignment will be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}.
601
+ # Vertical alignment will be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
602
+ # @see Wx::GRID::Grid#set_default_cell_alignment
603
+ # @return [Array(Integer,Integer)]
604
+ def get_default_cell_alignment; end
605
+ alias_method :default_cell_alignment, :get_default_cell_alignment
606
+
607
+ # Returns the current default background colour for grid cells.
608
+ # @return [Wx::Colour]
609
+ def get_default_cell_background_colour; end
610
+ alias_method :default_cell_background_colour, :get_default_cell_background_colour
611
+
612
+ # Returns the current default font for grid cell text.
613
+ # @return [Wx::Font]
614
+ def get_default_cell_font; end
615
+ alias_method :default_cell_font, :get_default_cell_font
616
+
617
+ # Returns the current default colour for grid cell text.
618
+ # @return [Wx::Colour]
619
+ def get_default_cell_text_colour; end
620
+ alias_method :default_cell_text_colour, :get_default_cell_text_colour
621
+
622
+ # Sets the horizontal and vertical alignment for grid cell text at the specified location.
623
+ # Horizontal alignment should be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}.
624
+ # Vertical alignment should be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
625
+ # @param row [Integer]
626
+ # @param col [Integer]
627
+ # @param horiz [Integer]
628
+ # @param vert [Integer]
629
+ # @return [void]
630
+ def set_cell_alignment(row, col, horiz, vert) end
631
+
632
+ # Set the background colour for the given cell or all cells by default.
633
+ # @param row [Integer]
634
+ # @param col [Integer]
635
+ # @param colour [Wx::Colour,String,Symbol]
636
+ # @return [void]
637
+ def set_cell_background_colour(row, col, colour) end
638
+
639
+ # Sets the font for text in the grid cell at the specified location.
640
+ # @param row [Integer]
641
+ # @param col [Integer]
642
+ # @param font [Wx::Font,Wx::FontInfo]
643
+ # @return [void]
644
+ def set_cell_font(row, col, font) end
645
+
646
+ # Sets the text colour for the given cell.
647
+ # @param row [Integer]
648
+ # @param col [Integer]
649
+ # @param colour [Wx::Colour,String,Symbol]
650
+ # @return [void]
651
+ def set_cell_text_colour(row, col, colour) end
652
+ alias_method :cell_text_colour=, :set_cell_text_colour
653
+
654
+ # Sets the default horizontal and vertical alignment for grid cell text.
655
+ # Horizontal alignment should be one of {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_RIGHT}. Vertical alignment should be one of {Wx::Alignment::ALIGN_TOP}, {Wx::Alignment::ALIGN_CENTRE} or {Wx::Alignment::ALIGN_BOTTOM}.
656
+ # @param horiz [Integer]
657
+ # @param vert [Integer]
658
+ # @return [void]
659
+ def set_default_cell_alignment(horiz, vert) end
660
+
661
+ # Sets the default background colour for grid cells.
662
+ # @param colour [Wx::Colour,String,Symbol]
663
+ # @return [void]
664
+ def set_default_cell_background_colour(colour) end
665
+ alias_method :default_cell_background_colour=, :set_default_cell_background_colour
666
+
667
+ # Sets the default font to be used for grid cell text.
668
+ # @param font [Wx::Font,Wx::FontInfo]
669
+ # @return [void]
670
+ def set_default_cell_font(font) end
671
+ alias_method :default_cell_font=, :set_default_cell_font
672
+
673
+ # Sets the current default colour for grid cell text.
674
+ # @param colour [Wx::Colour,String,Symbol]
675
+ # @return [void]
676
+ def set_default_cell_text_colour(colour) end
677
+ alias_method :default_cell_text_colour=, :set_default_cell_text_colour
678
+
679
+ # Returns true if the in-place edit control for the current grid cell can be used and false otherwise.
680
+ # This function always returns false for the read-only cells.
681
+ # @return [true,false]
682
+ def can_enable_cell_control; end
683
+ alias_method :can_enable_cell_control?, :can_enable_cell_control
684
+
685
+ # Disables in-place editing of grid cells.
686
+ # Equivalent to calling EnableCellEditControl(false).
687
+ # @return [void]
688
+ def disable_cell_edit_control; end
689
+
690
+ # Enables or disables in-place editing of grid cell data.
691
+ # Enabling in-place editing generates {Wx::GRID::EVT_GRID_EDITOR_SHOWN} and, if it isn't vetoed by the application, shows the in-place editor which allows the user to change the cell value.
692
+ # Disabling in-place editing does nothing if the in-place editor isn't currently shown, otherwise the {Wx::GRID::EVT_GRID_EDITOR_HIDDEN} event is generated but, unlike the "shown" event, it can't be vetoed and the in-place editor is dismissed unconditionally.
693
+ # Note that it is an error to call this function if the current cell is read-only, use {Wx::GRID::Grid#can_enable_cell_control} to check for this precondition.
694
+ # @param enable [true,false]
695
+ # @return [void]
696
+ def enable_cell_edit_control(enable=true) end
697
+
698
+ # Makes the grid globally editable or read-only.
699
+ # If the edit argument is false this function sets the whole grid as read-only. If the argument is true the grid is set to the default state where cells may be editable. In the default state you can set single grid cells and whole rows and columns to be editable or read-only via {Wx::GRID::GridCellAttr#set_read_only}. For single cells you can also use the shortcut function {Wx::GRID::Grid#set_read_only}.
700
+ # For more information about controlling grid cell attributes see the {Wx::GRID::GridCellAttr} class and the wxGrid Overview.
701
+ # @param edit [true,false]
702
+ # @return [void]
703
+ def enable_editing(edit) end
704
+
705
+ # Returns a pointer to the editor for the cell at the specified location.
706
+ # See {Wx::GRID::GridCellEditor} and the wxGrid Overview for more information about cell editors and renderers.
707
+ # The caller must call DecRef() on the returned pointer.
708
+ # @param row [Integer]
709
+ # @param col [Integer]
710
+ # @return [Wx::GRID::GridCellEditor]
711
+ def get_cell_editor(row, col) end
712
+ alias_method :cell_editor, :get_cell_editor
713
+
714
+ # Returns a pointer to the renderer for the grid cell at the specified location.
715
+ # See {Wx::GRID::GridCellRenderer} and the wxGrid Overview for more information about cell editors and renderers.
716
+ # The caller must call DecRef() on the returned pointer.
717
+ # @param row [Integer]
718
+ # @param col [Integer]
719
+ # @return [Wx::GRID::GridCellRenderer]
720
+ def get_cell_renderer(row, col) end
721
+ alias_method :cell_renderer, :get_cell_renderer
722
+
723
+ # Returns the string contained in the cell at the specified location.
724
+ # For simple applications where a grid object automatically uses a default grid table of string values you use this function together with {Wx::GRID::Grid#set_cell_value} to access cell values. For more complex applications where you have derived your own grid table class that contains various data types (e.g. numeric, boolean or user-defined custom types) then you only use this function for those cells that contain string values.
725
+ # See {Wx::GRID::GridTableBase#can_get_value_as} and the wxGrid Overview for more information.
726
+ # @param row [Integer]
727
+ # @param col [Integer]
728
+ # @return [String]
729
+ def get_cell_value(row, col) end
730
+ alias_method :cell_value, :get_cell_value
731
+
732
+ # Returns a pointer to the current default grid cell editor.
733
+ # See {Wx::GRID::GridCellEditor} and the wxGrid Overview for more information about cell editors and renderers.
734
+ # @return [Wx::GRID::GridCellEditor]
735
+ def get_default_editor; end
736
+ alias_method :default_editor, :get_default_editor
737
+
738
+ # Returns the default editor for the specified cell.
739
+ # The base class version returns the editor appropriate for the current cell type but this method may be overridden in the derived classes to use custom editors for some cells by default.
740
+ # Notice that the same may be achieved in a usually simpler way by associating a custom editor with the given cell or cells.
741
+ # The caller must call DecRef() on the returned pointer.
742
+ # @param row [Integer]
743
+ # @param col [Integer]
744
+ # @return [Wx::GRID::GridCellEditor]
745
+ def get_default_editor_for_cell(row, col) end
746
+ alias_method :default_editor_for_cell, :get_default_editor_for_cell
747
+
748
+ # Returns the default editor for the cells containing values of the given type.
749
+ # The base class version returns the editor which was associated with the specified typeName when it was registered {Wx::GRID::Grid#register_data_type} but this function may be overridden to return something different. This allows overriding an editor used for one of the standard types.
750
+ # The caller must call DecRef() on the returned pointer.
751
+ # @param typeName [String]
752
+ # @return [Wx::GRID::GridCellEditor]
753
+ def get_default_editor_for_type(typeName) end
754
+ alias_method :default_editor_for_type, :get_default_editor_for_type
755
+
756
+ # Returns a pointer to the current default grid cell renderer.
757
+ # See {Wx::GRID::GridCellRenderer} and the wxGrid Overview for more information about cell editors and renderers.
758
+ # The caller must call DecRef() on the returned pointer.
759
+ # @return [Wx::GRID::GridCellRenderer]
760
+ def get_default_renderer; end
761
+ alias_method :default_renderer, :get_default_renderer
762
+
763
+ # Returns the default renderer for the given cell.
764
+ # The base class version returns the renderer appropriate for the current cell type but this method may be overridden in the derived classes to use custom renderers for some cells by default.
765
+ # The caller must call DecRef() on the returned pointer.
766
+ # @param row [Integer]
767
+ # @param col [Integer]
768
+ # @return [Wx::GRID::GridCellRenderer]
769
+ def get_default_renderer_for_cell(row, col) end
770
+ alias_method :default_renderer_for_cell, :get_default_renderer_for_cell
771
+
772
+ # Returns the default renderer for the cell containing values of the given type.
773
+ #
774
+ # @see Wx::GRID::Grid#get_default_editor_for_type
775
+ # @param typeName [String]
776
+ # @return [Wx::GRID::GridCellRenderer]
777
+ def get_default_renderer_for_type(typeName) end
778
+ alias_method :default_renderer_for_type, :get_default_renderer_for_type
779
+
780
+ # Hides the in-place cell edit control.
781
+ # @return [void]
782
+ def hide_cell_edit_control; end
783
+
784
+ # Returns true if the in-place edit control is currently enabled.
785
+ # @return [true,false]
786
+ def is_cell_edit_control_enabled; end
787
+ alias_method :cell_edit_control_enabled?, :is_cell_edit_control_enabled
788
+
789
+ # Returns true if the in-place edit control is currently shown.
790
+ #
791
+ # @see Wx::GRID::Grid#hide_cell_edit_control
792
+ # @return [true,false]
793
+ def is_cell_edit_control_shown; end
794
+ alias_method :cell_edit_control_shown?, :is_cell_edit_control_shown
795
+
796
+ # Returns true if the current cell is read-only.
797
+ #
798
+ # @see Wx::GRID::Grid#set_read_only
799
+ # @see Wx::GRID::Grid#is_read_only
800
+ # @return [true,false]
801
+ def is_current_cell_read_only; end
802
+ alias_method :current_cell_read_only?, :is_current_cell_read_only
803
+
804
+ # Returns false if the whole grid has been set as read-only or true otherwise.
805
+ # See {Wx::GRID::Grid#enable_editing} for more information about controlling the editing status of grid cells.
806
+ # @return [true,false]
807
+ def is_editable; end
808
+ alias_method :editable?, :is_editable
809
+
810
+ # Returns true if the cell at the specified location can't be edited.
811
+ #
812
+ # @see Wx::GRID::Grid#set_read_only
813
+ # @see Wx::GRID::Grid#is_current_cell_read_only
814
+ # @param row [Integer]
815
+ # @param col [Integer]
816
+ # @return [true,false]
817
+ def is_read_only(row, col) end
818
+ alias_method :read_only?, :is_read_only
819
+
820
+ # Register a new data type.
821
+ # The data types allow to naturally associate specific renderers and editors to the cells containing values of the given type. For example, the grid automatically registers a data type with the name {Wx::GRID::GRID_VALUE_STRING} which uses {Wx::GRID::GridCellStringRenderer} and {Wx::GRID::GridCellTextEditor} as its renderer and editor respectively this is the data type used by all the cells of the default {Wx::GRID::GridStringTable}, so this renderer and editor are used by default for all grid cells.
822
+ # However if a custom table returns {Wx::GRID::GRID_VALUE_BOOL} from its {Wx::GRID::GridTableBase#get_type_name} method, then {Wx::GRID::GridCellBoolRenderer} and {Wx::GRID::GridCellBoolEditor} are used for it because the grid also registers a boolean data type with this name.
823
+ # And as this mechanism is completely generic, you may register your own data types using your own custom renderers and editors. Just remember that the table must identify a cell as being of the given type for them to be used for this cell.
824
+ # @param typeName [String] Name of the new type. May be any string, but if the type name is the same as the name of an already registered type, including one of the standard ones (which are {Wx::GRID::GRID_VALUE_STRING}, {Wx::GRID::GRID_VALUE_BOOL}, {Wx::GRID::GRID_VALUE_NUMBER}, {Wx::GRID::GRID_VALUE_FLOAT}, {Wx::GRID::GRID_VALUE_CHOICE} and {Wx::GRID::GRID_VALUE_DATE}), then the new registration information replaces the previously used renderer and editor.
825
+ # @param renderer [Wx::GridCellRenderer] The renderer to use for the cells of this type. Its ownership is taken by the grid, i.e. it will call DecRef() on this pointer when it doesn't need it any longer.
826
+ # @param editor [Wx::GridCellEditor] The editor to use for the cells of this type. Its ownership is also taken by the grid.
827
+ # @return [void]
828
+ def register_data_type(typeName, renderer, editor) end
829
+
830
+ # Sets the value of the current grid cell to the current in-place edit control value.
831
+ # This is called automatically when the grid cursor moves from the current cell to a new cell. It is also a good idea to call this function when closing a grid since any edits to the final cell location will not be saved otherwise.
832
+ # @return [void]
833
+ def save_edit_control_value; end
834
+
835
+ # Sets the editor for the grid cell at the specified location.
836
+ # The grid will take ownership of the pointer.
837
+ # See {Wx::GRID::GridCellEditor} and the wxGrid Overview for more information about cell editors and renderers.
838
+ # @param row [Integer]
839
+ # @param col [Integer]
840
+ # @param editor [Wx::GridCellEditor]
841
+ # @return [void]
842
+ def set_cell_editor(row, col, editor) end
843
+
844
+ # Sets the renderer for the grid cell at the specified location.
845
+ # The grid will take ownership of the pointer.
846
+ # See {Wx::GRID::GridCellRenderer} and the wxGrid Overview for more information about cell editors and renderers.
847
+ # @param row [Integer]
848
+ # @param col [Integer]
849
+ # @param renderer [Wx::GridCellRenderer]
850
+ # @return [void]
851
+ def set_cell_renderer(row, col, renderer) end
852
+
853
+ # Sets the string value for the cell at the specified location.
854
+ # For simple applications where a grid object automatically uses a default grid table of string values you use this function together with {Wx::GRID::Grid#get_cell_value} to access cell values. For more complex applications where you have derived your own grid table class that contains various data types (e.g. numeric, boolean or user-defined custom types) then you only use this function for those cells that contain string values.
855
+ # See {Wx::GRID::GridTableBase#can_set_value_as} and the wxGrid Overview for more information.
856
+ # @param row [Integer]
857
+ # @param col [Integer]
858
+ # @param s [String]
859
+ # @return [void]
860
+ def set_cell_value(row, col, s) end
861
+
862
+ # Sets the specified column to display boolean values.
863
+ #
864
+ # @see Wx::GRID::Grid#set_col_format_custom
865
+ # @param col [Integer]
866
+ # @return [void]
867
+ def set_col_format_bool(col) end
868
+ alias_method :col_format_bool=, :set_col_format_bool
869
+
870
+ # Sets the specified column to display data in a custom format.
871
+ # This method provides an alternative to defining a custom grid table which would return typeName from its GetTypeName() method for the cells in this column: while it doesn't really change the type of the cells in this column, it does associate the renderer and editor used for the cells of the specified type with them.
872
+ # See the wxGrid Overview for more information on working with custom data types.
873
+ # @param col [Integer]
874
+ # @param typeName [String]
875
+ # @return [void]
876
+ def set_col_format_custom(col, typeName) end
877
+
878
+ # Sets the specified column to display floating point values with the given width and precision.
879
+ #
880
+ # @see Wx::GRID::Grid#set_col_format_custom
881
+ # @param col [Integer]
882
+ # @param width [Integer]
883
+ # @param precision [Integer]
884
+ # @return [void]
885
+ def set_col_format_float(col, width=-1, precision=-1) end
886
+ alias_method :col_format_float=, :set_col_format_float
887
+
888
+ # Sets the specified column to display integer values.
889
+ #
890
+ # @see Wx::GRID::Grid#set_col_format_custom
891
+ # @param col [Integer]
892
+ # @return [void]
893
+ def set_col_format_number(col) end
894
+ alias_method :col_format_number=, :set_col_format_number
895
+
896
+ # Sets the specified column to display date values.
897
+ # The format argument is used with {Wx::GRID::GridCellDateRenderer} and allows to specify the strftime-like format string to use for displaying the dates in this column.
898
+ # @see Wx::GRID::Grid#set_col_format_custom
899
+ # @param col [Integer]
900
+ # @param format [String]
901
+ # @return [void]
902
+ def set_col_format_date(col, format=(())) end
903
+ alias_method :col_format_date=, :set_col_format_date
904
+
905
+ # Sets the default editor for grid cells.
906
+ # The grid will take ownership of the pointer.
907
+ # See {Wx::GRID::GridCellEditor} and the wxGrid Overview for more information about cell editors and renderers.
908
+ # @param editor [Wx::GridCellEditor]
909
+ # @return [void]
910
+ def set_default_editor(editor) end
911
+ alias_method :default_editor=, :set_default_editor
912
+
913
+ # Sets the default renderer for grid cells.
914
+ # The grid will take ownership of the pointer.
915
+ # See {Wx::GRID::GridCellRenderer} and the wxGrid Overview for more information about cell editors and renderers.
916
+ # @param renderer [Wx::GridCellRenderer]
917
+ # @return [void]
918
+ def set_default_renderer(renderer) end
919
+ alias_method :default_renderer=, :set_default_renderer
920
+
921
+ # Makes the cell at the specified location read-only or editable.
922
+ #
923
+ # @see Wx::GRID::Grid#is_read_only
924
+ # @param row [Integer]
925
+ # @param col [Integer]
926
+ # @param isReadOnly [true,false]
927
+ # @return [void]
928
+ def set_read_only(row, col, isReadOnly=true) end
929
+
930
+ # Displays the active in-place cell edit control for the current cell after it was hidden.
931
+ # This method should only be called after calling {Wx::GRID::Grid#hide_cell_edit_control}, to start editing the current grid cell use {Wx::GRID::Grid#enable_cell_edit_control} instead.
932
+ # @return [void]
933
+ def show_cell_edit_control; end
934
+
935
+ # Automatically sets the height and width of all rows and columns to fit their contents.
936
+ # @return [void]
937
+ def auto_size; end
938
+
939
+ # Automatically adjusts width of the column to fit its label.
940
+ # @param col [Integer]
941
+ # @return [void]
942
+ def auto_size_col_label_size(col) end
943
+
944
+ # Automatically sizes the column to fit its contents.
945
+ # If setAsMin is true the calculated width will also be set as the minimal width for the column.
946
+ # @param col [Integer]
947
+ # @param setAsMin [true,false]
948
+ # @return [void]
949
+ def auto_size_column(col, setAsMin=true) end
950
+
951
+ # Automatically sizes all columns to fit their contents.
952
+ # If setAsMin is true the calculated widths will also be set as the minimal widths for the columns.
953
+ # @param setAsMin [true,false]
954
+ # @return [void]
955
+ def auto_size_columns(setAsMin=true) end
956
+
957
+ # Automatically sizes the row to fit its contents.
958
+ # If setAsMin is true the calculated height will also be set as the minimal height for the row.
959
+ # @param row [Integer]
960
+ # @param setAsMin [true,false]
961
+ # @return [void]
962
+ def auto_size_row(row, setAsMin=true) end
963
+
964
+ # Automatically adjusts height of the row to fit its label.
965
+ # @param col [Integer]
966
+ # @return [void]
967
+ def auto_size_row_label_size(col) end
968
+
969
+ # Automatically sizes all rows to fit their contents.
970
+ # If setAsMin is true the calculated heights will also be set as the minimal heights for the rows.
971
+ # @param setAsMin [true,false]
972
+ # @return [void]
973
+ def auto_size_rows(setAsMin=true) end
974
+
975
+ # Returns the cell fitting mode.
976
+ #
977
+ # @see Wx::GridFitMode
978
+ # @param row [Integer]
979
+ # @param col [Integer]
980
+ # @return [Wx::GridFitMode]
981
+ def get_cell_fit_mode(row, col) end
982
+ alias_method :cell_fit_mode, :get_cell_fit_mode
983
+
984
+ # Returns true if the cell value can overflow.
985
+ # This is identical to calling {Wx::GRID::Grid#get_cell_fit_mode} and using Wx::GridFitMode#is_overflow on the returned value.
986
+ # Prefer using {Wx::GRID::Grid#get_cell_fit_mode} directly in the new code.
987
+ # @param row [Integer]
988
+ # @param col [Integer]
989
+ # @return [true,false]
990
+ def get_cell_overflow(row, col) end
991
+ alias_method :cell_overflow, :get_cell_overflow
992
+
993
+ # Returns the current height of the column labels.
994
+ # @return [Integer]
995
+ def get_col_label_size; end
996
+ alias_method :col_label_size, :get_col_label_size
997
+
998
+ # Returns the minimal width to which a column may be resized.
999
+ # Use {Wx::GRID::Grid#set_col_minimal_acceptable_width} to change this value globally or {Wx::GRID::Grid#set_col_minimal_width} to do it for individual columns.
1000
+ # @see Wx::GRID::Grid#get_row_minimal_acceptable_height
1001
+ # @return [Integer]
1002
+ def get_col_minimal_acceptable_width; end
1003
+ alias_method :col_minimal_acceptable_width, :get_col_minimal_acceptable_width
1004
+
1005
+ # Returns the width of the specified column.
1006
+ # @param col [Integer]
1007
+ # @return [Integer]
1008
+ def get_col_size(col) end
1009
+ alias_method :col_size, :get_col_size
1010
+
1011
+ # Returns true if the specified column is not currently hidden.
1012
+ # @param col [Integer]
1013
+ # @return [true,false]
1014
+ def is_col_shown(col) end
1015
+ alias_method :col_shown?, :is_col_shown
1016
+
1017
+ # Returns the default cell fitting mode.
1018
+ # The default mode is "overflow", but can be modified using {Wx::GRID::Grid#set_default_cell_fit_mode}.
1019
+ # @see Wx::GridFitMode
1020
+ # @return [Wx::GridFitMode]
1021
+ def get_default_cell_fit_mode; end
1022
+ alias_method :default_cell_fit_mode, :get_default_cell_fit_mode
1023
+
1024
+ # Returns true if the cells can overflow by default.
1025
+ # This is identical to calling {Wx::GRID::Grid#get_default_cell_fit_mode} and using Wx::GridFitMode#is_overflow on the returned value.
1026
+ # Prefer using {Wx::GRID::Grid#get_default_cell_fit_mode} directly in the new code.
1027
+ # @return [true,false]
1028
+ def get_default_cell_overflow; end
1029
+ alias_method :default_cell_overflow, :get_default_cell_overflow
1030
+
1031
+ # Returns the default height for column labels.
1032
+ # @return [Integer]
1033
+ def get_default_col_label_size; end
1034
+ alias_method :default_col_label_size, :get_default_col_label_size
1035
+
1036
+ # Returns the current default width for grid columns.
1037
+ # @return [Integer]
1038
+ def get_default_col_size; end
1039
+ alias_method :default_col_size, :get_default_col_size
1040
+
1041
+ # Returns the default width for the row labels.
1042
+ # @return [Integer]
1043
+ def get_default_row_label_size; end
1044
+ alias_method :default_row_label_size, :get_default_row_label_size
1045
+
1046
+ # Returns the current default height for grid rows.
1047
+ # @return [Integer]
1048
+ def get_default_row_size; end
1049
+ alias_method :default_row_size, :get_default_row_size
1050
+
1051
+ # Returns the minimal size to which rows can be resized.
1052
+ # Use {Wx::GRID::Grid#set_row_minimal_acceptable_height} to change this value globally or {Wx::GRID::Grid#set_row_minimal_height} to do it for individual cells.
1053
+ # @see Wx::GRID::Grid#get_col_minimal_acceptable_width
1054
+ # @return [Integer]
1055
+ def get_row_minimal_acceptable_height; end
1056
+ alias_method :row_minimal_acceptable_height, :get_row_minimal_acceptable_height
1057
+
1058
+ # Returns the current width of the row labels.
1059
+ # @return [Integer]
1060
+ def get_row_label_size; end
1061
+ alias_method :row_label_size, :get_row_label_size
1062
+
1063
+ # Returns the height of the specified row.
1064
+ # @param row [Integer]
1065
+ # @return [Integer]
1066
+ def get_row_size(row) end
1067
+ alias_method :row_size, :get_row_size
1068
+
1069
+ # Returns true if the specified row is not currently hidden.
1070
+ # @param row [Integer]
1071
+ # @return [true,false]
1072
+ def is_row_shown(row) end
1073
+ alias_method :row_shown?, :is_row_shown
1074
+
1075
+ # Specifies the behaviour of the cell contents if it doesn't fit into the available space.
1076
+ #
1077
+ # @see Wx::GridFitMode
1078
+ # @param row [Integer]
1079
+ # @param col [Integer]
1080
+ # @param fitMode [Wx::GridFitMode]
1081
+ # @return [void]
1082
+ def set_cell_fit_mode(row, col, fitMode) end
1083
+
1084
+ # Sets the overflow permission of the cell.
1085
+ # Prefer using {Wx::GRID::Grid#set_cell_fit_mode} in the new code.
1086
+ # @param row [Integer]
1087
+ # @param col [Integer]
1088
+ # @param allow [true,false]
1089
+ # @return [void]
1090
+ def set_cell_overflow(row, col, allow) end
1091
+
1092
+ # Sets the height of the column labels.
1093
+ # If height equals to {Wx::GRID::GRID_AUTOSIZE} then height is calculated automatically so that no label is truncated. Note that this could be slow for a large table.
1094
+ # @param height [Integer]
1095
+ # @return [void]
1096
+ def set_col_label_size(height) end
1097
+ alias_method :col_label_size=, :set_col_label_size
1098
+
1099
+ # Sets the minimal width to which the user can resize columns.
1100
+ #
1101
+ # @see Wx::GRID::Grid#get_col_minimal_acceptable_width
1102
+ # @param width [Integer]
1103
+ # @return [void]
1104
+ def set_col_minimal_acceptable_width(width) end
1105
+ alias_method :col_minimal_acceptable_width=, :set_col_minimal_acceptable_width
1106
+
1107
+ # Sets the minimal width for the specified column col.
1108
+ # It is usually best to call this method during grid creation as calling it later will not resize the column to the given minimal width even if it is currently narrower than it.
1109
+ # width must be greater than the minimal acceptable column width as returned by {Wx::GRID::Grid#get_col_minimal_acceptable_width}.
1110
+ # @param col [Integer]
1111
+ # @param width [Integer]
1112
+ # @return [void]
1113
+ def set_col_minimal_width(col, width) end
1114
+
1115
+ # Sets the width of the specified column.
1116
+ # @param col [Integer] The column index.
1117
+ # @param width [Integer] The new column width in pixels, 0 to hide the column or -1 to fit the column width to its label width.
1118
+ # @return [void]
1119
+ def set_col_size(col, width) end
1120
+
1121
+ # Hides the specified column.
1122
+ # To show the column later you need to call {Wx::GRID::Grid#set_col_size} with non-0 width or {Wx::GRID::Grid#show_col} to restore the previous column width.
1123
+ # If the column is already hidden, this method doesn't do anything.
1124
+ # @param col [Integer] The column index.
1125
+ # @return [void]
1126
+ def hide_col(col) end
1127
+
1128
+ # Shows the previously hidden column by resizing it to non-0 size.
1129
+ # The column is shown again with the same width that it had before {Wx::GRID::Grid#hide_col} call.
1130
+ # If the column is currently shown, this method doesn't do anything.
1131
+ # @see Wx::GRID::Grid#hide_col
1132
+ # @see Wx::GRID::Grid#set_col_size
1133
+ # @param col [Integer]
1134
+ # @return [void]
1135
+ def show_col(col) end
1136
+
1137
+ # Specifies the default behaviour of the cell contents if it doesn't fit into the available space.
1138
+ #
1139
+ # @see Wx::GridFitMode
1140
+ # @param fitMode [Wx::GridFitMode]
1141
+ # @return [void]
1142
+ def set_default_cell_fit_mode(fitMode) end
1143
+ alias_method :default_cell_fit_mode=, :set_default_cell_fit_mode
1144
+
1145
+ # Sets the default overflow permission of the cells.
1146
+ # Prefer using {Wx::GRID::Grid#set_default_cell_fit_mode} in the new code.
1147
+ # @param allow [true,false]
1148
+ # @return [void]
1149
+ def set_default_cell_overflow(allow) end
1150
+ alias_method :default_cell_overflow=, :set_default_cell_overflow
1151
+
1152
+ # Sets the default width for columns in the grid.
1153
+ # This will only affect columns subsequently added to the grid unless resizeExistingCols is true.
1154
+ # If width is less than {Wx::GRID::Grid#get_col_minimal_acceptable_width}, then the minimal acceptable width is used instead of it.
1155
+ # @param width [Integer]
1156
+ # @param resizeExistingCols [true,false]
1157
+ # @return [void]
1158
+ def set_default_col_size(width, resizeExistingCols=false) end
1159
+ alias_method :default_col_size=, :set_default_col_size
1160
+
1161
+ # Sets the default height for rows in the grid.
1162
+ # This will only affect rows subsequently added to the grid unless resizeExistingRows is true.
1163
+ # If height is less than {Wx::GRID::Grid#get_row_minimal_acceptable_height}, then the minimal acceptable height is used instead of it.
1164
+ # @param height [Integer]
1165
+ # @param resizeExistingRows [true,false]
1166
+ # @return [void]
1167
+ def set_default_row_size(height, resizeExistingRows=false) end
1168
+ alias_method :default_row_size=, :set_default_row_size
1169
+
1170
+ # Sets the width of the row labels.
1171
+ # If width equals {Wx::GRID::GRID_AUTOSIZE} then width is calculated automatically so that no label is truncated. Note that this could be slow for a large table.
1172
+ # @param width [Integer]
1173
+ # @return [void]
1174
+ def set_row_label_size(width) end
1175
+ alias_method :row_label_size=, :set_row_label_size
1176
+
1177
+ # Sets the minimal row height used by default.
1178
+ # See {Wx::GRID::Grid#set_col_minimal_acceptable_width} for more information.
1179
+ # @param height [Integer]
1180
+ # @return [void]
1181
+ def set_row_minimal_acceptable_height(height) end
1182
+ alias_method :row_minimal_acceptable_height=, :set_row_minimal_acceptable_height
1183
+
1184
+ # Sets the minimal height for the specified row.
1185
+ # See {Wx::GRID::Grid#set_col_minimal_width} for more information.
1186
+ # @param row [Integer]
1187
+ # @param height [Integer]
1188
+ # @return [void]
1189
+ def set_row_minimal_height(row, height) end
1190
+
1191
+ # Sets the height of the specified row.
1192
+ # See {Wx::GRID::Grid#set_col_size} for more information.
1193
+ # @param row [Integer]
1194
+ # @param height [Integer]
1195
+ # @return [void]
1196
+ def set_row_size(row, height) end
1197
+
1198
+ # Hides the specified row.
1199
+ # To show the row later you need to call {Wx::GRID::Grid#set_row_size} with non-0 width or {Wx::GRID::Grid#show_row} to restore its original height.
1200
+ # If the row is already hidden, this method doesn't do anything.
1201
+ # @param col [Integer] The row index.
1202
+ # @return [void]
1203
+ def hide_row(col) end
1204
+
1205
+ # Shows the previously hidden row.
1206
+ # The row is shown again with the same height that it had before {Wx::GRID::Grid#hide_row} call.
1207
+ # If the row is currently shown, this method doesn't do anything.
1208
+ # @see Wx::GRID::Grid#hide_row
1209
+ # @see Wx::GRID::Grid#set_row_size
1210
+ # @param col [Integer]
1211
+ # @return [void]
1212
+ def show_row(col) end
1213
+
1214
+ # Get size information for all columns at once.
1215
+ # This method is useful when the information about all column widths needs to be saved. The widths can be later restored using {Wx::GRID::Grid#set_col_sizes}.
1216
+ # @see Wx::GridSizesInfo
1217
+ # @see Wx::GRID::Grid#get_row_sizes
1218
+ # @return [Wx::GridSizesInfo]
1219
+ def get_col_sizes; end
1220
+ alias_method :col_sizes, :get_col_sizes
1221
+
1222
+ # Get size information for all row at once.
1223
+ #
1224
+ # @see Wx::GridSizesInfo
1225
+ # @see Wx::GRID::Grid#get_col_sizes
1226
+ # @return [Wx::GridSizesInfo]
1227
+ def get_row_sizes; end
1228
+ alias_method :row_sizes, :get_row_sizes
1229
+
1230
+ # Restore all columns sizes.
1231
+ # This is usually called with {Wx::GridSizesInfo} object previously returned by {Wx::GRID::Grid#get_col_sizes}.
1232
+ # @see Wx::GRID::Grid#set_row_sizes
1233
+ # @param sizeInfo [Wx::GridSizesInfo]
1234
+ # @return [void]
1235
+ def set_col_sizes(sizeInfo) end
1236
+ alias_method :col_sizes=, :set_col_sizes
1237
+
1238
+ # Restore all rows sizes.
1239
+ #
1240
+ # @see Wx::GRID::Grid#set_col_sizes
1241
+ # @param sizeInfo [Wx::GridSizesInfo]
1242
+ # @return [void]
1243
+ def set_row_sizes(sizeInfo) end
1244
+ alias_method :row_sizes=, :set_row_sizes
1245
+
1246
+ # Set the size of the cell.
1247
+ # Specifying a value of more than 1 in num_rows or num_cols will make the cell at (row, col) span the block of the specified size, covering the other cells which would be normally shown in it. Passing 1 for both arguments resets the cell to normal appearance.
1248
+ # @see Wx::GRID::Grid#get_cell_size
1249
+ # @param row [Integer] The row of the cell.
1250
+ # @param col [Integer] The column of the cell.
1251
+ # @param num_rows [Integer] Number of rows to be occupied by this cell, must be >= 1.
1252
+ # @param num_cols [Integer] Number of columns to be occupied by this cell, must be >= 1.
1253
+ # @return [void]
1254
+ def set_cell_size(row, col, num_rows, num_cols) end
1255
+
1256
+ # @overload get_cell_size(row, col)
1257
+ # Get the size of the cell in number of cells covered by it.
1258
+ # For normal cells, the function fills both num_rows and num_cols with 1 and returns CellSpan_None. For cells which span multiple cells, i.e. for which {Wx::GRID::Grid#set_cell_size} had been called, the returned values are the same ones as were passed to {Wx::GRID::Grid#set_cell_size} call and the function return value is CellSpan_Main.
1259
+ # More unexpectedly, perhaps, the returned values may be negative for the cells which are inside a span covered by a cell occupying multiple rows or columns. They correspond to the offset of the main cell of the span from the cell passed to this functions and the function returns CellSpan_Inside value to indicate this.
1260
+ # As an example, consider a 3*3 grid with the cell (1, 1) (the one in the middle) having a span of 2 rows and 2 columns, i.e. the grid looks like
1261
+ #
1262
+ # +----+----+----+
1263
+ # | | | |
1264
+ # +----+----+----+
1265
+ # | | |
1266
+ # +----+ |
1267
+ # | | |
1268
+ # +----+----+----+
1269
+ # Then the function returns 2 and 2 in num_rows and num_cols for the cell (1, 1) itself and -1 and -1 for the cell (2, 2) as well as -1 and 0 for the cell (2, 1).
1270
+ #
1271
+ # The kind of this cell span (the return value is new in wxWidgets 2.9.1, this function was void in previous wxWidgets versions).
1272
+ # @param row [Integer] The row of the cell.
1273
+ # @param col [Integer] The column of the cell.
1274
+ # @return [Array(CellSpan,Integer,Integer)]
1275
+ # @overload get_cell_size(coords)
1276
+ # Get the number of rows and columns allocated for this cell.
1277
+ # This overload doesn't return a CellSpan value but the values returned may still be negative, see GetCellSize(int, int, int *, int *) for details.
1278
+ # @param coords [Wx::GridCellCoords]
1279
+ # @return [Wx::Size]
1280
+ def get_cell_size(*args) end
1281
+ alias_method :cell_size, :get_cell_size
1282
+
1283
+ # Return true if the dragging of cells is enabled or false otherwise.
1284
+ # @return [true,false]
1285
+ def can_drag_cell; end
1286
+ alias_method :can_drag_cell?, :can_drag_cell
1287
+
1288
+ # Returns true if columns can be moved by dragging with the mouse.
1289
+ # Columns can be moved by dragging on their labels.
1290
+ # @return [true,false]
1291
+ def can_drag_col_move; end
1292
+ alias_method :can_drag_col_move?, :can_drag_col_move
1293
+
1294
+ # Returns true if the given column can be resized by dragging with the mouse.
1295
+ # This function returns true if resizing the columns interactively is globally enabled, i.e. if {Wx::GRID::Grid#disable_drag_col_size} hadn't been called, and if this column wasn't explicitly marked as non-resizable with {Wx::GRID::Grid#disable_col_resize}.
1296
+ # @param col [Integer]
1297
+ # @return [true,false]
1298
+ def can_drag_col_size(col) end
1299
+ alias_method :can_drag_col_size?, :can_drag_col_size
1300
+
1301
+ # Return true if column edges inside the grid can be dragged to resize the rows.
1302
+ #
1303
+ # @see Wx::GRID::Grid#can_drag_grid_size
1304
+ # @see Wx::GRID::Grid#can_drag_col_size
1305
+ # @return [true,false]
1306
+ def can_drag_grid_col_edges; end
1307
+ alias_method :can_drag_grid_col_edges?, :can_drag_grid_col_edges
1308
+
1309
+ # Return true if row edges inside the grid can be dragged to resize the rows.
1310
+ #
1311
+ # @see Wx::GRID::Grid#can_drag_grid_size
1312
+ # @see Wx::GRID::Grid#can_drag_row_size
1313
+ # @return [true,false]
1314
+ def can_drag_grid_row_edges; end
1315
+ alias_method :can_drag_grid_row_edges?, :can_drag_grid_row_edges
1316
+
1317
+ # Return true if the dragging of grid lines to resize rows and columns is enabled or false otherwise.
1318
+ # @return [true,false]
1319
+ def can_drag_grid_size; end
1320
+ alias_method :can_drag_grid_size?, :can_drag_grid_size
1321
+
1322
+ # Returns true if rows can be moved by dragging with the mouse.
1323
+ # Rows can be moved by dragging on their labels.
1324
+ # @return [true,false]
1325
+ def can_drag_row_move; end
1326
+ alias_method :can_drag_row_move?, :can_drag_row_move
1327
+
1328
+ # Returns true if the given row can be resized by dragging with the mouse.
1329
+ # This is the same as {Wx::GRID::Grid#can_drag_col_size} but for rows.
1330
+ # @param row [Integer]
1331
+ # @return [true,false]
1332
+ def can_drag_row_size(row) end
1333
+ alias_method :can_drag_row_size?, :can_drag_row_size
1334
+
1335
+ # Returns true if columns can be hidden from the popup menu of the native header.
1336
+ # @return [true,false]
1337
+ def can_hide_columns; end
1338
+ alias_method :can_hide_columns?, :can_hide_columns
1339
+
1340
+ # Disable interactive resizing of the specified column.
1341
+ # This method allows one to disable resizing of an individual column in a grid where the columns are otherwise resizable (which is the case by default).
1342
+ # Notice that currently there is no way to make some columns resizable in a grid where columns can't be resized by default as there doesn't seem to be any need for this in practice. There is also no way to make the column marked as fixed using this method resizable again because it is supposed that fixed columns are used for static parts of the grid and so should remain fixed during the entire grid lifetime.
1343
+ # Also notice that disabling interactive column resizing will not prevent the program from changing the column size.
1344
+ # @see Wx::GRID::Grid#enable_drag_col_size
1345
+ # @param col [Integer]
1346
+ # @return [void]
1347
+ def disable_col_resize(col) end
1348
+
1349
+ # Disable interactive resizing of the specified row.
1350
+ # This is the same as {Wx::GRID::Grid#disable_col_resize} but for rows.
1351
+ # @see Wx::GRID::Grid#enable_drag_row_size
1352
+ # @param row [Integer]
1353
+ # @return [void]
1354
+ def disable_row_resize(row) end
1355
+
1356
+ # Disables column moving by dragging with the mouse.
1357
+ # Equivalent to passing false to {Wx::GRID::Grid#enable_drag_col_move}.
1358
+ # @return [void]
1359
+ def disable_drag_col_move; end
1360
+
1361
+ # Disables row moving by dragging with the mouse.
1362
+ # Equivalent to passing false to {Wx::GRID::Grid#enable_drag_row_move}.
1363
+ # @return [void]
1364
+ def disable_drag_row_move; end
1365
+
1366
+ # Disables column sizing by dragging with the mouse.
1367
+ # Equivalent to passing false to {Wx::GRID::Grid#enable_drag_col_size}.
1368
+ # @return [void]
1369
+ def disable_drag_col_size; end
1370
+
1371
+ # Disable mouse dragging of grid lines to resize rows and columns.
1372
+ # Equivalent to passing false to {Wx::GRID::Grid#enable_drag_grid_size}
1373
+ # @return [void]
1374
+ def disable_drag_grid_size; end
1375
+
1376
+ # Disables row sizing by dragging with the mouse.
1377
+ # Equivalent to passing false to {Wx::GRID::Grid#enable_drag_row_size}.
1378
+ # @return [void]
1379
+ def disable_drag_row_size; end
1380
+
1381
+ # Disables column hiding from the header popup menu.
1382
+ # Equivalent to passing false to {Wx::GRID::Grid#enable_hiding_columns}.
1383
+ # @return [void]
1384
+ def disable_hiding_columns; end
1385
+
1386
+ # Enables or disables cell dragging with the mouse.
1387
+ # @param enable [true,false]
1388
+ # @return [void]
1389
+ def enable_drag_cell(enable=true) end
1390
+
1391
+ # Enables or disables column moving by dragging with the mouse.
1392
+ # Note that reordering columns by dragging them is currently not supported when the grid has any frozen columns (see {Wx::GRID::Grid#freeze_to}) and if this method is called with enable equal to true in this situation, it returns false without doing anything. Otherwise it returns true to indicate that it was successful.
1393
+ # @param enable [true,false]
1394
+ # @return [true,false]
1395
+ def enable_drag_col_move(enable=true) end
1396
+
1397
+ # Enables or disables row moving by dragging with the mouse.
1398
+ # Note that reordering rows by dragging them is currently not supported when the grid has any frozen columns (see {Wx::GRID::Grid#freeze_to}) and if this method is called with enable equal to true in this situation, it returns false without doing anything. Otherwise it returns true to indicate that it was successful.
1399
+ # @param enable [true,false]
1400
+ # @return [true,false]
1401
+ def enable_drag_row_move(enable=true) end
1402
+
1403
+ # Enables or disables column sizing by dragging with the mouse.
1404
+ #
1405
+ # @see Wx::GRID::Grid#disable_col_resize
1406
+ # @param enable [true,false]
1407
+ # @return [void]
1408
+ def enable_drag_col_size(enable=true) end
1409
+
1410
+ # Enables or disables row and column resizing by dragging gridlines with the mouse.
1411
+ # @param enable [true,false]
1412
+ # @return [void]
1413
+ def enable_drag_grid_size(enable=true) end
1414
+
1415
+ # Enables or disables row sizing by dragging with the mouse.
1416
+ #
1417
+ # @see Wx::GRID::Grid#disable_row_resize
1418
+ # @param enable [true,false]
1419
+ # @return [void]
1420
+ def enable_drag_row_size(enable=true) end
1421
+
1422
+ # Enables or disables column hiding from the header popup menu.
1423
+ # Note that currently the popup menu can only be shown when using {Wx::HeaderCtrl}, i.e. if {Wx::GRID::Grid#use_native_col_header} had been called.
1424
+ # If the native header is not used, this method always simply returns false without doing anything, as hiding columns is not supported anyhow. If enable value is the same as {Wx::GRID::Grid#can_hide_columns}, it also returns false to indicate that nothing was done. Otherwise, it returns true to indicate that the value of this option was successfully changed.
1425
+ # The main use case for this method is to disallow hiding the columns interactively when using the native header.
1426
+ # @see Wx::GRID::Grid#disable_hiding_columns
1427
+ # @param enable [true,false]
1428
+ # @return [true,false]
1429
+ def enable_hiding_columns(enable=true) end
1430
+
1431
+ # Returns the column ID of the specified column position.
1432
+ # @param colPos [Integer]
1433
+ # @return [Integer]
1434
+ def get_col_at(colPos) end
1435
+ alias_method :col_at, :get_col_at
1436
+
1437
+ # Returns the position of the specified column.
1438
+ # @param colID [Integer]
1439
+ # @return [Integer]
1440
+ def get_col_pos(colID) end
1441
+ alias_method :col_pos, :get_col_pos
1442
+
1443
+ # Sets the position of the specified column.
1444
+ # @param colID [Integer]
1445
+ # @param newPos [Integer]
1446
+ # @return [void]
1447
+ def set_col_pos(colID, newPos) end
1448
+
1449
+ # Sets the positions of all columns at once.
1450
+ # This method takes an array containing the indices of the columns in their display order, i.e. uses the same convention as Wx::HeaderCtrl#set_columns_order.
1451
+ # @param order [Array<Integer>]
1452
+ # @return [void]
1453
+ def set_columns_order(order) end
1454
+ alias_method :columns_order=, :set_columns_order
1455
+
1456
+ # Resets the position of the columns to the default.
1457
+ # @return [void]
1458
+ def reset_col_pos; end
1459
+
1460
+ # Returns the row ID of the specified row position.
1461
+ # @param rowPos [Integer]
1462
+ # @return [Integer]
1463
+ def get_row_at(rowPos) end
1464
+ alias_method :row_at, :get_row_at
1465
+
1466
+ # Returns the position of the specified row.
1467
+ # @param rowID [Integer]
1468
+ # @return [Integer]
1469
+ def get_row_pos(rowID) end
1470
+ alias_method :row_pos, :get_row_pos
1471
+
1472
+ # Sets the position of the specified row.
1473
+ # @param rowID [Integer]
1474
+ # @param newPos [Integer]
1475
+ # @return [void]
1476
+ def set_row_pos(rowID, newPos) end
1477
+
1478
+ # Sets the positions of all rows at once.
1479
+ # This method takes an array containing the indices of the rows in their display order.
1480
+ # @param order [Array<Integer>]
1481
+ # @return [void]
1482
+ def set_rows_order(order) end
1483
+ alias_method :rows_order=, :set_rows_order
1484
+
1485
+ # Resets the position of the rows to the default.
1486
+ # @return [void]
1487
+ def reset_row_pos; end
1488
+
1489
+ # Returns the current grid cursor position.
1490
+ # If grid cursor doesn't have any valid position (e.g. if the grid is completely empty and doesn't have any rows or columns), returns {Wx::GridNoCellCoords} which has both row and columns set to <code>-1</code>.
1491
+ # @return [Wx::GridCellCoords]
1492
+ def get_grid_cursor_coords; end
1493
+ alias_method :grid_cursor_coords, :get_grid_cursor_coords
1494
+
1495
+ # Returns the current grid cell column position.
1496
+ #
1497
+ # @see Wx::GRID::Grid#get_grid_cursor_coords
1498
+ # @return [Integer]
1499
+ def get_grid_cursor_col; end
1500
+ alias_method :grid_cursor_col, :get_grid_cursor_col
1501
+
1502
+ # Returns the current grid cell row position.
1503
+ #
1504
+ # @see Wx::GRID::Grid#get_grid_cursor_coords
1505
+ # @return [Integer]
1506
+ def get_grid_cursor_row; end
1507
+ alias_method :grid_cursor_row, :get_grid_cursor_row
1508
+
1509
+ # @overload go_to_cell(row, col)
1510
+ # Make the given cell current and ensure it is visible.
1511
+ # This method is equivalent to calling {Wx::GRID::Grid#make_cell_visible} and {Wx::GRID::Grid#set_grid_cursor} and so, as with the latter, a {Wx::GRID::EVT_GRID_SELECT_CELL} event is generated by it and the selected cell doesn't change if the event is vetoed.
1512
+ # @param row [Integer]
1513
+ # @param col [Integer]
1514
+ # @return [void]
1515
+ # @overload go_to_cell(coords)
1516
+ # Make the given cell current and ensure it is visible.
1517
+ # This method is equivalent to calling {Wx::GRID::Grid#make_cell_visible} and {Wx::GRID::Grid#set_grid_cursor} and so, as with the latter, a {Wx::GRID::EVT_GRID_SELECT_CELL} event is generated by it and the selected cell doesn't change if the event is vetoed.
1518
+ # @param coords [Wx::GridCellCoords]
1519
+ # @return [void]
1520
+ def go_to_cell(*args) end
1521
+
1522
+ # Moves the grid cursor down by one row.
1523
+ # If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false.
1524
+ # @param expandSelection [true,false]
1525
+ # @return [true,false]
1526
+ def move_cursor_down(expandSelection) end
1527
+
1528
+ # Moves the grid cursor down in the current column such that it skips to the beginning or end of a block of non-empty cells.
1529
+ # If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false.
1530
+ # @param expandSelection [true,false]
1531
+ # @return [true,false]
1532
+ def move_cursor_down_block(expandSelection) end
1533
+
1534
+ # Moves the grid cursor left by one column.
1535
+ # If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false.
1536
+ # @param expandSelection [true,false]
1537
+ # @return [true,false]
1538
+ def move_cursor_left(expandSelection) end
1539
+
1540
+ # Moves the grid cursor left in the current row such that it skips to the beginning or end of a block of non-empty cells.
1541
+ # If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false.
1542
+ # @param expandSelection [true,false]
1543
+ # @return [true,false]
1544
+ def move_cursor_left_block(expandSelection) end
1545
+
1546
+ # Moves the grid cursor right by one column.
1547
+ # If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false.
1548
+ # @param expandSelection [true,false]
1549
+ # @return [true,false]
1550
+ def move_cursor_right(expandSelection) end
1551
+
1552
+ # Moves the grid cursor right in the current row such that it skips to the beginning or end of a block of non-empty cells.
1553
+ # If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false.
1554
+ # @param expandSelection [true,false]
1555
+ # @return [true,false]
1556
+ def move_cursor_right_block(expandSelection) end
1557
+
1558
+ # Moves the grid cursor up by one row.
1559
+ # If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false.
1560
+ # @param expandSelection [true,false]
1561
+ # @return [true,false]
1562
+ def move_cursor_up(expandSelection) end
1563
+
1564
+ # Moves the grid cursor up in the current column such that it skips to the beginning or end of a block of non-empty cells.
1565
+ # If a block of cells was previously selected it will expand if the argument is true or be cleared if the argument is false.
1566
+ # @param expandSelection [true,false]
1567
+ # @return [true,false]
1568
+ def move_cursor_up_block(expandSelection) end
1569
+
1570
+ # Moves the grid cursor down by some number of rows so that the previous bottom visible row becomes the top visible row.
1571
+ # @return [true,false]
1572
+ def move_page_down; end
1573
+
1574
+ # Moves the grid cursor up by some number of rows so that the previous top visible row becomes the bottom visible row.
1575
+ # @return [true,false]
1576
+ def move_page_up; end
1577
+
1578
+ # @overload set_grid_cursor(row, col)
1579
+ # Set the grid cursor to the specified cell.
1580
+ # The grid cursor indicates the current cell and can be moved by the user using the arrow keys or the mouse.
1581
+ # Calling this function generates a {Wx::GRID::EVT_GRID_SELECT_CELL} event and if the event handler vetoes this event, the cursor is not moved.
1582
+ # This function doesn't make the target call visible, use {Wx::GRID::Grid#go_to_cell} to do this.
1583
+ # @param row [Integer]
1584
+ # @param col [Integer]
1585
+ # @return [void]
1586
+ # @overload set_grid_cursor(coords)
1587
+ # Set the grid cursor to the specified cell.
1588
+ # The grid cursor indicates the current cell and can be moved by the user using the arrow keys or the mouse.
1589
+ # Calling this function generates a {Wx::GRID::EVT_GRID_SELECT_CELL} event and if the event handler vetoes this event, the cursor is not moved.
1590
+ # This function doesn't make the target call visible, use {Wx::GRID::Grid#go_to_cell} to do this.
1591
+ # @param coords [Wx::GridCellCoords]
1592
+ # @return [void]
1593
+ def set_grid_cursor(*args) end
1594
+ alias_method :grid_cursor=, :set_grid_cursor
1595
+
1596
+ # Set the grid's behaviour when the user presses the TAB key.
1597
+ # Pressing the TAB key moves the grid cursor right in the current row, if there is a cell at the right and, similarly, Shift-TAB moves the cursor to the left in the current row if it's not in the first column.
1598
+ # What happens if the cursor can't be moved because it it's already at the beginning or end of the row can be configured using this function, see {Wx::GRID::Grid::TabBehaviour} documentation for the detailed description.
1599
+ # IF none of the standard behaviours is appropriate, you can always handle {Wx::GRID::EVT_GRID_TABBING} event directly to implement a custom TAB-handling logic.
1600
+ # @param behaviour [TabBehaviour]
1601
+ # @return [void]
1602
+ def set_tab_behaviour(behaviour) end
1603
+ alias_method :tab_behaviour=, :set_tab_behaviour
1604
+
1605
+ # Deselects all cells that are currently selected.
1606
+ # @return [void]
1607
+ def clear_selection; end
1608
+
1609
+ # Deselects a row of cells.
1610
+ # @param row [Integer]
1611
+ # @return [void]
1612
+ def deselect_row(row) end
1613
+
1614
+ # Deselects a column of cells.
1615
+ # @param col [Integer]
1616
+ # @return [void]
1617
+ def deselect_col(col) end
1618
+
1619
+ # Deselects a cell.
1620
+ # @param row [Integer]
1621
+ # @param col [Integer]
1622
+ # @return [void]
1623
+ def deselect_cell(row, col) end
1624
+
1625
+ # Returns an ordered range of non-overlapping selected rows.
1626
+ # For the grids using {Wx::GRID::Grid::GridSelectionModes::GridSelectRows} selection mode, returns the possibly empty vector containing the coordinates of non-overlapping selected row blocks in the natural order, i.e. from smallest to the biggest row indices.
1627
+ # To see the difference between this method and {Wx::GRID::Grid#get_selected_blocks}, consider the case when the user selects rows 2..4 in the grid and then also selects (using Ctrl/Shift keys) the rows 1..3. Iterating over the result of {Wx::GRID::Grid#get_selected_blocks} would yield two blocks directly corresponding to the users selection, while this method returns a vector with a single element corresponding to the rows 1..4.
1628
+ # This method returns empty vector for the other selection modes.
1629
+ # @see Wx::GRID::Grid#get_selected_blocks
1630
+ # @see Wx::GRID::Grid#get_selected_col_blocks
1631
+ # @return [Wx::GridBlockCoordsVector]
1632
+ def get_selected_row_blocks; end
1633
+ alias_method :selected_row_blocks, :get_selected_row_blocks
1634
+
1635
+ # Returns an ordered range of non-overlapping selected columns.
1636
+ # This method is symmetric to {Wx::GRID::Grid#get_selected_row_blocks}, but is useful only in {Wx::GRID::Grid::GridSelectionModes::GridSelectColumns} selection mode.
1637
+ # @see Wx::GRID::Grid#get_selected_blocks
1638
+ # @return [Wx::GridBlockCoordsVector]
1639
+ def get_selected_col_blocks; end
1640
+ alias_method :selected_col_blocks, :get_selected_col_blocks
1641
+
1642
+ # Returns an array of individually selected cells.
1643
+ # Notice that this array does not contain all the selected cells in general as it doesn't include the cells selected as part of column, row or block selection. You must use this method, {Wx::GRID::Grid#get_selected_cols}, {Wx::GRID::Grid#get_selected_rows} and {Wx::GRID::Grid#get_selection_block_top_left} and {Wx::GRID::Grid#get_selection_block_bottom_right} methods to obtain the entire selection in general.
1644
+ # Please notice this behaviour is by design and is needed in order to support grids of arbitrary size (when an entire column is selected in a grid with a million of columns, we don't want to create an array with a million of entries in this function, instead it returns an empty array and {Wx::GRID::Grid#get_selected_cols} returns an array containing one element).
1645
+ # The function can be slow for the big grids, use {Wx::GRID::Grid#get_selected_blocks} in the new code.
1646
+ # @return [Array<Array(Integer, Integer)>]
1647
+ def get_selected_cells; end
1648
+ alias_method :selected_cells, :get_selected_cells
1649
+
1650
+ # Returns an array of selected columns.
1651
+ # Please notice that this method alone is not sufficient to find all the selected columns as it contains only the columns which were individually selected but not those being part of the block selection or being selected in virtue of all of their cells being selected individually, please see {Wx::GRID::Grid#get_selected_cells} for more details.
1652
+ # The function can be slow for the big grids, use {Wx::GRID::Grid#get_selected_blocks} in the new code.
1653
+ # @return [Array<Integer>]
1654
+ def get_selected_cols; end
1655
+ alias_method :selected_cols, :get_selected_cols
1656
+
1657
+ # Returns an array of selected rows.
1658
+ # Please notice that this method alone is not sufficient to find all the selected rows as it contains only the rows which were individually selected but not those being part of the block selection or being selected in virtue of all of their cells being selected individually, please see {Wx::GRID::Grid#get_selected_cells} for more details.
1659
+ # The function can be slow for the big grids, use {Wx::GRID::Grid#get_selected_blocks} in the new code.
1660
+ # @return [Array<Integer>]
1661
+ def get_selected_rows; end
1662
+ alias_method :selected_rows, :get_selected_rows
1663
+
1664
+ # Returns the colour used for drawing the selection background.
1665
+ # @return [Wx::Colour]
1666
+ def get_selection_background; end
1667
+ alias_method :selection_background, :get_selection_background
1668
+
1669
+ # Returns an array of the bottom right corners of blocks of selected cells.
1670
+ # Please see {Wx::GRID::Grid#get_selected_cells} for more information about the selection representation in {Wx::GRID::Grid}.
1671
+ # The function can be slow for the big grids, use {Wx::GRID::Grid#get_selected_blocks} in the new code.
1672
+ # @see Wx::GRID::Grid#get_selection_block_top_left
1673
+ # @return [Array<Array(Integer, Integer)>]
1674
+ def get_selection_block_bottom_right; end
1675
+ alias_method :selection_block_bottom_right, :get_selection_block_bottom_right
1676
+
1677
+ # Returns an array of the top left corners of blocks of selected cells.
1678
+ # Please see {Wx::GRID::Grid#get_selected_cells} for more information about the selection representation in {Wx::GRID::Grid}.
1679
+ # The function can be slow for the big grids, use {Wx::GRID::Grid#get_selected_blocks} in the new code.
1680
+ # @see Wx::GRID::Grid#get_selection_block_bottom_right
1681
+ # @return [Array<Array(Integer, Integer)>]
1682
+ def get_selection_block_top_left; end
1683
+ alias_method :selection_block_top_left, :get_selection_block_top_left
1684
+
1685
+ # Returns the colour used for drawing the selection foreground.
1686
+ # @return [Wx::Colour]
1687
+ def get_selection_foreground; end
1688
+ alias_method :selection_foreground, :get_selection_foreground
1689
+
1690
+ # Returns the current selection mode.
1691
+ #
1692
+ # @see Wx::GRID::Grid#set_selection_mode.
1693
+ # @return [GridSelectionModes]
1694
+ def get_selection_mode; end
1695
+ alias_method :selection_mode, :get_selection_mode
1696
+
1697
+ # Returns true if the given cell is selected.
1698
+ # @param row [Integer]
1699
+ # @param col [Integer]
1700
+ # @return [true,false]
1701
+ def is_in_selection(row, col) end
1702
+ alias_method :in_selection?, :is_in_selection
1703
+
1704
+ # Returns true if there are currently any selected cells, rows, columns or blocks.
1705
+ # @return [true,false]
1706
+ def is_selection; end
1707
+ alias_method :selection?, :is_selection
1708
+
1709
+ # Selects all cells in the grid.
1710
+ # @return [void]
1711
+ def select_all; end
1712
+
1713
+ # Selects a rectangular block of cells.
1714
+ # If addToSelected is false then any existing selection will be deselected; if true the column will be added to the existing selection.
1715
+ # @param topRow [Integer]
1716
+ # @param leftCol [Integer]
1717
+ # @param bottomRow [Integer]
1718
+ # @param rightCol [Integer]
1719
+ # @param addToSelected [true,false]
1720
+ # @return [void]
1721
+ def select_block(topRow, leftCol, bottomRow, rightCol, addToSelected=false) end
1722
+
1723
+ # Selects the specified column.
1724
+ # If addToSelected is false then any existing selection will be deselected; if true the column will be added to the existing selection.
1725
+ # This method won't select anything if the current selection mode is {Wx::GRID::Grid::GridSelectionModes::GridSelectRows}.
1726
+ # @param col [Integer]
1727
+ # @param addToSelected [true,false]
1728
+ # @return [void]
1729
+ def select_col(col, addToSelected=false) end
1730
+
1731
+ # Selects the specified row.
1732
+ # If addToSelected is false then any existing selection will be deselected; if true the row will be added to the existing selection.
1733
+ # This method won't select anything if the current selection mode is {Wx::GRID::Grid::GridSelectionModes::GridSelectColumns}.
1734
+ # @param row [Integer]
1735
+ # @param addToSelected [true,false]
1736
+ # @return [void]
1737
+ def select_row(row, addToSelected=false) end
1738
+
1739
+ # Set the colour to be used for drawing the selection background.
1740
+ # @param c [Wx::Colour,String,Symbol]
1741
+ # @return [void]
1742
+ def set_selection_background(c) end
1743
+ alias_method :selection_background=, :set_selection_background
1744
+
1745
+ # Set the colour to be used for drawing the selection foreground.
1746
+ # @param c [Wx::Colour,String,Symbol]
1747
+ # @return [void]
1748
+ def set_selection_foreground(c) end
1749
+ alias_method :selection_foreground=, :set_selection_foreground
1750
+
1751
+ # Set the selection behaviour of the grid.
1752
+ # The existing selection is converted to conform to the new mode if possible and discarded otherwise (e.g. any individual selected cells are deselected if the new mode allows only the selection of the entire rows or columns).
1753
+ # @param selmode [GridSelectionModes]
1754
+ # @return [void]
1755
+ def set_selection_mode(selmode) end
1756
+ alias_method :selection_mode=, :set_selection_mode
1757
+
1758
+ # Returns the number of pixels per horizontal scroll increment.
1759
+ # The default is 15.
1760
+ # @see Wx::GRID::Grid#get_scroll_line_y
1761
+ # @see Wx::GRID::Grid#set_scroll_line_x
1762
+ # @see Wx::GRID::Grid#set_scroll_line_y
1763
+ # @return [Integer]
1764
+ def get_scroll_line_x; end
1765
+ alias_method :scroll_line_x, :get_scroll_line_x
1766
+
1767
+ # Returns the number of pixels per vertical scroll increment.
1768
+ # The default is 15.
1769
+ # @see Wx::GRID::Grid#get_scroll_line_x
1770
+ # @see Wx::GRID::Grid#set_scroll_line_x
1771
+ # @see Wx::GRID::Grid#set_scroll_line_y
1772
+ # @return [Integer]
1773
+ def get_scroll_line_y; end
1774
+ alias_method :scroll_line_y, :get_scroll_line_y
1775
+
1776
+ # Returns true if a cell is either entirely or at least partially visible in the grid window.
1777
+ # By default, the cell must be entirely visible for this function to return true but if wholeCellVisible is false, the function returns true even if the cell is only partially visible.
1778
+ # @param row [Integer]
1779
+ # @param col [Integer]
1780
+ # @param wholeCellVisible [true,false]
1781
+ # @return [true,false]
1782
+ def is_visible(row, col, wholeCellVisible=true) end
1783
+ alias_method :visible?, :is_visible
1784
+
1785
+ # Brings the specified cell into the visible grid cell area with minimal scrolling.
1786
+ # Does nothing if the cell is already visible.
1787
+ # @param row [Integer]
1788
+ # @param col [Integer]
1789
+ # @return [void]
1790
+ def make_cell_visible(row, col) end
1791
+
1792
+ # Returns the topmost row of the current visible area.
1793
+ # Returns -1 if the grid doesn't have any rows.
1794
+ # @return [Integer]
1795
+ def get_first_fully_visible_row; end
1796
+ alias_method :first_fully_visible_row, :get_first_fully_visible_row
1797
+
1798
+ # Returns the leftmost column of the current visible area.
1799
+ # Returns -1 if the grid doesn't have any columns.
1800
+ # @return [Integer]
1801
+ def get_first_fully_visible_column; end
1802
+ alias_method :first_fully_visible_column, :get_first_fully_visible_column
1803
+
1804
+ # Sets the number of pixels per horizontal scroll increment.
1805
+ # The default is 15.
1806
+ # @see Wx::GRID::Grid#get_scroll_line_x
1807
+ # @see Wx::GRID::Grid#get_scroll_line_y
1808
+ # @see Wx::GRID::Grid#set_scroll_line_y
1809
+ # @param x [Integer]
1810
+ # @return [void]
1811
+ def set_scroll_line_x(x) end
1812
+ alias_method :scroll_line_x=, :set_scroll_line_x
1813
+
1814
+ # Sets the number of pixels per vertical scroll increment.
1815
+ # The default is 15.
1816
+ # @see Wx::GRID::Grid#get_scroll_line_x
1817
+ # @see Wx::GRID::Grid#get_scroll_line_y
1818
+ # @see Wx::GRID::Grid#set_scroll_line_x
1819
+ # @param y [Integer]
1820
+ # @return [void]
1821
+ def set_scroll_line_y(y) end
1822
+ alias_method :scroll_line_y=, :set_scroll_line_y
1823
+
1824
+ # Convert grid cell coordinates to grid window pixel coordinates.
1825
+ # This function returns the rectangle that encloses the block of cells limited by topLeft and bottomRight cell in device coords and clipped to the client size of the grid window.
1826
+ # @see Wx::GRID::Grid#cell_to_rect
1827
+ # @param topLeft [Wx::GridCellCoords]
1828
+ # @param bottomRight [Wx::GridCellCoords]
1829
+ # @param gridWindow [Wx::GridWindow]
1830
+ # @return [Wx::Rect]
1831
+ def block_to_device_rect(topLeft, bottomRight, gridWindow=nil) end
1832
+
1833
+ # Return the rectangle corresponding to the grid cell's size and position in logical coordinates.
1834
+ #
1835
+ # @see Wx::GRID::Grid#block_to_device_rect
1836
+ # @param row [Integer]
1837
+ # @param col [Integer]
1838
+ # @return [Wx::Rect]
1839
+ def cell_to_rect(row, col) end
1840
+
1841
+ # @overload cell_to_grid_window(row, col)
1842
+ # Returns the grid window that contains the cell.
1843
+ # In a grid without frozen rows or columns (see {Wx::GRID::Grid#freeze_to}), this will always return the same window as {Wx::GRID::Grid#get_grid_window}, however if some parts of the grid are frozen, this function returns the window containing the given cell.
1844
+ # @param row [Integer]
1845
+ # @param col [Integer]
1846
+ # @return [Wx::GridWindow]
1847
+ # @overload cell_to_grid_window(coords)
1848
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1849
+ # @param coords [Wx::GridCellCoords]
1850
+ # @return [Wx::GridWindow]
1851
+ def cell_to_grid_window(*args) end
1852
+
1853
+ # @overload device_pos_to_grid_window(pos)
1854
+ # Returns the grid window that includes the input coordinates.
1855
+ # @param pos [Wx::Point]
1856
+ # @return [Wx::GridWindow]
1857
+ # @overload device_pos_to_grid_window(x, y)
1858
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1859
+ # @param x [Integer]
1860
+ # @param y [Integer]
1861
+ # @return [Wx::GridWindow]
1862
+ def device_pos_to_grid_window(*args) end
1863
+
1864
+ # @overload get_grid_window_offset(gridWindow, x, y)
1865
+ # Returns the grid window's offset from the grid starting position taking into account the frozen cells.
1866
+ # If there are no frozen cells, returns (0, 0).
1867
+ # @see Wx::GRID::Grid#freeze_to
1868
+ # @param gridWindow [Wx::GridWindow]
1869
+ # @param x [int]
1870
+ # @param y [int]
1871
+ # @return [void]
1872
+ # @overload get_grid_window_offset(gridWindow)
1873
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1874
+ # @param gridWindow [Wx::GridWindow]
1875
+ # @return [Wx::Point]
1876
+ def get_grid_window_offset(*args) end
1877
+ alias_method :grid_window_offset, :get_grid_window_offset
1878
+
1879
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1880
+ # @param pt [Array(Integer, Integer), Wx::Point]
1881
+ # @param gridWindow [Wx::GridWindow]
1882
+ # @return [Wx::Point]
1883
+ def calc_grid_window_unscrolled_position(pt, gridWindow) end
1884
+
1885
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1886
+ # @param pt [Array(Integer, Integer), Wx::Point]
1887
+ # @param gridWindow [Wx::GridWindow]
1888
+ # @return [Wx::Point]
1889
+ def calc_grid_window_scrolled_position(pt, gridWindow) end
1890
+
1891
+ # Returns the column at the given pixel position depending on the window.
1892
+ # The column index or {Wx::NOT_FOUND}.
1893
+ # @param x [Integer] The x position to evaluate.
1894
+ # @param clipToMinMax [true,false] If true, rather than returning {Wx::NOT_FOUND}, it returns either the first or last column depending on whether x is too far to the left or right respectively.
1895
+ # @param gridWindow [Wx::GridWindow] The associated grid window that limits the search (note that this parameter is only available since wxWidgets 3.1.3). If gridWindow is NULL, it will consider all the cells, no matter which grid they belong to.
1896
+ # @return [Integer]
1897
+ def x_to_col(x, clipToMinMax=false, gridWindow=nil) end
1898
+
1899
+ # Returns the column whose right hand edge is close to the given logical x position.
1900
+ # If no column edge is near to this position {Wx::NOT_FOUND} is returned.
1901
+ # @param x [Integer]
1902
+ # @return [Integer]
1903
+ def x_to_edge_of_col(x) end
1904
+
1905
+ # @overload xy_to_cell(x, y, gridWindow=nil)
1906
+ # Translates logical pixel coordinates to the grid cell coordinates.
1907
+ # Notice that this function expects logical coordinates on input so if you use this function in a mouse event handler you need to translate the mouse position, which is expressed in device coordinates, to logical ones.
1908
+ # The parameter gridWindow is new since wxWidgets 3.1.3. If it is specified, i.e. non-NULL, the coordinates must be in this window coordinate system and only the cells of this window are considered, i.e. the function returns {Wx::NOT_FOUND} if the coordinates are out of bounds.
1909
+ # If gridWindow is NULL, coordinates are relative to the main grid window and all cells are considered.
1910
+ # @see Wx::GRID::Grid#x_to_col
1911
+ # @see Wx::GRID::Grid#y_to_row
1912
+ # @param x [Integer]
1913
+ # @param y [Integer]
1914
+ # @param gridWindow [Wx::GridWindow]
1915
+ # @return [Array(Integer, Integer)]
1916
+ # @overload xy_to_cell(pos, gridWindow=nil)
1917
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1918
+ # @param pos [Array(Integer, Integer), Wx::Point]
1919
+ # @param gridWindow [Wx::GridWindow]
1920
+ # @return [Array(Integer, Integer)]
1921
+ def xy_to_cell(*args) end
1922
+
1923
+ # Returns the row whose bottom edge is close to the given logical y position.
1924
+ # If no row edge is near to this position {Wx::NOT_FOUND} is returned.
1925
+ # @param y [Integer]
1926
+ # @return [Integer]
1927
+ def y_to_edge_of_row(y) end
1928
+
1929
+ # Returns the grid row that corresponds to the logical y coordinate.
1930
+ # The parameter gridWindow is new since wxWidgets 3.1.3. If it is specified, i.e. non-NULL, only the cells of this window are considered, i.e. the function returns {Wx::NOT_FOUND} if y is out of bounds.
1931
+ # If gridWindow is NULL, the function returns {Wx::NOT_FOUND} only if there is no row at all at the y position.
1932
+ # @param y [Integer]
1933
+ # @param clipToMinMax [true,false]
1934
+ # @param gridWindow [Wx::GridWindow]
1935
+ # @return [Integer]
1936
+ def y_to_row(y, clipToMinMax=false, gridWindow=nil) end
1937
+
1938
+ # Appends one or more new columns to the right of the grid.
1939
+ # The updateLabels argument is not used at present. If you are using a derived grid table class you will need to override {Wx::GRID::GridTableBase#append_cols}. See {Wx::GRID::Grid#insert_cols} for further information.
1940
+ # true on success or false if appending columns failed.
1941
+ # @param numCols [Integer]
1942
+ # @param updateLabels [true,false]
1943
+ # @return [true,false]
1944
+ def append_cols(numCols=1, updateLabels=true) end
1945
+
1946
+ # Appends one or more new rows to the bottom of the grid.
1947
+ # The updateLabels argument is not used at present. If you are using a derived grid table class you will need to override {Wx::GRID::GridTableBase#append_rows}. See {Wx::GRID::Grid#insert_rows} for further information.
1948
+ # true on success or false if appending rows failed.
1949
+ # @param numRows [Integer]
1950
+ # @param updateLabels [true,false]
1951
+ # @return [true,false]
1952
+ def append_rows(numRows=1, updateLabels=true) end
1953
+
1954
+ # Return true if the horizontal grid lines stop at the last column boundary or false if they continue to the end of the window.
1955
+ # The default is to clip grid lines.
1956
+ # @see Wx::GRID::Grid#clip_horz_grid_lines
1957
+ # @see Wx::GRID::Grid#are_vert_grid_lines_clipped
1958
+ # @return [true,false]
1959
+ def are_horz_grid_lines_clipped; end
1960
+
1961
+ # Return true if the vertical grid lines stop at the last row boundary or false if they continue to the end of the window.
1962
+ # The default is to clip grid lines.
1963
+ # @see Wx::GRID::Grid#clip_vert_grid_lines
1964
+ # @see Wx::GRID::Grid#are_horz_grid_lines_clipped
1965
+ # @return [true,false]
1966
+ def are_vert_grid_lines_clipped; end
1967
+
1968
+ # Increments the grid's batch count.
1969
+ # When the count is greater than zero repainting of the grid is suppressed. Each call to BeginBatch must be matched by a later call to {Wx::GRID::Grid#end_batch}. Code that does a lot of grid modification can be enclosed between {Wx::GRID::Grid#begin_batch} and {Wx::GRID::Grid#end_batch} calls to avoid screen flicker. The final {Wx::GRID::Grid#end_batch} call will cause the grid to be repainted.
1970
+ # Notice that you should use {Wx::GridUpdateLocker} which ensures that there is always a matching {Wx::GRID::Grid#end_batch} call for this {Wx::GRID::Grid#begin_batch} if possible instead of calling this method directly.
1971
+ # @return [void]
1972
+ def begin_batch; end
1973
+
1974
+ # Clears all data in the underlying grid table and repaints the grid.
1975
+ # The table is not deleted by this function. If you are using a derived table class then you need to override {Wx::GRID::GridTableBase#clear} for this function to have any effect.
1976
+ # @return [void]
1977
+ def clear_grid; end
1978
+
1979
+ # Change whether the horizontal grid lines are clipped by the end of the last column.
1980
+ # By default the grid lines are not drawn beyond the end of the last column but after calling this function with clip set to false they will be drawn across the entire grid window.
1981
+ # @see Wx::GRID::Grid#are_horz_grid_lines_clipped
1982
+ # @see Wx::GRID::Grid#clip_vert_grid_lines
1983
+ # @param clip [true,false]
1984
+ # @return [void]
1985
+ def clip_horz_grid_lines(clip) end
1986
+
1987
+ # Change whether the vertical grid lines are clipped by the end of the last row.
1988
+ # By default the grid lines are not drawn beyond the end of the last row but after calling this function with clip set to false they will be drawn across the entire grid window.
1989
+ # @see Wx::GRID::Grid#are_vert_grid_lines_clipped
1990
+ # @see Wx::GRID::Grid#clip_horz_grid_lines
1991
+ # @param clip [true,false]
1992
+ # @return [void]
1993
+ def clip_vert_grid_lines(clip) end
1994
+
1995
+ # Deletes one or more columns from a grid starting at the specified position.
1996
+ # The updateLabels argument is not used at present. If you are using a derived grid table class you will need to override {Wx::GRID::GridTableBase#delete_cols}. See {Wx::GRID::Grid#insert_cols} for further information.
1997
+ # true on success or false if deleting columns failed.
1998
+ # @param pos [Integer]
1999
+ # @param numCols [Integer]
2000
+ # @param updateLabels [true,false]
2001
+ # @return [true,false]
2002
+ def delete_cols(pos=0, numCols=1, updateLabels=true) end
2003
+
2004
+ # Deletes one or more rows from a grid starting at the specified position.
2005
+ # The updateLabels argument is not used at present. If you are using a derived grid table class you will need to override {Wx::GRID::GridTableBase#delete_rows}. See {Wx::GRID::Grid#insert_rows} for further information.
2006
+ # true on success or false if deleting rows failed.
2007
+ # @param pos [Integer]
2008
+ # @param numRows [Integer]
2009
+ # @param updateLabels [true,false]
2010
+ # @return [true,false]
2011
+ def delete_rows(pos=0, numRows=1, updateLabels=true) end
2012
+
2013
+ # @overload freeze_to(row, col)
2014
+ # Sets or resets the frozen columns and rows.
2015
+ # true on success or false if it failed.
2016
+ #
2017
+ # Note that this method doesn't do anything, and returns false, if any of the following conditions are true:
2018
+ # - Either row or col are out of range- Size of the frozen area would be bigger than the current viewing area- There are any merged cells in the area to be frozen- Grid uses a native header control (see {Wx::GRID::Grid#use_native_col_header})
2019
+ #
2020
+ # (some of these limitations could be lifted in the future).
2021
+ # @param row [unsigned] The number of rows to freeze, 0 means to unfreeze all rows.
2022
+ # @param col [unsigned] The number of columns to freeze, 0 means to unfreeze all columns.
2023
+ # @return [true,false]
2024
+ # @overload freeze_to(coords)
2025
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
2026
+ # @param coords [Wx::GridCellCoords]
2027
+ # @return [true,false]
2028
+ def freeze_to(*args) end
2029
+
2030
+ # Decrements the grid's batch count.
2031
+ # When the count is greater than zero repainting of the grid is suppressed. Each previous call to {Wx::GRID::Grid#begin_batch} must be matched by a later call to {Wx::GRID::Grid#end_batch}. Code that does a lot of grid modification can be enclosed between {Wx::GRID::Grid#begin_batch} and {Wx::GRID::Grid#end_batch} calls to avoid screen flicker. The final {Wx::GRID::Grid#end_batch} will cause the grid to be repainted.
2032
+ # @see Wx::GridUpdateLocker
2033
+ # @return [void]
2034
+ def end_batch; end
2035
+
2036
+ # Overridden {Wx::Window} method.
2037
+ # @return [void]
2038
+ def fit; end
2039
+
2040
+ # Causes immediate repainting of the grid.
2041
+ # Use this instead of the usual {Wx::Window#refresh}.
2042
+ # @return [void]
2043
+ def force_refresh; end
2044
+
2045
+ # Returns the number of times that {Wx::GRID::Grid#begin_batch} has been called without (yet) matching calls to {Wx::GRID::Grid#end_batch}.
2046
+ # While the grid's batch count is greater than zero the display will not be updated.
2047
+ # @return [Integer]
2048
+ def get_batch_count; end
2049
+ alias_method :batch_count, :get_batch_count
2050
+
2051
+ # Returns the total number of grid columns.
2052
+ # This is the same as the number of columns in the underlying grid table.
2053
+ # @return [Integer]
2054
+ def get_number_cols; end
2055
+ alias_method :number_cols, :get_number_cols
2056
+
2057
+ # Returns the total number of grid rows.
2058
+ # This is the same as the number of rows in the underlying grid table.
2059
+ # @return [Integer]
2060
+ def get_number_rows; end
2061
+ alias_method :number_rows, :get_number_rows
2062
+
2063
+ # Returns the number of frozen grid columns.
2064
+ # If there are no frozen columns, returns 0.
2065
+ # @see Wx::GRID::Grid#freeze_to
2066
+ # @return [Integer]
2067
+ def get_number_frozen_cols; end
2068
+ alias_method :number_frozen_cols, :get_number_frozen_cols
2069
+
2070
+ # Returns the number of frozen grid rows.
2071
+ # If there are no frozen rows, returns 0.
2072
+ # @see Wx::GRID::Grid#freeze_to
2073
+ # @return [Integer]
2074
+ def get_number_frozen_rows; end
2075
+ alias_method :number_frozen_rows, :get_number_frozen_rows
2076
+
2077
+ # Returns the attribute for the given cell creating one if necessary.
2078
+ # If the cell already has an attribute, it is returned. Otherwise a new attribute is created, associated with the cell and returned. In any case the caller must call DecRef() on the returned pointer.
2079
+ # Prefer to use {Wx::GRID::Grid#get_or_create_cell_attr_ptr} to avoid the need to call DecRef() on the returned pointer.
2080
+ # This function may only be called if {Wx::GRID::Grid#can_have_attributes} returns true.
2081
+ # @param row [Integer]
2082
+ # @param col [Integer]
2083
+ # @return [Wx::GRID::GridCellAttr]
2084
+ def get_or_create_cell_attr(row, col) end
2085
+ alias_method :or_create_cell_attr, :get_or_create_cell_attr
2086
+
2087
+ # Returns a base pointer to the current table object.
2088
+ # The returned pointer is still owned by the grid.
2089
+ # @return [Wx::GridTableBase]
2090
+ def get_table; end
2091
+ alias_method :table, :get_table
2092
+
2093
+ # Inserts one or more new columns into a grid with the first new column at the specified position.
2094
+ # Notice that inserting the columns in the grid requires grid table cooperation: when this method is called, grid object begins by requesting the underlying grid table to insert new columns. If this is successful the table notifies the grid and the grid updates the display. For a default grid (one where you have called {Wx::GRID::Grid#create_grid}) this process is automatic. If you are using a custom grid table (specified with {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table}) then you must override {Wx::GRID::GridTableBase#insert_cols} in your derived table class.
2095
+ #
2096
+ # true if the columns were successfully inserted, false if an error occurred (most likely the table couldn't be updated).
2097
+ # @param pos [Integer] The position which the first newly inserted column will have.
2098
+ # @param numCols [Integer] The number of columns to insert.
2099
+ # @param updateLabels [true,false] Currently not used.
2100
+ # @return [true,false]
2101
+ def insert_cols(pos=0, numCols=1, updateLabels=true) end
2102
+
2103
+ # Inserts one or more new rows into a grid with the first new row at the specified position.
2104
+ # Notice that you must implement {Wx::GRID::GridTableBase#insert_rows} if you use a grid with a custom table, please see {Wx::GRID::Grid#insert_cols} for more information.
2105
+ #
2106
+ # true if the rows were successfully inserted, false if an error occurred (most likely the table couldn't be updated).
2107
+ # @param pos [Integer] The position which the first newly inserted row will have.
2108
+ # @param numRows [Integer] The number of rows to insert.
2109
+ # @param updateLabels [true,false] Currently not used.
2110
+ # @return [true,false]
2111
+ def insert_rows(pos=0, numRows=1, updateLabels=true) end
2112
+
2113
+ # Invalidates the cached attribute for the given cell.
2114
+ # For efficiency reasons, {Wx::GRID::Grid} may cache the recently used attributes (currently it caches only the single most recently used one, in fact) which can result in the cell appearance not being refreshed even when the attribute returned by your custom {Wx::GridCellAttrProvider}-derived class has changed. To force the grid to refresh the cell attribute, this function may be used. Notice that calling it will not result in actually redrawing the cell, you still need to call {Wx::Window#refresh_rect} to invalidate the area occupied by the cell in the window to do this. Also note that you don't need to call this function if you store the attributes in {Wx::GRID::Grid} itself, i.e. use its {Wx::GRID::Grid#set_attr} and similar methods, it is only useful when using a separate custom attributes provider.
2115
+ # @param row [Integer] The row of the cell whose attribute needs to be queried again.
2116
+ # @param col [Integer] The column of the cell whose attribute needs to be queried again.
2117
+ # @return [void]
2118
+ def refresh_attr(row, col) end
2119
+
2120
+ # @overload refresh_block(topLeft, bottomRight)
2121
+ # Redraw all the cells in the given block.
2122
+ # Refresh the block of cells with the given corners.
2123
+ # If the bottom right corner coordinates are invalid, i.e. set to <code>-1</code>, the top left corner coordinates are used for it, i.e. just a single cell is refreshed. If the top left corner coordinates are invalid as well, the function simply returns without doing anything. Note, however, that both coordinates need to be valid or invalid simultaneously, i.e. setting the top row to <code>-1</code> but using a valid value for the left column is unsupported and would result in an assertion failure.
2124
+ # @param topLeft [Wx::GridCellCoords]
2125
+ # @param bottomRight [Wx::GridCellCoords]
2126
+ # @return [void]
2127
+ # @overload refresh_block(topRow, leftCol, bottomRow, rightCol)
2128
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
2129
+ # @param topRow [Integer]
2130
+ # @param leftCol [Integer]
2131
+ # @param bottomRow [Integer]
2132
+ # @param rightCol [Integer]
2133
+ # @return [void]
2134
+ def refresh_block(*args) end
2135
+
2136
+ # Draws part or all of a {Wx::GRID::Grid} on a {Wx::DC} for printing or display.
2137
+ # Pagination can be accomplished by using sequential {Wx::GRID::Grid#render} calls with appropriate values in {Wx::GridCellCoords} topLeft and bottomRight.
2138
+ # @param dc [Wx::DC] The {Wx::DC} to be drawn on.
2139
+ # @param pos [Array(Integer, Integer), Wx::Point] The position on the {Wx::DC} where rendering should begin. If not specified drawing will begin at the {Wx::DC} MaxX() and MaxY().
2140
+ # @param size [Array(Integer, Integer), Wx::Size] The size of the area on the {Wx::DC} that the rendered {Wx::GRID::Grid} should occupy. If not specified the drawing will be scaled to fit the available dc width or height. The {Wx::GRID::Grid}'s aspect ratio is maintained whether or not size is specified.
2141
+ # @param topLeft [Wx::GridCellCoords] The top left cell of the block to be drawn. Defaults to ( 0, 0 ).
2142
+ # @param bottomRight [Wx::GridCellCoords] The bottom right cell of the block to be drawn. Defaults to row and column counts.
2143
+ # @param style [Integer] A combination of values from {Wx::GRID::GridRenderStyle}.
2144
+ # @return [void]
2145
+ def render(dc, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, topLeft=(Wx::GridCellCoords.new(-1, -1)), bottomRight=(Wx::GridCellCoords.new(-1, -1)), style=Wx::GRID_DRAW_DEFAULT) end
2146
+
2147
+ # Sets the cell attributes for the specified cell.
2148
+ # The grid takes ownership of the attribute pointer.
2149
+ # See the {Wx::GRID::GridCellAttr} class for more information about controlling cell attributes.
2150
+ # @param row [Integer]
2151
+ # @param col [Integer]
2152
+ # @param attr [Wx::GridCellAttr]
2153
+ # @return [void]
2154
+ def set_attr(row, col, attr) end
2155
+
2156
+ # Sets the cell attributes for all cells in the specified column.
2157
+ # For more information about controlling grid cell attributes see the {Wx::GRID::GridCellAttr} cell attribute class and the wxGrid Overview.
2158
+ # @param col [Integer]
2159
+ # @param attr [Wx::GridCellAttr]
2160
+ # @return [void]
2161
+ def set_col_attr(col, attr) end
2162
+
2163
+ # Sets the extra margins used around the grid area.
2164
+ # A grid may occupy more space than needed for its data display and this function allows setting how big this extra space is
2165
+ # @param extraWidth [Integer]
2166
+ # @param extraHeight [Integer]
2167
+ # @return [void]
2168
+ def set_margins(extraWidth, extraHeight) end
2169
+
2170
+ # Sets the cell attributes for all cells in the specified row.
2171
+ # The grid takes ownership of the attribute pointer.
2172
+ # See the {Wx::GRID::GridCellAttr} class for more information about controlling cell attributes.
2173
+ # @param row [Integer]
2174
+ # @param attr [Wx::GridCellAttr]
2175
+ # @return [void]
2176
+ def set_row_attr(row, attr) end
2177
+
2178
+ # Appends one or more new columns to the right of the grid.
2179
+ # The updateLabels argument is not used at present. If you are using a derived grid table class you will need to override {Wx::GRID::GridTableBase#append_cols}. See {Wx::GRID::Grid#insert_cols} for further information.
2180
+ # true on success or false if appending columns failed.
2181
+ # @param reg [Wx::Region]
2182
+ # @param gridWindow [Wx::GridWindow]
2183
+ # @return [Array<Integer>]
2184
+ def calc_row_labels_exposed(reg, gridWindow=nil) end
2185
+
2186
+ # Appends one or more new columns to the right of the grid.
2187
+ # The updateLabels argument is not used at present. If you are using a derived grid table class you will need to override {Wx::GRID::GridTableBase#append_cols}. See {Wx::GRID::Grid#insert_cols} for further information.
2188
+ # true on success or false if appending columns failed.
2189
+ # @param reg [Wx::Region]
2190
+ # @param gridWindow [Wx::GridWindow]
2191
+ # @return [Array<Integer>]
2192
+ def calc_col_labels_exposed(reg, gridWindow=nil) end
2193
+
2194
+ # Appends one or more new columns to the right of the grid.
2195
+ # The updateLabels argument is not used at present. If you are using a derived grid table class you will need to override {Wx::GRID::GridTableBase#append_cols}. See {Wx::GRID::Grid#insert_cols} for further information.
2196
+ # true on success or false if appending columns failed.
2197
+ # @param reg [Wx::Region]
2198
+ # @param gridWindow [Wx::GridWindow]
2199
+ # @return [Array<Array(Integer, Integer)>]
2200
+ def calc_cells_exposed(reg, gridWindow=nil) end
2201
+
2202
+ # Return the column in which the sorting indicator is currently displayed.
2203
+ # Returns {Wx::NOT_FOUND} if sorting indicator is not currently displayed at all.
2204
+ # @see Wx::GRID::Grid#set_sorting_column
2205
+ # @return [Integer]
2206
+ def get_sorting_column; end
2207
+ alias_method :sorting_column, :get_sorting_column
2208
+
2209
+ # Return true if this column is currently used for sorting.
2210
+ #
2211
+ # @see Wx::GRID::Grid#get_sorting_column
2212
+ # @param col [Integer]
2213
+ # @return [true,false]
2214
+ def is_sorting_by(col) end
2215
+ alias_method :sorting_by?, :is_sorting_by
2216
+
2217
+ # Return true if the current sorting order is ascending or false if it is descending.
2218
+ # It only makes sense to call this function if {Wx::GRID::Grid#get_sorting_column} returns a valid column index and not {Wx::NOT_FOUND}.
2219
+ # @see Wx::GRID::Grid#set_sorting_column
2220
+ # @return [true,false]
2221
+ def is_sort_order_ascending; end
2222
+ alias_method :sort_order_ascending?, :is_sort_order_ascending
2223
+
2224
+ # Set the column to display the sorting indicator in and its direction.
2225
+ #
2226
+ # @see Wx::GRID::Grid#get_sorting_column
2227
+ # @see Wx::GRID::Grid#is_sort_order_ascending
2228
+ # @param col [Integer] The column to display the sorting indicator in or {Wx::NOT_FOUND} to remove any currently displayed sorting indicator.
2229
+ # @param ascending [true,false] If true, display the ascending sort indicator, otherwise display the descending sort indicator.
2230
+ # @return [void]
2231
+ def set_sorting_column(col, ascending=true) end
2232
+ alias_method :sorting_column=, :set_sorting_column
2233
+
2234
+ # Remove any currently shown sorting indicator.
2235
+ # This is equivalent to calling {Wx::GRID::Grid#set_sorting_column} with {Wx::NOT_FOUND} first argument.
2236
+ # @return [void]
2237
+ def unset_sorting_column; end
2238
+
2239
+ # Return the main grid window containing the grid cells.
2240
+ # This window is always shown.
2241
+ # @return [Wx::Window]
2242
+ def get_grid_window; end
2243
+ alias_method :grid_window, :get_grid_window
2244
+
2245
+ # Return the corner grid window containing frozen cells.
2246
+ # This window is shown only when there are frozen rows and columns.
2247
+ # @return [Wx::Window]
2248
+ def get_frozen_corner_grid_window; end
2249
+ alias_method :frozen_corner_grid_window, :get_frozen_corner_grid_window
2250
+
2251
+ # Return the rows grid window containing row frozen cells.
2252
+ # This window is shown only when there are frozen rows.
2253
+ # @return [Wx::Window]
2254
+ def get_frozen_row_grid_window; end
2255
+ alias_method :frozen_row_grid_window, :get_frozen_row_grid_window
2256
+
2257
+ # Return the columns grid window containing column frozen cells.
2258
+ # This window is shown only when there are frozen columns.
2259
+ # @return [Wx::Window]
2260
+ def get_frozen_col_grid_window; end
2261
+ alias_method :frozen_col_grid_window, :get_frozen_col_grid_window
2262
+
2263
+ # Return the row labels window.
2264
+ # This window is not shown if the row labels were hidden using {Wx::GRID::Grid#hide_row_labels}.
2265
+ # @return [Wx::Window]
2266
+ def get_grid_row_label_window; end
2267
+ alias_method :grid_row_label_window, :get_grid_row_label_window
2268
+
2269
+ # Return the column labels window.
2270
+ # This window is not shown if the columns labels were hidden using {Wx::GRID::Grid#hide_col_labels}.
2271
+ # Depending on whether {Wx::GRID::Grid#use_native_col_header} was called or not this can be either a {Wx::HeaderCtrl} or a plain {Wx::Window}. This function returns a valid window pointer in either case but in the former case you can also use {Wx::GRID::Grid#get_grid_col_header} to access it if you need {Wx::HeaderCtrl}-specific functionality.
2272
+ # @return [Wx::Window]
2273
+ def get_grid_col_label_window; end
2274
+ alias_method :grid_col_label_window, :get_grid_col_label_window
2275
+
2276
+ # Return the window in the top left grid corner.
2277
+ # This window is shown only of both columns and row labels are shown and normally doesn't contain anything. Clicking on it is handled by {Wx::GRID::Grid} however and can be used to select the entire grid.
2278
+ # @return [Wx::Window]
2279
+ def get_grid_corner_label_window; end
2280
+ alias_method :grid_corner_label_window, :get_grid_corner_label_window
2281
+
2282
+ # Return the header control used for column labels display.
2283
+ # This function can only be called if {Wx::GRID::Grid#use_native_col_header} had been called.
2284
+ # @see Wx::GRID::Grid#is_using_native_header
2285
+ # @return [Wx::HeaderCtrl]
2286
+ def get_grid_col_header; end
2287
+ alias_method :grid_col_header, :get_grid_col_header
2288
+
2289
+ # Return true if native header control is currently being used.
2290
+ # @return [true,false]
2291
+ def is_using_native_header; end
2292
+ alias_method :using_native_header?, :is_using_native_header
2293
+
2294
+ # @param dc [Wx::DC]
2295
+ # @param attr [Wx::GridCellAttr]
2296
+ # @return [void]
2297
+ def draw_cell_highlight(dc, attr) end
2298
+
2299
+ # @param dc [Wx::DC]
2300
+ # @param rows [Array<Integer>]
2301
+ # @return [void]
2302
+ def draw_row_labels(dc, rows) end
2303
+
2304
+ # @param dc [Wx::DC]
2305
+ # @param row [Integer]
2306
+ # @return [void]
2307
+ def draw_row_label(dc, row) end
2308
+
2309
+ # @param dc [Wx::DC]
2310
+ # @param cols [Array<Integer>]
2311
+ # @return [void]
2312
+ def draw_col_labels(dc, cols) end
2313
+
2314
+ # @param dc [Wx::DC]
2315
+ # @param col [Integer]
2316
+ # @return [void]
2317
+ def draw_col_label(dc, col) end
2318
+
2319
+ # @param dc [Wx::DC]
2320
+ # @return [void]
2321
+ def draw_corner_label(dc) end
2322
+
2323
+ # @overload draw_text_rectangle(dc, text, rect, horizontalAlignment=Wx::ALIGN_LEFT, verticalAlignment=Wx::ALIGN_TOP, textOrientation=Wx::HORIZONTAL)
2324
+ # @param dc [Wx::DC]
2325
+ # @param text [String]
2326
+ # @param rect [Wx::Rect]
2327
+ # @param horizontalAlignment [Integer]
2328
+ # @param verticalAlignment [Integer]
2329
+ # @param textOrientation [Integer]
2330
+ # @return [void]
2331
+ # @overload draw_text_rectangle(dc, lines, rect, horizontalAlignment=Wx::ALIGN_LEFT, verticalAlignment=Wx::ALIGN_TOP, textOrientation=Wx::HORIZONTAL)
2332
+ # @param dc [Wx::DC]
2333
+ # @param lines [Array<String>]
2334
+ # @param rect [Wx::Rect]
2335
+ # @param horizontalAlignment [Integer]
2336
+ # @param verticalAlignment [Integer]
2337
+ # @param textOrientation [Integer]
2338
+ # @return [void]
2339
+ def draw_text_rectangle(*args) end
2340
+
2341
+ # @return [Wx::Colour]
2342
+ def get_cell_highlight_colour; end
2343
+ alias_method :cell_highlight_colour, :get_cell_highlight_colour
2344
+
2345
+ # @return [Integer]
2346
+ def get_cell_highlight_pen_width; end
2347
+ alias_method :cell_highlight_pen_width, :get_cell_highlight_pen_width
2348
+
2349
+ # @return [Integer]
2350
+ def get_cell_highlight_ro_pen_width; end
2351
+ alias_method :cell_highlight_ro_pen_width, :get_cell_highlight_ro_pen_width
2352
+
2353
+ # @param arg [Wx::Colour,String,Symbol]
2354
+ # @return [void]
2355
+ def set_cell_highlight_colour(arg) end
2356
+ alias_method :cell_highlight_colour=, :set_cell_highlight_colour
2357
+
2358
+ # @param width [Integer]
2359
+ # @return [void]
2360
+ def set_cell_highlight_pen_width(width) end
2361
+ alias_method :cell_highlight_pen_width=, :set_cell_highlight_pen_width
2362
+
2363
+ # @param width [Integer]
2364
+ # @return [void]
2365
+ def set_cell_highlight_ro_pen_width(width) end
2366
+ alias_method :cell_highlight_ro_pen_width=, :set_cell_highlight_ro_pen_width
2367
+
2368
+ # @param arg [Wx::Colour,String,Symbol]
2369
+ # @return [void]
2370
+ def set_grid_frozen_border_colour(arg) end
2371
+ alias_method :grid_frozen_border_colour=, :set_grid_frozen_border_colour
2372
+
2373
+ # @param width [Integer]
2374
+ # @return [void]
2375
+ def set_grid_frozen_border_pen_width(width) end
2376
+ alias_method :grid_frozen_border_pen_width=, :set_grid_frozen_border_pen_width
2377
+
2378
+ end # Grid
2379
+
2380
+
2381
+ end