wxruby3 0.9.0.pre.rc.1-x64-mingw-ucrt → 0.9.0.pre.rc.3-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +73 -22
- data/README.md +40 -8
- data/assets/hello_button-macos.png +0 -0
- data/assets/hello_button-msw.png +0 -0
- data/assets/hello_button_clicked-macos.png +0 -0
- data/assets/hello_button_clicked-msw.png +0 -0
- data/assets/hello_button_clicked_combi.png +0 -0
- data/assets/hello_world-macos.png +0 -0
- data/assets/hello_world-msw.png +0 -0
- data/assets/hello_world_combi.png +0 -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/core/brush.rb +6 -0
- data/lib/wx/core/event_loop.rb +7 -0
- data/lib/wx/core/events/evt_list.rb +7 -0
- data/lib/wx/core/evthandler.rb +12 -2
- data/lib/wx/core/font.rb +22 -14
- data/lib/wx/core/helpprovider.rb +2 -2
- data/lib/wx/core/image.rb +33 -0
- data/lib/wx/core/listctrl.rb +17 -13
- data/lib/wx/core/log.rb +90 -0
- data/lib/wx/core/menu.rb +5 -0
- data/lib/wx/core/pen.rb +6 -0
- data/lib/wx/core/window.rb +28 -1
- data/lib/wx/doc/app.rb +40 -0
- data/lib/wx/doc/bitmap.rb +11 -15
- data/lib/wx/doc/brush.rb +17 -0
- data/lib/wx/doc/event_loop.rb +7 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/09_exceptions.md +1 -1
- data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
- data/lib/wx/doc/font.rb +27 -0
- data/lib/wx/doc/functions.rb +51 -23
- data/lib/wx/doc/gc_dc.rb +1 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
- data/lib/wx/doc/gen/accelerator.rb +6 -6
- data/lib/wx/doc/gen/accessible.rb +6 -2
- data/lib/wx/doc/gen/activity_indicator.rb +65 -0
- data/lib/wx/doc/gen/animation.rb +7 -7
- data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
- data/lib/wx/doc/gen/any_button.rb +1 -1
- data/lib/wx/doc/gen/app.rb +17 -11
- data/lib/wx/doc/gen/art_provider.rb +61 -1
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
- data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +35 -20
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
- data/lib/wx/doc/gen/bitmap.rb +32 -26
- data/lib/wx/doc/gen/bitmap_button.rb +10 -6
- data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
- data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +16 -4
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +19 -7
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
- data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
- data/lib/wx/doc/gen/calendar_event.rb +3 -3
- data/lib/wx/doc/gen/caret.rb +2 -2
- data/lib/wx/doc/gen/check_box.rb +10 -6
- data/lib/wx/doc/gen/check_list_box.rb +8 -7
- data/lib/wx/doc/gen/choice.rb +7 -6
- data/lib/wx/doc/gen/choicebook.rb +12 -6
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +1 -1
- data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
- data/lib/wx/doc/gen/colour.rb +16 -6
- data/lib/wx/doc/gen/colour_dialog.rb +6 -6
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +22 -13
- data/lib/wx/doc/gen/context_help_button.rb +50 -1
- data/lib/wx/doc/gen/control.rb +9 -6
- data/lib/wx/doc/gen/core.rb +5 -2
- data/lib/wx/doc/gen/cursor.rb +16 -11
- data/lib/wx/doc/gen/data_format.rb +2 -2
- data/lib/wx/doc/gen/data_object.rb +23 -16
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
- data/lib/wx/doc/gen/dc.rb +37 -12
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +19 -5
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
- data/lib/wx/doc/gen/drag_drop.rb +15 -15
- data/lib/wx/doc/gen/drag_image.rb +6 -6
- data/lib/wx/doc/gen/editable_list_box.rb +7 -3
- data/lib/wx/doc/gen/event.rb +44 -13
- data/lib/wx/doc/gen/event_blocker.rb +19 -17
- data/lib/wx/doc/gen/event_filter.rb +43 -47
- data/lib/wx/doc/gen/event_list.rb +22 -15
- data/lib/wx/doc/gen/events.rb +215 -79
- data/lib/wx/doc/gen/evt_handler.rb +1 -1
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_dialog.rb +64 -56
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
- data/lib/wx/doc/gen/font.rb +39 -29
- data/lib/wx/doc/gen/font_data.rb +9 -5
- data/lib/wx/doc/gen/font_dialog.rb +3 -3
- data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +34 -11
- data/lib/wx/doc/gen/fs_file.rb +4 -17
- data/lib/wx/doc/gen/gauge.rb +11 -7
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +35 -33
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
- data/lib/wx/doc/gen/graphics_context.rb +29 -28
- data/lib/wx/doc/gen/graphics_object.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
- data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
- data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/help_controller.rb +18 -12
- data/lib/wx/doc/gen/html/html_cell.rb +36 -18
- data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
- data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
- data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
- data/lib/wx/doc/gen/html/html_printout.rb +15 -5
- data/lib/wx/doc/gen/html/html_window.rb +19 -8
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +152 -0
- data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
- data/lib/wx/doc/gen/icon.rb +14 -14
- data/lib/wx/doc/gen/image.rb +119 -64
- data/lib/wx/doc/gen/image_list.rb +10 -6
- data/lib/wx/doc/gen/keyboard_state.rb +7 -7
- data/lib/wx/doc/gen/list_box.rb +30 -21
- data/lib/wx/doc/gen/list_ctrl.rb +169 -78
- data/lib/wx/doc/gen/list_event.rb +24 -2
- data/lib/wx/doc/gen/listbook.rb +12 -6
- data/lib/wx/doc/gen/locale.rb +11 -36
- data/lib/wx/doc/gen/log.rb +122 -45
- data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
- data/lib/wx/doc/gen/mdi_frame.rb +15 -9
- data/lib/wx/doc/gen/media_ctrl.rb +7 -4
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +23 -27
- data/lib/wx/doc/gen/menu.rb +9 -9
- data/lib/wx/doc/gen/menu_bar.rb +4 -10
- data/lib/wx/doc/gen/menu_item.rb +115 -34
- data/lib/wx/doc/gen/message_dialog.rb +48 -30
- data/lib/wx/doc/gen/mini_frame.rb +12 -3
- data/lib/wx/doc/gen/mouse_state.rb +1 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +6 -7
- data/lib/wx/doc/gen/notebook.rb +20 -15
- data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/object.rb +2 -2
- data/lib/wx/doc/gen/palette.rb +3 -3
- data/lib/wx/doc/gen/panel.rb +4 -3
- data/lib/wx/doc/gen/pen.rb +25 -12
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
- data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
- data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
- data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
- data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
- data/lib/wx/doc/gen/picker_base.rb +12 -11
- data/lib/wx/doc/gen/platform_info.rb +7 -7
- data/lib/wx/doc/gen/popup_window.rb +6 -6
- data/lib/wx/doc/gen/progress_dialog.rb +1 -1
- data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +24 -18
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +22 -22
- data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
- data/lib/wx/doc/gen/radio_box.rb +12 -18
- data/lib/wx/doc/gen/radio_button.rb +8 -6
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
- data/lib/wx/doc/gen/region.rb +9 -8
- data/lib/wx/doc/gen/region_iterator.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +3 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
- data/lib/wx/doc/gen/sash_window.rb +8 -3
- data/lib/wx/doc/gen/scroll_bar.rb +29 -8
- data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
- data/lib/wx/doc/gen/scrolled_control.rb +41 -23
- data/lib/wx/doc/gen/scrolled_window.rb +41 -23
- data/lib/wx/doc/gen/search_ctrl.rb +15 -8
- data/lib/wx/doc/gen/simplebook.rb +2 -2
- data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/sizer.rb +29 -28
- data/lib/wx/doc/gen/slider.rb +49 -16
- data/lib/wx/doc/gen/spin_button.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +20 -4
- data/lib/wx/doc/gen/static_bitmap.rb +5 -5
- data/lib/wx/doc/gen/static_box.rb +36 -32
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +5 -4
- data/lib/wx/doc/gen/static_text.rb +12 -6
- data/lib/wx/doc/gen/status_bar.rb +14 -5
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
- data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
- data/lib/wx/doc/gen/system_options.rb +11 -1
- data/lib/wx/doc/gen/system_settings.rb +3 -3
- data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +11 -7
- data/lib/wx/doc/gen/text_ctrl.rb +61 -92
- data/lib/wx/doc/gen/text_entry.rb +28 -40
- data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
- data/lib/wx/doc/gen/text_validator.rb +0 -11
- data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
- data/lib/wx/doc/gen/timer.rb +8 -4
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +6 -5
- data/lib/wx/doc/gen/tool_bar.rb +41 -24
- data/lib/wx/doc/gen/tool_tip.rb +2 -2
- data/lib/wx/doc/gen/toolbook.rb +6 -3
- data/lib/wx/doc/gen/top_level_window.rb +35 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
- data/lib/wx/doc/gen/tree_event.rb +23 -2
- data/lib/wx/doc/gen/treebook.rb +6 -2
- data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
- data/lib/wx/doc/gen/utils.rb +9 -3
- data/lib/wx/doc/gen/v_list_box.rb +2 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/validator.rb +7 -5
- data/lib/wx/doc/gen/variant.rb +34 -97
- data/lib/wx/doc/gen/window.rb +157 -102
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +1 -1
- data/lib/wx/doc/gen/wizard.rb +17 -4
- data/lib/wx/doc/gen/wizard_event.rb +9 -2
- data/lib/wx/doc/gen/wizard_page.rb +1 -1
- data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
- data/lib/wx/doc/gen/xml_node.rb +3 -3
- data/lib/wx/doc/gen/xml_resource.rb +12 -9
- data/lib/wx/doc/image.rb +42 -12
- data/lib/wx/doc/list_ctrl.rb +32 -0
- data/lib/wx/doc/log.rb +28 -0
- data/lib/wx/doc/pen.rb +17 -0
- data/lib/wx/doc/prt/printer_dc.rb +2 -2
- data/lib/wx/doc/radio_box.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +1 -1
- data/lib/wx/doc/text_validator.rb +12 -0
- data/lib/wx/doc/window.rb +27 -0
- data/lib/wx/keyword_defs.rb +77 -76
- data/lib/wx/prt/keyword_defs.rb +5 -1
- 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/install.rb +17 -6
- data/rakelib/lib/config/linux.rb +4 -2
- data/rakelib/lib/config/macosx.rb +120 -1
- data/rakelib/lib/config/mingw.rb +6 -1
- data/rakelib/lib/config/unixish.rb +26 -11
- data/rakelib/lib/config.rb +15 -6
- data/samples/aui/aui.rb +432 -363
- data/samples/propgrid/propgrid.rb +3 -0
- data/samples/sampler/editor.rb +33 -25
- data/samples/sampler/sample.rb +2 -2
- data/samples/sampler/stc_editor.rb +4 -2
- data/tests/lib/item_container_tests.rb +82 -0
- data/tests/lib/text_entry_tests.rb +80 -0
- data/tests/lib/wxapp_runner.rb +12 -0
- data/tests/lib/wxframe_runner.rb +89 -4
- data/tests/test_art.rb +9 -0
- data/tests/test_box_sizer.rb +161 -0
- data/tests/test_ext_controls.rb +28 -0
- data/tests/test_font.rb +239 -0
- data/tests/test_grid_sizer.rb +148 -0
- data/tests/test_intl.rb +5 -1
- data/tests/test_list_ctrl.rb +53 -0
- data/tests/test_log.rb +163 -0
- data/tests/test_std_controls.rb +321 -37
- data/tests/test_timer.rb +95 -0
- data/tests/test_window.rb +340 -0
- metadata +36 -2
data/lib/wx/doc/gen/dc.rb
CHANGED
@@ -10,8 +10,13 @@ module Wx
|
|
10
10
|
#
|
11
11
|
# {Wx::DC#blit} and {Wx::DC#stretch_blit}).
|
12
12
|
# The description of the values below refer to how a generic src source pixel and the corresponding dst destination pixel gets combined together to produce the final pixel. E.g. {Wx::RasterOperationMode::CLEAR} and {Wx::RasterOperationMode::SET} completely ignore the source and the destination pixel and always put zeroes or ones in the final surface.
|
13
|
-
# Note that not all modes are supported under all platforms. Notably
|
14
|
-
#
|
13
|
+
# Note that not all modes are supported under all platforms. Notably wxGTK3 and {Wx::Mac} only support the following modes:
|
14
|
+
#
|
15
|
+
# - {Wx::RasterOperationMode::COPY}
|
16
|
+
# - {Wx::RasterOperationMode::OR}
|
17
|
+
# - {Wx::RasterOperationMode::NO_OP}
|
18
|
+
# - {Wx::RasterOperationMode::CLEAR}
|
19
|
+
# - {Wx::RasterOperationMode::XOR} and only support the commonly used {Wx::RasterOperationMode::INVERT} when the source colour is white (as it is implemented using {Wx::CompositionMode::COMPOSITION_DIFF} composition mode).
|
15
20
|
#
|
16
21
|
class RasterOperationMode < Wx::Enum
|
17
22
|
|
@@ -599,14 +604,15 @@ module Wx
|
|
599
604
|
|
600
605
|
# @overload flood_fill(x, y, colour, style=Wx::FloodFillStyle::FLOOD_SURFACE)
|
601
606
|
# Flood fills the device context starting from the given point, using the current brush colour, and using a style:
|
602
|
-
# - {Wx::FloodFillStyle::FLOOD_SURFACE}: The flooding occurs until a colour other than the given colour is encountered
|
607
|
+
# - {Wx::FloodFillStyle::FLOOD_SURFACE}: The flooding occurs until a colour other than the given colour is encountered.
|
608
|
+
# - {Wx::FloodFillStyle::FLOOD_BORDER}: The area to be flooded is bounded by the given colour.
|
603
609
|
#
|
604
|
-
# Currently this method is not implemented in
|
610
|
+
# Currently this method is not implemented in wxOSX and does nothing there.
|
605
611
|
# false if the operation failed.
|
606
612
|
#
|
607
613
|
# The present implementation for non-Windows platforms may fail to find colour borders if the pixels do not match the colour exactly. However the function will still return true.
|
608
614
|
#
|
609
|
-
# This method shouldn't be used with {Wx::PaintDC} under non-Windows platforms as it uses {Wx::DC#get_pixel} internally and this may give wrong results, notably in
|
615
|
+
# This method shouldn't be used with {Wx::PaintDC} under non-Windows platforms as it uses {Wx::DC#get_pixel} internally and this may give wrong results, notably in wxGTK. If you need to flood fill {Wx::PaintDC}, create a temporary {Wx::MemoryDC}, flood fill it and then blit it to, or draw as a bitmap on, {Wx::PaintDC}. See the example of doing this in the drawing sample and {Wx::BufferedPaintDC} class.
|
610
616
|
# @param x [Integer]
|
611
617
|
# @param y [Integer]
|
612
618
|
# @param colour [Wx::Colour,String,Symbol]
|
@@ -658,7 +664,10 @@ module Wx
|
|
658
664
|
# Sets the clipping region for this device context to the intersection of the given region described by the parameters of this method and the previously set clipping region.
|
659
665
|
# The clipping region is an area to which drawing is restricted. Possible uses for the clipping region are for clipping text or for speeding up window redraws when only a known area of the screen is damaged.
|
660
666
|
#
|
661
|
-
# - Clipping region should be given in logical coordinates
|
667
|
+
# - Clipping region should be given in logical coordinates.
|
668
|
+
# - Calling this function can only make the clipping region smaller, never larger.
|
669
|
+
# - You need to call {Wx::DC#destroy_clipping_region} first if you want to set the clipping region exactly to the region specified.
|
670
|
+
# - If resulting clipping region is empty, then all drawing on the DC is clipped out (all changes made by drawing operations are masked out).
|
662
671
|
# @see Wx::DC#destroy_clipping_region
|
663
672
|
# @see Wx::Region
|
664
673
|
# @param x [Integer]
|
@@ -697,7 +706,7 @@ module Wx
|
|
697
706
|
|
698
707
|
# Returns the various font characteristics.
|
699
708
|
# This method allows retrieving some of the font characteristics not returned by {Wx::DC#get_text_extent}, notably internal leading and average character width.
|
700
|
-
# Currently this method returns correct results only under
|
709
|
+
# Currently this method returns correct results only under wxMSW, in the other ports the internal leading will always be 0 and the average character width will be computed as the width of the character 'x'.
|
701
710
|
# @return [Wx::FontMetrics]
|
702
711
|
def get_font_metrics; end
|
703
712
|
alias_method :font_metrics, :get_font_metrics
|
@@ -797,7 +806,7 @@ module Wx
|
|
797
806
|
alias_method :background_mode=, :set_background_mode
|
798
807
|
|
799
808
|
# Sets the current font for the DC.
|
800
|
-
# The font parameter should be valid, although in
|
809
|
+
# The font parameter should be valid, although in wxMSW port (only) the argument {Wx::NULL_FONT} is also accepted and resets the device context font to the default value used by the system (which is not generally useful).
|
801
810
|
# @see Wx::Font
|
802
811
|
# @param font [Wx::Font,Wx::FontInfo]
|
803
812
|
# @return [void]
|
@@ -892,16 +901,22 @@ module Wx
|
|
892
901
|
# @param ysrc [Integer] Source device context y position.
|
893
902
|
# @param logicalFunc [RasterOperationMode] Logical function to use, see {Wx::DC#set_logical_function}.
|
894
903
|
# @param useMask [true,false] If true, Blit does a transparent blit using the mask that is associated with the bitmap selected into the source device context. The Windows implementation does the following if MaskBlt cannot be used:
|
904
|
+
#
|
895
905
|
# -
|
896
906
|
# Creates a temporary bitmap and copies the destination area into it.
|
907
|
+
#
|
897
908
|
# -
|
898
909
|
# Copies the source area into the temporary bitmap using the specified logical function.
|
910
|
+
#
|
899
911
|
# -
|
900
912
|
# Sets the masked area in the temporary bitmap to BLACK by ANDing the mask bitmap with the temp bitmap with the foreground colour set to WHITE and the bg colour set to BLACK.
|
913
|
+
#
|
901
914
|
# -
|
902
915
|
# Sets the unmasked area in the destination area to BLACK by ANDing the mask bitmap with the destination area with the foreground colour set to BLACK and the background colour set to WHITE.
|
916
|
+
#
|
903
917
|
# -
|
904
918
|
# ORs the temporary bitmap with the destination area.
|
919
|
+
#
|
905
920
|
# -
|
906
921
|
# Deletes the temporary bitmap.
|
907
922
|
#
|
@@ -934,16 +949,22 @@ module Wx
|
|
934
949
|
# @param srcHeight [Integer] Height of source area to be copied.
|
935
950
|
# @param logicalFunc [RasterOperationMode] Logical function to use, see {Wx::DC#set_logical_function}.
|
936
951
|
# @param useMask [true,false] If true, Blit does a transparent blit using the mask that is associated with the bitmap selected into the source device context. The Windows implementation does the following if MaskBlt cannot be used:
|
952
|
+
#
|
937
953
|
# -
|
938
954
|
# Creates a temporary bitmap and copies the destination area into it.
|
955
|
+
#
|
939
956
|
# -
|
940
957
|
# Copies the source area into the temporary bitmap using the specified logical function.
|
958
|
+
#
|
941
959
|
# -
|
942
960
|
# Sets the masked area in the temporary bitmap to BLACK by ANDing the mask bitmap with the temp bitmap with the foreground colour set to WHITE and the bg colour set to BLACK.
|
961
|
+
#
|
943
962
|
# -
|
944
963
|
# Sets the unmasked area in the destination area to BLACK by ANDing the mask bitmap with the destination area with the foreground colour set to BLACK and the background colour set to WHITE.
|
964
|
+
#
|
945
965
|
# -
|
946
966
|
# ORs the temporary bitmap with the destination area.
|
967
|
+
#
|
947
968
|
# -
|
948
969
|
# Deletes the temporary bitmap.
|
949
970
|
#
|
@@ -1041,7 +1062,11 @@ module Wx
|
|
1041
1062
|
|
1042
1063
|
# Copy attributes from another DC.
|
1043
1064
|
# The copied attributes currently are:
|
1044
|
-
#
|
1065
|
+
#
|
1066
|
+
# - Font
|
1067
|
+
# - Text foreground and background colours
|
1068
|
+
# - Background brush
|
1069
|
+
# - Layout direction
|
1045
1070
|
#
|
1046
1071
|
# Note that the scaling factor is not considered to be an attribute of {Wx::DC} and is not copied by this function.
|
1047
1072
|
# @param dc [Wx::DC] A valid (i.e. its {Wx::DC#is_ok} must return true) source device context.
|
@@ -1083,10 +1108,10 @@ module Wx
|
|
1083
1108
|
alias_method :map_mode, :get_map_mode
|
1084
1109
|
|
1085
1110
|
# Gets in colour the colour at the specified location.
|
1086
|
-
# This method isn't available for {Wx::PRT::PostScriptDC} or {Wx::MetafileDC} nor for any DC in
|
1111
|
+
# This method isn't available for {Wx::PRT::PostScriptDC} or {Wx::MetafileDC} nor for any DC in wxOSX port and simply returns false there.
|
1087
1112
|
# Setting a pixel can be done using {Wx::DC#draw_point}.
|
1088
1113
|
#
|
1089
|
-
# This method shouldn't be used with {Wx::PaintDC} as accessing the DC while drawing can result in unexpected results, notably in
|
1114
|
+
# This method shouldn't be used with {Wx::PaintDC} as accessing the DC while drawing can result in unexpected results, notably in wxGTK.
|
1090
1115
|
# @param x [Integer]
|
1091
1116
|
# @param y [Integer]
|
1092
1117
|
# @param colour [Wx::Colour]
|
@@ -1189,7 +1214,7 @@ module Wx
|
|
1189
1214
|
def set_device_origin(x, y) end
|
1190
1215
|
|
1191
1216
|
# Sets the current logical function for the device context.
|
1192
|
-
# This function is not fully supported in all ports, due to the limitations of the underlying drawing model. Notably, {Wx::RasterOperationMode::INVERT} which was commonly used for drawing rubber bands or other moving outlines in the past, is not, and will not, be supported by
|
1217
|
+
# This function is not fully supported in all ports, due to the limitations of the underlying drawing model. Notably, {Wx::RasterOperationMode::INVERT} which was commonly used for drawing rubber bands or other moving outlines in the past, is not, and will not, be supported by wxGTK3 and {Wx::Mac}. The suggested alternative is to draw temporarily objects normally and refresh the (affected part of the) window to remove them later.
|
1193
1218
|
#
|
1194
1219
|
# It determines how a source pixel (from a pen or brush colour, or source device context if using {Wx::DC#blit}) combines with a destination pixel in the current device context. Text drawing is not affected by this function.
|
1195
1220
|
# See {Wx::RasterOperationMode} enumeration values for more info.
|
data/lib/wx/doc/gen/defs.rb
CHANGED
@@ -2106,67 +2106,67 @@ module Wx
|
|
2106
2106
|
#
|
2107
2107
|
K_LAUNCH_APP2 = Wx::KeyCode.new(443)
|
2108
2108
|
|
2109
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2109
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2110
2110
|
#
|
2111
2111
|
K_LAUNCH_0 = Wx::KeyCode.new(432)
|
2112
2112
|
|
2113
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2113
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2114
2114
|
#
|
2115
2115
|
K_LAUNCH_1 = Wx::KeyCode.new(433)
|
2116
2116
|
|
2117
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2117
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2118
2118
|
#
|
2119
2119
|
K_LAUNCH_2 = Wx::KeyCode.new(434)
|
2120
2120
|
|
2121
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2121
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2122
2122
|
#
|
2123
2123
|
K_LAUNCH_3 = Wx::KeyCode.new(435)
|
2124
2124
|
|
2125
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2125
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2126
2126
|
#
|
2127
2127
|
K_LAUNCH_4 = Wx::KeyCode.new(436)
|
2128
2128
|
|
2129
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2129
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2130
2130
|
#
|
2131
2131
|
K_LAUNCH_5 = Wx::KeyCode.new(437)
|
2132
2132
|
|
2133
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2133
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2134
2134
|
#
|
2135
2135
|
K_LAUNCH_6 = Wx::KeyCode.new(438)
|
2136
2136
|
|
2137
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2137
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2138
2138
|
#
|
2139
2139
|
K_LAUNCH_7 = Wx::KeyCode.new(439)
|
2140
2140
|
|
2141
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2141
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2142
2142
|
#
|
2143
2143
|
K_LAUNCH_8 = Wx::KeyCode.new(440)
|
2144
2144
|
|
2145
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2145
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2146
2146
|
#
|
2147
2147
|
K_LAUNCH_9 = Wx::KeyCode.new(441)
|
2148
2148
|
|
2149
|
-
# Available since wxWidgets 3.1.6, generated by
|
2149
|
+
# Available since wxWidgets 3.1.6, generated by wxGTK and wxMSW.
|
2150
2150
|
#
|
2151
2151
|
K_LAUNCH_A = Wx::KeyCode.new(442)
|
2152
2152
|
|
2153
|
-
# Available since wxWidgets 3.1.6, generated by
|
2153
|
+
# Available since wxWidgets 3.1.6, generated by wxGTK and wxMSW.
|
2154
2154
|
#
|
2155
2155
|
K_LAUNCH_B = Wx::KeyCode.new(443)
|
2156
2156
|
|
2157
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2157
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2158
2158
|
#
|
2159
2159
|
K_LAUNCH_C = Wx::KeyCode.new(444)
|
2160
2160
|
|
2161
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2161
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2162
2162
|
#
|
2163
2163
|
K_LAUNCH_D = Wx::KeyCode.new(445)
|
2164
2164
|
|
2165
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2165
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2166
2166
|
#
|
2167
2167
|
K_LAUNCH_E = Wx::KeyCode.new(446)
|
2168
2168
|
|
2169
|
-
# Available since wxWidgets 3.1.6 and only generated by
|
2169
|
+
# Available since wxWidgets 3.1.6 and only generated by wxGTK.
|
2170
2170
|
#
|
2171
2171
|
K_LAUNCH_F = Wx::KeyCode.new(447)
|
2172
2172
|
|
data/lib/wx/doc/gen/dialog.rb
CHANGED
@@ -84,19 +84,31 @@ module Wx
|
|
84
84
|
# === Styles
|
85
85
|
#
|
86
86
|
# This class supports the following styles:
|
87
|
-
#
|
87
|
+
#
|
88
88
|
# - {Wx::CAPTION}: Puts a caption on the dialog box.
|
89
|
+
#
|
89
90
|
# - {Wx::DEFAULT_DIALOG_STYLE}: Equivalent to a combination of {Wx::CAPTION}, {Wx::CLOSE_BOX} and {Wx::SYSTEM_MENU} (the last one is not used under Unix).
|
91
|
+
#
|
90
92
|
# - {Wx::RESIZE_BORDER}: Display a resizable frame around the window.
|
93
|
+
#
|
91
94
|
# - {Wx::SYSTEM_MENU}: Display a system menu.
|
95
|
+
#
|
92
96
|
# - {Wx::CLOSE_BOX}: Displays a close box on the frame.
|
97
|
+
#
|
93
98
|
# - {Wx::MAXIMIZE_BOX}: Displays a maximize box on the dialog.
|
99
|
+
#
|
94
100
|
# - {Wx::MINIMIZE_BOX}: Displays a minimize box on the dialog.
|
101
|
+
#
|
95
102
|
# - {Wx::THICK_FRAME}: Display a thick frame around the window.
|
103
|
+
#
|
96
104
|
# - {Wx::STAY_ON_TOP}: The dialog stays on top of all other windows.
|
105
|
+
#
|
97
106
|
# - {Wx::NO_3D}: This style is obsolete and doesn't do anything any more, don't use it in any new code.
|
107
|
+
#
|
98
108
|
# - {Wx::DIALOG_NO_PARENT}: By default, a dialog created with a NULL parent window will be given the application's top level window as parent. Use this style to prevent this from happening and create an orphan dialog. This is not recommended for modal dialogs.
|
109
|
+
#
|
99
110
|
# - {Wx::DIALOG_EX_CONTEXTHELP}: Under Windows, puts a query button on the caption. When pressed, Windows will go into a context-sensitive help mode and wxWidgets will send a {Wx::EVT_HELP} event if the user clicked on an application window. Note that this is an extended style and must be set by calling {Wx::Dialog#set_extra_style} before Create is called (two-step construction).
|
111
|
+
#
|
100
112
|
# - {Wx::DIALOG_EX_METAL}: On macOS, frames with this style will be shown with a metallic look. This is an extra style.
|
101
113
|
#
|
102
114
|
# Under Unix or Linux, MWM (the Motif Window Manager) or other window managers recognizing the MHM hints should be running for any of these styles to have an effect.
|
@@ -104,7 +116,9 @@ module Wx
|
|
104
116
|
#
|
105
117
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CloseEvent} events.
|
106
118
|
# Event handler methods for events emitted by this class:
|
119
|
+
#
|
107
120
|
# - {Wx::EvtHandler#evt_close}(meth = nil, &block): The dialog is being closed by the user or programmatically (see {Wx::Window#close}). The user may generate this event clicking the close button (typically the 'X' on the top-right of the title bar) if it's present (see the {Wx::CLOSE_BOX} style).
|
121
|
+
#
|
108
122
|
# - {Wx::EvtHandler#evt_init_dialog}(meth = nil, &block): Process a {Wx::EVT_INIT_DIALOG} event. See {Wx::InitDialogEvent}.
|
109
123
|
#
|
110
124
|
# ===
|
@@ -119,7 +133,7 @@ module Wx
|
|
119
133
|
|
120
134
|
# @overload initialize()
|
121
135
|
# Default constructor.
|
122
|
-
# @return [Dialog]
|
136
|
+
# @return [Wx::Dialog]
|
123
137
|
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DialogNameStr)
|
124
138
|
# Constructor.
|
125
139
|
#
|
@@ -131,7 +145,7 @@ module Wx
|
|
131
145
|
# @param size [Array(Integer, Integer), Wx::Size] The dialog size. The value {Wx::DEFAULT_SIZE} indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
|
132
146
|
# @param style [Integer] The window style.
|
133
147
|
# @param name [String] Used to associate a name with the window, allowing the application user to set Motif resource values for individual dialog boxes.
|
134
|
-
# @return [Dialog]
|
148
|
+
# @return [Wx::Dialog]
|
135
149
|
def initialize(*args) end
|
136
150
|
|
137
151
|
# Adds an identifier to be regarded as a main button for the non-scrolling area of a dialog.
|
@@ -287,7 +301,7 @@ module Wx
|
|
287
301
|
alias_method :iconized?, :is_iconized
|
288
302
|
|
289
303
|
# Returns true if id is in the array of identifiers to be regarded as the main buttons for the non-scrolling area of a dialog.
|
290
|
-
# Availability: only available for the
|
304
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
291
305
|
# @see Automatic Scrolled Dialogs (for more on layout adaptation)
|
292
306
|
# @param id [Integer]
|
293
307
|
# @return [true,false]
|
@@ -391,7 +405,7 @@ module Wx
|
|
391
405
|
|
392
406
|
# Shows a dialog modal to the parent top level window only.
|
393
407
|
# Unlike {Wx::Dialog#show_modal}, dialogs shown with this function only prevent the user from interacting with their parent frame only but not with the rest of the application. They also don't block the program execution but instead return immediately, as {Wx::Dialog#show}, and generate a {Wx::EVT_WINDOW_MODAL_DIALOG_CLOSED} event ({Wx::WindowModalDialogEvent}) later when the dialog is closed.
|
394
|
-
# Currently this function is only fully implemented in
|
408
|
+
# Currently this function is only fully implemented in wxOSX ports, under the other platforms it behaves like {Wx::Dialog#show_modal} (but also sends the above mentioned event).
|
395
409
|
# @see Wx::WindowModalDialogEvent
|
396
410
|
# @see Wx::Dialog#show_window_modal_then_do
|
397
411
|
# @return [void]
|
@@ -58,11 +58,15 @@ module Wx
|
|
58
58
|
# === Styles
|
59
59
|
#
|
60
60
|
# This class supports the following styles:
|
61
|
-
#
|
61
|
+
#
|
62
62
|
# - {Wx::DD_DEFAULT_STYLE}: Equivalent to a combination of {Wx::DEFAULT_DIALOG_STYLE} and {Wx::RESIZE_BORDER}.
|
63
|
+
#
|
63
64
|
# - {Wx::DD_DIR_MUST_EXIST}: The dialog will allow the user to choose only an existing folder. When this style is not given, a "Create new directory" button is added to the dialog (on Windows) or some other way is provided to the user to type the name of a new folder.
|
65
|
+
#
|
64
66
|
# - {Wx::DD_CHANGE_DIR}: Change the current working directory to the directory chosen by the user. This flag cannot be used with the {Wx::DD_MULTIPLE} style.
|
67
|
+
#
|
65
68
|
# - {Wx::DD_MULTIPLE}: Allow the user to select multiple directories. This flag is only available since wxWidgets 3.1.4
|
69
|
+
#
|
66
70
|
# - {Wx::DD_SHOW_HIDDEN}: Show hidden and system folders. This flag is only available since wxWidgets 3.1.4
|
67
71
|
#
|
68
72
|
# Notice that {Wx::RESIZE_BORDER} has special side effect under Windows where two different directory selection dialogs are available and this style also implicitly selects the new version as the old one always has fixed size. As the new version is almost always preferable, it is recommended that {Wx::RESIZE_BORDER} style be always used. This is the case if the dialog is created with the default style value but if you need to use any additional styles you should still specify {Wx::DD_DEFAULT_STYLE} unless you explicitly need to use the old dialog version under Windows. E.g. do
|
@@ -91,7 +95,7 @@ module Wx
|
|
91
95
|
# @param pos [Array(Integer, Integer), Wx::Point] Dialog position. Ignored under Windows.
|
92
96
|
# @param size [Array(Integer, Integer), Wx::Size] Dialog size. Ignored under Windows.
|
93
97
|
# @param name [String] The dialog name, not used.
|
94
|
-
# @return [DirDialog]
|
98
|
+
# @return [Wx::DirDialog]
|
95
99
|
def initialize(parent, message=Wx::DIR_SELECTOR_PROMPT_STR, defaultPath=(''), style=Wx::DD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::DIR_DIALOG_NAME_STR) end
|
96
100
|
|
97
101
|
# Returns the message that will be displayed on the dialog.
|
@@ -48,14 +48,14 @@ module Wx
|
|
48
48
|
class DirFilterListCtrl < Choice
|
49
49
|
|
50
50
|
# @overload initialize()
|
51
|
-
# @return [DirFilterListCtrl]
|
51
|
+
# @return [Wx::DirFilterListCtrl]
|
52
52
|
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
|
53
53
|
# @param parent [Wx::GenericDirCtrl]
|
54
54
|
# @param id [Integer]
|
55
55
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
56
56
|
# @param size [Array(Integer, Integer), Wx::Size]
|
57
57
|
# @param style [Integer]
|
58
|
-
# @return [DirFilterListCtrl]
|
58
|
+
# @return [Wx::DirFilterListCtrl]
|
59
59
|
def initialize(*args) end
|
60
60
|
|
61
61
|
# @param parent [Wx::GenericDirCtrl]
|
@@ -11,24 +11,29 @@ module Wx
|
|
11
11
|
# === Styles
|
12
12
|
#
|
13
13
|
# This class supports the following styles:
|
14
|
-
#
|
15
|
-
# - {Wx::DIRP_DEFAULT_STYLE}: The default style: includes {Wx::DIRP_DIR_MUST_EXIST} and, under
|
14
|
+
#
|
15
|
+
# - {Wx::DIRP_DEFAULT_STYLE}: The default style: includes {Wx::DIRP_DIR_MUST_EXIST} and, under wxMSW only, {Wx::DIRP_USE_TEXTCTRL}.
|
16
|
+
#
|
16
17
|
# - {Wx::DIRP_USE_TEXTCTRL}: Creates a text control to the left of the picker button which is completely managed by the {Wx::DirPickerCtrl} and which can be used by the user to specify a path (see SetPath). The text control is automatically synchronized with button's value. Use functions defined in {Wx::PickerBase} to modify the text control.
|
17
|
-
#
|
18
|
+
#
|
19
|
+
# - {Wx::DIRP_DIR_MUST_EXIST}: Creates a picker which allows selecting only existing directories in the popup {Wx::DirDialog}. Notice that, as with {Wx::FLP_FILE_MUST_EXIST}, it is still possible to enter a non-existent directory even when this file is specified if {Wx::DIRP_USE_TEXTCTRL} style is also used. Also note that if {Wx::DIRP_USE_TEXTCTRL} is not used, the native wxGTK implementation always uses this style as it doesn't support selecting non-existent directories.
|
20
|
+
#
|
18
21
|
# - {Wx::DIRP_CHANGE_DIR}: Change current working directory on each user directory selection change.
|
22
|
+
#
|
19
23
|
# - {Wx::DIRP_SMALL}: Use smaller version of the control with a small "..." button instead of the normal "Browse" one. This flag is new since wxWidgets 2.9.3.
|
20
24
|
#
|
21
25
|
# === Events emitted by this class
|
22
26
|
#
|
23
27
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::FileDirPickerEvent} events.
|
24
28
|
# Event handler methods for events emitted by this class:
|
29
|
+
#
|
25
30
|
# - {Wx::EvtHandler#evt_dirpicker_changed}(id, meth = nil, &block): The user changed the directory selected in the control either using the button or using text control (see {Wx::DIRP_USE_TEXTCTRL}; note that in this case the event is fired only if the user's input is valid, e.g. an existing directory path).
|
26
31
|
#
|
27
32
|
# ===
|
28
33
|
#
|
29
|
-
# Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
30
|
-
# </td><td>
|
31
|
-
# </td><td>
|
34
|
+
# Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
35
|
+
# </td><td> wxGTK Appearance
|
36
|
+
# </td><td> wxOSX Appearance
|
32
37
|
# </td></tr></table></div>
|
33
38
|
# @see Wx::DirDialog
|
34
39
|
# @see Wx::FileDirPickerEvent
|
@@ -37,7 +42,7 @@ module Wx
|
|
37
42
|
class DirPickerCtrl < PickerBase
|
38
43
|
|
39
44
|
# @overload initialize()
|
40
|
-
# @return [DirPickerCtrl]
|
45
|
+
# @return [Wx::DirPickerCtrl]
|
41
46
|
# @overload initialize(parent, id, path=(''), message=Wx::DIR_SELECTOR_PROMPT_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::DirPickerCtrlNameStr)
|
42
47
|
# Initializes the object and calls {Wx::DirPickerCtrl#create} with all the parameters.
|
43
48
|
# @param parent [Wx::Window]
|
@@ -49,7 +54,7 @@ module Wx
|
|
49
54
|
# @param style [Integer]
|
50
55
|
# @param validator [Wx::Validator]
|
51
56
|
# @param name [String]
|
52
|
-
# @return [DirPickerCtrl]
|
57
|
+
# @return [Wx::DirPickerCtrl]
|
53
58
|
def initialize(*args) end
|
54
59
|
|
55
60
|
# Creates the widgets with the given parameters.
|
@@ -91,7 +96,7 @@ module Wx
|
|
91
96
|
alias_method :initial_directory=, :set_initial_directory
|
92
97
|
|
93
98
|
# Sets the absolute path of the currently selected directory.
|
94
|
-
# If the control uses {Wx::DIRP_DIR_MUST_EXIST} and does not use {Wx::DIRP_USE_TEXTCTRL} style, the dirname must be a name of an existing directory and will be simply ignored by the native
|
99
|
+
# If the control uses {Wx::DIRP_DIR_MUST_EXIST} and does not use {Wx::DIRP_USE_TEXTCTRL} style, the dirname must be a name of an existing directory and will be simply ignored by the native wxGTK implementation if this is not the case.
|
95
100
|
# @param dirname [String]
|
96
101
|
# @return [void]
|
97
102
|
def set_path(dirname) end
|
data/lib/wx/doc/gen/drag_drop.rb
CHANGED
@@ -72,41 +72,41 @@ module Wx
|
|
72
72
|
# @overload initialize(win=nil, iconCopy=Wx::NULL_CURSOR, iconMove=Wx::NULL_CURSOR, iconNone=Wx::NULL_CURSOR)
|
73
73
|
# This constructor requires that you must call {Wx::DropSource#set_data} later.
|
74
74
|
# Note that the type of iconCopy and subsequent parameters differs between different ports: these are cursors under Windows and OS X but icons for GTK. You should use the macro {drop_icon} in portable programs instead of directly using either of these types.
|
75
|
-
# Availability: only available for the
|
75
|
+
# Availability: only available for the wxMSW, wxOSX/Cocoa ports. {Wx::msw},{Wx::osx}
|
76
76
|
# @param win [Wx::Window] The window which initiates the drag and drop operation.
|
77
77
|
# @param iconCopy [Wx::Cursor] The icon or cursor used for feedback for copy operation.
|
78
78
|
# @param iconMove [Wx::Cursor] The icon or cursor used for feedback for move operation.
|
79
79
|
# @param iconNone [Wx::Cursor] The icon or cursor used for feedback when operation can't be done.
|
80
|
-
# @return [DropSource]
|
80
|
+
# @return [Wx::DropSource]
|
81
81
|
# @overload initialize(data, win=nil, iconCopy=Wx::NULL_CURSOR, iconMove=Wx::NULL_CURSOR, iconNone=Wx::NULL_CURSOR)
|
82
82
|
# The constructor taking a {Wx::DataObject}.
|
83
83
|
# Note that the type of iconCopy and subsequent parameters differs between different ports: these are cursors under Windows and OS X but icons for GTK. You should use the macro {drop_icon} in portable programs instead of directly using either of these types.
|
84
|
-
# Availability: only available for the
|
84
|
+
# Availability: only available for the wxMSW, wxOSX/Cocoa ports. {Wx::msw},{Wx::osx}
|
85
85
|
# @param data [Wx::DataObject] The data associated with the drop source.
|
86
86
|
# @param win [Wx::Window] The window which initiates the drag and drop operation.
|
87
87
|
# @param iconCopy [Wx::Cursor] The icon or cursor used for feedback for copy operation.
|
88
88
|
# @param iconMove [Wx::Cursor] The icon or cursor used for feedback for move operation.
|
89
89
|
# @param iconNone [Wx::Cursor] The icon or cursor used for feedback when operation can't be done.
|
90
|
-
# @return [DropSource]
|
90
|
+
# @return [Wx::DropSource]
|
91
91
|
# @overload initialize(win=nil, iconCopy=Wx::NULL_ICON, iconMove=Wx::NULL_ICON, iconNone=Wx::NULL_ICON)
|
92
92
|
# This constructor requires that you must call {Wx::DropSource#set_data} later.
|
93
|
-
# This is the
|
94
|
-
# Availability: only available for the
|
93
|
+
# This is the wxGTK-specific version of the constructor taking {Wx::Icon} instead of {Wx::Cursor} as the other ports.
|
94
|
+
# Availability: only available for the wxGTK port. {Wx::gtk}
|
95
95
|
# @param win [Wx::Window] The window which initiates the drag and drop operation.
|
96
96
|
# @param iconCopy [Wx::Icon] The icon or cursor used for feedback for copy operation.
|
97
97
|
# @param iconMove [Wx::Icon] The icon or cursor used for feedback for move operation.
|
98
98
|
# @param iconNone [Wx::Icon] The icon or cursor used for feedback when operation can't be done.
|
99
|
-
# @return [DropSource]
|
99
|
+
# @return [Wx::DropSource]
|
100
100
|
# @overload initialize(data, win=nil, iconCopy=Wx::NULL_ICON, iconMove=Wx::NULL_ICON, iconNone=Wx::NULL_ICON)
|
101
101
|
# The constructor taking a {Wx::DataObject}.
|
102
|
-
# This is the
|
103
|
-
# Availability: only available for the
|
102
|
+
# This is the wxGTK-specific version of the constructor taking {Wx::Icon} instead of {Wx::Cursor} as the other ports.
|
103
|
+
# Availability: only available for the wxGTK port. {Wx::gtk}
|
104
104
|
# @param data [Wx::DataObject] The data associated with the drop source.
|
105
105
|
# @param win [Wx::Window] The window which initiates the drag and drop operation.
|
106
106
|
# @param iconCopy [Wx::Icon] The icon or cursor used for feedback for copy operation.
|
107
107
|
# @param iconMove [Wx::Icon] The icon or cursor used for feedback for move operation.
|
108
108
|
# @param iconNone [Wx::Icon] The icon or cursor used for feedback when operation can't be done.
|
109
|
-
# @return [DropSource]
|
109
|
+
# @return [Wx::DropSource]
|
110
110
|
def initialize(*args) end
|
111
111
|
|
112
112
|
# Starts the drag-and-drop operation which will terminate when the user releases the mouse.
|
@@ -131,14 +131,14 @@ module Wx
|
|
131
131
|
def give_feedback(effect) end
|
132
132
|
|
133
133
|
# Set the icon to use for a certain drag result.
|
134
|
-
# Availability: only available for the
|
134
|
+
# Availability: only available for the wxMSW, wxOSX/Cocoa ports. {Wx::msw},{Wx::osx}
|
135
135
|
# @param res [DragResult] The drag result to set the icon for.
|
136
136
|
# @param cursor [Wx::Cursor] The icon to show when this drag result occurs.
|
137
137
|
# @return [void]
|
138
138
|
def set_cursor(res, cursor) end
|
139
139
|
|
140
140
|
# Set the icon to use for a certain drag result.
|
141
|
-
# Availability: only available for the
|
141
|
+
# Availability: only available for the wxGTK port. {Wx::gtk}
|
142
142
|
# @param res [DragResult] The drag result to set the icon for.
|
143
143
|
# @param icon [Wx::Icon] The icon to show when this drag result occurs.
|
144
144
|
# @return [void]
|
@@ -173,7 +173,7 @@ module Wx
|
|
173
173
|
# Constructor.
|
174
174
|
# data is the data to be associated with the drop target.
|
175
175
|
# @param data [Wx::DataObject]
|
176
|
-
# @return [DropTarget]
|
176
|
+
# @return [Wx::DropTarget]
|
177
177
|
def initialize(data=nil) end
|
178
178
|
|
179
179
|
# This method may only be called from within {Wx::DropTarget#on_data}.
|
@@ -261,7 +261,7 @@ module Wx
|
|
261
261
|
class FileDropTarget < DropTarget
|
262
262
|
|
263
263
|
# Constructor.
|
264
|
-
# @return [FileDropTarget]
|
264
|
+
# @return [Wx::FileDropTarget]
|
265
265
|
def initialize; end
|
266
266
|
|
267
267
|
# Override this function to receive dropped files.
|
@@ -287,7 +287,7 @@ module Wx
|
|
287
287
|
class TextDropTarget < DropTarget
|
288
288
|
|
289
289
|
# Constructor.
|
290
|
-
# @return [TextDropTarget]
|
290
|
+
# @return [Wx::TextDropTarget]
|
291
291
|
def initialize; end
|
292
292
|
|
293
293
|
# Override this function to receive dropped text.
|
@@ -21,32 +21,32 @@ module Wx
|
|
21
21
|
|
22
22
|
# @overload initialize()
|
23
23
|
# Default constructor.
|
24
|
-
# @return [DragImage]
|
24
|
+
# @return [Wx::DragImage]
|
25
25
|
# @overload initialize(image, cursor=Wx::NULL_CURSOR)
|
26
26
|
# Constructs a drag image from a bitmap and optional cursor.
|
27
27
|
# @param image [Wx::Bitmap] Bitmap to be used as the drag image. The bitmap can have a mask.
|
28
28
|
# @param cursor [Wx::Cursor] Optional cursor to combine with the image.
|
29
|
-
# @return [DragImage]
|
29
|
+
# @return [Wx::DragImage]
|
30
30
|
# @overload initialize(image, cursor=Wx::NULL_CURSOR)
|
31
31
|
# Constructs a drag image from an icon and optional cursor.
|
32
32
|
# @param image [Wx::Icon] Icon to be used as the drag image.
|
33
33
|
# @param cursor [Wx::Cursor] Optional cursor to combine with the image.
|
34
|
-
# @return [DragImage]
|
34
|
+
# @return [Wx::DragImage]
|
35
35
|
# @overload initialize(text, cursor=Wx::NULL_CURSOR)
|
36
36
|
# Constructs a drag image from a text string and optional cursor.
|
37
37
|
# @param text [String] Text used to construct a drag image.
|
38
38
|
# @param cursor [Wx::Cursor] Optional cursor to combine with the image.
|
39
|
-
# @return [DragImage]
|
39
|
+
# @return [Wx::DragImage]
|
40
40
|
# @overload initialize(treeCtrl, id)
|
41
41
|
# Constructs a drag image from the text in the given tree control item, and optional cursor.
|
42
42
|
# @param treeCtrl [Wx::TreeCtrl] Tree control for constructing a tree drag image.
|
43
43
|
# @param id [Wx::TreeItemId] Tree control item id.
|
44
|
-
# @return [DragImage]
|
44
|
+
# @return [Wx::DragImage]
|
45
45
|
# @overload initialize(listCtrl, id)
|
46
46
|
# Constructs a drag image from the text in the given list control item, and optional cursor.
|
47
47
|
# @param listCtrl [Wx::ListCtrl] List control for constructing a list drag image.
|
48
48
|
# @param id [Integer] List control item id.
|
49
|
-
# @return [DragImage]
|
49
|
+
# @return [Wx::DragImage]
|
50
50
|
def initialize(*args) end
|
51
51
|
|
52
52
|
# @overload begin_drag(hotspot, window, fullScreen=false, rect=nil)
|
@@ -25,11 +25,15 @@ module Wx
|
|
25
25
|
# === Styles
|
26
26
|
#
|
27
27
|
# This class supports the following styles:
|
28
|
-
#
|
28
|
+
#
|
29
29
|
# - {Wx::EL_ALLOW_NEW}: Allows the user to enter new strings.
|
30
|
+
#
|
30
31
|
# - {Wx::EL_ALLOW_EDIT}: Allows the user to edit existing strings.
|
32
|
+
#
|
31
33
|
# - {Wx::EL_ALLOW_DELETE}: Allows the user to delete existing strings.
|
34
|
+
#
|
32
35
|
# - {Wx::EL_NO_REORDER}: Does not allow the user to reorder the strings.
|
36
|
+
#
|
33
37
|
# - {Wx::EL_DEFAULT_STYLE}: Default style: {Wx::EL_ALLOW_NEW}|{Wx::EL_ALLOW_EDIT}|{Wx::EL_ALLOW_DELETE}.
|
34
38
|
#
|
35
39
|
# The control uses a {Wx::ListCtrl} internally and emit its events.
|
@@ -44,7 +48,7 @@ module Wx
|
|
44
48
|
|
45
49
|
# @overload initialize()
|
46
50
|
# Default ctor.
|
47
|
-
# @return [EditableListBox]
|
51
|
+
# @return [Wx::EditableListBox]
|
48
52
|
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::EditableListBoxNameStr)
|
49
53
|
# Constructor, creating and showing a list box.
|
50
54
|
#
|
@@ -56,7 +60,7 @@ module Wx
|
|
56
60
|
# @param size [Array(Integer, Integer), Wx::Size] Window size. If {Wx::DEFAULT_SIZE} is specified then the window is sized appropriately.
|
57
61
|
# @param style [Integer] Window style. See {Wx::EditableListBox}.
|
58
62
|
# @param name [String] Window name.
|
59
|
-
# @return [EditableListBox]
|
63
|
+
# @return [Wx::EditableListBox]
|
60
64
|
def initialize(*args) end
|
61
65
|
|
62
66
|
# Creates the editable listbox for two-step construction.
|