wxruby3 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wx/doc/stream.rb +7 -3
  3. data/lib/wx/version.rb +1 -1
  4. data/lib/wx/wxruby/cmd/test.rb +8 -2
  5. data/rakelib/lib/config/pkgman/linux.rb +4 -2
  6. data/rakelib/lib/director/derived_dc.rb +41 -32
  7. data/rakelib/lib/director/editable_listbox.rb +10 -8
  8. data/rakelib/lib/director/fs_file.rb +23 -0
  9. data/rakelib/lib/director/ribbon_page.rb +11 -0
  10. data/rakelib/lib/director/top_level_window.rb +12 -4
  11. data/rakelib/lib/specs/interfaces.rb +2 -2
  12. data/tests/test_webview.rb +5 -5
  13. metadata +2 -380
  14. data/assets/repo-social-preview.odg +0 -0
  15. data/assets/repo-social-preview.xcf +0 -0
  16. data/lib/wx/aui/events/evt_list.rb +0 -148
  17. data/lib/wx/core/events/evt_list.rb +0 -1458
  18. data/lib/wx/core/font/encoding.rb +0 -113
  19. data/lib/wx/doc/gen/about_dialog_info.rb +0 -330
  20. data/lib/wx/doc/gen/accelerator.rb +0 -178
  21. data/lib/wx/doc/gen/activity_indicator.rb +0 -83
  22. data/lib/wx/doc/gen/affine_matrix2d.rb +0 -286
  23. data/lib/wx/doc/gen/animation.rb +0 -275
  24. data/lib/wx/doc/gen/animation_ctrl.rb +0 -300
  25. data/lib/wx/doc/gen/any_button.rb +0 -191
  26. data/lib/wx/doc/gen/app.rb +0 -463
  27. data/lib/wx/doc/gen/app_traits.rb +0 -396
  28. data/lib/wx/doc/gen/art_provider.rb +0 -617
  29. data/lib/wx/doc/gen/aui/aui_dock_art.rb +0 -455
  30. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +0 -54
  31. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -847
  32. data/lib/wx/doc/gen/aui/aui_manager_event.rb +0 -131
  33. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +0 -180
  34. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +0 -59
  35. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +0 -130
  36. data/lib/wx/doc/gen/aui/aui_notebook.rb +0 -631
  37. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +0 -233
  38. data/lib/wx/doc/gen/aui/aui_pane_info.rb +0 -769
  39. data/lib/wx/doc/gen/aui/aui_tab_art.rb +0 -352
  40. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +0 -14
  41. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +0 -510
  42. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +0 -340
  43. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +0 -244
  44. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +0 -257
  45. data/lib/wx/doc/gen/aui/event_list.rb +0 -179
  46. data/lib/wx/doc/gen/banner_window.rb +0 -124
  47. data/lib/wx/doc/gen/bitmap.rb +0 -731
  48. data/lib/wx/doc/gen/bitmap_button.rb +0 -123
  49. data/lib/wx/doc/gen/bitmap_combo_box.rb +0 -221
  50. data/lib/wx/doc/gen/book_ctrl_base.rb +0 -274
  51. data/lib/wx/doc/gen/book_ctrl_event.rb +0 -66
  52. data/lib/wx/doc/gen/box_sizer.rb +0 -85
  53. data/lib/wx/doc/gen/brush.rb +0 -251
  54. data/lib/wx/doc/gen/busy_info.rb +0 -157
  55. data/lib/wx/doc/gen/button.rb +0 -182
  56. data/lib/wx/doc/gen/calculate_layout_event.rb +0 -62
  57. data/lib/wx/doc/gen/calendar_ctrl.rb +0 -505
  58. data/lib/wx/doc/gen/calendar_date_attr.rb +0 -138
  59. data/lib/wx/doc/gen/calendar_event.rb +0 -147
  60. data/lib/wx/doc/gen/caret.rb +0 -97
  61. data/lib/wx/doc/gen/check_box.rb +0 -175
  62. data/lib/wx/doc/gen/check_list_box.rb +0 -121
  63. data/lib/wx/doc/gen/choice.rb +0 -175
  64. data/lib/wx/doc/gen/choicebook.rb +0 -116
  65. data/lib/wx/doc/gen/client_dc.rb +0 -43
  66. data/lib/wx/doc/gen/clipboard.rb +0 -144
  67. data/lib/wx/doc/gen/collapsible_pane.rb +0 -138
  68. data/lib/wx/doc/gen/collapsible_pane_event.rb +0 -46
  69. data/lib/wx/doc/gen/colour.rb +0 -333
  70. data/lib/wx/doc/gen/colour_dialog.rb +0 -190
  71. data/lib/wx/doc/gen/colour_picker_ctrl.rb +0 -110
  72. data/lib/wx/doc/gen/colour_picker_event.rb +0 -77
  73. data/lib/wx/doc/gen/combo_box.rb +0 -292
  74. data/lib/wx/doc/gen/combo_ctrl.rb +0 -662
  75. data/lib/wx/doc/gen/command_link_button.rb +0 -134
  76. data/lib/wx/doc/gen/config_base.rb +0 -10
  77. data/lib/wx/doc/gen/context_help_button.rb +0 -56
  78. data/lib/wx/doc/gen/control.rb +0 -277
  79. data/lib/wx/doc/gen/control_with_items.rb +0 -253
  80. data/lib/wx/doc/gen/core.rb +0 -45
  81. data/lib/wx/doc/gen/credential_entry_dialog.rb +0 -137
  82. data/lib/wx/doc/gen/cursor.rb +0 -193
  83. data/lib/wx/doc/gen/data_format.rb +0 -85
  84. data/lib/wx/doc/gen/data_object.rb +0 -436
  85. data/lib/wx/doc/gen/data_object_simple_base.rb +0 -10
  86. data/lib/wx/doc/gen/date_event.rb +0 -49
  87. data/lib/wx/doc/gen/date_picker_ctrl.rb +0 -161
  88. data/lib/wx/doc/gen/dc.rb +0 -1631
  89. data/lib/wx/doc/gen/dc_overlay.rb +0 -102
  90. data/lib/wx/doc/gen/defs.rb +0 -2802
  91. data/lib/wx/doc/gen/dial_up_event.rb +0 -45
  92. data/lib/wx/doc/gen/dial_up_manager.rb +0 -149
  93. data/lib/wx/doc/gen/dialog.rb +0 -541
  94. data/lib/wx/doc/gen/dir_dialog.rb +0 -164
  95. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +0 -90
  96. data/lib/wx/doc/gen/dir_picker_ctrl.rb +0 -125
  97. data/lib/wx/doc/gen/display.rb +0 -238
  98. data/lib/wx/doc/gen/drag_drop.rb +0 -299
  99. data/lib/wx/doc/gen/drag_image.rb +0 -116
  100. data/lib/wx/doc/gen/editable_list_box.rb +0 -109
  101. data/lib/wx/doc/gen/event.rb +0 -990
  102. data/lib/wx/doc/gen/event_blocker.rb +0 -50
  103. data/lib/wx/doc/gen/event_filter.rb +0 -92
  104. data/lib/wx/doc/gen/event_list.rb +0 -1644
  105. data/lib/wx/doc/gen/events.rb +0 -2809
  106. data/lib/wx/doc/gen/evt_handler.rb +0 -229
  107. data/lib/wx/doc/gen/ext_help_controller.rb +0 -155
  108. data/lib/wx/doc/gen/file_ctrl.rb +0 -231
  109. data/lib/wx/doc/gen/file_ctrl_event.rb +0 -83
  110. data/lib/wx/doc/gen/file_dialog.rb +0 -353
  111. data/lib/wx/doc/gen/file_dialog_custom_control.rb +0 -165
  112. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +0 -158
  113. data/lib/wx/doc/gen/file_dir_picker_event.rb +0 -100
  114. data/lib/wx/doc/gen/file_picker_ctrl.rb +0 -132
  115. data/lib/wx/doc/gen/file_system.rb +0 -232
  116. data/lib/wx/doc/gen/find_dialog_event.rb +0 -126
  117. data/lib/wx/doc/gen/find_replace_data.rb +0 -60
  118. data/lib/wx/doc/gen/find_replace_dialog.rb +0 -58
  119. data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -199
  120. data/lib/wx/doc/gen/font.rb +0 -1379
  121. data/lib/wx/doc/gen/font_data.rb +0 -151
  122. data/lib/wx/doc/gen/font_dialog.rb +0 -88
  123. data/lib/wx/doc/gen/font_picker_ctrl.rb +0 -143
  124. data/lib/wx/doc/gen/font_picker_event.rb +0 -65
  125. data/lib/wx/doc/gen/frame.rb +0 -352
  126. data/lib/wx/doc/gen/fs_file.rb +0 -337
  127. data/lib/wx/doc/gen/functions.rb +0 -10
  128. data/lib/wx/doc/gen/gauge.rb +0 -157
  129. data/lib/wx/doc/gen/gb_sizer_item.rb +0 -68
  130. data/lib/wx/doc/gen/gcdc.rb +0 -46
  131. data/lib/wx/doc/gen/gdi_common.rb +0 -1271
  132. data/lib/wx/doc/gen/gdi_object.rb +0 -31
  133. data/lib/wx/doc/gen/generic_about_dialog.rb +0 -140
  134. data/lib/wx/doc/gen/generic_dir_ctrl.rb +0 -223
  135. data/lib/wx/doc/gen/geometry.rb +0 -661
  136. data/lib/wx/doc/gen/graphics_context.rb +0 -1184
  137. data/lib/wx/doc/gen/graphics_object.rb +0 -750
  138. data/lib/wx/doc/gen/grid/event_list.rb +0 -191
  139. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -40
  140. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -280
  141. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -35
  142. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -37
  143. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -49
  144. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -35
  145. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -46
  146. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -38
  147. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -45
  148. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -40
  149. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -197
  150. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -39
  151. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -44
  152. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -45
  153. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -79
  154. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -46
  155. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -35
  156. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -108
  157. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -35
  158. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -49
  159. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -3037
  160. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +0 -95
  161. data/lib/wx/doc/gen/grid/grid_event.rb +0 -129
  162. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +0 -104
  163. data/lib/wx/doc/gen/grid/grid_size_event.rb +0 -85
  164. data/lib/wx/doc/gen/grid/grid_string_table.rb +0 -142
  165. data/lib/wx/doc/gen/grid/grid_table_base.rb +0 -317
  166. data/lib/wx/doc/gen/grid/grid_table_message.rb +0 -81
  167. data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -323
  168. data/lib/wx/doc/gen/grid_sizer.rb +0 -195
  169. data/lib/wx/doc/gen/gui_event_loop.rb +0 -159
  170. data/lib/wx/doc/gen/h_scrolled_window.rb +0 -562
  171. data/lib/wx/doc/gen/header_ctrl.rb +0 -880
  172. data/lib/wx/doc/gen/header_ctrl_event.rb +0 -133
  173. data/lib/wx/doc/gen/help_controller.rb +0 -238
  174. data/lib/wx/doc/gen/help_provider.rb +0 -98
  175. data/lib/wx/doc/gen/html/event_list.rb +0 -38
  176. data/lib/wx/doc/gen/html/html_cell.rb +0 -536
  177. data/lib/wx/doc/gen/html/html_cell_event.rb +0 -69
  178. data/lib/wx/doc/gen/html/html_data_object.rb +0 -42
  179. data/lib/wx/doc/gen/html/html_easy_printing.rb +0 -203
  180. data/lib/wx/doc/gen/html/html_help_controller.rb +0 -382
  181. data/lib/wx/doc/gen/html/html_help_data.rb +0 -159
  182. data/lib/wx/doc/gen/html/html_help_window.rb +0 -258
  183. data/lib/wx/doc/gen/html/html_link_event.rb +0 -41
  184. data/lib/wx/doc/gen/html/html_list_box.rb +0 -346
  185. data/lib/wx/doc/gen/html/html_printout.rb +0 -109
  186. data/lib/wx/doc/gen/html/html_window.rb +0 -461
  187. data/lib/wx/doc/gen/hyperlink_ctrl.rb +0 -311
  188. data/lib/wx/doc/gen/hyperlink_event.rb +0 -44
  189. data/lib/wx/doc/gen/icon.rb +0 -267
  190. data/lib/wx/doc/gen/icon_location.rb +0 -40
  191. data/lib/wx/doc/gen/image.rb +0 -1371
  192. data/lib/wx/doc/gen/image_list.rb +0 -168
  193. data/lib/wx/doc/gen/info_bar.rb +0 -195
  194. data/lib/wx/doc/gen/keyboard_state.rb +0 -140
  195. data/lib/wx/doc/gen/list_box.rb +0 -304
  196. data/lib/wx/doc/gen/list_ctrl.rb +0 -1774
  197. data/lib/wx/doc/gen/list_event.rb +0 -208
  198. data/lib/wx/doc/gen/listbook.rb +0 -116
  199. data/lib/wx/doc/gen/locale.rb +0 -4293
  200. data/lib/wx/doc/gen/log.rb +0 -603
  201. data/lib/wx/doc/gen/mb_conv.rb +0 -10
  202. data/lib/wx/doc/gen/mdi_client_window.rb +0 -47
  203. data/lib/wx/doc/gen/mdi_frame.rb +0 -324
  204. data/lib/wx/doc/gen/media_ctrl.rb +0 -269
  205. data/lib/wx/doc/gen/media_event.rb +0 -117
  206. data/lib/wx/doc/gen/memory_dc.rb +0 -174
  207. data/lib/wx/doc/gen/menu.rb +0 -509
  208. data/lib/wx/doc/gen/menu_bar.rb +0 -287
  209. data/lib/wx/doc/gen/menu_item.rb +0 -362
  210. data/lib/wx/doc/gen/message_dialog.rb +0 -238
  211. data/lib/wx/doc/gen/mini_frame.rb +0 -108
  212. data/lib/wx/doc/gen/mirror_dc.rb +0 -22
  213. data/lib/wx/doc/gen/mouse_state.rb +0 -150
  214. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -80
  215. data/lib/wx/doc/gen/non_owned_window.rb +0 -49
  216. data/lib/wx/doc/gen/notebook.rb +0 -278
  217. data/lib/wx/doc/gen/num_validator.rb +0 -37
  218. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -93
  219. data/lib/wx/doc/gen/object.rb +0 -59
  220. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +0 -395
  221. data/lib/wx/doc/gen/paint_dc.rb +0 -27
  222. data/lib/wx/doc/gen/palette.rb +0 -92
  223. data/lib/wx/doc/gen/panel.rb +0 -127
  224. data/lib/wx/doc/gen/pen.rb +0 -511
  225. data/lib/wx/doc/gen/persistence_manager.rb +0 -135
  226. data/lib/wx/doc/gen/persistent_object.rb +0 -52
  227. data/lib/wx/doc/gen/persistent_window.rb +0 -241
  228. data/lib/wx/doc/gen/pg/event_list.rb +0 -106
  229. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +0 -54
  230. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +0 -292
  231. data/lib/wx/doc/gen/pg/pg_cell.rb +0 -177
  232. data/lib/wx/doc/gen/pg/pg_editor.rb +0 -721
  233. data/lib/wx/doc/gen/pg/pg_multi_button.rb +0 -152
  234. data/lib/wx/doc/gen/pg/pg_properties.rb +0 -2829
  235. data/lib/wx/doc/gen/pg/pg_property.rb +0 -2078
  236. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -344
  237. data/lib/wx/doc/gen/pg/property_grid.rb +0 -740
  238. data/lib/wx/doc/gen/pg/property_grid_event.rb +0 -184
  239. data/lib/wx/doc/gen/pg/property_grid_interface.rb +0 -1098
  240. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -415
  241. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -354
  242. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -165
  243. data/lib/wx/doc/gen/picker_base.rb +0 -152
  244. data/lib/wx/doc/gen/platform_info.rb +0 -622
  245. data/lib/wx/doc/gen/popup_window.rb +0 -107
  246. data/lib/wx/doc/gen/progress_dialog.rb +0 -100
  247. data/lib/wx/doc/gen/property_sheet_dialog.rb +0 -216
  248. data/lib/wx/doc/gen/prt/event_list.rb +0 -17
  249. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +0 -44
  250. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -30
  251. data/lib/wx/doc/gen/prt/preview_frame.rb +0 -78
  252. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +0 -151
  253. data/lib/wx/doc/gen/prt/print_data.rb +0 -804
  254. data/lib/wx/doc/gen/prt/print_dialog.rb +0 -55
  255. data/lib/wx/doc/gen/prt/printer.rb +0 -518
  256. data/lib/wx/doc/gen/prt/printer_dc.rb +0 -37
  257. data/lib/wx/doc/gen/query_layout_info_event.rb +0 -106
  258. data/lib/wx/doc/gen/radio_box.rb +0 -306
  259. data/lib/wx/doc/gen/radio_button.rb +0 -159
  260. data/lib/wx/doc/gen/rbn/event_list.rb +0 -136
  261. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +0 -1142
  262. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +0 -308
  263. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +0 -45
  264. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +0 -458
  265. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +0 -63
  266. data/lib/wx/doc/gen/rbn/ribbon_control.rb +0 -143
  267. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +0 -229
  268. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +0 -55
  269. data/lib/wx/doc/gen/rbn/ribbon_page.rb +0 -174
  270. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +0 -270
  271. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +0 -45
  272. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +0 -360
  273. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +0 -42
  274. data/lib/wx/doc/gen/rearrange_ctrl.rb +0 -78
  275. data/lib/wx/doc/gen/rearrange_list.rb +0 -123
  276. data/lib/wx/doc/gen/region.rb +0 -380
  277. data/lib/wx/doc/gen/region_iterator.rb +0 -76
  278. data/lib/wx/doc/gen/rich_tool_tip.rb +0 -154
  279. data/lib/wx/doc/gen/rt/event_list.rb +0 -17
  280. data/lib/wx/doc/gen/rt/shared_evt_handler.rb +0 -14
  281. data/lib/wx/doc/gen/rt/thread_event.rb +0 -71
  282. data/lib/wx/doc/gen/rtc/event_list.rb +0 -125
  283. data/lib/wx/doc/gen/rtc/rich_text_box.rb +0 -445
  284. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +0 -1188
  285. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +0 -41
  286. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +0 -538
  287. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -2103
  288. data/lib/wx/doc/gen/rtc/rich_text_event.rb +0 -173
  289. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +0 -181
  290. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +0 -319
  291. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +0 -193
  292. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -102
  293. data/lib/wx/doc/gen/rtc/rich_text_image.rb +0 -337
  294. data/lib/wx/doc/gen/rtc/rich_text_object.rb +0 -2922
  295. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +0 -1240
  296. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +0 -258
  297. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +0 -344
  298. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +0 -227
  299. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -59
  300. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +0 -169
  301. data/lib/wx/doc/gen/sash_event.rb +0 -147
  302. data/lib/wx/doc/gen/sash_layout_window.rb +0 -232
  303. data/lib/wx/doc/gen/sash_window.rb +0 -171
  304. data/lib/wx/doc/gen/scaled_dc.rb +0 -10
  305. data/lib/wx/doc/gen/screen_dc.rb +0 -30
  306. data/lib/wx/doc/gen/scroll_bar.rb +0 -204
  307. data/lib/wx/doc/gen/scrolled_canvas.rb +0 -410
  308. data/lib/wx/doc/gen/scrolled_control.rb +0 -410
  309. data/lib/wx/doc/gen/scrolled_window.rb +0 -430
  310. data/lib/wx/doc/gen/search_ctrl.rb +0 -159
  311. data/lib/wx/doc/gen/secret_store.rb +0 -116
  312. data/lib/wx/doc/gen/simplebook.rb +0 -110
  313. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -89
  314. data/lib/wx/doc/gen/sizer.rb +0 -945
  315. data/lib/wx/doc/gen/sizer_item.rb +0 -244
  316. data/lib/wx/doc/gen/slider.rb +0 -342
  317. data/lib/wx/doc/gen/spin_button.rb +0 -157
  318. data/lib/wx/doc/gen/spin_ctrl.rb +0 -231
  319. data/lib/wx/doc/gen/spin_ctrl_double.rb +0 -192
  320. data/lib/wx/doc/gen/spin_double_event.rb +0 -55
  321. data/lib/wx/doc/gen/spin_event.rb +0 -51
  322. data/lib/wx/doc/gen/splash_screen.rb +0 -113
  323. data/lib/wx/doc/gen/splitter_event.rb +0 -99
  324. data/lib/wx/doc/gen/splitter_window.rb +0 -498
  325. data/lib/wx/doc/gen/static_bitmap.rb +0 -256
  326. data/lib/wx/doc/gen/static_box.rb +0 -180
  327. data/lib/wx/doc/gen/static_box_sizer.rb +0 -85
  328. data/lib/wx/doc/gen/static_line.rb +0 -83
  329. data/lib/wx/doc/gen/static_text.rb +0 -127
  330. data/lib/wx/doc/gen/status_bar.rb +0 -290
  331. data/lib/wx/doc/gen/stc/event_list.rb +0 -221
  332. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -4474
  333. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -8762
  334. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -129
  335. data/lib/wx/doc/gen/svg_file_dc.rb +0 -164
  336. data/lib/wx/doc/gen/system_options.rb +0 -129
  337. data/lib/wx/doc/gen/system_settings.rb +0 -507
  338. data/lib/wx/doc/gen/task_bar_icon.rb +0 -127
  339. data/lib/wx/doc/gen/task_bar_icon_event.rb +0 -88
  340. data/lib/wx/doc/gen/text_attr.rb +0 -756
  341. data/lib/wx/doc/gen/text_ctrl.rb +0 -1033
  342. data/lib/wx/doc/gen/text_entry.rb +0 -441
  343. data/lib/wx/doc/gen/text_entry_dialog.rb +0 -220
  344. data/lib/wx/doc/gen/text_validator.rb +0 -245
  345. data/lib/wx/doc/gen/time_picker_ctrl.rb +0 -128
  346. data/lib/wx/doc/gen/timer.rb +0 -119
  347. data/lib/wx/doc/gen/timer_event.rb +0 -68
  348. data/lib/wx/doc/gen/tip_provider.rb +0 -63
  349. data/lib/wx/doc/gen/tip_window.rb +0 -51
  350. data/lib/wx/doc/gen/toggle_button.rb +0 -182
  351. data/lib/wx/doc/gen/tool_bar.rb +0 -890
  352. data/lib/wx/doc/gen/tool_tip.rb +0 -86
  353. data/lib/wx/doc/gen/toolbook.rb +0 -118
  354. data/lib/wx/doc/gen/top_level_window.rb +0 -516
  355. data/lib/wx/doc/gen/tree_ctrl.rb +0 -1052
  356. data/lib/wx/doc/gen/tree_event.rb +0 -127
  357. data/lib/wx/doc/gen/treebook.rb +0 -180
  358. data/lib/wx/doc/gen/ui_action_simulator.rb +0 -109
  359. data/lib/wx/doc/gen/utils.rb +0 -273
  360. data/lib/wx/doc/gen/v_list_box.rb +0 -272
  361. data/lib/wx/doc/gen/v_scrolled_canvas.rb +0 -195
  362. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -191
  363. data/lib/wx/doc/gen/validator.rb +0 -68
  364. data/lib/wx/doc/gen/variant.rb +0 -294
  365. data/lib/wx/doc/gen/web/event_list.rb +0 -95
  366. data/lib/wx/doc/gen/web/web_view.rb +0 -1136
  367. data/lib/wx/doc/gen/web/web_view_event.rb +0 -210
  368. data/lib/wx/doc/gen/web/web_view_handler.rb +0 -318
  369. data/lib/wx/doc/gen/window.rb +0 -2917
  370. data/lib/wx/doc/gen/window_dc.rb +0 -38
  371. data/lib/wx/doc/gen/window_disabler.rb +0 -30
  372. data/lib/wx/doc/gen/with_images.rb +0 -84
  373. data/lib/wx/doc/gen/wizard.rb +0 -257
  374. data/lib/wx/doc/gen/wizard_event.rb +0 -113
  375. data/lib/wx/doc/gen/wizard_page.rb +0 -65
  376. data/lib/wx/doc/gen/wizard_page_simple.rb +0 -88
  377. data/lib/wx/doc/gen/wrap_sizer.rb +0 -79
  378. data/lib/wx/doc/gen/xml_node.rb +0 -316
  379. data/lib/wx/doc/gen/xml_resource.rb +0 -320
  380. data/lib/wx/grid/events/evt_list.rb +0 -166
  381. data/lib/wx/html/events/evt_list.rb +0 -27
  382. data/lib/wx/pg/events/evt_list.rb +0 -73
  383. data/lib/wx/rbn/events/evt_list.rb +0 -102
  384. data/lib/wx/rt/events/evt_list.rb +0 -8
  385. data/lib/wx/rtc/events/evt_list.rb +0 -98
  386. data/lib/wx/rtc/ext/rich_text_ctrl.rb +0 -24
  387. data/lib/wx/stc/events/evt_list.rb +0 -178
  388. data/lib/wx/web/events/evt_list.rb +0 -74
  389. data/samples/art/wxruby-512x512.png +0 -0
  390. data/tests/assets/test.css +0 -1
  391. data/tests/assets/test.html +0 -9
