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
@@ -17,13 +17,21 @@ module Wx
|
|
17
17
|
#
|
18
18
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::TaskBarIconEvent} events.
|
19
19
|
# Event handler methods for events emitted by this class:{Wx::TaskBarIcon#create_popup_menu} or {Wx::TaskBarIcon#get_popup_menu} if all that the application does is that it shows a popup menu in reaction to mouse click.
|
20
|
+
#
|
20
21
|
# - {Wx::EvtHandler#evt_taskbar_move}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_MOVE} event.
|
22
|
+
#
|
21
23
|
# - {Wx::EvtHandler#evt_taskbar_left_down}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_LEFT_DOWN} event.
|
24
|
+
#
|
22
25
|
# - {Wx::EvtHandler#evt_taskbar_left_up}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_LEFT_UP} event.
|
26
|
+
#
|
23
27
|
# - {Wx::EvtHandler#evt_taskbar_right_down}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_RIGHT_DOWN} event.
|
28
|
+
#
|
24
29
|
# - {Wx::EvtHandler#evt_taskbar_right_up}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_RIGHT_UP} event.
|
30
|
+
#
|
25
31
|
# - {Wx::EvtHandler#evt_taskbar_left_dclick}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_LEFT_DCLICK} event.
|
32
|
+
#
|
26
33
|
# - {Wx::EvtHandler#evt_taskbar_right_dclick}(meth = nil, &block): Process a {Wx::EVT_TASKBAR_RIGHT_DCLICK} event.
|
34
|
+
#
|
27
35
|
# - {Wx::EvtHandler#evt_taskbar_click}(meth = nil, &block): This is a synonym for either EVT_TASKBAR_RIGHT_DOWN or UP depending on the platform, use this event macro to catch the event which should result in the menu being displayed on the current platform.
|
28
36
|
#
|
29
37
|
# ===
|
@@ -33,9 +41,9 @@ module Wx
|
|
33
41
|
class TaskBarIcon < EvtHandler
|
34
42
|
|
35
43
|
# Default constructor.
|
36
|
-
# The iconType is only applicable on
|
44
|
+
# The iconType is only applicable on wxOSX/Cocoa.
|
37
45
|
# @param iconType [TaskBarIconType]
|
38
|
-
# @return [TaskBarIcon]
|
46
|
+
# @return [Wx::TaskBarIcon]
|
39
47
|
def initialize(iconType=Wx::TaskBarIconType::TBI_DEFAULT_TYPE) end
|
40
48
|
|
41
49
|
# This method is similar to {Wx::Window#destroy} and can be used to schedule the task bar icon object for the delayed destruction: it will be deleted during the next event loop iteration, which allows the task bar icon to process any pending events for it before being destroyed.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
module Wx
|
8
8
|
|
9
|
-
# On
|
9
|
+
# On wxOSX/Cocoa the taskbar icon can be in the doc or in the status area.
|
10
10
|
#
|
11
11
|
# This enumeration can be used to select which will be instantiated.
|
12
12
|
#
|
@@ -75,9 +75,9 @@ module Wx
|
|
75
75
|
class TaskBarIconEvent < Event
|
76
76
|
|
77
77
|
# Constructor.
|
78
|
-
# @param evtType [
|
78
|
+
# @param evtType [Wx::AUI::AuiMDIChildFrame::EventType]
|
79
79
|
# @param tbIcon [Wx::TaskBarIcon]
|
80
|
-
# @return [TaskBarIconEvent]
|
80
|
+
# @return [Wx::TaskBarIconEvent]
|
81
81
|
def initialize(evtType, tbIcon) end
|
82
82
|
|
83
83
|
end # TaskBarIconEvent
|
data/lib/wx/doc/gen/text_attr.rb
CHANGED
@@ -19,18 +19,18 @@ module Wx
|
|
19
19
|
|
20
20
|
# @overload initialize()
|
21
21
|
# Constructors.
|
22
|
-
# @return [TextAttr]
|
22
|
+
# @return [Wx::TextAttr]
|
23
23
|
# @overload initialize(colText, colBack=Wx::NULL_COLOUR, font=Wx::NULL_FONT, alignment=Wx::TextAttrAlignment::TEXT_ALIGNMENT_DEFAULT)
|
24
24
|
# Constructors.
|
25
25
|
# @param colText [Wx::Colour,String,Symbol]
|
26
26
|
# @param colBack [Wx::Colour,String,Symbol]
|
27
27
|
# @param font [Wx::Font,Wx::FontInfo]
|
28
28
|
# @param alignment [TextAttrAlignment]
|
29
|
-
# @return [TextAttr]
|
29
|
+
# @return [Wx::TextAttr]
|
30
30
|
# @overload initialize(attr)
|
31
31
|
# Constructors.
|
32
32
|
# @param attr [Wx::TextAttr]
|
33
|
-
# @return [TextAttr]
|
33
|
+
# @return [Wx::TextAttr]
|
34
34
|
def initialize(*args) end
|
35
35
|
|
36
36
|
# Returns the alignment flags.
|
@@ -52,7 +52,11 @@ module Wx
|
|
52
52
|
|
53
53
|
# Returns the standard bullet name, applicable if the bullet style is {Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD}.
|
54
54
|
# Currently the following standard bullet names are supported:
|
55
|
-
#
|
55
|
+
#
|
56
|
+
# - <code>standard/circle</code>
|
57
|
+
# - <code>standard/square</code>
|
58
|
+
# - <code>standard/diamond</code>
|
59
|
+
# - <code>standard/triangle</code>
|
56
60
|
#
|
57
61
|
# For {Wx::RTC::RichTextCtrl} users only: if you wish your rich text controls to support further bullet graphics, you can derive a class from {Wx::RichTextRenderer} or {Wx::RichTextStdRenderer}, override DrawStandardBullet and EnumerateStandardBulletNames, and set an instance of the class using {Wx::RTC::RichTextBuffer::SetRenderer}.
|
58
62
|
# @return [Wx::String]
|
@@ -507,11 +511,11 @@ module Wx
|
|
507
511
|
# @return [void]
|
508
512
|
# @overload set_font_underlined(type, colour=Wx::NULL_COLOUR)
|
509
513
|
# Sets the font underlining.
|
510
|
-
# On
|
514
|
+
# On wxMSW, {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_DOUBLE} is shown as {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SOLID}. There is only a limited number of colours supported, the RGB values are listed here. {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a waved line.
|
511
515
|
#
|
512
|
-
# On
|
516
|
+
# On wxGTK, underline colour is only supported by wxGTK3. {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a waved line. GTK might overrule the colour of {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL}.
|
513
517
|
#
|
514
|
-
# On
|
518
|
+
# On wxOSX, {Wx::TextAttrUnderlineType::TEXT_ATTR_UNDERLINE_SPECIAL} is shown as a dotted line.
|
515
519
|
# @param type [TextAttrUnderlineType] Type of underline.
|
516
520
|
# @param colour [Wx::Colour,String,Symbol] Colour to use for underlining, text colour is used by default.
|
517
521
|
# @return [void]
|
data/lib/wx/doc/gen/text_ctrl.rb
CHANGED
@@ -481,28 +481,46 @@ module Wx
|
|
481
481
|
# === Styles
|
482
482
|
#
|
483
483
|
# This class supports the following styles:
|
484
|
-
#
|
484
|
+
#
|
485
485
|
# - {Wx::TE_PROCESS_ENTER}: The control will generate the event {Wx::EVT_TEXT_ENTER} that can be handled by the program. Otherwise, i.e. either if this style not specified at all, or it is used, but there is no event handler for this event or the event handler called {Wx::Event#skip} to avoid overriding the default handling, pressing Enter key is either processed internally by the control or used to activate the default button of the dialog, if any.
|
486
|
-
#
|
486
|
+
#
|
487
|
+
# - {Wx::TE_PROCESS_TAB}: Normally, TAB key is used for keyboard navigation and pressing it in a control switches focus to the next one. With this style, this won't happen and if the TAB is not otherwise processed (e.g. by {Wx::EVT_CHAR} event handler), a literal TAB character is inserted into the control. Notice that this style has no effect for single-line text controls when using wxGTK.
|
488
|
+
#
|
487
489
|
# - {Wx::TE_MULTILINE}: The text control allows multiple lines. If this style is not specified, line break characters should not be used in the controls value.
|
490
|
+
#
|
488
491
|
# - {Wx::TE_PASSWORD}: The text will be echoed as asterisks.
|
492
|
+
#
|
489
493
|
# - {Wx::TE_READONLY}: The text will not be user-editable.
|
494
|
+
#
|
490
495
|
# - {Wx::TE_RICH}: Use rich text control under MSW, this allows having more than 64KB of text in the control. This style is ignored under other platforms and it is recommended to use {Wx::TE_RICH2} instead of it under MSW.
|
496
|
+
#
|
491
497
|
# - {Wx::TE_RICH2}: Use rich text control version 2.0 or higher under MSW, this style is ignored under other platforms. Note that this style may be turned on automatically even if it is not used explicitly when creating a text control with a long (i.e. much more than 64KiB) initial text, as creating the control would simply fail in this case under MSW if neither this style nor {Wx::TE_RICH} is used.
|
498
|
+
#
|
492
499
|
# - {Wx::TE_AUTO_URL}: Highlight the URLs and generate the {Wx::TextUrlEvents} when mouse events occur over them.
|
500
|
+
#
|
493
501
|
# - {Wx::TE_NOHIDESEL}: By default, the Windows text control doesn't show the selection when it doesn't have focus - use this style to force it to always show it. It doesn't do anything under other platforms.
|
502
|
+
#
|
494
503
|
# - {Wx::HSCROLL}: A horizontal scrollbar will be created and used, so that text won't be wrapped.
|
495
|
-
#
|
504
|
+
#
|
505
|
+
# - {Wx::TE_NO_VSCROLL}: For multiline controls only: vertical scrollbar will never be created. This limits the amount of text which can be entered into the control to what can be displayed in it under wxMSW but not under wxGTK or wxOSX. Currently not implemented for the other platforms.
|
506
|
+
#
|
496
507
|
# - {Wx::TE_LEFT}: The text in the control will be left-justified (default).
|
497
|
-
#
|
498
|
-
# - {Wx::
|
508
|
+
#
|
509
|
+
# - {Wx::TE_CENTRE}: The text in the control will be centered (wxMSW, wxGTK, wxOSX).
|
510
|
+
#
|
511
|
+
# - {Wx::TE_RIGHT}: The text in the control will be right-justified (wxMSW, wxGTK, wxOSX).
|
512
|
+
#
|
499
513
|
# - {Wx::TE_DONTWRAP}: Same as {Wx::HSCROLL} style: don't wrap at all, show horizontal scrollbar instead.
|
500
|
-
#
|
501
|
-
# - {Wx::
|
514
|
+
#
|
515
|
+
# - {Wx::TE_CHARWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at any position ({Wx::Univ}, wxGTK, wxOSX).
|
516
|
+
#
|
517
|
+
# - {Wx::TE_WORDWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at word boundaries ({Wx::Univ}, wxMSW, wxGTK, wxOSX).
|
518
|
+
#
|
502
519
|
# - {Wx::TE_BESTWRAP}: For multiline controls only: wrap the lines at word boundaries or at any other character if there are words longer than the window width (this is the default).
|
520
|
+
#
|
503
521
|
# - {Wx::TE_CAPITALIZE}: On PocketPC and Smartphone, causes the first letter to be capitalized.
|
504
522
|
#
|
505
|
-
# Note that alignment styles ({Wx::TE_LEFT}, {Wx::TE_CENTRE} and {Wx::TE_RIGHT}) can be changed dynamically after control creation on
|
523
|
+
# Note that alignment styles ({Wx::TE_LEFT}, {Wx::TE_CENTRE} and {Wx::TE_RIGHT}) can be changed dynamically after control creation on wxMSW, wxGTK and wxOSX. {Wx::TE_READONLY}, {Wx::TE_PASSWORD} and wrapping styles can be dynamically changed under wxGTK but not wxMSW. The other styles can be only set during control creation.
|
506
524
|
#
|
507
525
|
# == wxTextCtrl Text Format
|
508
526
|
#
|
@@ -522,67 +540,14 @@ module Wx
|
|
522
540
|
# In either case, if the style doesn't specify some of the attributes (for example you only want to set the text colour but without changing the font nor the text background), the values of the default style will be used for them. If there is no default style, the attributes of the text control itself are used.
|
523
541
|
# So the following code correctly describes what it does: the second call to {Wx::TextCtrl#set_default_style} doesn't change the text foreground colour (which stays red) while the last one doesn't change the background colour (which stays grey):
|
524
542
|
#
|
543
|
+
# ```ruby
|
544
|
+
# text.set_default_style(Wx::TextAttr.new(Wx::RED))
|
545
|
+
# text.append_text("Red text\n")
|
546
|
+
# text.set_default_style(Wx::TextAttr.new(Wx::NULL_COLOUR, Wx::LIGHT_GREY))
|
547
|
+
# text.append_text("Red on grey text\n")
|
548
|
+
# text.set_default_style(Wx::TextAttr.new(Wx::BLUE))
|
549
|
+
# text.append_text("Blue on grey text\n")
|
525
550
|
# ```
|
526
|
-
# text->SetDefaultStyle(wxTextAttr(*wxRED));
|
527
|
-
# text->AppendText("Red text\n");
|
528
|
-
# text->SetDefaultStyle(wxTextAttr(wxNullColour, *wxLIGHT_GREY));
|
529
|
-
# text->AppendText("Red on grey text\n");
|
530
|
-
# text->SetDefaultStyle(wxTextAttr(*wxBLUE));
|
531
|
-
# text->AppendText("Blue on grey text\n");
|
532
|
-
# ```
|
533
|
-
#
|
534
|
-
# == wxTextCtrl and C++ Streams
|
535
|
-
#
|
536
|
-
# This class multiply-inherits from std::streambuf (except for some really old compilers using non-standard iostream library), allowing code such as the following:
|
537
|
-
#
|
538
|
-
# ```
|
539
|
-
# wxTextCtrl *control = new wxTextCtrl(...);
|
540
|
-
#
|
541
|
-
# ostream stream(control)
|
542
|
-
#
|
543
|
-
# stream << 123.456 << " some text\n";
|
544
|
-
# stream.flush();
|
545
|
-
# ```
|
546
|
-
#
|
547
|
-
# Note that even if your build of wxWidgets doesn't support this (the symbol {Wx::HAS_TEXT_WINDOW_STREAM} has value of 0 then) you can still use {Wx::TextCtrl} itself in a stream-like manner:
|
548
|
-
#
|
549
|
-
# ```
|
550
|
-
# wxTextCtrl *control = new wxTextCtrl(...);
|
551
|
-
#
|
552
|
-
# *control << 123.456 << " some text\n";
|
553
|
-
# ```
|
554
|
-
#
|
555
|
-
# However the possibility to create a std::ostream associated with {Wx::TextCtrl} may be useful if you need to redirect the output of a function taking a std::ostream as parameter to a text control.
|
556
|
-
# Another commonly requested need is to redirect std::cout to the text control. This may be done in the following way:
|
557
|
-
#
|
558
|
-
# ```
|
559
|
-
# #include <iostream>
|
560
|
-
#
|
561
|
-
# wxTextCtrl *control = new wxTextCtrl(...);
|
562
|
-
#
|
563
|
-
# std::streambuf *sbOld = std::cout.rdbuf();
|
564
|
-
# std::cout.rdbuf(control);
|
565
|
-
#
|
566
|
-
# // use cout as usual, the output appears in the text control
|
567
|
-
# ...
|
568
|
-
#
|
569
|
-
# std::cout.rdbuf(sbOld);
|
570
|
-
# ```
|
571
|
-
#
|
572
|
-
# But wxWidgets provides a convenient class to make it even simpler so instead you may just do
|
573
|
-
#
|
574
|
-
# ```
|
575
|
-
# #include <iostream>
|
576
|
-
#
|
577
|
-
# wxTextCtrl *control = new wxTextCtrl(...);
|
578
|
-
#
|
579
|
-
# wxStreamToTextRedirector redirect(control);
|
580
|
-
#
|
581
|
-
# // all output to cout goes into the text control until the exit from
|
582
|
-
# // current scope
|
583
|
-
# ```
|
584
|
-
#
|
585
|
-
# See {Wx::StreamToTextRedirector} for more details.
|
586
551
|
#
|
587
552
|
# == Event Handling.
|
588
553
|
#
|
@@ -591,16 +556,20 @@ module Wx
|
|
591
556
|
#
|
592
557
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
|
593
558
|
# Event handler methods for events emitted by this class:
|
559
|
+
#
|
594
560
|
# - {Wx::EvtHandler#evt_text}(id, meth = nil, &block): Respond to a {Wx::EVT_TEXT} event, generated when the text changes. Notice that this event will be sent when the text controls contents changes whether this is due to user input or comes from the program itself (for example, if {Wx::TextCtrl#set_value} is called); see {Wx::TextCtrl#change_value} for a function which does not send this event. This event is however not sent during the control creation.
|
561
|
+
#
|
595
562
|
# - {Wx::EvtHandler#evt_text_enter}(id, meth = nil, &block): Respond to a {Wx::EVT_TEXT_ENTER} event, generated when enter is pressed in a text control which must have {Wx::TE_PROCESS_ENTER} style for this event to be generated.
|
563
|
+
#
|
596
564
|
# - {Wx::EvtHandler#evt_text_url}(id, meth = nil, &block): A mouse event occurred over an URL in the text control.
|
565
|
+
#
|
597
566
|
# - {Wx::EvtHandler#evt_text_maxlen}(id, meth = nil, &block): This event is generated when the user tries to enter more text into the control than the limit set by {Wx::TextCtrl#set_max_length}, see its description.
|
598
567
|
#
|
599
568
|
# ===
|
600
569
|
#
|
601
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
602
|
-
# </td><td>
|
603
|
-
# </td><td>
|
570
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
571
|
+
# </td><td> wxGTK Appearance
|
572
|
+
# </td><td> wxOSX Appearance
|
604
573
|
# </td></tr></table></div>
|
605
574
|
# @see Wx::TextCtrl#create
|
606
575
|
# @see Wx::Validator
|
@@ -614,14 +583,14 @@ module Wx
|
|
614
583
|
# This feature is enabled by default and will replace any new line (<code>\n</code>) character entered into a single-line text field with the space character. Usually single-line text fields are not expected to hold multiple lines of text (that is what {Wx::TE_MULTILINE} is for, after all) and it is impossible to have multiple lines of text in them under non-Mac platforms. However, under macOS/Cocoa, a single-line text control can still show multiple lines and this function allows to lift the restriction preventing multiple lines from being entered unless {Wx::TE_MULTILINE} is specified.
|
615
584
|
# This function is only available for macOS/Cocoa. It also has no effect if the {Wx::TE_MULTILINE} flag is set on a text control.
|
616
585
|
#
|
617
|
-
# Availability: only available for the
|
586
|
+
# Availability: only available for the wxOSX/Cocoa port. {Wx::osx}
|
618
587
|
# @param enable [true,false]
|
619
588
|
# @return [void]
|
620
589
|
def osx_enable_new_line_replacement(enable) end
|
621
590
|
|
622
591
|
# @overload initialize()
|
623
592
|
# Default ctor.
|
624
|
-
# @return [TextCtrl]
|
593
|
+
# @return [Wx::TextCtrl]
|
625
594
|
# @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr)
|
626
595
|
# Constructor, creating and showing a text control.
|
627
596
|
# The horizontal scrollbar ({Wx::HSCROLL} style flag) will only be created for multi-line text controls. Without a horizontal scrollbar, text lines that don't fit in the control's size will be wrapped (but no newline character is inserted). Single line controls don't have a horizontal scrollbar, the text is automatically scrolled so that the insertion point is always visible.
|
@@ -635,7 +604,7 @@ module Wx
|
|
635
604
|
# @param style [Integer] Window style. See {Wx::TextCtrl}.
|
636
605
|
# @param validator [Wx::Validator] Window validator.
|
637
606
|
# @param name [String] Window name.
|
638
|
-
# @return [TextCtrl]
|
607
|
+
# @return [Wx::TextCtrl]
|
639
608
|
def initialize(*args) end
|
640
609
|
|
641
610
|
# Creates the text control for two-step construction.
|
@@ -648,7 +617,7 @@ module Wx
|
|
648
617
|
# @param style [Integer]
|
649
618
|
# @param validator [Wx::Validator]
|
650
619
|
# @param name [String]
|
651
|
-
# @return [
|
620
|
+
# @return []
|
652
621
|
def create(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr) end
|
653
622
|
|
654
623
|
# Resets the internal modified flag as if the current changes had been saved.
|
@@ -656,7 +625,7 @@ module Wx
|
|
656
625
|
def discard_edits; end
|
657
626
|
|
658
627
|
# Delete the undo history.
|
659
|
-
# Currently only implemented in
|
628
|
+
# Currently only implemented in wxMSW (for controls using {Wx::TE_RICH2} style only) and wxOSX (for multiline text controls only), does nothing in the other ports or for the controls not using the appropriate styles.
|
660
629
|
# @return [void]
|
661
630
|
def empty_undo_buffer; end
|
662
631
|
|
@@ -664,16 +633,16 @@ module Wx
|
|
664
633
|
# The event object should be the same as the one passed to EVT_KEY_DOWN handler previously by wxWidgets. Please note that this function doesn't currently work correctly for all keys under any platform but MSW.
|
665
634
|
# true if the event resulted in a change to the control, false otherwise.
|
666
635
|
# @param event [Wx::KeyEvent]
|
667
|
-
# @return [
|
636
|
+
# @return []
|
668
637
|
def emulate_key_press(event) end
|
669
638
|
|
670
639
|
# Enable or disable native spell checking on this text control if it is available on the current platform.
|
671
|
-
# Currently this is supported in
|
672
|
-
# When using
|
640
|
+
# Currently this is supported in wxMSW (when running under Windows 8 or later), wxGTK when using GTK 3 and wxOSX. In addition, wxMSW requires that the text control has the {Wx::TE_RICH2} style set, while wxOSX requires that the control has the {Wx::TE_MULTILINE} style.
|
641
|
+
# When using wxGTK, this method only works if gspell library was available during the library build.
|
673
642
|
#
|
674
643
|
# true if proof checking has been successfully enabled or disabled, false otherwise (usually because the corresponding functionality is not available under the current platform or for this type of text control).
|
675
644
|
# @param options [Wx::TextProofOptions] A {Wx::TextProofOptions} object specifying the desired behaviour of the proof checker (e.g. language to use, spell check, grammar check, etc.) and whether the proof checks should be enabled at all. By default, spelling checks for the current language are enabled. Passing Wx::TextProofOptions#disable disables all the checks.
|
676
|
-
# @return [
|
645
|
+
# @return []
|
677
646
|
def enable_proof_check(options=(Wx::TextProofOptions.default())) end
|
678
647
|
|
679
648
|
# Returns the style currently used for the new text.
|
@@ -698,7 +667,7 @@ module Wx
|
|
698
667
|
alias_method :line_text, :get_line_text
|
699
668
|
|
700
669
|
# Returns the number of lines in the text control buffer.
|
701
|
-
# The returned number is the number of logical lines, i.e. just the count of the number of newline characters in the control + 1, for
|
670
|
+
# The returned number is the number of logical lines, i.e. just the count of the number of newline characters in the control + 1, for wxGTK and wxOSX/Cocoa ports while it is the number of physical lines, i.e. the count of lines actually shown in the control, in wxMSW. Because of this discrepancy, it is not recommended to use this function.
|
702
671
|
# Note that even empty text controls have one line (where the insertion point is), so {Wx::TextCtrl#get_number_of_lines} never returns 0.
|
703
672
|
# @return [Integer]
|
704
673
|
def get_number_of_lines; end
|
@@ -711,13 +680,13 @@ module Wx
|
|
711
680
|
# @see Wx::TextAttr
|
712
681
|
# @param position [Integer]
|
713
682
|
# @param style [Wx::TextAttr]
|
714
|
-
# @return [
|
683
|
+
# @return []
|
715
684
|
def get_style(position, style) end
|
716
685
|
alias_method :style, :get_style
|
717
686
|
|
718
687
|
# Finds the row and column of the character at the specified point.
|
719
688
|
# If the return code is not {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} the row and column of the character closest to this position are returned, otherwise the output parameters are not modified.
|
720
|
-
# Please note that this function is currently only implemented in {Wx::Univ},
|
689
|
+
# Please note that this function is currently only implemented in {Wx::Univ}, wxMSW and wxGTK ports and always returns {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} in the other ports.
|
721
690
|
# @see Wx::TextCtrl#position_to_xy
|
722
691
|
# @see Wx::TextCtrl#xy_to_position
|
723
692
|
# @param pt [Array(Integer, Integer), Wx::Point] The position of the point to check, in window device coordinates.
|
@@ -727,14 +696,14 @@ module Wx
|
|
727
696
|
# Returns true if the text has been modified by user.
|
728
697
|
# Note that calling {Wx::TextCtrl#set_value} doesn't make the control modified.
|
729
698
|
# @see Wx::TextCtrl#mark_dirty
|
730
|
-
# @return [
|
699
|
+
# @return []
|
731
700
|
def is_modified; end
|
732
701
|
alias_method :modified?, :is_modified
|
733
702
|
|
734
703
|
# Returns true if this is a multi line edit control and false otherwise.
|
735
704
|
#
|
736
705
|
# @see Wx::TextCtrl#is_single_line
|
737
|
-
# @return [
|
706
|
+
# @return []
|
738
707
|
def is_multi_line; end
|
739
708
|
alias_method :multi_line?, :is_multi_line
|
740
709
|
|
@@ -742,7 +711,7 @@ module Wx
|
|
742
711
|
#
|
743
712
|
# @see Wx::TextCtrl#is_single_line
|
744
713
|
# @see Wx::TextCtrl#is_multi_line
|
745
|
-
# @return [
|
714
|
+
# @return []
|
746
715
|
def is_single_line; end
|
747
716
|
alias_method :single_line?, :is_single_line
|
748
717
|
|
@@ -756,7 +725,7 @@ module Wx
|
|
756
725
|
# true if successful, false otherwise.
|
757
726
|
# @param filename [String] The filename of the file to load.
|
758
727
|
# @param fileType [Integer] The type of file to load. This is currently ignored in {Wx::TextCtrl}.
|
759
|
-
# @return [
|
728
|
+
# @return []
|
760
729
|
def load_file(filename, fileType=Wx::TEXT_TYPE_ANY) end
|
761
730
|
|
762
731
|
# Mark text as modified (dirty).
|
@@ -776,12 +745,12 @@ module Wx
|
|
776
745
|
# true on success, false on failure (most likely due to a too large position parameter).
|
777
746
|
# @see Wx::TextCtrl#xy_to_position
|
778
747
|
# @param pos [Integer] Position.
|
779
|
-
# @return [Array(Integer, Integer), nil]
|
748
|
+
# @return [Array(,Array(Integer, Integer), nil)]
|
780
749
|
def position_to_xy(pos) end
|
781
750
|
|
782
751
|
# Converts given text position to client coordinates in pixels.
|
783
752
|
# This function allows finding where is the character at the given position displayed in the text control.
|
784
|
-
# Availability: only available for the
|
753
|
+
# Availability: only available for the wxMSW, wxGTK ports. {Wx::msw},{Wx::gtk} . Additionally, wxGTK only implements this method for multiline controls and {Wx::DEFAULT_POSITION} is always returned for the single line ones.
|
785
754
|
#
|
786
755
|
# On success returns a {Wx::Point} which contains client coordinates for the given position in pixels, otherwise returns {Wx::DEFAULT_POSITION}.
|
787
756
|
# @see Wx::TextCtrl#xy_to_position
|
@@ -794,7 +763,7 @@ module Wx
|
|
794
763
|
# true if the operation was successful, false otherwise.
|
795
764
|
# @param filename [String] The name of the file in which to save the text.
|
796
765
|
# @param fileType [Integer] The type of file to save. This is currently ignored in {Wx::TextCtrl}.
|
797
|
-
# @return [
|
766
|
+
# @return []
|
798
767
|
def save_file(filename=(''), fileType=Wx::TEXT_TYPE_ANY) end
|
799
768
|
|
800
769
|
# Changes the default style to use for the new text which is going to be added to the control.
|
@@ -805,7 +774,7 @@ module Wx
|
|
805
774
|
# true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).
|
806
775
|
# @see Wx::TextCtrl#get_default_style
|
807
776
|
# @param style [Wx::TextAttr] The style for the new text.
|
808
|
-
# @return [
|
777
|
+
# @return []
|
809
778
|
def set_default_style(style) end
|
810
779
|
alias_method :default_style=, :set_default_style
|
811
780
|
|
@@ -827,7 +796,7 @@ module Wx
|
|
827
796
|
# @param start [Integer] The start of the range to change.
|
828
797
|
# @param end_ [Integer]
|
829
798
|
# @param style [Wx::TextAttr] The new style for the range.
|
830
|
-
# @return [
|
799
|
+
# @return []
|
831
800
|
def set_style(start, end_, style) end
|
832
801
|
|
833
802
|
# Makes the line containing the given position visible.
|
@@ -61,7 +61,7 @@ module Wx
|
|
61
61
|
def auto_complete(*args) end
|
62
62
|
|
63
63
|
# Call this function to enable auto-completion of the text typed in a single-line text control using all valid file system paths.
|
64
|
-
# Notice that currently this function is only implemented in
|
64
|
+
# Notice that currently this function is only implemented in wxMSW port and does nothing under the other platforms.
|
65
65
|
#
|
66
66
|
# true if the auto-completion was enabled or false if the operation failed, typically because auto-completion is not supported by the current platform.
|
67
67
|
# @see Wx::TextEntry#auto_complete
|
@@ -70,7 +70,7 @@ module Wx
|
|
70
70
|
|
71
71
|
# Call this function to enable auto-completion of the text using the file system directories.
|
72
72
|
# Unlike {Wx::TextEntry#auto_complete_file_names} which completes both file names and directories, this function only completes the directory names.
|
73
|
-
# Notice that currently this function is only implemented in
|
73
|
+
# Notice that currently this function is only implemented in wxMSW port and does nothing under the other platforms.
|
74
74
|
#
|
75
75
|
# true if the auto-completion was enabled or false if the operation failed, typically because auto-completion is not supported by the current platform.
|
76
76
|
# @see Wx::TextEntry#auto_complete
|
@@ -135,15 +135,13 @@ module Wx
|
|
135
135
|
# Notice that insertion position is, in general, different from the index of the character the cursor position at in the string returned by {Wx::TextEntry#get_value}. While this is always the case for the single line controls, multi-line controls can use two characters <code>"\\r\\n"</code> as line separator (this is notably the case under MSW) meaning that indices in the control and its string value are offset by 1 for every line.
|
136
136
|
# Hence to correctly get the character at the current cursor position, taking into account that there can be none if the cursor is at the end of the string, you could do the following:
|
137
137
|
#
|
138
|
-
# ```
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
# if ( pos == tc->GetLastPosition() )
|
143
|
-
# return wxString();
|
138
|
+
# ```ruby
|
139
|
+
# def get_current_char(txt_ctrl)
|
140
|
+
# pos = txt_ctrl.get_insertion_point
|
141
|
+
# return '' if pos == txt_ctrl.get_last_position
|
144
142
|
#
|
145
|
-
#
|
146
|
-
#
|
143
|
+
# txt_ctrl.get_range(pos, pos + 1)
|
144
|
+
# end
|
147
145
|
# ```
|
148
146
|
# @return [Integer]
|
149
147
|
def get_insertion_point; end
|
@@ -238,7 +236,7 @@ module Wx
|
|
238
236
|
# This function sets the maximum number of characters the user can enter into the control.
|
239
237
|
# In other words, it allows limiting the text value length to len not counting the terminating NUL character.
|
240
238
|
# If len is 0, the previously set max length limit, if any, is discarded and the user may enter as much text as the underlying native text control widget supports (typically at least 32Kb). If the user tries to enter more characters into the text control when it already is filled up to the maximal length, a {Wx::EVT_TEXT_MAXLEN} event is sent to notify the program about it (giving it the possibility to show an explanatory message, for example) and the extra input is discarded.
|
241
|
-
# Note that in
|
239
|
+
# Note that in wxGTK this function may only be used with single line text controls.
|
242
240
|
# @param len [Integer]
|
243
241
|
# @return [void]
|
244
242
|
def set_max_length(len) end
|
@@ -343,33 +341,24 @@ module Wx
|
|
343
341
|
# A simpler base class for custom completer objects.
|
344
342
|
# This class may be simpler to use than the base {Wx::TextCompleter} as it allows to implement only a single virtual method instead of two of them (at the price of storing all completions in a temporary array).
|
345
343
|
# Here is a simple example of a custom completer that completes the names of some chess pieces. Of course, as the total list here has only four items it would have been much simpler to just specify the array containing all the completions in this example but the same approach could be used when the total number of completions is much higher provided the number of possibilities for each word is still relatively small:
|
346
|
-
# ```
|
347
|
-
# class MyTextCompleter
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
351
|
-
#
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
# res.push_back("black queen");
|
362
|
-
# }
|
363
|
-
# else
|
364
|
-
# {
|
365
|
-
# res.push_back("white");
|
366
|
-
# res.push_back("black");
|
367
|
-
# }
|
368
|
-
# }
|
369
|
-
# };
|
344
|
+
# ```ruby
|
345
|
+
# class MyTextCompleter < Wx::TextCompleterSimple
|
346
|
+
#
|
347
|
+
# def get_completions(prefix)
|
348
|
+
# firstWord = prefix.split(' ').shift
|
349
|
+
# if firstWord == 'white'
|
350
|
+
# ['white pawn', 'white rook']
|
351
|
+
# elsif firstWord == 'black'
|
352
|
+
# ['black king', 'black queen']
|
353
|
+
# else
|
354
|
+
# ['white', 'black']
|
355
|
+
# end
|
356
|
+
# end
|
357
|
+
#
|
358
|
+
# end
|
370
359
|
# ...
|
371
|
-
#
|
372
|
-
#
|
360
|
+
# text_ctrl = ...
|
361
|
+
# text_ctrl.auto_complete(MyTextCompleter.new)
|
373
362
|
# ```
|
374
363
|
#
|
375
364
|
# ===
|
@@ -383,9 +372,8 @@ module Wx
|
|
383
372
|
# Please notice that the returned values should start with the prefix, otherwise they will be simply ignored, making adding them to the array in the first place useless.
|
384
373
|
# Notice that this function may be called from thread other than main one (this is currently always the case under MSW) so the appropriate synchronization mechanism should be used to protect the shared data.
|
385
374
|
# @param prefix [String] The possibly empty prefix that the user had already entered.
|
386
|
-
# @
|
387
|
-
|
388
|
-
def get_completions(prefix, res) end
|
375
|
+
# @return [Array<String>]
|
376
|
+
def get_completions(prefix) end
|
389
377
|
alias_method :completions, :get_completions
|
390
378
|
|
391
379
|
end # TextCompleterSimple
|
@@ -53,14 +53,14 @@ module Wx
|
|
53
53
|
# @overload set_text_validator(validator)
|
54
54
|
# Associate a validator with the text control used by the dialog.
|
55
55
|
# These methods can be used to limit the user entry to only some characters, e.g.
|
56
|
-
# ```
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
56
|
+
# ```ruby
|
57
|
+
# Wx::TextEntryDialog(self, ...) do |dlg|
|
58
|
+
# dlg.set_text_validator(Wx::FILTER_ALPHA)
|
59
|
+
# if dlg.show_modal == Wx::ID_OK
|
60
|
+
# # We can be certain that this string contains letters only.
|
61
|
+
# value = dlg.get_value
|
62
|
+
# end
|
63
|
+
# end
|
64
64
|
# ```
|
65
65
|
#
|
66
66
|
# The first overload uses the provided validator which can be of a custom class derived from {Wx::TextValidator} while the second one creates a {Wx::TextValidator} with the specified style.
|
@@ -69,14 +69,14 @@ module Wx
|
|
69
69
|
# @overload set_text_validator(style=Wx::TextValidatorStyle::FILTER_NONE)
|
70
70
|
# Associate a validator with the text control used by the dialog.
|
71
71
|
# These methods can be used to limit the user entry to only some characters, e.g.
|
72
|
-
# ```
|
73
|
-
#
|
74
|
-
#
|
75
|
-
#
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
72
|
+
# ```ruby
|
73
|
+
# Wx::TextEntryDialog(self, ...) do |dlg|
|
74
|
+
# dlg.set_text_validator(Wx::FILTER_ALPHA)
|
75
|
+
# if dlg.show_modal == Wx::ID_OK
|
76
|
+
# # We can be certain that this string contains letters only.
|
77
|
+
# value = dlg.get_value
|
78
|
+
# end
|
79
|
+
# end
|
80
80
|
# ```
|
81
81
|
#
|
82
82
|
# The first overload uses the provided validator which can be of a custom class derived from {Wx::TextValidator} while the second one creates a {Wx::TextValidator} with the specified style.
|
@@ -88,7 +88,7 @@ module Wx
|
|
88
88
|
# @overload initialize()
|
89
89
|
# Default constructor.
|
90
90
|
# Call {Wx::TextEntryDialog#create} to really create the dialog later.
|
91
|
-
# @return [TextEntryDialog]
|
91
|
+
# @return [Wx::TextEntryDialog]
|
92
92
|
# @overload initialize(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION)
|
93
93
|
# Constructor.
|
94
94
|
# Use {Wx::TextEntryDialog#show_modal} to show the dialog.
|
@@ -99,7 +99,7 @@ module Wx
|
|
99
99
|
# @param value [String]
|
100
100
|
# @param style [Integer]
|
101
101
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
102
|
-
# @return [TextEntryDialog]
|
102
|
+
# @return [Wx::TextEntryDialog]
|
103
103
|
def initialize(*args) end
|
104
104
|
|
105
105
|
# @param parent [Wx::Window] Parent window.
|
@@ -161,7 +161,7 @@ module Wx
|
|
161
161
|
# @param defaultValue [String] The default value, which may be the empty string.
|
162
162
|
# @param style [Integer] A dialog style, specifying the buttons ({Wx::OK}, {Wx::CANCEL}) and an optional {Wx::GeometryCentre::CENTRE} style. You do not need to specify the {Wx::TE_PASSWORD} style, it is always applied.
|
163
163
|
# @param pos [Array(Integer, Integer), Wx::Point] Dialog position.
|
164
|
-
# @return [PasswordEntryDialog]
|
164
|
+
# @return [Wx::PasswordEntryDialog]
|
165
165
|
def initialize(parent, message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, defaultValue=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION) end
|
166
166
|
|
167
167
|
end # PasswordEntryDialog
|
@@ -80,17 +80,6 @@ module Wx
|
|
80
80
|
#
|
81
81
|
class TextValidator < Validator
|
82
82
|
|
83
|
-
# @overload initialize(validator)
|
84
|
-
# Copy constructor.
|
85
|
-
# @param validator [Wx::TextValidator]
|
86
|
-
# @return [TextValidator]
|
87
|
-
# @overload initialize(style=Wx::TextValidatorStyle::FILTER_NONE, valPtr=nil)
|
88
|
-
# Constructor taking a style and optional pointer to a {Wx::String} variable.
|
89
|
-
# @param style [Integer] One or more of the {Wx::TextValidatorStyle} styles. See {Wx::TextValidator#set_style}.
|
90
|
-
# @param valPtr [String] A pointer to a {Wx::String} variable that contains the value. This variable should have a lifetime equal to or longer than the validator lifetime (which is usually determined by the lifetime of the window).
|
91
|
-
# @return [TextValidator]
|
92
|
-
def initialize(*args) end
|
93
|
-
|
94
83
|
# Clones the text validator using the copy constructor.
|
95
84
|
# @return [Wx::TextValidator]
|
96
85
|
def clone; end
|