wxruby3 0.9.1-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/controlwithitems.rb +8 -6
- 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/controlwithitems.rb +17 -7
- data/lib/wx/doc/data_object.rb +2 -2
- data/lib/wx/doc/evthandler.rb +113 -108
- data/lib/wx/doc/font.rb +1 -0
- 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 +4 -5
- data/lib/wx/doc/gen/animation.rb +7 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +6 -7
- 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 +19 -7
- 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 +1 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +6 -1
- 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 +1 -1
- data/lib/wx/doc/gen/bitmap.rb +33 -16
- data/lib/wx/doc/gen/bitmap_button.rb +11 -8
- data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -8
- 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 +23 -11
- data/lib/wx/doc/gen/calculate_layout_event.rb +1 -3
- data/lib/wx/doc/gen/calendar_ctrl.rb +16 -13
- 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 +7 -7
- data/lib/wx/doc/gen/check_list_box.rb +5 -6
- data/lib/wx/doc/gen/choice.rb +16 -9
- 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 +6 -7
- 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 +9 -10
- data/lib/wx/doc/gen/colour_picker_event.rb +4 -5
- data/lib/wx/doc/gen/combo_box.rb +16 -13
- data/lib/wx/doc/gen/combo_ctrl.rb +95 -32
- data/lib/wx/doc/gen/command_link_button.rb +4 -5
- data/lib/wx/doc/gen/context_help_button.rb +7 -3
- data/lib/wx/doc/gen/control.rb +10 -8
- 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 +15 -13
- data/lib/wx/doc/gen/date_event.rb +2 -2
- data/lib/wx/doc/gen/date_picker_ctrl.rb +12 -8
- data/lib/wx/doc/gen/dc.rb +155 -37
- data/lib/wx/doc/gen/defs.rb +51 -51
- data/lib/wx/doc/gen/dial_up_event.rb +1 -2
- data/lib/wx/doc/gen/dial_up_manager.rb +13 -5
- data/lib/wx/doc/gen/dialog.rb +33 -13
- 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 +9 -10
- 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 +2 -2
- data/lib/wx/doc/gen/event.rb +35 -19
- data/lib/wx/doc/gen/event_blocker.rb +1 -3
- data/lib/wx/doc/gen/event_list.rb +1656 -1652
- data/lib/wx/doc/gen/events.rb +162 -169
- 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 +19 -10
- data/lib/wx/doc/gen/file_ctrl_event.rb +3 -4
- data/lib/wx/doc/gen/file_dialog.rb +31 -14
- 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 +8 -9
- 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 +6 -7
- data/lib/wx/doc/gen/font_picker_event.rb +2 -3
- data/lib/wx/doc/gen/frame.rb +56 -15
- data/lib/wx/doc/gen/fs_file.rb +17 -10
- data/lib/wx/doc/gen/gauge.rb +11 -8
- 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 +6 -7
- data/lib/wx/doc/gen/graphics_context.rb +58 -11
- 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 +1 -1
- 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 +27 -5
- 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 +4 -11
- data/lib/wx/doc/gen/header_ctrl_event.rb +1 -3
- data/lib/wx/doc/gen/help_controller.rb +3 -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 +7 -2
- data/lib/wx/doc/gen/html/html_help_controller.rb +8 -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 +5 -7
- data/lib/wx/doc/gen/html/html_printout.rb +1 -2
- data/lib/wx/doc/gen/html/html_window.rb +12 -6
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +7 -7
- 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 +29 -17
- data/lib/wx/doc/gen/list_ctrl.rb +76 -29
- 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 +28 -7
- data/lib/wx/doc/gen/media_ctrl.rb +26 -18
- 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 +41 -19
- data/lib/wx/doc/gen/message_dialog.rb +7 -8
- data/lib/wx/doc/gen/mini_frame.rb +11 -5
- 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 +17 -9
- 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 +17 -8
- 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 +81 -20
- data/lib/wx/doc/gen/pg/property_grid_event.rb +31 -9
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +214 -36
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +40 -10
- 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 +13 -3
- 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 +1 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +3 -0
- 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 +9 -10
- data/lib/wx/doc/gen/radio_button.rb +13 -9
- 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 +1 -1
- 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 +1 -2
- data/lib/wx/doc/gen/rearrange_list.rb +3 -4
- 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 +10 -7
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +3 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +2 -4
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +2 -3
- 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 +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +5 -5
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +2 -3
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +1 -2
- data/lib/wx/doc/gen/sash_event.rb +9 -4
- data/lib/wx/doc/gen/sash_layout_window.rb +11 -4
- data/lib/wx/doc/gen/sash_window.rb +3 -4
- data/lib/wx/doc/gen/screen_dc.rb +0 -1
- data/lib/wx/doc/gen/scroll_bar.rb +19 -10
- data/lib/wx/doc/gen/scrolled_canvas.rb +32 -10
- data/lib/wx/doc/gen/scrolled_control.rb +32 -10
- data/lib/wx/doc/gen/scrolled_window.rb +32 -10
- data/lib/wx/doc/gen/search_ctrl.rb +8 -9
- 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 +27 -17
- data/lib/wx/doc/gen/spin_button.rb +15 -10
- 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 +76 -18
- data/lib/wx/doc/gen/static_bitmap.rb +10 -5
- data/lib/wx/doc/gen/static_box.rb +9 -7
- data/lib/wx/doc/gen/static_box_sizer.rb +0 -2
- data/lib/wx/doc/gen/static_line.rb +3 -4
- data/lib/wx/doc/gen/static_text.rb +5 -6
- data/lib/wx/doc/gen/status_bar.rb +19 -9
- data/lib/wx/doc/gen/stc/event_list.rb +212 -208
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +39 -13
- 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 +90 -25
- 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 +5 -6
- 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 +5 -6
- data/lib/wx/doc/gen/tool_bar.rb +98 -25
- 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 +69 -23
- data/lib/wx/doc/gen/tree_ctrl.rb +40 -16
- 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 +6 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +6 -4
- 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 +195 -45
- 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 -47
- data/lib/wx/doc/window_disabler.rb +10 -6
- data/lib/wx/grid/grid.rb +27 -4
- 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 +2 -2
- 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/treectrl/treectrl.rb +1 -1
- data/tests/media/beep_lo.wav +0 -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 +16 -0
- data/tests/test_std_controls.rb +42 -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 +28 -3
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,6 +31,7 @@ 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()
|
@@ -37,7 +42,13 @@ module Wx
|
|
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.
|
@@ -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,6 +191,7 @@ 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()
|
@@ -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,24 +57,23 @@ 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()
|
@@ -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
|
data/lib/wx/doc/gen/menu.rb
CHANGED
@@ -9,23 +9,27 @@ module Wx
|
|
9
9
|
# A menu is a popup (or pull down) list of items, one of which may be selected before the menu goes away (clicking elsewhere dismisses the menu).
|
10
10
|
# Menus may be used to construct either menu bars or popup menus.
|
11
11
|
# A menu item has an integer ID associated with it which can be used to identify the selection, or to change the menu item in some way. A menu item with a special identifier {Wx::StandardID::ID_SEPARATOR} is a separator item and doesn't have an associated command but just makes a separator line appear in the menu.
|
12
|
-
#
|
12
|
+
#
|
13
|
+
# <div class="wxrb-note">
|
14
|
+
# <b>Note:</b>
|
15
|
+
# <p>Please note that {Wx::StandardID::ID_ABOUT} and {Wx::StandardID::ID_EXIT} are predefined by wxWidgets and have a special meaning since entries using these IDs will be taken out of the normal menus under macOS and will be inserted into the system menu (following the appropriate macOS interface guideline).
|
16
|
+
# </p>
|
17
|
+
# </div>
|
13
18
|
#
|
14
19
|
# Menu items may be either normal items, check items or radio items. Normal items don't have any special properties while the check items have a boolean flag associated to them and they show a checkmark in the menu when the flag is set. wxWidgets automatically toggles the flag value when the item is clicked and its value may be retrieved using either {Wx::Menu#is_checked} method of {Wx::Menu} or {Wx::MenuBar} itself or by using {Wx::Event::IsChecked} when you get the menu notification for the item in question.
|
15
20
|
# The radio items are similar to the check items except that all the other items in the same radio group are unchecked when a radio item is checked. The radio group is formed by a contiguous range of radio items, i.e. it starts at the first item of this kind and ends with the first item of a different kind (or the end of the menu). Notice that because the radio groups are defined in terms of the item positions inserting or removing the items in the menu containing the radio items risks to not work correctly.
|
16
21
|
#
|
17
|
-
#
|
22
|
+
# ## Allocation strategy
|
18
23
|
#
|
19
24
|
# All menus must be created on the <b>heap</b> because all menus attached to a menubar or to another menu will be deleted by their parent when it is deleted. The only exception to this rule are the popup menus (i.e. menus used with {Wx::Window#popup_menu}) as wxWidgets does not destroy them to allow reusing the same menu more than once. But the exception applies only to the menus themselves and not to any submenus of popup menus which are still destroyed by wxWidgets as usual and so must be heap-allocated.
|
20
25
|
# As the frame menubar is deleted by the frame itself, it means that normally all menus used are deleted automatically.
|
21
26
|
#
|
22
|
-
#
|
27
|
+
# ## Event handling
|
23
28
|
#
|
24
29
|
# Event handlers for the commands generated by the menu items can be connected directly to the menu object itself using {Wx::EvtHandler#bind}. If this menu is a submenu of another one, the events from its items can also be processed in the parent menu and so on, recursively.
|
25
30
|
# If the menu is part of a menu bar, then events can also be handled in {Wx::MenuBar} object.
|
26
31
|
# Finally, menu events can also be handled in the associated window, which is either the {Wx::Frame} associated with the menu bar this menu belongs to or the window for which {Wx::Window#popup_menu} was called for the popup menus.
|
27
32
|
# See Dynamic Event Handling for how to bind event handlers to the various objects.
|
28
|
-
# ===
|
29
33
|
#
|
30
34
|
# Category: {Wx::Menus}
|
31
35
|
# @see Wx::MenuBar
|
@@ -34,6 +38,7 @@ module Wx
|
|
34
38
|
# @see wxFileHistory (most recently used files menu)
|
35
39
|
#
|
36
40
|
#
|
41
|
+
# @wxrb_require USE_MENUS
|
37
42
|
class Menu < EvtHandler
|
38
43
|
|
39
44
|
# Returns the list of items in the menu.
|
@@ -48,7 +53,7 @@ module Wx
|
|
48
53
|
# @overload initialize(title, style=0)
|
49
54
|
# Constructs a {Wx::Menu} object with a title.
|
50
55
|
# @param title [String] Title at the top of the menu (not always supported).
|
51
|
-
# @param style [Integer] If set to {Wx::MENU_TEAROFF}, the menu will be detachable (
|
56
|
+
# @param style [Integer] If set to {Wx::MENU_TEAROFF}, the menu will be detachable (WXGTK and {Wx::QT} only).
|
52
57
|
# @return [Wx::Menu]
|
53
58
|
def initialize(*args) end
|
54
59
|
|
@@ -63,7 +68,11 @@ module Wx
|
|
63
68
|
# file_menu.append(Wx::ID_NEW, "", "Creates a new XYZ document")
|
64
69
|
# ```
|
65
70
|
#
|
66
|
-
#
|
71
|
+
# <div class="wxrb-remark">
|
72
|
+
# <b>Remark:</b>
|
73
|
+
# <p>This command can be used after the menu has been shown, as well as on initial creation of a menu or menubar.
|
74
|
+
# </p>
|
75
|
+
# </div>>
|
67
76
|
# @see Wx::Menu#append_separator
|
68
77
|
# @see Wx::Menu#append_check_item
|
69
78
|
# @see Wx::Menu#append_radio_item
|
@@ -82,7 +91,11 @@ module Wx
|
|
82
91
|
# Adds a menu item object.
|
83
92
|
# This is the most generic variant of {Wx::Menu#append} method because it may be used for both items (including separators) and submenus and because you can also specify various extra properties of a menu item this way, such as bitmaps and fonts.
|
84
93
|
#
|
85
|
-
#
|
94
|
+
# <div class="wxrb-remark">
|
95
|
+
# <b>Remark:</b>
|
96
|
+
# <p>See the remarks for the other {Wx::Menu#append} overloads.
|
97
|
+
# </p>
|
98
|
+
# </div>>
|
86
99
|
# @see Wx::Menu#append_separator
|
87
100
|
# @see Wx::Menu#append_check_item
|
88
101
|
# @see Wx::Menu#append_radio_item
|
@@ -108,7 +121,12 @@ module Wx
|
|
108
121
|
|
109
122
|
# Adds a radio item to the end of the menu.
|
110
123
|
# All consequent radio items form a group and when an item in the group is checked, all the others are automatically unchecked.
|
111
|
-
#
|
124
|
+
#
|
125
|
+
# <div class="wxrb-note">
|
126
|
+
# <b>Note:</b>
|
127
|
+
# <p>Radio items are not supported under {Wx::Motif}.
|
128
|
+
# </p>
|
129
|
+
# </div>
|
112
130
|
# @see Wx::Menu#append
|
113
131
|
# @see Wx::Menu#insert_radio_item
|
114
132
|
# @param id [Integer]
|
@@ -135,7 +153,7 @@ module Wx
|
|
135
153
|
def append_sub_menu(submenu, text, help=('')) end
|
136
154
|
|
137
155
|
# Inserts a break in a menu, causing the next appended item to appear in a new column.
|
138
|
-
# This function only actually inserts a break in
|
156
|
+
# This function only actually inserts a break in WXMSW and does nothing under the other platforms.
|
139
157
|
# @return [void]
|
140
158
|
def break_; end
|
141
159
|
|
@@ -203,7 +221,11 @@ module Wx
|
|
203
221
|
# Finds the menu id for a menu item string.
|
204
222
|
# Menu item identifier, or {Wx::NOT_FOUND} if none is found.
|
205
223
|
#
|
206
|
-
#
|
224
|
+
# <div class="wxrb-remark">
|
225
|
+
# <b>Remark:</b>
|
226
|
+
# <p>Any special menu codes are stripped out of source and target strings before matching.
|
227
|
+
# </p>
|
228
|
+
# </div>>
|
207
229
|
# @param itemString [String] Menu item string to find.
|
208
230
|
# @return [Integer]
|
209
231
|
# @overload find_item(id, menu=nil)
|
@@ -336,18 +358,6 @@ module Wx
|
|
336
358
|
def is_enabled(id) end
|
337
359
|
alias_method :enabled?, :is_enabled
|
338
360
|
|
339
|
-
# Allows handling native MSW menu command messages.
|
340
|
-
# This is a low-level function which allows handling MSW WM_COMMAND messages generated when menu items are selected. It is particularly useful for the popup menus, as specific handling can then be defined in a {Wx::Menu}-derived class directly, instead of in the {Wx::Window}-derived owner class.
|
341
|
-
# The base class version of this function generates {Wx::EVT_MENU} command events.
|
342
|
-
#
|
343
|
-
# true if the command was handled, false otherwise.
|
344
|
-
#
|
345
|
-
# Availability: only available for the wxMSW port. {Wx::msw}
|
346
|
-
# @param param [WXUINT] The MSW command parameter.
|
347
|
-
# @param id [WXWORD] The id of the command.
|
348
|
-
# @return [Boolean]
|
349
|
-
def msw_command(param, id) end
|
350
|
-
|
351
361
|
# @overload prepend(item)
|
352
362
|
# Inserts the given item at position 0, i.e. before all the other existing items.
|
353
363
|
#
|
@@ -438,7 +448,11 @@ module Wx
|
|
438
448
|
def set_label(id, label) end
|
439
449
|
|
440
450
|
# Sets the title of the menu.
|
441
|
-
#
|
451
|
+
# <div class="wxrb-remark">
|
452
|
+
# <b>Remark:</b>
|
453
|
+
# <p>Notice that you can only call this method directly for the popup menus, to change the title of a menu that is part of a menu bar you need to use {Wx::MenuBar#set_label_top}.
|
454
|
+
# </p>
|
455
|
+
# </div>>
|
442
456
|
# @see Wx::Menu#get_title
|
443
457
|
# @param title [String] The title to set.
|
444
458
|
# @return [void]
|
data/lib/wx/doc/gen/menu_bar.rb
CHANGED
@@ -7,21 +7,25 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# A menu bar is a series of menus accessible from the top of a frame.
|
10
|
-
#
|
10
|
+
# <div class="wxrb-remark">
|
11
|
+
# <b>Remark:</b>
|
12
|
+
# <p>To respond to a menu selection, provide a handler for EVT_MENU, in the frame that contains the menu bar.
|
13
|
+
# </p>
|
14
|
+
# </div>>
|
11
15
|
#
|
12
16
|
# If you have a toolbar which uses the same identifiers as your EVT_MENU entries, events from the toolbar will also be processed by your EVT_MENU event handlers.
|
13
17
|
# Tip: under Windows, if you discover that menu shortcuts (for example, Alt-F to show the file menu) are not working, check any EVT_CHAR events you are handling in child windows. If you are not calling event.Skip() for events that you don't process in these event handlers, menu shortcuts may cease to work.
|
14
|
-
# ===
|
15
18
|
#
|
16
19
|
# Category: {Wx::Menus}
|
17
20
|
# @see Wx::Menu
|
18
21
|
# @see Events and Event Handling
|
19
22
|
#
|
20
23
|
#
|
24
|
+
# @wxrb_require USE_MENUBAR
|
21
25
|
class MenuBar < Window
|
22
26
|
|
23
27
|
# Construct an empty menu bar.
|
24
|
-
# @param style [Integer] If {Wx::MB_DOCKABLE} the menu bar can be detached (
|
28
|
+
# @param style [Integer] If {Wx::MB_DOCKABLE} the menu bar can be detached (WXGTK only).
|
25
29
|
# @return [Wx::MenuBar]
|
26
30
|
def initialize(style=0) end
|
27
31
|
|
@@ -34,14 +38,22 @@ module Wx
|
|
34
38
|
def append(menu, title) end
|
35
39
|
|
36
40
|
# Checks or unchecks a menu item.
|
37
|
-
#
|
41
|
+
# <div class="wxrb-remark">
|
42
|
+
# <b>Remark:</b>
|
43
|
+
# <p>Only use this when the menu bar has been associated with a frame; otherwise, use the {Wx::Menu} equivalent call.
|
44
|
+
# </p>
|
45
|
+
# </div>>
|
38
46
|
# @param id [Integer] The menu item identifier.
|
39
47
|
# @param check [Boolean] If true, checks the menu item, otherwise the item is unchecked.
|
40
48
|
# @return [void]
|
41
49
|
def check(id, check) end
|
42
50
|
|
43
51
|
# Enables or disables (greys out) a menu item.
|
44
|
-
#
|
52
|
+
# <div class="wxrb-remark">
|
53
|
+
# <b>Remark:</b>
|
54
|
+
# <p>Only use this when the menu bar has been associated with a frame; otherwise, use the {Wx::Menu} equivalent call.
|
55
|
+
# </p>
|
56
|
+
# </div>>
|
45
57
|
# @param id [Integer] The menu item identifier.
|
46
58
|
# @param enable [Boolean] true to enable the item, false to disable it.
|
47
59
|
# @return [void]
|
@@ -54,7 +66,11 @@ module Wx
|
|
54
66
|
alias_method :enabled_top?, :is_enabled_top
|
55
67
|
|
56
68
|
# Enables or disables a whole menu.
|
57
|
-
#
|
69
|
+
# <div class="wxrb-remark">
|
70
|
+
# <b>Remark:</b>
|
71
|
+
# <p>Only use this when the menu bar has been associated with a frame.
|
72
|
+
# </p>
|
73
|
+
# </div>>
|
58
74
|
# @param pos [Integer] The position of the menu, starting from zero.
|
59
75
|
# @param enable [Boolean] true to enable the menu, false to disable it.
|
60
76
|
# @return [void]
|
@@ -76,7 +92,11 @@ module Wx
|
|
76
92
|
# Finds the menu item id for a menu name/menu item string pair.
|
77
93
|
# The menu item identifier, or {Wx::NOT_FOUND} if none was found.
|
78
94
|
#
|
79
|
-
#
|
95
|
+
# <div class="wxrb-remark">
|
96
|
+
# <b>Remark:</b>
|
97
|
+
# <p>Any special menu codes are stripped out of source and target strings before matching.
|
98
|
+
# </p>
|
99
|
+
# </div>>
|
80
100
|
# @param menuString [String] Menu title to find.
|
81
101
|
# @param itemString [String] Item to find.
|
82
102
|
# @return [Integer]
|
@@ -93,7 +113,11 @@ module Wx
|
|
93
113
|
# Gets the label associated with a menu item.
|
94
114
|
# The menu item label, or the empty string if the item was not found.
|
95
115
|
#
|
96
|
-
#
|
116
|
+
# <div class="wxrb-remark">
|
117
|
+
# <b>Remark:</b>
|
118
|
+
# <p>Use only after the menubar has been associated with a frame.
|
119
|
+
# </p>
|
120
|
+
# </div>>
|
97
121
|
# @param id [Integer] The menu item identifier.
|
98
122
|
# @return [String]
|
99
123
|
def get_label(id) end
|
@@ -115,7 +139,11 @@ module Wx
|
|
115
139
|
#
|
116
140
|
# The menu label, or the empty string if the menu was not found.
|
117
141
|
#
|
118
|
-
#
|
142
|
+
# <div class="wxrb-remark">
|
143
|
+
# <b>Remark:</b>
|
144
|
+
# <p>Use only after the menubar has been associated with a frame.
|
145
|
+
# </p>
|
146
|
+
# </div>>
|
119
147
|
# @see Wx::MenuBar#get_menu_label_text
|
120
148
|
# @see Wx::MenuBar#set_menu_label
|
121
149
|
# @param pos [Integer] Position of the menu on the menu bar, starting from zero.
|
@@ -128,7 +156,11 @@ module Wx
|
|
128
156
|
#
|
129
157
|
# The menu label, or the empty string if the menu was not found.
|
130
158
|
#
|
131
|
-
#
|
159
|
+
# <div class="wxrb-remark">
|
160
|
+
# <b>Remark:</b>
|
161
|
+
# <p>Use only after the menubar has been associated with a frame.
|
162
|
+
# </p>
|
163
|
+
# </div>>
|
132
164
|
# @see Wx::MenuBar#get_menu_label
|
133
165
|
# @see Wx::MenuBar#set_menu_label
|
134
166
|
# @param pos [Integer] Position of the menu on the menu bar, starting from zero.
|
@@ -187,7 +219,11 @@ module Wx
|
|
187
219
|
def set_help_string(id, helpString) end
|
188
220
|
|
189
221
|
# Sets the label of a menu item.
|
190
|
-
#
|
222
|
+
# <div class="wxrb-remark">
|
223
|
+
# <b>Remark:</b>
|
224
|
+
# <p>Use only after the menubar has been associated with a frame.
|
225
|
+
# </p>
|
226
|
+
# </div>>
|
191
227
|
# @see Wx::MenuBar#get_label
|
192
228
|
# @param id [Integer] Menu item identifier.
|
193
229
|
# @param label [String] Menu item label.
|
@@ -195,7 +231,11 @@ module Wx
|
|
195
231
|
def set_label(id, label) end
|
196
232
|
|
197
233
|
# Sets the label of a top-level menu.
|
198
|
-
#
|
234
|
+
# <div class="wxrb-remark">
|
235
|
+
# <b>Remark:</b>
|
236
|
+
# <p>Use only after the menubar has been associated with a frame.
|
237
|
+
# </p>
|
238
|
+
# </div>>
|
199
239
|
# @param pos [Integer] The position of a menu on the menu bar, starting from zero.
|
200
240
|
# @param label [String] The menu label.
|
201
241
|
# @return [void]
|