wxruby3 0.9.0.pre.beta.8-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (839) 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 +139 -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/ext/wxbase32u_gcc_custom.dll +0 -0
  11. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  12. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  23. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  24. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  25. data/lib/wx/accessors.rb +63 -0
  26. data/lib/wx/aui/auimanager.rb +17 -0
  27. data/lib/wx/aui/auinotebook.rb +9 -0
  28. data/lib/wx/aui/events/evt_list.rb +143 -0
  29. data/lib/wx/aui/require.rb +9 -0
  30. data/lib/wx/aui.rb +14 -0
  31. data/lib/wx/core/acceleratortable.rb +28 -0
  32. data/lib/wx/core/animation.rb +18 -0
  33. data/lib/wx/core/app.rb +89 -0
  34. data/lib/wx/core/artprovider.rb +31 -0
  35. data/lib/wx/core/bitmap.rb +59 -0
  36. data/lib/wx/core/busycursor.rb +12 -0
  37. data/lib/wx/core/choice.rb +4 -0
  38. data/lib/wx/core/choicedlg.rb +54 -0
  39. data/lib/wx/core/clientdc.rb +13 -0
  40. data/lib/wx/core/clipboard.rb +56 -0
  41. data/lib/wx/core/collapsible_pane.rb +12 -0
  42. data/lib/wx/core/colour.rb +34 -0
  43. data/lib/wx/core/combobox.rb +4 -0
  44. data/lib/wx/core/controlwithitems.rb +10 -0
  45. data/lib/wx/core/data_object.rb +10 -0
  46. data/lib/wx/core/dataformat.rb +26 -0
  47. data/lib/wx/core/dc.rb +68 -0
  48. data/lib/wx/core/dialog.rb +50 -0
  49. data/lib/wx/core/enum.rb +28 -0
  50. data/lib/wx/core/event.rb +16 -0
  51. data/lib/wx/core/events/evt_list.rb +1378 -0
  52. data/lib/wx/core/evthandler.rb +253 -0
  53. data/lib/wx/core/ext.rb +58 -0
  54. data/lib/wx/core/font/encoding.rb +113 -0
  55. data/lib/wx/core/font.rb +22 -0
  56. data/lib/wx/core/functions.rb +44 -0
  57. data/lib/wx/core/gauge.rb +12 -0
  58. data/lib/wx/core/genericdirctrl.rb +36 -0
  59. data/lib/wx/core/hboxsizer.rb +6 -0
  60. data/lib/wx/core/helpcontroller.rb +5 -0
  61. data/lib/wx/core/helpcontrollerhelpprovider.rb +24 -0
  62. data/lib/wx/core/helpprovider.rb +15 -0
  63. data/lib/wx/core/icon.rb +40 -0
  64. data/lib/wx/core/image.rb +68 -0
  65. data/lib/wx/core/imagelist.rb +3 -0
  66. data/lib/wx/core/listbox.rb +4 -0
  67. data/lib/wx/core/listctrl.rb +33 -0
  68. data/lib/wx/core/locale.rb +73 -0
  69. data/lib/wx/core/log.rb +20 -0
  70. data/lib/wx/core/menu.rb +78 -0
  71. data/lib/wx/core/menu_bar.rb +20 -0
  72. data/lib/wx/core/menuitem.rb +7 -0
  73. data/lib/wx/core/notebook.rb +9 -0
  74. data/lib/wx/core/object.rb +14 -0
  75. data/lib/wx/core/pen_info.rb +11 -0
  76. data/lib/wx/core/platform_info.rb +13 -0
  77. data/lib/wx/core/point.rb +92 -0
  78. data/lib/wx/core/real_point.rb +92 -0
  79. data/lib/wx/core/rect.rb +57 -0
  80. data/lib/wx/core/simplehelpprovider.rb +38 -0
  81. data/lib/wx/core/size.rb +86 -0
  82. data/lib/wx/core/sizer.rb +43 -0
  83. data/lib/wx/core/splash_screen.rb +44 -0
  84. data/lib/wx/core/textctrl.rb +8 -0
  85. data/lib/wx/core/timer.rb +104 -0
  86. data/lib/wx/core/toolbar.rb +37 -0
  87. data/lib/wx/core/toolbartool.rb +4 -0
  88. data/lib/wx/core/treectrl.rb +46 -0
  89. data/lib/wx/core/validator.rb +8 -0
  90. data/lib/wx/core/variant.rb +62 -0
  91. data/lib/wx/core/vboxsizer.rb +6 -0
  92. data/lib/wx/core/window.rb +95 -0
  93. data/lib/wx/core/window_update_locker.rb +12 -0
  94. data/lib/wx/core/xmlresource.rb +56 -0
  95. data/lib/wx/core.rb +61 -0
  96. data/lib/wx/doc/aui/auimanager.rb +12 -0
  97. data/lib/wx/doc/aui/auinotebook.rb +9 -0
  98. data/lib/wx/doc/colour_dialog.rb +15 -0
  99. data/lib/wx/doc/core.rb +11 -0
  100. data/lib/wx/doc/dc.rb +49 -0
  101. data/lib/wx/doc/enum.rb +88 -0
  102. data/lib/wx/doc/evthandler.rb +87 -0
  103. data/lib/wx/doc/extra/00_starting.md +154 -0
  104. data/lib/wx/doc/extra/01_packages.md +179 -0
  105. data/lib/wx/doc/extra/02_lifecycles.md +116 -0
  106. data/lib/wx/doc/extra/03_dialogs.md +57 -0
  107. data/lib/wx/doc/extra/04_enums.md +143 -0
  108. data/lib/wx/doc/extra/05_event-handling.md +166 -0
  109. data/lib/wx/doc/extra/06_geometry.md +56 -0
  110. data/lib/wx/doc/extra/07_colour_and_font.md +52 -0
  111. data/lib/wx/doc/extra/08_extensions.md +144 -0
  112. data/lib/wx/doc/extra/09_exceptions.md +54 -0
  113. data/lib/wx/doc/functions.rb +221 -0
  114. data/lib/wx/doc/gdi_common.rb +181 -0
  115. data/lib/wx/doc/gen/about_dialog_info.rb +315 -0
  116. data/lib/wx/doc/gen/accelerator.rb +172 -0
  117. data/lib/wx/doc/gen/accessible.rb +817 -0
  118. data/lib/wx/doc/gen/animation.rb +253 -0
  119. data/lib/wx/doc/gen/animation_ctrl.rb +129 -0
  120. data/lib/wx/doc/gen/any_button.rb +170 -0
  121. data/lib/wx/doc/gen/app.rb +363 -0
  122. data/lib/wx/doc/gen/art_provider.rb +497 -0
  123. data/lib/wx/doc/gen/aui/aui_dock_art.rb +421 -0
  124. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +39 -0
  125. data/lib/wx/doc/gen/aui/aui_manager.rb +323 -0
  126. data/lib/wx/doc/gen/aui/aui_manager_event.rb +112 -0
  127. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +163 -0
  128. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +46 -0
  129. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +109 -0
  130. data/lib/wx/doc/gen/aui/aui_notebook.rb +329 -0
  131. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +179 -0
  132. data/lib/wx/doc/gen/aui/aui_pane_info.rb +665 -0
  133. data/lib/wx/doc/gen/aui/aui_tab_art.rb +372 -0
  134. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +147 -0
  135. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +437 -0
  136. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +272 -0
  137. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +195 -0
  138. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +224 -0
  139. data/lib/wx/doc/gen/aui/event_list.rb +162 -0
  140. data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +47 -0
  141. data/lib/wx/doc/gen/bitmap.rb +638 -0
  142. data/lib/wx/doc/gen/bitmap_button.rb +91 -0
  143. data/lib/wx/doc/gen/book_ctrl_base.rb +240 -0
  144. data/lib/wx/doc/gen/book_ctrl_event.rb +60 -0
  145. data/lib/wx/doc/gen/box_sizer.rb +66 -0
  146. data/lib/wx/doc/gen/brush.rb +219 -0
  147. data/lib/wx/doc/gen/buffered_dc.rb +95 -0
  148. data/lib/wx/doc/gen/buffered_paint_dc.rb +55 -0
  149. data/lib/wx/doc/gen/busy_info.rb +141 -0
  150. data/lib/wx/doc/gen/button.rb +133 -0
  151. data/lib/wx/doc/gen/calculate_layout_event.rb +59 -0
  152. data/lib/wx/doc/gen/calendar_ctrl.rb +236 -0
  153. data/lib/wx/doc/gen/calendar_date_attr.rb +137 -0
  154. data/lib/wx/doc/gen/calendar_event.rb +150 -0
  155. data/lib/wx/doc/gen/caret.rb +99 -0
  156. data/lib/wx/doc/gen/check_box.rb +145 -0
  157. data/lib/wx/doc/gen/check_list_box.rb +96 -0
  158. data/lib/wx/doc/gen/choice.rb +143 -0
  159. data/lib/wx/doc/gen/choicebook.rb +100 -0
  160. data/lib/wx/doc/gen/client_dc.rb +49 -0
  161. data/lib/wx/doc/gen/clipboard.rb +128 -0
  162. data/lib/wx/doc/gen/collapsible_pane.rb +120 -0
  163. data/lib/wx/doc/gen/collapsible_pane_event.rb +45 -0
  164. data/lib/wx/doc/gen/colour.rb +289 -0
  165. data/lib/wx/doc/gen/colour_data.rb +96 -0
  166. data/lib/wx/doc/gen/colour_dialog.rb +84 -0
  167. data/lib/wx/doc/gen/colour_picker_ctrl.rb +89 -0
  168. data/lib/wx/doc/gen/colour_picker_event.rb +74 -0
  169. data/lib/wx/doc/gen/combo_box.rb +228 -0
  170. data/lib/wx/doc/gen/context_help_button.rb +34 -0
  171. data/lib/wx/doc/gen/control.rb +245 -0
  172. data/lib/wx/doc/gen/control_with_items.rb +339 -0
  173. data/lib/wx/doc/gen/core.rb +42 -0
  174. data/lib/wx/doc/gen/cursor.rb +127 -0
  175. data/lib/wx/doc/gen/data_format.rb +94 -0
  176. data/lib/wx/doc/gen/data_object.rb +439 -0
  177. data/lib/wx/doc/gen/date_event.rb +48 -0
  178. data/lib/wx/doc/gen/date_picker_ctrl.rb +127 -0
  179. data/lib/wx/doc/gen/dc.rb +1278 -0
  180. data/lib/wx/doc/gen/defs.rb +2832 -0
  181. data/lib/wx/doc/gen/dialog.rb +426 -0
  182. data/lib/wx/doc/gen/dir_dialog.rb +134 -0
  183. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +80 -0
  184. data/lib/wx/doc/gen/dir_picker_ctrl.rb +103 -0
  185. data/lib/wx/doc/gen/drag_drop.rb +292 -0
  186. data/lib/wx/doc/gen/drag_image.rb +123 -0
  187. data/lib/wx/doc/gen/editable_list_box.rb +89 -0
  188. data/lib/wx/doc/gen/event.rb +911 -0
  189. data/lib/wx/doc/gen/event_list.rb +1512 -0
  190. data/lib/wx/doc/gen/events.rb +2499 -0
  191. data/lib/wx/doc/gen/evt_handler.rb +224 -0
  192. data/lib/wx/doc/gen/ext_help_controller.rb +100 -0
  193. data/lib/wx/doc/gen/file_dialog.rb +294 -0
  194. data/lib/wx/doc/gen/file_dir_picker_event.rb +98 -0
  195. data/lib/wx/doc/gen/file_picker_ctrl.rb +107 -0
  196. data/lib/wx/doc/gen/find_dialog_event.rb +119 -0
  197. data/lib/wx/doc/gen/find_replace_data.rb +59 -0
  198. data/lib/wx/doc/gen/find_replace_dialog.rb +44 -0
  199. data/lib/wx/doc/gen/flex_grid_sizer.rb +145 -0
  200. data/lib/wx/doc/gen/font.rb +1282 -0
  201. data/lib/wx/doc/gen/font_data.rb +132 -0
  202. data/lib/wx/doc/gen/font_dialog.rb +71 -0
  203. data/lib/wx/doc/gen/font_picker_ctrl.rb +120 -0
  204. data/lib/wx/doc/gen/font_picker_event.rb +64 -0
  205. data/lib/wx/doc/gen/frame.rb +276 -0
  206. data/lib/wx/doc/gen/fs_file.rb +269 -0
  207. data/lib/wx/doc/gen/functions.rb +10 -0
  208. data/lib/wx/doc/gen/gauge.rb +127 -0
  209. data/lib/wx/doc/gen/gb_sizer_item.rb +78 -0
  210. data/lib/wx/doc/gen/gcdc.rb +61 -0
  211. data/lib/wx/doc/gen/gdi_common.rb +1108 -0
  212. data/lib/wx/doc/gen/gdi_object.rb +29 -0
  213. data/lib/wx/doc/gen/generic_dir_ctrl.rb +198 -0
  214. data/lib/wx/doc/gen/graphics_context.rb +764 -0
  215. data/lib/wx/doc/gen/graphics_object.rb +494 -0
  216. data/lib/wx/doc/gen/grid/event_list.rb +173 -0
  217. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +33 -0
  218. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +279 -0
  219. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +31 -0
  220. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +32 -0
  221. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +44 -0
  222. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +31 -0
  223. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +48 -0
  224. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +33 -0
  225. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +40 -0
  226. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +35 -0
  227. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +181 -0
  228. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +34 -0
  229. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +39 -0
  230. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +41 -0
  231. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +74 -0
  232. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +41 -0
  233. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +31 -0
  234. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +98 -0
  235. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +31 -0
  236. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +45 -0
  237. data/lib/wx/doc/gen/grid/grid_ctrl.rb +2381 -0
  238. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +87 -0
  239. data/lib/wx/doc/gen/grid/grid_event.rb +96 -0
  240. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +96 -0
  241. data/lib/wx/doc/gen/grid/grid_size_event.rb +71 -0
  242. data/lib/wx/doc/gen/grid/grid_string_table.rb +130 -0
  243. data/lib/wx/doc/gen/grid/grid_table_base.rb +288 -0
  244. data/lib/wx/doc/gen/grid/grid_table_message.rb +73 -0
  245. data/lib/wx/doc/gen/grid_bag_sizer.rb +298 -0
  246. data/lib/wx/doc/gen/grid_sizer.rb +135 -0
  247. data/lib/wx/doc/gen/help_controller.rb +136 -0
  248. data/lib/wx/doc/gen/help_provider.rb +80 -0
  249. data/lib/wx/doc/gen/html/event_list.rb +46 -0
  250. data/lib/wx/doc/gen/html/html_cell.rb +441 -0
  251. data/lib/wx/doc/gen/html/html_cell_event.rb +62 -0
  252. data/lib/wx/doc/gen/html/html_easy_printing.rb +169 -0
  253. data/lib/wx/doc/gen/html/html_help_controller.rb +256 -0
  254. data/lib/wx/doc/gen/html/html_help_data.rb +144 -0
  255. data/lib/wx/doc/gen/html/html_help_frame.rb +112 -0
  256. data/lib/wx/doc/gen/html/html_help_window.rb +230 -0
  257. data/lib/wx/doc/gen/html/html_link_event.rb +36 -0
  258. data/lib/wx/doc/gen/html/html_list_box.rb +150 -0
  259. data/lib/wx/doc/gen/html/html_printout.rb +87 -0
  260. data/lib/wx/doc/gen/html/html_window.rb +386 -0
  261. data/lib/wx/doc/gen/icon.rb +267 -0
  262. data/lib/wx/doc/gen/icon_location.rb +38 -0
  263. data/lib/wx/doc/gen/image.rb +1144 -0
  264. data/lib/wx/doc/gen/image_list.rb +181 -0
  265. data/lib/wx/doc/gen/keyboard_state.rb +124 -0
  266. data/lib/wx/doc/gen/list_box.rb +260 -0
  267. data/lib/wx/doc/gen/list_ctrl.rb +1542 -0
  268. data/lib/wx/doc/gen/list_event.rb +177 -0
  269. data/lib/wx/doc/gen/listbook.rb +100 -0
  270. data/lib/wx/doc/gen/locale.rb +4143 -0
  271. data/lib/wx/doc/gen/log.rb +505 -0
  272. data/lib/wx/doc/gen/mdi_client_window.rb +38 -0
  273. data/lib/wx/doc/gen/mdi_frame.rb +235 -0
  274. data/lib/wx/doc/gen/media_ctrl.rb +225 -0
  275. data/lib/wx/doc/gen/media_event.rb +109 -0
  276. data/lib/wx/doc/gen/memory_dc.rb +95 -0
  277. data/lib/wx/doc/gen/menu.rb +493 -0
  278. data/lib/wx/doc/gen/menu_bar.rb +247 -0
  279. data/lib/wx/doc/gen/menu_item.rb +333 -0
  280. data/lib/wx/doc/gen/message_dialog.rb +195 -0
  281. data/lib/wx/doc/gen/mini_frame.rb +72 -0
  282. data/lib/wx/doc/gen/mirror_dc.rb +29 -0
  283. data/lib/wx/doc/gen/mouse_state.rb +108 -0
  284. data/lib/wx/doc/gen/multi_choice_dialog.rb +58 -0
  285. data/lib/wx/doc/gen/non_owned_window.rb +46 -0
  286. data/lib/wx/doc/gen/notebook.rb +220 -0
  287. data/lib/wx/doc/gen/number_entry_dialog.rb +75 -0
  288. data/lib/wx/doc/gen/object.rb +69 -0
  289. data/lib/wx/doc/gen/paint_dc.rb +34 -0
  290. data/lib/wx/doc/gen/palette.rb +90 -0
  291. data/lib/wx/doc/gen/panel.rb +96 -0
  292. data/lib/wx/doc/gen/pen.rb +484 -0
  293. data/lib/wx/doc/gen/pg/event_list.rb +102 -0
  294. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +47 -0
  295. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +295 -0
  296. data/lib/wx/doc/gen/pg/pg_cell.rb +166 -0
  297. data/lib/wx/doc/gen/pg/pg_editor.rb +569 -0
  298. data/lib/wx/doc/gen/pg/pg_multi_button.rb +161 -0
  299. data/lib/wx/doc/gen/pg/pg_properties.rb +2193 -0
  300. data/lib/wx/doc/gen/pg/pg_property.rb +1852 -0
  301. data/lib/wx/doc/gen/pg/pg_validation_info.rb +327 -0
  302. data/lib/wx/doc/gen/pg/property_grid.rb +619 -0
  303. data/lib/wx/doc/gen/pg/property_grid_event.rb +135 -0
  304. data/lib/wx/doc/gen/pg/property_grid_interface.rb +847 -0
  305. data/lib/wx/doc/gen/pg/property_grid_manager.rb +349 -0
  306. data/lib/wx/doc/gen/pg/property_grid_page.rb +265 -0
  307. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +155 -0
  308. data/lib/wx/doc/gen/picker_base.rb +143 -0
  309. data/lib/wx/doc/gen/platform_info.rb +379 -0
  310. data/lib/wx/doc/gen/popup_window.rb +93 -0
  311. data/lib/wx/doc/gen/progress_dialog.rb +106 -0
  312. data/lib/wx/doc/gen/property_sheet_dialog.rb +185 -0
  313. data/lib/wx/doc/gen/prt/event_list.rb +13 -0
  314. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +38 -0
  315. data/lib/wx/doc/gen/prt/post_script_dc.rb +32 -0
  316. data/lib/wx/doc/gen/prt/preview_frame.rb +39 -0
  317. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +127 -0
  318. data/lib/wx/doc/gen/prt/print_data.rb +598 -0
  319. data/lib/wx/doc/gen/prt/print_dialog.rb +47 -0
  320. data/lib/wx/doc/gen/prt/printer.rb +428 -0
  321. data/lib/wx/doc/gen/prt/printer_dc.rb +35 -0
  322. data/lib/wx/doc/gen/query_layout_info_event.rb +98 -0
  323. data/lib/wx/doc/gen/radio_box.rb +258 -0
  324. data/lib/wx/doc/gen/radio_button.rb +128 -0
  325. data/lib/wx/doc/gen/rbn/event_list.rb +132 -0
  326. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1652 -0
  327. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +227 -0
  328. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +40 -0
  329. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +400 -0
  330. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +58 -0
  331. data/lib/wx/doc/gen/rbn/ribbon_control.rb +116 -0
  332. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +208 -0
  333. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +51 -0
  334. data/lib/wx/doc/gen/rbn/ribbon_page.rb +129 -0
  335. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +232 -0
  336. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +41 -0
  337. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +321 -0
  338. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +36 -0
  339. data/lib/wx/doc/gen/region.rb +299 -0
  340. data/lib/wx/doc/gen/rtc/event_list.rb +121 -0
  341. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +2052 -0
  342. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2031 -0
  343. data/lib/wx/doc/gen/rtc/rich_text_event.rb +146 -0
  344. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +171 -0
  345. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +180 -0
  346. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +104 -0
  347. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +241 -0
  348. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +55 -0
  349. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +153 -0
  350. data/lib/wx/doc/gen/sash_event.rb +133 -0
  351. data/lib/wx/doc/gen/sash_layout_window.rb +203 -0
  352. data/lib/wx/doc/gen/sash_window.rb +154 -0
  353. data/lib/wx/doc/gen/screen_dc.rb +27 -0
  354. data/lib/wx/doc/gen/scrolled_canvas.rb +317 -0
  355. data/lib/wx/doc/gen/scrolled_control.rb +317 -0
  356. data/lib/wx/doc/gen/scrolled_window.rb +337 -0
  357. data/lib/wx/doc/gen/simplebook.rb +93 -0
  358. data/lib/wx/doc/gen/single_choice_dialog.rb +74 -0
  359. data/lib/wx/doc/gen/sizer.rb +847 -0
  360. data/lib/wx/doc/gen/sizer_item.rb +227 -0
  361. data/lib/wx/doc/gen/slider.rb +316 -0
  362. data/lib/wx/doc/gen/spin_button.rb +124 -0
  363. data/lib/wx/doc/gen/spin_ctrl.rb +170 -0
  364. data/lib/wx/doc/gen/spin_event.rb +47 -0
  365. data/lib/wx/doc/gen/splash_screen.rb +83 -0
  366. data/lib/wx/doc/gen/splitter_event.rb +87 -0
  367. data/lib/wx/doc/gen/splitter_window.rb +357 -0
  368. data/lib/wx/doc/gen/static_bitmap.rb +126 -0
  369. data/lib/wx/doc/gen/static_box.rb +123 -0
  370. data/lib/wx/doc/gen/static_box_sizer.rb +67 -0
  371. data/lib/wx/doc/gen/static_line.rb +66 -0
  372. data/lib/wx/doc/gen/static_text.rb +98 -0
  373. data/lib/wx/doc/gen/status_bar.rb +203 -0
  374. data/lib/wx/doc/gen/stc/event_list.rb +217 -0
  375. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4000 -0
  376. data/lib/wx/doc/gen/stc/styled_text_event.rb +7319 -0
  377. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +74 -0
  378. data/lib/wx/doc/gen/svg_file_dc.rb +153 -0
  379. data/lib/wx/doc/gen/system_options.rb +109 -0
  380. data/lib/wx/doc/gen/system_settings.rb +481 -0
  381. data/lib/wx/doc/gen/task_bar_icon.rb +94 -0
  382. data/lib/wx/doc/gen/task_bar_icon_event.rb +86 -0
  383. data/lib/wx/doc/gen/text_attr.rb +645 -0
  384. data/lib/wx/doc/gen/text_ctrl.rb +841 -0
  385. data/lib/wx/doc/gen/text_entry.rb +389 -0
  386. data/lib/wx/doc/gen/text_entry_dialog.rb +170 -0
  387. data/lib/wx/doc/gen/text_validator.rb +212 -0
  388. data/lib/wx/doc/gen/time_picker_ctrl.rb +103 -0
  389. data/lib/wx/doc/gen/timer.rb +103 -0
  390. data/lib/wx/doc/gen/timer_event.rb +73 -0
  391. data/lib/wx/doc/gen/tip_provider.rb +60 -0
  392. data/lib/wx/doc/gen/toggle_button.rb +84 -0
  393. data/lib/wx/doc/gen/tool_bar.rb +744 -0
  394. data/lib/wx/doc/gen/tool_tip.rb +73 -0
  395. data/lib/wx/doc/gen/toolbook.rb +103 -0
  396. data/lib/wx/doc/gen/top_level_window.rb +462 -0
  397. data/lib/wx/doc/gen/tree_ctrl.rb +863 -0
  398. data/lib/wx/doc/gen/tree_event.rb +101 -0
  399. data/lib/wx/doc/gen/treebook.rb +154 -0
  400. data/lib/wx/doc/gen/utils.rb +257 -0
  401. data/lib/wx/doc/gen/v_list_box.rb +224 -0
  402. data/lib/wx/doc/gen/v_scrolled_window.rb +224 -0
  403. data/lib/wx/doc/gen/validator.rb +73 -0
  404. data/lib/wx/doc/gen/variant.rb +340 -0
  405. data/lib/wx/doc/gen/window.rb +2414 -0
  406. data/lib/wx/doc/gen/window_dc.rb +35 -0
  407. data/lib/wx/doc/gen/window_disabler.rb +24 -0
  408. data/lib/wx/doc/gen/with_images.rb +73 -0
  409. data/lib/wx/doc/gen/wizard.rb +197 -0
  410. data/lib/wx/doc/gen/wizard_event.rb +105 -0
  411. data/lib/wx/doc/gen/wizard_page.rb +61 -0
  412. data/lib/wx/doc/gen/wizard_page_simple.rb +72 -0
  413. data/lib/wx/doc/gen/xml_node.rb +282 -0
  414. data/lib/wx/doc/gen/xml_resource.rb +304 -0
  415. data/lib/wx/doc/grid/grid.rb +20 -0
  416. data/lib/wx/doc/help_controller.rb +14 -0
  417. data/lib/wx/doc/html/html_help_controller.rb +8 -0
  418. data/lib/wx/doc/pg/events.rb +15 -0
  419. data/lib/wx/doc/pg/pg_property.rb +8 -0
  420. data/lib/wx/doc/pg/pgeditor.rb +21 -0
  421. data/lib/wx/doc/pg/property_grid.rb +48 -0
  422. data/lib/wx/doc/pg/property_grid_interface.rb +64 -0
  423. data/lib/wx/doc/prt/page_setup_dialog.rb +15 -0
  424. data/lib/wx/doc/prt/print_data.rb +9 -0
  425. data/lib/wx/doc/prt/print_dialog.rb +26 -0
  426. data/lib/wx/doc/prt/printer.rb +15 -0
  427. data/lib/wx/doc/rbn/ribbon_bar.rb +9 -0
  428. data/lib/wx/doc/rbn/ribbon_button_bar.rb +9 -0
  429. data/lib/wx/doc/rbn/ribbon_gallery.rb +9 -0
  430. data/lib/wx/doc/rbn/ribbon_tool_bar.rb +9 -0
  431. data/lib/wx/doc/rtc/richtext_printing.rb +14 -0
  432. data/lib/wx/doc/screen_dc.rb +10 -0
  433. data/lib/wx/doc/stock_objects.rb +98 -0
  434. data/lib/wx/doc/stream.rb +38 -0
  435. data/lib/wx/doc/system_settings.rb +29 -0
  436. data/lib/wx/doc/treebook.rb +9 -0
  437. data/lib/wx/doc/variant.rb +163 -0
  438. data/lib/wx/doc/xml_resource.rb +19 -0
  439. data/lib/wx/global_const.rb +84 -0
  440. data/lib/wx/grid/events/evt_list.rb +156 -0
  441. data/lib/wx/grid/grid.rb +7 -0
  442. data/lib/wx/grid/keyword_defs.rb +10 -0
  443. data/lib/wx/grid/require.rb +9 -0
  444. data/lib/wx/grid.rb +14 -0
  445. data/lib/wx/helpers.rb +65 -0
  446. data/lib/wx/html/events/evt_list.rb +37 -0
  447. data/lib/wx/html/htmlhelpcontroller.rb +6 -0
  448. data/lib/wx/html/htmlwindow.rb +19 -0
  449. data/lib/wx/html/keyword_defs.rb +22 -0
  450. data/lib/wx/html/require.rb +10 -0
  451. data/lib/wx/html.rb +15 -0
  452. data/lib/wx/keyword_ctors.rb +226 -0
  453. data/lib/wx/keyword_defs.rb +487 -0
  454. data/lib/wx/pg/events/evt_list.rb +73 -0
  455. data/lib/wx/pg/events.rb +14 -0
  456. data/lib/wx/pg/keyword_defs.rb +15 -0
  457. data/lib/wx/pg/pg_editor.rb +13 -0
  458. data/lib/wx/pg/pg_properties.rb +24 -0
  459. data/lib/wx/pg/pg_property.rb +27 -0
  460. data/lib/wx/pg/property_grid.rb +71 -0
  461. data/lib/wx/pg/property_grid_interface.rb +46 -0
  462. data/lib/wx/pg/require.rb +12 -0
  463. data/lib/wx/pg.rb +14 -0
  464. data/lib/wx/prt/keyword_defs.rb +8 -0
  465. data/lib/wx/prt/page_setup_dialog.rb +15 -0
  466. data/lib/wx/prt/previewframe.rb +13 -0
  467. data/lib/wx/prt/require.rb +8 -0
  468. data/lib/wx/prt.rb +14 -0
  469. data/lib/wx/rbn/events/evt_list.rb +102 -0
  470. data/lib/wx/rbn/events.rb +4 -0
  471. data/lib/wx/rbn/keyword_defs.rb +43 -0
  472. data/lib/wx/rbn/require.rb +12 -0
  473. data/lib/wx/rbn/ribbon_art_provider.rb +10 -0
  474. data/lib/wx/rbn/ribbon_bar.rb +12 -0
  475. data/lib/wx/rbn/ribbon_button_bar.rb +26 -0
  476. data/lib/wx/rbn/ribbon_control.rb +25 -0
  477. data/lib/wx/rbn/ribbon_gallery.rb +26 -0
  478. data/lib/wx/rbn/ribbon_page.rb +15 -0
  479. data/lib/wx/rbn/ribbon_panel.rb +15 -0
  480. data/lib/wx/rbn/ribbon_tool_bar.rb +26 -0
  481. data/lib/wx/rbn.rb +14 -0
  482. data/lib/wx/rtc/events/evt_list.rb +98 -0
  483. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  484. data/lib/wx/rtc/ext.rb +15 -0
  485. data/lib/wx/rtc/keyword_defs.rb +17 -0
  486. data/lib/wx/rtc/require.rb +8 -0
  487. data/lib/wx/rtc.rb +15 -0
  488. data/lib/wx/stc/events/evt_list.rb +178 -0
  489. data/lib/wx/stc/keyword_defs.rb +8 -0
  490. data/lib/wx/stc/require.rb +7 -0
  491. data/lib/wx/stc.rb +14 -0
  492. data/lib/wx/version.rb +3 -0
  493. data/lib/wx/wxruby/base.rb +87 -0
  494. data/lib/wx/wxruby/cmd/sampler.rb +68 -0
  495. data/lib/wx/wxruby/cmd/test.rb +27 -0
  496. data/lib/wx.rb +14 -0
  497. data/lib/wxruby_aui.so +0 -0
  498. data/lib/wxruby_core.so +0 -0
  499. data/lib/wxruby_grid.so +0 -0
  500. data/lib/wxruby_html.so +0 -0
  501. data/lib/wxruby_pg.so +0 -0
  502. data/lib/wxruby_prt.so +0 -0
  503. data/lib/wxruby_rbn.so +0 -0
  504. data/lib/wxruby_rtc.so +0 -0
  505. data/lib/wxruby_stc.so +0 -0
  506. data/rakelib/install.rb +220 -0
  507. data/rakelib/lib/config/cygwin.rb +6 -0
  508. data/rakelib/lib/config/linux.rb +78 -0
  509. data/rakelib/lib/config/macosx.rb +6 -0
  510. data/rakelib/lib/config/mingw.rb +133 -0
  511. data/rakelib/lib/config/netbsd.rb +6 -0
  512. data/rakelib/lib/config/unixish.rb +187 -0
  513. data/rakelib/lib/config.rb +673 -0
  514. data/rakelib/lib/ext/enum_chain.rb +22 -0
  515. data/rakelib/prepost.rake +91 -0
  516. data/rakelib/prepost.rb +26 -0
  517. data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +7 -0
  518. data/rakelib/yard/templates/default/layout/html/setup.rb +5 -0
  519. data/rakelib/yard/yard/relative_markdown_links/version.rb +8 -0
  520. data/rakelib/yard/yard/relative_markdown_links.rb +39 -0
  521. data/rakelib/yard/yard-custom-templates.rb +2 -0
  522. data/rakelib/yard/yard-relative_markdown_links.rb +4 -0
  523. data/samples/art/wxruby-128x128.png +0 -0
  524. data/samples/art/wxruby-256x256.png +0 -0
  525. data/samples/art/wxruby-64x64.png +0 -0
  526. data/samples/art/wxruby.ico +0 -0
  527. data/samples/art/wxruby.png +0 -0
  528. data/samples/aui/aui.rb +1321 -0
  529. data/samples/aui/tn_aui.png +0 -0
  530. data/samples/bigdemo/About.rbw +39 -0
  531. data/samples/bigdemo/ColorPanel.rbw +23 -0
  532. data/samples/bigdemo/GridSimple.rbw +78 -0
  533. data/samples/bigdemo/MDIDemo.rbw +57 -0
  534. data/samples/bigdemo/PopupMenu.rbw +146 -0
  535. data/samples/bigdemo/ShapedWindow.rbw +128 -0
  536. data/samples/bigdemo/Sizers.rbw +541 -0
  537. data/samples/bigdemo/bigdemo.rb +810 -0
  538. data/samples/bigdemo/demoTemplate.rbw +33 -0
  539. data/samples/bigdemo/helpfile.htb +0 -0
  540. data/samples/bigdemo/icons/Test 015.jpg +0 -0
  541. data/samples/bigdemo/icons/Test 015.png +0 -0
  542. data/samples/bigdemo/icons/choice.bmp +0 -0
  543. data/samples/bigdemo/icons/choice.xpm +27 -0
  544. data/samples/bigdemo/icons/combo.bmp +0 -0
  545. data/samples/bigdemo/icons/combo.xpm +27 -0
  546. data/samples/bigdemo/icons/copy.xpm +25 -0
  547. data/samples/bigdemo/icons/cut.xpm +24 -0
  548. data/samples/bigdemo/icons/gauge.bmp +0 -0
  549. data/samples/bigdemo/icons/gauge.xpm +27 -0
  550. data/samples/bigdemo/icons/help.xpm +25 -0
  551. data/samples/bigdemo/icons/list.bmp +0 -0
  552. data/samples/bigdemo/icons/list.xpm +27 -0
  553. data/samples/bigdemo/icons/mondrian.ico +0 -0
  554. data/samples/bigdemo/icons/mondrian.xpm +44 -0
  555. data/samples/bigdemo/icons/new.xpm +24 -0
  556. data/samples/bigdemo/icons/ogl.ico +0 -0
  557. data/samples/bigdemo/icons/ogl.xpm +45 -0
  558. data/samples/bigdemo/icons/open.xpm +26 -0
  559. data/samples/bigdemo/icons/paste.bmp +0 -0
  560. data/samples/bigdemo/icons/paste.xpm +38 -0
  561. data/samples/bigdemo/icons/pointy.png +0 -0
  562. data/samples/bigdemo/icons/preview.xpm +26 -0
  563. data/samples/bigdemo/icons/print.xpm +26 -0
  564. data/samples/bigdemo/icons/radio.bmp +0 -0
  565. data/samples/bigdemo/icons/radio.xpm +27 -0
  566. data/samples/bigdemo/icons/robert.xpm +415 -0
  567. data/samples/bigdemo/icons/sashtest.ico +0 -0
  568. data/samples/bigdemo/icons/save.xpm +25 -0
  569. data/samples/bigdemo/icons/smiles.bmp +0 -0
  570. data/samples/bigdemo/icons/smiles.xpm +39 -0
  571. data/samples/bigdemo/icons/smiley.ico +0 -0
  572. data/samples/bigdemo/icons/smiley.xpm +42 -0
  573. data/samples/bigdemo/icons/stattext.xpm +24 -0
  574. data/samples/bigdemo/icons/test2.bmp +0 -0
  575. data/samples/bigdemo/icons/test2.png +0 -0
  576. data/samples/bigdemo/icons/test2.xpm +79 -0
  577. data/samples/bigdemo/icons/text.bmp +0 -0
  578. data/samples/bigdemo/icons/text.xpm +27 -0
  579. data/samples/bigdemo/icons/tog1.bmp +0 -0
  580. data/samples/bigdemo/icons/tog1.xpm +38 -0
  581. data/samples/bigdemo/icons/tog2.bmp +0 -0
  582. data/samples/bigdemo/icons/tog2.xpm +38 -0
  583. data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
  584. data/samples/bigdemo/icons/wxwin.ico +0 -0
  585. data/samples/bigdemo/icons/wxwin16x16.png +0 -0
  586. data/samples/bigdemo/icons/wxwin16x16.xpm +25 -0
  587. data/samples/bigdemo/icons/wxwin32x32.png +0 -0
  588. data/samples/bigdemo/icons/wxwin48x48.png +0 -0
  589. data/samples/bigdemo/run.rb +91 -0
  590. data/samples/bigdemo/tips.txt +7 -0
  591. data/samples/bigdemo/utils.rb +12 -0
  592. data/samples/bigdemo/wxArtProvider.rbw +281 -0
  593. data/samples/bigdemo/wxBitmapButton.rbw +65 -0
  594. data/samples/bigdemo/wxButton.rbw +64 -0
  595. data/samples/bigdemo/wxCalendarCtrl.rbw +59 -0
  596. data/samples/bigdemo/wxCheckBox.rbw +50 -0
  597. data/samples/bigdemo/wxCheckListBox.rbw +65 -0
  598. data/samples/bigdemo/wxChoice.rbw +47 -0
  599. data/samples/bigdemo/wxChoicebook.rbw +78 -0
  600. data/samples/bigdemo/wxColourDialog.rbw +33 -0
  601. data/samples/bigdemo/wxComboBox.rbw +77 -0
  602. data/samples/bigdemo/wxCursor.rbw +136 -0
  603. data/samples/bigdemo/wxDialog.rbw +74 -0
  604. data/samples/bigdemo/wxDirDialog.rbw +29 -0
  605. data/samples/bigdemo/wxDragImage.rbw +70 -0
  606. data/samples/bigdemo/wxFileDialog.rbw +37 -0
  607. data/samples/bigdemo/wxFileDialog_Save.rbw +35 -0
  608. data/samples/bigdemo/wxFindReplaceDialog.rbw +82 -0
  609. data/samples/bigdemo/wxFontDialog.rbw +200 -0
  610. data/samples/bigdemo/wxFrame.rbw +53 -0
  611. data/samples/bigdemo/wxGauge.rbw +65 -0
  612. data/samples/bigdemo/wxGenericDirCtrl.rbw +74 -0
  613. data/samples/bigdemo/wxGrid.rbw +66 -0
  614. data/samples/bigdemo/wxHtmlHelpController.rbw +52 -0
  615. data/samples/bigdemo/wxListBox.rbw +140 -0
  616. data/samples/bigdemo/wxListCtrl_virtual.rbw +112 -0
  617. data/samples/bigdemo/wxMDIWindows.rbw +50 -0
  618. data/samples/bigdemo/wxMenu.rbw +247 -0
  619. data/samples/bigdemo/wxMessageDialog.rbw +27 -0
  620. data/samples/bigdemo/wxMiniFrame.rbw +70 -0
  621. data/samples/bigdemo/wxMultipleChoiceDialog.rbw +29 -0
  622. data/samples/bigdemo/wxNotebook.rbw +136 -0
  623. data/samples/bigdemo/wxProgressDialog.rbw +43 -0
  624. data/samples/bigdemo/wxRadioBox.rbw +72 -0
  625. data/samples/bigdemo/wxRadioButton.rbw +125 -0
  626. data/samples/bigdemo/wxSashWindow.rbw +141 -0
  627. data/samples/bigdemo/wxScrolledMessageDialog.rbw +57 -0
  628. data/samples/bigdemo/wxScrolledWindow.rbw +199 -0
  629. data/samples/bigdemo/wxSingleChoiceDialog.rbw +33 -0
  630. data/samples/bigdemo/wxSlider.rbw +42 -0
  631. data/samples/bigdemo/wxSpinButton.rbw +50 -0
  632. data/samples/bigdemo/wxSpinCtrl.rbw +51 -0
  633. data/samples/bigdemo/wxSplitterWindow.rbw +63 -0
  634. data/samples/bigdemo/wxStaticBitmap.rbw +47 -0
  635. data/samples/bigdemo/wxStaticText.rbw +55 -0
  636. data/samples/bigdemo/wxStatusBar.rbw +126 -0
  637. data/samples/bigdemo/wxTextCtrl.rbw +149 -0
  638. data/samples/bigdemo/wxTextEntryDialog.rbw +31 -0
  639. data/samples/bigdemo/wxToggleButton.rbw +49 -0
  640. data/samples/bigdemo/wxToolBar.rbw +131 -0
  641. data/samples/bigdemo/wxTreeCtrl.rbw +191 -0
  642. data/samples/calendar/calendar.rb +363 -0
  643. data/samples/calendar/tn_calendar.png +0 -0
  644. data/samples/caret/caret.rb +293 -0
  645. data/samples/caret/mondrian.xpm +44 -0
  646. data/samples/caret/tn_caret.png +0 -0
  647. data/samples/controls/books.rb +183 -0
  648. data/samples/controls/choice.xpm +27 -0
  649. data/samples/controls/combo.xpm +27 -0
  650. data/samples/controls/controls.rb +1143 -0
  651. data/samples/controls/gauge.xpm +27 -0
  652. data/samples/controls/get_item_sample.rb +117 -0
  653. data/samples/controls/list.xpm +27 -0
  654. data/samples/controls/mondrian.ico +0 -0
  655. data/samples/controls/mondrian.xpm +44 -0
  656. data/samples/controls/radio.xpm +27 -0
  657. data/samples/controls/stattext.xpm +24 -0
  658. data/samples/controls/test2.bmp +0 -0
  659. data/samples/controls/text.xpm +27 -0
  660. data/samples/controls/tn_books.png +0 -0
  661. data/samples/controls/tn_controls.png +0 -0
  662. data/samples/controls/tn_get_item_sample.png +0 -0
  663. data/samples/dialogs/dialogs.rb +879 -0
  664. data/samples/dialogs/tips.txt +18 -0
  665. data/samples/dialogs/tn_dialogs.png +0 -0
  666. data/samples/dialogs/tn_wizard.png +0 -0
  667. data/samples/dialogs/wizard.rb +89 -0
  668. data/samples/dragdrop/dragdrop.rb +200 -0
  669. data/samples/dragdrop/tn_dragdrop.png +0 -0
  670. data/samples/drawing/SVGlogo24.xpm +310 -0
  671. data/samples/drawing/bitmap.rb +76 -0
  672. data/samples/drawing/bitmap_image.rb +131 -0
  673. data/samples/drawing/graphics_drawing.rb +257 -0
  674. data/samples/drawing/maths_images.rb +327 -0
  675. data/samples/drawing/rmagic_bitmap_image.rb +139 -0
  676. data/samples/drawing/ruby-logo.jpg +0 -0
  677. data/samples/drawing/svgtest.rb +373 -0
  678. data/samples/drawing/tn_bitmap.png +0 -0
  679. data/samples/drawing/tn_bitmap_image.png +0 -0
  680. data/samples/drawing/tn_graphics_drawing.png +0 -0
  681. data/samples/drawing/tn_maths_images.png +0 -0
  682. data/samples/drawing/tn_rmagic_bitmap_image.png +0 -0
  683. data/samples/drawing/tn_svgtest.png +0 -0
  684. data/samples/etc/choice.rb +82 -0
  685. data/samples/etc/miniframe.rb +92 -0
  686. data/samples/etc/sash.rb +140 -0
  687. data/samples/etc/scrollwin.rb +120 -0
  688. data/samples/etc/system_settings.rb +263 -0
  689. data/samples/etc/tn_choice.png +0 -0
  690. data/samples/etc/tn_miniframe.png +0 -0
  691. data/samples/etc/tn_sash.png +0 -0
  692. data/samples/etc/tn_scrollwin.png +0 -0
  693. data/samples/etc/tn_system_settings.png +0 -0
  694. data/samples/event/activation.rb +129 -0
  695. data/samples/event/event.rb +220 -0
  696. data/samples/event/threaded.rb +141 -0
  697. data/samples/event/tn_activation.png +0 -0
  698. data/samples/event/tn_event.png +0 -0
  699. data/samples/event/tn_threaded.png +0 -0
  700. data/samples/event/tn_update_ui_event.png +0 -0
  701. data/samples/event/update_ui_event.rb +91 -0
  702. data/samples/grid/grid.rb +224 -0
  703. data/samples/grid/gridtablebase.rb +178 -0
  704. data/samples/grid/tn_grid.png +0 -0
  705. data/samples/grid/tn_gridtablebase.png +0 -0
  706. data/samples/html/8859_2.htm +14 -0
  707. data/samples/html/cp1250.htm +19 -0
  708. data/samples/html/foo.png +0 -0
  709. data/samples/html/html.rb +278 -0
  710. data/samples/html/i18n.gif +0 -0
  711. data/samples/html/imagemap.htm +20 -0
  712. data/samples/html/imagemap.png +0 -0
  713. data/samples/html/listtest.htm +28 -0
  714. data/samples/html/pic.png +0 -0
  715. data/samples/html/pic2.bmp +0 -0
  716. data/samples/html/regres.htm +20 -0
  717. data/samples/html/subsup.html +42 -0
  718. data/samples/html/tables.htm +255 -0
  719. data/samples/html/test.htm +375 -0
  720. data/samples/html/tn_html.png +0 -0
  721. data/samples/mdi/mdi.rb +118 -0
  722. data/samples/mdi/tn_mdi.png +0 -0
  723. data/samples/minimal/minimal.rb +95 -0
  724. data/samples/minimal/mondrian.ico +0 -0
  725. data/samples/minimal/mondrian.png +0 -0
  726. data/samples/minimal/nothing.rb +38 -0
  727. data/samples/minimal/tn_minimal.png +0 -0
  728. data/samples/minimal/tn_nothing.png +0 -0
  729. data/samples/printing/mondrian.ico +0 -0
  730. data/samples/printing/mondrian.xpm +44 -0
  731. data/samples/printing/printing.rb +499 -0
  732. data/samples/printing/printing2.rb +251 -0
  733. data/samples/printing/sample-text.txt +213 -0
  734. data/samples/printing/tn_printing.png +0 -0
  735. data/samples/printing/tn_printing2.png +0 -0
  736. data/samples/propgrid/propgrid.rb +2711 -0
  737. data/samples/propgrid/propgrid_minimal.rb +107 -0
  738. data/samples/propgrid/sample_props.rb +434 -0
  739. data/samples/propgrid/tn_propgrid.png +0 -0
  740. data/samples/propgrid/tn_propgrid_minimal.png +0 -0
  741. data/samples/ribbon/align_center.xpm +21 -0
  742. data/samples/ribbon/align_left.xpm +21 -0
  743. data/samples/ribbon/align_right.xpm +21 -0
  744. data/samples/ribbon/aui_style.xpm +53 -0
  745. data/samples/ribbon/auto_crop_selection.xpm +55 -0
  746. data/samples/ribbon/auto_crop_selection_small.xpm +33 -0
  747. data/samples/ribbon/circle.xpm +38 -0
  748. data/samples/ribbon/circle_small.xpm +22 -0
  749. data/samples/ribbon/colours.xpm +25 -0
  750. data/samples/ribbon/cross.xpm +38 -0
  751. data/samples/ribbon/empty.xpm +23 -0
  752. data/samples/ribbon/expand_selection_h.xpm +46 -0
  753. data/samples/ribbon/expand_selection_v.xpm +46 -0
  754. data/samples/ribbon/eye.xpm +26 -0
  755. data/samples/ribbon/hexagon.xpm +38 -0
  756. data/samples/ribbon/msw_style.xpm +65 -0
  757. data/samples/ribbon/position_left.xpm +22 -0
  758. data/samples/ribbon/position_top.xpm +22 -0
  759. data/samples/ribbon/ribbon.rb +900 -0
  760. data/samples/ribbon/ribbon.xpm +54 -0
  761. data/samples/ribbon/selection_panel.xpm +23 -0
  762. data/samples/ribbon/square.xpm +38 -0
  763. data/samples/ribbon/tn_ribbon.png +0 -0
  764. data/samples/ribbon/triangle.xpm +38 -0
  765. data/samples/sample.xpm +475 -0
  766. data/samples/sampler/back.xpm +21 -0
  767. data/samples/sampler/copy.xpm +44 -0
  768. data/samples/sampler/cut.xpm +46 -0
  769. data/samples/sampler/editor.rb +560 -0
  770. data/samples/sampler/ext.rb +51 -0
  771. data/samples/sampler/filesave.xpm +42 -0
  772. data/samples/sampler/find.xpm +62 -0
  773. data/samples/sampler/findrepl.xpm +63 -0
  774. data/samples/sampler/forward.xpm +21 -0
  775. data/samples/sampler/paste.xpm +46 -0
  776. data/samples/sampler/play.xpm +24 -0
  777. data/samples/sampler/redo.xpm +58 -0
  778. data/samples/sampler/sample.rb +347 -0
  779. data/samples/sampler/stc_editor.rb +321 -0
  780. data/samples/sampler/txt_editor.rb +130 -0
  781. data/samples/sampler/undo.xpm +58 -0
  782. data/samples/sampler.rb +394 -0
  783. data/samples/splash/mobile.xpm +1835 -0
  784. data/samples/splash/splash.png +0 -0
  785. data/samples/splash/splash.rb +164 -0
  786. data/samples/splash/tn_splash.png +0 -0
  787. data/samples/text/document-open.png +0 -0
  788. data/samples/text/document-save.png +0 -0
  789. data/samples/text/edit-copy.png +0 -0
  790. data/samples/text/edit-cut.png +0 -0
  791. data/samples/text/edit-paste.png +0 -0
  792. data/samples/text/edit-redo.png +0 -0
  793. data/samples/text/edit-undo.png +0 -0
  794. data/samples/text/format-text-bold.png +0 -0
  795. data/samples/text/format-text-italic.png +0 -0
  796. data/samples/text/format-text-underline.png +0 -0
  797. data/samples/text/mondrian.ico +0 -0
  798. data/samples/text/mondrian.xpm +44 -0
  799. data/samples/text/preferences-desktop-font.png +0 -0
  800. data/samples/text/rich_textctrl.rb +326 -0
  801. data/samples/text/scintilla.rb +179 -0
  802. data/samples/text/textctrl.rb +124 -0
  803. data/samples/text/tn_rich_textctrl.png +0 -0
  804. data/samples/text/tn_scintilla.png +0 -0
  805. data/samples/text/tn_textctrl.png +0 -0
  806. data/samples/text/tn_unicode.png +0 -0
  807. data/samples/text/unicode.rb +238 -0
  808. data/samples/text/utf8.txt +15 -0
  809. data/samples/treectrl/checked.xpm +54 -0
  810. data/samples/treectrl/icon1.xpm +79 -0
  811. data/samples/treectrl/icon2.xpm +53 -0
  812. data/samples/treectrl/icon3.xpm +79 -0
  813. data/samples/treectrl/icon4.xpm +43 -0
  814. data/samples/treectrl/icon5.xpm +79 -0
  815. data/samples/treectrl/state1.xpm +145 -0
  816. data/samples/treectrl/state2.xpm +144 -0
  817. data/samples/treectrl/state3.xpm +142 -0
  818. data/samples/treectrl/state4.xpm +145 -0
  819. data/samples/treectrl/state5.xpm +85 -0
  820. data/samples/treectrl/tn_treectrl.png +0 -0
  821. data/samples/treectrl/treectrl.rb +1720 -0
  822. data/samples/treectrl/unchecked.xpm +30 -0
  823. data/samples/xrc/custom_dialog.xrc +46 -0
  824. data/samples/xrc/custom_xrc_sample.rb +84 -0
  825. data/samples/xrc/samples.xrc +46 -0
  826. data/samples/xrc/tn_xrc_sample.png +0 -0
  827. data/samples/xrc/xrc_sample.rb +86 -0
  828. data/tests/test_basic.rb +20 -0
  829. data/tests/test_clipboard.rb +241 -0
  830. data/tests/test_dialog.rb +28 -0
  831. data/tests/test_event_handling.rb +103 -0
  832. data/tests/test_events.rb +45 -0
  833. data/tests/test_geometry.rb +141 -0
  834. data/tests/test_intl.rb +107 -0
  835. data/tests/test_item_data.rb +120 -0
  836. data/tests/test_variant.rb +151 -0
  837. data/tests/testapp.rb +40 -0
  838. data/tests/testapp_noframe.rb +28 -0
  839. metadata +930 -0
