wxruby3 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (530) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS.md +32 -25
  3. data/INSTALL.md +19 -4
  4. data/README.md +5 -5
  5. data/assets/repo-social-preview.odg +0 -0
  6. data/assets/repo-social-preview.xcf +0 -0
  7. data/ext/wxruby3/include/wxRubyApp.h +58 -45
  8. data/ext/wxruby3/include/wxruby-runtime.h +78 -1
  9. data/ext/wxruby3/swig/common.i +2 -2
  10. data/ext/wxruby3/swig/custom/director.swg +2 -2
  11. data/ext/wxruby3/swig/custom/rubyprimtypes.swg +59 -15
  12. data/ext/wxruby3/swig/custom/rubyrun.swg +4 -0
  13. data/ext/wxruby3/swig/custom/rubytracking.swg +4 -0
  14. data/ext/wxruby3/swig/custom/swiglabels.swg +129 -0
  15. data/ext/wxruby3/swig/custom/swigrun.swg +15 -0
  16. data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +20 -0
  17. data/ext/wxruby3/swig/mark_free_impl.i +152 -88
  18. data/ext/wxruby3/swig/memory_management.i +1 -0
  19. data/ext/wxruby3/swig/wx.i +73 -44
  20. data/lib/wx/aui/events/evt_list.rb +148 -0
  21. data/lib/wx/aui/require.rb +0 -1
  22. data/lib/wx/core/calendar_ctrl.rb +15 -0
  23. data/lib/wx/core/clipboard.rb +9 -13
  24. data/lib/wx/core/config.rb +1 -1
  25. data/lib/wx/core/events/evt_list.rb +1458 -0
  26. data/lib/wx/core/font/encoding.rb +113 -0
  27. data/lib/wx/core/generic_validator.rb +83 -31
  28. data/lib/wx/core/tipwindow.rb +16 -0
  29. data/lib/wx/doc/aui/auitabctrl.rb +35 -0
  30. data/lib/wx/doc/config.rb +2 -2
  31. data/lib/wx/doc/functions.rb +1 -1
  32. data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
  33. data/lib/wx/doc/gen/accelerator.rb +178 -0
  34. data/lib/wx/doc/gen/activity_indicator.rb +83 -0
  35. data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
  36. data/lib/wx/doc/gen/animation.rb +275 -0
  37. data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
  38. data/lib/wx/doc/gen/any_button.rb +191 -0
  39. data/lib/wx/doc/gen/app.rb +463 -0
  40. data/lib/wx/doc/gen/app_traits.rb +396 -0
  41. data/lib/wx/doc/gen/art_provider.rb +605 -0
  42. data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
  43. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
  44. data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
  45. data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
  46. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
  47. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
  48. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
  49. data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
  50. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
  51. data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
  52. data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
  53. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
  54. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
  55. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
  56. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
  57. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
  58. data/lib/wx/doc/gen/aui/event_list.rb +179 -0
  59. data/lib/wx/doc/gen/banner_window.rb +124 -0
  60. data/lib/wx/doc/gen/bitmap.rb +731 -0
  61. data/lib/wx/doc/gen/bitmap_button.rb +123 -0
  62. data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
  63. data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
  64. data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
  65. data/lib/wx/doc/gen/box_sizer.rb +85 -0
  66. data/lib/wx/doc/gen/brush.rb +251 -0
  67. data/lib/wx/doc/gen/busy_info.rb +157 -0
  68. data/lib/wx/doc/gen/button.rb +182 -0
  69. data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
  70. data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
  71. data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
  72. data/lib/wx/doc/gen/calendar_event.rb +147 -0
  73. data/lib/wx/doc/gen/caret.rb +97 -0
  74. data/lib/wx/doc/gen/check_box.rb +175 -0
  75. data/lib/wx/doc/gen/check_list_box.rb +121 -0
  76. data/lib/wx/doc/gen/choice.rb +175 -0
  77. data/lib/wx/doc/gen/choicebook.rb +116 -0
  78. data/lib/wx/doc/gen/client_dc.rb +43 -0
  79. data/lib/wx/doc/gen/clipboard.rb +144 -0
  80. data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
  81. data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
  82. data/lib/wx/doc/gen/colour.rb +333 -0
  83. data/lib/wx/doc/gen/colour_dialog.rb +190 -0
  84. data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
  85. data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
  86. data/lib/wx/doc/gen/combo_box.rb +292 -0
  87. data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
  88. data/lib/wx/doc/gen/command_link_button.rb +134 -0
  89. data/lib/wx/doc/gen/config_base.rb +10 -0
  90. data/lib/wx/doc/gen/context_help_button.rb +109 -0
  91. data/lib/wx/doc/gen/control.rb +277 -0
  92. data/lib/wx/doc/gen/control_with_items.rb +253 -0
  93. data/lib/wx/doc/gen/core.rb +45 -0
  94. data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
  95. data/lib/wx/doc/gen/cursor.rb +193 -0
  96. data/lib/wx/doc/gen/data_format.rb +85 -0
  97. data/lib/wx/doc/gen/data_object.rb +436 -0
  98. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  99. data/lib/wx/doc/gen/date_event.rb +49 -0
  100. data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
  101. data/lib/wx/doc/gen/dc.rb +1631 -0
  102. data/lib/wx/doc/gen/dc_overlay.rb +102 -0
  103. data/lib/wx/doc/gen/defs.rb +2802 -0
  104. data/lib/wx/doc/gen/dial_up_event.rb +45 -0
  105. data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
  106. data/lib/wx/doc/gen/dialog.rb +541 -0
  107. data/lib/wx/doc/gen/dir_dialog.rb +164 -0
  108. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
  109. data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
  110. data/lib/wx/doc/gen/display.rb +238 -0
  111. data/lib/wx/doc/gen/drag_drop.rb +299 -0
  112. data/lib/wx/doc/gen/drag_image.rb +116 -0
  113. data/lib/wx/doc/gen/editable_list_box.rb +109 -0
  114. data/lib/wx/doc/gen/event.rb +990 -0
  115. data/lib/wx/doc/gen/event_blocker.rb +50 -0
  116. data/lib/wx/doc/gen/event_filter.rb +92 -0
  117. data/lib/wx/doc/gen/event_list.rb +1644 -0
  118. data/lib/wx/doc/gen/events.rb +2809 -0
  119. data/lib/wx/doc/gen/evt_handler.rb +229 -0
  120. data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
  121. data/lib/wx/doc/gen/file_ctrl.rb +231 -0
  122. data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
  123. data/lib/wx/doc/gen/file_dialog.rb +353 -0
  124. data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
  125. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
  126. data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
  127. data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
  128. data/lib/wx/doc/gen/file_system.rb +232 -0
  129. data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
  130. data/lib/wx/doc/gen/find_replace_data.rb +60 -0
  131. data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
  132. data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
  133. data/lib/wx/doc/gen/font.rb +1379 -0
  134. data/lib/wx/doc/gen/font_data.rb +151 -0
  135. data/lib/wx/doc/gen/font_dialog.rb +88 -0
  136. data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
  137. data/lib/wx/doc/gen/font_picker_event.rb +65 -0
  138. data/lib/wx/doc/gen/frame.rb +352 -0
  139. data/lib/wx/doc/gen/fs_file.rb +337 -0
  140. data/lib/wx/doc/gen/functions.rb +10 -0
  141. data/lib/wx/doc/gen/gauge.rb +157 -0
  142. data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
  143. data/lib/wx/doc/gen/gcdc.rb +46 -0
  144. data/lib/wx/doc/gen/gdi_common.rb +1271 -0
  145. data/lib/wx/doc/gen/gdi_object.rb +31 -0
  146. data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
  147. data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
  148. data/lib/wx/doc/gen/geometry.rb +661 -0
  149. data/lib/wx/doc/gen/graphics_context.rb +1184 -0
  150. data/lib/wx/doc/gen/graphics_object.rb +750 -0
  151. data/lib/wx/doc/gen/grid/event_list.rb +191 -0
  152. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
  153. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
  154. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
  155. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
  156. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
  157. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
  158. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
  159. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
  160. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
  161. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
  162. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
  163. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
  164. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
  165. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
  166. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
  167. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
  168. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
  169. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
  170. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
  171. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
  172. data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
  173. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
  174. data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
  175. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
  176. data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
  177. data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
  178. data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
  179. data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
  180. data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
  181. data/lib/wx/doc/gen/grid_sizer.rb +195 -0
  182. data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
  183. data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
  184. data/lib/wx/doc/gen/header_ctrl.rb +880 -0
  185. data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
  186. data/lib/wx/doc/gen/help_controller.rb +195 -0
  187. data/lib/wx/doc/gen/help_provider.rb +98 -0
  188. data/lib/wx/doc/gen/html/event_list.rb +38 -0
  189. data/lib/wx/doc/gen/html/html_cell.rb +536 -0
  190. data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
  191. data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
  192. data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
  193. data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
  194. data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
  195. data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
  196. data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
  197. data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
  198. data/lib/wx/doc/gen/html/html_printout.rb +109 -0
  199. data/lib/wx/doc/gen/html/html_window.rb +461 -0
  200. data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
  201. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  202. data/lib/wx/doc/gen/icon.rb +267 -0
  203. data/lib/wx/doc/gen/icon_location.rb +40 -0
  204. data/lib/wx/doc/gen/image.rb +1371 -0
  205. data/lib/wx/doc/gen/image_list.rb +168 -0
  206. data/lib/wx/doc/gen/info_bar.rb +195 -0
  207. data/lib/wx/doc/gen/keyboard_state.rb +140 -0
  208. data/lib/wx/doc/gen/list_box.rb +304 -0
  209. data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
  210. data/lib/wx/doc/gen/list_event.rb +208 -0
  211. data/lib/wx/doc/gen/listbook.rb +116 -0
  212. data/lib/wx/doc/gen/locale.rb +4293 -0
  213. data/lib/wx/doc/gen/log.rb +603 -0
  214. data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
  215. data/lib/wx/doc/gen/mdi_frame.rb +324 -0
  216. data/lib/wx/doc/gen/media_ctrl.rb +269 -0
  217. data/lib/wx/doc/gen/media_event.rb +117 -0
  218. data/lib/wx/doc/gen/memory_dc.rb +174 -0
  219. data/lib/wx/doc/gen/menu.rb +509 -0
  220. data/lib/wx/doc/gen/menu_bar.rb +287 -0
  221. data/lib/wx/doc/gen/menu_item.rb +362 -0
  222. data/lib/wx/doc/gen/message_dialog.rb +238 -0
  223. data/lib/wx/doc/gen/mini_frame.rb +108 -0
  224. data/lib/wx/doc/gen/mirror_dc.rb +22 -0
  225. data/lib/wx/doc/gen/mouse_state.rb +150 -0
  226. data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
  227. data/lib/wx/doc/gen/non_owned_window.rb +49 -0
  228. data/lib/wx/doc/gen/notebook.rb +278 -0
  229. data/lib/wx/doc/gen/num_validator.rb +37 -0
  230. data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
  231. data/lib/wx/doc/gen/object.rb +59 -0
  232. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
  233. data/lib/wx/doc/gen/paint_dc.rb +27 -0
  234. data/lib/wx/doc/gen/palette.rb +92 -0
  235. data/lib/wx/doc/gen/panel.rb +127 -0
  236. data/lib/wx/doc/gen/pen.rb +511 -0
  237. data/lib/wx/doc/gen/persistence_manager.rb +135 -0
  238. data/lib/wx/doc/gen/persistent_object.rb +52 -0
  239. data/lib/wx/doc/gen/persistent_window.rb +241 -0
  240. data/lib/wx/doc/gen/pg/event_list.rb +106 -0
  241. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
  242. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
  243. data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
  244. data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
  245. data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
  246. data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
  247. data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
  248. data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
  249. data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
  250. data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
  251. data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
  252. data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
  253. data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
  254. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
  255. data/lib/wx/doc/gen/picker_base.rb +152 -0
  256. data/lib/wx/doc/gen/platform_info.rb +622 -0
  257. data/lib/wx/doc/gen/popup_window.rb +107 -0
  258. data/lib/wx/doc/gen/progress_dialog.rb +100 -0
  259. data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
  260. data/lib/wx/doc/gen/prt/event_list.rb +17 -0
  261. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
  262. data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
  263. data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
  264. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
  265. data/lib/wx/doc/gen/prt/print_data.rb +804 -0
  266. data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
  267. data/lib/wx/doc/gen/prt/printer.rb +518 -0
  268. data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
  269. data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
  270. data/lib/wx/doc/gen/radio_box.rb +306 -0
  271. data/lib/wx/doc/gen/radio_button.rb +159 -0
  272. data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
  273. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
  274. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
  275. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
  276. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
  277. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
  278. data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
  279. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
  280. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
  281. data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
  282. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
  283. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
  284. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
  285. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
  286. data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
  287. data/lib/wx/doc/gen/rearrange_list.rb +123 -0
  288. data/lib/wx/doc/gen/region.rb +380 -0
  289. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  290. data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
  291. data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
  292. data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
  293. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
  294. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
  295. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
  296. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
  297. data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
  298. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
  299. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
  300. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
  301. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
  302. data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
  303. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
  304. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
  305. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
  306. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
  307. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
  308. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
  309. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
  310. data/lib/wx/doc/gen/sash_event.rb +147 -0
  311. data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
  312. data/lib/wx/doc/gen/sash_window.rb +171 -0
  313. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  314. data/lib/wx/doc/gen/screen_dc.rb +30 -0
  315. data/lib/wx/doc/gen/scroll_bar.rb +204 -0
  316. data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
  317. data/lib/wx/doc/gen/scrolled_control.rb +410 -0
  318. data/lib/wx/doc/gen/scrolled_window.rb +430 -0
  319. data/lib/wx/doc/gen/search_ctrl.rb +159 -0
  320. data/lib/wx/doc/gen/secret_store.rb +116 -0
  321. data/lib/wx/doc/gen/simplebook.rb +110 -0
  322. data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
  323. data/lib/wx/doc/gen/sizer.rb +945 -0
  324. data/lib/wx/doc/gen/sizer_item.rb +244 -0
  325. data/lib/wx/doc/gen/slider.rb +342 -0
  326. data/lib/wx/doc/gen/spin_button.rb +157 -0
  327. data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
  328. data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
  329. data/lib/wx/doc/gen/spin_double_event.rb +55 -0
  330. data/lib/wx/doc/gen/spin_event.rb +51 -0
  331. data/lib/wx/doc/gen/splash_screen.rb +113 -0
  332. data/lib/wx/doc/gen/splitter_event.rb +99 -0
  333. data/lib/wx/doc/gen/splitter_window.rb +498 -0
  334. data/lib/wx/doc/gen/static_bitmap.rb +256 -0
  335. data/lib/wx/doc/gen/static_box.rb +180 -0
  336. data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
  337. data/lib/wx/doc/gen/static_line.rb +83 -0
  338. data/lib/wx/doc/gen/static_text.rb +127 -0
  339. data/lib/wx/doc/gen/status_bar.rb +290 -0
  340. data/lib/wx/doc/gen/stc/event_list.rb +221 -0
  341. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
  342. data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
  343. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
  344. data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
  345. data/lib/wx/doc/gen/system_options.rb +129 -0
  346. data/lib/wx/doc/gen/system_settings.rb +507 -0
  347. data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
  348. data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
  349. data/lib/wx/doc/gen/text_attr.rb +756 -0
  350. data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
  351. data/lib/wx/doc/gen/text_entry.rb +441 -0
  352. data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
  353. data/lib/wx/doc/gen/text_validator.rb +245 -0
  354. data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
  355. data/lib/wx/doc/gen/timer.rb +119 -0
  356. data/lib/wx/doc/gen/timer_event.rb +68 -0
  357. data/lib/wx/doc/gen/tip_provider.rb +63 -0
  358. data/lib/wx/doc/gen/tip_window.rb +51 -0
  359. data/lib/wx/doc/gen/toggle_button.rb +182 -0
  360. data/lib/wx/doc/gen/tool_bar.rb +890 -0
  361. data/lib/wx/doc/gen/tool_tip.rb +86 -0
  362. data/lib/wx/doc/gen/toolbook.rb +118 -0
  363. data/lib/wx/doc/gen/top_level_window.rb +497 -0
  364. data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
  365. data/lib/wx/doc/gen/tree_event.rb +127 -0
  366. data/lib/wx/doc/gen/treebook.rb +180 -0
  367. data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
  368. data/lib/wx/doc/gen/utils.rb +273 -0
  369. data/lib/wx/doc/gen/v_list_box.rb +272 -0
  370. data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
  371. data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
  372. data/lib/wx/doc/gen/validator.rb +68 -0
  373. data/lib/wx/doc/gen/variant.rb +294 -0
  374. data/lib/wx/doc/gen/window.rb +2917 -0
  375. data/lib/wx/doc/gen/window_dc.rb +38 -0
  376. data/lib/wx/doc/gen/window_disabler.rb +30 -0
  377. data/lib/wx/doc/gen/with_images.rb +84 -0
  378. data/lib/wx/doc/gen/wizard.rb +257 -0
  379. data/lib/wx/doc/gen/wizard_event.rb +113 -0
  380. data/lib/wx/doc/gen/wizard_page.rb +65 -0
  381. data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
  382. data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
  383. data/lib/wx/doc/gen/xml_node.rb +316 -0
  384. data/lib/wx/doc/gen/xml_resource.rb +320 -0
  385. data/lib/wx/doc/generic_validator.rb +5 -0
  386. data/lib/wx/doc/tip_window.rb +18 -6
  387. data/lib/wx/grid/events/evt_list.rb +166 -0
  388. data/lib/wx/html/events/evt_list.rb +27 -0
  389. data/lib/wx/html/simple_html_listbox.rb +46 -33
  390. data/lib/wx/keyword_defs.rb +9 -0
  391. data/lib/wx/pg/events/evt_list.rb +73 -0
  392. data/lib/wx/pg/pg_property.rb +26 -0
  393. data/lib/wx/pg/property_grid_interface.rb +2 -2
  394. data/lib/wx/rbn/events/evt_list.rb +102 -0
  395. data/lib/wx/rtc/events/evt_list.rb +98 -0
  396. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  397. data/lib/wx/stc/events/evt_list.rb +178 -0
  398. data/lib/wx/version.rb +1 -1
  399. data/lib/wx/wxruby/cmd/setup.rb +6 -0
  400. data/rakelib/configure.rb +9 -0
  401. data/rakelib/gem.rake +3 -2
  402. data/rakelib/lib/config/linux.rb +1 -1
  403. data/rakelib/lib/config/macosx.rb +15 -1
  404. data/rakelib/lib/config/pkgman/linux.rb +7 -2
  405. data/rakelib/lib/config/unixish.rb +3 -3
  406. data/rakelib/lib/config.rb +16 -5
  407. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  408. data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
  409. data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
  410. data/rakelib/lib/core/include/swigrun.inc +189 -0
  411. data/rakelib/lib/core/package.rb +3 -1
  412. data/rakelib/lib/director/accelerator.rb +1 -1
  413. data/rakelib/lib/director/animation.rb +1 -0
  414. data/rakelib/lib/director/app_traits.rb +1 -1
  415. data/rakelib/lib/director/aui_manager.rb +21 -14
  416. data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
  417. data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
  418. data/rakelib/lib/director/aui_notebook.rb +20 -3
  419. data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
  420. data/rakelib/lib/director/calendar_ctrl.rb +72 -14
  421. data/rakelib/lib/director/clipboard.rb +2 -0
  422. data/rakelib/lib/director/data_object.rb +15 -7
  423. data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
  424. data/rakelib/lib/director/display.rb +81 -0
  425. data/rakelib/lib/director/event.rb +33 -16
  426. data/rakelib/lib/director/event_handler.rb +27 -2
  427. data/rakelib/lib/director/functions.rb +9 -0
  428. data/rakelib/lib/director/geometry.rb +5 -0
  429. data/rakelib/lib/director/grid_ctrl.rb +123 -28
  430. data/rakelib/lib/director/help_provider.rb +1 -1
  431. data/rakelib/lib/director/html_listbox.rb +16 -3
  432. data/rakelib/lib/director/hvscrolled.rb +7 -106
  433. data/rakelib/lib/director/image_list.rb +1 -0
  434. data/rakelib/lib/director/mdi_frame.rb +4 -0
  435. data/rakelib/lib/director/menu.rb +56 -15
  436. data/rakelib/lib/director/menu_bar.rb +62 -0
  437. data/rakelib/lib/director/menu_item.rb +7 -1
  438. data/rakelib/lib/director/num_validator.rb +27 -0
  439. data/rakelib/lib/director/numeric_property_validator.rb +9 -0
  440. data/rakelib/lib/director/popup_window.rb +2 -0
  441. data/rakelib/lib/director/preview_frame.rb +29 -6
  442. data/rakelib/lib/director/printer.rb +59 -5
  443. data/rakelib/lib/director/property_grid.rb +37 -18
  444. data/rakelib/lib/director/property_grid_interface.rb +10 -8
  445. data/rakelib/lib/director/property_grid_manager.rb +99 -39
  446. data/rakelib/lib/director/property_grid_page.rb +60 -0
  447. data/rakelib/lib/director/rich_tooltip.rb +22 -0
  448. data/rakelib/lib/director/richtext_ctrl.rb +5 -0
  449. data/rakelib/lib/director/richtext_object.rb +13 -4
  450. data/rakelib/lib/director/richtext_style_listbox.rb +4 -1
  451. data/rakelib/lib/director/scrolled_t.rb +3 -0
  452. data/rakelib/lib/director/searchctrl.rb +1 -0
  453. data/rakelib/lib/director/task_bar_icon.rb +14 -8
  454. data/rakelib/lib/director/text_validator.rb +9 -0
  455. data/rakelib/lib/director/tip_window.rb +117 -6
  456. data/rakelib/lib/director/tool_bar.rb +6 -0
  457. data/rakelib/lib/director/validator.rb +12 -0
  458. data/rakelib/lib/director/variant.rb +36 -20
  459. data/rakelib/lib/director/vlistbox.rb +25 -22
  460. data/rakelib/lib/director/window.rb +10 -1
  461. data/rakelib/lib/director/xml_resource.rb +6 -0
  462. data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
  463. data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
  464. data/rakelib/lib/generate/doc.rb +12 -7
  465. data/rakelib/lib/generate/interface.rb +16 -1
  466. data/rakelib/lib/specs/interfaces.rb +3 -1
  467. data/rakelib/lib/swig_runner.rb +10 -10
  468. data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
  469. data/rakelib/lib/typemap/common.rb +3 -3
  470. data/rakelib/lib/typemap/print_page_range.rb +32 -8
  471. data/samples/art/wxruby-512x512.png +0 -0
  472. data/samples/calendar/calendar.rb +64 -1
  473. data/samples/dialogs/dialogs.rb +172 -0
  474. data/samples/dialogs/tip.xpm +157 -0
  475. data/samples/drawing/maths_images.rb +1 -1
  476. data/samples/event/event.rb +1 -1
  477. data/samples/printing/printing2.rb +1 -1
  478. data/samples/sampler.rb +26 -8
  479. data/samples/text/textctrl.rb +2 -2
  480. data/samples/treectrl/treectrl.rb +2 -2
  481. data/tests/lib/leaked_process_event_exception_test.rb +1 -1
  482. data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
  483. data/tests/lib/wxapp_runner.rb +31 -41
  484. data/tests/lib/wxframe_runner.rb +23 -11
  485. data/tests/lib/wxrb_test.rb +58 -0
  486. data/tests/test_app_event_filter.rb +1 -1
  487. data/tests/test_app_exit_exception.rb +3 -3
  488. data/tests/test_app_init_exception.rb +3 -3
  489. data/tests/test_app_traits.rb +24 -21
  490. data/tests/test_art.rb +7 -7
  491. data/tests/test_art_provider.rb +1 -1
  492. data/tests/test_basic.rb +2 -2
  493. data/tests/test_book_controls.rb +1 -1
  494. data/tests/test_box_sizer.rb +1 -1
  495. data/tests/test_clipboard.rb +5 -5
  496. data/tests/test_combo_ctrl.rb +2 -2
  497. data/tests/test_config.rb +11 -1
  498. data/tests/test_dc.rb +1 -1
  499. data/tests/test_dialog.rb +1 -1
  500. data/tests/test_event_handling.rb +1 -1
  501. data/tests/test_events.rb +1 -1
  502. data/tests/test_exceptions.rb +2 -2
  503. data/tests/test_ext_controls.rb +10 -10
  504. data/tests/test_file_dialog.rb +1 -1
  505. data/tests/test_font.rb +1 -1
  506. data/tests/test_gdi_object.rb +1 -1
  507. data/tests/test_geometry.rb +2 -2
  508. data/tests/test_grid_sizer.rb +2 -2
  509. data/tests/test_intl.rb +1 -1
  510. data/tests/test_item_data.rb +12 -12
  511. data/tests/test_list_ctrl.rb +1 -1
  512. data/tests/test_log.rb +2 -2
  513. data/tests/test_media_ctrl.rb +1 -1
  514. data/tests/test_menu.rb +114 -43
  515. data/tests/test_proof_check.rb +1 -1
  516. data/tests/test_propgrid.rb +31 -31
  517. data/tests/test_richtext.rb +10 -24
  518. data/tests/test_secret_store.rb +1 -1
  519. data/tests/test_sizer.rb +1 -1
  520. data/tests/test_std_controls.rb +8 -8
  521. data/tests/test_styled_text_ctrl.rb +1 -1
  522. data/tests/test_timer.rb +1 -1
  523. data/tests/test_tree_ctrl.rb +1 -1
  524. data/tests/test_validators.rb +79 -36
  525. data/tests/test_variant.rb +1 -1
  526. data/tests/test_window.rb +11 -11
  527. data/tests/testapp.rb +2 -2
  528. data/tests/testapp_noframe.rb +2 -2
  529. metadata +400 -11
  530. data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
