wxruby3 0.9.0.pre.rc.2-x64-mingw-ucrt → 0.9.0-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +30 -8
- data/README.md +3 -3
- data/ext/mkrf_conf_bingem.rb +4 -1
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/accessors.rb +10 -2
- data/lib/wx/aui/auifloatframe.rb +20 -0
- data/lib/wx/aui/auimanager.rb +3 -0
- data/lib/wx/aui/auinotebook.rb +17 -0
- data/lib/wx/aui/events/evt_list.rb +7 -7
- data/lib/wx/aui/require.rb +5 -1
- data/lib/wx/aui.rb +4 -1
- data/lib/wx/core/acceleratortable.rb +8 -0
- data/lib/wx/core/animation.rb +8 -0
- data/lib/wx/core/app.rb +8 -0
- data/lib/wx/core/array_ext.rb +7 -0
- data/lib/wx/core/art_locator.rb +7 -0
- data/lib/wx/core/artprovider.rb +9 -0
- data/lib/wx/core/bitmap.rb +16 -4
- data/lib/wx/core/bitmap_combobox.rb +7 -0
- data/lib/wx/core/brush.rb +7 -0
- data/lib/wx/core/busycursor.rb +9 -0
- data/lib/wx/core/choice.rb +7 -0
- data/lib/wx/core/choicedlg.rb +7 -0
- data/lib/wx/core/clientdc.rb +9 -0
- data/lib/wx/core/clipboard.rb +8 -0
- data/lib/wx/core/collapsible_pane.rb +8 -1
- data/lib/wx/core/colour.rb +8 -0
- data/lib/wx/core/combo_ctrl.rb +110 -0
- data/lib/wx/core/combobox.rb +7 -0
- data/lib/wx/core/config.rb +303 -0
- data/lib/wx/core/controlwithitems.rb +12 -1
- data/lib/wx/core/cursor.rb +14 -4
- data/lib/wx/core/data_object.rb +7 -0
- data/lib/wx/core/dataformat.rb +9 -0
- data/lib/wx/core/datetime.rb +14 -0
- data/lib/wx/core/dc.rb +7 -0
- data/lib/wx/core/dialog.rb +18 -1
- data/lib/wx/core/enum.rb +7 -0
- data/lib/wx/core/event.rb +7 -0
- data/lib/wx/core/event_blocker.rb +7 -0
- data/lib/wx/core/event_loop.rb +14 -0
- data/lib/wx/core/events/evt_list.rb +76 -0
- data/lib/wx/core/evthandler.rb +8 -0
- data/lib/wx/core/ext.rb +7 -0
- data/lib/wx/core/file_dialog.rb +23 -0
- data/lib/wx/core/find_replace_dialog.rb +7 -0
- data/lib/wx/core/functions.rb +8 -0
- data/lib/wx/core/gauge.rb +10 -1
- data/lib/wx/core/genericdirctrl.rb +9 -0
- data/lib/wx/core/hboxsizer.rb +16 -0
- data/lib/wx/core/helpcontroller.rb +8 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +9 -0
- data/lib/wx/core/helpprovider.rb +10 -1
- data/lib/wx/core/icon.rb +17 -6
- data/lib/wx/core/id_helper.rb +7 -0
- data/lib/wx/core/image.rb +49 -4
- data/lib/wx/core/imagelist.rb +8 -1
- data/lib/wx/core/listbox.rb +7 -0
- data/lib/wx/core/listctrl.rb +26 -13
- data/lib/wx/core/locale.rb +8 -0
- data/lib/wx/core/log.rb +114 -0
- data/lib/wx/core/menu.rb +9 -0
- data/lib/wx/core/menu_bar.rb +7 -0
- data/lib/wx/core/menuitem.rb +9 -0
- data/lib/wx/core/notebook.rb +9 -0
- data/lib/wx/core/object.rb +9 -0
- data/lib/wx/core/paintdc.rb +7 -0
- data/lib/wx/core/pen.rb +7 -0
- data/lib/wx/core/pen_info.rb +7 -0
- data/lib/wx/core/platform_info.rb +7 -0
- data/lib/wx/core/point.rb +8 -0
- data/lib/wx/core/real_point.rb +8 -0
- data/lib/wx/core/rect.rb +9 -0
- data/lib/wx/core/region_iterator.rb +7 -0
- data/lib/wx/core/simplehelpprovider.rb +9 -0
- data/lib/wx/core/size.rb +8 -0
- data/lib/wx/core/sizer.rb +9 -0
- data/lib/wx/core/splash_screen.rb +22 -2
- data/lib/wx/core/text_entry.rb +7 -0
- data/lib/wx/core/textctrl.rb +86 -5
- data/lib/wx/core/timer.rb +9 -0
- data/lib/wx/core/toolbar.rb +9 -0
- data/lib/wx/core/toolbartool.rb +8 -0
- data/lib/wx/core/treectrl.rb +9 -0
- data/lib/wx/core/v_list_box.rb +7 -0
- data/lib/wx/core/validator.rb +7 -0
- data/lib/wx/core/variant.rb +7 -0
- data/lib/wx/core/vboxsizer.rb +16 -0
- data/lib/wx/core/window.rb +8 -0
- data/lib/wx/core/window_update_locker.rb +9 -0
- data/lib/wx/core/xmlresource.rb +8 -0
- data/lib/wx/core.rb +4 -1
- data/lib/wx/doc/app.rb +7 -1
- data/lib/wx/doc/array_ext.rb +6 -0
- data/lib/wx/doc/art_locator.rb +7 -0
- data/lib/wx/doc/aui/auimanager.rb +6 -0
- data/lib/wx/doc/aui/auinotebook.rb +6 -0
- data/lib/wx/doc/bitmap.rb +19 -15
- data/lib/wx/doc/brush.rb +6 -0
- data/lib/wx/doc/busy_info.rb +6 -0
- data/lib/wx/doc/client_dc.rb +6 -0
- data/lib/wx/doc/clipboard.rb +6 -0
- data/lib/wx/doc/colour_dialog.rb +6 -0
- data/lib/wx/doc/config.rb +190 -0
- data/lib/wx/doc/const.rb +7 -0
- data/lib/wx/doc/controlwithitems.rb +6 -0
- data/lib/wx/doc/core.rb +6 -0
- data/lib/wx/doc/cursor.rb +13 -5
- data/lib/wx/doc/data_object.rb +6 -0
- data/lib/wx/doc/datetime.rb +16 -0
- data/lib/wx/doc/dc.rb +6 -0
- data/lib/wx/doc/enum.rb +8 -1
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/event_blocker.rb +6 -0
- data/lib/wx/doc/event_loop.rb +13 -0
- data/lib/wx/doc/events.rb +6 -0
- data/lib/wx/doc/evthandler.rb +8 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/01_packages.md +52 -51
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/05_event-handling.md +37 -12
- data/lib/wx/doc/extra/06_geometry.md +5 -5
- data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
- data/lib/wx/doc/extra/09_exceptions.md +2 -2
- data/lib/wx/doc/extra/10_art.md +18 -12
- data/lib/wx/doc/extra/11_drawing_and_dc.md +8 -8
- data/lib/wx/doc/font.rb +7 -1
- data/lib/wx/doc/font_data.rb +16 -0
- data/lib/wx/doc/functions.rb +60 -24
- data/lib/wx/doc/gc_dc.rb +7 -1
- data/lib/wx/doc/gdi_common.rb +8 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +10 -10
- data/lib/wx/doc/gen/accelerator.rb +8 -13
- data/lib/wx/doc/gen/accessible.rb +27 -23
- data/lib/wx/doc/gen/activity_indicator.rb +7 -7
- data/lib/wx/doc/gen/animation.rb +20 -20
- data/lib/wx/doc/gen/animation_ctrl.rb +14 -13
- data/lib/wx/doc/gen/any_button.rb +3 -3
- data/lib/wx/doc/gen/app.rb +25 -88
- data/lib/wx/doc/gen/app_traits.rb +381 -0
- data/lib/wx/doc/gen/art_provider.rb +64 -4
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +57 -41
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +16 -10
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +19 -20
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +7 -7
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_notebook.rb +136 -26
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +95 -95
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +17 -17
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +61 -46
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +18 -18
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +11 -11
- data/lib/wx/doc/gen/aui/event_list.rb +7 -0
- data/lib/wx/doc/gen/banner_window.rb +98 -0
- data/lib/wx/doc/gen/bitmap.rb +56 -81
- data/lib/wx/doc/gen/bitmap_button.rb +13 -9
- data/lib/wx/doc/gen/bitmap_combo_box.rb +14 -9
- data/lib/wx/doc/gen/book_ctrl_base.rb +20 -16
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +24 -12
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +23 -11
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +34 -22
- data/lib/wx/doc/gen/calendar_date_attr.rb +13 -13
- data/lib/wx/doc/gen/calendar_event.rb +4 -10
- data/lib/wx/doc/gen/caret.rb +6 -6
- data/lib/wx/doc/gen/check_box.rb +19 -15
- data/lib/wx/doc/gen/check_list_box.rb +10 -9
- data/lib/wx/doc/gen/choice.rb +10 -9
- data/lib/wx/doc/gen/choicebook.rb +13 -7
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +10 -10
- data/lib/wx/doc/gen/collapsible_pane.rb +13 -10
- data/lib/wx/doc/gen/collapsible_pane_event.rb +5 -4
- data/lib/wx/doc/gen/colour.rb +42 -32
- data/lib/wx/doc/gen/colour_dialog.rb +12 -12
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +16 -10
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +29 -20
- data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
- data/lib/wx/doc/gen/command_link_button.rb +110 -0
- data/lib/wx/doc/gen/config_base.rb +10 -0
- data/lib/wx/doc/gen/context_help_button.rb +7 -6
- data/lib/wx/doc/gen/control.rb +12 -9
- data/lib/wx/doc/gen/control_with_items.rb +5 -5
- data/lib/wx/doc/gen/core.rb +8 -5
- data/lib/wx/doc/gen/cursor.rb +18 -18
- data/lib/wx/doc/gen/data_format.rb +5 -5
- data/lib/wx/doc/gen/data_object.rb +32 -25
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +16 -11
- data/lib/wx/doc/gen/dc.rb +162 -74
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +65 -22
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +3 -3
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +17 -12
- data/lib/wx/doc/gen/drag_drop.rb +26 -52
- data/lib/wx/doc/gen/drag_image.rb +13 -38
- data/lib/wx/doc/gen/editable_list_box.rb +9 -5
- data/lib/wx/doc/gen/event.rb +55 -32
- data/lib/wx/doc/gen/event_blocker.rb +1 -1
- data/lib/wx/doc/gen/event_filter.rb +5 -2
- data/lib/wx/doc/gen/event_list.rb +117 -19
- data/lib/wx/doc/gen/events.rb +351 -215
- data/lib/wx/doc/gen/evt_handler.rb +8 -8
- data/lib/wx/doc/gen/ext_help_controller.rb +9 -9
- data/lib/wx/doc/gen/file_dialog.rb +20 -9
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +19 -11
- data/lib/wx/doc/gen/file_system.rb +250 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +2 -2
- data/lib/wx/doc/gen/flex_grid_sizer.rb +16 -10
- data/lib/wx/doc/gen/font.rb +90 -94
- data/lib/wx/doc/gen/font_data.rb +15 -11
- data/lib/wx/doc/gen/font_dialog.rb +5 -5
- data/lib/wx/doc/gen/font_picker_ctrl.rb +11 -7
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +36 -27
- data/lib/wx/doc/gen/fs_file.rb +65 -38
- data/lib/wx/doc/gen/gauge.rb +14 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +43 -41
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +19 -13
- data/lib/wx/doc/gen/graphics_context.rb +320 -88
- data/lib/wx/doc/gen/graphics_object.rb +48 -102
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +41 -56
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +19 -14
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +15 -13
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +446 -189
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +26 -9
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +15 -11
- data/lib/wx/doc/gen/grid/grid_size_event.rb +13 -7
- data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -8
- data/lib/wx/doc/gen/grid/grid_table_base.rb +21 -21
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +15 -15
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/header_ctrl.rb +755 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
- data/lib/wx/doc/gen/help_controller.rb +25 -19
- data/lib/wx/doc/gen/help_provider.rb +3 -3
- data/lib/wx/doc/gen/html/html_cell.rb +100 -59
- data/lib/wx/doc/gen/html/html_cell_event.rb +7 -5
- data/lib/wx/doc/gen/html/html_easy_printing.rb +14 -9
- data/lib/wx/doc/gen/html/html_help_controller.rb +60 -46
- data/lib/wx/doc/gen/html/html_help_data.rb +5 -5
- data/lib/wx/doc/gen/html/html_help_window.rb +33 -35
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +21 -13
- data/lib/wx/doc/gen/html/html_printout.rb +16 -6
- data/lib/wx/doc/gen/html/html_window.rb +54 -39
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +15 -10
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
- data/lib/wx/doc/gen/icon.rb +24 -24
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +164 -114
- data/lib/wx/doc/gen/image_list.rb +24 -30
- data/lib/wx/doc/gen/info_bar.rb +152 -0
- data/lib/wx/doc/gen/keyboard_state.rb +24 -24
- data/lib/wx/doc/gen/list_box.rb +40 -31
- data/lib/wx/doc/gen/list_ctrl.rb +223 -167
- data/lib/wx/doc/gen/list_event.rb +25 -3
- data/lib/wx/doc/gen/listbook.rb +13 -7
- data/lib/wx/doc/gen/locale.rb +22 -71
- data/lib/wx/doc/gen/log.rb +133 -106
- data/lib/wx/doc/gen/mdi_client_window.rb +3 -3
- data/lib/wx/doc/gen/mdi_frame.rb +23 -17
- data/lib/wx/doc/gen/media_ctrl.rb +22 -19
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +26 -33
- data/lib/wx/doc/gen/menu.rb +24 -25
- data/lib/wx/doc/gen/menu_bar.rb +11 -28
- data/lib/wx/doc/gen/menu_item.rb +127 -46
- data/lib/wx/doc/gen/message_dialog.rb +54 -36
- data/lib/wx/doc/gen/mini_frame.rb +14 -5
- data/lib/wx/doc/gen/mouse_state.rb +51 -11
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +8 -9
- data/lib/wx/doc/gen/notebook.rb +27 -22
- data/lib/wx/doc/gen/number_entry_dialog.rb +3 -3
- data/lib/wx/doc/gen/object.rb +3 -14
- data/lib/wx/doc/gen/palette.rb +15 -17
- data/lib/wx/doc/gen/panel.rb +8 -7
- data/lib/wx/doc/gen/pen.rb +50 -37
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +17 -17
- data/lib/wx/doc/gen/pg/pg_cell.rb +13 -16
- data/lib/wx/doc/gen/pg/pg_editor.rb +95 -93
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +64 -89
- data/lib/wx/doc/gen/pg/pg_properties.rb +379 -349
- data/lib/wx/doc/gen/pg/pg_property.rb +260 -307
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid.rb +49 -49
- data/lib/wx/doc/gen/pg/property_grid_event.rb +24 -11
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +75 -69
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +51 -54
- data/lib/wx/doc/gen/pg/property_grid_page.rb +22 -30
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +17 -26
- data/lib/wx/doc/gen/picker_base.rb +17 -16
- data/lib/wx/doc/gen/platform_info.rb +180 -20
- data/lib/wx/doc/gen/popup_window.rb +8 -8
- data/lib/wx/doc/gen/progress_dialog.rb +3 -3
- data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -18
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +18 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +68 -62
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +44 -49
- data/lib/wx/doc/gen/query_layout_info_event.rb +6 -5
- data/lib/wx/doc/gen/radio_box.rb +21 -19
- data/lib/wx/doc/gen/radio_button.rb +13 -11
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +67 -67
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +38 -20
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +22 -15
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -11
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +14 -16
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -12
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +24 -22
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +17 -15
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
- data/lib/wx/doc/gen/rearrange_list.rb +99 -0
- data/lib/wx/doc/gen/region.rb +35 -43
- data/lib/wx/doc/gen/region_iterator.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +626 -1538
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +488 -503
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +31 -12
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +18 -18
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +23 -19
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +9 -18
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +29 -29
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
- data/lib/wx/doc/gen/sash_event.rb +8 -6
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -11
- data/lib/wx/doc/gen/sash_window.rb +14 -9
- data/lib/wx/doc/gen/scroll_bar.rb +33 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +49 -37
- data/lib/wx/doc/gen/scrolled_control.rb +49 -37
- data/lib/wx/doc/gen/scrolled_window.rb +49 -37
- data/lib/wx/doc/gen/search_ctrl.rb +20 -13
- data/lib/wx/doc/gen/simplebook.rb +7 -7
- data/lib/wx/doc/gen/single_choice_dialog.rb +5 -4
- data/lib/wx/doc/gen/sizer.rb +69 -73
- data/lib/wx/doc/gen/sizer_item.rb +5 -5
- data/lib/wx/doc/gen/slider.rb +51 -18
- data/lib/wx/doc/gen/spin_button.rb +17 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
- data/lib/wx/doc/gen/spin_double_event.rb +53 -0
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +36 -16
- data/lib/wx/doc/gen/static_bitmap.rb +9 -9
- data/lib/wx/doc/gen/static_box.rb +41 -37
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +8 -7
- data/lib/wx/doc/gen/static_text.rb +15 -9
- data/lib/wx/doc/gen/status_bar.rb +53 -10
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +200 -184
- data/lib/wx/doc/gen/stc/styled_text_event.rb +229 -54
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +8 -8
- data/lib/wx/doc/gen/system_options.rb +13 -3
- data/lib/wx/doc/gen/system_settings.rb +9 -9
- data/lib/wx/doc/gen/task_bar_icon.rb +17 -9
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +67 -61
- data/lib/wx/doc/gen/text_ctrl.rb +58 -113
- data/lib/wx/doc/gen/text_entry.rb +44 -56
- data/lib/wx/doc/gen/text_entry_dialog.rb +23 -23
- data/lib/wx/doc/gen/text_validator.rb +3 -19
- data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -10
- data/lib/wx/doc/gen/timer.rb +13 -9
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +3 -3
- data/lib/wx/doc/gen/toggle_button.rb +10 -9
- data/lib/wx/doc/gen/tool_bar.rb +71 -61
- data/lib/wx/doc/gen/tool_tip.rb +2 -10
- data/lib/wx/doc/gen/toolbook.rb +12 -9
- data/lib/wx/doc/gen/top_level_window.rb +53 -113
- data/lib/wx/doc/gen/tree_ctrl.rb +83 -33
- data/lib/wx/doc/gen/tree_event.rb +24 -3
- data/lib/wx/doc/gen/treebook.rb +20 -16
- data/lib/wx/doc/gen/ui_action_simulator.rb +20 -19
- data/lib/wx/doc/gen/utils.rb +20 -14
- data/lib/wx/doc/gen/v_list_box.rb +11 -11
- data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
- data/lib/wx/doc/gen/validator.rb +10 -8
- data/lib/wx/doc/gen/variant.rb +56 -119
- data/lib/wx/doc/gen/window.rb +314 -224
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +2 -2
- data/lib/wx/doc/gen/wizard.rb +21 -8
- data/lib/wx/doc/gen/wizard_event.rb +11 -4
- data/lib/wx/doc/gen/wizard_page.rb +3 -3
- data/lib/wx/doc/gen/wizard_page_simple.rb +8 -8
- data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
- data/lib/wx/doc/gen/xml_node.rb +13 -13
- data/lib/wx/doc/gen/xml_resource.rb +24 -21
- data/lib/wx/doc/graphics_context.rb +59 -39
- data/lib/wx/doc/grid/grid.rb +16 -1
- data/lib/wx/doc/hboxsizer.rb +33 -0
- data/lib/wx/doc/help_controller.rb +6 -0
- data/lib/wx/doc/html/html_help_controller.rb +6 -0
- data/lib/wx/doc/icon.rb +13 -5
- data/lib/wx/doc/id_helper.rb +6 -0
- data/lib/wx/doc/image.rb +50 -12
- data/lib/wx/doc/list_ctrl.rb +38 -0
- data/lib/wx/doc/log.rb +45 -0
- data/lib/wx/doc/memory_dc.rb +6 -0
- data/lib/wx/doc/mirror_dc.rb +6 -0
- data/lib/wx/doc/pen.rb +6 -0
- data/lib/wx/doc/pg/events.rb +6 -0
- data/lib/wx/doc/pg/pg_property.rb +17 -0
- data/lib/wx/doc/pg/pgeditor.rb +6 -0
- data/lib/wx/doc/pg/property_grid.rb +6 -0
- data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
- data/lib/wx/doc/progress_dialog.rb +6 -0
- data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
- data/lib/wx/doc/prt/print_data.rb +6 -0
- data/lib/wx/doc/prt/print_dialog.rb +6 -0
- data/lib/wx/doc/prt/printer.rb +6 -0
- data/lib/wx/doc/prt/printer_dc.rb +8 -2
- data/lib/wx/doc/radio_box.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
- data/lib/wx/doc/region_iterator.rb +6 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
- data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
- data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +7 -1
- data/lib/wx/doc/screen_dc.rb +6 -0
- data/lib/wx/doc/stock_objects.rb +6 -0
- data/lib/wx/doc/stream.rb +6 -0
- data/lib/wx/doc/svg_file_dc.rb +6 -0
- data/lib/wx/doc/system_settings.rb +6 -0
- data/lib/wx/doc/text_validator.rb +18 -0
- data/lib/wx/doc/textctrl.rb +89 -0
- data/lib/wx/doc/tree_event.rb +20 -0
- data/lib/wx/doc/treebook.rb +6 -0
- data/lib/wx/doc/v_list_box.rb +6 -0
- data/lib/wx/doc/variant.rb +6 -0
- data/lib/wx/doc/vboxsizer.rb +33 -0
- data/lib/wx/doc/window.rb +6 -0
- data/lib/wx/doc/window_disabler.rb +6 -0
- data/lib/wx/doc/xml_resource.rb +8 -0
- data/lib/wx/global_const.rb +4 -1
- data/lib/wx/grid/grid.rb +23 -3
- data/lib/wx/grid/keyword_defs.rb +8 -1
- data/lib/wx/grid/require.rb +4 -1
- data/lib/wx/grid.rb +4 -1
- data/lib/wx/helpers.rb +8 -1
- data/lib/wx/html/htmlhelpcontroller.rb +29 -3
- data/lib/wx/html/htmlwindow.rb +23 -12
- data/lib/wx/html/keyword_defs.rb +8 -1
- data/lib/wx/html/require.rb +4 -1
- data/lib/wx/html/simple_html_listbox.rb +3 -0
- data/lib/wx/html.rb +4 -1
- data/lib/wx/keyword_ctors.rb +22 -3
- data/lib/wx/keyword_defs.rb +55 -3
- data/lib/wx/pg/events.rb +4 -1
- data/lib/wx/pg/keyword_defs.rb +8 -1
- data/lib/wx/pg/pg_editor.rb +3 -0
- data/lib/wx/pg/pg_properties.rb +4 -1
- data/lib/wx/pg/pg_property.rb +18 -5
- data/lib/wx/pg/property_grid.rb +4 -1
- data/lib/wx/pg/property_grid_interface.rb +3 -0
- data/lib/wx/pg/require.rb +4 -1
- data/lib/wx/pg.rb +4 -1
- data/lib/wx/prt/keyword_defs.rb +8 -1
- data/lib/wx/prt/page_setup_dialog.rb +3 -0
- data/lib/wx/prt/previewframe.rb +5 -0
- data/lib/wx/prt/require.rb +4 -1
- data/lib/wx/prt.rb +4 -1
- data/lib/wx/rbn/events.rb +4 -1
- data/lib/wx/rbn/keyword_defs.rb +8 -1
- data/lib/wx/rbn/require.rb +5 -1
- data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
- data/lib/wx/rbn/ribbon_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_control.rb +3 -0
- data/lib/wx/rbn/ribbon_gallery.rb +10 -0
- data/lib/wx/rbn/ribbon_page.rb +3 -0
- data/lib/wx/rbn/ribbon_panel.rb +3 -0
- data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
- data/lib/wx/rbn.rb +4 -1
- data/lib/wx/rtc/ext.rb +4 -1
- data/lib/wx/rtc/keyword_defs.rb +18 -7
- data/lib/wx/rtc/require.rb +8 -1
- data/lib/wx/rtc/richtext_buffer.rb +36 -0
- data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
- data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
- data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
- data/lib/wx/rtc.rb +5 -1
- data/lib/wx/stc/keyword_defs.rb +8 -1
- data/lib/wx/stc/require.rb +4 -1
- data/lib/wx/stc.rb +4 -1
- data/lib/wx/version.rb +5 -1
- data/lib/wx/wxruby/base.rb +4 -1
- data/lib/wx/wxruby/cmd/sampler.rb +4 -1
- data/lib/wx/wxruby/cmd/test.rb +4 -1
- data/lib/wx.rb +4 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/install.rb +4 -1
- data/rakelib/lib/config/cygwin.rb +4 -1
- data/rakelib/lib/config/linux.rb +4 -1
- data/rakelib/lib/config/macosx.rb +5 -2
- data/rakelib/lib/config/mingw.rb +4 -1
- data/rakelib/lib/config/netbsd.rb +4 -1
- data/rakelib/lib/config/unixish.rb +10 -7
- data/rakelib/lib/config.rb +7 -2
- data/rakelib/lib/ext/enum_chain.rb +4 -1
- data/rakelib/prepost.rake +4 -1
- data/rakelib/prepost.rb +4 -1
- data/samples/aui/aui.rb +8 -3
- data/samples/bigdemo/bigdemo.rb +9 -2
- data/samples/bigdemo/run.rb +9 -2
- data/samples/bigdemo/utils.rb +9 -1
- data/samples/calendar/calendar.rb +9 -4
- data/samples/caret/caret.rb +8 -3
- data/samples/controls/books.rb +8 -2
- data/samples/controls/controls.rb +33 -77
- data/samples/controls/get_item_sample.rb +8 -2
- data/samples/controls/htlbox.rb +10 -3
- data/samples/dialogs/dialogs.rb +9 -4
- data/samples/dialogs/wizard.rb +8 -3
- data/samples/dragdrop/dragdrop.rb +8 -3
- data/samples/drawing/bitmap.rb +8 -3
- data/samples/drawing/bitmap_image.rb +8 -3
- data/samples/drawing/graphics_drawing.rb +44 -33
- data/samples/drawing/image_prt.rb +8 -2
- data/samples/drawing/maths_images.rb +8 -3
- data/samples/drawing/rmagic_bitmap_image.rb +8 -3
- data/samples/etc/choice.rb +8 -3
- data/samples/etc/miniframe.rb +8 -3
- data/samples/etc/sash.rb +8 -3
- data/samples/etc/scrollwin.rb +8 -3
- data/samples/etc/system_settings.rb +8 -3
- data/samples/event/activation.rb +8 -3
- data/samples/event/event.rb +8 -3
- data/samples/event/threaded.rb +8 -3
- data/samples/event/update_ui_event.rb +8 -3
- data/samples/grid/grid.rb +9 -3
- data/samples/grid/gridtablebase.rb +8 -3
- data/samples/html/html.rb +8 -3
- data/samples/mdi/mdi.rb +8 -3
- data/samples/minimal/minimal.rb +8 -3
- data/samples/minimal/nothing.rb +8 -3
- data/samples/printing/printing.rb +8 -3
- data/samples/printing/printing2.rb +8 -2
- data/samples/propgrid/propgrid.rb +4 -1
- data/samples/propgrid/propgrid_minimal.rb +4 -2
- data/samples/propgrid/sample_props.rb +4 -1
- data/samples/ribbon/ribbon.rb +4 -1
- data/samples/sampler/editor.rb +4 -1
- data/samples/sampler/ext.rb +4 -1
- data/samples/sampler/sample.rb +13 -4
- data/samples/sampler/stc_editor.rb +4 -1
- data/samples/sampler/txt_editor.rb +4 -1
- data/samples/sampler.rb +11 -3
- data/samples/splash/splash.rb +4 -2
- data/samples/text/art/richtext/alignleft.xpm +24 -0
- data/samples/text/art/richtext/alignright.xpm +24 -0
- data/samples/text/art/richtext/bold.xpm +24 -0
- data/samples/text/art/richtext/centre.xpm +24 -0
- data/samples/text/art/richtext/copy.xpm +45 -0
- data/samples/text/art/richtext/cut.xpm +47 -0
- data/samples/text/art/richtext/font.xpm +25 -0
- data/samples/text/art/richtext/idea.xpm +47 -0
- data/samples/text/art/richtext/indentless.xpm +25 -0
- data/samples/text/art/richtext/indentmore.xpm +25 -0
- data/samples/text/art/richtext/italic.xpm +25 -0
- data/samples/text/art/richtext/open.xpm +58 -0
- data/samples/text/art/richtext/paste.xpm +47 -0
- data/samples/text/art/richtext/redo.xpm +59 -0
- data/samples/text/art/richtext/save.xpm +43 -0
- data/samples/text/art/richtext/smiley.xpm +42 -0
- data/samples/text/art/richtext/underline.xpm +25 -0
- data/samples/text/art/richtext/undo.xpm +59 -0
- data/samples/text/art/richtext/zebra.xpm +409 -0
- data/samples/text/rich_textctrl.rb +8 -3
- data/samples/text/richtext.rb +1824 -0
- data/samples/text/scintilla.rb +8 -3
- data/samples/text/textctrl.rb +21 -4
- data/samples/text/tn_richtext.png +0 -0
- data/samples/text/unicode.rb +9 -4
- data/samples/treectrl/treectrl.rb +10 -5
- data/samples/xrc/custom_xrc_sample.rb +8 -3
- data/samples/xrc/xrc_sample.rb +8 -3
- data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
- data/tests/lib/item_container_tests.rb +3 -0
- data/tests/lib/text_entry_tests.rb +3 -0
- data/tests/lib/wxapp_runner.rb +3 -0
- data/tests/lib/wxframe_runner.rb +81 -3
- data/tests/test_app_event_filter.rb +3 -0
- data/tests/test_app_traits.rb +33 -0
- data/tests/test_art.rb +31 -0
- data/tests/test_art_provider.rb +3 -0
- data/tests/test_aui.rb +65 -0
- data/tests/test_basic.rb +5 -1
- data/tests/test_box_sizer.rb +164 -0
- data/tests/test_clipboard.rb +3 -0
- data/tests/test_config.rb +150 -0
- data/tests/test_dc.rb +3 -0
- data/tests/test_dialog.rb +3 -0
- data/tests/test_event_handling.rb +3 -0
- data/tests/test_events.rb +3 -0
- data/tests/test_ext_controls.rb +286 -3
- data/tests/test_file_dialog.rb +55 -0
- data/tests/test_font.rb +8 -5
- data/tests/test_gdi_object.rb +3 -0
- data/tests/test_geometry.rb +4 -0
- data/tests/test_grid_sizer.rb +151 -0
- data/tests/test_intl.rb +3 -0
- data/tests/test_item_data.rb +3 -0
- data/tests/test_list_ctrl.rb +56 -0
- data/tests/test_log.rb +226 -0
- data/tests/test_proof_check.rb +52 -0
- data/tests/test_richtext.rb +204 -0
- data/tests/test_std_controls.rb +99 -31
- data/tests/test_timer.rb +98 -0
- data/tests/test_variant.rb +3 -0
- data/tests/test_window.rb +10 -8
- data/tests/testapp.rb +4 -0
- data/tests/testapp_noframe.rb +4 -0
- metadata +87 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
@@ -0,0 +1,1174 @@
|
|
1
|
+
# :stopdoc:
|
2
|
+
# This file is automatically generated by the WXRuby3 documentation
|
3
|
+
# generator. Do not alter this file.
|
4
|
+
# :startdoc:
|
5
|
+
|
6
|
+
|
7
|
+
module Wx::RTC
|
8
|
+
|
9
|
+
# This class knows how to lay out paragraphs.
|
10
|
+
# ===
|
11
|
+
#
|
12
|
+
# Category: Rich Text
|
13
|
+
# @see Wx::RTC::RichTextCompositeObject
|
14
|
+
# @see Wx::RTC::RichTextObject
|
15
|
+
# @see Wx::RTC::RichTextBuffer
|
16
|
+
# @see Wx::RTC::RichTextCtrl
|
17
|
+
#
|
18
|
+
#
|
19
|
+
#
|
20
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
21
|
+
class RichTextParagraphLayoutBox < RichTextCompositeObject
|
22
|
+
|
23
|
+
# @overload initialize(parent=nil)
|
24
|
+
# @param parent [Wx::RTC::RichTextObject]
|
25
|
+
# @return [Wx::RTC::RichTextParagraphLayoutBox]
|
26
|
+
# @overload initialize(obj)
|
27
|
+
# @param obj [Wx::RTC::RichTextParagraphLayoutBox]
|
28
|
+
# @return [Wx::RTC::RichTextParagraphLayoutBox]
|
29
|
+
def initialize(*args) end
|
30
|
+
|
31
|
+
# Hit-testing: returns a flag indicating hit test details, plus information about position.
|
32
|
+
# contextObj is returned to specify what object position is relevant to, since otherwise there's an ambiguity. @ obj might not be a child of contextObj, since we may be referring to the container itself if we have no hit on a child - for example if we click outside an object.
|
33
|
+
# The function puts the position in textPosition if one is found. pt is in logical units (a zero y position is at the beginning of the buffer).
|
34
|
+
# One of the {Wx::RTC::RichTextHitTestFlags} values.
|
35
|
+
# @param dc [Wx::DC]
|
36
|
+
# @param context [Wx::RTC::RichTextDrawingContext]
|
37
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
38
|
+
# @param textPosition [Integer]
|
39
|
+
# @param obj [Wx::RTC::RichTextObject]
|
40
|
+
# @param contextObj [Wx::RTC::RichTextObject]
|
41
|
+
# @param flags [Integer]
|
42
|
+
# @return [Array(Integer,Integer)]
|
43
|
+
def hit_test(dc, context, pt, textPosition, obj, contextObj, flags=0) end
|
44
|
+
|
45
|
+
# Draw the item, within the given range.
|
46
|
+
# Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
|
47
|
+
# @param dc [Wx::DC]
|
48
|
+
# @param context [Wx::RTC::RichTextDrawingContext]
|
49
|
+
# @param range [Range]
|
50
|
+
# @param selection [Wx::RTC::RichTextSelection]
|
51
|
+
# @param rect [Wx::Rect]
|
52
|
+
# @param descent [Integer]
|
53
|
+
# @param style [Integer]
|
54
|
+
# @return [Boolean]
|
55
|
+
def draw(dc, context, range, selection, rect, descent, style) end
|
56
|
+
|
57
|
+
# Lay the item out at the specified position with the given size constraint.
|
58
|
+
# Layout must set the cached size. rect is the available space for the object, and parentRect is the container that is used to determine a relative size or position (for example if a text box must be 50% of the parent text box).
|
59
|
+
# @param dc [Wx::DC]
|
60
|
+
# @param context [Wx::RTC::RichTextDrawingContext]
|
61
|
+
# @param rect [Wx::Rect]
|
62
|
+
# @param parentRect [Wx::Rect]
|
63
|
+
# @param style [Integer]
|
64
|
+
# @return [Boolean]
|
65
|
+
def layout(dc, context, rect, parentRect, style) end
|
66
|
+
|
67
|
+
# Returns the object size for the given range.
|
68
|
+
# Returns false if the range is invalid for this object.
|
69
|
+
# @param range [Range]
|
70
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
71
|
+
# @param descent [int]
|
72
|
+
# @param dc [Wx::DC]
|
73
|
+
# @param context [Wx::RTC::RichTextDrawingContext]
|
74
|
+
# @param flags [Integer]
|
75
|
+
# @param position [Array(Integer, Integer), Wx::Point]
|
76
|
+
# @param parentSize [Array(Integer, Integer), Wx::Size]
|
77
|
+
# @param partialExtents [Array,nil]
|
78
|
+
# @return [Boolean]
|
79
|
+
def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
|
80
|
+
alias_method :range_size, :get_range_size
|
81
|
+
|
82
|
+
# Deletes the given range.
|
83
|
+
# @param range [Range]
|
84
|
+
# @return [Boolean]
|
85
|
+
def delete_range(range) end
|
86
|
+
|
87
|
+
# Returns any text in this object for the given range.
|
88
|
+
# @param range [Range]
|
89
|
+
# @return [String]
|
90
|
+
def get_text_for_range(range) end
|
91
|
+
alias_method :text_for_range, :get_text_for_range
|
92
|
+
|
93
|
+
# Imports this object from XML.
|
94
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
95
|
+
# @param node [Wx::XmlNode]
|
96
|
+
# @param handler [Wx::RTC::RichTextXMLHandler]
|
97
|
+
# @param recurse [Boolean]
|
98
|
+
# @return [Array(Boolean,Boolean)]
|
99
|
+
def import_from_xml(buffer, node, handler, recurse) end
|
100
|
+
|
101
|
+
# Returns the XML node name of this object.
|
102
|
+
# This must be overridden for {Wx::XmlNode}-base XML export to work.
|
103
|
+
# @return [String]
|
104
|
+
def get_xml_node_name; end
|
105
|
+
alias_method :xml_node_name, :get_xml_node_name
|
106
|
+
|
107
|
+
# Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject is possible.
|
108
|
+
# For example, containers supporting text, such as a text box object, can accept the focus, but a table can't (set the focus to individual cells instead).
|
109
|
+
# @return [Boolean]
|
110
|
+
def accepts_focus; end
|
111
|
+
|
112
|
+
# Associates a control with the buffer, for operations that for example require refreshing the window.
|
113
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
114
|
+
# @return [void]
|
115
|
+
def set_rich_text_ctrl(ctrl) end
|
116
|
+
alias_method :rich_text_ctrl=, :set_rich_text_ctrl
|
117
|
+
|
118
|
+
# Returns the associated control.
|
119
|
+
# @return [Wx::RTC::RichTextCtrl]
|
120
|
+
def get_rich_text_ctrl; end
|
121
|
+
alias_method :rich_text_ctrl, :get_rich_text_ctrl
|
122
|
+
|
123
|
+
# Sets a flag indicating whether the last paragraph is partial or complete.
|
124
|
+
# @param partialPara [Boolean]
|
125
|
+
# @return [void]
|
126
|
+
def set_partial_paragraph(partialPara) end
|
127
|
+
alias_method :partial_paragraph=, :set_partial_paragraph
|
128
|
+
|
129
|
+
# Returns a flag indicating whether the last paragraph is partial or complete.
|
130
|
+
# @return [Boolean]
|
131
|
+
def get_partial_paragraph; end
|
132
|
+
alias_method :partial_paragraph, :get_partial_paragraph
|
133
|
+
|
134
|
+
# Returns the style sheet associated with the overall buffer.
|
135
|
+
# @return [Wx::RTC::RichTextStyleSheet]
|
136
|
+
def get_style_sheet; end
|
137
|
+
alias_method :style_sheet, :get_style_sheet
|
138
|
+
|
139
|
+
# Returns true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
|
140
|
+
# @return [Boolean]
|
141
|
+
def is_top_level; end
|
142
|
+
alias_method :top_level?, :is_top_level
|
143
|
+
|
144
|
+
# Submits a command to insert paragraphs.
|
145
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
146
|
+
# @param pos [Integer]
|
147
|
+
# @param paragraphs [Wx::RTC::RichTextParagraphLayoutBox]
|
148
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
149
|
+
# @param flags [Integer]
|
150
|
+
# @return [Boolean]
|
151
|
+
def insert_paragraphs_with_undo(buffer, pos, paragraphs, ctrl, flags=0) end
|
152
|
+
|
153
|
+
# Submits a command to insert the given text.
|
154
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
155
|
+
# @param pos [Integer]
|
156
|
+
# @param text [String]
|
157
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
158
|
+
# @param flags [Integer]
|
159
|
+
# @return [Boolean]
|
160
|
+
def insert_text_with_undo(buffer, pos, text, ctrl, flags=0) end
|
161
|
+
|
162
|
+
# Submits a command to insert the given text.
|
163
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
164
|
+
# @param pos [Integer]
|
165
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
166
|
+
# @param flags [Integer]
|
167
|
+
# @return [Boolean]
|
168
|
+
def insert_newline_with_undo(buffer, pos, ctrl, flags=0) end
|
169
|
+
|
170
|
+
# Submits a command to insert the given image.
|
171
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
172
|
+
# @param pos [Integer]
|
173
|
+
# @param imageBlock [Wx::RTC::RichTextImageBlock]
|
174
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
175
|
+
# @param flags [Integer]
|
176
|
+
# @param textAttr [Wx::RTC::RichTextAttr]
|
177
|
+
# @return [Boolean]
|
178
|
+
def insert_image_with_undo(buffer, pos, imageBlock, ctrl, flags, textAttr) end
|
179
|
+
|
180
|
+
# Submits a command to insert the given field.
|
181
|
+
# Field data can be included in properties.
|
182
|
+
# @see Wx::RTC::RichTextField
|
183
|
+
# @see Wx::RTC::RichTextFieldType
|
184
|
+
# @see Wx::RTC::RichTextFieldTypeStandard
|
185
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
186
|
+
# @param pos [Integer]
|
187
|
+
# @param fieldType [String]
|
188
|
+
# @param properties [Wx::RTC::RichTextProperties]
|
189
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
190
|
+
# @param flags [Integer]
|
191
|
+
# @param textAttr [Wx::RTC::RichTextAttr]
|
192
|
+
# @return [Wx::RTC::RichTextField]
|
193
|
+
def insert_field_with_undo(buffer, pos, fieldType, properties, ctrl, flags, textAttr) end
|
194
|
+
|
195
|
+
# Returns the style that is appropriate for a new paragraph at this position.
|
196
|
+
# If the previous paragraph has a paragraph style name, looks up the next-paragraph style.
|
197
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
198
|
+
# @param pos [Integer]
|
199
|
+
# @param caretPosition [Boolean]
|
200
|
+
# @param lookUpNewParaStyle [Boolean]
|
201
|
+
# @return [Wx::RTC::RichTextAttr]
|
202
|
+
def get_style_for_new_paragraph(buffer, pos, caretPosition=false, lookUpNewParaStyle=false) end
|
203
|
+
alias_method :style_for_new_paragraph, :get_style_for_new_paragraph
|
204
|
+
|
205
|
+
# Inserts an object.
|
206
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
207
|
+
# @param pos [Integer]
|
208
|
+
# @param object [Wx::RTC::RichTextObject]
|
209
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
210
|
+
# @param flags [Integer]
|
211
|
+
# @return [Wx::RTC::RichTextObject]
|
212
|
+
def insert_object_with_undo(buffer, pos, object, ctrl, flags=0) end
|
213
|
+
|
214
|
+
# Submits a command to delete this range.
|
215
|
+
# @param range [Range]
|
216
|
+
# @param ctrl [Wx::RTC::RichTextCtrl]
|
217
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
218
|
+
# @return [Boolean]
|
219
|
+
def delete_range_with_undo(range, ctrl, buffer) end
|
220
|
+
|
221
|
+
# Draws the floating objects in this buffer.
|
222
|
+
# @param dc [Wx::DC]
|
223
|
+
# @param context [Wx::RTC::RichTextDrawingContext]
|
224
|
+
# @param range [Range]
|
225
|
+
# @param selection [Wx::RTC::RichTextSelection]
|
226
|
+
# @param rect [Wx::Rect]
|
227
|
+
# @param descent [Integer]
|
228
|
+
# @param style [Integer]
|
229
|
+
# @return [void]
|
230
|
+
def draw_floats(dc, context, range, selection, rect, descent, style) end
|
231
|
+
|
232
|
+
# Moves an anchored object to another paragraph.
|
233
|
+
# @param from [Wx::RTC::RichTextParagraph]
|
234
|
+
# @param to [Wx::RTC::RichTextParagraph]
|
235
|
+
# @param obj [Wx::RTC::RichTextObject]
|
236
|
+
# @return [void]
|
237
|
+
def move_anchored_object_to_paragraph(from, to, obj) end
|
238
|
+
|
239
|
+
# Initializes the object.
|
240
|
+
# @return [void]
|
241
|
+
def init; end
|
242
|
+
|
243
|
+
# Clears all the children.
|
244
|
+
# @return [void]
|
245
|
+
def clear; end
|
246
|
+
|
247
|
+
# Clears and initializes with one blank paragraph.
|
248
|
+
# @return [void]
|
249
|
+
def reset; end
|
250
|
+
|
251
|
+
# Convenience function to add a paragraph of text.
|
252
|
+
# @param text [String]
|
253
|
+
# @param paraStyle [Wx::RTC::RichTextAttr]
|
254
|
+
# @return [Range]
|
255
|
+
def add_paragraph(text, paraStyle=nil) end
|
256
|
+
|
257
|
+
# Convenience function to add an image.
|
258
|
+
# @param image [Wx::Image]
|
259
|
+
# @param paraStyle [Wx::RTC::RichTextAttr]
|
260
|
+
# @return [Range]
|
261
|
+
def add_image(image, paraStyle=nil) end
|
262
|
+
|
263
|
+
# Adds multiple paragraphs, based on newlines.
|
264
|
+
# @param text [String]
|
265
|
+
# @param paraStyle [Wx::RTC::RichTextAttr]
|
266
|
+
# @return [Range]
|
267
|
+
def add_paragraphs(text, paraStyle=nil) end
|
268
|
+
|
269
|
+
# Returns the line at the given position.
|
270
|
+
# If caretPosition is true, the position is a caret position, which is normally a smaller number.
|
271
|
+
# @param pos [Integer]
|
272
|
+
# @param caretPosition [Boolean]
|
273
|
+
# @return [Wx::RTC::RichTextLine]
|
274
|
+
def get_line_at_position(pos, caretPosition=false) end
|
275
|
+
alias_method :line_at_position, :get_line_at_position
|
276
|
+
|
277
|
+
# Returns the line at the given y pixel position, or the last line.
|
278
|
+
# @param y [Integer]
|
279
|
+
# @return [Wx::RTC::RichTextLine]
|
280
|
+
def get_line_at_y_position(y) end
|
281
|
+
alias_method :line_at_y_position, :get_line_at_y_position
|
282
|
+
|
283
|
+
# Returns the paragraph at the given character or caret position.
|
284
|
+
# @param pos [Integer]
|
285
|
+
# @param caretPosition [Boolean]
|
286
|
+
# @return [Wx::RTC::RichTextParagraph]
|
287
|
+
def get_paragraph_at_position(pos, caretPosition=false) end
|
288
|
+
alias_method :paragraph_at_position, :get_paragraph_at_position
|
289
|
+
|
290
|
+
# Returns the line size at the given position.
|
291
|
+
# @param pos [Integer]
|
292
|
+
# @param caretPosition [Boolean]
|
293
|
+
# @return [Wx::Size]
|
294
|
+
def get_line_size_at_position(pos, caretPosition=false) end
|
295
|
+
alias_method :line_size_at_position, :get_line_size_at_position
|
296
|
+
|
297
|
+
# Given a position, returns the number of the visible line (potentially many to a paragraph), starting from zero at the start of the buffer.
|
298
|
+
# We also have to pass a bool (startOfLine) that indicates whether the caret is being shown at the end of the previous line or at the start of the next, since the caret can be shown at two visible positions for the same underlying position.
|
299
|
+
# @param pos [Integer]
|
300
|
+
# @param caretPosition [Boolean]
|
301
|
+
# @param startOfLine [Boolean]
|
302
|
+
# @return [Integer]
|
303
|
+
def get_visible_line_number(pos, caretPosition=false, startOfLine=false) end
|
304
|
+
alias_method :visible_line_number, :get_visible_line_number
|
305
|
+
|
306
|
+
# Given a line number, returns the corresponding {Wx::RTC::RichTextLine} object.
|
307
|
+
# @param lineNumber [Integer]
|
308
|
+
# @return [Wx::RTC::RichTextLine]
|
309
|
+
def get_line_for_visible_line_number(lineNumber) end
|
310
|
+
alias_method :line_for_visible_line_number, :get_line_for_visible_line_number
|
311
|
+
|
312
|
+
# Returns the leaf object in a paragraph at this position.
|
313
|
+
# @param position [Integer]
|
314
|
+
# @return [Wx::RTC::RichTextObject]
|
315
|
+
def get_leaf_object_at_position(position) end
|
316
|
+
alias_method :leaf_object_at_position, :get_leaf_object_at_position
|
317
|
+
|
318
|
+
# Returns the paragraph by number.
|
319
|
+
# @param paragraphNumber [Integer]
|
320
|
+
# @return [Wx::RTC::RichTextParagraph]
|
321
|
+
def get_paragraph_at_line(paragraphNumber) end
|
322
|
+
alias_method :paragraph_at_line, :get_paragraph_at_line
|
323
|
+
|
324
|
+
# Returns the paragraph for a given line.
|
325
|
+
# @param line [Wx::RTC::RichTextLine]
|
326
|
+
# @return [Wx::RTC::RichTextParagraph]
|
327
|
+
def get_paragraph_for_line(line) end
|
328
|
+
alias_method :paragraph_for_line, :get_paragraph_for_line
|
329
|
+
|
330
|
+
# Returns the length of the paragraph.
|
331
|
+
# @param paragraphNumber [Integer]
|
332
|
+
# @return [Integer]
|
333
|
+
def get_paragraph_length(paragraphNumber) end
|
334
|
+
alias_method :paragraph_length, :get_paragraph_length
|
335
|
+
|
336
|
+
# Returns the number of paragraphs.
|
337
|
+
# @return [Integer]
|
338
|
+
def get_paragraph_count; end
|
339
|
+
alias_method :paragraph_count, :get_paragraph_count
|
340
|
+
|
341
|
+
# Returns the number of visible lines.
|
342
|
+
# @return [Integer]
|
343
|
+
def get_line_count; end
|
344
|
+
alias_method :line_count, :get_line_count
|
345
|
+
|
346
|
+
# Returns the text of the paragraph.
|
347
|
+
# @param paragraphNumber [Integer]
|
348
|
+
# @return [String]
|
349
|
+
def get_paragraph_text(paragraphNumber) end
|
350
|
+
alias_method :paragraph_text, :get_paragraph_text
|
351
|
+
|
352
|
+
# Converts zero-based line column and paragraph number to a position.
|
353
|
+
# @param x [Integer]
|
354
|
+
# @param y [Integer]
|
355
|
+
# @return [Integer]
|
356
|
+
def xy_to_position(x, y) end
|
357
|
+
|
358
|
+
# Converts a zero-based position to line column and paragraph number.
|
359
|
+
# @param pos [Integer]
|
360
|
+
# @return [Array(Boolean,Integer,Integer)]
|
361
|
+
def position_to_xy(pos) end
|
362
|
+
|
363
|
+
# @overload set_style(range, style, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
|
364
|
+
# Sets the attributes for the given range.
|
365
|
+
# Pass flags to determine how the attributes are set.
|
366
|
+
# The end point of range is specified as the last character position of the span of text. So, for example, to set the style for a character at position 5, use the range (5,5). This differs from the {Wx::RTC::RichTextCtrl} API, where you would specify (5,6).
|
367
|
+
# flags may contain a bit list of the following values:
|
368
|
+
#
|
369
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_NONE}: no style flag.
|
370
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this operation should be undoable.
|
371
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_OPTIMIZE}: specifies that the style should not be applied if the combined style at this point is already the style in question.
|
372
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY}: specifies that the style should only be applied to paragraphs, and not the content. This allows content styling to be preserved independently from that of e.g. a named paragraph style.
|
373
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_CHARACTERS_ONLY}: specifies that the style should only be applied to characters, and not the paragraph. This allows content styling to be preserved independently from that of e.g. a named paragraph style.
|
374
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_RESET}: resets (clears) the existing style before applying the new style.
|
375
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_REMOVE}: removes the specified style. Only the style flags are used in this operation.
|
376
|
+
# @param range [Range]
|
377
|
+
# @param style [Wx::RTC::RichTextAttr]
|
378
|
+
# @param flags [Integer]
|
379
|
+
# @return [Boolean]
|
380
|
+
# @overload set_style(obj, textAttr, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
|
381
|
+
# Sets the attributes for the given object only, for example the box attributes for a text box.
|
382
|
+
# @param obj [Wx::RTC::RichTextObject]
|
383
|
+
# @param textAttr [Wx::RTC::RichTextAttr]
|
384
|
+
# @param flags [Integer]
|
385
|
+
# @return [void]
|
386
|
+
def set_style(*args) end
|
387
|
+
|
388
|
+
# Returns the combined text attributes for this position.
|
389
|
+
# This function gets the uncombined style - that is, the attributes associated with the paragraph or character content, and not necessarily the combined attributes you see on the screen. To get the combined attributes, use {Wx::RTC::RichTextParagraphLayoutBox#get_style}. If you specify (any) paragraph attribute in style's flags, this function will fetch the paragraph attributes. Otherwise, it will return the character attributes.
|
390
|
+
# @param position [Integer]
|
391
|
+
# @param style [Wx::RTC::RichTextAttr]
|
392
|
+
# @return [Boolean]
|
393
|
+
def get_style(position, style) end
|
394
|
+
alias_method :style, :get_style
|
395
|
+
|
396
|
+
# Returns the content (uncombined) attributes for this position.
|
397
|
+
# @param position [Integer]
|
398
|
+
# @param style [Wx::RTC::RichTextAttr]
|
399
|
+
# @return [Boolean]
|
400
|
+
def get_uncombined_style(position, style) end
|
401
|
+
alias_method :uncombined_style, :get_uncombined_style
|
402
|
+
|
403
|
+
# Implementation helper for GetStyle.
|
404
|
+
# If combineStyles is true, combine base, paragraph and context attributes.
|
405
|
+
# @param position [Integer]
|
406
|
+
# @param style [Wx::RTC::RichTextAttr]
|
407
|
+
# @param combineStyles [Boolean]
|
408
|
+
# @return [Boolean]
|
409
|
+
def do_get_style(position, style, combineStyles=true) end
|
410
|
+
|
411
|
+
# This function gets a style representing the common, combined attributes in the given range.
|
412
|
+
# Attributes which have different values within the specified range will not be included the style flags.
|
413
|
+
# The function is used to get the attributes to display in the formatting dialog: the user can edit the attributes common to the selection, and optionally specify the values of further attributes to be applied uniformly.
|
414
|
+
# To apply the edited attributes, you can use {Wx::RTC::RichTextParagraphLayoutBox#set_style} specifying the {Wx::RTC::RICHTEXT_SETSTYLE_OPTIMIZE} flag, which will only apply attributes that are different from the combined attributes within the range. So, the user edits the effective, displayed attributes for the range, but his choice won't be applied unnecessarily to content. As an example, say the style for a paragraph specifies bold, but the paragraph text doesn't specify a weight. The combined style is bold, and this is what the user will see on-screen and in the formatting dialog. The user now specifies red text, in addition to bold. When applying with {Wx::RTC::RichTextParagraphLayoutBox#set_style}, the content font weight attributes won't be changed to bold because this is already specified by the paragraph. However the text colour attributes will be changed to show red.
|
415
|
+
# @param range [Range]
|
416
|
+
# @param style [Wx::RTC::RichTextAttr]
|
417
|
+
# @return [Boolean]
|
418
|
+
def get_style_for_range(range, style) end
|
419
|
+
alias_method :style_for_range, :get_style_for_range
|
420
|
+
|
421
|
+
# Combines style with currentStyle for the purpose of summarising the attributes of a range of content.
|
422
|
+
# @param currentStyle [Wx::RTC::RichTextAttr]
|
423
|
+
# @param style [Wx::RTC::RichTextAttr]
|
424
|
+
# @param clashingAttr [Wx::RTC::RichTextAttr]
|
425
|
+
# @param absentAttr [Wx::RTC::RichTextAttr]
|
426
|
+
# @return [Boolean]
|
427
|
+
def collect_style(currentStyle, style, clashingAttr, absentAttr) end
|
428
|
+
|
429
|
+
# @overload set_list_style(range, def_, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
|
430
|
+
# Sets the list attributes for the given range, passing flags to determine how the attributes are set.
|
431
|
+
# Either the style definition or the name of the style definition (in the current sheet) can be passed.
|
432
|
+
# flags is a bit list of the following:
|
433
|
+
#
|
434
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
|
435
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
|
436
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
|
437
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#number_list
|
438
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
|
439
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style.
|
440
|
+
# @param range [Range]
|
441
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
442
|
+
# @param flags [Integer]
|
443
|
+
# @param startFrom [Integer]
|
444
|
+
# @param specifiedLevel [Integer]
|
445
|
+
# @return [Boolean]
|
446
|
+
# @overload set_list_style(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
|
447
|
+
# @param range [Range]
|
448
|
+
# @param defName [String]
|
449
|
+
# @param flags [Integer]
|
450
|
+
# @param startFrom [Integer]
|
451
|
+
# @param specifiedLevel [Integer]
|
452
|
+
# @return [Boolean]
|
453
|
+
def set_list_style(*args) end
|
454
|
+
|
455
|
+
# Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.
|
456
|
+
# flags is a bit list of the following:
|
457
|
+
#
|
458
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
|
459
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
|
460
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
|
461
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#number_list
|
462
|
+
# @param range [Range]
|
463
|
+
# @param flags [Integer]
|
464
|
+
# @return [Boolean]
|
465
|
+
def clear_list_style(range, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
|
466
|
+
|
467
|
+
# @overload number_list(range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
|
468
|
+
# Numbers the paragraphs in the given range.
|
469
|
+
# Pass flags to determine how the attributes are set. Either the style definition or the name of the style definition (in the current sheet) can be passed.
|
470
|
+
# flags is a bit list of the following:
|
471
|
+
#
|
472
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
|
473
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
|
474
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
|
475
|
+
#
|
476
|
+
# def can be NULL to indicate that the existing list style should be used.
|
477
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
|
478
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
|
479
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style
|
480
|
+
# @param range [Range]
|
481
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
482
|
+
# @param flags [Integer]
|
483
|
+
# @param startFrom [Integer]
|
484
|
+
# @param specifiedLevel [Integer]
|
485
|
+
# @return [Boolean]
|
486
|
+
# @overload number_list(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
|
487
|
+
# @param range [Range]
|
488
|
+
# @param defName [String]
|
489
|
+
# @param flags [Integer]
|
490
|
+
# @param startFrom [Integer]
|
491
|
+
# @param specifiedLevel [Integer]
|
492
|
+
# @return [Boolean]
|
493
|
+
def number_list(*args) end
|
494
|
+
|
495
|
+
# @overload promote_list(promoteBy, range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
|
496
|
+
# Promotes the list items within the given range.
|
497
|
+
# A positive promoteBy produces a smaller indent, and a negative number produces a larger indent. Pass flags to determine how the attributes are set. Either the style definition or the name of the style definition (in the current sheet) can be passed.
|
498
|
+
# flags is a bit list of the following:
|
499
|
+
#
|
500
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
|
501
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
|
502
|
+
# - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
|
503
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
|
504
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
|
505
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style
|
506
|
+
# @param promoteBy [Integer]
|
507
|
+
# @param range [Range]
|
508
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
509
|
+
# @param flags [Integer]
|
510
|
+
# @param specifiedLevel [Integer]
|
511
|
+
# @return [Boolean]
|
512
|
+
# @overload promote_list(promoteBy, range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
|
513
|
+
# @param promoteBy [Integer]
|
514
|
+
# @param range [Range]
|
515
|
+
# @param defName [String]
|
516
|
+
# @param flags [Integer]
|
517
|
+
# @param specifiedLevel [Integer]
|
518
|
+
# @return [Boolean]
|
519
|
+
def promote_list(*args) end
|
520
|
+
|
521
|
+
# Helper for NumberList and PromoteList, that does renumbering and promotion simultaneously def can be NULL/empty to indicate that the existing list style should be used.
|
522
|
+
# @param range [Range]
|
523
|
+
# @param promotionRange [Range]
|
524
|
+
# @param promoteBy [Integer]
|
525
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
526
|
+
# @param flags [Integer]
|
527
|
+
# @param startFrom [Integer]
|
528
|
+
# @param specifiedLevel [Integer]
|
529
|
+
# @return [Boolean]
|
530
|
+
def do_number_list(range, promotionRange, promoteBy, def_, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) end
|
531
|
+
|
532
|
+
# Fills in the attributes for numbering a paragraph after previousParagraph.
|
533
|
+
# @param previousParagraph [Wx::RTC::RichTextParagraph]
|
534
|
+
# @param attr [Wx::RTC::RichTextAttr]
|
535
|
+
# @return [Boolean]
|
536
|
+
def find_next_paragraph_number(previousParagraph, attr) end
|
537
|
+
|
538
|
+
# Sets the properties for the given range, passing flags to determine how the attributes are set.
|
539
|
+
# You can merge properties or replace them.
|
540
|
+
# The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the properties for a character at position 5, use the range (5,6).
|
541
|
+
# flags may contain a bit list of the following values:
|
542
|
+
#
|
543
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_NONE}: no flag.
|
544
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO}: specifies that this operation should be undoable.
|
545
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_PARAGRAPHS_ONLY}: specifies that the properties should only be applied to paragraphs, and not the content.
|
546
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_CHARACTERS_ONLY}: specifies that the properties should only be applied to characters, and not the paragraph.
|
547
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_RESET}: resets (clears) the existing properties before applying the new properties.
|
548
|
+
# - {Wx::RTC::RICHTEXT_SETPROPERTIES_REMOVE}: removes the specified properties.
|
549
|
+
# @param range [Range]
|
550
|
+
# @param properties [Wx::RTC::RichTextProperties]
|
551
|
+
# @param flags [Integer]
|
552
|
+
# @return [Boolean]
|
553
|
+
def set_properties(range, properties, flags=Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO) end
|
554
|
+
|
555
|
+
# Sets with undo the properties for the given object.
|
556
|
+
# @param obj [Wx::RTC::RichTextObject]
|
557
|
+
# @param properties [Wx::RTC::RichTextProperties]
|
558
|
+
# @param objToSet [Wx::RTC::RichTextObject]
|
559
|
+
# @return [Boolean]
|
560
|
+
def set_object_properties_with_undo(obj, properties, objToSet=nil) end
|
561
|
+
|
562
|
+
# Test if this whole range has character attributes of the specified kind.
|
563
|
+
# If any of the attributes are different within the range, the test fails. You can use this to implement, for example, bold button updating. style must have flags indicating which attributes are of interest.
|
564
|
+
# @param range [Range]
|
565
|
+
# @param style [Wx::RTC::RichTextAttr]
|
566
|
+
# @return [Boolean]
|
567
|
+
def has_character_attributes(range, style) end
|
568
|
+
alias_method :has_character_attributes?, :has_character_attributes
|
569
|
+
|
570
|
+
# Test if this whole range has paragraph attributes of the specified kind.
|
571
|
+
# 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.
|
572
|
+
# @param range [Range]
|
573
|
+
# @param style [Wx::RTC::RichTextAttr]
|
574
|
+
# @return [Boolean]
|
575
|
+
def has_paragraph_attributes(range, style) end
|
576
|
+
alias_method :has_paragraph_attributes?, :has_paragraph_attributes
|
577
|
+
|
578
|
+
# Clones the object.
|
579
|
+
# @return [Wx::RTC::RichTextObject]
|
580
|
+
def clone; end
|
581
|
+
|
582
|
+
# Prepares the content just before insertion (or after buffer reset).
|
583
|
+
# Currently is only called if undo mode is on.
|
584
|
+
# @param container [Wx::RTC::RichTextParagraphLayoutBox]
|
585
|
+
# @return [void]
|
586
|
+
def prepare_content(container) end
|
587
|
+
|
588
|
+
# Insert fragment into this box at the given position.
|
589
|
+
# If partialParagraph is true, it is assumed that the last (or only) paragraph is just a piece of data with no paragraph marker.
|
590
|
+
# @param position [Integer]
|
591
|
+
# @param fragment [Wx::RTC::RichTextParagraphLayoutBox]
|
592
|
+
# @return [Boolean]
|
593
|
+
def insert_fragment(position, fragment) end
|
594
|
+
|
595
|
+
# Make a copy of the fragment corresponding to the given range, putting it in fragment.
|
596
|
+
# @param range [Range]
|
597
|
+
# @param fragment [Wx::RTC::RichTextParagraphLayoutBox]
|
598
|
+
# @return [Boolean]
|
599
|
+
def copy_fragment(range, fragment) end
|
600
|
+
|
601
|
+
# Apply the style sheet to the buffer, for example if the styles have changed.
|
602
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
603
|
+
# @return [Boolean]
|
604
|
+
def apply_style_sheet(styleSheet) end
|
605
|
+
|
606
|
+
# @param obj [Wx::RTC::RichTextParagraphLayoutBox]
|
607
|
+
# @return [void]
|
608
|
+
def copy(obj) end
|
609
|
+
|
610
|
+
# Calculate ranges.
|
611
|
+
# @return [void]
|
612
|
+
def update_ranges; end
|
613
|
+
|
614
|
+
# Get all the text.
|
615
|
+
# @return [String]
|
616
|
+
def get_text; end
|
617
|
+
alias_method :text, :get_text
|
618
|
+
|
619
|
+
# Sets the default style, affecting the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
|
620
|
+
# This is not cumulative - setting the default style will replace the previous default style.
|
621
|
+
# Setting it to a default attribute object makes new content take on the 'basic' style.
|
622
|
+
# @param style [Wx::RTC::RichTextAttr]
|
623
|
+
# @return [Boolean]
|
624
|
+
def set_default_style(style) end
|
625
|
+
alias_method :default_style=, :set_default_style
|
626
|
+
|
627
|
+
# Returns the current default style, affecting the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
|
628
|
+
# @return [Wx::RTC::RichTextAttr]
|
629
|
+
def get_default_style; end
|
630
|
+
alias_method :default_style, :get_default_style
|
631
|
+
|
632
|
+
# Sets the basic (overall) style.
|
633
|
+
# This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
|
634
|
+
# @param style [Wx::RTC::RichTextAttr]
|
635
|
+
# @return [void]
|
636
|
+
def set_basic_style(style) end
|
637
|
+
alias_method :basic_style=, :set_basic_style
|
638
|
+
|
639
|
+
# Returns the basic (overall) style.
|
640
|
+
# This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
|
641
|
+
# @return [Wx::RTC::RichTextAttr]
|
642
|
+
def get_basic_style; end
|
643
|
+
alias_method :basic_style, :get_basic_style
|
644
|
+
|
645
|
+
# Invalidates the buffer.
|
646
|
+
# With no argument, invalidates whole buffer.
|
647
|
+
# @param invalidRange [Range]
|
648
|
+
# @return [void]
|
649
|
+
def invalidate(invalidRange=Wx::RICHTEXT_ALL) end
|
650
|
+
|
651
|
+
# Do the (in)validation for this object only.
|
652
|
+
# @param invalidRange [Range]
|
653
|
+
# @return [void]
|
654
|
+
def do_invalidate(invalidRange) end
|
655
|
+
|
656
|
+
# Do the (in)validation both up and down the hierarchy.
|
657
|
+
# @param invalidRange [Range]
|
658
|
+
# @return [void]
|
659
|
+
def invalidate_hierarchy(invalidRange=Wx::RICHTEXT_ALL) end
|
660
|
+
|
661
|
+
# Gather information about floating objects.
|
662
|
+
# If untilObj is non-NULL, will stop getting information if the current object is this, since we will collect the rest later.
|
663
|
+
# @param availableRect [Wx::Rect]
|
664
|
+
# @param untilObj [Wx::RTC::RichTextObject]
|
665
|
+
# @return [Boolean]
|
666
|
+
def update_floating_objects(availableRect, untilObj=nil) end
|
667
|
+
|
668
|
+
# Get invalid range, rounding to entire paragraphs if argument is true.
|
669
|
+
# @param wholeParagraphs [Boolean]
|
670
|
+
# @return [Range]
|
671
|
+
def get_invalid_range(wholeParagraphs=false) end
|
672
|
+
alias_method :invalid_range, :get_invalid_range
|
673
|
+
|
674
|
+
# Returns true if this object needs layout.
|
675
|
+
# @return [Boolean]
|
676
|
+
def is_dirty; end
|
677
|
+
alias_method :dirty?, :is_dirty
|
678
|
+
|
679
|
+
# Returns the {Wx::RTC::RichTextFloatCollector} of this object.
|
680
|
+
# @return [Wx::RTC::RichTextFloatCollector]
|
681
|
+
def get_float_collector; end
|
682
|
+
alias_method :float_collector, :get_float_collector
|
683
|
+
|
684
|
+
# Returns the number of floating objects at this level.
|
685
|
+
# @return [Integer]
|
686
|
+
def get_floating_object_count; end
|
687
|
+
alias_method :floating_object_count, :get_floating_object_count
|
688
|
+
|
689
|
+
# Returns a list of floating objects.
|
690
|
+
# @param objects [Array<Wx::RTC::RichTextObject>]
|
691
|
+
# @return [Boolean]
|
692
|
+
def get_floating_objects(objects) end
|
693
|
+
alias_method :floating_objects, :get_floating_objects
|
694
|
+
|
695
|
+
end # RichTextParagraphLayoutBox
|
696
|
+
|
697
|
+
# This class implements the general concept of a field, an object that represents additional functionality such as a footnote, a bookmark, a page number, a table of contents, and so on.
|
698
|
+
# Extra information (such as a bookmark name) can be stored in the object properties.
|
699
|
+
# Drawing, layout, and property editing is delegated to classes derived from {Wx::RTC::RichTextFieldType}, such as instances of {Wx::RTC::RichTextFieldTypeStandard}; this makes the use of fields an efficient method of introducing extra functionality, since most of the information required to draw a field (such as a bitmap) is kept centrally in a single field type definition.
|
700
|
+
# The FieldType property, accessed by SetFieldType/GetFieldType, is used to retrieve the field type definition. So be careful not to overwrite this property.
|
701
|
+
# {Wx::RTC::RichTextField} is derived from {Wx::RTC::RichTextParagraphLayoutBox}, which means that it can contain its own read-only content, refreshed when the application calls the UpdateField function. Whether a field is treated as a composite or a single graphic is determined by the field type definition. If using {Wx::RTC::RichTextFieldTypeStandard}, passing the display type {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_COMPOSITE} to the field type definition causes the field to behave like a composite; the other display styles display a simple graphic. When implementing a composite field, you will still need to derive from {Wx::RTC::RichTextFieldTypeStandard} or {Wx::RTC::RichTextFieldType}, if only to implement UpdateField to refresh the field content appropriately. {Wx::RTC::RichTextFieldTypeStandard} is only one possible implementation, but covers common needs especially for simple, static fields using text or a bitmap.
|
702
|
+
# Register field types on application initialisation with the static function {Wx::RTC::RichTextBuffer.add_field_type}. They will be deleted automatically on application exit.
|
703
|
+
# An application can write a field to a control with {Wx::RTC::RichTextCtrl#write_field}, taking a field type, the properties for the field, and optional attributes.
|
704
|
+
# ===
|
705
|
+
#
|
706
|
+
# Category: Rich Text
|
707
|
+
# @see Wx::RTC::RichTextFieldTypeStandard
|
708
|
+
# @see Wx::RTC::RichTextFieldType
|
709
|
+
# @see Wx::RTC::RichTextParagraphLayoutBox
|
710
|
+
# @see Wx::RTC::RichTextProperties
|
711
|
+
# @see Wx::RTC::RichTextCtrl
|
712
|
+
#
|
713
|
+
#
|
714
|
+
#
|
715
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
716
|
+
class RichTextField < RichTextParagraphLayoutBox
|
717
|
+
|
718
|
+
# @overload initialize(fieldType=(''), parent=nil)
|
719
|
+
# Default constructor; optionally pass the parent object.
|
720
|
+
# @param fieldType [String]
|
721
|
+
# @param parent [Wx::RTC::RichTextObject]
|
722
|
+
# @return [Wx::RTC::RichTextField]
|
723
|
+
# @overload initialize(obj)
|
724
|
+
# Copy constructor.
|
725
|
+
# @param obj [Wx::RTC::RichTextField]
|
726
|
+
# @return [Wx::RTC::RichTextField]
|
727
|
+
def initialize(*args) end
|
728
|
+
|
729
|
+
# Draw the item, within the given range.
|
730
|
+
# Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
|
731
|
+
# @param dc [Wx::DC]
|
732
|
+
# @param context [Wx::RTC::RichTextDrawingContext]
|
733
|
+
# @param range [Range]
|
734
|
+
# @param selection [Wx::RTC::RichTextSelection]
|
735
|
+
# @param rect [Wx::Rect]
|
736
|
+
# @param descent [Integer]
|
737
|
+
# @param style [Integer]
|
738
|
+
# @return [Boolean]
|
739
|
+
def draw(dc, context, range, selection, rect, descent, style) end
|
740
|
+
|
741
|
+
# Lay the item out at the specified position with the given size constraint.
|
742
|
+
# Layout must set the cached size. rect is the available space for the object, and parentRect is the container that is used to determine a relative size or position (for example if a text box must be 50% of the parent text box).
|
743
|
+
# @param dc [Wx::DC]
|
744
|
+
# @param context [Wx::RTC::RichTextDrawingContext]
|
745
|
+
# @param rect [Wx::Rect]
|
746
|
+
# @param parentRect [Wx::Rect]
|
747
|
+
# @param style [Integer]
|
748
|
+
# @return [Boolean]
|
749
|
+
def layout(dc, context, rect, parentRect, style) end
|
750
|
+
|
751
|
+
# Returns the object size for the given range.
|
752
|
+
# Returns false if the range is invalid for this object.
|
753
|
+
# @param range [Range]
|
754
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
755
|
+
# @param descent [int]
|
756
|
+
# @param dc [Wx::DC]
|
757
|
+
# @param context [Wx::RTC::RichTextDrawingContext]
|
758
|
+
# @param flags [Integer]
|
759
|
+
# @param position [Array(Integer, Integer), Wx::Point]
|
760
|
+
# @param parentSize [Array(Integer, Integer), Wx::Size]
|
761
|
+
# @param partialExtents [Array,nil]
|
762
|
+
# @return [Boolean]
|
763
|
+
def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
|
764
|
+
alias_method :range_size, :get_range_size
|
765
|
+
|
766
|
+
# Returns the XML node name of this object.
|
767
|
+
# This must be overridden for {Wx::XmlNode}-base XML export to work.
|
768
|
+
# @return [String]
|
769
|
+
def get_xml_node_name; end
|
770
|
+
alias_method :xml_node_name, :get_xml_node_name
|
771
|
+
|
772
|
+
# Returns true if we can edit the object's properties via a GUI.
|
773
|
+
# @return [Boolean]
|
774
|
+
def can_edit_properties; end
|
775
|
+
alias_method :can_edit_properties?, :can_edit_properties
|
776
|
+
|
777
|
+
# Edits the object's properties via a GUI.
|
778
|
+
# @param parent [Wx::Window]
|
779
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
780
|
+
# @return [Boolean]
|
781
|
+
def edit_properties(parent, buffer) end
|
782
|
+
|
783
|
+
# Returns the label to be used for the properties context menu item.
|
784
|
+
# @return [String]
|
785
|
+
def get_properties_menu_label; end
|
786
|
+
alias_method :properties_menu_label, :get_properties_menu_label
|
787
|
+
|
788
|
+
# Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject is possible.
|
789
|
+
# For example, containers supporting text, such as a text box object, can accept the focus, but a table can't (set the focus to individual cells instead).
|
790
|
+
# @return [Boolean]
|
791
|
+
def accepts_focus; end
|
792
|
+
|
793
|
+
# Calculates the range of the object.
|
794
|
+
# By default, guess that the object is 1 unit long.
|
795
|
+
# @param start [Integer]
|
796
|
+
# @param end_ [Integer]
|
797
|
+
# @return [Integer]
|
798
|
+
def calculate_range(start, end_) end
|
799
|
+
|
800
|
+
# If a field has children, we don't want the user to be able to edit it.
|
801
|
+
# @return [Boolean]
|
802
|
+
def is_atomic; end
|
803
|
+
alias_method :atomic?, :is_atomic
|
804
|
+
|
805
|
+
# Returns true if the buffer is empty.
|
806
|
+
# @return [Boolean]
|
807
|
+
def is_empty; end
|
808
|
+
alias_method :empty?, :is_empty
|
809
|
+
|
810
|
+
# Returns true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
|
811
|
+
# @return [Boolean]
|
812
|
+
def is_top_level; end
|
813
|
+
alias_method :top_level?, :is_top_level
|
814
|
+
|
815
|
+
# @param fieldType [String]
|
816
|
+
# @return [void]
|
817
|
+
def set_field_type(fieldType) end
|
818
|
+
alias_method :field_type=, :set_field_type
|
819
|
+
|
820
|
+
# @return [String]
|
821
|
+
def get_field_type; end
|
822
|
+
alias_method :field_type, :get_field_type
|
823
|
+
|
824
|
+
# Update the field; delegated to the associated field type.
|
825
|
+
# This would typically expand the field to its value, if this is a dynamically changing and/or composite field.
|
826
|
+
# @param buffer [Wx::RTC::RichTextBuffer]
|
827
|
+
# @return [Boolean]
|
828
|
+
def update_field(buffer) end
|
829
|
+
|
830
|
+
# Clones the object.
|
831
|
+
# @return [Wx::RTC::RichTextObject]
|
832
|
+
def clone; end
|
833
|
+
|
834
|
+
# @param obj [Wx::RTC::RichTextField]
|
835
|
+
# @return [void]
|
836
|
+
def copy(obj) end
|
837
|
+
|
838
|
+
end # RichTextField
|
839
|
+
|
840
|
+
# A style sheet contains named paragraph and character styles that make it easy for a user to apply combinations of attributes to a {Wx::RTC::RichTextCtrl}.
|
841
|
+
# You can use a {Wx::RTC::RichTextStyleListBox} in your user interface to show available styles to the user, and allow application of styles to the control.
|
842
|
+
# ===
|
843
|
+
#
|
844
|
+
# Category: Rich Text
|
845
|
+
#
|
846
|
+
class RichTextStyleSheet < Object
|
847
|
+
|
848
|
+
# Constructor.
|
849
|
+
# @return [Wx::RTC::RichTextStyleSheet]
|
850
|
+
def initialize; end
|
851
|
+
|
852
|
+
# Adds a definition to the character style list.
|
853
|
+
# @param def_ [Wx::RTC::RichTextCharacterStyleDefinition]
|
854
|
+
# @return [Boolean]
|
855
|
+
def add_character_style(def_) end
|
856
|
+
|
857
|
+
# Adds a definition to the list style list.
|
858
|
+
# @param def_ [Wx::RTC::RichTextListStyleDefinition]
|
859
|
+
# @return [Boolean]
|
860
|
+
def add_list_style(def_) end
|
861
|
+
|
862
|
+
# Adds a definition to the paragraph style list.
|
863
|
+
# @param def_ [Wx::RTC::RichTextParagraphStyleDefinition]
|
864
|
+
# @return [Boolean]
|
865
|
+
def add_paragraph_style(def_) end
|
866
|
+
|
867
|
+
# Adds a definition to the appropriate style list.
|
868
|
+
# @param def_ [Wx::RTC::RichTextStyleDefinition]
|
869
|
+
# @return [Boolean]
|
870
|
+
def add_style(def_) end
|
871
|
+
|
872
|
+
# Deletes all styles.
|
873
|
+
# @return [void]
|
874
|
+
def delete_styles; end
|
875
|
+
|
876
|
+
# Finds a character definition by name.
|
877
|
+
# @param name [String]
|
878
|
+
# @param recurse [Boolean]
|
879
|
+
# @return [Wx::RTC::RichTextCharacterStyleDefinition]
|
880
|
+
def find_character_style(name, recurse=true) end
|
881
|
+
|
882
|
+
# Finds a list definition by name.
|
883
|
+
# @param name [String]
|
884
|
+
# @param recurse [Boolean]
|
885
|
+
# @return [Wx::RTC::RichTextListStyleDefinition]
|
886
|
+
def find_list_style(name, recurse=true) end
|
887
|
+
|
888
|
+
# Finds a paragraph definition by name.
|
889
|
+
# @param name [String]
|
890
|
+
# @param recurse [Boolean]
|
891
|
+
# @return [Wx::RTC::RichTextParagraphStyleDefinition]
|
892
|
+
def find_paragraph_style(name, recurse=true) end
|
893
|
+
|
894
|
+
# Finds a style definition by name.
|
895
|
+
# @param name [String]
|
896
|
+
# @return [Wx::RTC::RichTextStyleDefinition]
|
897
|
+
def find_style(name) end
|
898
|
+
|
899
|
+
# Returns the nth character style.
|
900
|
+
# @param n [Integer]
|
901
|
+
# @return [Wx::RTC::RichTextCharacterStyleDefinition]
|
902
|
+
def get_character_style(n) end
|
903
|
+
alias_method :character_style, :get_character_style
|
904
|
+
|
905
|
+
# Returns the number of character styles.
|
906
|
+
# @return [Integer]
|
907
|
+
def get_character_style_count; end
|
908
|
+
alias_method :character_style_count, :get_character_style_count
|
909
|
+
|
910
|
+
# Returns the style sheet's description.
|
911
|
+
# @return [Wx::String]
|
912
|
+
def get_description; end
|
913
|
+
alias_method :description, :get_description
|
914
|
+
|
915
|
+
# Returns the nth list style.
|
916
|
+
# @param n [Integer]
|
917
|
+
# @return [Wx::RTC::RichTextListStyleDefinition]
|
918
|
+
def get_list_style(n) end
|
919
|
+
alias_method :list_style, :get_list_style
|
920
|
+
|
921
|
+
# Returns the number of list styles.
|
922
|
+
# @return [Integer]
|
923
|
+
def get_list_style_count; end
|
924
|
+
alias_method :list_style_count, :get_list_style_count
|
925
|
+
|
926
|
+
# Returns the style sheet's name.
|
927
|
+
# @return [Wx::String]
|
928
|
+
def get_name; end
|
929
|
+
alias_method :name, :get_name
|
930
|
+
|
931
|
+
# Returns the nth paragraph style.
|
932
|
+
# @param n [Integer]
|
933
|
+
# @return [Wx::RTC::RichTextParagraphStyleDefinition]
|
934
|
+
def get_paragraph_style(n) end
|
935
|
+
alias_method :paragraph_style, :get_paragraph_style
|
936
|
+
|
937
|
+
# Returns the number of paragraph styles.
|
938
|
+
# @return [Integer]
|
939
|
+
def get_paragraph_style_count; end
|
940
|
+
alias_method :paragraph_style_count, :get_paragraph_style_count
|
941
|
+
|
942
|
+
# Removes a character style.
|
943
|
+
# @param def_ [Wx::RTC::RichTextStyleDefinition]
|
944
|
+
# @param deleteStyle [Boolean]
|
945
|
+
# @return [Boolean]
|
946
|
+
def remove_character_style(def_, deleteStyle=false) end
|
947
|
+
|
948
|
+
# Removes a list style.
|
949
|
+
# @param def_ [Wx::RTC::RichTextStyleDefinition]
|
950
|
+
# @param deleteStyle [Boolean]
|
951
|
+
# @return [Boolean]
|
952
|
+
def remove_list_style(def_, deleteStyle=false) end
|
953
|
+
|
954
|
+
# Removes a paragraph style.
|
955
|
+
# @param def_ [Wx::RTC::RichTextStyleDefinition]
|
956
|
+
# @param deleteStyle [Boolean]
|
957
|
+
# @return [Boolean]
|
958
|
+
def remove_paragraph_style(def_, deleteStyle=false) end
|
959
|
+
|
960
|
+
# Removes a style.
|
961
|
+
# @param def_ [Wx::RTC::RichTextStyleDefinition]
|
962
|
+
# @param deleteStyle [Boolean]
|
963
|
+
# @return [Boolean]
|
964
|
+
def remove_style(def_, deleteStyle=false) end
|
965
|
+
|
966
|
+
# Sets the style sheet's description.
|
967
|
+
# @param descr [String]
|
968
|
+
# @return [void]
|
969
|
+
def set_description(descr) end
|
970
|
+
alias_method :description=, :set_description
|
971
|
+
|
972
|
+
# Sets the style sheet's name.
|
973
|
+
# @param name [String]
|
974
|
+
# @return [void]
|
975
|
+
def set_name(name) end
|
976
|
+
alias_method :name=, :set_name
|
977
|
+
|
978
|
+
# Returns the sheet's properties.
|
979
|
+
# @return [Wx::RTC::RichTextProperties]
|
980
|
+
def get_properties; end
|
981
|
+
alias_method :properties, :get_properties
|
982
|
+
|
983
|
+
# Sets the sheet's properties.
|
984
|
+
# @param props [Wx::RTC::RichTextProperties]
|
985
|
+
# @return [void]
|
986
|
+
def set_properties(props) end
|
987
|
+
alias_method :properties=, :set_properties
|
988
|
+
|
989
|
+
end # RichTextStyleSheet
|
990
|
+
|
991
|
+
# This is a base class for paragraph and character styles.
|
992
|
+
# ===
|
993
|
+
#
|
994
|
+
# Category: Rich Text
|
995
|
+
#
|
996
|
+
class RichTextStyleDefinition < Object
|
997
|
+
|
998
|
+
# Constructor.
|
999
|
+
# @param name [String]
|
1000
|
+
# @return [Wx::RTC::RichTextStyleDefinition]
|
1001
|
+
def initialize(name=('')) end
|
1002
|
+
|
1003
|
+
# Returns the style on which this style is based.
|
1004
|
+
# @return [Wx::String]
|
1005
|
+
def get_base_style; end
|
1006
|
+
alias_method :base_style, :get_base_style
|
1007
|
+
|
1008
|
+
# Returns the style's description.
|
1009
|
+
# @return [Wx::String]
|
1010
|
+
def get_description; end
|
1011
|
+
alias_method :description, :get_description
|
1012
|
+
|
1013
|
+
# Returns the style name.
|
1014
|
+
# @return [Wx::String]
|
1015
|
+
def get_name; end
|
1016
|
+
alias_method :name, :get_name
|
1017
|
+
|
1018
|
+
# Returns the style attributes combined with the attributes of the specified base style, if any.
|
1019
|
+
# This function works recursively.
|
1020
|
+
# @param sheet [Wx::RTC::RichTextStyleSheet]
|
1021
|
+
# @return [Wx::RTC::RichTextAttr]
|
1022
|
+
def get_style_merged_with_base(sheet) end
|
1023
|
+
alias_method :style_merged_with_base, :get_style_merged_with_base
|
1024
|
+
|
1025
|
+
# Sets the name of the style that this style is based on.
|
1026
|
+
# @param name [String]
|
1027
|
+
# @return [void]
|
1028
|
+
def set_base_style(name) end
|
1029
|
+
alias_method :base_style=, :set_base_style
|
1030
|
+
|
1031
|
+
# Sets the style description.
|
1032
|
+
# @param descr [String]
|
1033
|
+
# @return [void]
|
1034
|
+
def set_description(descr) end
|
1035
|
+
alias_method :description=, :set_description
|
1036
|
+
|
1037
|
+
# Sets the name of the style.
|
1038
|
+
# @param name [String]
|
1039
|
+
# @return [void]
|
1040
|
+
def set_name(name) end
|
1041
|
+
alias_method :name=, :set_name
|
1042
|
+
|
1043
|
+
# Sets the attributes for this style.
|
1044
|
+
# @param style [Wx::RTC::RichTextAttr]
|
1045
|
+
# @return [void]
|
1046
|
+
def set_style(style) end
|
1047
|
+
alias_method :style=, :set_style
|
1048
|
+
|
1049
|
+
# Returns the definition's properties.
|
1050
|
+
# @return [Wx::RTC::RichTextProperties]
|
1051
|
+
def get_properties; end
|
1052
|
+
alias_method :properties, :get_properties
|
1053
|
+
|
1054
|
+
# Sets the definition's properties.
|
1055
|
+
# @param props [Wx::RTC::RichTextProperties]
|
1056
|
+
# @return [void]
|
1057
|
+
def set_properties(props) end
|
1058
|
+
alias_method :properties=, :set_properties
|
1059
|
+
|
1060
|
+
end # RichTextStyleDefinition
|
1061
|
+
|
1062
|
+
# This class represents a character style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
|
1063
|
+
# ===
|
1064
|
+
#
|
1065
|
+
# Category: Rich Text
|
1066
|
+
#
|
1067
|
+
class RichTextCharacterStyleDefinition < RichTextStyleDefinition
|
1068
|
+
|
1069
|
+
# Constructor.
|
1070
|
+
# @param name [String]
|
1071
|
+
# @return [Wx::RTC::RichTextCharacterStyleDefinition]
|
1072
|
+
def initialize(name=('')) end
|
1073
|
+
|
1074
|
+
end # RichTextCharacterStyleDefinition
|
1075
|
+
|
1076
|
+
# This class represents a paragraph style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
|
1077
|
+
# ===
|
1078
|
+
#
|
1079
|
+
# Category: Rich Text
|
1080
|
+
#
|
1081
|
+
class RichTextParagraphStyleDefinition < RichTextStyleDefinition
|
1082
|
+
|
1083
|
+
# Constructor.
|
1084
|
+
# @param name [String]
|
1085
|
+
# @return [Wx::RTC::RichTextParagraphStyleDefinition]
|
1086
|
+
def initialize(name=('')) end
|
1087
|
+
|
1088
|
+
# Returns the style that should normally follow this style.
|
1089
|
+
# @return [Wx::String]
|
1090
|
+
def get_next_style; end
|
1091
|
+
alias_method :next_style, :get_next_style
|
1092
|
+
|
1093
|
+
# Sets the style that should normally follow this style.
|
1094
|
+
# @param name [String]
|
1095
|
+
# @return [void]
|
1096
|
+
def set_next_style(name) end
|
1097
|
+
alias_method :next_style=, :set_next_style
|
1098
|
+
|
1099
|
+
end # RichTextParagraphStyleDefinition
|
1100
|
+
|
1101
|
+
# This class represents a list style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
|
1102
|
+
# The class inherits paragraph attributes from {Wx::RichTextStyleParagraphDefinition}, and adds 10 further attribute objects, one for each level of a list. When applying a list style to a paragraph, the list style's base and appropriate level attributes are merged with the paragraph's existing attributes.
|
1103
|
+
# You can apply a list style to one or more paragraphs using {Wx::RTC::RichTextCtrl#set_list_style}. You can also use the functions {Wx::RTC::RichTextCtrl#number_list}, {Wx::RTC::RichTextCtrl#promote_list} and {Wx::RTC::RichTextCtrl#clear_list_style}.
|
1104
|
+
# As usual, there are {Wx::RTC::RichTextBuffer} versions of these functions so that you can apply them directly to a buffer without requiring a control.
|
1105
|
+
# ===
|
1106
|
+
#
|
1107
|
+
# Category: Rich Text
|
1108
|
+
#
|
1109
|
+
class RichTextListStyleDefinition < RichTextParagraphStyleDefinition
|
1110
|
+
|
1111
|
+
# Constructor.
|
1112
|
+
# @param name [String]
|
1113
|
+
# @return [Wx::RTC::RichTextListStyleDefinition]
|
1114
|
+
def initialize(name=('')) end
|
1115
|
+
|
1116
|
+
# This function combines the given paragraph style with the list style's base attributes and level style matching the given indent, returning the combined attributes.
|
1117
|
+
# If styleSheet is specified, the base style for this definition will also be included in the result.
|
1118
|
+
# @param indent [Integer]
|
1119
|
+
# @param paraStyle [Wx::RTC::RichTextAttr]
|
1120
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1121
|
+
# @return [Wx::RTC::RichTextAttr]
|
1122
|
+
def combine_with_paragraph_style(indent, paraStyle, styleSheet=nil) end
|
1123
|
+
|
1124
|
+
# This function finds the level (from 0 to 9) whose indentation attribute mostly closely matches indent (expressed in tenths of a millimetre).
|
1125
|
+
# @param indent [Integer]
|
1126
|
+
# @return [Integer]
|
1127
|
+
def find_level_for_indent(indent) end
|
1128
|
+
|
1129
|
+
# This function combines the list style's base attributes and the level style matching the given indent, returning the combined attributes.
|
1130
|
+
# If styleSheet is specified, the base style for this definition will also be included in the result.
|
1131
|
+
# @param indent [Integer]
|
1132
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1133
|
+
# @return [Wx::RTC::RichTextAttr]
|
1134
|
+
def get_combined_style(indent, styleSheet=nil) end
|
1135
|
+
alias_method :combined_style, :get_combined_style
|
1136
|
+
|
1137
|
+
# This function combines the list style's base attributes and the style for the specified level, returning the combined attributes.
|
1138
|
+
# If styleSheet is specified, the base style for this definition will also be included in the result.
|
1139
|
+
# @param level [Integer]
|
1140
|
+
# @param styleSheet [Wx::RTC::RichTextStyleSheet]
|
1141
|
+
# @return [Wx::RTC::RichTextAttr]
|
1142
|
+
def get_combined_style_for_level(level, styleSheet=nil) end
|
1143
|
+
alias_method :combined_style_for_level, :get_combined_style_for_level
|
1144
|
+
|
1145
|
+
# Returns the style for the given level.
|
1146
|
+
# level is a number between 0 and 9.
|
1147
|
+
# @param level [Integer]
|
1148
|
+
# @return [Wx::RTC::RichTextAttr]
|
1149
|
+
def get_level_attributes(level) end
|
1150
|
+
alias_method :level_attributes, :get_level_attributes
|
1151
|
+
|
1152
|
+
# Returns the number of levels.
|
1153
|
+
# This is hard-wired to 10. Returns the style for the given level. level is a number between 0 and 9.
|
1154
|
+
# @return [Integer]
|
1155
|
+
def get_level_count; end
|
1156
|
+
alias_method :level_count, :get_level_count
|
1157
|
+
|
1158
|
+
# Returns true if the given level has numbered list attributes.
|
1159
|
+
# @param level [Integer]
|
1160
|
+
# @return [Boolean]
|
1161
|
+
def is_numbered(level) end
|
1162
|
+
alias_method :numbered?, :is_numbered
|
1163
|
+
|
1164
|
+
# Sets the style for the given level.
|
1165
|
+
# level is a number between 0 and 9. The first and most flexible form uses a {Wx::TextAttr} object, while the second form is for convenient setting of the most commonly-used attributes.
|
1166
|
+
# @param level [Integer]
|
1167
|
+
# @param attr [Wx::RTC::RichTextAttr]
|
1168
|
+
# @return [void]
|
1169
|
+
def set_level_attributes(level, attr) end
|
1170
|
+
|
1171
|
+
end # RichTextListStyleDefinition
|
1172
|
+
|
1173
|
+
|
1174
|
+
end
|