wxruby3 0.9.0-x64-mingw-ucrt → 0.9.2-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/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/collapsible_pane.rb +1 -1
- data/lib/wx/core/const.rb +83 -0
- data/lib/wx/core/controlwithitems.rb +8 -6
- data/lib/wx/core/events/evt_list.rb +24 -0
- data/lib/wx/core/menu.rb +10 -0
- data/lib/wx/core/notebook.rb +6 -2
- data/lib/wx/core/sizer.rb +11 -0
- data/lib/wx/core/task_bar_button.rb +19 -0
- data/lib/wx/core/textctrl.rb +11 -1
- data/lib/wx/core/{treectrl.rb → tree_ctrl.rb} +31 -12
- data/lib/wx/core/window.rb +10 -0
- data/lib/wx/doc/app.rb +48 -38
- data/lib/wx/doc/art_locator.rb +47 -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/const.rb +66 -66
- data/lib/wx/doc/controlwithitems.rb +17 -7
- data/lib/wx/doc/data_object.rb +2 -2
- data/lib/wx/doc/event.rb +0 -6
- data/lib/wx/doc/evthandler.rb +113 -108
- data/lib/wx/doc/font.rb +1 -0
- data/lib/wx/doc/functions.rb +9 -9
- data/lib/wx/doc/gc_dc.rb +6 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -2
- data/lib/wx/doc/gen/accelerator.rb +14 -5
- data/lib/wx/doc/gen/accessible.rb +35 -47
- data/lib/wx/doc/gen/activity_indicator.rb +6 -7
- data/lib/wx/doc/gen/animation.rb +7 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +8 -9
- data/lib/wx/doc/gen/any_button.rb +6 -1
- data/lib/wx/doc/gen/app.rb +7 -5
- data/lib/wx/doc/gen/app_traits.rb +27 -10
- data/lib/wx/doc/gen/art_provider.rb +20 -8
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +6 -3
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +11 -7
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +3 -4
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -2
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +1 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +8 -3
- data/lib/wx/doc/gen/aui/aui_notebook.rb +14 -8
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +9 -2
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +9 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -8
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +1 -1
- data/lib/wx/doc/gen/aui/event_list.rb +164 -160
- data/lib/wx/doc/gen/banner_window.rb +3 -3
- data/lib/wx/doc/gen/bitmap.rb +34 -17
- data/lib/wx/doc/gen/bitmap_button.rb +13 -10
- data/lib/wx/doc/gen/bitmap_combo_box.rb +16 -12
- data/lib/wx/doc/gen/book_ctrl_base.rb +16 -4
- data/lib/wx/doc/gen/book_ctrl_event.rb +7 -3
- data/lib/wx/doc/gen/box_sizer.rb +0 -1
- data/lib/wx/doc/gen/brush.rb +5 -2
- data/lib/wx/doc/gen/busy_info.rb +2 -2
- data/lib/wx/doc/gen/button.rb +25 -13
- data/lib/wx/doc/gen/calculate_layout_event.rb +1 -3
- data/lib/wx/doc/gen/calendar_ctrl.rb +18 -15
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
- data/lib/wx/doc/gen/calendar_event.rb +4 -3
- data/lib/wx/doc/gen/caret.rb +0 -1
- data/lib/wx/doc/gen/check_box.rb +9 -9
- data/lib/wx/doc/gen/check_list_box.rb +8 -9
- data/lib/wx/doc/gen/choice.rb +18 -11
- data/lib/wx/doc/gen/choicebook.rb +6 -7
- data/lib/wx/doc/gen/client_dc.rb +5 -2
- data/lib/wx/doc/gen/clipboard.rb +7 -3
- data/lib/wx/doc/gen/collapsible_pane.rb +8 -9
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -3
- data/lib/wx/doc/gen/colour.rb +8 -4
- data/lib/wx/doc/gen/colour_dialog.rb +6 -8
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +11 -12
- data/lib/wx/doc/gen/colour_picker_event.rb +4 -5
- data/lib/wx/doc/gen/combo_box.rb +20 -17
- data/lib/wx/doc/gen/combo_ctrl.rb +100 -37
- data/lib/wx/doc/gen/command_link_button.rb +6 -7
- data/lib/wx/doc/gen/context_help_button.rb +7 -3
- data/lib/wx/doc/gen/control.rb +12 -10
- data/lib/wx/doc/gen/control_with_items.rb +0 -1
- data/lib/wx/doc/gen/core.rb +4 -4
- data/lib/wx/doc/gen/cursor.rb +6 -8
- data/lib/wx/doc/gen/data_format.rb +6 -1
- data/lib/wx/doc/gen/data_object.rb +16 -14
- data/lib/wx/doc/gen/date_event.rb +2 -2
- data/lib/wx/doc/gen/date_picker_ctrl.rb +14 -10
- data/lib/wx/doc/gen/dc.rb +155 -37
- data/lib/wx/doc/gen/defs.rb +54 -54
- data/lib/wx/doc/gen/dial_up_event.rb +41 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +137 -0
- data/lib/wx/doc/gen/dialog.rb +35 -15
- data/lib/wx/doc/gen/dir_dialog.rb +17 -5
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +11 -12
- data/lib/wx/doc/gen/drag_drop.rb +11 -10
- data/lib/wx/doc/gen/drag_image.rb +6 -2
- data/lib/wx/doc/gen/editable_list_box.rb +4 -4
- data/lib/wx/doc/gen/event.rb +42 -20
- data/lib/wx/doc/gen/event_blocker.rb +1 -3
- data/lib/wx/doc/gen/event_list.rb +1656 -1624
- data/lib/wx/doc/gen/events.rb +170 -181
- data/lib/wx/doc/gen/evt_handler.rb +11 -3
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_ctrl.rb +209 -0
- data/lib/wx/doc/gen/file_ctrl_event.rb +79 -0
- data/lib/wx/doc/gen/file_dialog.rb +32 -15
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +7 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +2 -3
- data/lib/wx/doc/gen/file_dir_picker_event.rb +3 -4
- data/lib/wx/doc/gen/file_picker_ctrl.rb +10 -11
- data/lib/wx/doc/gen/file_system.rb +38 -15
- data/lib/wx/doc/gen/find_dialog_event.rb +5 -4
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -1
- data/lib/wx/doc/gen/font.rb +31 -20
- data/lib/wx/doc/gen/font_data.rb +3 -4
- data/lib/wx/doc/gen/font_dialog.rb +1 -2
- data/lib/wx/doc/gen/font_picker_ctrl.rb +8 -9
- data/lib/wx/doc/gen/font_picker_event.rb +2 -3
- data/lib/wx/doc/gen/frame.rb +60 -19
- data/lib/wx/doc/gen/fs_file.rb +17 -10
- data/lib/wx/doc/gen/gauge.rb +13 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +0 -1
- data/lib/wx/doc/gen/gcdc.rb +1 -2
- data/lib/wx/doc/gen/gdi_common.rb +30 -11
- data/lib/wx/doc/gen/gdi_object.rb +0 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +8 -9
- data/lib/wx/doc/gen/graphics_context.rb +59 -12
- data/lib/wx/doc/gen/graphics_object.rb +11 -6
- data/lib/wx/doc/gen/grid/event_list.rb +168 -164
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +29 -7
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_size_event.rb +3 -4
- data/lib/wx/doc/gen/grid/grid_string_table.rb +1 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +1 -2
- data/lib/wx/doc/gen/grid/grid_table_message.rb +1 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -6
- data/lib/wx/doc/gen/grid_sizer.rb +0 -1
- data/lib/wx/doc/gen/gui_event_loop.rb +2 -4
- data/lib/wx/doc/gen/header_ctrl.rb +7 -14
- data/lib/wx/doc/gen/header_ctrl_event.rb +1 -3
- data/lib/wx/doc/gen/help_controller.rb +42 -3
- data/lib/wx/doc/gen/help_provider.rb +12 -3
- data/lib/wx/doc/gen/html/event_list.rb +41 -37
- data/lib/wx/doc/gen/html/html_cell.rb +23 -6
- data/lib/wx/doc/gen/html/html_cell_event.rb +3 -4
- data/lib/wx/doc/gen/html/html_easy_printing.rb +8 -3
- data/lib/wx/doc/gen/html/html_help_controller.rb +47 -2
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -1
- data/lib/wx/doc/gen/html/html_help_window.rb +1 -1
- data/lib/wx/doc/gen/html/html_link_event.rb +2 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +10 -12
- data/lib/wx/doc/gen/html/html_printout.rb +1 -2
- data/lib/wx/doc/gen/html/html_window.rb +13 -7
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +9 -9
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -3
- data/lib/wx/doc/gen/icon.rb +5 -29
- data/lib/wx/doc/gen/icon_location.rb +0 -1
- data/lib/wx/doc/gen/image.rb +83 -17
- data/lib/wx/doc/gen/image_list.rb +15 -6
- data/lib/wx/doc/gen/info_bar.rb +2 -2
- data/lib/wx/doc/gen/keyboard_state.rb +0 -1
- data/lib/wx/doc/gen/list_box.rb +33 -21
- data/lib/wx/doc/gen/list_ctrl.rb +79 -32
- data/lib/wx/doc/gen/list_event.rb +3 -4
- data/lib/wx/doc/gen/listbook.rb +6 -7
- data/lib/wx/doc/gen/locale.rb +46 -4
- data/lib/wx/doc/gen/log.rb +16 -12
- data/lib/wx/doc/gen/mdi_client_window.rb +8 -2
- data/lib/wx/doc/gen/mdi_frame.rb +32 -11
- data/lib/wx/doc/gen/media_ctrl.rb +28 -20
- data/lib/wx/doc/gen/media_event.rb +5 -4
- data/lib/wx/doc/gen/memory_dc.rb +6 -6
- data/lib/wx/doc/gen/menu.rb +37 -23
- data/lib/wx/doc/gen/menu_bar.rb +52 -12
- data/lib/wx/doc/gen/menu_item.rb +117 -95
- data/lib/wx/doc/gen/message_dialog.rb +7 -8
- data/lib/wx/doc/gen/mini_frame.rb +13 -7
- data/lib/wx/doc/gen/mirror_dc.rb +0 -2
- data/lib/wx/doc/gen/mouse_state.rb +0 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +7 -4
- data/lib/wx/doc/gen/non_owned_window.rb +1 -1
- data/lib/wx/doc/gen/notebook.rb +19 -11
- data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
- data/lib/wx/doc/gen/object.rb +0 -1
- data/lib/wx/doc/gen/paint_dc.rb +0 -1
- data/lib/wx/doc/gen/palette.rb +0 -1
- data/lib/wx/doc/gen/panel.rb +19 -10
- data/lib/wx/doc/gen/pen.rb +17 -8
- data/lib/wx/doc/gen/pg/event_list.rb +97 -93
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +9 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +8 -5
- data/lib/wx/doc/gen/pg/pg_editor.rb +115 -16
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +1 -2
- data/lib/wx/doc/gen/pg/pg_properties.rb +515 -83
- data/lib/wx/doc/gen/pg/pg_property.rb +296 -69
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +9 -4
- data/lib/wx/doc/gen/pg/property_grid.rb +83 -22
- data/lib/wx/doc/gen/pg/property_grid_event.rb +31 -9
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +212 -34
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +42 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +26 -8
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +13 -4
- data/lib/wx/doc/gen/picker_base.rb +12 -5
- data/lib/wx/doc/gen/platform_info.rb +4 -9
- data/lib/wx/doc/gen/popup_window.rb +2 -5
- data/lib/wx/doc/gen/progress_dialog.rb +1 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +15 -5
- data/lib/wx/doc/gen/prt/event_list.rb +8 -4
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +2 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +4 -1
- data/lib/wx/doc/gen/prt/print_data.rb +4 -3
- data/lib/wx/doc/gen/prt/print_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/printer.rb +50 -11
- data/lib/wx/doc/gen/prt/printer_dc.rb +1 -1
- data/lib/wx/doc/gen/query_layout_info_event.rb +1 -3
- data/lib/wx/doc/gen/radio_box.rb +13 -14
- data/lib/wx/doc/gen/radio_button.rb +15 -11
- data/lib/wx/doc/gen/rbn/event_list.rb +127 -123
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +19 -3
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +3 -4
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +18 -6
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +1 -2
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +5 -4
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +2 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +3 -4
- data/lib/wx/doc/gen/rearrange_list.rb +5 -6
- data/lib/wx/doc/gen/region.rb +75 -17
- data/lib/wx/doc/gen/region_iterator.rb +0 -1
- data/lib/wx/doc/gen/rtc/event_list.rb +116 -112
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +3 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -9
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -2
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +3 -6
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +12 -9
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +3 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +3 -5
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +4 -5
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +3 -2
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -3
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +2 -4
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +28 -23
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +7 -11
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +14 -14
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -4
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +3 -4
- data/lib/wx/doc/gen/sash_event.rb +12 -4
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -6
- data/lib/wx/doc/gen/sash_window.rb +4 -5
- data/lib/wx/doc/gen/screen_dc.rb +0 -1
- data/lib/wx/doc/gen/scroll_bar.rb +21 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +34 -12
- data/lib/wx/doc/gen/scrolled_control.rb +34 -12
- data/lib/wx/doc/gen/scrolled_window.rb +34 -12
- data/lib/wx/doc/gen/search_ctrl.rb +10 -11
- data/lib/wx/doc/gen/simplebook.rb +1 -1
- data/lib/wx/doc/gen/single_choice_dialog.rb +7 -4
- data/lib/wx/doc/gen/sizer.rb +12 -7
- data/lib/wx/doc/gen/sizer_item.rb +5 -2
- data/lib/wx/doc/gen/slider.rb +29 -19
- data/lib/wx/doc/gen/spin_button.rb +16 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +24 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +6 -7
- data/lib/wx/doc/gen/spin_double_event.rb +3 -4
- data/lib/wx/doc/gen/spin_event.rb +3 -3
- data/lib/wx/doc/gen/splash_screen.rb +1 -2
- data/lib/wx/doc/gen/splitter_event.rb +3 -4
- data/lib/wx/doc/gen/splitter_window.rb +78 -20
- data/lib/wx/doc/gen/static_bitmap.rb +12 -7
- data/lib/wx/doc/gen/static_box.rb +13 -11
- data/lib/wx/doc/gen/static_box_sizer.rb +0 -2
- data/lib/wx/doc/gen/static_line.rb +5 -6
- data/lib/wx/doc/gen/static_text.rb +7 -8
- data/lib/wx/doc/gen/status_bar.rb +21 -11
- data/lib/wx/doc/gen/stc/event_list.rb +212 -208
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +41 -15
- data/lib/wx/doc/gen/stc/styled_text_event.rb +5 -6
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -1
- data/lib/wx/doc/gen/svg_file_dc.rb +7 -8
- data/lib/wx/doc/gen/system_options.rb +6 -6
- data/lib/wx/doc/gen/system_settings.rb +2 -3
- data/lib/wx/doc/gen/task_bar_button.rb +312 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +21 -8
- data/lib/wx/doc/gen/task_bar_icon_event.rb +4 -3
- data/lib/wx/doc/gen/text_attr.rb +20 -5
- data/lib/wx/doc/gen/text_ctrl.rb +92 -27
- data/lib/wx/doc/gen/text_entry.rb +31 -11
- data/lib/wx/doc/gen/text_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/text_validator.rb +43 -10
- data/lib/wx/doc/gen/time_picker_ctrl.rb +7 -8
- data/lib/wx/doc/gen/timer.rb +6 -2
- data/lib/wx/doc/gen/timer_event.rb +1 -2
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +7 -8
- data/lib/wx/doc/gen/tool_bar.rb +99 -26
- data/lib/wx/doc/gen/tool_tip.rb +35 -5
- data/lib/wx/doc/gen/toolbook.rb +3 -4
- data/lib/wx/doc/gen/top_level_window.rb +71 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +42 -18
- data/lib/wx/doc/gen/tree_event.rb +3 -4
- data/lib/wx/doc/gen/treebook.rb +7 -4
- data/lib/wx/doc/gen/ui_action_simulator.rb +6 -2
- data/lib/wx/doc/gen/utils.rb +39 -7
- data/lib/wx/doc/gen/v_list_box.rb +8 -4
- data/lib/wx/doc/gen/v_scrolled_window.rb +8 -6
- data/lib/wx/doc/gen/validator.rb +1 -1
- data/lib/wx/doc/gen/variant.rb +1 -0
- data/lib/wx/doc/gen/window.rb +200 -50
- data/lib/wx/doc/gen/window_dc.rb +0 -1
- data/lib/wx/doc/gen/window_disabler.rb +5 -2
- data/lib/wx/doc/gen/with_images.rb +6 -1
- data/lib/wx/doc/gen/wizard.rb +4 -4
- data/lib/wx/doc/gen/wizard_event.rb +3 -4
- data/lib/wx/doc/gen/wizard_page.rb +2 -2
- data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
- data/lib/wx/doc/gen/wrap_sizer.rb +0 -1
- data/lib/wx/doc/gen/xml_node.rb +19 -4
- data/lib/wx/doc/gen/xml_resource.rb +18 -5
- 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/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/pg/events.rb +13 -9
- 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/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 +12 -8
- 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/variant.rb +164 -160
- data/lib/wx/doc/window.rb +57 -42
- data/lib/wx/doc/window_disabler.rb +10 -6
- data/lib/wx/grid/grid.rb +27 -4
- data/lib/wx/keyword_defs.rb +43 -6
- data/lib/wx/pg/pg_property.rb +22 -0
- 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 +1 -1
- data/rakelib/lib/config/mingw.rb +1 -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/text/richtext.rb +0 -30
- data/samples/treectrl/treectrl.rb +1 -1
- data/tests/media/beep_lo.wav +0 -0
- data/tests/test_app_exit_exception.rb +36 -0
- data/tests/test_app_init_exception.rb +20 -0
- data/tests/test_book_controls.rb +29 -0
- data/tests/test_exceptions.rb +41 -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 +78 -1
- data/tests/test_styled_text_ctrl.rb +46 -0
- data/tests/test_tree_ctrl.rb +138 -0
- data/tests/test_window.rb +12 -0
- data/tests/testapp_noframe.rb +1 -1
- metadata +38 -3
data/lib/wx/doc/gen/list_box.rb
CHANGED
@@ -10,13 +10,13 @@ module Wx
|
|
10
10
|
# The strings are displayed in a scrolling box, with the selected string(s) marked in reverse video. A listbox can be single selection (if an item is selected, the previous selection is removed) or multiple selection (clicking an item toggles the item on or off independently of other selections).
|
11
11
|
# List box elements are numbered from zero and while the maximal number of elements is unlimited, it is usually better to use a virtual control, not requiring to add all the items to it at once, such as {Wx::DataViewCtrl} or {Wx::ListCtrl} with {Wx::LC_VIRTUAL} style, once more than a few hundreds items need to be displayed because this control is not optimized, neither from performance nor from user interface point of view, for large number of items.
|
12
12
|
# Notice that the list box doesn't support control characters other than TAB.
|
13
|
-
#
|
13
|
+
# ### Styles
|
14
14
|
#
|
15
15
|
# This class supports the following styles:
|
16
16
|
#
|
17
17
|
# - {Wx::LB_SINGLE}: Single-selection list.
|
18
18
|
#
|
19
|
-
# - {Wx::LB_MULTIPLE}: Multiple-selection list: the user can toggle multiple items on and off. This is the same as {Wx::LB_EXTENDED} in
|
19
|
+
# - {Wx::LB_MULTIPLE}: Multiple-selection list: the user can toggle multiple items on and off. This is the same as {Wx::LB_EXTENDED} in WXGTK2 port.
|
20
20
|
#
|
21
21
|
# - {Wx::LB_EXTENDED}: Extended-selection list: the user can extend the selection by using SHIFT or CTRL keys together with the cursor movement keys or the mouse.
|
22
22
|
#
|
@@ -26,25 +26,23 @@ module Wx
|
|
26
26
|
#
|
27
27
|
# - {Wx::LB_NEEDED_SB}: Only create a vertical scrollbar if needed.
|
28
28
|
#
|
29
|
-
# - {Wx::LB_NO_SB}: Don't create vertical scrollbar (
|
29
|
+
# - {Wx::LB_NO_SB}: Don't create vertical scrollbar (WXMSW and WXGTK only).
|
30
30
|
#
|
31
31
|
# - {Wx::LB_SORT}: The listbox contents are sorted in alphabetical order.
|
32
32
|
#
|
33
33
|
# Note that {Wx::LB_SINGLE}, {Wx::LB_MULTIPLE} and {Wx::LB_EXTENDED} styles are mutually exclusive and you can specify at most one of them (single selection is the default). See also Window Styles.
|
34
|
-
#
|
34
|
+
# ### Events emitted by this class
|
35
35
|
#
|
36
36
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
|
37
37
|
# Event handler methods for events emitted by this class:
|
38
38
|
#
|
39
39
|
# - {Wx::EvtHandler#evt_listbox}(id, meth = nil, &block): Process a {Wx::EVT_LISTBOX} event, when an item on the list is selected or the selection changes.
|
40
40
|
#
|
41
|
-
# - {Wx::EvtHandler#evt_listbox_dclick}(id, meth = nil, &block): Process a {Wx::EVT_LISTBOX_DCLICK} event, when the listbox is double-clicked. On some platforms (notably
|
41
|
+
# - {Wx::EvtHandler#evt_listbox_dclick}(id, meth = nil, &block): Process a {Wx::EVT_LISTBOX_DCLICK} event, when the listbox is double-clicked. On some platforms (notably WXGTK2) pressing the enter key is handled as an equivalent of a double-click.
|
42
42
|
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
# </td><td> wxGTK Appearance
|
47
|
-
# </td><td> wxOSX Appearance
|
43
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> WXMSW Appearance
|
44
|
+
# </td><td> WXGTK Appearance
|
45
|
+
# </td><td> WXOSX Appearance
|
48
46
|
# </td></tr></table></div>
|
49
47
|
# @see Wx::EditableListBox
|
50
48
|
# @see Wx::Choice
|
@@ -53,9 +51,10 @@ module Wx
|
|
53
51
|
# @see Wx::CommandEvent
|
54
52
|
#
|
55
53
|
#
|
54
|
+
# @wxrb_require USE_LISTBOX
|
56
55
|
class ListBox < ControlWithItems
|
57
56
|
|
58
|
-
# @overload create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
57
|
+
# @overload create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR)
|
59
58
|
# Creates the listbox for two-step construction.
|
60
59
|
# See {Wx::ListBox#initialize} for further details.
|
61
60
|
# @param parent [Wx::Window]
|
@@ -67,7 +66,7 @@ module Wx
|
|
67
66
|
# @param validator [Wx::Validator]
|
68
67
|
# @param name [String]
|
69
68
|
# @return [Boolean]
|
70
|
-
# @overload create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
69
|
+
# @overload create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR)
|
71
70
|
# Creates the listbox for two-step construction.
|
72
71
|
# See {Wx::ListBox#initialize} for further details.
|
73
72
|
# @param parent [Wx::Window]
|
@@ -84,7 +83,7 @@ module Wx
|
|
84
83
|
# @overload initialize()
|
85
84
|
# Default constructor.
|
86
85
|
# @return [Wx::ListBox]
|
87
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
86
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR)
|
88
87
|
# Constructor, creating and showing a list box.
|
89
88
|
# @param parent [Wx::Window] The parent window.
|
90
89
|
# @param id [Integer] The ID of this control. A value of {Wx::StandardID::ID_ANY} indicates a default value.
|
@@ -95,7 +94,7 @@ module Wx
|
|
95
94
|
# @param validator [Wx::Validator] The validator for this control.
|
96
95
|
# @param name [String] The name of this class.
|
97
96
|
# @return [Wx::ListBox]
|
98
|
-
# @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
97
|
+
# @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR)
|
99
98
|
# Constructor, creating and showing a list box.
|
100
99
|
# See the other {Wx::ListBox#initialize} constructor; the only difference is that this overload takes a {Wx::ArrayString} instead of a pointer to an array of {Wx::String}.
|
101
100
|
# @param parent [Wx::Window]
|
@@ -110,7 +109,11 @@ module Wx
|
|
110
109
|
def initialize(*args) end
|
111
110
|
|
112
111
|
# Deselects an item in the list box.
|
113
|
-
#
|
112
|
+
# <div class="wxrb-remark">
|
113
|
+
# <b>Remark:</b>
|
114
|
+
# <p>This applies to multiple selection listboxes only.
|
115
|
+
# </p>
|
116
|
+
# </div>>
|
114
117
|
# @param n [Integer] The zero-based item to deselect.
|
115
118
|
# @return [void]
|
116
119
|
def deselect(n) end
|
@@ -127,7 +130,11 @@ module Wx
|
|
127
130
|
# Returns the index of the selected item or {Wx::NOT_FOUND} if no item is selected.
|
128
131
|
# The position of the current selection.
|
129
132
|
#
|
130
|
-
#
|
133
|
+
# <div class="wxrb-remark">
|
134
|
+
# <b>Remark:</b>
|
135
|
+
# <p>This method can be used with single selection list boxes only, you must use {Wx::ListBox#get_selections} for the list boxes with {Wx::LB_MULTIPLE} style.
|
136
|
+
# </p>
|
137
|
+
# </div>>
|
131
138
|
# @see Wx::ListBox#set_selection
|
132
139
|
# @see Wx::ListBox#get_string_selection
|
133
140
|
# @return [Integer]
|
@@ -147,7 +154,11 @@ module Wx
|
|
147
154
|
# Fill an array of ints with the positions of the currently selected items.
|
148
155
|
# The number of selections.
|
149
156
|
#
|
150
|
-
#
|
157
|
+
# <div class="wxrb-remark">
|
158
|
+
# <b>Remark:</b>
|
159
|
+
# <p>Use this with a multiple selection listbox.
|
160
|
+
# </p>
|
161
|
+
# </div>>
|
151
162
|
# @see Wx::ControlWithItems::GetSelection
|
152
163
|
# @see Wx::ControlWithItems::GetStringSelection
|
153
164
|
# @see Wx::ControlWithItems::SetSelection
|
@@ -157,7 +168,7 @@ module Wx
|
|
157
168
|
|
158
169
|
# @overload hit_test(point)
|
159
170
|
# Returns the item located at point, or {Wx::NOT_FOUND} if there is no item located at point.
|
160
|
-
# It is currently implemented for
|
171
|
+
# It is currently implemented for WXMSW, WXOSX and WXGTK2 ports.
|
161
172
|
#
|
162
173
|
# Item located at point, or {Wx::NOT_FOUND} if unimplemented or the item does not exist.
|
163
174
|
# @param point [Array(Integer, Integer), Wx::Point] Point of item (in client coordinates) to obtain
|
@@ -200,7 +211,7 @@ module Wx
|
|
200
211
|
def ensure_visible(n) end
|
201
212
|
|
202
213
|
# Return the number of items that can fit vertically in the visible area of the listbox.
|
203
|
-
# Returns -1 if the number of items per page couldn't be determined. On
|
214
|
+
# Returns -1 if the number of items per page couldn't be determined. On WXGTK this method can only determine the number of items per page if there is at least one item in the listbox.
|
204
215
|
# @return [Integer]
|
205
216
|
def get_count_per_page; end
|
206
217
|
alias_method :count_per_page, :get_count_per_page
|
@@ -218,9 +229,10 @@ module Wx
|
|
218
229
|
#
|
219
230
|
# true if all specified tabs are set, false otherwise
|
220
231
|
#
|
221
|
-
# Availability: only available for the
|
222
|
-
# @param tabStops [
|
232
|
+
# Availability: only available for the WXMSW port.
|
233
|
+
# @param tabStops [Array<Integer>] If this argument is empty, tab stops are reset to their default value (every 32 dialog units). If it contains a single element, tab stops are set at each multiple of the given value. Otherwise tab stops are set at every element of the array, which must be in ascending order.
|
223
234
|
# @return [Boolean]
|
235
|
+
# @wxrb_require WXMSW
|
224
236
|
def msw_set_tab_stops(tabStops) end
|
225
237
|
|
226
238
|
# Returns the number of items in the control.
|
data/lib/wx/doc/gen/list_ctrl.rb
CHANGED
@@ -169,6 +169,7 @@ module Wx
|
|
169
169
|
#
|
170
170
|
#
|
171
171
|
#
|
172
|
+
# @wxrb_require USE_LISTCTRL
|
172
173
|
class ListColumnFormat < Wx::Enum
|
173
174
|
|
174
175
|
#
|
@@ -319,13 +320,23 @@ module Wx
|
|
319
320
|
# Virtual list control can be used as a normal one except that no operations which can take time proportional to the number of items in the control happen this is required to allow having a practically infinite number of items. For example, in a multiple selection virtual list control, the selections won't be sent when many items are selected at once because this could mean iterating over all the items.
|
320
321
|
# Using many of {Wx::ListCtrl} features is shown in the corresponding sample.
|
321
322
|
# To intercept events from a list control, use the event table macros described in {Wx::ListEvent}.
|
322
|
-
# The native wxOSX implementation for report mode that was added in wxWidgets 2.8 was removed in wxWidgets 3.1, meaning for wxWidgets 3.1+ wxOSX uses the generic implementation for all modes.
|
323
323
|
#
|
324
|
-
#
|
324
|
+
# <div class="wxrb-note">
|
325
|
+
# <b>Note:</b>
|
326
|
+
# <p>The native WXOSX implementation for report mode that was added in wxWidgets 2.8 was removed in wxWidgets 3.1, meaning for wxWidgets 3.1+ WXOSX uses the generic implementation for all modes.
|
327
|
+
# </p>
|
328
|
+
# </div>
|
329
|
+
#
|
330
|
+
# ## Column Ordering
|
325
331
|
#
|
326
332
|
# By default, the columns of a list control appear on the screen in order of their indices, i.e. column 0 appears first, then column 1 next, and so on. However this can be changed by using the {Wx::ListCtrl#set_columns_order} function to arbitrarily reorder the columns visual order.
|
327
333
|
# The user can also rearrange the columns interactively by dragging them. In this case, the index of the column is not the same as its order and the functions {Wx::ListCtrl#get_column_order} and {Wx::ListCtrl#get_column_index_from_order} should be used to translate between them.
|
328
|
-
#
|
334
|
+
#
|
335
|
+
# <div class="wxrb-note">
|
336
|
+
# <b>Note:</b>
|
337
|
+
# <p>All the other functions still work with the column indices, i.e. the visual positioning of the columns on screen doesn't affect the code setting or getting their values for example.
|
338
|
+
# </p>
|
339
|
+
# </div>
|
329
340
|
#
|
330
341
|
# Example of reordering columns:
|
331
342
|
# ```ruby
|
@@ -341,7 +352,7 @@ module Wx
|
|
341
352
|
# # 1 and 2 respectively
|
342
353
|
# ```
|
343
354
|
#
|
344
|
-
#
|
355
|
+
# ### Styles
|
345
356
|
#
|
346
357
|
# This class supports the following styles:
|
347
358
|
#
|
@@ -375,7 +386,7 @@ module Wx
|
|
375
386
|
#
|
376
387
|
# - {Wx::LC_VRULES}: Draws light vertical rules between columns in report mode.
|
377
388
|
#
|
378
|
-
#
|
389
|
+
# ### Events emitted by this class
|
379
390
|
#
|
380
391
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ListEvent} events.
|
381
392
|
# Event handler methods for events emitted by this class:
|
@@ -424,13 +435,15 @@ module Wx
|
|
424
435
|
#
|
425
436
|
# - {Wx::EvtHandler#evt_list_item_unchecked}(id, meth = nil, &block): The item has been unchecked. Processes a {Wx::EVT_LIST_ITEM_UNCHECKED} event type (new since wxWidgets 3.1.0).
|
426
437
|
#
|
427
|
-
#
|
438
|
+
# <div class="wxrb-note">
|
439
|
+
# <b>Note:</b>
|
440
|
+
# <p>Under WXMSW this control uses {Wx::SystemThemedControl} for an explorer style appearance by default since wxWidgets 3.1.0. If this is not desired, you can call Wx::SystemThemedControl::EnableSystemTheme with false argument to disable this.
|
441
|
+
# </p>
|
442
|
+
# </div>
|
428
443
|
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
432
|
-
# </td><td> wxGTK Appearance
|
433
|
-
# </td><td> wxOSX Appearance
|
444
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> WXMSW Appearance
|
445
|
+
# </td><td> WXGTK Appearance
|
446
|
+
# </td><td> WXOSX Appearance
|
434
447
|
# </td></tr></table></div>
|
435
448
|
# @see wxListCtrl Overview
|
436
449
|
# @see Wx::ListView
|
@@ -442,12 +455,13 @@ module Wx
|
|
442
455
|
# @see Wx::EditableListBox
|
443
456
|
#
|
444
457
|
#
|
458
|
+
# @wxrb_require USE_LISTCTRL
|
445
459
|
class ListCtrl < Control
|
446
460
|
|
447
461
|
# @overload initialize()
|
448
462
|
# Default constructor.
|
449
463
|
# @return [Wx::ListCtrl]
|
450
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_ICON, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
464
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_ICON, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_CTRL_NAME_STR)
|
451
465
|
# Constructor, creating and showing a list control.
|
452
466
|
#
|
453
467
|
# @see Wx::ListCtrl#create
|
@@ -482,7 +496,11 @@ module Wx
|
|
482
496
|
def arrange(flag=Wx::LIST_ALIGN_DEFAULT) end
|
483
497
|
|
484
498
|
# Deletes all items and all columns.
|
485
|
-
#
|
499
|
+
# <div class="wxrb-note">
|
500
|
+
# <b>Note:</b>
|
501
|
+
# <p>This sends an event of type {Wx::EVT_LIST_DELETE_ALL_ITEMS} under all platforms.
|
502
|
+
# </p>
|
503
|
+
# </div>
|
486
504
|
# @return [void]
|
487
505
|
def clear_all; end
|
488
506
|
|
@@ -496,7 +514,7 @@ module Wx
|
|
496
514
|
# @param validator [Wx::Validator]
|
497
515
|
# @param name [String]
|
498
516
|
# @return [Boolean]
|
499
|
-
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_ICON, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
517
|
+
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_ICON, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_CTRL_NAME_STR) end
|
500
518
|
|
501
519
|
# Delete all columns in the list control.
|
502
520
|
# true if all columns were successfully deleted, false otherwise.
|
@@ -530,7 +548,7 @@ module Wx
|
|
530
548
|
def enable_alternate_row_colours(enable=true) end
|
531
549
|
|
532
550
|
# Enable or disable a beep if there is no match for the currently entered text when searching for the item from keyboard.
|
533
|
-
# The default is to not beep in this case except in
|
551
|
+
# The default is to not beep in this case except in WXMSW where the beep is always generated by the native control and cannot be disabled, i.e. calls to this function do nothing there.
|
534
552
|
# @param on [Boolean]
|
535
553
|
# @return [void]
|
536
554
|
def enable_bell_on_no_match(on=true) end
|
@@ -538,7 +556,7 @@ module Wx
|
|
538
556
|
# Finish editing the label.
|
539
557
|
# This method allows one to programmatically end editing a list control item in place. Usually it will only be called when editing is in progress, i.e. if {Wx::ListCtrl#get_edit_control} returns non-NULL. In particular, do not call it from EVT_LIST_BEGIN_LABEL_EDIT handler as the edit control is not yet fully created by then, just veto the event in this handler instead to prevent the editing from even starting.
|
540
558
|
# Notice that calling this method will result in EVT_LIST_END_LABEL_EDIT event being generated.
|
541
|
-
# Currently only implemented in
|
559
|
+
# Currently only implemented in WXMSW.
|
542
560
|
#
|
543
561
|
# true if item editing was finished or false if no item as being edited.
|
544
562
|
# @param cancel [Boolean] If true, discard the changes made by user, as if Escape key was pressed. Otherwise, accept the changes as if Return was pressed.
|
@@ -601,7 +619,12 @@ module Wx
|
|
601
619
|
|
602
620
|
# Returns the edit control being currently used to edit a label.
|
603
621
|
# Returns NULL if no label is being edited.
|
604
|
-
#
|
622
|
+
#
|
623
|
+
# <div class="wxrb-note">
|
624
|
+
# <b>Note:</b>
|
625
|
+
# <p>It is currently only implemented for WXMSW and the generic version, not for the native macOS version.
|
626
|
+
# </p>
|
627
|
+
# </div>
|
605
628
|
# @return [Wx::TextCtrl]
|
606
629
|
def get_edit_control; end
|
607
630
|
alias_method :edit_control, :get_edit_control
|
@@ -702,7 +725,11 @@ module Wx
|
|
702
725
|
# - {Wx::LIST_NEXT_LEFT}: Searches for an item to the left of the specified item.
|
703
726
|
# - {Wx::LIST_NEXT_RIGHT}: Searches for an item to the right of the specified item.
|
704
727
|
#
|
705
|
-
#
|
728
|
+
# <div class="wxrb-note">
|
729
|
+
# <b>Note:</b>
|
730
|
+
# <p>this parameter is only supported by WXMSW currently and ignored on other platforms.
|
731
|
+
# </p>
|
732
|
+
# </div>
|
706
733
|
#
|
707
734
|
# state can be a bitlist of the following:
|
708
735
|
#
|
@@ -781,7 +808,7 @@ module Wx
|
|
781
808
|
# - {Wx::LIST_HITTEST_ONITEMSTATEICON}: Over the checkbox of an item.
|
782
809
|
# - {Wx::LIST_HITTEST_ONITEM}: Combination of {Wx::LIST_HITTEST_ONITEMICON}, {Wx::LIST_HITTEST_ONITEMLABEL}, {Wx::LIST_HITTEST_ONITEMSTATEICON}.
|
783
810
|
#
|
784
|
-
# If ptrSubItem is not NULL and the {Wx::ListCtrl} is in the report mode the subitem (or column) number will also be provided. This feature is only available in version 2.7.0 or higher and is currently only implemented under
|
811
|
+
# If ptrSubItem is not NULL and the {Wx::ListCtrl} is in the report mode the subitem (or column) number will also be provided. This feature is only available in version 2.7.0 or higher and is currently only implemented under WXMSW and requires at least comctl32.dll of version 4.70 on the host system or the value stored in ptrSubItem will be always -1. To compile this feature into wxWidgets library you need to have access to commctrl.h of version 4.70 that is provided by Microsoft.
|
785
812
|
# @param point [Array(Integer, Integer), Wx::Point]
|
786
813
|
# @return [Array(Integer,Integer)]
|
787
814
|
def hit_test(point) end
|
@@ -859,7 +886,12 @@ module Wx
|
|
859
886
|
|
860
887
|
# Scrolls the list control.
|
861
888
|
# If in icon, small icon or report view mode, dx specifies the number of pixels to scroll. If in list view mode, dx specifies the number of columns to scroll. dy always specifies the number of pixels to scroll vertically.
|
862
|
-
#
|
889
|
+
#
|
890
|
+
# <div class="wxrb-note">
|
891
|
+
# <b>Note:</b>
|
892
|
+
# <p>This method is currently only implemented in the Windows version.
|
893
|
+
# </p>
|
894
|
+
# </div>
|
863
895
|
# @param dx [Integer]
|
864
896
|
# @param dy [Integer]
|
865
897
|
# @return [Boolean]
|
@@ -867,7 +899,12 @@ module Wx
|
|
867
899
|
|
868
900
|
# Sets the background colour.
|
869
901
|
# Note that the {Wx::Window#get_background_colour} function of {Wx::Window} base class can be used to retrieve the current background colour.
|
870
|
-
#
|
902
|
+
#
|
903
|
+
# <div class="wxrb-note">
|
904
|
+
# <b>Note:</b>
|
905
|
+
# <p>If alternate row colouring is enabled, then call {Wx::ListCtrl#enable_alternate_row_colours} again after changing the background colour. This will update the alternate row color to match the new background colour.
|
906
|
+
# </p>
|
907
|
+
# </div>
|
871
908
|
# @param col [Wx::Colour,String,Symbol]
|
872
909
|
# @return [Boolean]
|
873
910
|
def set_background_colour(col) end
|
@@ -892,7 +929,7 @@ module Wx
|
|
892
929
|
|
893
930
|
# Change the font and the colours used for the list control header.
|
894
931
|
# This method can be used to change the appearance of the header shown by the control in report mode (unless {Wx::LC_NO_HEADER} style is used).
|
895
|
-
# Currently it is implemented only for
|
932
|
+
# Currently it is implemented only for WXMSW and does nothing in the other ports.
|
896
933
|
#
|
897
934
|
# true if the attributes have been updated or false if this is not supported by the current platform.
|
898
935
|
# @param attr [Wx::ItemAttr] The object containing the font and text and background colours to use. It may be default, i.e. not specify any custom font nor colours, to reset any previously set custom attribute.
|
@@ -1088,9 +1125,14 @@ module Wx
|
|
1088
1125
|
def extend_rules_and_alternate_colour(extend=true) end
|
1089
1126
|
|
1090
1127
|
# Show the sort indicator of a specific column in a specific direction.
|
1091
|
-
# Sort indicators are only shown in report view and in the native
|
1128
|
+
# Sort indicators are only shown in report view and in the native WXMSW version override any column icon, i.e. if the sort indicator is shown for a column, no (other) icon is shown.
|
1092
1129
|
# This function should typically be called from EVT_LIST_COL_CLICK handler.
|
1093
|
-
#
|
1130
|
+
#
|
1131
|
+
# <div class="wxrb-note">
|
1132
|
+
# <b>Note:</b>
|
1133
|
+
# <p>This does not actually sort the list, use {Wx::ListCtrl#sort_items} for this.
|
1134
|
+
# </p>
|
1135
|
+
# </div>
|
1094
1136
|
# @param col [Integer] The column to set the sort indicator for. If <code>-1</code> is given, then the currently shown sort indicator will be removed.
|
1095
1137
|
# @param ascending [Boolean] If true or false show the sort indicator corresponding to ascending or descending sort order respectively.
|
1096
1138
|
# @return [void]
|
@@ -1153,7 +1195,12 @@ module Wx
|
|
1153
1195
|
# This function may be overridden in the derived class for a control with {Wx::LC_VIRTUAL} style.
|
1154
1196
|
# It should return the attribute for the for the specified item and column or NULL to use the default appearance parameters.
|
1155
1197
|
# The base class version returns <code>OnGetItemAttr(item)</code>.
|
1156
|
-
#
|
1198
|
+
#
|
1199
|
+
# <div class="wxrb-note">
|
1200
|
+
# <b>Note:</b>
|
1201
|
+
# <p>Currently this function is only called under WXMSW, the other ports only support {Wx::ListCtrl#on_get_item_attr}
|
1202
|
+
# </p>
|
1203
|
+
# </div>
|
1157
1204
|
# @see Wx::ListCtrl#on_get_item_attr
|
1158
1205
|
# @see Wx::ListCtrl#on_get_item_text
|
1159
1206
|
# @see Wx::ListCtrl#on_get_item_image
|
@@ -1236,12 +1283,12 @@ module Wx
|
|
1236
1283
|
# - {Wx::LIST_MASK_FORMAT}: The column format field is valid.
|
1237
1284
|
#
|
1238
1285
|
# The {Wx::ListItem} object can also contain item-specific colour and font information: for this you need to call one of {Wx::ListItem#set_text_colour}, {Wx::ListItem#set_background_colour} or {Wx::ListItem#set_font} functions on it passing it the colour/font to use. If the colour/font is not specified, the default list control colour/font is used.
|
1239
|
-
# ===
|
1240
1286
|
#
|
1241
1287
|
# Category: Data Structures
|
1242
1288
|
# @see Wx::ListCtrl
|
1243
1289
|
#
|
1244
1290
|
#
|
1291
|
+
# @wxrb_require USE_LISTCTRL
|
1245
1292
|
class ListItem < Object
|
1246
1293
|
|
1247
1294
|
# Sets client data for the item.
|
@@ -1413,12 +1460,12 @@ module Wx
|
|
1413
1460
|
|
1414
1461
|
# Represents the attributes (colour, font, ...) of an item of a control with multiple items such as e.g.
|
1415
1462
|
# {Wx::ListCtrl}.
|
1416
|
-
# ===
|
1417
1463
|
#
|
1418
1464
|
# Category: Data Structures
|
1419
1465
|
# @see wxListCtrl Overview
|
1420
1466
|
#
|
1421
1467
|
#
|
1468
|
+
# @wxrb_require USE_LISTCTRL
|
1422
1469
|
class ItemAttr < ::Object
|
1423
1470
|
|
1424
1471
|
# @overload initialize()
|
@@ -1503,21 +1550,21 @@ module Wx
|
|
1503
1550
|
# This class currently simply presents a simpler to use interface for the {Wx::ListCtrl} it can be thought of as a façade for that complicated class.
|
1504
1551
|
# Using it is preferable to using {Wx::ListCtrl} directly whenever possible because in the future some ports might implement {Wx::ListView} but not the full set of {Wx::ListCtrl} features.
|
1505
1552
|
# Other than different interface, this class is identical to {Wx::ListCtrl}. In particular, it uses the same events, same window styles and so on.
|
1506
|
-
# ===
|
1507
1553
|
#
|
1508
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
1509
|
-
# </td><td>
|
1510
|
-
# </td><td>
|
1554
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> WXMSW Appearance
|
1555
|
+
# </td><td> WXGTK Appearance
|
1556
|
+
# </td><td> WXOSX Appearance
|
1511
1557
|
# </td></tr></table></div>
|
1512
1558
|
# @see Wx::ListView#set_column_image
|
1513
1559
|
#
|
1514
1560
|
#
|
1561
|
+
# @wxrb_require USE_LISTCTRL
|
1515
1562
|
class ListView < ListCtrl
|
1516
1563
|
|
1517
1564
|
# @overload initialize()
|
1518
1565
|
# Default constructor.
|
1519
1566
|
# @return [Wx::ListView]
|
1520
|
-
# @overload initialize(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_REPORT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
1567
|
+
# @overload initialize(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_REPORT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_CTRL_NAME_STR)
|
1521
1568
|
# Constructor, creating and showing a listview control.
|
1522
1569
|
#
|
1523
1570
|
# @see Wx::ListView#create
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# A list event holds information about events associated with {Wx::ListCtrl} objects.
|
10
|
-
#
|
10
|
+
# ### Events using this class
|
11
11
|
#
|
12
12
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ListEvent} events.
|
13
13
|
# Event handler methods:
|
@@ -56,16 +56,15 @@ module Wx
|
|
56
56
|
#
|
57
57
|
# - {Wx::EvtHandler#evt_list_item_unchecked}(id, meth = nil, &block): The item has been unchecked (new since wxWidgets 3.1.0).
|
58
58
|
#
|
59
|
-
# ===
|
60
|
-
#
|
61
59
|
# Category: {Wx::Events}
|
62
60
|
# @see Wx::ListCtrl
|
63
61
|
#
|
64
62
|
#
|
63
|
+
# @wxrb_require USE_LISTCTRL
|
65
64
|
class ListEvent < NotifyEvent
|
66
65
|
|
67
66
|
# Constructor.
|
68
|
-
# @param commandType [Wx::
|
67
|
+
# @param commandType [Wx::Slider::EventType]
|
69
68
|
# @param id [Integer]
|
70
69
|
# @return [Wx::ListEvent]
|
71
70
|
def initialize(commandType=Wx::EVT_NULL, id=0) end
|
data/lib/wx/doc/gen/listbook.rb
CHANGED
@@ -35,7 +35,7 @@ module Wx
|
|
35
35
|
# {Wx::Listbook} is a class similar to {Wx::Notebook} but which uses a {Wx::ListCtrl} to show the labels instead of the tabs.
|
36
36
|
# The underlying {Wx::ListCtrl} displays page labels in a one-column report view by default. Calling Wx::BookCtrl::SetImageList will implicitly switch the control to use an icon view.
|
37
37
|
# For usage documentation of this class, please refer to the base abstract class {Wx::BookCtrl}. You can also use the Notebook Sample to see {Wx::Listbook} in action.
|
38
|
-
#
|
38
|
+
# ### Styles
|
39
39
|
#
|
40
40
|
# This class supports the following styles:
|
41
41
|
#
|
@@ -49,7 +49,7 @@ module Wx
|
|
49
49
|
#
|
50
50
|
# - {Wx::LB_BOTTOM}: Place labels below the page area.
|
51
51
|
#
|
52
|
-
#
|
52
|
+
# ### Events emitted by this class
|
53
53
|
#
|
54
54
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::BookCtrlEvent} events.
|
55
55
|
# Event handler methods for events emitted by this class:
|
@@ -58,17 +58,16 @@ module Wx
|
|
58
58
|
#
|
59
59
|
# - {Wx::EvtHandler#evt_listbook_page_changing}(id, meth = nil, &block): The page selection is about to be changed. Processes a {Wx::EVT_LISTBOOK_PAGE_CHANGING} event. This event can be vetoed.
|
60
60
|
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
# </td><td> wxGTK Appearance
|
65
|
-
# </td><td> wxOSX Appearance
|
61
|
+
# Category: Book Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> WXMSW Appearance
|
62
|
+
# </td><td> WXGTK Appearance
|
63
|
+
# </td><td> WXOSX Appearance
|
66
64
|
# </td></tr></table></div>
|
67
65
|
# @see Wx::BookCtrl
|
68
66
|
# @see Wx::Notebook
|
69
67
|
# @see Notebook Sample
|
70
68
|
#
|
71
69
|
#
|
70
|
+
# @wxrb_require USE_LISTBOOK
|
72
71
|
class Listbook < BookCtrlBase
|
73
72
|
|
74
73
|
# @overload initialize()
|
data/lib/wx/doc/gen/locale.rb
CHANGED
@@ -10,6 +10,7 @@ module Wx
|
|
10
10
|
#
|
11
11
|
# This enum is generated by misc/languages/genlang.py When making changes, please put them into misc/languages/langtabl.txt
|
12
12
|
#
|
13
|
+
# @wxrb_require USE_INTL
|
13
14
|
class Language < Wx::Enum
|
14
15
|
|
15
16
|
# User's default/preferred language as got from OS.
|
@@ -3602,6 +3603,7 @@ module Wx
|
|
3602
3603
|
#
|
3603
3604
|
#
|
3604
3605
|
#
|
3606
|
+
# @wxrb_require USE_INTL
|
3605
3607
|
class LayoutDirection < Wx::Enum
|
3606
3608
|
|
3607
3609
|
#
|
@@ -3624,6 +3626,7 @@ module Wx
|
|
3624
3626
|
# @see Wx::LocaleIdent#get_tag
|
3625
3627
|
#
|
3626
3628
|
#
|
3629
|
+
# @wxrb_require USE_INTL
|
3627
3630
|
class LocaleTagType < Wx::Enum
|
3628
3631
|
|
3629
3632
|
# Default (tag as given or else same as {Wx::LocaleTagType::LOCALE_TAGTYPE_SYSTEM})
|
@@ -3659,6 +3662,7 @@ module Wx
|
|
3659
3662
|
# @see Wx::UILocale#get_info
|
3660
3663
|
#
|
3661
3664
|
#
|
3665
|
+
# @wxrb_require USE_INTL
|
3662
3666
|
class LocaleCategory < Wx::Enum
|
3663
3667
|
|
3664
3668
|
# Number formatting.
|
@@ -3686,6 +3690,7 @@ module Wx
|
|
3686
3690
|
# @see Wx::UILocale#get_info
|
3687
3691
|
#
|
3688
3692
|
#
|
3693
|
+
# @wxrb_require USE_INTL
|
3689
3694
|
class LocaleInfo < Wx::Enum
|
3690
3695
|
|
3691
3696
|
# The thousands separator.
|
@@ -3720,6 +3725,7 @@ module Wx
|
|
3720
3725
|
# @see Wx::UILocale#get_localized_name
|
3721
3726
|
#
|
3722
3727
|
#
|
3728
|
+
# @wxrb_require USE_INTL
|
3723
3729
|
class LocaleName < Wx::Enum
|
3724
3730
|
|
3725
3731
|
# Display name of a locale.
|
@@ -3742,6 +3748,7 @@ module Wx
|
|
3742
3748
|
# @see Wx::UILocale#get_localized_name
|
3743
3749
|
#
|
3744
3750
|
#
|
3751
|
+
# @wxrb_require USE_INTL
|
3745
3752
|
class LocaleForm < Wx::Enum
|
3746
3753
|
|
3747
3754
|
# Name should be returned in the language of the locale itself.
|
@@ -3758,6 +3765,7 @@ module Wx
|
|
3758
3765
|
#
|
3759
3766
|
#
|
3760
3767
|
#
|
3768
|
+
# @wxrb_require USE_INTL
|
3761
3769
|
class LocaleInitFlags < Wx::Enum
|
3762
3770
|
|
3763
3771
|
# Don't load {Wx::std}.mo catalog.
|
@@ -3775,13 +3783,16 @@ module Wx
|
|
3775
3783
|
def self.get_locale; end
|
3776
3784
|
|
3777
3785
|
# {Wx::Locale} class encapsulates all language-dependent settings and is a generalization of the C locale concept.
|
3778
|
-
#
|
3786
|
+
# <div class="wxrb-note">
|
3787
|
+
# <b>Note:</b>
|
3788
|
+
# <p>This class is known to have several problems under macOS: first of all, it is impossible to change the application UI locale after launching it under this platform and so using this class doesn't affect the native controls and dialogs there. Additionally, versions of macOS between 11.0 and 12.2 inclusive are affected by a bug when changing C locale can break display of the application menus. Because of this, it is recommended to use {Wx::UILocale} instead of this class for the applications targeting macOS.
|
3789
|
+
# </p>
|
3790
|
+
# </div>
|
3779
3791
|
#
|
3780
3792
|
# In wxWidgets this class manages current locale. It also initializes and activates {Wx::Translations} object that manages message catalogs.
|
3781
3793
|
# For a list of the supported languages, please see {Wx::Language} enum values. These constants may be used to specify the language in {Wx::Locale#init} and are returned by {Wx::Locale.get_system_language}.
|
3782
3794
|
#
|
3783
3795
|
#
|
3784
|
-
# ===
|
3785
3796
|
#
|
3786
3797
|
# Category: Application and System configuration
|
3787
3798
|
# @see Wx::Internationalization
|
@@ -3790,6 +3801,7 @@ module Wx
|
|
3790
3801
|
# @see Wx::Translations
|
3791
3802
|
#
|
3792
3803
|
#
|
3804
|
+
# @wxrb_require USE_INTL
|
3793
3805
|
class Locale < ::Object
|
3794
3806
|
|
3795
3807
|
# @overload initialize()
|
@@ -3950,7 +3962,11 @@ module Wx
|
|
3950
3962
|
def self.get_system_encoding_name; end
|
3951
3963
|
|
3952
3964
|
# Tries to detect the user's default locale setting.
|
3953
|
-
#
|
3965
|
+
# <div class="wxrb-note">
|
3966
|
+
# <b>Note:</b>
|
3967
|
+
# <p>This function is somewhat misleading, as it uses the default system locale to determine its return value, and not just the system language. It is preserved for backwards compatibility, but to actually get the language, and not locale, used by the system by default, call Wx::UILocale#get_system_language instead.
|
3968
|
+
# </p>
|
3969
|
+
# </div>
|
3954
3970
|
#
|
3955
3971
|
# Returns the {Wx::Language} value or {Wx::Language::LANGUAGE_UNKNOWN} if the locale is not recognized, as can notably happen when combining any language with a region where this language is not typically spoken.
|
3956
3972
|
# @see Wx::Translations#get_best_translation.
|
@@ -3988,8 +4004,33 @@ module Wx
|
|
3988
4004
|
#
|
3989
4005
|
#
|
3990
4006
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
4007
|
+
# @wxrb_require USE_INTL
|
3991
4008
|
class LanguageInfo < ::Object
|
3992
4009
|
|
4010
|
+
# Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx).
|
4011
|
+
# Availability: only available for the WXMSW port.
|
4012
|
+
#
|
4013
|
+
# @return [Integer]
|
4014
|
+
def win_lang; end
|
4015
|
+
# Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx).
|
4016
|
+
# Availability: only available for the WXMSW port.
|
4017
|
+
#
|
4018
|
+
# @param val [Integer]
|
4019
|
+
# @return [void]
|
4020
|
+
def win_lang=(val); end
|
4021
|
+
|
4022
|
+
# Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx).
|
4023
|
+
# Availability: only available for the WXMSW port.
|
4024
|
+
#
|
4025
|
+
# @return [Integer]
|
4026
|
+
def win_sublang; end
|
4027
|
+
# Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx).
|
4028
|
+
# Availability: only available for the WXMSW port.
|
4029
|
+
#
|
4030
|
+
# @param val [Integer]
|
4031
|
+
# @return [void]
|
4032
|
+
def win_sublang=(val); end
|
4033
|
+
|
3993
4034
|
# {Wx::Language} id.
|
3994
4035
|
# It should be greater than {Wx::Language::LANGUAGE_USER_DEFINED} when defining your own language info structure.
|
3995
4036
|
#
|
@@ -4075,8 +4116,9 @@ module Wx
|
|
4075
4116
|
def layout_direction=(val); end
|
4076
4117
|
|
4077
4118
|
# Return the LCID corresponding to this language.
|
4078
|
-
# Availability: only available for the
|
4119
|
+
# Availability: only available for the WXMSW port.
|
4079
4120
|
# @return [Integer]
|
4121
|
+
# @wxrb_require WXMSW
|
4080
4122
|
def get_lcid; end
|
4081
4123
|
alias_method :lcid, :get_lcid
|
4082
4124
|
|