wxruby3 0.9.0.pre.rc.2-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 +30 -8
- data/README.md +3 -3
- 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/event_loop.rb +7 -0
- 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/doc/bitmap.rb +11 -15
- 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 +1 -1
- 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 +5 -5
- 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 +33 -18
- 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 +4 -3
- 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 +1 -1
- data/lib/wx/doc/gen/event_filter.rb +5 -2
- data/lib/wx/doc/gen/event_list.rb +15 -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 +16 -7
- 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 +30 -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 +12 -7
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
- 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 -4
- 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 -10
- 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/prt/printer_dc.rb +2 -2
- data/lib/wx/doc/scaled_dc.rb +1 -1
- data/lib/wx/doc/text_validator.rb +12 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/tests/test_art.rb +9 -0
- data/tests/test_box_sizer.rb +161 -0
- data/tests/test_grid_sizer.rb +148 -0
- data/tests/test_list_ctrl.rb +53 -0
- data/tests/test_log.rb +163 -0
- data/tests/test_std_controls.rb +58 -0
- data/tests/test_timer.rb +95 -0
- metadata +13 -2
@@ -78,17 +78,22 @@ module Wx::HTML
|
|
78
78
|
# === Styles
|
79
79
|
#
|
80
80
|
# This class supports the following styles:
|
81
|
-
#
|
81
|
+
#
|
82
82
|
# - {Wx::HTML::HW_SCROLLBAR_NEVER}: Never display scrollbars, not even when the page is larger than the window.
|
83
|
+
#
|
83
84
|
# - {Wx::HTML::HW_SCROLLBAR_AUTO}: Display scrollbars only if page's size exceeds window's size.
|
85
|
+
#
|
84
86
|
# - {Wx::HTML::HW_NO_SELECTION}: Don't allow the user to select text.
|
85
87
|
#
|
86
88
|
# === Events emitted by this class
|
87
89
|
#
|
88
90
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::HTML::HtmlLinkEvent} events.
|
89
91
|
# Event handler methods for events emitted by this class:
|
92
|
+
#
|
90
93
|
# - {Wx::EvtHandler#evt_html_cell_clicked}(id, meth = nil, &block): A {Wx::HTML::HtmlCell} was clicked.
|
94
|
+
#
|
91
95
|
# - {Wx::EvtHandler#evt_html_cell_hover}(id, meth = nil, &block): The mouse passed over a {Wx::HTML::HtmlCell}.
|
96
|
+
#
|
92
97
|
# - {Wx::EvtHandler#evt_html_link_clicked}(id, meth = nil, &block): A {Wx::HTML::HtmlCell} which contains a hyperlink was clicked.
|
93
98
|
#
|
94
99
|
# ===
|
@@ -102,7 +107,7 @@ module Wx::HTML
|
|
102
107
|
|
103
108
|
# @overload initialize()
|
104
109
|
# Default ctor.
|
105
|
-
# @return [HtmlWindow]
|
110
|
+
# @return [Wx::HTML::HtmlWindow]
|
106
111
|
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HTML::HW_DEFAULT_STYLE, name=("htmlWindow"))
|
107
112
|
# Constructor.
|
108
113
|
# The parameters are the same as Wx::Scrolled#initialize constructor.
|
@@ -112,7 +117,7 @@ module Wx::HTML
|
|
112
117
|
# @param size [Array(Integer, Integer), Wx::Size]
|
113
118
|
# @param style [Integer]
|
114
119
|
# @param name [String]
|
115
|
-
# @return [HtmlWindow]
|
120
|
+
# @return [Wx::HTML::HtmlWindow]
|
116
121
|
def initialize(*args) end
|
117
122
|
|
118
123
|
# Appends HTML fragment to currently displayed text and refreshes the window.
|
@@ -125,7 +130,7 @@ module Wx::HTML
|
|
125
130
|
#
|
126
131
|
# @see Cells and Containers
|
127
132
|
# @see Printing Framework Overview
|
128
|
-
# @return [Wx::HtmlContainerCell]
|
133
|
+
# @return [Wx::HTML::HtmlContainerCell]
|
129
134
|
def get_internal_representation; end
|
130
135
|
alias_method :internal_representation, :get_internal_representation
|
131
136
|
|
@@ -199,9 +204,15 @@ module Wx::HTML
|
|
199
204
|
# You can override {Wx::HTML::HtmlWindow#on_opening_url} to selectively block some URLs (e.g. for security reasons) or to redirect them elsewhere. Default behaviour is to always return {Wx::HTML::HtmlOpeningStatus::HTML_OPEN}.
|
200
205
|
#
|
201
206
|
# The return value is:
|
202
|
-
#
|
207
|
+
#
|
208
|
+
# - {Wx::HTML::HtmlOpeningStatus::HTML_OPEN}: Open the URL.
|
209
|
+
# - {Wx::HTML::HtmlOpeningStatus::HTML_BLOCK}: Deny access to the URL, Wx::HtmlParser::OpenURL will return NULL.
|
210
|
+
# - {Wx::HTML::HtmlOpeningStatus::HTML_REDIRECT}: Don't open url, redirect to another URL. {Wx::HTML::HtmlWindow#on_opening_url} must fill *redirect with the new URL. {Wx::HTML::HtmlWindow#on_opening_url} will be called again on returned URL.
|
203
211
|
# @param type [HtmlURLType] Indicates type of the resource. Is one of
|
204
|
-
#
|
212
|
+
#
|
213
|
+
# - {Wx::HTML::HtmlURLType::HTML_URL_PAGE}: Opening a HTML page.
|
214
|
+
# - {Wx::HTML::HtmlURLType::HTML_URL_IMAGE}: Opening an image.
|
215
|
+
# - {Wx::HTML::HtmlURLType::HTML_URL_OTHER}: Opening a resource that doesn't fall into any other category.
|
205
216
|
# @param url [String] URL being opened.
|
206
217
|
# @return [HtmlOpeningStatus]
|
207
218
|
def on_opening_url(type, url) end
|
@@ -328,7 +339,7 @@ module Wx::HTML
|
|
328
339
|
# ```
|
329
340
|
#
|
330
341
|
# The plain text filter will be used if no other filter matches.
|
331
|
-
# @param filter [Wx::HtmlFilter]
|
342
|
+
# @param filter [Wx::HTML::HtmlFilter]
|
332
343
|
# @return [void]
|
333
344
|
def self.add_filter(filter) end
|
334
345
|
|
@@ -357,7 +368,7 @@ module Wx::HTML
|
|
357
368
|
class HtmlFilter < Object
|
358
369
|
|
359
370
|
# Constructor.
|
360
|
-
# @return [HtmlFilter]
|
371
|
+
# @return [Wx::HTML::HtmlFilter]
|
361
372
|
def initialize; end
|
362
373
|
|
363
374
|
# Returns true if this filter is capable of reading file file.
|
@@ -32,25 +32,30 @@ module Wx
|
|
32
32
|
# === Styles
|
33
33
|
#
|
34
34
|
# This class supports the following styles:
|
35
|
-
#
|
35
|
+
#
|
36
36
|
# - {Wx::HL_ALIGN_LEFT}: Align the text to the left.
|
37
|
+
#
|
37
38
|
# - {Wx::HL_ALIGN_RIGHT}: Align the text to the right. This style is not supported under Windows.
|
39
|
+
#
|
38
40
|
# - {Wx::HL_ALIGN_CENTRE}: Center the text (horizontally). This style is not supported under Windows.
|
41
|
+
#
|
39
42
|
# - {Wx::HL_CONTEXTMENU}: Pop up a context menu when the hyperlink is right-clicked. The context menu contains a "Copy URL" menu item which is automatically handled by the hyperlink and which just copies in the clipboard the URL (not the label) of the control.
|
43
|
+
#
|
40
44
|
# - {Wx::HL_DEFAULT_STYLE}: The default style for {Wx::HyperlinkCtrl}: {Wx::Border::BORDER_NONE}|{Wx::HL_CONTEXTMENU}|{Wx::HL_ALIGN_CENTRE}.
|
41
45
|
#
|
42
46
|
# === Events emitted by this class
|
43
47
|
#
|
44
48
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::HyperlinkEvent} events.
|
45
49
|
# Event handler methods for events emitted by this class:
|
50
|
+
#
|
46
51
|
# - {Wx::EvtHandler#evt_hyperlink}(id, meth = nil, &block): The hyperlink was (left) clicked. If this event is not handled in user's code (or it's skipped; see {Wx::Event#skip}), then a call to {Wx::LaunchDefaultBrowser} is done with the hyperlink's URL.
|
47
52
|
#
|
48
|
-
# Currently this class is implemented using native support in
|
53
|
+
# Currently this class is implemented using native support in wxGTK and wxMSW and a generic version is used by the other ports.
|
49
54
|
# ===
|
50
55
|
#
|
51
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
52
|
-
# </td><td>
|
53
|
-
# </td><td>
|
56
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
57
|
+
# </td><td> wxGTK Appearance
|
58
|
+
# </td><td> wxOSX Appearance
|
54
59
|
# </td></tr></table></div>
|
55
60
|
# @see Wx::URL
|
56
61
|
# @see Wx::HyperlinkEvent
|
@@ -59,7 +64,7 @@ module Wx
|
|
59
64
|
class HyperlinkCtrl < Control
|
60
65
|
|
61
66
|
# @overload initialize()
|
62
|
-
# @return [HyperlinkCtrl]
|
67
|
+
# @return [Wx::HyperlinkCtrl]
|
63
68
|
# @overload initialize(parent, id, label, url, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HL_DEFAULT_STYLE, name=Wx::HyperlinkCtrlNameStr)
|
64
69
|
# Constructor.
|
65
70
|
# See {Wx::HyperlinkCtrl#create} for more info.
|
@@ -71,7 +76,7 @@ module Wx
|
|
71
76
|
# @param size [Array(Integer, Integer), Wx::Size]
|
72
77
|
# @param style [Integer]
|
73
78
|
# @param name [String]
|
74
|
-
# @return [HyperlinkCtrl]
|
79
|
+
# @return [Wx::HyperlinkCtrl]
|
75
80
|
def initialize(*args) end
|
76
81
|
|
77
82
|
# Creates the hyperlink control.
|
@@ -11,6 +11,7 @@ module Wx
|
|
11
11
|
#
|
12
12
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::HyperlinkEvent} events.
|
13
13
|
# Event handler methods:
|
14
|
+
#
|
14
15
|
# - {Wx::EvtHandler#evt_hyperlink}(id, meth = nil, &block): User clicked on a hyperlink.
|
15
16
|
#
|
16
17
|
# ===
|
@@ -23,7 +24,7 @@ module Wx
|
|
23
24
|
# @param generator [Wx::Object]
|
24
25
|
# @param id [Integer]
|
25
26
|
# @param url [String]
|
26
|
-
# @return [HyperlinkEvent]
|
27
|
+
# @return [Wx::HyperlinkEvent]
|
27
28
|
def initialize(generator, id, url) end
|
28
29
|
|
29
30
|
# Returns the URL of the hyperlink where the user has just clicked.
|
data/lib/wx/doc/gen/icon.rb
CHANGED
@@ -39,11 +39,11 @@ module Wx
|
|
39
39
|
# @overload initialize()
|
40
40
|
# Default ctor.
|
41
41
|
# Constructs an icon object with no data; an assignment or another member function such as {Wx::Icon#load_file} must be called subsequently.
|
42
|
-
# @return [Icon]
|
42
|
+
# @return [Wx::Icon]
|
43
43
|
# @overload initialize(icon)
|
44
44
|
# Copy ctor.
|
45
45
|
# @param icon [Wx::Icon]
|
46
|
-
# @return [Icon]
|
46
|
+
# @return [Wx::Icon]
|
47
47
|
# @overload initialize(name, type=Wx::ICON_DEFAULT_TYPE, desiredWidth=-1, desiredHeight=-1)
|
48
48
|
# Loads an icon from a file or resource.
|
49
49
|
#
|
@@ -52,18 +52,18 @@ module Wx
|
|
52
52
|
# @param type [BitmapType] May be one of the {Wx::BitmapType} values and indicates which type of bitmap should be loaded. See the note in the class detailed description. Note that the {Wx::ICON_DEFAULT_TYPE} constant has different value under different wxWidgets ports. See the {Wx::icon.h} header for the value it takes for a specific port.
|
53
53
|
# @param desiredWidth [Integer] Specifies the desired width of the icon. This parameter only has an effect in Windows where icon resources can contain several icons of different sizes.
|
54
54
|
# @param desiredHeight [Integer] Specifies the desired height of the icon. This parameter only has an effect in Windows where icon resources can contain several icons of different sizes.
|
55
|
-
# @return [Icon]
|
55
|
+
# @return [Wx::Icon]
|
56
56
|
# @overload initialize(loc)
|
57
57
|
# Loads an icon from the specified location.
|
58
58
|
# @param loc [Wx::IconLocation]
|
59
|
-
# @return [Icon]
|
59
|
+
# @return [Wx::Icon]
|
60
60
|
def initialize(*args) end
|
61
61
|
|
62
62
|
# Attach a Windows icon handle.
|
63
|
-
# This
|
63
|
+
# This wxMSW-specific method allows assigning a native Windows HICON (which must be cast to WXHICON opaque handle type) to {Wx::Icon}. Notice that this means that the HICON will be destroyed by {Wx::Icon} when it is destroyed.
|
64
64
|
# true if successful.
|
65
65
|
#
|
66
|
-
# Availability: only available for the
|
66
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
67
67
|
# @param icon [WXHICON]
|
68
68
|
# @return [true,false]
|
69
69
|
def create_from_hicon(icon) end
|
@@ -169,36 +169,36 @@ module Wx
|
|
169
169
|
|
170
170
|
# @overload initialize()
|
171
171
|
# Default ctor.
|
172
|
-
# @return [IconBundle]
|
172
|
+
# @return [Wx::IconBundle]
|
173
173
|
# @overload initialize(file, type=Wx::BitmapType::BITMAP_TYPE_ANY)
|
174
174
|
# Initializes the bundle with the icon(s) found in the file.
|
175
175
|
# @param file [String]
|
176
176
|
# @param type [BitmapType]
|
177
|
-
# @return [IconBundle]
|
177
|
+
# @return [Wx::IconBundle]
|
178
178
|
# @overload initialize(stream, type=Wx::BitmapType::BITMAP_TYPE_ANY)
|
179
179
|
# Initializes the bundle with the icon(s) found in the stream.
|
180
180
|
# Notice that the stream must be seekable, at least if it contains more than one icon. The stream pointer is positioned after the last icon read from the stream when this function returns.
|
181
181
|
# @param stream [IO,Wx::InputStream]
|
182
182
|
# @param type [BitmapType]
|
183
|
-
# @return [IconBundle]
|
183
|
+
# @return [Wx::IconBundle]
|
184
184
|
# @overload initialize(icon)
|
185
185
|
# Initializes the bundle with a single icon.
|
186
186
|
# @param icon [Wx::Icon]
|
187
|
-
# @return [IconBundle]
|
187
|
+
# @return [Wx::IconBundle]
|
188
188
|
# @overload initialize(resourceName, module_)
|
189
189
|
# Initializes the bundle with all sizes of a group icon with resourceName stored as an MS Windows resource in module.
|
190
190
|
# When module is 0, the current instance is used.
|
191
191
|
#
|
192
|
-
# Availability: only available for the
|
192
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
193
193
|
# @see AddIcon(const wxString&
|
194
194
|
# @see WXHINSTANCE)
|
195
195
|
# @param resourceName [String]
|
196
196
|
# @param module_ [WXHINSTANCE]
|
197
|
-
# @return [IconBundle]
|
197
|
+
# @return [Wx::IconBundle]
|
198
198
|
# @overload initialize(ic)
|
199
199
|
# Copy constructor.
|
200
200
|
# @param ic [Wx::IconBundle]
|
201
|
-
# @return [IconBundle]
|
201
|
+
# @return [Wx::IconBundle]
|
202
202
|
def initialize(*args) end
|
203
203
|
|
204
204
|
# @overload add_icon(file, type=Wx::BitmapType::BITMAP_TYPE_ANY)
|
@@ -215,7 +215,7 @@ module Wx
|
|
215
215
|
# @overload add_icon(resourceName, module_)
|
216
216
|
# Loads all sizes of a group icon with resourceName stored as an MS Windows resource in module.
|
217
217
|
# When module is 0, the current instance is used.
|
218
|
-
# Availability: only available for the
|
218
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
219
219
|
# @param resourceName [String]
|
220
220
|
# @param module_ [WXHINSTANCE]
|
221
221
|
# @return [void]
|
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]
|