wxruby3 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CREDITS.md +32 -25
- data/INSTALL.md +19 -4
- data/README.md +5 -5
- data/assets/repo-social-preview.odg +0 -0
- data/assets/repo-social-preview.xcf +0 -0
- data/ext/wxruby3/include/wxRubyApp.h +58 -45
- data/ext/wxruby3/include/wxruby-runtime.h +78 -1
- data/ext/wxruby3/swig/common.i +2 -2
- data/ext/wxruby3/swig/custom/director.swg +2 -2
- data/ext/wxruby3/swig/custom/rubyprimtypes.swg +59 -15
- data/ext/wxruby3/swig/custom/rubyrun.swg +4 -0
- data/ext/wxruby3/swig/custom/rubytracking.swg +4 -0
- data/ext/wxruby3/swig/custom/swiglabels.swg +129 -0
- data/ext/wxruby3/swig/custom/swigrun.swg +15 -0
- data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +20 -0
- data/ext/wxruby3/swig/mark_free_impl.i +152 -88
- data/ext/wxruby3/swig/memory_management.i +1 -0
- data/ext/wxruby3/swig/wx.i +73 -44
- data/lib/wx/aui/events/evt_list.rb +148 -0
- data/lib/wx/aui/require.rb +0 -1
- data/lib/wx/core/calendar_ctrl.rb +15 -0
- data/lib/wx/core/clipboard.rb +9 -13
- data/lib/wx/core/config.rb +1 -1
- data/lib/wx/core/events/evt_list.rb +1458 -0
- data/lib/wx/core/font/encoding.rb +113 -0
- data/lib/wx/core/generic_validator.rb +83 -31
- data/lib/wx/core/tipwindow.rb +16 -0
- data/lib/wx/doc/aui/auitabctrl.rb +35 -0
- data/lib/wx/doc/config.rb +2 -2
- data/lib/wx/doc/functions.rb +1 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
- data/lib/wx/doc/gen/accelerator.rb +178 -0
- data/lib/wx/doc/gen/activity_indicator.rb +83 -0
- data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
- data/lib/wx/doc/gen/animation.rb +275 -0
- data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
- data/lib/wx/doc/gen/any_button.rb +191 -0
- data/lib/wx/doc/gen/app.rb +463 -0
- data/lib/wx/doc/gen/app_traits.rb +396 -0
- data/lib/wx/doc/gen/art_provider.rb +605 -0
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
- data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
- data/lib/wx/doc/gen/aui/event_list.rb +179 -0
- data/lib/wx/doc/gen/banner_window.rb +124 -0
- data/lib/wx/doc/gen/bitmap.rb +731 -0
- data/lib/wx/doc/gen/bitmap_button.rb +123 -0
- data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
- data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
- data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
- data/lib/wx/doc/gen/box_sizer.rb +85 -0
- data/lib/wx/doc/gen/brush.rb +251 -0
- data/lib/wx/doc/gen/busy_info.rb +157 -0
- data/lib/wx/doc/gen/button.rb +182 -0
- data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
- data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
- data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
- data/lib/wx/doc/gen/calendar_event.rb +147 -0
- data/lib/wx/doc/gen/caret.rb +97 -0
- data/lib/wx/doc/gen/check_box.rb +175 -0
- data/lib/wx/doc/gen/check_list_box.rb +121 -0
- data/lib/wx/doc/gen/choice.rb +175 -0
- data/lib/wx/doc/gen/choicebook.rb +116 -0
- data/lib/wx/doc/gen/client_dc.rb +43 -0
- data/lib/wx/doc/gen/clipboard.rb +144 -0
- data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
- data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
- data/lib/wx/doc/gen/colour.rb +333 -0
- data/lib/wx/doc/gen/colour_dialog.rb +190 -0
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
- data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
- data/lib/wx/doc/gen/combo_box.rb +292 -0
- data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
- data/lib/wx/doc/gen/command_link_button.rb +134 -0
- data/lib/wx/doc/gen/config_base.rb +10 -0
- data/lib/wx/doc/gen/context_help_button.rb +109 -0
- data/lib/wx/doc/gen/control.rb +277 -0
- data/lib/wx/doc/gen/control_with_items.rb +253 -0
- data/lib/wx/doc/gen/core.rb +45 -0
- data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
- data/lib/wx/doc/gen/cursor.rb +193 -0
- data/lib/wx/doc/gen/data_format.rb +85 -0
- data/lib/wx/doc/gen/data_object.rb +436 -0
- data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
- data/lib/wx/doc/gen/date_event.rb +49 -0
- data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
- data/lib/wx/doc/gen/dc.rb +1631 -0
- data/lib/wx/doc/gen/dc_overlay.rb +102 -0
- data/lib/wx/doc/gen/defs.rb +2802 -0
- data/lib/wx/doc/gen/dial_up_event.rb +45 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
- data/lib/wx/doc/gen/dialog.rb +541 -0
- data/lib/wx/doc/gen/dir_dialog.rb +164 -0
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
- data/lib/wx/doc/gen/display.rb +238 -0
- data/lib/wx/doc/gen/drag_drop.rb +299 -0
- data/lib/wx/doc/gen/drag_image.rb +116 -0
- data/lib/wx/doc/gen/editable_list_box.rb +109 -0
- data/lib/wx/doc/gen/event.rb +990 -0
- data/lib/wx/doc/gen/event_blocker.rb +50 -0
- data/lib/wx/doc/gen/event_filter.rb +92 -0
- data/lib/wx/doc/gen/event_list.rb +1644 -0
- data/lib/wx/doc/gen/events.rb +2809 -0
- data/lib/wx/doc/gen/evt_handler.rb +229 -0
- data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
- data/lib/wx/doc/gen/file_ctrl.rb +231 -0
- data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
- data/lib/wx/doc/gen/file_dialog.rb +353 -0
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
- data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
- data/lib/wx/doc/gen/file_system.rb +232 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
- data/lib/wx/doc/gen/find_replace_data.rb +60 -0
- data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
- data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
- data/lib/wx/doc/gen/font.rb +1379 -0
- data/lib/wx/doc/gen/font_data.rb +151 -0
- data/lib/wx/doc/gen/font_dialog.rb +88 -0
- data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
- data/lib/wx/doc/gen/font_picker_event.rb +65 -0
- data/lib/wx/doc/gen/frame.rb +352 -0
- data/lib/wx/doc/gen/fs_file.rb +337 -0
- data/lib/wx/doc/gen/functions.rb +10 -0
- data/lib/wx/doc/gen/gauge.rb +157 -0
- data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
- data/lib/wx/doc/gen/gcdc.rb +46 -0
- data/lib/wx/doc/gen/gdi_common.rb +1271 -0
- data/lib/wx/doc/gen/gdi_object.rb +31 -0
- data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
- data/lib/wx/doc/gen/geometry.rb +661 -0
- data/lib/wx/doc/gen/graphics_context.rb +1184 -0
- data/lib/wx/doc/gen/graphics_object.rb +750 -0
- data/lib/wx/doc/gen/grid/event_list.rb +191 -0
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
- data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
- data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
- data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
- data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
- data/lib/wx/doc/gen/grid_sizer.rb +195 -0
- data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
- data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
- data/lib/wx/doc/gen/header_ctrl.rb +880 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
- data/lib/wx/doc/gen/help_controller.rb +195 -0
- data/lib/wx/doc/gen/help_provider.rb +98 -0
- data/lib/wx/doc/gen/html/event_list.rb +38 -0
- data/lib/wx/doc/gen/html/html_cell.rb +536 -0
- data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
- data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
- data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
- data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
- data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
- data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
- data/lib/wx/doc/gen/html/html_printout.rb +109 -0
- data/lib/wx/doc/gen/html/html_window.rb +461 -0
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
- data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
- data/lib/wx/doc/gen/icon.rb +267 -0
- data/lib/wx/doc/gen/icon_location.rb +40 -0
- data/lib/wx/doc/gen/image.rb +1371 -0
- data/lib/wx/doc/gen/image_list.rb +168 -0
- data/lib/wx/doc/gen/info_bar.rb +195 -0
- data/lib/wx/doc/gen/keyboard_state.rb +140 -0
- data/lib/wx/doc/gen/list_box.rb +304 -0
- data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
- data/lib/wx/doc/gen/list_event.rb +208 -0
- data/lib/wx/doc/gen/listbook.rb +116 -0
- data/lib/wx/doc/gen/locale.rb +4293 -0
- data/lib/wx/doc/gen/log.rb +603 -0
- data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
- data/lib/wx/doc/gen/mdi_frame.rb +324 -0
- data/lib/wx/doc/gen/media_ctrl.rb +269 -0
- data/lib/wx/doc/gen/media_event.rb +117 -0
- data/lib/wx/doc/gen/memory_dc.rb +174 -0
- data/lib/wx/doc/gen/menu.rb +509 -0
- data/lib/wx/doc/gen/menu_bar.rb +287 -0
- data/lib/wx/doc/gen/menu_item.rb +362 -0
- data/lib/wx/doc/gen/message_dialog.rb +238 -0
- data/lib/wx/doc/gen/mini_frame.rb +108 -0
- data/lib/wx/doc/gen/mirror_dc.rb +22 -0
- data/lib/wx/doc/gen/mouse_state.rb +150 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
- data/lib/wx/doc/gen/non_owned_window.rb +49 -0
- data/lib/wx/doc/gen/notebook.rb +278 -0
- data/lib/wx/doc/gen/num_validator.rb +37 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
- data/lib/wx/doc/gen/object.rb +59 -0
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
- data/lib/wx/doc/gen/paint_dc.rb +27 -0
- data/lib/wx/doc/gen/palette.rb +92 -0
- data/lib/wx/doc/gen/panel.rb +127 -0
- data/lib/wx/doc/gen/pen.rb +511 -0
- data/lib/wx/doc/gen/persistence_manager.rb +135 -0
- data/lib/wx/doc/gen/persistent_object.rb +52 -0
- data/lib/wx/doc/gen/persistent_window.rb +241 -0
- data/lib/wx/doc/gen/pg/event_list.rb +106 -0
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
- data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
- data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
- data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
- data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
- data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
- data/lib/wx/doc/gen/picker_base.rb +152 -0
- data/lib/wx/doc/gen/platform_info.rb +622 -0
- data/lib/wx/doc/gen/popup_window.rb +107 -0
- data/lib/wx/doc/gen/progress_dialog.rb +100 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
- data/lib/wx/doc/gen/prt/event_list.rb +17 -0
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
- data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
- data/lib/wx/doc/gen/prt/print_data.rb +804 -0
- data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
- data/lib/wx/doc/gen/prt/printer.rb +518 -0
- data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
- data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
- data/lib/wx/doc/gen/radio_box.rb +306 -0
- data/lib/wx/doc/gen/radio_button.rb +159 -0
- data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
- data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
- data/lib/wx/doc/gen/rearrange_list.rb +123 -0
- data/lib/wx/doc/gen/region.rb +380 -0
- data/lib/wx/doc/gen/region_iterator.rb +76 -0
- data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
- data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
- data/lib/wx/doc/gen/sash_event.rb +147 -0
- data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
- data/lib/wx/doc/gen/sash_window.rb +171 -0
- data/lib/wx/doc/gen/scaled_dc.rb +10 -0
- data/lib/wx/doc/gen/screen_dc.rb +30 -0
- data/lib/wx/doc/gen/scroll_bar.rb +204 -0
- data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
- data/lib/wx/doc/gen/scrolled_control.rb +410 -0
- data/lib/wx/doc/gen/scrolled_window.rb +430 -0
- data/lib/wx/doc/gen/search_ctrl.rb +159 -0
- data/lib/wx/doc/gen/secret_store.rb +116 -0
- data/lib/wx/doc/gen/simplebook.rb +110 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
- data/lib/wx/doc/gen/sizer.rb +945 -0
- data/lib/wx/doc/gen/sizer_item.rb +244 -0
- data/lib/wx/doc/gen/slider.rb +342 -0
- data/lib/wx/doc/gen/spin_button.rb +157 -0
- data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
- data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
- data/lib/wx/doc/gen/spin_double_event.rb +55 -0
- data/lib/wx/doc/gen/spin_event.rb +51 -0
- data/lib/wx/doc/gen/splash_screen.rb +113 -0
- data/lib/wx/doc/gen/splitter_event.rb +99 -0
- data/lib/wx/doc/gen/splitter_window.rb +498 -0
- data/lib/wx/doc/gen/static_bitmap.rb +256 -0
- data/lib/wx/doc/gen/static_box.rb +180 -0
- data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
- data/lib/wx/doc/gen/static_line.rb +83 -0
- data/lib/wx/doc/gen/static_text.rb +127 -0
- data/lib/wx/doc/gen/status_bar.rb +290 -0
- data/lib/wx/doc/gen/stc/event_list.rb +221 -0
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
- data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
- data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
- data/lib/wx/doc/gen/system_options.rb +129 -0
- data/lib/wx/doc/gen/system_settings.rb +507 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
- data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
- data/lib/wx/doc/gen/text_attr.rb +756 -0
- data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
- data/lib/wx/doc/gen/text_entry.rb +441 -0
- data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
- data/lib/wx/doc/gen/text_validator.rb +245 -0
- data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
- data/lib/wx/doc/gen/timer.rb +119 -0
- data/lib/wx/doc/gen/timer_event.rb +68 -0
- data/lib/wx/doc/gen/tip_provider.rb +63 -0
- data/lib/wx/doc/gen/tip_window.rb +51 -0
- data/lib/wx/doc/gen/toggle_button.rb +182 -0
- data/lib/wx/doc/gen/tool_bar.rb +890 -0
- data/lib/wx/doc/gen/tool_tip.rb +86 -0
- data/lib/wx/doc/gen/toolbook.rb +118 -0
- data/lib/wx/doc/gen/top_level_window.rb +497 -0
- data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
- data/lib/wx/doc/gen/tree_event.rb +127 -0
- data/lib/wx/doc/gen/treebook.rb +180 -0
- data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
- data/lib/wx/doc/gen/utils.rb +273 -0
- data/lib/wx/doc/gen/v_list_box.rb +272 -0
- data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
- data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
- data/lib/wx/doc/gen/validator.rb +68 -0
- data/lib/wx/doc/gen/variant.rb +294 -0
- data/lib/wx/doc/gen/window.rb +2917 -0
- data/lib/wx/doc/gen/window_dc.rb +38 -0
- data/lib/wx/doc/gen/window_disabler.rb +30 -0
- data/lib/wx/doc/gen/with_images.rb +84 -0
- data/lib/wx/doc/gen/wizard.rb +257 -0
- data/lib/wx/doc/gen/wizard_event.rb +113 -0
- data/lib/wx/doc/gen/wizard_page.rb +65 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
- data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
- data/lib/wx/doc/gen/xml_node.rb +316 -0
- data/lib/wx/doc/gen/xml_resource.rb +320 -0
- data/lib/wx/doc/generic_validator.rb +5 -0
- data/lib/wx/doc/tip_window.rb +18 -6
- data/lib/wx/grid/events/evt_list.rb +166 -0
- data/lib/wx/html/events/evt_list.rb +27 -0
- data/lib/wx/html/simple_html_listbox.rb +46 -33
- data/lib/wx/keyword_defs.rb +9 -0
- data/lib/wx/pg/events/evt_list.rb +73 -0
- data/lib/wx/pg/pg_property.rb +26 -0
- data/lib/wx/pg/property_grid_interface.rb +2 -2
- data/lib/wx/rbn/events/evt_list.rb +102 -0
- data/lib/wx/rtc/events/evt_list.rb +98 -0
- data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
- data/lib/wx/stc/events/evt_list.rb +178 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wx/wxruby/cmd/setup.rb +6 -0
- data/rakelib/configure.rb +9 -0
- data/rakelib/gem.rake +3 -2
- data/rakelib/lib/config/linux.rb +1 -1
- data/rakelib/lib/config/macosx.rb +15 -1
- data/rakelib/lib/config/pkgman/linux.rb +7 -2
- data/rakelib/lib/config/unixish.rb +3 -3
- data/rakelib/lib/config.rb +16 -5
- data/rakelib/lib/core/include/swigdirector.inc +3 -3
- data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
- data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
- data/rakelib/lib/core/include/swigrun.inc +189 -0
- data/rakelib/lib/core/package.rb +3 -1
- data/rakelib/lib/director/accelerator.rb +1 -1
- data/rakelib/lib/director/animation.rb +1 -0
- data/rakelib/lib/director/app_traits.rb +1 -1
- data/rakelib/lib/director/aui_manager.rb +21 -14
- data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
- data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
- data/rakelib/lib/director/aui_notebook.rb +20 -3
- data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
- data/rakelib/lib/director/calendar_ctrl.rb +72 -14
- data/rakelib/lib/director/clipboard.rb +2 -0
- data/rakelib/lib/director/data_object.rb +15 -7
- data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
- data/rakelib/lib/director/display.rb +81 -0
- data/rakelib/lib/director/event.rb +33 -16
- data/rakelib/lib/director/event_handler.rb +27 -2
- data/rakelib/lib/director/functions.rb +9 -0
- data/rakelib/lib/director/geometry.rb +5 -0
- data/rakelib/lib/director/grid_ctrl.rb +123 -28
- data/rakelib/lib/director/help_provider.rb +1 -1
- data/rakelib/lib/director/html_listbox.rb +16 -3
- data/rakelib/lib/director/hvscrolled.rb +7 -106
- data/rakelib/lib/director/image_list.rb +1 -0
- data/rakelib/lib/director/mdi_frame.rb +4 -0
- data/rakelib/lib/director/menu.rb +56 -15
- data/rakelib/lib/director/menu_bar.rb +62 -0
- data/rakelib/lib/director/menu_item.rb +7 -1
- data/rakelib/lib/director/num_validator.rb +27 -0
- data/rakelib/lib/director/numeric_property_validator.rb +9 -0
- data/rakelib/lib/director/popup_window.rb +2 -0
- data/rakelib/lib/director/preview_frame.rb +29 -6
- data/rakelib/lib/director/printer.rb +59 -5
- data/rakelib/lib/director/property_grid.rb +37 -18
- data/rakelib/lib/director/property_grid_interface.rb +10 -8
- data/rakelib/lib/director/property_grid_manager.rb +99 -39
- data/rakelib/lib/director/property_grid_page.rb +60 -0
- data/rakelib/lib/director/rich_tooltip.rb +22 -0
- data/rakelib/lib/director/richtext_ctrl.rb +5 -0
- data/rakelib/lib/director/richtext_object.rb +13 -4
- data/rakelib/lib/director/richtext_style_listbox.rb +4 -1
- data/rakelib/lib/director/scrolled_t.rb +3 -0
- data/rakelib/lib/director/searchctrl.rb +1 -0
- data/rakelib/lib/director/task_bar_icon.rb +14 -8
- data/rakelib/lib/director/text_validator.rb +9 -0
- data/rakelib/lib/director/tip_window.rb +117 -6
- data/rakelib/lib/director/tool_bar.rb +6 -0
- data/rakelib/lib/director/validator.rb +12 -0
- data/rakelib/lib/director/variant.rb +36 -20
- data/rakelib/lib/director/vlistbox.rb +25 -22
- data/rakelib/lib/director/window.rb +10 -1
- data/rakelib/lib/director/xml_resource.rb +6 -0
- data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
- data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
- data/rakelib/lib/generate/doc.rb +12 -7
- data/rakelib/lib/generate/interface.rb +16 -1
- data/rakelib/lib/specs/interfaces.rb +3 -1
- data/rakelib/lib/swig_runner.rb +10 -10
- data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
- data/rakelib/lib/typemap/common.rb +3 -3
- data/rakelib/lib/typemap/print_page_range.rb +32 -8
- data/samples/art/wxruby-512x512.png +0 -0
- data/samples/calendar/calendar.rb +64 -1
- data/samples/dialogs/dialogs.rb +172 -0
- data/samples/dialogs/tip.xpm +157 -0
- data/samples/drawing/maths_images.rb +1 -1
- data/samples/event/event.rb +1 -1
- data/samples/printing/printing2.rb +1 -1
- data/samples/sampler.rb +26 -8
- data/samples/text/textctrl.rb +2 -2
- data/samples/treectrl/treectrl.rb +2 -2
- data/tests/lib/leaked_process_event_exception_test.rb +1 -1
- data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
- data/tests/lib/wxapp_runner.rb +31 -41
- data/tests/lib/wxframe_runner.rb +23 -11
- data/tests/lib/wxrb_test.rb +58 -0
- data/tests/test_app_event_filter.rb +1 -1
- data/tests/test_app_exit_exception.rb +3 -3
- data/tests/test_app_init_exception.rb +3 -3
- data/tests/test_app_traits.rb +24 -21
- data/tests/test_art.rb +7 -7
- data/tests/test_art_provider.rb +1 -1
- data/tests/test_basic.rb +2 -2
- data/tests/test_book_controls.rb +1 -1
- data/tests/test_box_sizer.rb +1 -1
- data/tests/test_clipboard.rb +5 -5
- data/tests/test_combo_ctrl.rb +2 -2
- data/tests/test_config.rb +11 -1
- data/tests/test_dc.rb +1 -1
- data/tests/test_dialog.rb +1 -1
- data/tests/test_event_handling.rb +1 -1
- data/tests/test_events.rb +1 -1
- data/tests/test_exceptions.rb +2 -2
- data/tests/test_ext_controls.rb +10 -10
- data/tests/test_file_dialog.rb +1 -1
- data/tests/test_font.rb +1 -1
- data/tests/test_gdi_object.rb +1 -1
- data/tests/test_geometry.rb +2 -2
- data/tests/test_grid_sizer.rb +2 -2
- data/tests/test_intl.rb +1 -1
- data/tests/test_item_data.rb +12 -12
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_log.rb +2 -2
- data/tests/test_media_ctrl.rb +1 -1
- data/tests/test_menu.rb +114 -43
- data/tests/test_proof_check.rb +1 -1
- data/tests/test_propgrid.rb +31 -31
- data/tests/test_richtext.rb +10 -24
- data/tests/test_secret_store.rb +1 -1
- data/tests/test_sizer.rb +1 -1
- data/tests/test_std_controls.rb +8 -8
- data/tests/test_styled_text_ctrl.rb +1 -1
- data/tests/test_timer.rb +1 -1
- data/tests/test_tree_ctrl.rb +1 -1
- data/tests/test_validators.rb +79 -36
- data/tests/test_variant.rb +1 -1
- data/tests/test_window.rb +11 -11
- data/tests/testapp.rb +2 -2
- data/tests/testapp_noframe.rb +2 -2
- metadata +400 -11
- data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
|
@@ -0,0 +1,463 @@
|
|
|
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
|