@@ -1,463 +0,0 @@
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
- # The {Wx::App} class represents the application itself when <code>wxUSE_GUI=1</code>.
10
- #
11
- # In addition to the features provided by {Wx::AppConsole} it keeps track of the top window (see {Wx::App#set_top_window}) and adds support for video modes (see {Wx::App#set_display_mode}).
12
- # In general, application-wide settings for GUI-only apps are accessible from {Wx::App} (or from {Wx::SystemSettings} or {Wx::SystemOptions} classes).
13
- # ### Events emitted by this class
14
- #
15
- # Event handler methods for events emitted by this class:
16
- #
17
- # - {Wx::EvtHandler#evt_query_end_session}(meth = nil, &block): Process a query end session event, supplying the member function. See {Wx::CloseEvent}.
18
- #
19
- # - {Wx::EvtHandler#evt_end_session}(meth = nil, &block): Process an end session event, supplying the member function. See {Wx::CloseEvent}.
20
- #
21
- # - {Wx::EvtHandler#evt_activate_app}(meth = nil, &block): Process a {Wx::EVT_ACTIVATE_APP} event. See {Wx::ActivateEvent}.
22
- #
23
- # - {Wx::EvtHandler#evt_hibernate}(meth = nil, &block): Process a hibernate event. See {Wx::ActivateEvent}.
24
- #
25
- # - {Wx::EvtHandler#evt_dialup_connected}(meth = nil, &block): A connection with the network was established. See {Wx::DialUpEvent}.
26
- #
27
- # - {Wx::EvtHandler#evt_dialup_disconnected}(meth = nil, &block): The connection with the network was lost. See {Wx::DialUpEvent}.
28
- #
29
- # - {Wx::EvtHandler#evt_idle}(meth = nil, &block): Process a {Wx::EVT_IDLE} event. See {Wx::IdleEvent}.
30
- #
31
- # Category: Application and Process Management
32
- # @see wxApp Overview
33
- # @see Wx::AppTraits
34
- # @see Wx::EventLoopBase
35
- # @see Wx::SystemSettings
36
- #
37
- #
38
- class App < EvtHandler
39
-
40
- # Possible parameters for {Wx::App#set_appearance}.
41
- #
42
- #
43
- #
44
- class Appearance < Wx::Enum
45
-
46
- # Use system default appearance.
47
- #
48
- System = Wx::App::Appearance.new(0)
49
-
50
- # Use light appearance.
51
- #
52
- Light = Wx::App::Appearance.new(1)
53
-
54
- # Use dark appearance.
55
- #
56
- Dark = Wx::App::Appearance.new(2)
57
-
58
- end # Appearance
59
-
60
- # Possible values returned by {Wx::App#set_appearance}.
61
- #
62
- #
63
- #
64
- class AppearanceResult < Wx::Enum
65
-
66
- # Changing the appearance failed.
67
- #
68
- Failure = Wx::App::AppearanceResult.new(0)
69
-
70
- # {Wx::App::Appearance} was successfully changed.
71
- #
72
- Ok = Wx::App::AppearanceResult.new(1)
73
-
74
- # {Wx::App::Appearance} can't be changed any more.
75
- #
76
- CannotChange = Wx::App::AppearanceResult.new(2)
77
-
78
- end # AppearanceResult
79
-
80
- # Disables the printing of various GTK messages.
81
- #
82
- # This function can be called to suppress GTK diagnostic messages that are output on the standard error stream by default.
83
- # If WXSUPPRESS_GTK_DIAGNOSTICS environment variable is set to a non-zero value, wxWidgets automatically calls this function on program startup with the value of this variable as flags if it's a number or with the default flags value otherwise.
84
- # The default value of the argument disables all messages, but you can pass in a mask flag to specifically disable only particular categories of messages.
85
- # Note that this function only works when using glib 2.50 (released in September 2016) or later and does nothing with the older versions of the library.
86
- #
87
- # Availability: only available for the WXGTK port.
88
- # @param flags [Integer] The mask for the types of messages to suppress. Refer to the glib documentation for the GLogLevelFlags enum, which defines the various message types.
89
- # @return [void]
90
- # @wxrb_require WXGTK
91
- def self.gtk_suppress_diagnostics(flags=-1) end
92
-
93
- # Constructor.
94
- #
95
- # Called implicitly with a definition of a {Wx::App} object.
96
- # @return [Wx::App]
97
- def initialize; end
98
-
99
- # Returns true if the application will exit when the top-level frame is deleted.
100
- #
101
- #
102
- # @see Wx::App#set_exit_on_frame_delete
103
- # @return [Boolean]
104
- def get_exit_on_frame_delete; end
105
- alias_method :exit_on_frame_delete, :get_exit_on_frame_delete
106
-
107
- # Return the layout direction for the current locale or {Wx::LayoutDirection::Layout_Default} if it's unknown.
108
- # @return [Wx::LayoutDirection]
109
- def get_layout_direction; end
110
- alias_method :layout_direction, :get_layout_direction
111
-
112
- # Returns true if the application will use the best visual on systems that support different visuals, false otherwise.
113
- #
114
- #
115
- # @see Wx::App#set_use_best_visual
116
- # @return [Boolean]
117
- def get_use_best_visual; end
118
- alias_method :use_best_visual, :get_use_best_visual
119
-
120
- # Returns a pointer to the top window.
121
- #
122
- # <div class="wxrb-remark">
123
- # <b>Remark:</b>
124
- # <p>If the top window hasn't been set using {Wx::App#set_top_window}, this function will find the first top-level window (frame or dialog or instance of {Wx::TopLevelWindow}) from the internal top level window list and return that.
125
- # </p>
126
- # </div>
127
- # @see Wx::App#set_top_window
128
- # @return [Wx::Window]
129
- def get_top_window; end
130
- alias_method :top_window, :get_top_window
131
-
132
- # Returns true if the application is active, i.e. if one of its windows is currently in the foreground.
133
- #
134
- # If this function returns false and you need to attract users attention to the application, you may use {Wx::TopLevelWindow#request_user_attention} to do it.
135
- # @return [Boolean]
136
- def is_active; end
137
- alias_method :active?, :is_active
138
-
139
- # This function is similar to {yield}, except that it disables the user input to all program windows before calling Wx::AppConsole::Yield and re-enables it again afterwards.
140
- #
141
- # If win is not nil, this window will remain enabled, allowing the implementation of some limited user interaction. Returns the result of the call to Wx::AppConsole::Yield.
142
- # @see safe_yield
143
- # @param win [Wx::Window]
144
- # @param onlyIfNeeded [Boolean]
145
- # @return [Boolean]
146
- def safe_yield(win, onlyIfNeeded) end
147
-
148
- # Works like {Wx::App#safe_yield} with onlyIfNeeded == true except that it allows the caller to specify a mask of events to be processed.
149
- #
150
- # See Wx::EventLoopBase#yield_for for more info.
151
- # @param win [Wx::Window]
152
- # @param eventsToProcess [Integer]
153
- # @return [Boolean]
154
- def safe_yield_for(win, eventsToProcess) end
155
-
156
- # Request using either system default or explicitly light or dark theme for the application.
157
- #
158
- # Under GTK and macOS applications use the system default appearance by default, and so it is only useful to call this function with either {Wx::App::Appearance::Light} or {Wx::App::Appearance::Dark} parameters if you need to override the default system appearance. The effect of calling this function is immediate, i.e. this function returns {Wx::App::AppearanceResult::Ok}, and affects all the existing windows as well as any windows created after this call.
159
- # Under MSW, the default appearance is always light and the applications that want to follow the system appearance need to explicitly call this function with {Wx::App::Appearance::System} parameter in order to do it. Please note using dark appearance under MSW requires using non-documented system functions and has several known limitations, please see {Wx::App#msw_enable_dark_mode} for more details. Also, on this platform the appearance can be only set before any windows are created and calling this function too late will return {Wx::App::AppearanceResult::CannotChange}.
160
- # Note that to query the current appearance, you can use {Wx::SystemAppearance}, see {Wx::SystemSettings.get_appearance}.
161
- # {Wx::App::AppearanceResult::Ok} if the appearance was successfully changed or had been already set to the requested value, {Wx::App::AppearanceResult::CannotChange} if the appearance can't be changed any more because it's too late to do it but could be changed if done immediately on next program launch (only returned by WXMSW currently) or {Wx::App::AppearanceResult::Failure} if changing the appearance failed for some other reason, e.g. because GTK_THEME is defined when using WXGTK of this function is not implemented at all for the current platform.
162
- # @param appearance [Wx::App::Appearance]
163
- # @return [Wx::App::AppearanceResult]
164
- def set_appearance(appearance) end
165
- alias_method :appearance=, :set_appearance
166
-
167
- # Allows the programmer to specify whether the application will exit when the top-level frame is deleted.
168
- #
169
- #
170
- # @see Wx::App#get_exit_on_frame_delete
171
- # @see Application Shutdown
172
- # @param flag [Boolean] If true (the default), the application will exit when the top-level frame is deleted. If false, the application will continue to run.
173
- # @return [void]
174
- def set_exit_on_frame_delete(flag) end
175
- alias_method :exit_on_frame_delete=, :set_exit_on_frame_delete
176
-
177
- # Allows runtime switching of the UI environment theme.
178
- #
179
- # Currently implemented for WXGTK2-only. Return true if theme was successfully changed.
180
- # @param theme [String] The name of the new theme or an absolute path to a gtkrc-theme-file
181
- # @return [Boolean]
182
- def set_native_theme(theme) end
183
- alias_method :native_theme=, :set_native_theme
184
-
185
- # Sets the 'top' window.
186
- #
187
- # You can call this from within {Wx::App#on_init} to let wxWidgets know which is the main window. You don't have to set the top window; it is only a convenience so that (for example) certain dialogs without parents can use a specific window as the top window.
188
- # If no top window is specified by the application, wxWidgets just uses the first frame or dialog (or better, any {Wx::TopLevelWindow}) in its top-level window list, when it needs to use the top window. If you previously called {Wx::App#set_top_window} and now you need to restore this automatic behaviour you can call <code>wxApp::SetTopWindow(nil)</code>.
189
- # @see Wx::App#get_top_window
190
- # @see Wx::App#on_init
191
- # @param window [Wx::Window] The new top window.
192
- # @return [void]
193
- def set_top_window(window) end
194
- alias_method :top_window=, :set_top_window
195
-
196
- # Allows the programmer to specify whether the application will use the best visual on systems that support several visual on the same display.
197
- #
198
- # This is typically the case under Solaris and IRIX, where the default visual is only 8-bit whereas certain applications are supposed to run in TrueColour mode.
199
- # Note that this function has to be called in the constructor of the {Wx::App} instance and won't have any effect when called later on. This function currently only has effect under GTK.
200
- # @param flag [Boolean] If true, the app will use the best visual.
201
- # @param forceTrueColour [Boolean] If true then the application will try to force using a TrueColour visual and abort the app if none is found.
202
- # @return [void]
203
- def set_use_best_visual(flag, forceTrueColour=false) end
204
- alias_method :use_best_visual=, :set_use_best_visual
205
-
206
- # Returns a pointer to the top application window if any.
207
- #
208
- # This function is safe to call even before creating, or after destroying, the application object, as it simply returns nil if it doesn't exist. Otherwise it's equivalent to calling <code>wxTheApp->Wx::App#get_top_window</code>.
209
- # @return [Wx::Window]
210
- def self.get_main_top_window; end
211
-
212
- # Call this to explicitly exit the main message (event) loop.
213
- #
214
- # You should normally exit the main loop (and the application) by deleting the top window.
215
- # This function simply calls Wx::EvtLoopBase#exit on the active loop.
216
- # @return [void]
217
- def exit_main_loop; end
218
-
219
- # Overridden {Wx::EventFilter} method.
220
- #
221
- # This function is called before processing any event and allows the application to preempt the processing of some events, see {Wx::EventFilter} documentation for more information.
222
- # {Wx::App} implementation of this method always return -1 indicating that the event should be processed normally.
223
- # @param event [Wx::Event]
224
- # @return [Integer]
225
- def filter_event(event) end
226
-
227
- # Returns true if the application is using an event loop.
228
- #
229
- # This function always returns true for the GUI applications which must use an event loop but by default only returns true for the console programs if an event loop is already running as it can't know whether one will be created in the future.
230
- # Thus, it only makes sense to override it in console applications which do use an event loop, to return true instead of checking if there is a currently active event loop.
231
- # @return [Boolean]
232
- def uses_event_loop; end
233
-
234
- # Process all pending events; it is necessary to call this function to process events posted with {Wx::EvtHandler#queue_event} or {Wx::EvtHandler#add_pending_event}.
235
- #
236
- # This happens during each event loop iteration (see {Wx::EventLoopBase}) in GUI mode but it may be also called directly.
237
- # Note that this function does not only process the pending events for the {Wx::App} object itself (which derives from {Wx::EvtHandler}) but also the pending events for any event handler of this application.
238
- # This function will immediately return and do nothing if {Wx::App#suspend_processing_of_pending_events} was called.
239
- # @return [void]
240
- def process_pending_events; end
241
-
242
- # Deletes the pending events of all {Wx::EvtHandlers} of this application.
243
- #
244
- # See {Wx::EvtHandler#delete_pending_events} for warnings about deleting the pending events.
245
- # @return [void]
246
- def delete_pending_events; end
247
-
248
- # Returns true if there are pending events on the internal pending event list.
249
- #
250
- # Whenever {Wx::EvtHandler#queue_event} or {Wx::EvtHandler#add_pending_event} are called (not only for {Wx::App} itself, but for any event handler of the application!), the internal {Wx::App}'s list of handlers with pending events is updated and this function will return true.
251
- # @return [Boolean]
252
- def has_pending_events; end
253
- alias_method :has_pending_events?, :has_pending_events
254
-
255
- # Temporary suspends processing of the pending events.
256
- #
257
- #
258
- # @see Wx::App#resume_processing_of_pending_events
259
- # @return [void]
260
- def suspend_processing_of_pending_events; end
261
-
262
- # Resume processing of the pending events previously stopped because of a call to {Wx::App#suspend_processing_of_pending_events}.
263
- # @return [void]
264
- def resume_processing_of_pending_events; end
265
-
266
- # This function is called when an assert failure occurs, i.e. the condition specified in {assert} macro evaluated to false.
267
- #
268
- # It is only called in debug mode (when __WXDEBUG__ is defined) as asserts are not left in the release code at all. The base class version shows the default assert failure dialog box proposing to the user to stop the program, continue or ignore all subsequent asserts.
269
- # @param file [String] the name of the source file where the assert occurred
270
- # @param line [Integer] the line number in this file where the assert occurred
271
- # @param func [String] the name of the function where the assert occurred
272
- # @param cond [String] the condition of the failed assert in text form
273
- # @param msg [String] the message specified as argument to {Wx::ASSERT_MSG} or {Wx::FAIL_MSG}, will be nil if just {Wx::ASSERT} or {Wx::FAIL} was used
274
- # @return [void]
275
- def on_assert_failure(file, line, func, cond, msg) end
276
-
277
- # Call {Wx::App#on_unhandled_exception} on the current {Wx::TheApp} object if it exists.
278
- #
279
- # This function is used by wxWidgets itself and is usually not meant to be called by the application code. If you do call it, it must be done from a catch clause of a try block, i.e. there must be a currently handled exception.
280
- # The function checks if {Wx::TheApp} is not nil and if it is, calls {Wx::App#on_unhandled_exception} on it.
281
- # Additionally, if this call results in an exception, it is caught and Wx::AppConsole#on_unhandled_exception is called.
282
- # @return [void]
283
- def self.call_on_unhandled_exception; end
284
-
285
- # Returns the user-readable application name.
286
- #
287
- # The difference between this string and the one returned by {Wx::App#get_app_name} is that this one is meant to be shown to the user and so should be used for the window titles, page headers and so on while the other one should be only used internally, e.g. for the file names or configuration file keys.
288
- # If the application name for display had been previously set by {Wx::App#set_app_display_name}, it will be returned by this function. Otherwise, if {Wx::App#set_app_name} had been called its value will be returned; also as is. Finally if none was called, this function returns the program name capitalized using Wx::String#capitalize.
289
- # @return [String]
290
- def get_app_display_name; end
291
- alias_method :app_display_name, :get_app_display_name
292
-
293
- # Returns the application name.
294
- #
295
- # If {Wx::App#set_app_name} had been called, returns the string passed to it. Otherwise returns the program name, i.e. the value of argv[0] passed to the <code>main()</code> function.
296
- # @see Wx::App#get_app_display_name
297
- # @return [String]
298
- def get_app_name; end
299
- alias_method :app_name, :get_app_name
300
-
301
- # Gets the class name of the application.
302
- #
303
- # The class name may be used in a platform specific manner to refer to the application.
304
- # @see Wx::App#set_class_name
305
- # @return [String]
306
- def get_class_name; end
307
- alias_method :class_name, :get_class_name
308
-
309
- # Returns a pointer to the {Wx::AppTraits} object for the application.
310
- #
311
- # If you want to customize the {Wx::AppTraits} object, you must override the {Wx::App#create_traits} function.
312
- # @return [Wx::AppTraits]
313
- def get_traits; end
314
- alias_method :traits, :get_traits
315
-
316
- # Returns the user-readable vendor name.
317
- #
318
- # The difference between this string and the one returned by {Wx::App#get_vendor_name} is that this one is meant to be shown to the user and so should be used for the window titles, page headers and so on while the other one should be only used internally, e.g. for the file names or configuration file keys.
319
- # By default, returns the same string as {Wx::App#get_vendor_name}.
320
- # @return [Wx::String]
321
- def get_vendor_display_name; end
322
- alias_method :vendor_display_name, :get_vendor_display_name
323
-
324
- # Returns the application's vendor name.
325
- # @return [Wx::String]
326
- def get_vendor_name; end
327
- alias_method :vendor_name, :get_vendor_name
328
-
329
- # Set the application name to be used in the user-visible places such as window titles.
330
- #
331
- # See {Wx::App#get_app_display_name} for more about the differences between the display name and name.
332
- # Notice that if this function is called, the name is used as is, without any capitalization as done by default by {Wx::App#get_app_display_name}.
333
- # @param name [String]
334
- # @return [void]
335
- def set_app_display_name(name) end
336
- alias_method :app_display_name=, :set_app_display_name
337
-
338
- # Sets the name of the application.
339
- #
340
- # This name should be used for file names, configuration file entries and other internal strings. For the user-visible strings, such as the window titles, the application display name set by {Wx::App#set_app_display_name} is used instead.
341
- # By default the application name is set to the name of its executable file.
342
- # @see Wx::App#get_app_name
343
- # @param name [String]
344
- # @return [void]
345
- def set_app_name(name) end
346
- alias_method :app_name=, :set_app_name
347
-
348
- # Sets the class name of the application.
349
- #
350
- # The class name is used in a platform specific manner. Currently it is used as "Application User Model ID" under Windows (see Microsoft documentation), "app ID" when using WXGTK 3.24.22 or later with Wayland (see Wayland documentation) and is unused under the other platforms.
351
- # When it is used, the class name purpose is to allow the system to handle all windows with the same ID as belonging to the same application, e.g. to group them together in the taskbar (so the value set here is used by {Wx::TaskBarJumpList} constructor). By default the application executable name is used as its ID, so it is not necessary to set the class name, but it may be useful to do it to specify a more unique string (typically by using a reverse domain name notation with the domain unique to the application vendor) or by specifying the same ID in different applications that should be handled as a single one at UI level.
352
- #
353
- # <div class="wxrb-note">
354
- # <b>Note:</b>
355
- # <p>Under Windows setting the application user model ID changes some functionality available by default, notably Shift middle clicking the application icon in the taskbar doesn't open a new instance of the application any more and most recently used files list maintained by the shell doesn't work any longer. Application that need to keep this working need to use <code>SHGetPropertyStoreForWindow()</code> and <code>SHAddToRecentDocs()</code> functions to provide the necessary support for it.
356
- # </p>
357
- # </div>
358
- #
359
- # Please note that {Wx::App#set_class_name} must be called as early as possible and definitely before creating any top-level windows to have an effect. Typically it should be called in the constructor of the class derived from {Wx::App}, e.g.
360
- #
361
- # ```
362
- # class MyApp : public wxApp
363
- # {
364
- # public:
365
- # MyApp() {
366
- # // Constructor shouldn't perform any non-trivial initialization
367
- # // as the GUI is not available yet, but this function is fine
368
- # // to call.
369
- # SetClassName("com.example.myapp");
370
- # }
371
- # };
372
- # ```
373
- # @see Wx::App#get_class_name
374
- # @param name [String]
375
- # @return [void]
376
- def set_class_name(name) end
377
- alias_method :class_name=, :set_class_name
378
-
379
- # Set the vendor name to be used in the user-visible places.
380
- #
381
- # See {Wx::App#get_vendor_display_name} for more about the differences between the display name and name.
382
- # @param name [String]
383
- # @return [void]
384
- def set_vendor_display_name(name) end
385
- alias_method :vendor_display_name=, :set_vendor_display_name
386
-
387
- # Sets the name of application's vendor.
388
- #
389
- # The name will be used in registry access. A default name is set by wxWidgets.
390
- # @see Wx::App#get_vendor_name
391
- # @param name [String]
392
- # @return [void]
393
- def set_vendor_name(name) end
394
- alias_method :vendor_name=, :set_vendor_name
395
-
396
- # Yields control to pending messages in the event loop.
397
- #
398
- # This method is a convenient wrapper for Wx::EvtLoopBase#yield. If the main loop is currently running, it calls this method on it. Otherwise it creates a temporary event loop and uses it instead, which can be useful to process pending messages during the program startup, before the main loop is created.
399
- # Use extreme caution when calling this function as, just as Wx::EvtLoopBase#yield, it can result in unexpected reentrances.
400
- # @param onlyIfNeeded [Boolean]
401
- # @return [Boolean]
402
- def yield(onlyIfNeeded=false) end
403
-
404
- # Sets the C locale to the default locale for the current environment.
405
- #
406
- # It is advised to call this to ensure that the underlying toolkit uses the locale in which the numbers and monetary amounts are shown in the format expected by user and so on.
407
- # Calling this function is roughly equivalent to calling
408
- # ```
409
- # setlocale(LC_ALL, "");
410
- # ```
411
- # but performs additional toolkit-specific tasks under some platforms and so should be used instead of <code>setlocale()</code> itself. Alternatively, you can use {Wx::Locale} to change the locale with more control.
412
- # Notice that this does not change the global C++ locale, you need to do it explicitly if you want, e.g.
413
- # ```
414
- # std::locale::global(std::locale(""));
415
- # ```
416
- # but be warned that locale support in C++ standard library can be poor or worse under some platforms.
417
- # @return [void]
418
- def set_c_locale; end
419
-
420
- # Sets the error code to use in case of exit on error.
421
- #
422
- # This function is mostly useful to customize the error code returned by the application when it exits due to {Wx::App#on_init} returning false and can be called from {Wx::App#on_init} itself or other virtual functions called from it, for example {Wx::App#on_cmd_line_error}.
423
- # By default, the exit code is 255 which indicates a generic error, so it is may be useful to call this function to set a more precise exit code, e.g. 2 which is a de facto standard exit code if command line parsing fails.
424
- # Please also note that in the previous versions of wxWidgets this exit code was <code>-1</code>, which corresponds to either 255 or 127 depending on the platform and compiler used, so you may want to call this function with <code>-1</code> argument if you need to preserve compatibility with the old behaviour.
425
- # {Wx::App#set_error_exit_code} can be overridden by the application to perform additional actions, but the overridden version should call the base class version to update the value returned by GetErrorExitCode() and actually used when exiting the application.
426
- # @see Wx::App#set_fatal_error_exit_code
427
- # @param code [Integer]
428
- # @return [void]
429
- def set_error_exit_code(code) end
430
- alias_method :error_exit_code=, :set_error_exit_code
431
-
432
- # Returns true if the main event loop is currently running, i.e. if the application is inside {Wx::App#on_run}.
433
- #
434
- # This can be useful to test whether events can be dispatched. For example, if this function returns false, non-blocking sockets cannot be used because the events from them would never be processed.
435
- # @return [Boolean]
436
- def self.is_main_loop_running; end
437
-
438
- # Allows to set a custom process exit code if a fatal error happens.
439
- #
440
- # If the program can't continue due to a fatal error, such as receiving an unhandled exception or failing to initialize the graphical environment for the GUI applications, it terminates with the default fatal error exit code which is 255.
441
- # This function can be used to change this default value to something else, e.g. <code>-1</code> which used to be returned in the previous versions of wxWidgets (and corresponds to either 255 or 127 depending on the platform and compiler used) if compatibility is important.
442
- # Notice that it has to be called as early as possible to take effect even during the early application initialization, e.g.
443
- #
444
- # ```
445
- # struct FatalErrorCodeInitializer {
446
- # FatalErrorCodeInitializer() {
447
- # wxApp::SetFatalErrorExitCode(3); // same as abort()
448
- # }
449
- # };
450
- #
451
- # // Create a global variable to call SetFatalErrorExitCode() in its ctor.
452
- # static FatalErrorCodeInitializer s_fatalErrorCodeInitializer;
453
- # ```
454
- #
455
- # Note that this function doesn't change the exit code returned if {Wx::App#on_init} returns false, so if you change the default value of this exit code you may want to call {Wx::App#set_error_exit_code} to change the other one too.
456
- # @param code [Integer]
457
- # @return [void]
458
- def self.set_fatal_error_exit_code(code) end
459
-
460
- end # App
461
-
462
-
463
- end