wxruby3 0.9.0.pre.rc.2-x64-mingw-ucrt → 0.9.0-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 +30 -8
- data/README.md +3 -3
- data/ext/mkrf_conf_bingem.rb +4 -1
- 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/accessors.rb +10 -2
- data/lib/wx/aui/auifloatframe.rb +20 -0
- data/lib/wx/aui/auimanager.rb +3 -0
- data/lib/wx/aui/auinotebook.rb +17 -0
- data/lib/wx/aui/events/evt_list.rb +7 -7
- data/lib/wx/aui/require.rb +5 -1
- data/lib/wx/aui.rb +4 -1
- data/lib/wx/core/acceleratortable.rb +8 -0
- data/lib/wx/core/animation.rb +8 -0
- data/lib/wx/core/app.rb +8 -0
- data/lib/wx/core/array_ext.rb +7 -0
- data/lib/wx/core/art_locator.rb +7 -0
- data/lib/wx/core/artprovider.rb +9 -0
- data/lib/wx/core/bitmap.rb +16 -4
- data/lib/wx/core/bitmap_combobox.rb +7 -0
- data/lib/wx/core/brush.rb +7 -0
- data/lib/wx/core/busycursor.rb +9 -0
- data/lib/wx/core/choice.rb +7 -0
- data/lib/wx/core/choicedlg.rb +7 -0
- data/lib/wx/core/clientdc.rb +9 -0
- data/lib/wx/core/clipboard.rb +8 -0
- data/lib/wx/core/collapsible_pane.rb +8 -1
- data/lib/wx/core/colour.rb +8 -0
- data/lib/wx/core/combo_ctrl.rb +110 -0
- data/lib/wx/core/combobox.rb +7 -0
- data/lib/wx/core/config.rb +303 -0
- data/lib/wx/core/controlwithitems.rb +12 -1
- data/lib/wx/core/cursor.rb +14 -4
- data/lib/wx/core/data_object.rb +7 -0
- data/lib/wx/core/dataformat.rb +9 -0
- data/lib/wx/core/datetime.rb +14 -0
- data/lib/wx/core/dc.rb +7 -0
- data/lib/wx/core/dialog.rb +18 -1
- data/lib/wx/core/enum.rb +7 -0
- data/lib/wx/core/event.rb +7 -0
- data/lib/wx/core/event_blocker.rb +7 -0
- data/lib/wx/core/event_loop.rb +14 -0
- data/lib/wx/core/events/evt_list.rb +76 -0
- data/lib/wx/core/evthandler.rb +8 -0
- data/lib/wx/core/ext.rb +7 -0
- data/lib/wx/core/file_dialog.rb +23 -0
- data/lib/wx/core/find_replace_dialog.rb +7 -0
- data/lib/wx/core/functions.rb +8 -0
- data/lib/wx/core/gauge.rb +10 -1
- data/lib/wx/core/genericdirctrl.rb +9 -0
- data/lib/wx/core/hboxsizer.rb +16 -0
- data/lib/wx/core/helpcontroller.rb +8 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +9 -0
- data/lib/wx/core/helpprovider.rb +10 -1
- data/lib/wx/core/icon.rb +17 -6
- data/lib/wx/core/id_helper.rb +7 -0
- data/lib/wx/core/image.rb +49 -4
- data/lib/wx/core/imagelist.rb +8 -1
- data/lib/wx/core/listbox.rb +7 -0
- data/lib/wx/core/listctrl.rb +26 -13
- data/lib/wx/core/locale.rb +8 -0
- data/lib/wx/core/log.rb +114 -0
- data/lib/wx/core/menu.rb +9 -0
- data/lib/wx/core/menu_bar.rb +7 -0
- data/lib/wx/core/menuitem.rb +9 -0
- data/lib/wx/core/notebook.rb +9 -0
- data/lib/wx/core/object.rb +9 -0
- data/lib/wx/core/paintdc.rb +7 -0
- data/lib/wx/core/pen.rb +7 -0
- data/lib/wx/core/pen_info.rb +7 -0
- data/lib/wx/core/platform_info.rb +7 -0
- data/lib/wx/core/point.rb +8 -0
- data/lib/wx/core/real_point.rb +8 -0
- data/lib/wx/core/rect.rb +9 -0
- data/lib/wx/core/region_iterator.rb +7 -0
- data/lib/wx/core/simplehelpprovider.rb +9 -0
- data/lib/wx/core/size.rb +8 -0
- data/lib/wx/core/sizer.rb +9 -0
- data/lib/wx/core/splash_screen.rb +22 -2
- data/lib/wx/core/text_entry.rb +7 -0
- data/lib/wx/core/textctrl.rb +86 -5
- data/lib/wx/core/timer.rb +9 -0
- data/lib/wx/core/toolbar.rb +9 -0
- data/lib/wx/core/toolbartool.rb +8 -0
- data/lib/wx/core/treectrl.rb +9 -0
- data/lib/wx/core/v_list_box.rb +7 -0
- data/lib/wx/core/validator.rb +7 -0
- data/lib/wx/core/variant.rb +7 -0
- data/lib/wx/core/vboxsizer.rb +16 -0
- data/lib/wx/core/window.rb +8 -0
- data/lib/wx/core/window_update_locker.rb +9 -0
- data/lib/wx/core/xmlresource.rb +8 -0
- data/lib/wx/core.rb +4 -1
- data/lib/wx/doc/app.rb +7 -1
- data/lib/wx/doc/array_ext.rb +6 -0
- data/lib/wx/doc/art_locator.rb +7 -0
- data/lib/wx/doc/aui/auimanager.rb +6 -0
- data/lib/wx/doc/aui/auinotebook.rb +6 -0
- data/lib/wx/doc/bitmap.rb +19 -15
- data/lib/wx/doc/brush.rb +6 -0
- data/lib/wx/doc/busy_info.rb +6 -0
- data/lib/wx/doc/client_dc.rb +6 -0
- data/lib/wx/doc/clipboard.rb +6 -0
- data/lib/wx/doc/colour_dialog.rb +6 -0
- data/lib/wx/doc/config.rb +190 -0
- data/lib/wx/doc/const.rb +7 -0
- data/lib/wx/doc/controlwithitems.rb +6 -0
- data/lib/wx/doc/core.rb +6 -0
- data/lib/wx/doc/cursor.rb +13 -5
- data/lib/wx/doc/data_object.rb +6 -0
- data/lib/wx/doc/datetime.rb +16 -0
- data/lib/wx/doc/dc.rb +6 -0
- data/lib/wx/doc/enum.rb +8 -1
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/event_blocker.rb +6 -0
- data/lib/wx/doc/event_loop.rb +13 -0
- data/lib/wx/doc/events.rb +6 -0
- data/lib/wx/doc/evthandler.rb +8 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/01_packages.md +52 -51
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/05_event-handling.md +37 -12
- data/lib/wx/doc/extra/06_geometry.md +5 -5
- data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
- data/lib/wx/doc/extra/09_exceptions.md +2 -2
- data/lib/wx/doc/extra/10_art.md +18 -12
- data/lib/wx/doc/extra/11_drawing_and_dc.md +8 -8
- data/lib/wx/doc/font.rb +7 -1
- data/lib/wx/doc/font_data.rb +16 -0
- data/lib/wx/doc/functions.rb +60 -24
- data/lib/wx/doc/gc_dc.rb +7 -1
- data/lib/wx/doc/gdi_common.rb +8 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +10 -10
- data/lib/wx/doc/gen/accelerator.rb +8 -13
- data/lib/wx/doc/gen/accessible.rb +27 -23
- data/lib/wx/doc/gen/activity_indicator.rb +7 -7
- data/lib/wx/doc/gen/animation.rb +20 -20
- data/lib/wx/doc/gen/animation_ctrl.rb +14 -13
- data/lib/wx/doc/gen/any_button.rb +3 -3
- data/lib/wx/doc/gen/app.rb +25 -88
- data/lib/wx/doc/gen/app_traits.rb +381 -0
- data/lib/wx/doc/gen/art_provider.rb +64 -4
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +57 -41
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +16 -10
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +19 -20
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +7 -7
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_notebook.rb +136 -26
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +95 -95
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +17 -17
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +61 -46
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +18 -18
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +11 -11
- data/lib/wx/doc/gen/aui/event_list.rb +7 -0
- data/lib/wx/doc/gen/banner_window.rb +98 -0
- data/lib/wx/doc/gen/bitmap.rb +56 -81
- data/lib/wx/doc/gen/bitmap_button.rb +13 -9
- data/lib/wx/doc/gen/bitmap_combo_box.rb +14 -9
- data/lib/wx/doc/gen/book_ctrl_base.rb +20 -16
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +24 -12
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +23 -11
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +34 -22
- data/lib/wx/doc/gen/calendar_date_attr.rb +13 -13
- data/lib/wx/doc/gen/calendar_event.rb +4 -10
- data/lib/wx/doc/gen/caret.rb +6 -6
- data/lib/wx/doc/gen/check_box.rb +19 -15
- data/lib/wx/doc/gen/check_list_box.rb +10 -9
- data/lib/wx/doc/gen/choice.rb +10 -9
- data/lib/wx/doc/gen/choicebook.rb +13 -7
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +10 -10
- data/lib/wx/doc/gen/collapsible_pane.rb +13 -10
- data/lib/wx/doc/gen/collapsible_pane_event.rb +5 -4
- data/lib/wx/doc/gen/colour.rb +42 -32
- data/lib/wx/doc/gen/colour_dialog.rb +12 -12
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +16 -10
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +29 -20
- data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
- data/lib/wx/doc/gen/command_link_button.rb +110 -0
- data/lib/wx/doc/gen/config_base.rb +10 -0
- data/lib/wx/doc/gen/context_help_button.rb +7 -6
- data/lib/wx/doc/gen/control.rb +12 -9
- data/lib/wx/doc/gen/control_with_items.rb +5 -5
- data/lib/wx/doc/gen/core.rb +8 -5
- data/lib/wx/doc/gen/cursor.rb +18 -18
- data/lib/wx/doc/gen/data_format.rb +5 -5
- data/lib/wx/doc/gen/data_object.rb +32 -25
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +16 -11
- data/lib/wx/doc/gen/dc.rb +162 -74
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +65 -22
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +3 -3
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +17 -12
- data/lib/wx/doc/gen/drag_drop.rb +26 -52
- data/lib/wx/doc/gen/drag_image.rb +13 -38
- data/lib/wx/doc/gen/editable_list_box.rb +9 -5
- data/lib/wx/doc/gen/event.rb +55 -32
- data/lib/wx/doc/gen/event_blocker.rb +1 -1
- data/lib/wx/doc/gen/event_filter.rb +5 -2
- data/lib/wx/doc/gen/event_list.rb +117 -19
- data/lib/wx/doc/gen/events.rb +351 -215
- data/lib/wx/doc/gen/evt_handler.rb +8 -8
- data/lib/wx/doc/gen/ext_help_controller.rb +9 -9
- data/lib/wx/doc/gen/file_dialog.rb +20 -9
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +19 -11
- data/lib/wx/doc/gen/file_system.rb +250 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +2 -2
- data/lib/wx/doc/gen/flex_grid_sizer.rb +16 -10
- data/lib/wx/doc/gen/font.rb +90 -94
- data/lib/wx/doc/gen/font_data.rb +15 -11
- data/lib/wx/doc/gen/font_dialog.rb +5 -5
- data/lib/wx/doc/gen/font_picker_ctrl.rb +11 -7
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +36 -27
- data/lib/wx/doc/gen/fs_file.rb +65 -38
- data/lib/wx/doc/gen/gauge.rb +14 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +43 -41
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +19 -13
- data/lib/wx/doc/gen/graphics_context.rb +320 -88
- data/lib/wx/doc/gen/graphics_object.rb +48 -102
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +41 -56
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +19 -14
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +15 -13
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +446 -189
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +26 -9
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +15 -11
- data/lib/wx/doc/gen/grid/grid_size_event.rb +13 -7
- data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -8
- data/lib/wx/doc/gen/grid/grid_table_base.rb +21 -21
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +15 -15
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/header_ctrl.rb +755 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
- data/lib/wx/doc/gen/help_controller.rb +25 -19
- data/lib/wx/doc/gen/help_provider.rb +3 -3
- data/lib/wx/doc/gen/html/html_cell.rb +100 -59
- data/lib/wx/doc/gen/html/html_cell_event.rb +7 -5
- data/lib/wx/doc/gen/html/html_easy_printing.rb +14 -9
- data/lib/wx/doc/gen/html/html_help_controller.rb +60 -46
- data/lib/wx/doc/gen/html/html_help_data.rb +5 -5
- data/lib/wx/doc/gen/html/html_help_window.rb +33 -35
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +21 -13
- data/lib/wx/doc/gen/html/html_printout.rb +16 -6
- data/lib/wx/doc/gen/html/html_window.rb +54 -39
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +15 -10
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
- data/lib/wx/doc/gen/icon.rb +24 -24
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +164 -114
- data/lib/wx/doc/gen/image_list.rb +24 -30
- data/lib/wx/doc/gen/info_bar.rb +152 -0
- data/lib/wx/doc/gen/keyboard_state.rb +24 -24
- data/lib/wx/doc/gen/list_box.rb +40 -31
- data/lib/wx/doc/gen/list_ctrl.rb +223 -167
- data/lib/wx/doc/gen/list_event.rb +25 -3
- data/lib/wx/doc/gen/listbook.rb +13 -7
- data/lib/wx/doc/gen/locale.rb +22 -71
- data/lib/wx/doc/gen/log.rb +133 -106
- data/lib/wx/doc/gen/mdi_client_window.rb +3 -3
- data/lib/wx/doc/gen/mdi_frame.rb +23 -17
- data/lib/wx/doc/gen/media_ctrl.rb +22 -19
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +26 -33
- data/lib/wx/doc/gen/menu.rb +24 -25
- data/lib/wx/doc/gen/menu_bar.rb +11 -28
- data/lib/wx/doc/gen/menu_item.rb +127 -46
- data/lib/wx/doc/gen/message_dialog.rb +54 -36
- data/lib/wx/doc/gen/mini_frame.rb +14 -5
- data/lib/wx/doc/gen/mouse_state.rb +51 -11
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +8 -9
- data/lib/wx/doc/gen/notebook.rb +27 -22
- data/lib/wx/doc/gen/number_entry_dialog.rb +3 -3
- data/lib/wx/doc/gen/object.rb +3 -14
- data/lib/wx/doc/gen/palette.rb +15 -17
- data/lib/wx/doc/gen/panel.rb +8 -7
- data/lib/wx/doc/gen/pen.rb +50 -37
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +17 -17
- data/lib/wx/doc/gen/pg/pg_cell.rb +13 -16
- data/lib/wx/doc/gen/pg/pg_editor.rb +95 -93
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +64 -89
- data/lib/wx/doc/gen/pg/pg_properties.rb +379 -349
- data/lib/wx/doc/gen/pg/pg_property.rb +260 -307
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid.rb +49 -49
- data/lib/wx/doc/gen/pg/property_grid_event.rb +24 -11
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +75 -69
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +51 -54
- data/lib/wx/doc/gen/pg/property_grid_page.rb +22 -30
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +17 -26
- data/lib/wx/doc/gen/picker_base.rb +17 -16
- data/lib/wx/doc/gen/platform_info.rb +180 -20
- data/lib/wx/doc/gen/popup_window.rb +8 -8
- data/lib/wx/doc/gen/progress_dialog.rb +3 -3
- data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -18
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +18 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +68 -62
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +44 -49
- data/lib/wx/doc/gen/query_layout_info_event.rb +6 -5
- data/lib/wx/doc/gen/radio_box.rb +21 -19
- data/lib/wx/doc/gen/radio_button.rb +13 -11
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +67 -67
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +38 -20
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +22 -15
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -11
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +14 -16
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -12
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +24 -22
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +17 -15
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
- data/lib/wx/doc/gen/rearrange_list.rb +99 -0
- data/lib/wx/doc/gen/region.rb +35 -43
- data/lib/wx/doc/gen/region_iterator.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +626 -1538
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +488 -503
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +31 -12
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +18 -18
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +23 -19
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +9 -18
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +29 -29
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
- data/lib/wx/doc/gen/sash_event.rb +8 -6
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -11
- data/lib/wx/doc/gen/sash_window.rb +14 -9
- data/lib/wx/doc/gen/scroll_bar.rb +33 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +49 -37
- data/lib/wx/doc/gen/scrolled_control.rb +49 -37
- data/lib/wx/doc/gen/scrolled_window.rb +49 -37
- data/lib/wx/doc/gen/search_ctrl.rb +20 -13
- data/lib/wx/doc/gen/simplebook.rb +7 -7
- data/lib/wx/doc/gen/single_choice_dialog.rb +5 -4
- data/lib/wx/doc/gen/sizer.rb +69 -73
- data/lib/wx/doc/gen/sizer_item.rb +5 -5
- data/lib/wx/doc/gen/slider.rb +51 -18
- data/lib/wx/doc/gen/spin_button.rb +17 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
- data/lib/wx/doc/gen/spin_double_event.rb +53 -0
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +36 -16
- data/lib/wx/doc/gen/static_bitmap.rb +9 -9
- data/lib/wx/doc/gen/static_box.rb +41 -37
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +8 -7
- data/lib/wx/doc/gen/static_text.rb +15 -9
- data/lib/wx/doc/gen/status_bar.rb +53 -10
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +200 -184
- data/lib/wx/doc/gen/stc/styled_text_event.rb +229 -54
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +8 -8
- data/lib/wx/doc/gen/system_options.rb +13 -3
- data/lib/wx/doc/gen/system_settings.rb +9 -9
- data/lib/wx/doc/gen/task_bar_icon.rb +17 -9
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +67 -61
- data/lib/wx/doc/gen/text_ctrl.rb +58 -113
- data/lib/wx/doc/gen/text_entry.rb +44 -56
- data/lib/wx/doc/gen/text_entry_dialog.rb +23 -23
- data/lib/wx/doc/gen/text_validator.rb +3 -19
- data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -10
- data/lib/wx/doc/gen/timer.rb +13 -9
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +3 -3
- data/lib/wx/doc/gen/toggle_button.rb +10 -9
- data/lib/wx/doc/gen/tool_bar.rb +71 -61
- data/lib/wx/doc/gen/tool_tip.rb +2 -10
- data/lib/wx/doc/gen/toolbook.rb +12 -9
- data/lib/wx/doc/gen/top_level_window.rb +53 -113
- data/lib/wx/doc/gen/tree_ctrl.rb +83 -33
- data/lib/wx/doc/gen/tree_event.rb +24 -3
- data/lib/wx/doc/gen/treebook.rb +20 -16
- data/lib/wx/doc/gen/ui_action_simulator.rb +20 -19
- data/lib/wx/doc/gen/utils.rb +20 -14
- data/lib/wx/doc/gen/v_list_box.rb +11 -11
- data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
- data/lib/wx/doc/gen/validator.rb +10 -8
- data/lib/wx/doc/gen/variant.rb +56 -119
- data/lib/wx/doc/gen/window.rb +314 -224
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +2 -2
- data/lib/wx/doc/gen/wizard.rb +21 -8
- data/lib/wx/doc/gen/wizard_event.rb +11 -4
- data/lib/wx/doc/gen/wizard_page.rb +3 -3
- data/lib/wx/doc/gen/wizard_page_simple.rb +8 -8
- data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
- data/lib/wx/doc/gen/xml_node.rb +13 -13
- data/lib/wx/doc/gen/xml_resource.rb +24 -21
- data/lib/wx/doc/graphics_context.rb +59 -39
- data/lib/wx/doc/grid/grid.rb +16 -1
- data/lib/wx/doc/hboxsizer.rb +33 -0
- data/lib/wx/doc/help_controller.rb +6 -0
- data/lib/wx/doc/html/html_help_controller.rb +6 -0
- data/lib/wx/doc/icon.rb +13 -5
- data/lib/wx/doc/id_helper.rb +6 -0
- data/lib/wx/doc/image.rb +50 -12
- data/lib/wx/doc/list_ctrl.rb +38 -0
- data/lib/wx/doc/log.rb +45 -0
- data/lib/wx/doc/memory_dc.rb +6 -0
- data/lib/wx/doc/mirror_dc.rb +6 -0
- data/lib/wx/doc/pen.rb +6 -0
- data/lib/wx/doc/pg/events.rb +6 -0
- data/lib/wx/doc/pg/pg_property.rb +17 -0
- data/lib/wx/doc/pg/pgeditor.rb +6 -0
- data/lib/wx/doc/pg/property_grid.rb +6 -0
- data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
- data/lib/wx/doc/progress_dialog.rb +6 -0
- data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
- data/lib/wx/doc/prt/print_data.rb +6 -0
- data/lib/wx/doc/prt/print_dialog.rb +6 -0
- data/lib/wx/doc/prt/printer.rb +6 -0
- data/lib/wx/doc/prt/printer_dc.rb +8 -2
- data/lib/wx/doc/radio_box.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
- data/lib/wx/doc/region_iterator.rb +6 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
- data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
- data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +7 -1
- data/lib/wx/doc/screen_dc.rb +6 -0
- data/lib/wx/doc/stock_objects.rb +6 -0
- data/lib/wx/doc/stream.rb +6 -0
- data/lib/wx/doc/svg_file_dc.rb +6 -0
- data/lib/wx/doc/system_settings.rb +6 -0
- data/lib/wx/doc/text_validator.rb +18 -0
- data/lib/wx/doc/textctrl.rb +89 -0
- data/lib/wx/doc/tree_event.rb +20 -0
- data/lib/wx/doc/treebook.rb +6 -0
- data/lib/wx/doc/v_list_box.rb +6 -0
- data/lib/wx/doc/variant.rb +6 -0
- data/lib/wx/doc/vboxsizer.rb +33 -0
- data/lib/wx/doc/window.rb +6 -0
- data/lib/wx/doc/window_disabler.rb +6 -0
- data/lib/wx/doc/xml_resource.rb +8 -0
- data/lib/wx/global_const.rb +4 -1
- data/lib/wx/grid/grid.rb +23 -3
- data/lib/wx/grid/keyword_defs.rb +8 -1
- data/lib/wx/grid/require.rb +4 -1
- data/lib/wx/grid.rb +4 -1
- data/lib/wx/helpers.rb +8 -1
- data/lib/wx/html/htmlhelpcontroller.rb +29 -3
- data/lib/wx/html/htmlwindow.rb +23 -12
- data/lib/wx/html/keyword_defs.rb +8 -1
- data/lib/wx/html/require.rb +4 -1
- data/lib/wx/html/simple_html_listbox.rb +3 -0
- data/lib/wx/html.rb +4 -1
- data/lib/wx/keyword_ctors.rb +22 -3
- data/lib/wx/keyword_defs.rb +55 -3
- data/lib/wx/pg/events.rb +4 -1
- data/lib/wx/pg/keyword_defs.rb +8 -1
- data/lib/wx/pg/pg_editor.rb +3 -0
- data/lib/wx/pg/pg_properties.rb +4 -1
- data/lib/wx/pg/pg_property.rb +18 -5
- data/lib/wx/pg/property_grid.rb +4 -1
- data/lib/wx/pg/property_grid_interface.rb +3 -0
- data/lib/wx/pg/require.rb +4 -1
- data/lib/wx/pg.rb +4 -1
- data/lib/wx/prt/keyword_defs.rb +8 -1
- data/lib/wx/prt/page_setup_dialog.rb +3 -0
- data/lib/wx/prt/previewframe.rb +5 -0
- data/lib/wx/prt/require.rb +4 -1
- data/lib/wx/prt.rb +4 -1
- data/lib/wx/rbn/events.rb +4 -1
- data/lib/wx/rbn/keyword_defs.rb +8 -1
- data/lib/wx/rbn/require.rb +5 -1
- data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
- data/lib/wx/rbn/ribbon_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_control.rb +3 -0
- data/lib/wx/rbn/ribbon_gallery.rb +10 -0
- data/lib/wx/rbn/ribbon_page.rb +3 -0
- data/lib/wx/rbn/ribbon_panel.rb +3 -0
- data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
- data/lib/wx/rbn.rb +4 -1
- data/lib/wx/rtc/ext.rb +4 -1
- data/lib/wx/rtc/keyword_defs.rb +18 -7
- data/lib/wx/rtc/require.rb +8 -1
- data/lib/wx/rtc/richtext_buffer.rb +36 -0
- data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
- data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
- data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
- data/lib/wx/rtc.rb +5 -1
- data/lib/wx/stc/keyword_defs.rb +8 -1
- data/lib/wx/stc/require.rb +4 -1
- data/lib/wx/stc.rb +4 -1
- data/lib/wx/version.rb +5 -1
- data/lib/wx/wxruby/base.rb +4 -1
- data/lib/wx/wxruby/cmd/sampler.rb +4 -1
- data/lib/wx/wxruby/cmd/test.rb +4 -1
- data/lib/wx.rb +4 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/install.rb +4 -1
- data/rakelib/lib/config/cygwin.rb +4 -1
- data/rakelib/lib/config/linux.rb +4 -1
- data/rakelib/lib/config/macosx.rb +5 -2
- data/rakelib/lib/config/mingw.rb +4 -1
- data/rakelib/lib/config/netbsd.rb +4 -1
- data/rakelib/lib/config/unixish.rb +10 -7
- data/rakelib/lib/config.rb +7 -2
- data/rakelib/lib/ext/enum_chain.rb +4 -1
- data/rakelib/prepost.rake +4 -1
- data/rakelib/prepost.rb +4 -1
- data/samples/aui/aui.rb +8 -3
- data/samples/bigdemo/bigdemo.rb +9 -2
- data/samples/bigdemo/run.rb +9 -2
- data/samples/bigdemo/utils.rb +9 -1
- data/samples/calendar/calendar.rb +9 -4
- data/samples/caret/caret.rb +8 -3
- data/samples/controls/books.rb +8 -2
- data/samples/controls/controls.rb +33 -77
- data/samples/controls/get_item_sample.rb +8 -2
- data/samples/controls/htlbox.rb +10 -3
- data/samples/dialogs/dialogs.rb +9 -4
- data/samples/dialogs/wizard.rb +8 -3
- data/samples/dragdrop/dragdrop.rb +8 -3
- data/samples/drawing/bitmap.rb +8 -3
- data/samples/drawing/bitmap_image.rb +8 -3
- data/samples/drawing/graphics_drawing.rb +44 -33
- data/samples/drawing/image_prt.rb +8 -2
- data/samples/drawing/maths_images.rb +8 -3
- data/samples/drawing/rmagic_bitmap_image.rb +8 -3
- data/samples/etc/choice.rb +8 -3
- data/samples/etc/miniframe.rb +8 -3
- data/samples/etc/sash.rb +8 -3
- data/samples/etc/scrollwin.rb +8 -3
- data/samples/etc/system_settings.rb +8 -3
- data/samples/event/activation.rb +8 -3
- data/samples/event/event.rb +8 -3
- data/samples/event/threaded.rb +8 -3
- data/samples/event/update_ui_event.rb +8 -3
- data/samples/grid/grid.rb +9 -3
- data/samples/grid/gridtablebase.rb +8 -3
- data/samples/html/html.rb +8 -3
- data/samples/mdi/mdi.rb +8 -3
- data/samples/minimal/minimal.rb +8 -3
- data/samples/minimal/nothing.rb +8 -3
- data/samples/printing/printing.rb +8 -3
- data/samples/printing/printing2.rb +8 -2
- data/samples/propgrid/propgrid.rb +4 -1
- data/samples/propgrid/propgrid_minimal.rb +4 -2
- data/samples/propgrid/sample_props.rb +4 -1
- data/samples/ribbon/ribbon.rb +4 -1
- data/samples/sampler/editor.rb +4 -1
- data/samples/sampler/ext.rb +4 -1
- data/samples/sampler/sample.rb +13 -4
- data/samples/sampler/stc_editor.rb +4 -1
- data/samples/sampler/txt_editor.rb +4 -1
- data/samples/sampler.rb +11 -3
- data/samples/splash/splash.rb +4 -2
- data/samples/text/art/richtext/alignleft.xpm +24 -0
- data/samples/text/art/richtext/alignright.xpm +24 -0
- data/samples/text/art/richtext/bold.xpm +24 -0
- data/samples/text/art/richtext/centre.xpm +24 -0
- data/samples/text/art/richtext/copy.xpm +45 -0
- data/samples/text/art/richtext/cut.xpm +47 -0
- data/samples/text/art/richtext/font.xpm +25 -0
- data/samples/text/art/richtext/idea.xpm +47 -0
- data/samples/text/art/richtext/indentless.xpm +25 -0
- data/samples/text/art/richtext/indentmore.xpm +25 -0
- data/samples/text/art/richtext/italic.xpm +25 -0
- data/samples/text/art/richtext/open.xpm +58 -0
- data/samples/text/art/richtext/paste.xpm +47 -0
- data/samples/text/art/richtext/redo.xpm +59 -0
- data/samples/text/art/richtext/save.xpm +43 -0
- data/samples/text/art/richtext/smiley.xpm +42 -0
- data/samples/text/art/richtext/underline.xpm +25 -0
- data/samples/text/art/richtext/undo.xpm +59 -0
- data/samples/text/art/richtext/zebra.xpm +409 -0
- data/samples/text/rich_textctrl.rb +8 -3
- data/samples/text/richtext.rb +1824 -0
- data/samples/text/scintilla.rb +8 -3
- data/samples/text/textctrl.rb +21 -4
- data/samples/text/tn_richtext.png +0 -0
- data/samples/text/unicode.rb +9 -4
- data/samples/treectrl/treectrl.rb +10 -5
- data/samples/xrc/custom_xrc_sample.rb +8 -3
- data/samples/xrc/xrc_sample.rb +8 -3
- data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
- data/tests/lib/item_container_tests.rb +3 -0
- data/tests/lib/text_entry_tests.rb +3 -0
- data/tests/lib/wxapp_runner.rb +3 -0
- data/tests/lib/wxframe_runner.rb +81 -3
- data/tests/test_app_event_filter.rb +3 -0
- data/tests/test_app_traits.rb +33 -0
- data/tests/test_art.rb +31 -0
- data/tests/test_art_provider.rb +3 -0
- data/tests/test_aui.rb +65 -0
- data/tests/test_basic.rb +5 -1
- data/tests/test_box_sizer.rb +164 -0
- data/tests/test_clipboard.rb +3 -0
- data/tests/test_config.rb +150 -0
- data/tests/test_dc.rb +3 -0
- data/tests/test_dialog.rb +3 -0
- data/tests/test_event_handling.rb +3 -0
- data/tests/test_events.rb +3 -0
- data/tests/test_ext_controls.rb +286 -3
- data/tests/test_file_dialog.rb +55 -0
- data/tests/test_font.rb +8 -5
- data/tests/test_gdi_object.rb +3 -0
- data/tests/test_geometry.rb +4 -0
- data/tests/test_grid_sizer.rb +151 -0
- data/tests/test_intl.rb +3 -0
- data/tests/test_item_data.rb +3 -0
- data/tests/test_list_ctrl.rb +56 -0
- data/tests/test_log.rb +226 -0
- data/tests/test_proof_check.rb +52 -0
- data/tests/test_richtext.rb +204 -0
- data/tests/test_std_controls.rb +99 -31
- data/tests/test_timer.rb +98 -0
- data/tests/test_variant.rb +3 -0
- data/tests/test_window.rb +10 -8
- data/tests/testapp.rb +4 -0
- data/tests/testapp_noframe.rb +4 -0
- metadata +87 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
@@ -177,23 +177,27 @@ module Wx::RTC
|
|
177
177
|
# === Styles
|
178
178
|
#
|
179
179
|
# This class supports the following styles:
|
180
|
-
#
|
180
|
+
#
|
181
181
|
# - {Wx::RTC::RE_CENTRE_CARET}: The control will try to keep the caret line centred vertically while editing. {Wx::RTC::RE_CENTER_CARET} is a synonym for this style.
|
182
|
+
#
|
182
183
|
# - {Wx::RTC::RE_MULTILINE}: The control will be multiline (mandatory).
|
184
|
+
#
|
183
185
|
# - {Wx::RTC::RE_READONLY}: The control will not be editable.
|
184
186
|
#
|
185
187
|
# ===
|
186
188
|
#
|
187
|
-
# Category: Rich Text <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
188
|
-
# </td><td>
|
189
|
-
# </td><td>
|
189
|
+
# Category: Rich Text <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
190
|
+
# </td><td> wxGTK Appearance
|
191
|
+
# </td><td> wxOSX Appearance
|
190
192
|
# </td></tr></table></div>
|
191
193
|
#
|
192
194
|
class RichTextCtrl < Control
|
193
195
|
|
196
|
+
include Wx::TextEntry
|
197
|
+
|
194
198
|
# @overload initialize()
|
195
199
|
# Default constructor.
|
196
|
-
# @return [RichTextCtrl]
|
200
|
+
# @return [Wx::RTC::RichTextCtrl]
|
197
201
|
# @overload initialize(parent, id=-1, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RTC::RE_MULTILINE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr)
|
198
202
|
# Constructor, creating and showing a rich text control.
|
199
203
|
#
|
@@ -207,7 +211,7 @@ module Wx::RTC
|
|
207
211
|
# @param style [Integer] Window style.
|
208
212
|
# @param validator [Wx::Validator] Window validator.
|
209
213
|
# @param name [String] Window name.
|
210
|
-
# @return [RichTextCtrl]
|
214
|
+
# @return [Wx::RTC::RichTextCtrl]
|
211
215
|
def initialize(*args) end
|
212
216
|
|
213
217
|
# Creates the underlying window.
|
@@ -219,7 +223,7 @@ module Wx::RTC
|
|
219
223
|
# @param style [Integer]
|
220
224
|
# @param validator [Wx::Validator]
|
221
225
|
# @param name [String]
|
222
|
-
# @return [
|
226
|
+
# @return [Boolean]
|
223
227
|
def create(parent, id=-1, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RTC::RE_MULTILINE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr) end
|
224
228
|
|
225
229
|
# Initialises the members of the control.
|
@@ -252,27 +256,27 @@ module Wx::RTC
|
|
252
256
|
alias_method :number_of_lines, :get_number_of_lines
|
253
257
|
|
254
258
|
# Returns true if the buffer has been modified.
|
255
|
-
# @return [
|
259
|
+
# @return [Boolean]
|
256
260
|
def is_modified; end
|
257
261
|
alias_method :modified?, :is_modified
|
258
262
|
|
259
263
|
# Returns true if the control is editable.
|
260
|
-
# @return [
|
264
|
+
# @return [Boolean]
|
261
265
|
def is_editable; end
|
262
266
|
alias_method :editable?, :is_editable
|
263
267
|
|
264
268
|
# Returns true if the control is single-line.
|
265
269
|
# Currently {Wx::RTC::RichTextCtrl} does not support single-line editing.
|
266
|
-
# @return [
|
270
|
+
# @return [Boolean]
|
267
271
|
def is_single_line; end
|
268
272
|
alias_method :single_line?, :is_single_line
|
269
273
|
|
270
274
|
# Returns true if the control is multiline.
|
271
|
-
# @return [
|
275
|
+
# @return [Boolean]
|
272
276
|
def is_multi_line; end
|
273
277
|
alias_method :multi_line?, :is_multi_line
|
274
278
|
|
275
|
-
# @return [Wx::RichTextSelection]
|
279
|
+
# @return [Wx::RTC::RichTextSelection]
|
276
280
|
def get_selection; end
|
277
281
|
alias_method :selection, :get_selection
|
278
282
|
|
@@ -305,20 +309,20 @@ module Wx::RTC
|
|
305
309
|
def get_delayed_layout_threshold; end
|
306
310
|
alias_method :delayed_layout_threshold, :get_delayed_layout_threshold
|
307
311
|
|
308
|
-
# @return [
|
312
|
+
# @return [Boolean]
|
309
313
|
def get_full_layout_required; end
|
310
314
|
alias_method :full_layout_required, :get_full_layout_required
|
311
315
|
|
312
|
-
# @param b [
|
316
|
+
# @param b [Boolean]
|
313
317
|
# @return [void]
|
314
318
|
def set_full_layout_required(b) end
|
315
319
|
alias_method :full_layout_required=, :set_full_layout_required
|
316
320
|
|
317
|
-
# @return [
|
321
|
+
# @return [Integer]
|
318
322
|
def get_full_layout_time; end
|
319
323
|
alias_method :full_layout_time, :get_full_layout_time
|
320
324
|
|
321
|
-
# @param t [
|
325
|
+
# @param t [Integer]
|
322
326
|
# @return [void]
|
323
327
|
def set_full_layout_time(t) end
|
324
328
|
alias_method :full_layout_time=, :set_full_layout_time
|
@@ -358,34 +362,34 @@ module Wx::RTC
|
|
358
362
|
alias_method :url_cursor, :get_url_cursor
|
359
363
|
|
360
364
|
# Returns true if we are showing the caret position at the start of a line instead of at the end of the previous one.
|
361
|
-
# @return [
|
365
|
+
# @return [Boolean]
|
362
366
|
def get_caret_at_line_start; end
|
363
367
|
alias_method :caret_at_line_start, :get_caret_at_line_start
|
364
368
|
|
365
369
|
# Sets a flag to remember that we are showing the caret position at the start of a line instead of at the end of the previous one.
|
366
|
-
# @param atStart [
|
370
|
+
# @param atStart [Boolean]
|
367
371
|
# @return [void]
|
368
372
|
def set_caret_at_line_start(atStart) end
|
369
373
|
alias_method :caret_at_line_start=, :set_caret_at_line_start
|
370
374
|
|
371
375
|
# Returns true if we are extending a selection.
|
372
|
-
# @return [
|
376
|
+
# @return [Boolean]
|
373
377
|
def get_dragging; end
|
374
378
|
alias_method :dragging, :get_dragging
|
375
379
|
|
376
380
|
# Sets a flag to remember if we are extending a selection.
|
377
|
-
# @param dragging [
|
381
|
+
# @param dragging [Boolean]
|
378
382
|
# @return [void]
|
379
383
|
def set_dragging(dragging) end
|
380
384
|
alias_method :dragging=, :set_dragging
|
381
385
|
|
382
386
|
# Are we trying to start Drag'n'Drop?
|
383
|
-
# @return [
|
387
|
+
# @return [Boolean]
|
384
388
|
def get_pre_drag; end
|
385
389
|
alias_method :pre_drag, :get_pre_drag
|
386
390
|
|
387
391
|
# Set if we're trying to start Drag'n'Drop.
|
388
|
-
# @param pd [
|
392
|
+
# @param pd [Boolean]
|
389
393
|
# @return [void]
|
390
394
|
def set_pre_drag(pd) end
|
391
395
|
alias_method :pre_drag=, :set_pre_drag
|
@@ -407,7 +411,7 @@ module Wx::RTC
|
|
407
411
|
alias_method :drag_start_time, :get_drag_start_time
|
408
412
|
|
409
413
|
# Set the possible Drag'n'Drop start time.
|
410
|
-
# @param st [
|
414
|
+
# @param st [Time,Date,DateTime]
|
411
415
|
# @return [void]
|
412
416
|
def set_drag_start_time(st) end
|
413
417
|
alias_method :drag_start_time=, :set_drag_start_time
|
@@ -437,40 +441,35 @@ module Wx::RTC
|
|
437
441
|
alias_method :selection_anchor=, :set_selection_anchor
|
438
442
|
|
439
443
|
# Returns the anchor object if selecting multiple containers.
|
440
|
-
# @return [Wx::RichTextObject]
|
444
|
+
# @return [Wx::RTC::RichTextObject]
|
441
445
|
def get_selection_anchor_object; end
|
442
446
|
alias_method :selection_anchor_object, :get_selection_anchor_object
|
443
447
|
|
444
448
|
# Sets the anchor object if selecting multiple containers.
|
445
|
-
# @param anchor [Wx::RichTextObject]
|
449
|
+
# @param anchor [Wx::RTC::RichTextObject]
|
446
450
|
# @return [void]
|
447
451
|
def set_selection_anchor_object(anchor) end
|
448
452
|
alias_method :selection_anchor_object=, :set_selection_anchor_object
|
449
453
|
|
450
|
-
# @
|
451
|
-
|
452
|
-
# The {Wx::RichTextContextMenuPropertiesInfo} stores one item for each object that could respond to a property-editing event. If objects are nested, several might be editable.
|
453
|
-
# @return [Wx::RichTextContextMenuPropertiesInfo]
|
454
|
-
# @overload get_context_menu_properties_info()
|
455
|
-
# @return [Wx::RichTextContextMenuPropertiesInfo]
|
456
|
-
def get_context_menu_properties_info(*args) end
|
454
|
+
# @return [Wx::RTC::RichTextContextMenuPropertiesInfo]
|
455
|
+
def get_context_menu_properties_info; end
|
457
456
|
alias_method :context_menu_properties_info, :get_context_menu_properties_info
|
458
457
|
|
459
|
-
# Returns the {Wx::RichTextObject} object that currently has the editing focus.
|
458
|
+
# Returns the {Wx::RTC::RichTextObject} object that currently has the editing focus.
|
460
459
|
# If there are no composite objects, this will be the top-level buffer.
|
461
|
-
# @return [Wx::RichTextParagraphLayoutBox]
|
460
|
+
# @return [Wx::RTC::RichTextParagraphLayoutBox]
|
462
461
|
def get_focus_object; end
|
463
462
|
alias_method :focus_object, :get_focus_object
|
464
463
|
|
465
464
|
# Setter for m_focusObject.
|
466
|
-
# @param obj [Wx::RichTextParagraphLayoutBox]
|
465
|
+
# @param obj [Wx::RTC::RichTextParagraphLayoutBox]
|
467
466
|
# @return [void]
|
468
467
|
def store_focus_object(obj) end
|
469
468
|
|
470
|
-
# Sets the {Wx::RichTextObject} object that currently has the editing focus.
|
471
|
-
# @param obj [Wx::RichTextParagraphLayoutBox] The {Wx::RichTextObject} to set focus on.
|
472
|
-
# @param setCaretPosition [
|
473
|
-
# @return [
|
469
|
+
# Sets the {Wx::RTC::RichTextObject} object that currently has the editing focus.
|
470
|
+
# @param obj [Wx::RTC::RichTextParagraphLayoutBox] The {Wx::RTC::RichTextObject} to set focus on.
|
471
|
+
# @param setCaretPosition [Boolean] Optionally set the caret position.
|
472
|
+
# @return [Boolean]
|
474
473
|
def set_focus_object(obj, setCaretPosition=true) end
|
475
474
|
alias_method :focus_object=, :set_focus_object
|
476
475
|
|
@@ -501,7 +500,7 @@ module Wx::RTC
|
|
501
500
|
# This function looks for a suitable {Wx::RTC::RichTextFileHandler} object.
|
502
501
|
# @param file [String]
|
503
502
|
# @param type [Integer]
|
504
|
-
# @return [
|
503
|
+
# @return [Boolean]
|
505
504
|
def load_file(file, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
|
506
505
|
|
507
506
|
# Helper function for {Wx::RTC::RichTextCtrl#load_file}.
|
@@ -510,7 +509,7 @@ module Wx::RTC
|
|
510
509
|
# This function looks for a suitable {Wx::RTC::RichTextFileHandler} object.
|
511
510
|
# @param file [String]
|
512
511
|
# @param fileType [Integer]
|
513
|
-
# @return [
|
512
|
+
# @return [Boolean]
|
514
513
|
def do_load_file(file, fileType) end
|
515
514
|
|
516
515
|
# Saves the buffer content using the given type.
|
@@ -518,7 +517,7 @@ module Wx::RTC
|
|
518
517
|
# This function looks for a suitable {Wx::RTC::RichTextFileHandler} object.
|
519
518
|
# @param file [String]
|
520
519
|
# @param type [Integer]
|
521
|
-
# @return [
|
520
|
+
# @return [Boolean]
|
522
521
|
def save_file(file=(''), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
|
523
522
|
|
524
523
|
# Helper function for {Wx::RTC::RichTextCtrl#save_file}.
|
@@ -527,7 +526,7 @@ module Wx::RTC
|
|
527
526
|
# This function looks for a suitable {Wx::RTC::RichTextFileHandler} object.
|
528
527
|
# @param file [String]
|
529
528
|
# @param fileType [Integer]
|
530
|
-
# @return [
|
529
|
+
# @return [Boolean]
|
531
530
|
def do_save_file(file=(''), fileType=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
|
532
531
|
|
533
532
|
# Sets flags that change the behaviour of loading or saving.
|
@@ -551,7 +550,7 @@ module Wx::RTC
|
|
551
550
|
# @return [void]
|
552
551
|
def discard_edits; end
|
553
552
|
|
554
|
-
# @param modified [
|
553
|
+
# @param modified [Boolean]
|
555
554
|
# @return [void]
|
556
555
|
def set_modified(modified) end
|
557
556
|
alias_method :modified=, :set_modified
|
@@ -579,50 +578,57 @@ module Wx::RTC
|
|
579
578
|
# To get the character or paragraph style alone, use {Wx::RTC::RichTextCtrl#get_uncombined_style}.
|
580
579
|
# @param position [Integer]
|
581
580
|
# @param style [Wx::TextAttr]
|
582
|
-
# @return [
|
581
|
+
# @return [Boolean]
|
583
582
|
# @overload get_style(position, style)
|
584
583
|
# @param position [Integer]
|
585
|
-
# @param style [Wx::RichTextAttr]
|
586
|
-
# @return [
|
584
|
+
# @param style [Wx::RTC::RichTextAttr]
|
585
|
+
# @return [Boolean]
|
587
586
|
# @overload get_style(position, style, container)
|
588
587
|
# @param position [Integer]
|
589
|
-
# @param style [Wx::RichTextAttr]
|
590
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
591
|
-
# @return [
|
588
|
+
# @param style [Wx::RTC::RichTextAttr]
|
589
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
590
|
+
# @return [Boolean]
|
592
591
|
def get_style(*args) end
|
593
592
|
alias_method :style, :get_style
|
594
593
|
|
595
594
|
# @overload set_style(start, end_, style)
|
596
595
|
# @param start [Integer]
|
597
596
|
# @param end_ [Integer]
|
598
|
-
# @param style [Wx::RichTextAttr]
|
599
|
-
# @return [
|
597
|
+
# @param style [Wx::RTC::RichTextAttr]
|
598
|
+
# @return [Boolean]
|
600
599
|
# @overload set_style(range, style)
|
601
600
|
# @param range [Range]
|
602
|
-
# @param style [Wx::RichTextAttr]
|
603
|
-
# @return [
|
601
|
+
# @param style [Wx::RTC::RichTextAttr]
|
602
|
+
# @return [Boolean]
|
604
603
|
def set_style(*args) end
|
605
604
|
|
606
605
|
# @overload get_style_for_range(range, style)
|
607
606
|
# @param range [Range]
|
608
|
-
# @param style [Wx::RichTextAttr]
|
609
|
-
# @return [
|
607
|
+
# @param style [Wx::RTC::RichTextAttr]
|
608
|
+
# @return [Boolean]
|
610
609
|
# @overload get_style_for_range(range, style, container)
|
611
610
|
# @param range [Range]
|
612
|
-
# @param style [Wx::RichTextAttr]
|
613
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
614
|
-
# @return [
|
611
|
+
# @param style [Wx::RTC::RichTextAttr]
|
612
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
613
|
+
# @return [Boolean]
|
615
614
|
def get_style_for_range(*args) end
|
616
615
|
alias_method :style_for_range, :get_style_for_range
|
617
616
|
|
618
617
|
# Sets the attributes for the given range, passing flags to determine how the attributes are set.
|
619
618
|
# The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the style for a character at position 5, use the range (5,6).
|
620
619
|
# flags may contain a bit list of the following values:
|
621
|
-
#
|
620
|
+
#
|
621
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_NONE}: no style flag.
|
622
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this operation should be undoable.
|
623
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_OPTIMIZE}: specifies that the style should not be applied if the combined style at this point is already the style in question.
|
624
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY}: specifies that the style should only be applied to paragraphs, and not the content. This allows content styling to be preserved independently from that of e.g. a named paragraph style.
|
625
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_CHARACTERS_ONLY}: specifies that the style should only be applied to characters, and not the paragraph. This allows content styling to be preserved independently from that of e.g. a named paragraph style.
|
626
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_RESET}: resets (clears) the existing style before applying the new style.
|
627
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_REMOVE}: removes the specified style. Only the style flags are used in this operation.
|
622
628
|
# @param range [Range]
|
623
|
-
# @param style [Wx::RichTextAttr]
|
629
|
+
# @param style [Wx::RTC::RichTextAttr]
|
624
630
|
# @param flags [Integer]
|
625
|
-
# @return [
|
631
|
+
# @return [Boolean]
|
626
632
|
def set_style_ex(range, style, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
|
627
633
|
|
628
634
|
# @overload get_uncombined_style(position, style)
|
@@ -630,28 +636,28 @@ module Wx::RTC
|
|
630
636
|
# This function gets the uncombined style - that is, the attributes associated with the paragraph or character content, and not necessarily the combined attributes you see on the screen. To get the combined attributes, use {Wx::RTC::RichTextCtrl#get_style}.
|
631
637
|
# If you specify (any) paragraph attribute in style's flags, this function will fetch the paragraph attributes. Otherwise, it will return the character attributes.
|
632
638
|
# @param position [Integer]
|
633
|
-
# @param style [Wx::RichTextAttr]
|
634
|
-
# @return [
|
639
|
+
# @param style [Wx::RTC::RichTextAttr]
|
640
|
+
# @return [Boolean]
|
635
641
|
# @overload get_uncombined_style(position, style, container)
|
636
642
|
# @param position [Integer]
|
637
|
-
# @param style [Wx::RichTextAttr]
|
638
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
639
|
-
# @return [
|
643
|
+
# @param style [Wx::RTC::RichTextAttr]
|
644
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
645
|
+
# @return [Boolean]
|
640
646
|
def get_uncombined_style(*args) end
|
641
647
|
alias_method :uncombined_style, :get_uncombined_style
|
642
648
|
|
643
649
|
# @overload set_default_style(style)
|
644
650
|
# Sets the current default style, which can be used to change how subsequently inserted text is displayed.
|
645
651
|
# @param style [Wx::TextAttr]
|
646
|
-
# @return [
|
652
|
+
# @return [Boolean]
|
647
653
|
# @overload set_default_style(style)
|
648
|
-
# @param style [Wx::RichTextAttr]
|
649
|
-
# @return [
|
654
|
+
# @param style [Wx::RTC::RichTextAttr]
|
655
|
+
# @return [Boolean]
|
650
656
|
def set_default_style(*args) end
|
651
657
|
alias_method :default_style=, :set_default_style
|
652
658
|
|
653
659
|
# Returns the current default style, which can be used to change how subsequently inserted text is displayed.
|
654
|
-
# @return [Wx::RichTextAttr]
|
660
|
+
# @return [Wx::RTC::RichTextAttr]
|
655
661
|
def get_default_style_ex; end
|
656
662
|
alias_method :default_style_ex, :get_default_style_ex
|
657
663
|
|
@@ -660,18 +666,19 @@ module Wx::RTC
|
|
660
666
|
# @param flags [Integer]
|
661
667
|
# @param startFrom [Integer]
|
662
668
|
# @param specifiedLevel [Integer]
|
663
|
-
# @return [
|
669
|
+
# @return [Boolean]
|
664
670
|
def set_list_style(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) end
|
665
671
|
|
666
672
|
# Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.
|
667
673
|
# flags is a bit list of the following:
|
674
|
+
#
|
668
675
|
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
|
669
676
|
# @see Wx::RTC::RichTextCtrl#set_list_style
|
670
677
|
# @see Wx::RTC::RichTextCtrl#promote_list
|
671
678
|
# @see Wx::RTC::RichTextCtrl#number_list.
|
672
679
|
# @param range [Range]
|
673
680
|
# @param flags [Integer]
|
674
|
-
# @return [
|
681
|
+
# @return [Boolean]
|
675
682
|
def clear_list_style(range, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
|
676
683
|
|
677
684
|
# @overload number_list(range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
|
@@ -679,30 +686,36 @@ module Wx::RTC
|
|
679
686
|
# Pass flags to determine how the attributes are set.
|
680
687
|
# Either the style definition or the name of the style definition (in the current sheet) can be passed.
|
681
688
|
# flags is a bit list of the following:
|
682
|
-
#
|
689
|
+
#
|
690
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
|
691
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
|
692
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
|
683
693
|
# @see Wx::RTC::RichTextCtrl#set_list_style
|
684
694
|
# @see Wx::RTC::RichTextCtrl#promote_list
|
685
695
|
# @see Wx::RTC::RichTextCtrl#clear_list_style.
|
686
696
|
# @param range [Range]
|
687
|
-
# @param def_ [Wx::RichTextListStyleDefinition]
|
697
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
688
698
|
# @param flags [Integer]
|
689
699
|
# @param startFrom [Integer]
|
690
700
|
# @param specifiedLevel [Integer]
|
691
|
-
# @return [
|
701
|
+
# @return [Boolean]
|
692
702
|
# @overload number_list(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
|
693
703
|
# @param range [Range]
|
694
704
|
# @param defName [String]
|
695
705
|
# @param flags [Integer]
|
696
706
|
# @param startFrom [Integer]
|
697
707
|
# @param specifiedLevel [Integer]
|
698
|
-
# @return [
|
708
|
+
# @return [Boolean]
|
699
709
|
def number_list(*args) end
|
700
710
|
|
701
711
|
# @overload promote_list(promoteBy, range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
|
702
712
|
# Promotes or demotes the paragraphs in the given range.
|
703
713
|
# A positive promoteBy produces a smaller indent, and a negative number produces a larger indent. Pass flags to determine how the attributes are set. Either the style definition or the name of the style definition (in the current sheet) can be passed.
|
704
714
|
# flags is a bit list of the following:
|
705
|
-
#
|
715
|
+
#
|
716
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
|
717
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
|
718
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
|
706
719
|
# @see Wx::RTC::RichTextCtrl#set_list_style
|
707
720
|
# @see
|
708
721
|
#
|
@@ -710,64 +723,50 @@ module Wx::RTC
|
|
710
723
|
# @see Wx::RTC::RichTextCtrl#clear_list_style.
|
711
724
|
# @param promoteBy [Integer]
|
712
725
|
# @param range [Range]
|
713
|
-
# @param def_ [Wx::RichTextListStyleDefinition]
|
726
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
714
727
|
# @param flags [Integer]
|
715
728
|
# @param specifiedLevel [Integer]
|
716
|
-
# @return [
|
729
|
+
# @return [Boolean]
|
717
730
|
# @overload promote_list(promoteBy, range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
|
718
731
|
# @param promoteBy [Integer]
|
719
732
|
# @param range [Range]
|
720
733
|
# @param defName [String]
|
721
734
|
# @param flags [Integer]
|
722
735
|
# @param specifiedLevel [Integer]
|
723
|
-
# @return [
|
736
|
+
# @return [Boolean]
|
724
737
|
def promote_list(*args) end
|
725
738
|
|
726
739
|
# Sets the properties for the given range, passing flags to determine how the attributes are set.
|
727
740
|
# You can merge properties or replace them.
|
728
741
|
# The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the properties for a character at position 5, use the range (5,6).
|
729
742
|
# flags may contain a bit list of the following values:
|
730
|
-
#
|
743
|
+
#
|
744
|
+
# - {Wx::RICHTEXT_SETSPROPERTIES_NONE}: no flag.
|
745
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO}: specifies that this operation should be undoable.
|
746
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_PARAGRAPHS_ONLY}: specifies that the properties should only be applied to paragraphs, and not the content.
|
747
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_CHARACTERS_ONLY}: specifies that the properties should only be applied to characters, and not the paragraph.
|
748
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_RESET}: resets (clears) the existing properties before applying the new properties.
|
749
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_REMOVE}: removes the specified properties.
|
731
750
|
# @param range [Range]
|
732
|
-
# @param properties [Wx::RichTextProperties]
|
751
|
+
# @param properties [Wx::RTC::RichTextProperties]
|
733
752
|
# @param flags [Integer]
|
734
|
-
# @return [
|
753
|
+
# @return [Boolean]
|
735
754
|
def set_properties(range, properties, flags=Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO) end
|
736
755
|
|
737
756
|
# Deletes the content within the given range.
|
738
757
|
# @param range [Range]
|
739
|
-
# @return [
|
758
|
+
# @return [Boolean]
|
740
759
|
def delete(range) end
|
741
760
|
|
742
|
-
# Translates from column and line number to position.
|
743
|
-
# @param x [Integer]
|
744
|
-
# @param y [Integer]
|
745
|
-
# @return [Integer]
|
746
|
-
def xy_to_position(x, y) end
|
747
|
-
|
748
|
-
# Converts a text position to zero-based column and line numbers.
|
749
|
-
# @param pos [Integer]
|
750
|
-
# @return [Array(true,false,Integer,Integer)]
|
751
|
-
def position_to_xy(pos) end
|
752
|
-
|
753
761
|
# Scrolls the buffer so that the given position is in view.
|
754
762
|
# @param pos [Integer]
|
755
763
|
# @return [void]
|
756
764
|
def show_position(pos) end
|
757
765
|
|
758
766
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
759
|
-
# @return [Array(TextCtrlHitTestResult,Integer,Integer)]
|
767
|
+
# @return [Array(Wx::TextCtrlHitTestResult,Integer,Integer)]
|
760
768
|
def hit_test(pt) end
|
761
769
|
|
762
|
-
# Finds the container at the given point, which is assumed to be in client coordinates.
|
763
|
-
# @param pt [Wx::Point]
|
764
|
-
# @param position [long]
|
765
|
-
# @param hit [int]
|
766
|
-
# @param hitObj [Wx::RichTextObject]
|
767
|
-
# @param flags [Integer]
|
768
|
-
# @return [Wx::RichTextParagraphLayoutBox]
|
769
|
-
def find_container_at_point(pt, position, hit, hitObj, flags=0) end
|
770
|
-
|
771
770
|
# Copies the selected content (if any) to the clipboard.
|
772
771
|
# @return [void]
|
773
772
|
def copy; end
|
@@ -787,22 +786,22 @@ module Wx::RTC
|
|
787
786
|
def delete_selection; end
|
788
787
|
|
789
788
|
# Returns true if selected content can be copied to the clipboard.
|
790
|
-
# @return [
|
789
|
+
# @return [Boolean]
|
791
790
|
def can_copy; end
|
792
791
|
alias_method :can_copy?, :can_copy
|
793
792
|
|
794
793
|
# Returns true if selected content can be copied to the clipboard and deleted.
|
795
|
-
# @return [
|
794
|
+
# @return [Boolean]
|
796
795
|
def can_cut; end
|
797
796
|
alias_method :can_cut?, :can_cut
|
798
797
|
|
799
798
|
# Returns true if the clipboard content can be pasted to the buffer.
|
800
|
-
# @return [
|
799
|
+
# @return [Boolean]
|
801
800
|
def can_paste; end
|
802
801
|
alias_method :can_paste?, :can_paste
|
803
802
|
|
804
803
|
# Returns true if selected content can be deleted.
|
805
|
-
# @return [
|
804
|
+
# @return [Boolean]
|
806
805
|
def can_delete_selection; end
|
807
806
|
alias_method :can_delete_selection?, :can_delete_selection
|
808
807
|
|
@@ -815,12 +814,12 @@ module Wx::RTC
|
|
815
814
|
def redo_; end
|
816
815
|
|
817
816
|
# Returns true if there is a command in the command history that can be undone.
|
818
|
-
# @return [
|
817
|
+
# @return [Boolean]
|
819
818
|
def can_undo; end
|
820
819
|
alias_method :can_undo?, :can_undo
|
821
820
|
|
822
821
|
# Returns true if there is a command in the command history that can be redone.
|
823
|
-
# @return [
|
822
|
+
# @return [Boolean]
|
824
823
|
def can_redo; end
|
825
824
|
alias_method :can_redo?, :can_redo
|
826
825
|
|
@@ -852,7 +851,7 @@ module Wx::RTC
|
|
852
851
|
# @param to [Integer]
|
853
852
|
# @return [void]
|
854
853
|
# @overload set_selection(sel)
|
855
|
-
# @param sel [Wx::RichTextSelection]
|
854
|
+
# @param sel [Wx::RTC::RichTextSelection]
|
856
855
|
# @return [void]
|
857
856
|
def set_selection(*args) end
|
858
857
|
alias_method :selection=, :set_selection
|
@@ -862,18 +861,18 @@ module Wx::RTC
|
|
862
861
|
def select_all; end
|
863
862
|
|
864
863
|
# Makes the control editable, or not.
|
865
|
-
# @param editable [
|
864
|
+
# @param editable [Boolean]
|
866
865
|
# @return [void]
|
867
866
|
def set_editable(editable) end
|
868
867
|
alias_method :editable=, :set_editable
|
869
868
|
|
870
869
|
# Returns true if there is a selection and the object containing the selection was the same as the current focus object.
|
871
|
-
# @return [
|
870
|
+
# @return [Boolean]
|
872
871
|
def has_selection; end
|
873
872
|
alias_method :has_selection?, :has_selection
|
874
873
|
|
875
874
|
# Returns true if there was a selection, whether or not the current focus object is the same as the selection's container object.
|
876
|
-
# @return [
|
875
|
+
# @return [Boolean]
|
877
876
|
def has_unfocused_selection; end
|
878
877
|
alias_method :has_unfocused_selection?, :has_unfocused_selection
|
879
878
|
|
@@ -881,123 +880,149 @@ module Wx::RTC
|
|
881
880
|
# Write a bitmap or image at the current insertion point.
|
882
881
|
# Supply an optional type to use for internal and file storage of the raw data.
|
883
882
|
# @param image [Wx::Image]
|
884
|
-
# @param bitmapType [BitmapType]
|
885
|
-
# @param textAttr [Wx::RichTextAttr]
|
886
|
-
# @return [
|
883
|
+
# @param bitmapType [Wx::BitmapType]
|
884
|
+
# @param textAttr [Wx::RTC::RichTextAttr]
|
885
|
+
# @return [Boolean]
|
887
886
|
# @overload write_image(bitmap, bitmapType=Wx::BitmapType::BITMAP_TYPE_PNG, textAttr=(Wx::RichTextAttr.new()))
|
888
887
|
# @param bitmap [Wx::Bitmap]
|
889
|
-
# @param bitmapType [BitmapType]
|
890
|
-
# @param textAttr [Wx::RichTextAttr]
|
891
|
-
# @return [
|
888
|
+
# @param bitmapType [Wx::BitmapType]
|
889
|
+
# @param textAttr [Wx::RTC::RichTextAttr]
|
890
|
+
# @return [Boolean]
|
892
891
|
# @overload write_image(filename, bitmapType, textAttr=(Wx::RichTextAttr.new()))
|
893
892
|
# Loads an image from a file and writes it at the current insertion point.
|
894
893
|
# @param filename [String]
|
895
|
-
# @param bitmapType [BitmapType]
|
896
|
-
# @param textAttr [Wx::RichTextAttr]
|
897
|
-
# @return [
|
894
|
+
# @param bitmapType [Wx::BitmapType]
|
895
|
+
# @param textAttr [Wx::RTC::RichTextAttr]
|
896
|
+
# @return [Boolean]
|
898
897
|
# @overload write_image(imageBlock, textAttr=(Wx::RichTextAttr.new()))
|
899
898
|
# Writes an image block at the current insertion point.
|
900
|
-
# @param imageBlock [Wx::RichTextImageBlock]
|
901
|
-
# @param textAttr [Wx::RichTextAttr]
|
902
|
-
# @return [
|
899
|
+
# @param imageBlock [Wx::RTC::RichTextImageBlock]
|
900
|
+
# @param textAttr [Wx::RTC::RichTextAttr]
|
901
|
+
# @return [Boolean]
|
903
902
|
def write_image(*args) end
|
904
903
|
|
904
|
+
# Write a text box at the current insertion point, returning the text box.
|
905
|
+
# You can then call {Wx::RTC::RichTextCtrl#set_focus_object} to set the focus to the new object.
|
906
|
+
# @param textAttr [Wx::RTC::RichTextAttr]
|
907
|
+
# @return [Wx::RTC::RichTextBox]
|
908
|
+
def write_text_box(textAttr=(Wx::RichTextAttr.new())) end
|
909
|
+
|
910
|
+
# Writes a field at the current insertion point.
|
911
|
+
#
|
912
|
+
# @see Wx::RTC::RichTextField
|
913
|
+
# @see Wx::RTC::RichTextFieldType
|
914
|
+
# @see Wx::RTC::RichTextFieldTypeStandard
|
915
|
+
# @param fieldType [String] The field type, matching an existing field type definition.
|
916
|
+
# @param properties [Wx::RTC::RichTextProperties] Extra data for the field.
|
917
|
+
# @param textAttr [Wx::RTC::RichTextAttr] Optional attributes.
|
918
|
+
# @return [Wx::RTC::RichTextField]
|
919
|
+
def write_field(fieldType, properties, textAttr=(Wx::RichTextAttr.new())) end
|
920
|
+
|
921
|
+
# Write a table at the current insertion point, returning the table.
|
922
|
+
# You can then call {Wx::RTC::RichTextCtrl#set_focus_object} to set the focus to the new object.
|
923
|
+
# @param rows [Integer]
|
924
|
+
# @param cols [Integer]
|
925
|
+
# @param tableAttr [Wx::RTC::RichTextAttr]
|
926
|
+
# @param cellAttr [Wx::RTC::RichTextAttr]
|
927
|
+
# @return [Wx::RTC::RichTextTable]
|
928
|
+
def write_table(rows, cols, tableAttr=(Wx::RichTextAttr.new()), cellAttr=(Wx::RichTextAttr.new())) end
|
929
|
+
|
905
930
|
# Inserts a new paragraph at the current insertion point.
|
906
931
|
#
|
907
932
|
# @see Wx::RTC::RichTextCtrl#line_break.
|
908
|
-
# @return [
|
933
|
+
# @return [Boolean]
|
909
934
|
def newline; end
|
910
935
|
|
911
936
|
# Inserts a line break at the current insertion point.
|
912
937
|
# A line break forces wrapping within a paragraph, and can be introduced by using this function, by appending the {Wx::Char} value <b>{Wx::RICH_TEXT_LINE_BREAK_CHAR}</b> to text content, or by typing Shift-Return.
|
913
|
-
# @return [
|
938
|
+
# @return [Boolean]
|
914
939
|
def line_break; end
|
915
940
|
|
916
941
|
# Sets the basic (overall) style.
|
917
942
|
# This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
|
918
|
-
# @param style [Wx::RichTextAttr]
|
943
|
+
# @param style [Wx::RTC::RichTextAttr]
|
919
944
|
# @return [void]
|
920
945
|
def set_basic_style(style) end
|
921
946
|
alias_method :basic_style=, :set_basic_style
|
922
947
|
|
923
948
|
# Gets the basic (overall) style.
|
924
949
|
# This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
|
925
|
-
# @return [Wx::RichTextAttr]
|
950
|
+
# @return [Wx::RTC::RichTextAttr]
|
926
951
|
def get_basic_style; end
|
927
952
|
alias_method :basic_style, :get_basic_style
|
928
953
|
|
929
954
|
# Begins applying a style.
|
930
|
-
# @param style [Wx::RichTextAttr]
|
931
|
-
# @return [
|
955
|
+
# @param style [Wx::RTC::RichTextAttr]
|
956
|
+
# @return [Boolean]
|
932
957
|
def begin_style(style) end
|
933
958
|
|
934
959
|
# Ends the current style.
|
935
|
-
# @return [
|
960
|
+
# @return [Boolean]
|
936
961
|
def end_style; end
|
937
962
|
|
938
963
|
# Ends application of all styles in the current style stack.
|
939
|
-
# @return [
|
964
|
+
# @return [Boolean]
|
940
965
|
def end_all_styles; end
|
941
966
|
|
942
967
|
# Begins using bold.
|
943
|
-
# @return [
|
968
|
+
# @return [Boolean]
|
944
969
|
def begin_bold; end
|
945
970
|
|
946
971
|
# Ends using bold.
|
947
|
-
# @return [
|
972
|
+
# @return [Boolean]
|
948
973
|
def end_bold; end
|
949
974
|
|
950
975
|
# Begins using italic.
|
951
|
-
# @return [
|
976
|
+
# @return [Boolean]
|
952
977
|
def begin_italic; end
|
953
978
|
|
954
979
|
# Ends using italic.
|
955
|
-
# @return [
|
980
|
+
# @return [Boolean]
|
956
981
|
def end_italic; end
|
957
982
|
|
958
983
|
# Begins using underlining.
|
959
|
-
# @return [
|
984
|
+
# @return [Boolean]
|
960
985
|
def begin_underline; end
|
961
986
|
|
962
987
|
# End applying underlining.
|
963
|
-
# @return [
|
988
|
+
# @return [Boolean]
|
964
989
|
def end_underline; end
|
965
990
|
|
966
991
|
# Begins using the given point size.
|
967
992
|
# @param pointSize [Integer]
|
968
|
-
# @return [
|
993
|
+
# @return [Boolean]
|
969
994
|
def begin_font_size(pointSize) end
|
970
995
|
|
971
996
|
# Ends using a point size.
|
972
|
-
# @return [
|
997
|
+
# @return [Boolean]
|
973
998
|
def end_font_size; end
|
974
999
|
|
975
1000
|
# Begins using this font.
|
976
1001
|
# @param font [Wx::Font,Wx::FontInfo]
|
977
|
-
# @return [
|
1002
|
+
# @return [Boolean]
|
978
1003
|
def begin_font(font) end
|
979
1004
|
|
980
1005
|
# Ends using a font.
|
981
|
-
# @return [
|
1006
|
+
# @return [Boolean]
|
982
1007
|
def end_font; end
|
983
1008
|
|
984
1009
|
# Begins using this colour.
|
985
1010
|
# @param colour [Wx::Colour,String,Symbol]
|
986
|
-
# @return [
|
1011
|
+
# @return [Boolean]
|
987
1012
|
def begin_text_colour(colour) end
|
988
1013
|
|
989
1014
|
# Ends applying a text colour.
|
990
|
-
# @return [
|
1015
|
+
# @return [Boolean]
|
991
1016
|
def end_text_colour; end
|
992
1017
|
|
993
1018
|
# Begins using alignment.
|
994
1019
|
# For alignment values, see {Wx::TextAttr}.
|
995
|
-
# @param alignment [TextAttrAlignment]
|
996
|
-
# @return [
|
1020
|
+
# @param alignment [Wx::TextAttrAlignment]
|
1021
|
+
# @return [Boolean]
|
997
1022
|
def begin_alignment(alignment) end
|
998
1023
|
|
999
1024
|
# Ends alignment.
|
1000
|
-
# @return [
|
1025
|
+
# @return [Boolean]
|
1001
1026
|
def end_alignment; end
|
1002
1027
|
|
1003
1028
|
# Begins applying a left indent and subindent in tenths of a millimetre.
|
@@ -1005,41 +1030,41 @@ module Wx::RTC
|
|
1005
1030
|
# {Wx::RTC::RichTextBuffer} uses indentation to render a bulleted item. The content of the paragraph, including the first line, starts at the leftIndent plus the leftSubIndent.
|
1006
1031
|
# @param leftIndent [Integer] The distance between the margin and the bullet.
|
1007
1032
|
# @param leftSubIndent [Integer] The distance between the left edge of the bullet and the left edge of the actual paragraph.
|
1008
|
-
# @return [
|
1033
|
+
# @return [Boolean]
|
1009
1034
|
def begin_left_indent(leftIndent, leftSubIndent=0) end
|
1010
1035
|
|
1011
1036
|
# Ends left indent.
|
1012
|
-
# @return [
|
1037
|
+
# @return [Boolean]
|
1013
1038
|
def end_left_indent; end
|
1014
1039
|
|
1015
1040
|
# Begins a right indent, specified in tenths of a millimetre.
|
1016
1041
|
# @param rightIndent [Integer]
|
1017
|
-
# @return [
|
1042
|
+
# @return [Boolean]
|
1018
1043
|
def begin_right_indent(rightIndent) end
|
1019
1044
|
|
1020
1045
|
# Ends right indent.
|
1021
|
-
# @return [
|
1046
|
+
# @return [Boolean]
|
1022
1047
|
def end_right_indent; end
|
1023
1048
|
|
1024
1049
|
# Begins paragraph spacing; pass the before-paragraph and after-paragraph spacing in tenths of a millimetre.
|
1025
1050
|
# @param before [Integer]
|
1026
1051
|
# @param after [Integer]
|
1027
|
-
# @return [
|
1052
|
+
# @return [Boolean]
|
1028
1053
|
def begin_paragraph_spacing(before, after) end
|
1029
1054
|
|
1030
1055
|
# Ends paragraph spacing.
|
1031
|
-
# @return [
|
1056
|
+
# @return [Boolean]
|
1032
1057
|
def end_paragraph_spacing; end
|
1033
1058
|
|
1034
1059
|
# Begins applying line spacing.
|
1035
1060
|
# spacing is a multiple, where 10 means single-spacing, 15 means 1.5 spacing, and 20 means double spacing.
|
1036
1061
|
# The {Wx::TextAttrLineSpacing} constants are defined for convenience.
|
1037
1062
|
# @param lineSpacing [Integer]
|
1038
|
-
# @return [
|
1063
|
+
# @return [Boolean]
|
1039
1064
|
def begin_line_spacing(lineSpacing) end
|
1040
1065
|
|
1041
1066
|
# Ends line spacing.
|
1042
|
-
# @return [
|
1067
|
+
# @return [Boolean]
|
1043
1068
|
def end_line_spacing; end
|
1044
1069
|
|
1045
1070
|
# Begins a numbered bullet.
|
@@ -1050,11 +1075,11 @@ module Wx::RTC
|
|
1050
1075
|
# @param leftIndent [Integer]
|
1051
1076
|
# @param leftSubIndent [Integer]
|
1052
1077
|
# @param bulletStyle [Integer]
|
1053
|
-
# @return [
|
1078
|
+
# @return [Boolean]
|
1054
1079
|
def begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle=(Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_PERIOD)) end
|
1055
1080
|
|
1056
1081
|
# Ends application of a numbered bullet.
|
1057
|
-
# @return [
|
1082
|
+
# @return [Boolean]
|
1058
1083
|
def end_numbered_bullet; end
|
1059
1084
|
|
1060
1085
|
# Begins applying a symbol bullet, using a character from the current font.
|
@@ -1063,11 +1088,11 @@ module Wx::RTC
|
|
1063
1088
|
# @param leftIndent [Integer]
|
1064
1089
|
# @param leftSubIndent [Integer]
|
1065
1090
|
# @param bulletStyle [Integer]
|
1066
|
-
# @return [
|
1091
|
+
# @return [Boolean]
|
1067
1092
|
def begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_SYMBOL) end
|
1068
1093
|
|
1069
1094
|
# Ends applying a symbol bullet.
|
1070
|
-
# @return [
|
1095
|
+
# @return [Boolean]
|
1071
1096
|
def end_symbol_bullet; end
|
1072
1097
|
|
1073
1098
|
# Begins applying a symbol bullet.
|
@@ -1075,29 +1100,29 @@ module Wx::RTC
|
|
1075
1100
|
# @param leftIndent [Integer]
|
1076
1101
|
# @param leftSubIndent [Integer]
|
1077
1102
|
# @param bulletStyle [Integer]
|
1078
|
-
# @return [
|
1103
|
+
# @return [Boolean]
|
1079
1104
|
def begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD) end
|
1080
1105
|
|
1081
1106
|
# Begins applying a standard bullet.
|
1082
|
-
# @return [
|
1107
|
+
# @return [Boolean]
|
1083
1108
|
def end_standard_bullet; end
|
1084
1109
|
|
1085
1110
|
# Begins using the named character style.
|
1086
1111
|
# @param characterStyle [String]
|
1087
|
-
# @return [
|
1112
|
+
# @return [Boolean]
|
1088
1113
|
def begin_character_style(characterStyle) end
|
1089
1114
|
|
1090
1115
|
# Ends application of a named character style.
|
1091
|
-
# @return [
|
1116
|
+
# @return [Boolean]
|
1092
1117
|
def end_character_style; end
|
1093
1118
|
|
1094
1119
|
# Begins applying the named paragraph style.
|
1095
1120
|
# @param paragraphStyle [String]
|
1096
|
-
# @return [
|
1121
|
+
# @return [Boolean]
|
1097
1122
|
def begin_paragraph_style(paragraphStyle) end
|
1098
1123
|
|
1099
1124
|
# Ends application of a named paragraph style.
|
1100
|
-
# @return [
|
1125
|
+
# @return [Boolean]
|
1101
1126
|
def end_paragraph_style; end
|
1102
1127
|
|
1103
1128
|
# Begins using a specified list style.
|
@@ -1105,26 +1130,26 @@ module Wx::RTC
|
|
1105
1130
|
# @param listStyle [String]
|
1106
1131
|
# @param level [Integer]
|
1107
1132
|
# @param number [Integer]
|
1108
|
-
# @return [
|
1133
|
+
# @return [Boolean]
|
1109
1134
|
def begin_list_style(listStyle, level=1, number=1) end
|
1110
1135
|
|
1111
1136
|
# Ends using a specified list style.
|
1112
|
-
# @return [
|
1137
|
+
# @return [Boolean]
|
1113
1138
|
def end_list_style; end
|
1114
1139
|
|
1115
1140
|
# Begins applying {Wx::TextAttrFlags::TEXT_ATTR_URL} to the content.
|
1116
1141
|
# Pass a URL and optionally, a character style to apply, since it is common to mark a URL with a familiar style such as blue text with underlining.
|
1117
1142
|
# @param url [String]
|
1118
1143
|
# @param characterStyle [String]
|
1119
|
-
# @return [
|
1144
|
+
# @return [Boolean]
|
1120
1145
|
def begin_url(url, characterStyle=('')) end
|
1121
1146
|
|
1122
1147
|
# Ends applying a URL.
|
1123
|
-
# @return [
|
1148
|
+
# @return [Boolean]
|
1124
1149
|
def end_url; end
|
1125
1150
|
|
1126
1151
|
# Sets the default style to the style under the cursor.
|
1127
|
-
# @return [
|
1152
|
+
# @return [Boolean]
|
1128
1153
|
def set_default_style_to_cursor_style; end
|
1129
1154
|
|
1130
1155
|
# Cancels any selection.
|
@@ -1133,7 +1158,7 @@ module Wx::RTC
|
|
1133
1158
|
|
1134
1159
|
# Selects the word at the given character position.
|
1135
1160
|
# @param position [Integer]
|
1136
|
-
# @return [
|
1161
|
+
# @return [Boolean]
|
1137
1162
|
def select_word(position) end
|
1138
1163
|
|
1139
1164
|
# Returns the selection range in character positions.
|
@@ -1174,308 +1199,277 @@ module Wx::RTC
|
|
1174
1199
|
# @return [Range]
|
1175
1200
|
def add_image(image) end
|
1176
1201
|
|
1177
|
-
# Lays out the buffer, which must be done before certain operations, such as setting the caret position.
|
1178
|
-
# This function should not normally be required by the application.
|
1179
|
-
# @param onlyVisibleRect [true,false]
|
1180
|
-
# @return [true,false]
|
1181
|
-
def layout_content(onlyVisibleRect=false) end
|
1182
|
-
|
1183
|
-
# Implements layout.
|
1184
|
-
# An application may override this to perform operations before or after layout.
|
1185
|
-
# @param buffer [Wx::RichTextBuffer]
|
1186
|
-
# @param dc [Wx::DC]
|
1187
|
-
# @param context [Wx::RichTextDrawingContext]
|
1188
|
-
# @param rect [Wx::Rect]
|
1189
|
-
# @param parentRect [Wx::Rect]
|
1190
|
-
# @param flags [Integer]
|
1191
|
-
# @return [void]
|
1192
|
-
def do_layout_buffer(buffer, dc, context, rect, parentRect, flags) end
|
1193
|
-
|
1194
1202
|
# Move the caret to the given character position.
|
1195
1203
|
# Please note that this does not update the current editing style from the new position; to do that, call {Wx::RTC::RichTextCtrl#set_insertion_point} instead.
|
1196
1204
|
# @param pos [Integer]
|
1197
|
-
# @param showAtLineStart [
|
1198
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1199
|
-
# @return [
|
1205
|
+
# @param showAtLineStart [Boolean]
|
1206
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1207
|
+
# @return [Boolean]
|
1200
1208
|
def move_caret(pos, showAtLineStart=false, container=nil) end
|
1201
1209
|
|
1202
1210
|
# Moves right.
|
1203
1211
|
# @param noPositions [Integer]
|
1204
1212
|
# @param flags [Integer]
|
1205
|
-
# @return [
|
1213
|
+
# @return [Boolean]
|
1206
1214
|
def move_right(noPositions=1, flags=0) end
|
1207
1215
|
|
1208
1216
|
# Moves left.
|
1209
1217
|
# @param noPositions [Integer]
|
1210
1218
|
# @param flags [Integer]
|
1211
|
-
# @return [
|
1219
|
+
# @return [Boolean]
|
1212
1220
|
def move_left(noPositions=1, flags=0) end
|
1213
1221
|
|
1214
1222
|
# Moves to the start of the paragraph.
|
1215
1223
|
# @param noLines [Integer]
|
1216
1224
|
# @param flags [Integer]
|
1217
|
-
# @return [
|
1225
|
+
# @return [Boolean]
|
1218
1226
|
def move_up(noLines=1, flags=0) end
|
1219
1227
|
|
1220
1228
|
# Moves the caret down.
|
1221
1229
|
# @param noLines [Integer]
|
1222
1230
|
# @param flags [Integer]
|
1223
|
-
# @return [
|
1231
|
+
# @return [Boolean]
|
1224
1232
|
def move_down(noLines=1, flags=0) end
|
1225
1233
|
|
1226
1234
|
# Moves to the end of the line.
|
1227
1235
|
# @param flags [Integer]
|
1228
|
-
# @return [
|
1236
|
+
# @return [Boolean]
|
1229
1237
|
def move_to_line_end(flags=0) end
|
1230
1238
|
|
1231
1239
|
# Moves to the start of the line.
|
1232
1240
|
# @param flags [Integer]
|
1233
|
-
# @return [
|
1241
|
+
# @return [Boolean]
|
1234
1242
|
def move_to_line_start(flags=0) end
|
1235
1243
|
|
1236
1244
|
# Moves to the end of the paragraph.
|
1237
1245
|
# @param flags [Integer]
|
1238
|
-
# @return [
|
1246
|
+
# @return [Boolean]
|
1239
1247
|
def move_to_paragraph_end(flags=0) end
|
1240
1248
|
|
1241
1249
|
# Moves to the start of the paragraph.
|
1242
1250
|
# @param flags [Integer]
|
1243
|
-
# @return [
|
1251
|
+
# @return [Boolean]
|
1244
1252
|
def move_to_paragraph_start(flags=0) end
|
1245
1253
|
|
1246
1254
|
# Moves to the start of the buffer.
|
1247
1255
|
# @param flags [Integer]
|
1248
|
-
# @return [
|
1256
|
+
# @return [Boolean]
|
1249
1257
|
def move_home(flags=0) end
|
1250
1258
|
|
1251
1259
|
# Moves to the end of the buffer.
|
1252
1260
|
# @param flags [Integer]
|
1253
|
-
# @return [
|
1261
|
+
# @return [Boolean]
|
1254
1262
|
def move_end(flags=0) end
|
1255
1263
|
|
1256
1264
|
# Moves one or more pages up.
|
1257
1265
|
# @param noPages [Integer]
|
1258
1266
|
# @param flags [Integer]
|
1259
|
-
# @return [
|
1267
|
+
# @return [Boolean]
|
1260
1268
|
def page_up(noPages=1, flags=0) end
|
1261
1269
|
|
1262
1270
|
# Moves one or more pages down.
|
1263
1271
|
# @param noPages [Integer]
|
1264
1272
|
# @param flags [Integer]
|
1265
|
-
# @return [
|
1273
|
+
# @return [Boolean]
|
1266
1274
|
def page_down(noPages=1, flags=0) end
|
1267
1275
|
|
1268
1276
|
# Moves a number of words to the left.
|
1269
1277
|
# @param noPages [Integer]
|
1270
1278
|
# @param flags [Integer]
|
1271
|
-
# @return [
|
1279
|
+
# @return [Boolean]
|
1272
1280
|
def word_left(noPages=1, flags=0) end
|
1273
1281
|
|
1274
1282
|
# Move a number of words to the right.
|
1275
1283
|
# @param noPages [Integer]
|
1276
1284
|
# @param flags [Integer]
|
1277
|
-
# @return [
|
1285
|
+
# @return [Boolean]
|
1278
1286
|
def word_right(noPages=1, flags=0) end
|
1279
1287
|
|
1280
|
-
# @
|
1281
|
-
|
1282
|
-
# @return [Wx::RichTextBuffer]
|
1283
|
-
# @overload get_buffer()
|
1284
|
-
# @return [Wx::RichTextBuffer]
|
1285
|
-
def get_buffer(*args) end
|
1288
|
+
# @return [Wx::RTC::RichTextBuffer]
|
1289
|
+
def get_buffer; end
|
1286
1290
|
alias_method :buffer, :get_buffer
|
1287
1291
|
|
1288
1292
|
# Starts batching undo history for commands.
|
1289
1293
|
# @param cmdName [String]
|
1290
|
-
# @return [
|
1294
|
+
# @return [Boolean]
|
1291
1295
|
def begin_batch_undo(cmdName) end
|
1292
1296
|
|
1293
1297
|
# Ends batching undo command history.
|
1294
|
-
# @return [
|
1298
|
+
# @return [Boolean]
|
1295
1299
|
def end_batch_undo; end
|
1296
1300
|
|
1297
1301
|
# Returns true if undo commands are being batched.
|
1298
|
-
# @return [
|
1302
|
+
# @return [Boolean]
|
1299
1303
|
def batching_undo; end
|
1300
1304
|
|
1301
1305
|
# Starts suppressing undo history for commands.
|
1302
|
-
# @return [
|
1306
|
+
# @return [Boolean]
|
1303
1307
|
def begin_suppress_undo; end
|
1304
1308
|
|
1305
1309
|
# Ends suppressing undo command history.
|
1306
|
-
# @return [
|
1310
|
+
# @return [Boolean]
|
1307
1311
|
def end_suppress_undo; end
|
1308
1312
|
|
1309
1313
|
# Returns true if undo history suppression is on.
|
1310
|
-
# @return [
|
1314
|
+
# @return [Boolean]
|
1311
1315
|
def suppressing_undo; end
|
1312
1316
|
|
1313
1317
|
# Test if this whole range has character attributes of the specified kind.
|
1314
1318
|
# If any of the attributes are different within the range, the test fails.
|
1315
1319
|
# You can use this to implement, for example, bold button updating. style must have flags indicating which attributes are of interest.
|
1316
1320
|
# @param range [Range]
|
1317
|
-
# @param style [Wx::RichTextAttr]
|
1318
|
-
# @return [
|
1321
|
+
# @param style [Wx::RTC::RichTextAttr]
|
1322
|
+
# @return [Boolean]
|
1319
1323
|
def has_character_attributes(range, style) end
|
1320
1324
|
alias_method :has_character_attributes?, :has_character_attributes
|
1321
1325
|
|
1322
1326
|
# Test if this whole range has paragraph attributes of the specified kind.
|
1323
1327
|
# If any of the attributes are different within the range, the test fails. You can use this to implement, for example, centering button updating. style must have flags indicating which attributes are of interest.
|
1324
1328
|
# @param range [Range]
|
1325
|
-
# @param style [Wx::RichTextAttr]
|
1326
|
-
# @return [
|
1329
|
+
# @param style [Wx::RTC::RichTextAttr]
|
1330
|
+
# @return [Boolean]
|
1327
1331
|
def has_paragraph_attributes(range, style) end
|
1328
1332
|
alias_method :has_paragraph_attributes?, :has_paragraph_attributes
|
1329
1333
|
|
1330
1334
|
# Returns true if all of the selection, or the content at the caret position, is bold.
|
1331
|
-
# @return [
|
1335
|
+
# @return [Boolean]
|
1332
1336
|
def is_selection_bold; end
|
1333
1337
|
alias_method :selection_bold?, :is_selection_bold
|
1334
1338
|
|
1335
1339
|
# Returns true if all of the selection, or the content at the caret position, is italic.
|
1336
|
-
# @return [
|
1340
|
+
# @return [Boolean]
|
1337
1341
|
def is_selection_italics; end
|
1338
1342
|
alias_method :selection_italics?, :is_selection_italics
|
1339
1343
|
|
1340
1344
|
# Returns true if all of the selection, or the content at the caret position, is underlined.
|
1341
|
-
# @return [
|
1345
|
+
# @return [Boolean]
|
1342
1346
|
def is_selection_underlined; end
|
1343
1347
|
alias_method :selection_underlined?, :is_selection_underlined
|
1344
1348
|
|
1345
1349
|
# Returns true if all of the selection, or the content at the current caret position, has the supplied {Wx::TextAttrEffects} flag(s).
|
1346
1350
|
# @param flag [Integer]
|
1347
|
-
# @return [
|
1351
|
+
# @return [Boolean]
|
1348
1352
|
def does_selection_have_text_effect_flag(flag) end
|
1349
1353
|
|
1350
1354
|
# Returns true if all of the selection is aligned according to the specified flag.
|
1351
|
-
# @param alignment [TextAttrAlignment]
|
1352
|
-
# @return [
|
1355
|
+
# @param alignment [Wx::TextAttrAlignment]
|
1356
|
+
# @return [Boolean]
|
1353
1357
|
def is_selection_aligned(alignment) end
|
1354
1358
|
alias_method :selection_aligned?, :is_selection_aligned
|
1355
1359
|
|
1356
1360
|
# Apples bold to the selection or the default style (undoable).
|
1357
|
-
# @return [
|
1361
|
+
# @return [Boolean]
|
1358
1362
|
def apply_bold_to_selection; end
|
1359
1363
|
|
1360
1364
|
# Applies italic to the selection or the default style (undoable).
|
1361
|
-
# @return [
|
1365
|
+
# @return [Boolean]
|
1362
1366
|
def apply_italic_to_selection; end
|
1363
1367
|
|
1364
1368
|
# Applies underline to the selection or the default style (undoable).
|
1365
|
-
# @return [
|
1369
|
+
# @return [Boolean]
|
1366
1370
|
def apply_underline_to_selection; end
|
1367
1371
|
|
1368
1372
|
# Applies one or more {Wx::TextAttrEffects} flags to the selection (undoable).
|
1369
1373
|
# If there is no selection, it is applied to the default style.
|
1370
1374
|
# @param flags [Integer]
|
1371
|
-
# @return [
|
1375
|
+
# @return [Boolean]
|
1372
1376
|
def apply_text_effect_to_selection(flags) end
|
1373
1377
|
|
1374
1378
|
# Applies the given alignment to the selection or the default style (undoable).
|
1375
1379
|
# For alignment values, see {Wx::TextAttr}.
|
1376
|
-
# @param alignment [TextAttrAlignment]
|
1377
|
-
# @return [
|
1380
|
+
# @param alignment [Wx::TextAttrAlignment]
|
1381
|
+
# @return [Boolean]
|
1378
1382
|
def apply_alignment_to_selection(alignment) end
|
1379
1383
|
|
1380
1384
|
# Applies the style sheet to the buffer, matching paragraph styles in the sheet against named styles in the buffer.
|
1381
1385
|
# This might be useful if the styles have changed. If sheet is NULL, the sheet set with {Wx::RTC::RichTextCtrl#set_style_sheet} is used. Currently this applies paragraph styles only.
|
1382
|
-
# @param def_ [Wx::RichTextStyleDefinition]
|
1383
|
-
# @return [
|
1386
|
+
# @param def_ [Wx::RTC::RichTextStyleDefinition]
|
1387
|
+
# @return [Boolean]
|
1384
1388
|
def apply_style(def_) end
|
1385
1389
|
|
1386
1390
|
# Sets the style sheet associated with the control.
|
1387
1391
|
# A style sheet allows named character and paragraph styles to be applied.
|
1388
|
-
# @param styleSheet [Wx::RichTextStyleSheet]
|
1392
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1389
1393
|
# @return [void]
|
1390
1394
|
def set_style_sheet(styleSheet) end
|
1391
1395
|
alias_method :style_sheet=, :set_style_sheet
|
1392
1396
|
|
1393
1397
|
# Returns the style sheet associated with the control, if any.
|
1394
1398
|
# A style sheet allows named character and paragraph styles to be applied.
|
1395
|
-
# @return [Wx::RichTextStyleSheet]
|
1399
|
+
# @return [Wx::RTC::RichTextStyleSheet]
|
1396
1400
|
def get_style_sheet; end
|
1397
1401
|
alias_method :style_sheet, :get_style_sheet
|
1398
1402
|
|
1399
1403
|
# Push the style sheet to top of stack.
|
1400
|
-
# @param styleSheet [Wx::RichTextStyleSheet]
|
1401
|
-
# @return [
|
1404
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1405
|
+
# @return [Boolean]
|
1402
1406
|
def push_style_sheet(styleSheet) end
|
1403
1407
|
|
1404
1408
|
# Pops the style sheet from top of stack.
|
1405
|
-
# @return [Wx::RichTextStyleSheet]
|
1409
|
+
# @return [Wx::RTC::RichTextStyleSheet]
|
1406
1410
|
def pop_style_sheet; end
|
1407
1411
|
|
1408
1412
|
# Applies the style sheet to the buffer, for example if the styles have changed.
|
1409
|
-
# @param styleSheet [Wx::RichTextStyleSheet]
|
1410
|
-
# @return [
|
1413
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1414
|
+
# @return [Boolean]
|
1411
1415
|
def apply_style_sheet(styleSheet=nil) end
|
1412
1416
|
|
1413
1417
|
# Shows the given context menu, optionally adding appropriate property-editing commands for the current position in the object hierarchy.
|
1414
1418
|
# @param menu [Wx::Menu]
|
1415
1419
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
1416
|
-
# @param addPropertyCommands [
|
1417
|
-
# @return [
|
1420
|
+
# @param addPropertyCommands [Boolean]
|
1421
|
+
# @return [Boolean]
|
1418
1422
|
def show_context_menu(menu, pt, addPropertyCommands) end
|
1419
1423
|
|
1420
1424
|
# Prepares the context menu, optionally adding appropriate property-editing commands.
|
1421
1425
|
# Returns the number of property commands added.
|
1422
1426
|
# @param menu [Wx::Menu]
|
1423
1427
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
1424
|
-
# @param addPropertyCommands [
|
1428
|
+
# @param addPropertyCommands [Boolean]
|
1425
1429
|
# @return [Integer]
|
1426
1430
|
def prepare_context_menu(menu, pt, addPropertyCommands) end
|
1427
1431
|
|
1428
1432
|
# Returns true if we can edit the object's properties via a GUI.
|
1429
|
-
# @param obj [Wx::RichTextObject]
|
1430
|
-
# @return [
|
1433
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1434
|
+
# @return [Boolean]
|
1431
1435
|
def can_edit_properties(obj) end
|
1432
1436
|
alias_method :can_edit_properties?, :can_edit_properties
|
1433
1437
|
|
1434
1438
|
# Edits the object's properties via a GUI.
|
1435
|
-
# @param obj [Wx::RichTextObject]
|
1439
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1436
1440
|
# @param parent [Wx::Window]
|
1437
|
-
# @return [
|
1441
|
+
# @return [Boolean]
|
1438
1442
|
def edit_properties(obj, parent) end
|
1439
1443
|
|
1440
1444
|
# Gets the object's properties menu label.
|
1441
|
-
# @param obj [Wx::RichTextObject]
|
1445
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1442
1446
|
# @return [String]
|
1443
1447
|
def get_properties_menu_label(obj) end
|
1444
1448
|
alias_method :properties_menu_label, :get_properties_menu_label
|
1445
1449
|
|
1446
1450
|
# Prepares the content just before insertion (or after buffer reset).
|
1447
1451
|
# Called by the same function in {Wx::RTC::RichTextBuffer}. Currently is only called if undo mode is on.
|
1448
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1452
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1449
1453
|
# @return [void]
|
1450
1454
|
def prepare_content(container) end
|
1451
1455
|
|
1452
1456
|
# Can we delete this range? Sends an event to the control.
|
1453
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1457
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1454
1458
|
# @param range [Range]
|
1455
|
-
# @return [
|
1459
|
+
# @return [Boolean]
|
1456
1460
|
def can_delete_range(container, range) end
|
1457
1461
|
alias_method :can_delete_range?, :can_delete_range
|
1458
1462
|
|
1459
1463
|
# Can we insert content at this position? Sends an event to the control.
|
1460
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1464
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1461
1465
|
# @param pos [Integer]
|
1462
|
-
# @return [
|
1466
|
+
# @return [Boolean]
|
1463
1467
|
def can_insert_content(container, pos) end
|
1464
1468
|
alias_method :can_insert_content?, :can_insert_content
|
1465
1469
|
|
1466
|
-
# Enable or disable the vertical scrollbar.
|
1467
|
-
# @param enable [true,false]
|
1468
|
-
# @return [void]
|
1469
|
-
def enable_vertical_scrollbar(enable) end
|
1470
|
-
|
1471
|
-
# Returns true if the vertical scrollbar is enabled.
|
1472
|
-
# @return [true,false]
|
1473
|
-
def get_vertical_scrollbar_enabled; end
|
1474
|
-
alias_method :vertical_scrollbar_enabled, :get_vertical_scrollbar_enabled
|
1475
|
-
|
1476
1470
|
# Sets the scale factor for displaying fonts, for example for more comfortable editing.
|
1477
1471
|
# @param fontScale [Float]
|
1478
|
-
# @param refresh [
|
1472
|
+
# @param refresh [Boolean]
|
1479
1473
|
# @return [void]
|
1480
1474
|
def set_font_scale(fontScale, refresh=false) end
|
1481
1475
|
alias_method :font_scale=, :set_font_scale
|
@@ -1488,7 +1482,7 @@ module Wx::RTC
|
|
1488
1482
|
# Sets the scale factor for displaying certain dimensions such as indentation and inter-paragraph spacing.
|
1489
1483
|
# This can be useful when editing in a small control where you still want legible text, but a minimum of wasted white space.
|
1490
1484
|
# @param dimScale [Float]
|
1491
|
-
# @param refresh [
|
1485
|
+
# @param refresh [Boolean]
|
1492
1486
|
# @return [void]
|
1493
1487
|
def set_dimension_scale(dimScale, refresh=false) end
|
1494
1488
|
alias_method :dimension_scale=, :set_dimension_scale
|
@@ -1500,7 +1494,7 @@ module Wx::RTC
|
|
1500
1494
|
|
1501
1495
|
# Sets an overall scale factor for displaying and editing the content.
|
1502
1496
|
# @param scale [Float]
|
1503
|
-
# @param refresh [
|
1497
|
+
# @param refresh [Boolean]
|
1504
1498
|
# @return [void]
|
1505
1499
|
def set_scale(scale, refresh=false) end
|
1506
1500
|
alias_method :scale=, :set_scale
|
@@ -1548,13 +1542,13 @@ module Wx::RTC
|
|
1548
1542
|
|
1549
1543
|
# Returns true if this control can use virtual attributes and virtual text.
|
1550
1544
|
# The default is false.
|
1551
|
-
# @return [
|
1545
|
+
# @return [Boolean]
|
1552
1546
|
def get_virtual_attributes_enabled; end
|
1553
1547
|
alias_method :virtual_attributes_enabled, :get_virtual_attributes_enabled
|
1554
1548
|
|
1555
1549
|
# Pass true to let the control use virtual attributes.
|
1556
1550
|
# The default is false.
|
1557
|
-
# @param b [
|
1551
|
+
# @param b [Boolean]
|
1558
1552
|
# @return [void]
|
1559
1553
|
def enable_virtual_attributes(b) end
|
1560
1554
|
|
@@ -1563,190 +1557,20 @@ module Wx::RTC
|
|
1563
1557
|
# @return [void]
|
1564
1558
|
def command(event) end
|
1565
1559
|
|
1566
|
-
# Loads the first dropped file.
|
1567
|
-
# @param event [Wx::DropFilesEvent]
|
1568
|
-
# @return [void]
|
1569
|
-
def on_drop_files(event) end
|
1570
|
-
|
1571
|
-
# @param event [Wx::MouseCaptureLostEvent]
|
1572
|
-
# @return [void]
|
1573
|
-
def on_capture_lost(event) end
|
1574
|
-
|
1575
|
-
# @param event [Wx::SysColourChangedEvent]
|
1576
|
-
# @return [void]
|
1577
|
-
def on_sys_colour_changed(event) end
|
1578
|
-
|
1579
|
-
# Standard handler for the {Wx::StandardID::ID_CUT} command.
|
1580
|
-
# @param event [Wx::CommandEvent]
|
1581
|
-
# @return [void]
|
1582
|
-
def on_cut(event) end
|
1583
|
-
|
1584
|
-
# Standard handler for the {Wx::StandardID::ID_COPY} command.
|
1585
|
-
# @param event [Wx::CommandEvent]
|
1586
|
-
# @return [void]
|
1587
|
-
def on_copy(event) end
|
1588
|
-
|
1589
|
-
# Standard handler for the {Wx::StandardID::ID_PASTE} command.
|
1590
|
-
# @param event [Wx::CommandEvent]
|
1591
|
-
# @return [void]
|
1592
|
-
def on_paste(event) end
|
1593
|
-
|
1594
|
-
# Standard handler for the {Wx::StandardID::ID_UNDO} command.
|
1595
|
-
# @param event [Wx::CommandEvent]
|
1596
|
-
# @return [void]
|
1597
|
-
def on_undo(event) end
|
1598
|
-
|
1599
|
-
# Standard handler for the {Wx::StandardID::ID_REDO} command.
|
1600
|
-
# @param event [Wx::CommandEvent]
|
1601
|
-
# @return [void]
|
1602
|
-
def on_redo(event) end
|
1603
|
-
|
1604
|
-
# Standard handler for the {Wx::StandardID::ID_SELECTALL} command.
|
1605
|
-
# @param event [Wx::CommandEvent]
|
1606
|
-
# @return [void]
|
1607
|
-
def on_select_all(event) end
|
1608
|
-
|
1609
|
-
# Standard handler for property commands.
|
1610
|
-
# @param event [Wx::CommandEvent]
|
1611
|
-
# @return [void]
|
1612
|
-
def on_properties(event) end
|
1613
|
-
|
1614
|
-
# Standard handler for the {Wx::StandardID::ID_CLEAR} command.
|
1615
|
-
# @param event [Wx::CommandEvent]
|
1616
|
-
# @return [void]
|
1617
|
-
def on_clear(event) end
|
1618
|
-
|
1619
|
-
# Standard update handler for the {Wx::StandardID::ID_CUT} command.
|
1620
|
-
# @param event [Wx::UpdateUIEvent]
|
1621
|
-
# @return [void]
|
1622
|
-
def on_update_cut(event) end
|
1623
|
-
|
1624
|
-
# Standard update handler for the {Wx::StandardID::ID_COPY} command.
|
1625
|
-
# @param event [Wx::UpdateUIEvent]
|
1626
|
-
# @return [void]
|
1627
|
-
def on_update_copy(event) end
|
1628
|
-
|
1629
|
-
# Standard update handler for the {Wx::StandardID::ID_PASTE} command.
|
1630
|
-
# @param event [Wx::UpdateUIEvent]
|
1631
|
-
# @return [void]
|
1632
|
-
def on_update_paste(event) end
|
1633
|
-
|
1634
|
-
# Standard update handler for the {Wx::StandardID::ID_UNDO} command.
|
1635
|
-
# @param event [Wx::UpdateUIEvent]
|
1636
|
-
# @return [void]
|
1637
|
-
def on_update_undo(event) end
|
1638
|
-
|
1639
|
-
# Standard update handler for the {Wx::StandardID::ID_REDO} command.
|
1640
|
-
# @param event [Wx::UpdateUIEvent]
|
1641
|
-
# @return [void]
|
1642
|
-
def on_update_redo(event) end
|
1643
|
-
|
1644
|
-
# Standard update handler for the {Wx::StandardID::ID_SELECTALL} command.
|
1645
|
-
# @param event [Wx::UpdateUIEvent]
|
1646
|
-
# @return [void]
|
1647
|
-
def on_update_select_all(event) end
|
1648
|
-
|
1649
|
-
# Standard update handler for property commands.
|
1650
|
-
# @param event [Wx::UpdateUIEvent]
|
1651
|
-
# @return [void]
|
1652
|
-
def on_update_properties(event) end
|
1653
|
-
|
1654
|
-
# Standard update handler for the {Wx::StandardID::ID_CLEAR} command.
|
1655
|
-
# @param event [Wx::UpdateUIEvent]
|
1656
|
-
# @return [void]
|
1657
|
-
def on_update_clear(event) end
|
1658
|
-
|
1659
|
-
# Shows a standard context menu with undo, redo, cut, copy, paste, clear, and select all commands.
|
1660
|
-
# @param event [Wx::ContextMenuEvent]
|
1661
|
-
# @return [void]
|
1662
|
-
def on_context_menu(event) end
|
1663
|
-
|
1664
|
-
# @param event [Wx::PaintEvent]
|
1665
|
-
# @return [void]
|
1666
|
-
def on_paint(event) end
|
1667
|
-
|
1668
|
-
# @param event [Wx::EraseEvent]
|
1669
|
-
# @return [void]
|
1670
|
-
def on_erase_background(event) end
|
1671
|
-
|
1672
|
-
# @param event [Wx::MouseEvent]
|
1673
|
-
# @return [void]
|
1674
|
-
def on_left_click(event) end
|
1675
|
-
|
1676
|
-
# @param event [Wx::MouseEvent]
|
1677
|
-
# @return [void]
|
1678
|
-
def on_left_up(event) end
|
1679
|
-
|
1680
|
-
# @param event [Wx::MouseEvent]
|
1681
|
-
# @return [void]
|
1682
|
-
def on_move_mouse(event) end
|
1683
|
-
|
1684
|
-
# @param event [Wx::MouseEvent]
|
1685
|
-
# @return [void]
|
1686
|
-
def on_left_d_click(event) end
|
1687
|
-
|
1688
|
-
# @param event [Wx::MouseEvent]
|
1689
|
-
# @return [void]
|
1690
|
-
def on_middle_click(event) end
|
1691
|
-
|
1692
|
-
# @param event [Wx::MouseEvent]
|
1693
|
-
# @return [void]
|
1694
|
-
def on_right_click(event) end
|
1695
|
-
|
1696
|
-
# @param event [Wx::KeyEvent]
|
1697
|
-
# @return [void]
|
1698
|
-
def on_char(event) end
|
1699
|
-
|
1700
|
-
# @param event [Wx::SizeEvent]
|
1701
|
-
# @return [void]
|
1702
|
-
def on_size(event) end
|
1703
|
-
|
1704
|
-
# @param event [Wx::FocusEvent]
|
1705
|
-
# @return [void]
|
1706
|
-
def on_set_focus(event) end
|
1707
|
-
|
1708
|
-
# @param event [Wx::FocusEvent]
|
1709
|
-
# @return [void]
|
1710
|
-
def on_kill_focus(event) end
|
1711
|
-
|
1712
|
-
# @param event [Wx::IdleEvent]
|
1713
|
-
# @return [void]
|
1714
|
-
def on_idle(event) end
|
1715
|
-
|
1716
|
-
# @param event [Wx::ScrollWinEvent]
|
1717
|
-
# @return [void]
|
1718
|
-
def on_scroll(event) end
|
1719
|
-
|
1720
1560
|
# Sets the font, and also the basic and default attributes (see {Wx::RTC::RichTextCtrl#set_default_style}).
|
1721
1561
|
# @param font [Wx::Font,Wx::FontInfo]
|
1722
|
-
# @return [
|
1562
|
+
# @return [Boolean]
|
1723
1563
|
def set_font(font) end
|
1724
1564
|
alias_method :font=, :set_font
|
1725
1565
|
|
1726
|
-
# A helper function setting up scrollbars, for example after a resize.
|
1727
|
-
# @param atTop [true,false]
|
1728
|
-
# @return [void]
|
1729
|
-
def setup_scrollbars(atTop=false) end
|
1730
|
-
|
1731
|
-
# Helper function implementing keyboard navigation.
|
1732
|
-
# @param keyCode [Integer]
|
1733
|
-
# @param flags [Integer]
|
1734
|
-
# @return [true,false]
|
1735
|
-
def keyboard_navigate(keyCode, flags) end
|
1736
|
-
|
1737
|
-
# @param value [String]
|
1738
|
-
# @param flags [Integer]
|
1739
|
-
# @return [void]
|
1740
|
-
def do_write_text(value, flags=0) end
|
1741
|
-
|
1742
1566
|
# Return true from here to allow the colours of this window to be changed by {Wx::RTC::RichTextCtrl#inherit_attributes}.
|
1743
1567
|
# Returning false forbids inheriting them from the parent window.
|
1744
1568
|
# The base class version returns false, but this method is overridden in {Wx::Control} where it returns true.
|
1745
|
-
# @return [
|
1569
|
+
# @return [Boolean]
|
1746
1570
|
def should_inherit_colours; end
|
1747
1571
|
|
1748
1572
|
# Internal function to position the visible caret according to the current caret position.
|
1749
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1573
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1750
1574
|
# @return [void]
|
1751
1575
|
def position_caret(container=nil) end
|
1752
1576
|
|
@@ -1755,39 +1579,32 @@ module Wx::RTC
|
|
1755
1579
|
# @param oldPosition [Integer]
|
1756
1580
|
# @param newPosition [Integer]
|
1757
1581
|
# @param flags [Integer]
|
1758
|
-
# @return [
|
1582
|
+
# @return [Boolean]
|
1759
1583
|
def extend_selection(oldPosition, newPosition, flags) end
|
1760
1584
|
|
1761
1585
|
# Extends a table selection in the given direction.
|
1762
|
-
# @param table [Wx::RichTextTable]
|
1586
|
+
# @param table [Wx::RTC::RichTextTable]
|
1763
1587
|
# @param noRowSteps [Integer]
|
1764
1588
|
# @param noColSteps [Integer]
|
1765
|
-
# @return [
|
1589
|
+
# @return [Boolean]
|
1766
1590
|
def extend_cell_selection(table, noRowSteps, noColSteps) end
|
1767
1591
|
|
1768
1592
|
# Starts selecting table cells.
|
1769
|
-
# @param table [Wx::RichTextTable]
|
1770
|
-
# @param newCell [Wx::RichTextParagraphLayoutBox]
|
1771
|
-
# @return [
|
1593
|
+
# @param table [Wx::RTC::RichTextTable]
|
1594
|
+
# @param newCell [Wx::RTC::RichTextParagraphLayoutBox]
|
1595
|
+
# @return [Boolean]
|
1772
1596
|
def start_cell_selection(table, newCell) end
|
1773
1597
|
|
1774
|
-
# Scrolls position into view.
|
1775
|
-
# This function takes a caret position.
|
1776
|
-
# @param position [Integer]
|
1777
|
-
# @param keyCode [Integer]
|
1778
|
-
# @return [true,false]
|
1779
|
-
def scroll_into_view(position, keyCode) end
|
1780
|
-
|
1781
1598
|
# Refreshes the area affected by a selection change.
|
1782
|
-
# @param oldSelection [Wx::RichTextSelection]
|
1783
|
-
# @param newSelection [Wx::RichTextSelection]
|
1784
|
-
# @return [
|
1599
|
+
# @param oldSelection [Wx::RTC::RichTextSelection]
|
1600
|
+
# @param newSelection [Wx::RTC::RichTextSelection]
|
1601
|
+
# @return [Boolean]
|
1785
1602
|
def refresh_for_selection_change(oldSelection, newSelection) end
|
1786
1603
|
|
1787
1604
|
# Sets the caret position.
|
1788
1605
|
# The caret position is the character position just before the caret. A value of -1 means the caret is at the start of the buffer. Please note that this does not update the current editing style from the new position or cause the actual caret to be refreshed; to do that, call {Wx::RTC::RichTextCtrl#set_insertion_point} instead.
|
1789
1606
|
# @param position [Integer]
|
1790
|
-
# @param showAtLineStart [
|
1607
|
+
# @param showAtLineStart [Boolean]
|
1791
1608
|
# @return [void]
|
1792
1609
|
def set_caret_position(position, showAtLineStart=false) end
|
1793
1610
|
alias_method :caret_position=, :set_caret_position
|
@@ -1817,26 +1634,26 @@ module Wx::RTC
|
|
1817
1634
|
# If container is null, the current focus object will be used.
|
1818
1635
|
# @param position [Integer]
|
1819
1636
|
# @param rect [Wx::Rect]
|
1820
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1821
|
-
# @return [
|
1637
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1638
|
+
# @return [Boolean]
|
1822
1639
|
def get_caret_position_for_index(position, rect, container=nil) end
|
1823
1640
|
alias_method :caret_position_for_index, :get_caret_position_for_index
|
1824
1641
|
|
1825
1642
|
# Internal helper function returning the line for the visible caret position.
|
1826
1643
|
# If the caret is shown at the very end of the line, it means the next character is actually on the following line. So this function gets the line we're expecting to find if this is the case.
|
1827
1644
|
# @param caretPosition [Integer]
|
1828
|
-
# @return [Wx::RichTextLine]
|
1645
|
+
# @return [Wx::RTC::RichTextLine]
|
1829
1646
|
def get_visible_line_for_caret_position(caretPosition) end
|
1830
1647
|
alias_method :visible_line_for_caret_position, :get_visible_line_for_caret_position
|
1831
1648
|
|
1832
1649
|
# Gets the command processor associated with the control's buffer.
|
1833
|
-
# @return [Wx::CommandProcessor]
|
1650
|
+
# @return [Wx::RTC::CommandProcessor]
|
1834
1651
|
def get_command_processor; end
|
1835
1652
|
alias_method :command_processor, :get_command_processor
|
1836
1653
|
|
1837
1654
|
# Deletes content if there is a selection, e.g.
|
1838
1655
|
# when pressing a key. Returns the new caret position in newPos, or leaves it if there was no action. This is undoable.
|
1839
|
-
# @return [
|
1656
|
+
# @return [Integer,nil]
|
1840
1657
|
def delete_selected_content; end
|
1841
1658
|
|
1842
1659
|
# Transforms logical (unscrolled) position to physical window position.
|
@@ -1859,7 +1676,7 @@ module Wx::RTC
|
|
1859
1676
|
|
1860
1677
|
# Returns true if the given position is visible on the screen.
|
1861
1678
|
# @param pos [Integer]
|
1862
|
-
# @return [
|
1679
|
+
# @return [Boolean]
|
1863
1680
|
def is_position_visible(pos) end
|
1864
1681
|
alias_method :position_visible?, :is_position_visible
|
1865
1682
|
|
@@ -1869,43 +1686,43 @@ module Wx::RTC
|
|
1869
1686
|
alias_method :first_visible_position, :get_first_visible_position
|
1870
1687
|
|
1871
1688
|
# Enable or disable images.
|
1872
|
-
# @param b [
|
1689
|
+
# @param b [Boolean]
|
1873
1690
|
# @return [void]
|
1874
1691
|
def enable_images(b) end
|
1875
1692
|
|
1876
1693
|
# Returns true if images are enabled.
|
1877
|
-
# @return [
|
1694
|
+
# @return [Boolean]
|
1878
1695
|
def get_images_enabled; end
|
1879
1696
|
alias_method :images_enabled, :get_images_enabled
|
1880
1697
|
|
1881
1698
|
# Enable or disable delayed image loading.
|
1882
|
-
# @param b [
|
1699
|
+
# @param b [Boolean]
|
1883
1700
|
# @return [void]
|
1884
1701
|
def enable_delayed_image_loading(b) end
|
1885
1702
|
|
1886
1703
|
# Returns true if delayed image loading is enabled.
|
1887
|
-
# @return [
|
1704
|
+
# @return [Boolean]
|
1888
1705
|
def get_delayed_image_loading; end
|
1889
1706
|
alias_method :delayed_image_loading, :get_delayed_image_loading
|
1890
1707
|
|
1891
1708
|
# Gets the flag indicating that delayed image processing is required.
|
1892
|
-
# @return [
|
1709
|
+
# @return [Boolean]
|
1893
1710
|
def get_delayed_image_processing_required; end
|
1894
1711
|
alias_method :delayed_image_processing_required, :get_delayed_image_processing_required
|
1895
1712
|
|
1896
1713
|
# Sets the flag indicating that delayed image processing is required.
|
1897
|
-
# @param b [
|
1714
|
+
# @param b [Boolean]
|
1898
1715
|
# @return [void]
|
1899
1716
|
def set_delayed_image_processing_required(b) end
|
1900
1717
|
alias_method :delayed_image_processing_required=, :set_delayed_image_processing_required
|
1901
1718
|
|
1902
1719
|
# Returns the last time delayed image processing was performed.
|
1903
|
-
# @return [
|
1720
|
+
# @return [Integer]
|
1904
1721
|
def get_delayed_image_processing_time; end
|
1905
1722
|
alias_method :delayed_image_processing_time, :get_delayed_image_processing_time
|
1906
1723
|
|
1907
1724
|
# Sets the last time delayed image processing was performed.
|
1908
|
-
# @param t [
|
1725
|
+
# @param t [Integer]
|
1909
1726
|
# @return [void]
|
1910
1727
|
def set_delayed_image_processing_time(t) end
|
1911
1728
|
alias_method :delayed_image_processing_time=, :set_delayed_image_processing_time
|
@@ -1925,14 +1742,14 @@ module Wx::RTC
|
|
1925
1742
|
# Returns true if the user has recently set the default style without moving the caret, and therefore the UI needs to reflect the default style and not the style at the caret.
|
1926
1743
|
# Below is an example of code that uses this function to determine whether the UI should show that the current style is bold.
|
1927
1744
|
# @see Wx::RTC::RichTextCtrl#set_and_show_default_style.
|
1928
|
-
# @return [
|
1745
|
+
# @return [Boolean]
|
1929
1746
|
def is_default_style_showing; end
|
1930
1747
|
alias_method :default_style_showing?, :is_default_style_showing
|
1931
1748
|
|
1932
1749
|
# Sets attr as the default style and tells the control that the UI should reflect this attribute until the user moves the caret.
|
1933
1750
|
#
|
1934
1751
|
# @see Wx::RTC::RichTextCtrl#is_default_style_showing.
|
1935
|
-
# @param attr [Wx::RichTextAttr]
|
1752
|
+
# @param attr [Wx::RTC::RichTextAttr]
|
1936
1753
|
# @return [void]
|
1937
1754
|
def set_and_show_default_style(attr) end
|
1938
1755
|
alias_method :and_show_default_style=, :set_and_show_default_style
|
@@ -1956,52 +1773,46 @@ module Wx::RTC
|
|
1956
1773
|
# Processes the back key.
|
1957
1774
|
# @param event [Wx::KeyEvent]
|
1958
1775
|
# @param flags [Integer]
|
1959
|
-
# @return [
|
1776
|
+
# @return [Boolean]
|
1960
1777
|
def process_back_key(event, flags) end
|
1961
1778
|
|
1962
1779
|
# Given a character position at which there is a list style, find the range encompassing the same list style by looking backwards and forwards.
|
1963
1780
|
# @param pos [Integer]
|
1964
|
-
# @
|
1965
|
-
|
1966
|
-
def find_range_for_list(pos, isNumberedList) end
|
1781
|
+
# @return [Array(Range,Boolean)]
|
1782
|
+
def find_range_for_list(pos) end
|
1967
1783
|
|
1968
1784
|
# Sets up the caret for the given position and container, after a mouse click.
|
1969
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1785
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1970
1786
|
# @param position [Integer]
|
1971
1787
|
# @param hitTestFlags [Integer]
|
1972
|
-
# @param extendSelection [
|
1973
|
-
# @return [
|
1788
|
+
# @param extendSelection [Boolean]
|
1789
|
+
# @return [Boolean]
|
1974
1790
|
def set_caret_position_after_click(container, position, hitTestFlags, extendSelection=false) end
|
1975
1791
|
|
1976
1792
|
# Find the caret position for the combination of hit-test flags and character position.
|
1977
1793
|
# Returns the caret position and also an indication of where to place the caret (caretLineStart) since this is ambiguous (same position used for end of line and start of next).
|
1978
1794
|
# @param position [Integer]
|
1979
1795
|
# @param hitTestFlags [Integer]
|
1980
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1981
|
-
# @
|
1982
|
-
|
1983
|
-
def find_caret_position_for_character_position(position, hitTestFlags, container, caretLineStart) end
|
1796
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1797
|
+
# @return [Array(Integer,Boolean)]
|
1798
|
+
def find_caret_position_for_character_position(position, hitTestFlags, container) end
|
1984
1799
|
|
1985
1800
|
# Processes mouse movement in order to change the cursor.
|
1986
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1987
|
-
# @param obj [Wx::RichTextObject]
|
1801
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1802
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1988
1803
|
# @param position [Integer]
|
1989
1804
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
1990
|
-
# @return [
|
1805
|
+
# @return [Boolean]
|
1991
1806
|
def process_mouse_movement(container, obj, position, pos) end
|
1992
1807
|
|
1993
|
-
# @return [String]
|
1994
|
-
def do_get_value; end
|
1995
|
-
|
1996
1808
|
# @overload process_delayed_image_loading(refresh)
|
1997
1809
|
# Do delayed image loading and garbage-collect other images.
|
1998
|
-
# @param refresh [
|
1999
|
-
# @return [
|
2000
|
-
# @overload process_delayed_image_loading(screenRect, box
|
1810
|
+
# @param refresh [Boolean]
|
1811
|
+
# @return [Boolean]
|
1812
|
+
# @overload process_delayed_image_loading(screenRect, box)
|
2001
1813
|
# @param screenRect [Wx::Rect]
|
2002
|
-
# @param box [Wx::RichTextParagraphLayoutBox]
|
2003
|
-
# @
|
2004
|
-
# @return [true,false]
|
1814
|
+
# @param box [Wx::RTC::RichTextParagraphLayoutBox]
|
1815
|
+
# @return [Array(Boolean,Integer)]
|
2005
1816
|
def process_delayed_image_loading(*args) end
|
2006
1817
|
|
2007
1818
|
# Request delayed image processing.
|
@@ -2023,5 +1834,179 @@ module Wx::RTC
|
|
2023
1834
|
|
2024
1835
|
end # RichTextCtrl
|
2025
1836
|
|
1837
|
+
# {Wx::RTC::RichTextContextMenuPropertiesInfo} keeps track of objects that appear in the context menu, whose properties are available to be edited.
|
1838
|
+
#
|
1839
|
+
#
|
1840
|
+
#
|
1841
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
1842
|
+
class RichTextContextMenuPropertiesInfo < ::Object
|
1843
|
+
|
1844
|
+
# Constructor.
|
1845
|
+
# @return [Wx::RTC::RichTextContextMenuPropertiesInfo]
|
1846
|
+
def initialize; end
|
1847
|
+
|
1848
|
+
# Initialisation.
|
1849
|
+
# @return [void]
|
1850
|
+
def init; end
|
1851
|
+
|
1852
|
+
# Adds an item.
|
1853
|
+
# @param label [String]
|
1854
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1855
|
+
# @return [Boolean]
|
1856
|
+
def add_item(label, obj) end
|
1857
|
+
|
1858
|
+
# Returns the number of menu items that were added.
|
1859
|
+
# @param menu [Wx::Menu]
|
1860
|
+
# @param startCmd [Integer]
|
1861
|
+
# @return [Integer]
|
1862
|
+
def add_menu_items(menu, startCmd=wxID_RICHTEXT_PROPERTIES1) end
|
1863
|
+
|
1864
|
+
# Adds appropriate menu items for the current container and clicked on object (and container's parent, if appropriate).
|
1865
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
1866
|
+
# @param container [Wx::RTC::RichTextObject]
|
1867
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1868
|
+
# @return [Integer]
|
1869
|
+
def add_items(ctrl, container, obj) end
|
1870
|
+
|
1871
|
+
# Clears the items.
|
1872
|
+
# @return [void]
|
1873
|
+
def clear; end
|
1874
|
+
|
1875
|
+
# Returns the nth label.
|
1876
|
+
# @param n [Integer]
|
1877
|
+
# @return [String]
|
1878
|
+
def get_label(n) end
|
1879
|
+
alias_method :label, :get_label
|
1880
|
+
|
1881
|
+
# Returns the nth object.
|
1882
|
+
# @param n [Integer]
|
1883
|
+
# @return [Wx::RTC::RichTextObject]
|
1884
|
+
def get_object(n) end
|
1885
|
+
alias_method :object, :get_object
|
1886
|
+
|
1887
|
+
# Returns the array of objects.
|
1888
|
+
# @return [Array<Wx::RTC::RichTextObject>]
|
1889
|
+
def get_objects; end
|
1890
|
+
alias_method :objects, :get_objects
|
1891
|
+
|
1892
|
+
# Returns the array of labels.
|
1893
|
+
# @return [Wx::ArrayString]
|
1894
|
+
def get_labels; end
|
1895
|
+
alias_method :labels, :get_labels
|
1896
|
+
|
1897
|
+
# Returns the number of items.
|
1898
|
+
# @return [Integer]
|
1899
|
+
def get_count; end
|
1900
|
+
alias_method :count, :get_count
|
1901
|
+
|
1902
|
+
end # RichTextContextMenuPropertiesInfo
|
1903
|
+
|
1904
|
+
# {Wx::RTC::CommandProcessor} is a class that maintains a history of {Wx::Commands}, with undo/redo functionality built-in.
|
1905
|
+
# Derive a new class from this if you want different behaviour.
|
1906
|
+
# ===
|
1907
|
+
#
|
1908
|
+
# Category: Document/View Framework
|
1909
|
+
# @see wxCommandProcessor Overview
|
1910
|
+
# @see Wx::Command
|
1911
|
+
#
|
1912
|
+
#
|
1913
|
+
class CommandProcessor < Object
|
1914
|
+
|
1915
|
+
# Constructor.
|
1916
|
+
# @param maxCommands [Integer] May be set to a positive integer to limit the number of commands stored to it, otherwise (and by default) the list of commands can grow arbitrarily.
|
1917
|
+
# @return [Wx::RTC::CommandProcessor]
|
1918
|
+
def initialize(maxCommands=-1) end
|
1919
|
+
|
1920
|
+
# Returns true if the currently-active command can be undone, false otherwise.
|
1921
|
+
# @return [Boolean]
|
1922
|
+
def can_undo; end
|
1923
|
+
alias_method :can_undo?, :can_undo
|
1924
|
+
|
1925
|
+
# Returns true if the currently-active command can be redone, false otherwise.
|
1926
|
+
# @return [Boolean]
|
1927
|
+
def can_redo; end
|
1928
|
+
alias_method :can_redo?, :can_redo
|
1929
|
+
|
1930
|
+
# Deletes all commands in the list and sets the current command pointer to NULL.
|
1931
|
+
# @return [void]
|
1932
|
+
def clear_commands; end
|
1933
|
+
|
1934
|
+
# Returns the edit menu associated with the command processor.
|
1935
|
+
# @return [Wx::Menu]
|
1936
|
+
def get_edit_menu; end
|
1937
|
+
alias_method :edit_menu, :get_edit_menu
|
1938
|
+
|
1939
|
+
# Returns the maximum number of commands that the command processor stores.
|
1940
|
+
# @return [Integer]
|
1941
|
+
def get_max_commands; end
|
1942
|
+
alias_method :max_commands, :get_max_commands
|
1943
|
+
|
1944
|
+
# Returns the string that will be appended to the Redo menu item.
|
1945
|
+
# @return [Wx::String]
|
1946
|
+
def get_redo_accelerator; end
|
1947
|
+
alias_method :redo_accelerator, :get_redo_accelerator
|
1948
|
+
|
1949
|
+
# Returns the string that will be shown for the redo menu item.
|
1950
|
+
# @return [String]
|
1951
|
+
def get_redo_menu_label; end
|
1952
|
+
alias_method :redo_menu_label, :get_redo_menu_label
|
1953
|
+
|
1954
|
+
# Returns the string that will be appended to the Undo menu item.
|
1955
|
+
# @return [Wx::String]
|
1956
|
+
def get_undo_accelerator; end
|
1957
|
+
alias_method :undo_accelerator, :get_undo_accelerator
|
1958
|
+
|
1959
|
+
# Returns the string that will be shown for the undo menu item.
|
1960
|
+
# @return [String]
|
1961
|
+
def get_undo_menu_label; end
|
1962
|
+
alias_method :undo_menu_label, :get_undo_menu_label
|
1963
|
+
|
1964
|
+
# Initializes the command processor, setting the current command to the last in the list (if any), and updating the edit menu (if one has been specified).
|
1965
|
+
# @return [void]
|
1966
|
+
def initialize; end
|
1967
|
+
|
1968
|
+
# Returns a boolean value that indicates if changes have been made since the last save operation.
|
1969
|
+
# This only works if {Wx::RTC::CommandProcessor#mark_as_saved} is called whenever the project is saved.
|
1970
|
+
# @return [Boolean]
|
1971
|
+
def is_dirty; end
|
1972
|
+
alias_method :dirty?, :is_dirty
|
1973
|
+
|
1974
|
+
# You must call this method whenever the project is saved if you plan to use {Wx::RTC::CommandProcessor#is_dirty}.
|
1975
|
+
# @return [void]
|
1976
|
+
def mark_as_saved; end
|
1977
|
+
|
1978
|
+
# Executes (redoes) the current command (the command that has just been undone if any).
|
1979
|
+
# @return [Boolean]
|
1980
|
+
def redo_; end
|
1981
|
+
|
1982
|
+
# Tells the command processor to update the Undo and Redo items on this menu as appropriate.
|
1983
|
+
# Set this to NULL if the menu is about to be destroyed and command operations may still be performed, or the command processor may try to access an invalid pointer.
|
1984
|
+
# @param menu [Wx::Menu]
|
1985
|
+
# @return [void]
|
1986
|
+
def set_edit_menu(menu) end
|
1987
|
+
alias_method :edit_menu=, :set_edit_menu
|
1988
|
+
|
1989
|
+
# Sets the menu labels according to the currently set menu and the current command state.
|
1990
|
+
# @return [void]
|
1991
|
+
def set_menu_strings; end
|
1992
|
+
|
1993
|
+
# Sets the string that will be appended to the Redo menu item.
|
1994
|
+
# @param accel [String]
|
1995
|
+
# @return [void]
|
1996
|
+
def set_redo_accelerator(accel) end
|
1997
|
+
alias_method :redo_accelerator=, :set_redo_accelerator
|
1998
|
+
|
1999
|
+
# Sets the string that will be appended to the Undo menu item.
|
2000
|
+
# @param accel [String]
|
2001
|
+
# @return [void]
|
2002
|
+
def set_undo_accelerator(accel) end
|
2003
|
+
alias_method :undo_accelerator=, :set_undo_accelerator
|
2004
|
+
|
2005
|
+
# Undoes the last command executed.
|
2006
|
+
# @return [Boolean]
|
2007
|
+
def undo; end
|
2008
|
+
|
2009
|
+
end # CommandProcessor
|
2010
|
+
|
2026
2011
|
|
2027
2012
|
end
|