wxruby3 0.9.0.pre.rc.2-x64-mingw-ucrt → 0.9.0.pre.rc.3-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +30 -8
- data/README.md +3 -3
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/core/event_loop.rb +7 -0
- data/lib/wx/core/image.rb +33 -0
- data/lib/wx/core/listctrl.rb +17 -13
- data/lib/wx/core/log.rb +90 -0
- data/lib/wx/doc/bitmap.rb +11 -15
- data/lib/wx/doc/event_loop.rb +7 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/09_exceptions.md +1 -1
- data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
- data/lib/wx/doc/font.rb +1 -1
- data/lib/wx/doc/functions.rb +51 -23
- data/lib/wx/doc/gc_dc.rb +1 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
- data/lib/wx/doc/gen/accelerator.rb +6 -6
- data/lib/wx/doc/gen/accessible.rb +6 -2
- data/lib/wx/doc/gen/activity_indicator.rb +5 -5
- data/lib/wx/doc/gen/animation.rb +7 -7
- data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
- data/lib/wx/doc/gen/any_button.rb +1 -1
- data/lib/wx/doc/gen/app.rb +17 -11
- data/lib/wx/doc/gen/art_provider.rb +61 -1
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
- data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +33 -18
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
- data/lib/wx/doc/gen/bitmap.rb +32 -26
- data/lib/wx/doc/gen/bitmap_button.rb +10 -6
- data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
- data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +16 -4
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +19 -7
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
- data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
- data/lib/wx/doc/gen/calendar_event.rb +3 -3
- data/lib/wx/doc/gen/caret.rb +2 -2
- data/lib/wx/doc/gen/check_box.rb +10 -6
- data/lib/wx/doc/gen/check_list_box.rb +8 -7
- data/lib/wx/doc/gen/choice.rb +7 -6
- data/lib/wx/doc/gen/choicebook.rb +12 -6
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +1 -1
- data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
- data/lib/wx/doc/gen/colour.rb +16 -6
- data/lib/wx/doc/gen/colour_dialog.rb +6 -6
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +22 -13
- data/lib/wx/doc/gen/context_help_button.rb +4 -3
- data/lib/wx/doc/gen/control.rb +9 -6
- data/lib/wx/doc/gen/core.rb +5 -2
- data/lib/wx/doc/gen/cursor.rb +16 -11
- data/lib/wx/doc/gen/data_format.rb +2 -2
- data/lib/wx/doc/gen/data_object.rb +23 -16
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
- data/lib/wx/doc/gen/dc.rb +37 -12
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +19 -5
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
- data/lib/wx/doc/gen/drag_drop.rb +15 -15
- data/lib/wx/doc/gen/drag_image.rb +6 -6
- data/lib/wx/doc/gen/editable_list_box.rb +7 -3
- data/lib/wx/doc/gen/event.rb +44 -13
- data/lib/wx/doc/gen/event_blocker.rb +1 -1
- data/lib/wx/doc/gen/event_filter.rb +5 -2
- data/lib/wx/doc/gen/event_list.rb +15 -15
- data/lib/wx/doc/gen/events.rb +215 -79
- data/lib/wx/doc/gen/evt_handler.rb +1 -1
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_dialog.rb +16 -7
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
- data/lib/wx/doc/gen/font.rb +30 -29
- data/lib/wx/doc/gen/font_data.rb +9 -5
- data/lib/wx/doc/gen/font_dialog.rb +3 -3
- data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +34 -11
- data/lib/wx/doc/gen/fs_file.rb +4 -17
- data/lib/wx/doc/gen/gauge.rb +11 -7
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +35 -33
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
- data/lib/wx/doc/gen/graphics_context.rb +29 -28
- data/lib/wx/doc/gen/graphics_object.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
- data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
- data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/help_controller.rb +18 -12
- data/lib/wx/doc/gen/html/html_cell.rb +36 -18
- data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
- data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
- data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
- data/lib/wx/doc/gen/html/html_printout.rb +15 -5
- data/lib/wx/doc/gen/html/html_window.rb +19 -8
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +12 -7
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
- data/lib/wx/doc/gen/icon.rb +14 -14
- data/lib/wx/doc/gen/image.rb +119 -64
- data/lib/wx/doc/gen/image_list.rb +10 -6
- data/lib/wx/doc/gen/keyboard_state.rb +7 -7
- data/lib/wx/doc/gen/list_box.rb +30 -21
- data/lib/wx/doc/gen/list_ctrl.rb +169 -78
- data/lib/wx/doc/gen/list_event.rb +24 -2
- data/lib/wx/doc/gen/listbook.rb +12 -6
- data/lib/wx/doc/gen/locale.rb +11 -36
- data/lib/wx/doc/gen/log.rb +122 -45
- data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
- data/lib/wx/doc/gen/mdi_frame.rb +15 -9
- data/lib/wx/doc/gen/media_ctrl.rb +7 -4
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +23 -27
- data/lib/wx/doc/gen/menu.rb +9 -9
- data/lib/wx/doc/gen/menu_bar.rb +4 -4
- data/lib/wx/doc/gen/menu_item.rb +115 -34
- data/lib/wx/doc/gen/message_dialog.rb +48 -30
- data/lib/wx/doc/gen/mini_frame.rb +12 -3
- data/lib/wx/doc/gen/mouse_state.rb +1 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +6 -7
- data/lib/wx/doc/gen/notebook.rb +20 -15
- data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/object.rb +2 -2
- data/lib/wx/doc/gen/palette.rb +3 -3
- data/lib/wx/doc/gen/panel.rb +4 -3
- data/lib/wx/doc/gen/pen.rb +25 -12
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
- data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
- data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
- data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
- data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
- data/lib/wx/doc/gen/picker_base.rb +12 -11
- data/lib/wx/doc/gen/platform_info.rb +7 -7
- data/lib/wx/doc/gen/popup_window.rb +6 -6
- data/lib/wx/doc/gen/progress_dialog.rb +1 -1
- data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +24 -18
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +22 -22
- data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
- data/lib/wx/doc/gen/radio_box.rb +12 -10
- data/lib/wx/doc/gen/radio_button.rb +8 -6
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
- data/lib/wx/doc/gen/region.rb +9 -8
- data/lib/wx/doc/gen/region_iterator.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +3 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
- data/lib/wx/doc/gen/sash_window.rb +8 -3
- data/lib/wx/doc/gen/scroll_bar.rb +29 -8
- data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
- data/lib/wx/doc/gen/scrolled_control.rb +41 -23
- data/lib/wx/doc/gen/scrolled_window.rb +41 -23
- data/lib/wx/doc/gen/search_ctrl.rb +15 -8
- data/lib/wx/doc/gen/simplebook.rb +2 -2
- data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/sizer.rb +29 -28
- data/lib/wx/doc/gen/slider.rb +49 -16
- data/lib/wx/doc/gen/spin_button.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +20 -4
- data/lib/wx/doc/gen/static_bitmap.rb +5 -5
- data/lib/wx/doc/gen/static_box.rb +36 -32
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +5 -4
- data/lib/wx/doc/gen/static_text.rb +12 -6
- data/lib/wx/doc/gen/status_bar.rb +14 -5
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
- data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
- data/lib/wx/doc/gen/system_options.rb +11 -1
- data/lib/wx/doc/gen/system_settings.rb +3 -3
- data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +11 -7
- data/lib/wx/doc/gen/text_ctrl.rb +61 -92
- data/lib/wx/doc/gen/text_entry.rb +28 -40
- data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
- data/lib/wx/doc/gen/text_validator.rb +0 -11
- data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
- data/lib/wx/doc/gen/timer.rb +8 -4
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +6 -5
- data/lib/wx/doc/gen/tool_bar.rb +41 -24
- data/lib/wx/doc/gen/tool_tip.rb +2 -2
- data/lib/wx/doc/gen/toolbook.rb +6 -3
- data/lib/wx/doc/gen/top_level_window.rb +35 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
- data/lib/wx/doc/gen/tree_event.rb +23 -2
- data/lib/wx/doc/gen/treebook.rb +6 -2
- data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
- data/lib/wx/doc/gen/utils.rb +9 -3
- data/lib/wx/doc/gen/v_list_box.rb +2 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/validator.rb +7 -5
- data/lib/wx/doc/gen/variant.rb +34 -97
- data/lib/wx/doc/gen/window.rb +157 -102
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +1 -1
- data/lib/wx/doc/gen/wizard.rb +17 -4
- data/lib/wx/doc/gen/wizard_event.rb +9 -2
- data/lib/wx/doc/gen/wizard_page.rb +1 -1
- data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
- data/lib/wx/doc/gen/xml_node.rb +3 -3
- data/lib/wx/doc/gen/xml_resource.rb +12 -9
- data/lib/wx/doc/image.rb +42 -12
- data/lib/wx/doc/list_ctrl.rb +32 -0
- data/lib/wx/doc/log.rb +28 -0
- data/lib/wx/doc/prt/printer_dc.rb +2 -2
- data/lib/wx/doc/scaled_dc.rb +1 -1
- data/lib/wx/doc/text_validator.rb +12 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/tests/test_art.rb +9 -0
- data/tests/test_box_sizer.rb +161 -0
- data/tests/test_grid_sizer.rb +148 -0
- data/tests/test_list_ctrl.rb +53 -0
- data/tests/test_log.rb +163 -0
- data/tests/test_std_controls.rb +58 -0
- data/tests/test_timer.rb +95 -0
- metadata +13 -2
@@ -12,22 +12,39 @@ module Wx::GRID
|
|
12
12
|
#
|
13
13
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::GRID::GridEvent} events.
|
14
14
|
# Event handler methods:
|
15
|
+
#
|
15
16
|
# - {Wx::EvtHandler#evt_grid_cell_changing}(meth = nil, &block): The user is about to change the data in a cell. The new cell value as string is available from {Wx::GRID::GridEvent#get_string} event object method. This event can be vetoed if the change is not allowed. Processes a {Wx::GRID::EVT_GRID_CELL_CHANGING} event type.
|
17
|
+
#
|
16
18
|
# - {Wx::EvtHandler#evt_grid_cell_changed}(meth = nil, &block): The user changed the data in a cell. The old cell value as string is available from {Wx::GRID::GridEvent#get_string} event object method. Notice that vetoing this event still works for backwards compatibility reasons but any new code should only veto EVT_GRID_CELL_CHANGING event and not this one. Processes a {Wx::GRID::EVT_GRID_CELL_CHANGED} event type.
|
19
|
+
#
|
17
20
|
# - {Wx::EvtHandler#evt_grid_cell_left_click}(meth = nil, &block): The user clicked a cell with the left mouse button. Processes a {Wx::GRID::EVT_GRID_CELL_LEFT_CLICK} event type.
|
21
|
+
#
|
18
22
|
# - {Wx::EvtHandler#evt_grid_cell_left_dclick}(meth = nil, &block): The user double-clicked a cell with the left mouse button. Processes a {Wx::GRID::EVT_GRID_CELL_LEFT_DCLICK} event type.
|
23
|
+
#
|
19
24
|
# - {Wx::EvtHandler#evt_grid_cell_right_click}(meth = nil, &block): The user clicked a cell with the right mouse button. Processes a {Wx::GRID::EVT_GRID_CELL_RIGHT_CLICK} event type.
|
25
|
+
#
|
20
26
|
# - {Wx::EvtHandler#evt_grid_cell_right_dclick}(meth = nil, &block): The user double-clicked a cell with the right mouse button. Processes a {Wx::GRID::EVT_GRID_CELL_RIGHT_DCLICK} event type.
|
27
|
+
#
|
21
28
|
# - {Wx::EvtHandler#evt_grid_editor_hidden}(meth = nil, &block): The editor for a cell was hidden. Processes a {Wx::GRID::EVT_GRID_EDITOR_HIDDEN} event type.
|
29
|
+
#
|
22
30
|
# - {Wx::EvtHandler#evt_grid_editor_shown}(meth = nil, &block): The editor for a cell was shown. Processes a {Wx::GRID::EVT_GRID_EDITOR_SHOWN} event type.
|
31
|
+
#
|
23
32
|
# - {Wx::EvtHandler#evt_grid_label_left_click}(meth = nil, &block): The user clicked a label with the left mouse button. Processes a {Wx::GRID::EVT_GRID_LABEL_LEFT_CLICK} event type.
|
33
|
+
#
|
24
34
|
# - {Wx::EvtHandler#evt_grid_label_left_dclick}(meth = nil, &block): The user double-clicked a label with the left mouse button. Processes a {Wx::GRID::EVT_GRID_LABEL_LEFT_DCLICK} event type.
|
35
|
+
#
|
25
36
|
# - {Wx::EvtHandler#evt_grid_label_right_click}(meth = nil, &block): The user clicked a label with the right mouse button. Processes a {Wx::GRID::EVT_GRID_LABEL_RIGHT_CLICK} event type.
|
37
|
+
#
|
26
38
|
# - {Wx::EvtHandler#evt_grid_label_right_dclick}(meth = nil, &block): The user double-clicked a label with the right mouse button. Processes a {Wx::GRID::EVT_GRID_LABEL_RIGHT_DCLICK} event type.
|
39
|
+
#
|
27
40
|
# - {Wx::EvtHandler#evt_grid_select_cell}(meth = nil, &block): The given cell is about to be made current, either by user or by the program via a call to {Wx::GRID::Grid#set_grid_cursor} or {Wx::GRID::Grid#go_to_cell}. The event can be vetoed to prevent this from happening and {Wx::GRID::Grid#get_grid_cursor_coords} still returns the previous current cell coordinates during the event handler execution, while the new ones are available via the event object {Wx::GRID::GridEvent#get_row} and {Wx::GRID::GridEvent#get_col} functions. Processes a {Wx::GRID::EVT_GRID_SELECT_CELL} event type.
|
41
|
+
#
|
28
42
|
# - {Wx::EvtHandler#evt_grid_row_move}(meth = nil, &block): The user tries to change the order of the rows in the grid by dragging the row specified by {Wx::GRID::GridEvent#get_row}. This event can be vetoed to either prevent the user from reordering the row change completely (but notice that if you don't want to allow it at all, you simply shouldn't call {Wx::GRID::Grid#enable_drag_row_move} in the first place), vetoed but handled in some way in the handler, e.g. by really moving the row to the new position at the associated table level, or allowed to proceed in which case {Wx::GRID::Grid#set_row_pos} is used to reorder the rows display order without affecting the use of the row indices otherwise. This event macro corresponds to {Wx::GRID::EVT_GRID_ROW_MOVE} event type. It is only available since wxWidgets 3.1.7.
|
43
|
+
#
|
29
44
|
# - {Wx::EvtHandler#evt_grid_col_move}(meth = nil, &block): The user tries to change the order of the columns in the grid by dragging the column specified by {Wx::GRID::GridEvent#get_col}. This event can be vetoed to either prevent the user from reordering the column change completely (but notice that if you don't want to allow it at all, you simply shouldn't call {Wx::GRID::Grid#enable_drag_col_move} in the first place), vetoed but handled in some way in the handler, e.g. by really moving the column to the new position at the associated table level, or allowed to proceed in which case {Wx::GRID::Grid#set_col_pos} is used to reorder the columns display order without affecting the use of the column indices otherwise. This event macro corresponds to {Wx::GRID::EVT_GRID_COL_MOVE} event type.
|
45
|
+
#
|
30
46
|
# - {Wx::EvtHandler#evt_grid_col_sort}(meth = nil, &block): This event is generated when a column is clicked by the user and its name is explained by the fact that the custom reaction to a click on a column is to sort the grid contents by this column. However the grid itself has no special support for sorting and it's up to the handler of this event to update the associated table. But if the event is handled (and not vetoed) the grid supposes that the table was indeed resorted and updates the column to indicate the new sort order and refreshes itself. This event macro corresponds to {Wx::GRID::EVT_GRID_COL_SORT} event type.
|
47
|
+
#
|
31
48
|
# - {Wx::EvtHandler#evt_grid_tabbing}(meth = nil, &block): This event is generated when the user presses TAB or Shift-TAB in the grid. It can be used to customize the simple default TAB handling logic, e.g. to go to the next non-empty cell instead of just the next cell. See also {Wx::GRID::Grid#set_tab_behaviour}. This event is new since wxWidgets 2.9.5.
|
32
49
|
#
|
33
50
|
# ===
|
@@ -38,11 +55,11 @@ module Wx::GRID
|
|
38
55
|
|
39
56
|
# @overload initialize()
|
40
57
|
# Default constructor.
|
41
|
-
# @return [GridEvent]
|
58
|
+
# @return [Wx::GRID::GridEvent]
|
42
59
|
# @overload initialize(id, type, obj, row=-1, col=-1, x=-1, y=-1, sel=true, kbd=(Wx::KeyboardState.new()))
|
43
60
|
# Constructor for initializing all event attributes.
|
44
61
|
# @param id [Integer]
|
45
|
-
# @param type [
|
62
|
+
# @param type [Wx::AUI::AuiMDIChildFrame::EventType]
|
46
63
|
# @param obj [Wx::Object]
|
47
64
|
# @param row [Integer]
|
48
65
|
# @param col [Integer]
|
@@ -50,7 +67,7 @@ module Wx::GRID
|
|
50
67
|
# @param y [Integer]
|
51
68
|
# @param sel [true,false]
|
52
69
|
# @param kbd [Wx::KeyboardState]
|
53
|
-
# @return [GridEvent]
|
70
|
+
# @return [Wx::GRID::GridEvent]
|
54
71
|
def initialize(*args) end
|
55
72
|
|
56
73
|
# Returns true if the Alt key was down at the time of the event.
|
@@ -14,9 +14,13 @@ module Wx::GRID
|
|
14
14
|
#
|
15
15
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::GRID::GridRangeSelectEvent} events.
|
16
16
|
# Event handler methods:
|
17
|
+
#
|
17
18
|
# - {Wx::EvtHandler#evt_grid_range_selecting}(meth = nil, &block): The user is selecting a group of contiguous cells. Processes a {Wx::GRID::EVT_GRID_RANGE_SELECTING} event type. This event is available in wxWidgets 3.1.5 and later only.
|
19
|
+
#
|
18
20
|
# - {Wx::EvtHandler#evt_grid_cmd_range_selecting}(id, meth = nil, &block): The user is selecting a group of contiguous cells; variant taking a window identifier. Processes a {Wx::GRID::EVT_GRID_RANGE_SELECTING} event type. This event is available in wxWidgets 3.1.5 and later only.
|
21
|
+
#
|
19
22
|
# - {Wx::EvtHandler#evt_grid_range_selected}(meth = nil, &block): The user selected a group of contiguous cells. Processes a {Wx::GRID::EVT_GRID_RANGE_SELECTED} event type. This event is available in wxWidgets 3.1.5 and later only and was called {Wx::EVT_GRID_RANGE_SELECT} in the previous versions.
|
23
|
+
#
|
20
24
|
# - {Wx::EvtHandler#evt_grid_cmd_range_selected}(id, meth = nil, &block): The user selected a group of contiguous cells; variant taking a window identifier. Processes a {Wx::GRID::EVT_GRID_RANGE_SELECTED} event type. This event is available in wxWidgets 3.1.5 and later only and was called {Wx::EVT_GRID_CMD_RANGE_SELECT} in the previous versions.
|
21
25
|
#
|
22
26
|
# ===
|
@@ -27,17 +31,17 @@ module Wx::GRID
|
|
27
31
|
|
28
32
|
# @overload initialize()
|
29
33
|
# Default constructor.
|
30
|
-
# @return [GridRangeSelectEvent]
|
34
|
+
# @return [Wx::GRID::GridRangeSelectEvent]
|
31
35
|
# @overload initialize(id, type, obj, topLeft, bottomRight, sel=true, kbd=(Wx::KeyboardState.new()))
|
32
36
|
# Constructor for initializing all event attributes.
|
33
37
|
# @param id [Integer]
|
34
|
-
# @param type [
|
38
|
+
# @param type [Wx::AUI::AuiMDIChildFrame::EventType]
|
35
39
|
# @param obj [Wx::Object]
|
36
40
|
# @param topLeft [Wx::GridCellCoords]
|
37
41
|
# @param bottomRight [Wx::GridCellCoords]
|
38
42
|
# @param sel [true,false]
|
39
43
|
# @param kbd [Wx::KeyboardState]
|
40
|
-
# @return [GridRangeSelectEvent]
|
44
|
+
# @return [Wx::GRID::GridRangeSelectEvent]
|
41
45
|
def initialize(*args) end
|
42
46
|
|
43
47
|
# Returns true if the Alt key was down at the time of the event.
|
@@ -11,11 +11,17 @@ module Wx::GRID
|
|
11
11
|
#
|
12
12
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::GRID::GridSizeEvent} events.
|
13
13
|
# Event handler methods:
|
14
|
+
#
|
14
15
|
# - {Wx::EvtHandler#evt_grid_cmd_col_size}(id, meth = nil, &block): The user resized a column, corresponds to {Wx::GRID::EVT_GRID_COL_SIZE} event type.
|
16
|
+
#
|
15
17
|
# - {Wx::EvtHandler#evt_grid_cmd_row_size}(id, meth = nil, &block): The user resized a row, corresponds to {Wx::GRID::EVT_GRID_ROW_SIZE} event type.
|
18
|
+
#
|
16
19
|
# - {Wx::EvtHandler#evt_grid_row_auto_size}(meth = nil, &block): This event is sent when a row must be resized to its best size, e.g. when the user double clicks the row divider. The default implementation simply resizes the row to fit the row label (but not its contents as this could be too slow for big grids). This macro corresponds to {Wx::GRID::EVT_GRID_ROW_AUTO_SIZE} event type and is new since wxWidgets 3.1.7.
|
20
|
+
#
|
17
21
|
# - {Wx::EvtHandler#evt_grid_col_size}(meth = nil, &block): Same as EVT_GRID_CMD_COL_SIZE() but uses {Wx::StandardID::ID_ANY} id.
|
22
|
+
#
|
18
23
|
# - {Wx::EvtHandler#evt_grid_col_auto_size}(meth = nil, &block): This event is sent when a column must be resized to its best size, e.g. when the user double clicks the column divider. The default implementation simply resizes the column to fit the column label (but not its contents as this could be too slow for big grids). This macro corresponds to {Wx::GRID::EVT_GRID_COL_AUTO_SIZE} event type and is new since wxWidgets 2.9.5.
|
24
|
+
#
|
19
25
|
# - {Wx::EvtHandler#evt_grid_row_size}(meth = nil, &block): Same as EVT_GRID_CMD_ROW_SIZE() but uses {Wx::StandardID::ID_ANY} id.
|
20
26
|
#
|
21
27
|
# ===
|
@@ -26,17 +32,17 @@ module Wx::GRID
|
|
26
32
|
|
27
33
|
# @overload initialize()
|
28
34
|
# Default constructor.
|
29
|
-
# @return [GridSizeEvent]
|
35
|
+
# @return [Wx::GRID::GridSizeEvent]
|
30
36
|
# @overload initialize(id, type, obj, rowOrCol=-1, x=-1, y=-1, kbd=(Wx::KeyboardState.new()))
|
31
37
|
# Constructor for initializing all event attributes.
|
32
38
|
# @param id [Integer]
|
33
|
-
# @param type [
|
39
|
+
# @param type [Wx::AUI::AuiMDIChildFrame::EventType]
|
34
40
|
# @param obj [Wx::Object]
|
35
41
|
# @param rowOrCol [Integer]
|
36
42
|
# @param x [Integer]
|
37
43
|
# @param y [Integer]
|
38
44
|
# @param kbd [Wx::KeyboardState]
|
39
|
-
# @return [GridSizeEvent]
|
45
|
+
# @return [Wx::GRID::GridSizeEvent]
|
40
46
|
def initialize(*args) end
|
41
47
|
|
42
48
|
# Returns true if the Alt key was down at the time of the event.
|
@@ -13,12 +13,12 @@ module Wx::GRID
|
|
13
13
|
|
14
14
|
# @overload initialize()
|
15
15
|
# Default constructor creates an empty table.
|
16
|
-
# @return [GridStringTable]
|
16
|
+
# @return [Wx::GRID::GridStringTable]
|
17
17
|
# @overload initialize(numRows, numCols)
|
18
18
|
# Constructor taking number of rows and columns.
|
19
19
|
# @param numRows [Integer]
|
20
20
|
# @param numCols [Integer]
|
21
|
-
# @return [GridStringTable]
|
21
|
+
# @return [Wx::GRID::GridStringTable]
|
22
22
|
def initialize(*args) end
|
23
23
|
|
24
24
|
# Must be overridden to return the number of rows in the table.
|
@@ -204,7 +204,7 @@ module Wx::GRID
|
|
204
204
|
# Prefer to use {Wx::GRID::GridTableBase#get_attr_ptr} to avoid the need to call DecRef() on the returned pointer manually.
|
205
205
|
# @param row [Integer]
|
206
206
|
# @param col [Integer]
|
207
|
-
# @param kind [Wx::GridCellAttr::
|
207
|
+
# @param kind [Wx::GRID::GridCellAttr::AttrKind]
|
208
208
|
# @return [Wx::GRID::GridCellAttr]
|
209
209
|
def get_attr(row, col, kind) end
|
210
210
|
alias_method :attr, :get_attr
|
@@ -212,7 +212,7 @@ module Wx::GRID
|
|
212
212
|
# Set attribute of the specified cell.
|
213
213
|
# By default this function is simply forwarded to Wx::GridCellAttrProvider#set_attr.
|
214
214
|
# The table takes ownership of attr, i.e. will call DecRef() on it.
|
215
|
-
# @param attr [Wx::GridCellAttr]
|
215
|
+
# @param attr [Wx::GRID::GridCellAttr]
|
216
216
|
# @param row [Integer]
|
217
217
|
# @param col [Integer]
|
218
218
|
# @return [void]
|
@@ -221,7 +221,7 @@ module Wx::GRID
|
|
221
221
|
# Set attribute of the specified row.
|
222
222
|
# By default this function is simply forwarded to Wx::GridCellAttrProvider#set_row_attr.
|
223
223
|
# The table takes ownership of attr, i.e. will call DecRef() on it.
|
224
|
-
# @param attr [Wx::GridCellAttr]
|
224
|
+
# @param attr [Wx::GRID::GridCellAttr]
|
225
225
|
# @param row [Integer]
|
226
226
|
# @return [void]
|
227
227
|
def set_row_attr(attr, row) end
|
@@ -229,13 +229,13 @@ module Wx::GRID
|
|
229
229
|
# Set attribute of the specified column.
|
230
230
|
# By default this function is simply forwarded to Wx::GridCellAttrProvider#set_col_attr.
|
231
231
|
# The table takes ownership of attr, i.e. will call DecRef() on it.
|
232
|
-
# @param attr [Wx::GridCellAttr]
|
232
|
+
# @param attr [Wx::GRID::GridCellAttr]
|
233
233
|
# @param col [Integer]
|
234
234
|
# @return [void]
|
235
235
|
def set_col_attr(attr, col) end
|
236
236
|
|
237
237
|
# Default constructor.
|
238
|
-
# @return [GridTableBase]
|
238
|
+
# @return [Wx::GRID::GridTableBase]
|
239
239
|
def initialize; end
|
240
240
|
|
241
241
|
# Must be overridden to return the number of rows in the table.
|
@@ -264,13 +264,13 @@ module Wx::GRID
|
|
264
264
|
|
265
265
|
# Called by the grid when the table is associated with it.
|
266
266
|
# The default implementation stores the pointer and returns it from its {Wx::GRID::GridTableBase#get_view} and so only makes sense if the table cannot be associated with more than one grid at a time.
|
267
|
-
# @param grid [Wx::Grid]
|
267
|
+
# @param grid [Wx::GRID::Grid]
|
268
268
|
# @return [void]
|
269
269
|
def set_view(grid) end
|
270
270
|
alias_method :view=, :set_view
|
271
271
|
|
272
272
|
# Returns the last grid passed to {Wx::GRID::GridTableBase#set_view}.
|
273
|
-
# @return [Wx::Grid]
|
273
|
+
# @return [Wx::GRID::Grid]
|
274
274
|
def get_view; end
|
275
275
|
alias_method :view, :get_view
|
276
276
|
|
@@ -15,24 +15,24 @@ module Wx::GRID
|
|
15
15
|
|
16
16
|
# @overload initialize()
|
17
17
|
# Default constructor initializes the object to invalid state.
|
18
|
-
# @return [GridTableMessage]
|
18
|
+
# @return [Wx::GRID::GridTableMessage]
|
19
19
|
# @overload initialize(table, id, comInt1=-1, comInt2=-1)
|
20
20
|
# Constructor really initialize the message.
|
21
|
-
# @param table [Wx::GridTableBase] Pointer to the grid table
|
21
|
+
# @param table [Wx::GRID::GridTableBase] Pointer to the grid table
|
22
22
|
# @param id [Integer] One of {Wx::GRID::GridTableRequest} enum elements.
|
23
23
|
# @param comInt1 [Integer] For the insert/delete messages, position after which the rows or columns are inserted/deleted. For the append messages, the number of rows or columns that were appended.
|
24
24
|
# @param comInt2 [Integer] For the insert/deleted messages, number of rows or columns to be inserted/deleted. For the append messages, this parameter is not used.
|
25
|
-
# @return [GridTableMessage]
|
25
|
+
# @return [Wx::GRID::GridTableMessage]
|
26
26
|
def initialize(*args) end
|
27
27
|
|
28
28
|
# Sets the table object.
|
29
|
-
# @param table [Wx::GridTableBase]
|
29
|
+
# @param table [Wx::GRID::GridTableBase]
|
30
30
|
# @return [void]
|
31
31
|
def set_table_object(table) end
|
32
32
|
alias_method :table_object=, :set_table_object
|
33
33
|
|
34
34
|
# Gets the table object.
|
35
|
-
# @return [Wx::GridTableBase]
|
35
|
+
# @return [Wx::GRID::GridTableBase]
|
36
36
|
def get_table_object; end
|
37
37
|
alias_method :table_object, :get_table_object
|
38
38
|
|
@@ -151,7 +151,7 @@ module Wx
|
|
151
151
|
# Constructor, with optional parameters to specify the gap between the rows and columns.
|
152
152
|
# @param vgap [Integer]
|
153
153
|
# @param hgap [Integer]
|
154
|
-
# @return [GridBagSizer]
|
154
|
+
# @return [Wx::GridBagSizer]
|
155
155
|
def initialize(vgap=0, hgap=0) end
|
156
156
|
|
157
157
|
# Called when the managed size of the sizer is needed or when layout needs done.
|
@@ -213,12 +213,12 @@ module Wx
|
|
213
213
|
|
214
214
|
# @overload initialize()
|
215
215
|
# Default constructor, setting the rowspan and colspan to (1,1) meaning that the item occupies one cell in each direction.
|
216
|
-
# @return [GBSpan]
|
216
|
+
# @return [Wx::GBSpan]
|
217
217
|
# @overload initialize(rowspan, colspan)
|
218
218
|
# Construct a new {Wx::GBSpan}, setting the rowspan and colspan.
|
219
219
|
# @param rowspan [Integer]
|
220
220
|
# @param colspan [Integer]
|
221
|
-
# @return [GBSpan]
|
221
|
+
# @return [Wx::GBSpan]
|
222
222
|
def initialize(*args) end
|
223
223
|
|
224
224
|
# Get the current colspan value.
|
@@ -261,12 +261,12 @@ module Wx
|
|
261
261
|
|
262
262
|
# @overload initialize()
|
263
263
|
# Default constructor, setting the row and column to (0,0).
|
264
|
-
# @return [GBPosition]
|
264
|
+
# @return [Wx::GBPosition]
|
265
265
|
# @overload initialize(row, col)
|
266
266
|
# Construct a new {Wx::GBPosition}, setting the row and column.
|
267
267
|
# @param row [Integer]
|
268
268
|
# @param col [Integer]
|
269
|
-
# @return [GBPosition]
|
269
|
+
# @return [Wx::GBPosition]
|
270
270
|
def initialize(*args) end
|
271
271
|
|
272
272
|
# Get the current column value.
|
@@ -26,7 +26,7 @@ module Wx
|
|
26
26
|
# @param cols [Integer]
|
27
27
|
# @param vgap [Integer]
|
28
28
|
# @param hgap [Integer]
|
29
|
-
# @return [GridSizer]
|
29
|
+
# @return [Wx::GridSizer]
|
30
30
|
# @overload initialize(cols, gap=(Wx::Size.new(0, 0)))
|
31
31
|
# {Wx::GridSizer} constructors.
|
32
32
|
# Usually only the number of columns in the flex grid sizer needs to be specified using cols argument. The number of rows will be deduced automatically depending on the number of the elements added to the sizer.
|
@@ -35,7 +35,7 @@ module Wx
|
|
35
35
|
# The gap (or vgap and hgap, which correspond to the height and width of the {Wx::Size} object) argument defines the size of the padding between the rows (its vertical component, or vgap) and columns (its horizontal component, or hgap), in pixels.
|
36
36
|
# @param cols [Integer]
|
37
37
|
# @param gap [Array(Integer, Integer), Wx::Size]
|
38
|
-
# @return [GridSizer]
|
38
|
+
# @return [Wx::GridSizer]
|
39
39
|
# @overload initialize(rows, cols, vgap, hgap)
|
40
40
|
# {Wx::GridSizer} constructors.
|
41
41
|
# Usually only the number of columns in the flex grid sizer needs to be specified using cols argument. The number of rows will be deduced automatically depending on the number of the elements added to the sizer.
|
@@ -46,7 +46,7 @@ module Wx
|
|
46
46
|
# @param cols [Integer]
|
47
47
|
# @param vgap [Integer]
|
48
48
|
# @param hgap [Integer]
|
49
|
-
# @return [GridSizer]
|
49
|
+
# @return [Wx::GridSizer]
|
50
50
|
# @overload initialize(rows, cols, gap)
|
51
51
|
# {Wx::GridSizer} constructors.
|
52
52
|
# Usually only the number of columns in the flex grid sizer needs to be specified using cols argument. The number of rows will be deduced automatically depending on the number of the elements added to the sizer.
|
@@ -56,7 +56,7 @@ module Wx
|
|
56
56
|
# @param rows [Integer]
|
57
57
|
# @param cols [Integer]
|
58
58
|
# @param gap [Array(Integer, Integer), Wx::Size]
|
59
|
-
# @return [GridSizer]
|
59
|
+
# @return [Wx::GridSizer]
|
60
60
|
def initialize(*args) end
|
61
61
|
|
62
62
|
# Returns the number of columns that has been specified for the sizer.
|
@@ -0,0 +1,132 @@
|
|
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
|
+
# A generic implementation of the GUI event loop.
|
10
|
+
# ===
|
11
|
+
#
|
12
|
+
# Category: Application and Process Management
|
13
|
+
#
|
14
|
+
#
|
15
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
16
|
+
class GUIEventLoop < ::Object
|
17
|
+
|
18
|
+
# @return [Wx::GUIEventLoop]
|
19
|
+
def initialize; end
|
20
|
+
|
21
|
+
# Start the event loop, return the exit code when it is finished.
|
22
|
+
# Logically, this method calls {Wx::GUIEventLoop#dispatch} in a loop until it returns false and also takes care of generating idle events during each loop iteration. However not all implementations of this class really implement it like this (e.g. wxGTK does not) so you shouldn't rely on {Wx::GUIEventLoop#dispatch} being called from inside this function.
|
23
|
+
# The argument passed to {Wx::GUIEventLoop#exit} which terminated this event loop.
|
24
|
+
# @return [Integer]
|
25
|
+
def run; end
|
26
|
+
|
27
|
+
# Return true if this event loop is currently running.
|
28
|
+
# Notice that even if this event loop hasn't terminated yet but has just spawned a nested (e.g. modal) event loop, this method would return false.
|
29
|
+
# @return [true,false]
|
30
|
+
def is_running; end
|
31
|
+
alias_method :running?, :is_running
|
32
|
+
|
33
|
+
# Use this to check whether the event loop was successfully created before using it.
|
34
|
+
# @return [true,false]
|
35
|
+
def is_ok; end
|
36
|
+
alias_method :ok?, :is_ok
|
37
|
+
|
38
|
+
# Exit the currently running loop with the given exit code.
|
39
|
+
# The loop will exit, i.e. its {Wx::GUIEventLoop#run} method will return, during the next event loop iteration.
|
40
|
+
# Notice that this method can only be used if this event loop is the currently running one, i.e. its {Wx::GUIEventLoop#is_running} returns true. If this is not the case, an assert failure is triggered and nothing is done as outer event loops can't be exited from immediately. Use {Wx::GUIEventLoop#schedule_exit} if you'd like to exit this loop even if it doesn't run currently.
|
41
|
+
# @param rc [Integer]
|
42
|
+
# @return [void]
|
43
|
+
def exit(rc=0) end
|
44
|
+
|
45
|
+
# Schedule an exit from the loop with the given exit code.
|
46
|
+
# This method is similar to {Wx::GUIEventLoop#exit} but can be called even if this event loop is not the currently running one and if it is the active loop, then it works in exactly the same way as {Wx::GUIEventLoop#exit}.
|
47
|
+
# The loop will exit as soon as the control flow returns to it, i.e. after any nested loops terminate.
|
48
|
+
# @param rc [Integer]
|
49
|
+
# @return [void]
|
50
|
+
def schedule_exit(rc=0) end
|
51
|
+
|
52
|
+
# Return true if any events are available.
|
53
|
+
# If this method returns true, calling {Wx::GUIEventLoop#dispatch} will not block.
|
54
|
+
# @return [true,false]
|
55
|
+
def pending; end
|
56
|
+
|
57
|
+
# Dispatches the next event in the windowing system event queue.
|
58
|
+
# Blocks until an event appears if there are none currently (use {Wx::GUIEventLoop#pending} if this is not wanted).
|
59
|
+
# This can be used for programming event loops, e.g.
|
60
|
+
#
|
61
|
+
# ```ruby
|
62
|
+
# while evt_loop.pending
|
63
|
+
# evt_loop.dispatch
|
64
|
+
# ```
|
65
|
+
#
|
66
|
+
# false if the event loop should stop and true otherwise.
|
67
|
+
# @see Wx::GUIEventLoop#pending
|
68
|
+
# @see Wx::EventLoopBase
|
69
|
+
# @return [true,false]
|
70
|
+
def dispatch; end
|
71
|
+
|
72
|
+
# Dispatch an event but not wait longer than the specified timeout for it.
|
73
|
+
# If an event is received before the specified timeout expires, it is processed and the function returns 1 normally or 0 if the event loop should quite. Otherwise, i.e. if the timeout expires, the functions returns -1 without processing any events.
|
74
|
+
#
|
75
|
+
# 1 if an event was processed, 0 if the event loop should quit or -1 if the timeout expired.
|
76
|
+
# @param timeout [Integer] The maximal time to wait for the events in milliseconds.
|
77
|
+
# @return [Integer]
|
78
|
+
def dispatch_timeout(timeout) end
|
79
|
+
|
80
|
+
# Called by wxWidgets to wake up the event loop even if it is currently blocked inside {Wx::GUIEventLoop#dispatch}.
|
81
|
+
# @return [void]
|
82
|
+
def wake_up; end
|
83
|
+
|
84
|
+
# Makes sure that idle events are sent again.
|
85
|
+
# @return [void]
|
86
|
+
def wake_up_idle; end
|
87
|
+
|
88
|
+
# This virtual function is called when the application becomes idle and normally just sends {Wx::IdleEvent} to all interested parties.
|
89
|
+
# It should return true if more idle events are needed, false if not.
|
90
|
+
# @return [true,false]
|
91
|
+
def process_idle; end
|
92
|
+
|
93
|
+
# Returns true if called from inside {Wx::GUIEventLoop#yield} or from inside {Wx::GUIEventLoop#yield_for}.
|
94
|
+
# @return [true,false]
|
95
|
+
def is_yielding; end
|
96
|
+
alias_method :yielding?, :is_yielding
|
97
|
+
|
98
|
+
# Yields control to pending messages in the windowing system.
|
99
|
+
# This can be useful, for example, when a time-consuming process writes to a text window. Without an occasional yield, the text window will not be updated properly, and on systems with cooperative multitasking, other processes will not respond.
|
100
|
+
# Caution should be exercised, however, since yielding may allow the user to perform actions which are not compatible with the current task. Disabling menu items or whole menus during processing can avoid unwanted reentrance of code: see {Wx::SafeYield} for a better function.
|
101
|
+
# Note that {Wx::GUIEventLoop#yield} will not flush the message logs. This is intentional as calling {Wx::GUIEventLoop#yield} is usually done to quickly update the screen and popping up a message box dialog may be undesirable. If you do wish to flush the log messages immediately (otherwise it will be done during the next idle loop iteration), call {Wx::Log.flush_active}.
|
102
|
+
# If onlyIfNeeded parameter is true and the flow control is already inside {Wx::GUIEventLoop#yield}, i.e. {Wx::GUIEventLoop#is_yielding} returns true, the method just silently returns false and doesn't do anything.
|
103
|
+
# @param onlyIfNeeded [true,false]
|
104
|
+
# @return [true,false]
|
105
|
+
def yield(onlyIfNeeded=false) end
|
106
|
+
|
107
|
+
# Works like {Wx::GUIEventLoop#yield} with onlyIfNeeded == true, except that it allows the caller to specify a mask of the {Wx::EventCategory} values which indicates which events should be processed and which should instead be "delayed" (i.e.
|
108
|
+
# processed by the main loop later).
|
109
|
+
# Note that this is a safer alternative to {Wx::GUIEventLoop#yield} since it ensures that only the events you're interested to will be processed; i.e. this method helps to avoid unwanted reentrancies.
|
110
|
+
# Note that currently only wxMSW and wxGTK do support selective yield of native events coming from the underlying GUI toolkit. wxWidgets events posted using {Wx::EvtHandler#add_pending_event} or {Wx::EvtHandler#queue_event} are instead selectively processed by all ports.
|
111
|
+
# @see Wx::Event#get_event_category
|
112
|
+
# @param eventsToProcess [Integer]
|
113
|
+
# @return [true,false]
|
114
|
+
def yield_for(eventsToProcess) end
|
115
|
+
|
116
|
+
# Returns true if the given event category is allowed inside a {Wx::GUIEventLoop#yield_for} call (i.e.
|
117
|
+
# compares the given category against the last mask passed to {Wx::GUIEventLoop#yield_for}).
|
118
|
+
# @see Wx::Event#get_event_category
|
119
|
+
# @param cat [EventCategory]
|
120
|
+
# @return [true,false]
|
121
|
+
def is_event_allowed_inside_yield(cat) end
|
122
|
+
alias_method :event_allowed_inside_yield?, :is_event_allowed_inside_yield
|
123
|
+
|
124
|
+
# Returns true if this is the main loop executed by {Wx::App#on_run}.
|
125
|
+
# @return [true,false]
|
126
|
+
def is_main; end
|
127
|
+
alias_method :main?, :is_main
|
128
|
+
|
129
|
+
end # GUIEventLoop
|
130
|
+
|
131
|
+
|
132
|
+
end
|
@@ -29,15 +29,18 @@ module Wx
|
|
29
29
|
# A help controller allows an application to display help, at the contents or at a particular topic, and shut the help program down on termination. This avoids proliferation of many instances of the help viewer whenever the user requests a different topic via the application's menus or buttons.
|
30
30
|
# Typically, an application will create a help controller instance when it starts, and immediately call {Wx::HelpController::Initialize} to associate a filename with it. The help viewer will only get run, however, just before the first call to display something.
|
31
31
|
# Most help controller classes actually derive from {Wx::HelpControllerBase} and have names of the form {Wx::XXXHelpController} or {Wx::HelpControllerXXX}. An appropriate class is aliased to the name {Wx::HelpController} for each platform, as follows:
|
32
|
-
#
|
32
|
+
#
|
33
|
+
# - On desktop Windows, {Wx::CHMHelpController} is used (MS HTML Help).
|
34
|
+
# - On all other platforms, {Wx::HTML::HtmlHelpController} is used if {Wx::HTML} is compiled into wxWidgets; otherwise {Wx::ExtHelpController} is used (for invoking an external browser).
|
33
35
|
#
|
34
36
|
# The remaining help controller classes need to be named explicitly by an application that wishes to make use of them.
|
35
37
|
# The following help controller classes are defined:
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
38
|
+
#
|
39
|
+
# - {Wx::WinHelpController}, for controlling Windows Help.
|
40
|
+
# - {Wx::CHMHelpController}, for controlling MS HTML Help. To use this, you need to set {Wx::Setup::USE_MS_HTML_HELP} to 1 in setup.h and have the htmlhelp.h header from Microsoft's HTML Help kit. (You don't need the VC++-specific htmlhelp.lib because wxWidgets loads necessary DLL at runtime and so it works with all compilers.)
|
41
|
+
# - {Wx::BestHelpController}, for controlling MS HTML Help or, if Microsoft's runtime is not available, {Wx::HTML::HtmlHelpController}. You need to provide <b>both</b> CHM and HTB versions of the help file. For wxMSW only.
|
42
|
+
# - {Wx::ExtHelpController}, for controlling external browsers under Unix. The default browser is Netscape Navigator. The 'help' sample shows its use.
|
43
|
+
# - {Wx::HTML::HtmlHelpController}, a sophisticated help controller using {Wx::HTML}, in a similar style to the Microsoft HTML Help viewer and using some of the same files. Although it has an API compatible with other help controllers, it has more advanced features, so it is recommended that you use the specific API for this class instead. Note that in Ruby the required filesystem handlers for .zip or .htb books are always loaded.
|
41
44
|
#
|
42
45
|
# ===
|
43
46
|
#
|
@@ -52,7 +55,7 @@ module Wx
|
|
52
55
|
# If you provide a window, it will be used by some help controller classes, such as {Wx::CHMHelpController}, {Wx::WinHelpController} and {Wx::HTML::HtmlHelpController}, as the parent for the help window instead of the value of {Wx::App#get_top_window}.
|
53
56
|
# You can also change the parent window later with {Wx::HelpController#set_parent_window}.
|
54
57
|
# @param parentWindow [Wx::Window]
|
55
|
-
# @return [HelpController]
|
58
|
+
# @return [Wx::HelpController]
|
56
59
|
def initialize(parentWindow=nil) end
|
57
60
|
|
58
61
|
# If the help viewer is not running, runs it and displays the contents.
|
@@ -88,7 +91,10 @@ module Wx
|
|
88
91
|
# If the help viewer is not running, runs it, and searches for sections matching the given keyword.
|
89
92
|
# If one match is found, the file is displayed at this section. The optional parameter allows searching the index ({Wx::HelpSearchMode::HELP_SEARCH_INDEX}) but this currently is only supported by the {Wx::HTML::HtmlHelpController}.
|
90
93
|
#
|
91
|
-
# - WinHelp, MS HTML Help: If more than one match is found, the first topic is displayed
|
94
|
+
# - WinHelp, MS HTML Help: If more than one match is found, the first topic is displayed.
|
95
|
+
# - MS HTML Help: Pass an empty string to display the search page.
|
96
|
+
# - External HTML help, simple {Wx::HTML} help: If more than one match is found, a choice of topics is displayed.
|
97
|
+
# - {Wx::HTML::HtmlHelpController}: see {Wx::HTML::HtmlHelpController::KeywordSearch}.
|
92
98
|
# @param keyWord [String]
|
93
99
|
# @param mode [HelpSearchMode]
|
94
100
|
# @return [true,false]
|
@@ -120,10 +126,10 @@ module Wx
|
|
120
126
|
# Sets detailed viewer information.
|
121
127
|
# So far this is only relevant to {Wx::ExtHelpController}. Some examples of usage:
|
122
128
|
#
|
123
|
-
# ```
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
129
|
+
# ```ruby
|
130
|
+
# @help.set_viewer('kdehelp')
|
131
|
+
# @help.set_viewer('gnome-help-browser')
|
132
|
+
# @help.set_viewer('netscape', Wx::HELP_NETSCAPE)
|
127
133
|
# ```
|
128
134
|
#
|
129
135
|
# Todomodernize this function with {Wx::LaunchDefaultBrowser}
|