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
data/lib/wx/doc/gen/locale.rb
CHANGED
@@ -3780,33 +3780,6 @@ module Wx
|
|
3780
3780
|
# In wxWidgets this class manages current locale. It also initializes and activates {Wx::Translations} object that manages message catalogs.
|
3781
3781
|
# For a list of the supported languages, please see {Wx::Language} enum values. These constants may be used to specify the language in {Wx::Locale#init} and are returned by {Wx::Locale.get_system_language}.
|
3782
3782
|
#
|
3783
|
-
# ```
|
3784
|
-
# # this imports gettext ( equivalent to Wx::GetTranslation
|
3785
|
-
# # and gettext_noop ( a noop )
|
3786
|
-
# # into your module
|
3787
|
-
# use Wx::Locale qw(:default);
|
3788
|
-
#
|
3789
|
-
# # ....
|
3790
|
-
#
|
3791
|
-
# # use the functions
|
3792
|
-
# print gettext( "Panic!" );
|
3793
|
-
#
|
3794
|
-
# button = Wx::Button-new( window, -1, gettext( "Label" ) );
|
3795
|
-
# ```
|
3796
|
-
#
|
3797
|
-
# If you need to translate a lot of strings, then adding gettext( ) around each one is a long task ( that is why _( ) was introduced ), so just choose a shorter name for gettext:
|
3798
|
-
#
|
3799
|
-
# ```
|
3800
|
-
# use Wx::Locale 'gettext' = 't',
|
3801
|
-
# 'gettext_noop' = 'gettext_noop';
|
3802
|
-
#
|
3803
|
-
# # ...
|
3804
|
-
#
|
3805
|
-
# # use the functions
|
3806
|
-
# print t( "Panic!!" );
|
3807
|
-
#
|
3808
|
-
# # ...
|
3809
|
-
# ```
|
3810
3783
|
#
|
3811
3784
|
# ===
|
3812
3785
|
#
|
@@ -3821,12 +3794,12 @@ module Wx
|
|
3821
3794
|
|
3822
3795
|
# @overload initialize()
|
3823
3796
|
# This is the default constructor and it does nothing to initialize the object: {Wx::Locale#init} must be used to do that.
|
3824
|
-
# @return [Locale]
|
3797
|
+
# @return [Wx::Locale]
|
3825
3798
|
# @overload initialize(language, flags=Wx::LocaleInitFlags::LOCALE_LOAD_DEFAULT)
|
3826
3799
|
# See {Wx::Locale#init} for parameters description.
|
3827
3800
|
# @param language [Integer]
|
3828
3801
|
# @param flags [Integer]
|
3829
|
-
# @return [Locale]
|
3802
|
+
# @return [Wx::Locale]
|
3830
3803
|
# @overload initialize(name, shortName=(''), locale=(''), bLoadDefault=true)
|
3831
3804
|
# See {Wx::Locale#init} for parameters description.
|
3832
3805
|
# The call of this function has several global side effects which you should understand: first of all, the application locale is changed - note that this will affect many of standard C library functions such as printf() or strftime(). Second, this {Wx::Locale} object becomes the new current global locale for the application and so all subsequent calls to {get_translation} will try to translate the messages using the message catalogs for this locale.
|
@@ -3834,7 +3807,7 @@ module Wx
|
|
3834
3807
|
# @param shortName [String]
|
3835
3808
|
# @param locale [String]
|
3836
3809
|
# @param bLoadDefault [true,false]
|
3837
|
-
# @return [Locale]
|
3810
|
+
# @return [Wx::Locale]
|
3838
3811
|
def initialize(*args) end
|
3839
3812
|
|
3840
3813
|
# @overload add_catalog(domain)
|
@@ -3911,7 +3884,9 @@ module Wx
|
|
3911
3884
|
# true on success or false if the given locale couldn't be set.
|
3912
3885
|
# @param language [Integer] {Wx::Language} identifier of the locale. It can be either some concrete language, e.g. {Wx::Language::LANGUAGE_ESPERANTO}, or a special value {Wx::Language::LANGUAGE_DEFAULT} which means that {Wx::Locale} should use system's default language (see {Wx::Locale.get_system_language}). Notice that the value {Wx::Language::LANGUAGE_UNKNOWN} is not allowed here.
|
3913
3886
|
# @param flags [Integer] Combination of the following:
|
3914
|
-
#
|
3887
|
+
#
|
3888
|
+
# - {Wx::LocaleInitFlags::LOCALE_LOAD_DEFAULT}: Load the message catalog for the given locale containing the translations of standard wxWidgets messages automatically.
|
3889
|
+
# - {Wx::LocaleInitFlags::LOCALE_DONT_LOAD_DEFAULT}: Negation of {Wx::LocaleInitFlags::LOCALE_LOAD_DEFAULT}.
|
3915
3890
|
# @return [true,false]
|
3916
3891
|
def init(language=Wx::Language::LANGUAGE_DEFAULT, flags=Wx::LocaleInitFlags::LOCALE_LOAD_DEFAULT) end
|
3917
3892
|
|
@@ -4016,24 +3991,24 @@ module Wx
|
|
4016
3991
|
class LanguageInfo < ::Object
|
4017
3992
|
|
4018
3993
|
# Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx).
|
4019
|
-
# Availability: only available for the
|
3994
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
4020
3995
|
#
|
4021
3996
|
# @return [Integer]
|
4022
3997
|
def win_lang; end
|
4023
3998
|
# Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx).
|
4024
|
-
# Availability: only available for the
|
3999
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
4025
4000
|
#
|
4026
4001
|
# @param val [Integer]
|
4027
4002
|
# @return [void]
|
4028
4003
|
def win_lang=(val); end
|
4029
4004
|
|
4030
4005
|
# Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx).
|
4031
|
-
# Availability: only available for the
|
4006
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
4032
4007
|
#
|
4033
4008
|
# @return [Integer]
|
4034
4009
|
def win_sublang; end
|
4035
4010
|
# Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx).
|
4036
|
-
# Availability: only available for the
|
4011
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
4037
4012
|
#
|
4038
4013
|
# @param val [Integer]
|
4039
4014
|
# @return [void]
|
@@ -4124,7 +4099,7 @@ module Wx
|
|
4124
4099
|
def layout_direction=(val); end
|
4125
4100
|
|
4126
4101
|
# Return the LCID corresponding to this language.
|
4127
|
-
# Availability: only available for the
|
4102
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
4128
4103
|
# @return [Integer]
|
4129
4104
|
def get_lcid; end
|
4130
4105
|
alias_method :lcid, :get_lcid
|
data/lib/wx/doc/gen/log.rb
CHANGED
@@ -162,8 +162,8 @@ module Wx
|
|
162
162
|
|
163
163
|
# Sets the log level for the given component.
|
164
164
|
# For example, to disable all but error messages from wxWidgets network classes you may use
|
165
|
-
# ```
|
166
|
-
# wxLog
|
165
|
+
# ```ruby
|
166
|
+
# wxLog.set_component_level("wx/net", Wx::LOG_Error)
|
167
167
|
# ```
|
168
168
|
#
|
169
169
|
# {Wx::Log.set_log_level} may be used to set the global log level.
|
@@ -249,19 +249,20 @@ module Wx
|
|
249
249
|
# Log the given record.
|
250
250
|
# This function should only be called from the DoLog() implementations in the derived classes if they need to call {Wx::Log#do_log_record} on another log object (they can, of course, just use {Wx::Log#do_log_record} call syntax to call it on the object itself). It should not be used for logging new messages which can be only sent to the currently active logger using OnLog() which also checks if the logging (for this level) is enabled while this method just directly calls DoLog().
|
251
251
|
# Example of use of this class from {Wx::LogChain}:
|
252
|
-
# ```
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
252
|
+
# ```ruby
|
253
|
+
# class Wx::LogChain
|
254
|
+
#
|
255
|
+
# def do_log_record(level, msg, info)
|
256
|
+
# # let the previous logger show it
|
257
|
+
# if m_logOld && is_passing_messages
|
258
|
+
# m_logOld.log_record(level, msg, info)
|
259
|
+
#
|
260
|
+
# # and also send it to the new one
|
261
|
+
# if m_logNew && m_logNew != self
|
262
|
+
# m_logNew.log_record(level, msg, info)
|
263
|
+
# end
|
264
|
+
#
|
265
|
+
# end
|
265
266
|
# ```
|
266
267
|
# @param level [Wx::LogLevel]
|
267
268
|
# @param msg [String]
|
@@ -269,6 +270,32 @@ module Wx
|
|
269
270
|
# @return [void]
|
270
271
|
def log_record(level, msg, info) end
|
271
272
|
|
273
|
+
|
274
|
+
protected
|
275
|
+
|
276
|
+
# Called to log a new record.
|
277
|
+
# Any log message created by {log_xxx}, the corresponding prefix to msg and passes it to {Wx::Log#do_log_text_at_level}.
|
278
|
+
# You may override this method to implement custom formatting of the log messages or to implement custom filtering of log messages (e.g. you could discard all log messages coming from the given source file).
|
279
|
+
# @param level [Wx::LogLevel]
|
280
|
+
# @param msg [String]
|
281
|
+
# @param info [Wx::LogRecordInfo]
|
282
|
+
# @return [void]
|
283
|
+
def do_log_record(level, msg, info) end
|
284
|
+
|
285
|
+
# Called to log the specified string at given level.
|
286
|
+
# The base class versions logs debug and trace messages on the system default debug output channel and passes all the other messages to {Wx::Log#do_log_text}.
|
287
|
+
# @param level [Wx::LogLevel]
|
288
|
+
# @param msg [String]
|
289
|
+
# @return [void]
|
290
|
+
def do_log_text_at_level(level, msg) end
|
291
|
+
|
292
|
+
# Called to log the specified string.
|
293
|
+
# A simple implementation might just send the string to stdout or stderr or save it in a file (of course, the already existing {Wx::LogStderr} can be used for this).
|
294
|
+
# The base class version of this function asserts so it must be overridden if you don't override {Wx::Log#do_log_record} or {Wx::Log#do_log_text_at_level}.
|
295
|
+
# @param msg [String]
|
296
|
+
# @return [void]
|
297
|
+
def do_log_text(msg) end
|
298
|
+
|
272
299
|
end # Log
|
273
300
|
|
274
301
|
# {Wx::LogBuffer} is a very simple implementation of log sink which simply collects all the logged messages in a string (except the debug messages which are output in the usual way immediately as we're presumably not interested in collecting them for later).
|
@@ -278,10 +305,12 @@ module Wx
|
|
278
305
|
#
|
279
306
|
# Category: {Wx::Logging}
|
280
307
|
#
|
308
|
+
#
|
309
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
281
310
|
class LogBuffer < Log
|
282
311
|
|
283
312
|
# The default ctor does nothing.
|
284
|
-
# @return [LogBuffer]
|
313
|
+
# @return [Wx::LogBuffer]
|
285
314
|
def initialize; end
|
286
315
|
|
287
316
|
# Returns the current buffer contains.
|
@@ -296,15 +325,11 @@ module Wx
|
|
296
325
|
# It is especially useful when you want to divert the logs somewhere (for example to a file or a log window) but also keep showing the error messages using the standard dialogs as {Wx::LogGui} does by default.
|
297
326
|
# Example of usage:
|
298
327
|
#
|
299
|
-
# ```
|
300
|
-
#
|
328
|
+
# ```ruby
|
329
|
+
# logChain = Wx::LogChain.new(Wx::LogStderr.new)
|
301
330
|
#
|
302
|
-
#
|
331
|
+
# # all the log messages are sent to stderr and also processed as usually
|
303
332
|
# ...
|
304
|
-
#
|
305
|
-
# // don't delete logChain directly as this would leave a dangling
|
306
|
-
# // pointer as active log target, use SetActiveTarget() instead
|
307
|
-
# delete wxLog::SetActiveTarget(...something else or NULL...);
|
308
333
|
# ```
|
309
334
|
#
|
310
335
|
# ===
|
@@ -315,13 +340,9 @@ module Wx
|
|
315
340
|
|
316
341
|
# Sets the specified logger (which may be NULL) as the default log target but the log messages are also passed to the previous log target if any.
|
317
342
|
# @param logger [Wx::Log]
|
318
|
-
# @return [LogChain]
|
343
|
+
# @return [Wx::LogChain]
|
319
344
|
def initialize(logger) end
|
320
345
|
|
321
|
-
# Detaches the old log target so it won't be destroyed when the {Wx::LogChain} object is destroyed.
|
322
|
-
# @return [void]
|
323
|
-
def detach_old_log; end
|
324
|
-
|
325
346
|
# Returns the pointer to the previously active log target (which may be NULL).
|
326
347
|
# @return [Wx::Log]
|
327
348
|
def get_old_log; end
|
@@ -345,6 +366,9 @@ module Wx
|
|
345
366
|
def set_log(logger) end
|
346
367
|
alias_method :log=, :set_log
|
347
368
|
|
369
|
+
|
370
|
+
protected
|
371
|
+
|
348
372
|
end # LogChain
|
349
373
|
|
350
374
|
# This is the default log target for the GUI wxWidgets applications.
|
@@ -357,10 +381,12 @@ module Wx
|
|
357
381
|
#
|
358
382
|
# Category: {Wx::Logging}
|
359
383
|
#
|
384
|
+
#
|
385
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
360
386
|
class LogGui < Log
|
361
387
|
|
362
388
|
# Default constructor.
|
363
|
-
# @return [LogGui]
|
389
|
+
# @return [Wx::LogGui]
|
364
390
|
def initialize; end
|
365
391
|
|
366
392
|
end # LogGui
|
@@ -373,19 +399,10 @@ module Wx
|
|
373
399
|
# @see Wx::LogStream
|
374
400
|
#
|
375
401
|
#
|
402
|
+
#
|
403
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
376
404
|
class LogStderr < Log
|
377
405
|
|
378
|
-
# Constructs a log target which sends all the log messages to the given FILE.
|
379
|
-
# If it is NULL, the messages are sent to stderr. The messages will be written in the encoding specified by the given {Wx::MBConv}.
|
380
|
-
# The conv argument is only available in wxWidgets 3.1.1 and later.
|
381
|
-
# In practice, it is only advisable to specify {Wx::ConvUTF8} as the conv. If using <code>mb_conv_utf16</code>, the file should be opened in <code>"wb"</code> mode.
|
382
|
-
#
|
383
|
-
# If a log message contains any characters that cannot be converted to the character set given by conv, that message will be silently ignored, i.e. it will not be written at all.
|
384
|
-
# @param fp [FILE]
|
385
|
-
# @param conv [Wx::MBConv]
|
386
|
-
# @return [LogStderr]
|
387
|
-
def initialize(fp=nil, conv=Wx::ConvWhateverWorks) end
|
388
|
-
|
389
406
|
end # LogStderr
|
390
407
|
|
391
408
|
# This class can be used to redirect the log messages to a C++ stream.
|
@@ -397,6 +414,8 @@ module Wx
|
|
397
414
|
# @see Wx::StreamToTextRedirector
|
398
415
|
#
|
399
416
|
#
|
417
|
+
#
|
418
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
400
419
|
class LogStream < Log
|
401
420
|
|
402
421
|
# Constructs a log target which sends all the log messages to the given output stream.
|
@@ -407,7 +426,7 @@ module Wx
|
|
407
426
|
# If a log message contains any characters that cannot be converted to the character set given by conv, that message will be silently ignored, i.e. it will not be written at all.
|
408
427
|
# @param ostr [std::ostream]
|
409
428
|
# @param conv [Wx::MBConv]
|
410
|
-
# @return [LogStream]
|
429
|
+
# @return [Wx::LogStream]
|
411
430
|
def initialize(ostr=nil, conv=Wx::ConvWhateverWorks) end
|
412
431
|
|
413
432
|
end # LogStream
|
@@ -421,12 +440,14 @@ module Wx
|
|
421
440
|
# @see Wx::StreamToTextRedirector
|
422
441
|
#
|
423
442
|
#
|
443
|
+
#
|
444
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
424
445
|
class LogTextCtrl < Log
|
425
446
|
|
426
447
|
# Constructs a log target which sends all the log messages to the given text control.
|
427
448
|
# The textctrl parameter cannot be NULL.
|
428
449
|
# @param pTextCtrl [Wx::TextCtrl]
|
429
|
-
# @return [LogTextCtrl]
|
450
|
+
# @return [Wx::LogTextCtrl]
|
430
451
|
def initialize(pTextCtrl) end
|
431
452
|
|
432
453
|
end # LogTextCtrl
|
@@ -442,7 +463,7 @@ module Wx
|
|
442
463
|
class LogInterposer < LogChain
|
443
464
|
|
444
465
|
# The default constructor installs this object as the current active log target.
|
445
|
-
# @return [LogInterposer]
|
466
|
+
# @return [Wx::LogInterposer]
|
446
467
|
def initialize; end
|
447
468
|
|
448
469
|
end # LogInterposer
|
@@ -457,7 +478,7 @@ module Wx
|
|
457
478
|
class LogInterposerTemp < LogChain
|
458
479
|
|
459
480
|
# The default constructor installs this object as the current active log target.
|
460
|
-
# @return [LogInterposerTemp]
|
481
|
+
# @return [Wx::LogInterposerTemp]
|
461
482
|
def initialize; end
|
462
483
|
|
463
484
|
end # LogInterposerTemp
|
@@ -470,6 +491,8 @@ module Wx
|
|
470
491
|
# @see Wx::LogTextCtrl
|
471
492
|
#
|
472
493
|
#
|
494
|
+
#
|
495
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
473
496
|
class LogWindow < LogInterposer
|
474
497
|
|
475
498
|
# Creates the log frame window and starts collecting the messages in it.
|
@@ -477,7 +500,7 @@ module Wx
|
|
477
500
|
# @param szTitle [String] The title for the log frame
|
478
501
|
# @param show [true,false] true to show the frame initially (default), otherwise {Wx::LogWindow#show} must be called later.
|
479
502
|
# @param passToOld [true,false] true to process the log messages normally in addition to logging them in the log frame (default), false to only log them in the log frame. Note that if no targets were set using {Wx::Log.set_active_target} then {Wx::LogWindow} simply becomes the active one and messages won't be passed to other targets.
|
480
|
-
# @return [LogWindow]
|
503
|
+
# @return [Wx::LogWindow]
|
481
504
|
def initialize(pParent, szTitle, show=true, passToOld=true) end
|
482
505
|
|
483
506
|
# Returns the associated log frame window.
|
@@ -505,5 +528,59 @@ module Wx
|
|
505
528
|
|
506
529
|
end # LogWindow
|
507
530
|
|
531
|
+
# This class allows you to temporarily suspend logging.
|
532
|
+
# All calls to the log functions during the life time of an object of this class are just ignored.
|
533
|
+
# In particular, it can be used to suppress the log messages given by wxWidgets itself but it should be noted that it is rarely the best way to cope with this problem as <b>all</b> log messages are suppressed, even if they indicate a completely different error than the one the programmer wanted to suppress.
|
534
|
+
# For instance, the example of the overview:
|
535
|
+
#
|
536
|
+
# ```ruby
|
537
|
+
# mime_type = ... # retrieved from somewhere
|
538
|
+
# img = Wx::Image.new
|
539
|
+
# Wx::LogNull.no_log do # suspend logging
|
540
|
+
#
|
541
|
+
# # Wx::Image#load_stream will complain if there is no handler for the given mimetype and fail
|
542
|
+
# if !img.load_stream(File.open('file.img'), mime_type)
|
543
|
+
# # handle problem
|
544
|
+
# end
|
545
|
+
#
|
546
|
+
# end # old log sink restored
|
547
|
+
#
|
548
|
+
# Wx.log_message('...') # ok
|
549
|
+
# ```
|
550
|
+
#
|
551
|
+
# would be better written as:
|
552
|
+
#
|
553
|
+
# ```ruby
|
554
|
+
# mime_type = ... # retrieved from somewhere
|
555
|
+
#
|
556
|
+
# # check the condition that makes your code complain
|
557
|
+
# if Wx::Image.mime_types.include?(mime_type)
|
558
|
+
# img.load_stream(File.open('file.img'), mime_type)
|
559
|
+
# ...
|
560
|
+
# else
|
561
|
+
# # do something else
|
562
|
+
# ...
|
563
|
+
# end
|
564
|
+
# ```
|
565
|
+
#
|
566
|
+
# ===
|
567
|
+
#
|
568
|
+
# Category: {Wx::Logging}
|
569
|
+
#
|
570
|
+
#
|
571
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
572
|
+
class LogNull < ::Object
|
573
|
+
|
574
|
+
end # LogNull
|
575
|
+
|
576
|
+
# Information about a log record (unit of the log output).
|
577
|
+
#
|
578
|
+
#
|
579
|
+
#
|
580
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
581
|
+
class LogRecordInfo < ::Object
|
582
|
+
|
583
|
+
end # LogRecordInfo
|
584
|
+
|
508
585
|
|
509
586
|
end
|
@@ -9,7 +9,7 @@ module Wx
|
|
9
9
|
# An MDI client window is a child of {Wx::MDIParentFrame}, and manages zero or more {Wx::MDIChildFrame} objects.
|
10
10
|
# The client window is the area where MDI child windows exist. It doesn't have to cover the whole parent frame; other windows such as toolbars and a help window might coexist with it. There can be scrollbars on a client window, which are controlled by the parent window style.
|
11
11
|
# The {Wx::MDIClientWindow} class is usually adequate without further derivation, and it is created automatically when the MDI parent frame is created. If the application needs to derive a new class, the function {Wx::MDIParentFrame#on_create_client} must be overridden in order to give an opportunity to use a different class of client window.
|
12
|
-
# Under
|
12
|
+
# Under wxMSW, the client window will automatically have a sunken border style when the active child is not maximized, and no border style when a child is maximized.
|
13
13
|
# ===
|
14
14
|
#
|
15
15
|
# Category: Managed Windows
|
@@ -22,7 +22,7 @@ module Wx
|
|
22
22
|
|
23
23
|
# Default constructor.
|
24
24
|
# Objects of this class are only created by {Wx::MDIParentFrame} which uses the default constructor and calls {Wx::MDIClientWindow#create_client} immediately afterwards.
|
25
|
-
# @return [MDIClientWindow]
|
25
|
+
# @return [Wx::MDIClientWindow]
|
26
26
|
def initialize; end
|
27
27
|
|
28
28
|
# Called by {Wx::MDIParentFrame} immediately after creating the client window.
|
data/lib/wx/doc/gen/mdi_frame.rb
CHANGED
@@ -32,12 +32,12 @@ module Wx
|
|
32
32
|
# @overload initialize()
|
33
33
|
# Default constructor.
|
34
34
|
# Use {Wx::MDIParentFrame#create} for the objects created using this constructor.
|
35
|
-
# @return [MDIParentFrame]
|
35
|
+
# @return [Wx::MDIParentFrame]
|
36
36
|
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FrameNameStr)
|
37
37
|
# Constructor, creating the window.
|
38
38
|
# Notice that if you override virtual {Wx::MDIParentFrame#on_create_client} method you shouldn't be using this constructor but the default constructor and {Wx::MDIParentFrame#create} as otherwise your overridden method is never going to be called because of the usual C++ virtual call resolution rules.
|
39
39
|
#
|
40
|
-
# Under
|
40
|
+
# Under wxMSW, the client window will automatically have a sunken border style when the active child is not maximized, and no border style when a child is maximized.
|
41
41
|
# @see Wx::MDIParentFrame#create
|
42
42
|
# @see Wx::MDIParentFrame#on_create_client
|
43
43
|
# @param parent [Wx::Window] The window parent. Usually is NULL.
|
@@ -47,7 +47,7 @@ module Wx
|
|
47
47
|
# @param size [Array(Integer, Integer), Wx::Size] The window size. The value {Wx::DEFAULT_SIZE} indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
|
48
48
|
# @param style [Integer] The window style. Default value includes {Wx::HSCROLL} and {Wx::VSCROLL} styles.
|
49
49
|
# @param name [String] The name of the window. This parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual windows.
|
50
|
-
# @return [MDIParentFrame]
|
50
|
+
# @return [Wx::MDIParentFrame]
|
51
51
|
def initialize(*args) end
|
52
52
|
|
53
53
|
# Activates the MDI child following the currently active one.
|
@@ -112,9 +112,9 @@ module Wx
|
|
112
112
|
# Override this to return a different kind of client window.
|
113
113
|
# If you override this function, you must create your parent frame in two stages, or your function will never be called, due to the way C++ treats virtual functions called from constructors. For example:
|
114
114
|
#
|
115
|
-
# ```
|
116
|
-
# frame = new
|
117
|
-
# frame
|
115
|
+
# ```ruby
|
116
|
+
# frame = MyParentFrame.new
|
117
|
+
# frame.create(parent, myParentFrameId, 'My Parent Frame')
|
118
118
|
# ```
|
119
119
|
#
|
120
120
|
# You might wish to derive from {Wx::MDIClientWindow} in order to implement different erase behaviour, for example, such as painting a bitmap on the background.
|
@@ -128,7 +128,13 @@ module Wx
|
|
128
128
|
# Ownership of the menu object passes to the frame when you call this function, i.e. the menu will be deleted by it when it's no longer needed (usually when the frame itself is deleted or when {Wx::MDIParentFrame#set_window_menu} is called again).
|
129
129
|
# To remove the window completely, you can use the {Wx::FRAME_NO_WINDOW_MENU} window style but this function also allows doing it by passing NULL pointer as menu.
|
130
130
|
# The menu may include the items with the following standard identifiers (but may use arbitrary text and help strings and bitmaps for them):
|
131
|
-
#
|
131
|
+
#
|
132
|
+
# - {Wx::StandardID::ID_MDI_WINDOW_CASCADE}
|
133
|
+
# - {Wx::StandardID::ID_MDI_WINDOW_TILE_HORZ}
|
134
|
+
# - {Wx::StandardID::ID_MDI_WINDOW_TILE_VERT}
|
135
|
+
# - {Wx::StandardID::ID_MDI_WINDOW_ARRANGE_ICONS}
|
136
|
+
# - {Wx::StandardID::ID_MDI_WINDOW_PREV}
|
137
|
+
# - {Wx::StandardID::ID_MDI_WINDOW_NEXT} All of which are handled by {Wx::MDIParentFrame} itself. If any other commands are used in the menu, the derived frame should handle them.
|
132
138
|
#
|
133
139
|
# This function is currently not available under macOS.
|
134
140
|
# @param menu [Wx::Menu] The menu to be used instead of the standard MDI Window menu or NULL.
|
@@ -169,7 +175,7 @@ module Wx
|
|
169
175
|
|
170
176
|
# @overload initialize()
|
171
177
|
# Default constructor.
|
172
|
-
# @return [MDIChildFrame]
|
178
|
+
# @return [Wx::MDIChildFrame]
|
173
179
|
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
|
174
180
|
# Constructor, creating the window.
|
175
181
|
#
|
@@ -181,7 +187,7 @@ module Wx
|
|
181
187
|
# @param size [Array(Integer, Integer), Wx::Size] The window size. The value {Wx::DEFAULT_SIZE} indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
|
182
188
|
# @param style [Integer] The window style. See {Wx::MDIChildFrame}.
|
183
189
|
# @param name [String] The name of the window. This parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual windows.
|
184
|
-
# @return [MDIChildFrame]
|
190
|
+
# @return [Wx::MDIChildFrame]
|
185
191
|
def initialize(*args) end
|
186
192
|
|
187
193
|
# Activates this MDI child frame.
|
@@ -52,7 +52,10 @@ module Wx
|
|
52
52
|
# Generally, you should almost certainly leave this part up to {Wx::MediaCtrl} - but if you need a certain backend for a particular reason, such as QuickTime for playing .mov files, all you need to do to choose a specific backend is to pass the name of the backend class to {Wx::MediaCtrl#create}.
|
53
53
|
# The following are valid backend identifiers:
|
54
54
|
#
|
55
|
-
# - <b>{Wx::MEDIABACKEND_DIRECTSHOW}:</b> Use ActiveMovie/DirectShow. Uses the native ActiveMovie (I.E. DirectShow) control. Default backend on Windows and supported by nearly all Windows versions. May display a windows media player logo while inactive
|
55
|
+
# - <b>{Wx::MEDIABACKEND_DIRECTSHOW}:</b> Use ActiveMovie/DirectShow. Uses the native ActiveMovie (I.E. DirectShow) control. Default backend on Windows and supported by nearly all Windows versions. May display a windows media player logo while inactive.
|
56
|
+
# - <b>{Wx::MEDIABACKEND_QUICKTIME}:</b> Use QuickTime. Mac Only. WARNING: May not work correctly when embedded in a {Wx::Notebook}.
|
57
|
+
# - <b>{Wx::MEDIABACKEND_GSTREAMER}</b>, Use GStreamer. Unix Only. Requires GStreamer 0.10 along with at the very least the xvimagesink, xoverlay and gst-play modules of gstreamer to function. You need the correct modules to play the relevant files, for example the mad module to play mp3s, etc.
|
58
|
+
# - <b>{Wx::MEDIABACKEND_WMP10}</b>, Use Windows Media Player 10 (Windows only). Works on systems with either Windows Media Player 9 or 10 installed.
|
56
59
|
#
|
57
60
|
# == Creating a backend
|
58
61
|
#
|
@@ -63,7 +66,7 @@ module Wx
|
|
63
66
|
# === Styles
|
64
67
|
#
|
65
68
|
# This class supports the following styles:
|
66
|
-
#
|
69
|
+
#
|
67
70
|
# - {Wx::MC_NO_AUTORESIZE}: By default, the control will automatically adjust its size to exactly fit the size of a loaded video as soon as a video is loaded. If this flag is given, the control will not change its size automatically and it must be done manually (if desired) using {Wx::MediaCtrl#layout}. It is strongly recommended to use this flag and handle control resizing manually (note that this style is only available in wxWidgets 3.1.6, so it is only possible to do it when using this or later version).
|
68
71
|
#
|
69
72
|
# ===
|
@@ -76,7 +79,7 @@ module Wx
|
|
76
79
|
|
77
80
|
# @overload initialize()
|
78
81
|
# Default constructor - you MUST call {Wx::MediaCtrl#create} before calling any other methods of {Wx::MediaCtrl}.
|
79
|
-
# @return [MediaCtrl]
|
82
|
+
# @return [Wx::MediaCtrl]
|
80
83
|
# @overload initialize(parent, id, fileName=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, szBackend=(''), validator=Wx::DEFAULT_VALIDATOR, name=("mediaCtrl"))
|
81
84
|
# Constructor that calls {Wx::MediaCtrl#create}.
|
82
85
|
# You may prefer to call {Wx::MediaCtrl#create} directly to check to see if {Wx::MediaCtrl} is available on the system.
|
@@ -89,7 +92,7 @@ module Wx
|
|
89
92
|
# @param szBackend [String] Name of backend you want to use, leave blank to make {Wx::MediaCtrl} figure it out.
|
90
93
|
# @param validator [Wx::Validator] validator to use.
|
91
94
|
# @param name [String] Window name.
|
92
|
-
# @return [MediaCtrl]
|
95
|
+
# @return [Wx::MediaCtrl]
|
93
96
|
def initialize(*args) end
|
94
97
|
|
95
98
|
# Creates this control.
|
@@ -84,11 +84,17 @@ module Wx
|
|
84
84
|
#
|
85
85
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::MediaEvent} events.
|
86
86
|
# Event handler methods:
|
87
|
+
#
|
87
88
|
# - {Wx::EvtHandler#evt_media_loaded}(id, meth = nil, &block): Sent when a media has loaded enough data that it can start playing. Processes a {Wx::EVT_MEDIA_LOADED} event type.
|
89
|
+
#
|
88
90
|
# - {Wx::EvtHandler#evt_media_stop}(id, meth = nil, &block): Sent when a media has switched to the {Wx::MediaState::MEDIASTATE_STOPPED} state. You may be able to Veto this event to prevent it from stopping, causing it to continue playing - even if it has reached that end of the media (note that this may not have the desired effect - if you want to loop the media, for example, catch the EVT_MEDIA_FINISHED and play there instead). Processes a {Wx::EVT_MEDIA_STOP} event type.
|
91
|
+
#
|
89
92
|
# - {Wx::EvtHandler#evt_media_finished}(id, meth = nil, &block): Sent when a media has finished playing in a {Wx::MediaCtrl}. Processes a {Wx::EVT_MEDIA_FINISHED} event type.
|
93
|
+
#
|
90
94
|
# - {Wx::EvtHandler#evt_media_statechanged}(id, meth = nil, &block): Sent when a media has switched its state (from any media state). Processes a {Wx::EVT_MEDIA_STATECHANGED} event type.
|
95
|
+
#
|
91
96
|
# - {Wx::EvtHandler#evt_media_play}(id, meth = nil, &block): Sent when a media has switched to the {Wx::MediaState::MEDIASTATE_PLAYING} state. Processes a {Wx::EVT_MEDIA_PLAY} event type.
|
97
|
+
#
|
92
98
|
# - {Wx::EvtHandler#evt_media_pause}(id, meth = nil, &block): Sent when a media has switched to the {Wx::MediaState::MEDIASTATE_PAUSED} state. Processes a {Wx::EVT_MEDIA_PAUSE} event type.
|
93
99
|
#
|
94
100
|
# ===
|
@@ -98,9 +104,9 @@ module Wx
|
|
98
104
|
class MediaEvent < NotifyEvent
|
99
105
|
|
100
106
|
# Default ctor.
|
101
|
-
# @param commandType [
|
107
|
+
# @param commandType [Wx::AUI::AuiMDIChildFrame::EventType]
|
102
108
|
# @param winid [Integer]
|
103
|
-
# @return [MediaEvent]
|
109
|
+
# @return [Wx::MediaEvent]
|
104
110
|
def initialize(commandType=Wx::EVT_NULL, winid=0) end
|
105
111
|
|
106
112
|
end # MediaEvent
|
data/lib/wx/doc/gen/memory_dc.rb
CHANGED
@@ -25,38 +25,34 @@ module Wx
|
|
25
25
|
# When drawing in to a mono-bitmap, using {Wx::WHITE}, {Wx::WHITE_PEN} and {Wx::WHITE_BRUSH} will draw the background colour (i.e. 0) whereas all other colours will draw the foreground colour (i.e. 1).
|
26
26
|
# A bitmap must be selected into the new memory DC before it may be used for anything. Typical usage is as follows:
|
27
27
|
#
|
28
|
-
# ```
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
# old_dc.Blit(250, 50, BITMAP_WIDTH, BITMAP_HEIGHT, temp_dc, 0, 0);
|
28
|
+
# ```ruby
|
29
|
+
# Wx::MemoryDC.draw_on(test_bitmap) do |mem_dc|
|
30
|
+
# # We can now draw into the memory DC...
|
31
|
+
#
|
32
|
+
# # Copy from this DC to another DC.
|
33
|
+
# old_dc.blit(250, 50, BITMAP_WIDTH, BITMAP_HEIGHT, mem_dc, 0, 0)
|
34
|
+
# end
|
36
35
|
# ```
|
37
36
|
#
|
38
37
|
# Note that the memory DC must be deleted (or the bitmap selected out of it) before a bitmap can be reselected into another memory DC.
|
39
|
-
# And, before performing any other operations on the bitmap data, the bitmap must be selected out of the memory DC
|
38
|
+
# And, before performing any other operations on the bitmap data, the bitmap must be selected out of the memory DC. Note that when using the `.draw_on` method this will happen automatically when the block returns.
|
40
39
|
#
|
41
|
-
# ```
|
42
|
-
# temp_dc.SelectObject(wxNullBitmap);
|
43
|
-
# ```
|
44
|
-
#
|
45
|
-
# This happens automatically when {Wx::MemoryDC} object goes out of scope.
|
46
40
|
# Note that the scaling factor of the bitmap determines the scaling factor used by this device context, so when using a memory device context as a back buffer for a window, you should typically create the bitmap using the same scale factor as used by the window, e.g.
|
47
|
-
# ```
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# bmp.
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
41
|
+
# ```ruby
|
42
|
+
# class MyWindow
|
43
|
+
#
|
44
|
+
# def on_paint(_)
|
45
|
+
# bmp = Wx::Bitmap.new
|
46
|
+
# bmp.create_with_dip_size(get_client_size, get_dpi_scale_factor)
|
47
|
+
# Wx::MemoryDC.draw_on(bmp) do |mem_dc|
|
48
|
+
# ... use mem_dc to draw on the bitmap ...
|
49
|
+
# end
|
50
|
+
# self.paint do |dc|
|
51
|
+
# dc.draw_bitmap(bmp, Wx::Point.new(0, 0))
|
52
|
+
# end
|
53
|
+
# end
|
54
|
+
#
|
55
|
+
# end
|
60
56
|
# ```
|
61
57
|
#
|
62
58
|
# ===
|