wxruby3 0.9.2-x64-mingw-ucrt → 0.9.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 +35 -29
- data/README.md +24 -15
- 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/bitmap_combobox.rb +17 -21
- data/lib/wx/core/combobox.rb +13 -3
- data/lib/wx/core/controlwithitems.rb +40 -130
- data/lib/wx/core/enum.rb +17 -1
- data/lib/wx/core/event.rb +6 -1
- data/lib/wx/core/events/evt_list.rb +5 -4
- data/lib/wx/core/evthandler.rb +8 -2
- data/lib/wx/core/generic_validator.rb +312 -0
- data/lib/wx/core/listbox.rb +2 -2
- data/lib/wx/core/log.rb +1 -1
- data/lib/wx/core/owner_drawn_combobox.rb +45 -0
- data/lib/wx/core/size.rb +4 -0
- data/lib/wx/core/sizer.rb +1 -2
- data/lib/wx/core/standard_paths.rb +22 -0
- data/lib/wx/core/text_entry.rb +4 -1
- data/lib/wx/core/validator.rb +70 -5
- data/lib/wx/core/window.rb +3 -7
- data/lib/wx/doc/art_locator.rb +1 -0
- data/lib/wx/doc/comboctrl.rb +18 -0
- data/lib/wx/doc/controlwithitems.rb +16 -0
- data/lib/wx/doc/date_picker_ctrl.rb +23 -0
- data/lib/wx/doc/editable_listbox.rb +44 -0
- data/lib/wx/doc/enum.rb +15 -0
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/extra/12_client_data.md +89 -0
- data/lib/wx/doc/extra/13_validators.md +139 -0
- data/lib/wx/doc/gdi_common.rb +4 -0
- data/lib/wx/doc/gen/about_dialog_info.rb +25 -0
- data/lib/wx/doc/gen/accelerator.rb +7 -1
- data/lib/wx/doc/gen/accessible.rb +13 -0
- data/lib/wx/doc/gen/activity_indicator.rb +7 -0
- data/lib/wx/doc/gen/animation.rb +12 -0
- data/lib/wx/doc/gen/animation_ctrl.rb +10 -0
- data/lib/wx/doc/gen/any_button.rb +17 -1
- data/lib/wx/doc/gen/app.rb +35 -1
- data/lib/wx/doc/gen/app_traits.rb +38 -5
- data/lib/wx/doc/gen/art_provider.rb +14 -0
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -0
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +24 -1
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +9 -1
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -1
- data/lib/wx/doc/gen/aui/aui_notebook.rb +20 -2
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +2 -1
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +30 -1
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +11 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -0
- data/lib/wx/doc/gen/banner_window.rb +7 -0
- data/lib/wx/doc/gen/bitmap.rb +64 -3
- data/lib/wx/doc/gen/bitmap_button.rb +6 -1
- data/lib/wx/doc/gen/bitmap_combo_box.rb +9 -3
- data/lib/wx/doc/gen/book_ctrl_base.rb +17 -2
- data/lib/wx/doc/gen/book_ctrl_event.rb +3 -1
- data/lib/wx/doc/gen/box_sizer.rb +5 -0
- data/lib/wx/doc/gen/brush.rb +16 -1
- data/lib/wx/doc/gen/busy_info.rb +8 -0
- data/lib/wx/doc/gen/button.rb +11 -3
- data/lib/wx/doc/gen/calculate_layout_event.rb +4 -0
- data/lib/wx/doc/gen/calendar_ctrl.rb +22 -0
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -0
- data/lib/wx/doc/gen/calendar_event.rb +3 -1
- data/lib/wx/doc/gen/caret.rb +3 -0
- data/lib/wx/doc/gen/check_box.rb +10 -0
- data/lib/wx/doc/gen/check_list_box.rb +3 -0
- data/lib/wx/doc/gen/choice.rb +14 -2
- data/lib/wx/doc/gen/choicebook.rb +1 -0
- data/lib/wx/doc/gen/client_dc.rb +1 -0
- data/lib/wx/doc/gen/clipboard.rb +9 -0
- data/lib/wx/doc/gen/collapsible_pane.rb +3 -0
- data/lib/wx/doc/gen/collapsible_pane_event.rb +1 -0
- data/lib/wx/doc/gen/colour.rb +20 -0
- data/lib/wx/doc/gen/colour_dialog.rb +10 -0
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +4 -0
- data/lib/wx/doc/gen/colour_picker_event.rb +1 -0
- data/lib/wx/doc/gen/combo_box.rb +20 -1
- data/lib/wx/doc/gen/combo_ctrl.rb +54 -295
- data/lib/wx/doc/gen/command_link_button.rb +8 -0
- data/lib/wx/doc/gen/context_help_button.rb +7 -1
- data/lib/wx/doc/gen/control.rb +12 -0
- data/lib/wx/doc/gen/control_with_items.rb +45 -9
- data/lib/wx/doc/gen/core.rb +2 -2
- data/lib/wx/doc/gen/cursor.rb +4 -0
- data/lib/wx/doc/gen/data_format.rb +1 -0
- data/lib/wx/doc/gen/data_object.rb +27 -5
- data/lib/wx/doc/gen/date_event.rb +2 -1
- data/lib/wx/doc/gen/date_picker_ctrl.rb +7 -1
- data/lib/wx/doc/gen/dc.rb +87 -3
- data/lib/wx/doc/gen/dial_up_event.rb +2 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +12 -0
- data/lib/wx/doc/gen/dialog.rb +42 -3
- data/lib/wx/doc/gen/dir_dialog.rb +6 -1
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +5 -0
- data/lib/wx/doc/gen/drag_drop.rb +20 -0
- data/lib/wx/doc/gen/drag_image.rb +7 -0
- data/lib/wx/doc/gen/editable_list_box.rb +5 -3
- data/lib/wx/doc/gen/event.rb +26 -11
- data/lib/wx/doc/gen/event_blocker.rb +2 -1
- data/lib/wx/doc/gen/event_filter.rb +3 -0
- data/lib/wx/doc/gen/event_list.rb +4 -4
- data/lib/wx/doc/gen/events.rb +165 -26
- data/lib/wx/doc/gen/evt_handler.rb +40 -2
- data/lib/wx/doc/gen/ext_help_controller.rb +9 -0
- data/lib/wx/doc/gen/file_ctrl.rb +11 -2
- data/lib/wx/doc/gen/file_ctrl_event.rb +5 -1
- data/lib/wx/doc/gen/file_dialog.rb +13 -0
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +12 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +9 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +2 -1
- data/lib/wx/doc/gen/file_picker_ctrl.rb +4 -0
- data/lib/wx/doc/gen/file_system.rb +17 -1
- data/lib/wx/doc/gen/find_dialog_event.rb +2 -1
- data/lib/wx/doc/gen/find_replace_data.rb +1 -0
- data/lib/wx/doc/gen/find_replace_dialog.rb +3 -0
- data/lib/wx/doc/gen/flex_grid_sizer.rb +13 -0
- data/lib/wx/doc/gen/font.rb +75 -3
- data/lib/wx/doc/gen/font_data.rb +14 -0
- data/lib/wx/doc/gen/font_dialog.rb +6 -0
- data/lib/wx/doc/gen/font_picker_ctrl.rb +8 -0
- data/lib/wx/doc/gen/font_picker_event.rb +1 -0
- data/lib/wx/doc/gen/frame.rb +24 -7
- data/lib/wx/doc/gen/fs_file.rb +22 -0
- data/lib/wx/doc/gen/gauge.rb +8 -0
- data/lib/wx/doc/gen/gb_sizer_item.rb +5 -0
- data/lib/wx/doc/gen/gcdc.rb +2 -0
- data/lib/wx/doc/gen/gdi_common.rb +50 -0
- data/lib/wx/doc/gen/gdi_object.rb +1 -0
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +7 -0
- data/lib/wx/doc/gen/graphics_context.rb +36 -7
- data/lib/wx/doc/gen/graphics_object.rb +24 -0
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +14 -2
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +9 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +6 -0
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +229 -7
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +4 -1
- data/lib/wx/doc/gen/grid/grid_event.rb +4 -1
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_size_event.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_string_table.rb +7 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +27 -1
- data/lib/wx/doc/gen/grid/grid_table_message.rb +1 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +24 -4
- data/lib/wx/doc/gen/grid_sizer.rb +11 -0
- data/lib/wx/doc/gen/gui_event_loop.rb +12 -0
- data/lib/wx/doc/gen/header_ctrl.rb +106 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +5 -1
- data/lib/wx/doc/gen/help_controller.rb +11 -0
- data/lib/wx/doc/gen/help_provider.rb +12 -3
- data/lib/wx/doc/gen/html/html_cell.rb +25 -0
- data/lib/wx/doc/gen/html/html_cell_event.rb +3 -1
- data/lib/wx/doc/gen/html/html_easy_printing.rb +13 -1
- data/lib/wx/doc/gen/html/html_help_controller.rb +18 -0
- data/lib/wx/doc/gen/html/html_help_data.rb +5 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +8 -0
- data/lib/wx/doc/gen/html/html_link_event.rb +1 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +49 -9
- data/lib/wx/doc/gen/html/html_printout.rb +7 -0
- data/lib/wx/doc/gen/html/html_window.rb +31 -0
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +2 -1
- data/lib/wx/doc/gen/hyperlink_event.rb +1 -0
- data/lib/wx/doc/gen/icon.rb +19 -1
- data/lib/wx/doc/gen/icon_location.rb +1 -0
- data/lib/wx/doc/gen/image.rb +67 -10
- data/lib/wx/doc/gen/image_list.rb +12 -2
- data/lib/wx/doc/gen/info_bar.rb +12 -0
- data/lib/wx/doc/gen/keyboard_state.rb +11 -0
- data/lib/wx/doc/gen/list_box.rb +20 -3
- data/lib/wx/doc/gen/list_ctrl.rb +89 -0
- data/lib/wx/doc/gen/list_event.rb +11 -1
- data/lib/wx/doc/gen/listbook.rb +1 -0
- data/lib/wx/doc/gen/locale.rb +22 -0
- data/lib/wx/doc/gen/log.rb +42 -0
- data/lib/wx/doc/gen/mdi_client_window.rb +4 -1
- data/lib/wx/doc/gen/mdi_frame.rb +27 -4
- data/lib/wx/doc/gen/media_ctrl.rb +17 -0
- data/lib/wx/doc/gen/media_event.rb +2 -1
- data/lib/wx/doc/gen/memory_dc.rb +10 -0
- data/lib/wx/doc/gen/menu.rb +48 -7
- data/lib/wx/doc/gen/menu_bar.rb +32 -13
- data/lib/wx/doc/gen/menu_item.rb +26 -0
- data/lib/wx/doc/gen/message_dialog.rb +10 -0
- data/lib/wx/doc/gen/mini_frame.rb +5 -2
- data/lib/wx/doc/gen/mirror_dc.rb +1 -0
- data/lib/wx/doc/gen/mouse_state.rb +1 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +3 -1
- data/lib/wx/doc/gen/non_owned_window.rb +3 -0
- data/lib/wx/doc/gen/notebook.rb +11 -1
- data/lib/wx/doc/gen/num_validator.rb +37 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +4 -0
- data/lib/wx/doc/gen/object.rb +3 -0
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +340 -0
- data/lib/wx/doc/gen/paint_dc.rb +1 -0
- data/lib/wx/doc/gen/palette.rb +5 -0
- data/lib/wx/doc/gen/panel.rb +10 -2
- data/lib/wx/doc/gen/pen.rb +30 -1
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +4 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +6 -1
- data/lib/wx/doc/gen/pg/pg_editor.rb +61 -15
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +2 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +198 -81
- data/lib/wx/doc/gen/pg/pg_property.rb +129 -52
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +56 -14
- data/lib/wx/doc/gen/pg/property_grid_event.rb +16 -6
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +98 -37
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +29 -7
- data/lib/wx/doc/gen/pg/property_grid_page.rb +11 -4
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +7 -2
- data/lib/wx/doc/gen/picker_base.rb +11 -1
- data/lib/wx/doc/gen/platform_info.rb +31 -0
- data/lib/wx/doc/gen/popup_window.rb +5 -0
- data/lib/wx/doc/gen/progress_dialog.rb +4 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +7 -1
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +1 -0
- data/lib/wx/doc/gen/prt/preview_frame.rb +4 -0
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -0
- data/lib/wx/doc/gen/prt/print_data.rb +27 -0
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -0
- data/lib/wx/doc/gen/prt/printer.rb +42 -5
- data/lib/wx/doc/gen/prt/printer_dc.rb +2 -0
- data/lib/wx/doc/gen/query_layout_info_event.rb +9 -0
- data/lib/wx/doc/gen/radio_box.rb +19 -0
- data/lib/wx/doc/gen/radio_button.rb +9 -0
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +63 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +23 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +35 -9
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +10 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +17 -7
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +11 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +2 -1
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +25 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +4 -0
- data/lib/wx/doc/gen/rearrange_list.rb +9 -0
- data/lib/wx/doc/gen/region.rb +42 -13
- data/lib/wx/doc/gen/region_iterator.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +25 -8
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +41 -4
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +23 -11
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +74 -0
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +6 -1
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +8 -0
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +6 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +1 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +4 -0
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +7 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +64 -4
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +51 -4
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +13 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +9 -4
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +3 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +2 -0
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +1 -0
- data/lib/wx/doc/gen/sash_event.rb +5 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +10 -0
- data/lib/wx/doc/gen/sash_window.rb +3 -0
- data/lib/wx/doc/gen/screen_dc.rb +1 -0
- data/lib/wx/doc/gen/scroll_bar.rb +11 -2
- data/lib/wx/doc/gen/scrolled_canvas.rb +20 -4
- data/lib/wx/doc/gen/scrolled_control.rb +20 -4
- data/lib/wx/doc/gen/scrolled_window.rb +20 -4
- data/lib/wx/doc/gen/search_ctrl.rb +6 -0
- data/lib/wx/doc/gen/simplebook.rb +7 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +3 -1
- data/lib/wx/doc/gen/sizer.rb +79 -9
- data/lib/wx/doc/gen/sizer_item.rb +16 -2
- data/lib/wx/doc/gen/slider.rb +23 -0
- data/lib/wx/doc/gen/spin_button.rb +9 -0
- data/lib/wx/doc/gen/spin_ctrl.rb +11 -0
- data/lib/wx/doc/gen/spin_ctrl_double.rb +7 -0
- data/lib/wx/doc/gen/spin_double_event.rb +4 -1
- data/lib/wx/doc/gen/spin_event.rb +2 -1
- data/lib/wx/doc/gen/splash_screen.rb +2 -0
- data/lib/wx/doc/gen/splitter_event.rb +10 -1
- data/lib/wx/doc/gen/splitter_window.rb +38 -14
- data/lib/wx/doc/gen/static_bitmap.rb +99 -2
- data/lib/wx/doc/gen/static_box.rb +6 -0
- data/lib/wx/doc/gen/static_box_sizer.rb +3 -0
- data/lib/wx/doc/gen/static_line.rb +4 -0
- data/lib/wx/doc/gen/static_text.rb +5 -0
- data/lib/wx/doc/gen/status_bar.rb +17 -3
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +174 -6
- data/lib/wx/doc/gen/stc/styled_text_event.rb +27 -1
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +7 -0
- data/lib/wx/doc/gen/svg_file_dc.rb +9 -0
- data/lib/wx/doc/gen/system_options.rb +8 -0
- data/lib/wx/doc/gen/system_settings.rb +7 -0
- data/lib/wx/doc/gen/task_bar_button.rb +12 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +5 -0
- data/lib/wx/doc/gen/task_bar_icon_event.rb +2 -1
- data/lib/wx/doc/gen/text_attr.rb +27 -0
- data/lib/wx/doc/gen/text_ctrl.rb +27 -3
- data/lib/wx/doc/gen/text_entry.rb +43 -5
- data/lib/wx/doc/gen/text_entry_dialog.rb +12 -0
- data/lib/wx/doc/gen/text_validator.rb +16 -0
- data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -0
- data/lib/wx/doc/gen/timer.rb +8 -0
- data/lib/wx/doc/gen/timer_event.rb +1 -0
- data/lib/wx/doc/gen/tip_provider.rb +5 -0
- data/lib/wx/doc/gen/toggle_button.rb +68 -0
- data/lib/wx/doc/gen/tool_bar.rb +57 -14
- data/lib/wx/doc/gen/tool_tip.rb +6 -0
- data/lib/wx/doc/gen/toolbook.rb +3 -0
- data/lib/wx/doc/gen/top_level_window.rb +34 -3
- data/lib/wx/doc/gen/tree_ctrl.rb +49 -0
- data/lib/wx/doc/gen/tree_event.rb +7 -1
- data/lib/wx/doc/gen/treebook.rb +9 -0
- data/lib/wx/doc/gen/ui_action_simulator.rb +4 -0
- data/lib/wx/doc/gen/utils.rb +55 -0
- data/lib/wx/doc/gen/v_list_box.rb +21 -0
- data/lib/wx/doc/gen/v_scrolled_window.rb +15 -0
- data/lib/wx/doc/gen/validator.rb +9 -13
- data/lib/wx/doc/gen/variant.rb +6 -0
- data/lib/wx/doc/gen/window.rb +260 -52
- data/lib/wx/doc/gen/window_dc.rb +2 -0
- data/lib/wx/doc/gen/window_disabler.rb +1 -0
- data/lib/wx/doc/gen/with_images.rb +7 -1
- data/lib/wx/doc/gen/wizard.rb +18 -0
- data/lib/wx/doc/gen/wizard_event.rb +3 -1
- data/lib/wx/doc/gen/wizard_page.rb +5 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +4 -0
- data/lib/wx/doc/gen/wrap_sizer.rb +5 -0
- data/lib/wx/doc/gen/xml_node.rb +14 -0
- data/lib/wx/doc/gen/xml_resource.rb +22 -0
- data/lib/wx/doc/generic_validator.rb +95 -0
- data/lib/wx/doc/html/simple_html_listbox.rb +22 -0
- data/lib/wx/doc/num_validator.rb +387 -0
- data/lib/wx/doc/owner_drawn_combobox.rb +96 -0
- data/lib/wx/doc/pg/numeric_property_validator.rb +33 -0
- data/lib/wx/doc/static_bitmap.rb +25 -0
- data/lib/wx/doc/text_validator.rb +10 -0
- data/lib/wx/doc/validator.rb +113 -0
- data/lib/wx/doc/window.rb +30 -0
- data/lib/wx/html/events/evt_list.rb +0 -10
- data/lib/wx/html/simple_html_listbox.rb +24 -91
- data/lib/wx/keyword_defs.rb +34 -2
- data/lib/wx/rbn/ribbon_gallery.rb +0 -21
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/lib/config/mingw.rb +12 -0
- data/samples/aui/aui.rb +1237 -1233
- data/samples/calendar/calendar.rb +293 -289
- data/samples/controls/get_item_sample.rb +83 -79
- data/samples/controls/htlbox.rb +331 -327
- data/samples/dialogs/dialogs.rb +682 -694
- data/samples/dialogs/wizard.rb +52 -55
- data/samples/dragdrop/dragdrop.rb +146 -142
- data/samples/drawing/bitmap.rb +29 -26
- data/samples/drawing/bitmap_image.rb +84 -80
- data/samples/drawing/graphics_drawing.rb +209 -205
- data/samples/drawing/image_prt.rb +344 -340
- data/samples/drawing/maths_images.rb +18 -1
- data/samples/drawing/rmagic_bitmap_image.rb +88 -84
- data/samples/etc/caret.rb +306 -0
- data/samples/etc/miniframe.rb +65 -60
- data/samples/etc/sash.rb +109 -105
- data/samples/etc/scrollwin.rb +86 -80
- data/samples/etc/system_settings.rb +216 -209
- data/samples/event/activation.rb +72 -67
- data/samples/event/event.rb +160 -153
- data/samples/event/threaded.rb +8 -1
- data/samples/event/update_ui_event.rb +67 -60
- data/samples/grid/grid.rb +188 -181
- data/samples/grid/gridtablebase.rb +136 -129
- data/samples/html/html.rb +208 -204
- data/samples/mdi/mdi.rb +59 -54
- data/samples/minimal/minimal.rb +54 -51
- data/samples/minimal/nothing.rb +1 -0
- data/samples/printing/printing.rb +367 -377
- data/samples/printing/printing2.rb +203 -198
- data/samples/propgrid/propgrid.rb +2312 -2308
- data/samples/propgrid/propgrid_minimal.rb +57 -50
- data/samples/ribbon/ribbon.rb +780 -774
- data/samples/sampler/ext.rb +0 -33
- data/samples/sampler/sample.rb +4 -9
- data/samples/sampler.rb +1 -1
- data/samples/splash/splash.rb +118 -116
- data/samples/text/rich_textctrl.rb +207 -201
- data/samples/text/richtext.rb +1409 -1405
- data/samples/text/scintilla.rb +137 -128
- data/samples/text/textctrl.rb +89 -83
- data/samples/text/unicode.rb +175 -168
- data/samples/treectrl/treectrl.rb +1430 -1426
- data/samples/widgets/activityindicator.rb +95 -0
- data/samples/widgets/art/widgets/activityindicator.xpm +278 -0
- data/samples/widgets/art/widgets/bmpbtn.xpm +37 -0
- data/samples/widgets/art/widgets/bmpcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/button.xpm +54 -0
- data/samples/widgets/art/widgets/checkbox.xpm +54 -0
- data/samples/{bigdemo/icons → widgets/art/widgets}/choice.xpm +1 -1
- data/samples/widgets/art/widgets/choicebk.xpm +54 -0
- data/samples/widgets/art/widgets/clrpicker.xpm +193 -0
- data/samples/widgets/art/widgets/combobox.xpm +54 -0
- data/samples/widgets/art/widgets/datepick.xpm +200 -0
- data/samples/widgets/art/widgets/dirctrl.xpm +54 -0
- data/samples/widgets/art/widgets/dirpicker.xpm +213 -0
- data/samples/widgets/art/widgets/filepicker.xpm +214 -0
- data/samples/widgets/art/widgets/fontpicker.xpm +185 -0
- data/samples/widgets/art/widgets/gauge.xpm +54 -0
- data/samples/widgets/art/widgets/header.xpm +54 -0
- data/samples/widgets/art/widgets/hyperlnk.xpm +54 -0
- data/samples/widgets/art/widgets/listbook.xpm +54 -0
- data/samples/widgets/art/widgets/listbox.xpm +54 -0
- data/samples/widgets/art/widgets/native.xpm +81 -0
- data/samples/widgets/art/widgets/notebook.xpm +54 -0
- data/samples/widgets/art/widgets/odcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/radiobox.xpm +54 -0
- data/samples/widgets/art/widgets/scrolbar.xpm +54 -0
- data/samples/widgets/art/widgets/slider.xpm +54 -0
- data/samples/widgets/art/widgets/spinbtn.xpm +40 -0
- data/samples/widgets/art/widgets/statbmp.xpm +40 -0
- data/samples/widgets/art/widgets/statbox.xpm +54 -0
- data/samples/widgets/art/widgets/stattext.xpm +54 -0
- data/samples/widgets/art/widgets/text.xpm +54 -0
- data/samples/widgets/art/widgets/timepick.xpm +207 -0
- data/samples/widgets/art/widgets/toggle.xpm +54 -0
- data/samples/widgets/art/widgets/toucan.png +0 -0
- data/samples/widgets/bmpcombobox.rb +651 -0
- data/samples/widgets/button.rb +462 -0
- data/samples/widgets/checkbox.rb +211 -0
- data/samples/widgets/choice.rb +287 -0
- data/samples/widgets/clrpicker.rb +156 -0
- data/samples/widgets/combobox.rb +516 -0
- data/samples/widgets/datepick.rb +215 -0
- data/samples/widgets/dirctrl.rb +265 -0
- data/samples/widgets/dirpicker.rb +158 -0
- data/samples/widgets/editlbox.rb +122 -0
- data/samples/widgets/filectrl.rb +216 -0
- data/samples/widgets/filepicker.rb +214 -0
- data/samples/widgets/fontpicker.rb +135 -0
- data/samples/widgets/gauge.rb +311 -0
- data/samples/widgets/headerctrl.rb +236 -0
- data/samples/widgets/hyperlink.rb +203 -0
- data/samples/widgets/itemcontainer.rb +185 -0
- data/samples/widgets/listbox.rb +473 -0
- data/samples/widgets/notebook.rb +488 -0
- data/samples/widgets/odcombobox.rb +608 -0
- data/samples/widgets/radiobox.rb +328 -0
- data/samples/widgets/searchctrl.rb +159 -0
- data/samples/widgets/slider.rb +594 -0
- data/samples/widgets/spinbtn.rb +443 -0
- data/samples/widgets/statbmp.rb +130 -0
- data/samples/widgets/static.rb +436 -0
- data/samples/widgets/textctrl.rb +700 -0
- data/samples/widgets/timepick.rb +148 -0
- data/samples/widgets/tn_widgets.png +0 -0
- data/samples/widgets/toggle.rb +385 -0
- data/samples/widgets/widgets.rb +1233 -0
- data/samples/xrc/custom_xrc_sample.rb +47 -41
- data/samples/xrc/xrc_sample.rb +53 -47
- data/tests/test_event_handling.rb +52 -34
- data/tests/test_events.rb +7 -0
- data/tests/test_item_data.rb +24 -0
- data/tests/test_sizer.rb +44 -1
- data/tests/test_validators.rb +805 -0
- metadata +87 -137
- data/lib/wx/core/choice.rb +0 -14
- data/lib/wx/core/combo_ctrl.rb +0 -110
- data/samples/bigdemo/About.rbw +0 -39
- data/samples/bigdemo/ColorPanel.rbw +0 -23
- data/samples/bigdemo/GridSimple.rbw +0 -78
- data/samples/bigdemo/MDIDemo.rbw +0 -57
- data/samples/bigdemo/PopupMenu.rbw +0 -146
- data/samples/bigdemo/ShapedWindow.rbw +0 -128
- data/samples/bigdemo/Sizers.rbw +0 -541
- data/samples/bigdemo/bigdemo.rb +0 -817
- data/samples/bigdemo/demoTemplate.rbw +0 -33
- data/samples/bigdemo/helpfile.htb +0 -0
- data/samples/bigdemo/icons/Test 015.jpg +0 -0
- data/samples/bigdemo/icons/Test 015.png +0 -0
- data/samples/bigdemo/icons/choice.bmp +0 -0
- data/samples/bigdemo/icons/combo.bmp +0 -0
- data/samples/bigdemo/icons/combo.xpm +0 -27
- data/samples/bigdemo/icons/copy.xpm +0 -25
- data/samples/bigdemo/icons/cut.xpm +0 -24
- data/samples/bigdemo/icons/gauge.bmp +0 -0
- data/samples/bigdemo/icons/gauge.xpm +0 -27
- data/samples/bigdemo/icons/help.xpm +0 -25
- data/samples/bigdemo/icons/list.bmp +0 -0
- data/samples/bigdemo/icons/list.xpm +0 -27
- data/samples/bigdemo/icons/mondrian.ico +0 -0
- data/samples/bigdemo/icons/mondrian.xpm +0 -44
- data/samples/bigdemo/icons/new.xpm +0 -24
- data/samples/bigdemo/icons/ogl.ico +0 -0
- data/samples/bigdemo/icons/ogl.xpm +0 -45
- data/samples/bigdemo/icons/open.xpm +0 -26
- data/samples/bigdemo/icons/paste.bmp +0 -0
- data/samples/bigdemo/icons/paste.xpm +0 -38
- data/samples/bigdemo/icons/pointy.png +0 -0
- data/samples/bigdemo/icons/preview.xpm +0 -26
- data/samples/bigdemo/icons/print.xpm +0 -26
- data/samples/bigdemo/icons/radio.bmp +0 -0
- data/samples/bigdemo/icons/radio.xpm +0 -27
- data/samples/bigdemo/icons/robert.xpm +0 -415
- data/samples/bigdemo/icons/sashtest.ico +0 -0
- data/samples/bigdemo/icons/save.xpm +0 -25
- data/samples/bigdemo/icons/smiles.bmp +0 -0
- data/samples/bigdemo/icons/smiles.xpm +0 -39
- data/samples/bigdemo/icons/smiley.ico +0 -0
- data/samples/bigdemo/icons/smiley.xpm +0 -42
- data/samples/bigdemo/icons/stattext.xpm +0 -24
- data/samples/bigdemo/icons/test2.bmp +0 -0
- data/samples/bigdemo/icons/test2.png +0 -0
- data/samples/bigdemo/icons/test2.xpm +0 -79
- data/samples/bigdemo/icons/text.bmp +0 -0
- data/samples/bigdemo/icons/text.xpm +0 -27
- data/samples/bigdemo/icons/tog1.bmp +0 -0
- data/samples/bigdemo/icons/tog1.xpm +0 -38
- data/samples/bigdemo/icons/tog2.bmp +0 -0
- data/samples/bigdemo/icons/tog2.xpm +0 -38
- data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
- data/samples/bigdemo/icons/wxwin.ico +0 -0
- data/samples/bigdemo/icons/wxwin16x16.png +0 -0
- data/samples/bigdemo/icons/wxwin16x16.xpm +0 -25
- data/samples/bigdemo/icons/wxwin32x32.png +0 -0
- data/samples/bigdemo/icons/wxwin48x48.png +0 -0
- data/samples/bigdemo/run.rb +0 -98
- data/samples/bigdemo/tips.txt +0 -7
- data/samples/bigdemo/utils.rb +0 -20
- data/samples/bigdemo/wxArtProvider.rbw +0 -282
- data/samples/bigdemo/wxBitmapButton.rbw +0 -65
- data/samples/bigdemo/wxButton.rbw +0 -64
- data/samples/bigdemo/wxCalendarCtrl.rbw +0 -59
- data/samples/bigdemo/wxCheckBox.rbw +0 -50
- data/samples/bigdemo/wxCheckListBox.rbw +0 -65
- data/samples/bigdemo/wxChoice.rbw +0 -47
- data/samples/bigdemo/wxChoicebook.rbw +0 -78
- data/samples/bigdemo/wxColourDialog.rbw +0 -33
- data/samples/bigdemo/wxComboBox.rbw +0 -77
- data/samples/bigdemo/wxCursor.rbw +0 -136
- data/samples/bigdemo/wxDialog.rbw +0 -74
- data/samples/bigdemo/wxDirDialog.rbw +0 -29
- data/samples/bigdemo/wxDragImage.rbw +0 -70
- data/samples/bigdemo/wxFileDialog.rbw +0 -37
- data/samples/bigdemo/wxFileDialog_Save.rbw +0 -35
- data/samples/bigdemo/wxFindReplaceDialog.rbw +0 -82
- data/samples/bigdemo/wxFontDialog.rbw +0 -200
- data/samples/bigdemo/wxFrame.rbw +0 -53
- data/samples/bigdemo/wxGauge.rbw +0 -65
- data/samples/bigdemo/wxGenericDirCtrl.rbw +0 -74
- data/samples/bigdemo/wxGrid.rbw +0 -66
- data/samples/bigdemo/wxHtmlHelpController.rbw +0 -52
- data/samples/bigdemo/wxListBox.rbw +0 -140
- data/samples/bigdemo/wxListCtrl_virtual.rbw +0 -112
- data/samples/bigdemo/wxMDIWindows.rbw +0 -50
- data/samples/bigdemo/wxMenu.rbw +0 -247
- data/samples/bigdemo/wxMessageDialog.rbw +0 -27
- data/samples/bigdemo/wxMiniFrame.rbw +0 -70
- data/samples/bigdemo/wxMultipleChoiceDialog.rbw +0 -29
- data/samples/bigdemo/wxNotebook.rbw +0 -136
- data/samples/bigdemo/wxProgressDialog.rbw +0 -43
- data/samples/bigdemo/wxRadioBox.rbw +0 -72
- data/samples/bigdemo/wxRadioButton.rbw +0 -125
- data/samples/bigdemo/wxSashWindow.rbw +0 -141
- data/samples/bigdemo/wxScrolledMessageDialog.rbw +0 -57
- data/samples/bigdemo/wxScrolledWindow.rbw +0 -199
- data/samples/bigdemo/wxSingleChoiceDialog.rbw +0 -33
- data/samples/bigdemo/wxSlider.rbw +0 -42
- data/samples/bigdemo/wxSpinButton.rbw +0 -50
- data/samples/bigdemo/wxSpinCtrl.rbw +0 -51
- data/samples/bigdemo/wxSplitterWindow.rbw +0 -63
- data/samples/bigdemo/wxStaticBitmap.rbw +0 -47
- data/samples/bigdemo/wxStaticText.rbw +0 -55
- data/samples/bigdemo/wxStatusBar.rbw +0 -126
- data/samples/bigdemo/wxTextCtrl.rbw +0 -149
- data/samples/bigdemo/wxTextEntryDialog.rbw +0 -31
- data/samples/bigdemo/wxToggleButton.rbw +0 -49
- data/samples/bigdemo/wxToolBar.rbw +0 -131
- data/samples/bigdemo/wxTreeCtrl.rbw +0 -191
- data/samples/caret/caret.rb +0 -298
- data/samples/caret/mondrian.xpm +0 -44
- data/samples/controls/books.rb +0 -189
- data/samples/controls/choice.xpm +0 -27
- data/samples/controls/combo.xpm +0 -27
- data/samples/controls/controls.rb +0 -1099
- data/samples/controls/gauge.xpm +0 -27
- data/samples/controls/list.xpm +0 -27
- data/samples/controls/mondrian.ico +0 -0
- data/samples/controls/mondrian.xpm +0 -44
- data/samples/controls/radio.xpm +0 -27
- data/samples/controls/stattext.xpm +0 -24
- data/samples/controls/test2.bmp +0 -0
- data/samples/controls/text.xpm +0 -27
- data/samples/controls/tn_books.png +0 -0
- data/samples/controls/tn_controls.png +0 -0
- data/samples/etc/choice.rb +0 -87
- data/samples/etc/tn_choice.png +0 -0
- data/samples/text/mondrian.ico +0 -0
- data/samples/text/mondrian.xpm +0 -44
- /data/samples/{caret → etc}/tn_caret.png +0 -0
@@ -7,6 +7,7 @@
|
|
7
7
|
module Wx::STC
|
8
8
|
|
9
9
|
# A wxWidgets implementation of the Scintilla source code editing component.
|
10
|
+
#
|
10
11
|
# As well as features found in standard text editing components, Scintilla includes features especially useful when editing and debugging source code. These include support for syntax styling, error indicators, code completion and call tips.
|
11
12
|
# The selection margin can contain markers like those used in debuggers to indicate breakpoints and the current line. Styling choices are more open than with many editors, allowing the use of proportional fonts, bold and italics, multiple foreground and background colours and multiple fonts.
|
12
13
|
# {Wx::STC::StyledTextCtrl} is a 1 to 1 mapping of "raw" scintilla interface, whose documentation can be found in the Scintilla website (http://www.scintilla.org/).
|
@@ -89,6 +90,7 @@ module Wx::STC
|
|
89
90
|
def initialize(*args) end
|
90
91
|
|
91
92
|
# Create the UI elements for a STC that was created with the default ctor.
|
93
|
+
#
|
92
94
|
# (For 2-phase create.)
|
93
95
|
# @param parent [Wx::Window]
|
94
96
|
# @param id [Integer]
|
@@ -206,13 +208,14 @@ module Wx::STC
|
|
206
208
|
def allocate_extended_styles(numberStyles) end
|
207
209
|
|
208
210
|
# Find some text in the document.
|
211
|
+
#
|
209
212
|
# The position (starting from zero) in the document at which the text was found or {Wx::STC::STC_INVALID_POSITION} if the search fails.
|
210
213
|
#
|
211
214
|
# <div class="wxrb-remark">
|
212
215
|
# <b>Remark:</b>
|
213
216
|
# <p>A backwards search can be performed by setting minPos to be greater than maxPos.
|
214
217
|
# </p>
|
215
|
-
# </div
|
218
|
+
# </div>
|
216
219
|
# @param minPos [Integer] The position (starting from zero) in the document at which to begin the search
|
217
220
|
# @param maxPos [Integer] The last position (starting from zero) in the document to which the search will be restricted.
|
218
221
|
# @param text [String] The text to search for.
|
@@ -262,24 +265,28 @@ module Wx::STC
|
|
262
265
|
def target_whole_document; end
|
263
266
|
|
264
267
|
# Replace the target text with the argument text.
|
268
|
+
#
|
265
269
|
# Text is counted so it can contain NULs. Returns the length of the replacement text.
|
266
270
|
# @param text [String]
|
267
271
|
# @return [Integer]
|
268
272
|
def replace_target(text) end
|
269
273
|
|
270
274
|
# Replace the target text with the argument text after \d processing.
|
275
|
+
#
|
271
276
|
# Text is counted so it can contain NULs. Looks for \d where d is between 1 and 9 and replaces these with the strings matched in the last search operation which were surrounded by \( and \). Returns the length of the replacement text including any change caused by processing the \d patterns.
|
272
277
|
# @param text [String]
|
273
278
|
# @return [Integer]
|
274
279
|
def replace_target_re(text) end
|
275
280
|
|
276
281
|
# Search for a counted string in the target and set the target to the found range.
|
282
|
+
#
|
277
283
|
# Text is counted so it can contain NULs. Returns length of range or -1 for failure in which case target is not moved.
|
278
284
|
# @param text [String]
|
279
285
|
# @return [Integer]
|
280
286
|
def search_in_target(text) end
|
281
287
|
|
282
288
|
# Set the search flags used by SearchInTarget.
|
289
|
+
#
|
283
290
|
# The input should be a bit list containing one or more of the wxSTC_FIND_* constants.
|
284
291
|
# @param searchFlags [Integer]
|
285
292
|
# @return [void]
|
@@ -287,6 +294,7 @@ module Wx::STC
|
|
287
294
|
alias_method :search_flags=, :set_search_flags
|
288
295
|
|
289
296
|
# Get the search flags used by SearchInTarget.
|
297
|
+
#
|
290
298
|
# The return value will be a bit list containing one or more of the wxSTC_FIND_* constants.
|
291
299
|
# @return [Integer]
|
292
300
|
def get_search_flags; end
|
@@ -303,6 +311,7 @@ module Wx::STC
|
|
303
311
|
def search_anchor; end
|
304
312
|
|
305
313
|
# Find some text starting at the search anchor.
|
314
|
+
#
|
306
315
|
# Does not ensure the selection is visible.
|
307
316
|
# @param searchFlags [Integer]
|
308
317
|
# @param text [String]
|
@@ -310,6 +319,7 @@ module Wx::STC
|
|
310
319
|
def search_next(searchFlags, text) end
|
311
320
|
|
312
321
|
# Find some text starting at the search anchor and moving backwards.
|
322
|
+
#
|
313
323
|
# Does not ensure the selection is visible.
|
314
324
|
# @param searchFlags [Integer]
|
315
325
|
# @param text [String]
|
@@ -349,6 +359,7 @@ module Wx::STC
|
|
349
359
|
def clear; end
|
350
360
|
|
351
361
|
# Copy a range of text to the clipboard.
|
362
|
+
#
|
352
363
|
# Positions are clipped into the document.
|
353
364
|
# @param start [Integer]
|
354
365
|
# @param end_ [Integer]
|
@@ -377,6 +388,7 @@ module Wx::STC
|
|
377
388
|
def copy_allow_line; end
|
378
389
|
|
379
390
|
# Change error status - 0 = OK.
|
391
|
+
#
|
380
392
|
# The input should be one of the wxSTC_STATUS_* constants.
|
381
393
|
# @param status [Integer]
|
382
394
|
# @return [void]
|
@@ -384,6 +396,7 @@ module Wx::STC
|
|
384
396
|
alias_method :status=, :set_status
|
385
397
|
|
386
398
|
# Get error status.
|
399
|
+
#
|
387
400
|
# The return value will be one of the wxSTC_STATUS_* constants.
|
388
401
|
# @return [Integer]
|
389
402
|
def get_status; end
|
@@ -410,6 +423,7 @@ module Wx::STC
|
|
410
423
|
alias_method :undo_collection, :get_undo_collection
|
411
424
|
|
412
425
|
# Start a sequence of actions that is undone and redone as a unit.
|
426
|
+
#
|
413
427
|
# May be nested.
|
414
428
|
# @return [void]
|
415
429
|
def begin_undo_action; end
|
@@ -432,6 +446,7 @@ module Wx::STC
|
|
432
446
|
def undo; end
|
433
447
|
|
434
448
|
# Add a container action to the undo stack.
|
449
|
+
#
|
435
450
|
# The flags argument can be either 0 or {Wx::STC::STC_UNDO_MAY_COALESCE}.
|
436
451
|
# @param token [Integer]
|
437
452
|
# @param flags [Integer]
|
@@ -479,6 +494,7 @@ module Wx::STC
|
|
479
494
|
def goto_pos(caret) end
|
480
495
|
|
481
496
|
# Set the selection anchor to a position.
|
497
|
+
#
|
482
498
|
# The anchor is the opposite end of the selection from the caret.
|
483
499
|
# @param anchor [Integer]
|
484
500
|
# @return [void]
|
@@ -486,6 +502,7 @@ module Wx::STC
|
|
486
502
|
alias_method :anchor=, :set_anchor
|
487
503
|
|
488
504
|
# Retrieve the text of the line containing the caret.
|
505
|
+
#
|
489
506
|
# linePos can optionally be passed in to receive the index of the caret on the line.
|
490
507
|
# @return [Array(String,Integer)]
|
491
508
|
def get_cur_line; end
|
@@ -544,6 +561,7 @@ module Wx::STC
|
|
544
561
|
alias_method :empty_selection=, :set_empty_selection
|
545
562
|
|
546
563
|
# Returns the number of lines in the document.
|
564
|
+
#
|
547
565
|
# There is always at least one.
|
548
566
|
# @return [Integer]
|
549
567
|
def get_line_count; end
|
@@ -585,6 +603,7 @@ module Wx::STC
|
|
585
603
|
alias_method :text_length, :get_text_length
|
586
604
|
|
587
605
|
# Measure the pixel width of some text in a particular style.
|
606
|
+
#
|
588
607
|
# Does not handle tab or control characters.
|
589
608
|
# @param style [Integer]
|
590
609
|
# @param text [String]
|
@@ -618,18 +637,21 @@ module Wx::STC
|
|
618
637
|
def choose_caret_x; end
|
619
638
|
|
620
639
|
# Given a valid document position, return the previous position taking code page into account.
|
640
|
+
#
|
621
641
|
# Returns 0 if passed 0.
|
622
642
|
# @param pos [Integer]
|
623
643
|
# @return [Integer]
|
624
644
|
def position_before(pos) end
|
625
645
|
|
626
646
|
# Given a valid document position, return the next position taking code page into account.
|
647
|
+
#
|
627
648
|
# Maximum value returned is the last position in the document.
|
628
649
|
# @param pos [Integer]
|
629
650
|
# @return [Integer]
|
630
651
|
def position_after(pos) end
|
631
652
|
|
632
653
|
# Given a valid document position, return a position that differs in a number of characters.
|
654
|
+
#
|
633
655
|
# Returned value is always between 0 and last position in document.
|
634
656
|
# @param pos [Integer]
|
635
657
|
# @param relative [Integer]
|
@@ -643,6 +665,7 @@ module Wx::STC
|
|
643
665
|
alias_method :selection_mode=, :set_selection_mode
|
644
666
|
|
645
667
|
# Get the mode of the current selection.
|
668
|
+
#
|
646
669
|
# The return value will be one of the wxSTC_SEL_* constants.
|
647
670
|
# @return [Integer]
|
648
671
|
def get_selection_mode; end
|
@@ -661,6 +684,7 @@ module Wx::STC
|
|
661
684
|
alias_method :line_sel_end_position, :get_line_sel_end_position
|
662
685
|
|
663
686
|
# Find the position of a column on a line taking into account tabs and multi-byte characters.
|
687
|
+
#
|
664
688
|
# If beyond end of line, return line end position.
|
665
689
|
# @param line [Integer]
|
666
690
|
# @param column [Integer]
|
@@ -674,6 +698,7 @@ module Wx::STC
|
|
674
698
|
def char_position_from_point(x, y) end
|
675
699
|
|
676
700
|
# Find the position of a character from a point within the window.
|
701
|
+
#
|
677
702
|
# Return {Wx::STC::STC_INVALID_POSITION} if not close to text.
|
678
703
|
# @param x [Integer]
|
679
704
|
# @param y [Integer]
|
@@ -700,6 +725,7 @@ module Wx::STC
|
|
700
725
|
def move_selected_lines_down; end
|
701
726
|
|
702
727
|
# Change the effect of pasting when there are multiple selections.
|
728
|
+
#
|
703
729
|
# The input should be one of the wxSTC_MULTIPASTE_* constants.
|
704
730
|
# @param multiPaste [Integer]
|
705
731
|
# @return [void]
|
@@ -707,6 +733,7 @@ module Wx::STC
|
|
707
733
|
alias_method :multi_paste=, :set_multi_paste
|
708
734
|
|
709
735
|
# Retrieve the effect of pasting when there are multiple selections.
|
736
|
+
#
|
710
737
|
# The return value will be one of the wxSTC_MULTIPASTE_* constants.
|
711
738
|
# @return [Integer]
|
712
739
|
def get_multi_paste; end
|
@@ -909,6 +936,7 @@ module Wx::STC
|
|
909
936
|
alias_method :rectangular_selection_anchor_virtual_space, :get_rectangular_selection_anchor_virtual_space
|
910
937
|
|
911
938
|
# Set options for virtual space behaviour.
|
939
|
+
#
|
912
940
|
# The input should be one of the wxSTC_VS_* constants.
|
913
941
|
# @param virtualSpaceOptions [Integer]
|
914
942
|
# @return [void]
|
@@ -916,12 +944,14 @@ module Wx::STC
|
|
916
944
|
alias_method :virtual_space_options=, :set_virtual_space_options
|
917
945
|
|
918
946
|
# Return options for virtual space behaviour.
|
947
|
+
#
|
919
948
|
# The return value will be one of the wxSTC_VS_* constants.
|
920
949
|
# @return [Integer]
|
921
950
|
def get_virtual_space_options; end
|
922
951
|
alias_method :virtual_space_options, :get_virtual_space_options
|
923
952
|
|
924
953
|
# On GTK+, allow selecting the modifier key to use for mouse-based rectangular selection.
|
954
|
+
#
|
925
955
|
# Often the window manager requires Alt+Mouse Drag for moving windows. Valid values are {Wx::STC::STC_KEYMOD_CTRL} (default), {Wx::STC::STC_KEYMOD_ALT}, or {Wx::STC::STC_KEYMOD_SUPER}.
|
926
956
|
# @param modifier [Integer]
|
927
957
|
# @return [void]
|
@@ -929,12 +959,14 @@ module Wx::STC
|
|
929
959
|
alias_method :rectangular_selection_modifier=, :set_rectangular_selection_modifier
|
930
960
|
|
931
961
|
# Get the modifier key used for rectangular selection.
|
962
|
+
#
|
932
963
|
# The return value will be a bit list containing one or more of the wxSTC_KEYMOD_* constants.
|
933
964
|
# @return [Integer]
|
934
965
|
def get_rectangular_selection_modifier; end
|
935
966
|
alias_method :rectangular_selection_modifier, :get_rectangular_selection_modifier
|
936
967
|
|
937
968
|
# Set the foreground colour of additional selections.
|
969
|
+
#
|
938
970
|
# Must have previously called SetSelFore with non-zero first argument for this to have an effect.
|
939
971
|
# @param fore [Wx::Colour,String,Symbol]
|
940
972
|
# @return [void]
|
@@ -942,6 +974,7 @@ module Wx::STC
|
|
942
974
|
alias_method :additional_sel_foreground=, :set_additional_sel_foreground
|
943
975
|
|
944
976
|
# Set the background colour of additional selections.
|
977
|
+
#
|
945
978
|
# Must have previously called SetSelBack with non-zero first argument for this to have an effect.
|
946
979
|
# @param back [Wx::Colour,String,Symbol]
|
947
980
|
# @return [void]
|
@@ -979,11 +1012,13 @@ module Wx::STC
|
|
979
1012
|
def swap_main_anchor_caret; end
|
980
1013
|
|
981
1014
|
# Add the next occurrence of the main selection to the set of selections as main.
|
1015
|
+
#
|
982
1016
|
# If the current selection is empty then select word around caret.
|
983
1017
|
# @return [void]
|
984
1018
|
def multiple_select_add_next; end
|
985
1019
|
|
986
1020
|
# Add each occurrence of the main selection in the target to the set of selections.
|
1021
|
+
#
|
987
1022
|
# If the current selection is empty then select word around caret.
|
988
1023
|
# @return [void]
|
989
1024
|
def multiple_select_add_each; end
|
@@ -1015,6 +1050,7 @@ module Wx::STC
|
|
1015
1050
|
def ensure_caret_visible; end
|
1016
1051
|
|
1017
1052
|
# Scroll the argument positions and the range between them into view giving priority to the primary position then the secondary position.
|
1053
|
+
#
|
1018
1054
|
# This may be used to make a search match visible.
|
1019
1055
|
# @param secondary [Integer]
|
1020
1056
|
# @param primary [Integer]
|
@@ -1044,6 +1080,7 @@ module Wx::STC
|
|
1044
1080
|
alias_method :scroll_width_tracking, :get_scroll_width_tracking
|
1045
1081
|
|
1046
1082
|
# Sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default).
|
1083
|
+
#
|
1047
1084
|
# Setting this to false allows scrolling one page below the last line.
|
1048
1085
|
# @param endAtLastLine [Boolean]
|
1049
1086
|
# @return [void]
|
@@ -1073,6 +1110,7 @@ module Wx::STC
|
|
1073
1110
|
alias_method :first_visible_line=, :set_first_visible_line
|
1074
1111
|
|
1075
1112
|
# Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc.
|
1113
|
+
#
|
1076
1114
|
# The first argument should be a bit list containing one or more of the wxSTC_VISIBLE_* constants.
|
1077
1115
|
# @param visiblePolicy [Integer]
|
1078
1116
|
# @param visibleSlop [Integer]
|
@@ -1091,6 +1129,7 @@ module Wx::STC
|
|
1091
1129
|
alias_method :x_offset, :get_x_offset
|
1092
1130
|
|
1093
1131
|
# Set the way the caret is kept visible when going sideways.
|
1132
|
+
#
|
1094
1133
|
# The exclusion zone is given in pixels.
|
1095
1134
|
# The first argument should be a bit list containing one or more of the wxSTC_CARET_* constants.
|
1096
1135
|
# @param caretPolicy [Integer]
|
@@ -1099,6 +1138,7 @@ module Wx::STC
|
|
1099
1138
|
def set_x_caret_policy(caretPolicy, caretSlop) end
|
1100
1139
|
|
1101
1140
|
# Set the way the line the caret is on is kept visible.
|
1141
|
+
#
|
1102
1142
|
# The exclusion zone is given in lines.
|
1103
1143
|
# The first argument should be a bit list containing one or more of the wxSTC_CARET_* constants.
|
1104
1144
|
# @param caretPolicy [Integer]
|
@@ -1112,6 +1152,7 @@ module Wx::STC
|
|
1112
1152
|
alias_method :view_white_space, :get_view_white_space
|
1113
1153
|
|
1114
1154
|
# Make white space characters invisible, always visible or visible outside indentation.
|
1155
|
+
#
|
1115
1156
|
# The input should be one of the wxSTC_WS_* constants.
|
1116
1157
|
# @param viewWS [Integer]
|
1117
1158
|
# @return [void]
|
@@ -1119,12 +1160,14 @@ module Wx::STC
|
|
1119
1160
|
alias_method :view_white_space=, :set_view_white_space
|
1120
1161
|
|
1121
1162
|
# Retrieve the current tab draw mode.
|
1163
|
+
#
|
1122
1164
|
# Returns one of {Wx::STC_TD_}* constants.
|
1123
1165
|
# @return [Integer]
|
1124
1166
|
def get_tab_draw_mode; end
|
1125
1167
|
alias_method :tab_draw_mode, :get_tab_draw_mode
|
1126
1168
|
|
1127
1169
|
# Set how tabs are drawn when visible.
|
1170
|
+
#
|
1128
1171
|
# The input should be one of the wxSTC_TD_* constants.
|
1129
1172
|
# @param tabDrawMode [Integer]
|
1130
1173
|
# @return [void]
|
@@ -1183,6 +1226,7 @@ module Wx::STC
|
|
1183
1226
|
alias_method :stc_cursor=, :set_stc_cursor
|
1184
1227
|
|
1185
1228
|
# Get cursor type.
|
1229
|
+
#
|
1186
1230
|
# The return value will be one of the wxSTC_CURSOR* constants.
|
1187
1231
|
# @return [Integer]
|
1188
1232
|
def get_stc_cursor; end
|
@@ -1221,6 +1265,7 @@ module Wx::STC
|
|
1221
1265
|
alias_method :eol_mode, :get_eol_mode
|
1222
1266
|
|
1223
1267
|
# Set the current end of line mode.
|
1268
|
+
#
|
1224
1269
|
# The input should be one of the wxSTC_EOL_* constants.
|
1225
1270
|
# @param eolMode [Integer]
|
1226
1271
|
# @return [void]
|
@@ -1239,6 +1284,7 @@ module Wx::STC
|
|
1239
1284
|
alias_method :view_eol=, :set_view_eol
|
1240
1285
|
|
1241
1286
|
# Set the line end types that the application wants to use.
|
1287
|
+
#
|
1242
1288
|
# May not be used if incompatible with lexer or encoding.
|
1243
1289
|
# The input should be one of the wxSTC_LINE_END_TYPE_* constants.
|
1244
1290
|
# @param lineEndBitSet [Integer]
|
@@ -1247,12 +1293,14 @@ module Wx::STC
|
|
1247
1293
|
alias_method :line_end_types_allowed=, :set_line_end_types_allowed
|
1248
1294
|
|
1249
1295
|
# Get the line end types currently allowed.
|
1296
|
+
#
|
1250
1297
|
# The return value will be one of the wxSTC_LINE_END_TYPE_* constants.
|
1251
1298
|
# @return [Integer]
|
1252
1299
|
def get_line_end_types_allowed; end
|
1253
1300
|
alias_method :line_end_types_allowed, :get_line_end_types_allowed
|
1254
1301
|
|
1255
1302
|
# Get the line end types currently recognised.
|
1303
|
+
#
|
1256
1304
|
# May be a subset of the allowed types due to lexer limitation.
|
1257
1305
|
# The return value will be one of the wxSTC_LINE_END_TYPE_* constants.
|
1258
1306
|
# @return [Integer]
|
@@ -1260,12 +1308,14 @@ module Wx::STC
|
|
1260
1308
|
alias_method :line_end_types_active, :get_line_end_types_active
|
1261
1309
|
|
1262
1310
|
# Bit set of LineEndType enumertion for which line ends beyond the standard LF, CR, and CRLF are supported by the lexer.
|
1311
|
+
#
|
1263
1312
|
# The return value will be a bit list containing one or more of the wxSTC_LINE_END_TYPE_* constants.
|
1264
1313
|
# @return [Integer]
|
1265
1314
|
def get_line_end_types_supported; end
|
1266
1315
|
alias_method :line_end_types_supported, :get_line_end_types_supported
|
1267
1316
|
|
1268
1317
|
# Set the set of characters making up words for when moving or selecting by word.
|
1318
|
+
#
|
1269
1319
|
# First sets defaults like SetCharsDefault.
|
1270
1320
|
# @param characters [String]
|
1271
1321
|
# @return [void]
|
@@ -1297,6 +1347,7 @@ module Wx::STC
|
|
1297
1347
|
alias_method :range_word?, :is_range_word
|
1298
1348
|
|
1299
1349
|
# Set the set of characters making up whitespace for when moving or selecting by word.
|
1350
|
+
#
|
1300
1351
|
# Should be called after SetWordChars.
|
1301
1352
|
# @param characters [String]
|
1302
1353
|
# @return [void]
|
@@ -1357,6 +1408,7 @@ module Wx::STC
|
|
1357
1408
|
alias_method :max_line_state, :get_max_line_state
|
1358
1409
|
|
1359
1410
|
# Sets limits to idle styling.
|
1411
|
+
#
|
1360
1412
|
# The input should be one of the wxSTC_IDLESTYLING_* constants.
|
1361
1413
|
# @param idleStyling [Integer]
|
1362
1414
|
# @return [void]
|
@@ -1364,6 +1416,7 @@ module Wx::STC
|
|
1364
1416
|
alias_method :idle_styling=, :set_idle_styling
|
1365
1417
|
|
1366
1418
|
# Retrieve the limits to idle styling.
|
1419
|
+
#
|
1367
1420
|
# The return value will be one of the wxSTC_IDLESTYLING_* constants.
|
1368
1421
|
# @return [Integer]
|
1369
1422
|
def get_idle_styling; end
|
@@ -1466,6 +1519,7 @@ module Wx::STC
|
|
1466
1519
|
def style_get_underline(style) end
|
1467
1520
|
|
1468
1521
|
# Get is a style mixed case, or to force upper or lower case.
|
1522
|
+
#
|
1469
1523
|
# The return value will be one of the wxSTC_CASE_* constants.
|
1470
1524
|
# @param style [Integer]
|
1471
1525
|
# @return [Integer]
|
@@ -1482,6 +1536,7 @@ module Wx::STC
|
|
1482
1536
|
def style_get_visible(style) end
|
1483
1537
|
|
1484
1538
|
# Get is a style changeable or not (read only).
|
1539
|
+
#
|
1485
1540
|
# Experimental feature, currently buggy.
|
1486
1541
|
# @param style [Integer]
|
1487
1542
|
# @return [Boolean]
|
@@ -1493,6 +1548,7 @@ module Wx::STC
|
|
1493
1548
|
def style_get_hot_spot(style) end
|
1494
1549
|
|
1495
1550
|
# Set a style to be mixed case, or to force upper or lower case.
|
1551
|
+
#
|
1496
1552
|
# The second argument should be one of the wxSTC_CASE_* constants.
|
1497
1553
|
# @param style [Integer]
|
1498
1554
|
# @param caseVisible [Integer]
|
@@ -1500,6 +1556,7 @@ module Wx::STC
|
|
1500
1556
|
def style_set_case(style, caseVisible) end
|
1501
1557
|
|
1502
1558
|
# Set the size of characters of a style.
|
1559
|
+
#
|
1503
1560
|
# Size is in points multiplied by 100.
|
1504
1561
|
# @param style [Integer]
|
1505
1562
|
# @param sizeHundredthPoints [Integer]
|
@@ -1512,6 +1569,7 @@ module Wx::STC
|
|
1512
1569
|
def style_get_size_fractional(style) end
|
1513
1570
|
|
1514
1571
|
# Set the weight of characters of a style.
|
1572
|
+
#
|
1515
1573
|
# The second argument can be an integer or one of the wxSTC_WEIGHT_* constants.
|
1516
1574
|
# @param style [Integer]
|
1517
1575
|
# @param weight [Integer]
|
@@ -1519,12 +1577,14 @@ module Wx::STC
|
|
1519
1577
|
def style_set_weight(style, weight) end
|
1520
1578
|
|
1521
1579
|
# Get the weight of characters of a style.
|
1580
|
+
#
|
1522
1581
|
# The return value will be an integer that is possibly one of the wxSTC_WEIGHT_* constants.
|
1523
1582
|
# @param style [Integer]
|
1524
1583
|
# @return [Integer]
|
1525
1584
|
def style_get_weight(style) end
|
1526
1585
|
|
1527
1586
|
# Set the character set of the font in a style.
|
1587
|
+
#
|
1528
1588
|
# Converts the Scintilla character set values to a {Wx::FontEncoding}.
|
1529
1589
|
# @param style [Integer]
|
1530
1590
|
# @param characterSet [Integer]
|
@@ -1544,6 +1604,7 @@ module Wx::STC
|
|
1544
1604
|
def style_set_visible(style, visible) end
|
1545
1605
|
|
1546
1606
|
# Set a style to be changeable or not (read only).
|
1607
|
+
#
|
1547
1608
|
# Experimental feature, currently buggy.
|
1548
1609
|
# @param style [Integer]
|
1549
1610
|
# @param changeable [Boolean]
|
@@ -1596,6 +1657,7 @@ module Wx::STC
|
|
1596
1657
|
alias_method :caret_period, :get_caret_period
|
1597
1658
|
|
1598
1659
|
# Get the time in milliseconds that the caret is on and off.
|
1660
|
+
#
|
1599
1661
|
# 0 = steady on.
|
1600
1662
|
# @param periodMilliseconds [Integer]
|
1601
1663
|
# @return [void]
|
@@ -1685,12 +1747,14 @@ module Wx::STC
|
|
1685
1747
|
alias_method :hotspot_single_line, :get_hotspot_single_line
|
1686
1748
|
|
1687
1749
|
# Can the caret preferred x position only be changed by explicit movement commands?
|
1750
|
+
#
|
1688
1751
|
# The return value will be one of the wxSTC_CARETSTICKY_* constants.
|
1689
1752
|
# @return [Integer]
|
1690
1753
|
def get_caret_sticky; end
|
1691
1754
|
alias_method :caret_sticky, :get_caret_sticky
|
1692
1755
|
|
1693
1756
|
# Stop the caret preferred x position changing when the user types.
|
1757
|
+
#
|
1694
1758
|
# The input should be one of the wxSTC_CARETSTICKY_* constants.
|
1695
1759
|
# @param useCaretStickyBehaviour [Integer]
|
1696
1760
|
# @return [void]
|
@@ -1713,6 +1777,7 @@ module Wx::STC
|
|
1713
1777
|
alias_method :caret_line_back_alpha, :get_caret_line_back_alpha
|
1714
1778
|
|
1715
1779
|
# Set the style of the caret to be drawn.
|
1780
|
+
#
|
1716
1781
|
# The input should be one of the wxSTC_CARETSTYLE_* constants.
|
1717
1782
|
# @param caretStyle [Integer]
|
1718
1783
|
# @return [void]
|
@@ -1720,6 +1785,7 @@ module Wx::STC
|
|
1720
1785
|
alias_method :caret_style=, :set_caret_style
|
1721
1786
|
|
1722
1787
|
# Returns the current style of the caret.
|
1788
|
+
#
|
1723
1789
|
# The return value will be one of the wxSTC_CARETSTYLE_* constants.
|
1724
1790
|
# @return [Integer]
|
1725
1791
|
def get_caret_style; end
|
@@ -1765,6 +1831,7 @@ module Wx::STC
|
|
1765
1831
|
def clear_representation(encodedCharacter) end
|
1766
1832
|
|
1767
1833
|
# Set a margin to be either numeric or symbolic.
|
1834
|
+
#
|
1768
1835
|
# The second argument should be one of the wxSTC_MARGIN_* constants.
|
1769
1836
|
# @param margin [Integer]
|
1770
1837
|
# @param marginType [Integer]
|
@@ -1772,6 +1839,7 @@ module Wx::STC
|
|
1772
1839
|
def set_margin_type(margin, marginType) end
|
1773
1840
|
|
1774
1841
|
# Retrieve the type of a margin.
|
1842
|
+
#
|
1775
1843
|
# The return value will be one of the wxSTC_MARGIN_* constants.
|
1776
1844
|
# @param margin [Integer]
|
1777
1845
|
# @return [Integer]
|
@@ -1815,6 +1883,7 @@ module Wx::STC
|
|
1815
1883
|
alias_method :margin_sensitive, :get_margin_sensitive
|
1816
1884
|
|
1817
1885
|
# Set the cursor shown when the mouse is inside a margin.
|
1886
|
+
#
|
1818
1887
|
# The second argument should be one of the wxSTC_CURSOR* constants.
|
1819
1888
|
# @param margin [Integer]
|
1820
1889
|
# @param cursor [Integer]
|
@@ -1822,6 +1891,7 @@ module Wx::STC
|
|
1822
1891
|
def set_margin_cursor(margin, cursor) end
|
1823
1892
|
|
1824
1893
|
# Retrieve the cursor shown in a margin.
|
1894
|
+
#
|
1825
1895
|
# The return value will be one of the wxSTC_CURSOR* constants.
|
1826
1896
|
# @param margin [Integer]
|
1827
1897
|
# @return [Integer]
|
@@ -1829,6 +1899,7 @@ module Wx::STC
|
|
1829
1899
|
alias_method :margin_cursor, :get_margin_cursor
|
1830
1900
|
|
1831
1901
|
# Set the background colour of a margin.
|
1902
|
+
#
|
1832
1903
|
# Only visible for {Wx::STC::STC_MARGIN_COLOUR}.
|
1833
1904
|
# @param margin [Integer]
|
1834
1905
|
# @param back [Wx::Colour,String,Symbol]
|
@@ -1933,6 +2004,7 @@ module Wx::STC
|
|
1933
2004
|
def margin_get_style_offset; end
|
1934
2005
|
|
1935
2006
|
# Set the margin options.
|
2007
|
+
#
|
1936
2008
|
# The input should be one of the wxSTC_MARGINOPTION_* constants.
|
1937
2009
|
# @param marginOptions [Integer]
|
1938
2010
|
# @return [void]
|
@@ -1940,6 +2012,7 @@ module Wx::STC
|
|
1940
2012
|
alias_method :margin_options=, :set_margin_options
|
1941
2013
|
|
1942
2014
|
# Get the margin options.
|
2015
|
+
#
|
1943
2016
|
# The return value will be one of the wxSTC_MARGINOPTION_* constants.
|
1944
2017
|
# @return [Integer]
|
1945
2018
|
def get_margin_options; end
|
@@ -1988,12 +2061,14 @@ module Wx::STC
|
|
1988
2061
|
def annotation_clear_all; end
|
1989
2062
|
|
1990
2063
|
# Set the visibility for the annotations for a view.
|
2064
|
+
#
|
1991
2065
|
# The input should be one of the wxSTC_ANNOTATION_* constants.
|
1992
2066
|
# @param visible [Integer]
|
1993
2067
|
# @return [void]
|
1994
2068
|
def annotation_set_visible(visible) end
|
1995
2069
|
|
1996
2070
|
# Get the visibility for the annotations for a view.
|
2071
|
+
#
|
1997
2072
|
# The return value will be one of the wxSTC_ANNOTATION_* constants.
|
1998
2073
|
# @return [Integer]
|
1999
2074
|
def annotation_get_visible; end
|
@@ -2025,12 +2100,14 @@ module Wx::STC
|
|
2025
2100
|
alias_method :code_page=, :set_code_page
|
2026
2101
|
|
2027
2102
|
# Is the IME displayed in a window or inline?
|
2103
|
+
#
|
2028
2104
|
# The return value will be one of the wxSTC_IME_* constants.
|
2029
2105
|
# @return [Integer]
|
2030
2106
|
def get_ime_interaction; end
|
2031
2107
|
alias_method :ime_interaction, :get_ime_interaction
|
2032
2108
|
|
2033
2109
|
# Choose to display the IME in a winow or inline.
|
2110
|
+
#
|
2034
2111
|
# The input should be one of the wxSTC_IME_* constants.
|
2035
2112
|
# @param imeInteraction [Integer]
|
2036
2113
|
# @return [void]
|
@@ -2043,6 +2120,7 @@ module Wx::STC
|
|
2043
2120
|
alias_method :code_page, :get_code_page
|
2044
2121
|
|
2045
2122
|
# Sets the degree of caching of layout information.
|
2123
|
+
#
|
2046
2124
|
# The input should be one of the wxSTC_CACHE_* constants.
|
2047
2125
|
# @param cacheMode [Integer]
|
2048
2126
|
# @return [void]
|
@@ -2055,6 +2133,7 @@ module Wx::STC
|
|
2055
2133
|
alias_method :two_phase_draw, :get_two_phase_draw
|
2056
2134
|
|
2057
2135
|
# In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground.
|
2136
|
+
#
|
2058
2137
|
# This avoids chopping off characters that overlap the next run.
|
2059
2138
|
# @param twoPhase [Boolean]
|
2060
2139
|
# @return [void]
|
@@ -2062,12 +2141,14 @@ module Wx::STC
|
|
2062
2141
|
alias_method :two_phase_draw=, :set_two_phase_draw
|
2063
2142
|
|
2064
2143
|
# How many phases is drawing done in?
|
2144
|
+
#
|
2065
2145
|
# The return value will be one of the wxSTC_PHASES_* constants.
|
2066
2146
|
# @return [Integer]
|
2067
2147
|
def get_phases_draw; end
|
2068
2148
|
alias_method :phases_draw, :get_phases_draw
|
2069
2149
|
|
2070
2150
|
# In one phase draw, text is drawn in a series of rectangular blocks with no overlap.
|
2151
|
+
#
|
2071
2152
|
# In two phase draw, text is drawn in a series of lines allowing runs to overlap horizontally. In multiple phase draw, each element is drawn over the whole drawing area, allowing text to overlap from one line to the next.
|
2072
2153
|
# The input should be one of the wxSTC_PHASES_* constants.
|
2073
2154
|
# @param phases [Integer]
|
@@ -2076,18 +2157,20 @@ module Wx::STC
|
|
2076
2157
|
alias_method :phases_draw=, :set_phases_draw
|
2077
2158
|
|
2078
2159
|
# Choose the quality level for text.
|
2160
|
+
#
|
2079
2161
|
# The input should be one of the wxSTC_EFF_QUALITY_* constants.
|
2080
2162
|
# <div class="wxrb-remark">
|
2081
2163
|
# <b>Remark:</b>
|
2082
2164
|
# <p>This method only has any effect with the WXMSW port and when technology has been set to {Wx::STC::STC_TECHNOLOGY_DIRECTWRITE}.
|
2083
2165
|
# </p>
|
2084
|
-
# </div
|
2166
|
+
# </div>
|
2085
2167
|
# @param fontQuality [Integer]
|
2086
2168
|
# @return [void]
|
2087
2169
|
def set_font_quality(fontQuality) end
|
2088
2170
|
alias_method :font_quality=, :set_font_quality
|
2089
2171
|
|
2090
2172
|
# Retrieve the quality level for text.
|
2173
|
+
#
|
2091
2174
|
# The return value will be one of the wxSTC_EFF_QUALITY_* constants.
|
2092
2175
|
# @return [Integer]
|
2093
2176
|
def get_font_quality; end
|
@@ -2105,17 +2188,19 @@ module Wx::STC
|
|
2105
2188
|
alias_method :stc_focus, :get_stc_focus
|
2106
2189
|
|
2107
2190
|
# Set the technology used.
|
2191
|
+
#
|
2108
2192
|
# <div class="wxrb-remark">
|
2109
2193
|
# <b>Remark:</b>
|
2110
2194
|
# <p>For the WXMSW port, the input can be either {Wx::STC::STC_TECHNOLOGY_DEFAULT} or {Wx::STC::STC_TECHNOLOGY_DIRECTWRITE}. With other ports, this method has no effect.
|
2111
2195
|
# </p>
|
2112
|
-
# </div
|
2196
|
+
# </div>
|
2113
2197
|
# @param technology [Integer]
|
2114
2198
|
# @return [void]
|
2115
2199
|
def set_technology(technology) end
|
2116
2200
|
alias_method :technology=, :set_technology
|
2117
2201
|
|
2118
2202
|
# Get the tech.
|
2203
|
+
#
|
2119
2204
|
# The return value will be one of the wxSTC_TECHNOLOGY_* constants.
|
2120
2205
|
# @return [Integer]
|
2121
2206
|
def get_technology; end
|
@@ -2145,6 +2230,7 @@ module Wx::STC
|
|
2145
2230
|
def brace_bad_light_indicator(useSetting, indicator) end
|
2146
2231
|
|
2147
2232
|
# Find the position of a matching brace or {Wx::STC::STC_INVALID_POSITION} if no match.
|
2233
|
+
#
|
2148
2234
|
# The maxReStyle must be 0 for now. It may be defined in a future release.
|
2149
2235
|
# @param pos [Integer]
|
2150
2236
|
# @param maxReStyle [Integer]
|
@@ -2221,6 +2307,7 @@ module Wx::STC
|
|
2221
2307
|
alias_method :line_indent_position, :get_line_indent_position
|
2222
2308
|
|
2223
2309
|
# Show or hide indentation guides.
|
2310
|
+
#
|
2224
2311
|
# The input should be one of the wxSTC_IV_* constants.
|
2225
2312
|
# @param indentView [Integer]
|
2226
2313
|
# @return [void]
|
@@ -2228,12 +2315,14 @@ module Wx::STC
|
|
2228
2315
|
alias_method :indentation_guides=, :set_indentation_guides
|
2229
2316
|
|
2230
2317
|
# Are the indentation guides visible?
|
2318
|
+
#
|
2231
2319
|
# The return value will be one of the wxSTC_IV_* constants.
|
2232
2320
|
# @return [Integer]
|
2233
2321
|
def get_indentation_guides; end
|
2234
2322
|
alias_method :indentation_guides, :get_indentation_guides
|
2235
2323
|
|
2236
2324
|
# Set the highlighted indentation guide column.
|
2325
|
+
#
|
2237
2326
|
# 0 = no highlighted guide.
|
2238
2327
|
# @param column [Integer]
|
2239
2328
|
# @return [void]
|
@@ -2278,6 +2367,7 @@ module Wx::STC
|
|
2278
2367
|
def marker_delete_handle(markerHandle) end
|
2279
2368
|
|
2280
2369
|
# Set the symbol used for a particular marker number, and optionally the fore and background colours.
|
2370
|
+
#
|
2281
2371
|
# The second argument should be one of the wxSTC_MARK_* constants.
|
2282
2372
|
# @param markerNumber [Integer]
|
2283
2373
|
# @param markerSymbol [Integer]
|
@@ -2332,6 +2422,7 @@ module Wx::STC
|
|
2332
2422
|
def marker_get(line) end
|
2333
2423
|
|
2334
2424
|
# Find the next line at or after lineStart that includes a marker in mask.
|
2425
|
+
#
|
2335
2426
|
# Return -1 when no more lines.
|
2336
2427
|
# @param lineStart [Integer]
|
2337
2428
|
# @param markerMask [Integer]
|
@@ -2357,6 +2448,7 @@ module Wx::STC
|
|
2357
2448
|
def marker_set_alpha(markerNumber, alpha) end
|
2358
2449
|
|
2359
2450
|
# Which symbol was defined for markerNumber with MarkerDefine.
|
2451
|
+
#
|
2360
2452
|
# The return value will be one of the wxSTC_MARK_* constants.
|
2361
2453
|
# @param markerNumber [Integer]
|
2362
2454
|
# @return [Integer]
|
@@ -2379,6 +2471,7 @@ module Wx::STC
|
|
2379
2471
|
def rgba_image_set_scale(scalePercent) end
|
2380
2472
|
|
2381
2473
|
# Set an indicator to plain, squiggle or TT.
|
2474
|
+
#
|
2382
2475
|
# The second argument should be one of the wxSTC_INDIC_* constants.
|
2383
2476
|
# @param indicator [Integer]
|
2384
2477
|
# @param indicatorStyle [Integer]
|
@@ -2386,6 +2479,7 @@ module Wx::STC
|
|
2386
2479
|
def indicator_set_style(indicator, indicatorStyle) end
|
2387
2480
|
|
2388
2481
|
# Retrieve the style of an indicator.
|
2482
|
+
#
|
2389
2483
|
# The return value will be one of the wxSTC_INDIC_* constants.
|
2390
2484
|
# @param indicator [Integer]
|
2391
2485
|
# @return [Integer]
|
@@ -2436,6 +2530,7 @@ module Wx::STC
|
|
2436
2530
|
def indicator_get_hover_foreground(indicator) end
|
2437
2531
|
|
2438
2532
|
# Set the attributes of an indicator.
|
2533
|
+
#
|
2439
2534
|
# The second argument should be a bit list containing one or more of the wxSTC_INDICFLAG_* constants.
|
2440
2535
|
# @param indicator [Integer]
|
2441
2536
|
# @param flags [Integer]
|
@@ -2443,6 +2538,7 @@ module Wx::STC
|
|
2443
2538
|
def indicator_set_flags(indicator, flags) end
|
2444
2539
|
|
2445
2540
|
# Retrieve the attributes of an indicator.
|
2541
|
+
#
|
2446
2542
|
# The return value will be a bit list containing one or more of the wxSTC_INDICFLAG_* constants.
|
2447
2543
|
# @param indicator [Integer]
|
2448
2544
|
# @return [Integer]
|
@@ -2528,6 +2624,7 @@ module Wx::STC
|
|
2528
2624
|
def indicator_get_outline_alpha(indicator) end
|
2529
2625
|
|
2530
2626
|
# Display an auto-completion list.
|
2627
|
+
#
|
2531
2628
|
# The lengthEntered parameter indicates how many characters before the caret should be used to provide context.
|
2532
2629
|
# @param lengthEntered [Integer]
|
2533
2630
|
# @param itemList [String]
|
@@ -2556,6 +2653,7 @@ module Wx::STC
|
|
2556
2653
|
def auto_comp_stops(characterSet) end
|
2557
2654
|
|
2558
2655
|
# Change the separator character in the string setting up an auto-completion list.
|
2656
|
+
#
|
2559
2657
|
# Default is space but can be changed if items contain space.
|
2560
2658
|
# @param separatorCharacter [Integer]
|
2561
2659
|
# @return [void]
|
@@ -2635,12 +2733,14 @@ module Wx::STC
|
|
2635
2733
|
def auto_comp_get_type_separator; end
|
2636
2734
|
|
2637
2735
|
# Change the type-separator character in the string setting up an auto-completion list.
|
2736
|
+
#
|
2638
2737
|
# Default is '?' but can be changed if items contain '?'.
|
2639
2738
|
# @param separatorCharacter [Integer]
|
2640
2739
|
# @return [void]
|
2641
2740
|
def auto_comp_set_type_separator(separatorCharacter) end
|
2642
2741
|
|
2643
2742
|
# Set the maximum width, in characters, of auto-completion and user lists.
|
2743
|
+
#
|
2644
2744
|
# Set to 0 to autosize to fit longest item, which is the default.
|
2645
2745
|
# @param characterCount [Integer]
|
2646
2746
|
# @return [void]
|
@@ -2651,6 +2751,7 @@ module Wx::STC
|
|
2651
2751
|
def auto_comp_get_max_width; end
|
2652
2752
|
|
2653
2753
|
# Set the maximum height, in rows, of auto-completion and user lists.
|
2754
|
+
#
|
2654
2755
|
# The default is 5 rows.
|
2655
2756
|
# @param rowCount [Integer]
|
2656
2757
|
# @return [void]
|
@@ -2669,34 +2770,40 @@ module Wx::STC
|
|
2669
2770
|
def auto_comp_get_current_text; end
|
2670
2771
|
|
2671
2772
|
# Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.
|
2773
|
+
#
|
2672
2774
|
# The input should be one of the wxSTC_CASEINSENSITIVEBEHAVIOUR_* constants.
|
2673
2775
|
# @param behaviour [Integer]
|
2674
2776
|
# @return [void]
|
2675
2777
|
def auto_comp_set_case_insensitive_behaviour(behaviour) end
|
2676
2778
|
|
2677
2779
|
# Get auto-completion case insensitive behaviour.
|
2780
|
+
#
|
2678
2781
|
# The return value will be one of the wxSTC_CASEINSENSITIVEBEHAVIOUR_* constants.
|
2679
2782
|
# @return [Integer]
|
2680
2783
|
def auto_comp_get_case_insensitive_behaviour; end
|
2681
2784
|
|
2682
2785
|
# Change the effect of autocompleting when there are multiple selections.
|
2786
|
+
#
|
2683
2787
|
# The input should be one of the wxSTC_MULTIAUTOC_* constants.
|
2684
2788
|
# @param multi [Integer]
|
2685
2789
|
# @return [void]
|
2686
2790
|
def auto_comp_set_multi(multi) end
|
2687
2791
|
|
2688
2792
|
# Retrieve the effect of autocompleting when there are multiple selections.
|
2793
|
+
#
|
2689
2794
|
# The return value will be one of the wxSTC_MULTIAUTOC_* constants.
|
2690
2795
|
# @return [Integer]
|
2691
2796
|
def auto_comp_get_multi; end
|
2692
2797
|
|
2693
2798
|
# Set the way autocompletion lists are ordered.
|
2799
|
+
#
|
2694
2800
|
# The input should be one of the wxSTC_ORDER_* constants.
|
2695
2801
|
# @param order [Integer]
|
2696
2802
|
# @return [void]
|
2697
2803
|
def auto_comp_set_order(order) end
|
2698
2804
|
|
2699
2805
|
# Get the way autocompletion lists are ordered.
|
2806
|
+
#
|
2700
2807
|
# The return value will be one of the wxSTC_ORDER_* constants.
|
2701
2808
|
# @return [Integer]
|
2702
2809
|
def auto_comp_get_order; end
|
@@ -2870,6 +2977,7 @@ module Wx::STC
|
|
2870
2977
|
def delete_back; end
|
2871
2978
|
|
2872
2979
|
# If selection is empty or all on one line replace the selection with a tab character.
|
2980
|
+
#
|
2873
2981
|
# If more than one line selected, indent the lines.
|
2874
2982
|
# @return [void]
|
2875
2983
|
def tab; end
|
@@ -2887,6 +2995,7 @@ module Wx::STC
|
|
2887
2995
|
def form_feed; end
|
2888
2996
|
|
2889
2997
|
# Move caret to before first visible character on line.
|
2998
|
+
#
|
2890
2999
|
# If already there move to first character on line.
|
2891
3000
|
# @return [void]
|
2892
3001
|
def vc_home; end
|
@@ -2940,6 +3049,7 @@ module Wx::STC
|
|
2940
3049
|
def line_scroll_up; end
|
2941
3050
|
|
2942
3051
|
# Delete the selection or if no selection, the character before the caret.
|
3052
|
+
#
|
2943
3053
|
# Will not delete the character before at the start of a line.
|
2944
3054
|
# @return [void]
|
2945
3055
|
def delete_back_not_line; end
|
@@ -3049,6 +3159,7 @@ module Wx::STC
|
|
3049
3159
|
def home_rect_extend; end
|
3050
3160
|
|
3051
3161
|
# Move caret to before first visible character on line.
|
3162
|
+
#
|
3052
3163
|
# If already there move to first character on line. In either case, extend rectangular selection to new caret position.
|
3053
3164
|
# @return [void]
|
3054
3165
|
def vc_home_rect_extend; end
|
@@ -3098,6 +3209,7 @@ module Wx::STC
|
|
3098
3209
|
def word_right_end_extend; end
|
3099
3210
|
|
3100
3211
|
# Duplicate the selection.
|
3212
|
+
#
|
3101
3213
|
# If selection empty duplicate the line containing the caret.
|
3102
3214
|
# @return [void]
|
3103
3215
|
def selection_duplicate; end
|
@@ -3115,6 +3227,7 @@ module Wx::STC
|
|
3115
3227
|
def scroll_to_end; end
|
3116
3228
|
|
3117
3229
|
# Move caret to before first visible character on display line.
|
3230
|
+
#
|
3118
3231
|
# If already there move to first character on display line.
|
3119
3232
|
# @return [void]
|
3120
3233
|
def vc_home_display; end
|
@@ -3124,6 +3237,7 @@ module Wx::STC
|
|
3124
3237
|
def vc_home_display_extend; end
|
3125
3238
|
|
3126
3239
|
# When key+modifier combination keyDefinition is pressed perform sciCommand.
|
3240
|
+
#
|
3127
3241
|
# The second argument should be a bit list containing one or more of the wxSTC_KEYMOD_* constants and the third argument should be one of the wxSTC_CMD_* constants.
|
3128
3242
|
# @param key [Integer]
|
3129
3243
|
# @param modifiers [Integer]
|
@@ -3132,6 +3246,7 @@ module Wx::STC
|
|
3132
3246
|
def cmd_key_assign(key, modifiers, cmd) end
|
3133
3247
|
|
3134
3248
|
# When key+modifier combination keyDefinition is pressed do nothing.
|
3249
|
+
#
|
3135
3250
|
# The second argument should be a bit list containing one or more of the wxSTC_KEYMOD_* constants.
|
3136
3251
|
# @param key [Integer]
|
3137
3252
|
# @param modifiers [Integer]
|
@@ -3143,12 +3258,13 @@ module Wx::STC
|
|
3143
3258
|
def cmd_key_clear_all; end
|
3144
3259
|
|
3145
3260
|
# Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button on certain areas.
|
3261
|
+
#
|
3146
3262
|
# The input should be one of the wxSTC_POPUP_* constants.
|
3147
3263
|
# <div class="wxrb-remark">
|
3148
3264
|
# <b>Remark:</b>
|
3149
3265
|
# <p>When {Wx::ContextMenuEvent} is used to create a custom popup menu, this function should be called with {Wx::STC::STC_POPUP_NEVER}. Otherwise the default menu will be shown instead of the custom one.
|
3150
3266
|
# </p>
|
3151
|
-
# </div
|
3267
|
+
# </div>
|
3152
3268
|
# @param popUpMode [Integer]
|
3153
3269
|
# @return [void]
|
3154
3270
|
def use_pop_up(popUpMode) end
|
@@ -3173,6 +3289,7 @@ module Wx::STC
|
|
3173
3289
|
alias_method :print_magnification, :get_print_magnification
|
3174
3290
|
|
3175
3291
|
# Modify colours when printing for clearer printed text.
|
3292
|
+
#
|
3176
3293
|
# The input should be one of the wxSTC_PRINT_* constants.
|
3177
3294
|
# @param mode [Integer]
|
3178
3295
|
# @return [void]
|
@@ -3180,6 +3297,7 @@ module Wx::STC
|
|
3180
3297
|
alias_method :print_colour_mode=, :set_print_colour_mode
|
3181
3298
|
|
3182
3299
|
# Returns the print colour mode.
|
3300
|
+
#
|
3183
3301
|
# The return value will be one of the wxSTC_PRINT_* constants.
|
3184
3302
|
# @return [Integer]
|
3185
3303
|
def get_print_colour_mode; end
|
@@ -3203,6 +3321,7 @@ module Wx::STC
|
|
3203
3321
|
alias_method :print_wrap_mode=, :set_print_wrap_mode
|
3204
3322
|
|
3205
3323
|
# Is printing line wrapped?
|
3324
|
+
#
|
3206
3325
|
# The return value will be one of the wxSTC_WRAP_* constants.
|
3207
3326
|
# @return [Integer]
|
3208
3327
|
def get_print_wrap_mode; end
|
@@ -3224,6 +3343,7 @@ module Wx::STC
|
|
3224
3343
|
def doc_line_from_visible(displayLine) end
|
3225
3344
|
|
3226
3345
|
# Set the fold level of a line.
|
3346
|
+
#
|
3227
3347
|
# This encodes an integer level along with flags indicating whether the line is a header and whether it is effectively white space.
|
3228
3348
|
# @param line [Integer]
|
3229
3349
|
# @param level [Integer]
|
@@ -3296,12 +3416,14 @@ module Wx::STC
|
|
3296
3416
|
def toggle_fold_show_text(line, text) end
|
3297
3417
|
|
3298
3418
|
# Set the style of fold display text.
|
3419
|
+
#
|
3299
3420
|
# The input should be one of the wxSTC_FOLDDISPLAYTEXT_* constants.
|
3300
3421
|
# @param style [Integer]
|
3301
3422
|
# @return [void]
|
3302
3423
|
def fold_display_text_set_style(style) end
|
3303
3424
|
|
3304
3425
|
# Expand or contract a fold header.
|
3426
|
+
#
|
3305
3427
|
# The second argument should be one of the wxSTC_FOLDACTION_* constants.
|
3306
3428
|
# @param line [Integer]
|
3307
3429
|
# @param action [Integer]
|
@@ -3309,6 +3431,7 @@ module Wx::STC
|
|
3309
3431
|
def fold_line(line, action) end
|
3310
3432
|
|
3311
3433
|
# Expand or contract a fold header and its children.
|
3434
|
+
#
|
3312
3435
|
# The second argument should be one of the wxSTC_FOLDACTION_* constants.
|
3313
3436
|
# @param line [Integer]
|
3314
3437
|
# @param action [Integer]
|
@@ -3316,6 +3439,7 @@ module Wx::STC
|
|
3316
3439
|
def fold_children(line, action) end
|
3317
3440
|
|
3318
3441
|
# Expand a fold header and all children.
|
3442
|
+
#
|
3319
3443
|
# Use the level argument instead of the line's current level.
|
3320
3444
|
# @param line [Integer]
|
3321
3445
|
# @param level [Integer]
|
@@ -3323,6 +3447,7 @@ module Wx::STC
|
|
3323
3447
|
def expand_children(line, level) end
|
3324
3448
|
|
3325
3449
|
# Expand or contract all fold headers.
|
3450
|
+
#
|
3326
3451
|
# The input should be one of the wxSTC_FOLDACTION_* constants.
|
3327
3452
|
# @param action [Integer]
|
3328
3453
|
# @return [void]
|
@@ -3334,6 +3459,7 @@ module Wx::STC
|
|
3334
3459
|
def ensure_visible(line) end
|
3335
3460
|
|
3336
3461
|
# Set automatic folding behaviours.
|
3462
|
+
#
|
3337
3463
|
# The input should be a bit list containing one or more of the wxSTC_AUTOMATICFOLD_* constants.
|
3338
3464
|
# @param automaticFold [Integer]
|
3339
3465
|
# @return [void]
|
@@ -3341,12 +3467,14 @@ module Wx::STC
|
|
3341
3467
|
alias_method :automatic_fold=, :set_automatic_fold
|
3342
3468
|
|
3343
3469
|
# Get automatic folding behaviours.
|
3470
|
+
#
|
3344
3471
|
# The return value will be a bit list containing one or more of the wxSTC_AUTOMATICFOLD_* constants.
|
3345
3472
|
# @return [Integer]
|
3346
3473
|
def get_automatic_fold; end
|
3347
3474
|
alias_method :automatic_fold, :get_automatic_fold
|
3348
3475
|
|
3349
3476
|
# Set some style options for folding.
|
3477
|
+
#
|
3350
3478
|
# The second argument should be a bit list containing one or more of the wxSTC_FOLDFLAG_* constants.
|
3351
3479
|
# @param flags [Integer]
|
3352
3480
|
# @return [void]
|
@@ -3354,12 +3482,14 @@ module Wx::STC
|
|
3354
3482
|
alias_method :fold_flags=, :set_fold_flags
|
3355
3483
|
|
3356
3484
|
# Ensure a particular line is visible by expanding any header line hiding it.
|
3485
|
+
#
|
3357
3486
|
# Use the currently set visibility policy to determine which range to display.
|
3358
3487
|
# @param line [Integer]
|
3359
3488
|
# @return [void]
|
3360
3489
|
def ensure_visible_enforce_policy(line) end
|
3361
3490
|
|
3362
3491
|
# Find the next line at or after lineStart that is a contracted fold header line.
|
3492
|
+
#
|
3363
3493
|
# Return -1 when no more lines.
|
3364
3494
|
# @param lineStart [Integer]
|
3365
3495
|
# @return [Integer]
|
@@ -3371,6 +3501,7 @@ module Wx::STC
|
|
3371
3501
|
def wrap_count(docLine) end
|
3372
3502
|
|
3373
3503
|
# Sets whether text is word wrapped.
|
3504
|
+
#
|
3374
3505
|
# The input should be one of the wxSTC_WRAP_* constants.
|
3375
3506
|
# @param wrapMode [Integer]
|
3376
3507
|
# @return [void]
|
@@ -3378,12 +3509,14 @@ module Wx::STC
|
|
3378
3509
|
alias_method :wrap_mode=, :set_wrap_mode
|
3379
3510
|
|
3380
3511
|
# Retrieve whether text is word wrapped.
|
3512
|
+
#
|
3381
3513
|
# The return value will be one of the wxSTC_WRAP_* constants.
|
3382
3514
|
# @return [Integer]
|
3383
3515
|
def get_wrap_mode; end
|
3384
3516
|
alias_method :wrap_mode, :get_wrap_mode
|
3385
3517
|
|
3386
3518
|
# Set the display mode of visual flags for wrapped lines.
|
3519
|
+
#
|
3387
3520
|
# The input should be a bit list containing one or more of the wxSTC_WRAPVISUALFLAG_* constants.
|
3388
3521
|
# @param wrapVisualFlags [Integer]
|
3389
3522
|
# @return [void]
|
@@ -3391,12 +3524,14 @@ module Wx::STC
|
|
3391
3524
|
alias_method :wrap_visual_flags=, :set_wrap_visual_flags
|
3392
3525
|
|
3393
3526
|
# Retrieve the display mode of visual flags for wrapped lines.
|
3527
|
+
#
|
3394
3528
|
# The return value will be a bit list containing one or more of the wxSTC_WRAPVISUALFLAG_* constants.
|
3395
3529
|
# @return [Integer]
|
3396
3530
|
def get_wrap_visual_flags; end
|
3397
3531
|
alias_method :wrap_visual_flags, :get_wrap_visual_flags
|
3398
3532
|
|
3399
3533
|
# Set the location of visual flags for wrapped lines.
|
3534
|
+
#
|
3400
3535
|
# The input should be a bit list containing one or more of the wxSTC_WRAPVISUALFLAGLOC_* constants.
|
3401
3536
|
# @param wrapVisualFlagsLocation [Integer]
|
3402
3537
|
# @return [void]
|
@@ -3404,6 +3539,7 @@ module Wx::STC
|
|
3404
3539
|
alias_method :wrap_visual_flags_location=, :set_wrap_visual_flags_location
|
3405
3540
|
|
3406
3541
|
# Retrieve the location of visual flags for wrapped lines.
|
3542
|
+
#
|
3407
3543
|
# The return value will be a bit list containing one or more of the wxSTC_WRAPVISUALFLAGLOC_* constants.
|
3408
3544
|
# @return [Integer]
|
3409
3545
|
def get_wrap_visual_flags_location; end
|
@@ -3421,6 +3557,7 @@ module Wx::STC
|
|
3421
3557
|
alias_method :wrap_start_indent, :get_wrap_start_indent
|
3422
3558
|
|
3423
3559
|
# Sets how wrapped sublines are placed.
|
3560
|
+
#
|
3424
3561
|
# Default is {Wx::STC::STC_WRAPINDENT_FIXED}.
|
3425
3562
|
# The input should be one of the wxSTC_WRAPINDENT_* constants.
|
3426
3563
|
# @param wrapIndentMode [Integer]
|
@@ -3429,6 +3566,7 @@ module Wx::STC
|
|
3429
3566
|
alias_method :wrap_indent_mode=, :set_wrap_indent_mode
|
3430
3567
|
|
3431
3568
|
# Retrieve how wrapped sublines are placed.
|
3569
|
+
#
|
3432
3570
|
# Default is {Wx::STC::STC_WRAPINDENT_FIXED}.
|
3433
3571
|
# The return value will be one of the wxSTC_WRAPINDENT_* constants.
|
3434
3572
|
# @return [Integer]
|
@@ -3436,6 +3574,7 @@ module Wx::STC
|
|
3436
3574
|
alias_method :wrap_indent_mode, :get_wrap_indent_mode
|
3437
3575
|
|
3438
3576
|
# Retrieve the degree of caching of layout information.
|
3577
|
+
#
|
3439
3578
|
# The return value will be one of the wxSTC_CACHE_* constants.
|
3440
3579
|
# @return [Integer]
|
3441
3580
|
def get_layout_cache; end
|
@@ -3470,6 +3609,7 @@ module Wx::STC
|
|
3470
3609
|
def zoom_out; end
|
3471
3610
|
|
3472
3611
|
# Set the zoom level.
|
3612
|
+
#
|
3473
3613
|
# This number of points is added to the size of all fonts. It may be positive to magnify or negative to reduce.
|
3474
3614
|
# @param zoomInPoints [Integer]
|
3475
3615
|
# @return [void]
|
@@ -3487,6 +3627,7 @@ module Wx::STC
|
|
3487
3627
|
alias_method :edge_column, :get_edge_column
|
3488
3628
|
|
3489
3629
|
# Set the column number of the edge.
|
3630
|
+
#
|
3490
3631
|
# If text goes past the edge then it is highlighted.
|
3491
3632
|
# @param column [Integer]
|
3492
3633
|
# @return [void]
|
@@ -3494,12 +3635,14 @@ module Wx::STC
|
|
3494
3635
|
alias_method :edge_column=, :set_edge_column
|
3495
3636
|
|
3496
3637
|
# Retrieve the edge highlight mode.
|
3638
|
+
#
|
3497
3639
|
# The return value will be one of the wxSTC_EDGE_* constants.
|
3498
3640
|
# @return [Integer]
|
3499
3641
|
def get_edge_mode; end
|
3500
3642
|
alias_method :edge_mode, :get_edge_mode
|
3501
3643
|
|
3502
3644
|
# The edge may be displayed by a line ({Wx::STC::STC_EDGE_LINE}/{Wx::STC::STC_EDGE_MULTILINE}) or by highlighting text that goes beyond it ({Wx::STC::STC_EDGE_BACKGROUND}) or not displayed at all ({Wx::STC::STC_EDGE_NONE}).
|
3645
|
+
#
|
3503
3646
|
# The input should be one of the wxSTC_EDGE_* constants.
|
3504
3647
|
# @param edgeMode [Integer]
|
3505
3648
|
# @return [void]
|
@@ -3534,6 +3677,7 @@ module Wx::STC
|
|
3534
3677
|
def change_lexer_state(start, end_) end
|
3535
3678
|
|
3536
3679
|
# Set the lexing language of the document.
|
3680
|
+
#
|
3537
3681
|
# The input should be one of the wxSTC_LEX_* constants.
|
3538
3682
|
# @param lexer [Integer]
|
3539
3683
|
# @return [void]
|
@@ -3541,6 +3685,7 @@ module Wx::STC
|
|
3541
3685
|
alias_method :lexer=, :set_lexer
|
3542
3686
|
|
3543
3687
|
# Retrieve the lexing language of the document.
|
3688
|
+
#
|
3544
3689
|
# The return value will be one of the wxSTC_LEX_* constants.
|
3545
3690
|
# @return [Integer]
|
3546
3691
|
def get_lexer; end
|
@@ -3604,6 +3749,7 @@ module Wx::STC
|
|
3604
3749
|
def property_names; end
|
3605
3750
|
|
3606
3751
|
# Retrieve the type of a property.
|
3752
|
+
#
|
3607
3753
|
# The return value will be one of the wxSTC_TYPE_* constants.
|
3608
3754
|
# @param name [String]
|
3609
3755
|
# @return [Integer]
|
@@ -3668,6 +3814,7 @@ module Wx::STC
|
|
3668
3814
|
alias_method :sub_style_bases, :get_sub_style_bases
|
3669
3815
|
|
3670
3816
|
# Sets the time the mouse must sit still to generate a mouse dwell event.
|
3817
|
+
#
|
3671
3818
|
# The input should be a time in milliseconds or {Wx::STC::STC_TIME_FOREVER}.
|
3672
3819
|
# @param periodMilliseconds [Integer]
|
3673
3820
|
# @return [void]
|
@@ -3675,12 +3822,14 @@ module Wx::STC
|
|
3675
3822
|
alias_method :mouse_dwell_time=, :set_mouse_dwell_time
|
3676
3823
|
|
3677
3824
|
# Retrieve the time the mouse must sit still to generate a mouse dwell event.
|
3825
|
+
#
|
3678
3826
|
# The return value will be a time in milliseconds or {Wx::STC::STC_TIME_FOREVER}.
|
3679
3827
|
# @return [Integer]
|
3680
3828
|
def get_mouse_dwell_time; end
|
3681
3829
|
alias_method :mouse_dwell_time, :get_mouse_dwell_time
|
3682
3830
|
|
3683
3831
|
# Set which document modification events are sent to the container.
|
3832
|
+
#
|
3684
3833
|
# The input should be a bit list containing one or more of the wxSTC_MOD_* constants, the wxSTC_PERFORMED_* constants, {Wx::STC::STC_STARTACTION}, {Wx::STC::STC_MULTILINEUNDOREDO}, {Wx::STC::STC_MULTISTEPUNDOREDO}, and {Wx::STC::STC_LASTSTEPINUNDOREDO}. The input can also be {Wx::STC::STC_MODEVENTMASKALL} to indicate that all changes should generate events.
|
3685
3834
|
# @param eventMask [Integer]
|
3686
3835
|
# @return [void]
|
@@ -3688,6 +3837,7 @@ module Wx::STC
|
|
3688
3837
|
alias_method :mod_event_mask=, :set_mod_event_mask
|
3689
3838
|
|
3690
3839
|
# Get which document modification events are sent to the container.
|
3840
|
+
#
|
3691
3841
|
# The return value will {Wx::STC::STC_MODEVENTMASKALL} if all changes generate events. Otherwise it will be a bit list containing one or more of the wxSTC_MOD_* constants, the wxSTC_PERFORMED_* constants, {Wx::STC::STC_STARTACTION}, {Wx::STC::STC_MULTILINEUNDOREDO}, {Wx::STC::STC_MULTISTEPUNDOREDO}, and {Wx::STC::STC_LASTSTEPINUNDOREDO}.
|
3692
3842
|
# @return [Integer]
|
3693
3843
|
def get_mod_event_mask; end
|
@@ -3710,6 +3860,7 @@ module Wx::STC
|
|
3710
3860
|
alias_method :current_line, :get_current_line
|
3711
3861
|
|
3712
3862
|
# Extract style settings from a spec-string which is composed of one or more of the following comma separated elements:
|
3863
|
+
#
|
3713
3864
|
# bold turns on bold italic turns on italics fore:[name or \#RRGGBB] sets the foreground colour back:[name or \#RRGGBB] sets the background colour face:[facename] sets the font face name to use size:[num] sets the font size in points eol turns on eol filling underline turns on underlining
|
3714
3865
|
# @param styleNum [Integer]
|
3715
3866
|
# @param spec [String]
|
@@ -3831,6 +3982,7 @@ module Wx::STC
|
|
3831
3982
|
def do_drop_text(x, y, data) end
|
3832
3983
|
|
3833
3984
|
# Specify whether anti-aliased fonts should be used.
|
3985
|
+
#
|
3834
3986
|
# This will have no effect on some platforms, but on some (WXOSX for example) can greatly improve performance.
|
3835
3987
|
# @param useAA [Boolean]
|
3836
3988
|
# @return [void]
|
@@ -3854,16 +4006,18 @@ module Wx::STC
|
|
3854
4006
|
def marker_define_bitmap(markerNumber, bmp) end
|
3855
4007
|
|
3856
4008
|
# Writes the text into the text control at the current insertion position.
|
4009
|
+
#
|
3857
4010
|
# <div class="wxrb-remark">
|
3858
4011
|
# <b>Remark:</b>
|
3859
4012
|
# <p>Newlines in the text string are the only control characters allowed, and they will cause appropriate line breaks. See operator<<() and {Wx::STC::StyledTextCtrl#append_text} for more convenient ways of writing to the window. After the write operation, the insertion point will be at the end of the inserted text, so subsequent write operations will be appended. To append text after the user may have interacted with the control, call {Wx::TextCtrl#set_insertion_point_end} before writing.
|
3860
4013
|
# </p>
|
3861
|
-
# </div
|
4014
|
+
# </div>
|
3862
4015
|
# @param text [String] Text to write to the text control.
|
3863
4016
|
# @return [void]
|
3864
4017
|
def write_text(text) end
|
3865
4018
|
|
3866
4019
|
# Removes the text starting at the first given position up to (but not including) the character at the last position.
|
4020
|
+
#
|
3867
4021
|
# This function puts the current insertion point position at to as a side effect.
|
3868
4022
|
# @param from [Integer] The first position.
|
3869
4023
|
# @param to [Integer] The last position.
|
@@ -3871,6 +4025,7 @@ module Wx::STC
|
|
3871
4025
|
def remove(from, to) end
|
3872
4026
|
|
3873
4027
|
# Replaces the text starting at the first position up to (but not including) the character at the last position with the given text.
|
4028
|
+
#
|
3874
4029
|
# This function puts the current insertion point position at to as a side effect.
|
3875
4030
|
# @param from [Integer] The first position.
|
3876
4031
|
# @param to [Integer] The last position.
|
@@ -3885,6 +4040,7 @@ module Wx::STC
|
|
3885
4040
|
alias_method :insertion_point=, :set_insertion_point
|
3886
4041
|
|
3887
4042
|
# Returns the insertion point, or cursor, position.
|
4043
|
+
#
|
3888
4044
|
# This is defined as the zero based index of the character position to the right of the insertion point. For example, if the insertion point is at the end of the single-line text control, it is equal to {Wx::STC::StyledTextCtrl#get_last_position}.
|
3889
4045
|
# Notice that insertion position is, in general, different from the index of the character the cursor position at in the string returned by {Wx::STC::StyledTextCtrl#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.
|
3890
4046
|
# 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:
|
@@ -3909,6 +4065,7 @@ module Wx::STC
|
|
3909
4065
|
alias_method :last_position, :get_last_position
|
3910
4066
|
|
3911
4067
|
# Selects the text starting at the first position up to (but not including) the character at the last position.
|
4068
|
+
#
|
3912
4069
|
# If both parameters are equal to -1 all text in the control is selected.
|
3913
4070
|
# Notice that the insertion point will be moved to from by this function.
|
3914
4071
|
# @see Wx::STC::StyledTextCtrl#select_all
|
@@ -3922,12 +4079,14 @@ module Wx::STC
|
|
3922
4079
|
def select_none; end
|
3923
4080
|
|
3924
4081
|
# Gets the current selection span.
|
4082
|
+
#
|
3925
4083
|
# If the returned values are equal, there was no selection. Please note that the indices returned may be used with the other {Wx::TextCtrl} methods but don't necessarily represent the correct indices into the string returned by {Wx::STC::StyledTextCtrl#get_value} for multiline controls under Windows (at least,) you should use {Wx::STC::StyledTextCtrl#get_string_selection} to get the selected text.
|
3926
4084
|
# @return [Array(Integer, Integer)]
|
3927
4085
|
def get_selection; end
|
3928
4086
|
alias_method :selection, :get_selection
|
3929
4087
|
|
3930
4088
|
# Returns true if the controls contents may be edited by user (note that it always can be changed by the program).
|
4089
|
+
#
|
3931
4090
|
# In other words, this functions returns true if the control hasn't been put in read-only mode by a previous call to {Wx::STC::StyledTextCtrl#set_editable}.
|
3932
4091
|
# @return [Boolean]
|
3933
4092
|
def is_editable; end
|
@@ -3935,6 +4094,7 @@ module Wx::STC
|
|
3935
4094
|
|
3936
4095
|
# Makes the text item editable or read-only, overriding the <b>{Wx::TE_READONLY}</b> flag.
|
3937
4096
|
#
|
4097
|
+
#
|
3938
4098
|
# @see Wx::STC::StyledTextCtrl#is_editable
|
3939
4099
|
# @param editable [Boolean] If true, the control is editable. If false, the control is read-only.
|
3940
4100
|
# @return [void]
|
@@ -3942,12 +4102,14 @@ module Wx::STC
|
|
3942
4102
|
alias_method :editable=, :set_editable
|
3943
4103
|
|
3944
4104
|
# Gets the length of the specified line, not including any trailing newline character(s).
|
4105
|
+
#
|
3945
4106
|
# The length of the line, or -1 if lineNo was invalid.
|
3946
4107
|
# @param lineNo [Integer] Line number (starting from zero).
|
3947
4108
|
# @return [Integer]
|
3948
4109
|
def get_line_length(lineNo) end
|
3949
4110
|
|
3950
4111
|
# Returns the contents of a given line in the text control, not including any trailing newline character(s).
|
4112
|
+
#
|
3951
4113
|
# The contents of the line.
|
3952
4114
|
# @param lineNo [Integer] The line number, starting from zero.
|
3953
4115
|
# @return [String]
|
@@ -3955,18 +4117,20 @@ module Wx::STC
|
|
3955
4117
|
alias_method :line_text, :get_line_text
|
3956
4118
|
|
3957
4119
|
# Returns the number of lines in the text control buffer.
|
4120
|
+
#
|
3958
4121
|
# 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.
|
3959
4122
|
#
|
3960
4123
|
# <div class="wxrb-remark">
|
3961
4124
|
# <b>Remark:</b>
|
3962
4125
|
# <p>Note that even empty text controls have one line (where the insertion point is), so {Wx::STC::StyledTextCtrl#get_number_of_lines} never returns 0.
|
3963
4126
|
# </p>
|
3964
|
-
# </div
|
4127
|
+
# </div>
|
3965
4128
|
# @return [Integer]
|
3966
4129
|
def get_number_of_lines; end
|
3967
4130
|
alias_method :number_of_lines, :get_number_of_lines
|
3968
4131
|
|
3969
4132
|
# Returns true if the text has been modified by user.
|
4133
|
+
#
|
3970
4134
|
# Note that calling {Wx::STC::StyledTextCtrl#set_value} doesn't make the control modified.
|
3971
4135
|
# @see Wx::STC::StyledTextCtrl#mark_dirty
|
3972
4136
|
# @return [Boolean]
|
@@ -3975,6 +4139,7 @@ module Wx::STC
|
|
3975
4139
|
|
3976
4140
|
# Mark text as modified (dirty).
|
3977
4141
|
#
|
4142
|
+
#
|
3978
4143
|
# @see Wx::STC::StyledTextCtrl#is_modified
|
3979
4144
|
# @return [void]
|
3980
4145
|
def mark_dirty; end
|
@@ -4004,6 +4169,7 @@ module Wx::STC
|
|
4004
4169
|
alias_method :default_style=, :set_default_style
|
4005
4170
|
|
4006
4171
|
# Converts the given zero based column and line number to a position.
|
4172
|
+
#
|
4007
4173
|
# The position value, or -1 if x or y was invalid.
|
4008
4174
|
# @param x [Integer] The column number.
|
4009
4175
|
# @param y [Integer] The line number.
|
@@ -4011,6 +4177,7 @@ module Wx::STC
|
|
4011
4177
|
def xy_to_position(x, y) end
|
4012
4178
|
|
4013
4179
|
# Converts given position to a zero-based column, line number pair.
|
4180
|
+
#
|
4014
4181
|
# true on success, false on failure (most likely due to a too large position parameter).
|
4015
4182
|
# @see Wx::STC::StyledTextCtrl#xy_to_position
|
4016
4183
|
# @param pos [Integer] Position.
|
@@ -4023,6 +4190,7 @@ module Wx::STC
|
|
4023
4190
|
def show_position(pos) end
|
4024
4191
|
|
4025
4192
|
# Finds the row and column of the character at the specified point.
|
4193
|
+
#
|
4026
4194
|
# 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.
|
4027
4195
|
# Please note that this function is currently only implemented in {Wx::Univ}, WXMSW and WXGTK2 ports and always returns {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} in the other ports.
|
4028
4196
|
# @see Wx::STC::StyledTextCtrl#position_to_xy
|