wxruby3 0.9.0-x64-mingw-ucrt → 0.9.2-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/.yardopts +1 -0
- 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/aui/aui_tab_ctrl.rb +18 -0
- data/lib/wx/aui/auinotebook.rb +6 -2
- data/lib/wx/aui/require.rb +1 -0
- data/lib/wx/core/app.rb +2 -2
- data/lib/wx/core/collapsible_pane.rb +1 -1
- data/lib/wx/core/const.rb +83 -0
- data/lib/wx/core/controlwithitems.rb +8 -6
- data/lib/wx/core/events/evt_list.rb +24 -0
- data/lib/wx/core/menu.rb +10 -0
- data/lib/wx/core/notebook.rb +6 -2
- data/lib/wx/core/sizer.rb +11 -0
- data/lib/wx/core/task_bar_button.rb +19 -0
- data/lib/wx/core/textctrl.rb +11 -1
- data/lib/wx/core/{treectrl.rb → tree_ctrl.rb} +31 -12
- data/lib/wx/core/window.rb +10 -0
- data/lib/wx/doc/app.rb +48 -38
- data/lib/wx/doc/art_locator.rb +47 -43
- data/lib/wx/doc/aui/auimanager.rb +16 -8
- data/lib/wx/doc/aui/auinotebook.rb +20 -5
- data/lib/wx/doc/clipboard.rb +11 -7
- data/lib/wx/doc/colour_dialog.rb +14 -10
- data/lib/wx/doc/const.rb +66 -66
- data/lib/wx/doc/controlwithitems.rb +17 -7
- data/lib/wx/doc/data_object.rb +2 -2
- data/lib/wx/doc/event.rb +0 -6
- data/lib/wx/doc/evthandler.rb +113 -108
- data/lib/wx/doc/font.rb +1 -0
- data/lib/wx/doc/functions.rb +9 -9
- data/lib/wx/doc/gc_dc.rb +6 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -2
- data/lib/wx/doc/gen/accelerator.rb +14 -5
- data/lib/wx/doc/gen/accessible.rb +35 -47
- data/lib/wx/doc/gen/activity_indicator.rb +6 -7
- data/lib/wx/doc/gen/animation.rb +7 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +8 -9
- data/lib/wx/doc/gen/any_button.rb +6 -1
- data/lib/wx/doc/gen/app.rb +7 -5
- data/lib/wx/doc/gen/app_traits.rb +27 -10
- data/lib/wx/doc/gen/art_provider.rb +20 -8
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +6 -3
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +11 -7
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +3 -4
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -2
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +8 -3
- data/lib/wx/doc/gen/aui/aui_notebook.rb +14 -8
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +9 -2
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +9 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -8
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +1 -1
- data/lib/wx/doc/gen/aui/event_list.rb +164 -160
- data/lib/wx/doc/gen/banner_window.rb +3 -3
- data/lib/wx/doc/gen/bitmap.rb +34 -17
- data/lib/wx/doc/gen/bitmap_button.rb +13 -10
- data/lib/wx/doc/gen/bitmap_combo_box.rb +16 -12
- data/lib/wx/doc/gen/book_ctrl_base.rb +16 -4
- data/lib/wx/doc/gen/book_ctrl_event.rb +7 -3
- data/lib/wx/doc/gen/box_sizer.rb +0 -1
- data/lib/wx/doc/gen/brush.rb +5 -2
- data/lib/wx/doc/gen/busy_info.rb +2 -2
- data/lib/wx/doc/gen/button.rb +25 -13
- data/lib/wx/doc/gen/calculate_layout_event.rb +1 -3
- data/lib/wx/doc/gen/calendar_ctrl.rb +18 -15
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
- data/lib/wx/doc/gen/calendar_event.rb +4 -3
- data/lib/wx/doc/gen/caret.rb +0 -1
- data/lib/wx/doc/gen/check_box.rb +9 -9
- data/lib/wx/doc/gen/check_list_box.rb +8 -9
- data/lib/wx/doc/gen/choice.rb +18 -11
- data/lib/wx/doc/gen/choicebook.rb +6 -7
- data/lib/wx/doc/gen/client_dc.rb +5 -2
- data/lib/wx/doc/gen/clipboard.rb +7 -3
- data/lib/wx/doc/gen/collapsible_pane.rb +8 -9
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -3
- data/lib/wx/doc/gen/colour.rb +8 -4
- data/lib/wx/doc/gen/colour_dialog.rb +6 -8
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +11 -12
- data/lib/wx/doc/gen/colour_picker_event.rb +4 -5
- data/lib/wx/doc/gen/combo_box.rb +20 -17
- data/lib/wx/doc/gen/combo_ctrl.rb +100 -37
- data/lib/wx/doc/gen/command_link_button.rb +6 -7
- data/lib/wx/doc/gen/context_help_button.rb +7 -3
- data/lib/wx/doc/gen/control.rb +12 -10
- data/lib/wx/doc/gen/control_with_items.rb +0 -1
- data/lib/wx/doc/gen/core.rb +4 -4
- data/lib/wx/doc/gen/cursor.rb +6 -8
- data/lib/wx/doc/gen/data_format.rb +6 -1
- data/lib/wx/doc/gen/data_object.rb +16 -14
- data/lib/wx/doc/gen/date_event.rb +2 -2
- data/lib/wx/doc/gen/date_picker_ctrl.rb +14 -10
- data/lib/wx/doc/gen/dc.rb +155 -37
- data/lib/wx/doc/gen/defs.rb +54 -54
- data/lib/wx/doc/gen/dial_up_event.rb +41 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +137 -0
- data/lib/wx/doc/gen/dialog.rb +35 -15
- data/lib/wx/doc/gen/dir_dialog.rb +17 -5
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +11 -12
- data/lib/wx/doc/gen/drag_drop.rb +11 -10
- data/lib/wx/doc/gen/drag_image.rb +6 -2
- data/lib/wx/doc/gen/editable_list_box.rb +4 -4
- data/lib/wx/doc/gen/event.rb +42 -20
- data/lib/wx/doc/gen/event_blocker.rb +1 -3
- data/lib/wx/doc/gen/event_list.rb +1656 -1624
- data/lib/wx/doc/gen/events.rb +170 -181
- data/lib/wx/doc/gen/evt_handler.rb +11 -3
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_ctrl.rb +209 -0
- data/lib/wx/doc/gen/file_ctrl_event.rb +79 -0
- data/lib/wx/doc/gen/file_dialog.rb +32 -15
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +7 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +2 -3
- data/lib/wx/doc/gen/file_dir_picker_event.rb +3 -4
- data/lib/wx/doc/gen/file_picker_ctrl.rb +10 -11
- data/lib/wx/doc/gen/file_system.rb +38 -15
- data/lib/wx/doc/gen/find_dialog_event.rb +5 -4
- 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 +0 -1
- data/lib/wx/doc/gen/font.rb +31 -20
- data/lib/wx/doc/gen/font_data.rb +3 -4
- data/lib/wx/doc/gen/font_dialog.rb +1 -2
- data/lib/wx/doc/gen/font_picker_ctrl.rb +8 -9
- data/lib/wx/doc/gen/font_picker_event.rb +2 -3
- data/lib/wx/doc/gen/frame.rb +60 -19
- data/lib/wx/doc/gen/fs_file.rb +17 -10
- data/lib/wx/doc/gen/gauge.rb +13 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +0 -1
- data/lib/wx/doc/gen/gcdc.rb +1 -2
- data/lib/wx/doc/gen/gdi_common.rb +30 -11
- data/lib/wx/doc/gen/gdi_object.rb +0 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +8 -9
- data/lib/wx/doc/gen/graphics_context.rb +59 -12
- data/lib/wx/doc/gen/graphics_object.rb +11 -6
- data/lib/wx/doc/gen/grid/event_list.rb +168 -164
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -2
- 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 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +1 -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 +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +1 -1
- 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 -2
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +29 -7
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_size_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_string_table.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_table_message.rb +1 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -6
- data/lib/wx/doc/gen/grid_sizer.rb +0 -1
- data/lib/wx/doc/gen/gui_event_loop.rb +2 -4
- data/lib/wx/doc/gen/header_ctrl.rb +7 -14
- data/lib/wx/doc/gen/header_ctrl_event.rb +1 -3
- data/lib/wx/doc/gen/help_controller.rb +42 -3
- data/lib/wx/doc/gen/help_provider.rb +12 -3
- data/lib/wx/doc/gen/html/event_list.rb +41 -37
- data/lib/wx/doc/gen/html/html_cell.rb +23 -6
- data/lib/wx/doc/gen/html/html_cell_event.rb +3 -4
- data/lib/wx/doc/gen/html/html_easy_printing.rb +8 -3
- data/lib/wx/doc/gen/html/html_help_controller.rb +47 -2
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -1
- data/lib/wx/doc/gen/html/html_help_window.rb +1 -1
- data/lib/wx/doc/gen/html/html_link_event.rb +2 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +10 -12
- data/lib/wx/doc/gen/html/html_printout.rb +1 -2
- data/lib/wx/doc/gen/html/html_window.rb +13 -7
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +9 -9
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -3
- data/lib/wx/doc/gen/icon.rb +5 -29
- data/lib/wx/doc/gen/icon_location.rb +0 -1
- data/lib/wx/doc/gen/image.rb +83 -17
- data/lib/wx/doc/gen/image_list.rb +15 -6
- data/lib/wx/doc/gen/info_bar.rb +2 -2
- data/lib/wx/doc/gen/keyboard_state.rb +0 -1
- data/lib/wx/doc/gen/list_box.rb +33 -21
- data/lib/wx/doc/gen/list_ctrl.rb +79 -32
- data/lib/wx/doc/gen/list_event.rb +3 -4
- data/lib/wx/doc/gen/listbook.rb +6 -7
- data/lib/wx/doc/gen/locale.rb +46 -4
- data/lib/wx/doc/gen/log.rb +16 -12
- data/lib/wx/doc/gen/mdi_client_window.rb +8 -2
- data/lib/wx/doc/gen/mdi_frame.rb +32 -11
- data/lib/wx/doc/gen/media_ctrl.rb +28 -20
- data/lib/wx/doc/gen/media_event.rb +5 -4
- data/lib/wx/doc/gen/memory_dc.rb +6 -6
- data/lib/wx/doc/gen/menu.rb +37 -23
- data/lib/wx/doc/gen/menu_bar.rb +52 -12
- data/lib/wx/doc/gen/menu_item.rb +117 -95
- data/lib/wx/doc/gen/message_dialog.rb +7 -8
- data/lib/wx/doc/gen/mini_frame.rb +13 -7
- data/lib/wx/doc/gen/mirror_dc.rb +0 -2
- data/lib/wx/doc/gen/mouse_state.rb +0 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +7 -4
- data/lib/wx/doc/gen/non_owned_window.rb +1 -1
- data/lib/wx/doc/gen/notebook.rb +19 -11
- data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
- data/lib/wx/doc/gen/object.rb +0 -1
- data/lib/wx/doc/gen/paint_dc.rb +0 -1
- data/lib/wx/doc/gen/palette.rb +0 -1
- data/lib/wx/doc/gen/panel.rb +19 -10
- data/lib/wx/doc/gen/pen.rb +17 -8
- data/lib/wx/doc/gen/pg/event_list.rb +97 -93
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +9 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +8 -5
- data/lib/wx/doc/gen/pg/pg_editor.rb +115 -16
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +1 -2
- data/lib/wx/doc/gen/pg/pg_properties.rb +515 -83
- data/lib/wx/doc/gen/pg/pg_property.rb +296 -69
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +9 -4
- data/lib/wx/doc/gen/pg/property_grid.rb +83 -22
- data/lib/wx/doc/gen/pg/property_grid_event.rb +31 -9
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +212 -34
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +42 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +26 -8
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +13 -4
- data/lib/wx/doc/gen/picker_base.rb +12 -5
- data/lib/wx/doc/gen/platform_info.rb +4 -9
- data/lib/wx/doc/gen/popup_window.rb +2 -5
- data/lib/wx/doc/gen/progress_dialog.rb +1 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +15 -5
- data/lib/wx/doc/gen/prt/event_list.rb +8 -4
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +2 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +4 -1
- data/lib/wx/doc/gen/prt/print_data.rb +4 -3
- data/lib/wx/doc/gen/prt/print_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/printer.rb +50 -11
- data/lib/wx/doc/gen/prt/printer_dc.rb +1 -1
- data/lib/wx/doc/gen/query_layout_info_event.rb +1 -3
- data/lib/wx/doc/gen/radio_box.rb +13 -14
- data/lib/wx/doc/gen/radio_button.rb +15 -11
- data/lib/wx/doc/gen/rbn/event_list.rb +127 -123
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +19 -3
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +3 -4
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +18 -6
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +1 -2
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +5 -4
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +3 -4
- data/lib/wx/doc/gen/rearrange_list.rb +5 -6
- data/lib/wx/doc/gen/region.rb +75 -17
- data/lib/wx/doc/gen/region_iterator.rb +0 -1
- data/lib/wx/doc/gen/rtc/event_list.rb +116 -112
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +3 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -9
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -2
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +3 -6
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +12 -9
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +3 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +3 -5
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +4 -5
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +3 -2
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -3
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +2 -4
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +28 -23
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +7 -11
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +14 -14
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -4
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +3 -4
- data/lib/wx/doc/gen/sash_event.rb +12 -4
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -6
- data/lib/wx/doc/gen/sash_window.rb +4 -5
- data/lib/wx/doc/gen/screen_dc.rb +0 -1
- data/lib/wx/doc/gen/scroll_bar.rb +21 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +34 -12
- data/lib/wx/doc/gen/scrolled_control.rb +34 -12
- data/lib/wx/doc/gen/scrolled_window.rb +34 -12
- data/lib/wx/doc/gen/search_ctrl.rb +10 -11
- data/lib/wx/doc/gen/simplebook.rb +1 -1
- data/lib/wx/doc/gen/single_choice_dialog.rb +7 -4
- data/lib/wx/doc/gen/sizer.rb +12 -7
- data/lib/wx/doc/gen/sizer_item.rb +5 -2
- data/lib/wx/doc/gen/slider.rb +29 -19
- data/lib/wx/doc/gen/spin_button.rb +16 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +24 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +6 -7
- data/lib/wx/doc/gen/spin_double_event.rb +3 -4
- data/lib/wx/doc/gen/spin_event.rb +3 -3
- data/lib/wx/doc/gen/splash_screen.rb +1 -2
- data/lib/wx/doc/gen/splitter_event.rb +3 -4
- data/lib/wx/doc/gen/splitter_window.rb +78 -20
- data/lib/wx/doc/gen/static_bitmap.rb +12 -7
- data/lib/wx/doc/gen/static_box.rb +13 -11
- data/lib/wx/doc/gen/static_box_sizer.rb +0 -2
- data/lib/wx/doc/gen/static_line.rb +5 -6
- data/lib/wx/doc/gen/static_text.rb +7 -8
- data/lib/wx/doc/gen/status_bar.rb +21 -11
- data/lib/wx/doc/gen/stc/event_list.rb +212 -208
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +41 -15
- data/lib/wx/doc/gen/stc/styled_text_event.rb +5 -6
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -1
- data/lib/wx/doc/gen/svg_file_dc.rb +7 -8
- data/lib/wx/doc/gen/system_options.rb +6 -6
- data/lib/wx/doc/gen/system_settings.rb +2 -3
- data/lib/wx/doc/gen/task_bar_button.rb +312 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +21 -8
- data/lib/wx/doc/gen/task_bar_icon_event.rb +4 -3
- data/lib/wx/doc/gen/text_attr.rb +20 -5
- data/lib/wx/doc/gen/text_ctrl.rb +92 -27
- data/lib/wx/doc/gen/text_entry.rb +31 -11
- data/lib/wx/doc/gen/text_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/text_validator.rb +43 -10
- data/lib/wx/doc/gen/time_picker_ctrl.rb +7 -8
- data/lib/wx/doc/gen/timer.rb +6 -2
- data/lib/wx/doc/gen/timer_event.rb +1 -2
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +7 -8
- data/lib/wx/doc/gen/tool_bar.rb +99 -26
- data/lib/wx/doc/gen/tool_tip.rb +35 -5
- data/lib/wx/doc/gen/toolbook.rb +3 -4
- data/lib/wx/doc/gen/top_level_window.rb +71 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +42 -18
- data/lib/wx/doc/gen/tree_event.rb +3 -4
- data/lib/wx/doc/gen/treebook.rb +7 -4
- data/lib/wx/doc/gen/ui_action_simulator.rb +6 -2
- data/lib/wx/doc/gen/utils.rb +39 -7
- data/lib/wx/doc/gen/v_list_box.rb +8 -4
- data/lib/wx/doc/gen/v_scrolled_window.rb +8 -6
- data/lib/wx/doc/gen/validator.rb +1 -1
- data/lib/wx/doc/gen/variant.rb +1 -0
- data/lib/wx/doc/gen/window.rb +200 -50
- data/lib/wx/doc/gen/window_dc.rb +0 -1
- data/lib/wx/doc/gen/window_disabler.rb +5 -2
- data/lib/wx/doc/gen/with_images.rb +6 -1
- data/lib/wx/doc/gen/wizard.rb +4 -4
- data/lib/wx/doc/gen/wizard_event.rb +3 -4
- data/lib/wx/doc/gen/wizard_page.rb +2 -2
- data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
- data/lib/wx/doc/gen/wrap_sizer.rb +0 -1
- data/lib/wx/doc/gen/xml_node.rb +19 -4
- data/lib/wx/doc/gen/xml_resource.rb +18 -5
- data/lib/wx/doc/graphics_context.rb +1 -0
- data/lib/wx/doc/grid/grid.rb +22 -1
- data/lib/wx/doc/help_controller.rb +11 -7
- data/lib/wx/doc/html/html_help_controller.rb +12 -4
- data/lib/wx/doc/list_ctrl.rb +33 -29
- data/lib/wx/doc/menu.rb +20 -0
- data/lib/wx/doc/notebook.rb +21 -0
- data/lib/wx/doc/pg/events.rb +13 -9
- data/lib/wx/doc/pg/pg_property.rb +18 -0
- data/lib/wx/doc/progress_dialog.rb +36 -32
- data/lib/wx/doc/prt/page_setup_dialog.rb +20 -12
- data/lib/wx/doc/prt/print_data.rb +13 -5
- data/lib/wx/doc/prt/print_dialog.rb +31 -23
- data/lib/wx/doc/prt/printer.rb +20 -12
- data/lib/wx/doc/radio_box.rb +19 -15
- data/lib/wx/doc/rbn/ribbon_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_gallery.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +13 -5
- data/lib/wx/doc/region_iterator.rb +32 -28
- data/lib/wx/doc/rtc/rich_text_composite_object.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_ctrl.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_paragraph.rb +24 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +27 -19
- data/lib/wx/doc/rtc/richtext_printing.rb +17 -9
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +17 -9
- data/lib/wx/doc/sizer.rb +20 -0
- data/lib/wx/doc/stc/styled_text_ctrl.rb +24 -0
- data/lib/wx/doc/stream.rb +39 -35
- data/lib/wx/doc/system_settings.rb +30 -26
- data/lib/wx/doc/text_validator.rb +12 -8
- data/lib/wx/doc/textctrl.rb +16 -0
- data/lib/wx/doc/tree_ctrl.rb +95 -0
- data/lib/wx/doc/treebook.rb +9 -5
- data/lib/wx/doc/v_list_box.rb +9 -5
- data/lib/wx/doc/variant.rb +164 -160
- data/lib/wx/doc/window.rb +57 -42
- data/lib/wx/doc/window_disabler.rb +10 -6
- data/lib/wx/grid/grid.rb +27 -4
- data/lib/wx/keyword_defs.rb +43 -6
- data/lib/wx/pg/pg_property.rb +22 -0
- data/lib/wx/rtc/require.rb +3 -0
- data/lib/wx/rtc/rich_text_composite_object.rb +25 -0
- data/lib/wx/rtc/rich_text_ctrl.rb +25 -0
- data/lib/wx/rtc/rich_text_paragraph.rb +25 -0
- data/lib/wx/stc/require.rb +1 -0
- data/lib/wx/stc/styled_text_ctrl.rb +25 -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/rakelib/lib/config/linux.rb +0 -3
- data/rakelib/lib/config/macosx.rb +1 -1
- data/rakelib/lib/config/mingw.rb +1 -1
- data/rakelib/lib/config/unixish.rb +1 -1
- data/rakelib/lib/config.rb +14 -4
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +74 -2
- data/rakelib/yard/templates/default/fulldoc/html/full_list.erb +38 -0
- data/rakelib/yard/templates/default/fulldoc/html/setup.rb +39 -0
- data/rakelib/yard/templates/default/tags/html/wxrb_require.erb +10 -0
- data/rakelib/yard/templates/default/tags/setup.rb +16 -0
- data/rakelib/yard/yard-custom-templates.rb +3 -0
- data/samples/text/richtext.rb +0 -30
- data/samples/treectrl/treectrl.rb +1 -1
- data/tests/media/beep_lo.wav +0 -0
- data/tests/test_app_exit_exception.rb +36 -0
- data/tests/test_app_init_exception.rb +20 -0
- data/tests/test_book_controls.rb +29 -0
- data/tests/test_exceptions.rb +41 -0
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_media_ctrl.rb +38 -0
- data/tests/test_menu.rb +69 -0
- data/tests/test_pg.rb +27 -0
- data/tests/test_richtext.rb +45 -0
- data/tests/test_sizer.rb +59 -0
- data/tests/test_std_controls.rb +78 -1
- data/tests/test_styled_text_ctrl.rb +46 -0
- data/tests/test_tree_ctrl.rb +138 -0
- data/tests/test_window.rb +12 -0
- data/tests/testapp_noframe.rb +1 -1
- metadata +38 -3
data/lib/wx/doc/gen/log.rb
CHANGED
@@ -10,6 +10,7 @@ module Wx
|
|
10
10
|
#
|
11
11
|
#
|
12
12
|
#
|
13
|
+
# @wxrb_require USE_LOG
|
13
14
|
class LogLevelValues < Wx::Enum
|
14
15
|
|
15
16
|
# program can't continue, abort immediately
|
@@ -61,15 +62,19 @@ module Wx
|
|
61
62
|
# {Wx::Log} class defines the interface for the log targets used by wxWidgets logging functions as explained in the Logging Overview.
|
62
63
|
# The only situations when you need to directly use this class is when you want to derive your own log target because the existing ones don't satisfy your needs.
|
63
64
|
# Otherwise, it is completely hidden behind the wxLogXXX() functions and you may not even know about its existence.
|
64
|
-
# For console-mode applications, the default target is {Wx::LogStderr}, so that all {log_xxx} functions print on stderr when {Wx::Setup::USE_GUI} = 0.
|
65
65
|
#
|
66
|
-
#
|
66
|
+
# <div class="wxrb-note">
|
67
|
+
# <b>Note:</b>
|
68
|
+
# <p>For console-mode applications, the default target is {Wx::LogStderr}, so that all {log_xxx} functions print on stderr when {Wx::Setup::USE_GUI} = 0.
|
69
|
+
# </p>
|
70
|
+
# </div>
|
67
71
|
#
|
68
72
|
# Category: {Wx::Logging}
|
69
73
|
# @see Logging Overview
|
70
74
|
# @see wxLogXXX() functions
|
71
75
|
#
|
72
76
|
#
|
77
|
+
# @wxrb_require USE_LOG
|
73
78
|
class Log < ::Object
|
74
79
|
|
75
80
|
# Add the mask to the list of allowed masks for {log_trace}.
|
@@ -294,12 +299,12 @@ module Wx
|
|
294
299
|
# {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).
|
295
300
|
# The messages from different log function calls are separated by the new lines.
|
296
301
|
# All the messages collected so far can be shown to the user (and the current buffer cleared) by calling the overloaded {Wx::LogBuffer#flush} method.
|
297
|
-
# ===
|
298
302
|
#
|
299
303
|
# Category: {Wx::Logging}
|
300
304
|
#
|
301
305
|
#
|
302
306
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
307
|
+
# @wxrb_require USE_LOG
|
303
308
|
class LogBuffer < Log
|
304
309
|
|
305
310
|
# The default ctor does nothing.
|
@@ -325,10 +330,9 @@ module Wx
|
|
325
330
|
# ...
|
326
331
|
# ```
|
327
332
|
#
|
328
|
-
# ===
|
329
|
-
#
|
330
333
|
# Category: {Wx::Logging}
|
331
334
|
#
|
335
|
+
# @wxrb_require USE_LOG
|
332
336
|
class LogChain < Log
|
333
337
|
|
334
338
|
# 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.
|
@@ -370,12 +374,12 @@ module Wx
|
|
370
374
|
# Also notice that if an error message is logged when several informative messages had been already logged before, the informative messages are discarded on the assumption that they are not useful and may be confusing and hence harmful any more after the error. The warning and error messages are never discarded however and any informational messages logged after the first error one are also kept (as they may contain information about the error recovery). You may override DoLog() method to change this behaviour.
|
371
375
|
# At any rate, it is possible that that several messages were accumulated before this class {Wx::LogGui#flush} method is called. If this is the case, {Wx::LogGui#flush} uses a custom dialog which shows the last message directly and allows the user to view the previously logged ones by expanding the "Details" {Wx::CollapsiblePane} inside it. This custom dialog also provides the buttons for copying the log messages to the clipboard and saving them to a file.
|
372
376
|
# However if only a single message is present when {Wx::LogGui#flush} is called, just a {message_box} is used to show it. This has the advantage of being closer to the native behaviour but it doesn't give the user any possibility to copy or save the message (except for the recent Windows versions where <code>Ctrl-C</code> may be pressed in the message box to copy its contents to the clipboard) so you may want to override {Wx::LogGui#do_show_single_log_message} to customize {Wx::LogGui} the dialogs sample shows how to do this.
|
373
|
-
# ===
|
374
377
|
#
|
375
378
|
# Category: {Wx::Logging}
|
376
379
|
#
|
377
380
|
#
|
378
381
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
382
|
+
# @wxrb_require USE_LOG
|
379
383
|
class LogGui < Log
|
380
384
|
|
381
385
|
# Default constructor.
|
@@ -386,7 +390,6 @@ module Wx
|
|
386
390
|
|
387
391
|
# This class can be used to redirect the log messages to a C file stream (not to be confused with C++ streams).
|
388
392
|
# It is the default log target for the non-GUI wxWidgets applications which send all the output to stderr.
|
389
|
-
# ===
|
390
393
|
#
|
391
394
|
# Category: {Wx::Logging}
|
392
395
|
# @see Wx::LogStream
|
@@ -394,13 +397,13 @@ module Wx
|
|
394
397
|
#
|
395
398
|
#
|
396
399
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
400
|
+
# @wxrb_require USE_LOG
|
397
401
|
class LogStderr < Log
|
398
402
|
|
399
403
|
end # LogStderr
|
400
404
|
|
401
405
|
# Using these target all the log messages can be redirected to a text control.
|
402
406
|
# The text control must have been created with {Wx::TE_MULTILINE} style by the caller previously.
|
403
|
-
# ===
|
404
407
|
#
|
405
408
|
# Category: {Wx::Logging}
|
406
409
|
# @see Wx::TextCtrl
|
@@ -409,6 +412,7 @@ module Wx
|
|
409
412
|
#
|
410
413
|
#
|
411
414
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
415
|
+
# @wxrb_require USE_LOG
|
412
416
|
class LogTextCtrl < Log
|
413
417
|
|
414
418
|
# Constructs a log target which sends all the log messages to the given text control.
|
@@ -423,10 +427,10 @@ module Wx
|
|
423
427
|
# It forwards log messages to the previously installed one in addition to processing them itself.
|
424
428
|
# Unlike {Wx::LogChain} which is usually used directly as is, this class must be derived from to implement {Wx::Log::DoLog} and/or {Wx::Log::DoLogString} methods.
|
425
429
|
# {Wx::LogInterposer} destroys the previous log target in its destructor. If you don't want this to happen, use {Wx::LogInterposerTemp} instead.
|
426
|
-
# ===
|
427
430
|
#
|
428
431
|
# Category: {Wx::Logging}
|
429
432
|
#
|
433
|
+
# @wxrb_require USE_LOG
|
430
434
|
class LogInterposer < LogChain
|
431
435
|
|
432
436
|
# The default constructor installs this object as the current active log target.
|
@@ -437,12 +441,12 @@ module Wx
|
|
437
441
|
|
438
442
|
# This class represents a background log window: to be precise, it collects all log messages in the log frame which it manages but also passes them on to the log target which was active at the moment of its creation.
|
439
443
|
# This allows you, for example, to show all the log messages in a frame but still continue to process them normally by showing the standard log dialog.
|
440
|
-
# ===
|
441
444
|
#
|
442
445
|
# Category: {Wx::Logging}
|
443
446
|
# @see Wx::LogTextCtrl
|
444
447
|
#
|
445
448
|
#
|
449
|
+
# @wxrb_require USE_LOG
|
446
450
|
class LogWindow < LogInterposer
|
447
451
|
|
448
452
|
# Creates the log frame window and starts collecting the messages in it.
|
@@ -513,12 +517,11 @@ module Wx
|
|
513
517
|
# end
|
514
518
|
# ```
|
515
519
|
#
|
516
|
-
# ===
|
517
|
-
#
|
518
520
|
# Category: {Wx::Logging}
|
519
521
|
#
|
520
522
|
#
|
521
523
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
524
|
+
# @wxrb_require USE_LOG
|
522
525
|
class LogNull < ::Object
|
523
526
|
|
524
527
|
end # LogNull
|
@@ -528,6 +531,7 @@ module Wx
|
|
528
531
|
#
|
529
532
|
#
|
530
533
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
534
|
+
# @wxrb_require USE_LOG
|
531
535
|
class LogRecordInfo < ::Object
|
532
536
|
|
533
537
|
end # LogRecordInfo
|
@@ -7,10 +7,15 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# An MDI client window is a child of {Wx::MDIParentFrame}, and manages zero or more {Wx::MDIChildFrame} objects.
|
10
|
+
# <div class="wxrb-remark">
|
11
|
+
# <b>Remark:</b>
|
12
|
+
# <p>
|
13
|
+
# </p>
|
14
|
+
# </div>>
|
15
|
+
#
|
10
16
|
# 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
17
|
# 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
|
13
|
-
# ===
|
18
|
+
# 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.
|
14
19
|
#
|
15
20
|
# Category: Managed Windows
|
16
21
|
# @see Wx::MDIChildFrame
|
@@ -18,6 +23,7 @@ module Wx
|
|
18
23
|
# @see Wx::Frame
|
19
24
|
#
|
20
25
|
#
|
26
|
+
# @wxrb_require USE_MDI
|
21
27
|
class MDIClientWindow < Window
|
22
28
|
|
23
29
|
# Default constructor.
|
data/lib/wx/doc/gen/mdi_frame.rb
CHANGED
@@ -11,15 +11,19 @@ module Wx
|
|
11
11
|
# An MDI parent frame always has a {Wx::MDIClientWindow} associated with it, which is the parent for MDI child frames. In the simplest case, the client window takes up the entire parent frame area but it is also possible to resize it to be smaller in order to have other windows in the frame, a typical example is using a sidebar along one of the window edges.
|
12
12
|
# The appearance of MDI applications differs between different ports. The classic MDI model, with child windows which can be independently moved, resized etc, is only available under MSW, which provides native support for it. In Mac ports, multiple top level windows are used for the MDI children too and the MDI parent frame itself is invisible, to accommodate the native look and feel requirements. In all the other ports, a tab-based MDI implementation (sometimes called TDI) is used and so at most one MDI child is visible at any moment (child frames are always maximized).
|
13
13
|
#
|
14
|
+
# <div class="wxrb-remark">
|
15
|
+
# <b>Remark:</b>
|
16
|
+
# <p>
|
17
|
+
# </p>
|
18
|
+
# </div>>
|
19
|
+
#
|
14
20
|
# Although it is possible to have multiple MDI parent frames, a typical MDI application has a single MDI parent frame window inside which multiple MDI child frames, i.e. objects of class {Wx::MDIChildFrame}, can be created.
|
15
|
-
#
|
21
|
+
# ### Styles
|
16
22
|
#
|
17
23
|
# This class supports the following styles:
|
18
24
|
#
|
19
25
|
# There are no special styles for this class, all {Wx::Frame} styles apply to it in the usual way. The only exception is that {Wx::HSCROLL} and {Wx::VSCROLL} styles apply not to the frame itself but to the client window, so that using them enables horizontal and vertical scrollbars for this window and not the frame.
|
20
26
|
#
|
21
|
-
# ===
|
22
|
-
#
|
23
27
|
# Category: Managed Windows
|
24
28
|
# @see Wx::MDIChildFrame
|
25
29
|
# @see Wx::MDIClientWindow
|
@@ -27,17 +31,24 @@ module Wx
|
|
27
31
|
# @see Wx::Dialog
|
28
32
|
#
|
29
33
|
#
|
34
|
+
# @wxrb_require USE_MDI
|
30
35
|
class MDIParentFrame < Frame
|
31
36
|
|
32
37
|
# @overload initialize()
|
33
38
|
# Default constructor.
|
34
39
|
# Use {Wx::MDIParentFrame#create} for the objects created using this constructor.
|
35
40
|
# @return [Wx::MDIParentFrame]
|
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::
|
41
|
+
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FRAME_NAME_STR)
|
37
42
|
# Constructor, creating the window.
|
38
43
|
# 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
44
|
#
|
40
|
-
#
|
45
|
+
# <div class="wxrb-remark">
|
46
|
+
# <b>Remark:</b>
|
47
|
+
# <p>
|
48
|
+
# </p>
|
49
|
+
# </div>>
|
50
|
+
#
|
51
|
+
# 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
52
|
# @see Wx::MDIParentFrame#create
|
42
53
|
# @see Wx::MDIParentFrame#on_create_client
|
43
54
|
# @param parent [Wx::Window] The window parent. Usually is NULL.
|
@@ -86,7 +97,7 @@ module Wx
|
|
86
97
|
# @param style [Integer]
|
87
98
|
# @param name [String]
|
88
99
|
# @return [Boolean]
|
89
|
-
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::
|
100
|
+
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FRAME_NAME_STR) end
|
90
101
|
|
91
102
|
# Returns a pointer to the active MDI child, if there is one.
|
92
103
|
# If there are any children at all this function returns a non-NULL pointer.
|
@@ -117,6 +128,12 @@ module Wx
|
|
117
128
|
# frame.create(parent, myParentFrameId, 'My Parent Frame')
|
118
129
|
# ```
|
119
130
|
#
|
131
|
+
# <div class="wxrb-remark">
|
132
|
+
# <b>Remark:</b>
|
133
|
+
# <p>
|
134
|
+
# </p>
|
135
|
+
# </div>>
|
136
|
+
#
|
120
137
|
# 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.
|
121
138
|
# Note that it is probably impossible to have a client window that scrolls as well as painting a bitmap or pattern, since in <b>OnScroll</b>, the scrollbar positions always return zero.
|
122
139
|
# @see Wx::MDIParentFrame#get_client_window
|
@@ -157,13 +174,16 @@ module Wx
|
|
157
174
|
end # MDIParentFrame
|
158
175
|
|
159
176
|
# An MDI child frame is a frame that can only exist inside a {Wx::MDIClientWindow}, which is itself a child of {Wx::MDIParentFrame}.
|
160
|
-
#
|
177
|
+
# ### Styles
|
161
178
|
#
|
162
179
|
# This class supports the following styles:
|
163
180
|
# All of the standard {Wx::Frame} styles can be used but most of them are ignored by TDI-based MDI implementations.
|
164
|
-
# Although internally an MDI child frame is a child of the MDI client window, in wxWidgets you create it as a child of {Wx::MDIParentFrame}. In fact, you can usually forget that the client window exists. MDI child frames are clipped to the area of the MDI client window, and may be iconized on the client window. You can associate a menubar with a child frame as usual, although an MDI child doesn't display its menubar under its own title bar. The MDI parent frame's menubar will be changed to reflect the currently active child frame. If there are currently no children, the parent frame's own menubar will be displayed.
|
165
181
|
#
|
166
|
-
#
|
182
|
+
# <div class="wxrb-remark">
|
183
|
+
# <b>Remark:</b>
|
184
|
+
# <p>Although internally an MDI child frame is a child of the MDI client window, in wxWidgets you create it as a child of {Wx::MDIParentFrame}. In fact, you can usually forget that the client window exists. MDI child frames are clipped to the area of the MDI client window, and may be iconized on the client window. You can associate a menubar with a child frame as usual, although an MDI child doesn't display its menubar under its own title bar. The MDI parent frame's menubar will be changed to reflect the currently active child frame. If there are currently no children, the parent frame's own menubar will be displayed.
|
185
|
+
# </p>
|
186
|
+
# </div>>
|
167
187
|
#
|
168
188
|
# Category: Managed Windows
|
169
189
|
# @see Wx::MDIClientWindow
|
@@ -171,12 +191,13 @@ module Wx
|
|
171
191
|
# @see Wx::Frame
|
172
192
|
#
|
173
193
|
#
|
194
|
+
# @wxrb_require USE_MDI
|
174
195
|
class MDIChildFrame < Frame
|
175
196
|
|
176
197
|
# @overload initialize()
|
177
198
|
# Default constructor.
|
178
199
|
# @return [Wx::MDIChildFrame]
|
179
|
-
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::
|
200
|
+
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR)
|
180
201
|
# Constructor, creating the window.
|
181
202
|
#
|
182
203
|
# @see Wx::MDIChildFrame#create
|
@@ -207,7 +228,7 @@ module Wx
|
|
207
228
|
# @param style [Integer]
|
208
229
|
# @param name [String]
|
209
230
|
# @return [Boolean]
|
210
|
-
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::
|
231
|
+
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR) end
|
211
232
|
|
212
233
|
# Returns the MDI parent frame containing this child.
|
213
234
|
# Notice that this may return a different object than {Wx::MDIChildFrame#get_parent} as the child frames may be created as children of the client window internally.
|
@@ -9,13 +9,13 @@ module Wx
|
|
9
9
|
# {Wx::MediaCtrl} is a class for displaying various types of media, such as videos, audio files, natively through native codecs.
|
10
10
|
# {Wx::MediaCtrl} uses native backends to render media, for example on Windows there is a ActiveMovie/DirectShow backend, and on Macintosh there is a QuickTime backend.
|
11
11
|
#
|
12
|
-
#
|
12
|
+
# ## Rendering media
|
13
13
|
#
|
14
14
|
# Depending upon the backend, {Wx::MediaCtrl} can render and display pretty much any kind of media that the native system can - such as an image, mpeg video, or mp3 (without license restrictions - since it relies on native system calls that may not technically have mp3 decoding available, for example, it falls outside the realm of licensing restrictions).
|
15
15
|
# For general operation, all you need to do is call {Wx::MediaCtrl#load} to load the file you want to render, catch the EVT_MEDIA_LOADED event, and then call {Wx::MediaCtrl#play} to show the video/audio of the media in that event.
|
16
16
|
# More complex operations are generally more heavily dependent on the capabilities of the backend. For example, QuickTime cannot set the playback rate of certain streaming media - while DirectShow is slightly more flexible in that regard.
|
17
17
|
#
|
18
|
-
#
|
18
|
+
# ## Operation
|
19
19
|
#
|
20
20
|
# When {Wx::MediaCtrl} plays a file, it plays until the stop position is reached (currently the end of the file/stream). Right before it hits the end of the stream, it fires off a EVT_MEDIA_STOP event to its parent window, at which point the event handler can choose to veto the event, preventing the stream from actually stopping.
|
21
21
|
# Example:
|
@@ -38,16 +38,16 @@ module Wx
|
|
38
38
|
# When {Wx::MediaCtrl} stops, either by the EVT_MEDIA_STOP not being vetoed, or by manually calling {Wx::MediaCtrl#stop}, where it actually stops is not at the beginning, rather, but at the beginning of the stream. That is, when it stops and play is called, playback is guaranteed to start at the beginning of the media. This is because some streams are not seekable, and when stop is called on them they return to the beginning, thus {Wx::MediaCtrl} tries to keep consistent for all types of media.
|
39
39
|
# Note that when changing the state of the media through {Wx::MediaCtrl#play} and other methods, the media may not actually be in the {Wx::MediaState::MEDIASTATE_PLAYING}, for example. If you are relying on the media being in certain state, catch the event relevant to the state. See {Wx::MediaEvent} for the kinds of events that you can catch.
|
40
40
|
#
|
41
|
-
#
|
41
|
+
# ## Video size
|
42
42
|
#
|
43
43
|
# By default, {Wx::MediaCtrl} will scale the size of the video to the requested amount passed to either its constructor or {Wx::MediaCtrl#create}. After calling {Wx::MediaCtrl#load} or performing an equivalent operation, you can subsequently obtain the "real" size of the video (if there is any) by calling {Wx::MediaCtrl#get_best_size}. Note that the actual result on the display will be slightly different when {Wx::MediaCtrl#show_player_controls} is activated and the actual video size will be less than specified due to the extra controls provided by the native toolkit. In addition, the backend may modify {Wx::MediaCtrl#get_best_size} to include the size of the extra controls - so if you want the real size of the video just disable {Wx::MediaCtrl#show_player_controls}.
|
44
44
|
# The idea with setting {Wx::MediaCtrl#get_best_size} to the size of the video is that {Wx::MediaCtrl#get_best_size} is a {Wx::Window}-derived function that is called when sizers on a window recalculate. What this means is that if you use sizers by default the video will show in its original size without any extra assistance needed from the user.
|
45
45
|
#
|
46
|
-
#
|
46
|
+
# ## Player controls
|
47
47
|
#
|
48
48
|
# Normally, when you use {Wx::MediaCtrl} it is just a window for the video to play in. However, some toolkits have their own media player interface. For example, QuickTime generally has a bar below the video with a slider. A special feature available to {Wx::MediaCtrl}, you can use the toolkits interface instead of making your own by using the {Wx::MediaCtrl#show_player_controls} function. There are several options for the flags parameter, with the two general flags being {Wx::MediaCtrlPlayerControls::MEDIACTRLPLAYERCONTROLS_NONE} which turns off the native interface, and {Wx::MediaCtrlPlayerControls::MEDIACTRLPLAYERCONTROLS_DEFAULT} which lets {Wx::MediaCtrl} decide what native controls on the interface. Be sure to review the caveats outlined in Video size before doing so.
|
49
49
|
#
|
50
|
-
#
|
50
|
+
# ## Choosing a backend
|
51
51
|
#
|
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:
|
@@ -57,30 +57,29 @@ module Wx
|
|
57
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
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.
|
59
59
|
#
|
60
|
-
#
|
60
|
+
# ## Creating a backend
|
61
61
|
#
|
62
62
|
# Creating a backend for {Wx::MediaCtrl} is a rather simple process. Simply derive from {Wx::MediaBackendCommonBase} and implement the methods you want. The methods in {Wx::MediaBackend} correspond to those in {Wx::MediaCtrl} except for {Wx::MediaCtrl::CreateControl} which does the actual creation of the control, in cases where a custom control is not needed you may simply call {Wx::Control#create}.
|
63
63
|
# You need to make sure to use the {Wx::DECLARE_CLASS} and {Wx::IMPLEMENT_CLASS} macros.
|
64
64
|
# The only real tricky part is that you need to make sure the file in compiled in, which if there are just backends in there will not happen and you may need to use a force link hack (see {Wx::FORCE_LINK_MODULE} usage in the mediactrl sample).
|
65
65
|
# There is a rather simple example of how to create a backend in the {Wx::ActiveXContainer} documentation.
|
66
|
-
#
|
66
|
+
# ### Styles
|
67
67
|
#
|
68
68
|
# This class supports the following styles:
|
69
69
|
#
|
70
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).
|
71
71
|
#
|
72
|
-
# ===
|
73
|
-
#
|
74
72
|
# Category: {Wx::Multimedia}
|
75
73
|
# @see Wx::MediaEvent
|
76
74
|
#
|
77
75
|
#
|
76
|
+
# @wxrb_require USE_MEDIACTRL
|
78
77
|
class MediaCtrl < Control
|
79
78
|
|
80
79
|
# @overload initialize()
|
81
80
|
# Default constructor - you MUST call {Wx::MediaCtrl#create} before calling any other methods of {Wx::MediaCtrl}.
|
82
81
|
# @return [Wx::MediaCtrl]
|
83
|
-
# @overload initialize(parent, id, fileName=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, szBackend=(''), validator=Wx::DEFAULT_VALIDATOR, name=("
|
82
|
+
# @overload initialize(parent, id, fileName=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, szBackend=(''), validator=Wx::DEFAULT_VALIDATOR, name=("MEDIA_CTRL"))
|
84
83
|
# Constructor that calls {Wx::MediaCtrl#create}.
|
85
84
|
# You may prefer to call {Wx::MediaCtrl#create} directly to check to see if {Wx::MediaCtrl} is available on the system.
|
86
85
|
# @param parent [Wx::Window] parent of this control. Must not be NULL.
|
@@ -108,7 +107,7 @@ module Wx
|
|
108
107
|
# @param validator [Wx::Validator] validator to use.
|
109
108
|
# @param name [String] Window name.
|
110
109
|
# @return [Boolean]
|
111
|
-
def create(parent, id, fileName=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, szBackend=(''), validator=Wx::DEFAULT_VALIDATOR, name=("
|
110
|
+
def create(parent, id, fileName=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, szBackend=(''), validator=Wx::DEFAULT_VALIDATOR, name=("MEDIA_CTRL")) end
|
112
111
|
|
113
112
|
# Obtains the best size relative to the original/natural size of the video, if there is any.
|
114
113
|
# See Video size for more information.
|
@@ -137,13 +136,17 @@ module Wx
|
|
137
136
|
alias_method :state, :get_state
|
138
137
|
|
139
138
|
# Gets the volume of the media from a 0.0 to 1.0 range.
|
140
|
-
#
|
139
|
+
# <div class="wxrb-note">
|
140
|
+
# <b>Note:</b>
|
141
|
+
# <p>Due to rounding and other errors the value returned may not be the exact value sent to {Wx::MediaCtrl#set_volume}.
|
142
|
+
# </p>
|
143
|
+
# </div>
|
141
144
|
# @return [Float]
|
142
145
|
def get_volume; end
|
143
146
|
alias_method :volume, :get_volume
|
144
147
|
|
145
148
|
# Obtains the length - the total amount of time the media has in milliseconds.
|
146
|
-
# @return [
|
149
|
+
# @return [Integer]
|
147
150
|
def length; end
|
148
151
|
|
149
152
|
# @overload load(fileName)
|
@@ -154,13 +157,13 @@ module Wx
|
|
154
157
|
# @overload load(uri)
|
155
158
|
# Loads the location that uri refers to.
|
156
159
|
# Note that this is very implementation-dependent, although HTTP URI/URLs are generally supported, for example. Returns false if loading fails.
|
157
|
-
# @param uri [
|
160
|
+
# @param uri [URI]
|
158
161
|
# @return [Boolean]
|
159
162
|
# @overload load(uri, proxy)
|
160
163
|
# Loads the location that uri refers to with the proxy proxy.
|
161
164
|
# Not implemented on most backends so it should be called with caution. Returns false if loading fails.
|
162
|
-
# @param uri [
|
163
|
-
# @param proxy [
|
165
|
+
# @param uri [URI]
|
166
|
+
# @param proxy [URI]
|
164
167
|
# @return [Boolean]
|
165
168
|
def load(*args) end
|
166
169
|
|
@@ -187,9 +190,9 @@ module Wx
|
|
187
190
|
|
188
191
|
# Seeks to a position within the media.
|
189
192
|
# TodoDocument the {Wx::SeekMode} parameter mode, and perhaps also the {Wx::FileOffset} and {Wx::SeekMode} themselves.
|
190
|
-
# @param where [
|
193
|
+
# @param where [Integer]
|
191
194
|
# @param mode [Wx::SeekMode]
|
192
|
-
# @return [
|
195
|
+
# @return [Integer]
|
193
196
|
def seek(where, mode=Wx::SeekMode::FromStart) end
|
194
197
|
|
195
198
|
# Sets the playback rate, or speed of the media, to that referred by dRate.
|
@@ -201,7 +204,12 @@ module Wx
|
|
201
204
|
|
202
205
|
# Sets the volume of the media from a 0.0 to 1.0 range to that referred by dVolume.
|
203
206
|
# 1.0 represents full volume, while 0.5 represents half (50 percent) volume, for example.
|
204
|
-
#
|
207
|
+
#
|
208
|
+
# <div class="wxrb-note">
|
209
|
+
# <b>Note:</b>
|
210
|
+
# <p>The volume may not be exact due to conversion and rounding errors, although setting the volume to full or none is always exact. Returns true if successful.
|
211
|
+
# </p>
|
212
|
+
# </div>
|
205
213
|
# @param dVolume [Float]
|
206
214
|
# @return [Boolean]
|
207
215
|
def set_volume(dVolume) end
|
@@ -221,7 +229,7 @@ module Wx
|
|
221
229
|
def stop; end
|
222
230
|
|
223
231
|
# Obtains the current position in time within the media in milliseconds.
|
224
|
-
# @return [
|
232
|
+
# @return [Integer]
|
225
233
|
def tell; end
|
226
234
|
|
227
235
|
end # MediaCtrl
|
@@ -15,6 +15,7 @@ module Wx
|
|
15
15
|
# @see Wx::MediaCtrl#get_state
|
16
16
|
#
|
17
17
|
#
|
18
|
+
# @wxrb_require USE_MEDIACTRL
|
18
19
|
class MediaState < Wx::Enum
|
19
20
|
|
20
21
|
# No media is being currently played.
|
@@ -35,6 +36,7 @@ module Wx
|
|
35
36
|
#
|
36
37
|
#
|
37
38
|
#
|
39
|
+
# @wxrb_require USE_MEDIACTRL
|
38
40
|
class MediaCtrlPlayerControls < Wx::Enum
|
39
41
|
|
40
42
|
# No controls.
|
@@ -80,7 +82,7 @@ module Wx
|
|
80
82
|
EVT_MEDIA_PAUSE = 10327
|
81
83
|
|
82
84
|
# Event {Wx::MediaCtrl} uses.
|
83
|
-
#
|
85
|
+
# ### Events using this class
|
84
86
|
#
|
85
87
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::MediaEvent} events.
|
86
88
|
# Event handler methods:
|
@@ -97,14 +99,13 @@ module Wx
|
|
97
99
|
#
|
98
100
|
# - {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.
|
99
101
|
#
|
100
|
-
# ===
|
101
|
-
#
|
102
102
|
# Category: {Wx::Events}
|
103
103
|
#
|
104
|
+
# @wxrb_require USE_MEDIACTRL
|
104
105
|
class MediaEvent < NotifyEvent
|
105
106
|
|
106
107
|
# Default ctor.
|
107
|
-
# @param commandType [Wx::
|
108
|
+
# @param commandType [Wx::Slider::EventType]
|
108
109
|
# @param winid [Integer]
|
109
110
|
# @return [Wx::MediaEvent]
|
110
111
|
def initialize(commandType=Wx::EVT_NULL, winid=0) end
|
data/lib/wx/doc/gen/memory_dc.rb
CHANGED
@@ -55,8 +55,6 @@ module Wx
|
|
55
55
|
# end
|
56
56
|
# ```
|
57
57
|
#
|
58
|
-
# ===
|
59
|
-
#
|
60
58
|
# Category: Device Contexts
|
61
59
|
# @see Wx::Bitmap
|
62
60
|
# @see Wx::DC
|
@@ -76,7 +74,12 @@ module Wx
|
|
76
74
|
|
77
75
|
# Selects the given bitmap into the device context, to use as the memory bitmap.
|
78
76
|
# Selecting the bitmap as source into a memory DC allows you to copy its contents to another device context using {Wx::DC#blit}. Note that using {Wx::DC#draw_bitmap} or {Wx::DC#draw_icon} is a simpler way to do the same thing.
|
79
|
-
#
|
77
|
+
#
|
78
|
+
# <div class="wxrb-note">
|
79
|
+
# <b>Note:</b>
|
80
|
+
# <p>Modifying a bitmap selected only as a source may not work correctly and can notably modify the other bitmaps sharing the same data due to the use of reference counting (see Reference Counting).
|
81
|
+
# </p>
|
82
|
+
# </div>
|
80
83
|
#
|
81
84
|
# If the argument is {Wx::NULL_BITMAP} (or some other uninitialised {Wx::Bitmap}) the current bitmap is selected out of the device context, allowing the current bitmap to be destroyed safely.
|
82
85
|
# @param bitmap [Wx::Bitmap]
|
@@ -95,7 +98,6 @@ module Wx
|
|
95
98
|
# When used like this, a valid DC must be specified in the constructor while the buffer bitmap doesn't have to be explicitly provided, by default this class will allocate the bitmap of required size itself. However using a dedicated bitmap can speed up the redrawing process by eliminating the repeated creation and destruction of a possibly big bitmap. Otherwise, {Wx::BufferedDC} can be used in the same way as any other device context.
|
96
99
|
# Another possible use for {Wx::BufferedDC} is to use it to maintain a backing store for the window contents. In this case, the associated DC may be NULL but a valid backing store bitmap should be specified.
|
97
100
|
# Finally, please note that GTK+ 2.0 as well as macOS provide double buffering themselves natively. You can either use {Wx::Window#is_double_buffered} to determine whether you need to use buffering or not, or use {Wx::AutoBufferedPaintDC} to avoid needless double buffering on the systems which already do it automatically.
|
98
|
-
# ===
|
99
101
|
#
|
100
102
|
# Category: Device Contexts
|
101
103
|
# @see Wx::DC
|
@@ -142,7 +144,6 @@ module Wx
|
|
142
144
|
|
143
145
|
# This is a subclass of {Wx::BufferedDC} which can be used inside of an <code>EVT_PAINT()</code> event handler to achieve double-buffered drawing.
|
144
146
|
# Just use this class instead of {Wx::PaintDC} and make sure {Wx::Window#set_background_style} is called with {Wx::BackgroundStyle::BG_STYLE_PAINT} somewhere in the class initialization code, and that's all you have to do to (mostly) avoid flicker. The only thing to watch out for is that if you are using this class together with {Wx::Scrolled}, you probably do <b>not</b> want to call Wx::Scrolled#prepare_dc on it as it already does this internally for the real underlying {Wx::PaintDC}.
|
145
|
-
# ===
|
146
147
|
#
|
147
148
|
# Category: Device Contexts
|
148
149
|
# @see Wx::DC
|
@@ -159,7 +160,6 @@ module Wx
|
|
159
160
|
# Just use this class instead of {Wx::PaintDC} and make sure {Wx::Window#set_background_style} is called with {Wx::BackgroundStyle::BG_STYLE_PAINT} somewhere in the class initialization code, and that's all you have to do to (mostly) avoid flicker.
|
160
161
|
# The difference between {Wx::BufferedPaintDC} and this class is that this class won't double-buffer on platforms which have native double-buffering already, avoiding any unnecessary buffering to avoid flicker.
|
161
162
|
# {Wx::AutoBufferedPaintDC} is simply a typedef of {Wx::PaintDC} on platforms that have native double-buffering, otherwise, it is a typedef of {Wx::BufferedPaintDC}.
|
162
|
-
# ===
|
163
163
|
#
|
164
164
|
# Category: Device Contexts
|
165
165
|
# @see Wx::DC
|