wxruby3 0.9.0.pre.rc.2-x64-mingw-ucrt → 0.9.0-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +30 -8
- data/README.md +3 -3
- data/ext/mkrf_conf_bingem.rb +4 -1
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/accessors.rb +10 -2
- data/lib/wx/aui/auifloatframe.rb +20 -0
- data/lib/wx/aui/auimanager.rb +3 -0
- data/lib/wx/aui/auinotebook.rb +17 -0
- data/lib/wx/aui/events/evt_list.rb +7 -7
- data/lib/wx/aui/require.rb +5 -1
- data/lib/wx/aui.rb +4 -1
- data/lib/wx/core/acceleratortable.rb +8 -0
- data/lib/wx/core/animation.rb +8 -0
- data/lib/wx/core/app.rb +8 -0
- data/lib/wx/core/array_ext.rb +7 -0
- data/lib/wx/core/art_locator.rb +7 -0
- data/lib/wx/core/artprovider.rb +9 -0
- data/lib/wx/core/bitmap.rb +16 -4
- data/lib/wx/core/bitmap_combobox.rb +7 -0
- data/lib/wx/core/brush.rb +7 -0
- data/lib/wx/core/busycursor.rb +9 -0
- data/lib/wx/core/choice.rb +7 -0
- data/lib/wx/core/choicedlg.rb +7 -0
- data/lib/wx/core/clientdc.rb +9 -0
- data/lib/wx/core/clipboard.rb +8 -0
- data/lib/wx/core/collapsible_pane.rb +8 -1
- data/lib/wx/core/colour.rb +8 -0
- data/lib/wx/core/combo_ctrl.rb +110 -0
- data/lib/wx/core/combobox.rb +7 -0
- data/lib/wx/core/config.rb +303 -0
- data/lib/wx/core/controlwithitems.rb +12 -1
- data/lib/wx/core/cursor.rb +14 -4
- data/lib/wx/core/data_object.rb +7 -0
- data/lib/wx/core/dataformat.rb +9 -0
- data/lib/wx/core/datetime.rb +14 -0
- data/lib/wx/core/dc.rb +7 -0
- data/lib/wx/core/dialog.rb +18 -1
- data/lib/wx/core/enum.rb +7 -0
- data/lib/wx/core/event.rb +7 -0
- data/lib/wx/core/event_blocker.rb +7 -0
- data/lib/wx/core/event_loop.rb +14 -0
- data/lib/wx/core/events/evt_list.rb +76 -0
- data/lib/wx/core/evthandler.rb +8 -0
- data/lib/wx/core/ext.rb +7 -0
- data/lib/wx/core/file_dialog.rb +23 -0
- data/lib/wx/core/find_replace_dialog.rb +7 -0
- data/lib/wx/core/functions.rb +8 -0
- data/lib/wx/core/gauge.rb +10 -1
- data/lib/wx/core/genericdirctrl.rb +9 -0
- data/lib/wx/core/hboxsizer.rb +16 -0
- data/lib/wx/core/helpcontroller.rb +8 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +9 -0
- data/lib/wx/core/helpprovider.rb +10 -1
- data/lib/wx/core/icon.rb +17 -6
- data/lib/wx/core/id_helper.rb +7 -0
- data/lib/wx/core/image.rb +49 -4
- data/lib/wx/core/imagelist.rb +8 -1
- data/lib/wx/core/listbox.rb +7 -0
- data/lib/wx/core/listctrl.rb +26 -13
- data/lib/wx/core/locale.rb +8 -0
- data/lib/wx/core/log.rb +114 -0
- data/lib/wx/core/menu.rb +9 -0
- data/lib/wx/core/menu_bar.rb +7 -0
- data/lib/wx/core/menuitem.rb +9 -0
- data/lib/wx/core/notebook.rb +9 -0
- data/lib/wx/core/object.rb +9 -0
- data/lib/wx/core/paintdc.rb +7 -0
- data/lib/wx/core/pen.rb +7 -0
- data/lib/wx/core/pen_info.rb +7 -0
- data/lib/wx/core/platform_info.rb +7 -0
- data/lib/wx/core/point.rb +8 -0
- data/lib/wx/core/real_point.rb +8 -0
- data/lib/wx/core/rect.rb +9 -0
- data/lib/wx/core/region_iterator.rb +7 -0
- data/lib/wx/core/simplehelpprovider.rb +9 -0
- data/lib/wx/core/size.rb +8 -0
- data/lib/wx/core/sizer.rb +9 -0
- data/lib/wx/core/splash_screen.rb +22 -2
- data/lib/wx/core/text_entry.rb +7 -0
- data/lib/wx/core/textctrl.rb +86 -5
- data/lib/wx/core/timer.rb +9 -0
- data/lib/wx/core/toolbar.rb +9 -0
- data/lib/wx/core/toolbartool.rb +8 -0
- data/lib/wx/core/treectrl.rb +9 -0
- data/lib/wx/core/v_list_box.rb +7 -0
- data/lib/wx/core/validator.rb +7 -0
- data/lib/wx/core/variant.rb +7 -0
- data/lib/wx/core/vboxsizer.rb +16 -0
- data/lib/wx/core/window.rb +8 -0
- data/lib/wx/core/window_update_locker.rb +9 -0
- data/lib/wx/core/xmlresource.rb +8 -0
- data/lib/wx/core.rb +4 -1
- data/lib/wx/doc/app.rb +7 -1
- data/lib/wx/doc/array_ext.rb +6 -0
- data/lib/wx/doc/art_locator.rb +7 -0
- data/lib/wx/doc/aui/auimanager.rb +6 -0
- data/lib/wx/doc/aui/auinotebook.rb +6 -0
- data/lib/wx/doc/bitmap.rb +19 -15
- data/lib/wx/doc/brush.rb +6 -0
- data/lib/wx/doc/busy_info.rb +6 -0
- data/lib/wx/doc/client_dc.rb +6 -0
- data/lib/wx/doc/clipboard.rb +6 -0
- data/lib/wx/doc/colour_dialog.rb +6 -0
- data/lib/wx/doc/config.rb +190 -0
- data/lib/wx/doc/const.rb +7 -0
- data/lib/wx/doc/controlwithitems.rb +6 -0
- data/lib/wx/doc/core.rb +6 -0
- data/lib/wx/doc/cursor.rb +13 -5
- data/lib/wx/doc/data_object.rb +6 -0
- data/lib/wx/doc/datetime.rb +16 -0
- data/lib/wx/doc/dc.rb +6 -0
- data/lib/wx/doc/enum.rb +8 -1
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/event_blocker.rb +6 -0
- data/lib/wx/doc/event_loop.rb +13 -0
- data/lib/wx/doc/events.rb +6 -0
- data/lib/wx/doc/evthandler.rb +8 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/01_packages.md +52 -51
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/05_event-handling.md +37 -12
- data/lib/wx/doc/extra/06_geometry.md +5 -5
- data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
- data/lib/wx/doc/extra/09_exceptions.md +2 -2
- data/lib/wx/doc/extra/10_art.md +18 -12
- data/lib/wx/doc/extra/11_drawing_and_dc.md +8 -8
- data/lib/wx/doc/font.rb +7 -1
- data/lib/wx/doc/font_data.rb +16 -0
- data/lib/wx/doc/functions.rb +60 -24
- data/lib/wx/doc/gc_dc.rb +7 -1
- data/lib/wx/doc/gdi_common.rb +8 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +10 -10
- data/lib/wx/doc/gen/accelerator.rb +8 -13
- data/lib/wx/doc/gen/accessible.rb +27 -23
- data/lib/wx/doc/gen/activity_indicator.rb +7 -7
- data/lib/wx/doc/gen/animation.rb +20 -20
- data/lib/wx/doc/gen/animation_ctrl.rb +14 -13
- data/lib/wx/doc/gen/any_button.rb +3 -3
- data/lib/wx/doc/gen/app.rb +25 -88
- data/lib/wx/doc/gen/app_traits.rb +381 -0
- data/lib/wx/doc/gen/art_provider.rb +64 -4
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +57 -41
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +16 -10
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +19 -20
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +7 -7
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_notebook.rb +136 -26
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +95 -95
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +17 -17
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +61 -46
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +18 -18
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +11 -11
- data/lib/wx/doc/gen/aui/event_list.rb +7 -0
- data/lib/wx/doc/gen/banner_window.rb +98 -0
- data/lib/wx/doc/gen/bitmap.rb +56 -81
- data/lib/wx/doc/gen/bitmap_button.rb +13 -9
- data/lib/wx/doc/gen/bitmap_combo_box.rb +14 -9
- data/lib/wx/doc/gen/book_ctrl_base.rb +20 -16
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +24 -12
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +23 -11
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +34 -22
- data/lib/wx/doc/gen/calendar_date_attr.rb +13 -13
- data/lib/wx/doc/gen/calendar_event.rb +4 -10
- data/lib/wx/doc/gen/caret.rb +6 -6
- data/lib/wx/doc/gen/check_box.rb +19 -15
- data/lib/wx/doc/gen/check_list_box.rb +10 -9
- data/lib/wx/doc/gen/choice.rb +10 -9
- data/lib/wx/doc/gen/choicebook.rb +13 -7
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +10 -10
- data/lib/wx/doc/gen/collapsible_pane.rb +13 -10
- data/lib/wx/doc/gen/collapsible_pane_event.rb +5 -4
- data/lib/wx/doc/gen/colour.rb +42 -32
- data/lib/wx/doc/gen/colour_dialog.rb +12 -12
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +16 -10
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +29 -20
- data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
- data/lib/wx/doc/gen/command_link_button.rb +110 -0
- data/lib/wx/doc/gen/config_base.rb +10 -0
- data/lib/wx/doc/gen/context_help_button.rb +7 -6
- data/lib/wx/doc/gen/control.rb +12 -9
- data/lib/wx/doc/gen/control_with_items.rb +5 -5
- data/lib/wx/doc/gen/core.rb +8 -5
- data/lib/wx/doc/gen/cursor.rb +18 -18
- data/lib/wx/doc/gen/data_format.rb +5 -5
- data/lib/wx/doc/gen/data_object.rb +32 -25
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +16 -11
- data/lib/wx/doc/gen/dc.rb +162 -74
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +65 -22
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +3 -3
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +17 -12
- data/lib/wx/doc/gen/drag_drop.rb +26 -52
- data/lib/wx/doc/gen/drag_image.rb +13 -38
- data/lib/wx/doc/gen/editable_list_box.rb +9 -5
- data/lib/wx/doc/gen/event.rb +55 -32
- data/lib/wx/doc/gen/event_blocker.rb +1 -1
- data/lib/wx/doc/gen/event_filter.rb +5 -2
- data/lib/wx/doc/gen/event_list.rb +117 -19
- data/lib/wx/doc/gen/events.rb +351 -215
- data/lib/wx/doc/gen/evt_handler.rb +8 -8
- data/lib/wx/doc/gen/ext_help_controller.rb +9 -9
- data/lib/wx/doc/gen/file_dialog.rb +20 -9
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +19 -11
- data/lib/wx/doc/gen/file_system.rb +250 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +2 -2
- data/lib/wx/doc/gen/flex_grid_sizer.rb +16 -10
- data/lib/wx/doc/gen/font.rb +90 -94
- data/lib/wx/doc/gen/font_data.rb +15 -11
- data/lib/wx/doc/gen/font_dialog.rb +5 -5
- data/lib/wx/doc/gen/font_picker_ctrl.rb +11 -7
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +36 -27
- data/lib/wx/doc/gen/fs_file.rb +65 -38
- data/lib/wx/doc/gen/gauge.rb +14 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +43 -41
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +19 -13
- data/lib/wx/doc/gen/graphics_context.rb +320 -88
- data/lib/wx/doc/gen/graphics_object.rb +48 -102
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +41 -56
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +19 -14
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +15 -13
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +446 -189
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +26 -9
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +15 -11
- data/lib/wx/doc/gen/grid/grid_size_event.rb +13 -7
- data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -8
- data/lib/wx/doc/gen/grid/grid_table_base.rb +21 -21
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +15 -15
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/header_ctrl.rb +755 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
- data/lib/wx/doc/gen/help_controller.rb +25 -19
- data/lib/wx/doc/gen/help_provider.rb +3 -3
- data/lib/wx/doc/gen/html/html_cell.rb +100 -59
- data/lib/wx/doc/gen/html/html_cell_event.rb +7 -5
- data/lib/wx/doc/gen/html/html_easy_printing.rb +14 -9
- data/lib/wx/doc/gen/html/html_help_controller.rb +60 -46
- data/lib/wx/doc/gen/html/html_help_data.rb +5 -5
- data/lib/wx/doc/gen/html/html_help_window.rb +33 -35
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +21 -13
- data/lib/wx/doc/gen/html/html_printout.rb +16 -6
- data/lib/wx/doc/gen/html/html_window.rb +54 -39
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +15 -10
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
- data/lib/wx/doc/gen/icon.rb +24 -24
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +164 -114
- data/lib/wx/doc/gen/image_list.rb +24 -30
- data/lib/wx/doc/gen/info_bar.rb +152 -0
- data/lib/wx/doc/gen/keyboard_state.rb +24 -24
- data/lib/wx/doc/gen/list_box.rb +40 -31
- data/lib/wx/doc/gen/list_ctrl.rb +223 -167
- data/lib/wx/doc/gen/list_event.rb +25 -3
- data/lib/wx/doc/gen/listbook.rb +13 -7
- data/lib/wx/doc/gen/locale.rb +22 -71
- data/lib/wx/doc/gen/log.rb +133 -106
- data/lib/wx/doc/gen/mdi_client_window.rb +3 -3
- data/lib/wx/doc/gen/mdi_frame.rb +23 -17
- data/lib/wx/doc/gen/media_ctrl.rb +22 -19
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +26 -33
- data/lib/wx/doc/gen/menu.rb +24 -25
- data/lib/wx/doc/gen/menu_bar.rb +11 -28
- data/lib/wx/doc/gen/menu_item.rb +127 -46
- data/lib/wx/doc/gen/message_dialog.rb +54 -36
- data/lib/wx/doc/gen/mini_frame.rb +14 -5
- data/lib/wx/doc/gen/mouse_state.rb +51 -11
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +8 -9
- data/lib/wx/doc/gen/notebook.rb +27 -22
- data/lib/wx/doc/gen/number_entry_dialog.rb +3 -3
- data/lib/wx/doc/gen/object.rb +3 -14
- data/lib/wx/doc/gen/palette.rb +15 -17
- data/lib/wx/doc/gen/panel.rb +8 -7
- data/lib/wx/doc/gen/pen.rb +50 -37
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +17 -17
- data/lib/wx/doc/gen/pg/pg_cell.rb +13 -16
- data/lib/wx/doc/gen/pg/pg_editor.rb +95 -93
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +64 -89
- data/lib/wx/doc/gen/pg/pg_properties.rb +379 -349
- data/lib/wx/doc/gen/pg/pg_property.rb +260 -307
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid.rb +49 -49
- data/lib/wx/doc/gen/pg/property_grid_event.rb +24 -11
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +75 -69
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +51 -54
- data/lib/wx/doc/gen/pg/property_grid_page.rb +22 -30
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +17 -26
- data/lib/wx/doc/gen/picker_base.rb +17 -16
- data/lib/wx/doc/gen/platform_info.rb +180 -20
- data/lib/wx/doc/gen/popup_window.rb +8 -8
- data/lib/wx/doc/gen/progress_dialog.rb +3 -3
- data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -18
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +18 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +68 -62
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +44 -49
- data/lib/wx/doc/gen/query_layout_info_event.rb +6 -5
- data/lib/wx/doc/gen/radio_box.rb +21 -19
- data/lib/wx/doc/gen/radio_button.rb +13 -11
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +67 -67
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +38 -20
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +22 -15
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -11
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +14 -16
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -12
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +24 -22
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +17 -15
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
- data/lib/wx/doc/gen/rearrange_list.rb +99 -0
- data/lib/wx/doc/gen/region.rb +35 -43
- data/lib/wx/doc/gen/region_iterator.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +626 -1538
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +488 -503
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +31 -12
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +18 -18
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +23 -19
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +9 -18
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +29 -29
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
- data/lib/wx/doc/gen/sash_event.rb +8 -6
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -11
- data/lib/wx/doc/gen/sash_window.rb +14 -9
- data/lib/wx/doc/gen/scroll_bar.rb +33 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +49 -37
- data/lib/wx/doc/gen/scrolled_control.rb +49 -37
- data/lib/wx/doc/gen/scrolled_window.rb +49 -37
- data/lib/wx/doc/gen/search_ctrl.rb +20 -13
- data/lib/wx/doc/gen/simplebook.rb +7 -7
- data/lib/wx/doc/gen/single_choice_dialog.rb +5 -4
- data/lib/wx/doc/gen/sizer.rb +69 -73
- data/lib/wx/doc/gen/sizer_item.rb +5 -5
- data/lib/wx/doc/gen/slider.rb +51 -18
- data/lib/wx/doc/gen/spin_button.rb +17 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
- data/lib/wx/doc/gen/spin_double_event.rb +53 -0
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +36 -16
- data/lib/wx/doc/gen/static_bitmap.rb +9 -9
- data/lib/wx/doc/gen/static_box.rb +41 -37
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +8 -7
- data/lib/wx/doc/gen/static_text.rb +15 -9
- data/lib/wx/doc/gen/status_bar.rb +53 -10
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +200 -184
- data/lib/wx/doc/gen/stc/styled_text_event.rb +229 -54
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +8 -8
- data/lib/wx/doc/gen/system_options.rb +13 -3
- data/lib/wx/doc/gen/system_settings.rb +9 -9
- data/lib/wx/doc/gen/task_bar_icon.rb +17 -9
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +67 -61
- data/lib/wx/doc/gen/text_ctrl.rb +58 -113
- data/lib/wx/doc/gen/text_entry.rb +44 -56
- data/lib/wx/doc/gen/text_entry_dialog.rb +23 -23
- data/lib/wx/doc/gen/text_validator.rb +3 -19
- data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -10
- data/lib/wx/doc/gen/timer.rb +13 -9
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +3 -3
- data/lib/wx/doc/gen/toggle_button.rb +10 -9
- data/lib/wx/doc/gen/tool_bar.rb +71 -61
- data/lib/wx/doc/gen/tool_tip.rb +2 -10
- data/lib/wx/doc/gen/toolbook.rb +12 -9
- data/lib/wx/doc/gen/top_level_window.rb +53 -113
- data/lib/wx/doc/gen/tree_ctrl.rb +83 -33
- data/lib/wx/doc/gen/tree_event.rb +24 -3
- data/lib/wx/doc/gen/treebook.rb +20 -16
- data/lib/wx/doc/gen/ui_action_simulator.rb +20 -19
- data/lib/wx/doc/gen/utils.rb +20 -14
- data/lib/wx/doc/gen/v_list_box.rb +11 -11
- data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
- data/lib/wx/doc/gen/validator.rb +10 -8
- data/lib/wx/doc/gen/variant.rb +56 -119
- data/lib/wx/doc/gen/window.rb +314 -224
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +2 -2
- data/lib/wx/doc/gen/wizard.rb +21 -8
- data/lib/wx/doc/gen/wizard_event.rb +11 -4
- data/lib/wx/doc/gen/wizard_page.rb +3 -3
- data/lib/wx/doc/gen/wizard_page_simple.rb +8 -8
- data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
- data/lib/wx/doc/gen/xml_node.rb +13 -13
- data/lib/wx/doc/gen/xml_resource.rb +24 -21
- data/lib/wx/doc/graphics_context.rb +59 -39
- data/lib/wx/doc/grid/grid.rb +16 -1
- data/lib/wx/doc/hboxsizer.rb +33 -0
- data/lib/wx/doc/help_controller.rb +6 -0
- data/lib/wx/doc/html/html_help_controller.rb +6 -0
- data/lib/wx/doc/icon.rb +13 -5
- data/lib/wx/doc/id_helper.rb +6 -0
- data/lib/wx/doc/image.rb +50 -12
- data/lib/wx/doc/list_ctrl.rb +38 -0
- data/lib/wx/doc/log.rb +45 -0
- data/lib/wx/doc/memory_dc.rb +6 -0
- data/lib/wx/doc/mirror_dc.rb +6 -0
- data/lib/wx/doc/pen.rb +6 -0
- data/lib/wx/doc/pg/events.rb +6 -0
- data/lib/wx/doc/pg/pg_property.rb +17 -0
- data/lib/wx/doc/pg/pgeditor.rb +6 -0
- data/lib/wx/doc/pg/property_grid.rb +6 -0
- data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
- data/lib/wx/doc/progress_dialog.rb +6 -0
- data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
- data/lib/wx/doc/prt/print_data.rb +6 -0
- data/lib/wx/doc/prt/print_dialog.rb +6 -0
- data/lib/wx/doc/prt/printer.rb +6 -0
- data/lib/wx/doc/prt/printer_dc.rb +8 -2
- data/lib/wx/doc/radio_box.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
- data/lib/wx/doc/region_iterator.rb +6 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
- data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
- data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +7 -1
- data/lib/wx/doc/screen_dc.rb +6 -0
- data/lib/wx/doc/stock_objects.rb +6 -0
- data/lib/wx/doc/stream.rb +6 -0
- data/lib/wx/doc/svg_file_dc.rb +6 -0
- data/lib/wx/doc/system_settings.rb +6 -0
- data/lib/wx/doc/text_validator.rb +18 -0
- data/lib/wx/doc/textctrl.rb +89 -0
- data/lib/wx/doc/tree_event.rb +20 -0
- data/lib/wx/doc/treebook.rb +6 -0
- data/lib/wx/doc/v_list_box.rb +6 -0
- data/lib/wx/doc/variant.rb +6 -0
- data/lib/wx/doc/vboxsizer.rb +33 -0
- data/lib/wx/doc/window.rb +6 -0
- data/lib/wx/doc/window_disabler.rb +6 -0
- data/lib/wx/doc/xml_resource.rb +8 -0
- data/lib/wx/global_const.rb +4 -1
- data/lib/wx/grid/grid.rb +23 -3
- data/lib/wx/grid/keyword_defs.rb +8 -1
- data/lib/wx/grid/require.rb +4 -1
- data/lib/wx/grid.rb +4 -1
- data/lib/wx/helpers.rb +8 -1
- data/lib/wx/html/htmlhelpcontroller.rb +29 -3
- data/lib/wx/html/htmlwindow.rb +23 -12
- data/lib/wx/html/keyword_defs.rb +8 -1
- data/lib/wx/html/require.rb +4 -1
- data/lib/wx/html/simple_html_listbox.rb +3 -0
- data/lib/wx/html.rb +4 -1
- data/lib/wx/keyword_ctors.rb +22 -3
- data/lib/wx/keyword_defs.rb +55 -3
- data/lib/wx/pg/events.rb +4 -1
- data/lib/wx/pg/keyword_defs.rb +8 -1
- data/lib/wx/pg/pg_editor.rb +3 -0
- data/lib/wx/pg/pg_properties.rb +4 -1
- data/lib/wx/pg/pg_property.rb +18 -5
- data/lib/wx/pg/property_grid.rb +4 -1
- data/lib/wx/pg/property_grid_interface.rb +3 -0
- data/lib/wx/pg/require.rb +4 -1
- data/lib/wx/pg.rb +4 -1
- data/lib/wx/prt/keyword_defs.rb +8 -1
- data/lib/wx/prt/page_setup_dialog.rb +3 -0
- data/lib/wx/prt/previewframe.rb +5 -0
- data/lib/wx/prt/require.rb +4 -1
- data/lib/wx/prt.rb +4 -1
- data/lib/wx/rbn/events.rb +4 -1
- data/lib/wx/rbn/keyword_defs.rb +8 -1
- data/lib/wx/rbn/require.rb +5 -1
- data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
- data/lib/wx/rbn/ribbon_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_control.rb +3 -0
- data/lib/wx/rbn/ribbon_gallery.rb +10 -0
- data/lib/wx/rbn/ribbon_page.rb +3 -0
- data/lib/wx/rbn/ribbon_panel.rb +3 -0
- data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
- data/lib/wx/rbn.rb +4 -1
- data/lib/wx/rtc/ext.rb +4 -1
- data/lib/wx/rtc/keyword_defs.rb +18 -7
- data/lib/wx/rtc/require.rb +8 -1
- data/lib/wx/rtc/richtext_buffer.rb +36 -0
- data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
- data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
- data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
- data/lib/wx/rtc.rb +5 -1
- data/lib/wx/stc/keyword_defs.rb +8 -1
- data/lib/wx/stc/require.rb +4 -1
- data/lib/wx/stc.rb +4 -1
- data/lib/wx/version.rb +5 -1
- data/lib/wx/wxruby/base.rb +4 -1
- data/lib/wx/wxruby/cmd/sampler.rb +4 -1
- data/lib/wx/wxruby/cmd/test.rb +4 -1
- data/lib/wx.rb +4 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/install.rb +4 -1
- data/rakelib/lib/config/cygwin.rb +4 -1
- data/rakelib/lib/config/linux.rb +4 -1
- data/rakelib/lib/config/macosx.rb +5 -2
- data/rakelib/lib/config/mingw.rb +4 -1
- data/rakelib/lib/config/netbsd.rb +4 -1
- data/rakelib/lib/config/unixish.rb +10 -7
- data/rakelib/lib/config.rb +7 -2
- data/rakelib/lib/ext/enum_chain.rb +4 -1
- data/rakelib/prepost.rake +4 -1
- data/rakelib/prepost.rb +4 -1
- data/samples/aui/aui.rb +8 -3
- data/samples/bigdemo/bigdemo.rb +9 -2
- data/samples/bigdemo/run.rb +9 -2
- data/samples/bigdemo/utils.rb +9 -1
- data/samples/calendar/calendar.rb +9 -4
- data/samples/caret/caret.rb +8 -3
- data/samples/controls/books.rb +8 -2
- data/samples/controls/controls.rb +33 -77
- data/samples/controls/get_item_sample.rb +8 -2
- data/samples/controls/htlbox.rb +10 -3
- data/samples/dialogs/dialogs.rb +9 -4
- data/samples/dialogs/wizard.rb +8 -3
- data/samples/dragdrop/dragdrop.rb +8 -3
- data/samples/drawing/bitmap.rb +8 -3
- data/samples/drawing/bitmap_image.rb +8 -3
- data/samples/drawing/graphics_drawing.rb +44 -33
- data/samples/drawing/image_prt.rb +8 -2
- data/samples/drawing/maths_images.rb +8 -3
- data/samples/drawing/rmagic_bitmap_image.rb +8 -3
- data/samples/etc/choice.rb +8 -3
- data/samples/etc/miniframe.rb +8 -3
- data/samples/etc/sash.rb +8 -3
- data/samples/etc/scrollwin.rb +8 -3
- data/samples/etc/system_settings.rb +8 -3
- data/samples/event/activation.rb +8 -3
- data/samples/event/event.rb +8 -3
- data/samples/event/threaded.rb +8 -3
- data/samples/event/update_ui_event.rb +8 -3
- data/samples/grid/grid.rb +9 -3
- data/samples/grid/gridtablebase.rb +8 -3
- data/samples/html/html.rb +8 -3
- data/samples/mdi/mdi.rb +8 -3
- data/samples/minimal/minimal.rb +8 -3
- data/samples/minimal/nothing.rb +8 -3
- data/samples/printing/printing.rb +8 -3
- data/samples/printing/printing2.rb +8 -2
- data/samples/propgrid/propgrid.rb +4 -1
- data/samples/propgrid/propgrid_minimal.rb +4 -2
- data/samples/propgrid/sample_props.rb +4 -1
- data/samples/ribbon/ribbon.rb +4 -1
- data/samples/sampler/editor.rb +4 -1
- data/samples/sampler/ext.rb +4 -1
- data/samples/sampler/sample.rb +13 -4
- data/samples/sampler/stc_editor.rb +4 -1
- data/samples/sampler/txt_editor.rb +4 -1
- data/samples/sampler.rb +11 -3
- data/samples/splash/splash.rb +4 -2
- data/samples/text/art/richtext/alignleft.xpm +24 -0
- data/samples/text/art/richtext/alignright.xpm +24 -0
- data/samples/text/art/richtext/bold.xpm +24 -0
- data/samples/text/art/richtext/centre.xpm +24 -0
- data/samples/text/art/richtext/copy.xpm +45 -0
- data/samples/text/art/richtext/cut.xpm +47 -0
- data/samples/text/art/richtext/font.xpm +25 -0
- data/samples/text/art/richtext/idea.xpm +47 -0
- data/samples/text/art/richtext/indentless.xpm +25 -0
- data/samples/text/art/richtext/indentmore.xpm +25 -0
- data/samples/text/art/richtext/italic.xpm +25 -0
- data/samples/text/art/richtext/open.xpm +58 -0
- data/samples/text/art/richtext/paste.xpm +47 -0
- data/samples/text/art/richtext/redo.xpm +59 -0
- data/samples/text/art/richtext/save.xpm +43 -0
- data/samples/text/art/richtext/smiley.xpm +42 -0
- data/samples/text/art/richtext/underline.xpm +25 -0
- data/samples/text/art/richtext/undo.xpm +59 -0
- data/samples/text/art/richtext/zebra.xpm +409 -0
- data/samples/text/rich_textctrl.rb +8 -3
- data/samples/text/richtext.rb +1824 -0
- data/samples/text/scintilla.rb +8 -3
- data/samples/text/textctrl.rb +21 -4
- data/samples/text/tn_richtext.png +0 -0
- data/samples/text/unicode.rb +9 -4
- data/samples/treectrl/treectrl.rb +10 -5
- data/samples/xrc/custom_xrc_sample.rb +8 -3
- data/samples/xrc/xrc_sample.rb +8 -3
- data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
- data/tests/lib/item_container_tests.rb +3 -0
- data/tests/lib/text_entry_tests.rb +3 -0
- data/tests/lib/wxapp_runner.rb +3 -0
- data/tests/lib/wxframe_runner.rb +81 -3
- data/tests/test_app_event_filter.rb +3 -0
- data/tests/test_app_traits.rb +33 -0
- data/tests/test_art.rb +31 -0
- data/tests/test_art_provider.rb +3 -0
- data/tests/test_aui.rb +65 -0
- data/tests/test_basic.rb +5 -1
- data/tests/test_box_sizer.rb +164 -0
- data/tests/test_clipboard.rb +3 -0
- data/tests/test_config.rb +150 -0
- data/tests/test_dc.rb +3 -0
- data/tests/test_dialog.rb +3 -0
- data/tests/test_event_handling.rb +3 -0
- data/tests/test_events.rb +3 -0
- data/tests/test_ext_controls.rb +286 -3
- data/tests/test_file_dialog.rb +55 -0
- data/tests/test_font.rb +8 -5
- data/tests/test_gdi_object.rb +3 -0
- data/tests/test_geometry.rb +4 -0
- data/tests/test_grid_sizer.rb +151 -0
- data/tests/test_intl.rb +3 -0
- data/tests/test_item_data.rb +3 -0
- data/tests/test_list_ctrl.rb +56 -0
- data/tests/test_log.rb +226 -0
- data/tests/test_proof_check.rb +52 -0
- data/tests/test_richtext.rb +204 -0
- data/tests/test_std_controls.rb +99 -31
- data/tests/test_timer.rb +98 -0
- data/tests/test_variant.rb +3 -0
- data/tests/test_window.rb +10 -8
- data/tests/testapp.rb +4 -0
- data/tests/testapp_noframe.rb +4 -0
- metadata +87 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
data/lib/wx/doc/gen/list_ctrl.rb
CHANGED
@@ -319,7 +319,7 @@ module Wx
|
|
319
319
|
# 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
320
|
# Using many of {Wx::ListCtrl} features is shown in the corresponding sample.
|
321
321
|
# To intercept events from a list control, use the event table macros described in {Wx::ListEvent}.
|
322
|
-
# The native
|
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
|
# == Column Ordering
|
325
325
|
#
|
@@ -328,77 +328,109 @@ module Wx
|
|
328
328
|
# 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.
|
329
329
|
#
|
330
330
|
# Example of reordering columns:
|
331
|
-
# ```
|
332
|
-
#
|
333
|
-
#
|
334
|
-
# list->InsertColumn(i, wxString::Format("Column %d", i));
|
331
|
+
# ```ruby
|
332
|
+
# list = Wx::ListCtrl.new(...)
|
333
|
+
# 3.times { |i| list.insert_column(i, "Column #{i}") }
|
335
334
|
#
|
336
|
-
#
|
337
|
-
# order
|
338
|
-
# order[1] = 0;
|
339
|
-
# order[2] = 1;
|
340
|
-
# list->SetColumnsOrder(order);
|
335
|
+
# order = [2, 0, 1]
|
336
|
+
# list.set_columns_order(order)
|
341
337
|
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
338
|
+
# # now list.get_columns_order() will return order and
|
339
|
+
# # list.get_column_index_from_order(n) will return order[n] and
|
340
|
+
# # list.get_column_order() will return 1, 2 and 0 for the column 0,
|
341
|
+
# # 1 and 2 respectively
|
346
342
|
# ```
|
347
343
|
#
|
348
344
|
# === Styles
|
349
345
|
#
|
350
346
|
# This class supports the following styles:
|
351
|
-
#
|
347
|
+
#
|
352
348
|
# - {Wx::LC_LIST}: Multicolumn list view, with optional small icons. Columns are computed automatically, i.e. you don't set columns as in {Wx::LC_REPORT}. In other words, the list wraps, unlike a {Wx::ListBox}.
|
349
|
+
#
|
353
350
|
# - {Wx::LC_REPORT}: Single or multicolumn report view, with optional header.
|
351
|
+
#
|
354
352
|
# - {Wx::LC_VIRTUAL}: The application provides items text on demand. May only be used with {Wx::LC_REPORT}.
|
353
|
+
#
|
355
354
|
# - {Wx::LC_ICON}: Large icon view, with optional labels.
|
355
|
+
#
|
356
356
|
# - {Wx::LC_SMALL_ICON}: Small icon view, with optional labels.
|
357
|
+
#
|
357
358
|
# - {Wx::LC_ALIGN_TOP}: Icons align to the top. Win32 default, Win32 only.
|
359
|
+
#
|
358
360
|
# - {Wx::LC_ALIGN_LEFT}: Icons align to the left.
|
361
|
+
#
|
359
362
|
# - {Wx::LC_AUTOARRANGE}: Icons arrange themselves. Win32 only.
|
363
|
+
#
|
360
364
|
# - {Wx::LC_EDIT_LABELS}: Labels are editable: the application will be notified when editing starts.
|
365
|
+
#
|
361
366
|
# - {Wx::LC_NO_HEADER}: No header in report mode.
|
367
|
+
#
|
362
368
|
# - {Wx::LC_SINGLE_SEL}: Single selection (default is multiple).
|
369
|
+
#
|
363
370
|
# - {Wx::LC_SORT_ASCENDING}: Sort in ascending order. (You must still supply a comparison callback in {Wx::ListCtrl#sort_items}.)
|
371
|
+
#
|
364
372
|
# - {Wx::LC_SORT_DESCENDING}: Sort in descending order. (You must still supply a comparison callback in {Wx::ListCtrl#sort_items}.)
|
373
|
+
#
|
365
374
|
# - {Wx::LC_HRULES}: Draws light horizontal rules between rows in report mode.
|
375
|
+
#
|
366
376
|
# - {Wx::LC_VRULES}: Draws light vertical rules between columns in report mode.
|
367
377
|
#
|
368
378
|
# === Events emitted by this class
|
369
379
|
#
|
370
380
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ListEvent} events.
|
371
381
|
# Event handler methods for events emitted by this class:
|
382
|
+
#
|
372
383
|
# - {Wx::EvtHandler#evt_list_begin_drag}(id, meth = nil, &block): Begin dragging with the left mouse button. Processes a {Wx::EVT_LIST_BEGIN_DRAG} event type.
|
384
|
+
#
|
373
385
|
# - {Wx::EvtHandler#evt_list_begin_rdrag}(id, meth = nil, &block): Begin dragging with the right mouse button. Processes a {Wx::EVT_LIST_BEGIN_RDRAG} event type.
|
386
|
+
#
|
374
387
|
# - {Wx::EvtHandler#evt_list_begin_label_edit}(id, meth = nil, &block): Begin editing a label. This can be prevented by calling Veto(). Processes a {Wx::EVT_LIST_BEGIN_LABEL_EDIT} event type.
|
388
|
+
#
|
375
389
|
# - {Wx::EvtHandler#evt_list_end_label_edit}(id, meth = nil, &block): Finish editing a label. This can be prevented by calling Veto(). Processes a {Wx::EVT_LIST_END_LABEL_EDIT} event type.
|
390
|
+
#
|
376
391
|
# - {Wx::EvtHandler#evt_list_delete_item}(id, meth = nil, &block): An item was deleted. Processes a {Wx::EVT_LIST_DELETE_ITEM} event type.
|
392
|
+
#
|
377
393
|
# - {Wx::EvtHandler#evt_list_delete_all_items}(id, meth = nil, &block): All items were deleted. Processes a {Wx::EVT_LIST_DELETE_ALL_ITEMS} event type.
|
394
|
+
#
|
378
395
|
# - {Wx::EvtHandler#evt_list_item_selected}(id, meth = nil, &block): The item has been selected. Notice that the mouse is captured by the control itself when this event is generated, see event handling overview. Processes a {Wx::EVT_LIST_ITEM_SELECTED} event type.
|
396
|
+
#
|
379
397
|
# - {Wx::EvtHandler#evt_list_item_deselected}(id, meth = nil, &block): The item has been deselected. Processes a {Wx::EVT_LIST_ITEM_DESELECTED} event type.
|
398
|
+
#
|
380
399
|
# - {Wx::EvtHandler#evt_list_item_activated}(id, meth = nil, &block): The item has been activated (ENTER or double click). Processes a {Wx::EVT_LIST_ITEM_ACTIVATED} event type.
|
400
|
+
#
|
381
401
|
# - {Wx::EvtHandler#evt_list_item_focused}(id, meth = nil, &block): The currently focused item has changed. Processes a {Wx::EVT_LIST_ITEM_FOCUSED} event type.
|
402
|
+
#
|
382
403
|
# - {Wx::EvtHandler#evt_list_item_middle_click}(id, meth = nil, &block): The middle mouse button has been clicked on an item. This is only supported by the generic control. Processes a {Wx::EVT_LIST_ITEM_MIDDLE_CLICK} event type.
|
404
|
+
#
|
383
405
|
# - {Wx::EvtHandler#evt_list_item_right_click}(id, meth = nil, &block): The right mouse button has been clicked on an item. Processes a {Wx::EVT_LIST_ITEM_RIGHT_CLICK} event type.
|
406
|
+
#
|
384
407
|
# - {Wx::EvtHandler#evt_list_key_down}(id, meth = nil, &block): A key has been pressed. Processes a {Wx::EVT_LIST_KEY_DOWN} event type.
|
408
|
+
#
|
385
409
|
# - {Wx::EvtHandler#evt_list_insert_item}(id, meth = nil, &block): An item has been inserted. Processes a {Wx::EVT_LIST_INSERT_ITEM} event type.
|
410
|
+
#
|
386
411
|
# - {Wx::EvtHandler#evt_list_col_click}(id, meth = nil, &block): A column (m_col) has been left-clicked. Processes a {Wx::EVT_LIST_COL_CLICK} event type.
|
412
|
+
#
|
387
413
|
# - {Wx::EvtHandler#evt_list_col_right_click}(id, meth = nil, &block): A column (m_col) has been right-clicked. Processes a {Wx::EVT_LIST_COL_RIGHT_CLICK} event type.
|
414
|
+
#
|
388
415
|
# - {Wx::EvtHandler#evt_list_col_begin_drag}(id, meth = nil, &block): The user started resizing a column - can be vetoed. Processes a {Wx::EVT_LIST_COL_BEGIN_DRAG} event type.
|
416
|
+
#
|
389
417
|
# - {Wx::EvtHandler#evt_list_col_dragging}(id, meth = nil, &block): The divider between columns is being dragged. Processes a {Wx::EVT_LIST_COL_DRAGGING} event type.
|
418
|
+
#
|
390
419
|
# - {Wx::EvtHandler#evt_list_col_end_drag}(id, meth = nil, &block): A column has been resized by the user. Processes a {Wx::EVT_LIST_COL_END_DRAG} event type.
|
420
|
+
#
|
391
421
|
# - {Wx::EvtHandler#evt_list_cache_hint}(id, meth = nil, &block): Prepare cache for a virtual list control. Processes a {Wx::EVT_LIST_CACHE_HINT} event type.
|
422
|
+
#
|
392
423
|
# - {Wx::EvtHandler#evt_list_item_checked}(id, meth = nil, &block): The item has been checked. Processes a {Wx::EVT_LIST_ITEM_CHECKED} event type (new since wxWidgets 3.1.0).
|
424
|
+
#
|
393
425
|
# - {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).
|
394
426
|
#
|
395
|
-
# Under
|
427
|
+
# 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.
|
396
428
|
#
|
397
429
|
# ===
|
398
430
|
#
|
399
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
400
|
-
# </td><td>
|
401
|
-
# </td><td>
|
431
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
432
|
+
# </td><td> wxGTK Appearance
|
433
|
+
# </td><td> wxOSX Appearance
|
402
434
|
# </td></tr></table></div>
|
403
435
|
# @see wxListCtrl Overview
|
404
436
|
# @see Wx::ListView
|
@@ -414,7 +446,7 @@ module Wx
|
|
414
446
|
|
415
447
|
# @overload initialize()
|
416
448
|
# Default constructor.
|
417
|
-
# @return [ListCtrl]
|
449
|
+
# @return [Wx::ListCtrl]
|
418
450
|
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_ICON, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListCtrlNameStr)
|
419
451
|
# Constructor, creating and showing a list control.
|
420
452
|
#
|
@@ -427,22 +459,26 @@ module Wx
|
|
427
459
|
# @param style [Integer] Window style. See {Wx::ListCtrl}.
|
428
460
|
# @param validator [Wx::Validator] Window validator.
|
429
461
|
# @param name [String] Window name.
|
430
|
-
# @return [ListCtrl]
|
462
|
+
# @return [Wx::ListCtrl]
|
431
463
|
def initialize(*args) end
|
432
464
|
|
433
465
|
# Adds a new column to the list control in report view mode.
|
434
466
|
# This is just a convenient wrapper for {Wx::ListCtrl#insert_column} which adds the new column after all the existing ones without having to specify its position explicitly.
|
435
467
|
# @param heading [String]
|
436
|
-
# @param format [ListColumnFormat]
|
468
|
+
# @param format [Wx::ListColumnFormat]
|
437
469
|
# @param width [Integer]
|
438
470
|
# @return [Integer]
|
439
471
|
def append_column(heading, format=Wx::ListColumnFormat::LIST_FORMAT_LEFT, width=-1) end
|
440
472
|
|
441
473
|
# Arranges the items in icon or small icon view.
|
442
474
|
# This only has effect on Win32. flag is one of:
|
443
|
-
#
|
475
|
+
#
|
476
|
+
# - {Wx::LIST_ALIGN_DEFAULT}: Default alignment.
|
477
|
+
# - {Wx::LIST_ALIGN_LEFT}: Align to the left side of the control.
|
478
|
+
# - {Wx::LIST_ALIGN_TOP}: Align to the top side of the control.
|
479
|
+
# - {Wx::LIST_ALIGN_SNAP_TO_GRID}: Snap to grid.
|
444
480
|
# @param flag [Integer]
|
445
|
-
# @return [
|
481
|
+
# @return [Boolean]
|
446
482
|
def arrange(flag=Wx::LIST_ALIGN_DEFAULT) end
|
447
483
|
|
448
484
|
# Deletes all items and all columns.
|
@@ -451,7 +487,7 @@ module Wx
|
|
451
487
|
def clear_all; end
|
452
488
|
|
453
489
|
# Creates the list control.
|
454
|
-
# See {Wx::ListCtrl#
|
490
|
+
# See {Wx::ListCtrl#initialize} for further details.
|
455
491
|
# @param parent [Wx::Window]
|
456
492
|
# @param id [Integer]
|
457
493
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
@@ -459,59 +495,59 @@ module Wx
|
|
459
495
|
# @param style [Integer]
|
460
496
|
# @param validator [Wx::Validator]
|
461
497
|
# @param name [String]
|
462
|
-
# @return [
|
498
|
+
# @return [Boolean]
|
463
499
|
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LC_ICON, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListCtrlNameStr) end
|
464
500
|
|
465
501
|
# Delete all columns in the list control.
|
466
502
|
# true if all columns were successfully deleted, false otherwise.
|
467
|
-
# @return [
|
503
|
+
# @return [Boolean]
|
468
504
|
def delete_all_columns; end
|
469
505
|
|
470
506
|
# Deletes all items in the list control.
|
471
507
|
# This function does not send the {Wx::EVT_LIST_DELETE_ITEM} event because deleting many items from the control would be too slow then (unlike {Wx::ListCtrl#delete_item}) but it does send the special {Wx::EVT_LIST_DELETE_ALL_ITEMS} event if the control was not empty. If it was already empty, nothing is done and no event is sent.
|
472
508
|
# true if the items were successfully deleted or if the control was already empty, false if an error occurred while deleting the items.
|
473
|
-
# @return [
|
509
|
+
# @return [Boolean]
|
474
510
|
def delete_all_items; end
|
475
511
|
|
476
512
|
# Deletes a column.
|
477
513
|
# @param col [Integer]
|
478
|
-
# @return [
|
514
|
+
# @return [Boolean]
|
479
515
|
def delete_column(col) end
|
480
516
|
|
481
517
|
# Deletes the specified item.
|
482
518
|
# This function sends the {Wx::EVT_LIST_DELETE_ITEM} event for the item being deleted.
|
483
519
|
# @see Wx::ListCtrl#delete_all_items
|
484
520
|
# @param item [Integer]
|
485
|
-
# @return [
|
521
|
+
# @return [Boolean]
|
486
522
|
def delete_item(item) end
|
487
523
|
|
488
524
|
# Enable alternating row background colours (also called zebra striping).
|
489
525
|
# This method can only be called for the control in virtual report mode, i.e. having {Wx::LC_REPORT} and {Wx::LC_VIRTUAL} styles.
|
490
526
|
# When enabling alternating colours, the appropriate colour for the even rows is chosen automatically depending on the default foreground and background colours which are used for the odd rows.
|
491
527
|
# @see Wx::ListCtrl#set_alternate_row_colour
|
492
|
-
# @param enable [
|
528
|
+
# @param enable [Boolean] If true, enable alternating row background colours, i.e. different colours for the odd and even rows. If false, disable this feature and use the same background colour for all rows.
|
493
529
|
# @return [void]
|
494
530
|
def enable_alternate_row_colours(enable=true) end
|
495
531
|
|
496
532
|
# Enable or disable a beep if there is no match for the currently entered text when searching for the item from keyboard.
|
497
|
-
# The default is to not beep in this case except in
|
498
|
-
# @param on [
|
533
|
+
# 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
|
+
# @param on [Boolean]
|
499
535
|
# @return [void]
|
500
536
|
def enable_bell_on_no_match(on=true) end
|
501
537
|
|
502
538
|
# Finish editing the label.
|
503
539
|
# 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.
|
504
540
|
# Notice that calling this method will result in EVT_LIST_END_LABEL_EDIT event being generated.
|
505
|
-
# Currently only implemented in
|
541
|
+
# Currently only implemented in wxMSW.
|
506
542
|
#
|
507
543
|
# true if item editing was finished or false if no item as being edited.
|
508
|
-
# @param cancel [
|
509
|
-
# @return [
|
544
|
+
# @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.
|
545
|
+
# @return [Boolean]
|
510
546
|
def end_edit_label(cancel) end
|
511
547
|
|
512
548
|
# Ensures this item is visible.
|
513
549
|
# @param item [Integer]
|
514
|
-
# @return [
|
550
|
+
# @return [Boolean]
|
515
551
|
def ensure_visible(item) end
|
516
552
|
|
517
553
|
# @overload find_item(start, str, partial=false)
|
@@ -521,7 +557,7 @@ module Wx
|
|
521
557
|
# The next matching item if any or <code>-1</code> ({Wx::NOT_FOUND}) otherwise.
|
522
558
|
# @param start [Integer]
|
523
559
|
# @param str [String]
|
524
|
-
# @param partial [
|
560
|
+
# @param partial [Boolean]
|
525
561
|
# @return [Integer]
|
526
562
|
# @overload find_item(start, data)
|
527
563
|
# Find an item whose data matches this data, starting from start or the beginning if 'start' is <code>-1</code>.
|
@@ -542,7 +578,7 @@ module Wx
|
|
542
578
|
# See {Wx::ListCtrl#set_item} for more information.
|
543
579
|
# @param col [Integer]
|
544
580
|
# @param item [Wx::ListItem]
|
545
|
-
# @return [
|
581
|
+
# @return [Boolean]
|
546
582
|
def get_column(col, item) end
|
547
583
|
alias_method :column, :get_column
|
548
584
|
|
@@ -552,40 +588,12 @@ module Wx
|
|
552
588
|
def get_column_count; end
|
553
589
|
alias_method :column_count, :get_column_count
|
554
590
|
|
555
|
-
# Gets the column index from its position in visual order.
|
556
|
-
# After calling {Wx::ListCtrl#set_columns_order}, the index returned by this function corresponds to the value of the element number pos in the array returned by {Wx::ListCtrl#get_columns_order}.
|
557
|
-
# This function makes sense for report view only and currently is only implemented in the {Wx::MSW} port. Use {Wx::HAS_LISTCTRL_COLUMN_ORDER} to guard uses of this function so that they will start working under the other platforms when support for the column reordering is added there.
|
558
|
-
# @see Wx::ListCtrl#get_column_order
|
559
|
-
# @param pos [Integer]
|
560
|
-
# @return [Integer]
|
561
|
-
def get_column_index_from_order(pos) end
|
562
|
-
alias_method :column_index_from_order, :get_column_index_from_order
|
563
|
-
|
564
|
-
# Gets the column visual order position.
|
565
|
-
# This function returns the index of the column which appears at the given visual position, e.g. calling it with col equal to 0 returns the index of the first shown column.
|
566
|
-
# This function makes sense for report view only and currently is only implemented in the {Wx::MSW} port. Use {Wx::HAS_LISTCTRL_COLUMN_ORDER} to guard uses of this function so that they will start working under the other platforms when support for the column reordering is added there.
|
567
|
-
# @see Wx::ListCtrl#get_columns_order
|
568
|
-
# @see Wx::ListCtrl#get_column_index_from_order
|
569
|
-
# @param col [Integer]
|
570
|
-
# @return [Integer]
|
571
|
-
def get_column_order(col) end
|
572
|
-
alias_method :column_order, :get_column_order
|
573
|
-
|
574
591
|
# Gets the column width (report view only).
|
575
592
|
# @param col [Integer]
|
576
593
|
# @return [Integer]
|
577
594
|
def get_column_width(col) end
|
578
595
|
alias_method :column_width, :get_column_width
|
579
596
|
|
580
|
-
# Returns the array containing the orders of all columns.
|
581
|
-
# On error, an empty array is returned.
|
582
|
-
# This function makes sense for report view only and currently is only implemented in the {Wx::MSW} port. Use {Wx::HAS_LISTCTRL_COLUMN_ORDER} to guard uses of this function so that they will start working under the other platforms when support for the column reordering is added there.
|
583
|
-
# @see Wx::ListCtrl#get_column_order
|
584
|
-
# @see Wx::ListCtrl#get_column_index_from_order
|
585
|
-
# @return [Array<Integer>]
|
586
|
-
def get_columns_order; end
|
587
|
-
alias_method :columns_order, :get_columns_order
|
588
|
-
|
589
597
|
# Gets the number of items that can fit vertically in the visible area of the list control (list or report view) or the total number of items in the list control (icon or small icon view).
|
590
598
|
# @return [Integer]
|
591
599
|
def get_count_per_page; end
|
@@ -593,14 +601,17 @@ module Wx
|
|
593
601
|
|
594
602
|
# Returns the edit control being currently used to edit a label.
|
595
603
|
# Returns NULL if no label is being edited.
|
596
|
-
# It is currently only implemented for
|
604
|
+
# It is currently only implemented for wxMSW and the generic version, not for the native macOS version.
|
597
605
|
# @return [Wx::TextCtrl]
|
598
606
|
def get_edit_control; end
|
599
607
|
alias_method :edit_control, :get_edit_control
|
600
608
|
|
601
609
|
# Returns the specified image list.
|
602
610
|
# which may be one of:
|
603
|
-
#
|
611
|
+
#
|
612
|
+
# - {Wx::IMAGE_LIST_NORMAL}: The normal (large icon) image list.
|
613
|
+
# - {Wx::IMAGE_LIST_SMALL}: The small icon image list.
|
614
|
+
# - {Wx::IMAGE_LIST_STATE}: The user-defined state image list (unimplemented).
|
604
615
|
# @param which [Integer]
|
605
616
|
# @return [Wx::ImageList]
|
606
617
|
def get_image_list(which) end
|
@@ -628,7 +639,7 @@ module Wx
|
|
628
639
|
# Returns the position of the item, in icon or small icon view.
|
629
640
|
# @param item [Integer]
|
630
641
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
631
|
-
# @return [
|
642
|
+
# @return [Boolean]
|
632
643
|
def get_item_position(item, pos) end
|
633
644
|
alias_method :item_position, :get_item_position
|
634
645
|
|
@@ -636,7 +647,7 @@ module Wx
|
|
636
647
|
# code is one of {Wx::LIST_RECT_BOUNDS}, {Wx::LIST_RECT_ICON}, {Wx::LIST_RECT_LABEL}.
|
637
648
|
# @param item [Integer]
|
638
649
|
# @param code [Integer]
|
639
|
-
# @return [Array(
|
650
|
+
# @return [Array(Boolean,Wx::Rect)]
|
640
651
|
def get_item_rect(item, code=Wx::LIST_RECT_BOUNDS) end
|
641
652
|
alias_method :item_rect, :get_item_rect
|
642
653
|
|
@@ -670,28 +681,36 @@ module Wx
|
|
670
681
|
# Searches for an item with the given geometry or state, starting from item but excluding the item itself.
|
671
682
|
# If item is -1, the first item that matches the specified flags will be returned. Returns the first item with given state following item or -1 if no such item found. This function may be used to find all selected items in the control like this:
|
672
683
|
#
|
673
|
-
# ```
|
674
|
-
#
|
675
|
-
#
|
676
|
-
#
|
677
|
-
#
|
678
|
-
#
|
679
|
-
#
|
680
|
-
#
|
681
|
-
#
|
682
|
-
#
|
683
|
-
#
|
684
|
-
# wxLogMessage("Item %ld is selected.", item);
|
685
|
-
# }
|
684
|
+
# ```ruby
|
685
|
+
# item = -1
|
686
|
+
# while (item = list_ctrl.get_next_item(item, Wx::LIST_NEXT_ALL, Wx::LIST_STATE_SELECTED)) != -1
|
687
|
+
# # item is selected - do whatever is needed with it
|
688
|
+
# Wx.log_message("Item #{item} is selected.")
|
689
|
+
# end
|
690
|
+
#
|
691
|
+
# # alternatively in wxRuby you could do
|
692
|
+
# list_ctrl.each_selected do |item|
|
693
|
+
# Wx.log_message("Item #{item} is selected.")
|
694
|
+
# end
|
686
695
|
# ```
|
687
696
|
#
|
688
697
|
# geometry can be one of:
|
689
|
-
# - {Wx::LIST_NEXT_ABOVE}: Searches for an item above the specified item.- {Wx::LIST_NEXT_ALL}: Searches for subsequent item by index.- {Wx::LIST_NEXT_BELOW}: Searches for an item below the specified item.- {Wx::LIST_NEXT_LEFT}: Searches for an item to the left of the specified item.- {Wx::LIST_NEXT_RIGHT}: Searches for an item to the right of the specified item.
|
690
698
|
#
|
691
|
-
#
|
699
|
+
# - {Wx::LIST_NEXT_ABOVE}: Searches for an item above the specified item.
|
700
|
+
# - {Wx::LIST_NEXT_ALL}: Searches for subsequent item by index.
|
701
|
+
# - {Wx::LIST_NEXT_BELOW}: Searches for an item below the specified item.
|
702
|
+
# - {Wx::LIST_NEXT_LEFT}: Searches for an item to the left of the specified item.
|
703
|
+
# - {Wx::LIST_NEXT_RIGHT}: Searches for an item to the right of the specified item.
|
704
|
+
#
|
705
|
+
# this parameter is only supported by wxMSW currently and ignored on other platforms.
|
692
706
|
#
|
693
707
|
# state can be a bitlist of the following:
|
694
|
-
#
|
708
|
+
#
|
709
|
+
# - {Wx::LIST_STATE_DONTCARE}: Don't care what the state is.
|
710
|
+
# - {Wx::LIST_STATE_DROPHILITED}: The item indicates it is a drop target.
|
711
|
+
# - {Wx::LIST_STATE_FOCUSED}: The item has the focus.
|
712
|
+
# - {Wx::LIST_STATE_SELECTED}: The item is selected.
|
713
|
+
# - {Wx::LIST_STATE_CUT}: The item is selected as part of a cut and paste operation.
|
695
714
|
# @param item [Integer]
|
696
715
|
# @param geometry [Integer]
|
697
716
|
# @param state [Integer]
|
@@ -712,7 +731,7 @@ module Wx
|
|
712
731
|
# @param item [Integer]
|
713
732
|
# @param subItem [Integer]
|
714
733
|
# @param code [Integer]
|
715
|
-
# @return [Array(
|
734
|
+
# @return [Array(Boolean,Wx::Rect)]
|
716
735
|
def get_sub_item_rect(item, subItem, code=Wx::LIST_RECT_BOUNDS) end
|
717
736
|
alias_method :sub_item_rect, :get_sub_item_rect
|
718
737
|
|
@@ -751,15 +770,24 @@ module Wx
|
|
751
770
|
# Determines which item (if any) is at the specified point, giving details in flags.
|
752
771
|
# Returns index of the item or {Wx::NOT_FOUND} if no item is at the specified point.
|
753
772
|
# flags will be a combination of the following flags:
|
754
|
-
# - {Wx::LIST_HITTEST_ABOVE}: Above the control's client area.- {Wx::LIST_HITTEST_BELOW}: Below the control's client area.- {Wx::LIST_HITTEST_TOLEFT}: To the left of the control's client area.- {Wx::LIST_HITTEST_TORIGHT}: To the right of the control's client area.- {Wx::LIST_HITTEST_NOWHERE}: Inside the control's client area but not over an item.- {Wx::LIST_HITTEST_ONITEMICON}: Over an item's icon.- {Wx::LIST_HITTEST_ONITEMLABEL}: Over an item's text.- {Wx::LIST_HITTEST_ONITEMSTATEICON}: Over the checkbox of an item.- {Wx::LIST_HITTEST_ONITEM}: Combination of {Wx::LIST_HITTEST_ONITEMICON}, {Wx::LIST_HITTEST_ONITEMLABEL}, {Wx::LIST_HITTEST_ONITEMSTATEICON}.
|
755
773
|
#
|
756
|
-
#
|
774
|
+
# - {Wx::LIST_HITTEST_ABOVE}: Above the control's client area.
|
775
|
+
# - {Wx::LIST_HITTEST_BELOW}: Below the control's client area.
|
776
|
+
# - {Wx::LIST_HITTEST_TOLEFT}: To the left of the control's client area.
|
777
|
+
# - {Wx::LIST_HITTEST_TORIGHT}: To the right of the control's client area.
|
778
|
+
# - {Wx::LIST_HITTEST_NOWHERE}: Inside the control's client area but not over an item.
|
779
|
+
# - {Wx::LIST_HITTEST_ONITEMICON}: Over an item's icon.
|
780
|
+
# - {Wx::LIST_HITTEST_ONITEMLABEL}: Over an item's text.
|
781
|
+
# - {Wx::LIST_HITTEST_ONITEMSTATEICON}: Over the checkbox of an item.
|
782
|
+
# - {Wx::LIST_HITTEST_ONITEM}: Combination of {Wx::LIST_HITTEST_ONITEMICON}, {Wx::LIST_HITTEST_ONITEMLABEL}, {Wx::LIST_HITTEST_ONITEMSTATEICON}.
|
783
|
+
#
|
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 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.
|
757
785
|
# @param point [Array(Integer, Integer), Wx::Point]
|
758
786
|
# @return [Array(Integer,Integer)]
|
759
787
|
def hit_test(point) end
|
760
788
|
|
761
789
|
# Returns true if the control is currently using {Wx::LC_REPORT} style.
|
762
|
-
# @return [
|
790
|
+
# @return [Boolean]
|
763
791
|
def in_report_view; end
|
764
792
|
|
765
793
|
# @overload insert_column(col, info)
|
@@ -805,12 +833,12 @@ module Wx
|
|
805
833
|
|
806
834
|
# Returns true if the control doesn't currently contain any items.
|
807
835
|
# Note that the control with some columns is still considered to be empty if it has no rows.
|
808
|
-
# @return [
|
836
|
+
# @return [Boolean]
|
809
837
|
def is_empty; end
|
810
838
|
alias_method :empty?, :is_empty
|
811
839
|
|
812
840
|
# Returns true if the control is currently in virtual report view.
|
813
|
-
# @return [
|
841
|
+
# @return [Boolean]
|
814
842
|
def is_virtual; end
|
815
843
|
alias_method :virtual?, :is_virtual
|
816
844
|
|
@@ -834,14 +862,14 @@ module Wx
|
|
834
862
|
# This method is currently only implemented in the Windows version.
|
835
863
|
# @param dx [Integer]
|
836
864
|
# @param dy [Integer]
|
837
|
-
# @return [
|
865
|
+
# @return [Boolean]
|
838
866
|
def scroll_list(dx, dy) end
|
839
867
|
|
840
868
|
# Sets the background colour.
|
841
869
|
# Note that the {Wx::Window#get_background_colour} function of {Wx::Window} base class can be used to retrieve the current background colour.
|
842
870
|
# 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.
|
843
871
|
# @param col [Wx::Colour,String,Symbol]
|
844
|
-
# @return [
|
872
|
+
# @return [Boolean]
|
845
873
|
def set_background_colour(col) end
|
846
874
|
alias_method :background_colour=, :set_background_colour
|
847
875
|
|
@@ -849,7 +877,7 @@ module Wx
|
|
849
877
|
# See {Wx::ListCtrl#set_item} for more information.
|
850
878
|
# @param col [Integer]
|
851
879
|
# @param item [Wx::ListItem]
|
852
|
-
# @return [
|
880
|
+
# @return [Boolean]
|
853
881
|
def set_column(col, item) end
|
854
882
|
|
855
883
|
# Sets the column width.
|
@@ -859,25 +887,16 @@ module Wx
|
|
859
887
|
# In small or normal icon view, col must be -1, and the column width is set for all columns.
|
860
888
|
# @param col [Integer]
|
861
889
|
# @param width [Integer]
|
862
|
-
# @return [
|
890
|
+
# @return [Boolean]
|
863
891
|
def set_column_width(col, width) end
|
864
892
|
|
865
|
-
# Changes the order in which the columns are shown.
|
866
|
-
# The orders array must have the same number elements as the number of columns and contain each position exactly once. Its n-th element contains the index of the column to be shown in n-th position, so for a control with three columns passing an array with elements 2, 0 and 1 results in the third column being displayed first, the first one next and the second one last.
|
867
|
-
# This function makes sense for report view only and currently is only implemented in the {Wx::MSW} port. Use {Wx::HAS_LISTCTRL_COLUMN_ORDER} to guard uses of this function so that they will start working under the other platforms when support for the column reordering is added there.
|
868
|
-
# @see Wx::ListCtrl#get_columns_order
|
869
|
-
# @param orders [Array<Integer>]
|
870
|
-
# @return [true,false]
|
871
|
-
def set_columns_order(orders) end
|
872
|
-
alias_method :columns_order=, :set_columns_order
|
873
|
-
|
874
893
|
# Change the font and the colours used for the list control header.
|
875
894
|
# 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).
|
876
|
-
# Currently it is implemented only for
|
895
|
+
# Currently it is implemented only for wxMSW and does nothing in the other ports.
|
877
896
|
#
|
878
897
|
# true if the attributes have been updated or false if this is not supported by the current platform.
|
879
898
|
# @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.
|
880
|
-
# @return [
|
899
|
+
# @return [Boolean]
|
881
900
|
def set_header_attr(attr) end
|
882
901
|
alias_method :header_attr=, :set_header_attr
|
883
902
|
|
@@ -895,7 +914,7 @@ module Wx
|
|
895
914
|
# Sets the images to use when showing large, normal icons in this control.
|
896
915
|
# These images are used by the items when the list control is in {Wx::LC_ICON} mode, in all the other modes the images set by {Wx::ListCtrl#set_small_images} are used.
|
897
916
|
# This function should be preferred to calling {Wx::ListCtrl#set_image_list} or {Wx::ListCtrl#assign_image_list} with {Wx::IMAGE_LIST_NORMAL} argument in the new code, as using {Wx::BitmapBundle} makes it possible to specify multiple versions of the icons, allowing the control to choose the right one for the current DPI scaling.
|
898
|
-
# @param images [Wx::
|
917
|
+
# @param images [Array<Wx::ImageBundle>]
|
899
918
|
# @return [void]
|
900
919
|
def set_normal_images(images) end
|
901
920
|
alias_method :normal_images=, :set_normal_images
|
@@ -903,7 +922,7 @@ module Wx
|
|
903
922
|
# Sets the images to use when showing small icons in this control.
|
904
923
|
# These images are used by the items when the list control is in {Wx::LC_SMALL_ICON} or {Wx::LC_REPORT} mode, use {Wx::ListCtrl#set_normal_images} for the icons used in {Wx::LC_ICON} mode.
|
905
924
|
# This function should be preferred to calling {Wx::ListCtrl#set_image_list} or {Wx::ListCtrl#assign_image_list} with {Wx::IMAGE_LIST_SMALL} argument in the new code, as using {Wx::BitmapBundle} makes it possible to specify multiple versions of the icons, allowing the control to choose the right one for the current DPI scaling.
|
906
|
-
# @param images [Wx::
|
925
|
+
# @param images [Array<Wx::ImageBundle>]
|
907
926
|
# @return [void]
|
908
927
|
def set_small_images(images) end
|
909
928
|
alias_method :small_images=, :set_small_images
|
@@ -911,7 +930,7 @@ module Wx
|
|
911
930
|
# Check if the item is visible.
|
912
931
|
# An item is considered visible if at least one pixel of it is present on the screen.
|
913
932
|
# @param item [Integer]
|
914
|
-
# @return [
|
933
|
+
# @return [Boolean]
|
915
934
|
def is_visible(item) end
|
916
935
|
alias_method :visible?, :is_visible
|
917
936
|
|
@@ -920,7 +939,7 @@ module Wx
|
|
920
939
|
# Using the {Wx::ListItem}'s mask and state mask, you can change only selected attributes of a {Wx::ListCtrl} item.
|
921
940
|
# true if the item was successfully updated or false if the update failed for some reason (e.g. an invalid item index).
|
922
941
|
# @param info [Wx::ListItem]
|
923
|
-
# @return [
|
942
|
+
# @return [Boolean]
|
924
943
|
# @overload set_item(index, column, label, imageId=-1)
|
925
944
|
# Sets an item string field at a particular column.
|
926
945
|
# true if the item was successfully updated or false if the update failed for some reason (e.g. an invalid item index).
|
@@ -928,7 +947,7 @@ module Wx
|
|
928
947
|
# @param column [Integer]
|
929
948
|
# @param label [String]
|
930
949
|
# @param imageId [Integer]
|
931
|
-
# @return [
|
950
|
+
# @return [Boolean]
|
932
951
|
def set_item(*args) end
|
933
952
|
alias_method :item=, :set_item
|
934
953
|
|
@@ -944,7 +963,7 @@ module Wx
|
|
944
963
|
# @param item [Integer]
|
945
964
|
# @param column [Integer]
|
946
965
|
# @param image [Integer]
|
947
|
-
# @return [
|
966
|
+
# @return [Boolean]
|
948
967
|
def set_item_column_image(item, column, image) end
|
949
968
|
|
950
969
|
# This method can only be used with virtual list controls.
|
@@ -966,25 +985,25 @@ module Wx
|
|
966
985
|
# @param item [Integer]
|
967
986
|
# @param image [Integer]
|
968
987
|
# @param selImage [Integer]
|
969
|
-
# @return [
|
988
|
+
# @return [Boolean]
|
970
989
|
def set_item_image(item, image, selImage=-1) end
|
971
990
|
|
972
991
|
# Sets the position of the item, in icon or small icon view.
|
973
992
|
# Windows only.
|
974
993
|
# @param item [Integer]
|
975
994
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
976
|
-
# @return [
|
995
|
+
# @return [Boolean]
|
977
996
|
def set_item_position(item, pos) end
|
978
997
|
|
979
998
|
# Sets the item state.
|
980
999
|
# The stateMask is a combination of {Wx::LIST_STATE_XXX} constants described in {Wx::ListItem} documentation. For each of the bits specified in stateMask, the corresponding state is set or cleared depending on whether state argument contains the same bit or not.
|
981
1000
|
# So to select an item you can use
|
982
|
-
# ```
|
983
|
-
# list
|
1001
|
+
# ```ruby
|
1002
|
+
# list.set_item_state(item, Wx::LIST_STATE_SELECTED, Wx::LIST_STATE_SELECTED)
|
984
1003
|
# ```
|
985
1004
|
# while to deselect it you should use
|
986
|
-
# ```
|
987
|
-
# list
|
1005
|
+
# ```ruby
|
1006
|
+
# list.set_item_state(item, 0, Wx::LIST_STATE_SELECTED)
|
988
1007
|
# ```
|
989
1008
|
#
|
990
1009
|
# Consider using {Wx::ListView} if possible to avoid dealing with this error-prone and confusing method.
|
@@ -992,7 +1011,7 @@ module Wx
|
|
992
1011
|
# @param item [Integer]
|
993
1012
|
# @param state [Integer]
|
994
1013
|
# @param stateMask [Integer]
|
995
|
-
# @return [
|
1014
|
+
# @return [Boolean]
|
996
1015
|
def set_item_state(item, state, stateMask) end
|
997
1016
|
|
998
1017
|
# Sets the item text for this item.
|
@@ -1010,7 +1029,7 @@ module Wx
|
|
1010
1029
|
|
1011
1030
|
# Adds or removes a single window style.
|
1012
1031
|
# @param style [Integer]
|
1013
|
-
# @param add [
|
1032
|
+
# @param add [Boolean]
|
1014
1033
|
# @return [void]
|
1015
1034
|
def set_single_style(style, add=true) end
|
1016
1035
|
alias_method :single_style=, :set_single_style
|
@@ -1030,7 +1049,7 @@ module Wx
|
|
1030
1049
|
# Returns true if checkboxes are enabled for list items.
|
1031
1050
|
#
|
1032
1051
|
# @see Wx::ListCtrl#enable_check_boxes
|
1033
|
-
# @return [
|
1052
|
+
# @return [Boolean]
|
1034
1053
|
def has_check_boxes; end
|
1035
1054
|
alias_method :has_check_boxes?, :has_check_boxes
|
1036
1055
|
|
@@ -1039,21 +1058,23 @@ module Wx
|
|
1039
1058
|
#
|
1040
1059
|
# In a list control with {Wx::LC_VIRTUAL} style you have to keep track of the checkbox state. When a checkbox is clicked (EVT_LIST_ITEM_CHECKED or EVT_LIST_ITEM_UNCHECKED) you have to update the state and refresh the item yourself.
|
1041
1060
|
# @see Wx::ListCtrl#on_get_item_is_checked Wx::ListCtrl#refresh_item
|
1042
|
-
# @param enable [
|
1043
|
-
# @return [
|
1061
|
+
# @param enable [Boolean] If true, enable checkboxes, otherwise disable checkboxes.
|
1062
|
+
# @return [Boolean]
|
1044
1063
|
def enable_check_boxes(enable=true) end
|
1045
1064
|
|
1046
1065
|
# Return true if the checkbox for the given {Wx::ListItem} is checked.
|
1047
1066
|
# Always returns false if checkboxes support hadn't been enabled.
|
1067
|
+
# For a control with {Wx::LC_VIRTUAL} style, this uses {Wx::ListCtrl#on_get_item_is_checked}.
|
1048
1068
|
# @param item [Integer] Item (zero-based) index.
|
1049
|
-
# @return [
|
1069
|
+
# @return [Boolean]
|
1050
1070
|
def is_item_checked(item) end
|
1051
1071
|
alias_method :item_checked?, :is_item_checked
|
1052
1072
|
|
1053
1073
|
# Check or uncheck a {Wx::ListItem} in a control using checkboxes.
|
1054
1074
|
# This method only works if checkboxes support had been successfully enabled using {Wx::ListCtrl#enable_check_boxes}.
|
1075
|
+
# For a control with {Wx::LC_VIRTUAL} style, this will only generate the EVT_LIST_ITEM_CHECKED and EVT_LIST_ITEM_UNCHECKED events. See {Wx::ListCtrl#on_get_item_is_checked} for information on how to update the checkbox state.
|
1055
1076
|
# @param item [Integer] Item (zero-based) index.
|
1056
|
-
# @param check [
|
1077
|
+
# @param check [Boolean] If true, check the item, otherwise uncheck.
|
1057
1078
|
# @return [void]
|
1058
1079
|
def check_item(item, check) end
|
1059
1080
|
|
@@ -1062,16 +1083,16 @@ module Wx
|
|
1062
1083
|
# Calling this function extends the display of the rules and alternate background rows to the entire client area.
|
1063
1084
|
# Similarly to {Wx::ListCtrl#enable_alternate_row_colours}, this method can only be used with controls having {Wx::LC_REPORT} and {Wx::LC_VIRTUAL} styles.
|
1064
1085
|
# Note that this method is currently not implemented in the native MSW version and does nothing there.
|
1065
|
-
# @param extend [
|
1086
|
+
# @param extend [Boolean] if true, draws horizontal rules and vertical rules on empty rows and uses the colour parameter to paint the background of alternate rows when those rows are blank, empty, with no data.
|
1066
1087
|
# @return [void]
|
1067
1088
|
def extend_rules_and_alternate_colour(extend=true) end
|
1068
1089
|
|
1069
1090
|
# Show the sort indicator of a specific column in a specific direction.
|
1070
|
-
# Sort indicators are only shown in report view and in the native
|
1091
|
+
# 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.
|
1071
1092
|
# This function should typically be called from EVT_LIST_COL_CLICK handler.
|
1072
1093
|
# This does not actually sort the list, use {Wx::ListCtrl#sort_items} for this.
|
1073
1094
|
# @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.
|
1074
|
-
# @param ascending [
|
1095
|
+
# @param ascending [Boolean] If true or false show the sort indicator corresponding to ascending or descending sort order respectively.
|
1075
1096
|
# @return [void]
|
1076
1097
|
def show_sort_indicator(col, ascending=true) end
|
1077
1098
|
|
@@ -1088,25 +1109,28 @@ module Wx
|
|
1088
1109
|
# Returns the new value to use for sort indicator after clicking a column.
|
1089
1110
|
# This helper function can be useful in the EVT_LIST_COL_CLICK handler when it updates the sort indicator after the user clicked on a column.
|
1090
1111
|
# For example:
|
1091
|
-
# ```
|
1092
|
-
#
|
1093
|
-
#
|
1094
|
-
#
|
1095
|
-
#
|
1096
|
-
#
|
1112
|
+
# ```ruby
|
1113
|
+
# class MyListCtrl
|
1114
|
+
#
|
1115
|
+
# def on_col_click(event)
|
1116
|
+
# col = event.column
|
1117
|
+
# if col == -1
|
1118
|
+
# return # clicked outside any column.
|
1097
1119
|
#
|
1098
|
-
#
|
1099
|
-
#
|
1100
|
-
#
|
1101
|
-
#
|
1120
|
+
# ascending = get_updated_ascending_sort_indicator(col)
|
1121
|
+
# sort_items(ascending) { |itm1_data, itm2_data, data| ... }
|
1122
|
+
# show_sort_indicator(col, ascending)
|
1123
|
+
# end
|
1124
|
+
#
|
1125
|
+
# end
|
1102
1126
|
# ```
|
1103
1127
|
# @param col [Integer]
|
1104
|
-
# @return [
|
1128
|
+
# @return [Boolean]
|
1105
1129
|
def get_updated_ascending_sort_indicator(col) end
|
1106
1130
|
alias_method :updated_ascending_sort_indicator, :get_updated_ascending_sort_indicator
|
1107
1131
|
|
1108
1132
|
# Returns true if the sort indicator direction is ascending, false when the direction is descending.
|
1109
|
-
# @return [
|
1133
|
+
# @return [Boolean]
|
1110
1134
|
def is_ascending_sort_indicator; end
|
1111
1135
|
alias_method :ascending_sort_indicator?, :is_ascending_sort_indicator
|
1112
1136
|
|
@@ -1129,7 +1153,7 @@ module Wx
|
|
1129
1153
|
# This function may be overridden in the derived class for a control with {Wx::LC_VIRTUAL} style.
|
1130
1154
|
# It should return the attribute for the for the specified item and column or NULL to use the default appearance parameters.
|
1131
1155
|
# The base class version returns <code>OnGetItemAttr(item)</code>.
|
1132
|
-
# Currently this function is only called under
|
1156
|
+
# Currently this function is only called under wxMSW, the other ports only support {Wx::ListCtrl#on_get_item_attr}
|
1133
1157
|
# @see Wx::ListCtrl#on_get_item_attr
|
1134
1158
|
# @see Wx::ListCtrl#on_get_item_text
|
1135
1159
|
# @see Wx::ListCtrl#on_get_item_image
|
@@ -1179,16 +1203,37 @@ module Wx
|
|
1179
1203
|
# @see Wx::ListCtrl#enable_check_boxes
|
1180
1204
|
# @see Wx::ListCtrl#on_get_item_text
|
1181
1205
|
# @param item [Integer]
|
1182
|
-
# @return [
|
1206
|
+
# @return [Boolean]
|
1183
1207
|
def on_get_item_is_checked(item) end
|
1184
1208
|
|
1185
1209
|
end # ListCtrl
|
1186
1210
|
|
1187
1211
|
# This class stores information about a {Wx::ListCtrl} item or column.
|
1188
1212
|
# {Wx::ListItem} is a class which contains information about:
|
1189
|
-
#
|
1190
|
-
# -
|
1191
|
-
# -
|
1213
|
+
#
|
1214
|
+
# - Zero based item position; see {Wx::ListItem#set_id} and {Wx::ListItem#get_id}.
|
1215
|
+
# - Zero based column index; see {Wx::ListItem#set_column} and {Wx::ListItem#get_column}.
|
1216
|
+
# - The label (or header for columns); see {Wx::ListItem#set_text} and {Wx::ListItem#get_text}.
|
1217
|
+
# - The zero based index into an image list; see {Wx::ListItem#get_image} and {Wx::ListItem#set_image}.
|
1218
|
+
# - Application defined data; see {Wx::ListItem#set_data} and {Wx::ListItem#get_data}.
|
1219
|
+
# - For columns only: the width of the column; see {Wx::ListItem#set_width} and {Wx::ListItem#get_width}.
|
1220
|
+
# - For columns only: the format of the column; one of {Wx::ListColumnFormat::LIST_FORMAT_LEFT}, {Wx::ListColumnFormat::LIST_FORMAT_RIGHT}, {Wx::ListColumnFormat::LIST_FORMAT_CENTRE}. See {Wx::ListItem#set_align} and {Wx::ListItem#get_align}.
|
1221
|
+
# - The state of the item; see {Wx::ListItem#set_state} and {Wx::ListItem#get_state}. This is a bitlist of the following flags:
|
1222
|
+
#
|
1223
|
+
# - {Wx::LIST_STATE_FOCUSED}: The item has the focus.
|
1224
|
+
# - {Wx::LIST_STATE_SELECTED}: The item is selected.
|
1225
|
+
# - {Wx::LIST_STATE_DONTCARE}: No special flags (the value of this constant is 0).
|
1226
|
+
# - {Wx::LIST_STATE_DROPHILITED}: The item is highlighted to receive a drop event. Win32 only.
|
1227
|
+
# - {Wx::LIST_STATE_CUT}: The item is in the cut state. Win32 only.
|
1228
|
+
# - A mask indicating which state flags are valid; this is a bitlist of the flags reported above for the item state. See {Wx::ListItem#set_state_mask} and GetStateMask().
|
1229
|
+
# - A mask indicating which fields of this class are valid; see {Wx::ListItem#set_mask} and {Wx::ListItem#get_mask}. This is a bitlist of the following flags:
|
1230
|
+
#
|
1231
|
+
# - {Wx::LIST_MASK_STATE}: The state field is valid.
|
1232
|
+
# - {Wx::LIST_MASK_TEXT}: The label field is valid.
|
1233
|
+
# - {Wx::LIST_MASK_IMAGE}: The image field is valid.
|
1234
|
+
# - {Wx::LIST_MASK_DATA}: The application-defined data field is valid.
|
1235
|
+
# - {Wx::LIST_MASK_WIDTH}: The column width field is valid.
|
1236
|
+
# - {Wx::LIST_MASK_FORMAT}: The column format field is valid.
|
1192
1237
|
#
|
1193
1238
|
# 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.
|
1194
1239
|
# ===
|
@@ -1207,7 +1252,7 @@ module Wx
|
|
1207
1252
|
alias_method :data=, :set_data
|
1208
1253
|
|
1209
1254
|
# Constructor.
|
1210
|
-
# @return [ListItem]
|
1255
|
+
# @return [Wx::ListItem]
|
1211
1256
|
def initialize; end
|
1212
1257
|
|
1213
1258
|
# Resets the item state to the default.
|
@@ -1216,7 +1261,7 @@ module Wx
|
|
1216
1261
|
|
1217
1262
|
# Returns the alignment for this item.
|
1218
1263
|
# Can be one of {Wx::ListColumnFormat::LIST_FORMAT_LEFT}, {Wx::ListColumnFormat::LIST_FORMAT_RIGHT} or {Wx::ListColumnFormat::LIST_FORMAT_CENTRE}.
|
1219
|
-
# @return [ListColumnFormat]
|
1264
|
+
# @return [Wx::ListColumnFormat]
|
1220
1265
|
def get_align; end
|
1221
1266
|
alias_method :align, :get_align
|
1222
1267
|
|
@@ -1247,14 +1292,25 @@ module Wx
|
|
1247
1292
|
|
1248
1293
|
# Returns a bit mask indicating which fields of the structure are valid.
|
1249
1294
|
# Can be any combination of the following values:
|
1250
|
-
#
|
1295
|
+
#
|
1296
|
+
# - {Wx::LIST_MASK_STATE}: <b>GetState</b> is valid.
|
1297
|
+
# - {Wx::LIST_MASK_TEXT}: <b>GetText</b> is valid.
|
1298
|
+
# - {Wx::LIST_MASK_IMAGE}: <b>GetImage</b> is valid.
|
1299
|
+
# - {Wx::LIST_MASK_DATA}: <b>GetData</b> is valid.
|
1300
|
+
# - {Wx::LIST_MASK_WIDTH}: <b>GetWidth</b> is valid.
|
1301
|
+
# - {Wx::LIST_MASK_FORMAT}: <b>GetFormat</b> is valid.
|
1251
1302
|
# @return [Integer]
|
1252
1303
|
def get_mask; end
|
1253
1304
|
alias_method :mask, :get_mask
|
1254
1305
|
|
1255
1306
|
# Returns a bit field representing the state of the item.
|
1256
1307
|
# Can be any combination of:
|
1257
|
-
#
|
1308
|
+
#
|
1309
|
+
# - {Wx::LIST_STATE_DONTCARE}: No special flags (the values of this constant is 0).
|
1310
|
+
# - {Wx::LIST_STATE_DROPHILITED}: The item is highlighted to receive a drop event. Win32 only.
|
1311
|
+
# - {Wx::LIST_STATE_FOCUSED}: The item has the focus.
|
1312
|
+
# - {Wx::LIST_STATE_SELECTED}: The item is selected.
|
1313
|
+
# - {Wx::LIST_STATE_CUT}: The item is in the cut state. Win32 only.
|
1258
1314
|
# @return [Integer]
|
1259
1315
|
def get_state; end
|
1260
1316
|
alias_method :state, :get_state
|
@@ -1277,7 +1333,7 @@ module Wx
|
|
1277
1333
|
|
1278
1334
|
# Sets the alignment for the item.
|
1279
1335
|
# See also {Wx::ListItem#get_align}
|
1280
|
-
# @param align [ListColumnFormat]
|
1336
|
+
# @param align [Wx::ListColumnFormat]
|
1281
1337
|
# @return [void]
|
1282
1338
|
def set_align(align) end
|
1283
1339
|
alias_method :align=, :set_align
|
@@ -1367,18 +1423,18 @@ module Wx
|
|
1367
1423
|
|
1368
1424
|
# @overload initialize()
|
1369
1425
|
# Default Constructor.
|
1370
|
-
# @return [ItemAttr]
|
1426
|
+
# @return [Wx::ItemAttr]
|
1371
1427
|
# @overload initialize(colText, colBack, font)
|
1372
1428
|
# Construct a {Wx::ItemAttr} with the specified foreground and background colours and font.
|
1373
1429
|
# @param colText [Wx::Colour,String,Symbol]
|
1374
1430
|
# @param colBack [Wx::Colour,String,Symbol]
|
1375
1431
|
# @param font [Wx::Font,Wx::FontInfo]
|
1376
|
-
# @return [ItemAttr]
|
1432
|
+
# @return [Wx::ItemAttr]
|
1377
1433
|
def initialize(*args) end
|
1378
1434
|
|
1379
1435
|
# Compare two item attributes for equality.
|
1380
1436
|
# @param other [Wx::ItemAttr]
|
1381
|
-
# @return [
|
1437
|
+
# @return [Boolean]
|
1382
1438
|
def ==(other) end
|
1383
1439
|
|
1384
1440
|
# Returns the currently set background colour.
|
@@ -1397,7 +1453,7 @@ module Wx
|
|
1397
1453
|
alias_method :text_colour, :get_text_colour
|
1398
1454
|
|
1399
1455
|
# Returns true if the currently set background colour is valid.
|
1400
|
-
# @return [
|
1456
|
+
# @return [Boolean]
|
1401
1457
|
def has_background_colour; end
|
1402
1458
|
alias_method :has_background_colour?, :has_background_colour
|
1403
1459
|
|
@@ -1405,22 +1461,22 @@ module Wx
|
|
1405
1461
|
#
|
1406
1462
|
# @see Wx::ItemAttr#has_background_colour
|
1407
1463
|
# @see Wx::ItemAttr#has_text_colour
|
1408
|
-
# @return [
|
1464
|
+
# @return [Boolean]
|
1409
1465
|
def has_colours; end
|
1410
1466
|
alias_method :has_colours?, :has_colours
|
1411
1467
|
|
1412
1468
|
# Returns true if the currently set font is valid.
|
1413
|
-
# @return [
|
1469
|
+
# @return [Boolean]
|
1414
1470
|
def has_font; end
|
1415
1471
|
alias_method :has_font?, :has_font
|
1416
1472
|
|
1417
1473
|
# Returns true if the currently set text colour is valid.
|
1418
|
-
# @return [
|
1474
|
+
# @return [Boolean]
|
1419
1475
|
def has_text_colour; end
|
1420
1476
|
alias_method :has_text_colour?, :has_text_colour
|
1421
1477
|
|
1422
1478
|
# Returns true if this object has no custom attributes set.
|
1423
|
-
# @return [
|
1479
|
+
# @return [Boolean]
|
1424
1480
|
def is_default; end
|
1425
1481
|
alias_method :default?, :is_default
|
1426
1482
|
|
@@ -1449,9 +1505,9 @@ module Wx
|
|
1449
1505
|
# Other than different interface, this class is identical to {Wx::ListCtrl}. In particular, it uses the same events, same window styles and so on.
|
1450
1506
|
# ===
|
1451
1507
|
#
|
1452
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
1453
|
-
# </td><td>
|
1454
|
-
# </td><td>
|
1508
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
1509
|
+
# </td><td> wxGTK Appearance
|
1510
|
+
# </td><td> wxOSX Appearance
|
1455
1511
|
# </td></tr></table></div>
|
1456
1512
|
# @see Wx::ListView#set_column_image
|
1457
1513
|
#
|
@@ -1460,7 +1516,7 @@ module Wx
|
|
1460
1516
|
|
1461
1517
|
# @overload initialize()
|
1462
1518
|
# Default constructor.
|
1463
|
-
# @return [ListView]
|
1519
|
+
# @return [Wx::ListView]
|
1464
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::ListCtrlNameStr)
|
1465
1521
|
# Constructor, creating and showing a listview control.
|
1466
1522
|
#
|
@@ -1473,7 +1529,7 @@ module Wx
|
|
1473
1529
|
# @param style [Integer] Window style. See {Wx::ListCtrl}.
|
1474
1530
|
# @param validator [Wx::Validator] Window validator.
|
1475
1531
|
# @param name [String] Window name.
|
1476
|
-
# @return [ListView]
|
1532
|
+
# @return [Wx::ListView]
|
1477
1533
|
def initialize(*args) end
|
1478
1534
|
|
1479
1535
|
# Resets the column image after calling this function, no image will be shown.
|
@@ -1515,14 +1571,14 @@ module Wx
|
|
1515
1571
|
# @see Wx::ListView#get_first_selected
|
1516
1572
|
# @see Wx::ListView#get_next_selected
|
1517
1573
|
# @param index [Integer]
|
1518
|
-
# @return [
|
1574
|
+
# @return [Boolean]
|
1519
1575
|
def is_selected(index) end
|
1520
1576
|
alias_method :selected?, :is_selected
|
1521
1577
|
|
1522
1578
|
# Selects or unselects the given item.
|
1523
1579
|
# Notice that this method inherits the unusual behaviour of {Wx::ListCtrl#set_item_state} which sends a {Wx::EVT_LIST_ITEM_SELECTED} event when it is used to select an item, contrary to the usual rule that only the user actions result in selection.
|
1524
1580
|
# @param n [Integer] the item to select or unselect
|
1525
|
-
# @param on [
|
1581
|
+
# @param on [Boolean] if true (default), selects the item, otherwise unselects it
|
1526
1582
|
# @return [void]
|
1527
1583
|
def select(n, on=true) end
|
1528
1584
|
|