wxruby3 0.9.0.pre.rc.3-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/README.md +1 -1
- 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 +7 -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 +16 -4
- data/lib/wx/core/imagelist.rb +8 -1
- data/lib/wx/core/listbox.rb +7 -0
- data/lib/wx/core/listctrl.rb +9 -0
- data/lib/wx/core/locale.rb +8 -0
- data/lib/wx/core/log.rb +24 -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 +12 -4
- 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 +6 -0
- data/lib/wx/doc/events.rb +6 -0
- data/lib/wx/doc/evthandler.rb +8 -0
- data/lib/wx/doc/extra/01_packages.md +52 -51
- 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 +1 -1
- data/lib/wx/doc/extra/10_art.md +18 -12
- data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
- data/lib/wx/doc/font.rb +6 -0
- data/lib/wx/doc/font_data.rb +16 -0
- data/lib/wx/doc/functions.rb +9 -1
- data/lib/wx/doc/gc_dc.rb +6 -0
- data/lib/wx/doc/gdi_common.rb +8 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +9 -9
- data/lib/wx/doc/gen/accelerator.rb +4 -9
- data/lib/wx/doc/gen/accessible.rb +21 -21
- data/lib/wx/doc/gen/activity_indicator.rb +2 -2
- data/lib/wx/doc/gen/animation.rb +13 -13
- data/lib/wx/doc/gen/animation_ctrl.rb +7 -7
- data/lib/wx/doc/gen/any_button.rb +2 -2
- data/lib/wx/doc/gen/app.rb +16 -85
- data/lib/wx/doc/gen/app_traits.rb +381 -0
- data/lib/wx/doc/gen/art_provider.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_manager.rb +12 -14
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +5 -5
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +13 -14
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_notebook.rb +102 -19
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +44 -44
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +11 -11
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +28 -28
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +7 -7
- 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 +24 -55
- data/lib/wx/doc/gen/bitmap_button.rb +3 -3
- data/lib/wx/doc/gen/bitmap_combo_box.rb +2 -2
- data/lib/wx/doc/gen/book_ctrl_base.rb +13 -13
- data/lib/wx/doc/gen/book_ctrl_event.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +8 -8
- data/lib/wx/doc/gen/button.rb +4 -4
- data/lib/wx/doc/gen/calendar_ctrl.rb +12 -12
- data/lib/wx/doc/gen/calendar_date_attr.rb +11 -11
- data/lib/wx/doc/gen/calendar_event.rb +2 -8
- data/lib/wx/doc/gen/caret.rb +4 -4
- data/lib/wx/doc/gen/check_box.rb +9 -9
- data/lib/wx/doc/gen/check_list_box.rb +4 -4
- data/lib/wx/doc/gen/choice.rb +3 -3
- data/lib/wx/doc/gen/choicebook.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +9 -9
- data/lib/wx/doc/gen/collapsible_pane.rb +4 -4
- data/lib/wx/doc/gen/collapsible_pane_event.rb +3 -3
- data/lib/wx/doc/gen/colour.rb +26 -26
- data/lib/wx/doc/gen/colour_dialog.rb +6 -6
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +1 -1
- data/lib/wx/doc/gen/combo_box.rb +7 -7
- 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 +3 -3
- data/lib/wx/doc/gen/control.rb +3 -3
- data/lib/wx/doc/gen/control_with_items.rb +5 -5
- data/lib/wx/doc/gen/core.rb +5 -5
- data/lib/wx/doc/gen/cursor.rb +3 -8
- data/lib/wx/doc/gen/data_format.rb +3 -3
- data/lib/wx/doc/gen/data_object.rb +13 -13
- data/lib/wx/doc/gen/date_event.rb +1 -1
- data/lib/wx/doc/gen/date_picker_ctrl.rb +5 -5
- data/lib/wx/doc/gen/dc.rb +125 -62
- data/lib/wx/doc/gen/dialog.rb +46 -17
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -1
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +3 -3
- data/lib/wx/doc/gen/drag_drop.rb +18 -44
- data/lib/wx/doc/gen/drag_image.rb +7 -32
- data/lib/wx/doc/gen/editable_list_box.rb +2 -2
- data/lib/wx/doc/gen/event.rb +15 -23
- data/lib/wx/doc/gen/event_blocker.rb +1 -1
- data/lib/wx/doc/gen/event_list.rb +103 -5
- data/lib/wx/doc/gen/events.rb +151 -151
- data/lib/wx/doc/gen/evt_handler.rb +7 -7
- data/lib/wx/doc/gen/ext_help_controller.rb +8 -8
- data/lib/wx/doc/gen/file_dialog.rb +4 -2
- 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 +1 -1
- data/lib/wx/doc/gen/file_picker_ctrl.rb +3 -3
- data/lib/wx/doc/gen/file_system.rb +250 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/font.rb +60 -65
- data/lib/wx/doc/gen/font_data.rb +6 -6
- data/lib/wx/doc/gen/font_dialog.rb +2 -2
- data/lib/wx/doc/gen/font_picker_ctrl.rb +1 -1
- data/lib/wx/doc/gen/frame.rb +6 -20
- data/lib/wx/doc/gen/fs_file.rb +61 -21
- data/lib/wx/doc/gen/gauge.rb +3 -3
- data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
- data/lib/wx/doc/gen/gdi_common.rb +8 -8
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +6 -6
- data/lib/wx/doc/gen/graphics_context.rb +291 -60
- data/lib/wx/doc/gen/graphics_object.rb +47 -101
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +36 -51
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +6 -4
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +414 -171
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_event.rb +7 -7
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +9 -9
- data/lib/wx/doc/gen/grid/grid_size_event.rb +5 -5
- data/lib/wx/doc/gen/grid/grid_string_table.rb +6 -6
- data/lib/wx/doc/gen/grid/grid_table_base.rb +15 -15
- data/lib/wx/doc/gen/grid_bag_sizer.rb +10 -10
- data/lib/wx/doc/gen/gui_event_loop.rb +12 -12
- 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 +7 -7
- data/lib/wx/doc/gen/help_provider.rb +3 -3
- data/lib/wx/doc/gen/html/html_cell.rb +67 -44
- data/lib/wx/doc/gen/html/html_cell_event.rb +3 -3
- data/lib/wx/doc/gen/html/html_easy_printing.rb +5 -5
- data/lib/wx/doc/gen/html/html_help_controller.rb +40 -52
- data/lib/wx/doc/gen/html/html_help_data.rb +2 -2
- data/lib/wx/doc/gen/html/html_help_window.rb +21 -27
- data/lib/wx/doc/gen/html/html_list_box.rb +6 -6
- data/lib/wx/doc/gen/html/html_printout.rb +1 -1
- data/lib/wx/doc/gen/html/html_window.rb +35 -31
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +3 -3
- data/lib/wx/doc/gen/icon.rb +10 -10
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +46 -51
- data/lib/wx/doc/gen/image_list.rb +14 -24
- data/lib/wx/doc/gen/info_bar.rb +152 -0
- data/lib/wx/doc/gen/keyboard_state.rb +17 -17
- data/lib/wx/doc/gen/list_box.rb +19 -19
- data/lib/wx/doc/gen/list_ctrl.rb +58 -93
- data/lib/wx/doc/gen/list_event.rb +2 -2
- data/lib/wx/doc/gen/listbook.rb +1 -1
- data/lib/wx/doc/gen/locale.rb +15 -39
- data/lib/wx/doc/gen/log.rb +17 -67
- data/lib/wx/doc/gen/mdi_client_window.rb +1 -1
- data/lib/wx/doc/gen/mdi_frame.rb +8 -8
- data/lib/wx/doc/gen/media_ctrl.rb +15 -15
- data/lib/wx/doc/gen/media_event.rb +1 -1
- data/lib/wx/doc/gen/memory_dc.rb +3 -6
- data/lib/wx/doc/gen/menu.rb +15 -16
- data/lib/wx/doc/gen/menu_bar.rb +9 -26
- data/lib/wx/doc/gen/menu_item.rb +12 -12
- data/lib/wx/doc/gen/message_dialog.rb +6 -6
- data/lib/wx/doc/gen/mini_frame.rb +2 -2
- data/lib/wx/doc/gen/mouse_state.rb +50 -10
- data/lib/wx/doc/gen/non_owned_window.rb +2 -2
- data/lib/wx/doc/gen/notebook.rb +7 -7
- data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
- data/lib/wx/doc/gen/object.rb +1 -12
- data/lib/wx/doc/gen/palette.rb +12 -14
- data/lib/wx/doc/gen/panel.rb +4 -4
- data/lib/wx/doc/gen/pen.rb +25 -25
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -2
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +14 -14
- data/lib/wx/doc/gen/pg/pg_cell.rb +3 -6
- data/lib/wx/doc/gen/pg/pg_editor.rb +19 -19
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +61 -86
- data/lib/wx/doc/gen/pg/pg_properties.rb +210 -263
- data/lib/wx/doc/gen/pg/pg_property.rb +161 -257
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -2
- data/lib/wx/doc/gen/pg/property_grid.rb +30 -30
- data/lib/wx/doc/gen/pg/property_grid_event.rb +7 -7
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +45 -51
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +39 -42
- data/lib/wx/doc/gen/pg/property_grid_page.rb +11 -20
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +10 -19
- data/lib/wx/doc/gen/picker_base.rb +5 -5
- data/lib/wx/doc/gen/platform_info.rb +173 -13
- data/lib/wx/doc/gen/popup_window.rb +2 -2
- data/lib/wx/doc/gen/progress_dialog.rb +2 -2
- data/lib/wx/doc/gen/property_sheet_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/preview_frame.rb +14 -1
- data/lib/wx/doc/gen/prt/print_data.rb +44 -44
- data/lib/wx/doc/gen/prt/printer.rb +22 -27
- data/lib/wx/doc/gen/query_layout_info_event.rb +4 -4
- data/lib/wx/doc/gen/radio_box.rb +9 -9
- data/lib/wx/doc/gen/radio_button.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +28 -28
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +13 -13
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +1 -1
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +13 -13
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +7 -7
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +8 -14
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +1 -1
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +7 -7
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -16
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +1 -1
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +13 -13
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -2
- 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 +26 -35
- data/lib/wx/doc/gen/region_iterator.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +608 -1520
- 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 +435 -472
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +9 -9
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +12 -12
- 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 +14 -14
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +3 -16
- 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 +17 -17
- 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 +2 -2
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +32 -35
- data/lib/wx/doc/gen/sash_event.rb +5 -5
- data/lib/wx/doc/gen/sash_layout_window.rb +8 -8
- data/lib/wx/doc/gen/sash_window.rb +6 -6
- data/lib/wx/doc/gen/scroll_bar.rb +4 -4
- data/lib/wx/doc/gen/scrolled_canvas.rb +10 -16
- data/lib/wx/doc/gen/scrolled_control.rb +10 -16
- data/lib/wx/doc/gen/scrolled_window.rb +10 -16
- data/lib/wx/doc/gen/search_ctrl.rb +5 -5
- data/lib/wx/doc/gen/simplebook.rb +5 -5
- data/lib/wx/doc/gen/single_choice_dialog.rb +1 -2
- data/lib/wx/doc/gen/sizer.rb +40 -45
- data/lib/wx/doc/gen/sizer_item.rb +5 -5
- data/lib/wx/doc/gen/slider.rb +2 -2
- data/lib/wx/doc/gen/spin_button.rb +2 -2
- data/lib/wx/doc/gen/spin_ctrl.rb +3 -3
- 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 +1 -1
- data/lib/wx/doc/gen/splitter_event.rb +1 -1
- data/lib/wx/doc/gen/splitter_window.rb +16 -12
- data/lib/wx/doc/gen/static_bitmap.rb +4 -4
- data/lib/wx/doc/gen/static_box.rb +5 -5
- data/lib/wx/doc/gen/static_line.rb +3 -3
- data/lib/wx/doc/gen/static_text.rb +3 -3
- data/lib/wx/doc/gen/status_bar.rb +39 -5
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +145 -177
- data/lib/wx/doc/gen/stc/styled_text_event.rb +6 -6
- data/lib/wx/doc/gen/svg_file_dc.rb +5 -5
- data/lib/wx/doc/gen/system_options.rb +2 -2
- data/lib/wx/doc/gen/system_settings.rb +6 -6
- data/lib/wx/doc/gen/task_bar_icon.rb +7 -7
- data/lib/wx/doc/gen/task_bar_icon_event.rb +1 -1
- data/lib/wx/doc/gen/text_attr.rb +56 -54
- data/lib/wx/doc/gen/text_ctrl.rb +13 -37
- data/lib/wx/doc/gen/text_entry.rb +16 -16
- data/lib/wx/doc/gen/text_entry_dialog.rb +4 -4
- data/lib/wx/doc/gen/text_validator.rb +3 -8
- data/lib/wx/doc/gen/time_picker_ctrl.rb +5 -5
- data/lib/wx/doc/gen/timer.rb +5 -5
- data/lib/wx/doc/gen/tip_provider.rb +2 -2
- data/lib/wx/doc/gen/toggle_button.rb +4 -4
- data/lib/wx/doc/gen/tool_bar.rb +30 -37
- data/lib/wx/doc/gen/tool_tip.rb +1 -9
- data/lib/wx/doc/gen/toolbook.rb +6 -6
- data/lib/wx/doc/gen/top_level_window.rb +25 -95
- data/lib/wx/doc/gen/tree_ctrl.rb +20 -20
- data/lib/wx/doc/gen/tree_event.rb +2 -2
- data/lib/wx/doc/gen/treebook.rb +14 -14
- data/lib/wx/doc/gen/ui_action_simulator.rb +19 -18
- data/lib/wx/doc/gen/utils.rb +11 -11
- data/lib/wx/doc/gen/v_list_box.rb +9 -9
- data/lib/wx/doc/gen/v_scrolled_window.rb +7 -7
- data/lib/wx/doc/gen/validator.rb +3 -3
- data/lib/wx/doc/gen/variant.rb +22 -22
- data/lib/wx/doc/gen/window.rb +157 -122
- data/lib/wx/doc/gen/with_images.rb +1 -1
- data/lib/wx/doc/gen/wizard.rb +4 -4
- data/lib/wx/doc/gen/wizard_event.rb +3 -3
- data/lib/wx/doc/gen/wizard_page.rb +2 -2
- data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
- data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
- data/lib/wx/doc/gen/xml_node.rb +10 -10
- data/lib/wx/doc/gen/xml_resource.rb +12 -12
- 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 +12 -4
- data/lib/wx/doc/list_ctrl.rb +6 -0
- data/lib/wx/doc/log.rb +17 -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 +6 -0
- 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 +6 -0
- 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 +6 -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 +22 -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 +5 -2
- 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 +7 -4
- data/tests/test_intl.rb +3 -0
- data/tests/test_item_data.rb +3 -0
- data/tests/test_list_ctrl.rb +4 -1
- data/tests/test_log.rb +63 -0
- data/tests/test_proof_check.rb +52 -0
- data/tests/test_richtext.rb +204 -0
- data/tests/test_std_controls.rb +45 -35
- data/tests/test_timer.rb +3 -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 +76 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
@@ -193,6 +193,8 @@ module Wx::RTC
|
|
193
193
|
#
|
194
194
|
class RichTextCtrl < Control
|
195
195
|
|
196
|
+
include Wx::TextEntry
|
197
|
+
|
196
198
|
# @overload initialize()
|
197
199
|
# Default constructor.
|
198
200
|
# @return [Wx::RTC::RichTextCtrl]
|
@@ -221,7 +223,7 @@ module Wx::RTC
|
|
221
223
|
# @param style [Integer]
|
222
224
|
# @param validator [Wx::Validator]
|
223
225
|
# @param name [String]
|
224
|
-
# @return [
|
226
|
+
# @return [Boolean]
|
225
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
|
226
228
|
|
227
229
|
# Initialises the members of the control.
|
@@ -254,27 +256,27 @@ module Wx::RTC
|
|
254
256
|
alias_method :number_of_lines, :get_number_of_lines
|
255
257
|
|
256
258
|
# Returns true if the buffer has been modified.
|
257
|
-
# @return [
|
259
|
+
# @return [Boolean]
|
258
260
|
def is_modified; end
|
259
261
|
alias_method :modified?, :is_modified
|
260
262
|
|
261
263
|
# Returns true if the control is editable.
|
262
|
-
# @return [
|
264
|
+
# @return [Boolean]
|
263
265
|
def is_editable; end
|
264
266
|
alias_method :editable?, :is_editable
|
265
267
|
|
266
268
|
# Returns true if the control is single-line.
|
267
269
|
# Currently {Wx::RTC::RichTextCtrl} does not support single-line editing.
|
268
|
-
# @return [
|
270
|
+
# @return [Boolean]
|
269
271
|
def is_single_line; end
|
270
272
|
alias_method :single_line?, :is_single_line
|
271
273
|
|
272
274
|
# Returns true if the control is multiline.
|
273
|
-
# @return [
|
275
|
+
# @return [Boolean]
|
274
276
|
def is_multi_line; end
|
275
277
|
alias_method :multi_line?, :is_multi_line
|
276
278
|
|
277
|
-
# @return [Wx::RichTextSelection]
|
279
|
+
# @return [Wx::RTC::RichTextSelection]
|
278
280
|
def get_selection; end
|
279
281
|
alias_method :selection, :get_selection
|
280
282
|
|
@@ -307,20 +309,20 @@ module Wx::RTC
|
|
307
309
|
def get_delayed_layout_threshold; end
|
308
310
|
alias_method :delayed_layout_threshold, :get_delayed_layout_threshold
|
309
311
|
|
310
|
-
# @return [
|
312
|
+
# @return [Boolean]
|
311
313
|
def get_full_layout_required; end
|
312
314
|
alias_method :full_layout_required, :get_full_layout_required
|
313
315
|
|
314
|
-
# @param b [
|
316
|
+
# @param b [Boolean]
|
315
317
|
# @return [void]
|
316
318
|
def set_full_layout_required(b) end
|
317
319
|
alias_method :full_layout_required=, :set_full_layout_required
|
318
320
|
|
319
|
-
# @return [
|
321
|
+
# @return [Integer]
|
320
322
|
def get_full_layout_time; end
|
321
323
|
alias_method :full_layout_time, :get_full_layout_time
|
322
324
|
|
323
|
-
# @param t [
|
325
|
+
# @param t [Integer]
|
324
326
|
# @return [void]
|
325
327
|
def set_full_layout_time(t) end
|
326
328
|
alias_method :full_layout_time=, :set_full_layout_time
|
@@ -360,34 +362,34 @@ module Wx::RTC
|
|
360
362
|
alias_method :url_cursor, :get_url_cursor
|
361
363
|
|
362
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.
|
363
|
-
# @return [
|
365
|
+
# @return [Boolean]
|
364
366
|
def get_caret_at_line_start; end
|
365
367
|
alias_method :caret_at_line_start, :get_caret_at_line_start
|
366
368
|
|
367
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.
|
368
|
-
# @param atStart [
|
370
|
+
# @param atStart [Boolean]
|
369
371
|
# @return [void]
|
370
372
|
def set_caret_at_line_start(atStart) end
|
371
373
|
alias_method :caret_at_line_start=, :set_caret_at_line_start
|
372
374
|
|
373
375
|
# Returns true if we are extending a selection.
|
374
|
-
# @return [
|
376
|
+
# @return [Boolean]
|
375
377
|
def get_dragging; end
|
376
378
|
alias_method :dragging, :get_dragging
|
377
379
|
|
378
380
|
# Sets a flag to remember if we are extending a selection.
|
379
|
-
# @param dragging [
|
381
|
+
# @param dragging [Boolean]
|
380
382
|
# @return [void]
|
381
383
|
def set_dragging(dragging) end
|
382
384
|
alias_method :dragging=, :set_dragging
|
383
385
|
|
384
386
|
# Are we trying to start Drag'n'Drop?
|
385
|
-
# @return [
|
387
|
+
# @return [Boolean]
|
386
388
|
def get_pre_drag; end
|
387
389
|
alias_method :pre_drag, :get_pre_drag
|
388
390
|
|
389
391
|
# Set if we're trying to start Drag'n'Drop.
|
390
|
-
# @param pd [
|
392
|
+
# @param pd [Boolean]
|
391
393
|
# @return [void]
|
392
394
|
def set_pre_drag(pd) end
|
393
395
|
alias_method :pre_drag=, :set_pre_drag
|
@@ -409,7 +411,7 @@ module Wx::RTC
|
|
409
411
|
alias_method :drag_start_time, :get_drag_start_time
|
410
412
|
|
411
413
|
# Set the possible Drag'n'Drop start time.
|
412
|
-
# @param st [
|
414
|
+
# @param st [Time,Date,DateTime]
|
413
415
|
# @return [void]
|
414
416
|
def set_drag_start_time(st) end
|
415
417
|
alias_method :drag_start_time=, :set_drag_start_time
|
@@ -439,40 +441,35 @@ module Wx::RTC
|
|
439
441
|
alias_method :selection_anchor=, :set_selection_anchor
|
440
442
|
|
441
443
|
# Returns the anchor object if selecting multiple containers.
|
442
|
-
# @return [Wx::RichTextObject]
|
444
|
+
# @return [Wx::RTC::RichTextObject]
|
443
445
|
def get_selection_anchor_object; end
|
444
446
|
alias_method :selection_anchor_object, :get_selection_anchor_object
|
445
447
|
|
446
448
|
# Sets the anchor object if selecting multiple containers.
|
447
|
-
# @param anchor [Wx::RichTextObject]
|
449
|
+
# @param anchor [Wx::RTC::RichTextObject]
|
448
450
|
# @return [void]
|
449
451
|
def set_selection_anchor_object(anchor) end
|
450
452
|
alias_method :selection_anchor_object=, :set_selection_anchor_object
|
451
453
|
|
452
|
-
# @
|
453
|
-
|
454
|
-
# 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.
|
455
|
-
# @return [Wx::RichTextContextMenuPropertiesInfo]
|
456
|
-
# @overload get_context_menu_properties_info()
|
457
|
-
# @return [Wx::RichTextContextMenuPropertiesInfo]
|
458
|
-
def get_context_menu_properties_info(*args) end
|
454
|
+
# @return [Wx::RTC::RichTextContextMenuPropertiesInfo]
|
455
|
+
def get_context_menu_properties_info; end
|
459
456
|
alias_method :context_menu_properties_info, :get_context_menu_properties_info
|
460
457
|
|
461
|
-
# Returns the {Wx::RichTextObject} object that currently has the editing focus.
|
458
|
+
# Returns the {Wx::RTC::RichTextObject} object that currently has the editing focus.
|
462
459
|
# If there are no composite objects, this will be the top-level buffer.
|
463
|
-
# @return [Wx::RichTextParagraphLayoutBox]
|
460
|
+
# @return [Wx::RTC::RichTextParagraphLayoutBox]
|
464
461
|
def get_focus_object; end
|
465
462
|
alias_method :focus_object, :get_focus_object
|
466
463
|
|
467
464
|
# Setter for m_focusObject.
|
468
|
-
# @param obj [Wx::RichTextParagraphLayoutBox]
|
465
|
+
# @param obj [Wx::RTC::RichTextParagraphLayoutBox]
|
469
466
|
# @return [void]
|
470
467
|
def store_focus_object(obj) end
|
471
468
|
|
472
|
-
# Sets the {Wx::RichTextObject} object that currently has the editing focus.
|
473
|
-
# @param obj [Wx::RichTextParagraphLayoutBox] The {Wx::RichTextObject} to set focus on.
|
474
|
-
# @param setCaretPosition [
|
475
|
-
# @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]
|
476
473
|
def set_focus_object(obj, setCaretPosition=true) end
|
477
474
|
alias_method :focus_object=, :set_focus_object
|
478
475
|
|
@@ -503,7 +500,7 @@ module Wx::RTC
|
|
503
500
|
# This function looks for a suitable {Wx::RTC::RichTextFileHandler} object.
|
504
501
|
# @param file [String]
|
505
502
|
# @param type [Integer]
|
506
|
-
# @return [
|
503
|
+
# @return [Boolean]
|
507
504
|
def load_file(file, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
|
508
505
|
|
509
506
|
# Helper function for {Wx::RTC::RichTextCtrl#load_file}.
|
@@ -512,7 +509,7 @@ module Wx::RTC
|
|
512
509
|
# This function looks for a suitable {Wx::RTC::RichTextFileHandler} object.
|
513
510
|
# @param file [String]
|
514
511
|
# @param fileType [Integer]
|
515
|
-
# @return [
|
512
|
+
# @return [Boolean]
|
516
513
|
def do_load_file(file, fileType) end
|
517
514
|
|
518
515
|
# Saves the buffer content using the given type.
|
@@ -520,7 +517,7 @@ module Wx::RTC
|
|
520
517
|
# This function looks for a suitable {Wx::RTC::RichTextFileHandler} object.
|
521
518
|
# @param file [String]
|
522
519
|
# @param type [Integer]
|
523
|
-
# @return [
|
520
|
+
# @return [Boolean]
|
524
521
|
def save_file(file=(''), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
|
525
522
|
|
526
523
|
# Helper function for {Wx::RTC::RichTextCtrl#save_file}.
|
@@ -529,7 +526,7 @@ module Wx::RTC
|
|
529
526
|
# This function looks for a suitable {Wx::RTC::RichTextFileHandler} object.
|
530
527
|
# @param file [String]
|
531
528
|
# @param fileType [Integer]
|
532
|
-
# @return [
|
529
|
+
# @return [Boolean]
|
533
530
|
def do_save_file(file=(''), fileType=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
|
534
531
|
|
535
532
|
# Sets flags that change the behaviour of loading or saving.
|
@@ -553,7 +550,7 @@ module Wx::RTC
|
|
553
550
|
# @return [void]
|
554
551
|
def discard_edits; end
|
555
552
|
|
556
|
-
# @param modified [
|
553
|
+
# @param modified [Boolean]
|
557
554
|
# @return [void]
|
558
555
|
def set_modified(modified) end
|
559
556
|
alias_method :modified=, :set_modified
|
@@ -581,16 +578,16 @@ module Wx::RTC
|
|
581
578
|
# To get the character or paragraph style alone, use {Wx::RTC::RichTextCtrl#get_uncombined_style}.
|
582
579
|
# @param position [Integer]
|
583
580
|
# @param style [Wx::TextAttr]
|
584
|
-
# @return [
|
581
|
+
# @return [Boolean]
|
585
582
|
# @overload get_style(position, style)
|
586
583
|
# @param position [Integer]
|
587
584
|
# @param style [Wx::RTC::RichTextAttr]
|
588
|
-
# @return [
|
585
|
+
# @return [Boolean]
|
589
586
|
# @overload get_style(position, style, container)
|
590
587
|
# @param position [Integer]
|
591
588
|
# @param style [Wx::RTC::RichTextAttr]
|
592
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
593
|
-
# @return [
|
589
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
590
|
+
# @return [Boolean]
|
594
591
|
def get_style(*args) end
|
595
592
|
alias_method :style, :get_style
|
596
593
|
|
@@ -598,22 +595,22 @@ module Wx::RTC
|
|
598
595
|
# @param start [Integer]
|
599
596
|
# @param end_ [Integer]
|
600
597
|
# @param style [Wx::RTC::RichTextAttr]
|
601
|
-
# @return [
|
598
|
+
# @return [Boolean]
|
602
599
|
# @overload set_style(range, style)
|
603
600
|
# @param range [Range]
|
604
601
|
# @param style [Wx::RTC::RichTextAttr]
|
605
|
-
# @return [
|
602
|
+
# @return [Boolean]
|
606
603
|
def set_style(*args) end
|
607
604
|
|
608
605
|
# @overload get_style_for_range(range, style)
|
609
606
|
# @param range [Range]
|
610
607
|
# @param style [Wx::RTC::RichTextAttr]
|
611
|
-
# @return [
|
608
|
+
# @return [Boolean]
|
612
609
|
# @overload get_style_for_range(range, style, container)
|
613
610
|
# @param range [Range]
|
614
611
|
# @param style [Wx::RTC::RichTextAttr]
|
615
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
616
|
-
# @return [
|
612
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
613
|
+
# @return [Boolean]
|
617
614
|
def get_style_for_range(*args) end
|
618
615
|
alias_method :style_for_range, :get_style_for_range
|
619
616
|
|
@@ -631,7 +628,7 @@ module Wx::RTC
|
|
631
628
|
# @param range [Range]
|
632
629
|
# @param style [Wx::RTC::RichTextAttr]
|
633
630
|
# @param flags [Integer]
|
634
|
-
# @return [
|
631
|
+
# @return [Boolean]
|
635
632
|
def set_style_ex(range, style, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
|
636
633
|
|
637
634
|
# @overload get_uncombined_style(position, style)
|
@@ -640,22 +637,22 @@ module Wx::RTC
|
|
640
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.
|
641
638
|
# @param position [Integer]
|
642
639
|
# @param style [Wx::RTC::RichTextAttr]
|
643
|
-
# @return [
|
640
|
+
# @return [Boolean]
|
644
641
|
# @overload get_uncombined_style(position, style, container)
|
645
642
|
# @param position [Integer]
|
646
643
|
# @param style [Wx::RTC::RichTextAttr]
|
647
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
648
|
-
# @return [
|
644
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
645
|
+
# @return [Boolean]
|
649
646
|
def get_uncombined_style(*args) end
|
650
647
|
alias_method :uncombined_style, :get_uncombined_style
|
651
648
|
|
652
649
|
# @overload set_default_style(style)
|
653
650
|
# Sets the current default style, which can be used to change how subsequently inserted text is displayed.
|
654
651
|
# @param style [Wx::TextAttr]
|
655
|
-
# @return [
|
652
|
+
# @return [Boolean]
|
656
653
|
# @overload set_default_style(style)
|
657
654
|
# @param style [Wx::RTC::RichTextAttr]
|
658
|
-
# @return [
|
655
|
+
# @return [Boolean]
|
659
656
|
def set_default_style(*args) end
|
660
657
|
alias_method :default_style=, :set_default_style
|
661
658
|
|
@@ -669,7 +666,7 @@ module Wx::RTC
|
|
669
666
|
# @param flags [Integer]
|
670
667
|
# @param startFrom [Integer]
|
671
668
|
# @param specifiedLevel [Integer]
|
672
|
-
# @return [
|
669
|
+
# @return [Boolean]
|
673
670
|
def set_list_style(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) end
|
674
671
|
|
675
672
|
# Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.
|
@@ -681,7 +678,7 @@ module Wx::RTC
|
|
681
678
|
# @see Wx::RTC::RichTextCtrl#number_list.
|
682
679
|
# @param range [Range]
|
683
680
|
# @param flags [Integer]
|
684
|
-
# @return [
|
681
|
+
# @return [Boolean]
|
685
682
|
def clear_list_style(range, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
|
686
683
|
|
687
684
|
# @overload number_list(range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
|
@@ -697,18 +694,18 @@ module Wx::RTC
|
|
697
694
|
# @see Wx::RTC::RichTextCtrl#promote_list
|
698
695
|
# @see Wx::RTC::RichTextCtrl#clear_list_style.
|
699
696
|
# @param range [Range]
|
700
|
-
# @param def_ [Wx::RichTextListStyleDefinition]
|
697
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
701
698
|
# @param flags [Integer]
|
702
699
|
# @param startFrom [Integer]
|
703
700
|
# @param specifiedLevel [Integer]
|
704
|
-
# @return [
|
701
|
+
# @return [Boolean]
|
705
702
|
# @overload number_list(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
|
706
703
|
# @param range [Range]
|
707
704
|
# @param defName [String]
|
708
705
|
# @param flags [Integer]
|
709
706
|
# @param startFrom [Integer]
|
710
707
|
# @param specifiedLevel [Integer]
|
711
|
-
# @return [
|
708
|
+
# @return [Boolean]
|
712
709
|
def number_list(*args) end
|
713
710
|
|
714
711
|
# @overload promote_list(promoteBy, range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
|
@@ -726,17 +723,17 @@ module Wx::RTC
|
|
726
723
|
# @see Wx::RTC::RichTextCtrl#clear_list_style.
|
727
724
|
# @param promoteBy [Integer]
|
728
725
|
# @param range [Range]
|
729
|
-
# @param def_ [Wx::RichTextListStyleDefinition]
|
726
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
730
727
|
# @param flags [Integer]
|
731
728
|
# @param specifiedLevel [Integer]
|
732
|
-
# @return [
|
729
|
+
# @return [Boolean]
|
733
730
|
# @overload promote_list(promoteBy, range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
|
734
731
|
# @param promoteBy [Integer]
|
735
732
|
# @param range [Range]
|
736
733
|
# @param defName [String]
|
737
734
|
# @param flags [Integer]
|
738
735
|
# @param specifiedLevel [Integer]
|
739
|
-
# @return [
|
736
|
+
# @return [Boolean]
|
740
737
|
def promote_list(*args) end
|
741
738
|
|
742
739
|
# Sets the properties for the given range, passing flags to determine how the attributes are set.
|
@@ -751,45 +748,25 @@ module Wx::RTC
|
|
751
748
|
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_RESET}: resets (clears) the existing properties before applying the new properties.
|
752
749
|
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_REMOVE}: removes the specified properties.
|
753
750
|
# @param range [Range]
|
754
|
-
# @param properties [Wx::RichTextProperties]
|
751
|
+
# @param properties [Wx::RTC::RichTextProperties]
|
755
752
|
# @param flags [Integer]
|
756
|
-
# @return [
|
753
|
+
# @return [Boolean]
|
757
754
|
def set_properties(range, properties, flags=Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO) end
|
758
755
|
|
759
756
|
# Deletes the content within the given range.
|
760
757
|
# @param range [Range]
|
761
|
-
# @return [
|
758
|
+
# @return [Boolean]
|
762
759
|
def delete(range) end
|
763
760
|
|
764
|
-
# Translates from column and line number to position.
|
765
|
-
# @param x [Integer]
|
766
|
-
# @param y [Integer]
|
767
|
-
# @return [Integer]
|
768
|
-
def xy_to_position(x, y) end
|
769
|
-
|
770
|
-
# Converts a text position to zero-based column and line numbers.
|
771
|
-
# @param pos [Integer]
|
772
|
-
# @return [Array(true,false,Integer,Integer)]
|
773
|
-
def position_to_xy(pos) end
|
774
|
-
|
775
761
|
# Scrolls the buffer so that the given position is in view.
|
776
762
|
# @param pos [Integer]
|
777
763
|
# @return [void]
|
778
764
|
def show_position(pos) end
|
779
765
|
|
780
766
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
781
|
-
# @return [Array(TextCtrlHitTestResult,Integer,Integer)]
|
767
|
+
# @return [Array(Wx::TextCtrlHitTestResult,Integer,Integer)]
|
782
768
|
def hit_test(pt) end
|
783
769
|
|
784
|
-
# Finds the container at the given point, which is assumed to be in client coordinates.
|
785
|
-
# @param pt [Wx::Point]
|
786
|
-
# @param position [long]
|
787
|
-
# @param hit [int]
|
788
|
-
# @param hitObj [Wx::RichTextObject]
|
789
|
-
# @param flags [Integer]
|
790
|
-
# @return [Wx::RichTextParagraphLayoutBox]
|
791
|
-
def find_container_at_point(pt, position, hit, hitObj, flags=0) end
|
792
|
-
|
793
770
|
# Copies the selected content (if any) to the clipboard.
|
794
771
|
# @return [void]
|
795
772
|
def copy; end
|
@@ -809,22 +786,22 @@ module Wx::RTC
|
|
809
786
|
def delete_selection; end
|
810
787
|
|
811
788
|
# Returns true if selected content can be copied to the clipboard.
|
812
|
-
# @return [
|
789
|
+
# @return [Boolean]
|
813
790
|
def can_copy; end
|
814
791
|
alias_method :can_copy?, :can_copy
|
815
792
|
|
816
793
|
# Returns true if selected content can be copied to the clipboard and deleted.
|
817
|
-
# @return [
|
794
|
+
# @return [Boolean]
|
818
795
|
def can_cut; end
|
819
796
|
alias_method :can_cut?, :can_cut
|
820
797
|
|
821
798
|
# Returns true if the clipboard content can be pasted to the buffer.
|
822
|
-
# @return [
|
799
|
+
# @return [Boolean]
|
823
800
|
def can_paste; end
|
824
801
|
alias_method :can_paste?, :can_paste
|
825
802
|
|
826
803
|
# Returns true if selected content can be deleted.
|
827
|
-
# @return [
|
804
|
+
# @return [Boolean]
|
828
805
|
def can_delete_selection; end
|
829
806
|
alias_method :can_delete_selection?, :can_delete_selection
|
830
807
|
|
@@ -837,12 +814,12 @@ module Wx::RTC
|
|
837
814
|
def redo_; end
|
838
815
|
|
839
816
|
# Returns true if there is a command in the command history that can be undone.
|
840
|
-
# @return [
|
817
|
+
# @return [Boolean]
|
841
818
|
def can_undo; end
|
842
819
|
alias_method :can_undo?, :can_undo
|
843
820
|
|
844
821
|
# Returns true if there is a command in the command history that can be redone.
|
845
|
-
# @return [
|
822
|
+
# @return [Boolean]
|
846
823
|
def can_redo; end
|
847
824
|
alias_method :can_redo?, :can_redo
|
848
825
|
|
@@ -874,7 +851,7 @@ module Wx::RTC
|
|
874
851
|
# @param to [Integer]
|
875
852
|
# @return [void]
|
876
853
|
# @overload set_selection(sel)
|
877
|
-
# @param sel [Wx::RichTextSelection]
|
854
|
+
# @param sel [Wx::RTC::RichTextSelection]
|
878
855
|
# @return [void]
|
879
856
|
def set_selection(*args) end
|
880
857
|
alias_method :selection=, :set_selection
|
@@ -884,18 +861,18 @@ module Wx::RTC
|
|
884
861
|
def select_all; end
|
885
862
|
|
886
863
|
# Makes the control editable, or not.
|
887
|
-
# @param editable [
|
864
|
+
# @param editable [Boolean]
|
888
865
|
# @return [void]
|
889
866
|
def set_editable(editable) end
|
890
867
|
alias_method :editable=, :set_editable
|
891
868
|
|
892
869
|
# Returns true if there is a selection and the object containing the selection was the same as the current focus object.
|
893
|
-
# @return [
|
870
|
+
# @return [Boolean]
|
894
871
|
def has_selection; end
|
895
872
|
alias_method :has_selection?, :has_selection
|
896
873
|
|
897
874
|
# Returns true if there was a selection, whether or not the current focus object is the same as the selection's container object.
|
898
|
-
# @return [
|
875
|
+
# @return [Boolean]
|
899
876
|
def has_unfocused_selection; end
|
900
877
|
alias_method :has_unfocused_selection?, :has_unfocused_selection
|
901
878
|
|
@@ -903,36 +880,62 @@ module Wx::RTC
|
|
903
880
|
# Write a bitmap or image at the current insertion point.
|
904
881
|
# Supply an optional type to use for internal and file storage of the raw data.
|
905
882
|
# @param image [Wx::Image]
|
906
|
-
# @param bitmapType [BitmapType]
|
883
|
+
# @param bitmapType [Wx::BitmapType]
|
907
884
|
# @param textAttr [Wx::RTC::RichTextAttr]
|
908
|
-
# @return [
|
885
|
+
# @return [Boolean]
|
909
886
|
# @overload write_image(bitmap, bitmapType=Wx::BitmapType::BITMAP_TYPE_PNG, textAttr=(Wx::RichTextAttr.new()))
|
910
887
|
# @param bitmap [Wx::Bitmap]
|
911
|
-
# @param bitmapType [BitmapType]
|
888
|
+
# @param bitmapType [Wx::BitmapType]
|
912
889
|
# @param textAttr [Wx::RTC::RichTextAttr]
|
913
|
-
# @return [
|
890
|
+
# @return [Boolean]
|
914
891
|
# @overload write_image(filename, bitmapType, textAttr=(Wx::RichTextAttr.new()))
|
915
892
|
# Loads an image from a file and writes it at the current insertion point.
|
916
893
|
# @param filename [String]
|
917
|
-
# @param bitmapType [BitmapType]
|
894
|
+
# @param bitmapType [Wx::BitmapType]
|
918
895
|
# @param textAttr [Wx::RTC::RichTextAttr]
|
919
|
-
# @return [
|
896
|
+
# @return [Boolean]
|
920
897
|
# @overload write_image(imageBlock, textAttr=(Wx::RichTextAttr.new()))
|
921
898
|
# Writes an image block at the current insertion point.
|
922
|
-
# @param imageBlock [Wx::RichTextImageBlock]
|
899
|
+
# @param imageBlock [Wx::RTC::RichTextImageBlock]
|
923
900
|
# @param textAttr [Wx::RTC::RichTextAttr]
|
924
|
-
# @return [
|
901
|
+
# @return [Boolean]
|
925
902
|
def write_image(*args) end
|
926
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
|
+
|
927
930
|
# Inserts a new paragraph at the current insertion point.
|
928
931
|
#
|
929
932
|
# @see Wx::RTC::RichTextCtrl#line_break.
|
930
|
-
# @return [
|
933
|
+
# @return [Boolean]
|
931
934
|
def newline; end
|
932
935
|
|
933
936
|
# Inserts a line break at the current insertion point.
|
934
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.
|
935
|
-
# @return [
|
938
|
+
# @return [Boolean]
|
936
939
|
def line_break; end
|
937
940
|
|
938
941
|
# Sets the basic (overall) style.
|
@@ -950,76 +953,76 @@ module Wx::RTC
|
|
950
953
|
|
951
954
|
# Begins applying a style.
|
952
955
|
# @param style [Wx::RTC::RichTextAttr]
|
953
|
-
# @return [
|
956
|
+
# @return [Boolean]
|
954
957
|
def begin_style(style) end
|
955
958
|
|
956
959
|
# Ends the current style.
|
957
|
-
# @return [
|
960
|
+
# @return [Boolean]
|
958
961
|
def end_style; end
|
959
962
|
|
960
963
|
# Ends application of all styles in the current style stack.
|
961
|
-
# @return [
|
964
|
+
# @return [Boolean]
|
962
965
|
def end_all_styles; end
|
963
966
|
|
964
967
|
# Begins using bold.
|
965
|
-
# @return [
|
968
|
+
# @return [Boolean]
|
966
969
|
def begin_bold; end
|
967
970
|
|
968
971
|
# Ends using bold.
|
969
|
-
# @return [
|
972
|
+
# @return [Boolean]
|
970
973
|
def end_bold; end
|
971
974
|
|
972
975
|
# Begins using italic.
|
973
|
-
# @return [
|
976
|
+
# @return [Boolean]
|
974
977
|
def begin_italic; end
|
975
978
|
|
976
979
|
# Ends using italic.
|
977
|
-
# @return [
|
980
|
+
# @return [Boolean]
|
978
981
|
def end_italic; end
|
979
982
|
|
980
983
|
# Begins using underlining.
|
981
|
-
# @return [
|
984
|
+
# @return [Boolean]
|
982
985
|
def begin_underline; end
|
983
986
|
|
984
987
|
# End applying underlining.
|
985
|
-
# @return [
|
988
|
+
# @return [Boolean]
|
986
989
|
def end_underline; end
|
987
990
|
|
988
991
|
# Begins using the given point size.
|
989
992
|
# @param pointSize [Integer]
|
990
|
-
# @return [
|
993
|
+
# @return [Boolean]
|
991
994
|
def begin_font_size(pointSize) end
|
992
995
|
|
993
996
|
# Ends using a point size.
|
994
|
-
# @return [
|
997
|
+
# @return [Boolean]
|
995
998
|
def end_font_size; end
|
996
999
|
|
997
1000
|
# Begins using this font.
|
998
1001
|
# @param font [Wx::Font,Wx::FontInfo]
|
999
|
-
# @return [
|
1002
|
+
# @return [Boolean]
|
1000
1003
|
def begin_font(font) end
|
1001
1004
|
|
1002
1005
|
# Ends using a font.
|
1003
|
-
# @return [
|
1006
|
+
# @return [Boolean]
|
1004
1007
|
def end_font; end
|
1005
1008
|
|
1006
1009
|
# Begins using this colour.
|
1007
1010
|
# @param colour [Wx::Colour,String,Symbol]
|
1008
|
-
# @return [
|
1011
|
+
# @return [Boolean]
|
1009
1012
|
def begin_text_colour(colour) end
|
1010
1013
|
|
1011
1014
|
# Ends applying a text colour.
|
1012
|
-
# @return [
|
1015
|
+
# @return [Boolean]
|
1013
1016
|
def end_text_colour; end
|
1014
1017
|
|
1015
1018
|
# Begins using alignment.
|
1016
1019
|
# For alignment values, see {Wx::TextAttr}.
|
1017
|
-
# @param alignment [TextAttrAlignment]
|
1018
|
-
# @return [
|
1020
|
+
# @param alignment [Wx::TextAttrAlignment]
|
1021
|
+
# @return [Boolean]
|
1019
1022
|
def begin_alignment(alignment) end
|
1020
1023
|
|
1021
1024
|
# Ends alignment.
|
1022
|
-
# @return [
|
1025
|
+
# @return [Boolean]
|
1023
1026
|
def end_alignment; end
|
1024
1027
|
|
1025
1028
|
# Begins applying a left indent and subindent in tenths of a millimetre.
|
@@ -1027,41 +1030,41 @@ module Wx::RTC
|
|
1027
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.
|
1028
1031
|
# @param leftIndent [Integer] The distance between the margin and the bullet.
|
1029
1032
|
# @param leftSubIndent [Integer] The distance between the left edge of the bullet and the left edge of the actual paragraph.
|
1030
|
-
# @return [
|
1033
|
+
# @return [Boolean]
|
1031
1034
|
def begin_left_indent(leftIndent, leftSubIndent=0) end
|
1032
1035
|
|
1033
1036
|
# Ends left indent.
|
1034
|
-
# @return [
|
1037
|
+
# @return [Boolean]
|
1035
1038
|
def end_left_indent; end
|
1036
1039
|
|
1037
1040
|
# Begins a right indent, specified in tenths of a millimetre.
|
1038
1041
|
# @param rightIndent [Integer]
|
1039
|
-
# @return [
|
1042
|
+
# @return [Boolean]
|
1040
1043
|
def begin_right_indent(rightIndent) end
|
1041
1044
|
|
1042
1045
|
# Ends right indent.
|
1043
|
-
# @return [
|
1046
|
+
# @return [Boolean]
|
1044
1047
|
def end_right_indent; end
|
1045
1048
|
|
1046
1049
|
# Begins paragraph spacing; pass the before-paragraph and after-paragraph spacing in tenths of a millimetre.
|
1047
1050
|
# @param before [Integer]
|
1048
1051
|
# @param after [Integer]
|
1049
|
-
# @return [
|
1052
|
+
# @return [Boolean]
|
1050
1053
|
def begin_paragraph_spacing(before, after) end
|
1051
1054
|
|
1052
1055
|
# Ends paragraph spacing.
|
1053
|
-
# @return [
|
1056
|
+
# @return [Boolean]
|
1054
1057
|
def end_paragraph_spacing; end
|
1055
1058
|
|
1056
1059
|
# Begins applying line spacing.
|
1057
1060
|
# spacing is a multiple, where 10 means single-spacing, 15 means 1.5 spacing, and 20 means double spacing.
|
1058
1061
|
# The {Wx::TextAttrLineSpacing} constants are defined for convenience.
|
1059
1062
|
# @param lineSpacing [Integer]
|
1060
|
-
# @return [
|
1063
|
+
# @return [Boolean]
|
1061
1064
|
def begin_line_spacing(lineSpacing) end
|
1062
1065
|
|
1063
1066
|
# Ends line spacing.
|
1064
|
-
# @return [
|
1067
|
+
# @return [Boolean]
|
1065
1068
|
def end_line_spacing; end
|
1066
1069
|
|
1067
1070
|
# Begins a numbered bullet.
|
@@ -1072,11 +1075,11 @@ module Wx::RTC
|
|
1072
1075
|
# @param leftIndent [Integer]
|
1073
1076
|
# @param leftSubIndent [Integer]
|
1074
1077
|
# @param bulletStyle [Integer]
|
1075
|
-
# @return [
|
1078
|
+
# @return [Boolean]
|
1076
1079
|
def begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle=(Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_PERIOD)) end
|
1077
1080
|
|
1078
1081
|
# Ends application of a numbered bullet.
|
1079
|
-
# @return [
|
1082
|
+
# @return [Boolean]
|
1080
1083
|
def end_numbered_bullet; end
|
1081
1084
|
|
1082
1085
|
# Begins applying a symbol bullet, using a character from the current font.
|
@@ -1085,11 +1088,11 @@ module Wx::RTC
|
|
1085
1088
|
# @param leftIndent [Integer]
|
1086
1089
|
# @param leftSubIndent [Integer]
|
1087
1090
|
# @param bulletStyle [Integer]
|
1088
|
-
# @return [
|
1091
|
+
# @return [Boolean]
|
1089
1092
|
def begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_SYMBOL) end
|
1090
1093
|
|
1091
1094
|
# Ends applying a symbol bullet.
|
1092
|
-
# @return [
|
1095
|
+
# @return [Boolean]
|
1093
1096
|
def end_symbol_bullet; end
|
1094
1097
|
|
1095
1098
|
# Begins applying a symbol bullet.
|
@@ -1097,29 +1100,29 @@ module Wx::RTC
|
|
1097
1100
|
# @param leftIndent [Integer]
|
1098
1101
|
# @param leftSubIndent [Integer]
|
1099
1102
|
# @param bulletStyle [Integer]
|
1100
|
-
# @return [
|
1103
|
+
# @return [Boolean]
|
1101
1104
|
def begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD) end
|
1102
1105
|
|
1103
1106
|
# Begins applying a standard bullet.
|
1104
|
-
# @return [
|
1107
|
+
# @return [Boolean]
|
1105
1108
|
def end_standard_bullet; end
|
1106
1109
|
|
1107
1110
|
# Begins using the named character style.
|
1108
1111
|
# @param characterStyle [String]
|
1109
|
-
# @return [
|
1112
|
+
# @return [Boolean]
|
1110
1113
|
def begin_character_style(characterStyle) end
|
1111
1114
|
|
1112
1115
|
# Ends application of a named character style.
|
1113
|
-
# @return [
|
1116
|
+
# @return [Boolean]
|
1114
1117
|
def end_character_style; end
|
1115
1118
|
|
1116
1119
|
# Begins applying the named paragraph style.
|
1117
1120
|
# @param paragraphStyle [String]
|
1118
|
-
# @return [
|
1121
|
+
# @return [Boolean]
|
1119
1122
|
def begin_paragraph_style(paragraphStyle) end
|
1120
1123
|
|
1121
1124
|
# Ends application of a named paragraph style.
|
1122
|
-
# @return [
|
1125
|
+
# @return [Boolean]
|
1123
1126
|
def end_paragraph_style; end
|
1124
1127
|
|
1125
1128
|
# Begins using a specified list style.
|
@@ -1127,26 +1130,26 @@ module Wx::RTC
|
|
1127
1130
|
# @param listStyle [String]
|
1128
1131
|
# @param level [Integer]
|
1129
1132
|
# @param number [Integer]
|
1130
|
-
# @return [
|
1133
|
+
# @return [Boolean]
|
1131
1134
|
def begin_list_style(listStyle, level=1, number=1) end
|
1132
1135
|
|
1133
1136
|
# Ends using a specified list style.
|
1134
|
-
# @return [
|
1137
|
+
# @return [Boolean]
|
1135
1138
|
def end_list_style; end
|
1136
1139
|
|
1137
1140
|
# Begins applying {Wx::TextAttrFlags::TEXT_ATTR_URL} to the content.
|
1138
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.
|
1139
1142
|
# @param url [String]
|
1140
1143
|
# @param characterStyle [String]
|
1141
|
-
# @return [
|
1144
|
+
# @return [Boolean]
|
1142
1145
|
def begin_url(url, characterStyle=('')) end
|
1143
1146
|
|
1144
1147
|
# Ends applying a URL.
|
1145
|
-
# @return [
|
1148
|
+
# @return [Boolean]
|
1146
1149
|
def end_url; end
|
1147
1150
|
|
1148
1151
|
# Sets the default style to the style under the cursor.
|
1149
|
-
# @return [
|
1152
|
+
# @return [Boolean]
|
1150
1153
|
def set_default_style_to_cursor_style; end
|
1151
1154
|
|
1152
1155
|
# Cancels any selection.
|
@@ -1155,7 +1158,7 @@ module Wx::RTC
|
|
1155
1158
|
|
1156
1159
|
# Selects the word at the given character position.
|
1157
1160
|
# @param position [Integer]
|
1158
|
-
# @return [
|
1161
|
+
# @return [Boolean]
|
1159
1162
|
def select_word(position) end
|
1160
1163
|
|
1161
1164
|
# Returns the selection range in character positions.
|
@@ -1196,140 +1199,119 @@ module Wx::RTC
|
|
1196
1199
|
# @return [Range]
|
1197
1200
|
def add_image(image) end
|
1198
1201
|
|
1199
|
-
# Lays out the buffer, which must be done before certain operations, such as setting the caret position.
|
1200
|
-
# This function should not normally be required by the application.
|
1201
|
-
# @param onlyVisibleRect [true,false]
|
1202
|
-
# @return [true,false]
|
1203
|
-
def layout_content(onlyVisibleRect=false) end
|
1204
|
-
|
1205
|
-
# Implements layout.
|
1206
|
-
# An application may override this to perform operations before or after layout.
|
1207
|
-
# @param buffer [Wx::RTC::RichTextBuffer]
|
1208
|
-
# @param dc [Wx::DC]
|
1209
|
-
# @param context [Wx::RichTextDrawingContext]
|
1210
|
-
# @param rect [Wx::Rect]
|
1211
|
-
# @param parentRect [Wx::Rect]
|
1212
|
-
# @param flags [Integer]
|
1213
|
-
# @return [void]
|
1214
|
-
def do_layout_buffer(buffer, dc, context, rect, parentRect, flags) end
|
1215
|
-
|
1216
1202
|
# Move the caret to the given character position.
|
1217
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.
|
1218
1204
|
# @param pos [Integer]
|
1219
|
-
# @param showAtLineStart [
|
1220
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1221
|
-
# @return [
|
1205
|
+
# @param showAtLineStart [Boolean]
|
1206
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1207
|
+
# @return [Boolean]
|
1222
1208
|
def move_caret(pos, showAtLineStart=false, container=nil) end
|
1223
1209
|
|
1224
1210
|
# Moves right.
|
1225
1211
|
# @param noPositions [Integer]
|
1226
1212
|
# @param flags [Integer]
|
1227
|
-
# @return [
|
1213
|
+
# @return [Boolean]
|
1228
1214
|
def move_right(noPositions=1, flags=0) end
|
1229
1215
|
|
1230
1216
|
# Moves left.
|
1231
1217
|
# @param noPositions [Integer]
|
1232
1218
|
# @param flags [Integer]
|
1233
|
-
# @return [
|
1219
|
+
# @return [Boolean]
|
1234
1220
|
def move_left(noPositions=1, flags=0) end
|
1235
1221
|
|
1236
1222
|
# Moves to the start of the paragraph.
|
1237
1223
|
# @param noLines [Integer]
|
1238
1224
|
# @param flags [Integer]
|
1239
|
-
# @return [
|
1225
|
+
# @return [Boolean]
|
1240
1226
|
def move_up(noLines=1, flags=0) end
|
1241
1227
|
|
1242
1228
|
# Moves the caret down.
|
1243
1229
|
# @param noLines [Integer]
|
1244
1230
|
# @param flags [Integer]
|
1245
|
-
# @return [
|
1231
|
+
# @return [Boolean]
|
1246
1232
|
def move_down(noLines=1, flags=0) end
|
1247
1233
|
|
1248
1234
|
# Moves to the end of the line.
|
1249
1235
|
# @param flags [Integer]
|
1250
|
-
# @return [
|
1236
|
+
# @return [Boolean]
|
1251
1237
|
def move_to_line_end(flags=0) end
|
1252
1238
|
|
1253
1239
|
# Moves to the start of the line.
|
1254
1240
|
# @param flags [Integer]
|
1255
|
-
# @return [
|
1241
|
+
# @return [Boolean]
|
1256
1242
|
def move_to_line_start(flags=0) end
|
1257
1243
|
|
1258
1244
|
# Moves to the end of the paragraph.
|
1259
1245
|
# @param flags [Integer]
|
1260
|
-
# @return [
|
1246
|
+
# @return [Boolean]
|
1261
1247
|
def move_to_paragraph_end(flags=0) end
|
1262
1248
|
|
1263
1249
|
# Moves to the start of the paragraph.
|
1264
1250
|
# @param flags [Integer]
|
1265
|
-
# @return [
|
1251
|
+
# @return [Boolean]
|
1266
1252
|
def move_to_paragraph_start(flags=0) end
|
1267
1253
|
|
1268
1254
|
# Moves to the start of the buffer.
|
1269
1255
|
# @param flags [Integer]
|
1270
|
-
# @return [
|
1256
|
+
# @return [Boolean]
|
1271
1257
|
def move_home(flags=0) end
|
1272
1258
|
|
1273
1259
|
# Moves to the end of the buffer.
|
1274
1260
|
# @param flags [Integer]
|
1275
|
-
# @return [
|
1261
|
+
# @return [Boolean]
|
1276
1262
|
def move_end(flags=0) end
|
1277
1263
|
|
1278
1264
|
# Moves one or more pages up.
|
1279
1265
|
# @param noPages [Integer]
|
1280
1266
|
# @param flags [Integer]
|
1281
|
-
# @return [
|
1267
|
+
# @return [Boolean]
|
1282
1268
|
def page_up(noPages=1, flags=0) end
|
1283
1269
|
|
1284
1270
|
# Moves one or more pages down.
|
1285
1271
|
# @param noPages [Integer]
|
1286
1272
|
# @param flags [Integer]
|
1287
|
-
# @return [
|
1273
|
+
# @return [Boolean]
|
1288
1274
|
def page_down(noPages=1, flags=0) end
|
1289
1275
|
|
1290
1276
|
# Moves a number of words to the left.
|
1291
1277
|
# @param noPages [Integer]
|
1292
1278
|
# @param flags [Integer]
|
1293
|
-
# @return [
|
1279
|
+
# @return [Boolean]
|
1294
1280
|
def word_left(noPages=1, flags=0) end
|
1295
1281
|
|
1296
1282
|
# Move a number of words to the right.
|
1297
1283
|
# @param noPages [Integer]
|
1298
1284
|
# @param flags [Integer]
|
1299
|
-
# @return [
|
1285
|
+
# @return [Boolean]
|
1300
1286
|
def word_right(noPages=1, flags=0) end
|
1301
1287
|
|
1302
|
-
# @
|
1303
|
-
|
1304
|
-
# @return [Wx::RTC::RichTextBuffer]
|
1305
|
-
# @overload get_buffer()
|
1306
|
-
# @return [Wx::RTC::RichTextBuffer]
|
1307
|
-
def get_buffer(*args) end
|
1288
|
+
# @return [Wx::RTC::RichTextBuffer]
|
1289
|
+
def get_buffer; end
|
1308
1290
|
alias_method :buffer, :get_buffer
|
1309
1291
|
|
1310
1292
|
# Starts batching undo history for commands.
|
1311
1293
|
# @param cmdName [String]
|
1312
|
-
# @return [
|
1294
|
+
# @return [Boolean]
|
1313
1295
|
def begin_batch_undo(cmdName) end
|
1314
1296
|
|
1315
1297
|
# Ends batching undo command history.
|
1316
|
-
# @return [
|
1298
|
+
# @return [Boolean]
|
1317
1299
|
def end_batch_undo; end
|
1318
1300
|
|
1319
1301
|
# Returns true if undo commands are being batched.
|
1320
|
-
# @return [
|
1302
|
+
# @return [Boolean]
|
1321
1303
|
def batching_undo; end
|
1322
1304
|
|
1323
1305
|
# Starts suppressing undo history for commands.
|
1324
|
-
# @return [
|
1306
|
+
# @return [Boolean]
|
1325
1307
|
def begin_suppress_undo; end
|
1326
1308
|
|
1327
1309
|
# Ends suppressing undo command history.
|
1328
|
-
# @return [
|
1310
|
+
# @return [Boolean]
|
1329
1311
|
def end_suppress_undo; end
|
1330
1312
|
|
1331
1313
|
# Returns true if undo history suppression is on.
|
1332
|
-
# @return [
|
1314
|
+
# @return [Boolean]
|
1333
1315
|
def suppressing_undo; end
|
1334
1316
|
|
1335
1317
|
# Test if this whole range has character attributes of the specified kind.
|
@@ -1337,7 +1319,7 @@ module Wx::RTC
|
|
1337
1319
|
# You can use this to implement, for example, bold button updating. style must have flags indicating which attributes are of interest.
|
1338
1320
|
# @param range [Range]
|
1339
1321
|
# @param style [Wx::RTC::RichTextAttr]
|
1340
|
-
# @return [
|
1322
|
+
# @return [Boolean]
|
1341
1323
|
def has_character_attributes(range, style) end
|
1342
1324
|
alias_method :has_character_attributes?, :has_character_attributes
|
1343
1325
|
|
@@ -1345,159 +1327,149 @@ module Wx::RTC
|
|
1345
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.
|
1346
1328
|
# @param range [Range]
|
1347
1329
|
# @param style [Wx::RTC::RichTextAttr]
|
1348
|
-
# @return [
|
1330
|
+
# @return [Boolean]
|
1349
1331
|
def has_paragraph_attributes(range, style) end
|
1350
1332
|
alias_method :has_paragraph_attributes?, :has_paragraph_attributes
|
1351
1333
|
|
1352
1334
|
# Returns true if all of the selection, or the content at the caret position, is bold.
|
1353
|
-
# @return [
|
1335
|
+
# @return [Boolean]
|
1354
1336
|
def is_selection_bold; end
|
1355
1337
|
alias_method :selection_bold?, :is_selection_bold
|
1356
1338
|
|
1357
1339
|
# Returns true if all of the selection, or the content at the caret position, is italic.
|
1358
|
-
# @return [
|
1340
|
+
# @return [Boolean]
|
1359
1341
|
def is_selection_italics; end
|
1360
1342
|
alias_method :selection_italics?, :is_selection_italics
|
1361
1343
|
|
1362
1344
|
# Returns true if all of the selection, or the content at the caret position, is underlined.
|
1363
|
-
# @return [
|
1345
|
+
# @return [Boolean]
|
1364
1346
|
def is_selection_underlined; end
|
1365
1347
|
alias_method :selection_underlined?, :is_selection_underlined
|
1366
1348
|
|
1367
1349
|
# Returns true if all of the selection, or the content at the current caret position, has the supplied {Wx::TextAttrEffects} flag(s).
|
1368
1350
|
# @param flag [Integer]
|
1369
|
-
# @return [
|
1351
|
+
# @return [Boolean]
|
1370
1352
|
def does_selection_have_text_effect_flag(flag) end
|
1371
1353
|
|
1372
1354
|
# Returns true if all of the selection is aligned according to the specified flag.
|
1373
|
-
# @param alignment [TextAttrAlignment]
|
1374
|
-
# @return [
|
1355
|
+
# @param alignment [Wx::TextAttrAlignment]
|
1356
|
+
# @return [Boolean]
|
1375
1357
|
def is_selection_aligned(alignment) end
|
1376
1358
|
alias_method :selection_aligned?, :is_selection_aligned
|
1377
1359
|
|
1378
1360
|
# Apples bold to the selection or the default style (undoable).
|
1379
|
-
# @return [
|
1361
|
+
# @return [Boolean]
|
1380
1362
|
def apply_bold_to_selection; end
|
1381
1363
|
|
1382
1364
|
# Applies italic to the selection or the default style (undoable).
|
1383
|
-
# @return [
|
1365
|
+
# @return [Boolean]
|
1384
1366
|
def apply_italic_to_selection; end
|
1385
1367
|
|
1386
1368
|
# Applies underline to the selection or the default style (undoable).
|
1387
|
-
# @return [
|
1369
|
+
# @return [Boolean]
|
1388
1370
|
def apply_underline_to_selection; end
|
1389
1371
|
|
1390
1372
|
# Applies one or more {Wx::TextAttrEffects} flags to the selection (undoable).
|
1391
1373
|
# If there is no selection, it is applied to the default style.
|
1392
1374
|
# @param flags [Integer]
|
1393
|
-
# @return [
|
1375
|
+
# @return [Boolean]
|
1394
1376
|
def apply_text_effect_to_selection(flags) end
|
1395
1377
|
|
1396
1378
|
# Applies the given alignment to the selection or the default style (undoable).
|
1397
1379
|
# For alignment values, see {Wx::TextAttr}.
|
1398
|
-
# @param alignment [TextAttrAlignment]
|
1399
|
-
# @return [
|
1380
|
+
# @param alignment [Wx::TextAttrAlignment]
|
1381
|
+
# @return [Boolean]
|
1400
1382
|
def apply_alignment_to_selection(alignment) end
|
1401
1383
|
|
1402
1384
|
# Applies the style sheet to the buffer, matching paragraph styles in the sheet against named styles in the buffer.
|
1403
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.
|
1404
|
-
# @param def_ [Wx::RichTextStyleDefinition]
|
1405
|
-
# @return [
|
1386
|
+
# @param def_ [Wx::RTC::RichTextStyleDefinition]
|
1387
|
+
# @return [Boolean]
|
1406
1388
|
def apply_style(def_) end
|
1407
1389
|
|
1408
1390
|
# Sets the style sheet associated with the control.
|
1409
1391
|
# A style sheet allows named character and paragraph styles to be applied.
|
1410
|
-
# @param styleSheet [Wx::RichTextStyleSheet]
|
1392
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1411
1393
|
# @return [void]
|
1412
1394
|
def set_style_sheet(styleSheet) end
|
1413
1395
|
alias_method :style_sheet=, :set_style_sheet
|
1414
1396
|
|
1415
1397
|
# Returns the style sheet associated with the control, if any.
|
1416
1398
|
# A style sheet allows named character and paragraph styles to be applied.
|
1417
|
-
# @return [Wx::RichTextStyleSheet]
|
1399
|
+
# @return [Wx::RTC::RichTextStyleSheet]
|
1418
1400
|
def get_style_sheet; end
|
1419
1401
|
alias_method :style_sheet, :get_style_sheet
|
1420
1402
|
|
1421
1403
|
# Push the style sheet to top of stack.
|
1422
|
-
# @param styleSheet [Wx::RichTextStyleSheet]
|
1423
|
-
# @return [
|
1404
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1405
|
+
# @return [Boolean]
|
1424
1406
|
def push_style_sheet(styleSheet) end
|
1425
1407
|
|
1426
1408
|
# Pops the style sheet from top of stack.
|
1427
|
-
# @return [Wx::RichTextStyleSheet]
|
1409
|
+
# @return [Wx::RTC::RichTextStyleSheet]
|
1428
1410
|
def pop_style_sheet; end
|
1429
1411
|
|
1430
1412
|
# Applies the style sheet to the buffer, for example if the styles have changed.
|
1431
|
-
# @param styleSheet [Wx::RichTextStyleSheet]
|
1432
|
-
# @return [
|
1413
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1414
|
+
# @return [Boolean]
|
1433
1415
|
def apply_style_sheet(styleSheet=nil) end
|
1434
1416
|
|
1435
1417
|
# Shows the given context menu, optionally adding appropriate property-editing commands for the current position in the object hierarchy.
|
1436
1418
|
# @param menu [Wx::Menu]
|
1437
1419
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
1438
|
-
# @param addPropertyCommands [
|
1439
|
-
# @return [
|
1420
|
+
# @param addPropertyCommands [Boolean]
|
1421
|
+
# @return [Boolean]
|
1440
1422
|
def show_context_menu(menu, pt, addPropertyCommands) end
|
1441
1423
|
|
1442
1424
|
# Prepares the context menu, optionally adding appropriate property-editing commands.
|
1443
1425
|
# Returns the number of property commands added.
|
1444
1426
|
# @param menu [Wx::Menu]
|
1445
1427
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
1446
|
-
# @param addPropertyCommands [
|
1428
|
+
# @param addPropertyCommands [Boolean]
|
1447
1429
|
# @return [Integer]
|
1448
1430
|
def prepare_context_menu(menu, pt, addPropertyCommands) end
|
1449
1431
|
|
1450
1432
|
# Returns true if we can edit the object's properties via a GUI.
|
1451
|
-
# @param obj [Wx::RichTextObject]
|
1452
|
-
# @return [
|
1433
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1434
|
+
# @return [Boolean]
|
1453
1435
|
def can_edit_properties(obj) end
|
1454
1436
|
alias_method :can_edit_properties?, :can_edit_properties
|
1455
1437
|
|
1456
1438
|
# Edits the object's properties via a GUI.
|
1457
|
-
# @param obj [Wx::RichTextObject]
|
1439
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1458
1440
|
# @param parent [Wx::Window]
|
1459
|
-
# @return [
|
1441
|
+
# @return [Boolean]
|
1460
1442
|
def edit_properties(obj, parent) end
|
1461
1443
|
|
1462
1444
|
# Gets the object's properties menu label.
|
1463
|
-
# @param obj [Wx::RichTextObject]
|
1445
|
+
# @param obj [Wx::RTC::RichTextObject]
|
1464
1446
|
# @return [String]
|
1465
1447
|
def get_properties_menu_label(obj) end
|
1466
1448
|
alias_method :properties_menu_label, :get_properties_menu_label
|
1467
1449
|
|
1468
1450
|
# Prepares the content just before insertion (or after buffer reset).
|
1469
1451
|
# Called by the same function in {Wx::RTC::RichTextBuffer}. Currently is only called if undo mode is on.
|
1470
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1452
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1471
1453
|
# @return [void]
|
1472
1454
|
def prepare_content(container) end
|
1473
1455
|
|
1474
1456
|
# Can we delete this range? Sends an event to the control.
|
1475
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1457
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1476
1458
|
# @param range [Range]
|
1477
|
-
# @return [
|
1459
|
+
# @return [Boolean]
|
1478
1460
|
def can_delete_range(container, range) end
|
1479
1461
|
alias_method :can_delete_range?, :can_delete_range
|
1480
1462
|
|
1481
1463
|
# Can we insert content at this position? Sends an event to the control.
|
1482
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1464
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1483
1465
|
# @param pos [Integer]
|
1484
|
-
# @return [
|
1466
|
+
# @return [Boolean]
|
1485
1467
|
def can_insert_content(container, pos) end
|
1486
1468
|
alias_method :can_insert_content?, :can_insert_content
|
1487
1469
|
|
1488
|
-
# Enable or disable the vertical scrollbar.
|
1489
|
-
# @param enable [true,false]
|
1490
|
-
# @return [void]
|
1491
|
-
def enable_vertical_scrollbar(enable) end
|
1492
|
-
|
1493
|
-
# Returns true if the vertical scrollbar is enabled.
|
1494
|
-
# @return [true,false]
|
1495
|
-
def get_vertical_scrollbar_enabled; end
|
1496
|
-
alias_method :vertical_scrollbar_enabled, :get_vertical_scrollbar_enabled
|
1497
|
-
|
1498
1470
|
# Sets the scale factor for displaying fonts, for example for more comfortable editing.
|
1499
1471
|
# @param fontScale [Float]
|
1500
|
-
# @param refresh [
|
1472
|
+
# @param refresh [Boolean]
|
1501
1473
|
# @return [void]
|
1502
1474
|
def set_font_scale(fontScale, refresh=false) end
|
1503
1475
|
alias_method :font_scale=, :set_font_scale
|
@@ -1510,7 +1482,7 @@ module Wx::RTC
|
|
1510
1482
|
# Sets the scale factor for displaying certain dimensions such as indentation and inter-paragraph spacing.
|
1511
1483
|
# This can be useful when editing in a small control where you still want legible text, but a minimum of wasted white space.
|
1512
1484
|
# @param dimScale [Float]
|
1513
|
-
# @param refresh [
|
1485
|
+
# @param refresh [Boolean]
|
1514
1486
|
# @return [void]
|
1515
1487
|
def set_dimension_scale(dimScale, refresh=false) end
|
1516
1488
|
alias_method :dimension_scale=, :set_dimension_scale
|
@@ -1522,7 +1494,7 @@ module Wx::RTC
|
|
1522
1494
|
|
1523
1495
|
# Sets an overall scale factor for displaying and editing the content.
|
1524
1496
|
# @param scale [Float]
|
1525
|
-
# @param refresh [
|
1497
|
+
# @param refresh [Boolean]
|
1526
1498
|
# @return [void]
|
1527
1499
|
def set_scale(scale, refresh=false) end
|
1528
1500
|
alias_method :scale=, :set_scale
|
@@ -1570,13 +1542,13 @@ module Wx::RTC
|
|
1570
1542
|
|
1571
1543
|
# Returns true if this control can use virtual attributes and virtual text.
|
1572
1544
|
# The default is false.
|
1573
|
-
# @return [
|
1545
|
+
# @return [Boolean]
|
1574
1546
|
def get_virtual_attributes_enabled; end
|
1575
1547
|
alias_method :virtual_attributes_enabled, :get_virtual_attributes_enabled
|
1576
1548
|
|
1577
1549
|
# Pass true to let the control use virtual attributes.
|
1578
1550
|
# The default is false.
|
1579
|
-
# @param b [
|
1551
|
+
# @param b [Boolean]
|
1580
1552
|
# @return [void]
|
1581
1553
|
def enable_virtual_attributes(b) end
|
1582
1554
|
|
@@ -1585,190 +1557,20 @@ module Wx::RTC
|
|
1585
1557
|
# @return [void]
|
1586
1558
|
def command(event) end
|
1587
1559
|
|
1588
|
-
# Loads the first dropped file.
|
1589
|
-
# @param event [Wx::DropFilesEvent]
|
1590
|
-
# @return [void]
|
1591
|
-
def on_drop_files(event) end
|
1592
|
-
|
1593
|
-
# @param event [Wx::MouseCaptureLostEvent]
|
1594
|
-
# @return [void]
|
1595
|
-
def on_capture_lost(event) end
|
1596
|
-
|
1597
|
-
# @param event [Wx::SysColourChangedEvent]
|
1598
|
-
# @return [void]
|
1599
|
-
def on_sys_colour_changed(event) end
|
1600
|
-
|
1601
|
-
# Standard handler for the {Wx::StandardID::ID_CUT} command.
|
1602
|
-
# @param event [Wx::CommandEvent]
|
1603
|
-
# @return [void]
|
1604
|
-
def on_cut(event) end
|
1605
|
-
|
1606
|
-
# Standard handler for the {Wx::StandardID::ID_COPY} command.
|
1607
|
-
# @param event [Wx::CommandEvent]
|
1608
|
-
# @return [void]
|
1609
|
-
def on_copy(event) end
|
1610
|
-
|
1611
|
-
# Standard handler for the {Wx::StandardID::ID_PASTE} command.
|
1612
|
-
# @param event [Wx::CommandEvent]
|
1613
|
-
# @return [void]
|
1614
|
-
def on_paste(event) end
|
1615
|
-
|
1616
|
-
# Standard handler for the {Wx::StandardID::ID_UNDO} command.
|
1617
|
-
# @param event [Wx::CommandEvent]
|
1618
|
-
# @return [void]
|
1619
|
-
def on_undo(event) end
|
1620
|
-
|
1621
|
-
# Standard handler for the {Wx::StandardID::ID_REDO} command.
|
1622
|
-
# @param event [Wx::CommandEvent]
|
1623
|
-
# @return [void]
|
1624
|
-
def on_redo(event) end
|
1625
|
-
|
1626
|
-
# Standard handler for the {Wx::StandardID::ID_SELECTALL} command.
|
1627
|
-
# @param event [Wx::CommandEvent]
|
1628
|
-
# @return [void]
|
1629
|
-
def on_select_all(event) end
|
1630
|
-
|
1631
|
-
# Standard handler for property commands.
|
1632
|
-
# @param event [Wx::CommandEvent]
|
1633
|
-
# @return [void]
|
1634
|
-
def on_properties(event) end
|
1635
|
-
|
1636
|
-
# Standard handler for the {Wx::StandardID::ID_CLEAR} command.
|
1637
|
-
# @param event [Wx::CommandEvent]
|
1638
|
-
# @return [void]
|
1639
|
-
def on_clear(event) end
|
1640
|
-
|
1641
|
-
# Standard update handler for the {Wx::StandardID::ID_CUT} command.
|
1642
|
-
# @param event [Wx::UpdateUIEvent]
|
1643
|
-
# @return [void]
|
1644
|
-
def on_update_cut(event) end
|
1645
|
-
|
1646
|
-
# Standard update handler for the {Wx::StandardID::ID_COPY} command.
|
1647
|
-
# @param event [Wx::UpdateUIEvent]
|
1648
|
-
# @return [void]
|
1649
|
-
def on_update_copy(event) end
|
1650
|
-
|
1651
|
-
# Standard update handler for the {Wx::StandardID::ID_PASTE} command.
|
1652
|
-
# @param event [Wx::UpdateUIEvent]
|
1653
|
-
# @return [void]
|
1654
|
-
def on_update_paste(event) end
|
1655
|
-
|
1656
|
-
# Standard update handler for the {Wx::StandardID::ID_UNDO} command.
|
1657
|
-
# @param event [Wx::UpdateUIEvent]
|
1658
|
-
# @return [void]
|
1659
|
-
def on_update_undo(event) end
|
1660
|
-
|
1661
|
-
# Standard update handler for the {Wx::StandardID::ID_REDO} command.
|
1662
|
-
# @param event [Wx::UpdateUIEvent]
|
1663
|
-
# @return [void]
|
1664
|
-
def on_update_redo(event) end
|
1665
|
-
|
1666
|
-
# Standard update handler for the {Wx::StandardID::ID_SELECTALL} command.
|
1667
|
-
# @param event [Wx::UpdateUIEvent]
|
1668
|
-
# @return [void]
|
1669
|
-
def on_update_select_all(event) end
|
1670
|
-
|
1671
|
-
# Standard update handler for property commands.
|
1672
|
-
# @param event [Wx::UpdateUIEvent]
|
1673
|
-
# @return [void]
|
1674
|
-
def on_update_properties(event) end
|
1675
|
-
|
1676
|
-
# Standard update handler for the {Wx::StandardID::ID_CLEAR} command.
|
1677
|
-
# @param event [Wx::UpdateUIEvent]
|
1678
|
-
# @return [void]
|
1679
|
-
def on_update_clear(event) end
|
1680
|
-
|
1681
|
-
# Shows a standard context menu with undo, redo, cut, copy, paste, clear, and select all commands.
|
1682
|
-
# @param event [Wx::ContextMenuEvent]
|
1683
|
-
# @return [void]
|
1684
|
-
def on_context_menu(event) end
|
1685
|
-
|
1686
|
-
# @param event [Wx::PaintEvent]
|
1687
|
-
# @return [void]
|
1688
|
-
def on_paint(event) end
|
1689
|
-
|
1690
|
-
# @param event [Wx::EraseEvent]
|
1691
|
-
# @return [void]
|
1692
|
-
def on_erase_background(event) end
|
1693
|
-
|
1694
|
-
# @param event [Wx::MouseEvent]
|
1695
|
-
# @return [void]
|
1696
|
-
def on_left_click(event) end
|
1697
|
-
|
1698
|
-
# @param event [Wx::MouseEvent]
|
1699
|
-
# @return [void]
|
1700
|
-
def on_left_up(event) end
|
1701
|
-
|
1702
|
-
# @param event [Wx::MouseEvent]
|
1703
|
-
# @return [void]
|
1704
|
-
def on_move_mouse(event) end
|
1705
|
-
|
1706
|
-
# @param event [Wx::MouseEvent]
|
1707
|
-
# @return [void]
|
1708
|
-
def on_left_d_click(event) end
|
1709
|
-
|
1710
|
-
# @param event [Wx::MouseEvent]
|
1711
|
-
# @return [void]
|
1712
|
-
def on_middle_click(event) end
|
1713
|
-
|
1714
|
-
# @param event [Wx::MouseEvent]
|
1715
|
-
# @return [void]
|
1716
|
-
def on_right_click(event) end
|
1717
|
-
|
1718
|
-
# @param event [Wx::KeyEvent]
|
1719
|
-
# @return [void]
|
1720
|
-
def on_char(event) end
|
1721
|
-
|
1722
|
-
# @param event [Wx::SizeEvent]
|
1723
|
-
# @return [void]
|
1724
|
-
def on_size(event) end
|
1725
|
-
|
1726
|
-
# @param event [Wx::FocusEvent]
|
1727
|
-
# @return [void]
|
1728
|
-
def on_set_focus(event) end
|
1729
|
-
|
1730
|
-
# @param event [Wx::FocusEvent]
|
1731
|
-
# @return [void]
|
1732
|
-
def on_kill_focus(event) end
|
1733
|
-
|
1734
|
-
# @param event [Wx::IdleEvent]
|
1735
|
-
# @return [void]
|
1736
|
-
def on_idle(event) end
|
1737
|
-
|
1738
|
-
# @param event [Wx::ScrollWinEvent]
|
1739
|
-
# @return [void]
|
1740
|
-
def on_scroll(event) end
|
1741
|
-
|
1742
1560
|
# Sets the font, and also the basic and default attributes (see {Wx::RTC::RichTextCtrl#set_default_style}).
|
1743
1561
|
# @param font [Wx::Font,Wx::FontInfo]
|
1744
|
-
# @return [
|
1562
|
+
# @return [Boolean]
|
1745
1563
|
def set_font(font) end
|
1746
1564
|
alias_method :font=, :set_font
|
1747
1565
|
|
1748
|
-
# A helper function setting up scrollbars, for example after a resize.
|
1749
|
-
# @param atTop [true,false]
|
1750
|
-
# @return [void]
|
1751
|
-
def setup_scrollbars(atTop=false) end
|
1752
|
-
|
1753
|
-
# Helper function implementing keyboard navigation.
|
1754
|
-
# @param keyCode [Integer]
|
1755
|
-
# @param flags [Integer]
|
1756
|
-
# @return [true,false]
|
1757
|
-
def keyboard_navigate(keyCode, flags) end
|
1758
|
-
|
1759
|
-
# @param value [String]
|
1760
|
-
# @param flags [Integer]
|
1761
|
-
# @return [void]
|
1762
|
-
def do_write_text(value, flags=0) end
|
1763
|
-
|
1764
1566
|
# Return true from here to allow the colours of this window to be changed by {Wx::RTC::RichTextCtrl#inherit_attributes}.
|
1765
1567
|
# Returning false forbids inheriting them from the parent window.
|
1766
1568
|
# The base class version returns false, but this method is overridden in {Wx::Control} where it returns true.
|
1767
|
-
# @return [
|
1569
|
+
# @return [Boolean]
|
1768
1570
|
def should_inherit_colours; end
|
1769
1571
|
|
1770
1572
|
# Internal function to position the visible caret according to the current caret position.
|
1771
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1573
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1772
1574
|
# @return [void]
|
1773
1575
|
def position_caret(container=nil) end
|
1774
1576
|
|
@@ -1777,39 +1579,32 @@ module Wx::RTC
|
|
1777
1579
|
# @param oldPosition [Integer]
|
1778
1580
|
# @param newPosition [Integer]
|
1779
1581
|
# @param flags [Integer]
|
1780
|
-
# @return [
|
1582
|
+
# @return [Boolean]
|
1781
1583
|
def extend_selection(oldPosition, newPosition, flags) end
|
1782
1584
|
|
1783
1585
|
# Extends a table selection in the given direction.
|
1784
|
-
# @param table [Wx::RichTextTable]
|
1586
|
+
# @param table [Wx::RTC::RichTextTable]
|
1785
1587
|
# @param noRowSteps [Integer]
|
1786
1588
|
# @param noColSteps [Integer]
|
1787
|
-
# @return [
|
1589
|
+
# @return [Boolean]
|
1788
1590
|
def extend_cell_selection(table, noRowSteps, noColSteps) end
|
1789
1591
|
|
1790
1592
|
# Starts selecting table cells.
|
1791
|
-
# @param table [Wx::RichTextTable]
|
1792
|
-
# @param newCell [Wx::RichTextParagraphLayoutBox]
|
1793
|
-
# @return [
|
1593
|
+
# @param table [Wx::RTC::RichTextTable]
|
1594
|
+
# @param newCell [Wx::RTC::RichTextParagraphLayoutBox]
|
1595
|
+
# @return [Boolean]
|
1794
1596
|
def start_cell_selection(table, newCell) end
|
1795
1597
|
|
1796
|
-
# Scrolls position into view.
|
1797
|
-
# This function takes a caret position.
|
1798
|
-
# @param position [Integer]
|
1799
|
-
# @param keyCode [Integer]
|
1800
|
-
# @return [true,false]
|
1801
|
-
def scroll_into_view(position, keyCode) end
|
1802
|
-
|
1803
1598
|
# Refreshes the area affected by a selection change.
|
1804
|
-
# @param oldSelection [Wx::RichTextSelection]
|
1805
|
-
# @param newSelection [Wx::RichTextSelection]
|
1806
|
-
# @return [
|
1599
|
+
# @param oldSelection [Wx::RTC::RichTextSelection]
|
1600
|
+
# @param newSelection [Wx::RTC::RichTextSelection]
|
1601
|
+
# @return [Boolean]
|
1807
1602
|
def refresh_for_selection_change(oldSelection, newSelection) end
|
1808
1603
|
|
1809
1604
|
# Sets the caret position.
|
1810
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.
|
1811
1606
|
# @param position [Integer]
|
1812
|
-
# @param showAtLineStart [
|
1607
|
+
# @param showAtLineStart [Boolean]
|
1813
1608
|
# @return [void]
|
1814
1609
|
def set_caret_position(position, showAtLineStart=false) end
|
1815
1610
|
alias_method :caret_position=, :set_caret_position
|
@@ -1839,26 +1634,26 @@ module Wx::RTC
|
|
1839
1634
|
# If container is null, the current focus object will be used.
|
1840
1635
|
# @param position [Integer]
|
1841
1636
|
# @param rect [Wx::Rect]
|
1842
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1843
|
-
# @return [
|
1637
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1638
|
+
# @return [Boolean]
|
1844
1639
|
def get_caret_position_for_index(position, rect, container=nil) end
|
1845
1640
|
alias_method :caret_position_for_index, :get_caret_position_for_index
|
1846
1641
|
|
1847
1642
|
# Internal helper function returning the line for the visible caret position.
|
1848
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.
|
1849
1644
|
# @param caretPosition [Integer]
|
1850
|
-
# @return [Wx::RichTextLine]
|
1645
|
+
# @return [Wx::RTC::RichTextLine]
|
1851
1646
|
def get_visible_line_for_caret_position(caretPosition) end
|
1852
1647
|
alias_method :visible_line_for_caret_position, :get_visible_line_for_caret_position
|
1853
1648
|
|
1854
1649
|
# Gets the command processor associated with the control's buffer.
|
1855
|
-
# @return [Wx::CommandProcessor]
|
1650
|
+
# @return [Wx::RTC::CommandProcessor]
|
1856
1651
|
def get_command_processor; end
|
1857
1652
|
alias_method :command_processor, :get_command_processor
|
1858
1653
|
|
1859
1654
|
# Deletes content if there is a selection, e.g.
|
1860
1655
|
# when pressing a key. Returns the new caret position in newPos, or leaves it if there was no action. This is undoable.
|
1861
|
-
# @return [
|
1656
|
+
# @return [Integer,nil]
|
1862
1657
|
def delete_selected_content; end
|
1863
1658
|
|
1864
1659
|
# Transforms logical (unscrolled) position to physical window position.
|
@@ -1881,7 +1676,7 @@ module Wx::RTC
|
|
1881
1676
|
|
1882
1677
|
# Returns true if the given position is visible on the screen.
|
1883
1678
|
# @param pos [Integer]
|
1884
|
-
# @return [
|
1679
|
+
# @return [Boolean]
|
1885
1680
|
def is_position_visible(pos) end
|
1886
1681
|
alias_method :position_visible?, :is_position_visible
|
1887
1682
|
|
@@ -1891,43 +1686,43 @@ module Wx::RTC
|
|
1891
1686
|
alias_method :first_visible_position, :get_first_visible_position
|
1892
1687
|
|
1893
1688
|
# Enable or disable images.
|
1894
|
-
# @param b [
|
1689
|
+
# @param b [Boolean]
|
1895
1690
|
# @return [void]
|
1896
1691
|
def enable_images(b) end
|
1897
1692
|
|
1898
1693
|
# Returns true if images are enabled.
|
1899
|
-
# @return [
|
1694
|
+
# @return [Boolean]
|
1900
1695
|
def get_images_enabled; end
|
1901
1696
|
alias_method :images_enabled, :get_images_enabled
|
1902
1697
|
|
1903
1698
|
# Enable or disable delayed image loading.
|
1904
|
-
# @param b [
|
1699
|
+
# @param b [Boolean]
|
1905
1700
|
# @return [void]
|
1906
1701
|
def enable_delayed_image_loading(b) end
|
1907
1702
|
|
1908
1703
|
# Returns true if delayed image loading is enabled.
|
1909
|
-
# @return [
|
1704
|
+
# @return [Boolean]
|
1910
1705
|
def get_delayed_image_loading; end
|
1911
1706
|
alias_method :delayed_image_loading, :get_delayed_image_loading
|
1912
1707
|
|
1913
1708
|
# Gets the flag indicating that delayed image processing is required.
|
1914
|
-
# @return [
|
1709
|
+
# @return [Boolean]
|
1915
1710
|
def get_delayed_image_processing_required; end
|
1916
1711
|
alias_method :delayed_image_processing_required, :get_delayed_image_processing_required
|
1917
1712
|
|
1918
1713
|
# Sets the flag indicating that delayed image processing is required.
|
1919
|
-
# @param b [
|
1714
|
+
# @param b [Boolean]
|
1920
1715
|
# @return [void]
|
1921
1716
|
def set_delayed_image_processing_required(b) end
|
1922
1717
|
alias_method :delayed_image_processing_required=, :set_delayed_image_processing_required
|
1923
1718
|
|
1924
1719
|
# Returns the last time delayed image processing was performed.
|
1925
|
-
# @return [
|
1720
|
+
# @return [Integer]
|
1926
1721
|
def get_delayed_image_processing_time; end
|
1927
1722
|
alias_method :delayed_image_processing_time, :get_delayed_image_processing_time
|
1928
1723
|
|
1929
1724
|
# Sets the last time delayed image processing was performed.
|
1930
|
-
# @param t [
|
1725
|
+
# @param t [Integer]
|
1931
1726
|
# @return [void]
|
1932
1727
|
def set_delayed_image_processing_time(t) end
|
1933
1728
|
alias_method :delayed_image_processing_time=, :set_delayed_image_processing_time
|
@@ -1947,7 +1742,7 @@ module Wx::RTC
|
|
1947
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.
|
1948
1743
|
# Below is an example of code that uses this function to determine whether the UI should show that the current style is bold.
|
1949
1744
|
# @see Wx::RTC::RichTextCtrl#set_and_show_default_style.
|
1950
|
-
# @return [
|
1745
|
+
# @return [Boolean]
|
1951
1746
|
def is_default_style_showing; end
|
1952
1747
|
alias_method :default_style_showing?, :is_default_style_showing
|
1953
1748
|
|
@@ -1978,52 +1773,46 @@ module Wx::RTC
|
|
1978
1773
|
# Processes the back key.
|
1979
1774
|
# @param event [Wx::KeyEvent]
|
1980
1775
|
# @param flags [Integer]
|
1981
|
-
# @return [
|
1776
|
+
# @return [Boolean]
|
1982
1777
|
def process_back_key(event, flags) end
|
1983
1778
|
|
1984
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.
|
1985
1780
|
# @param pos [Integer]
|
1986
|
-
# @
|
1987
|
-
|
1988
|
-
def find_range_for_list(pos, isNumberedList) end
|
1781
|
+
# @return [Array(Range,Boolean)]
|
1782
|
+
def find_range_for_list(pos) end
|
1989
1783
|
|
1990
1784
|
# Sets up the caret for the given position and container, after a mouse click.
|
1991
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
1785
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1992
1786
|
# @param position [Integer]
|
1993
1787
|
# @param hitTestFlags [Integer]
|
1994
|
-
# @param extendSelection [
|
1995
|
-
# @return [
|
1788
|
+
# @param extendSelection [Boolean]
|
1789
|
+
# @return [Boolean]
|
1996
1790
|
def set_caret_position_after_click(container, position, hitTestFlags, extendSelection=false) end
|
1997
1791
|
|
1998
1792
|
# Find the caret position for the combination of hit-test flags and character position.
|
1999
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).
|
2000
1794
|
# @param position [Integer]
|
2001
1795
|
# @param hitTestFlags [Integer]
|
2002
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
2003
|
-
# @
|
2004
|
-
|
2005
|
-
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
|
2006
1799
|
|
2007
1800
|
# Processes mouse movement in order to change the cursor.
|
2008
|
-
# @param container [Wx::RichTextParagraphLayoutBox]
|
2009
|
-
# @param obj [Wx::RichTextObject]
|
1801
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
1802
|
+
# @param obj [Wx::RTC::RichTextObject]
|
2010
1803
|
# @param position [Integer]
|
2011
1804
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
2012
|
-
# @return [
|
1805
|
+
# @return [Boolean]
|
2013
1806
|
def process_mouse_movement(container, obj, position, pos) end
|
2014
1807
|
|
2015
|
-
# @return [String]
|
2016
|
-
def do_get_value; end
|
2017
|
-
|
2018
1808
|
# @overload process_delayed_image_loading(refresh)
|
2019
1809
|
# Do delayed image loading and garbage-collect other images.
|
2020
|
-
# @param refresh [
|
2021
|
-
# @return [
|
2022
|
-
# @overload process_delayed_image_loading(screenRect, box
|
1810
|
+
# @param refresh [Boolean]
|
1811
|
+
# @return [Boolean]
|
1812
|
+
# @overload process_delayed_image_loading(screenRect, box)
|
2023
1813
|
# @param screenRect [Wx::Rect]
|
2024
|
-
# @param box [Wx::RichTextParagraphLayoutBox]
|
2025
|
-
# @
|
2026
|
-
# @return [true,false]
|
1814
|
+
# @param box [Wx::RTC::RichTextParagraphLayoutBox]
|
1815
|
+
# @return [Array(Boolean,Integer)]
|
2027
1816
|
def process_delayed_image_loading(*args) end
|
2028
1817
|
|
2029
1818
|
# Request delayed image processing.
|
@@ -2045,5 +1834,179 @@ module Wx::RTC
|
|
2045
1834
|
|
2046
1835
|
end # RichTextCtrl
|
2047
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
|
+
|
2048
2011
|
|
2049
2012
|
end
|