wxruby3 0.9.0.pre.beta.1-x64-mingw-ucrt-3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.wxconfig +17 -0
- data/.yardopts +13 -0
- data/CREDITS.md +52 -0
- data/LICENSE +21 -0
- data/README.md +138 -0
- data/bin/wxruby +9 -0
- data/bin/wxruby.bat +20 -0
- data/ext/mkrf_conf_bingem.rb +18 -0
- data/lib/wx/accessors.rb +63 -0
- data/lib/wx/aui/auimanager.rb +17 -0
- data/lib/wx/aui/auinotebook.rb +9 -0
- data/lib/wx/aui/events/evt_list.rb +143 -0
- data/lib/wx/aui/require.rb +9 -0
- data/lib/wx/aui.rb +14 -0
- data/lib/wx/core/acceleratortable.rb +28 -0
- data/lib/wx/core/animation.rb +18 -0
- data/lib/wx/core/app.rb +89 -0
- data/lib/wx/core/artprovider.rb +31 -0
- data/lib/wx/core/bitmap.rb +59 -0
- data/lib/wx/core/busycursor.rb +12 -0
- data/lib/wx/core/choice.rb +4 -0
- data/lib/wx/core/choicedlg.rb +54 -0
- data/lib/wx/core/clientdc.rb +13 -0
- data/lib/wx/core/clipboard.rb +56 -0
- data/lib/wx/core/collapsible_pane.rb +12 -0
- data/lib/wx/core/colour.rb +34 -0
- data/lib/wx/core/combobox.rb +4 -0
- data/lib/wx/core/controlwithitems.rb +10 -0
- data/lib/wx/core/data_object.rb +10 -0
- data/lib/wx/core/dataformat.rb +26 -0
- data/lib/wx/core/dc.rb +68 -0
- data/lib/wx/core/dialog.rb +50 -0
- data/lib/wx/core/event.rb +16 -0
- data/lib/wx/core/events/evt_list.rb +1378 -0
- data/lib/wx/core/evthandler.rb +240 -0
- data/lib/wx/core/ext.rb +58 -0
- data/lib/wx/core/font/encoding.rb +113 -0
- data/lib/wx/core/font.rb +22 -0
- data/lib/wx/core/functions.rb +44 -0
- data/lib/wx/core/gauge.rb +12 -0
- data/lib/wx/core/genericdirctrl.rb +36 -0
- data/lib/wx/core/hboxsizer.rb +6 -0
- data/lib/wx/core/helpcontroller.rb +5 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +24 -0
- data/lib/wx/core/helpprovider.rb +15 -0
- data/lib/wx/core/icon.rb +40 -0
- data/lib/wx/core/image.rb +68 -0
- data/lib/wx/core/imagelist.rb +3 -0
- data/lib/wx/core/listbox.rb +4 -0
- data/lib/wx/core/listctrl.rb +33 -0
- data/lib/wx/core/locale.rb +73 -0
- data/lib/wx/core/log.rb +20 -0
- data/lib/wx/core/menu.rb +78 -0
- data/lib/wx/core/menu_bar.rb +20 -0
- data/lib/wx/core/menuitem.rb +7 -0
- data/lib/wx/core/notebook.rb +9 -0
- data/lib/wx/core/object.rb +14 -0
- data/lib/wx/core/pen_info.rb +11 -0
- data/lib/wx/core/platform_info.rb +13 -0
- data/lib/wx/core/point.rb +92 -0
- data/lib/wx/core/real_point.rb +92 -0
- data/lib/wx/core/rect.rb +57 -0
- data/lib/wx/core/simplehelpprovider.rb +38 -0
- data/lib/wx/core/size.rb +86 -0
- data/lib/wx/core/sizer.rb +43 -0
- data/lib/wx/core/splash_screen.rb +44 -0
- data/lib/wx/core/textctrl.rb +8 -0
- data/lib/wx/core/timer.rb +105 -0
- data/lib/wx/core/toolbar.rb +37 -0
- data/lib/wx/core/toolbartool.rb +4 -0
- data/lib/wx/core/treectrl.rb +46 -0
- data/lib/wx/core/validator.rb +8 -0
- data/lib/wx/core/variant.rb +62 -0
- data/lib/wx/core/vboxsizer.rb +6 -0
- data/lib/wx/core/window.rb +95 -0
- data/lib/wx/core/window_update_locker.rb +12 -0
- data/lib/wx/core/xmlresource.rb +56 -0
- data/lib/wx/core.rb +61 -0
- data/lib/wx/doc/aui/auimanager.rb +12 -0
- data/lib/wx/doc/aui/auinotebook.rb +9 -0
- data/lib/wx/doc/colour_dialog.rb +15 -0
- data/lib/wx/doc/dc.rb +49 -0
- data/lib/wx/doc/enum.rb +66 -0
- data/lib/wx/doc/evthandler.rb +84 -0
- data/lib/wx/doc/extra/00_starting.md +154 -0
- data/lib/wx/doc/extra/01_packages.md +179 -0
- data/lib/wx/doc/extra/02_lifecycles.md +116 -0
- data/lib/wx/doc/extra/03_dialogs.md +57 -0
- data/lib/wx/doc/extra/04_enums.md +143 -0
- data/lib/wx/doc/extra/05_event-handling.md +166 -0
- data/lib/wx/doc/extra/06_geometry.md +56 -0
- data/lib/wx/doc/extra/07_colour_and_font.md +52 -0
- data/lib/wx/doc/extra/08_extensions.md +144 -0
- data/lib/wx/doc/extra/09_exceptions.md +54 -0
- data/lib/wx/doc/functions.rb +221 -0
- data/lib/wx/doc/gdi_common.rb +181 -0
- data/lib/wx/doc/gen/about_dialog_info.rb +315 -0
- data/lib/wx/doc/gen/accelerator.rb +172 -0
- data/lib/wx/doc/gen/accessible.rb +817 -0
- data/lib/wx/doc/gen/animation.rb +253 -0
- data/lib/wx/doc/gen/animation_ctrl.rb +129 -0
- data/lib/wx/doc/gen/any_button.rb +170 -0
- data/lib/wx/doc/gen/app.rb +363 -0
- data/lib/wx/doc/gen/art_provider.rb +497 -0
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +421 -0
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +39 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +323 -0
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +112 -0
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +163 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +46 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +109 -0
- data/lib/wx/doc/gen/aui/aui_notebook.rb +329 -0
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +179 -0
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +665 -0
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +372 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +147 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +437 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +272 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +195 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +224 -0
- data/lib/wx/doc/gen/aui/event_list.rb +162 -0
- data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +47 -0
- data/lib/wx/doc/gen/bitmap.rb +638 -0
- data/lib/wx/doc/gen/bitmap_button.rb +91 -0
- data/lib/wx/doc/gen/book_ctrl_base.rb +240 -0
- data/lib/wx/doc/gen/book_ctrl_event.rb +60 -0
- data/lib/wx/doc/gen/box_sizer.rb +66 -0
- data/lib/wx/doc/gen/brush.rb +219 -0
- data/lib/wx/doc/gen/buffered_dc.rb +95 -0
- data/lib/wx/doc/gen/buffered_paint_dc.rb +55 -0
- data/lib/wx/doc/gen/busy_info.rb +141 -0
- data/lib/wx/doc/gen/button.rb +133 -0
- data/lib/wx/doc/gen/calculate_layout_event.rb +59 -0
- data/lib/wx/doc/gen/calendar_ctrl.rb +236 -0
- data/lib/wx/doc/gen/calendar_date_attr.rb +137 -0
- data/lib/wx/doc/gen/calendar_event.rb +150 -0
- data/lib/wx/doc/gen/caret.rb +99 -0
- data/lib/wx/doc/gen/check_box.rb +145 -0
- data/lib/wx/doc/gen/check_list_box.rb +96 -0
- data/lib/wx/doc/gen/choice.rb +143 -0
- data/lib/wx/doc/gen/choicebook.rb +100 -0
- data/lib/wx/doc/gen/client_dc.rb +49 -0
- data/lib/wx/doc/gen/clipboard.rb +128 -0
- data/lib/wx/doc/gen/collapsible_pane.rb +120 -0
- data/lib/wx/doc/gen/collapsible_pane_event.rb +45 -0
- data/lib/wx/doc/gen/colour.rb +289 -0
- data/lib/wx/doc/gen/colour_data.rb +96 -0
- data/lib/wx/doc/gen/colour_dialog.rb +84 -0
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +89 -0
- data/lib/wx/doc/gen/colour_picker_event.rb +74 -0
- data/lib/wx/doc/gen/combo_box.rb +228 -0
- data/lib/wx/doc/gen/context_help_button.rb +34 -0
- data/lib/wx/doc/gen/control.rb +245 -0
- data/lib/wx/doc/gen/control_with_items.rb +339 -0
- data/lib/wx/doc/gen/core.rb +42 -0
- data/lib/wx/doc/gen/cursor.rb +127 -0
- data/lib/wx/doc/gen/data_format.rb +94 -0
- data/lib/wx/doc/gen/data_object.rb +439 -0
- data/lib/wx/doc/gen/date_event.rb +48 -0
- data/lib/wx/doc/gen/date_picker_ctrl.rb +127 -0
- data/lib/wx/doc/gen/dc.rb +1278 -0
- data/lib/wx/doc/gen/defs.rb +2832 -0
- data/lib/wx/doc/gen/dialog.rb +426 -0
- data/lib/wx/doc/gen/dir_dialog.rb +134 -0
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +80 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +103 -0
- data/lib/wx/doc/gen/drag_drop.rb +292 -0
- data/lib/wx/doc/gen/drag_image.rb +123 -0
- data/lib/wx/doc/gen/editable_list_box.rb +89 -0
- data/lib/wx/doc/gen/event.rb +911 -0
- data/lib/wx/doc/gen/event_list.rb +1512 -0
- data/lib/wx/doc/gen/events.rb +2499 -0
- data/lib/wx/doc/gen/evt_handler.rb +224 -0
- data/lib/wx/doc/gen/ext_help_controller.rb +100 -0
- data/lib/wx/doc/gen/file_dialog.rb +294 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +98 -0
- data/lib/wx/doc/gen/file_picker_ctrl.rb +107 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +119 -0
- data/lib/wx/doc/gen/find_replace_data.rb +59 -0
- data/lib/wx/doc/gen/find_replace_dialog.rb +44 -0
- data/lib/wx/doc/gen/flex_grid_sizer.rb +145 -0
- data/lib/wx/doc/gen/font.rb +1282 -0
- data/lib/wx/doc/gen/font_data.rb +132 -0
- data/lib/wx/doc/gen/font_dialog.rb +71 -0
- data/lib/wx/doc/gen/font_picker_ctrl.rb +120 -0
- data/lib/wx/doc/gen/font_picker_event.rb +64 -0
- data/lib/wx/doc/gen/frame.rb +276 -0
- data/lib/wx/doc/gen/fs_file.rb +269 -0
- data/lib/wx/doc/gen/functions.rb +10 -0
- data/lib/wx/doc/gen/gauge.rb +127 -0
- data/lib/wx/doc/gen/gb_sizer_item.rb +78 -0
- data/lib/wx/doc/gen/gcdc.rb +61 -0
- data/lib/wx/doc/gen/gdi_common.rb +1108 -0
- data/lib/wx/doc/gen/gdi_object.rb +29 -0
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +198 -0
- data/lib/wx/doc/gen/graphics_context.rb +764 -0
- data/lib/wx/doc/gen/graphics_object.rb +494 -0
- data/lib/wx/doc/gen/grid/event_list.rb +173 -0
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +33 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +279 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +31 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +32 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +44 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +31 -0
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +48 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +33 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +40 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +181 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +34 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +39 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +41 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +74 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +41 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +31 -0
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +98 -0
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +31 -0
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +45 -0
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +2381 -0
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +87 -0
- data/lib/wx/doc/gen/grid/grid_event.rb +96 -0
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +96 -0
- data/lib/wx/doc/gen/grid/grid_size_event.rb +71 -0
- data/lib/wx/doc/gen/grid/grid_string_table.rb +130 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +288 -0
- data/lib/wx/doc/gen/grid/grid_table_message.rb +73 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +298 -0
- data/lib/wx/doc/gen/grid_sizer.rb +135 -0
- data/lib/wx/doc/gen/help_controller.rb +136 -0
- data/lib/wx/doc/gen/help_provider.rb +80 -0
- data/lib/wx/doc/gen/html/event_list.rb +46 -0
- data/lib/wx/doc/gen/html/html_cell.rb +441 -0
- data/lib/wx/doc/gen/html/html_cell_event.rb +62 -0
- data/lib/wx/doc/gen/html/html_easy_printing.rb +169 -0
- data/lib/wx/doc/gen/html/html_help_controller.rb +256 -0
- data/lib/wx/doc/gen/html/html_help_data.rb +144 -0
- data/lib/wx/doc/gen/html/html_help_frame.rb +112 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +230 -0
- data/lib/wx/doc/gen/html/html_link_event.rb +36 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +150 -0
- data/lib/wx/doc/gen/html/html_printout.rb +87 -0
- data/lib/wx/doc/gen/html/html_window.rb +386 -0
- data/lib/wx/doc/gen/icon.rb +267 -0
- data/lib/wx/doc/gen/icon_location.rb +38 -0
- data/lib/wx/doc/gen/image.rb +1144 -0
- data/lib/wx/doc/gen/image_list.rb +181 -0
- data/lib/wx/doc/gen/keyboard_state.rb +124 -0
- data/lib/wx/doc/gen/list_box.rb +260 -0
- data/lib/wx/doc/gen/list_ctrl.rb +1542 -0
- data/lib/wx/doc/gen/list_event.rb +177 -0
- data/lib/wx/doc/gen/listbook.rb +100 -0
- data/lib/wx/doc/gen/locale.rb +4143 -0
- data/lib/wx/doc/gen/log.rb +505 -0
- data/lib/wx/doc/gen/mdi_client_window.rb +38 -0
- data/lib/wx/doc/gen/mdi_frame.rb +235 -0
- data/lib/wx/doc/gen/media_ctrl.rb +225 -0
- data/lib/wx/doc/gen/media_event.rb +109 -0
- data/lib/wx/doc/gen/memory_dc.rb +95 -0
- data/lib/wx/doc/gen/menu.rb +493 -0
- data/lib/wx/doc/gen/menu_bar.rb +247 -0
- data/lib/wx/doc/gen/menu_item.rb +333 -0
- data/lib/wx/doc/gen/message_dialog.rb +195 -0
- data/lib/wx/doc/gen/mini_frame.rb +72 -0
- data/lib/wx/doc/gen/mirror_dc.rb +29 -0
- data/lib/wx/doc/gen/mouse_state.rb +108 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +58 -0
- data/lib/wx/doc/gen/non_owned_window.rb +46 -0
- data/lib/wx/doc/gen/notebook.rb +220 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +75 -0
- data/lib/wx/doc/gen/object.rb +69 -0
- data/lib/wx/doc/gen/paint_dc.rb +34 -0
- data/lib/wx/doc/gen/palette.rb +90 -0
- data/lib/wx/doc/gen/panel.rb +96 -0
- data/lib/wx/doc/gen/pen.rb +484 -0
- data/lib/wx/doc/gen/pg/event_list.rb +102 -0
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +47 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +295 -0
- data/lib/wx/doc/gen/pg/pg_cell.rb +166 -0
- data/lib/wx/doc/gen/pg/pg_editor.rb +569 -0
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +161 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +2193 -0
- data/lib/wx/doc/gen/pg/pg_property.rb +1852 -0
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +327 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +619 -0
- data/lib/wx/doc/gen/pg/property_grid_event.rb +135 -0
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +847 -0
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +349 -0
- data/lib/wx/doc/gen/pg/property_grid_page.rb +265 -0
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +155 -0
- data/lib/wx/doc/gen/picker_base.rb +143 -0
- data/lib/wx/doc/gen/platform_info.rb +379 -0
- data/lib/wx/doc/gen/popup_window.rb +93 -0
- data/lib/wx/doc/gen/progress_dialog.rb +106 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +185 -0
- data/lib/wx/doc/gen/prt/event_list.rb +13 -0
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +38 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +32 -0
- data/lib/wx/doc/gen/prt/preview_frame.rb +39 -0
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +127 -0
- data/lib/wx/doc/gen/prt/print_data.rb +598 -0
- data/lib/wx/doc/gen/prt/print_dialog.rb +47 -0
- data/lib/wx/doc/gen/prt/printer.rb +428 -0
- data/lib/wx/doc/gen/prt/printer_dc.rb +35 -0
- data/lib/wx/doc/gen/query_layout_info_event.rb +98 -0
- data/lib/wx/doc/gen/radio_box.rb +258 -0
- data/lib/wx/doc/gen/radio_button.rb +128 -0
- data/lib/wx/doc/gen/rbn/event_list.rb +132 -0
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1652 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +227 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +40 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +400 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +58 -0
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +116 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +208 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +51 -0
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +129 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +232 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +41 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +321 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +36 -0
- data/lib/wx/doc/gen/region.rb +299 -0
- data/lib/wx/doc/gen/rtc/event_list.rb +121 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +2052 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2031 -0
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +146 -0
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +171 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +180 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +104 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +241 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +55 -0
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +153 -0
- data/lib/wx/doc/gen/sash_event.rb +133 -0
- data/lib/wx/doc/gen/sash_layout_window.rb +203 -0
- data/lib/wx/doc/gen/sash_window.rb +154 -0
- data/lib/wx/doc/gen/screen_dc.rb +27 -0
- data/lib/wx/doc/gen/scrolled_canvas.rb +317 -0
- data/lib/wx/doc/gen/scrolled_control.rb +317 -0
- data/lib/wx/doc/gen/scrolled_window.rb +337 -0
- data/lib/wx/doc/gen/simplebook.rb +93 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +74 -0
- data/lib/wx/doc/gen/sizer.rb +847 -0
- data/lib/wx/doc/gen/sizer_item.rb +227 -0
- data/lib/wx/doc/gen/slider.rb +316 -0
- data/lib/wx/doc/gen/spin_button.rb +124 -0
- data/lib/wx/doc/gen/spin_ctrl.rb +170 -0
- data/lib/wx/doc/gen/spin_event.rb +47 -0
- data/lib/wx/doc/gen/splash_screen.rb +83 -0
- data/lib/wx/doc/gen/splitter_event.rb +87 -0
- data/lib/wx/doc/gen/splitter_window.rb +357 -0
- data/lib/wx/doc/gen/static_bitmap.rb +126 -0
- data/lib/wx/doc/gen/static_box.rb +123 -0
- data/lib/wx/doc/gen/static_box_sizer.rb +67 -0
- data/lib/wx/doc/gen/static_line.rb +66 -0
- data/lib/wx/doc/gen/static_text.rb +98 -0
- data/lib/wx/doc/gen/status_bar.rb +203 -0
- data/lib/wx/doc/gen/stc/event_list.rb +217 -0
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4000 -0
- data/lib/wx/doc/gen/stc/styled_text_event.rb +7319 -0
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +74 -0
- data/lib/wx/doc/gen/svg_file_dc.rb +153 -0
- data/lib/wx/doc/gen/system_options.rb +109 -0
- data/lib/wx/doc/gen/system_settings.rb +481 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +94 -0
- data/lib/wx/doc/gen/task_bar_icon_event.rb +86 -0
- data/lib/wx/doc/gen/text_attr.rb +645 -0
- data/lib/wx/doc/gen/text_ctrl.rb +841 -0
- data/lib/wx/doc/gen/text_entry.rb +389 -0
- data/lib/wx/doc/gen/text_entry_dialog.rb +170 -0
- data/lib/wx/doc/gen/text_validator.rb +212 -0
- data/lib/wx/doc/gen/time_picker_ctrl.rb +103 -0
- data/lib/wx/doc/gen/timer.rb +103 -0
- data/lib/wx/doc/gen/timer_event.rb +73 -0
- data/lib/wx/doc/gen/tip_provider.rb +60 -0
- data/lib/wx/doc/gen/toggle_button.rb +84 -0
- data/lib/wx/doc/gen/tool_bar.rb +744 -0
- data/lib/wx/doc/gen/tool_tip.rb +73 -0
- data/lib/wx/doc/gen/toolbook.rb +103 -0
- data/lib/wx/doc/gen/top_level_window.rb +462 -0
- data/lib/wx/doc/gen/tree_ctrl.rb +863 -0
- data/lib/wx/doc/gen/tree_event.rb +101 -0
- data/lib/wx/doc/gen/treebook.rb +154 -0
- data/lib/wx/doc/gen/utils.rb +257 -0
- data/lib/wx/doc/gen/v_list_box.rb +224 -0
- data/lib/wx/doc/gen/v_scrolled_window.rb +224 -0
- data/lib/wx/doc/gen/validator.rb +73 -0
- data/lib/wx/doc/gen/variant.rb +340 -0
- data/lib/wx/doc/gen/window.rb +2414 -0
- data/lib/wx/doc/gen/window_dc.rb +35 -0
- data/lib/wx/doc/gen/window_disabler.rb +24 -0
- data/lib/wx/doc/gen/with_images.rb +73 -0
- data/lib/wx/doc/gen/wizard.rb +197 -0
- data/lib/wx/doc/gen/wizard_event.rb +105 -0
- data/lib/wx/doc/gen/wizard_page.rb +61 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +72 -0
- data/lib/wx/doc/gen/xml_node.rb +282 -0
- data/lib/wx/doc/gen/xml_resource.rb +304 -0
- data/lib/wx/doc/grid/grid.rb +20 -0
- data/lib/wx/doc/help_controller.rb +14 -0
- data/lib/wx/doc/html/html_help_controller.rb +8 -0
- data/lib/wx/doc/pg/events.rb +15 -0
- data/lib/wx/doc/pg/pg_property.rb +8 -0
- data/lib/wx/doc/pg/pgeditor.rb +21 -0
- data/lib/wx/doc/pg/property_grid.rb +48 -0
- data/lib/wx/doc/pg/property_grid_interface.rb +64 -0
- data/lib/wx/doc/prt/page_setup_dialog.rb +15 -0
- data/lib/wx/doc/prt/print_data.rb +9 -0
- data/lib/wx/doc/prt/print_dialog.rb +26 -0
- data/lib/wx/doc/prt/printer.rb +15 -0
- data/lib/wx/doc/rbn/ribbon_bar.rb +9 -0
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +9 -0
- data/lib/wx/doc/rbn/ribbon_gallery.rb +9 -0
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +9 -0
- data/lib/wx/doc/rtc/richtext_printing.rb +14 -0
- data/lib/wx/doc/screen_dc.rb +10 -0
- data/lib/wx/doc/stock_objects.rb +98 -0
- data/lib/wx/doc/stream.rb +38 -0
- data/lib/wx/doc/system_settings.rb +29 -0
- data/lib/wx/doc/treebook.rb +9 -0
- data/lib/wx/doc/variant.rb +163 -0
- data/lib/wx/doc/xml_resource.rb +19 -0
- data/lib/wx/global_const.rb +84 -0
- data/lib/wx/grid/events/evt_list.rb +156 -0
- data/lib/wx/grid/grid.rb +7 -0
- data/lib/wx/grid/keyword_defs.rb +10 -0
- data/lib/wx/grid/require.rb +9 -0
- data/lib/wx/grid.rb +14 -0
- data/lib/wx/helpers.rb +65 -0
- data/lib/wx/html/events/evt_list.rb +37 -0
- data/lib/wx/html/htmlhelpcontroller.rb +6 -0
- data/lib/wx/html/htmlwindow.rb +19 -0
- data/lib/wx/html/keyword_defs.rb +22 -0
- data/lib/wx/html/require.rb +10 -0
- data/lib/wx/html.rb +15 -0
- data/lib/wx/keyword_ctors.rb +226 -0
- data/lib/wx/keyword_defs.rb +487 -0
- data/lib/wx/pg/events/evt_list.rb +73 -0
- data/lib/wx/pg/events.rb +14 -0
- data/lib/wx/pg/keyword_defs.rb +15 -0
- data/lib/wx/pg/pg_editor.rb +13 -0
- data/lib/wx/pg/pg_properties.rb +24 -0
- data/lib/wx/pg/pg_property.rb +26 -0
- data/lib/wx/pg/property_grid.rb +56 -0
- data/lib/wx/pg/property_grid_interface.rb +33 -0
- data/lib/wx/pg/require.rb +12 -0
- data/lib/wx/pg.rb +14 -0
- data/lib/wx/prt/keyword_defs.rb +8 -0
- data/lib/wx/prt/page_setup_dialog.rb +15 -0
- data/lib/wx/prt/previewframe.rb +13 -0
- data/lib/wx/prt/require.rb +8 -0
- data/lib/wx/prt.rb +14 -0
- data/lib/wx/rbn/events/evt_list.rb +102 -0
- data/lib/wx/rbn/events.rb +4 -0
- data/lib/wx/rbn/keyword_defs.rb +43 -0
- data/lib/wx/rbn/require.rb +12 -0
- data/lib/wx/rbn/ribbon_art_provider.rb +10 -0
- data/lib/wx/rbn/ribbon_bar.rb +12 -0
- data/lib/wx/rbn/ribbon_button_bar.rb +26 -0
- data/lib/wx/rbn/ribbon_control.rb +25 -0
- data/lib/wx/rbn/ribbon_gallery.rb +26 -0
- data/lib/wx/rbn/ribbon_page.rb +15 -0
- data/lib/wx/rbn/ribbon_panel.rb +15 -0
- data/lib/wx/rbn/ribbon_tool_bar.rb +26 -0
- data/lib/wx/rbn.rb +14 -0
- data/lib/wx/rtc/events/evt_list.rb +98 -0
- data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
- data/lib/wx/rtc/ext.rb +15 -0
- data/lib/wx/rtc/keyword_defs.rb +17 -0
- data/lib/wx/rtc/require.rb +8 -0
- data/lib/wx/rtc.rb +15 -0
- data/lib/wx/stc/events/evt_list.rb +178 -0
- data/lib/wx/stc/keyword_defs.rb +8 -0
- data/lib/wx/stc/require.rb +7 -0
- data/lib/wx/stc.rb +14 -0
- data/lib/wx/version.rb +3 -0
- data/lib/wx/wxruby/base.rb +87 -0
- data/lib/wx/wxruby/cmd/sampler.rb +68 -0
- data/lib/wx/wxruby/cmd/test.rb +27 -0
- data/lib/wx.rb +14 -0
- 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 +220 -0
- data/rakelib/lib/config/cygwin.rb +6 -0
- data/rakelib/lib/config/linux.rb +78 -0
- data/rakelib/lib/config/macosx.rb +6 -0
- data/rakelib/lib/config/mingw.rb +133 -0
- data/rakelib/lib/config/netbsd.rb +6 -0
- data/rakelib/lib/config/unixish.rb +187 -0
- data/rakelib/lib/config.rb +673 -0
- data/rakelib/lib/ext/enum_chain.rb +22 -0
- data/rakelib/prepost.rake +91 -0
- data/rakelib/prepost.rb +26 -0
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +7 -0
- data/rakelib/yard/templates/default/layout/html/setup.rb +5 -0
- data/rakelib/yard/yard/relative_markdown_links/version.rb +8 -0
- data/rakelib/yard/yard/relative_markdown_links.rb +39 -0
- data/rakelib/yard/yard-custom-templates.rb +2 -0
- data/rakelib/yard/yard-relative_markdown_links.rb +4 -0
- data/samples/art/wxruby-128x128.png +0 -0
- data/samples/art/wxruby-256x256.png +0 -0
- data/samples/art/wxruby-64x64.png +0 -0
- data/samples/art/wxruby.ico +0 -0
- data/samples/art/wxruby.png +0 -0
- data/samples/aui/aui.rb +1321 -0
- data/samples/aui/tn_aui.png +0 -0
- data/samples/bigdemo/About.rbw +39 -0
- data/samples/bigdemo/ColorPanel.rbw +23 -0
- data/samples/bigdemo/GridSimple.rbw +78 -0
- data/samples/bigdemo/MDIDemo.rbw +57 -0
- data/samples/bigdemo/PopupMenu.rbw +146 -0
- data/samples/bigdemo/ShapedWindow.rbw +128 -0
- data/samples/bigdemo/Sizers.rbw +541 -0
- data/samples/bigdemo/bigdemo.rb +810 -0
- data/samples/bigdemo/demoTemplate.rbw +33 -0
- data/samples/bigdemo/helpfile.htb +0 -0
- data/samples/bigdemo/icons/Test 015.jpg +0 -0
- data/samples/bigdemo/icons/Test 015.png +0 -0
- data/samples/bigdemo/icons/choice.bmp +0 -0
- data/samples/bigdemo/icons/choice.xpm +27 -0
- data/samples/bigdemo/icons/combo.bmp +0 -0
- data/samples/bigdemo/icons/combo.xpm +27 -0
- data/samples/bigdemo/icons/copy.xpm +25 -0
- data/samples/bigdemo/icons/cut.xpm +24 -0
- data/samples/bigdemo/icons/gauge.bmp +0 -0
- data/samples/bigdemo/icons/gauge.xpm +27 -0
- data/samples/bigdemo/icons/help.xpm +25 -0
- data/samples/bigdemo/icons/list.bmp +0 -0
- data/samples/bigdemo/icons/list.xpm +27 -0
- data/samples/bigdemo/icons/mondrian.ico +0 -0
- data/samples/bigdemo/icons/mondrian.xpm +44 -0
- data/samples/bigdemo/icons/new.xpm +24 -0
- data/samples/bigdemo/icons/ogl.ico +0 -0
- data/samples/bigdemo/icons/ogl.xpm +45 -0
- data/samples/bigdemo/icons/open.xpm +26 -0
- data/samples/bigdemo/icons/paste.bmp +0 -0
- data/samples/bigdemo/icons/paste.xpm +38 -0
- data/samples/bigdemo/icons/pointy.png +0 -0
- data/samples/bigdemo/icons/preview.xpm +26 -0
- data/samples/bigdemo/icons/print.xpm +26 -0
- data/samples/bigdemo/icons/radio.bmp +0 -0
- data/samples/bigdemo/icons/radio.xpm +27 -0
- data/samples/bigdemo/icons/robert.xpm +415 -0
- data/samples/bigdemo/icons/sashtest.ico +0 -0
- data/samples/bigdemo/icons/save.xpm +25 -0
- data/samples/bigdemo/icons/smiles.bmp +0 -0
- data/samples/bigdemo/icons/smiles.xpm +39 -0
- data/samples/bigdemo/icons/smiley.ico +0 -0
- data/samples/bigdemo/icons/smiley.xpm +42 -0
- data/samples/bigdemo/icons/stattext.xpm +24 -0
- data/samples/bigdemo/icons/test2.bmp +0 -0
- data/samples/bigdemo/icons/test2.png +0 -0
- data/samples/bigdemo/icons/test2.xpm +79 -0
- data/samples/bigdemo/icons/text.bmp +0 -0
- data/samples/bigdemo/icons/text.xpm +27 -0
- data/samples/bigdemo/icons/tog1.bmp +0 -0
- data/samples/bigdemo/icons/tog1.xpm +38 -0
- data/samples/bigdemo/icons/tog2.bmp +0 -0
- data/samples/bigdemo/icons/tog2.xpm +38 -0
- data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
- data/samples/bigdemo/icons/wxwin.ico +0 -0
- data/samples/bigdemo/icons/wxwin16x16.png +0 -0
- data/samples/bigdemo/icons/wxwin16x16.xpm +25 -0
- data/samples/bigdemo/icons/wxwin32x32.png +0 -0
- data/samples/bigdemo/icons/wxwin48x48.png +0 -0
- data/samples/bigdemo/run.rb +91 -0
- data/samples/bigdemo/tips.txt +7 -0
- data/samples/bigdemo/utils.rb +12 -0
- data/samples/bigdemo/wxArtProvider.rbw +281 -0
- data/samples/bigdemo/wxBitmapButton.rbw +65 -0
- data/samples/bigdemo/wxButton.rbw +64 -0
- data/samples/bigdemo/wxCalendarCtrl.rbw +59 -0
- data/samples/bigdemo/wxCheckBox.rbw +50 -0
- data/samples/bigdemo/wxCheckListBox.rbw +65 -0
- data/samples/bigdemo/wxChoice.rbw +47 -0
- data/samples/bigdemo/wxChoicebook.rbw +78 -0
- data/samples/bigdemo/wxColourDialog.rbw +33 -0
- data/samples/bigdemo/wxComboBox.rbw +77 -0
- data/samples/bigdemo/wxCursor.rbw +136 -0
- data/samples/bigdemo/wxDialog.rbw +74 -0
- data/samples/bigdemo/wxDirDialog.rbw +29 -0
- data/samples/bigdemo/wxDragImage.rbw +70 -0
- data/samples/bigdemo/wxFileDialog.rbw +37 -0
- data/samples/bigdemo/wxFileDialog_Save.rbw +35 -0
- data/samples/bigdemo/wxFindReplaceDialog.rbw +82 -0
- data/samples/bigdemo/wxFontDialog.rbw +200 -0
- data/samples/bigdemo/wxFrame.rbw +53 -0
- data/samples/bigdemo/wxGauge.rbw +65 -0
- data/samples/bigdemo/wxGenericDirCtrl.rbw +74 -0
- data/samples/bigdemo/wxGrid.rbw +66 -0
- data/samples/bigdemo/wxHtmlHelpController.rbw +52 -0
- data/samples/bigdemo/wxListBox.rbw +140 -0
- data/samples/bigdemo/wxListCtrl_virtual.rbw +112 -0
- data/samples/bigdemo/wxMDIWindows.rbw +50 -0
- data/samples/bigdemo/wxMenu.rbw +247 -0
- data/samples/bigdemo/wxMessageDialog.rbw +27 -0
- data/samples/bigdemo/wxMiniFrame.rbw +70 -0
- data/samples/bigdemo/wxMultipleChoiceDialog.rbw +29 -0
- data/samples/bigdemo/wxNotebook.rbw +136 -0
- data/samples/bigdemo/wxProgressDialog.rbw +43 -0
- data/samples/bigdemo/wxRadioBox.rbw +72 -0
- data/samples/bigdemo/wxRadioButton.rbw +125 -0
- data/samples/bigdemo/wxSashWindow.rbw +141 -0
- data/samples/bigdemo/wxScrolledMessageDialog.rbw +57 -0
- data/samples/bigdemo/wxScrolledWindow.rbw +199 -0
- data/samples/bigdemo/wxSingleChoiceDialog.rbw +33 -0
- data/samples/bigdemo/wxSlider.rbw +42 -0
- data/samples/bigdemo/wxSpinButton.rbw +50 -0
- data/samples/bigdemo/wxSpinCtrl.rbw +51 -0
- data/samples/bigdemo/wxSplitterWindow.rbw +63 -0
- data/samples/bigdemo/wxStaticBitmap.rbw +47 -0
- data/samples/bigdemo/wxStaticText.rbw +55 -0
- data/samples/bigdemo/wxStatusBar.rbw +126 -0
- data/samples/bigdemo/wxTextCtrl.rbw +149 -0
- data/samples/bigdemo/wxTextEntryDialog.rbw +31 -0
- data/samples/bigdemo/wxToggleButton.rbw +49 -0
- data/samples/bigdemo/wxToolBar.rbw +131 -0
- data/samples/bigdemo/wxTreeCtrl.rbw +191 -0
- data/samples/calendar/calendar.rb +363 -0
- data/samples/calendar/tn_calendar.png +0 -0
- data/samples/caret/caret.rb +293 -0
- data/samples/caret/mondrian.xpm +44 -0
- data/samples/caret/tn_caret.png +0 -0
- data/samples/controls/books.rb +183 -0
- data/samples/controls/controls.rb +1143 -0
- data/samples/controls/get_item_sample.rb +117 -0
- data/samples/controls/icons/choice.xpm +27 -0
- data/samples/controls/icons/combo.xpm +27 -0
- data/samples/controls/icons/gauge.xpm +27 -0
- data/samples/controls/icons/list.xpm +27 -0
- data/samples/controls/icons/radio.xpm +27 -0
- data/samples/controls/icons/stattext.xpm +24 -0
- data/samples/controls/icons/text.xpm +27 -0
- data/samples/controls/mondrian.ico +0 -0
- data/samples/controls/mondrian.xpm +44 -0
- data/samples/controls/test2.bmp +0 -0
- data/samples/controls/tn_books.png +0 -0
- data/samples/controls/tn_controls.png +0 -0
- data/samples/controls/tn_get_item_sample.png +0 -0
- data/samples/dialogs/dialogs.rb +879 -0
- data/samples/dialogs/tips.txt +18 -0
- data/samples/dialogs/tn_dialogs.png +0 -0
- data/samples/dialogs/tn_wizard.png +0 -0
- data/samples/dialogs/wizard.rb +89 -0
- data/samples/dragdrop/dragdrop.rb +200 -0
- data/samples/dragdrop/tn_dragdrop.png +0 -0
- data/samples/drawing/SVGlogo24.xpm +310 -0
- data/samples/drawing/bitmap.rb +76 -0
- data/samples/drawing/bitmap_image.rb +131 -0
- data/samples/drawing/graphics_drawing.rb +257 -0
- data/samples/drawing/maths_images.rb +327 -0
- data/samples/drawing/rmagic_bitmap_image.rb +139 -0
- data/samples/drawing/ruby-logo.jpg +0 -0
- data/samples/drawing/svgtest.rb +373 -0
- data/samples/drawing/tn_bitmap.png +0 -0
- data/samples/drawing/tn_bitmap_image.png +0 -0
- data/samples/drawing/tn_graphics_drawing.png +0 -0
- data/samples/drawing/tn_maths_images.png +0 -0
- data/samples/drawing/tn_rmagic_bitmap_image.png +0 -0
- data/samples/drawing/tn_svgtest.png +0 -0
- data/samples/etc/choice.rb +82 -0
- data/samples/etc/miniframe.rb +92 -0
- data/samples/etc/sash.rb +140 -0
- data/samples/etc/scrollwin.rb +120 -0
- data/samples/etc/system_settings.rb +263 -0
- data/samples/etc/tn_choice.png +0 -0
- data/samples/etc/tn_miniframe.png +0 -0
- data/samples/etc/tn_sash.png +0 -0
- data/samples/etc/tn_scrollwin.png +0 -0
- data/samples/etc/tn_system_settings.png +0 -0
- data/samples/event/activation.rb +129 -0
- data/samples/event/event.rb +220 -0
- data/samples/event/threaded.rb +141 -0
- data/samples/event/tn_activation.png +0 -0
- data/samples/event/tn_event.png +0 -0
- data/samples/event/tn_threaded.png +0 -0
- data/samples/event/tn_update_ui_event.png +0 -0
- data/samples/event/update_ui_event.rb +91 -0
- data/samples/grid/grid.rb +224 -0
- data/samples/grid/gridtablebase.rb +178 -0
- data/samples/grid/tn_grid.png +0 -0
- data/samples/grid/tn_gridtablebase.png +0 -0
- data/samples/html/8859_2.htm +14 -0
- data/samples/html/cp1250.htm +19 -0
- data/samples/html/foo.png +0 -0
- data/samples/html/html.rb +278 -0
- data/samples/html/i18n.gif +0 -0
- data/samples/html/imagemap.htm +20 -0
- data/samples/html/imagemap.png +0 -0
- data/samples/html/listtest.htm +28 -0
- data/samples/html/pic.png +0 -0
- data/samples/html/pic2.bmp +0 -0
- data/samples/html/regres.htm +20 -0
- data/samples/html/subsup.html +42 -0
- data/samples/html/tables.htm +255 -0
- data/samples/html/test.htm +375 -0
- data/samples/html/tn_html.png +0 -0
- data/samples/mdi/mdi.rb +118 -0
- data/samples/mdi/tn_mdi.png +0 -0
- data/samples/minimal/minimal.rb +95 -0
- data/samples/minimal/mondrian.ico +0 -0
- data/samples/minimal/mondrian.png +0 -0
- data/samples/minimal/nothing.rb +38 -0
- data/samples/minimal/tn_minimal.png +0 -0
- data/samples/minimal/tn_nothing.png +0 -0
- data/samples/printing/mondrian.ico +0 -0
- data/samples/printing/mondrian.xpm +44 -0
- data/samples/printing/printing.rb +499 -0
- data/samples/printing/printing2.rb +251 -0
- data/samples/printing/sample-text.txt +213 -0
- data/samples/printing/tn_printing.png +0 -0
- data/samples/printing/tn_printing2.png +0 -0
- data/samples/propgrid/propgrid.rb +2707 -0
- data/samples/propgrid/propgrid_minimal.rb +106 -0
- data/samples/propgrid/sample_props.rb +434 -0
- data/samples/propgrid/tn_propgrid.png +0 -0
- data/samples/propgrid/tn_propgrid_minimal.png +0 -0
- data/samples/ribbon/align_center.xpm +21 -0
- data/samples/ribbon/align_left.xpm +21 -0
- data/samples/ribbon/align_right.xpm +21 -0
- data/samples/ribbon/aui_style.xpm +53 -0
- data/samples/ribbon/auto_crop_selection.xpm +55 -0
- data/samples/ribbon/auto_crop_selection_small.xpm +33 -0
- data/samples/ribbon/circle.xpm +38 -0
- data/samples/ribbon/circle_small.xpm +22 -0
- data/samples/ribbon/colours.xpm +25 -0
- data/samples/ribbon/cross.xpm +38 -0
- data/samples/ribbon/empty.xpm +23 -0
- data/samples/ribbon/expand_selection_h.xpm +46 -0
- data/samples/ribbon/expand_selection_v.xpm +46 -0
- data/samples/ribbon/eye.xpm +26 -0
- data/samples/ribbon/hexagon.xpm +38 -0
- data/samples/ribbon/msw_style.xpm +65 -0
- data/samples/ribbon/position_left.xpm +22 -0
- data/samples/ribbon/position_top.xpm +22 -0
- data/samples/ribbon/ribbon.rb +900 -0
- data/samples/ribbon/ribbon.xpm +54 -0
- data/samples/ribbon/selection_panel.xpm +23 -0
- data/samples/ribbon/square.xpm +38 -0
- data/samples/ribbon/tn_ribbon.png +0 -0
- data/samples/ribbon/triangle.xpm +38 -0
- data/samples/sample.xpm +475 -0
- data/samples/sampler/back.xpm +21 -0
- data/samples/sampler/copy.xpm +44 -0
- data/samples/sampler/cut.xpm +46 -0
- data/samples/sampler/editor.rb +534 -0
- data/samples/sampler/ext.rb +51 -0
- data/samples/sampler/filesave.xpm +42 -0
- data/samples/sampler/find.xpm +62 -0
- data/samples/sampler/findrepl.xpm +63 -0
- data/samples/sampler/forward.xpm +21 -0
- data/samples/sampler/paste.xpm +46 -0
- data/samples/sampler/play.xpm +24 -0
- data/samples/sampler/redo.xpm +58 -0
- data/samples/sampler/sample.rb +337 -0
- data/samples/sampler/stc_editor.rb +326 -0
- data/samples/sampler/txt_editor.rb +135 -0
- data/samples/sampler/undo.xpm +58 -0
- data/samples/sampler.rb +401 -0
- data/samples/splash/mobile.xpm +1835 -0
- data/samples/splash/splash.png +0 -0
- data/samples/splash/splash.rb +164 -0
- data/samples/splash/tn_splash.png +0 -0
- data/samples/text/document-open.png +0 -0
- data/samples/text/document-save.png +0 -0
- data/samples/text/edit-copy.png +0 -0
- data/samples/text/edit-cut.png +0 -0
- data/samples/text/edit-paste.png +0 -0
- data/samples/text/edit-redo.png +0 -0
- data/samples/text/edit-undo.png +0 -0
- data/samples/text/format-text-bold.png +0 -0
- data/samples/text/format-text-italic.png +0 -0
- data/samples/text/format-text-underline.png +0 -0
- data/samples/text/mondrian.ico +0 -0
- data/samples/text/mondrian.xpm +44 -0
- data/samples/text/preferences-desktop-font.png +0 -0
- data/samples/text/rich_textctrl.rb +326 -0
- data/samples/text/scintilla.rb +179 -0
- data/samples/text/textctrl.rb +124 -0
- data/samples/text/tn_rich_textctrl.png +0 -0
- data/samples/text/tn_scintilla.png +0 -0
- data/samples/text/tn_textctrl.png +0 -0
- data/samples/text/tn_unicode.png +0 -0
- data/samples/text/unicode.rb +238 -0
- data/samples/text/utf8.txt +15 -0
- data/samples/treectrl/checked.xpm +54 -0
- data/samples/treectrl/icon1.xpm +79 -0
- data/samples/treectrl/icon2.xpm +53 -0
- data/samples/treectrl/icon3.xpm +79 -0
- data/samples/treectrl/icon4.xpm +43 -0
- data/samples/treectrl/icon5.xpm +79 -0
- data/samples/treectrl/state1.xpm +145 -0
- data/samples/treectrl/state2.xpm +144 -0
- data/samples/treectrl/state3.xpm +142 -0
- data/samples/treectrl/state4.xpm +145 -0
- data/samples/treectrl/state5.xpm +85 -0
- data/samples/treectrl/tn_treectrl.png +0 -0
- data/samples/treectrl/treectrl.rb +1720 -0
- data/samples/treectrl/unchecked.xpm +30 -0
- data/samples/xrc/custom_dialog.xrc +46 -0
- data/samples/xrc/custom_xrc_sample.rb +84 -0
- data/samples/xrc/samples.xrc +46 -0
- data/samples/xrc/tn_xrc_sample.png +0 -0
- data/samples/xrc/xrc_sample.rb +86 -0
- data/tests/test_basic.rb +20 -0
- data/tests/test_clipboard.rb +241 -0
- data/tests/test_dialog.rb +28 -0
- data/tests/test_event_handling.rb +103 -0
- data/tests/test_events.rb +45 -0
- data/tests/test_geometry.rb +141 -0
- data/tests/test_intl.rb +107 -0
- data/tests/test_item_data.rb +120 -0
- data/tests/test_variant.rb +151 -0
- data/tests/testapp.rb +40 -0
- data/tests/testapp_noframe.rb +28 -0
- metadata +912 -0
@@ -0,0 +1,841 @@
|
|
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
|
8
|
+
|
9
|
+
#
|
10
|
+
TE_NO_VSCROLL = 2
|
11
|
+
|
12
|
+
#
|
13
|
+
TE_READONLY = 16
|
14
|
+
|
15
|
+
#
|
16
|
+
TE_MULTILINE = 32
|
17
|
+
|
18
|
+
#
|
19
|
+
TE_PROCESS_TAB = 64
|
20
|
+
|
21
|
+
#
|
22
|
+
TE_LEFT = 0
|
23
|
+
|
24
|
+
#
|
25
|
+
TE_CENTER = 256
|
26
|
+
|
27
|
+
#
|
28
|
+
TE_RIGHT = 512
|
29
|
+
|
30
|
+
#
|
31
|
+
TE_CENTRE = 256
|
32
|
+
|
33
|
+
#
|
34
|
+
TE_RICH = 128
|
35
|
+
|
36
|
+
#
|
37
|
+
TE_PROCESS_ENTER = 1024
|
38
|
+
|
39
|
+
#
|
40
|
+
TE_PASSWORD = 2048
|
41
|
+
|
42
|
+
#
|
43
|
+
TE_AUTO_URL = 4096
|
44
|
+
|
45
|
+
#
|
46
|
+
TE_NOHIDESEL = 8192
|
47
|
+
|
48
|
+
#
|
49
|
+
TE_DONTWRAP = 1073741824
|
50
|
+
|
51
|
+
#
|
52
|
+
TE_CHARWRAP = 16384
|
53
|
+
|
54
|
+
#
|
55
|
+
TE_WORDWRAP = 1
|
56
|
+
|
57
|
+
#
|
58
|
+
TE_BESTWRAP = 0
|
59
|
+
|
60
|
+
#
|
61
|
+
TE_RICH2 = 32768
|
62
|
+
|
63
|
+
#
|
64
|
+
TEXT_TYPE_ANY = 0
|
65
|
+
|
66
|
+
# One of the following values can be passed to {Wx::TextAttr#set_alignment} to determine paragraph alignment.
|
67
|
+
#
|
68
|
+
#
|
69
|
+
#
|
70
|
+
class TextAttrAlignment < Wx::Enum
|
71
|
+
|
72
|
+
#
|
73
|
+
#
|
74
|
+
TEXT_ALIGNMENT_DEFAULT = Wx::TextAttrAlignment.new(0)
|
75
|
+
|
76
|
+
#
|
77
|
+
#
|
78
|
+
TEXT_ALIGNMENT_LEFT = Wx::TextAttrAlignment.new(1)
|
79
|
+
|
80
|
+
#
|
81
|
+
#
|
82
|
+
TEXT_ALIGNMENT_CENTRE = Wx::TextAttrAlignment.new(2)
|
83
|
+
|
84
|
+
#
|
85
|
+
#
|
86
|
+
TEXT_ALIGNMENT_CENTER = Wx::TextAttrAlignment.new(2)
|
87
|
+
|
88
|
+
#
|
89
|
+
#
|
90
|
+
TEXT_ALIGNMENT_RIGHT = Wx::TextAttrAlignment.new(3)
|
91
|
+
|
92
|
+
# {Wx::TextAttrAlignment::TEXT_ALIGNMENT_JUSTIFIED} is unimplemented.
|
93
|
+
#
|
94
|
+
TEXT_ALIGNMENT_JUSTIFIED = Wx::TextAttrAlignment.new(4)
|
95
|
+
|
96
|
+
end # TextAttrAlignment
|
97
|
+
|
98
|
+
# The following values are passed in a bitlist to {Wx::TextAttr#set_flags} to determine what attributes will be considered when setting the attributes for a text control.
|
99
|
+
#
|
100
|
+
#
|
101
|
+
#
|
102
|
+
class TextAttrFlags < Wx::Enum
|
103
|
+
|
104
|
+
#
|
105
|
+
#
|
106
|
+
TEXT_ATTR_TEXT_COLOUR = Wx::TextAttrFlags.new(1)
|
107
|
+
|
108
|
+
#
|
109
|
+
#
|
110
|
+
TEXT_ATTR_BACKGROUND_COLOUR = Wx::TextAttrFlags.new(2)
|
111
|
+
|
112
|
+
#
|
113
|
+
#
|
114
|
+
TEXT_ATTR_FONT_FACE = Wx::TextAttrFlags.new(4)
|
115
|
+
|
116
|
+
#
|
117
|
+
#
|
118
|
+
TEXT_ATTR_FONT_POINT_SIZE = Wx::TextAttrFlags.new(8)
|
119
|
+
|
120
|
+
#
|
121
|
+
#
|
122
|
+
TEXT_ATTR_FONT_PIXEL_SIZE = Wx::TextAttrFlags.new(268435456)
|
123
|
+
|
124
|
+
#
|
125
|
+
#
|
126
|
+
TEXT_ATTR_FONT_WEIGHT = Wx::TextAttrFlags.new(16)
|
127
|
+
|
128
|
+
#
|
129
|
+
#
|
130
|
+
TEXT_ATTR_FONT_ITALIC = Wx::TextAttrFlags.new(32)
|
131
|
+
|
132
|
+
#
|
133
|
+
#
|
134
|
+
TEXT_ATTR_FONT_UNDERLINE = Wx::TextAttrFlags.new(64)
|
135
|
+
|
136
|
+
#
|
137
|
+
#
|
138
|
+
TEXT_ATTR_FONT_STRIKETHROUGH = Wx::TextAttrFlags.new(134217728)
|
139
|
+
|
140
|
+
#
|
141
|
+
#
|
142
|
+
TEXT_ATTR_FONT_ENCODING = Wx::TextAttrFlags.new(33554432)
|
143
|
+
|
144
|
+
#
|
145
|
+
#
|
146
|
+
TEXT_ATTR_FONT_FAMILY = Wx::TextAttrFlags.new(67108864)
|
147
|
+
|
148
|
+
#
|
149
|
+
#
|
150
|
+
TEXT_ATTR_FONT_SIZE = Wx::TextAttrFlags.new(268435464)
|
151
|
+
|
152
|
+
# Defined as the combination of all <code>wxTEXT_ATTR_FONT_*</code> values above.
|
153
|
+
#
|
154
|
+
TEXT_ATTR_FONT = Wx::TextAttrFlags.new(503316604)
|
155
|
+
|
156
|
+
#
|
157
|
+
#
|
158
|
+
TEXT_ATTR_ALIGNMENT = Wx::TextAttrFlags.new(128)
|
159
|
+
|
160
|
+
#
|
161
|
+
#
|
162
|
+
TEXT_ATTR_LEFT_INDENT = Wx::TextAttrFlags.new(256)
|
163
|
+
|
164
|
+
#
|
165
|
+
#
|
166
|
+
TEXT_ATTR_RIGHT_INDENT = Wx::TextAttrFlags.new(512)
|
167
|
+
|
168
|
+
#
|
169
|
+
#
|
170
|
+
TEXT_ATTR_TABS = Wx::TextAttrFlags.new(1024)
|
171
|
+
|
172
|
+
#
|
173
|
+
#
|
174
|
+
TEXT_ATTR_PARA_SPACING_AFTER = Wx::TextAttrFlags.new(2048)
|
175
|
+
|
176
|
+
#
|
177
|
+
#
|
178
|
+
TEXT_ATTR_PARA_SPACING_BEFORE = Wx::TextAttrFlags.new(4096)
|
179
|
+
|
180
|
+
#
|
181
|
+
#
|
182
|
+
TEXT_ATTR_LINE_SPACING = Wx::TextAttrFlags.new(8192)
|
183
|
+
|
184
|
+
#
|
185
|
+
#
|
186
|
+
TEXT_ATTR_CHARACTER_STYLE_NAME = Wx::TextAttrFlags.new(16384)
|
187
|
+
|
188
|
+
#
|
189
|
+
#
|
190
|
+
TEXT_ATTR_PARAGRAPH_STYLE_NAME = Wx::TextAttrFlags.new(32768)
|
191
|
+
|
192
|
+
#
|
193
|
+
#
|
194
|
+
TEXT_ATTR_LIST_STYLE_NAME = Wx::TextAttrFlags.new(65536)
|
195
|
+
|
196
|
+
#
|
197
|
+
#
|
198
|
+
TEXT_ATTR_BULLET_STYLE = Wx::TextAttrFlags.new(131072)
|
199
|
+
|
200
|
+
#
|
201
|
+
#
|
202
|
+
TEXT_ATTR_BULLET_NUMBER = Wx::TextAttrFlags.new(262144)
|
203
|
+
|
204
|
+
#
|
205
|
+
#
|
206
|
+
TEXT_ATTR_BULLET_TEXT = Wx::TextAttrFlags.new(524288)
|
207
|
+
|
208
|
+
#
|
209
|
+
#
|
210
|
+
TEXT_ATTR_BULLET_NAME = Wx::TextAttrFlags.new(1048576)
|
211
|
+
|
212
|
+
# Defined as the combination of all <code>wxTEXT_ATTR_BULLET_*</code> values above.
|
213
|
+
#
|
214
|
+
TEXT_ATTR_BULLET = Wx::TextAttrFlags.new(1966080)
|
215
|
+
|
216
|
+
#
|
217
|
+
#
|
218
|
+
TEXT_ATTR_URL = Wx::TextAttrFlags.new(2097152)
|
219
|
+
|
220
|
+
#
|
221
|
+
#
|
222
|
+
TEXT_ATTR_PAGE_BREAK = Wx::TextAttrFlags.new(4194304)
|
223
|
+
|
224
|
+
#
|
225
|
+
#
|
226
|
+
TEXT_ATTR_EFFECTS = Wx::TextAttrFlags.new(8388608)
|
227
|
+
|
228
|
+
#
|
229
|
+
#
|
230
|
+
TEXT_ATTR_OUTLINE_LEVEL = Wx::TextAttrFlags.new(16777216)
|
231
|
+
|
232
|
+
#
|
233
|
+
#
|
234
|
+
TEXT_ATTR_AVOID_PAGE_BREAK_BEFORE = Wx::TextAttrFlags.new(536870912)
|
235
|
+
|
236
|
+
#
|
237
|
+
#
|
238
|
+
TEXT_ATTR_AVOID_PAGE_BREAK_AFTER = Wx::TextAttrFlags.new(1073741824)
|
239
|
+
|
240
|
+
# Combines the styles {Wx::TextAttrFlags::TEXT_ATTR_FONT}, {Wx::TextAttrFlags::TEXT_ATTR_EFFECTS}, {Wx::TextAttrFlags::TEXT_ATTR_BACKGROUND_COLOUR}, {Wx::TextAttrFlags::TEXT_ATTR_TEXT_COLOUR}, {Wx::TextAttrFlags::TEXT_ATTR_CHARACTER_STYLE_NAME}, {Wx::TextAttrFlags::TEXT_ATTR_URL}.
|
241
|
+
#
|
242
|
+
TEXT_ATTR_CHARACTER = Wx::TextAttrFlags.new(513818751)
|
243
|
+
|
244
|
+
# Combines all the styles regarding text paragraphs.
|
245
|
+
#
|
246
|
+
TEXT_ATTR_PARAGRAPH = Wx::TextAttrFlags.new(1633664896)
|
247
|
+
|
248
|
+
# Combines all previous values.
|
249
|
+
#
|
250
|
+
TEXT_ATTR_ALL = Wx::TextAttrFlags.new(2147483647)
|
251
|
+
|
252
|
+
end # TextAttrFlags
|
253
|
+
|
254
|
+
# Styles for {Wx::TextAttr#set_bullet_style}.
|
255
|
+
#
|
256
|
+
# They can be combined together as a bitlist.
|
257
|
+
#
|
258
|
+
class TextAttrBulletStyle < Wx::Enum
|
259
|
+
|
260
|
+
#
|
261
|
+
#
|
262
|
+
TEXT_ATTR_BULLET_STYLE_NONE = Wx::TextAttrBulletStyle.new(0)
|
263
|
+
|
264
|
+
#
|
265
|
+
#
|
266
|
+
TEXT_ATTR_BULLET_STYLE_ARABIC = Wx::TextAttrBulletStyle.new(1)
|
267
|
+
|
268
|
+
#
|
269
|
+
#
|
270
|
+
TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER = Wx::TextAttrBulletStyle.new(2)
|
271
|
+
|
272
|
+
#
|
273
|
+
#
|
274
|
+
TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER = Wx::TextAttrBulletStyle.new(4)
|
275
|
+
|
276
|
+
#
|
277
|
+
#
|
278
|
+
TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER = Wx::TextAttrBulletStyle.new(8)
|
279
|
+
|
280
|
+
#
|
281
|
+
#
|
282
|
+
TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER = Wx::TextAttrBulletStyle.new(16)
|
283
|
+
|
284
|
+
#
|
285
|
+
#
|
286
|
+
TEXT_ATTR_BULLET_STYLE_SYMBOL = Wx::TextAttrBulletStyle.new(32)
|
287
|
+
|
288
|
+
# {Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_BITMAP} is unimplemented.
|
289
|
+
#
|
290
|
+
TEXT_ATTR_BULLET_STYLE_BITMAP = Wx::TextAttrBulletStyle.new(64)
|
291
|
+
|
292
|
+
#
|
293
|
+
#
|
294
|
+
TEXT_ATTR_BULLET_STYLE_PARENTHESES = Wx::TextAttrBulletStyle.new(128)
|
295
|
+
|
296
|
+
#
|
297
|
+
#
|
298
|
+
TEXT_ATTR_BULLET_STYLE_PERIOD = Wx::TextAttrBulletStyle.new(256)
|
299
|
+
|
300
|
+
#
|
301
|
+
#
|
302
|
+
TEXT_ATTR_BULLET_STYLE_STANDARD = Wx::TextAttrBulletStyle.new(512)
|
303
|
+
|
304
|
+
#
|
305
|
+
#
|
306
|
+
TEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS = Wx::TextAttrBulletStyle.new(1024)
|
307
|
+
|
308
|
+
#
|
309
|
+
#
|
310
|
+
TEXT_ATTR_BULLET_STYLE_OUTLINE = Wx::TextAttrBulletStyle.new(2048)
|
311
|
+
|
312
|
+
#
|
313
|
+
#
|
314
|
+
TEXT_ATTR_BULLET_STYLE_ALIGN_LEFT = Wx::TextAttrBulletStyle.new(0)
|
315
|
+
|
316
|
+
#
|
317
|
+
#
|
318
|
+
TEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT = Wx::TextAttrBulletStyle.new(4096)
|
319
|
+
|
320
|
+
#
|
321
|
+
#
|
322
|
+
TEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE = Wx::TextAttrBulletStyle.new(8192)
|
323
|
+
|
324
|
+
#
|
325
|
+
#
|
326
|
+
TEXT_ATTR_BULLET_STYLE_CONTINUATION = Wx::TextAttrBulletStyle.new(16384)
|
327
|
+
|
328
|
+
end # TextAttrBulletStyle
|
329
|
+
|
330
|
+
# Styles for {Wx::TextAttr#set_text_effects}.
|
331
|
+
#
|
332
|
+
# They can be combined together as a bitlist.
|
333
|
+
# Of these, only {Wx::TextAttrEffects::TEXT_ATTR_EFFECT_CAPITALS}, {Wx::TextAttrEffects::TEXT_ATTR_EFFECT_STRIKETHROUGH}, {Wx::TextAttrEffects::TEXT_ATTR_EFFECT_SUPERSCRIPT} and {Wx::TextAttrEffects::TEXT_ATTR_EFFECT_SUBSCRIPT} are implemented.
|
334
|
+
#
|
335
|
+
class TextAttrEffects < Wx::Enum
|
336
|
+
|
337
|
+
#
|
338
|
+
#
|
339
|
+
TEXT_ATTR_EFFECT_NONE = Wx::TextAttrEffects.new(0)
|
340
|
+
|
341
|
+
#
|
342
|
+
#
|
343
|
+
TEXT_ATTR_EFFECT_CAPITALS = Wx::TextAttrEffects.new(1)
|
344
|
+
|
345
|
+
#
|
346
|
+
#
|
347
|
+
TEXT_ATTR_EFFECT_SMALL_CAPITALS = Wx::TextAttrEffects.new(2)
|
348
|
+
|
349
|
+
#
|
350
|
+
#
|
351
|
+
TEXT_ATTR_EFFECT_STRIKETHROUGH = Wx::TextAttrEffects.new(4)
|
352
|
+
|
353
|
+
#
|
354
|
+
#
|
355
|
+
TEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH = Wx::TextAttrEffects.new(8)
|
356
|
+
|
357
|
+
#
|
358
|
+
#
|
359
|
+
TEXT_ATTR_EFFECT_SHADOW = Wx::TextAttrEffects.new(16)
|
360
|
+
|
361
|
+
#
|
362
|
+
#
|
363
|
+
TEXT_ATTR_EFFECT_EMBOSS = Wx::TextAttrEffects.new(32)
|
364
|
+
|
365
|
+
#
|
366
|
+
#
|
367
|
+
TEXT_ATTR_EFFECT_OUTLINE = Wx::TextAttrEffects.new(64)
|
368
|
+
|
369
|
+
#
|
370
|
+
#
|
371
|
+
TEXT_ATTR_EFFECT_ENGRAVE = Wx::TextAttrEffects.new(128)
|
372
|
+
|
373
|
+
#
|
374
|
+
#
|
375
|
+
TEXT_ATTR_EFFECT_SUPERSCRIPT = Wx::TextAttrEffects.new(256)
|
376
|
+
|
377
|
+
#
|
378
|
+
#
|
379
|
+
TEXT_ATTR_EFFECT_SUBSCRIPT = Wx::TextAttrEffects.new(512)
|
380
|
+
|
381
|
+
#
|
382
|
+
#
|
383
|
+
TEXT_ATTR_EFFECT_RTL = Wx::TextAttrEffects.new(1024)
|
384
|
+
|
385
|
+
#
|
386
|
+
#
|
387
|
+
TEXT_ATTR_EFFECT_SUPPRESS_HYPHENATION = Wx::TextAttrEffects.new(4096)
|
388
|
+
|
389
|
+
end # TextAttrEffects
|
390
|
+
|
391
|
+
# Convenience line spacing values; see {Wx::TextAttr#set_line_spacing}.
|
392
|
+
#
|
393
|
+
#
|
394
|
+
#
|
395
|
+
class TextAttrLineSpacing < Wx::Enum
|
396
|
+
|
397
|
+
#
|
398
|
+
#
|
399
|
+
TEXT_ATTR_LINE_SPACING_NORMAL = Wx::TextAttrLineSpacing.new(10)
|
400
|
+
|
401
|
+
#
|
402
|
+
#
|
403
|
+
TEXT_ATTR_LINE_SPACING_HALF = Wx::TextAttrLineSpacing.new(15)
|
404
|
+
|
405
|
+
#
|
406
|
+
#
|
407
|
+
TEXT_ATTR_LINE_SPACING_TWICE = Wx::TextAttrLineSpacing.new(20)
|
408
|
+
|
409
|
+
end # TextAttrLineSpacing
|
410
|
+
|
411
|
+
# Underline types that can be used in {Wx::TextAttr#set_font_underline}.
|
412
|
+
#
|
413
|
+
#
|
414
|
+
#
|
415
|
+
class TextAttrUnderlineType < Wx::Enum
|
416
|
+
|
417
|
+
#
|
418
|
+
#
|
419
|
+
TEXT_ATTR_UNDERLINE_NONE = Wx::TextAttrUnderlineType.new(0)
|
420
|
+
|
421
|
+
#
|
422
|
+
#
|
423
|
+
TEXT_ATTR_UNDERLINE_SOLID = Wx::TextAttrUnderlineType.new(1)
|
424
|
+
|
425
|
+
#
|
426
|
+
#
|
427
|
+
TEXT_ATTR_UNDERLINE_DOUBLE = Wx::TextAttrUnderlineType.new(2)
|
428
|
+
|
429
|
+
#
|
430
|
+
#
|
431
|
+
TEXT_ATTR_UNDERLINE_SPECIAL = Wx::TextAttrUnderlineType.new(3)
|
432
|
+
|
433
|
+
end # TextAttrUnderlineType
|
434
|
+
|
435
|
+
# Describes the possible return values of {Wx::TextCtrl#hit_test}.
|
436
|
+
#
|
437
|
+
# The element names correspond to the relationship between the point asked for and the character returned, e.g. {Wx::TextCtrlHitTestResult::TE_HT_BEFORE} means that the point is before (leftward or upward) it and so on.
|
438
|
+
#
|
439
|
+
class TextCtrlHitTestResult < Wx::Enum
|
440
|
+
|
441
|
+
# Indicates that {Wx::TextCtrl#hit_test} is not implemented on this platform.
|
442
|
+
#
|
443
|
+
TE_HT_UNKNOWN = Wx::TextCtrlHitTestResult.new(-2)
|
444
|
+
|
445
|
+
# The point is before the character returned.
|
446
|
+
#
|
447
|
+
TE_HT_BEFORE = Wx::TextCtrlHitTestResult.new(-1)
|
448
|
+
|
449
|
+
# The point is directly on the character returned.
|
450
|
+
#
|
451
|
+
TE_HT_ON_TEXT = Wx::TextCtrlHitTestResult.new(0)
|
452
|
+
|
453
|
+
# The point is below the last line of the control.
|
454
|
+
#
|
455
|
+
TE_HT_BELOW = Wx::TextCtrlHitTestResult.new(1)
|
456
|
+
|
457
|
+
# The point is beyond the end of line containing the character returned.
|
458
|
+
#
|
459
|
+
TE_HT_BEYOND = Wx::TextCtrlHitTestResult.new(2)
|
460
|
+
|
461
|
+
end # TextCtrlHitTestResult
|
462
|
+
|
463
|
+
#
|
464
|
+
#
|
465
|
+
EVT_TEXT = 10125
|
466
|
+
|
467
|
+
#
|
468
|
+
#
|
469
|
+
EVT_TEXT_ENTER = 10126
|
470
|
+
|
471
|
+
#
|
472
|
+
#
|
473
|
+
EVT_TEXT_URL = 10127
|
474
|
+
|
475
|
+
#
|
476
|
+
#
|
477
|
+
EVT_TEXT_MAXLEN = 10128
|
478
|
+
|
479
|
+
# A text control allows text to be displayed and edited.
|
480
|
+
# It may be single line or multi-line. Notice that a lot of methods of the text controls are found in the base {Wx::TextEntry} class which is a common base class for {Wx::TextCtrl} and other controls using a single line text entry field (e.g. {Wx::ComboBox}).
|
481
|
+
# === Styles
|
482
|
+
#
|
483
|
+
# This class supports the following styles:
|
484
|
+
#
|
485
|
+
# - {Wx::TE_PROCESS_ENTER}: The control will generate the event {Wx::EVT_TEXT_ENTER} that can be handled by the program. Otherwise, i.e. either if this style not specified at all, or it is used, but there is no event handler for this event or the event handler called {Wx::Event#skip} to avoid overriding the default handling, pressing Enter key is either processed internally by the control or used to activate the default button of the dialog, if any.
|
486
|
+
# - {Wx::TE_PROCESS_TAB}: Normally, TAB key is used for keyboard navigation and pressing it in a control switches focus to the next one. With this style, this won't happen and if the TAB is not otherwise processed (e.g. by {Wx::EVT_CHAR} event handler), a literal TAB character is inserted into the control. Notice that this style has no effect for single-line text controls when using {Wx::GTK}.
|
487
|
+
# - {Wx::TE_MULTILINE}: The text control allows multiple lines. If this style is not specified, line break characters should not be used in the controls value.
|
488
|
+
# - {Wx::TE_PASSWORD}: The text will be echoed as asterisks.
|
489
|
+
# - {Wx::TE_READONLY}: The text will not be user-editable.
|
490
|
+
# - {Wx::TE_RICH}: Use rich text control under MSW, this allows having more than 64KB of text in the control. This style is ignored under other platforms and it is recommended to use {Wx::TE_RICH2} instead of it under MSW.
|
491
|
+
# - {Wx::TE_RICH2}: Use rich text control version 2.0 or higher under MSW, this style is ignored under other platforms. Note that this style may be turned on automatically even if it is not used explicitly when creating a text control with a long (i.e. much more than 64KiB) initial text, as creating the control would simply fail in this case under MSW if neither this style nor {Wx::TE_RICH} is used.
|
492
|
+
# - {Wx::TE_AUTO_URL}: Highlight the URLs and generate the {Wx::TextUrlEvents} when mouse events occur over them.
|
493
|
+
# - {Wx::TE_NOHIDESEL}: By default, the Windows text control doesn't show the selection when it doesn't have focus - use this style to force it to always show it. It doesn't do anything under other platforms.
|
494
|
+
# - {Wx::HSCROLL}: A horizontal scrollbar will be created and used, so that text won't be wrapped.
|
495
|
+
# - {Wx::TE_NO_VSCROLL}: For multiline controls only: vertical scrollbar will never be created. This limits the amount of text which can be entered into the control to what can be displayed in it under {Wx::MSW} but not under {Wx::GTK} or {Wx::OSX}. Currently not implemented for the other platforms.
|
496
|
+
# - {Wx::TE_LEFT}: The text in the control will be left-justified (default).
|
497
|
+
# - {Wx::TE_CENTRE}: The text in the control will be centered ({Wx::MSW}, {Wx::GTK}, {Wx::OSX}).
|
498
|
+
# - {Wx::TE_RIGHT}: The text in the control will be right-justified ({Wx::MSW}, {Wx::GTK}, {Wx::OSX}).
|
499
|
+
# - {Wx::TE_DONTWRAP}: Same as {Wx::HSCROLL} style: don't wrap at all, show horizontal scrollbar instead.
|
500
|
+
# - {Wx::TE_CHARWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at any position ({Wx::Univ}, {Wx::GTK}, {Wx::OSX}).
|
501
|
+
# - {Wx::TE_WORDWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at word boundaries ({Wx::Univ}, {Wx::MSW}, {Wx::GTK}, {Wx::OSX}).
|
502
|
+
# - {Wx::TE_BESTWRAP}: For multiline controls only: wrap the lines at word boundaries or at any other character if there are words longer than the window width (this is the default).
|
503
|
+
# - {Wx::TE_CAPITALIZE}: On PocketPC and Smartphone, causes the first letter to be capitalized.
|
504
|
+
#
|
505
|
+
# Note that alignment styles ({Wx::TE_LEFT}, {Wx::TE_CENTRE} and {Wx::TE_RIGHT}) can be changed dynamically after control creation on {Wx::MSW}, {Wx::GTK} and {Wx::OSX}. {Wx::TE_READONLY}, {Wx::TE_PASSWORD} and wrapping styles can be dynamically changed under {Wx::GTK} but not {Wx::MSW}. The other styles can be only set during control creation.
|
506
|
+
#
|
507
|
+
# == wxTextCtrl Text Format
|
508
|
+
#
|
509
|
+
# The multiline text controls always store the text as a sequence of lines separated by <code>'\n'</code> characters, i.e. in the Unix text format even on non-Unix platforms. This allows the user code to ignore the differences between the platforms but at a price: the indices in the control such as those returned by {Wx::TextCtrl#get_insertion_point} or {Wx::TextCtrl#get_selection} can <b>not</b> be used as indices into the string returned by {Wx::TextCtrl#get_value} as they're going to be slightly off for platforms using <code>"\\r\\n"</code> as separator (as Windows does).
|
510
|
+
# Instead, if you need to obtain a substring between the 2 indices obtained from the control with the help of the functions mentioned above, you should use {Wx::TextCtrl#get_range}. And the indices themselves can only be passed to other methods, for example {Wx::TextCtrl#set_insertion_point} or {Wx::TextCtrl#set_selection}.
|
511
|
+
# To summarize: never use the indices returned by (multiline) {Wx::TextCtrl} as indices into the string it contains, but only as arguments to be passed back to the other {Wx::TextCtrl} methods. This problem doesn't arise for single-line platforms however where the indices in the control do correspond to the positions in the value string.
|
512
|
+
#
|
513
|
+
# == wxTextCtrl Positions and Coordinates
|
514
|
+
#
|
515
|
+
# It is possible to use either linear positions, i.e. roughly (but not always exactly, as explained in the previous section) the index of the character in the text contained in the control or X-Y coordinates, i.e. column and line of the character when working with this class and it provides the functions {Wx::TextCtrl#position_to_xy} and {Wx::TextCtrl#xy_to_position} to convert between the two.
|
516
|
+
# Additionally, a position in the control can be converted to its coordinates in pixels using {Wx::TextCtrl#position_to_coords} which can be useful to e.g. show a popup menu near the given character. And, in the other direction, {Wx::TextCtrl#hit_test} can be used to find the character under, or near, the given pixel coordinates.
|
517
|
+
# To be more precise, positions actually refer to the gaps between characters and not the characters themselves. Thus, position 0 is the one before the very first character in the control and so is a valid position even when the control is empty. And if the control contains a single character, it has two valid positions: 0 before this character and 1 after it. This, when the documentation of various functions mentions "invalid position", it doesn't consider the position just after the last character of the line to be invalid, only the positions beyond that one (e.g. 2 and greater in the single character example) are actually invalid.
|
518
|
+
#
|
519
|
+
# == wxTextCtrl Styles.
|
520
|
+
#
|
521
|
+
# Multi-line text controls support styling, i.e. provide a possibility to set colours and font for individual characters in it (note that under Windows {Wx::TE_RICH} style is required for style support). To use the styles you can either call {Wx::TextCtrl#set_default_style} before inserting the text or call {Wx::TextCtrl#set_style} later to change the style of the text already in the control (the first solution is much more efficient).
|
522
|
+
# In either case, if the style doesn't specify some of the attributes (for example you only want to set the text colour but without changing the font nor the text background), the values of the default style will be used for them. If there is no default style, the attributes of the text control itself are used.
|
523
|
+
# So the following code correctly describes what it does: the second call to {Wx::TextCtrl#set_default_style} doesn't change the text foreground colour (which stays red) while the last one doesn't change the background colour (which stays grey):
|
524
|
+
#
|
525
|
+
# text->SetDefaultStyle(wxTextAttr(*wxRED));
|
526
|
+
# text->AppendText("Red text\n");
|
527
|
+
# text->SetDefaultStyle(wxTextAttr(wxNullColour, *wxLIGHT_GREY));
|
528
|
+
# text->AppendText("Red on grey text\n");
|
529
|
+
# text->SetDefaultStyle(wxTextAttr(*wxBLUE));
|
530
|
+
# text->AppendText("Blue on grey text\n");
|
531
|
+
#
|
532
|
+
# == wxTextCtrl and C++ Streams
|
533
|
+
#
|
534
|
+
# This class multiply-inherits from std::streambuf (except for some really old compilers using non-standard iostream library), allowing code such as the following:
|
535
|
+
#
|
536
|
+
# wxTextCtrl *control = new wxTextCtrl(...);
|
537
|
+
#
|
538
|
+
# ostream stream(control)
|
539
|
+
#
|
540
|
+
# stream << 123.456 << " some text\n";
|
541
|
+
# stream.flush();
|
542
|
+
#
|
543
|
+
# Note that even if your build of wxWidgets doesn't support this (the symbol {Wx::HAS_TEXT_WINDOW_STREAM} has value of 0 then) you can still use {Wx::TextCtrl} itself in a stream-like manner:
|
544
|
+
#
|
545
|
+
# wxTextCtrl *control = new wxTextCtrl(...);
|
546
|
+
#
|
547
|
+
# *control << 123.456 << " some text\n";
|
548
|
+
#
|
549
|
+
# However the possibility to create a std::ostream associated with {Wx::TextCtrl} may be useful if you need to redirect the output of a function taking a std::ostream as parameter to a text control.
|
550
|
+
# Another commonly requested need is to redirect std::cout to the text control. This may be done in the following way:
|
551
|
+
#
|
552
|
+
# #include <iostream>
|
553
|
+
#
|
554
|
+
# wxTextCtrl *control = new wxTextCtrl(...);
|
555
|
+
#
|
556
|
+
# std::streambuf *sbOld = std::cout.rdbuf();
|
557
|
+
# std::cout.rdbuf(control);
|
558
|
+
#
|
559
|
+
# // use cout as usual, the output appears in the text control
|
560
|
+
# ...
|
561
|
+
#
|
562
|
+
# std::cout.rdbuf(sbOld);
|
563
|
+
#
|
564
|
+
# But wxWidgets provides a convenient class to make it even simpler so instead you may just do
|
565
|
+
#
|
566
|
+
# #include <iostream>
|
567
|
+
#
|
568
|
+
# wxTextCtrl *control = new wxTextCtrl(...);
|
569
|
+
#
|
570
|
+
# wxStreamToTextRedirector redirect(control);
|
571
|
+
#
|
572
|
+
# // all output to cout goes into the text control until the exit from
|
573
|
+
# // current scope
|
574
|
+
#
|
575
|
+
# See {Wx::StreamToTextRedirector} for more details.
|
576
|
+
#
|
577
|
+
# == Event Handling.
|
578
|
+
#
|
579
|
+
# The following commands are processed by default event handlers in {Wx::TextCtrl}: {Wx::StandardID::ID_CUT}, {Wx::StandardID::ID_COPY}, {Wx::StandardID::ID_PASTE}, {Wx::StandardID::ID_UNDO}, {Wx::StandardID::ID_REDO}. The associated UI update events are also processed automatically, when the control has the focus.
|
580
|
+
# === Events emitted by this class
|
581
|
+
#
|
582
|
+
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
|
583
|
+
# Event handler methods for events emitted by this class:
|
584
|
+
# - {Wx::EvtHandler#evt_text}(id, meth = nil, &block): Respond to a {Wx::EVT_TEXT} event, generated when the text changes. Notice that this event will be sent when the text controls contents changes whether this is due to user input or comes from the program itself (for example, if {Wx::TextCtrl#set_value} is called); see {Wx::TextCtrl#change_value} for a function which does not send this event. This event is however not sent during the control creation.
|
585
|
+
# - {Wx::EvtHandler#evt_text_enter}(id, meth = nil, &block): Respond to a {Wx::EVT_TEXT_ENTER} event, generated when enter is pressed in a text control which must have {Wx::TE_PROCESS_ENTER} style for this event to be generated.
|
586
|
+
# - {Wx::EvtHandler#evt_text_url}(id, meth = nil, &block): A mouse event occurred over an URL in the text control.
|
587
|
+
# - {Wx::EvtHandler#evt_text_maxlen}(id, meth = nil, &block): This event is generated when the user tries to enter more text into the control than the limit set by {Wx::TextCtrl#set_max_length}, see its description.
|
588
|
+
#
|
589
|
+
# ===
|
590
|
+
#
|
591
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
|
592
|
+
# </td><td> {Wx::GTK} Appearance
|
593
|
+
# </td><td> {Wx::OSX} Appearance
|
594
|
+
# </td></tr></table></div>
|
595
|
+
# @see Wx::TextCtrl#create
|
596
|
+
# @see Wx::Validator
|
597
|
+
#
|
598
|
+
#
|
599
|
+
class TextCtrl < Control
|
600
|
+
|
601
|
+
include Wx::TextEntry
|
602
|
+
|
603
|
+
# Enable the automatic replacement of new lines characters in a single-line text field with spaces under macOS.
|
604
|
+
# This feature is enabled by default and will replace any new line (<code>\n</code>) character entered into a single-line text field with the space character. Usually single-line text fields are not expected to hold multiple lines of text (that is what {Wx::TE_MULTILINE} is for, after all) and it is impossible to have multiple lines of text in them under non-Mac platforms. However, under macOS/Cocoa, a single-line text control can still show multiple lines and this function allows to lift the restriction preventing multiple lines from being entered unless {Wx::TE_MULTILINE} is specified.
|
605
|
+
# This function is only available for macOS/Cocoa. It also has no effect if the {Wx::TE_MULTILINE} flag is set on a text control.
|
606
|
+
#
|
607
|
+
# Availability: only available for the {Wx::OSX/Cocoa} port. {Wx::osx}
|
608
|
+
# @param enable [true,false]
|
609
|
+
# @return [void]
|
610
|
+
def osx_enable_new_line_replacement(enable) end
|
611
|
+
|
612
|
+
# @overload initialize()
|
613
|
+
# Default ctor.
|
614
|
+
# @return [TextCtrl]
|
615
|
+
# @overload initialize(parent, id, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR)
|
616
|
+
# Constructor, creating and showing a text control.
|
617
|
+
# The horizontal scrollbar ({Wx::HSCROLL} style flag) will only be created for multi-line text controls. Without a horizontal scrollbar, text lines that don't fit in the control's size will be wrapped (but no newline character is inserted). Single line controls don't have a horizontal scrollbar, the text is automatically scrolled so that the insertion point is always visible.
|
618
|
+
# @see Wx::TextCtrl#create
|
619
|
+
# @see Wx::Validator
|
620
|
+
# @param parent [Wx::Window] Parent window. Should not be NULL.
|
621
|
+
# @param id [Integer] Control identifier. A value of -1 denotes a default value.
|
622
|
+
# @param value [String] Default text value.
|
623
|
+
# @param pos [Array(Integer, Integer), Wx::Point] Text control position.
|
624
|
+
# @param size [Array(Integer, Integer), Wx::Size] Text control size.
|
625
|
+
# @param style [Integer] Window style. See {Wx::TextCtrl}.
|
626
|
+
# @param validator [Wx::Validator] Window validator.
|
627
|
+
# @param name [String] Window name.
|
628
|
+
# @return [TextCtrl]
|
629
|
+
def initialize(*args) end
|
630
|
+
|
631
|
+
# Creates the text control for two-step construction.
|
632
|
+
# This method should be called if the default constructor was used for the control creation. Its parameters have the same meaning as for the non-default constructor.
|
633
|
+
# @param parent [Wx::Window]
|
634
|
+
# @param id [Integer]
|
635
|
+
# @param value [String]
|
636
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
637
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
638
|
+
# @param style [Integer]
|
639
|
+
# @param validator [Wx::Validator]
|
640
|
+
# @param name [String]
|
641
|
+
# @return [void]
|
642
|
+
def create(parent, id, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR) end
|
643
|
+
|
644
|
+
# Resets the internal modified flag as if the current changes had been saved.
|
645
|
+
# @return [void]
|
646
|
+
def discard_edits; end
|
647
|
+
|
648
|
+
# Delete the undo history.
|
649
|
+
# Currently only implemented in {Wx::MSW} (for controls using {Wx::TE_RICH2} style only) and {Wx::OSX} (for multiline text controls only), does nothing in the other ports or for the controls not using the appropriate styles.
|
650
|
+
# @return [void]
|
651
|
+
def empty_undo_buffer; end
|
652
|
+
|
653
|
+
# This function inserts into the control the character which would have been inserted if the given key event had occurred in the text control.
|
654
|
+
# The event object should be the same as the one passed to EVT_KEY_DOWN handler previously by wxWidgets. Please note that this function doesn't currently work correctly for all keys under any platform but MSW.
|
655
|
+
# true if the event resulted in a change to the control, false otherwise.
|
656
|
+
# @param event [Wx::KeyEvent]
|
657
|
+
# @return [void]
|
658
|
+
def emulate_key_press(event) end
|
659
|
+
|
660
|
+
# Enable or disable native spell checking on this text control if it is available on the current platform.
|
661
|
+
# Currently this is supported in {Wx::MSW} (when running under Windows 8 or later), {Wx::GTK} when using GTK 3 and {Wx::OSX}. In addition, {Wx::MSW} requires that the text control has the {Wx::TE_RICH2} style set, while {Wx::OSX} requires that the control has the {Wx::TE_MULTILINE} style.
|
662
|
+
# When using {Wx::GTK}, this method only works if gspell library was available during the library build.
|
663
|
+
#
|
664
|
+
# true if proof checking has been successfully enabled or disabled, false otherwise (usually because the corresponding functionality is not available under the current platform or for this type of text control).
|
665
|
+
# @param options [Wx::TextProofOptions] A {Wx::TextProofOptions} object specifying the desired behaviour of the proof checker (e.g. language to use, spell check, grammar check, etc.) and whether the proof checks should be enabled at all. By default, spelling checks for the current language are enabled. Passing Wx::TextProofOptions#disable disables all the checks.
|
666
|
+
# @return [void]
|
667
|
+
def enable_proof_check(options=(Wx::TextProofOptions.default())) end
|
668
|
+
|
669
|
+
# Returns the style currently used for the new text.
|
670
|
+
#
|
671
|
+
# @see Wx::TextCtrl#set_default_style
|
672
|
+
# @return [Wx::TextAttr]
|
673
|
+
def get_default_style; end
|
674
|
+
alias_method :default_style, :get_default_style
|
675
|
+
|
676
|
+
# Gets the length of the specified line, not including any trailing newline character(s).
|
677
|
+
# The length of the line, or -1 if lineNo was invalid.
|
678
|
+
# @param lineNo [Integer] Line number (starting from zero).
|
679
|
+
# @return [Integer]
|
680
|
+
def get_line_length(lineNo) end
|
681
|
+
alias_method :line_length, :get_line_length
|
682
|
+
|
683
|
+
# Returns the contents of a given line in the text control, not including any trailing newline character(s).
|
684
|
+
# The contents of the line.
|
685
|
+
# @param lineNo [Integer] The line number, starting from zero.
|
686
|
+
# @return [String]
|
687
|
+
def get_line_text(lineNo) end
|
688
|
+
alias_method :line_text, :get_line_text
|
689
|
+
|
690
|
+
# Returns the number of lines in the text control buffer.
|
691
|
+
# The returned number is the number of logical lines, i.e. just the count of the number of newline characters in the control + 1, for {Wx::GTK} and {Wx::OSX}/Cocoa ports while it is the number of physical lines, i.e. the count of lines actually shown in the control, in {Wx::MSW}. Because of this discrepancy, it is not recommended to use this function.
|
692
|
+
# Note that even empty text controls have one line (where the insertion point is), so {Wx::TextCtrl#get_number_of_lines} never returns 0.
|
693
|
+
# @return [Integer]
|
694
|
+
def get_number_of_lines; end
|
695
|
+
alias_method :number_of_lines, :get_number_of_lines
|
696
|
+
|
697
|
+
# Returns the style at this position in the text control.
|
698
|
+
# Not all platforms support this function.
|
699
|
+
# true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).
|
700
|
+
# @see Wx::TextCtrl#set_style
|
701
|
+
# @see Wx::TextAttr
|
702
|
+
# @param position [Integer]
|
703
|
+
# @param style [Wx::TextAttr]
|
704
|
+
# @return [void]
|
705
|
+
def get_style(position, style) end
|
706
|
+
alias_method :style, :get_style
|
707
|
+
|
708
|
+
# Finds the row and column of the character at the specified point.
|
709
|
+
# If the return code is not {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} the row and column of the character closest to this position are returned, otherwise the output parameters are not modified.
|
710
|
+
# Please note that this function is currently only implemented in {Wx::Univ}, {Wx::MSW} and {Wx::GTK} ports and always returns {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} in the other ports.
|
711
|
+
# <b>{Wx::Perl} Note:</b> In {Wx::Perl} this function takes only the pt argument and returns a 3-element list (result, col, row).
|
712
|
+
# @see Wx::TextCtrl#position_to_xy
|
713
|
+
# @see Wx::TextCtrl#xy_to_position
|
714
|
+
# @param pt [Array(Integer, Integer), Wx::Point] The position of the point to check, in window device coordinates.
|
715
|
+
# @return [Array(TextCtrlHitTestResult,Integer,Integer)]
|
716
|
+
def hit_test(pt) end
|
717
|
+
|
718
|
+
# Returns true if the text has been modified by user.
|
719
|
+
# Note that calling {Wx::TextCtrl#set_value} doesn't make the control modified.
|
720
|
+
# @see Wx::TextCtrl#mark_dirty
|
721
|
+
# @return [void]
|
722
|
+
def is_modified; end
|
723
|
+
alias_method :modified?, :is_modified
|
724
|
+
|
725
|
+
# Returns true if this is a multi line edit control and false otherwise.
|
726
|
+
#
|
727
|
+
# @see Wx::TextCtrl#is_single_line
|
728
|
+
# @return [void]
|
729
|
+
def is_multi_line; end
|
730
|
+
alias_method :multi_line?, :is_multi_line
|
731
|
+
|
732
|
+
# Returns true if this is a single line edit control and false otherwise.
|
733
|
+
#
|
734
|
+
# @see Wx::TextCtrl#is_single_line
|
735
|
+
# @see Wx::TextCtrl#is_multi_line
|
736
|
+
# @return [void]
|
737
|
+
def is_single_line; end
|
738
|
+
alias_method :single_line?, :is_single_line
|
739
|
+
|
740
|
+
# Returns the current text proofing options.
|
741
|
+
# This function is implemented for the same platforms as {Wx::TextCtrl#enable_proof_check} and returns {Wx::TextProofOptions} with all checks disabled, i.e. such that Wx::TextProofOptions#any_checks_enabled returns false.
|
742
|
+
# @return [Wx::TextProofOptions]
|
743
|
+
def get_proof_check_options; end
|
744
|
+
alias_method :proof_check_options, :get_proof_check_options
|
745
|
+
|
746
|
+
# Loads and displays the named file, if it exists.
|
747
|
+
# true if successful, false otherwise.
|
748
|
+
# @param filename [String] The filename of the file to load.
|
749
|
+
# @param fileType [Integer] The type of file to load. This is currently ignored in {Wx::TextCtrl}.
|
750
|
+
# @return [void]
|
751
|
+
def load_file(filename, fileType=Wx::TEXT_TYPE_ANY) end
|
752
|
+
|
753
|
+
# Mark text as modified (dirty).
|
754
|
+
#
|
755
|
+
# @see Wx::TextCtrl#is_modified
|
756
|
+
# @return [void]
|
757
|
+
def mark_dirty; end
|
758
|
+
|
759
|
+
# This event handler function implements default drag and drop behaviour, which is to load the first dropped file into the control.
|
760
|
+
# This is not implemented on non-Windows platforms.
|
761
|
+
# @see Wx::DropFilesEvent
|
762
|
+
# @param event [Wx::DropFilesEvent] The drop files event.
|
763
|
+
# @return [void]
|
764
|
+
def on_drop_files(event) end
|
765
|
+
|
766
|
+
# Converts given position to a zero-based column, line number pair.
|
767
|
+
# true on success, false on failure (most likely due to a too large position parameter).
|
768
|
+
#
|
769
|
+
# <b>{Wx::Perl} Note:</b> In {Wx::Perl} this function takes only the pos argument and returns a 2-element list (x, y).
|
770
|
+
# @see Wx::TextCtrl#xy_to_position
|
771
|
+
# @param pos [Integer] Position.
|
772
|
+
# @return [Array(Integer, Integer), nil]
|
773
|
+
def position_to_xy(pos) end
|
774
|
+
|
775
|
+
# Converts given text position to client coordinates in pixels.
|
776
|
+
# This function allows finding where is the character at the given position displayed in the text control.
|
777
|
+
# Availability: only available for the {Wx::MSW}, {Wx::GTK} ports. {Wx::msw},{Wx::gtk} . Additionally, {Wx::GTK} only implements this method for multiline controls and {Wx::DEFAULT_POSITION} is always returned for the single line ones.
|
778
|
+
#
|
779
|
+
# On success returns a {Wx::Point} which contains client coordinates for the given position in pixels, otherwise returns {Wx::DEFAULT_POSITION}.
|
780
|
+
# @see Wx::TextCtrl#xy_to_position
|
781
|
+
# @see Wx::TextCtrl#position_to_xy
|
782
|
+
# @param pos [Integer] Text position in 0 to {Wx::TextCtrl#get_last_position} range (inclusive).
|
783
|
+
# @return [Wx::Point]
|
784
|
+
def position_to_coords(pos) end
|
785
|
+
|
786
|
+
# Saves the contents of the control in a text file.
|
787
|
+
# true if the operation was successful, false otherwise.
|
788
|
+
# @param filename [String] The name of the file in which to save the text.
|
789
|
+
# @param fileType [Integer] The type of file to save. This is currently ignored in {Wx::TextCtrl}.
|
790
|
+
# @return [void]
|
791
|
+
def save_file(filename=Wx::EMPTY_STRING, fileType=Wx::TEXT_TYPE_ANY) end
|
792
|
+
|
793
|
+
# Changes the default style to use for the new text which is going to be added to the control.
|
794
|
+
# This applies both to the text added programmatically using {Wx::TextCtrl#write_text} or {Wx::TextCtrl#append_text} and to the text entered by the user interactively.
|
795
|
+
# If either of the font, foreground, or background colour is not set in style, the values of the previous default style are used for them. If the previous default style didn't set them either, the global font or colours of the text control itself are used as fall back.
|
796
|
+
# However if the style parameter is the default {Wx::TextAttr}, then the default style is just reset (instead of being combined with the new style which wouldn't change it at all).
|
797
|
+
#
|
798
|
+
# true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).
|
799
|
+
# @see Wx::TextCtrl#get_default_style
|
800
|
+
# @param style [Wx::TextAttr] The style for the new text.
|
801
|
+
# @return [void]
|
802
|
+
def set_default_style(style) end
|
803
|
+
alias_method :default_style=, :set_default_style
|
804
|
+
|
805
|
+
# Marks the control as being modified by the user or not.
|
806
|
+
#
|
807
|
+
# @see Wx::TextCtrl#mark_dirty
|
808
|
+
# @see Wx::TextCtrl#discard_edits
|
809
|
+
# @param modified [true,false]
|
810
|
+
# @return [void]
|
811
|
+
def set_modified(modified) end
|
812
|
+
alias_method :modified=, :set_modified
|
813
|
+
|
814
|
+
# Changes the style of the given range.
|
815
|
+
# If any attribute within style is not set, the corresponding attribute from {Wx::TextCtrl#get_default_style} is used.
|
816
|
+
#
|
817
|
+
# true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).
|
818
|
+
# @see Wx::TextCtrl#get_style
|
819
|
+
# @see Wx::TextAttr
|
820
|
+
# @param start [Integer] The start of the range to change.
|
821
|
+
# @param end_ [Integer]
|
822
|
+
# @param style [Wx::TextAttr] The new style for the range.
|
823
|
+
# @return [void]
|
824
|
+
def set_style(start, end_, style) end
|
825
|
+
|
826
|
+
# Makes the line containing the given position visible.
|
827
|
+
# @param pos [Integer] The position that should be visible.
|
828
|
+
# @return [void]
|
829
|
+
def show_position(pos) end
|
830
|
+
|
831
|
+
# Converts the given zero based column and line number to a position.
|
832
|
+
# The position value, or -1 if x or y was invalid.
|
833
|
+
# @param x [Integer] The column number.
|
834
|
+
# @param y [Integer] The line number.
|
835
|
+
# @return [Integer]
|
836
|
+
def xy_to_position(x, y) end
|
837
|
+
|
838
|
+
end # TextCtrl
|
839
|
+
|
840
|
+
|
841
|
+
end
|