@@ -0,0 +1,2414 @@
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
+ # Valid values for {Wx::Window#show_with_effect} and {Wx::Window#hide_with_effect}.
10
+ #
11
+ #
12
+ #
13
+ class ShowEffect < Wx::Enum
14
+
15
+ # No effect, equivalent to normal {Wx::Window#show} or Hide() call.
16
+ #
17
+ SHOW_EFFECT_NONE = Wx::ShowEffect.new(0)
18
+
19
+ # Roll window to the left.
20
+ #
21
+ SHOW_EFFECT_ROLL_TO_LEFT = Wx::ShowEffect.new(1)
22
+
23
+ # Roll window to the right.
24
+ #
25
+ SHOW_EFFECT_ROLL_TO_RIGHT = Wx::ShowEffect.new(2)
26
+
27
+ # Roll window to the top.
28
+ #
29
+ SHOW_EFFECT_ROLL_TO_TOP = Wx::ShowEffect.new(3)
30
+
31
+ # Roll window to the bottom.
32
+ #
33
+ SHOW_EFFECT_ROLL_TO_BOTTOM = Wx::ShowEffect.new(4)
34
+
35
+ # Slide window to the left.
36
+ #
37
+ SHOW_EFFECT_SLIDE_TO_LEFT = Wx::ShowEffect.new(5)
38
+
39
+ # Slide window to the right.
40
+ #
41
+ SHOW_EFFECT_SLIDE_TO_RIGHT = Wx::ShowEffect.new(6)
42
+
43
+ # Slide window to the top.
44
+ #
45
+ SHOW_EFFECT_SLIDE_TO_TOP = Wx::ShowEffect.new(7)
46
+
47
+ # Slide window to the bottom.
48
+ #
49
+ SHOW_EFFECT_SLIDE_TO_BOTTOM = Wx::ShowEffect.new(8)
50
+
51
+ # Fade in or out effect.
52
+ #
53
+ SHOW_EFFECT_BLEND = Wx::ShowEffect.new(9)
54
+
55
+ # Expanding or collapsing effect.
56
+ #
57
+ SHOW_EFFECT_EXPAND = Wx::ShowEffect.new(10)
58
+
59
+ #
60
+ #
61
+ SHOW_EFFECT_MAX = Wx::ShowEffect.new(11)
62
+
63
+ end # ShowEffect
64
+
65
+ # Don't generate any touch events.
66
+ #
67
+ TOUCH_NONE = 0
68
+
69
+ # Generate {Wx::PanGestureEvent} for vertical pans.
70
+ #
71
+ TOUCH_VERTICAL_PAN_GESTURE = 1
72
+
73
+ # Generate {Wx::PanGestureEvent} for horizontal pans.
74
+ #
75
+ TOUCH_HORIZONTAL_PAN_GESTURE = 2
76
+
77
+ # Generate {Wx::PanGestureEvent} for any pans.
78
+ #
79
+ TOUCH_PAN_GESTURES = 3
80
+
81
+ # Generate {Wx::ZoomGestureEvent}.
82
+ #
83
+ TOUCH_ZOOM_GESTURE = 4
84
+
85
+ # Generate {Wx::RotateGestureEvent}.
86
+ #
87
+ TOUCH_ROTATE_GESTURE = 8
88
+
89
+ # Generate events for press or tap gestures such as {Wx::TwoFingerTapEvent}, {Wx::LongPressEvent} and {Wx::PressAndTapEvent}.
90
+ #
91
+ TOUCH_PRESS_GESTURES = 16
92
+
93
+ # Enable all supported gesture events.
94
+ #
95
+ TOUCH_ALL_GESTURES = 31
96
+
97
+ #
98
+ #
99
+ SEND_EVENT_POST = 1
100
+
101
+ # Different window variants, on platforms like eg mac uses different rendering sizes.
102
+ #
103
+ #
104
+ #
105
+ class WindowVariant < Wx::Enum
106
+
107
+ # Normal size.
108
+ #
109
+ WINDOW_VARIANT_NORMAL = Wx::WindowVariant.new(0)
110
+
111
+ # Smaller size (about 25 % smaller than normal)
112
+ #
113
+ WINDOW_VARIANT_SMALL = Wx::WindowVariant.new(1)
114
+
115
+ # Mini size (about 33 % smaller than normal)
116
+ #
117
+ WINDOW_VARIANT_MINI = Wx::WindowVariant.new(2)
118
+
119
+ # Large size (about 25 % larger than normal)
120
+ #
121
+ WINDOW_VARIANT_LARGE = Wx::WindowVariant.new(3)
122
+
123
+ #
124
+ #
125
+ WINDOW_VARIANT_MAX = Wx::WindowVariant.new(4)
126
+
127
+ end # WindowVariant
128
+
129
+ # Find the deepest window at the mouse pointer position, returning the window and current pointer position in screen coordinates.
130
+ # Include file: #include <wx/window.h>
131
+ # @param pt [Array(Integer, Integer), Wx::Point]
132
+ # @return [Wx::Window]
133
+ def self.find_window_at_pointer(pt) end
134
+
135
+ # Gets the currently active window (implemented for MSW and GTK only currently, always returns NULL in the other ports).
136
+ # Include file: #include <wx/window.h>
137
+ # @return [Wx::Window]
138
+ def self.get_active_window; end
139
+
140
+ # Returns the first top level parent of the given window, or in other words, the frame or dialog containing it, or NULL.
141
+ # Notice that if window is itself already a TLW, it is returned directly.
142
+ # Include file: #include <wx/window.h>
143
+ # @param window [Wx::Window]
144
+ # @return [Wx::Window]
145
+ def self.get_top_level_parent(window) end
146
+
147
+ # Return a string with human-readable platform-specific description of the window useful for diagnostic purposes.
148
+ # The string returned from this function doesn't have any fixed form and can vary between different wxWidgets ports and versions, but contains some useful description of the window and uniquely identifies it. This can be useful to include in debug or tracing messages.
149
+ #
150
+ # Include file: #include <wx/window.h>
151
+ # @param window [Wx::Window] Window pointer which is allowed to be NULL.
152
+ # @return [String]
153
+ def self.dump_window(window) end
154
+
155
+ # {Wx::Window} is the base class for all windows and represents any visible object on screen.
156
+ # All controls, top level windows and so on are windows. Sizers and device contexts are not, however, as they don't appear on screen themselves.
157
+ # Please note that all children of the window will be deleted automatically by the destructor before the window itself is deleted which means that you don't have to worry about deleting them manually. Please see the window deletion overview for more information.
158
+ # Also note that in this, and many others, wxWidgets classes some <code>GetXXX()</code> methods may be overloaded (as, for example, {Wx::Window#get_size} or {Wx::Window#get_client_size}). In this case, the overloads are non-virtual because having multiple virtual functions with the same name results in a virtual function name hiding at the derived class level (in English, this means that the derived class has to override all overloaded variants if it overrides any of them). To allow overriding them in the derived class, wxWidgets uses a unique protected virtual <code>DoGetXXX()</code> method and all <code>GetXXX()</code> ones are forwarded to it, so overriding the former changes the behaviour of the latter.
159
+ # === Styles
160
+ #
161
+ # This class supports the following styles:
162
+ #
163
+ # - {Wx::Border::BORDER_DEFAULT}: The window class will decide the kind of border to show, if any.
164
+ # - {Wx::Border::BORDER_SIMPLE}: Displays a thin border around the window. {Wx::SIMPLE_BORDER} is the old name for this style.
165
+ # - {Wx::Border::BORDER_SUNKEN}: Displays a sunken border. {Wx::SUNKEN_BORDER} is the old name for this style.
166
+ # - {Wx::Border::BORDER_RAISED}: Displays a raised border. {Wx::RAISED_BORDER} is the old name for this style.
167
+ # - {Wx::Border::BORDER_STATIC}: Displays a border suitable for a static control. {Wx::STATIC_BORDER} is the old name for this style. Windows only.
168
+ # - {Wx::Border::BORDER_THEME}: Displays a native border suitable for a control, on the current platform. On Windows, this will be a themed border; on most other platforms a sunken border will be used. For more information for themed borders on Windows, please see Themed borders on Windows.
169
+ # - {Wx::Border::BORDER_NONE}: Displays no border, overriding the default border style for the window. {Wx::NO_BORDER} is the old name for this style.
170
+ # - {Wx::Border::BORDER_DOUBLE}: This style is obsolete and should not be used.
171
+ # - {Wx::TRANSPARENT_WINDOW}: The window is transparent, that is, it will not receive paint events. Windows only.
172
+ # - {Wx::TAB_TRAVERSAL}: This style is used by wxWidgets for the windows supporting TAB navigation among their children, such as {Wx::Dialog} and {Wx::Panel}. It should almost never be used in the application code.
173
+ # - {Wx::WANTS_CHARS}: Use this to indicate that the window wants to get all char/key events for all keys - even for keys like TAB or ENTER which are usually used for dialog navigation and which wouldn't be generated without this style. If you need to use this style in order to get the arrows or etc., but would still like to have normal keyboard navigation take place, you should call Navigate in response to the key events for Tab and Shift-Tab.
174
+ # - {Wx::NO_FULL_REPAINT_ON_RESIZE}: On Windows, this style used to disable repainting the window completely when its size is changed. Since this behaviour is now the default, the style is now obsolete and no longer has an effect.
175
+ # - {Wx::VSCROLL}: Use this style to enable a vertical scrollbar. Notice that this style cannot be used with native controls which don't support scrollbars nor with top-level windows in most ports.
176
+ # - {Wx::HSCROLL}: Use this style to enable a horizontal scrollbar. The same limitations as for {Wx::VSCROLL} apply to this style.
177
+ # - {Wx::ALWAYS_SHOW_SB}: If a window has scrollbars, disable them instead of hiding them when they are not needed (i.e. when the size of the window is big enough to not require the scrollbars to navigate it). This style is currently implemented for {Wx::MSW}, {Wx::GTK} and {Wx::Universal} and does nothing on the other platforms.
178
+ # - {Wx::CLIP_CHILDREN}: Use this style to eliminate flicker caused by the background being repainted, then children being painted over them. Windows only.
179
+ # - {Wx::FULL_REPAINT_ON_RESIZE}: Use this style to force a complete redraw of the window whenever it is resized instead of redrawing just the part of the window affected by resizing. Note that this was the behaviour by default before 2.5.1 release and that if you experience redraw problems with code which previously used to work you may want to try this. Currently this style applies on GTK+ 2 and Windows only, and full repainting is always done on other platforms.
180
+ #
181
+ # === Extra Styles
182
+ #
183
+ # This class supports the following extra styles:
184
+ #
185
+ # - {Wx::WS_EX_BLOCK_EVENTS}: {Wx::CommandEvents} and the objects of the derived classes are forwarded to the parent window and so on recursively by default. Using this flag for the given window allows blocking this propagation at this window, i.e. prevent the events from being propagated further upwards. Dialogs have this flag on by default for the reasons explained in the Events and Event Handling.
186
+ # - {Wx::WS_EX_TRANSIENT}: Don't use this window as an implicit parent for the other windows: this must be used with transient windows as otherwise there is the risk of creating a dialog/frame with this window as a parent, which would lead to a crash if the parent were destroyed before the child.
187
+ # - {Wx::WS_EX_CONTEXTHELP}: Under Windows, puts a query button on the caption. When pressed, Windows will go into a context-sensitive help mode and wxWidgets will send a {Wx::EVT_HELP} event if the user clicked on an application window. This style cannot be used (because of the underlying native behaviour) together with {Wx::MAXIMIZE_BOX} or {Wx::MINIMIZE_BOX}, so these two styles are automatically turned off if this one is used.
188
+ # - {Wx::WS_EX_PROCESS_IDLE}: This window should always process idle events, even if the mode set by {Wx::IdleEvent.set_mode} is {Wx::IdleMode::IDLE_PROCESS_SPECIFIED}.
189
+ # - {Wx::WS_EX_PROCESS_UI_UPDATES}: This window should always process UI update events, even if the mode set by {Wx::UpdateUIEvent.set_mode} is {Wx::UpdateUIMode::UPDATE_UI_PROCESS_SPECIFIED}.
190
+ #
191
+ # === Events emitted by this class
192
+ #
193
+ # Event handler methods for events emitted by this class:
194
+ #
195
+ # - {Wx::EvtHandler#EVT_ACTIVATE}(meth = nil, &block): Process a {Wx::EVT_ACTIVATE} event. See {Wx::ActivateEvent}.
196
+ # - {Wx::EvtHandler#evt_child_focus}(meth = nil, &block): Process a {Wx::EVT_CHILD_FOCUS} event. See {Wx::ChildFocusEvent}.
197
+ # - {Wx::EvtHandler#evt_context_menu}(meth = nil, &block): A right click (or other context menu command depending on platform) has been detected. See {Wx::ContextMenuEvent}.
198
+ # - {Wx::EvtHandler#evt_help}(id, meth = nil, &block): Process a {Wx::EVT_HELP} event. See {Wx::HelpEvent}.
199
+ # - {Wx::EvtHandler#evt_help_range}(id1, id2, meth = nil, &block): Process a {Wx::EVT_HELP} event for a range of ids. See {Wx::HelpEvent}.
200
+ # - {Wx::EvtHandler#evt_drop_files}(meth = nil, &block): Process a {Wx::EVT_DROP_FILES} event. See {Wx::DropFilesEvent}.
201
+ # - {Wx::EvtHandler#evt_erase_background}(meth = nil, &block): Process a {Wx::EVT_ERASE_BACKGROUND} event. See {Wx::EraseEvent}.
202
+ # - {Wx::EvtHandler#evt_set_focus}(meth = nil, &block): Process a {Wx::EVT_SET_FOCUS} event. See {Wx::FocusEvent}.
203
+ # - {Wx::EvtHandler#evt_kill_focus}(meth = nil, &block): Process a {Wx::EVT_KILL_FOCUS} event. See {Wx::FocusEvent}.
204
+ # - {Wx::EvtHandler#evt_idle}(meth = nil, &block): Process a {Wx::EVT_IDLE} event. See {Wx::IdleEvent}.
205
+ # - {Wx::EvtHandler}evt_joy_*(meth = nil, &block): Processes joystick events. See {Wx::JoystickEvent}.
206
+ # - {Wx::EvtHandler#evt_key_down}(meth = nil, &block): Process a {Wx::EVT_KEY_DOWN} event (any key has been pressed). See {Wx::KeyEvent}.
207
+ # - {Wx::EvtHandler#evt_key_up}(meth = nil, &block): Process a {Wx::EVT_KEY_UP} event (any key has been released). See {Wx::KeyEvent}.
208
+ # - {Wx::EvtHandler#evt_char}(meth = nil, &block): Process a {Wx::EVT_CHAR} event. See {Wx::KeyEvent}.
209
+ # - {Wx::EvtHandler#evt_char_hook}(meth = nil, &block): Process a {Wx::EVT_CHAR_HOOK} event. See {Wx::KeyEvent}.
210
+ # - {Wx::EvtHandler#evt_mouse_capture_lost}(meth = nil, &block): Process a {Wx::EVT_MOUSE_CAPTURE_LOST} event. See {Wx::MouseCaptureLostEvent}.
211
+ # - {Wx::EvtHandler#evt_mouse_capture_changed}(meth = nil, &block): Process a {Wx::EVT_MOUSE_CAPTURE_CHANGED} event. See {Wx::MouseCaptureChangedEvent}.
212
+ # - {Wx::EvtHandler}evt_mouse_*(meth = nil, &block): See {Wx::MouseEvent}.
213
+ # - {Wx::EvtHandler#evt_paint}(meth = nil, &block): Process a {Wx::EVT_PAINT} event. See {Wx::PaintEvent}.
214
+ # - {Wx::EvtHandler}evt_power_*(meth = nil, &block): The system power state changed. See {Wx::PowerEvent}.
215
+ # - {Wx::EvtHandler}evt_scrollwin_*(meth = nil, &block): Process scroll events. See {Wx::ScrollWinEvent}.
216
+ # - {Wx::EvtHandler#evt_set_cursor}(meth = nil, &block): Process a {Wx::EVT_SET_CURSOR} event. See {Wx::SetCursorEvent}.
217
+ # - {Wx::EvtHandler#evt_size}(meth = nil, &block): Process a {Wx::EVT_SIZE} event. See {Wx::SizeEvent}.
218
+ # - {Wx::EvtHandler#evt_sys_colour_changed}(meth = nil, &block): Process a {Wx::EVT_SYS_COLOUR_CHANGED} event. See {Wx::SysColourChangedEvent}.
219
+ #
220
+ # ===
221
+ #
222
+ # Category: Miscellaneous Windows
223
+ # @see Events and Event Handling
224
+ # @see Window Sizing Overview
225
+ #
226
+ #
227
+ class Window < EvtHandler
228
+
229
+ # This method may be overridden in the derived classes to return false to indicate that this control doesn't accept input at all (i.e. behaves like e.g. {Wx::StaticText}) and so doesn't need focus.
230
+ #
231
+ # @see Wx::Window#accepts_focus_from_keyboard
232
+ # @return [true,false]
233
+ def accepts_focus; end
234
+
235
+ # This method may be overridden in the derived classes to return false to indicate that while this control can, in principle, have focus if the user clicks it with the mouse, it shouldn't be included in the TAB traversal chain when using the keyboard.
236
+ # @return [true,false]
237
+ def accepts_focus_from_keyboard; end
238
+
239
+ # Overridden to indicate whether this window or one of its children accepts focus.
240
+ # Usually it's the same as {Wx::Window#accepts_focus} but is overridden for container windows.
241
+ # @return [true,false]
242
+ def accepts_focus_recursively; end
243
+
244
+ # Disable giving focus to this window using the keyboard navigation keys.
245
+ # Pressing TAB key will skip this window if this function was called on it, but it will still be possible to focus it by clicking on it with a pointing device.
246
+ # @return [void]
247
+ def disable_focus_from_keyboard; end
248
+
249
+ # Can this window itself have focus?
250
+ # @return [true,false]
251
+ def is_focusable; end
252
+ alias_method :focusable?, :is_focusable
253
+
254
+ # Can this window have focus right now?
255
+ # If this method returns true, it means that calling {Wx::Window#set_focus} will put focus either to this window or one of its children, if you need to know whether this window accepts focus itself, use {Wx::Window#is_focusable}
256
+ # @return [true,false]
257
+ def can_accept_focus; end
258
+ alias_method :can_accept_focus?, :can_accept_focus
259
+
260
+ # Can this window be assigned focus from keyboard right now?
261
+ # @return [true,false]
262
+ def can_accept_focus_from_keyboard; end
263
+ alias_method :can_accept_focus_from_keyboard?, :can_accept_focus_from_keyboard
264
+
265
+ # Returns true if the window (or in case of composite controls, its main child window) has focus.
266
+ #
267
+ # @see Wx::Window.find_focus
268
+ # @return [true,false]
269
+ def has_focus; end
270
+ alias_method :has_focus?, :has_focus
271
+
272
+ # This method is only implemented by ports which have support for native TAB traversal (such as GTK+ 2.0).
273
+ # It is called by wxWidgets' container control code to give the native system a hint when doing TAB traversal. A call to this does not disable or change the effect of programmatically calling {Wx::Window#set_focus}.
274
+ # @see Wx::FocusEvent
275
+ # @see Wx::Panel#set_focus
276
+ # @see Wx::Panel#set_focus_ignoring_children
277
+ # @param canFocus [true,false]
278
+ # @return [void]
279
+ def set_can_focus(canFocus) end
280
+ alias_method :can_focus=, :set_can_focus
281
+
282
+ # Enables or disables visible indication of keyboard focus.
283
+ # By default, controls behave in platform-appropriate way and show focus in the same way native applications do. In some very rare circumstances it may be desirable to change the default (notably multiline text controls don't normally have a focus indicator on Mac), which this method allows. It should only be used if you have a good understanding of the native platform's guidelines and user expectations.
284
+ # This method is only implemented on Mac.
285
+ # @param enable [true,false]
286
+ # @return [void]
287
+ def enable_visible_focus(enable) end
288
+
289
+ # This sets the window to receive keyboard input.
290
+ #
291
+ # @see Wx::Window#has_focus
292
+ # @see Wx::FocusEvent
293
+ # @see Wx::Panel#set_focus
294
+ # @see Wx::Panel#set_focus_ignoring_children
295
+ # @return [void]
296
+ def set_focus; end
297
+
298
+ # This function is called by wxWidgets keyboard navigation code when the user gives the focus to this window from keyboard (e.g. using TAB key).
299
+ # By default this method simply calls {Wx::Window#set_focus} but can be overridden to do something in addition to this in the derived classes.
300
+ # @return [void]
301
+ def set_focus_from_kbd; end
302
+
303
+ # Adds a child window.
304
+ # This is called automatically by window creation functions so should not be required by the application programmer. Notice that this function is mostly internal to wxWidgets and shouldn't be called by the user code.
305
+ # @param child [Wx::Window] Child window to add.
306
+ # @return [void]
307
+ def add_child(child) end
308
+
309
+ # Destroys all children of a window.
310
+ # Called automatically by the destructor.
311
+ # @return [true,false]
312
+ def destroy_children; end
313
+
314
+ # @overload get_children()
315
+ # Returns a reference to the list of the window's children.
316
+ # {Wx::WindowList} is a type-safe {Wx::List}-like class whose elements are of type <code>wxWindow*</code>.
317
+ # @return [Array<Wx::Window>]
318
+ # @overload get_children()
319
+ # Returns a const reference to the list of the window's children.
320
+ # {Wx::WindowList} is a type-safe {Wx::List}-like class whose elements are of type <code>wxWindow*</code>.
321
+ # @return [Wx::WindowList]
322
+ def get_children(*args) end
323
+ alias_method :children, :get_children
324
+
325
+ # Removes a child window.
326
+ # This is called automatically by window deletion functions so should not be required by the application programmer. Notice that this function is mostly internal to wxWidgets and shouldn't be called by the user code.
327
+ # @param child [Wx::Window] Child window to remove.
328
+ # @return [void]
329
+ def remove_child(child) end
330
+
331
+ # Returns the grandparent of a window, or NULL if there isn't one.
332
+ # @return [Wx::Window]
333
+ def get_grand_parent; end
334
+ alias_method :grand_parent, :get_grand_parent
335
+
336
+ # Returns the next window after this one among the parent's children or NULL if this window is the last child.
337
+ #
338
+ # @see Wx::Window#get_prev_sibling
339
+ # @return [Wx::Window]
340
+ def get_next_sibling; end
341
+ alias_method :next_sibling, :get_next_sibling
342
+
343
+ # Returns the parent of the window, or NULL if there is no parent.
344
+ # @return [Wx::Window]
345
+ def get_parent; end
346
+ alias_method :parent, :get_parent
347
+
348
+ # Returns the previous window before this one among the parent's children or <code></code> NULL if this window is the first child.
349
+ #
350
+ # @see Wx::Window#get_next_sibling
351
+ # @return [Wx::Window]
352
+ def get_prev_sibling; end
353
+ alias_method :prev_sibling, :get_prev_sibling
354
+
355
+ # Check if the specified window is a descendant of this one.
356
+ # Returns true if the window is a descendant (i.e. a child or grand-child or grand-grand-child or ...) of this one.
357
+ # Notice that a window can never be a descendant of another one if they are in different top level windows, i.e. a child of a {Wx::Dialog} is not considered to be a descendant of dialogs parent {Wx::Frame}.
358
+ # @param win [Wx::Window] Any window, possible NULL (false is always returned then).
359
+ # @return [true,false]
360
+ def is_descendant(win) end
361
+ alias_method :descendant?, :is_descendant
362
+
363
+ # Reparents the window, i.e. the window will be removed from its current parent window (e.g.
364
+ # a non-standard toolbar in a {Wx::Frame}) and then re-inserted into another.
365
+ # Notice that currently you need to explicitly call {Wx::Notebook#remove_page} before reparenting a notebook page.
366
+ # @param newParent [Wx::Window] New parent.
367
+ # @return [true,false]
368
+ def reparent(newParent) end
369
+
370
+ # Call this function to force one or both scrollbars to be always shown, even if the window is big enough to show its entire contents without scrolling.
371
+ # This function is currently not implemented.
372
+ # @param hflag [true,false] Whether the horizontal scroll bar should always be visible.
373
+ # @param vflag [true,false] Whether the vertical scroll bar should always be visible.
374
+ # @return [void]
375
+ def always_show_scrollbars(hflag=true, vflag=true) end
376
+
377
+ # Returns the built-in scrollbar position.
378
+ #
379
+ # @see Wx::Window#set_scrollbar
380
+ # @param orientation [Integer]
381
+ # @return [Integer]
382
+ def get_scroll_pos(orientation) end
383
+ alias_method :scroll_pos, :get_scroll_pos
384
+
385
+ # Returns the built-in scrollbar range.
386
+ #
387
+ # @see Wx::Window#set_scrollbar
388
+ # @param orientation [Integer]
389
+ # @return [Integer]
390
+ def get_scroll_range(orientation) end
391
+ alias_method :scroll_range, :get_scroll_range
392
+
393
+ # Returns the built-in scrollbar thumb size.
394
+ #
395
+ # @see Wx::Window#set_scrollbar
396
+ # @param orientation [Integer]
397
+ # @return [Integer]
398
+ def get_scroll_thumb(orientation) end
399
+ alias_method :scroll_thumb, :get_scroll_thumb
400
+
401
+ # Returns true if this window can have a scroll bar in this orientation.
402
+ # @param orient [Integer] Orientation to check, either {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}.
403
+ # @return [true,false]
404
+ def can_scroll(orient) end
405
+ alias_method :can_scroll?, :can_scroll
406
+
407
+ # Returns true if this window currently has a scroll bar for this orientation.
408
+ # This method may return false even when {Wx::Window#can_scroll} for the same orientation returns true, but if {Wx::Window#can_scroll} returns false, i.e. scrolling in this direction is not enabled at all, {Wx::Window#has_scrollbar} always returns false as well.
409
+ # @param orient [Integer] Orientation to check, either {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}.
410
+ # @return [true,false]
411
+ def has_scrollbar(orient) end
412
+ alias_method :has_scrollbar?, :has_scrollbar
413
+
414
+ # Return whether a scrollbar is always shown.
415
+ #
416
+ # @see Wx::Window#always_show_scrollbars
417
+ # @param orient [Integer] Orientation to check, either {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}.
418
+ # @return [true,false]
419
+ def is_scrollbar_always_shown(orient) end
420
+ alias_method :scrollbar_always_shown?, :is_scrollbar_always_shown
421
+
422
+ # Scrolls the window by the given number of lines down (if lines is positive) or up.
423
+ # Returns true if the window was scrolled, false if it was already on top/bottom and nothing was done.
424
+ #
425
+ # This function is currently only implemented under MSW and {Wx::TextCtrl} under {Wx::GTK} (it also works for {Wx::Scrolled} classes under all platforms).
426
+ # @see Wx::Window#scroll_pages
427
+ # @param lines [Integer]
428
+ # @return [true,false]
429
+ def scroll_lines(lines) end
430
+
431
+ # Scrolls the window by the given number of pages down (if pages is positive) or up.
432
+ # Returns true if the window was scrolled, false if it was already on top/bottom and nothing was done.
433
+ #
434
+ # This function is currently only implemented under MSW and {Wx::GTK}.
435
+ # @see Wx::Window#scroll_lines
436
+ # @param pages [Integer]
437
+ # @return [true,false]
438
+ def scroll_pages(pages) end
439
+
440
+ # Physically scrolls the pixels in the window and move child windows accordingly.
441
+ # Note that you can often use {Wx::Scrolled} instead of using this function directly.
442
+ # @param dx [Integer] Amount to scroll horizontally.
443
+ # @param dy [Integer] Amount to scroll vertically.
444
+ # @param rect [Wx::Rect] Rectangle to scroll, if it is NULL, the whole window is scrolled (this is always the case under {Wx::GTK} which doesn't support this parameter)
445
+ # @return [void]
446
+ def scroll_window(dx, dy, rect=nil) end
447
+
448
+ # Same as {Wx::Window#scroll_lines} (-1).
449
+ # @return [true,false]
450
+ def line_up; end
451
+
452
+ # Same as {Wx::Window#scroll_lines} (1).
453
+ # @return [true,false]
454
+ def line_down; end
455
+
456
+ # Same as {Wx::Window#scroll_pages} (-1).
457
+ # @return [true,false]
458
+ def page_up; end
459
+
460
+ # Same as {Wx::Window#scroll_pages} (1).
461
+ # @return [true,false]
462
+ def page_down; end
463
+
464
+ # Sets the position of one of the built-in scrollbars.
465
+ # This function does not directly affect the contents of the window: it is up to the application to take note of scrollbar attributes and redraw contents accordingly.
466
+ # @see Wx::Window#set_scrollbar
467
+ # @see Wx::Window#get_scroll_pos
468
+ # @see Wx::Window#get_scroll_thumb
469
+ # @see Wx::ScrollBar
470
+ # @see Wx::Scrolled
471
+ # @param orientation [Integer] Determines the scrollbar whose position is to be set. May be {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}.
472
+ # @param pos [Integer] Position in scroll units.
473
+ # @param refresh [true,false] true to redraw the scrollbar, false otherwise.
474
+ # @return [void]
475
+ def set_scroll_pos(orientation, pos, refresh=true) end
476
+
477
+ # Sets the scrollbar properties of a built-in scrollbar.
478
+ # Let's say you wish to display 50 lines of text, using the same font. The window is sized so that you can only see 16 lines at a time. You would use:
479
+ #
480
+ # SetScrollbar(wxVERTICAL, 0, 16, 50);
481
+ # Note that with the window at this size, the thumb position can never go above 50 minus 16, or 34. You can determine how many lines are currently visible by dividing the current view size by the character height in pixels. When defining your own scrollbar behaviour, you will always need to recalculate the scrollbar settings when the window size changes. You could therefore put your scrollbar calculations and SetScrollbar call into a function named AdjustScrollbars, which can be called initially and also from your {Wx::SizeEvent} handler function.
482
+ # @see Scrolled Windows
483
+ # @see Wx::ScrollBar
484
+ # @see Wx::Scrolled
485
+ # @see Wx::ScrollWinEvent
486
+ # @param orientation [Integer] Determines the scrollbar whose page size is to be set. May be {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}.
487
+ # @param position [Integer] The position of the scrollbar in scroll units.
488
+ # @param thumbSize [Integer] The size of the thumb, or visible portion of the scrollbar, in scroll units.
489
+ # @param range [Integer] The maximum position of the scrollbar. Value of -1 can be used to ask for the scrollbar to be shown but in the disabled state: this can be used to avoid removing the scrollbar even when it is not needed (currently this is only implemented in {Wx::MSW} port).
490
+ # @param refresh [true,false] true to redraw the scrollbar, false otherwise.
491
+ # @return [void]
492
+ def set_scrollbar(orientation, position, thumbSize, range, refresh=true) end
493
+
494
+ # Prepare for changing positions of multiple child windows.
495
+ # This method should be called before changing positions of multiple child windows to reduce flicker and, in MSW case, even avoid display corruption in some cases. It is used internally by wxWidgets and called automatically when the window size changes but it can also be useful to call it from outside of the library if a repositioning involving multiple children is done without changing the window size.
496
+ # If this method returns true, then {Wx::Window#end_repositioning_children} must be called after setting all children positions. Use {Wx::ChildrenRepositioningGuard} class to ensure that this requirement is satisfied.
497
+ # @return [true,false]
498
+ def begin_repositioning_children; end
499
+
500
+ # Fix child window positions after setting all of them at once.
501
+ # This method must be called if and only if the previous call to {Wx::Window#begin_repositioning_children} returned true.
502
+ # @return [void]
503
+ def end_repositioning_children; end
504
+
505
+ # Sets the cached best size value.
506
+ #
507
+ # @see Wx::Window#get_best_size
508
+ # @param size [Array(Integer, Integer), Wx::Size]
509
+ # @return [void]
510
+ def cache_best_size(size) end
511
+
512
+ # Converts client area size size to corresponding window size.
513
+ # In other words, the returned value is what would {Wx::Window#get_size} return if this window had client area of given size. Components with {Wx::DEFAULT_COORD} value are left unchanged. Note that the conversion is not always exact, it assumes that non-client area doesn't change and so doesn't take into account things like menu bar (un)wrapping or (dis)appearance of the scrollbars.
514
+ # @see Wx::Window#window_to_client_size
515
+ # @param size [Array(Integer, Integer), Wx::Size]
516
+ # @return [Wx::Size]
517
+ def client_to_window_size(size) end
518
+
519
+ # Converts window size size to corresponding client area size In other words, the returned value is what would {Wx::Window#get_client_size} return if this window had given window size.
520
+ # Components with {Wx::DEFAULT_COORD} value are left unchanged.
521
+ # Note that the conversion is not always exact, it assumes that non-client area doesn't change and so doesn't take into account things like menu bar (un)wrapping or (dis)appearance of the scrollbars.
522
+ # @see Wx::Window#client_to_window_size
523
+ # @param size [Array(Integer, Integer), Wx::Size]
524
+ # @return [Wx::Size]
525
+ def window_to_client_size(size) end
526
+
527
+ # Sizes the window to fit its best size.
528
+ # Using this function is equivalent to setting window size to the return value of {Wx::Window#get_best_size}.
529
+ # Note that, unlike {Wx::Window#set_sizer_and_fit}, this function only changes the current window size and doesn't change its minimal size.
530
+ # @see Window Sizing Overview
531
+ # @return [void]
532
+ def fit; end
533
+
534
+ # Similar to {Wx::Window#fit}, but sizes the interior (virtual) size of a window.
535
+ # Mainly useful with scrolled windows to reset scrollbars after sizing changes that do not trigger a size event, and/or scrolled windows without an interior sizer. This function similarly won't do anything if there are no subwindows.
536
+ # @return [void]
537
+ def fit_inside; end
538
+
539
+ # @overload from_dip(sz)
540
+ # Convert DPI-independent pixel values to the value in pixels appropriate for the current toolkit.
541
+ # A DPI-independent pixel is just a pixel at the standard 96 DPI resolution. To keep the same physical size at higher resolution, the physical pixel value must be scaled by {Wx::Window#get_dpi_scale_factor} but this scaling may be already done by the underlying toolkit (GTK+, Cocoa, ...) automatically. This method performs the conversion only if it is not already done by the lower level toolkit and so by using it with pixel values you can guarantee that the physical size of the corresponding elements will remain the same in all resolutions under all platforms. For example, instead of creating a bitmap of the hard coded size of 32 pixels you should use
542
+ #
543
+ # wxBitmap bmp(FromDIP(32, 32));
544
+ # to avoid using tiny bitmaps on high DPI screens.
545
+ # Notice that this function is only needed when using hard coded pixel values. It is not necessary if the sizes are already based on the DPI-independent units such as dialog units or if you are relying on the controls automatic best size determination and using sizers to lay out them.
546
+ # Also note that if either component of sz has the special value of -1, it is returned unchanged independently of the current DPI, to preserve the special value of -1 in wxWidgets API (it is often used to mean "unspecified").
547
+ # @param sz [Array(Integer, Integer), Wx::Size]
548
+ # @return [Wx::Size]
549
+ # @overload from_dip(pt)
550
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
551
+ # @param pt [Array(Integer, Integer), Wx::Point]
552
+ # @return [Wx::Point]
553
+ # @overload from_dip(d)
554
+ # Convert DPI-independent distance in pixels to the value in pixels appropriate for the current toolkit.
555
+ # This is the same as FromDIP(const {Wx::Size}& sz) overload, but assumes that the resolution is the same in horizontal and vertical directions.
556
+ # If d has the special value of -1, it is returned unchanged independently of the current DPI.
557
+ # @param d [Integer]
558
+ # @return [Integer]
559
+ def from_dip(*args) end
560
+
561
+ # @overload self.from_dip(sz, w)
562
+ # Non window-specific DPI-independent pixels conversion functions.
563
+ # The display resolution depends on the window in general as different windows can appear on different monitors using different resolutions, however sometimes no window is available for converting the resolution independent pixels to the physical values and in this case these static overloads can be used with NULL value for w argument.
564
+ # Using these methods is discouraged as passing NULL will prevent your application from correctly supporting monitors with different resolutions even in the future wxWidgets versions which will add support for them, and passing non-NULL window is just a less convenient way of calling the non-static {Wx::Window#from_dip} method.
565
+ # @param sz [Array(Integer, Integer), Wx::Size]
566
+ # @param w [Wx::Window]
567
+ # @return [Wx::Size]
568
+ # @overload self.from_dip(pt, w)
569
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
570
+ # @param pt [Array(Integer, Integer), Wx::Point]
571
+ # @param w [Wx::Window]
572
+ # @return [Wx::Point]
573
+ # @overload self.from_dip(d, w)
574
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
575
+ # @param d [Integer]
576
+ # @param w [Wx::Window]
577
+ # @return [Integer]
578
+ def self.from_dip(*args) end
579
+
580
+ # @overload to_dip(sz)
581
+ # Convert pixel values of the current toolkit to DPI-independent pixel values.
582
+ # A DPI-independent pixel is just a pixel at the standard 96 DPI resolution. To keep the same physical size at higher resolution, the physical pixel value must be scaled by {Wx::Window#get_dpi_scale_factor} but this scaling may be already done by the underlying toolkit (GTK+, Cocoa, ...) automatically. This method performs the conversion only if it is not already done by the lower level toolkit, For example, you may want to use this to store window sizes and positions so that they can be re-used regardless of the display DPI:
583
+ #
584
+ # wxPoint pt(ToDIP(GetPosition()));
585
+ # wxSize size(ToDIP(GetSize()));
586
+ #
587
+ # Also note that if either component of sz has the special value of -1, it is returned unchanged independently of the current DPI, to preserve the special value of -1 in wxWidgets API (it is often used to mean "unspecified").
588
+ # @param sz [Array(Integer, Integer), Wx::Size]
589
+ # @return [Wx::Size]
590
+ # @overload to_dip(pt)
591
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
592
+ # @param pt [Array(Integer, Integer), Wx::Point]
593
+ # @return [Wx::Point]
594
+ # @overload to_dip(d)
595
+ # Convert pixel values of the current toolkit to DPI-independent pixel values.
596
+ # This is the same as ToDIP(const {Wx::Size}& sz) overload, but assumes that the resolution is the same in horizontal and vertical directions.
597
+ # If d has the special value of -1, it is returned unchanged independently of the current DPI.
598
+ # @param d [Integer]
599
+ # @return [Integer]
600
+ def to_dip(*args) end
601
+
602
+ # @overload self.to_dip(sz, w)
603
+ # Non window-specific pixel to DPI-independent pixels conversion functions.
604
+ # The display resolution depends on the window in general as different windows can appear on different monitors using different resolutions, however sometimes no window is available for converting the resolution independent pixels to the physical values and in this case these static overloads can be used with NULL value for w argument.
605
+ # Using these methods is discouraged as passing NULL will prevent your application from correctly supporting monitors with different resolutions even in the future wxWidgets versions which will add support for them, and passing non-NULL window is just a less convenient way of calling the non-static {Wx::Window#to_dip} method.
606
+ # @param sz [Array(Integer, Integer), Wx::Size]
607
+ # @param w [Wx::Window]
608
+ # @return [Wx::Size]
609
+ # @overload self.to_dip(pt, w)
610
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
611
+ # @param pt [Array(Integer, Integer), Wx::Point]
612
+ # @param w [Wx::Window]
613
+ # @return [Wx::Point]
614
+ # @overload self.to_dip(d, w)
615
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
616
+ # @param d [Integer]
617
+ # @param w [Wx::Window]
618
+ # @return [Integer]
619
+ def self.to_dip(*args) end
620
+
621
+ # @overload from_phys(sz)
622
+ # Convert from physical pixels to logical pixels.
623
+ # All window coordinates in wxWidgets API are always expressed in logical pixels, but the meaning of logical pixels depends on the platform. Physical pixels always mean the same thing and refer to the actual display pixels or, also, sizes of the bitmaps. Under some platforms logical pixels are actually the same as physical ones (this is the case for MSW), but under other platforms (e.g. GTK or macOS) this is not the case and {Wx::Window#get_content_scale_factor} defines the ratio between one logical and one physical pixel.
624
+ # This function can be used to convert a value in physical pixels to logical pixels independently of the platform used. It simply does nothing under MSW, but divides the input value by the content scale factor under the other platforms.
625
+ # Note that dividing an integer value by scale factor doesn't always yield an integer value. This function rounds the resulting value to the closest integer, e.g. 15 physical pixels are translated to 8, not 7, logical pixels in 200% DPI scaling. This ensures that a physical bitmap of size 15 is not truncated if the result of this function is used to create a window to show it, but it does mean that there will be one extra pixel, not covered by this bitmap, left.
626
+ # @see Wx::Window#from_dip
627
+ # @see Wx::Window#to_phys
628
+ # @param sz [Array(Integer, Integer), Wx::Size]
629
+ # @return [Wx::Size]
630
+ # @overload from_phys(pt)
631
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
632
+ # @param pt [Array(Integer, Integer), Wx::Point]
633
+ # @return [Wx::Point]
634
+ # @overload from_phys(d)
635
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
636
+ # @param d [Integer]
637
+ # @return [Integer]
638
+ def from_phys(*args) end
639
+
640
+ # @overload self.from_phys(sz, w)
641
+ # Convert from physical pixels to logical pixels for any window.
642
+ # This function can be used without any window pointer, i.e. w can be NULL. In this case, it uses the content scale factor of the main screen if supported or just does nothing (i.e. uses scale factor of 1) otherwise.
643
+ # Using member overloads is always preferable, if possible, as they always use the actually appropriate content scale factor.
644
+ # @param sz [Array(Integer, Integer), Wx::Size]
645
+ # @param w [Wx::Window]
646
+ # @return [Wx::Size]
647
+ # @overload self.from_phys(pt, w)
648
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
649
+ # @param pt [Array(Integer, Integer), Wx::Point]
650
+ # @param w [Wx::Window]
651
+ # @return [Wx::Point]
652
+ # @overload self.from_phys(d, w)
653
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
654
+ # @param d [Integer]
655
+ # @param w [Wx::Window]
656
+ # @return [Integer]
657
+ def self.from_phys(*args) end
658
+
659
+ # @overload to_phys(sz)
660
+ # Convert from logical pixels to physical pixels.
661
+ # This function performs the transformation in the converse direction compared to {Wx::Window#from_phys}.
662
+ # @param sz [Array(Integer, Integer), Wx::Size]
663
+ # @return [Wx::Size]
664
+ # @overload to_phys(pt)
665
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
666
+ # @param pt [Array(Integer, Integer), Wx::Point]
667
+ # @return [Wx::Point]
668
+ # @overload to_phys(d)
669
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
670
+ # @param d [Integer]
671
+ # @return [Integer]
672
+ def to_phys(*args) end
673
+
674
+ # @overload self.to_phys(sz, w)
675
+ # Convert from logical pixels to physical pixels for any window.
676
+ # This function can be used without any window pointer, i.e. w can be NULL. In this case, it uses the content scale factor of the main screen if supported or just does nothing (i.e. uses scale factor of 1) otherwise.
677
+ # Using member overloads is always preferable, if possible, as they always use the actually appropriate content scale factor.
678
+ # @param sz [Array(Integer, Integer), Wx::Size]
679
+ # @param w [Wx::Window]
680
+ # @return [Wx::Size]
681
+ # @overload self.to_phys(pt, w)
682
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
683
+ # @param pt [Array(Integer, Integer), Wx::Point]
684
+ # @param w [Wx::Window]
685
+ # @return [Wx::Point]
686
+ # @overload self.to_phys(d, w)
687
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
688
+ # @param d [Integer]
689
+ # @param w [Wx::Window]
690
+ # @return [Integer]
691
+ def self.to_phys(*args) end
692
+
693
+ # This functions returns the best acceptable minimal size for the window.
694
+ # For example, for a static control, it will be the minimal size such that the control label is not truncated. For windows containing subwindows (typically {Wx::Panel}), the size returned by this function will be the same as the size the window would have had after calling {Wx::Window#fit}.
695
+ # Override virtual {Wx::Window#do_get_best_size} or, better, because it's usually more convenient, {Wx::Window#do_get_best_client_size} when writing your own custom window class to change the value returned by this public non-virtual method.
696
+ # Notice that the best size respects the minimal and maximal size explicitly set for the window, if any. So even if some window believes that it needs 200 pixels horizontally, calling {Wx::Window#set_max_size} with a width of 100 would ensure that {Wx::Window#get_best_size} returns the width of at most 100 pixels.
697
+ # @see Wx::Window#cache_best_size
698
+ # @see Window Sizing Overview
699
+ # @return [Wx::Size]
700
+ def get_best_size; end
701
+ alias_method :best_size, :get_best_size
702
+
703
+ # Returns the best height needed by this window if it had the given width.
704
+ #
705
+ # @see Wx::Window#do_get_best_client_height
706
+ # @param width [Integer]
707
+ # @return [Integer]
708
+ def get_best_height(width) end
709
+ alias_method :best_height, :get_best_height
710
+
711
+ # Returns the best width needed by this window if it had the given height.
712
+ #
713
+ # @see Wx::Window#do_get_best_client_width
714
+ # @param height [Integer]
715
+ # @return [Integer]
716
+ def get_best_width(height) end
717
+ alias_method :best_width, :get_best_width
718
+
719
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
720
+ # @return [Wx::Size]
721
+ def get_client_size; end
722
+ alias_method :client_size, :get_client_size
723
+
724
+ # Merges the window's best size into the min size and returns the result.
725
+ # This is the value used by sizers to determine the appropriate amount of space to allocate for the widget.
726
+ # This is the method called by a {Wx::Sizer} when it queries the size of a window or control.
727
+ # @see Wx::Window#get_best_size
728
+ # @see Wx::Window#set_initial_size
729
+ # @see Window Sizing Overview
730
+ # @return [Wx::Size]
731
+ def get_effective_min_size; end
732
+ alias_method :effective_min_size, :get_effective_min_size
733
+
734
+ # Returns the maximum size of window's client area.
735
+ # This is an indication to the sizer layout mechanism that this is the maximum possible size as well as the upper bound on window's size settable using {Wx::Window#set_client_size}.
736
+ # @see Wx::Window#get_max_size
737
+ # @see Window Sizing Overview
738
+ # @return [Wx::Size]
739
+ def get_max_client_size; end
740
+ alias_method :max_client_size, :get_max_client_size
741
+
742
+ # Returns the maximum size of the window.
743
+ # This is an indication to the sizer layout mechanism that this is the maximum possible size as well as the upper bound on window's size settable using {Wx::Window#set_size}.
744
+ # @see Wx::Window#get_max_client_size
745
+ # @see Window Sizing Overview
746
+ # @return [Wx::Size]
747
+ def get_max_size; end
748
+ alias_method :max_size, :get_max_size
749
+
750
+ # Returns the minimum size of window's client area, an indication to the sizer layout mechanism that this is the minimum required size of its client area.
751
+ # It normally just returns the value set by {Wx::Window#set_min_client_size}, but it can be overridden to do the calculation on demand.
752
+ # @see Wx::Window#get_min_size
753
+ # @see Window Sizing Overview
754
+ # @return [Wx::Size]
755
+ def get_min_client_size; end
756
+ alias_method :min_client_size, :get_min_client_size
757
+
758
+ # Returns the minimum size of the window, an indication to the sizer layout mechanism that this is the minimum required size.
759
+ # This method normally just returns the value set by {Wx::Window#set_min_size}, but it can be overridden to do the calculation on demand.
760
+ # @see Wx::Window#get_min_client_size
761
+ # @see Window Sizing Overview
762
+ # @return [Wx::Size]
763
+ def get_min_size; end
764
+ alias_method :min_size, :get_min_size
765
+
766
+ # Returns the horizontal component of window minimal size.
767
+ # The returned value is {Wx::DEFAULT_COORD} if the minimal width was not set.
768
+ # @see Wx::Window#get_min_size
769
+ # @return [Integer]
770
+ def get_min_width; end
771
+ alias_method :min_width, :get_min_width
772
+
773
+ # Returns the vertical component of window minimal size.
774
+ # The returned value is {Wx::DEFAULT_COORD} if the minimal height was not set.
775
+ # @see Wx::Window#get_min_size
776
+ # @return [Integer]
777
+ def get_min_height; end
778
+ alias_method :min_height, :get_min_height
779
+
780
+ # Returns the horizontal component of window maximal size.
781
+ # The returned value is {Wx::DEFAULT_COORD} if the maximal width was not set.
782
+ # @see Wx::Window#get_max_size
783
+ # @return [Integer]
784
+ def get_max_width; end
785
+ alias_method :max_width, :get_max_width
786
+
787
+ # Returns the vertical component of window maximal size.
788
+ # The returned value is {Wx::DEFAULT_COORD} if the maximal width was not set.
789
+ # @see Wx::Window#get_max_size
790
+ # @return [Integer]
791
+ def get_max_height; end
792
+ alias_method :max_height, :get_max_height
793
+
794
+ # See the GetSize(int*,int*) overload for more info.
795
+ # @return [Wx::Size]
796
+ def get_size; end
797
+ alias_method :size, :get_size
798
+
799
+ # This gets the virtual size of the window in pixels.
800
+ # By default it returns the client size of the window, but after a call to {Wx::Window#set_virtual_size} it will return the size set with that method.
801
+ # @see Window Sizing Overview
802
+ # @return [Wx::Size]
803
+ def get_virtual_size; end
804
+ alias_method :virtual_size, :get_virtual_size
805
+
806
+ # Return the largest of ClientSize and BestSize (as determined by a sizer, interior children, or other means)
807
+ # @return [Wx::Size]
808
+ def get_best_virtual_size; end
809
+ alias_method :best_virtual_size, :get_best_virtual_size
810
+
811
+ # Returns the factor mapping logical pixels of this window to physical pixels.
812
+ # This function can be used to portably determine the number of physical pixels in a window of the given size, by multiplying the window size by the value returned from it. I.e. it returns the factor converting window coordinates to "content view" coordinates, where the view can be just a simple window displaying a {Wx::Bitmap} or {Wx::GLCanvas} or any other kind of window rendering arbitrary "content" on screen.
813
+ # For the platforms not doing any pixel mapping, i.e. where logical and physical pixels are one and the same, this function always returns 1.0 and so using it is, in principle, unnecessary and could be avoided by using preprocessor check for {Wx::HAS_DPI_INDEPENDENT_PIXELS} not being defined, however using this function unconditionally under all platforms is usually simpler and so preferable.
814
+ # Current behaviour of this function is compatible with wxWidgets 3.0, but different from its behaviour in versions 3.1.0 to 3.1.3, where it returned the same value as {Wx::Window#get_dpi_scale_factor}. Please use the other function if you need to use a scaling factor greater than 1.0 even for the platforms without {Wx::HAS_DPI_INDEPENDENT_PIXELS}, such as {Wx::MSW}.
815
+ # @return [Float]
816
+ def get_content_scale_factor; end
817
+ alias_method :content_scale_factor, :get_content_scale_factor
818
+
819
+ # Returns the ratio of the DPI used by this window to the standard DPI.
820
+ # The returned value is 1 for standard DPI screens or 2 for "200%
821
+ # scaling" and, unlike for {Wx::Window#get_content_scale_factor}, is the same under all platforms.
822
+ # This factor should be used to increase the size of icons and similar windows whose best size is not based on text metrics when using DPI scaling.
823
+ # E.g. the program may load a 32px bitmap if the content scale factor is 1.0 or 64px version of the same bitmap if it is 2.0 or bigger.
824
+ # Notice that this method should not be used for window sizes expressed in pixels, as they are already scaled by this factor by the underlying toolkit under some platforms. Use {Wx::Window#from_dip} for anything window-related instead.
825
+ # @return [Float]
826
+ def get_dpi_scale_factor; end
827
+ alias_method :dpi_scale_factor, :get_dpi_scale_factor
828
+
829
+ # Returns the size of the left/right and top/bottom borders of this window in x and y components of the result respectively.
830
+ # @return [Wx::Size]
831
+ def get_window_border_size; end
832
+ alias_method :window_border_size, :get_window_border_size
833
+
834
+ # {Wx::Sizer} and friends use this to give a chance to a component to recalc its min size once one of the final size components is known.
835
+ # Override this function when that is useful (such as for {Wx::StaticText} which can stretch over several lines). Parameter availableOtherDir tells the item how much more space there is available in the opposite direction (-1 if unknown).
836
+ # @param direction [Integer]
837
+ # @param size [Integer]
838
+ # @param availableOtherDir [Integer]
839
+ # @return [true,false]
840
+ def inform_first_direction(direction, size, availableOtherDir) end
841
+
842
+ # Resets the cached best size value so it will be recalculated the next time it is needed.
843
+ #
844
+ # @see Wx::Window#cache_best_size
845
+ # @return [void]
846
+ def invalidate_best_size; end
847
+
848
+ # Posts a size event to the window.
849
+ # This is the same as {Wx::Window#send_size_event} with {Wx::SEND_EVENT_POST} argument.
850
+ # @return [void]
851
+ def post_size_event; end
852
+
853
+ # Posts a size event to the parent of this window.
854
+ # This is the same as {Wx::Window#send_size_event_to_parent} with {Wx::SEND_EVENT_POST} argument.
855
+ # @return [void]
856
+ def post_size_event_to_parent; end
857
+
858
+ # This function sends a dummy size event to the window allowing it to re-layout its children positions.
859
+ # It is sometimes useful to call this function after adding or deleting a children after the frame creation or if a child size changes. Note that if the frame is using either sizers or constraints for the children layout, it is enough to call {Wx::Window#layout} directly and this function should not be used in this case.
860
+ # If flags includes {Wx::SEND_EVENT_POST} value, this function posts the event, i.e. schedules it for later processing, instead of dispatching it directly. You can also use {Wx::Window#post_size_event} as a more readable equivalent of calling this function with this flag.
861
+ # @param flags [Integer] May include {Wx::SEND_EVENT_POST}. Default value is 0.
862
+ # @return [void]
863
+ def send_size_event(flags=0) end
864
+
865
+ # Safe wrapper for {Wx::Window#get_parent}->{Wx::Window#send_size_event}.
866
+ # This function simply checks that the window has a valid parent which is not in process of being deleted and calls {Wx::Window#send_size_event} on it. It is used internally by windows such as toolbars changes to whose state should result in parent re-layout (e.g. when a toolbar is added to the top of the window, all the other windows must be shifted down).
867
+ # @see Wx::Window#post_size_event_to_parent
868
+ # @param flags [Integer] See description of this parameter in {Wx::Window#send_size_event} documentation.
869
+ # @return [void]
870
+ def send_size_event_to_parent(flags=0) end
871
+
872
+ # @overload set_client_size(width, height)
873
+ # This sets the size of the window client area in pixels.
874
+ # Using this function to size a window tends to be more device-independent than {Wx::Window#set_size}, since the application need not worry about what dimensions the border or title bar have when trying to fit the window around panel items, for example.
875
+ # Note that special value of -1 which can be used in some other functions to preserve the existing size is not supported for width and height here, i.e. they both must be valid, positive integers.
876
+ # @see Window Sizing Overview
877
+ # @param width [Integer]
878
+ # @param height [Integer]
879
+ # @return [void]
880
+ # @overload set_client_size(size)
881
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
882
+ # @param size [Array(Integer, Integer), Wx::Size]
883
+ # @return [void]
884
+ # @overload set_client_size(rect)
885
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
886
+ # @param rect [Wx::Rect]
887
+ # @return [void]
888
+ def set_client_size(*args) end
889
+ alias_method :client_size=, :set_client_size
890
+
891
+ # Used by {Wx::Sizer} internally to notify the window about being managed by the given sizer.
892
+ # This method should not be called from outside the library, unless you're implementing a custom sizer class and in the latter case you must call this method with the pointer to the sizer itself whenever a window is added to it and with NULL argument when the window is removed from it.
893
+ # @param sizer [Wx::Sizer]
894
+ # @return [void]
895
+ def set_containing_sizer(sizer) end
896
+ alias_method :containing_sizer=, :set_containing_sizer
897
+
898
+ # A smart SetSize that will fill in default size components with the window's best size values.
899
+ # Also sets the window's minsize to the value passed in for use with sizers. This means that if a full or partial size is passed to this function then the sizers will use that size instead of the results of {Wx::Window#get_best_size} to determine the minimum needs of the window for layout.
900
+ # Most controls will use this to set their initial size, and their min size to the passed in value (if any.)
901
+ # @see Wx::Window#set_size
902
+ # @see Wx::Window#get_best_size
903
+ # @see Wx::Window#get_effective_min_size
904
+ # @see Window Sizing Overview
905
+ # @param size [Array(Integer, Integer), Wx::Size]
906
+ # @return [void]
907
+ def set_initial_size(size=Wx::DEFAULT_SIZE) end
908
+ alias_method :initial_size=, :set_initial_size
909
+
910
+ # Sets the maximum client size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size of its client area.
911
+ # Note that this method is just a shortcut for:
912
+ #
913
+ # SetMaxSize(ClientToWindowSize(size));
914
+ # @see Wx::Window#set_max_size
915
+ # @see Window Sizing Overview
916
+ # @param size [Array(Integer, Integer), Wx::Size]
917
+ # @return [void]
918
+ def set_max_client_size(size) end
919
+ alias_method :max_client_size=, :set_max_client_size
920
+
921
+ # Sets the maximum size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size.
922
+ #
923
+ # @see Wx::Window#set_max_client_size
924
+ # @see Window Sizing Overview
925
+ # @param size [Array(Integer, Integer), Wx::Size]
926
+ # @return [void]
927
+ def set_max_size(size) end
928
+ alias_method :max_size=, :set_max_size
929
+
930
+ # Sets the minimum client size of the window, to indicate to the sizer layout mechanism that this is the minimum required size of window's client area.
931
+ # You may need to call this if you change the window size after construction and before adding to its parent sizer.
932
+ # Note, that just as with {Wx::Window#set_min_size}, calling this method doesn't prevent the program from explicitly making the window smaller than the specified size.
933
+ # Note that this method is just a shortcut for:
934
+ #
935
+ # SetMinSize(ClientToWindowSize(size));
936
+ # @see Wx::Window#set_min_size
937
+ # @see Window Sizing Overview
938
+ # @param size [Array(Integer, Integer), Wx::Size]
939
+ # @return [void]
940
+ def set_min_client_size(size) end
941
+ alias_method :min_client_size=, :set_min_client_size
942
+
943
+ # Sets the minimum size of the window, to indicate to the sizer layout mechanism that this is the minimum required size.
944
+ # You may need to call this if you change the window size after construction and before adding to its parent sizer.
945
+ # Notice that calling this method doesn't prevent the program from making the window explicitly smaller than the specified size by calling {Wx::Window#set_size}, it just ensures that it won't become smaller than this size during the automatic layout.
946
+ # @see Wx::Window#set_min_client_size
947
+ # @see Window Sizing Overview
948
+ # @param size [Array(Integer, Integer), Wx::Size]
949
+ # @return [void]
950
+ def set_min_size(size) end
951
+ alias_method :min_size=, :set_min_size
952
+
953
+ # @overload set_size(x, y, width, height, sizeFlags=Wx::SIZE_AUTO)
954
+ # Sets the size of the window in pixels.
955
+ # This overload sets the position and optionally size, of the window. Parameters may be {Wx::DEFAULT_COORD} to indicate either that a default should be supplied by wxWidgets, or that the current value of the dimension should be used.
956
+ # @see Wx::Window#move
957
+ # @see Window Sizing Overview
958
+ # @param x [Integer] Required x position in pixels, or {Wx::DEFAULT_COORD} to indicate that the existing value should be used.
959
+ # @param y [Integer] Required y position in pixels, or {Wx::DEFAULT_COORD} to indicate that the existing value should be used.
960
+ # @param width [Integer] Required width in pixels, or {Wx::DEFAULT_COORD} to indicate that the existing value should be used.
961
+ # @param height [Integer] Required height position in pixels, or {Wx::DEFAULT_COORD} to indicate that the existing value should be used.
962
+ # @param sizeFlags [Integer] Indicates the interpretation of other parameters. It is a bit list of the following:
963
+ # - {Wx::SIZE_AUTO_WIDTH}: a {Wx::DEFAULT_COORD} width value is taken to indicate a wxWidgets-supplied default width.- {Wx::SIZE_AUTO_HEIGHT}: a {Wx::DEFAULT_COORD} height value is taken to indicate a wxWidgets-supplied default height.- {Wx::SIZE_AUTO}: {Wx::DEFAULT_COORD} size values are taken to indicate a wxWidgets-supplied default size.- {Wx::SIZE_USE_EXISTING}: existing dimensions should be used if {Wx::DEFAULT_COORD} values are supplied.- {Wx::SIZE_ALLOW_MINUS_ONE}: allow negative dimensions (i.e. value of {Wx::DEFAULT_COORD}) to be interpreted as real dimensions, not default values.- {Wx::SIZE_FORCE}: normally, if the position and the size of the window are already the same as the parameters of this function, nothing is done. but with this flag a window resize may be forced even in this case (supported in wx 2.6.2 and later and only implemented for MSW and ignored elsewhere currently).
964
+ # @return [void]
965
+ # @overload set_size(rect)
966
+ # Sets the size of the window in pixels.
967
+ # The size is specified using a {Wx::Rect}, {Wx::Size} or by a couple of int objects.
968
+ # This form must be used with non-default width and height values.
969
+ # @see Wx::Window#move
970
+ # @see Window Sizing Overview
971
+ # @param rect [Wx::Rect]
972
+ # @return [void]
973
+ # @overload set_size(size)
974
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
975
+ # @param size [Array(Integer, Integer), Wx::Size]
976
+ # @return [void]
977
+ def set_size(*args) end
978
+ alias_method :size=, :set_size
979
+
980
+ # @overload set_size_hints(minSize, maxSize=Wx::DEFAULT_SIZE, incSize=Wx::DEFAULT_SIZE)
981
+ # Use of this function for windows which are not toplevel windows (such as {Wx::Dialog} or {Wx::Frame}) is discouraged.
982
+ # Please use {Wx::Window#set_min_size} and {Wx::Window#set_max_size} instead.
983
+ # @see Wx::TopLevelWindow#set_size_hints
984
+ # @see Window Sizing Overview
985
+ # @param minSize [Array(Integer, Integer), Wx::Size]
986
+ # @param maxSize [Array(Integer, Integer), Wx::Size]
987
+ # @param incSize [Array(Integer, Integer), Wx::Size]
988
+ # @return [void]
989
+ # @overload set_size_hints(minW, minH, maxW=-1, maxH=-1, incW=-1, incH=-1)
990
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
991
+ # @param minW [Integer]
992
+ # @param minH [Integer]
993
+ # @param maxW [Integer]
994
+ # @param maxH [Integer]
995
+ # @param incW [Integer]
996
+ # @param incH [Integer]
997
+ # @return [void]
998
+ def set_size_hints(*args) end
999
+ alias_method :size_hints=, :set_size_hints
1000
+
1001
+ # @overload set_virtual_size(width, height)
1002
+ # Sets the virtual size of the window in pixels.
1003
+ #
1004
+ # @see Window Sizing Overview
1005
+ # @param width [Integer]
1006
+ # @param height [Integer]
1007
+ # @return [void]
1008
+ # @overload set_virtual_size(size)
1009
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1010
+ # @param size [Array(Integer, Integer), Wx::Size]
1011
+ # @return [void]
1012
+ def set_virtual_size(*args) end
1013
+ alias_method :virtual_size=, :set_virtual_size
1014
+
1015
+ # A synonym for {Wx::Window#centre}.
1016
+ # @param dir [Integer]
1017
+ # @return [void]
1018
+ def center(dir=Wx::BOTH) end
1019
+
1020
+ # A synonym for {Wx::Window#centre_on_parent}.
1021
+ # @param dir [Integer]
1022
+ # @return [void]
1023
+ def center_on_parent(dir=Wx::BOTH) end
1024
+
1025
+ # Centres the window.
1026
+ # If the window is a top level one (i.e. doesn't have a parent), it will be centred relative to the screen anyhow.
1027
+ # @see Wx::Window#center
1028
+ # @param direction [Integer] Specifies the direction for the centring. May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}. It may also include the {Wx::CENTRE_ON_SCREEN} flag if you want to centre the window on the entire screen and not on its parent window.
1029
+ # @return [void]
1030
+ def centre(direction=Wx::BOTH) end
1031
+
1032
+ # Centres the window on its parent.
1033
+ # This is a more readable synonym for {Wx::Window#centre}.
1034
+ #
1035
+ # This methods provides for a way to centre top level windows over their parents instead of the entire screen. If there is no parent or if the window is not a top level window, then behaviour is the same as {Wx::Window#centre}.
1036
+ # @see Wx::TopLevelWindow#centre_on_screen
1037
+ # @param direction [Integer] Specifies the direction for the centring. May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}.
1038
+ # @return [void]
1039
+ def centre_on_parent(direction=Wx::BOTH) end
1040
+
1041
+ # This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows.
1042
+ #
1043
+ # @see Wx::Window#get_screen_position
1044
+ # @return [Wx::Point]
1045
+ def get_position; end
1046
+ alias_method :position, :get_position
1047
+
1048
+ # Returns the position and size of the window as a {Wx::Rect} object.
1049
+ #
1050
+ # @see Wx::Window#get_screen_rect
1051
+ # @return [Wx::Rect]
1052
+ def get_rect; end
1053
+ alias_method :rect, :get_rect
1054
+
1055
+ # Returns the window position in screen coordinates, whether the window is a child window or a top level one.
1056
+ #
1057
+ # @see Wx::Window#get_position
1058
+ # @return [Wx::Point]
1059
+ def get_screen_position; end
1060
+ alias_method :screen_position, :get_screen_position
1061
+
1062
+ # Returns the position and size of the window on the screen as a {Wx::Rect} object.
1063
+ #
1064
+ # @see Wx::Window#get_rect
1065
+ # @return [Wx::Rect]
1066
+ def get_screen_rect; end
1067
+ alias_method :screen_rect, :get_screen_rect
1068
+
1069
+ # Get the origin of the client area of the window relative to the window top left corner (the client area may be shifted because of the borders, scrollbars, other decorations...)
1070
+ # @return [Wx::Point]
1071
+ def get_client_area_origin; end
1072
+ alias_method :client_area_origin, :get_client_area_origin
1073
+
1074
+ # Get the client rectangle in window (i.e. client) coordinates.
1075
+ # @return [Wx::Rect]
1076
+ def get_client_rect; end
1077
+ alias_method :client_rect, :get_client_rect
1078
+
1079
+ # @overload move(x, y, flags=Wx::SIZE_USE_EXISTING)
1080
+ # Moves the window to the given position.
1081
+ # Implementations of SetSize can also implicitly implement the {Wx::Window#move} function, which is defined in the base {Wx::Window} class as the call:
1082
+ #
1083
+ # SetSize(x, y, wxDefaultCoord, wxDefaultCoord, wxSIZE_USE_EXISTING);
1084
+ # @see Wx::Window#set_size
1085
+ # @param x [Integer] Required x position.
1086
+ # @param y [Integer] Required y position.
1087
+ # @param flags [Integer] See {Wx::Window#set_size} for more info about this parameter.
1088
+ # @return [void]
1089
+ # @overload move(pt, flags=Wx::SIZE_USE_EXISTING)
1090
+ # Moves the window to the given position.
1091
+ # Implementations of {Wx::Window#set_size} can also implicitly implement the {Wx::Window#move} function, which is defined in the base {Wx::Window} class as the call:
1092
+ #
1093
+ # SetSize(x, y, wxDefaultCoord, wxDefaultCoord, wxSIZE_USE_EXISTING);
1094
+ # @see Wx::Window#set_size
1095
+ # @param pt [Array(Integer, Integer), Wx::Point] {Wx::Point} object representing the position.
1096
+ # @param flags [Integer] See {Wx::Window#set_size} for more info about this parameter.
1097
+ # @return [void]
1098
+ def move(*args) end
1099
+
1100
+ # Moves the window to the specified position.
1101
+ # This is exactly the same as calling {Wx::Window#move} with the default arguments.
1102
+ # @param pt [Array(Integer, Integer), Wx::Point]
1103
+ # @return [void]
1104
+ def set_position(pt) end
1105
+ alias_method :position=, :set_position
1106
+
1107
+ # Converts to screen coordinates from coordinates relative to this window.
1108
+ # @param pt [Array(Integer, Integer), Wx::Point] The client position for the second form of the function.
1109
+ # @return [Wx::Point]
1110
+ def client_to_screen(pt) end
1111
+
1112
+ # @overload convert_dialog_to_pixels(pt)
1113
+ # Converts a point or size from dialog units to pixels.
1114
+ # For the x dimension, the dialog units are multiplied by the average character width and then divided by 4. For the y dimension, the dialog units are multiplied by the average character height and then divided by 8.
1115
+ # Dialog units are used for maintaining a dialog's proportions even if the font changes. You can also use these functions programmatically. A convenience macro is defined:
1116
+ #
1117
+ # #define wxDLG_UNIT(parent, pt) parent->ConvertDialogToPixels(pt)
1118
+ # @see Wx::Window#convert_pixels_to_dialog
1119
+ # @param pt [Array(Integer, Integer), Wx::Point]
1120
+ # @return [Wx::Point]
1121
+ # @overload convert_dialog_to_pixels(sz)
1122
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1123
+ # @param sz [Array(Integer, Integer), Wx::Size]
1124
+ # @return [Wx::Size]
1125
+ def convert_dialog_to_pixels(*args) end
1126
+
1127
+ # @overload convert_pixels_to_dialog(pt)
1128
+ # Converts a point or size from pixels to dialog units.
1129
+ # For the x dimension, the pixels are multiplied by 4 and then divided by the average character width. For the y dimension, the pixels are multiplied by 8 and then divided by the average character height.
1130
+ # Dialog units are used for maintaining a dialog's proportions even if the font changes.
1131
+ # @see Wx::Window#convert_dialog_to_pixels
1132
+ # @param pt [Array(Integer, Integer), Wx::Point]
1133
+ # @return [Wx::Point]
1134
+ # @overload convert_pixels_to_dialog(sz)
1135
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1136
+ # @param sz [Array(Integer, Integer), Wx::Size]
1137
+ # @return [Wx::Size]
1138
+ def convert_pixels_to_dialog(*args) end
1139
+
1140
+ # Converts from screen to client window coordinates.
1141
+ # @param pt [Array(Integer, Integer), Wx::Point] The screen position.
1142
+ # @return [Wx::Point]
1143
+ def screen_to_client(pt) end
1144
+
1145
+ # Clears the window by filling it with the current background colour.
1146
+ # Does not cause an erase background event to be generated.
1147
+ # Notice that this uses {Wx::ClientDC} to draw on the window and the results of doing it while also drawing on {Wx::PaintDC} for this window are undefined. Hence this method shouldn't be used from EVT_PAINT handlers, just use {Wx::DC#clear} on the {Wx::PaintDC} you already use there instead.
1148
+ # @return [void]
1149
+ def clear_background; end
1150
+
1151
+ # Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all.
1152
+ # {Wx::Window#thaw} must be called to re-enable window redrawing. Calls to these two functions may be nested but to ensure that the window is properly repainted again, you must thaw it exactly as many times as you froze it.
1153
+ # If the window has any children, they are recursively frozen too.
1154
+ # This method is useful for visual appearance optimization (for example, it is a good idea to use it before doing many large text insertions in a row into a {Wx::TextCtrl} under {Wx::GTK}) but is not implemented on all platforms nor for all controls so it is mostly just a hint to wxWidgets and not a mandatory directive.
1155
+ # @see Wx::WindowUpdateLocker
1156
+ # @see Wx::Window#thaw
1157
+ # @see Wx::Window#is_frozen
1158
+ # @return [void]
1159
+ def freeze; end
1160
+
1161
+ # Re-enables window updating after a previous call to {Wx::Window#freeze}.
1162
+ # To really thaw the control, it must be called exactly the same number of times as {Wx::Window#freeze}.
1163
+ # If the window has any children, they are recursively thawed too.
1164
+ # @see Wx::WindowUpdateLocker
1165
+ # @see Wx::Window#freeze
1166
+ # @see Wx::Window#is_frozen
1167
+ # @return [void]
1168
+ def thaw; end
1169
+
1170
+ # Returns true if the window is currently frozen by a call to {Wx::Window#freeze}.
1171
+ #
1172
+ # @see Wx::Window#freeze
1173
+ # @see Wx::Window#thaw
1174
+ # @return [true,false]
1175
+ def is_frozen; end
1176
+ alias_method :frozen?, :is_frozen
1177
+
1178
+ # Returns the background colour of the window.
1179
+ #
1180
+ # @see Wx::Window#set_background_colour
1181
+ # @see Wx::Window#set_foreground_colour
1182
+ # @see Wx::Window#get_foreground_colour
1183
+ # @return [Wx::Colour]
1184
+ def get_background_colour; end
1185
+ alias_method :background_colour, :get_background_colour
1186
+
1187
+ # Returns the background style of the window.
1188
+ #
1189
+ # @see Wx::Window#set_background_colour
1190
+ # @see Wx::Window#get_foreground_colour
1191
+ # @see Wx::Window#set_background_style
1192
+ # @see Wx::Window#set_transparent
1193
+ # @return [BackgroundStyle]
1194
+ def get_background_style; end
1195
+ alias_method :background_style, :get_background_style
1196
+
1197
+ # Returns the character height for this window.
1198
+ # @return [Integer]
1199
+ def get_char_height; end
1200
+ alias_method :char_height, :get_char_height
1201
+
1202
+ # Returns the average character width for this window.
1203
+ # @return [Integer]
1204
+ def get_char_width; end
1205
+ alias_method :char_width, :get_char_width
1206
+
1207
+ # Currently this is the same as calling {Wx::Window.get_class_default_attributes(wx_window}.
1208
+ # One advantage of using this function compared to the static version is that the call is automatically dispatched to the correct class (as usual with virtual functions) and you don't have to specify the class name explicitly.
1209
+ # The other one is that in the future this function could return different results, for example it might return a different font for an "Ok" button than for a generic button if the users GUI is configured to show such buttons in bold font. Of course, the down side is that it is impossible to call this function without actually having an object to apply it to whereas the static version can be used without having to create an object first.
1210
+ # @return [Wx::VisualAttributes]
1211
+ def get_default_attributes; end
1212
+ alias_method :default_attributes, :get_default_attributes
1213
+
1214
+ # Return the DPI of the display used by this window.
1215
+ # The returned value can be different for different windows on systems with support for per-monitor DPI values, such as Microsoft Windows 10.
1216
+ # If the DPI is not available, returns <code>size(0,0)</code> object.
1217
+ # @see Wx::Display#get_ppi
1218
+ # @see Wx::DPIChangedEvent
1219
+ # @return [Wx::Size]
1220
+ def get_dpi; end
1221
+ alias_method :dpi, :get_dpi
1222
+
1223
+ # Returns the font for this window.
1224
+ #
1225
+ # @see Wx::Window#set_font
1226
+ # @return [Wx::Font]
1227
+ def get_font; end
1228
+ alias_method :font, :get_font
1229
+
1230
+ # Returns the foreground colour of the window.
1231
+ # The meaning of foreground colour varies according to the window class; it may be the text colour or other colour, or it may not be used at all.
1232
+ # @see Wx::Window#set_foreground_colour
1233
+ # @see Wx::Window#set_background_colour
1234
+ # @see Wx::Window#get_background_colour
1235
+ # @return [Wx::Colour]
1236
+ def get_foreground_colour; end
1237
+ alias_method :foreground_colour, :get_foreground_colour
1238
+
1239
+ # Gets the dimensions of the string as it would be drawn on the window with the currently selected font.
1240
+ # @param string [String]
1241
+ # @return [Wx::Size]
1242
+ def get_text_extent(string) end
1243
+ alias_method :text_extent, :get_text_extent
1244
+
1245
+ # Returns the region specifying which parts of the window have been damaged.
1246
+ # Should only be called within a {Wx::PaintEvent} handler.
1247
+ # @see Wx::Region
1248
+ # @see Wx::RegionIterator
1249
+ # @return [void]
1250
+ def get_update_region; end
1251
+ alias_method :update_region, :get_update_region
1252
+
1253
+ # Get the update rectangle bounding box in client coords.
1254
+ # @return [Wx::Rect]
1255
+ def get_update_client_rect; end
1256
+ alias_method :update_client_rect, :get_update_client_rect
1257
+
1258
+ # Returns true if this window background is transparent (as, for example, for {Wx::StaticText}) and should show the parent window background.
1259
+ # This method is mostly used internally by the library itself and you normally shouldn't have to call it. You may, however, have to override it in your {Wx::Window}-derived class to ensure that background is painted correctly.
1260
+ # @return [true,false]
1261
+ def has_transparent_background; end
1262
+ alias_method :has_transparent_background?, :has_transparent_background
1263
+
1264
+ # Causes this window, and all of its children recursively, to be repainted.
1265
+ # Note that repainting doesn't happen immediately but only during the next event loop iteration, if you need to update the window immediately you should use {Wx::Window#update} instead.
1266
+ # @see Wx::Window#refresh_rect
1267
+ # @param eraseBackground [true,false] If true, the background will be erased too. Note that in non-MSW ports background is always erased.
1268
+ # @param rect [Wx::Rect] If non-NULL, only the given rectangle will be treated as damaged.
1269
+ # @return [void]
1270
+ def refresh(eraseBackground=true, rect=nil) end
1271
+
1272
+ # Redraws the contents of the given rectangle: only the area inside it will be repainted.
1273
+ # This is the same as {Wx::Window#refresh} but has a nicer syntax as it can be called with a temporary {Wx::Rect} object as argument like this <code>RefreshRect(wxRect(x, y, w, h))</code>.
1274
+ # @param rect [Wx::Rect]
1275
+ # @param eraseBackground [true,false]
1276
+ # @return [void]
1277
+ def refresh_rect(rect, eraseBackground=true) end
1278
+
1279
+ # Calling this method immediately repaints the invalidated area of the window and all of its children recursively (this normally only happens when the flow of control returns to the event loop).
1280
+ # Notice that this function doesn't invalidate any area of the window so nothing happens if nothing has been invalidated (i.e. marked as requiring a redraw). Use {Wx::Window#refresh} first if you want to immediately redraw the window unconditionally.
1281
+ # @return [void]
1282
+ def update; end
1283
+
1284
+ # Sets the background colour of the window.
1285
+ # Notice that as with {Wx::Window#set_foreground_colour}, setting the background colour of a native control may not affect the entire control and could be not supported at all depending on the control and platform.
1286
+ # Please see {Wx::Window#inherit_attributes} for explanation of the difference between this method and {Wx::Window#set_own_background_colour}.
1287
+ #
1288
+ # The background colour is usually painted by the default {Wx::EraseEvent} event handler function under Windows and automatically under GTK. Note that setting the background colour does not cause an immediate refresh, so you may wish to call {Wx::Window#clear_background} or {Wx::Window#refresh} after calling this function. Using this function will disable attempts to use themes for this window, if the system supports them. Use with care since usually the themes represent the appearance chosen by the user to be used for all applications on the system.
1289
+ #
1290
+ # true if the colour was really changed, false if it was already set to this colour and nothing was done.
1291
+ # @see Wx::Window#get_background_colour
1292
+ # @see Wx::Window#set_foreground_colour
1293
+ # @see Wx::Window#get_foreground_colour
1294
+ # @see Wx::Window#clear_background
1295
+ # @see Wx::Window#refresh
1296
+ # @see Wx::EraseEvent
1297
+ # @see Wx::SystemSettings
1298
+ # @param colour [Wx::Colour,String,Symbol] The colour to be used as the background colour; pass {Wx::NULL_COLOUR} to reset to the default colour. Note that you may want to use {Wx::SystemSettings.get_colour} to retrieve a suitable colour to use rather than setting a hard-coded one.
1299
+ # @return [true,false]
1300
+ def set_background_colour(colour) end
1301
+ alias_method :background_colour=, :set_background_colour
1302
+
1303
+ # Sets the background style of the window.
1304
+ # The default background style is {Wx::BackgroundStyle::BG_STYLE_ERASE} which indicates that the window background may be erased in EVT_ERASE_BACKGROUND handler. This is a safe, compatibility default; however you may want to change it to {Wx::BackgroundStyle::BG_STYLE_SYSTEM} if you don't define any erase background event handlers at all, to avoid unnecessary generation of erase background events and always let system erase the background. And you should change the background style to {Wx::BackgroundStyle::BG_STYLE_PAINT} if you define an EVT_PAINT handler which completely overwrites the window background as in this case erasing it previously, either in EVT_ERASE_BACKGROUND handler or in the system default handler, would result in flicker as the background pixels will be repainted twice every time the window is redrawn. Do ensure that the background is entirely erased by your EVT_PAINT handler in this case however as otherwise garbage may be left on screen.
1305
+ # Notice that in previous versions of wxWidgets a common way to work around the above mentioned flickering problem was to define an empty EVT_ERASE_BACKGROUND handler. Setting background style to {Wx::BackgroundStyle::BG_STYLE_PAINT} is a simpler and more efficient solution to the same problem.
1306
+ # Under {Wx::GTK} and {Wx::OSX}, you can use {Wx::BackgroundStyle::BG_STYLE_TRANSPARENT} to obtain full transparency of the window background. Note that {Wx::GTK} supports this only since GTK 2.12 with a compositing manager enabled, call {Wx::Window#is_transparent_background_supported} to check whether this is the case, see the example of doing it in the shapedsample".
1307
+ # Also, in order for <code>SetBackgroundStyle(wxBG_STYLE_TRANSPARENT)</code> to work, it must be called before {Wx::Window#create}. If you're using your own {Wx::Window}-derived class you should write your code in the following way:
1308
+ #
1309
+ # class MyWidget : public wxWindow
1310
+ # {
1311
+ # public:
1312
+ # MyWidget(wxWindow* parent, ...)
1313
+ # : wxWindow() // Use default ctor here!
1314
+ # {
1315
+ # // Do this first:
1316
+ # SetBackgroundStyle(wxBG_STYLE_TRANSPARENT);
1317
+ #
1318
+ # // And really create the window afterwards:
1319
+ # Create(parent, ...);
1320
+ # }
1321
+ # };
1322
+ # @see Wx::Window#set_background_colour
1323
+ # @see Wx::Window#get_foreground_colour
1324
+ # @see Wx::Window#set_transparent
1325
+ # @see Wx::Window#is_transparent_background_supported
1326
+ # @param style [BackgroundStyle]
1327
+ # @return [true,false]
1328
+ def set_background_style(style) end
1329
+ alias_method :background_style=, :set_background_style
1330
+
1331
+ # Checks whether using transparent background might work.
1332
+ # If this function returns false, calling {Wx::Window#set_background_style} with {Wx::BackgroundStyle::BG_STYLE_TRANSPARENT} is not going to work. If it returns true, setting transparent style should normally succeed.
1333
+ # Notice that this function would typically be called on the parent of a window you want to set transparent background style for as the window for which this method is called must be fully created.
1334
+ #
1335
+ # true if background transparency is supported.
1336
+ # @param reason [String] If not NULL, a reason message is provided if transparency is not supported.
1337
+ # @return [true,false]
1338
+ def is_transparent_background_supported(reason=nil) end
1339
+ alias_method :transparent_background_supported?, :is_transparent_background_supported
1340
+
1341
+ # Sets the font for this window.
1342
+ # This function should not be called for the parent window if you don't want its font to be inherited by its children, use {Wx::Window#set_own_font} instead in this case and see {Wx::Window#inherit_attributes} for more explanations.
1343
+ # Please notice that the given font is not automatically used for {Wx::PaintDC} objects associated with this window, you need to call {Wx::DC#set_font} too. However this font is used by any standard controls for drawing their text as well as by {Wx::Window#get_text_extent}.
1344
+ #
1345
+ # true if the font was really changed, false if it was already set to this font and nothing was done.
1346
+ # @see Wx::Window#get_font
1347
+ # @see Wx::Window#inherit_attributes
1348
+ # @param font [Wx::Font,Wx::FontInfo] Font to associate with this window, pass {Wx::NULL_FONT} to reset to the default font.
1349
+ # @return [true,false]
1350
+ def set_font(font) end
1351
+ alias_method :font=, :set_font
1352
+
1353
+ # Sets the foreground colour of the window.
1354
+ # The meaning of foreground colour varies according to the window class; it may be the text colour or other colour, or it may not be used at all. Additionally, not all native controls support changing their foreground colour so this method may change their colour only partially or even not at all.
1355
+ # Please see {Wx::Window#inherit_attributes} for explanation of the difference between this method and {Wx::Window#set_own_foreground_colour}.
1356
+ #
1357
+ # true if the colour was really changed, false if it was already set to this colour and nothing was done.
1358
+ # @see Wx::Window#get_foreground_colour
1359
+ # @see Wx::Window#set_background_colour
1360
+ # @see Wx::Window#get_background_colour
1361
+ # @see Wx::Window#should_inherit_colours
1362
+ # @param colour [Wx::Colour,String,Symbol] The colour to be used as the foreground colour; pass {Wx::NULL_COLOUR} to reset to the default colour.
1363
+ # @return [true,false]
1364
+ def set_foreground_colour(colour) end
1365
+ alias_method :foreground_colour=, :set_foreground_colour
1366
+
1367
+ # Sets the background colour of the window but prevents it from being inherited by the children of this window.
1368
+ #
1369
+ # @see Wx::Window#set_background_colour
1370
+ # @see Wx::Window#inherit_attributes
1371
+ # @param colour [Wx::Colour,String,Symbol]
1372
+ # @return [void]
1373
+ def set_own_background_colour(colour) end
1374
+ alias_method :own_background_colour=, :set_own_background_colour
1375
+
1376
+ # Return true if this window inherits the background colour from its parent.
1377
+ #
1378
+ # @see Wx::Window#set_own_background_colour
1379
+ # @see Wx::Window#inherit_attributes
1380
+ # @return [true,false]
1381
+ def inherits_background_colour; end
1382
+
1383
+ # Return true if a background colour has been set for this window.
1384
+ # @return [true,false]
1385
+ def use_bg_col; end
1386
+
1387
+ # Return true if a background colour has been set for this window.
1388
+ # Same as {Wx::Window#use_bg_col}
1389
+ # @return [true,false]
1390
+ def use_background_colour; end
1391
+
1392
+ # Sets the font of the window but prevents it from being inherited by the children of this window.
1393
+ #
1394
+ # @see Wx::Window#set_font
1395
+ # @see Wx::Window#inherit_attributes
1396
+ # @param font [Wx::Font,Wx::FontInfo]
1397
+ # @return [void]
1398
+ def set_own_font(font) end
1399
+ alias_method :own_font=, :set_own_font
1400
+
1401
+ # Sets the foreground colour of the window but prevents it from being inherited by the children of this window.
1402
+ #
1403
+ # @see Wx::Window#set_foreground_colour
1404
+ # @see Wx::Window#inherit_attributes
1405
+ # @param colour [Wx::Colour,String,Symbol]
1406
+ # @return [void]
1407
+ def set_own_foreground_colour(colour) end
1408
+ alias_method :own_foreground_colour=, :set_own_foreground_colour
1409
+
1410
+ # Return true if a foreground colour has been set for this window.
1411
+ # @return [true,false]
1412
+ def use_foreground_colour; end
1413
+
1414
+ # Return true if this window inherits the foreground colour from its parent.
1415
+ #
1416
+ # @see Wx::Window#set_own_foreground_colour
1417
+ # @see Wx::Window#inherit_attributes
1418
+ # @return [true,false]
1419
+ def inherits_foreground_colour; end
1420
+
1421
+ # Return true from here to allow the colours of this window to be changed by {Wx::Window#inherit_attributes}.
1422
+ # Returning false forbids inheriting them from the parent window.
1423
+ # The base class version returns false, but this method is overridden in {Wx::Control} where it returns true.
1424
+ # @return [true,false]
1425
+ def should_inherit_colours; end
1426
+
1427
+ # This function tells a window if it should use the system's "theme" code to draw the windows' background instead of its own background drawing code.
1428
+ # This does not always have any effect since the underlying platform obviously needs to support the notion of themes in user defined windows. One such platform is GTK+ where windows can have (very colourful) backgrounds defined by a user's selected theme.
1429
+ # Dialogs, notebook pages and the status bar have this flag set to true by default so that the default look and feel is simulated best.
1430
+ # @see Wx::Window#get_theme_enabled
1431
+ # @param enable [true,false]
1432
+ # @return [void]
1433
+ def set_theme_enabled(enable) end
1434
+ alias_method :theme_enabled=, :set_theme_enabled
1435
+
1436
+ # Returns true if the window uses the system theme for drawing its background.
1437
+ #
1438
+ # @see Wx::Window#set_theme_enabled
1439
+ # @return [true,false]
1440
+ def get_theme_enabled; end
1441
+ alias_method :theme_enabled, :get_theme_enabled
1442
+
1443
+ # Returns true if the system supports transparent windows and calling {Wx::Window#set_transparent} may succeed.
1444
+ # If this function returns false, transparent windows are definitely not supported by the current system.
1445
+ # @return [true,false]
1446
+ def can_set_transparent; end
1447
+ alias_method :can_set_transparent?, :can_set_transparent
1448
+
1449
+ # Set the transparency of the window.
1450
+ # If the system supports transparent windows, returns true, otherwise returns false and the window remains fully opaque. See also {Wx::Window#can_set_transparent}.
1451
+ # The parameter alpha is in the range 0..255 where 0 corresponds to a fully transparent window and 255 to the fully opaque one. The constants {Wx::IMAGE_ALPHA_TRANSPARENT} and {Wx::IMAGE_ALPHA_OPAQUE} can be used.
1452
+ # @param alpha [Integer]
1453
+ # @return [true,false]
1454
+ def set_transparent(alpha) end
1455
+ alias_method :transparent=, :set_transparent
1456
+
1457
+ # Returns the event handler for this window.
1458
+ # By default, the window is its own event handler.
1459
+ # @see Wx::Window#set_event_handler
1460
+ # @see Wx::Window#push_event_handler
1461
+ # @see Wx::Window#pop_event_handler
1462
+ # @see Wx::EvtHandler#process_event
1463
+ # @see Wx::EvtHandler
1464
+ # @return [Wx::EvtHandler]
1465
+ def get_event_handler; end
1466
+ alias_method :event_handler, :get_event_handler
1467
+
1468
+ # This function will generate the appropriate call to {Wx::Window#navigate} if the key event is one normally used for keyboard navigation and return true in this case.
1469
+ # Returns true if the key pressed was for navigation and was handled, false otherwise.
1470
+ # @see Wx::Window#navigate
1471
+ # @param event [Wx::KeyEvent]
1472
+ # @return [true,false]
1473
+ def handle_as_navigation_key(event) end
1474
+
1475
+ # Shorthand for:
1476
+ # GetEventHandler()->SafelyProcessEvent(event);
1477
+ # @see Wx::Window#process_window_event
1478
+ # @param event [Wx::Event]
1479
+ # @return [true,false]
1480
+ def handle_window_event(event) end
1481
+
1482
+ # Convenient wrapper for {Wx::Window#process_event}.
1483
+ # This is the same as writing
1484
+ #
1485
+ # GetEventHandler()->ProcessEvent(event);
1486
+ # but more convenient. Notice that {Wx::Window#process_event} itself can't be called for {Wx::Window} objects as it ignores the event handlers associated with the window; use this function instead.
1487
+ # @param event [Wx::Event]
1488
+ # @return [true,false]
1489
+ def process_window_event(event) end
1490
+
1491
+ # Wrapper for {Wx::EvtHandler#process_event_locally}.
1492
+ # This method is similar to {Wx::Window#process_window_event} but can be used to search for the event handler only in this window and any event handlers pushed on top of it. Unlike {Wx::Window#process_window_event} it won't propagate the event upwards. But it will use the validator and event handlers associated with this window, if any.
1493
+ # @param event [Wx::Event]
1494
+ # @return [true,false]
1495
+ def process_window_event_locally(event) end
1496
+
1497
+ # Pushes this event handler onto the event stack for the window.
1498
+ # An event handler is an object that is capable of processing the events sent to a window. By default, the window is its own event handler, but an application may wish to substitute another, for example to allow central implementation of event-handling for a variety of different window classes.
1499
+ # {Wx::Window#push_event_handler} allows an application to set up a stack of event handlers, where an event not handled by one event handler is handed to the next one in the chain.
1500
+ # E.g. if you have two event handlers A and B and a {Wx::Window} instance W and you call:
1501
+ #
1502
+ # W->PushEventHandler(A);
1503
+ # W->PushEventHandler(B);
1504
+ # you will end up with the following situation:
1505
+ #
1506
+ # Note that you can use {Wx::Window#pop_event_handler} to remove the event handler.
1507
+ # @see How Events are Processed
1508
+ # @param handler [Wx::EvtHandler] Specifies the handler to be pushed. It must not be part of a {Wx::EvtHandler} chain; an assert will fail if it's not unlinked (see {Wx::EvtHandler#is_unlinked}).
1509
+ # @return [void]
1510
+ def push_event_handler(handler) end
1511
+
1512
+ # Find the given handler in the windows event handler stack and removes (but does not delete) it from the stack.
1513
+ # See {Wx::EvtHandler#unlink} for more info.
1514
+ #
1515
+ # Returns true if it was found and false otherwise (this also results in an assert failure so this function should only be called when the handler is supposed to be there).
1516
+ # @see Wx::Window#push_event_handler
1517
+ # @see Wx::Window#pop_event_handler
1518
+ # @param handler [Wx::EvtHandler] The event handler to remove, must be non-NULL and must be present in this windows event handlers stack.
1519
+ # @return [true,false]
1520
+ def remove_event_handler(handler) end
1521
+
1522
+ # Sets the event handler for this window.
1523
+ # Note that if you use this function you may want to use as the "next" handler of handler the window itself; in this way when handler doesn't process an event, the window itself will have a chance to do it.
1524
+ # @see How Events are Processed
1525
+ # @param handler [Wx::EvtHandler] Specifies the handler to be set. Cannot be NULL.
1526
+ # @return [void]
1527
+ def set_event_handler(handler) end
1528
+ alias_method :event_handler=, :set_event_handler
1529
+
1530
+ # {Wx::WINDOWS} cannot be used to form event handler chains; this function thus will assert when called.
1531
+ # Note that instead you can use {Wx::Window#push_event_handler} or {Wx::Window#set_event_handler} to implement a stack of event handlers to override {Wx::Window}'s own event handling mechanism.
1532
+ # @param handler [Wx::EvtHandler]
1533
+ # @return [void]
1534
+ def set_next_handler(handler) end
1535
+ alias_method :next_handler=, :set_next_handler
1536
+
1537
+ # {Wx::WINDOWS} cannot be used to form event handler chains; this function thus will assert when called.
1538
+ # Note that instead you can use {Wx::Window#push_event_handler} or {Wx::Window#set_event_handler} to implement a stack of event handlers to override {Wx::Window}'s own event handling mechanism.
1539
+ # @param handler [Wx::EvtHandler]
1540
+ # @return [void]
1541
+ def set_previous_handler(handler) end
1542
+ alias_method :previous_handler=, :set_previous_handler
1543
+
1544
+ # Returns the extra style bits for the window.
1545
+ # @return [Integer]
1546
+ def get_extra_style; end
1547
+ alias_method :extra_style, :get_extra_style
1548
+
1549
+ # Gets the window style that was passed to the constructor or {Wx::Window#create} method.
1550
+ # {Wx::Window#get_window_style} is another name for the same function.
1551
+ # @return [Integer]
1552
+ def get_window_style_flag; end
1553
+ alias_method :window_style_flag, :get_window_style_flag
1554
+
1555
+ # See {Wx::Window#get_window_style_flag} for more info.
1556
+ # @return [Integer]
1557
+ def get_window_style; end
1558
+ alias_method :window_style, :get_window_style
1559
+
1560
+ # Returns true if the window has the given exFlag bit set in its extra styles.
1561
+ #
1562
+ # @see Wx::Window#set_extra_style
1563
+ # @param exFlag [Integer]
1564
+ # @return [true,false]
1565
+ def has_extra_style(exFlag) end
1566
+ alias_method :has_extra_style?, :has_extra_style
1567
+
1568
+ # Returns true if the window has the given flag bit set.
1569
+ # @param flag [Integer]
1570
+ # @return [true,false]
1571
+ def has_flag(flag) end
1572
+ alias_method :has_flag?, :has_flag
1573
+
1574
+ # Sets the extra style bits for the window.
1575
+ # The currently defined extra style bits are reported in the class description.
1576
+ # @param exStyle [Integer]
1577
+ # @return [void]
1578
+ def set_extra_style(exStyle) end
1579
+ alias_method :extra_style=, :set_extra_style
1580
+
1581
+ # Sets the style of the window.
1582
+ # Please note that some styles cannot be changed after the window creation and that {Wx::Window#refresh} might need to be called after changing the others for the change to take place immediately.
1583
+ # See Window styles for more information about flags.
1584
+ # @see Wx::Window#get_window_style_flag
1585
+ # @param style [Integer]
1586
+ # @return [void]
1587
+ def set_window_style_flag(style) end
1588
+ alias_method :window_style_flag=, :set_window_style_flag
1589
+
1590
+ # See {Wx::Window#set_window_style_flag} for more info.
1591
+ # @param style [Integer]
1592
+ # @return [void]
1593
+ def set_window_style(style) end
1594
+ alias_method :window_style=, :set_window_style
1595
+
1596
+ # Turns the given flag on if it's currently turned off and vice versa.
1597
+ # This function cannot be used if the value of the flag is 0 (which is often the case for default flags).
1598
+ # Also, please notice that not all styles can be changed after the control creation.
1599
+ # Returns true if the style was turned on by this function, false if it was switched off.
1600
+ # @see Wx::Window#set_window_style_flag
1601
+ # @see Wx::Window#has_flag
1602
+ # @param flag [Integer]
1603
+ # @return [true,false]
1604
+ def toggle_window_style(flag) end
1605
+
1606
+ # Moves this window in the tab navigation order after the specified win.
1607
+ # This means that when the user presses TAB key on that other window, the focus switches to this window.
1608
+ # Default tab order is the same as creation order, this function and {Wx::Window#move_before_in_tab_order} allow to change it after creating all the windows.
1609
+ # @param win [Wx::Window] A sibling of this window which should precede it in tab order, must not be NULL
1610
+ # @return [void]
1611
+ def move_after_in_tab_order(win) end
1612
+
1613
+ # Same as {Wx::Window#move_after_in_tab_order} except that it inserts this window just before win instead of putting it right after it.
1614
+ # @param win [Wx::Window]
1615
+ # @return [void]
1616
+ def move_before_in_tab_order(win) end
1617
+
1618
+ # Performs a keyboard navigation action starting from this window.
1619
+ # This method is equivalent to calling {Wx::Window#navigate_in} method on the parent window.
1620
+ #
1621
+ # Returns true if the focus was moved to another window or false if nothing changed.
1622
+ #
1623
+ # You may wish to call this from a text control custom keypress handler to do the default navigation behaviour for the tab key, since the standard default behaviour for a multiline text control with the {Wx::TE_PROCESS_TAB} style is to insert a tab and not navigate to the next control. See also {Wx::NavigationKeyEvent} and HandleAsNavigationKey.
1624
+ # @param flags [Integer] A combination of {Wx::NavigationKeyEvent::IsForward} and {Wx::NavigationKeyEvent::WinChange}.
1625
+ # @return [true,false]
1626
+ def navigate(flags=Wx::NavigationKeyEvent::IsForward) end
1627
+
1628
+ # Performs a keyboard navigation action inside this window.
1629
+ # See {Wx::Window#navigate} for more information.
1630
+ # @param flags [Integer]
1631
+ # @return [true,false]
1632
+ def navigate_in(flags=Wx::NavigationKeyEvent::IsForward) end
1633
+
1634
+ # Lowers the window to the bottom of the window hierarchy (Z-order).
1635
+ # This function only works for {Wx::TopLevelWindow}-derived classes.
1636
+ # @see Wx::Window#raise
1637
+ # @return [void]
1638
+ def lower; end
1639
+
1640
+ # Raises the window to the top of the window hierarchy (Z-order).
1641
+ # Notice that this function only requests the window manager to raise this window to the top of Z-order. Depending on its configuration, the window manager may raise the window, not do it at all or indicate that a window requested to be raised in some other way, e.g. by flashing its icon if it is minimized.
1642
+ # This function only works for {Wx::TopLevelWindow}-derived classes.
1643
+ # @see Wx::Window#lower
1644
+ # @return [void]
1645
+ def raise; end
1646
+
1647
+ # Equivalent to calling {Wx::Window#show}(false).
1648
+ # @return [true,false]
1649
+ def hide; end
1650
+
1651
+ # This function hides a window, like {Wx::Window#hide}, but using a special visual effect if possible.
1652
+ # The parameters of this function are the same as for {Wx::Window#show_with_effect}, please see their description there.
1653
+ # @param effect [ShowEffect]
1654
+ # @param timeout [Integer]
1655
+ # @return [true,false]
1656
+ def hide_with_effect(effect, timeout=0) end
1657
+
1658
+ # Returns true if the window is enabled, i.e. if it accepts user input, false otherwise.
1659
+ # Notice that this method can return false even if this window itself hadn't been explicitly disabled when one of its parent windows is disabled. To get the intrinsic status of this window, use {Wx::Window#is_this_enabled}
1660
+ # @see Wx::Window#enable
1661
+ # @return [true,false]
1662
+ def is_enabled; end
1663
+ alias_method :enabled?, :is_enabled
1664
+
1665
+ # @overload is_exposed(x, y)
1666
+ # Returns true if the given point or rectangle area has been exposed since the last repaint.
1667
+ # Call this in a paint event handler to optimize redrawing by only redrawing those areas, which have been exposed.
1668
+ # @param x [Integer]
1669
+ # @param y [Integer]
1670
+ # @return [true,false]
1671
+ # @overload is_exposed(pt)
1672
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1673
+ # @param pt [Array(Integer, Integer), Wx::Point]
1674
+ # @return [true,false]
1675
+ # @overload is_exposed(x, y, w, h)
1676
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1677
+ # @param x [Integer]
1678
+ # @param y [Integer]
1679
+ # @param w [Integer]
1680
+ # @param h [Integer]
1681
+ # @return [true,false]
1682
+ # @overload is_exposed(rect)
1683
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1684
+ # @param rect [Wx::Rect]
1685
+ # @return [true,false]
1686
+ def is_exposed(*args) end
1687
+ alias_method :exposed?, :is_exposed
1688
+
1689
+ # Returns true if the window is shown, false if it has been hidden.
1690
+ #
1691
+ # @see Wx::Window#is_shown_on_screen
1692
+ # @return [true,false]
1693
+ def is_shown; end
1694
+ alias_method :shown?, :is_shown
1695
+
1696
+ # Returns true if the window is physically visible on the screen, i.e. it is shown and all its parents up to the toplevel window are shown as well.
1697
+ #
1698
+ # @see Wx::Window#is_shown
1699
+ # @return [true,false]
1700
+ def is_shown_on_screen; end
1701
+ alias_method :shown_on_screen?, :is_shown_on_screen
1702
+
1703
+ # Disables the window.
1704
+ # Same as {Wx::Window#enable} Enable(false).
1705
+ # Returns true if the window has been disabled, false if it had been already disabled before the call to this function.
1706
+ # @return [true,false]
1707
+ def disable; end
1708
+
1709
+ # Enable or disable the window for user input.
1710
+ # Note that when a parent window is disabled, all of its children are disabled as well and they are re-enabled again when the parent is.
1711
+ # A window can be created initially disabled by calling this method on it before calling {Wx::Window#create} to create the actual underlying window, e.g.
1712
+ #
1713
+ # wxWindow* w = new MyWindow(); // Note: default ctor is used here.
1714
+ # w->Enable(false);
1715
+ # w->Create(parent, ... all the usual non-default ctor arguments ...);
1716
+ #
1717
+ # Returns true if the window has been enabled or disabled, false if nothing was done, i.e. if the window had already been in the specified state.
1718
+ # @see Wx::Window#is_enabled
1719
+ # @see Wx::Window#disable
1720
+ # @see Wx::RadioBox#enable
1721
+ # @param enable [true,false] If true, enables the window for input. If false, disables the window.
1722
+ # @return [true,false]
1723
+ def enable(enable=true) end
1724
+
1725
+ # Shows or hides the window.
1726
+ # You may need to call {Wx::Window#raise} for a top level window if you want to bring it to top, although this is not needed if {Wx::Window#show} is called immediately after the frame creation.
1727
+ # Notice that the default state of newly created top level windows is hidden (to allow you to create their contents without flicker) unlike for all the other, not derived from {Wx::TopLevelWindow}, windows that are by default created in the shown state.
1728
+ #
1729
+ # true if the window has been shown or hidden or false if nothing was done because it already was in the requested state.
1730
+ # @see Wx::Window#is_shown
1731
+ # @see Wx::Window#hide
1732
+ # @see Wx::RadioBox#show
1733
+ # @see Wx::ShowEvent.
1734
+ # @param show [true,false] If true displays the window. Otherwise, hides it.
1735
+ # @return [true,false]
1736
+ def show(show=true) end
1737
+
1738
+ # This function shows a window, like {Wx::Window#show}, but using a special visual effect if possible.
1739
+ # Currently this function is only implemented in {Wx::MSW} and {Wx::OSX} and does the same thing as {Wx::Window#show} in the other ports.
1740
+ # @see Wx::Window#hide_with_effect
1741
+ # @param effect [ShowEffect] The effect to use.
1742
+ # @param timeout [Integer] The timeout parameter specifies the time of the animation, in milliseconds. If the default value of 0 is used, the default animation time for the current platform is used.
1743
+ # @return [true,false]
1744
+ def show_with_effect(effect, timeout=0) end
1745
+
1746
+ # Gets the help text to be used as context-sensitive help for this window.
1747
+ # Note that the text is actually stored by the current {Wx::HelpProvider} implementation, and not in the window object itself.
1748
+ # @see Wx::Window#set_help_text
1749
+ # @see Wx::Window#get_help_text_at_point
1750
+ # @see Wx::HelpProvider
1751
+ # @return [String]
1752
+ def get_help_text; end
1753
+ alias_method :help_text, :get_help_text
1754
+
1755
+ # Sets the help text to be used as context-sensitive help for this window.
1756
+ # Note that the text is actually stored by the current {Wx::HelpProvider} implementation, and not in the window object itself.
1757
+ # @see Wx::Window#get_help_text
1758
+ # @see Wx::HelpProvider#add_help
1759
+ # @param helpText [String]
1760
+ # @return [void]
1761
+ def set_help_text(helpText) end
1762
+ alias_method :help_text=, :set_help_text
1763
+
1764
+ # Gets the help text to be used as context-sensitive help for this window.
1765
+ # This method should be overridden if the help message depends on the position inside the window, otherwise {Wx::Window#get_help_text} can be used.
1766
+ # @param point [Array(Integer, Integer), Wx::Point] Coordinates of the mouse at the moment of help event emission.
1767
+ # @param origin [Wx::HelpEvent::Origin] Help event origin, see also {Wx::HelpEvent#get_origin}.
1768
+ # @return [String]
1769
+ def get_help_text_at_point(point, origin) end
1770
+ alias_method :help_text_at_point, :get_help_text_at_point
1771
+
1772
+ # Get the associated tooltip or NULL if none.
1773
+ # @return [Wx::ToolTip]
1774
+ def get_tool_tip; end
1775
+ alias_method :tool_tip, :get_tool_tip
1776
+
1777
+ # Get the text of the associated tooltip or empty string if none.
1778
+ # @return [String]
1779
+ def get_tool_tip_text; end
1780
+ alias_method :tool_tip_text, :get_tool_tip_text
1781
+
1782
+ # @overload set_tool_tip(tipString)
1783
+ # Attach a tooltip to the window.
1784
+ # {Wx::ToolTip} pointer can be NULL in the overload taking the pointer, meaning to unset any existing tooltips; however {Wx::Window#unset_tool_tip} provides a more readable alternative to this operation.
1785
+ # Notice that these methods are always available, even if wxWidgets was compiled with {Wx::Setup::USE_TOOLTIPS} set to 0, but don't do anything in this case.
1786
+ # @see Wx::Window#get_tool_tip
1787
+ # @see Wx::ToolTip
1788
+ # @param tipString [String]
1789
+ # @return [void]
1790
+ # @overload set_tool_tip(tip)
1791
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1792
+ # @param tip [Wx::ToolTip]
1793
+ # @return [void]
1794
+ def set_tool_tip(*args) end
1795
+ alias_method :tool_tip=, :set_tool_tip
1796
+
1797
+ # Unset any existing tooltip.
1798
+ #
1799
+ # @see Wx::Window#set_tool_tip
1800
+ # @return [void]
1801
+ def unset_tool_tip; end
1802
+
1803
+ # @overload get_popup_menu_selection_from_user(menu, pos=Wx::DEFAULT_POSITION)
1804
+ # This function shows a popup menu at the given position in this window and returns the selected id.
1805
+ # It can be more convenient than the general purpose {Wx::Window#popup_menu} function for simple menus proposing a choice in a list of strings to the user.
1806
+ # Notice that to avoid unexpected conflicts between the (usually consecutive range of) ids used by the menu passed to this function and the existing EVT_UPDATE_UI() handlers, this function temporarily disables UI updates for the window, so you need to manually disable (or toggle or ...) any items which should be disabled in the menu before showing it.
1807
+ # The parameter menu is the menu to show. The parameter pos (or the parameters x and y) is the position at which to show the menu in client coordinates. It is recommended to not explicitly specify coordinates when calling this method in response to mouse click, because some of the ports (namely, {Wx::GTK}) can do a better job of positioning the menu in that case.
1808
+ # The selected menu item id or {Wx::StandardID::ID_NONE} if none selected or an error occurred.
1809
+ # @param menu [Wx::Menu]
1810
+ # @param pos [Array(Integer, Integer), Wx::Point]
1811
+ # @return [Integer]
1812
+ # @overload get_popup_menu_selection_from_user(menu, x, y)
1813
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1814
+ # @param menu [Wx::Menu]
1815
+ # @param x [Integer]
1816
+ # @param y [Integer]
1817
+ # @return [Integer]
1818
+ def get_popup_menu_selection_from_user(*args) end
1819
+ alias_method :popup_menu_selection_from_user, :get_popup_menu_selection_from_user
1820
+
1821
+ # @overload popup_menu(menu, pos=Wx::DEFAULT_POSITION)
1822
+ # Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu.
1823
+ # If a menu item is selected, the corresponding menu event is generated and will be processed as usual. If coordinates are not specified, the current mouse cursor position is used.
1824
+ # menu is the menu to pop up.
1825
+ # The position where the menu will appear can be specified either as a {Wx::Point} pos or by two integers (x and y).
1826
+ # Note that this function switches focus to this window before showing the menu.
1827
+ # Just before the menu is popped up, {Wx::Menu::UpdateUI} is called to ensure that the menu items are in the correct state. The menu does not get deleted by the window. It is recommended to not explicitly specify coordinates when calling PopupMenu in response to mouse click, because some of the ports (namely, {Wx::GTK}) can do a better job of positioning the menu in that case.
1828
+ # @see Wx::Menu
1829
+ # @param menu [Wx::Menu]
1830
+ # @param pos [Array(Integer, Integer), Wx::Point]
1831
+ # @return [true,false]
1832
+ # @overload popup_menu(menu, x, y)
1833
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1834
+ # @param menu [Wx::Menu]
1835
+ # @param x [Integer]
1836
+ # @param y [Integer]
1837
+ # @return [true,false]
1838
+ def popup_menu(*args) end
1839
+
1840
+ # Validator functions.
1841
+ # Returns a pointer to the current validator for the window, or NULL if there is none.
1842
+ # @return [Wx::Validator]
1843
+ def get_validator; end
1844
+ alias_method :validator, :get_validator
1845
+
1846
+ # Deletes the current validator (if any) and sets the window validator, having called {Wx::Validator#clone} to create a new validator of this type.
1847
+ # @param validator [Wx::Validator]
1848
+ # @return [void]
1849
+ def set_validator(validator) end
1850
+ alias_method :validator=, :set_validator
1851
+
1852
+ # Validates the current values of the child controls using their validators.
1853
+ # Notice that this also calls {Wx::Window#validate} for all children recursively.
1854
+ # Returns false if any of the validations failed.
1855
+ # @see Wx::Window#transfer_data_from_window
1856
+ # @see Wx::Window#transfer_data_to_window
1857
+ # @see Wx::Validator
1858
+ # @return [true,false]
1859
+ def validate; end
1860
+
1861
+ # Returns the identifier of the window.
1862
+ # Each window has an integer identifier. If the application has not provided one (or the default {Wx::StandardID::ID_ANY}) a unique identifier with a negative value will be generated.
1863
+ # @see Wx::Window#set_id
1864
+ # @see Window IDs
1865
+ # @return [Integer]
1866
+ def get_id; end
1867
+ alias_method :id, :get_id
1868
+
1869
+ # Generic way of getting a label from any window, for identification purposes.
1870
+ # The interpretation of this function differs from class to class. For frames and dialogs, the value returned is the title. For buttons or static text controls, it is the button text. This function can be useful for meta-programs (such as testing tools or special-needs access programs) which need to identify windows by name.
1871
+ # @return [String]
1872
+ def get_label; end
1873
+ alias_method :label, :get_label
1874
+
1875
+ # Returns the layout direction for this window, Note that {Wx::LayoutDirection::Layout_Default} is returned if layout direction is not supported.
1876
+ # @return [LayoutDirection]
1877
+ def get_layout_direction; end
1878
+ alias_method :layout_direction, :get_layout_direction
1879
+
1880
+ # Mirror coordinates for RTL layout if this window uses it and if the mirroring is not done automatically like Win32.
1881
+ # @param x [Integer]
1882
+ # @param width [Integer]
1883
+ # @param widthTotal [Integer]
1884
+ # @return [Integer]
1885
+ def adjust_for_layout_direction(x, width, widthTotal) end
1886
+
1887
+ # Returns the window's name.
1888
+ # This name is not guaranteed to be unique; it is up to the programmer to supply an appropriate name in the window constructor or via {Wx::Window#set_name}.
1889
+ # @see Wx::Window#set_name
1890
+ # @return [String]
1891
+ def get_name; end
1892
+ alias_method :name, :get_name
1893
+
1894
+ # Returns the value previously passed to {Wx::Window#set_window_variant}.
1895
+ # @return [WindowVariant]
1896
+ def get_window_variant; end
1897
+ alias_method :window_variant, :get_window_variant
1898
+
1899
+ # Sets the identifier of the window.
1900
+ # Each window has an integer identifier. If the application has not provided one, an identifier will be generated. Normally, the identifier should be provided on creation and should not be modified subsequently.
1901
+ # @see Wx::Window#get_id
1902
+ # @see Window IDs
1903
+ # @param winid [Integer]
1904
+ # @return [void]
1905
+ def set_id(winid) end
1906
+ alias_method :id=, :set_id
1907
+
1908
+ # Sets the window's label.
1909
+ #
1910
+ # @see Wx::Window#get_label
1911
+ # @param label [String] The window label.
1912
+ # @return [void]
1913
+ def set_label(label) end
1914
+ alias_method :label=, :set_label
1915
+
1916
+ # Sets the layout direction for this window.
1917
+ # This function is only supported under MSW and GTK platforms, but not under Mac currently.
1918
+ # @param dir [LayoutDirection]
1919
+ # @return [void]
1920
+ def set_layout_direction(dir) end
1921
+ alias_method :layout_direction=, :set_layout_direction
1922
+
1923
+ # Sets the window's name.
1924
+ #
1925
+ # @see Wx::Window#get_name
1926
+ # @param name [String] A name to set for the window.
1927
+ # @return [void]
1928
+ def set_name(name) end
1929
+ alias_method :name=, :set_name
1930
+
1931
+ # Chooses a different variant of the window display to use.
1932
+ # Window variants currently just differ in size, as can be seen from {Wx::WindowVariant} documentation. Under all platforms but macOS, this function does nothing more than change the font used by the window. However under macOS it is implemented natively and selects the appropriate variant of the native widget, which has better appearance than just scaled down or up version of the normal variant, so it should be preferred to directly tweaking the font size.
1933
+ # By default the controls naturally use the normal variant.
1934
+ # @param variant [WindowVariant]
1935
+ # @return [void]
1936
+ def set_window_variant(variant) end
1937
+ alias_method :window_variant=, :set_window_variant
1938
+
1939
+ # Gets the accelerator table for this window.
1940
+ # See {Wx::AcceleratorTable}.
1941
+ # @return [Wx::AcceleratorTable]
1942
+ def get_accelerator_table; end
1943
+ alias_method :accelerator_table, :get_accelerator_table
1944
+
1945
+ # Sets the accelerator table for this window.
1946
+ # See {Wx::AcceleratorTable}.
1947
+ # @param accel [Wx::AcceleratorTable]
1948
+ # @return [void]
1949
+ def set_accelerator_table(accel) end
1950
+ alias_method :accelerator_table=, :set_accelerator_table
1951
+
1952
+ # Sets the accessible for this window.
1953
+ # Any existing accessible for this window will be deleted first, if not identical to accessible. See also {Wx::Accessible}.
1954
+ # @param accessible [Wx::Accessible]
1955
+ # @return [void]
1956
+ def set_accessible(accessible) end
1957
+ alias_method :accessible=, :set_accessible
1958
+
1959
+ # This function simply generates a {Wx::CloseEvent} whose handler usually tries to close the window.
1960
+ # It doesn't close the window itself, however.
1961
+ #
1962
+ # true if the event was handled and not vetoed, false otherwise.
1963
+ #
1964
+ # Close calls the close handler for the window, providing an opportunity for the window to choose whether to destroy the window. Usually it is only used with the top level windows ({Wx::Frame} and {Wx::Dialog} classes) as the others are not supposed to have any special OnClose() logic. The close handler should check whether the window is being deleted forcibly, using {Wx::CloseEvent#can_veto}, in which case it should destroy the window using {Wx::Window#destroy}. Note that calling Close does not guarantee that the window will be destroyed; but it provides a way to simulate a manual close of a window, which may or may not be implemented by destroying the window. The default implementation of {Wx::Dialog::OnCloseWindow} does not necessarily delete the dialog, since it will simply simulate a {Wx::StandardID::ID_CANCEL} event which is handled by the appropriate button event handler and may do anything at all. To guarantee that the window will be destroyed, call {Wx::Window#destroy} instead
1965
+ # @see Window Deletion Overview
1966
+ # @see Wx::Window#destroy
1967
+ # @see Wx::CloseEvent
1968
+ # @param force [true,false] false if the window's close handler should be able to veto the destruction of this window, true if it cannot.
1969
+ # @return [true,false]
1970
+ def close(force=false) end
1971
+
1972
+ # Destroys the window safely.
1973
+ # Use this function instead of the delete operator, since different window classes can be destroyed differently. Frames and dialogs are not destroyed immediately when this function is called they are added to a list of windows to be deleted on idle time, when all the window's events have been processed. This prevents problems with events being sent to non-existent windows.
1974
+ # true if the window has either been successfully deleted, or it has been added to the list of windows pending real deletion.
1975
+ # @return [true,false]
1976
+ def destroy; end
1977
+
1978
+ # Returns true if this window is in process of being destroyed.
1979
+ # Top level windows are not deleted immediately but are rather scheduled for later destruction to give them time to process any pending messages; see {Wx::Window#destroy} description.
1980
+ # This function returns true if this window, or one of its parent windows, is scheduled for destruction and can be useful to avoid manipulating it as it's usually useless to do something with a window which is at the point of disappearing anyhow.
1981
+ # @return [true,false]
1982
+ def is_being_deleted; end
1983
+ alias_method :being_deleted?, :is_being_deleted
1984
+
1985
+ # Returns the associated drop target, which may be NULL.
1986
+ #
1987
+ # @see Wx::Window#set_drop_target
1988
+ # @see Drag and Drop Overview
1989
+ # @return [Wx::DropTarget]
1990
+ def get_drop_target; end
1991
+ alias_method :drop_target, :get_drop_target
1992
+
1993
+ # Associates a drop target with this window.
1994
+ # If the window already has a drop target, it is deleted.
1995
+ # @see Wx::Window#get_drop_target
1996
+ # @see Drag and Drop Overview
1997
+ # @param target [Wx::DropTarget]
1998
+ # @return [void]
1999
+ def set_drop_target(target) end
2000
+ alias_method :drop_target=, :set_drop_target
2001
+
2002
+ # Enables or disables eligibility for drop file events (OnDropFiles).
2003
+ # Windows only until version 2.8.9, available on all platforms since 2.8.10. Cannot be used together with {Wx::Window#set_drop_target} on non-Windows platforms.
2004
+ # @see Wx::Window#set_drop_target
2005
+ # @param accept [true,false] If true, the window is eligible for drop file events. If false, the window will not accept drop file events.
2006
+ # @return [void]
2007
+ def drag_accept_files(accept) end
2008
+
2009
+ # Returns the sizer of which this window is a member, if any, otherwise NULL.
2010
+ # @return [Wx::Sizer]
2011
+ def get_containing_sizer; end
2012
+ alias_method :containing_sizer, :get_containing_sizer
2013
+
2014
+ # Returns the sizer associated with the window by a previous call to {Wx::Window#set_sizer}, or NULL.
2015
+ # @return [Wx::Sizer]
2016
+ def get_sizer; end
2017
+ alias_method :sizer, :get_sizer
2018
+
2019
+ # Sets the window to have the given layout sizer.
2020
+ # The window will then own the object, and will take care of its deletion. If an existing layout constraints object is already owned by the window, it will be deleted if the deleteOld parameter is true.
2021
+ # Note that this function will also call {Wx::Window#set_auto_layout} implicitly with true parameter if the sizer is non-NULL and false otherwise so that the sizer will be effectively used to layout the window children whenever it is resized.
2022
+ #
2023
+ # SetSizer enables and disables Layout automatically.
2024
+ # @param sizer [Wx::Sizer] The sizer to set. Pass NULL to disassociate and conditionally delete the window's sizer. See below.
2025
+ # @return [void]
2026
+ def set_sizer(sizer) end
2027
+ alias_method :sizer=, :set_sizer
2028
+
2029
+ # Associate the sizer with the window and set the window size and minimal size accordingly.
2030
+ # This method calls {Wx::Window#set_sizer} and then {Wx::Sizer#set_size_hints} which sets the initial window size to the size needed to accommodate all sizer elements and sets the minimal size to the same size, this preventing the user from resizing this window to be less than this minimal size (if it's a top-level window which can be directly resized by the user).
2031
+ # @param sizer [Wx::Sizer]
2032
+ # @return [void]
2033
+ def set_sizer_and_fit(sizer) end
2034
+ alias_method :sizer_and_fit=, :set_sizer_and_fit
2035
+
2036
+ # Returns a pointer to the window's layout constraints, or NULL if there are none.
2037
+ # @return [Wx::LayoutConstraints]
2038
+ def get_constraints; end
2039
+ alias_method :constraints, :get_constraints
2040
+
2041
+ # Lays out the children of this window using the associated sizer.
2042
+ # If a sizer hadn't been associated with this window (see {Wx::Window#set_sizer}), this function doesn't do anything, unless this is a top level window (see {Wx::TopLevelWindow#layout}).
2043
+ # Note that this method is called automatically when the window size changes if it has the associated sizer (or if {Wx::Window#set_auto_layout} with true argument had been explicitly called), ensuring that it is always laid out correctly.
2044
+ #
2045
+ # Always returns true, the return value is not useful.
2046
+ # @see Window Sizing Overview
2047
+ # @return [true,false]
2048
+ def layout; end
2049
+
2050
+ # Determines whether the {Wx::Window#layout} function will be called automatically when the window is resized.
2051
+ # This method is called implicitly by {Wx::Window#set_sizer} but if you use {Wx::Window#set_constraints} you should call it manually or otherwise the window layout won't be correctly updated when its size changes.
2052
+ # @see Wx::Window#set_sizer
2053
+ # @see Wx::Window#set_constraints
2054
+ # @param autoLayout [true,false] Set this to true if you wish the {Wx::Window#layout} function to be called automatically when the window is resized.
2055
+ # @return [void]
2056
+ def set_auto_layout(autoLayout) end
2057
+ alias_method :auto_layout=, :set_auto_layout
2058
+
2059
+ # Returns true if {Wx::Window#layout} is called automatically when the window is resized.
2060
+ # This function is mostly useful for wxWidgets itself and is rarely needed in the application code.
2061
+ # @return [true,false]
2062
+ def get_auto_layout; end
2063
+ alias_method :auto_layout, :get_auto_layout
2064
+
2065
+ # Directs all mouse input to this window.
2066
+ # Call {Wx::Window#release_mouse} to release the capture.
2067
+ # Note that wxWidgets maintains the stack of windows having captured the mouse and when the mouse is released the capture returns to the window which had had captured it previously and it is only really released if there were no previous window. In particular, this means that you must release the mouse as many times as you capture it, unless the window receives the {Wx::MouseCaptureLostEvent} event.
2068
+ # Any application which captures the mouse in the beginning of some operation must handle {Wx::MouseCaptureLostEvent} and cancel this operation when it receives the event. The event handler must not recapture mouse.
2069
+ # @see Wx::Window#release_mouse
2070
+ # @see Wx::MouseCaptureLostEvent
2071
+ # @return [void]
2072
+ def capture_mouse; end
2073
+
2074
+ # Returns the caret() associated with the window.
2075
+ # @return [Wx::Caret]
2076
+ def get_caret; end
2077
+ alias_method :caret, :get_caret
2078
+
2079
+ # Return the cursor associated with this window.
2080
+ #
2081
+ # @see Wx::Window#set_cursor
2082
+ # @return [void]
2083
+ def get_cursor; end
2084
+ alias_method :cursor, :get_cursor
2085
+
2086
+ # Returns true if this window has the current mouse capture.
2087
+ #
2088
+ # @see Wx::Window#capture_mouse
2089
+ # @see Wx::Window#release_mouse
2090
+ # @see Wx::MouseCaptureLostEvent
2091
+ # @see Wx::MouseCaptureChangedEvent
2092
+ # @return [true,false]
2093
+ def has_capture; end
2094
+ alias_method :has_capture?, :has_capture
2095
+
2096
+ # Releases mouse input captured with {Wx::Window#capture_mouse}.
2097
+ #
2098
+ # @see Wx::Window#capture_mouse
2099
+ # @see Wx::Window#has_capture
2100
+ # @see Wx::Window#release_mouse
2101
+ # @see Wx::MouseCaptureLostEvent
2102
+ # @see Wx::MouseCaptureChangedEvent
2103
+ # @return [void]
2104
+ def release_mouse; end
2105
+
2106
+ # Sets the caret() associated with the window.
2107
+ # @param caret [Wx::Caret]
2108
+ # @return [void]
2109
+ def set_caret(caret) end
2110
+ alias_method :caret=, :set_caret
2111
+
2112
+ # Sets the window's cursor.
2113
+ # Notice that the window cursor also sets it for the children of the window implicitly.
2114
+ # The cursor may be {Wx::NULL_CURSOR} in which case the window cursor will be reset back to default.
2115
+ # @see Wx::SetCursor
2116
+ # @see Wx::Cursor
2117
+ # @param cursor [Wx::Cursor] Specifies the cursor that the window should normally display.
2118
+ # @return [true,false]
2119
+ def set_cursor(cursor) end
2120
+ alias_method :cursor=, :set_cursor
2121
+
2122
+ # Moves the pointer to the given position on the window.
2123
+ # Apple Human Interface Guidelines forbid moving the mouse cursor programmatically so you should avoid using this function in Mac applications (and probably avoid using it under the other platforms without good reason as well).
2124
+ # @param x [Integer] The new x position for the cursor.
2125
+ # @param y [Integer] The new y position for the cursor.
2126
+ # @return [void]
2127
+ def warp_pointer(x, y) end
2128
+
2129
+ # Request generation of touch events for this window.
2130
+ # Each call to this function supersedes the previous ones, i.e. if you want to receive events for both zoom and rotate gestures, you need to call
2131
+ #
2132
+ # EnableTouchEvents(wxTOUCH_ZOOM_GESTURE | wxTOUCH_ROTATE_GESTURE);
2133
+ # instead of calling it twice in a row as the second call would disable the first gesture.
2134
+ #
2135
+ # true if the specified events were enabled or false if the current platform doesn't support touch events.
2136
+ # @param eventsMask [Integer] Either {Wx::TOUCH_NONE} or {Wx::TOUCH_ALL_GESTURES} to disable or enable gesture events for this window.
2137
+ # @return [true,false]
2138
+ def enable_touch_events(eventsMask) end
2139
+
2140
+ # @overload hit_test(x, y)
2141
+ # Return where the given point lies, exactly.
2142
+ # This method is used to test whether the point lies inside the client window area or on one of its scrollbars.
2143
+ # The point coordinates are specified in client window coordinates.
2144
+ # @param x [Integer]
2145
+ # @param y [Integer]
2146
+ # @return [HitTest]
2147
+ # @overload hit_test(pt)
2148
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
2149
+ # @param pt [Array(Integer, Integer), Wx::Point]
2150
+ # @return [HitTest]
2151
+ def hit_test(*args) end
2152
+
2153
+ # @overload get_border(flags)
2154
+ # Get the window border style from the given flags: this is different from simply doing flags & {Wx::Border::BORDER_MASK} because it uses GetDefaultBorder() to translate {Wx::Border::BORDER_DEFAULT} to something reasonable.
2155
+ # @param flags [Integer]
2156
+ # @return [Border]
2157
+ # @overload get_border()
2158
+ # Get border for the flags of this window.
2159
+ # @return [Border]
2160
+ def get_border(*args) end
2161
+ alias_method :border, :get_border
2162
+
2163
+ # Does the window-specific updating after processing the update event.
2164
+ # This function is called by {Wx::Window#update_window_ui} in order to check return values in the {Wx::UpdateUIEvent} and act appropriately. For example, to allow frame and dialog title updating, wxWidgets implements this function as follows:
2165
+ #
2166
+ # // do the window-specific processing after processing the update event
2167
+ # void wxTopLevelWindowBase::DoUpdateWindowUI(wxUpdateUIEvent& event)
2168
+ # {
2169
+ # if ( event.GetSetEnabled() )
2170
+ # Enable(event.GetEnabled());
2171
+ #
2172
+ # if ( event.GetSetText() )
2173
+ # {
2174
+ # if ( event.GetText() != GetTitle() )
2175
+ # SetTitle(event.GetText());
2176
+ # }
2177
+ # }
2178
+ # @param event [Wx::UpdateUIEvent]
2179
+ # @return [void]
2180
+ def do_update_window_ui(event) end
2181
+
2182
+ # This method should be overridden to return true if this window has multiple pages.
2183
+ # All standard class with multiple pages such as {Wx::Notebook}, {Wx::Listbook} and {Wx::Treebook} already override it to return true and user-defined classes with similar behaviour should also do so, to allow the library to handle such windows appropriately.
2184
+ # @return [true,false]
2185
+ def has_multiple_pages; end
2186
+ alias_method :has_multiple_pages?, :has_multiple_pages
2187
+
2188
+ # This function is (or should be, in case of custom controls) called during window creation to intelligently set up the window visual attributes, that is the font and the foreground and background colours.
2189
+ # By "intelligently" the following is meant: by default, all windows use their own {Wx::Window.get_class_default_attributes} default attributes. However if some of the parents attributes are explicitly (that is, using {Wx::Window#set_font} and not {Wx::Window#set_own_font}) changed and if the corresponding attribute hadn't been explicitly set for this window itself, then this window takes the same value as used by the parent. In addition, if the window overrides {Wx::Window#should_inherit_colours} to return false, the colours will not be changed no matter what and only the font might.
2190
+ # This rather complicated logic is necessary in order to accommodate the different usage scenarios. The most common one is when all default attributes are used and in this case, nothing should be inherited as in modern GUIs different controls use different fonts (and colours) than their siblings so they can't inherit the same value from the parent. However it was also deemed desirable to allow to simply change the attributes of all children at once by just changing the font or colour of their common parent, hence in this case we do inherit the parents attributes.
2191
+ # @return [void]
2192
+ def inherit_attributes; end
2193
+
2194
+ # Sends an {Wx::EVT_INIT_DIALOG} event, whose handler usually transfers data to the dialog via validators.
2195
+ # @return [void]
2196
+ def init_dialog; end
2197
+
2198
+ # Returns true if the window contents is double-buffered by the system, i.e. if any drawing done on the window is really done on a temporary backing surface and transferred to the screen all at once later.
2199
+ #
2200
+ # @see Wx::BufferedDC
2201
+ # @return [true,false]
2202
+ def is_double_buffered; end
2203
+ alias_method :double_buffered?, :is_double_buffered
2204
+
2205
+ # Turn on or off double buffering of the window if the system supports it.
2206
+ # @param on [true,false]
2207
+ # @return [void]
2208
+ def set_double_buffered(on) end
2209
+ alias_method :double_buffered=, :set_double_buffered
2210
+
2211
+ # Returns true if the window is retained, false otherwise.
2212
+ # Retained windows are only available on X platforms.
2213
+ # @return [true,false]
2214
+ def is_retained; end
2215
+ alias_method :retained?, :is_retained
2216
+
2217
+ # Returns true if this window is intrinsically enabled, false otherwise, i.e. if {Wx::Window#enable} Enable(false) had been called.
2218
+ # This method is mostly used for wxWidgets itself, user code should normally use {Wx::Window#is_enabled} instead.
2219
+ # @return [true,false]
2220
+ def is_this_enabled; end
2221
+ alias_method :this_enabled?, :is_this_enabled
2222
+
2223
+ # Returns true if the given window is a top-level one.
2224
+ # Currently all frames and dialogs are considered to be top-level windows (even if they have a parent window).
2225
+ # @return [true,false]
2226
+ def is_top_level; end
2227
+ alias_method :top_level?, :is_top_level
2228
+
2229
+ # This virtual function is normally only used internally, but sometimes an application may need it to implement functionality that should not be disabled by an application defining an OnIdle handler in a derived class.
2230
+ # This function may be used to do delayed painting, for example, and most implementations call {Wx::Window#update_window_ui} in order to send update events to the window in idle time.
2231
+ # @return [void]
2232
+ def on_internal_idle; end
2233
+
2234
+ # Registers a system wide hotkey.
2235
+ # Every time the user presses the hotkey registered here, this window will receive a hotkey event.
2236
+ # It will receive the event even if the application is in the background and does not have the input focus because the user is working with some other application.
2237
+ #
2238
+ # true if the hotkey was registered successfully. false if some other application already registered a hotkey with this modifier/virtualKeyCode combination.
2239
+ #
2240
+ # Use EVT_HOTKEY(hotkeyId, fnc) in the event table to capture the event. This function is currently only implemented under MSW and macOS and always returns false in the other ports.
2241
+ # @see Wx::Window#unregister_hot_key
2242
+ # @param hotkeyId [Integer] Numeric identifier of the hotkey. For applications this must be between 0 and 0xBFFF. If this function is called from a shared DLL, it must be a system wide unique identifier between 0xC000 and 0xFFFF. This is a MSW specific detail.
2243
+ # @param modifiers [Integer] A bitwise combination of {Wx::KeyModifier::MOD_SHIFT}, {Wx::KeyModifier::MOD_CONTROL}, {Wx::KeyModifier::MOD_ALT} or {Wx::KeyModifier::MOD_WIN} specifying the modifier keys that have to be pressed along with the key.
2244
+ # @param virtualKeyCode [Integer] The key code of the hotkey, e.g. an ASCII character such as <code>'K'</code> or one of elements of {Wx::KeyCode} enum.
2245
+ # @return [true,false]
2246
+ def register_hot_key(hotkeyId, modifiers, virtualKeyCode) end
2247
+
2248
+ # Unregisters a system wide hotkey.
2249
+ # true if the hotkey was unregistered successfully, false if the id was invalid.
2250
+ #
2251
+ # This function is currently only implemented under MSW.
2252
+ # @see Wx::Window#register_hot_key
2253
+ # @param hotkeyId [Integer] Numeric identifier of the hotkey. Must be the same id that was passed to {Wx::Window#register_hot_key}.
2254
+ # @return [true,false]
2255
+ def unregister_hot_key(hotkeyId) end
2256
+
2257
+ # This function sends one or more {Wx::UpdateUIEvent} to the window.
2258
+ # The particular implementation depends on the window; for example a {Wx::ToolBar} will send an update UI event for each toolbar button, and a {Wx::Frame} will send an update UI event for each menubar menu item.
2259
+ # You can call this function from your application to ensure that your UI is up-to-date at this point (as far as your {Wx::UpdateUIEvent} handlers are concerned). This may be necessary if you have called {Wx::UpdateUIEvent.set_mode} or {Wx::UpdateUIEvent.set_update_interval} to limit the overhead that wxWidgets incurs by sending update UI events in idle time. flags should be a bitlist of one or more of the {Wx::UpdateUI} enumeration.
2260
+ # If you are calling this function from an OnInternalIdle or OnIdle function, make sure you pass the {Wx::UpdateUI::UPDATE_UI_FROMIDLE} flag, since this tells the window to only update the UI elements that need to be updated in idle time. Some windows update their elements only when necessary, for example when a menu is about to be shown. The following is an example of how to call UpdateWindowUI from an idle function.
2261
+ #
2262
+ # void MyWindow::OnInternalIdle()
2263
+ # {
2264
+ # if (wxUpdateUIEvent::CanUpdate(this))
2265
+ # UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
2266
+ # }
2267
+ # @see Wx::UpdateUIEvent
2268
+ # @see Wx::Window#do_update_window_ui
2269
+ # @see Wx::Window#on_internal_idle
2270
+ # @param flags [Integer]
2271
+ # @return [void]
2272
+ def update_window_ui(flags=Wx::UPDATE_UI_NONE) end
2273
+
2274
+ # Returns the default font and colours which are used by the control.
2275
+ # This is useful if you want to use the same font or colour in your own control as in a standard control which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the users system, especially if it uses themes.
2276
+ # The variant parameter is only relevant under Mac currently and is ignore under other platforms. Under Mac, it will change the size of the returned font. See {Wx::Window#set_window_variant} for more about this.
2277
+ # This static method is "overridden" in many derived classes and so calling, for example, {Wx::Button#get_class_default_attributes} will typically return the values appropriate for a button which will be normally different from those returned by, say, {Wx::ListCtrl#get_class_default_attributes}.
2278
+ # The {Wx::VisualAttributes} structure has at least the fields font, colFg and colBg. All of them may be invalid if it was not possible to determine the default control appearance or, especially for the background colour, if the field doesn't make sense as is the case for colBg for the controls with themed background.
2279
+ # @see Wx::Window#inherit_attributes
2280
+ # @param variant [WindowVariant]
2281
+ # @return [Wx::VisualAttributes]
2282
+ def self.get_class_default_attributes(variant=Wx::WINDOW_VARIANT_NORMAL) end
2283
+
2284
+ # Finds the window or control which currently has the keyboard focus.
2285
+ # Note that this is a static function, so it can be called without needing a {Wx::Window} pointer.
2286
+ # @see Wx::Window#set_focus
2287
+ # @see Wx::Window#has_focus
2288
+ # @return [Wx::Window]
2289
+ def self.find_focus; end
2290
+
2291
+ # Find the first window with the given id.
2292
+ # If parent is NULL, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. The search is recursive in both cases.
2293
+ #
2294
+ # Window with the given id or NULL if not found.
2295
+ # @see Wx::Window#find_window
2296
+ # @param id [Integer]
2297
+ # @param parent [Wx::Window]
2298
+ # @return [Wx::Window]
2299
+ def self.find_window_by_id(id, parent=0) end
2300
+
2301
+ # Find a window by its label.
2302
+ # Depending on the type of window, the label may be a window title or panel item label. If parent is NULL, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy.
2303
+ # The search is recursive in both cases and, unlike with {Wx::Window#find_window}, recurses into top level child windows too.
2304
+ #
2305
+ # Window with the given label or NULL if not found.
2306
+ # @see Wx::Window#find_window
2307
+ # @param label [String]
2308
+ # @param parent [Wx::Window]
2309
+ # @return [Wx::Window]
2310
+ def self.find_window_by_label(label, parent=0) end
2311
+
2312
+ # Find a window by its name (as given in a window constructor or {Wx::Window#create} function call).
2313
+ # If parent is NULL, the search will start from all top-level frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy.
2314
+ # The search is recursive in both cases and, unlike {Wx::Window#find_window}, recurses into top level child windows too.
2315
+ # If no window with such name is found, {Wx::Window.find_window_by_label} is called, i.e. the name is interpreted as (internal) name first but if this fails, it's internal as (user-visible) label. As this behaviour may be confusing, it is usually better to use either the {Wx::Window#find_window} overload taking the name or {Wx::Window.find_window_by_label} directly.
2316
+ # Window with the given name or NULL if not found.
2317
+ # @param name [String]
2318
+ # @param parent [Wx::Window]
2319
+ # @return [Wx::Window]
2320
+ def self.find_window_by_name(name, parent=0) end
2321
+
2322
+ # Returns the currently captured window.
2323
+ #
2324
+ # @see Wx::Window#has_capture
2325
+ # @see Wx::Window#capture_mouse
2326
+ # @see Wx::Window#release_mouse
2327
+ # @see Wx::MouseCaptureLostEvent
2328
+ # @see Wx::MouseCaptureChangedEvent
2329
+ # @return [Wx::Window]
2330
+ def self.get_capture; end
2331
+
2332
+ # Create a new ID or range of IDs that are not currently in use.
2333
+ # The IDs will be reserved until assigned to a {Wx::Window} ID or unreserved with {Wx::Window.unreserve_control_id}.
2334
+ # See Window IDs for more information.
2335
+ #
2336
+ # Returns the ID or the first ID of the range (i.e. the most negative), or {Wx::StandardID::ID_NONE} if the specified number of identifiers couldn't be allocated.
2337
+ # @see Wx::Window.unreserve_control_id
2338
+ # @see Wx::IdManager
2339
+ # @see Window IDs
2340
+ # @param count [Integer] The number of sequential IDs to reserve.
2341
+ # @return [Integer]
2342
+ def self.new_control_id(count=1) end
2343
+
2344
+ # Unreserve an ID or range of IDs that was reserved by {Wx::Window.new_control_id}.
2345
+ # See Window IDs for more information.
2346
+ # @see Wx::Window.new_control_id
2347
+ # @see Wx::IdManager
2348
+ # @see Window IDs
2349
+ # @param id [Integer] The starting ID of the range of IDs to unreserve.
2350
+ # @param count [Integer] The number of sequential IDs to unreserve.
2351
+ # @return [void]
2352
+ def self.unreserve_control_id(id, count=1) end
2353
+
2354
+ # @overload initialize()
2355
+ # Default constructor.
2356
+ # @return [Window]
2357
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR)
2358
+ # Constructs a window, which can be a child of a frame, dialog or any other non-control window.
2359
+ # @param parent [Wx::Window] Pointer to a parent window.
2360
+ # @param id [Integer] Window identifier. If {Wx::StandardID::ID_ANY}, will automatically create an identifier. See Window IDs for more information about IDs.
2361
+ # @param pos [Array(Integer, Integer), Wx::Point] Window position. {Wx::DEFAULT_POSITION} indicates that wxWidgets should generate a default position for the window. If using the {Wx::Window} class directly, supply an actual position.
2362
+ # @param size [Array(Integer, Integer), Wx::Size] Window size. {Wx::DEFAULT_SIZE} indicates that wxWidgets should generate a default size for the window. If no suitable size can be found, the window will be sized to 20x20 pixels so that the window is visible but obviously not correctly sized.
2363
+ # @param style [Integer] Window style. For generic window styles, please see {Wx::Window}.
2364
+ # @param name [String] Window name.
2365
+ # @return [Window]
2366
+ def initialize(*args) end
2367
+
2368
+ # Construct the actual window object after creating the C++ object.
2369
+ # The non-default constructor of {Wx::Window} class does two things: it initializes the C++ object and it also creates the window object in the underlying graphical toolkit. The {Wx::Window#create} method can be used to perform the second part later, while the default constructor can be used to perform the first part only.
2370
+ # Please note that the underlying window must be created exactly once, i.e. if you use the default constructor, which doesn't do this, you must call {Wx::Window#create} before using the window and if you use the non-default constructor, you can not call {Wx::Window#create}, as the underlying window is already created.
2371
+ # Note that it is possible and, in fact, useful, to call some methods on the object between creating the C++ object itself and calling {Wx::Window#create} on it, e.g. a common pattern to avoid showing the contents of a window before it is fully initialized is:
2372
+ #
2373
+ # wxPanel* panel = new wxPanel(); // Note: default constructor used.
2374
+ # panel->Hide(); // Can be called before actually creating it.
2375
+ # panel->Create(parent, wxID_ANY, ...); // Won't be shown yet.
2376
+ # ... create all the panel children ...
2377
+ # panel->Show(); // Now everything will be shown at once.
2378
+ #
2379
+ # Also note that it is possible to create an object of a derived type and then call {Wx::Window#create} on it:
2380
+ #
2381
+ # // Suppose we have this function (which would typically be in a
2382
+ # // different translation unit (file) from the rest of the code).
2383
+ # wxWindow* MyCreateWindowObjectFunction() {
2384
+ # return new MyCustomClassDerivingFromWindow();
2385
+ # }
2386
+ #
2387
+ # // Then we can create a window of MyCustomClassDerivingFromWindow
2388
+ # // class without really knowing about this type, as we would have
2389
+ # // to do if we wanted to use the non-default constructor, like this:
2390
+ #
2391
+ # // First create the C++ object using the factory function.
2392
+ # wxWindow* window = MyCreateWindowObjectFunction();
2393
+ #
2394
+ # // And now create the underlying window.
2395
+ # //
2396
+ # // This calls the base wxWindow::Create() as it is not virtual, so
2397
+ # // the derived class can't customize this part.
2398
+ # window->Create(parent, wxID_ANY, ...);
2399
+ # This is notably used by XML Based Resource System (XRC).
2400
+ # The parameters of this method have exactly the same meaning as the non-default constructor parameters, please refer to them for their description.
2401
+ # true if window creation succeeded or false if it failed
2402
+ # @param parent [Wx::Window]
2403
+ # @param id [Integer]
2404
+ # @param pos [Array(Integer, Integer), Wx::Point]
2405
+ # @param size [Array(Integer, Integer), Wx::Size]
2406
+ # @param style [Integer]
2407
+ # @param name [String]
2408
+ # @return [true,false]
2409
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR) end
2410
+
2411
+ end # Window
2412
+
2413
+
2414
+ end