wxruby3 0.9.0.pre.rc.1-x64-mingw-ucrt → 0.9.0.pre.rc.3-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +73 -22
- data/README.md +40 -8
- data/assets/hello_button-macos.png +0 -0
- data/assets/hello_button-msw.png +0 -0
- data/assets/hello_button_clicked-macos.png +0 -0
- data/assets/hello_button_clicked-msw.png +0 -0
- data/assets/hello_button_clicked_combi.png +0 -0
- data/assets/hello_world-macos.png +0 -0
- data/assets/hello_world-msw.png +0 -0
- data/assets/hello_world_combi.png +0 -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/core/brush.rb +6 -0
- data/lib/wx/core/event_loop.rb +7 -0
- data/lib/wx/core/events/evt_list.rb +7 -0
- data/lib/wx/core/evthandler.rb +12 -2
- data/lib/wx/core/font.rb +22 -14
- data/lib/wx/core/helpprovider.rb +2 -2
- data/lib/wx/core/image.rb +33 -0
- data/lib/wx/core/listctrl.rb +17 -13
- data/lib/wx/core/log.rb +90 -0
- data/lib/wx/core/menu.rb +5 -0
- data/lib/wx/core/pen.rb +6 -0
- data/lib/wx/core/window.rb +28 -1
- data/lib/wx/doc/app.rb +40 -0
- data/lib/wx/doc/bitmap.rb +11 -15
- data/lib/wx/doc/brush.rb +17 -0
- data/lib/wx/doc/event_loop.rb +7 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/09_exceptions.md +1 -1
- data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
- data/lib/wx/doc/font.rb +27 -0
- data/lib/wx/doc/functions.rb +51 -23
- data/lib/wx/doc/gc_dc.rb +1 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
- data/lib/wx/doc/gen/accelerator.rb +6 -6
- data/lib/wx/doc/gen/accessible.rb +6 -2
- data/lib/wx/doc/gen/activity_indicator.rb +65 -0
- data/lib/wx/doc/gen/animation.rb +7 -7
- data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
- data/lib/wx/doc/gen/any_button.rb +1 -1
- data/lib/wx/doc/gen/app.rb +17 -11
- data/lib/wx/doc/gen/art_provider.rb +61 -1
- 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 +45 -27
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
- data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +35 -20
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
- data/lib/wx/doc/gen/bitmap.rb +32 -26
- data/lib/wx/doc/gen/bitmap_button.rb +10 -6
- data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
- data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
- 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 +16 -4
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +19 -7
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
- data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
- data/lib/wx/doc/gen/calendar_event.rb +3 -3
- data/lib/wx/doc/gen/caret.rb +2 -2
- data/lib/wx/doc/gen/check_box.rb +10 -6
- data/lib/wx/doc/gen/check_list_box.rb +8 -7
- data/lib/wx/doc/gen/choice.rb +7 -6
- data/lib/wx/doc/gen/choicebook.rb +12 -6
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +1 -1
- data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
- data/lib/wx/doc/gen/colour.rb +16 -6
- data/lib/wx/doc/gen/colour_dialog.rb +6 -6
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +22 -13
- data/lib/wx/doc/gen/context_help_button.rb +50 -1
- data/lib/wx/doc/gen/control.rb +9 -6
- data/lib/wx/doc/gen/core.rb +5 -2
- data/lib/wx/doc/gen/cursor.rb +16 -11
- data/lib/wx/doc/gen/data_format.rb +2 -2
- data/lib/wx/doc/gen/data_object.rb +23 -16
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
- data/lib/wx/doc/gen/dc.rb +37 -12
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +19 -5
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
- data/lib/wx/doc/gen/drag_drop.rb +15 -15
- data/lib/wx/doc/gen/drag_image.rb +6 -6
- data/lib/wx/doc/gen/editable_list_box.rb +7 -3
- data/lib/wx/doc/gen/event.rb +44 -13
- data/lib/wx/doc/gen/event_blocker.rb +19 -17
- data/lib/wx/doc/gen/event_filter.rb +43 -47
- data/lib/wx/doc/gen/event_list.rb +22 -15
- data/lib/wx/doc/gen/events.rb +215 -79
- data/lib/wx/doc/gen/evt_handler.rb +1 -1
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_dialog.rb +64 -56
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
- 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 +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
- data/lib/wx/doc/gen/font.rb +39 -29
- data/lib/wx/doc/gen/font_data.rb +9 -5
- data/lib/wx/doc/gen/font_dialog.rb +3 -3
- data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +34 -11
- data/lib/wx/doc/gen/fs_file.rb +4 -17
- data/lib/wx/doc/gen/gauge.rb +11 -7
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +35 -33
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
- data/lib/wx/doc/gen/graphics_context.rb +29 -28
- data/lib/wx/doc/gen/graphics_object.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -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 +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
- 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 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
- data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
- data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
- 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/help_controller.rb +18 -12
- data/lib/wx/doc/gen/html/html_cell.rb +36 -18
- data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
- data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
- data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
- data/lib/wx/doc/gen/html/html_printout.rb +15 -5
- data/lib/wx/doc/gen/html/html_window.rb +19 -8
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +152 -0
- data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
- data/lib/wx/doc/gen/icon.rb +14 -14
- data/lib/wx/doc/gen/image.rb +119 -64
- data/lib/wx/doc/gen/image_list.rb +10 -6
- data/lib/wx/doc/gen/keyboard_state.rb +7 -7
- data/lib/wx/doc/gen/list_box.rb +30 -21
- data/lib/wx/doc/gen/list_ctrl.rb +169 -78
- data/lib/wx/doc/gen/list_event.rb +24 -2
- data/lib/wx/doc/gen/listbook.rb +12 -6
- data/lib/wx/doc/gen/locale.rb +11 -36
- data/lib/wx/doc/gen/log.rb +122 -45
- data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
- data/lib/wx/doc/gen/mdi_frame.rb +15 -9
- data/lib/wx/doc/gen/media_ctrl.rb +7 -4
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +23 -27
- data/lib/wx/doc/gen/menu.rb +9 -9
- data/lib/wx/doc/gen/menu_bar.rb +4 -10
- data/lib/wx/doc/gen/menu_item.rb +115 -34
- data/lib/wx/doc/gen/message_dialog.rb +48 -30
- data/lib/wx/doc/gen/mini_frame.rb +12 -3
- data/lib/wx/doc/gen/mouse_state.rb +1 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +6 -7
- data/lib/wx/doc/gen/notebook.rb +20 -15
- data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/object.rb +2 -2
- data/lib/wx/doc/gen/palette.rb +3 -3
- data/lib/wx/doc/gen/panel.rb +4 -3
- data/lib/wx/doc/gen/pen.rb +25 -12
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
- data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
- data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
- data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
- data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
- data/lib/wx/doc/gen/picker_base.rb +12 -11
- data/lib/wx/doc/gen/platform_info.rb +7 -7
- data/lib/wx/doc/gen/popup_window.rb +6 -6
- data/lib/wx/doc/gen/progress_dialog.rb +1 -1
- data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +24 -18
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +22 -22
- data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
- data/lib/wx/doc/gen/radio_box.rb +12 -18
- data/lib/wx/doc/gen/radio_button.rb +8 -6
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
- data/lib/wx/doc/gen/region.rb +9 -8
- data/lib/wx/doc/gen/region_iterator.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +3 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
- data/lib/wx/doc/gen/sash_window.rb +8 -3
- data/lib/wx/doc/gen/scroll_bar.rb +29 -8
- data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
- data/lib/wx/doc/gen/scrolled_control.rb +41 -23
- data/lib/wx/doc/gen/scrolled_window.rb +41 -23
- data/lib/wx/doc/gen/search_ctrl.rb +15 -8
- data/lib/wx/doc/gen/simplebook.rb +2 -2
- data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/sizer.rb +29 -28
- data/lib/wx/doc/gen/slider.rb +49 -16
- data/lib/wx/doc/gen/spin_button.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
- 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 +20 -4
- data/lib/wx/doc/gen/static_bitmap.rb +5 -5
- data/lib/wx/doc/gen/static_box.rb +36 -32
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +5 -4
- data/lib/wx/doc/gen/static_text.rb +12 -6
- data/lib/wx/doc/gen/status_bar.rb +14 -5
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
- data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
- data/lib/wx/doc/gen/system_options.rb +11 -1
- data/lib/wx/doc/gen/system_settings.rb +3 -3
- data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +11 -7
- data/lib/wx/doc/gen/text_ctrl.rb +61 -92
- data/lib/wx/doc/gen/text_entry.rb +28 -40
- data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
- data/lib/wx/doc/gen/text_validator.rb +0 -11
- data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
- data/lib/wx/doc/gen/timer.rb +8 -4
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +6 -5
- data/lib/wx/doc/gen/tool_bar.rb +41 -24
- data/lib/wx/doc/gen/tool_tip.rb +2 -2
- data/lib/wx/doc/gen/toolbook.rb +6 -3
- data/lib/wx/doc/gen/top_level_window.rb +35 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
- data/lib/wx/doc/gen/tree_event.rb +23 -2
- data/lib/wx/doc/gen/treebook.rb +6 -2
- data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
- data/lib/wx/doc/gen/utils.rb +9 -3
- data/lib/wx/doc/gen/v_list_box.rb +2 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/validator.rb +7 -5
- data/lib/wx/doc/gen/variant.rb +34 -97
- data/lib/wx/doc/gen/window.rb +157 -102
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +1 -1
- data/lib/wx/doc/gen/wizard.rb +17 -4
- data/lib/wx/doc/gen/wizard_event.rb +9 -2
- data/lib/wx/doc/gen/wizard_page.rb +1 -1
- data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
- data/lib/wx/doc/gen/xml_node.rb +3 -3
- data/lib/wx/doc/gen/xml_resource.rb +12 -9
- data/lib/wx/doc/image.rb +42 -12
- data/lib/wx/doc/list_ctrl.rb +32 -0
- data/lib/wx/doc/log.rb +28 -0
- data/lib/wx/doc/pen.rb +17 -0
- data/lib/wx/doc/prt/printer_dc.rb +2 -2
- data/lib/wx/doc/radio_box.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +1 -1
- data/lib/wx/doc/text_validator.rb +12 -0
- data/lib/wx/doc/window.rb +27 -0
- data/lib/wx/keyword_defs.rb +77 -76
- data/lib/wx/prt/keyword_defs.rb +5 -1
- 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/install.rb +17 -6
- data/rakelib/lib/config/linux.rb +4 -2
- data/rakelib/lib/config/macosx.rb +120 -1
- data/rakelib/lib/config/mingw.rb +6 -1
- data/rakelib/lib/config/unixish.rb +26 -11
- data/rakelib/lib/config.rb +15 -6
- data/samples/aui/aui.rb +432 -363
- data/samples/propgrid/propgrid.rb +3 -0
- data/samples/sampler/editor.rb +33 -25
- data/samples/sampler/sample.rb +2 -2
- data/samples/sampler/stc_editor.rb +4 -2
- data/tests/lib/item_container_tests.rb +82 -0
- data/tests/lib/text_entry_tests.rb +80 -0
- data/tests/lib/wxapp_runner.rb +12 -0
- data/tests/lib/wxframe_runner.rb +89 -4
- data/tests/test_art.rb +9 -0
- data/tests/test_box_sizer.rb +161 -0
- data/tests/test_ext_controls.rb +28 -0
- data/tests/test_font.rb +239 -0
- data/tests/test_grid_sizer.rb +148 -0
- data/tests/test_intl.rb +5 -1
- data/tests/test_list_ctrl.rb +53 -0
- data/tests/test_log.rb +163 -0
- data/tests/test_std_controls.rb +321 -37
- data/tests/test_timer.rb +95 -0
- data/tests/test_window.rb +340 -0
- metadata +36 -2
data/lib/wx/doc/gen/image.rb
CHANGED
@@ -255,9 +255,21 @@ module Wx
|
|
255
255
|
#
|
256
256
|
# == Available image handlers
|
257
257
|
#
|
258
|
-
# The following image handlers are available. {Wx::BMPHandler} is always installed by default.
|
259
|
-
#
|
260
|
-
# - {Wx::BMPHandler}: For loading (including alpha support) and saving, always installed
|
258
|
+
# The following image handlers are available. {Wx::BMPHandler} is always installed by default. In wxRuby all image handlers are loaded by default at startup by {init_all_image_handlers}.
|
259
|
+
#
|
260
|
+
# - {Wx::BMPHandler}: For loading (including alpha support) and saving, always installed.
|
261
|
+
# - {Wx::PNGHandler}: For loading and saving. Includes alpha support.
|
262
|
+
# - {Wx::JPEGHandler}: For loading and saving.
|
263
|
+
# - {Wx::GIFHandler}: For loading and saving (see below).
|
264
|
+
# - {Wx::PCXHandler}: For loading and saving (see below).
|
265
|
+
# - {Wx::PNMHandler}: For loading and saving (see below).
|
266
|
+
# - {Wx::TIFFHandler}: For loading and saving. Includes alpha support.
|
267
|
+
# - {Wx::TGAHandler}: For loading and saving. Includes alpha support.
|
268
|
+
# - {Wx::IFFHandler}: For loading only.
|
269
|
+
# - {Wx::XPMHandler}: For loading and saving.
|
270
|
+
# - {Wx::ICOHandler}: For loading and saving.
|
271
|
+
# - {Wx::CURHandler}: For loading and saving.
|
272
|
+
# - {Wx::ANIHandler}: For loading only.
|
261
273
|
#
|
262
274
|
# When saving in PCX format, {Wx::PCXHandler} will count the number of different colours in the image; if there are 256 or less colours, it will save as 8 bit, else it will save as 24 bit.
|
263
275
|
# Loading PNMs only works for ASCII or raw RGB images. When saving in PNM format, {Wx::PNMHandler} will always save as raw RGB.
|
@@ -456,20 +468,19 @@ module Wx
|
|
456
468
|
# It should be noted that although using {Wx::ImageResizeQuality::IMAGE_QUALITY_HIGH} produces much nicer looking results it is a slower method. Downsampling will use the box averaging method which seems to operate very fast. If you are upsampling larger images using this method you will most likely notice that it is a bit slower and in extreme cases it will be quite substantially slower as the bicubic algorithm has to process a lot of data.
|
457
469
|
# It should also be noted that the high quality scaling may not work as expected when using a single mask colour for transparency, as the scaling will blur the image and will therefore remove the mask partially. Using the alpha channel will work.
|
458
470
|
# Example:
|
459
|
-
# ```
|
460
|
-
#
|
461
|
-
#
|
471
|
+
# ```ruby
|
472
|
+
# # get the bitmap from somewhere
|
473
|
+
# bmp = ...
|
462
474
|
#
|
463
|
-
#
|
464
|
-
# if
|
465
|
-
#
|
466
|
-
#
|
467
|
-
# bmp = wxBitmap(image.Scale(32, 32));
|
475
|
+
# # rescale it to have size of 32*32
|
476
|
+
# if bmp.width != 32 || bmp.height != 32
|
477
|
+
# image = bmp.convert_to_image
|
478
|
+
# bmp = Wx::Bitmap.new(image.scale(32, 32))
|
468
479
|
#
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
480
|
+
# # another possibility:
|
481
|
+
# image.rescale(32, 32)
|
482
|
+
# bmp = image.to_bitmap
|
483
|
+
# end
|
473
484
|
# ```
|
474
485
|
#
|
475
486
|
# The algorithm used for the default (normal) quality value doesn't work with images larger than 65536 (2^16) pixels in either dimension for 32-bit programs. For 64-bit programs the limit is 2^48 and so not relevant in practice.
|
@@ -547,28 +558,6 @@ module Wx
|
|
547
558
|
# @return [Wx::Image]
|
548
559
|
def change_lightness(alpha) end
|
549
560
|
|
550
|
-
# Computes the histogram of the image.
|
551
|
-
# histogram is a reference to {Wx::ImageHistogram} object. {Wx::ImageHistogram} is a specialization of {Wx::HashMap} "template" and is defined as follows:
|
552
|
-
#
|
553
|
-
# ```
|
554
|
-
# class WXDLLEXPORT wxImageHistogramEntry
|
555
|
-
# {
|
556
|
-
# public:
|
557
|
-
# wxImageHistogramEntry() : index(0), value(0) {}
|
558
|
-
# unsigned long index;
|
559
|
-
# unsigned long value;
|
560
|
-
# };
|
561
|
-
#
|
562
|
-
# WX_DECLARE_EXPORTED_HASH_MAP(unsigned long, wxImageHistogramEntry,
|
563
|
-
# wxIntegerHash, wxIntegerEqual,
|
564
|
-
# wxImageHistogram);
|
565
|
-
# ```
|
566
|
-
#
|
567
|
-
# Returns number of colours in the histogram.
|
568
|
-
# @param histogram [Wx::ImageHistogram]
|
569
|
-
# @return [Integer]
|
570
|
-
def compute_histogram(histogram) end
|
571
|
-
|
572
561
|
# Finds the first colour that is never used in the image.
|
573
562
|
# The search begins at given initial colour and continues by increasing R, G and B components (in this order) by 1 until an unused colour is found or the colour space exhausted.
|
574
563
|
# The parameters r, g, b are pointers to variables to save the colour.
|
@@ -643,9 +632,11 @@ module Wx
|
|
643
632
|
|
644
633
|
# Gets a user-defined string-valued option.
|
645
634
|
# Generic options:
|
635
|
+
#
|
646
636
|
# - {Wx::IMAGE_OPTION_FILENAME}: The name of the file from which the image was loaded.
|
647
637
|
#
|
648
638
|
# Options specific to {Wx::GIFHandler}:
|
639
|
+
#
|
649
640
|
# - {Wx::IMAGE_OPTION_GIF_COMMENT}: The comment text that is read from or written to the GIF file. In an animated GIF each frame can have its own comment. If there is only a comment in the first frame of a GIF it will not be repeated in other frames.
|
650
641
|
#
|
651
642
|
# The value of the option or an empty string if not found. Use {Wx::Image#has_option} if an empty string can be a valid option value.
|
@@ -660,9 +651,11 @@ module Wx
|
|
660
651
|
# Gets a user-defined integer-valued option.
|
661
652
|
# The function is case-insensitive to name. If the given option is not present, the function returns 0. Use {Wx::Image#has_option} if 0 is a possibly valid value for the option.
|
662
653
|
# Generic options:
|
654
|
+
#
|
663
655
|
# - {Wx::IMAGE_OPTION_MAX_WIDTH} and {Wx::IMAGE_OPTION_MAX_HEIGHT}: If either of these options is specified, the loaded image will be scaled down (preserving its aspect ratio) so that its width is less than the max width given if it is not 0 and its height is less than the max height given if it is not 0. This is typically used for loading thumbnails and the advantage of using these options compared to calling {Wx::Image#rescale} after loading is that some handlers (only JPEG one right now) support rescaling the image during loading which is vastly more efficient than loading the entire huge image and rescaling it later (if these options are not supported by the handler, this is still what happens however). These options must be set before calling {Wx::Image#load_file} to have any effect.
|
664
656
|
#
|
665
657
|
# - {Wx::IMAGE_OPTION_ORIGINAL_WIDTH} and {Wx::IMAGE_OPTION_ORIGINAL_HEIGHT}: These options will return the original size of the image if either {Wx::IMAGE_OPTION_MAX_WIDTH} or {Wx::IMAGE_OPTION_MAX_HEIGHT} is specified.
|
658
|
+
#
|
666
659
|
# - {Wx::IMAGE_OPTION_QUALITY}: JPEG quality used when saving. This is an integer in 0..100 range with 0 meaning very poor and 100 excellent (but very badly compressed). This option is currently ignored for the other formats.
|
667
660
|
#
|
668
661
|
# - {Wx::IMAGE_OPTION_RESOLUTIONUNIT}: The value of this option determines whether the resolution of the image is specified in centimetres or inches, see {Wx::ImageResolution} enum elements.
|
@@ -670,21 +663,33 @@ module Wx
|
|
670
663
|
# - {Wx::IMAGE_OPTION_RESOLUTION}, {Wx::IMAGE_OPTION_RESOLUTIONX} and {Wx::IMAGE_OPTION_RESOLUTIONY}: These options define the resolution of the image in the units corresponding to {Wx::IMAGE_OPTION_RESOLUTIONUNIT} options value. The first option can be set before saving the image to set both horizontal and vertical resolution to the same value. The X and Y options are set by the image handlers if they support the image resolution (currently BMP, JPEG and TIFF handlers do) and the image provides the resolution information and can be queried after loading the image.
|
671
664
|
#
|
672
665
|
# Options specific to {Wx::PNGHandler}:
|
666
|
+
#
|
673
667
|
# - {Wx::IMAGE_OPTION_PNG_FORMAT}: Format for saving a PNG file, see {Wx::ImagePNGType} for the supported values.
|
668
|
+
#
|
674
669
|
# - {Wx::IMAGE_OPTION_PNG_BITDEPTH}: Bit depth for every channel (R/G/B/A).
|
670
|
+
#
|
675
671
|
# - {Wx::IMAGE_OPTION_PNG_FILTER}: Filter for saving a PNG file, see libpng (http://www.libpng.org/pub/png/libpng-1.2.5-manual.html) for possible values (e.g. PNG_FILTER_NONE, PNG_FILTER_SUB, PNG_FILTER_UP, etc).
|
672
|
+
#
|
676
673
|
# - {Wx::IMAGE_OPTION_PNG_COMPRESSION_LEVEL}: Compression level (0..9) for saving a PNG file. A high value creates smaller-but-slower PNG file. Note that unlike other formats (e.g. JPEG) the PNG format is always lossless and thus this compression level doesn't tradeoff the image quality.
|
674
|
+
#
|
677
675
|
# - {Wx::IMAGE_OPTION_PNG_COMPRESSION_MEM_LEVEL}: Compression memory usage level (1..9) for saving a PNG file. A high value means the saving process consumes more memory, but may create smaller PNG file.
|
676
|
+
#
|
678
677
|
# - {Wx::IMAGE_OPTION_PNG_COMPRESSION_STRATEGY}: Possible values are 0 for default strategy, 1 for filter, and 2 for Huffman-only. You can use OptiPNG (http://optipng.sourceforge.net/) to get a suitable value for your application.
|
678
|
+
#
|
679
679
|
# - {Wx::IMAGE_OPTION_PNG_COMPRESSION_BUFFER_SIZE}: Internal buffer size (in bytes) for saving a PNG file. Ideally this should be as big as the resulting PNG file. Use this option if your application produces images with small size variation.
|
680
680
|
#
|
681
681
|
# Options specific to {Wx::TIFFHandler}:
|
682
|
+
#
|
682
683
|
# - {Wx::IMAGE_OPTION_TIFF_BITSPERSAMPLE}: Number of bits per sample (channel). Currently values of 1 and 8 are supported. A value of 1 results in a black and white image. A value of 8 (the default) can mean greyscale or RGB, depending on the value of {Wx::IMAGE_OPTION_TIFF_SAMPLESPERPIXEL}.
|
684
|
+
#
|
683
685
|
# - {Wx::IMAGE_OPTION_TIFF_SAMPLESPERPIXEL}: Number of samples (channels) per pixel. Currently values of 1 and 3 are supported. A value of 1 results in either a greyscale (by default) or black and white image, depending on the value of {Wx::IMAGE_OPTION_TIFF_BITSPERSAMPLE}. A value of 3 (the default) will result in an RGB image.
|
686
|
+
#
|
684
687
|
# - {Wx::IMAGE_OPTION_TIFF_COMPRESSION}: Compression type. By default it is set to 1 (COMPRESSION_NONE). Typical other values are 5 (COMPRESSION_LZW) and 7 (COMPRESSION_JPEG). See tiff.h for more options.
|
688
|
+
#
|
685
689
|
# - {Wx::IMAGE_OPTION_TIFF_PHOTOMETRIC}: Specifies the photometric interpretation. By default it is set to 2 (PHOTOMETRIC_RGB) for RGB images and 0 (PHOTOMETRIC_MINISWHITE) for greyscale or black and white images. It can also be set to 1 (PHOTOMETRIC_MINISBLACK) to treat the lowest value as black and highest as white. If you want a greyscale image it is also sufficient to only specify {Wx::IMAGE_OPTION_TIFF_PHOTOMETRIC} and set it to either PHOTOMETRIC_MINISWHITE or PHOTOMETRIC_MINISBLACK. The other values are taken care of.
|
686
690
|
#
|
687
691
|
# Options specific to {Wx::GIFHandler}:
|
692
|
+
#
|
688
693
|
# - {Wx::IMAGE_OPTION_GIF_TRANSPARENCY}: How to deal with transparent pixels. By default, the color of transparent pixels is changed to bright pink, so that if the image is accidentally drawn without transparency, it will be obvious. Normally, this would not be noticed, as these pixels will not be rendered. But in some cases it might be useful to load a GIF without making any modifications to its colours. Use {Wx::IMAGE_OPTION_GIF_TRANSPARENCY_UNCHANGED} to keep the colors correct. Use {Wx::IMAGE_OPTION_GIF_TRANSPARENCY_HIGHLIGHT} to convert transparent pixels to pink (default). This option has been added in wxWidgets 3.1.1.
|
689
694
|
#
|
690
695
|
# Be careful when combining the options {Wx::IMAGE_OPTION_TIFF_SAMPLESPERPIXEL}, {Wx::IMAGE_OPTION_TIFF_BITSPERSAMPLE}, and {Wx::IMAGE_OPTION_TIFF_PHOTOMETRIC}. While some measures are taken to prevent illegal combinations and/or values, it is still easy to abuse them and come up with invalid results in the form of either corrupted images or crashes.
|
@@ -767,25 +772,38 @@ module Wx
|
|
767
772
|
# Depending on how wxWidgets has been configured, not all formats may be available.
|
768
773
|
#
|
769
774
|
# You can use {Wx::Image#get_option_int} to get the hotspot when loading cursor files:
|
770
|
-
# ```
|
771
|
-
#
|
772
|
-
#
|
775
|
+
# ```ruby
|
776
|
+
# hotspot_x = image.get_option_int(Wx::IMAGE_OPTION_CUR_HOTSPOT_X)
|
777
|
+
# hotspot_y = image.get_option_int(Wx::IMAGE_OPTION_CUR_HOTSPOT_Y)
|
773
778
|
# ```
|
774
779
|
# @see Wx::Image#save_file
|
775
780
|
# @param stream [IO,Wx::InputStream] Opened input stream from which to load the image. Currently, the stream must support seeking.
|
776
781
|
# @param type [BitmapType] May be one of the following:
|
782
|
+
#
|
777
783
|
# - {Wx::BitmapType::BITMAP_TYPE_BMP}: Load a Windows bitmap file.
|
784
|
+
#
|
778
785
|
# - {Wx::BitmapType::BITMAP_TYPE_GIF}: Load a GIF bitmap file.
|
786
|
+
#
|
779
787
|
# - {Wx::BitmapType::BITMAP_TYPE_JPEG}: Load a JPEG bitmap file.
|
788
|
+
#
|
780
789
|
# - {Wx::BitmapType::BITMAP_TYPE_PNG}: Load a PNG bitmap file.
|
790
|
+
#
|
781
791
|
# - {Wx::BitmapType::BITMAP_TYPE_PCX}: Load a PCX bitmap file.
|
792
|
+
#
|
782
793
|
# - {Wx::BitmapType::BITMAP_TYPE_PNM}: Load a PNM bitmap file.
|
794
|
+
#
|
783
795
|
# - {Wx::BitmapType::BITMAP_TYPE_TIFF}: Load a TIFF bitmap file.
|
796
|
+
#
|
784
797
|
# - {Wx::BitmapType::BITMAP_TYPE_TGA}: Load a TGA bitmap file.
|
798
|
+
#
|
785
799
|
# - {Wx::BitmapType::BITMAP_TYPE_XPM}: Load a XPM bitmap file.
|
800
|
+
#
|
786
801
|
# - {Wx::BitmapType::BITMAP_TYPE_ICO}: Load a Windows icon file (ICO).
|
802
|
+
#
|
787
803
|
# - {Wx::BitmapType::BITMAP_TYPE_CUR}: Load a Windows cursor file (CUR).
|
804
|
+
#
|
788
805
|
# - {Wx::BitmapType::BITMAP_TYPE_ANI}: Load a Windows animated cursor file (ANI).
|
806
|
+
#
|
789
807
|
# - {Wx::BitmapType::BITMAP_TYPE_ANY}: Will try to autodetect the format.
|
790
808
|
# @param index [Integer] Index of the image to load in the case that the image file contains multiple images. This is only used by GIF, ICO and TIFF handlers. The default value (-1) means "choose the default image" and is interpreted as the first image (index=0) by the GIF and TIFF handler and as the largest and most colourful one by the ICO handler.
|
791
809
|
# @return [true,false]
|
@@ -820,9 +838,9 @@ module Wx
|
|
820
838
|
# Depending on how wxWidgets has been configured, not all formats may be available.
|
821
839
|
#
|
822
840
|
# You can use {Wx::Image#set_option} to set the hotspot when saving an image into a cursor file (default hotspot is in the centre of the image):
|
823
|
-
# ```
|
824
|
-
# image.
|
825
|
-
# image.
|
841
|
+
# ```ruby
|
842
|
+
# image.set_option(Wx::IMAGE_OPTION_CUR_HOTSPOT_X, hotspot_x)
|
843
|
+
# image.set_option(Wx::IMAGE_OPTION_CUR_HOTSPOT_Y, hotspot_y)
|
826
844
|
# ```
|
827
845
|
# @see Wx::Image#load_file
|
828
846
|
# @param stream [IO,Wx::OutputStream] Opened output stream to save the image to.
|
@@ -839,14 +857,23 @@ module Wx
|
|
839
857
|
# Saves an image in the named file.
|
840
858
|
# @param name [String] Name of the file to save the image to.
|
841
859
|
# @param type [BitmapType] Currently these types can be used:
|
860
|
+
#
|
842
861
|
# - {Wx::BitmapType::BITMAP_TYPE_BMP}: Save a BMP image file.
|
862
|
+
#
|
843
863
|
# - {Wx::BitmapType::BITMAP_TYPE_JPEG}: Save a JPEG image file.
|
864
|
+
#
|
844
865
|
# - {Wx::BitmapType::BITMAP_TYPE_PNG}: Save a PNG image file.
|
866
|
+
#
|
845
867
|
# - {Wx::BitmapType::BITMAP_TYPE_PCX}: Save a PCX image file (tries to save as 8-bit if possible, falls back to 24-bit otherwise).
|
868
|
+
#
|
846
869
|
# - {Wx::BitmapType::BITMAP_TYPE_PNM}: Save a PNM image file (as raw RGB always).
|
870
|
+
#
|
847
871
|
# - {Wx::BitmapType::BITMAP_TYPE_TIFF}: Save a TIFF image file.
|
872
|
+
#
|
848
873
|
# - {Wx::BitmapType::BITMAP_TYPE_XPM}: Save a XPM image file.
|
874
|
+
#
|
849
875
|
# - {Wx::BitmapType::BITMAP_TYPE_ICO}: Save a Windows icon file (ICO). The size may be up to 255 wide by 127 high. A single image is saved in 8 colors at the size supplied.
|
876
|
+
#
|
850
877
|
# - {Wx::BitmapType::BITMAP_TYPE_CUR}: Save a Windows cursor file (CUR).
|
851
878
|
# @return [true,false]
|
852
879
|
# @overload save_file(name, mimetype)
|
@@ -894,10 +921,10 @@ module Wx
|
|
894
921
|
# Sets the flags used for loading image files by this object.
|
895
922
|
# The flags will affect any future calls to {Wx::Image#load_file} for this object. To change the flags for all image objects, call {Wx::Image.set_default_load_flags} before creating any of them.
|
896
923
|
# Currently the only defined flag is Load_Verbose which determines if the non-fatal (i.e. not preventing the file from being loaded completely) problems should result in the calls to {log_warning} function. It is recommended to customize handling of these warnings by e.g. defining a custom log target (see Logging Overview), but if such warnings should be completely suppressed, clearing this flag provides a simple way to do it, for example:
|
897
|
-
# ```
|
898
|
-
#
|
899
|
-
# image.
|
900
|
-
# image.
|
924
|
+
# ```ruby
|
925
|
+
# image = Wx::Image.new
|
926
|
+
# image.set_load_flags(image.get_load_flags & ~Wx::Image::Load_Verbose)
|
927
|
+
# image.load_file(...)
|
901
928
|
# ```
|
902
929
|
# @see Wx::Image#load_file
|
903
930
|
# @see Wx::Image#set_load_flags
|
@@ -1000,18 +1027,31 @@ module Wx
|
|
1000
1027
|
# For the overload taking the parameter filename, that's the name of the file to query. For the overload taking the parameter stream, that's the opened input stream with image data.
|
1001
1028
|
# See Wx::ImageHandler#get_image_count for more info.
|
1002
1029
|
# The parameter type may be one of the following values:
|
1030
|
+
#
|
1003
1031
|
# - {Wx::BitmapType::BITMAP_TYPE_BMP}: Load a Windows bitmap file.
|
1032
|
+
#
|
1004
1033
|
# - {Wx::BitmapType::BITMAP_TYPE_GIF}: Load a GIF bitmap file.
|
1034
|
+
#
|
1005
1035
|
# - {Wx::BitmapType::BITMAP_TYPE_JPEG}: Load a JPEG bitmap file.
|
1036
|
+
#
|
1006
1037
|
# - {Wx::BitmapType::BITMAP_TYPE_PNG}: Load a PNG bitmap file.
|
1038
|
+
#
|
1007
1039
|
# - {Wx::BitmapType::BITMAP_TYPE_PCX}: Load a PCX bitmap file.
|
1040
|
+
#
|
1008
1041
|
# - {Wx::BitmapType::BITMAP_TYPE_PNM}: Load a PNM bitmap file.
|
1042
|
+
#
|
1009
1043
|
# - {Wx::BitmapType::BITMAP_TYPE_TIFF}: Load a TIFF bitmap file.
|
1044
|
+
#
|
1010
1045
|
# - {Wx::BitmapType::BITMAP_TYPE_TGA}: Load a TGA bitmap file.
|
1046
|
+
#
|
1011
1047
|
# - {Wx::BitmapType::BITMAP_TYPE_XPM}: Load a XPM bitmap file.
|
1048
|
+
#
|
1012
1049
|
# - {Wx::BitmapType::BITMAP_TYPE_ICO}: Load a Windows icon file (ICO).
|
1050
|
+
#
|
1013
1051
|
# - {Wx::BitmapType::BITMAP_TYPE_CUR}: Load a Windows cursor file (CUR).
|
1052
|
+
#
|
1014
1053
|
# - {Wx::BitmapType::BITMAP_TYPE_ANI}: Load a Windows animated cursor file (ANI).
|
1054
|
+
#
|
1015
1055
|
# - {Wx::BitmapType::BITMAP_TYPE_ANY}: Will try to autodetect the format.
|
1016
1056
|
#
|
1017
1057
|
# Number of available images. For most image handlers, this is 1 (exceptions are TIFF and ICO formats as well as animated GIFs for which this function returns the number of frames in the animation).
|
@@ -1022,31 +1062,31 @@ module Wx
|
|
1022
1062
|
|
1023
1063
|
# @overload initialize()
|
1024
1064
|
# Creates an empty {Wx::Image} object without an alpha channel.
|
1025
|
-
# @return [Image]
|
1065
|
+
# @return [Wx::Image]
|
1026
1066
|
# @overload initialize(width, height, clear=true)
|
1027
1067
|
# Creates an image with the given size and clears it if requested.
|
1028
1068
|
# Does not create an alpha channel.
|
1029
1069
|
# @param width [Integer] Specifies the width of the image.
|
1030
1070
|
# @param height [Integer] Specifies the height of the image.
|
1031
1071
|
# @param clear [true,false] If true, initialize the image to black.
|
1032
|
-
# @return [Image]
|
1072
|
+
# @return [Wx::Image]
|
1033
1073
|
# @overload initialize(sz, clear=true)
|
1034
1074
|
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
1035
1075
|
# @param sz [Array(Integer, Integer), Wx::Size]
|
1036
1076
|
# @param clear [true,false]
|
1037
|
-
# @return [Image]
|
1077
|
+
# @return [Wx::Image]
|
1038
1078
|
# @overload initialize(width, height, data)
|
1039
1079
|
# Creates an image from data in memory.
|
1040
1080
|
# If static_data is false then the {Wx::Image} will take ownership of the data and free it afterwards. For this, it has to be allocated with malloc.
|
1041
1081
|
# @param width [Integer] Specifies the width of the image.
|
1042
1082
|
# @param height [Integer] Specifies the height of the image.
|
1043
1083
|
# @param data [String] A pointer to RGB data
|
1044
|
-
# @return [Image]
|
1084
|
+
# @return [Wx::Image]
|
1045
1085
|
# @overload initialize(sz, data)
|
1046
1086
|
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
1047
1087
|
# @param sz [Array(Integer, Integer), Wx::Size]
|
1048
1088
|
# @param data [String]
|
1049
|
-
# @return [Image]
|
1089
|
+
# @return [Wx::Image]
|
1050
1090
|
# @overload initialize(width, height, data, alpha)
|
1051
1091
|
# Creates an image from data in memory.
|
1052
1092
|
# If static_data is false then the {Wx::Image} will take ownership of the data and free it afterwards. For this, it has to be allocated with malloc.
|
@@ -1054,51 +1094,64 @@ module Wx
|
|
1054
1094
|
# @param height [Integer] Specifies the height of the image.
|
1055
1095
|
# @param data [String] A pointer to RGB data
|
1056
1096
|
# @param alpha [String] A pointer to alpha-channel data
|
1057
|
-
# @return [Image]
|
1097
|
+
# @return [Wx::Image]
|
1058
1098
|
# @overload initialize(sz, data, alpha)
|
1059
1099
|
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
1060
1100
|
# @param sz [Array(Integer, Integer), Wx::Size]
|
1061
1101
|
# @param data [String]
|
1062
1102
|
# @param alpha [String]
|
1063
|
-
# @return [Image]
|
1103
|
+
# @return [Wx::Image]
|
1064
1104
|
# @overload initialize(xpmData)
|
1065
1105
|
# Creates an image from XPM data.
|
1066
1106
|
# This constructor has become explicit in wxWidgets 3.1.6.
|
1067
1107
|
# @param xpmData [char] A pointer to XPM image data.
|
1068
|
-
# @return [Image]
|
1108
|
+
# @return [Wx::Image]
|
1069
1109
|
# @overload initialize(name, type=Wx::BitmapType::BITMAP_TYPE_ANY, index=-1)
|
1070
1110
|
# Creates an image from a file.
|
1071
1111
|
# Depending on how wxWidgets has been configured and by which handlers have been loaded, not all formats may be available. Any handler other than BMP must be previously initialized with {Wx::Image.add_handler} or {init_all_image_handlers}.
|
1072
1112
|
#
|
1073
1113
|
# You can use {Wx::Image#get_option_int} to get the hotspot when loading cursor files:
|
1074
|
-
# ```
|
1075
|
-
#
|
1076
|
-
#
|
1114
|
+
# ```ruby
|
1115
|
+
# hotspot_x = image.get_option_int(Wx::IMAGE_OPTION_CUR_HOTSPOT_X)
|
1116
|
+
# hotspot_y = image.get_option_int(Wx::IMAGE_OPTION_CUR_HOTSPOT_Y)
|
1077
1117
|
# ```
|
1078
1118
|
# @see Wx::Image#load_file
|
1079
1119
|
# @param name [String] Name of the file from which to load the image.
|
1080
1120
|
# @param type [BitmapType] May be one of the following:
|
1121
|
+
#
|
1081
1122
|
# - {Wx::BitmapType::BITMAP_TYPE_BMP}: Load a Windows bitmap file.
|
1123
|
+
#
|
1082
1124
|
# - {Wx::BitmapType::BITMAP_TYPE_GIF}: Load a GIF bitmap file.
|
1125
|
+
#
|
1083
1126
|
# - {Wx::BitmapType::BITMAP_TYPE_JPEG}: Load a JPEG bitmap file.
|
1127
|
+
#
|
1084
1128
|
# - {Wx::BitmapType::BITMAP_TYPE_PNG}: Load a PNG bitmap file.
|
1129
|
+
#
|
1085
1130
|
# - {Wx::BitmapType::BITMAP_TYPE_PCX}: Load a PCX bitmap file.
|
1131
|
+
#
|
1086
1132
|
# - {Wx::BitmapType::BITMAP_TYPE_PNM}: Load a PNM bitmap file.
|
1133
|
+
#
|
1087
1134
|
# - {Wx::BitmapType::BITMAP_TYPE_TIFF}: Load a TIFF bitmap file.
|
1135
|
+
#
|
1088
1136
|
# - {Wx::BitmapType::BITMAP_TYPE_TGA}: Load a TGA bitmap file.
|
1137
|
+
#
|
1089
1138
|
# - {Wx::BitmapType::BITMAP_TYPE_XPM}: Load a XPM bitmap file.
|
1139
|
+
#
|
1090
1140
|
# - {Wx::BitmapType::BITMAP_TYPE_ICO}: Load a Windows icon file (ICO).
|
1141
|
+
#
|
1091
1142
|
# - {Wx::BitmapType::BITMAP_TYPE_CUR}: Load a Windows cursor file (CUR).
|
1143
|
+
#
|
1092
1144
|
# - {Wx::BitmapType::BITMAP_TYPE_ANI}: Load a Windows animated cursor file (ANI).
|
1145
|
+
#
|
1093
1146
|
# - {Wx::BitmapType::BITMAP_TYPE_ANY}: Will try to autodetect the format.
|
1094
1147
|
# @param index [Integer] Index of the image to load in the case that the image file contains multiple images. This is only used by GIF, ICO and TIFF handlers. The default value (-1) means "choose the default image" and is interpreted as the first image (index=0) by the GIF and TIFF handler and as the largest and most colourful one by the ICO handler.
|
1095
|
-
# @return [Image]
|
1148
|
+
# @return [Wx::Image]
|
1096
1149
|
# @overload initialize(name, mimetype, index=-1)
|
1097
1150
|
# Creates an image from a file using MIME-types to specify the type.
|
1098
1151
|
# @param name [String] Name of the file from which to load the image.
|
1099
1152
|
# @param mimetype [String] MIME type string (for example 'image/jpeg')
|
1100
1153
|
# @param index [Integer] See description in wxImage(const wxString&, wxBitmapType, int) overload.
|
1101
|
-
# @return [Image]
|
1154
|
+
# @return [Wx::Image]
|
1102
1155
|
def initialize(*args) end
|
1103
1156
|
|
1104
1157
|
# Returns the file load flags used for this object.
|
@@ -1126,10 +1179,12 @@ module Wx
|
|
1126
1179
|
|
1127
1180
|
# Iterates all registered {Wx::ImageHandler} objects, and returns a string containing file extension masks suitable for passing to file open/save dialog boxes.
|
1128
1181
|
# The format of the returned string is <code>"(*.ext1;*.ext2)|*.ext1;*.ext2"</code>. It is usually a good idea to prepend a description before passing the result to the dialog. Example:
|
1129
|
-
# ```
|
1130
|
-
#
|
1131
|
-
#
|
1132
|
-
#
|
1182
|
+
# ```ruby
|
1183
|
+
# Wx::FileDialog(self, 'Choose Image', Dir.getwd, '',
|
1184
|
+
# 'Image Files ' + Wx::Image.get_image_ext_wildcard,
|
1185
|
+
# Wx::FD_OPEN) do |file_dlg|
|
1186
|
+
# # ...
|
1187
|
+
# end
|
1133
1188
|
# ```
|
1134
1189
|
# @see Wx::ImageHandler
|
1135
1190
|
# @return [String]
|
@@ -45,7 +45,7 @@ module Wx
|
|
45
45
|
|
46
46
|
# @overload initialize()
|
47
47
|
# Default ctor.
|
48
|
-
# @return [ImageList]
|
48
|
+
# @return [Wx::ImageList]
|
49
49
|
# @overload initialize(width, height, mask=true, initialCount=1)
|
50
50
|
# Constructor specifying the image size, whether image masks should be created, and the initial size of the list.
|
51
51
|
# Note that the size is specified in logical pixels.
|
@@ -54,7 +54,7 @@ module Wx
|
|
54
54
|
# @param height [Integer] Height of the images in the list.
|
55
55
|
# @param mask [true,false] If true, all images will have masks, with the mask being created from the light grey pixels if not specified otherwise, i.e. if the image doesn't have neither alpha channel nor mask and no mask is explicitly specified when adding it. Note that if an image does have alpha channel or mask, it will always be used, whether this parameter is true or false.
|
56
56
|
# @param initialCount [Integer] The initial size of the list.
|
57
|
-
# @return [ImageList]
|
57
|
+
# @return [Wx::ImageList]
|
58
58
|
def initialize(*args) end
|
59
59
|
|
60
60
|
# @overload add(bitmap, mask=Wx::NULL_BITMAP)
|
@@ -79,7 +79,7 @@ module Wx
|
|
79
79
|
#
|
80
80
|
# The new zero-based image index.
|
81
81
|
#
|
82
|
-
# Availability: only available for the
|
82
|
+
# Availability: only available for the wxMSW, wxOSX/Cocoa ports. {Wx::msw},{Wx::osx}
|
83
83
|
# @param icon [Wx::Icon] Icon to use as the image.
|
84
84
|
# @return [Integer]
|
85
85
|
def add(*args) end
|
@@ -95,7 +95,7 @@ module Wx
|
|
95
95
|
def create(width, height, mask=true, initialCount=1) end
|
96
96
|
|
97
97
|
# Destroys the current list.
|
98
|
-
# This function resets the object to its initial state and does more than just {Wx::ImageList#remove_all} in the native
|
98
|
+
# This function resets the object to its initial state and does more than just {Wx::ImageList#remove_all} in the native wxMSW version.
|
99
99
|
# After calling it, {Wx::ImageList#create} may be called again to recreate the image list, e.g. using a different size.
|
100
100
|
# @return [void]
|
101
101
|
def destroy; end
|
@@ -106,7 +106,11 @@ module Wx
|
|
106
106
|
# @param x [Integer] X position on the device context.
|
107
107
|
# @param y [Integer] Y position on the device context.
|
108
108
|
# @param flags [Integer] How to draw the image. A bitlist of a selection of the following:
|
109
|
-
#
|
109
|
+
#
|
110
|
+
# - {Wx::IMAGELIST_DRAW_NORMAL}: Draw the image normally.
|
111
|
+
# - {Wx::IMAGELIST_DRAW_TRANSPARENT}: Draw the image with transparency.
|
112
|
+
# - {Wx::IMAGELIST_DRAW_SELECTED}: Draw the image in selected state.
|
113
|
+
# - {Wx::IMAGELIST_DRAW_FOCUSED}: Draw the image in a focused state.
|
110
114
|
# @param solidBackground [true,false] For optimisation - drawing can be faster if the function is told that the background is solid.
|
111
115
|
# @return [true,false]
|
112
116
|
def draw(index, dc, x, y, flags=Wx::IMAGELIST_DRAW_NORMAL, solidBackground=false) end
|
@@ -168,7 +172,7 @@ module Wx
|
|
168
172
|
#
|
169
173
|
# The original bitmap or icon is not affected by the {Wx::ImageList#replace} operation, and can be deleted afterwards.
|
170
174
|
#
|
171
|
-
# Availability: only available for the
|
175
|
+
# Availability: only available for the wxMSW, wxOSX/Cocoa ports. {Wx::msw},{Wx::osx}
|
172
176
|
# @param index [Integer] The index of the bitmap to be replaced.
|
173
177
|
# @param icon [Wx::Icon] Icon to use as the image.
|
174
178
|
# @return [true,false]
|
@@ -26,23 +26,23 @@ module Wx
|
|
26
26
|
# @param shiftDown [true,false]
|
27
27
|
# @param altDown [true,false]
|
28
28
|
# @param metaDown [true,false]
|
29
|
-
# @return [KeyboardState]
|
29
|
+
# @return [Wx::KeyboardState]
|
30
30
|
def initialize(controlDown=false, shiftDown=false, altDown=false, metaDown=false) end
|
31
31
|
|
32
32
|
# Return the bit mask of all pressed modifier keys.
|
33
33
|
# The return value is a combination of {Wx::KeyModifier::MOD_ALT}, {Wx::KeyModifier::MOD_CONTROL}, {Wx::KeyModifier::MOD_SHIFT} and {Wx::KeyModifier::MOD_META} bit masks. Additionally, {Wx::KeyModifier::MOD_NONE} is defined as 0, i.e. corresponds to no modifiers (see {Wx::KeyboardState#has_any_modifiers}) and {Wx::KeyModifier::MOD_CMD} is either {Wx::KeyModifier::MOD_CONTROL} (MSW and Unix) or {Wx::KeyModifier::MOD_META} (Mac), see {Wx::KeyboardState#cmd_down}. See {Wx::KeyModifier} for the full list of modifiers.
|
34
34
|
# Notice that this function is easier to use correctly than, for example, {Wx::KeyboardState#control_down} because when using the latter you also have to remember to test that none of the other modifiers is pressed:
|
35
35
|
#
|
36
|
-
# ```
|
37
|
-
# if
|
38
|
-
#
|
36
|
+
# ```ruby
|
37
|
+
# if control_down && !alt_down && !shift_down && !meta_down
|
38
|
+
# ... handle Ctrl-XXX ...
|
39
39
|
# ```
|
40
40
|
#
|
41
41
|
# and forgetting to do it can result in serious program bugs (e.g. program not working with European keyboard layout where AltGr key which is seen by the program as combination of CTRL and ALT is used). On the other hand, you can simply write:
|
42
42
|
#
|
43
|
-
# ```
|
44
|
-
# if
|
45
|
-
#
|
43
|
+
# ```ruby
|
44
|
+
# if get_modifiers == Wx::MOD_CONTROL
|
45
|
+
# ... handle Ctrl-XXX ...
|
46
46
|
# ```
|
47
47
|
#
|
48
48
|
# with this function.
|
data/lib/wx/doc/gen/list_box.rb
CHANGED
@@ -13,14 +13,21 @@ module Wx
|
|
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 wxGTK2 port.
|
20
|
+
#
|
19
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
|
+
#
|
20
23
|
# - {Wx::LB_HSCROLL}: Create horizontal scrollbar if contents are too wide (Windows only).
|
24
|
+
#
|
21
25
|
# - {Wx::LB_ALWAYS_SB}: Always show a vertical scrollbar.
|
26
|
+
#
|
22
27
|
# - {Wx::LB_NEEDED_SB}: Only create a vertical scrollbar if needed.
|
23
|
-
#
|
28
|
+
#
|
29
|
+
# - {Wx::LB_NO_SB}: Don't create vertical scrollbar (wxMSW and wxGTK only).
|
30
|
+
#
|
24
31
|
# - {Wx::LB_SORT}: The listbox contents are sorted in alphabetical order.
|
25
32
|
#
|
26
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.
|
@@ -28,14 +35,16 @@ module Wx
|
|
28
35
|
#
|
29
36
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
|
30
37
|
# Event handler methods for events emitted by this class:
|
38
|
+
#
|
31
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.
|
32
|
-
#
|
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 wxGTK2) pressing the enter key is handled as an equivalent of a double-click.
|
33
42
|
#
|
34
43
|
# ===
|
35
44
|
#
|
36
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
37
|
-
# </td><td>
|
38
|
-
# </td><td>
|
45
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
46
|
+
# </td><td> wxGTK Appearance
|
47
|
+
# </td><td> wxOSX Appearance
|
39
48
|
# </td></tr></table></div>
|
40
49
|
# @see Wx::EditableListBox
|
41
50
|
# @see Wx::Choice
|
@@ -74,7 +83,7 @@ module Wx
|
|
74
83
|
|
75
84
|
# @overload initialize()
|
76
85
|
# Default constructor.
|
77
|
-
# @return [ListBox]
|
86
|
+
# @return [Wx::ListBox]
|
78
87
|
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListBoxNameStr)
|
79
88
|
# Constructor, creating and showing a list box.
|
80
89
|
# @param parent [Wx::Window] The parent window.
|
@@ -85,7 +94,7 @@ module Wx
|
|
85
94
|
# @param style [Integer] Window style. See {Wx::ListBox}.
|
86
95
|
# @param validator [Wx::Validator] The validator for this control.
|
87
96
|
# @param name [String] The name of this class.
|
88
|
-
# @return [ListBox]
|
97
|
+
# @return [Wx::ListBox]
|
89
98
|
# @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListBoxNameStr)
|
90
99
|
# Constructor, creating and showing a list box.
|
91
100
|
# See the other {Wx::ListBox#list_box} constructor; the only difference is that this overload takes a {Wx::ArrayString} instead of a pointer to an array of {Wx::String}.
|
@@ -97,7 +106,7 @@ module Wx
|
|
97
106
|
# @param style [Integer]
|
98
107
|
# @param validator [Wx::Validator]
|
99
108
|
# @param name [String]
|
100
|
-
# @return [ListBox]
|
109
|
+
# @return [Wx::ListBox]
|
101
110
|
def initialize(*args) end
|
102
111
|
|
103
112
|
# Deselects an item in the list box.
|
@@ -121,7 +130,7 @@ module Wx
|
|
121
130
|
# 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.
|
122
131
|
# @see Wx::ListBox#set_selection
|
123
132
|
# @see Wx::ListBox#get_string_selection
|
124
|
-
# @return [
|
133
|
+
# @return []
|
125
134
|
def get_selection; end
|
126
135
|
alias_method :selection, :get_selection
|
127
136
|
|
@@ -142,22 +151,22 @@ module Wx
|
|
142
151
|
# @see Wx::ControlWithItems::GetSelection
|
143
152
|
# @see Wx::ControlWithItems::GetStringSelection
|
144
153
|
# @see Wx::ControlWithItems::SetSelection
|
145
|
-
# @return [Array<Integer>]
|
154
|
+
# @return [Array(,Array<Integer>)]
|
146
155
|
def get_selections; end
|
147
156
|
alias_method :selections, :get_selections
|
148
157
|
|
149
158
|
# @overload hit_test(point)
|
150
159
|
# Returns the item located at point, or {Wx::NOT_FOUND} if there is no item located at point.
|
151
|
-
# It is currently implemented for
|
160
|
+
# It is currently implemented for wxMSW, {Wx::Mac} and wxGTK2 ports.
|
152
161
|
#
|
153
162
|
# Item located at point, or {Wx::NOT_FOUND} if unimplemented or the item does not exist.
|
154
163
|
# @param point [Array(Integer, Integer), Wx::Point] Point of item (in client coordinates) to obtain
|
155
|
-
# @return [
|
164
|
+
# @return []
|
156
165
|
# @overload hit_test(x, y)
|
157
166
|
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
158
167
|
# @param x [Integer]
|
159
168
|
# @param y [Integer]
|
160
|
-
# @return [
|
169
|
+
# @return []
|
161
170
|
def hit_test(*args) end
|
162
171
|
|
163
172
|
# Insert the given number of strings before the specified position.
|
@@ -191,14 +200,14 @@ module Wx
|
|
191
200
|
def ensure_visible(n) end
|
192
201
|
|
193
202
|
# Return the number of items that can fit vertically in the visible area of the listbox.
|
194
|
-
# Returns -1 if the number of items per page couldn't be determined. On
|
195
|
-
# @return [
|
203
|
+
# 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
|
+
# @return []
|
196
205
|
def get_count_per_page; end
|
197
206
|
alias_method :count_per_page, :get_count_per_page
|
198
207
|
|
199
208
|
# Return the index of the topmost visible item.
|
200
209
|
# Returns {Wx::NOT_FOUND} if the method is not implemented for the current platform.
|
201
|
-
# @return [
|
210
|
+
# @return []
|
202
211
|
def get_top_item; end
|
203
212
|
alias_method :top_item, :get_top_item
|
204
213
|
|
@@ -209,7 +218,7 @@ module Wx
|
|
209
218
|
#
|
210
219
|
# true if all specified tabs are set, false otherwise
|
211
220
|
#
|
212
|
-
# Availability: only available for the
|
221
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
213
222
|
# @param tabStops [Wx::Vector< int >] 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.
|
214
223
|
# @return [true,false]
|
215
224
|
def msw_set_tab_stops(tabStops) end
|
@@ -217,7 +226,7 @@ module Wx
|
|
217
226
|
# Returns the number of items in the control.
|
218
227
|
#
|
219
228
|
# @see Wx::ListBox#is_empty
|
220
|
-
# @return [
|
229
|
+
# @return []
|
221
230
|
def get_count; end
|
222
231
|
alias_method :count, :get_count
|
223
232
|
|
@@ -240,7 +249,7 @@ module Wx
|
|
240
249
|
# The zero-based position of the item, or {Wx::NOT_FOUND} if the string was not found.
|
241
250
|
# @param string [String] String to find.
|
242
251
|
# @param caseSensitive [true,false] Whether search is case sensitive (default is not).
|
243
|
-
# @return [
|
252
|
+
# @return []
|
244
253
|
def find_string(string, caseSensitive=false) end
|
245
254
|
|
246
255
|
end # ListBox
|