@@ -0,0 +1,847 @@
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
8
+
9
+ module AUI
10
+
11
+ # {Wx::AUI::AuiManager} is the central class of the {Wx::AUI} class framework.
12
+ #
13
+ # {Wx::AUI::AuiManager} manages the panes associated with it for a particular window, using a pane's {Wx::AUI::AuiPaneInfo} information to determine each pane's docking and floating behaviour.
14
+ # {Wx::AUI::AuiManager} uses wxWidgets' sizer mechanism to plan the layout of each frame. It uses a replaceable dock art class to do all drawing, so all drawing is localized in one area, and may be customized depending on an application's specific needs.
15
+ # {Wx::AUI::AuiManager} works as follows: the programmer adds panes to the class, or makes changes to existing pane properties (dock position, floating state, show state, etc.). To apply these changes, {Wx::AUI::AuiManager}'s {Wx::AUI::AuiManager#update} function is called. This batch processing can be used to avoid flicker, by modifying more than one pane at a time, and then "committing" all of the changes at once by calling {Wx::AUI::AuiManager#update}.
16
+ # Panes can be added using {Wx::AUI::AuiManager#add_pane}:
17
+ #
18
+ # ```ruby
19
+ # @text1 = Wx::TextCtrl.new(self, -1)
20
+ # @text2 = Wx::TextCtrl.new(self, -1)
21
+ # @mgr.add_pane(@text1, Wx::LEFT, 'Pane Caption')
22
+ # @mgr.add_pane(@text2, Wx::BOTTOM, 'Pane Caption')
23
+ # @mgr.update
24
+ # ```
25
+ #
26
+ # Later on, the positions and other attributes can be modified, e.g. the following will float an existing pane in a tool window:
27
+ #
28
+ # ```ruby
29
+ # @mgr.get_pane(@text1).float
30
+ # ```
31
+ #
32
+ # ## Layers, Rows and Directions, Positions
33
+ # Inside {Wx::AUI}, the docking layout is figured out by checking several pane parameters. Four of these are important for determining where a pane will end up:
34
+ #
35
+ # - Direction: Each docked pane has a direction, Top, Bottom, Left, Right, or Center. This is fairly self-explanatory. The pane will be placed in the location specified by this variable.
36
+ #
37
+ # - Position: More than one pane can be placed inside of a dock. Imagine two panes being docked on the left side of a window. One pane can be placed over another. In proportionally managed docks, the pane position indicates its sequential position, starting with zero. So, in our scenario with two panes docked on the left side, the top pane in the dock would have position 0, and the second one would occupy position 1.
38
+ #
39
+ # - Row: A row can allow for two docks to be placed next to each other. One of the most common places for this to happen is in the toolbar. Multiple toolbar rows are allowed, the first row being row 0, and the second row 1. Rows can also be used on vertically docked panes.
40
+ #
41
+ # - Layer: A layer is akin to an onion. Layer 0 is the very center of the managed pane. Thus, if a pane is in layer 0, it will be closest to the center window (also sometimes known as the "content window"). Increasing layers "swallow up" all layers of a lower value. This can look very similar to multiple rows, but is different because all panes in a lower level yield to panes in higher levels. The best way to understand layers is by running the {Wx::AUI} sample.
42
+ #
43
+ # ## Minimizing Panes
44
+ # Since wxWidgets 3.3.2, {Wx::AUI::AuiManager} supports minimizing panes which have the minimize button, see {Wx::AUI::AuiPaneInfo#minimize_button}. Such panes appear in the special toolbar(s) showing the buttons for all panes that can be minimized and allowing to either hide or show them again.
45
+ # By default, the toolbars showing the buttons for the minimized panes are created on the left, bottom and right sides of the managed window. You can change this using {Wx::AUI::AuiManager#allow_docks_for_min_panes} but note that you must still allow for the toolbars to be created on at least one side and the only way not to have any such toolbar at all is to not have any panes with minimize button. See {Wx::AUI::AuiManager#set_docks_for_min_panes_style} and {Wx::AUI::AuiPaneInfo#icon_min} for more customization possibilities.
46
+ # ### Styles
47
+ #
48
+ # This class supports the following styles:
49
+ #
50
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_FLOATING}: Allow a pane to be undocked to take the form of a {Wx::MiniFrame}.
51
+ #
52
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_ACTIVE_PANE}: Change the color of the title bar of the pane when it is activated.
53
+ #
54
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_DRAG}: Make the pane transparent during its movement.
55
+ #
56
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_HINT}: The possible location for docking is indicated by a translucent area.
57
+ #
58
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_VENETIAN_BLINDS_HINT}: The possible location for docking is indicated by gradually appearing partially transparent hint.
59
+ #
60
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_RECTANGLE_HINT}: The possible location for docking is indicated by a rectangular outline. Note that this flag doesn't work, i.e. doesn't show any hint in WXGTK and WXOSX, please use one of the hint flags above instead.
61
+ #
62
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_HINT_FADE}: The translucent area where the pane could be docked appears gradually. Note that this flag is not included in {Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT} since wxWidgets 3.3.0 any longer.
63
+ #
64
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_NO_VENETIAN_BLINDS_FADE}: This style is obsolete and doesn't do anything, it is only defined as 0 for compatibility.
65
+ #
66
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE}: When a docked pane is resized, its content is refreshed in live (instead of moving the border alone and refreshing the content at the end). Note that this flag is included in {Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT} and so needs to be explicitly turned off if you don't need. Also note that it is always enabled in WXGTK3 and WXOSX ports as non-live resizing is not implemented in them.
67
+ #
68
+ # - {Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT}: Default behaviour, combines {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_FLOATING}, {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_HINT} and {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE}.
69
+ #
70
+ # ### Events emitted by this class
71
+ #
72
+ # The following event-handler methods redirect the events to member method or handler blocks for {Wx::AUI::AuiManagerEvent} events.
73
+ # Event handler methods for events emitted by this class:
74
+ #
75
+ # - {Wx::EvtHandler#evt_aui_pane_button}(meth = nil, &block): Triggered when any button is pressed for any docked panes.
76
+ #
77
+ # - {Wx::EvtHandler#evt_aui_pane_close}(meth = nil, &block): Triggered when a docked or floating pane is closed.
78
+ #
79
+ # - {Wx::EvtHandler#evt_aui_pane_minimize}(meth = nil, &block): Triggered when a pane is minimized. This event is new since wxWidgets 3.3.2.
80
+ #
81
+ # - {Wx::EvtHandler#evt_aui_pane_maximize}(meth = nil, &block): Triggered when a pane is maximized.
82
+ #
83
+ # - {Wx::EvtHandler#evt_aui_pane_restore}(meth = nil, &block): Triggered when a pane is restored.
84
+ #
85
+ # - {Wx::EvtHandler#evt_aui_pane_activated}(meth = nil, &block): Triggered when a pane is made 'active'. This event is new since wxWidgets 2.9.4.
86
+ #
87
+ # - {Wx::EvtHandler#evt_aui_render}(meth = nil, &block): This event can be caught to override the default renderer in order to custom draw your {Wx::AUI::AuiManager} window (not recommended).
88
+ #
89
+ # Category: Window Docking (wxAUI)
90
+ # @see wxAUI Overview
91
+ # @see Wx::AUI::AuiNotebook
92
+ # @see Wx::AUI::AuiDockArt
93
+ # @see Wx::AUI::AuiPaneInfo
94
+ #
95
+ #
96
+ # @wxrb_require USE_AUI
97
+ class AuiManager < EvtHandler
98
+
99
+ # Constructor.
100
+ # @param managedWindow [Wx::Window] Specifies the window which will contain AUI panes. If it is not specified here, it must be set later using {Wx::AUI::AuiManager#set_managed_window}.
101
+ # @param flags [Integer] Specifies the frame management behaviour and visual effects with the {Wx::AUI::AuiManagerOption}'s style flags.
102
+ # @return [Wx::AUI::AuiManager]
103
+ def initialize(managedWindow=nil, flags=Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT) end
104
+
105
+ # @overload add_pane(window, pane_info)
106
+ # {Wx::AUI::AuiManager#add_pane} tells the frame manager to start managing a child window.
107
+ #
108
+ # There are several versions of this function. The first version allows the full spectrum of pane parameter possibilities. The second version is used for simpler user interfaces which do not require as much configuration. The last version allows a drop position to be specified, which will determine where the pane will be added.
109
+ # @param window [Wx::Window]
110
+ # @param pane_info [Wx::AUI::AuiPaneInfo]
111
+ # @return [Boolean]
112
+ # @overload add_pane(window, direction=Wx::Direction::LEFT, caption=(''))
113
+ # @param window [Wx::Window]
114
+ # @param direction [Integer]
115
+ # @param caption [String]
116
+ # @return [Boolean]
117
+ # @overload add_pane(window, pane_info, drop_pos)
118
+ # @param window [Wx::Window]
119
+ # @param pane_info [Wx::AUI::AuiPaneInfo]
120
+ # @param drop_pos [Array(Integer, Integer), Wx::Point]
121
+ # @return [Boolean]
122
+ def add_pane(*args) end
123
+
124
+ # Change the sides where docks for minimized panes can be created.
125
+ #
126
+ # The argument direction must be a combination of one or more of {Wx::Direction::LEFT}, {Wx::Direction::RIGHT}, {Wx::Direction::TOP} and {Wx::Direction::BOTTOM} flags.
127
+ # This function must currently be called before there any minimized panes, so it is recommended to call it before adding any panes at all.
128
+ # Example of using this function to only allow docks showing the buttons for the minimized panes on the left and right sides of the window:
129
+ # ```
130
+ # mgr.AllowDocksForMinPanes(wxLEFT | wxRIGHT);
131
+ #
132
+ # // This pane will be shown in the toolbar on the left side of the
133
+ # // window.
134
+ # mgr.AddPane(someWindow, wxAuiPaneInfo().Left().MinimizeButton());
135
+ #
136
+ # // But so will will this one, as creating a toolbar along the bottom
137
+ # // side is not allowed.
138
+ # mgr.AddPane(otherWindow, wxAuiPaneInfo().Bottom().MinimizeButton());
139
+ # ```
140
+ # @param directions [Integer]
141
+ # @return [void]
142
+ def allow_docks_for_min_panes(directions) end
143
+
144
+ # Set style of for the items representing minimized panes in the docking toolbars.
145
+ #
146
+ # If {Wx::AUI::AuiMinDockOption::AUI_MIN_DOCK_ICONS} is specified as part of the style, the pane icon specified by {Wx::AUI::AuiPaneInfo#icon_min} or, if it is not set, {Wx::AUI::AuiPaneInfo#icon}, will be shown for the minimized panes.
147
+ # If {Wx::AUI::AuiMinDockOption::AUI_MIN_DOCK_TEXT} is specified, the pane title will be shown (possible in addition to its icon). Note that the text will be rendered vertically for the panes shown in the toolbars docked on the left and right sides of the window and that the icons will be rotated to match the text orientation.
148
+ # By default, both the text and the icons are shown, which corresponds to {Wx::AUI::AuiMinDockOption::AUI_MIN_DOCK_BOTH}. When using this style it may be desired to also use {Wx::AUI::AuiMinDockOption::AUI_MIN_DOCK_ROTATE_ICON_WITH_TEXT} style which makes the icons match the text orientation.
149
+ # This function must currently be called before there any minimized panes, so it is recommended to call it before adding any panes at all.
150
+ # @see Wx::AUI::AuiManager#allow_docks_for_min_panes
151
+ # @param style [Integer] Combination of {Wx::AUI::AuiMinDockOption} elements.
152
+ # @return [void]
153
+ def set_docks_for_min_panes_style(style) end
154
+ alias_method :docks_for_min_panes_style=, :set_docks_for_min_panes_style
155
+
156
+ # This function is used by controls to calculate the drop hint rectangle.
157
+ #
158
+ # The method first calls DoDrop() to determine the exact position the pane would be at were if dropped.
159
+ #
160
+ # The rectangle hint will be returned in screen coordinates if the pane would indeed become docked at the specified drop point. Otherwise, an empty rectangle is returned.
161
+ # @param paneWindow [Wx::Window] The window pointer of the pane being dragged.
162
+ # @param pt [Array(Integer, Integer), Wx::Point] The mouse position, in client coordinates.
163
+ # @param offset [Array(Integer, Integer), Wx::Point] Describes the offset that the mouse is from the upper-left corner of the item being dragged, 0 by default (since wxWidgets 3.3.0, this parameter had to be specified in the earlier versions).
164
+ # @return [Wx::Rect]
165
+ def calculate_hint_rect(paneWindow, pt, offset=(Wx::Point.new(0, 0))) end
166
+
167
+ # Return a reasonable size to use for a new split.
168
+ #
169
+ # This function currently calculates the number of columns and rows in the current layout and returns the size of the managed window divided by one more than that number, i.e. returns half of the available size if there is currently just one row or column, a third if there are two rows or columns, and so on.
170
+ # The implementation may change in the future, but it will always return some reasonable size to use for a new split.
171
+ # @see Wx::AUI::AuiManager#split_pane
172
+ # @see Wx::AUI::AuiNotebook#calculate_new_split_size
173
+ # @return [Wx::Size]
174
+ def calculate_new_split_size; end
175
+
176
+ # Check if a key modifier is pressed (actually {Wx::KeyCode::K_CONTROL} or {Wx::KeyCode::K_ALT}) while dragging the frame to not dock the window.
177
+ # @param p [Wx::AUI::AuiPaneInfo]
178
+ # @return [Boolean]
179
+ def can_dock_panel(p) end
180
+ alias_method :can_dock_panel?, :can_dock_panel
181
+
182
+ # Destroys or hides the given pane depending on its flags.
183
+ #
184
+ #
185
+ # @see Wx::AUI::AuiPaneInfo#destroy_on_close
186
+ # @param paneInfo [Wx::AUI::AuiPaneInfo]
187
+ # @return [void]
188
+ def close_pane(paneInfo) end
189
+
190
+ # Creates a floating frame in this {Wx::AUI::AuiManager} with the given parent and {Wx::AUI::AuiPaneInfo}.
191
+ # @param parent [Wx::Window]
192
+ # @param p [Wx::AUI::AuiPaneInfo]
193
+ # @return [Wx::AUI::AuiFloatingFrame]
194
+ def create_floating_frame(parent, p) end
195
+
196
+ # Tells the {Wx::AUI::AuiManager} to stop managing the pane specified by window.
197
+ #
198
+ # The window, if in a floated frame, is reparented to the frame managed by {Wx::AUI::AuiManager}.
199
+ # @param window [Wx::Window]
200
+ # @return [Boolean]
201
+ def detach_pane(window) end
202
+
203
+ # This function is used by controls to draw the hint window.
204
+ #
205
+ # It is rarely called, and is mostly used by controls implementing custom pane drag/drop behaviour.
206
+ # Calling it is equivalent to calling {Wx::AUI::AuiManager#calculate_hint_rect} and {Wx::AUI::AuiManager#update_hint} with the resulting rectangle.
207
+ # @param paneWindow [Wx::Window] Window passed to {Wx::AUI::AuiManager#calculate_hint_rect}.
208
+ # @param pt [Array(Integer, Integer), Wx::Point] Mouse position passed to {Wx::AUI::AuiManager#calculate_hint_rect}.
209
+ # @param offset [Array(Integer, Integer), Wx::Point] Offset passed to {Wx::AUI::AuiManager#calculate_hint_rect}, 0 by default (since wxWidgets 3.3.0, this parameter had to be specified in the earlier versions).
210
+ # @return [void]
211
+ def draw_hint_rect(paneWindow, pt, offset=(Wx::Point.new(0, 0))) end
212
+
213
+ # Returns the current art provider being used.
214
+ #
215
+ #
216
+ # @see Wx::AUI::AuiDockArt.
217
+ # @return [Wx::AUI::AuiDockArt]
218
+ def get_art_provider; end
219
+ alias_method :art_provider, :get_art_provider
220
+
221
+ # Returns the current dock constraint values.
222
+ #
223
+ # See {Wx::AUI::AuiManager#set_dock_size_constraint} for more information.
224
+ # @return [Array(Float,Float)]
225
+ def get_dock_size_constraint; end
226
+ alias_method :dock_size_constraint, :get_dock_size_constraint
227
+
228
+ # Returns the current {Wx::AUI::AuiManagerOption}'s flags.
229
+ # @return [Integer]
230
+ def get_flags; end
231
+ alias_method :flags, :get_flags
232
+
233
+ # Returns the frame currently being managed by {Wx::AUI::AuiManager}.
234
+ # @return [Wx::Window]
235
+ def get_managed_window; end
236
+ alias_method :managed_window, :get_managed_window
237
+
238
+ # @overload get_pane(window)
239
+ # {Wx::AUI::AuiManager#get_pane} is used to lookup a {Wx::AUI::AuiPaneInfo} object either by window pointer or by pane name, which acts as a unique id for a window pane.
240
+ #
241
+ # The returned {Wx::AUI::AuiPaneInfo} object may then be modified to change a pane's look, state or position. After one or more modifications to {Wx::AUI::AuiPaneInfo}, {Wx::AUI::AuiManager#update} should be called to commit the changes to the user interface. If the lookup failed (meaning the pane could not be found in the manager), a call to the returned {Wx::AUI::AuiPaneInfo}'s IsOk() method will return false.
242
+ # @param window [Wx::Window]
243
+ # @return [Wx::AUI::AuiPaneInfo]
244
+ # @overload get_pane(name)
245
+ # @param name [String]
246
+ # @return [Wx::AUI::AuiPaneInfo]
247
+ def get_pane(*args) end
248
+ alias_method :pane, :get_pane
249
+
250
+ # Returns true if windows are resized live.
251
+ #
252
+ # This function combines the check for {Wx::AUI::AuiManager.always_uses_live_resize} and, for the platforms where live resizing is optional, the check for {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE} flag.
253
+ # Using this accessor allows to verify whether live resizing is being actually used.
254
+ # @return [Boolean]
255
+ def has_live_resize; end
256
+ alias_method :has_live_resize?, :has_live_resize
257
+
258
+ # {Wx::AUI::AuiManager#hide_hint} hides any docking hint that may be visible.
259
+ #
260
+ #
261
+ # @see Wx::AUI::AuiManager#update_hint
262
+ # @return [void]
263
+ def hide_hint; end
264
+
265
+ # This method is used to insert either a previously unmanaged pane window into the frame manager, or to insert a currently managed pane somewhere else.
266
+ #
267
+ # {Wx::AUI::AuiManager#insert_pane} will push all panes, rows, or docks aside and insert the window into the position specified by insert_location.
268
+ # Because insert_location can specify either a pane, dock row, or dock layer, the insert_level parameter is used to disambiguate this. The parameter insert_level can take a value of {Wx::AUI_INSERT_PANE}, {Wx::AUI_INSERT_ROW} or {Wx::AUI_INSERT_DOCK}.
269
+ # @param window [Wx::Window]
270
+ # @param insert_location [Wx::AUI::AuiPaneInfo]
271
+ # @param insert_level [Integer]
272
+ # @return [Boolean]
273
+ def insert_pane(window, insert_location, insert_level=Wx::AUI_INSERT_PANE) end
274
+
275
+ # Load the layout information saved by {Wx::AUI::AuiManager#save_layout}.
276
+ #
277
+ # The implementation of {Wx::AUI::AuiDeserializer} object passed to this function should be consistent with that of the serializer used to save the layout. See page_samples_aui for an example of using serializer saving the layout in XML format and matching deserializer restoring the layout from it.
278
+ # @param deserializer [Wx::AUI::AuiDeserializer]
279
+ # @return [void]
280
+ def load_layout(deserializer) end
281
+
282
+ # {Wx::AUI::AuiManager#load_pane_info} is similar to LoadPerspective, with the exception that it only loads information about a single pane.
283
+ #
284
+ # This method writes the serialized data into the passed pane. Pointers to UI elements are not modified.
285
+ #
286
+ # <div class="wxrb-note">
287
+ # <b>Note:</b>
288
+ # <p>This operation also changes the name in the pane information!
289
+ # </p>
290
+ # </div>
291
+ # @see Wx::AUI::AuiManager#load_perspective
292
+ #
293
+ # @see Wx::AUI::AuiManager#save_pane_info
294
+ #
295
+ # @see Wx::AUI::AuiManager#save_perspective
296
+ # @param pane_part [String]
297
+ # @param pane [Wx::AUI::AuiPaneInfo]
298
+ # @return [void]
299
+ def load_pane_info(pane_part, pane) end
300
+
301
+ # Loads a saved perspective.
302
+ #
303
+ # This function is used to load layouts previously saved with {Wx::AUI::AuiManager#save_perspective}, use {Wx::AUI::AuiManager#load_layout} to load a layout saved with {Wx::AUI::AuiManager#save_layout}.
304
+ # A perspective is the layout state of an AUI managed window.
305
+ # All currently existing panes that have an object in "perspective" with the same name ("equivalent") will receive the layout parameters of the object in "perspective". Existing panes that do not have an equivalent in "perspective" remain unchanged, objects in "perspective" having no equivalent in the manager are ignored.
306
+ # @see Wx::AUI::AuiManager#load_pane_info
307
+ #
308
+ # @see Wx::AUI::AuiManager#load_perspective
309
+ #
310
+ # @see Wx::AUI::AuiManager#save_perspective
311
+ # @param perspective [String] Serialized layout information of a perspective (excl. pointers to UI elements).
312
+ # @param update [Boolean] If update is true, {Wx::AUI::AuiManager#update} is automatically invoked, thus realizing the specified perspective on screen.
313
+ # @return [Boolean]
314
+ def load_perspective(perspective, update=true) end
315
+
316
+ # Minimize the given pane.
317
+ #
318
+ # Note that the pane <b>must</b> have the minimize button enabled for this function to work, it cannot be used to minimize the panes without it.
319
+ # Minimizing a pane hides it, but it can be later shown again by the user by clicking the button corresponding to it in the minimized panes toolbar.
320
+ # @see Minimizing Panes
321
+ # @param paneInfo [Wx::AUI::AuiPaneInfo]
322
+ # @return [void]
323
+ def minimize_pane(paneInfo) end
324
+
325
+ # Maximize the given pane.
326
+ # @param paneInfo [Wx::AUI::AuiPaneInfo]
327
+ # @return [void]
328
+ def maximize_pane(paneInfo) end
329
+
330
+ # Restore the last state of the given pane.
331
+ # @param paneInfo [Wx::AUI::AuiPaneInfo]
332
+ # @return [void]
333
+ def restore_pane(paneInfo) end
334
+
335
+ # Restore the previously maximized pane.
336
+ # @return [void]
337
+ def restore_maximized_pane; end
338
+
339
+ # Save the layout information using the provided object.
340
+ #
341
+ # This function allows to use a custom serializer to save the layout information in any format, e.g. page_samples_aui shows how to save it in XML format.
342
+ # See {Wx::AUI::AuiSerializer} documentation for more details.
343
+ # @param serializer [Wx::AUI::AuiSerializer]
344
+ # @return [void]
345
+ def save_layout(serializer) end
346
+
347
+ # {Wx::AUI::AuiManager#save_pane_info} is similar to SavePerspective, with the exception that it only saves information about a single pane.
348
+ #
349
+ # The serialized layout parameters of the pane are returned within the string. Information about the pointers to UI elements stored in the pane are not serialized.
350
+ # @see Wx::AUI::AuiManager#load_pane_info
351
+ #
352
+ # @see Wx::AUI::AuiManager#load_perspective
353
+ #
354
+ # @see Wx::AUI::AuiManager#save_perspective
355
+ # @param pane [Wx::AUI::AuiPaneInfo] Pane whose layout parameters should be serialized.
356
+ # @return [String]
357
+ def save_pane_info(pane) end
358
+
359
+ # Saves the entire user interface layout into an encoded {Wx::String}, which can then be stored by the application (probably using {Wx::Config}).
360
+ #
361
+ # <div class="wxrb-note">
362
+ # <b>Note:</b>
363
+ # <p>You may prefer to use {Wx::AUI::AuiManager#save_layout} instead of this function for more flexibility.
364
+ # </p>
365
+ # </div>
366
+ # @see Wx::AUI::AuiManager#load_perspective
367
+ #
368
+ # @see Wx::AUI::AuiManager#load_pane_info
369
+ #
370
+ # @see Wx::AUI::AuiManager#save_pane_info
371
+ # @return [String]
372
+ def save_perspective; end
373
+
374
+ # Instructs {Wx::AUI::AuiManager} to use art provider specified by parameter art_provider for all drawing calls.
375
+ #
376
+ # This allows pluggable look-and-feel features. The previous art provider object, if any, will be deleted by {Wx::AUI::AuiManager}.
377
+ # @see Wx::AUI::AuiDockArt.
378
+ # @param art_provider [Wx::AUI::AuiDockArt]
379
+ # @return [void]
380
+ def set_art_provider(art_provider) end
381
+
382
+ # When a user creates a new dock by dragging a window into a docked position, often times the large size of the window will create a dock that is unwieldy large.
383
+ #
384
+ # {Wx::AUI::AuiManager} by default limits the size of any new dock to 1/3 of the window size. For horizontal docks, this would be 1/3 of the window height. For vertical docks, 1/3 of the width.
385
+ # Calling this function will adjust this constraint value. The numbers must be between 0.0 and 1.0. For instance, calling SetDockSizeContraint with 0.5, 0.5 will cause new docks to be limited to half of the size of the entire managed window.
386
+ # @param widthpct [Float]
387
+ # @param heightpct [Float]
388
+ # @return [void]
389
+ def set_dock_size_constraint(widthpct, heightpct) end
390
+
391
+ # This method is used to specify {Wx::AUI::AuiManagerOption}'s flags.
392
+ #
393
+ # flags specifies options which allow the frame management behaviour to be modified.
394
+ # @param flags [Integer]
395
+ # @return [void]
396
+ def set_flags(flags) end
397
+ alias_method :flags=, :set_flags
398
+
399
+ # Set the window which is to be managed by {Wx::AUI::AuiManager}.
400
+ #
401
+ # This window will often be a {Wx::Frame} but an arbitrary child window can also be used.
402
+ # Note that {Wx::AUI::AuiManager} handles many events for the managed window, including {Wx::EVT_SIZE}, so any application-defined handlers for this window should take care to call {Wx::Event#skip} to let {Wx::AUI::AuiManager} perform its own processing.
403
+ # @param managedWindow [Wx::Window]
404
+ # @return [void]
405
+ def set_managed_window(managedWindow) end
406
+
407
+ # This function is used to show a hint window at the specified rectangle.
408
+ #
409
+ # It can be overridden to customize the hint appearance. When overriding it, {Wx::AUI::AuiManager#hide_hint} should normally be also overridden as well.
410
+ # Do not call this function directly to show the hint, use {Wx::AUI::AuiManager#update_hint} instead.
411
+ # @param rect [Wx::Rect] The area where the hint window should be shown, in screen coordinates, or an empty rectangle to hide the window.
412
+ # @return [void]
413
+ def show_hint(rect) end
414
+
415
+ # Create a new pane with the given window near an existing pane.
416
+ #
417
+ # The size of the new pane is determined by {Wx::AUI::AuiManager#calculate_new_split_size} and the existing panes are resized to have the same size in the split direction.
418
+ # Note that this function calls {Wx::AUI::AuiManager#update} internally, so there is no need to call it separately.
419
+ # @param window [Wx::Window] A window already managed by this {Wx::AUI::AuiManager} identifying the pane to split.
420
+ # @param newWindow [Wx::Window] The window to be added as a new pane.
421
+ # @param direction [Integer] The direction where the new pane should be added, one of {Wx::Direction::LEFT}, {Wx::Direction::RIGHT}, {Wx::Direction::TOP} or {Wx::Direction::BOTTOM}.
422
+ # @param dropPos [Array(Integer, Integer), Wx::Point] The position where the pane is dropped, if this function is called in response to a drag-and-drop operation. If not specified, the position is determined by direction.
423
+ # @return [Boolean]
424
+ def split_pane(window, newWindow, direction, dropPos=Wx::DEFAULT_POSITION) end
425
+
426
+ # Mostly used internally to define the drag action parameters.
427
+ # @param paneWindow [Wx::Window]
428
+ # @param offset [Array(Integer, Integer), Wx::Point]
429
+ # @return [void]
430
+ def start_pane_drag(paneWindow, offset) end
431
+
432
+ # Dissociate the managed window from the manager.
433
+ #
434
+ # This function may be called before the managed frame or window is destroyed, but, since wxWidgets 3.1.4, it's unnecessary to call it explicitly, as it will be called automatically when this window is destroyed, as well as when the manager itself is.
435
+ # @return [void]
436
+ def un_init; end
437
+
438
+ # This method is called after any number of changes are made to any of the managed panes.
439
+ #
440
+ # {Wx::AUI::AuiManager#update} must be invoked after {Wx::AUI::AuiManager#add_pane} or {Wx::AUI::AuiManager#insert_pane} are called in order to "realize" or "commit" the changes. In addition, any number of changes may be made to {Wx::AUI::AuiPaneInfo} structures (retrieved with {Wx::AUI::AuiManager#get_pane}), but to realize the changes, {Wx::AUI::AuiManager#update} must be called. This construction allows pane flicker to be avoided by updating the whole layout at one time.
441
+ # @return [void]
442
+ def update; end
443
+
444
+ # Show or hide the hint window.
445
+ #
446
+ # This function is mostly used internally.
447
+ # @param rect [Wx::Rect] The area where the hint window should be shown, in screen coordinates, or an empty rectangle to hide the window.
448
+ # @return [void]
449
+ def update_hint(rect) end
450
+
451
+ # Returns true if live resize is always used on the current platform.
452
+ #
453
+ # If this function returns true, {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE} flag is ignored and live resize is always used, whether it's specified or not.
454
+ # Currently this is the case for WXOSX and WXGTK3 when using Wayland, as live resizing is the only implemented method there. See {Wx::ClientDC.can_be_used_for_drawing} for more details.
455
+ #
456
+ # <div class="wxrb-note">
457
+ # <b>Note:</b>
458
+ # <p>As of wxWidgets 3.3.0 this function always returns false.
459
+ # </p>
460
+ # </div>
461
+ # @param window [Wx::Window] The associated window, may be null (this parameter was added in wxWidgets 3.3.0)
462
+ # @return [Boolean]
463
+ def self.always_uses_live_resize(window) end
464
+
465
+ # Calling this method will return the {Wx::AUI::AuiManager} for a given window.
466
+ #
467
+ # The window parameter should specify any child window or sub-child window of the frame or window managed by {Wx::AUI::AuiManager}.
468
+ # The window parameter need not be managed by the manager itself, nor does it even need to be a child or sub-child of a managed window. It must however be inside the window hierarchy underneath the managed window.
469
+ # @param window [Wx::Window]
470
+ # @return [Wx::AUI::AuiManager]
471
+ def self.get_manager(window) end
472
+
473
+ end # AuiManager
474
+
475
+ # {Wx::AUI::AuiBookSerializer} is used for serializing {Wx::AUI::AuiNotebook} layout.
476
+ #
477
+ # This includes the tab controls layout and the order of pages in them.
478
+ # It can be used standalone with {Wx::AUI::AuiNotebook#save_layout} or as base class of {Wx::AUI::AuiSerializer} for saving and restoring the entire layout.
479
+ #
480
+ # Category: Window Docking (wxAUI)
481
+ #
482
+ #
483
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
484
+ # @wxrb_require USE_AUI
485
+ class AuiBookSerializer < ::Object
486
+
487
+ # Trivial default ctor.
488
+ # @return [Wx::AUI::AuiBookSerializer]
489
+ def initialize; end
490
+
491
+ # Called before starting to save information about the tabs in the notebook in the AUI pane with the given name.
492
+ #
493
+ # This function needs to be overridden to keep record of the notebook for which {Wx::AUI::AuiBookSerializer#save_notebook_tab_control} will be called next.
494
+ # If this class is used as a base class of {Wx::AUI::AuiSerializer}, saving notebook layout may be unnecessary, e.g. because the program doesn't use {Wx::AUI::AuiNotebook} at all, and the implementation can be trivial and just do nothing because it is not going to be called at all if there are no notebooks in the full layout.
495
+ # When using {Wx::AUI::AuiNotebook#save_layout} directly, this function is always called and is the first function of this class to be called.
496
+ # @param name [String]
497
+ # @return [void]
498
+ def before_save_notebook(name) end
499
+
500
+ # Called to save information about a single tab control in the given notebook.
501
+ #
502
+ # This function will be called for all tab controls in the notebook after {Wx::AUI::AuiBookSerializer#before_save_notebook}.
503
+ # As with that function, it has to be implemented, but can simply do nothing if saving notebook layout is not necessary.
504
+ # @param tab [Wx::AUI::AuiTabLayoutInfo]
505
+ # @return [void]
506
+ def save_notebook_tab_control(tab) end
507
+
508
+ # Called after saving information about all the pages of the notebook in the AUI pane with the given name.
509
+ #
510
+ # Does nothing by default.
511
+ # @return [void]
512
+ def after_save_notebook; end
513
+
514
+ end # AuiBookSerializer
515
+
516
+ # {Wx::AUI::AuiSerializer} is used by {Wx::AUI::AuiManager#save_layout} to store layout information.
517
+ #
518
+ # This is an abstract base class, you need to inherit from it and override its pure virtual functions, including those inherited from its base {Wx::AUI::AuiBookSerializer} class, in your derived class.
519
+ # In particular, {Wx::AUI::AuiSerializer#save_pane} must be overridden and will be called by {Wx::AUI::AuiManager} for each pane and dock present in the layout. Most of the other functions don't need to be overridden, but it is often convenient to perform some actions before or after starting to save the objects of the given type or at the beginning or end of the whole saving process, so this class provides hooks for doing it.
520
+ # If any of the functions of the derived class throw an exception, it is propagated out of {Wx::AUI::AuiManager#save_layout} and it's callers responsibility to handle it.
521
+ #
522
+ # Category: Window Docking (wxAUI)
523
+ #
524
+ #
525
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
526
+ # @wxrb_require USE_AUI
527
+ class AuiSerializer < AuiBookSerializer
528
+
529
+ # Trivial default ctor.
530
+ # @return [Wx::AUI::AuiSerializer]
531
+ def initialize; end
532
+
533
+ # Called before doing anything else.
534
+ #
535
+ # Does nothing by default.
536
+ # @return [void]
537
+ def before_save; end
538
+
539
+ # Called before starting to save information about the panes.
540
+ #
541
+ # Does nothing by default.
542
+ # @return [void]
543
+ def before_save_panes; end
544
+
545
+ # Save information about the given pane.
546
+ #
547
+ # This function will be called for all panes and must be implemented to save their data in a format from which it can be restored later using a matching {Wx::AUI::AuiDeserializer} implementation.
548
+ # Note that all sizes and positions in pane are using DIPs, i.e. resolution-independent pixels, when it is passed to this function, so it does not need to perform any scaling itself to ensure that the stored values are restored correctly if the resolution changes.
549
+ # @param pane [Wx::AUI::AuiPaneLayoutInfo]
550
+ # @return [void]
551
+ def save_pane(pane) end
552
+
553
+ # Called after the last call to {Wx::AUI::AuiSerializer#save_pane}.
554
+ #
555
+ # Does nothing by default.
556
+ # @return [void]
557
+ def after_save_panes; end
558
+
559
+ # Called before starting to save information about the notebooks.
560
+ #
561
+ # Does nothing by default.
562
+ # Note that this function is called after {Wx::AUI::AuiSerializer#after_save_panes} but may not be called at all if there are no panes containing {Wx::AUI::AuiNotebook}.
563
+ # {Wx::AUI::AuiBookSerializer} member functions will be called after this function if it is called at all.
564
+ # @return [void]
565
+ def before_save_notebooks; end
566
+
567
+ # Called after the last call to SaveNotebook().
568
+ #
569
+ # Does nothing by default.
570
+ # This function is called after all {Wx::AUI::AuiBookSerializer} member functions
571
+ # @return [void]
572
+ def after_save_notebooks; end
573
+
574
+ # Called after saving everything.
575
+ #
576
+ # Does nothing by default.
577
+ # @return [void]
578
+ def after_save; end
579
+
580
+ end # AuiSerializer
581
+
582
+ # Description of a docked element layout.
583
+ #
584
+ # The fields in this struct are shared by {Wx::AUI::AuiPaneLayoutInfo} and {Wx::AUI::AuiTabLayoutInfo} and contain information about the layout of a docked pane or tab layout.
585
+ # Note that when saving the objects of this type, fields that have the value of 0 can be omitted, as this is their default value in any case (except for {Wx::dock_direction} which is never 0), to make the serialized representation more compact.
586
+ #
587
+ #
588
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
589
+ # @wxrb_require USE_AUI
590
+ class AuiDockLayoutInfo < ::Object
591
+
592
+ # Direction of the dock containing the pane.
593
+ #
594
+ #
595
+ # @return [Integer]
596
+ def dock_direction; end
597
+ # Direction of the dock containing the pane.
598
+ #
599
+ #
600
+ # @param val [Integer]
601
+ # @return [void]
602
+ def dock_direction=(val); end
603
+
604
+ # Layer of the dock containing the pane.
605
+ #
606
+ #
607
+ # @return [Integer]
608
+ def dock_layer; end
609
+ # Layer of the dock containing the pane.
610
+ #
611
+ #
612
+ # @param val [Integer]
613
+ # @return [void]
614
+ def dock_layer=(val); end
615
+
616
+ # Row of the dock containing the pane.
617
+ #
618
+ #
619
+ # @return [Integer]
620
+ def dock_row; end
621
+ # Row of the dock containing the pane.
622
+ #
623
+ #
624
+ # @param val [Integer]
625
+ # @return [void]
626
+ def dock_row=(val); end
627
+
628
+ # Position of the pane in the dock containing it.
629
+ #
630
+ #
631
+ # @return [Integer]
632
+ def dock_pos; end
633
+ # Position of the pane in the dock containing it.
634
+ #
635
+ #
636
+ # @param val [Integer]
637
+ # @return [void]
638
+ def dock_pos=(val); end
639
+
640
+ # Relative proportion of the dock allocated to this pane.
641
+ #
642
+ #
643
+ # @return [Integer]
644
+ def dock_proportion; end
645
+ # Relative proportion of the dock allocated to this pane.
646
+ #
647
+ #
648
+ # @param val [Integer]
649
+ # @return [void]
650
+ def dock_proportion=(val); end
651
+
652
+ # Size of the containing dock.
653
+ #
654
+ #
655
+ # @return [Integer]
656
+ def dock_size; end
657
+ # Size of the containing dock.
658
+ #
659
+ #
660
+ # @param val [Integer]
661
+ # @return [void]
662
+ def dock_size=(val); end
663
+
664
+ end # AuiDockLayoutInfo
665
+
666
+ # Description of user-modifiable pane layout information.
667
+ #
668
+ # This struct is used with {Wx::AUI::AuiSerializer} and {Wx::AUI::AuiDeserializer} to store the pane layout. Its fields, including the inherited ones from {Wx::AUI::AuiDockLayoutInfo}, have the same meaning as the corresponding fields in {Wx::AUI::AuiPaneInfo} (with the exception of {Wx::is_maximized} and {Wx::is_hidden}, which rather correspond to the individual bits of its state field), but it doesn't contain the fields that it wouldn't make sense to serialize.
669
+ #
670
+ #
671
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
672
+ # @wxrb_require USE_AUI
673
+ class AuiPaneLayoutInfo < AuiDockLayoutInfo
674
+
675
+ # Unique name of the pane.
676
+ #
677
+ #
678
+ # @return [String]
679
+ def name; end
680
+ # Unique name of the pane.
681
+ #
682
+ #
683
+ # @param val [String]
684
+ # @return [void]
685
+ def name=(val); end
686
+
687
+ # Position of the pane when floating, may be invalid.
688
+ #
689
+ #
690
+ # @return [Wx::Point]
691
+ def floating_pos; end
692
+ # Position of the pane when floating, may be invalid.
693
+ #
694
+ #
695
+ # @param val [Wx::Point]
696
+ # @return [void]
697
+ def floating_pos=(val); end
698
+
699
+ # Size of the pane when floating, may be invalid.
700
+ #
701
+ #
702
+ # @return [Wx::Size]
703
+ def floating_size; end
704
+ # Size of the pane when floating, may be invalid.
705
+ #
706
+ #
707
+ # @param val [Wx::Size]
708
+ # @return [void]
709
+ def floating_size=(val); end
710
+
711
+ # True if the pane is currently maximized.
712
+ #
713
+ #
714
+ # @return [Boolean]
715
+ def is_maximized; end
716
+ # True if the pane is currently maximized.
717
+ #
718
+ #
719
+ # @param val [Boolean]
720
+ # @return [void]
721
+ def is_maximized=(val); end
722
+
723
+ # Ctor sets the name, which is always required.
724
+ # @param name [String]
725
+ # @return [Wx::AUI::AuiPaneLayoutInfo]
726
+ def initialize(name) end
727
+
728
+ end # AuiPaneLayoutInfo
729
+
730
+ # Contains information about the layout of a tab control in a {Wx::AUI::AuiNotebook}.
731
+ #
732
+ # This includes where it is docked, via the fields inherited from {Wx::AUI::AuiDockLayoutInfo}, and, optionally, the order of pages in it if it was changed as well as pinned pages indices, if any.
733
+ #
734
+ #
735
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
736
+ # @wxrb_require USE_AUI
737
+ class AuiTabLayoutInfo < AuiDockLayoutInfo
738
+
739
+ # Returns the indices of the pages in this tab control in their order on screen.
740
+ # If this array is empty, it means that the tab control contains all notebook pages in natural order.
741
+ # @return [::Array<Integer>] indices of the pages in this tab control
742
+ def get_pages; end
743
+ alias :pages :get_pages
744
+
745
+ # Set the indices of the pages in this tab control in their order on screen.
746
+ # If this array is empty, it means that the tab control contains all notebook pages in natural order.
747
+ # @param [::Array<Integer>] pages indices of the pages in this tab control
748
+ def set_pages(pages) end
749
+ alias :pages= :set_pages
750
+ end # AuiTabLayoutInfo
751
+
752
+ # {Wx::AUI::AuiBookDeserializer} is used for deserializing {Wx::AUI::AuiNotebook} layout.
753
+ #
754
+ # Similarly to {Wx::AUI::AuiBookSerializer}, it can be used standalone with {Wx::AUI::AuiNotebook#load_layout} or as base class of {Wx::AUI::AuiDeserializer}.
755
+ #
756
+ # Category: Window Docking (wxAUI)
757
+ #
758
+ #
759
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
760
+ # @wxrb_require USE_AUI
761
+ class AuiBookDeserializer < ::Object
762
+
763
+ # Trivial default ctor.
764
+ # @return [Wx::AUI::AuiBookDeserializer]
765
+ def initialize; end
766
+
767
+ # Load information about the notebook tabs previously saved by {Wx::AUI::AuiBookSerializer#save_notebook_tab_control}.
768
+ #
769
+ # When using this class as a base class of {Wx::AUI::AuiDeserializer}, this function is called by {Wx::AUI::AuiManager#load_layout} after loading the pane with the name name if it is a {Wx::AUI::AuiNotebook}. Otherwise, i.e. when using {Wx::AUI::AuiNotebook#load_layout} directly, this function is called with the same name as was passed to that function.
770
+ # If restoring the notebook layout is not necessary, this function can just return an empty vector which is interpreted as meaning that the default notebook layout should be used.
771
+ # @param name [String]
772
+ # @return [Array<Wx::AuiTabLayoutInfo>]
773
+ def load_notebook_tabs(name) end
774
+
775
+ # Determine what should be done with the pages not attached to any tab control after restoring the pages order.
776
+ #
777
+ # It is possible that the data returned by {Wx::AUI::AuiBookDeserializer#load_notebook_tabs} doesn't contain the layout information for all the currently existing pages, e.g. because data saved by an earlier program version is being loaded into a newer version in which new pages were added. In this case, this function is called for each page that wasn't assigned to any tab after restoring the pages order and can be overridden to determine what should be done with it.
778
+ # The overridden version may return a 2-element array with an {Wx::AUI::AuiTabCtrl} and tab index instead to change where the page should be inserted, e.g. by returning a tab index of 0 to insert the new pages at the beginning instead of appending them.
779
+ #
780
+ # Finally, the overridden function may return false to indicate that the page should be removed from the notebook.
781
+ #
782
+ # <div class="wxrb-note">
783
+ # <b>Note:</b>
784
+ # <p>The book parameter can be used to retrieve the total number of pages or to call functions such as {Wx::AUI::AuiNotebook#get_main_tab_ctrl} or {Wx::AUI::AuiNotebook#get_all_tab_ctrls} on it, but this function must not attempt to modify it by adding or removing pages to/from it.
785
+ # </p>
786
+ # </div>
787
+ # @param book [Wx::AUI::AuiNotebook]
788
+ # @param page [Integer]
789
+ # @return [Boolean,Array(Wx::AUI::AuiTabCtrl, Integer)]
790
+ def handle_orphaned_page(book, page) end
791
+
792
+ end # AuiBookDeserializer
793
+
794
+ # {Wx::AUI::AuiDeserializer} is used by {Wx::AUI::AuiManager#load_layout} to restore layout information saved by {Wx::AUI::AuiManager#save_layout}.
795
+ #
796
+ # As {Wx::AUI::AuiSerializer}, this is an abstract base class, you need to inherit from it and override its pure virtual functions in your derived class.
797
+ # Derived class function also may throw and, if any of them other than {Wx::AUI::AuiDeserializer#after_load} does, the existing layout is not changed, i.e. {Wx::AUI::AuiManager#load_layout} is exception-safe.
798
+ #
799
+ # Category: Window Docking (wxAUI)
800
+ #
801
+ #
802
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
803
+ # @wxrb_require USE_AUI
804
+ class AuiDeserializer < AuiBookDeserializer
805
+
806
+ # Constructor taking the manager for which we're restoring the layout.
807
+ #
808
+ # The manager remains valid for the lifetime of this object.
809
+ # @param manager [Wx::AUI::AuiManager]
810
+ # @return [Wx::AUI::AuiDeserializer]
811
+ def initialize(manager) end
812
+
813
+ # Called before doing anything else.
814
+ #
815
+ # Does nothing by default.
816
+ # @return [void]
817
+ def before_load; end
818
+
819
+ # Load information about all the panes previously saved by {Wx::AUI::AuiSerializer#save_pane}.
820
+ #
821
+ # Unlike the serializer function, this one is called only once and should return all the panes in the layout.
822
+ # Just as the serializer function, this one doesn't need to perform any scaling itself as this will be done, if necessary, by {Wx::AUI::AuiManager} itself.
823
+ # If some pane in the returned vector doesn't already exist, i.e. there is no pane with the matching name, {Wx::AUI::AuiDeserializer#create_pane_window} is called to allow creating it on the fly.
824
+ # @return [Array<Wx::AuiPaneLayoutInfo>]
825
+ def load_panes; end
826
+
827
+ # Create the window to be managed by the given pane if necessary.
828
+ #
829
+ # This function is called if any of the panes returned by {Wx::AUI::AuiDeserializer#load_panes} doesn't exist in the existing layout and allows to create windows on the fly.
830
+ # If this function returns nil, as it does by default, the pane is not added to the manager.
831
+ # If the function does create a new window, it should typically modify pane parameter to fill in the fields such as caption or icon that wouldn't normally be serialized and so wouldn't be restored by {Wx::AUI::AuiDeserializer#load_panes}.
832
+ # @param pane [Wx::AUI::AuiPaneInfo]
833
+ # @return [Wx::Window]
834
+ def create_pane_window(pane) end
835
+
836
+ # Called after restoring everything.
837
+ #
838
+ # Default implementation calls {Wx::AUI::AuiManager#update}. Override this function and do not call the base class version if you want to prevent this from happening, e.g. if you need to make further changes to the restored layout before updating it.
839
+ # @return [void]
840
+ def after_load; end
841
+
842
+ end # AuiDeserializer
843
+
844
+
845
+ end
846
+
847
+ end