wxruby3 0.9.1-x64-mingw-ucrt → 0.9.3-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/INSTALL.md +35 -29
- data/README.md +24 -15
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/aui/aui_tab_ctrl.rb +18 -0
- data/lib/wx/aui/auinotebook.rb +6 -2
- data/lib/wx/aui/require.rb +1 -0
- data/lib/wx/core/app.rb +2 -2
- data/lib/wx/core/bitmap_combobox.rb +17 -21
- data/lib/wx/core/collapsible_pane.rb +1 -1
- data/lib/wx/core/combobox.rb +13 -3
- data/lib/wx/core/controlwithitems.rb +40 -128
- data/lib/wx/core/enum.rb +17 -1
- data/lib/wx/core/event.rb +6 -1
- data/lib/wx/core/events/evt_list.rb +5 -4
- data/lib/wx/core/evthandler.rb +8 -2
- data/lib/wx/core/generic_validator.rb +312 -0
- data/lib/wx/core/listbox.rb +2 -2
- data/lib/wx/core/log.rb +1 -1
- data/lib/wx/core/menu.rb +10 -0
- data/lib/wx/core/notebook.rb +6 -2
- data/lib/wx/core/owner_drawn_combobox.rb +45 -0
- data/lib/wx/core/size.rb +4 -0
- data/lib/wx/core/sizer.rb +12 -2
- data/lib/wx/core/standard_paths.rb +22 -0
- data/lib/wx/core/task_bar_button.rb +19 -0
- data/lib/wx/core/text_entry.rb +4 -1
- data/lib/wx/core/textctrl.rb +11 -1
- data/lib/wx/core/{treectrl.rb → tree_ctrl.rb} +31 -12
- data/lib/wx/core/validator.rb +70 -5
- data/lib/wx/core/window.rb +13 -7
- data/lib/wx/doc/app.rb +48 -38
- data/lib/wx/doc/art_locator.rb +48 -43
- data/lib/wx/doc/aui/auimanager.rb +16 -8
- data/lib/wx/doc/aui/auinotebook.rb +20 -5
- data/lib/wx/doc/clipboard.rb +11 -7
- data/lib/wx/doc/colour_dialog.rb +14 -10
- data/lib/wx/doc/comboctrl.rb +18 -0
- data/lib/wx/doc/controlwithitems.rb +34 -8
- data/lib/wx/doc/data_object.rb +2 -2
- data/lib/wx/doc/date_picker_ctrl.rb +23 -0
- data/lib/wx/doc/editable_listbox.rb +44 -0
- data/lib/wx/doc/enum.rb +15 -0
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/evthandler.rb +113 -108
- data/lib/wx/doc/extra/12_client_data.md +89 -0
- data/lib/wx/doc/extra/13_validators.md +139 -0
- data/lib/wx/doc/font.rb +1 -0
- data/lib/wx/doc/gc_dc.rb +6 -1
- data/lib/wx/doc/gdi_common.rb +4 -0
- data/lib/wx/doc/gen/about_dialog_info.rb +26 -2
- data/lib/wx/doc/gen/accelerator.rb +19 -4
- data/lib/wx/doc/gen/accessible.rb +48 -47
- data/lib/wx/doc/gen/activity_indicator.rb +10 -4
- data/lib/wx/doc/gen/animation.rb +19 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +16 -7
- data/lib/wx/doc/gen/any_button.rb +22 -1
- data/lib/wx/doc/gen/app.rb +41 -5
- data/lib/wx/doc/gen/app_traits.rb +65 -15
- data/lib/wx/doc/gen/art_provider.rb +33 -7
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +18 -3
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +35 -8
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +11 -4
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +4 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +3 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +8 -1
- data/lib/wx/doc/gen/aui/aui_notebook.rb +31 -7
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +5 -4
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +38 -2
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +9 -3
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -1
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +20 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +4 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -7
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +5 -1
- data/lib/wx/doc/gen/aui/event_list.rb +164 -160
- data/lib/wx/doc/gen/banner_window.rb +8 -1
- data/lib/wx/doc/gen/bitmap.rb +94 -16
- data/lib/wx/doc/gen/bitmap_button.rb +16 -8
- data/lib/wx/doc/gen/bitmap_combo_box.rb +20 -10
- data/lib/wx/doc/gen/book_ctrl_base.rb +31 -4
- data/lib/wx/doc/gen/book_ctrl_event.rb +9 -3
- data/lib/wx/doc/gen/box_sizer.rb +5 -1
- data/lib/wx/doc/gen/brush.rb +20 -2
- data/lib/wx/doc/gen/busy_info.rb +10 -2
- data/lib/wx/doc/gen/button.rb +31 -11
- data/lib/wx/doc/gen/calculate_layout_event.rb +5 -3
- data/lib/wx/doc/gen/calendar_ctrl.rb +38 -13
- data/lib/wx/doc/gen/calendar_date_attr.rb +2 -1
- data/lib/wx/doc/gen/calendar_event.rb +5 -2
- data/lib/wx/doc/gen/caret.rb +3 -1
- data/lib/wx/doc/gen/check_box.rb +17 -7
- data/lib/wx/doc/gen/check_list_box.rb +8 -6
- data/lib/wx/doc/gen/choice.rb +28 -9
- data/lib/wx/doc/gen/choicebook.rb +7 -7
- data/lib/wx/doc/gen/client_dc.rb +6 -2
- data/lib/wx/doc/gen/clipboard.rb +16 -3
- data/lib/wx/doc/gen/collapsible_pane.rb +9 -7
- data/lib/wx/doc/gen/collapsible_pane_event.rb +3 -3
- data/lib/wx/doc/gen/colour.rb +28 -4
- data/lib/wx/doc/gen/colour_dialog.rb +15 -7
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +13 -10
- data/lib/wx/doc/gen/colour_picker_event.rb +5 -5
- data/lib/wx/doc/gen/combo_box.rb +36 -14
- data/lib/wx/doc/gen/combo_ctrl.rb +117 -295
- data/lib/wx/doc/gen/command_link_button.rb +12 -5
- data/lib/wx/doc/gen/context_help_button.rb +13 -3
- data/lib/wx/doc/gen/control.rb +22 -8
- data/lib/wx/doc/gen/control_with_items.rb +45 -10
- data/lib/wx/doc/gen/core.rb +4 -4
- data/lib/wx/doc/gen/cursor.rb +10 -8
- data/lib/wx/doc/gen/data_format.rb +7 -1
- data/lib/wx/doc/gen/data_object.rb +42 -18
- data/lib/wx/doc/gen/date_event.rb +3 -2
- data/lib/wx/doc/gen/date_picker_ctrl.rb +18 -8
- data/lib/wx/doc/gen/dc.rb +238 -36
- data/lib/wx/doc/gen/defs.rb +51 -51
- data/lib/wx/doc/gen/dial_up_event.rb +2 -1
- data/lib/wx/doc/gen/dial_up_manager.rb +25 -5
- data/lib/wx/doc/gen/dialog.rb +72 -13
- data/lib/wx/doc/gen/dir_dialog.rb +22 -5
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -10
- data/lib/wx/doc/gen/drag_drop.rb +28 -7
- data/lib/wx/doc/gen/drag_image.rb +13 -2
- data/lib/wx/doc/gen/editable_list_box.rb +7 -5
- data/lib/wx/doc/gen/event.rb +57 -26
- data/lib/wx/doc/gen/event_blocker.rb +2 -3
- data/lib/wx/doc/gen/event_filter.rb +3 -0
- data/lib/wx/doc/gen/event_list.rb +1656 -1652
- data/lib/wx/doc/gen/events.rb +305 -173
- data/lib/wx/doc/gen/evt_handler.rb +49 -3
- data/lib/wx/doc/gen/ext_help_controller.rb +10 -1
- data/lib/wx/doc/gen/file_ctrl.rb +28 -10
- data/lib/wx/doc/gen/file_ctrl_event.rb +7 -4
- data/lib/wx/doc/gen/file_dialog.rb +44 -14
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +19 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +11 -3
- data/lib/wx/doc/gen/file_dir_picker_event.rb +4 -4
- data/lib/wx/doc/gen/file_picker_ctrl.rb +12 -9
- data/lib/wx/doc/gen/file_system.rb +54 -15
- data/lib/wx/doc/gen/find_dialog_event.rb +6 -4
- data/lib/wx/doc/gen/find_replace_data.rb +2 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +4 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +13 -1
- data/lib/wx/doc/gen/font.rb +103 -20
- data/lib/wx/doc/gen/font_data.rb +16 -3
- data/lib/wx/doc/gen/font_dialog.rb +6 -1
- data/lib/wx/doc/gen/font_picker_ctrl.rb +14 -7
- data/lib/wx/doc/gen/font_picker_event.rb +3 -3
- data/lib/wx/doc/gen/frame.rb +73 -15
- data/lib/wx/doc/gen/fs_file.rb +39 -10
- data/lib/wx/doc/gen/gauge.rb +19 -8
- data/lib/wx/doc/gen/gb_sizer_item.rb +5 -1
- data/lib/wx/doc/gen/gcdc.rb +3 -2
- data/lib/wx/doc/gen/gdi_common.rb +80 -11
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
- data/lib/wx/doc/gen/graphics_context.rb +86 -10
- data/lib/wx/doc/gen/graphics_object.rb +35 -6
- data/lib/wx/doc/gen/grid/event_list.rb +168 -164
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +3 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +16 -3
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +10 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +7 -1
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +256 -12
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +6 -4
- data/lib/wx/doc/gen/grid/grid_event.rb +6 -4
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +4 -4
- data/lib/wx/doc/gen/grid/grid_size_event.rb +4 -4
- data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +28 -3
- data/lib/wx/doc/gen/grid/grid_table_message.rb +2 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +21 -7
- data/lib/wx/doc/gen/grid_sizer.rb +11 -1
- data/lib/wx/doc/gen/gui_event_loop.rb +13 -3
- data/lib/wx/doc/gen/header_ctrl.rb +110 -11
- data/lib/wx/doc/gen/header_ctrl_event.rb +4 -2
- data/lib/wx/doc/gen/help_controller.rb +14 -3
- data/lib/wx/doc/gen/help_provider.rb +22 -4
- data/lib/wx/doc/gen/html/event_list.rb +41 -37
- data/lib/wx/doc/gen/html/html_cell.rb +48 -6
- data/lib/wx/doc/gen/html/html_cell_event.rb +5 -4
- data/lib/wx/doc/gen/html/html_easy_printing.rb +20 -3
- data/lib/wx/doc/gen/html/html_help_controller.rb +26 -2
- data/lib/wx/doc/gen/html/html_help_data.rb +8 -1
- data/lib/wx/doc/gen/html/html_help_window.rb +9 -1
- data/lib/wx/doc/gen/html/html_link_event.rb +3 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +54 -16
- data/lib/wx/doc/gen/html/html_printout.rb +7 -1
- data/lib/wx/doc/gen/html/html_window.rb +43 -6
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +9 -8
- data/lib/wx/doc/gen/hyperlink_event.rb +3 -3
- data/lib/wx/doc/gen/icon.rb +23 -29
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +143 -20
- data/lib/wx/doc/gen/image_list.rb +25 -6
- data/lib/wx/doc/gen/info_bar.rb +14 -2
- data/lib/wx/doc/gen/keyboard_state.rb +11 -1
- data/lib/wx/doc/gen/list_box.rb +46 -17
- data/lib/wx/doc/gen/list_ctrl.rb +165 -29
- data/lib/wx/doc/gen/list_event.rb +13 -4
- data/lib/wx/doc/gen/listbook.rb +7 -7
- data/lib/wx/doc/gen/locale.rb +68 -4
- data/lib/wx/doc/gen/log.rb +58 -12
- data/lib/wx/doc/gen/mdi_client_window.rb +11 -2
- data/lib/wx/doc/gen/mdi_frame.rb +51 -7
- data/lib/wx/doc/gen/media_ctrl.rb +43 -18
- data/lib/wx/doc/gen/media_event.rb +6 -4
- data/lib/wx/doc/gen/memory_dc.rb +16 -6
- data/lib/wx/doc/gen/menu.rb +81 -26
- data/lib/wx/doc/gen/menu_bar.rb +74 -15
- data/lib/wx/doc/gen/menu_item.rb +67 -19
- data/lib/wx/doc/gen/message_dialog.rb +17 -8
- data/lib/wx/doc/gen/mini_frame.rb +14 -5
- data/lib/wx/doc/gen/mirror_dc.rb +1 -2
- data/lib/wx/doc/gen/mouse_state.rb +1 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +9 -4
- data/lib/wx/doc/gen/non_owned_window.rb +4 -1
- data/lib/wx/doc/gen/notebook.rb +27 -9
- data/lib/wx/doc/gen/num_validator.rb +37 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +5 -1
- data/lib/wx/doc/gen/object.rb +3 -1
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +340 -0
- data/lib/wx/doc/gen/paint_dc.rb +1 -1
- data/lib/wx/doc/gen/palette.rb +5 -1
- data/lib/wx/doc/gen/panel.rb +25 -8
- data/lib/wx/doc/gen/pen.rb +46 -8
- data/lib/wx/doc/gen/pg/event_list.rb +97 -93
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +4 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +12 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +11 -3
- data/lib/wx/doc/gen/pg/pg_editor.rb +161 -16
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -2
- data/lib/wx/doc/gen/pg/pg_properties.rb +632 -83
- data/lib/wx/doc/gen/pg/pg_property.rb +381 -77
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +11 -4
- data/lib/wx/doc/gen/pg/property_grid.rb +123 -20
- data/lib/wx/doc/gen/pg/property_grid_event.rb +41 -9
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +273 -34
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +62 -10
- data/lib/wx/doc/gen/pg/property_grid_page.rb +33 -8
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +18 -4
- data/lib/wx/doc/gen/picker_base.rb +22 -5
- data/lib/wx/doc/gen/platform_info.rb +35 -9
- data/lib/wx/doc/gen/popup_window.rb +7 -5
- data/lib/wx/doc/gen/progress_dialog.rb +5 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -4
- data/lib/wx/doc/gen/prt/event_list.rb +8 -4
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +3 -1
- data/lib/wx/doc/gen/prt/post_script_dc.rb +3 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +5 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +4 -0
- data/lib/wx/doc/gen/prt/print_data.rb +31 -3
- data/lib/wx/doc/gen/prt/print_dialog.rb +5 -1
- data/lib/wx/doc/gen/prt/printer.rb +87 -11
- data/lib/wx/doc/gen/prt/printer_dc.rb +3 -1
- data/lib/wx/doc/gen/query_layout_info_event.rb +10 -3
- data/lib/wx/doc/gen/radio_box.rb +28 -10
- data/lib/wx/doc/gen/radio_button.rb +22 -9
- data/lib/wx/doc/gen/rbn/event_list.rb +127 -123
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +82 -3
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +26 -4
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +3 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +50 -12
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +3 -2
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -1
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +21 -11
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -1
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +16 -4
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +3 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +27 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +3 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +5 -2
- data/lib/wx/doc/gen/rearrange_list.rb +12 -4
- data/lib/wx/doc/gen/region.rb +104 -17
- data/lib/wx/doc/gen/region_iterator.rb +1 -1
- data/lib/wx/doc/gen/rtc/event_list.rb +116 -112
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +27 -9
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +45 -11
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +23 -14
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +84 -7
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +8 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +8 -2
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +8 -3
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -2
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -3
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +7 -2
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +82 -17
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +54 -11
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +15 -2
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +14 -9
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +4 -1
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +4 -3
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +13 -4
- data/lib/wx/doc/gen/sash_layout_window.rb +21 -4
- data/lib/wx/doc/gen/sash_window.rb +6 -4
- data/lib/wx/doc/gen/screen_dc.rb +1 -1
- data/lib/wx/doc/gen/scroll_bar.rb +28 -10
- data/lib/wx/doc/gen/scrolled_canvas.rb +48 -10
- data/lib/wx/doc/gen/scrolled_control.rb +48 -10
- data/lib/wx/doc/gen/scrolled_window.rb +48 -10
- data/lib/wx/doc/gen/search_ctrl.rb +14 -9
- data/lib/wx/doc/gen/simplebook.rb +8 -1
- data/lib/wx/doc/gen/single_choice_dialog.rb +9 -4
- data/lib/wx/doc/gen/sizer.rb +91 -16
- data/lib/wx/doc/gen/sizer_item.rb +21 -4
- data/lib/wx/doc/gen/slider.rb +50 -17
- data/lib/wx/doc/gen/spin_button.rb +24 -10
- data/lib/wx/doc/gen/spin_ctrl.rb +35 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +13 -7
- data/lib/wx/doc/gen/spin_double_event.rb +6 -4
- data/lib/wx/doc/gen/spin_event.rb +4 -3
- data/lib/wx/doc/gen/splash_screen.rb +3 -2
- data/lib/wx/doc/gen/splitter_event.rb +12 -4
- data/lib/wx/doc/gen/splitter_window.rb +100 -18
- data/lib/wx/doc/gen/static_bitmap.rb +109 -7
- data/lib/wx/doc/gen/static_box.rb +15 -7
- data/lib/wx/doc/gen/static_box_sizer.rb +3 -2
- data/lib/wx/doc/gen/static_line.rb +7 -4
- data/lib/wx/doc/gen/static_text.rb +10 -6
- data/lib/wx/doc/gen/status_bar.rb +32 -8
- data/lib/wx/doc/gen/stc/event_list.rb +212 -208
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +207 -13
- data/lib/wx/doc/gen/stc/styled_text_event.rb +31 -6
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +7 -1
- data/lib/wx/doc/gen/svg_file_dc.rb +15 -7
- data/lib/wx/doc/gen/system_options.rb +14 -6
- data/lib/wx/doc/gen/system_settings.rb +9 -3
- data/lib/wx/doc/gen/task_bar_button.rb +324 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +26 -8
- data/lib/wx/doc/gen/task_bar_icon_event.rb +5 -3
- data/lib/wx/doc/gen/text_attr.rb +47 -5
- data/lib/wx/doc/gen/text_ctrl.rb +114 -25
- data/lib/wx/doc/gen/text_entry.rb +69 -11
- data/lib/wx/doc/gen/text_entry_dialog.rb +14 -2
- data/lib/wx/doc/gen/text_validator.rb +58 -9
- data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -6
- data/lib/wx/doc/gen/timer.rb +14 -2
- data/lib/wx/doc/gen/timer_event.rb +2 -2
- data/lib/wx/doc/gen/tip_provider.rb +6 -1
- data/lib/wx/doc/gen/toggle_button.rb +73 -6
- data/lib/wx/doc/gen/tool_bar.rb +141 -25
- data/lib/wx/doc/gen/tool_tip.rb +41 -5
- data/lib/wx/doc/gen/toolbook.rb +6 -4
- data/lib/wx/doc/gen/top_level_window.rb +100 -23
- data/lib/wx/doc/gen/tree_ctrl.rb +89 -16
- data/lib/wx/doc/gen/tree_event.rb +9 -4
- data/lib/wx/doc/gen/treebook.rb +16 -4
- data/lib/wx/doc/gen/ui_action_simulator.rb +10 -2
- data/lib/wx/doc/gen/utils.rb +94 -7
- data/lib/wx/doc/gen/v_list_box.rb +27 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +21 -4
- data/lib/wx/doc/gen/validator.rb +10 -14
- data/lib/wx/doc/gen/variant.rb +7 -0
- data/lib/wx/doc/gen/window.rb +415 -57
- data/lib/wx/doc/gen/window_dc.rb +2 -1
- data/lib/wx/doc/gen/window_disabler.rb +6 -2
- data/lib/wx/doc/gen/with_images.rb +13 -2
- data/lib/wx/doc/gen/wizard.rb +22 -4
- data/lib/wx/doc/gen/wizard_event.rb +5 -4
- data/lib/wx/doc/gen/wizard_page.rb +7 -2
- data/lib/wx/doc/gen/wizard_page_simple.rb +5 -1
- data/lib/wx/doc/gen/wrap_sizer.rb +5 -1
- data/lib/wx/doc/gen/xml_node.rb +33 -4
- data/lib/wx/doc/gen/xml_resource.rb +40 -5
- data/lib/wx/doc/generic_validator.rb +95 -0
- data/lib/wx/doc/graphics_context.rb +1 -0
- data/lib/wx/doc/grid/grid.rb +22 -1
- data/lib/wx/doc/help_controller.rb +11 -7
- data/lib/wx/doc/html/html_help_controller.rb +12 -4
- data/lib/wx/doc/html/simple_html_listbox.rb +22 -0
- data/lib/wx/doc/list_ctrl.rb +33 -29
- data/lib/wx/doc/menu.rb +20 -0
- data/lib/wx/doc/notebook.rb +21 -0
- data/lib/wx/doc/num_validator.rb +387 -0
- data/lib/wx/doc/owner_drawn_combobox.rb +96 -0
- data/lib/wx/doc/pg/events.rb +13 -9
- data/lib/wx/doc/pg/numeric_property_validator.rb +33 -0
- data/lib/wx/doc/pg/pg_property.rb +18 -0
- data/lib/wx/doc/progress_dialog.rb +36 -32
- data/lib/wx/doc/prt/page_setup_dialog.rb +20 -12
- data/lib/wx/doc/prt/print_data.rb +13 -5
- data/lib/wx/doc/prt/print_dialog.rb +31 -23
- data/lib/wx/doc/prt/printer.rb +20 -12
- data/lib/wx/doc/radio_box.rb +19 -15
- data/lib/wx/doc/rbn/ribbon_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_gallery.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +13 -5
- data/lib/wx/doc/region_iterator.rb +32 -28
- data/lib/wx/doc/rtc/rich_text_composite_object.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_ctrl.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_paragraph.rb +24 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +27 -19
- data/lib/wx/doc/rtc/richtext_printing.rb +17 -9
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +17 -9
- data/lib/wx/doc/sizer.rb +20 -0
- data/lib/wx/doc/static_bitmap.rb +25 -0
- data/lib/wx/doc/stc/styled_text_ctrl.rb +24 -0
- data/lib/wx/doc/stream.rb +39 -35
- data/lib/wx/doc/system_settings.rb +30 -26
- data/lib/wx/doc/text_validator.rb +23 -9
- data/lib/wx/doc/textctrl.rb +16 -0
- data/lib/wx/doc/tree_ctrl.rb +95 -0
- data/lib/wx/doc/treebook.rb +9 -5
- data/lib/wx/doc/v_list_box.rb +9 -5
- data/lib/wx/doc/validator.rb +113 -0
- data/lib/wx/doc/variant.rb +164 -160
- data/lib/wx/doc/window.rb +87 -47
- data/lib/wx/doc/window_disabler.rb +10 -6
- data/lib/wx/grid/grid.rb +27 -4
- data/lib/wx/html/events/evt_list.rb +0 -10
- data/lib/wx/html/simple_html_listbox.rb +24 -91
- data/lib/wx/keyword_defs.rb +34 -2
- data/lib/wx/pg/pg_property.rb +22 -0
- data/lib/wx/rbn/ribbon_gallery.rb +0 -21
- data/lib/wx/rtc/require.rb +3 -0
- data/lib/wx/rtc/rich_text_composite_object.rb +25 -0
- data/lib/wx/rtc/rich_text_ctrl.rb +25 -0
- data/lib/wx/rtc/rich_text_paragraph.rb +25 -0
- data/lib/wx/stc/require.rb +1 -0
- data/lib/wx/stc/styled_text_ctrl.rb +25 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/lib/config/linux.rb +0 -3
- data/rakelib/lib/config/macosx.rb +2 -2
- data/rakelib/lib/config/mingw.rb +13 -1
- data/rakelib/lib/config/unixish.rb +1 -1
- data/rakelib/lib/config.rb +14 -4
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +74 -2
- data/rakelib/yard/templates/default/fulldoc/html/full_list.erb +38 -0
- data/rakelib/yard/templates/default/fulldoc/html/setup.rb +39 -0
- data/rakelib/yard/templates/default/tags/html/wxrb_require.erb +10 -0
- data/rakelib/yard/templates/default/tags/setup.rb +16 -0
- data/rakelib/yard/yard-custom-templates.rb +3 -0
- data/samples/aui/aui.rb +1237 -1233
- data/samples/calendar/calendar.rb +293 -289
- data/samples/controls/get_item_sample.rb +83 -79
- data/samples/controls/htlbox.rb +331 -327
- data/samples/dialogs/dialogs.rb +682 -694
- data/samples/dialogs/wizard.rb +52 -55
- data/samples/dragdrop/dragdrop.rb +146 -142
- data/samples/drawing/bitmap.rb +29 -26
- data/samples/drawing/bitmap_image.rb +84 -80
- data/samples/drawing/graphics_drawing.rb +209 -205
- data/samples/drawing/image_prt.rb +344 -340
- data/samples/drawing/maths_images.rb +18 -1
- data/samples/drawing/rmagic_bitmap_image.rb +88 -84
- data/samples/etc/caret.rb +306 -0
- data/samples/etc/miniframe.rb +65 -60
- data/samples/etc/sash.rb +109 -105
- data/samples/etc/scrollwin.rb +86 -80
- data/samples/etc/system_settings.rb +216 -209
- data/samples/event/activation.rb +72 -67
- data/samples/event/event.rb +160 -153
- data/samples/event/threaded.rb +8 -1
- data/samples/event/update_ui_event.rb +67 -60
- data/samples/grid/grid.rb +188 -181
- data/samples/grid/gridtablebase.rb +136 -129
- data/samples/html/html.rb +208 -204
- data/samples/mdi/mdi.rb +59 -54
- data/samples/minimal/minimal.rb +54 -51
- data/samples/minimal/nothing.rb +1 -0
- data/samples/printing/printing.rb +367 -377
- data/samples/printing/printing2.rb +203 -198
- data/samples/propgrid/propgrid.rb +2312 -2308
- data/samples/propgrid/propgrid_minimal.rb +57 -50
- data/samples/ribbon/ribbon.rb +780 -774
- data/samples/sampler/ext.rb +0 -33
- data/samples/sampler/sample.rb +4 -9
- data/samples/sampler.rb +1 -1
- data/samples/splash/splash.rb +118 -116
- data/samples/text/rich_textctrl.rb +207 -201
- data/samples/text/richtext.rb +1409 -1405
- data/samples/text/scintilla.rb +137 -128
- data/samples/text/textctrl.rb +89 -83
- data/samples/text/unicode.rb +175 -168
- data/samples/treectrl/treectrl.rb +1430 -1426
- data/samples/widgets/activityindicator.rb +95 -0
- data/samples/widgets/art/widgets/activityindicator.xpm +278 -0
- data/samples/widgets/art/widgets/bmpbtn.xpm +37 -0
- data/samples/widgets/art/widgets/bmpcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/button.xpm +54 -0
- data/samples/widgets/art/widgets/checkbox.xpm +54 -0
- data/samples/{bigdemo/icons → widgets/art/widgets}/choice.xpm +1 -1
- data/samples/widgets/art/widgets/choicebk.xpm +54 -0
- data/samples/widgets/art/widgets/clrpicker.xpm +193 -0
- data/samples/widgets/art/widgets/combobox.xpm +54 -0
- data/samples/widgets/art/widgets/datepick.xpm +200 -0
- data/samples/widgets/art/widgets/dirctrl.xpm +54 -0
- data/samples/widgets/art/widgets/dirpicker.xpm +213 -0
- data/samples/widgets/art/widgets/filepicker.xpm +214 -0
- data/samples/widgets/art/widgets/fontpicker.xpm +185 -0
- data/samples/widgets/art/widgets/gauge.xpm +54 -0
- data/samples/widgets/art/widgets/header.xpm +54 -0
- data/samples/widgets/art/widgets/hyperlnk.xpm +54 -0
- data/samples/widgets/art/widgets/listbook.xpm +54 -0
- data/samples/widgets/art/widgets/listbox.xpm +54 -0
- data/samples/widgets/art/widgets/native.xpm +81 -0
- data/samples/widgets/art/widgets/notebook.xpm +54 -0
- data/samples/widgets/art/widgets/odcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/radiobox.xpm +54 -0
- data/samples/widgets/art/widgets/scrolbar.xpm +54 -0
- data/samples/widgets/art/widgets/slider.xpm +54 -0
- data/samples/widgets/art/widgets/spinbtn.xpm +40 -0
- data/samples/widgets/art/widgets/statbmp.xpm +40 -0
- data/samples/widgets/art/widgets/statbox.xpm +54 -0
- data/samples/widgets/art/widgets/stattext.xpm +54 -0
- data/samples/widgets/art/widgets/text.xpm +54 -0
- data/samples/widgets/art/widgets/timepick.xpm +207 -0
- data/samples/widgets/art/widgets/toggle.xpm +54 -0
- data/samples/widgets/art/widgets/toucan.png +0 -0
- data/samples/widgets/bmpcombobox.rb +651 -0
- data/samples/widgets/button.rb +462 -0
- data/samples/widgets/checkbox.rb +211 -0
- data/samples/widgets/choice.rb +287 -0
- data/samples/widgets/clrpicker.rb +156 -0
- data/samples/widgets/combobox.rb +516 -0
- data/samples/widgets/datepick.rb +215 -0
- data/samples/widgets/dirctrl.rb +265 -0
- data/samples/widgets/dirpicker.rb +158 -0
- data/samples/widgets/editlbox.rb +122 -0
- data/samples/widgets/filectrl.rb +216 -0
- data/samples/widgets/filepicker.rb +214 -0
- data/samples/widgets/fontpicker.rb +135 -0
- data/samples/widgets/gauge.rb +311 -0
- data/samples/widgets/headerctrl.rb +236 -0
- data/samples/widgets/hyperlink.rb +203 -0
- data/samples/widgets/itemcontainer.rb +185 -0
- data/samples/widgets/listbox.rb +473 -0
- data/samples/widgets/notebook.rb +488 -0
- data/samples/widgets/odcombobox.rb +608 -0
- data/samples/widgets/radiobox.rb +328 -0
- data/samples/widgets/searchctrl.rb +159 -0
- data/samples/widgets/slider.rb +594 -0
- data/samples/widgets/spinbtn.rb +443 -0
- data/samples/widgets/statbmp.rb +130 -0
- data/samples/widgets/static.rb +436 -0
- data/samples/widgets/textctrl.rb +700 -0
- data/samples/widgets/timepick.rb +148 -0
- data/samples/widgets/tn_widgets.png +0 -0
- data/samples/widgets/toggle.rb +385 -0
- data/samples/widgets/widgets.rb +1233 -0
- data/samples/xrc/custom_xrc_sample.rb +47 -41
- data/samples/xrc/xrc_sample.rb +53 -47
- data/tests/media/beep_lo.wav +0 -0
- data/tests/test_event_handling.rb +52 -34
- data/tests/test_events.rb +7 -0
- data/tests/test_item_data.rb +24 -0
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_media_ctrl.rb +38 -0
- data/tests/test_menu.rb +69 -0
- data/tests/test_pg.rb +27 -0
- data/tests/test_richtext.rb +45 -0
- data/tests/test_sizer.rb +59 -0
- data/tests/test_std_controls.rb +42 -1
- data/tests/test_styled_text_ctrl.rb +46 -0
- data/tests/test_tree_ctrl.rb +138 -0
- data/tests/test_validators.rb +805 -0
- data/tests/test_window.rb +12 -0
- data/tests/testapp_noframe.rb +1 -1
- metadata +113 -138
- data/lib/wx/core/choice.rb +0 -14
- data/lib/wx/core/combo_ctrl.rb +0 -110
- data/samples/bigdemo/About.rbw +0 -39
- data/samples/bigdemo/ColorPanel.rbw +0 -23
- data/samples/bigdemo/GridSimple.rbw +0 -78
- data/samples/bigdemo/MDIDemo.rbw +0 -57
- data/samples/bigdemo/PopupMenu.rbw +0 -146
- data/samples/bigdemo/ShapedWindow.rbw +0 -128
- data/samples/bigdemo/Sizers.rbw +0 -541
- data/samples/bigdemo/bigdemo.rb +0 -817
- data/samples/bigdemo/demoTemplate.rbw +0 -33
- data/samples/bigdemo/helpfile.htb +0 -0
- data/samples/bigdemo/icons/Test 015.jpg +0 -0
- data/samples/bigdemo/icons/Test 015.png +0 -0
- data/samples/bigdemo/icons/choice.bmp +0 -0
- data/samples/bigdemo/icons/combo.bmp +0 -0
- data/samples/bigdemo/icons/combo.xpm +0 -27
- data/samples/bigdemo/icons/copy.xpm +0 -25
- data/samples/bigdemo/icons/cut.xpm +0 -24
- data/samples/bigdemo/icons/gauge.bmp +0 -0
- data/samples/bigdemo/icons/gauge.xpm +0 -27
- data/samples/bigdemo/icons/help.xpm +0 -25
- data/samples/bigdemo/icons/list.bmp +0 -0
- data/samples/bigdemo/icons/list.xpm +0 -27
- data/samples/bigdemo/icons/mondrian.ico +0 -0
- data/samples/bigdemo/icons/mondrian.xpm +0 -44
- data/samples/bigdemo/icons/new.xpm +0 -24
- data/samples/bigdemo/icons/ogl.ico +0 -0
- data/samples/bigdemo/icons/ogl.xpm +0 -45
- data/samples/bigdemo/icons/open.xpm +0 -26
- data/samples/bigdemo/icons/paste.bmp +0 -0
- data/samples/bigdemo/icons/paste.xpm +0 -38
- data/samples/bigdemo/icons/pointy.png +0 -0
- data/samples/bigdemo/icons/preview.xpm +0 -26
- data/samples/bigdemo/icons/print.xpm +0 -26
- data/samples/bigdemo/icons/radio.bmp +0 -0
- data/samples/bigdemo/icons/radio.xpm +0 -27
- data/samples/bigdemo/icons/robert.xpm +0 -415
- data/samples/bigdemo/icons/sashtest.ico +0 -0
- data/samples/bigdemo/icons/save.xpm +0 -25
- data/samples/bigdemo/icons/smiles.bmp +0 -0
- data/samples/bigdemo/icons/smiles.xpm +0 -39
- data/samples/bigdemo/icons/smiley.ico +0 -0
- data/samples/bigdemo/icons/smiley.xpm +0 -42
- data/samples/bigdemo/icons/stattext.xpm +0 -24
- data/samples/bigdemo/icons/test2.bmp +0 -0
- data/samples/bigdemo/icons/test2.png +0 -0
- data/samples/bigdemo/icons/test2.xpm +0 -79
- data/samples/bigdemo/icons/text.bmp +0 -0
- data/samples/bigdemo/icons/text.xpm +0 -27
- data/samples/bigdemo/icons/tog1.bmp +0 -0
- data/samples/bigdemo/icons/tog1.xpm +0 -38
- data/samples/bigdemo/icons/tog2.bmp +0 -0
- data/samples/bigdemo/icons/tog2.xpm +0 -38
- data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
- data/samples/bigdemo/icons/wxwin.ico +0 -0
- data/samples/bigdemo/icons/wxwin16x16.png +0 -0
- data/samples/bigdemo/icons/wxwin16x16.xpm +0 -25
- data/samples/bigdemo/icons/wxwin32x32.png +0 -0
- data/samples/bigdemo/icons/wxwin48x48.png +0 -0
- data/samples/bigdemo/run.rb +0 -98
- data/samples/bigdemo/tips.txt +0 -7
- data/samples/bigdemo/utils.rb +0 -20
- data/samples/bigdemo/wxArtProvider.rbw +0 -282
- data/samples/bigdemo/wxBitmapButton.rbw +0 -65
- data/samples/bigdemo/wxButton.rbw +0 -64
- data/samples/bigdemo/wxCalendarCtrl.rbw +0 -59
- data/samples/bigdemo/wxCheckBox.rbw +0 -50
- data/samples/bigdemo/wxCheckListBox.rbw +0 -65
- data/samples/bigdemo/wxChoice.rbw +0 -47
- data/samples/bigdemo/wxChoicebook.rbw +0 -78
- data/samples/bigdemo/wxColourDialog.rbw +0 -33
- data/samples/bigdemo/wxComboBox.rbw +0 -77
- data/samples/bigdemo/wxCursor.rbw +0 -136
- data/samples/bigdemo/wxDialog.rbw +0 -74
- data/samples/bigdemo/wxDirDialog.rbw +0 -29
- data/samples/bigdemo/wxDragImage.rbw +0 -70
- data/samples/bigdemo/wxFileDialog.rbw +0 -37
- data/samples/bigdemo/wxFileDialog_Save.rbw +0 -35
- data/samples/bigdemo/wxFindReplaceDialog.rbw +0 -82
- data/samples/bigdemo/wxFontDialog.rbw +0 -200
- data/samples/bigdemo/wxFrame.rbw +0 -53
- data/samples/bigdemo/wxGauge.rbw +0 -65
- data/samples/bigdemo/wxGenericDirCtrl.rbw +0 -74
- data/samples/bigdemo/wxGrid.rbw +0 -66
- data/samples/bigdemo/wxHtmlHelpController.rbw +0 -52
- data/samples/bigdemo/wxListBox.rbw +0 -140
- data/samples/bigdemo/wxListCtrl_virtual.rbw +0 -112
- data/samples/bigdemo/wxMDIWindows.rbw +0 -50
- data/samples/bigdemo/wxMenu.rbw +0 -247
- data/samples/bigdemo/wxMessageDialog.rbw +0 -27
- data/samples/bigdemo/wxMiniFrame.rbw +0 -70
- data/samples/bigdemo/wxMultipleChoiceDialog.rbw +0 -29
- data/samples/bigdemo/wxNotebook.rbw +0 -136
- data/samples/bigdemo/wxProgressDialog.rbw +0 -43
- data/samples/bigdemo/wxRadioBox.rbw +0 -72
- data/samples/bigdemo/wxRadioButton.rbw +0 -125
- data/samples/bigdemo/wxSashWindow.rbw +0 -141
- data/samples/bigdemo/wxScrolledMessageDialog.rbw +0 -57
- data/samples/bigdemo/wxScrolledWindow.rbw +0 -199
- data/samples/bigdemo/wxSingleChoiceDialog.rbw +0 -33
- data/samples/bigdemo/wxSlider.rbw +0 -42
- data/samples/bigdemo/wxSpinButton.rbw +0 -50
- data/samples/bigdemo/wxSpinCtrl.rbw +0 -51
- data/samples/bigdemo/wxSplitterWindow.rbw +0 -63
- data/samples/bigdemo/wxStaticBitmap.rbw +0 -47
- data/samples/bigdemo/wxStaticText.rbw +0 -55
- data/samples/bigdemo/wxStatusBar.rbw +0 -126
- data/samples/bigdemo/wxTextCtrl.rbw +0 -149
- data/samples/bigdemo/wxTextEntryDialog.rbw +0 -31
- data/samples/bigdemo/wxToggleButton.rbw +0 -49
- data/samples/bigdemo/wxToolBar.rbw +0 -131
- data/samples/bigdemo/wxTreeCtrl.rbw +0 -191
- data/samples/caret/caret.rb +0 -298
- data/samples/caret/mondrian.xpm +0 -44
- data/samples/controls/books.rb +0 -189
- data/samples/controls/choice.xpm +0 -27
- data/samples/controls/combo.xpm +0 -27
- data/samples/controls/controls.rb +0 -1099
- data/samples/controls/gauge.xpm +0 -27
- data/samples/controls/list.xpm +0 -27
- data/samples/controls/mondrian.ico +0 -0
- data/samples/controls/mondrian.xpm +0 -44
- data/samples/controls/radio.xpm +0 -27
- data/samples/controls/stattext.xpm +0 -24
- data/samples/controls/test2.bmp +0 -0
- data/samples/controls/text.xpm +0 -27
- data/samples/controls/tn_books.png +0 -0
- data/samples/controls/tn_controls.png +0 -0
- data/samples/etc/choice.rb +0 -87
- data/samples/etc/tn_choice.png +0 -0
- data/samples/text/mondrian.ico +0 -0
- data/samples/text/mondrian.xpm +0 -44
- /data/samples/{caret → etc}/tn_caret.png +0 -0
data/lib/wx/doc/gen/utils.rb
CHANGED
@@ -6,7 +6,28 @@
|
|
6
6
|
|
7
7
|
module Wx
|
8
8
|
|
9
|
+
# Strip '&' characters.
|
10
|
+
#
|
11
|
+
Strip_Mnemonics = 1
|
12
|
+
|
13
|
+
# Strip everything after '\t'.
|
14
|
+
#
|
15
|
+
Strip_Accel = 2
|
16
|
+
|
17
|
+
# Strip everything looking like CJK mnemonic.
|
18
|
+
#
|
19
|
+
Strip_CJKMnemonics = 4
|
20
|
+
|
21
|
+
# Strip both mnemonics and accelerators.
|
22
|
+
#
|
23
|
+
Strip_All = 3
|
24
|
+
|
25
|
+
# Strip everything from menu item labels.
|
26
|
+
#
|
27
|
+
Strip_Menu = 7
|
28
|
+
|
9
29
|
# Changes the cursor to the given cursor for all windows in the application.
|
30
|
+
#
|
10
31
|
# Use {end_busy_cursor} to revert the cursor back to its previous state. These two calls can be nested, and a counter ensures that only the outer calls take effect.
|
11
32
|
# @see is_busy
|
12
33
|
# @see Wx::BusyCursor
|
@@ -15,6 +36,7 @@ module Wx
|
|
15
36
|
def self.begin_busy_cursor(cursor=Wx::HOURGLASS_CURSOR) end
|
16
37
|
|
17
38
|
# Changes the cursor back to the original cursor, for all windows in the application.
|
39
|
+
#
|
18
40
|
# Use with {begin_busy_cursor}.
|
19
41
|
# @see is_busy
|
20
42
|
# @see Wx::BusyCursor
|
@@ -23,18 +45,25 @@ module Wx
|
|
23
45
|
|
24
46
|
# Returns true if between two {begin_busy_cursor} and {end_busy_cursor} calls.
|
25
47
|
#
|
48
|
+
#
|
26
49
|
# @see Wx::BusyCursor.
|
27
50
|
# @return [Boolean]
|
28
51
|
def self.is_busy; end
|
29
52
|
|
30
53
|
# Ring the system bell.
|
31
|
-
# This function is categorized as a GUI one and so is not thread-safe.
|
32
54
|
#
|
33
|
-
#
|
55
|
+
# <div class="wxrb-note">
|
56
|
+
# <b>Note:</b>
|
57
|
+
# <p>This function is categorized as a GUI one and so is not thread-safe.
|
58
|
+
# </p>
|
59
|
+
# </div>
|
60
|
+
#
|
61
|
+
# Include file: \#include <wx/utils.h>
|
34
62
|
# @return [void]
|
35
63
|
def self.bell; end
|
36
64
|
|
37
65
|
# Shows a message box with the information about the wxWidgets build used, including its version, most important build parameters and the version of the underlying GUI toolkit.
|
66
|
+
#
|
38
67
|
# This is mainly used for diagnostic purposes and can be invoked by Ctrl-Alt-middle clicking on any {Wx::Window} which doesn't otherwise handle this event.
|
39
68
|
# @see get_library_version_info
|
40
69
|
# @param parent [Wx::Window]
|
@@ -42,15 +71,17 @@ module Wx
|
|
42
71
|
def self.info_message_box(parent) end
|
43
72
|
|
44
73
|
# Get wxWidgets version information.
|
45
|
-
#
|
74
|
+
#
|
75
|
+
#
|
46
76
|
# @see Wx::VersionInfo
|
47
77
|
# @return [Wx::VersionInfo]
|
48
78
|
def self.get_library_version_info; end
|
49
79
|
|
50
80
|
# For normal keys, returns true if the specified key is currently down.
|
81
|
+
#
|
51
82
|
# For togglable keys (Caps Lock, Num Lock and Scroll Lock), returns true if the key is toggled such that its LED indicator is lit. There is currently no way to test whether togglable keys are up or down.
|
52
83
|
# Even though there are virtual key codes defined for mouse buttons, they cannot be used with this function currently.
|
53
|
-
# In
|
84
|
+
# In WXGTK, this function can be only used with modifier keys ({Wx::KeyCode::K_ALT}, {Wx::KeyCode::K_CONTROL} and {Wx::KeyCode::K_SHIFT}) when not using X11 backend currently.
|
54
85
|
# @param key [Wx::KeyCode]
|
55
86
|
# @return [Boolean]
|
56
87
|
def self.get_key_state(key) end
|
@@ -60,17 +91,20 @@ module Wx
|
|
60
91
|
def self.get_mouse_position; end
|
61
92
|
|
62
93
|
# Returns the current state of the mouse.
|
94
|
+
#
|
63
95
|
# Returns a {Wx::MouseState} instance that contains the current position of the mouse pointer in screen coordinates, as well as boolean values indicating the up/down status of the mouse buttons and the modifier keys.
|
64
96
|
# @return [Wx::MouseState]
|
65
97
|
def self.get_mouse_state; end
|
66
98
|
|
67
99
|
# This function enables or disables all top level windows.
|
100
|
+
#
|
68
101
|
# It is used by {safe_yield}.
|
69
102
|
# @param enable [Boolean]
|
70
103
|
# @return [void]
|
71
104
|
def self.enable_top_level_windows(enable=true) end
|
72
105
|
|
73
106
|
# Find the deepest window at the given mouse position in screen coordinates, returning the window if found, or NULL if not.
|
107
|
+
#
|
74
108
|
# This function takes child windows at the given position into account even if they are disabled. The hidden children are however skipped by it.
|
75
109
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
76
110
|
# @return [Wx::Window]
|
@@ -89,6 +123,7 @@ module Wx
|
|
89
123
|
def self.register_id(id) end
|
90
124
|
|
91
125
|
# Opens the document in the application associated with the files of this type.
|
126
|
+
#
|
92
127
|
# The flags parameter is currently not used
|
93
128
|
# Returns true if the application was successfully launched.
|
94
129
|
# @see launch_default_browser
|
@@ -99,6 +134,7 @@ module Wx
|
|
99
134
|
def self.launch_default_application(document, flags=0) end
|
100
135
|
|
101
136
|
# Opens the url in user's default browser.
|
137
|
+
#
|
102
138
|
# If the flags parameter contains {Wx::BROWSER_NEW_WINDOW} flag, a new window is opened for the URL (currently this is only supported under Windows).
|
103
139
|
# And unless the flags parameter contains {Wx::BROWSER_NOBUSYCURSOR} flag, a busy cursor is shown while the browser is being launched (using {Wx::BusyCursor}).
|
104
140
|
# The parameter url is interpreted as follows:
|
@@ -108,7 +144,14 @@ module Wx
|
|
108
144
|
# - if it has no valid scheme and it's not a local file/directory, then <code>"http:"</code> is prepended and the browser is called.
|
109
145
|
#
|
110
146
|
# Returns true if the application was successfully launched.
|
111
|
-
#
|
147
|
+
#
|
148
|
+
# <div class="wxrb-note">
|
149
|
+
# <b>Note:</b>
|
150
|
+
# <p>For some configurations of the running user, the application which is launched to open the given URL may be URL-dependent (e.g. a browser may be used for local URLs while another one may be used for remote URLs).
|
151
|
+
# </p>
|
152
|
+
# </div>
|
153
|
+
#
|
154
|
+
# Include file: \#include <wx/utils.h>
|
112
155
|
# @see launch_default_application
|
113
156
|
# @see execute
|
114
157
|
# @param url [String]
|
@@ -116,8 +159,20 @@ module Wx
|
|
116
159
|
# @return [Boolean]
|
117
160
|
def self.launch_default_browser(url, flags=0) end
|
118
161
|
|
162
|
+
# Strips any menu codes from str and returns the result.
|
163
|
+
#
|
164
|
+
# By default, the functions strips both the mnemonics character (<code>'&'</code>) which is used to indicate a keyboard shortkey, and the accelerators, which are used only in the menu items and are separated from the main text by the <code>\t</code> (TAB) character. By using flags of {Wx::Strip_Mnemonics} or {Wx::Strip_Accel} to strip only the former or the latter part, respectively.
|
165
|
+
# Notice that in most cases {Wx::MenuItem.get_label_from_text} or {Wx::Control#get_label_text} can be used instead.
|
166
|
+
# @param str [String]
|
167
|
+
# @param flags [Integer]
|
168
|
+
# @return [String]
|
169
|
+
def self.strip_menu_codes(str, flags=Wx::Strip_All) end
|
170
|
+
|
119
171
|
# Copies the user's email address into the supplied buffer, by concatenating the values returned by {get_full_host_name} and {get_user_id}.
|
172
|
+
#
|
120
173
|
# true if successful, false otherwise.
|
174
|
+
#
|
175
|
+
# Include file: \#include <wx/utils.h>
|
121
176
|
# @return [String]
|
122
177
|
def self.get_email_address; end
|
123
178
|
|
@@ -127,25 +182,31 @@ module Wx
|
|
127
182
|
|
128
183
|
# Return the (current) user's home directory.
|
129
184
|
#
|
185
|
+
#
|
130
186
|
# @see get_user_home
|
131
187
|
# @see Wx::StandardPaths
|
132
188
|
# @return [String]
|
133
189
|
def self.get_home_dir; end
|
134
190
|
|
135
191
|
# Copies the current host machine's name into the supplied buffer.
|
192
|
+
#
|
136
193
|
# Please note that the returned name is not fully qualified, i.e. it does not include the domain name.
|
137
194
|
# The hostname if successful or an empty string otherwise.
|
195
|
+
#
|
196
|
+
# Include file: \#include <wx/utils.h>
|
138
197
|
# @see get_full_host_name
|
139
198
|
# @return [String]
|
140
199
|
def self.get_host_name; end
|
141
200
|
|
142
201
|
# Returns the FQDN (fully qualified domain host name) or an empty string on error.
|
143
202
|
#
|
203
|
+
#
|
144
204
|
# @see get_host_name
|
145
205
|
# @return [String]
|
146
206
|
def self.get_full_host_name; end
|
147
207
|
|
148
208
|
# Returns the home directory for the given user.
|
209
|
+
#
|
149
210
|
# If the user is empty (default value), this function behaves like {get_home_dir} (i.e. returns the current user home directory).
|
150
211
|
# If the home directory couldn't be determined, an empty string is returned.
|
151
212
|
# @param user [String]
|
@@ -153,20 +214,27 @@ module Wx
|
|
153
214
|
def self.get_user_home(user=('')) end
|
154
215
|
|
155
216
|
# This function returns the "user id" also known as "login name" under Unix (i.e.
|
217
|
+
#
|
156
218
|
# something like "jsmith"). It uniquely identifies the current user (on this system). Under Windows or NT, this function first looks in the environment variables USER and LOGNAME; if neither of these is found, the entry <b>UserId</b> in the <b>wxWidgets</b> section of the WIN.INI file is tried.
|
157
219
|
# The login name if successful or an empty string otherwise.
|
220
|
+
#
|
221
|
+
# Include file: \#include <wx/utils.h>
|
158
222
|
# @see get_user_name
|
159
223
|
# @return [String]
|
160
224
|
def self.get_user_id; end
|
161
225
|
|
162
226
|
# This function returns the full user name (something like "Mr. John Smith").
|
227
|
+
#
|
163
228
|
# Under Windows or NT, this function looks for the entry UserName in the wxWidgets section of the WIN.INI file. If PenWindows is running, the entry Current in the section User of the PENWIN.INI file is used.
|
164
229
|
# The full user name if successful or an empty string otherwise.
|
230
|
+
#
|
231
|
+
# Include file: \#include <wx/utils.h>
|
165
232
|
# @see get_user_id
|
166
233
|
# @return [String]
|
167
234
|
def self.get_user_name; end
|
168
235
|
|
169
236
|
# Returns the string containing the description of the current platform in a user-readable form.
|
237
|
+
#
|
170
238
|
# For example, this function may return strings like "Windows 10 (build 10240), 64-bit edition" or "Linux 4.1.4 i386".
|
171
239
|
# @see get_os_version
|
172
240
|
# @return [String]
|
@@ -174,6 +242,7 @@ module Wx
|
|
174
242
|
|
175
243
|
# Returns true if the version of the operating system on which the program is running under is the same or later than the given version.
|
176
244
|
#
|
245
|
+
#
|
177
246
|
# @see get_os_version
|
178
247
|
# @see Wx::PlatformInfo
|
179
248
|
# @param majorVsn [Integer]
|
@@ -183,18 +252,28 @@ module Wx
|
|
183
252
|
def self.check_os_version(majorVsn, minorVsn=0, microVsn=0) end
|
184
253
|
|
185
254
|
# Returns true if the operating system the program is running under is 64 bit.
|
255
|
+
#
|
186
256
|
# The check is performed at run-time and may differ from the value available at compile-time (at compile-time you can just check if <code>sizeof(void*) == 8</code>) since the program could be running in emulation mode or in a mixed 32/64 bit system.
|
187
|
-
#
|
257
|
+
#
|
258
|
+
# <div class="wxrb-note">
|
259
|
+
# <b>Note:</b>
|
260
|
+
# <p>This function is not 100% reliable on some systems given the fact that there isn't always a standard way to do a reliable check on the OS bitness.
|
261
|
+
# </p>
|
262
|
+
# </div>
|
263
|
+
#
|
264
|
+
# Include file: \#include <wx/utils.h>
|
188
265
|
# @return [Boolean]
|
189
266
|
def self.is_platform64bit; end
|
190
267
|
|
191
268
|
# Returns true if the current platform is little endian (instead of big endian).
|
269
|
+
#
|
192
270
|
# The check is performed at run-time.
|
193
271
|
# @see Byte Order Functions and Macros
|
194
272
|
# @return [Boolean]
|
195
273
|
def self.is_platform_little_endian; end
|
196
274
|
|
197
275
|
# Returns the CPU architecture name.
|
276
|
+
#
|
198
277
|
# This can be, for example, "x86_64", "arm64", or "i86pc". The name for the same CPU running on the same hardware can vary across operating systems.
|
199
278
|
# The returned string may be empty if the CPU architecture couldn't be recognized.
|
200
279
|
# @see get_native_cpu_architecture_name
|
@@ -202,6 +281,7 @@ module Wx
|
|
202
281
|
def self.get_cpu_architecture_name; end
|
203
282
|
|
204
283
|
# In some situations the current process and native CPU architecture may be different.
|
284
|
+
#
|
205
285
|
# This returns the native CPU architecture regardless of the current process CPU architecture.
|
206
286
|
# Common examples for CPU architecture differences are the following:
|
207
287
|
#
|
@@ -215,9 +295,16 @@ module Wx
|
|
215
295
|
def self.get_native_cpu_architecture_name; end
|
216
296
|
|
217
297
|
# This function shuts down or reboots the computer depending on the value of the flags.
|
218
|
-
#
|
298
|
+
#
|
299
|
+
# <div class="wxrb-note">
|
300
|
+
# <b>Note:</b>
|
301
|
+
# <p>Note that performing the shutdown requires the corresponding access rights (superuser under Unix, SE_SHUTDOWN privilege under Windows) and that this function is only implemented under Unix and MSW.
|
302
|
+
# </p>
|
303
|
+
# </div>
|
219
304
|
#
|
220
305
|
# true on success, false if an error occurred.
|
306
|
+
#
|
307
|
+
# Include file: \#include <wx/utils.h>
|
221
308
|
# @param flags [Integer] One of {Wx::SHUTDOWN_POWEROFF}, {Wx::SHUTDOWN_REBOOT} or {Wx::SHUTDOWN_LOGOFF} (currently implemented only for MSW) possibly combined with {Wx::SHUTDOWN_FORCE} which forces shutdown under MSW by forcefully terminating all the applications. As doing this can result in a data loss, this flag shouldn't be used unless really necessary.
|
222
309
|
# @return [Boolean]
|
223
310
|
def self.shutdown(flags=Wx::SHUTDOWN_POWEROFF) end
|
@@ -7,9 +7,9 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# {Wx::VListBox} is a {Wx::ListBox}-like control with the following two main differences from a regular {Wx::ListBox}: it can have an arbitrarily huge number of items because it doesn't store them itself but uses the {Wx::VListBox#on_draw_item} callback to draw them (so it is a virtual listbox) and its items can have variable height as determined by {Wx::VListBox#on_measure_item} (so it is also a listbox with the lines of variable height).
|
10
|
+
#
|
10
11
|
# Also, as a consequence of its virtual nature, it doesn't have any methods to append or insert items in it as it isn't necessary to do it: you just have to call {Wx::VListBox#set_item_count} to tell the control how many items it should display. Of course, this also means that you will never use this class directly because it has pure virtual functions, but will need to derive your own class from it (for example, {Wx::HTML::HtmlListBox}).
|
11
12
|
# However it emits the same events as {Wx::ListBox} and the same event macros may be used with it. Since {Wx::VListBox} does not store its items itself, the events will only contain the index, not any contents such as the string of an item.
|
12
|
-
# ===
|
13
13
|
#
|
14
14
|
# Category: {Wx::Controls}
|
15
15
|
# @see Wx::HTML::SimpleHtmlListBox
|
@@ -20,11 +20,13 @@ module Wx
|
|
20
20
|
|
21
21
|
# @overload set_margins(pt)
|
22
22
|
# Set the margins: horizontal margin is the distance between the window border and the item contents while vertical margin is half of the distance between items.
|
23
|
+
#
|
23
24
|
# By default both margins are 0.
|
24
25
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
25
26
|
# @return [void]
|
26
27
|
# @overload set_margins(x, y)
|
27
28
|
# Set the margins: horizontal margin is the distance between the window border and the item contents while vertical margin is half of the distance between items.
|
29
|
+
#
|
28
30
|
# By default both margins are 0.
|
29
31
|
# @param x [Integer]
|
30
32
|
# @param y [Integer]
|
@@ -51,6 +53,7 @@ module Wx
|
|
51
53
|
def clear; end
|
52
54
|
|
53
55
|
# Creates the control.
|
56
|
+
#
|
54
57
|
# To finish creating it you also should call {Wx::VListBox#set_item_count} to let it know about the number of items it contains.
|
55
58
|
# The only special style which may be used with {Wx::VListBox} is {Wx::LB_MULTIPLE} which indicates that the listbox should support multiple selection.
|
56
59
|
# true on success or false if the control couldn't be created.
|
@@ -64,6 +67,7 @@ module Wx
|
|
64
67
|
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::V_LIST_BOX_NAME_STR) end
|
65
68
|
|
66
69
|
# Deselects all the items in the listbox.
|
70
|
+
#
|
67
71
|
# This method is only valid for multi selection listboxes.
|
68
72
|
# true if any items were changed, i.e. if there had been any selected items before, or false if all the items were already deselected.
|
69
73
|
# @see Wx::VListBox#select_all
|
@@ -73,12 +77,14 @@ module Wx
|
|
73
77
|
|
74
78
|
# Get the number of items in the control.
|
75
79
|
#
|
80
|
+
#
|
76
81
|
# @see Wx::VListBox#set_item_count
|
77
82
|
# @return [Integer]
|
78
83
|
def get_item_count; end
|
79
84
|
alias_method :item_count, :get_item_count
|
80
85
|
|
81
86
|
# Returns the margins used by the control.
|
87
|
+
#
|
82
88
|
# The x field of the returned point is the horizontal margin and the y field is the vertical one.
|
83
89
|
# @see Wx::VListBox#set_margins
|
84
90
|
# @return [Wx::Point]
|
@@ -86,6 +92,7 @@ module Wx
|
|
86
92
|
alias_method :margins, :get_margins
|
87
93
|
|
88
94
|
# Returns the rectangle occupied by this item in physical coordinates.
|
95
|
+
#
|
89
96
|
# If the item is not currently visible, returns an empty rectangle.
|
90
97
|
# @param item [Integer]
|
91
98
|
# @return [Wx::Rect]
|
@@ -93,6 +100,7 @@ module Wx
|
|
93
100
|
alias_method :item_rect, :get_item_rect
|
94
101
|
|
95
102
|
# Returns the number of the items currently selected.
|
103
|
+
#
|
96
104
|
# It is valid for both single and multi selection controls. In the former case it may only return 0 or 1 however.
|
97
105
|
# @see Wx::VListBox#is_selected
|
98
106
|
# @see Wx::VListBox#get_first_selected
|
@@ -107,6 +115,7 @@ module Wx
|
|
107
115
|
alias_method :selection, :get_selection
|
108
116
|
|
109
117
|
# Returns the background colour used for the selected cells.
|
118
|
+
#
|
110
119
|
# By default the standard system colour is used.
|
111
120
|
# @see Wx::SystemSettings.get_colour
|
112
121
|
# @see Wx::VListBox#set_selection_background
|
@@ -120,6 +129,7 @@ module Wx
|
|
120
129
|
alias_method :has_multiple_selection?, :has_multiple_selection
|
121
130
|
|
122
131
|
# Returns true if this item is the current one, false otherwise.
|
132
|
+
#
|
123
133
|
# The current item is always the same as selected one for the single selection listbox and in this case this method is equivalent to {Wx::VListBox#is_selected} but they are different for multi selection listboxes where many items may be selected but only one (at most) is current.
|
124
134
|
# @param item [Integer]
|
125
135
|
# @return [Boolean]
|
@@ -133,6 +143,7 @@ module Wx
|
|
133
143
|
alias_method :selected?, :is_selected
|
134
144
|
|
135
145
|
# Selects or deselects the specified item which must be valid (i.e. not equal to {Wx::NOT_FOUND}).
|
146
|
+
#
|
136
147
|
# true if the items selection status has changed or false otherwise.
|
137
148
|
#
|
138
149
|
# This function is only valid for the multiple selection listboxes, use {Wx::VListBox#set_selection} for the single selection ones.
|
@@ -142,6 +153,7 @@ module Wx
|
|
142
153
|
def select(item, select=true) end
|
143
154
|
|
144
155
|
# Selects all the items in the listbox.
|
156
|
+
#
|
145
157
|
# true if any items were changed, i.e. if there had been any unselected items before, or false if all the items were already selected.
|
146
158
|
#
|
147
159
|
# This method is only valid for multi selection listboxes.
|
@@ -151,6 +163,7 @@ module Wx
|
|
151
163
|
def select_all; end
|
152
164
|
|
153
165
|
# Selects all items in the specified range which may be given in any order.
|
166
|
+
#
|
154
167
|
# true if the items selection status has changed or false otherwise.
|
155
168
|
#
|
156
169
|
# This method is only valid for multi selection listboxes.
|
@@ -162,6 +175,7 @@ module Wx
|
|
162
175
|
def select_range(from, to) end
|
163
176
|
|
164
177
|
# Set the number of items to be shown in the control.
|
178
|
+
#
|
165
179
|
# This is just a synonym for {Wx::VScrolledWindow#set_row_count}.
|
166
180
|
# @param count [Integer]
|
167
181
|
# @return [void]
|
@@ -169,6 +183,7 @@ module Wx
|
|
169
183
|
alias_method :item_count=, :set_item_count
|
170
184
|
|
171
185
|
# Set the selection to the specified item, if it is -1 the selection is unset.
|
186
|
+
#
|
172
187
|
# The selected item will be automatically scrolled into view if it isn't currently visible.
|
173
188
|
# This method may be used both with single and multiple selection listboxes.
|
174
189
|
# @param selection [Integer]
|
@@ -177,8 +192,14 @@ module Wx
|
|
177
192
|
alias_method :selection=, :set_selection
|
178
193
|
|
179
194
|
# Sets the colour to be used for the selected cells background.
|
195
|
+
#
|
180
196
|
# The background of the standard cells may be changed by simply calling {Wx::Window#set_background_colour}.
|
181
|
-
#
|
197
|
+
#
|
198
|
+
# <div class="wxrb-note">
|
199
|
+
# <b>Note:</b>
|
200
|
+
# <p>Using a non-default background colour may result in control having an appearance different from the similar native controls and should be avoided in general.
|
201
|
+
# </p>
|
202
|
+
# </div>
|
182
203
|
# @see Wx::VListBox#get_selection_background
|
183
204
|
# @param col [Wx::Colour,String,Symbol]
|
184
205
|
# @return [void]
|
@@ -186,6 +207,7 @@ module Wx
|
|
186
207
|
alias_method :selection_background=, :set_selection_background
|
187
208
|
|
188
209
|
# Toggles the state of the specified item, i.e. selects it if it was unselected and deselects it if it was selected.
|
210
|
+
#
|
189
211
|
# This method is only valid for multi selection listboxes.
|
190
212
|
# @see Wx::VListBox#select
|
191
213
|
# @param item [Integer]
|
@@ -196,6 +218,7 @@ module Wx
|
|
196
218
|
protected
|
197
219
|
|
198
220
|
# The derived class must implement this function to actually draw the item with the given index on the provided DC.
|
221
|
+
#
|
199
222
|
# TodoChange this function signature to non-const.
|
200
223
|
# @param dc [Wx::DC] The device context to use for drawing.
|
201
224
|
# @param rect [Wx::Rect] The bounding rectangle for the item being drawn (DC clipping region is set to this rectangle before calling this function).
|
@@ -204,6 +227,7 @@ module Wx
|
|
204
227
|
def on_draw_item(dc, rect, n) end
|
205
228
|
|
206
229
|
# This method is used to draw the item's background and, maybe, a border around it.
|
230
|
+
#
|
207
231
|
# The base class version implements a reasonable default behaviour which consists in drawing the selected item with the standard background colour and drawing a border around the item if it is either selected or current.
|
208
232
|
# TodoChange this function signature to non-const.
|
209
233
|
# @param dc [Wx::DC]
|
@@ -213,6 +237,7 @@ module Wx
|
|
213
237
|
def on_draw_background(dc, rect, n) end
|
214
238
|
|
215
239
|
# This method may be used to draw separators between the lines.
|
240
|
+
#
|
216
241
|
# The rectangle passed to it may be modified, typically to deflate it a bit before passing to {Wx::VListBox#on_draw_item}.
|
217
242
|
# The base class version of this method doesn't do anything.
|
218
243
|
#
|
@@ -7,10 +7,11 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# In the name of this class, "V" may stand for "variable" because it can be used for scrolling rows of variable heights; "virtual", because it is not necessary to know the heights of all rows in advance only those which are shown on the screen need to be measured; or even "vertical", because this class only supports scrolling vertically.
|
10
|
+
#
|
10
11
|
# In any case, this is a generalization of {Wx::Scrolled} which can be only used when all rows have the same heights. It lacks some other {Wx::Scrolled} features however, notably it can't scroll specific pixel sizes of the window or its exact client area size.
|
11
12
|
# To use this class, you need to derive from it and implement the {Wx::VScrolledWindow#on_get_row_height} pure virtual method. You also must call {Wx::VScrolledWindow#set_row_count} to let the base class know how many rows it should display, but from that moment on the scrolling is handled entirely by {Wx::VScrolledWindow}. You only need to draw the visible part of contents in your <code>OnPaint()</code> method as usual. You should use {Wx::VScrolledWindow#get_visible_rows_begin} and {Wx::VScrolledWindow#get_visible_rows_end} to select the lines to display. Note that the device context origin is not shifted so the first visible row always appears at the point (0, 0) in physical as well as logical coordinates.
|
12
13
|
#
|
13
|
-
#
|
14
|
+
# ## wxWidgets 2.8 Compatibility Functions
|
14
15
|
#
|
15
16
|
# The following functions provide backwards compatibility for applications originally built using {Wx::VScrolledWindow} in 2.6 or 2.8. Originally, {Wx::VScrolledWindow} referred to scrolling "lines". We now use "units" in {Wx::VarScrollHelperBase} to avoid implying any orientation (since the functions are used for both horizontal and vertical scrolling in derived classes). And in the new {Wx::VScrolledWindow} and {Wx::HScrolledWindow} classes, we refer to them as "rows" and "columns", respectively. This is to help clear some confusion in not only those classes, but also in {Wx::HVScrolledWindow} where functions are inherited from both.
|
16
17
|
# You are encouraged to update any existing code using these function to use the new replacements mentioned below, and avoid using these functions for any new code as they are deprecated.
|
@@ -53,8 +54,6 @@ module Wx
|
|
53
54
|
# <code>void SetLineCount(size_t count)</code>
|
54
55
|
# Deprecated for {Wx::VScrolledWindow#set_row_count}.
|
55
56
|
#
|
56
|
-
# ===
|
57
|
-
#
|
58
57
|
# Category: Miscellaneous Windows
|
59
58
|
# @see Wx::HScrolledWindow
|
60
59
|
# @see Wx::HVScrolledWindow
|
@@ -67,7 +66,12 @@ module Wx
|
|
67
66
|
# @return [Wx::VScrolledWindow]
|
68
67
|
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR)
|
69
68
|
# This is the normal constructor, no need to call {Wx::VScrolledWindow#create} after using this constructor.
|
70
|
-
#
|
69
|
+
#
|
70
|
+
# <div class="wxrb-note">
|
71
|
+
# <b>Note:</b>
|
72
|
+
# <p>{Wx::VSCROLL} is always automatically added to the style, there is no need to specify it explicitly.
|
73
|
+
# </p>
|
74
|
+
# </div>
|
71
75
|
# @param parent [Wx::Window] The parent window, must not be NULL.
|
72
76
|
# @param id [Integer] The identifier of this window, {Wx::StandardID::ID_ANY} by default.
|
73
77
|
# @param pos [Array(Integer, Integer), Wx::Point] The initial window position.
|
@@ -78,6 +82,7 @@ module Wx
|
|
78
82
|
def initialize(*args) end
|
79
83
|
|
80
84
|
# Same as the non-default constructor, but returns a status code: true if ok, false if the window couldn't be created.
|
85
|
+
#
|
81
86
|
# Just as with the constructor, the {Wx::VSCROLL} style is always used, there is no need to specify it explicitly.
|
82
87
|
# @param parent [Wx::Window]
|
83
88
|
# @param id [Integer]
|
@@ -90,6 +95,7 @@ module Wx
|
|
90
95
|
|
91
96
|
# Returns the number of rows the target window contains.
|
92
97
|
#
|
98
|
+
#
|
93
99
|
# @see Wx::VScrolledWindow#set_row_count
|
94
100
|
# @return [Integer]
|
95
101
|
def get_row_count; end
|
@@ -101,6 +107,7 @@ module Wx
|
|
101
107
|
alias_method :visible_rows_begin, :get_visible_rows_begin
|
102
108
|
|
103
109
|
# Returns the index of the last visible row based on the scroll position.
|
110
|
+
#
|
104
111
|
# This includes the last row even if it is only partially visible.
|
105
112
|
# @return [Integer]
|
106
113
|
def get_visible_rows_end; end
|
@@ -129,12 +136,14 @@ module Wx
|
|
129
136
|
def scroll_row_pages(pages) end
|
130
137
|
|
131
138
|
# Scroll by the specified number of rows which may be positive (to scroll down) or negative (to scroll up).
|
139
|
+
#
|
132
140
|
# true if the window was scrolled, false otherwise (for example, if we're trying to scroll down but we are already showing the last row).
|
133
141
|
# @param rows [Integer]
|
134
142
|
# @return [Boolean]
|
135
143
|
def scroll_rows(rows) end
|
136
144
|
|
137
145
|
# Scroll to the specified row.
|
146
|
+
#
|
138
147
|
# It will become the first visible row in the window.
|
139
148
|
# true if we scrolled the window, false if nothing was done.
|
140
149
|
# @param row [Integer]
|
@@ -142,6 +151,7 @@ module Wx
|
|
142
151
|
def scroll_to_row(row) end
|
143
152
|
|
144
153
|
# Set the number of rows the window contains.
|
154
|
+
#
|
145
155
|
# The derived class must provide the heights for all rows with indices up to the one given here in it's {Wx::VScrolledWindow#on_get_row_height} implementation.
|
146
156
|
# @see Wx::VScrolledWindow#get_row_count
|
147
157
|
# @param rowCount [Integer]
|
@@ -150,6 +160,7 @@ module Wx
|
|
150
160
|
alias_method :row_count=, :set_row_count
|
151
161
|
|
152
162
|
# Translates the logical coordinate given to the current device coordinate.
|
163
|
+
#
|
153
164
|
# For example, if the window is scrolled 10 units and each scroll unit represents 10 device units (which may not be the case since this class allows for variable scroll unit sizes), a call to this function with a coordinate of 15 will return -85.
|
154
165
|
# @see Wx::VScrolledWindow#calc_unscrolled_position
|
155
166
|
# @param coord [Integer]
|
@@ -157,6 +168,7 @@ module Wx
|
|
157
168
|
def calc_scrolled_position(coord) end
|
158
169
|
|
159
170
|
# Translates the device coordinate given to the corresponding logical coordinate.
|
171
|
+
#
|
160
172
|
# For example, if the window is scrolled 10 units and each scroll unit represents 10 device units (which may not be the case since this class allows for variable scroll unit sizes), a call to this function with a coordinate of 15 will return 115.
|
161
173
|
# @see Wx::VScrolledWindow#calc_scrolled_position
|
162
174
|
# @param coord [Integer]
|
@@ -164,6 +176,7 @@ module Wx
|
|
164
176
|
def calc_unscrolled_position(coord) end
|
165
177
|
|
166
178
|
# With physical scrolling on (when this is true), the device origin is changed properly when a {Wx::PaintDC} is prepared, children are actually moved and laid out properly, and the contents of the window (pixels) are actually moved.
|
179
|
+
#
|
167
180
|
# When this is false, you are responsible for repainting any invalidated areas of the window yourself to account for the new scroll position.
|
168
181
|
# @param scrolling [Boolean]
|
169
182
|
# @return [void]
|
@@ -171,6 +184,7 @@ module Wx
|
|
171
184
|
|
172
185
|
# This function will return the target window this helper class is currently scrolling.
|
173
186
|
#
|
187
|
+
#
|
174
188
|
# @see Wx::VScrolledWindow#set_target_window
|
175
189
|
# @return [Wx::Window]
|
176
190
|
def get_target_window; end
|
@@ -182,6 +196,7 @@ module Wx
|
|
182
196
|
alias_method :visible_begin, :get_visible_begin
|
183
197
|
|
184
198
|
# Returns the index of the last visible unit based on the scroll position.
|
199
|
+
#
|
185
200
|
# This includes the last unit even if it is only partially visible.
|
186
201
|
# @return [Integer]
|
187
202
|
def get_visible_end; end
|
@@ -198,6 +213,7 @@ module Wx
|
|
198
213
|
def refresh_all; end
|
199
214
|
|
200
215
|
# Normally the window will scroll itself, but in some rare occasions you might want it to scroll (part of) another window (e.g.
|
216
|
+
#
|
201
217
|
# a child of it in order to scroll only a portion the area between the scrollbars like a spreadsheet where only the cell area will move).
|
202
218
|
# @see Wx::VScrolledWindow#get_target_window
|
203
219
|
# @param target [Wx::Window]
|
@@ -210,6 +226,7 @@ module Wx
|
|
210
226
|
def update_scrollbar; end
|
211
227
|
|
212
228
|
# Returns the virtual scroll unit under the device unit given accounting for scroll position or {Wx::NOT_FOUND} if none (i.e.
|
229
|
+
#
|
213
230
|
# if it is below the last item).
|
214
231
|
# @param coord [Integer]
|
215
232
|
# @return [Integer]
|
data/lib/wx/doc/gen/validator.rb
CHANGED
@@ -11,6 +11,7 @@ module Wx
|
|
11
11
|
DEFAULT_VALIDATOR = nil
|
12
12
|
|
13
13
|
# {Wx::Validator} is the base class for a family of validator classes that mediate between a class of control, and application data.
|
14
|
+
#
|
14
15
|
# A validator has three major roles:
|
15
16
|
#
|
16
17
|
# - To transfer data from a C++ variable or own storage to and from a control.
|
@@ -20,7 +21,6 @@ module Wx
|
|
20
21
|
# Validators can be plugged into controls dynamically.
|
21
22
|
# To specify a default, "null" validator, use {Wx::DEFAULT_VALIDATOR}.
|
22
23
|
# For more information, please see wxValidator Overview.
|
23
|
-
# ===
|
24
24
|
#
|
25
25
|
# Category: {Wx::Validators}
|
26
26
|
# Predefined objects/pointers: {Wx::DEFAULT_VALIDATOR}
|
@@ -31,31 +31,27 @@ module Wx
|
|
31
31
|
# @see Wx::FloatingPointValidator
|
32
32
|
#
|
33
33
|
#
|
34
|
+
# @wxrb_require USE_VALIDATORS
|
34
35
|
class Validator < EvtHandler
|
35
36
|
|
36
37
|
# Constructor.
|
37
38
|
# @return [Wx::Validator]
|
38
39
|
def initialize; end
|
39
40
|
|
41
|
+
# All validator classes must implement the {Wx::Validator#clone} function, which returns an identical copy of itself.
|
42
|
+
#
|
43
|
+
# This is because validators are passed to control constructors as references which must be copied. Unlike objects such as pens and brushes, it does not make sense to have a reference counting scheme to do this cloning because all validators should have separate data.
|
44
|
+
# This base function returns NULL.
|
45
|
+
# @return [Wx::Object]
|
46
|
+
def clone; end
|
47
|
+
|
40
48
|
# Returns the window associated with the validator.
|
41
49
|
# @return [Wx::Window]
|
42
50
|
def get_window; end
|
43
51
|
alias_method :window, :get_window
|
44
52
|
|
45
|
-
# Associates a window with the validator.
|
46
|
-
# This function is automatically called by wxWidgets when creating a {Wx::Window}-derived class instance which takes a {Wx::Validator} reference. Since wxWidgets 3.1.1, it can be overridden in custom validators in order to perform any one-time initialization or checks of the window when the validator is associated with it.
|
47
|
-
# E.g.
|
48
|
-
# ```ruby
|
49
|
-
# Wx::TextCtrl.new(self, Wx::ID_ANY, '', Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, 0,
|
50
|
-
# Wx::TextValidator.new(Wx::FILTER_ALPHA))
|
51
|
-
# ```
|
52
|
-
# will automatically link the {Wx::TextValidator} instance with the {Wx::TextCtrl} instance and call {Wx::Validator#set_window} method on the {Wx::TextValidator} object.
|
53
|
-
# @param window [Wx::Window]
|
54
|
-
# @return [void]
|
55
|
-
def set_window(window) end
|
56
|
-
alias_method :window=, :set_window
|
57
|
-
|
58
53
|
# This overridable function is called when the value in the associated window must be validated.
|
54
|
+
#
|
59
55
|
# false if the value in the window is not valid; you may pop up an error dialog.
|
60
56
|
# @param parent [Wx::Window] The parent of the window associated with the validator.
|
61
57
|
# @return [Boolean]
|