wxruby3 0.9.0.pre.beta.8-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.wxconfig +17 -0
- data/.yardopts +13 -0
- data/CREDITS.md +52 -0
- data/LICENSE +21 -0
- data/README.md +139 -0
- data/bin/wxruby +9 -0
- data/bin/wxruby.bat +20 -0
- data/ext/mkrf_conf_bingem.rb +18 -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/accessors.rb +63 -0
- data/lib/wx/aui/auimanager.rb +17 -0
- data/lib/wx/aui/auinotebook.rb +9 -0
- data/lib/wx/aui/events/evt_list.rb +143 -0
- data/lib/wx/aui/require.rb +9 -0
- data/lib/wx/aui.rb +14 -0
- data/lib/wx/core/acceleratortable.rb +28 -0
- data/lib/wx/core/animation.rb +18 -0
- data/lib/wx/core/app.rb +89 -0
- data/lib/wx/core/artprovider.rb +31 -0
- data/lib/wx/core/bitmap.rb +59 -0
- data/lib/wx/core/busycursor.rb +12 -0
- data/lib/wx/core/choice.rb +4 -0
- data/lib/wx/core/choicedlg.rb +54 -0
- data/lib/wx/core/clientdc.rb +13 -0
- data/lib/wx/core/clipboard.rb +56 -0
- data/lib/wx/core/collapsible_pane.rb +12 -0
- data/lib/wx/core/colour.rb +34 -0
- data/lib/wx/core/combobox.rb +4 -0
- data/lib/wx/core/controlwithitems.rb +10 -0
- data/lib/wx/core/data_object.rb +10 -0
- data/lib/wx/core/dataformat.rb +26 -0
- data/lib/wx/core/dc.rb +68 -0
- data/lib/wx/core/dialog.rb +50 -0
- data/lib/wx/core/enum.rb +28 -0
- data/lib/wx/core/event.rb +16 -0
- data/lib/wx/core/events/evt_list.rb +1378 -0
- data/lib/wx/core/evthandler.rb +253 -0
- data/lib/wx/core/ext.rb +58 -0
- data/lib/wx/core/font/encoding.rb +113 -0
- data/lib/wx/core/font.rb +22 -0
- data/lib/wx/core/functions.rb +44 -0
- data/lib/wx/core/gauge.rb +12 -0
- data/lib/wx/core/genericdirctrl.rb +36 -0
- data/lib/wx/core/hboxsizer.rb +6 -0
- data/lib/wx/core/helpcontroller.rb +5 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +24 -0
- data/lib/wx/core/helpprovider.rb +15 -0
- data/lib/wx/core/icon.rb +40 -0
- data/lib/wx/core/image.rb +68 -0
- data/lib/wx/core/imagelist.rb +3 -0
- data/lib/wx/core/listbox.rb +4 -0
- data/lib/wx/core/listctrl.rb +33 -0
- data/lib/wx/core/locale.rb +73 -0
- data/lib/wx/core/log.rb +20 -0
- data/lib/wx/core/menu.rb +78 -0
- data/lib/wx/core/menu_bar.rb +20 -0
- data/lib/wx/core/menuitem.rb +7 -0
- data/lib/wx/core/notebook.rb +9 -0
- data/lib/wx/core/object.rb +14 -0
- data/lib/wx/core/pen_info.rb +11 -0
- data/lib/wx/core/platform_info.rb +13 -0
- data/lib/wx/core/point.rb +92 -0
- data/lib/wx/core/real_point.rb +92 -0
- data/lib/wx/core/rect.rb +57 -0
- data/lib/wx/core/simplehelpprovider.rb +38 -0
- data/lib/wx/core/size.rb +86 -0
- data/lib/wx/core/sizer.rb +43 -0
- data/lib/wx/core/splash_screen.rb +44 -0
- data/lib/wx/core/textctrl.rb +8 -0
- data/lib/wx/core/timer.rb +104 -0
- data/lib/wx/core/toolbar.rb +37 -0
- data/lib/wx/core/toolbartool.rb +4 -0
- data/lib/wx/core/treectrl.rb +46 -0
- data/lib/wx/core/validator.rb +8 -0
- data/lib/wx/core/variant.rb +62 -0
- data/lib/wx/core/vboxsizer.rb +6 -0
- data/lib/wx/core/window.rb +95 -0
- data/lib/wx/core/window_update_locker.rb +12 -0
- data/lib/wx/core/xmlresource.rb +56 -0
- data/lib/wx/core.rb +61 -0
- data/lib/wx/doc/aui/auimanager.rb +12 -0
- data/lib/wx/doc/aui/auinotebook.rb +9 -0
- data/lib/wx/doc/colour_dialog.rb +15 -0
- data/lib/wx/doc/core.rb +11 -0
- data/lib/wx/doc/dc.rb +49 -0
- data/lib/wx/doc/enum.rb +88 -0
- data/lib/wx/doc/evthandler.rb +87 -0
- data/lib/wx/doc/extra/00_starting.md +154 -0
- data/lib/wx/doc/extra/01_packages.md +179 -0
- data/lib/wx/doc/extra/02_lifecycles.md +116 -0
- data/lib/wx/doc/extra/03_dialogs.md +57 -0
- data/lib/wx/doc/extra/04_enums.md +143 -0
- data/lib/wx/doc/extra/05_event-handling.md +166 -0
- data/lib/wx/doc/extra/06_geometry.md +56 -0
- data/lib/wx/doc/extra/07_colour_and_font.md +52 -0
- data/lib/wx/doc/extra/08_extensions.md +144 -0
- data/lib/wx/doc/extra/09_exceptions.md +54 -0
- data/lib/wx/doc/functions.rb +221 -0
- data/lib/wx/doc/gdi_common.rb +181 -0
- data/lib/wx/doc/gen/about_dialog_info.rb +315 -0
- data/lib/wx/doc/gen/accelerator.rb +172 -0
- data/lib/wx/doc/gen/accessible.rb +817 -0
- data/lib/wx/doc/gen/animation.rb +253 -0
- data/lib/wx/doc/gen/animation_ctrl.rb +129 -0
- data/lib/wx/doc/gen/any_button.rb +170 -0
- data/lib/wx/doc/gen/app.rb +363 -0
- data/lib/wx/doc/gen/art_provider.rb +497 -0
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +421 -0
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +39 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +323 -0
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +112 -0
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +163 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +46 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +109 -0
- data/lib/wx/doc/gen/aui/aui_notebook.rb +329 -0
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +179 -0
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +665 -0
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +372 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +147 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +437 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +272 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +195 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +224 -0
- data/lib/wx/doc/gen/aui/event_list.rb +162 -0
- data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +47 -0
- data/lib/wx/doc/gen/bitmap.rb +638 -0
- data/lib/wx/doc/gen/bitmap_button.rb +91 -0
- data/lib/wx/doc/gen/book_ctrl_base.rb +240 -0
- data/lib/wx/doc/gen/book_ctrl_event.rb +60 -0
- data/lib/wx/doc/gen/box_sizer.rb +66 -0
- data/lib/wx/doc/gen/brush.rb +219 -0
- data/lib/wx/doc/gen/buffered_dc.rb +95 -0
- data/lib/wx/doc/gen/buffered_paint_dc.rb +55 -0
- data/lib/wx/doc/gen/busy_info.rb +141 -0
- data/lib/wx/doc/gen/button.rb +133 -0
- data/lib/wx/doc/gen/calculate_layout_event.rb +59 -0
- data/lib/wx/doc/gen/calendar_ctrl.rb +236 -0
- data/lib/wx/doc/gen/calendar_date_attr.rb +137 -0
- data/lib/wx/doc/gen/calendar_event.rb +150 -0
- data/lib/wx/doc/gen/caret.rb +99 -0
- data/lib/wx/doc/gen/check_box.rb +145 -0
- data/lib/wx/doc/gen/check_list_box.rb +96 -0
- data/lib/wx/doc/gen/choice.rb +143 -0
- data/lib/wx/doc/gen/choicebook.rb +100 -0
- data/lib/wx/doc/gen/client_dc.rb +49 -0
- data/lib/wx/doc/gen/clipboard.rb +128 -0
- data/lib/wx/doc/gen/collapsible_pane.rb +120 -0
- data/lib/wx/doc/gen/collapsible_pane_event.rb +45 -0
- data/lib/wx/doc/gen/colour.rb +289 -0
- data/lib/wx/doc/gen/colour_data.rb +96 -0
- data/lib/wx/doc/gen/colour_dialog.rb +84 -0
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +89 -0
- data/lib/wx/doc/gen/colour_picker_event.rb +74 -0
- data/lib/wx/doc/gen/combo_box.rb +228 -0
- data/lib/wx/doc/gen/context_help_button.rb +34 -0
- data/lib/wx/doc/gen/control.rb +245 -0
- data/lib/wx/doc/gen/control_with_items.rb +339 -0
- data/lib/wx/doc/gen/core.rb +42 -0
- data/lib/wx/doc/gen/cursor.rb +127 -0
- data/lib/wx/doc/gen/data_format.rb +94 -0
- data/lib/wx/doc/gen/data_object.rb +439 -0
- data/lib/wx/doc/gen/date_event.rb +48 -0
- data/lib/wx/doc/gen/date_picker_ctrl.rb +127 -0
- data/lib/wx/doc/gen/dc.rb +1278 -0
- data/lib/wx/doc/gen/defs.rb +2832 -0
- data/lib/wx/doc/gen/dialog.rb +426 -0
- data/lib/wx/doc/gen/dir_dialog.rb +134 -0
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +80 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +103 -0
- data/lib/wx/doc/gen/drag_drop.rb +292 -0
- data/lib/wx/doc/gen/drag_image.rb +123 -0
- data/lib/wx/doc/gen/editable_list_box.rb +89 -0
- data/lib/wx/doc/gen/event.rb +911 -0
- data/lib/wx/doc/gen/event_list.rb +1512 -0
- data/lib/wx/doc/gen/events.rb +2499 -0
- data/lib/wx/doc/gen/evt_handler.rb +224 -0
- data/lib/wx/doc/gen/ext_help_controller.rb +100 -0
- data/lib/wx/doc/gen/file_dialog.rb +294 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +98 -0
- data/lib/wx/doc/gen/file_picker_ctrl.rb +107 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +119 -0
- data/lib/wx/doc/gen/find_replace_data.rb +59 -0
- data/lib/wx/doc/gen/find_replace_dialog.rb +44 -0
- data/lib/wx/doc/gen/flex_grid_sizer.rb +145 -0
- data/lib/wx/doc/gen/font.rb +1282 -0
- data/lib/wx/doc/gen/font_data.rb +132 -0
- data/lib/wx/doc/gen/font_dialog.rb +71 -0
- data/lib/wx/doc/gen/font_picker_ctrl.rb +120 -0
- data/lib/wx/doc/gen/font_picker_event.rb +64 -0
- data/lib/wx/doc/gen/frame.rb +276 -0
- data/lib/wx/doc/gen/fs_file.rb +269 -0
- data/lib/wx/doc/gen/functions.rb +10 -0
- data/lib/wx/doc/gen/gauge.rb +127 -0
- data/lib/wx/doc/gen/gb_sizer_item.rb +78 -0
- data/lib/wx/doc/gen/gcdc.rb +61 -0
- data/lib/wx/doc/gen/gdi_common.rb +1108 -0
- data/lib/wx/doc/gen/gdi_object.rb +29 -0
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +198 -0
- data/lib/wx/doc/gen/graphics_context.rb +764 -0
- data/lib/wx/doc/gen/graphics_object.rb +494 -0
- data/lib/wx/doc/gen/grid/event_list.rb +173 -0
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +33 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +279 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +31 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +32 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +44 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +31 -0
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +48 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +33 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +40 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +181 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +34 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +39 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +41 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +74 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +41 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +31 -0
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +98 -0
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +31 -0
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +45 -0
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +2381 -0
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +87 -0
- data/lib/wx/doc/gen/grid/grid_event.rb +96 -0
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +96 -0
- data/lib/wx/doc/gen/grid/grid_size_event.rb +71 -0
- data/lib/wx/doc/gen/grid/grid_string_table.rb +130 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +288 -0
- data/lib/wx/doc/gen/grid/grid_table_message.rb +73 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +298 -0
- data/lib/wx/doc/gen/grid_sizer.rb +135 -0
- data/lib/wx/doc/gen/help_controller.rb +136 -0
- data/lib/wx/doc/gen/help_provider.rb +80 -0
- data/lib/wx/doc/gen/html/event_list.rb +46 -0
- data/lib/wx/doc/gen/html/html_cell.rb +441 -0
- data/lib/wx/doc/gen/html/html_cell_event.rb +62 -0
- data/lib/wx/doc/gen/html/html_easy_printing.rb +169 -0
- data/lib/wx/doc/gen/html/html_help_controller.rb +256 -0
- data/lib/wx/doc/gen/html/html_help_data.rb +144 -0
- data/lib/wx/doc/gen/html/html_help_frame.rb +112 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +230 -0
- data/lib/wx/doc/gen/html/html_link_event.rb +36 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +150 -0
- data/lib/wx/doc/gen/html/html_printout.rb +87 -0
- data/lib/wx/doc/gen/html/html_window.rb +386 -0
- data/lib/wx/doc/gen/icon.rb +267 -0
- data/lib/wx/doc/gen/icon_location.rb +38 -0
- data/lib/wx/doc/gen/image.rb +1144 -0
- data/lib/wx/doc/gen/image_list.rb +181 -0
- data/lib/wx/doc/gen/keyboard_state.rb +124 -0
- data/lib/wx/doc/gen/list_box.rb +260 -0
- data/lib/wx/doc/gen/list_ctrl.rb +1542 -0
- data/lib/wx/doc/gen/list_event.rb +177 -0
- data/lib/wx/doc/gen/listbook.rb +100 -0
- data/lib/wx/doc/gen/locale.rb +4143 -0
- data/lib/wx/doc/gen/log.rb +505 -0
- data/lib/wx/doc/gen/mdi_client_window.rb +38 -0
- data/lib/wx/doc/gen/mdi_frame.rb +235 -0
- data/lib/wx/doc/gen/media_ctrl.rb +225 -0
- data/lib/wx/doc/gen/media_event.rb +109 -0
- data/lib/wx/doc/gen/memory_dc.rb +95 -0
- data/lib/wx/doc/gen/menu.rb +493 -0
- data/lib/wx/doc/gen/menu_bar.rb +247 -0
- data/lib/wx/doc/gen/menu_item.rb +333 -0
- data/lib/wx/doc/gen/message_dialog.rb +195 -0
- data/lib/wx/doc/gen/mini_frame.rb +72 -0
- data/lib/wx/doc/gen/mirror_dc.rb +29 -0
- data/lib/wx/doc/gen/mouse_state.rb +108 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +58 -0
- data/lib/wx/doc/gen/non_owned_window.rb +46 -0
- data/lib/wx/doc/gen/notebook.rb +220 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +75 -0
- data/lib/wx/doc/gen/object.rb +69 -0
- data/lib/wx/doc/gen/paint_dc.rb +34 -0
- data/lib/wx/doc/gen/palette.rb +90 -0
- data/lib/wx/doc/gen/panel.rb +96 -0
- data/lib/wx/doc/gen/pen.rb +484 -0
- data/lib/wx/doc/gen/pg/event_list.rb +102 -0
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +47 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +295 -0
- data/lib/wx/doc/gen/pg/pg_cell.rb +166 -0
- data/lib/wx/doc/gen/pg/pg_editor.rb +569 -0
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +161 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +2193 -0
- data/lib/wx/doc/gen/pg/pg_property.rb +1852 -0
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +327 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +619 -0
- data/lib/wx/doc/gen/pg/property_grid_event.rb +135 -0
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +847 -0
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +349 -0
- data/lib/wx/doc/gen/pg/property_grid_page.rb +265 -0
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +155 -0
- data/lib/wx/doc/gen/picker_base.rb +143 -0
- data/lib/wx/doc/gen/platform_info.rb +379 -0
- data/lib/wx/doc/gen/popup_window.rb +93 -0
- data/lib/wx/doc/gen/progress_dialog.rb +106 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +185 -0
- data/lib/wx/doc/gen/prt/event_list.rb +13 -0
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +38 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +32 -0
- data/lib/wx/doc/gen/prt/preview_frame.rb +39 -0
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +127 -0
- data/lib/wx/doc/gen/prt/print_data.rb +598 -0
- data/lib/wx/doc/gen/prt/print_dialog.rb +47 -0
- data/lib/wx/doc/gen/prt/printer.rb +428 -0
- data/lib/wx/doc/gen/prt/printer_dc.rb +35 -0
- data/lib/wx/doc/gen/query_layout_info_event.rb +98 -0
- data/lib/wx/doc/gen/radio_box.rb +258 -0
- data/lib/wx/doc/gen/radio_button.rb +128 -0
- data/lib/wx/doc/gen/rbn/event_list.rb +132 -0
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1652 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +227 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +40 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +400 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +58 -0
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +116 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +208 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +51 -0
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +129 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +232 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +41 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +321 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +36 -0
- data/lib/wx/doc/gen/region.rb +299 -0
- data/lib/wx/doc/gen/rtc/event_list.rb +121 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +2052 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2031 -0
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +146 -0
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +171 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +180 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +104 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +241 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +55 -0
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +153 -0
- data/lib/wx/doc/gen/sash_event.rb +133 -0
- data/lib/wx/doc/gen/sash_layout_window.rb +203 -0
- data/lib/wx/doc/gen/sash_window.rb +154 -0
- data/lib/wx/doc/gen/screen_dc.rb +27 -0
- data/lib/wx/doc/gen/scrolled_canvas.rb +317 -0
- data/lib/wx/doc/gen/scrolled_control.rb +317 -0
- data/lib/wx/doc/gen/scrolled_window.rb +337 -0
- data/lib/wx/doc/gen/simplebook.rb +93 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +74 -0
- data/lib/wx/doc/gen/sizer.rb +847 -0
- data/lib/wx/doc/gen/sizer_item.rb +227 -0
- data/lib/wx/doc/gen/slider.rb +316 -0
- data/lib/wx/doc/gen/spin_button.rb +124 -0
- data/lib/wx/doc/gen/spin_ctrl.rb +170 -0
- data/lib/wx/doc/gen/spin_event.rb +47 -0
- data/lib/wx/doc/gen/splash_screen.rb +83 -0
- data/lib/wx/doc/gen/splitter_event.rb +87 -0
- data/lib/wx/doc/gen/splitter_window.rb +357 -0
- data/lib/wx/doc/gen/static_bitmap.rb +126 -0
- data/lib/wx/doc/gen/static_box.rb +123 -0
- data/lib/wx/doc/gen/static_box_sizer.rb +67 -0
- data/lib/wx/doc/gen/static_line.rb +66 -0
- data/lib/wx/doc/gen/static_text.rb +98 -0
- data/lib/wx/doc/gen/status_bar.rb +203 -0
- data/lib/wx/doc/gen/stc/event_list.rb +217 -0
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4000 -0
- data/lib/wx/doc/gen/stc/styled_text_event.rb +7319 -0
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +74 -0
- data/lib/wx/doc/gen/svg_file_dc.rb +153 -0
- data/lib/wx/doc/gen/system_options.rb +109 -0
- data/lib/wx/doc/gen/system_settings.rb +481 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +94 -0
- data/lib/wx/doc/gen/task_bar_icon_event.rb +86 -0
- data/lib/wx/doc/gen/text_attr.rb +645 -0
- data/lib/wx/doc/gen/text_ctrl.rb +841 -0
- data/lib/wx/doc/gen/text_entry.rb +389 -0
- data/lib/wx/doc/gen/text_entry_dialog.rb +170 -0
- data/lib/wx/doc/gen/text_validator.rb +212 -0
- data/lib/wx/doc/gen/time_picker_ctrl.rb +103 -0
- data/lib/wx/doc/gen/timer.rb +103 -0
- data/lib/wx/doc/gen/timer_event.rb +73 -0
- data/lib/wx/doc/gen/tip_provider.rb +60 -0
- data/lib/wx/doc/gen/toggle_button.rb +84 -0
- data/lib/wx/doc/gen/tool_bar.rb +744 -0
- data/lib/wx/doc/gen/tool_tip.rb +73 -0
- data/lib/wx/doc/gen/toolbook.rb +103 -0
- data/lib/wx/doc/gen/top_level_window.rb +462 -0
- data/lib/wx/doc/gen/tree_ctrl.rb +863 -0
- data/lib/wx/doc/gen/tree_event.rb +101 -0
- data/lib/wx/doc/gen/treebook.rb +154 -0
- data/lib/wx/doc/gen/utils.rb +257 -0
- data/lib/wx/doc/gen/v_list_box.rb +224 -0
- data/lib/wx/doc/gen/v_scrolled_window.rb +224 -0
- data/lib/wx/doc/gen/validator.rb +73 -0
- data/lib/wx/doc/gen/variant.rb +340 -0
- data/lib/wx/doc/gen/window.rb +2414 -0
- data/lib/wx/doc/gen/window_dc.rb +35 -0
- data/lib/wx/doc/gen/window_disabler.rb +24 -0
- data/lib/wx/doc/gen/with_images.rb +73 -0
- data/lib/wx/doc/gen/wizard.rb +197 -0
- data/lib/wx/doc/gen/wizard_event.rb +105 -0
- data/lib/wx/doc/gen/wizard_page.rb +61 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +72 -0
- data/lib/wx/doc/gen/xml_node.rb +282 -0
- data/lib/wx/doc/gen/xml_resource.rb +304 -0
- data/lib/wx/doc/grid/grid.rb +20 -0
- data/lib/wx/doc/help_controller.rb +14 -0
- data/lib/wx/doc/html/html_help_controller.rb +8 -0
- data/lib/wx/doc/pg/events.rb +15 -0
- data/lib/wx/doc/pg/pg_property.rb +8 -0
- data/lib/wx/doc/pg/pgeditor.rb +21 -0
- data/lib/wx/doc/pg/property_grid.rb +48 -0
- data/lib/wx/doc/pg/property_grid_interface.rb +64 -0
- data/lib/wx/doc/prt/page_setup_dialog.rb +15 -0
- data/lib/wx/doc/prt/print_data.rb +9 -0
- data/lib/wx/doc/prt/print_dialog.rb +26 -0
- data/lib/wx/doc/prt/printer.rb +15 -0
- data/lib/wx/doc/rbn/ribbon_bar.rb +9 -0
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +9 -0
- data/lib/wx/doc/rbn/ribbon_gallery.rb +9 -0
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +9 -0
- data/lib/wx/doc/rtc/richtext_printing.rb +14 -0
- data/lib/wx/doc/screen_dc.rb +10 -0
- data/lib/wx/doc/stock_objects.rb +98 -0
- data/lib/wx/doc/stream.rb +38 -0
- data/lib/wx/doc/system_settings.rb +29 -0
- data/lib/wx/doc/treebook.rb +9 -0
- data/lib/wx/doc/variant.rb +163 -0
- data/lib/wx/doc/xml_resource.rb +19 -0
- data/lib/wx/global_const.rb +84 -0
- data/lib/wx/grid/events/evt_list.rb +156 -0
- data/lib/wx/grid/grid.rb +7 -0
- data/lib/wx/grid/keyword_defs.rb +10 -0
- data/lib/wx/grid/require.rb +9 -0
- data/lib/wx/grid.rb +14 -0
- data/lib/wx/helpers.rb +65 -0
- data/lib/wx/html/events/evt_list.rb +37 -0
- data/lib/wx/html/htmlhelpcontroller.rb +6 -0
- data/lib/wx/html/htmlwindow.rb +19 -0
- data/lib/wx/html/keyword_defs.rb +22 -0
- data/lib/wx/html/require.rb +10 -0
- data/lib/wx/html.rb +15 -0
- data/lib/wx/keyword_ctors.rb +226 -0
- data/lib/wx/keyword_defs.rb +487 -0
- data/lib/wx/pg/events/evt_list.rb +73 -0
- data/lib/wx/pg/events.rb +14 -0
- data/lib/wx/pg/keyword_defs.rb +15 -0
- data/lib/wx/pg/pg_editor.rb +13 -0
- data/lib/wx/pg/pg_properties.rb +24 -0
- data/lib/wx/pg/pg_property.rb +27 -0
- data/lib/wx/pg/property_grid.rb +71 -0
- data/lib/wx/pg/property_grid_interface.rb +46 -0
- data/lib/wx/pg/require.rb +12 -0
- data/lib/wx/pg.rb +14 -0
- data/lib/wx/prt/keyword_defs.rb +8 -0
- data/lib/wx/prt/page_setup_dialog.rb +15 -0
- data/lib/wx/prt/previewframe.rb +13 -0
- data/lib/wx/prt/require.rb +8 -0
- data/lib/wx/prt.rb +14 -0
- data/lib/wx/rbn/events/evt_list.rb +102 -0
- data/lib/wx/rbn/events.rb +4 -0
- data/lib/wx/rbn/keyword_defs.rb +43 -0
- data/lib/wx/rbn/require.rb +12 -0
- data/lib/wx/rbn/ribbon_art_provider.rb +10 -0
- data/lib/wx/rbn/ribbon_bar.rb +12 -0
- data/lib/wx/rbn/ribbon_button_bar.rb +26 -0
- data/lib/wx/rbn/ribbon_control.rb +25 -0
- data/lib/wx/rbn/ribbon_gallery.rb +26 -0
- data/lib/wx/rbn/ribbon_page.rb +15 -0
- data/lib/wx/rbn/ribbon_panel.rb +15 -0
- data/lib/wx/rbn/ribbon_tool_bar.rb +26 -0
- data/lib/wx/rbn.rb +14 -0
- data/lib/wx/rtc/events/evt_list.rb +98 -0
- data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
- data/lib/wx/rtc/ext.rb +15 -0
- data/lib/wx/rtc/keyword_defs.rb +17 -0
- data/lib/wx/rtc/require.rb +8 -0
- data/lib/wx/rtc.rb +15 -0
- data/lib/wx/stc/events/evt_list.rb +178 -0
- data/lib/wx/stc/keyword_defs.rb +8 -0
- data/lib/wx/stc/require.rb +7 -0
- data/lib/wx/stc.rb +14 -0
- data/lib/wx/version.rb +3 -0
- data/lib/wx/wxruby/base.rb +87 -0
- data/lib/wx/wxruby/cmd/sampler.rb +68 -0
- data/lib/wx/wxruby/cmd/test.rb +27 -0
- data/lib/wx.rb +14 -0
- 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 +220 -0
- data/rakelib/lib/config/cygwin.rb +6 -0
- data/rakelib/lib/config/linux.rb +78 -0
- data/rakelib/lib/config/macosx.rb +6 -0
- data/rakelib/lib/config/mingw.rb +133 -0
- data/rakelib/lib/config/netbsd.rb +6 -0
- data/rakelib/lib/config/unixish.rb +187 -0
- data/rakelib/lib/config.rb +673 -0
- data/rakelib/lib/ext/enum_chain.rb +22 -0
- data/rakelib/prepost.rake +91 -0
- data/rakelib/prepost.rb +26 -0
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +7 -0
- data/rakelib/yard/templates/default/layout/html/setup.rb +5 -0
- data/rakelib/yard/yard/relative_markdown_links/version.rb +8 -0
- data/rakelib/yard/yard/relative_markdown_links.rb +39 -0
- data/rakelib/yard/yard-custom-templates.rb +2 -0
- data/rakelib/yard/yard-relative_markdown_links.rb +4 -0
- data/samples/art/wxruby-128x128.png +0 -0
- data/samples/art/wxruby-256x256.png +0 -0
- data/samples/art/wxruby-64x64.png +0 -0
- data/samples/art/wxruby.ico +0 -0
- data/samples/art/wxruby.png +0 -0
- data/samples/aui/aui.rb +1321 -0
- data/samples/aui/tn_aui.png +0 -0
- data/samples/bigdemo/About.rbw +39 -0
- data/samples/bigdemo/ColorPanel.rbw +23 -0
- data/samples/bigdemo/GridSimple.rbw +78 -0
- data/samples/bigdemo/MDIDemo.rbw +57 -0
- data/samples/bigdemo/PopupMenu.rbw +146 -0
- data/samples/bigdemo/ShapedWindow.rbw +128 -0
- data/samples/bigdemo/Sizers.rbw +541 -0
- data/samples/bigdemo/bigdemo.rb +810 -0
- data/samples/bigdemo/demoTemplate.rbw +33 -0
- data/samples/bigdemo/helpfile.htb +0 -0
- data/samples/bigdemo/icons/Test 015.jpg +0 -0
- data/samples/bigdemo/icons/Test 015.png +0 -0
- data/samples/bigdemo/icons/choice.bmp +0 -0
- data/samples/bigdemo/icons/choice.xpm +27 -0
- data/samples/bigdemo/icons/combo.bmp +0 -0
- data/samples/bigdemo/icons/combo.xpm +27 -0
- data/samples/bigdemo/icons/copy.xpm +25 -0
- data/samples/bigdemo/icons/cut.xpm +24 -0
- data/samples/bigdemo/icons/gauge.bmp +0 -0
- data/samples/bigdemo/icons/gauge.xpm +27 -0
- data/samples/bigdemo/icons/help.xpm +25 -0
- data/samples/bigdemo/icons/list.bmp +0 -0
- data/samples/bigdemo/icons/list.xpm +27 -0
- data/samples/bigdemo/icons/mondrian.ico +0 -0
- data/samples/bigdemo/icons/mondrian.xpm +44 -0
- data/samples/bigdemo/icons/new.xpm +24 -0
- data/samples/bigdemo/icons/ogl.ico +0 -0
- data/samples/bigdemo/icons/ogl.xpm +45 -0
- data/samples/bigdemo/icons/open.xpm +26 -0
- data/samples/bigdemo/icons/paste.bmp +0 -0
- data/samples/bigdemo/icons/paste.xpm +38 -0
- data/samples/bigdemo/icons/pointy.png +0 -0
- data/samples/bigdemo/icons/preview.xpm +26 -0
- data/samples/bigdemo/icons/print.xpm +26 -0
- data/samples/bigdemo/icons/radio.bmp +0 -0
- data/samples/bigdemo/icons/radio.xpm +27 -0
- data/samples/bigdemo/icons/robert.xpm +415 -0
- data/samples/bigdemo/icons/sashtest.ico +0 -0
- data/samples/bigdemo/icons/save.xpm +25 -0
- data/samples/bigdemo/icons/smiles.bmp +0 -0
- data/samples/bigdemo/icons/smiles.xpm +39 -0
- data/samples/bigdemo/icons/smiley.ico +0 -0
- data/samples/bigdemo/icons/smiley.xpm +42 -0
- data/samples/bigdemo/icons/stattext.xpm +24 -0
- data/samples/bigdemo/icons/test2.bmp +0 -0
- data/samples/bigdemo/icons/test2.png +0 -0
- data/samples/bigdemo/icons/test2.xpm +79 -0
- data/samples/bigdemo/icons/text.bmp +0 -0
- data/samples/bigdemo/icons/text.xpm +27 -0
- data/samples/bigdemo/icons/tog1.bmp +0 -0
- data/samples/bigdemo/icons/tog1.xpm +38 -0
- data/samples/bigdemo/icons/tog2.bmp +0 -0
- data/samples/bigdemo/icons/tog2.xpm +38 -0
- data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
- data/samples/bigdemo/icons/wxwin.ico +0 -0
- data/samples/bigdemo/icons/wxwin16x16.png +0 -0
- data/samples/bigdemo/icons/wxwin16x16.xpm +25 -0
- data/samples/bigdemo/icons/wxwin32x32.png +0 -0
- data/samples/bigdemo/icons/wxwin48x48.png +0 -0
- data/samples/bigdemo/run.rb +91 -0
- data/samples/bigdemo/tips.txt +7 -0
- data/samples/bigdemo/utils.rb +12 -0
- data/samples/bigdemo/wxArtProvider.rbw +281 -0
- data/samples/bigdemo/wxBitmapButton.rbw +65 -0
- data/samples/bigdemo/wxButton.rbw +64 -0
- data/samples/bigdemo/wxCalendarCtrl.rbw +59 -0
- data/samples/bigdemo/wxCheckBox.rbw +50 -0
- data/samples/bigdemo/wxCheckListBox.rbw +65 -0
- data/samples/bigdemo/wxChoice.rbw +47 -0
- data/samples/bigdemo/wxChoicebook.rbw +78 -0
- data/samples/bigdemo/wxColourDialog.rbw +33 -0
- data/samples/bigdemo/wxComboBox.rbw +77 -0
- data/samples/bigdemo/wxCursor.rbw +136 -0
- data/samples/bigdemo/wxDialog.rbw +74 -0
- data/samples/bigdemo/wxDirDialog.rbw +29 -0
- data/samples/bigdemo/wxDragImage.rbw +70 -0
- data/samples/bigdemo/wxFileDialog.rbw +37 -0
- data/samples/bigdemo/wxFileDialog_Save.rbw +35 -0
- data/samples/bigdemo/wxFindReplaceDialog.rbw +82 -0
- data/samples/bigdemo/wxFontDialog.rbw +200 -0
- data/samples/bigdemo/wxFrame.rbw +53 -0
- data/samples/bigdemo/wxGauge.rbw +65 -0
- data/samples/bigdemo/wxGenericDirCtrl.rbw +74 -0
- data/samples/bigdemo/wxGrid.rbw +66 -0
- data/samples/bigdemo/wxHtmlHelpController.rbw +52 -0
- data/samples/bigdemo/wxListBox.rbw +140 -0
- data/samples/bigdemo/wxListCtrl_virtual.rbw +112 -0
- data/samples/bigdemo/wxMDIWindows.rbw +50 -0
- data/samples/bigdemo/wxMenu.rbw +247 -0
- data/samples/bigdemo/wxMessageDialog.rbw +27 -0
- data/samples/bigdemo/wxMiniFrame.rbw +70 -0
- data/samples/bigdemo/wxMultipleChoiceDialog.rbw +29 -0
- data/samples/bigdemo/wxNotebook.rbw +136 -0
- data/samples/bigdemo/wxProgressDialog.rbw +43 -0
- data/samples/bigdemo/wxRadioBox.rbw +72 -0
- data/samples/bigdemo/wxRadioButton.rbw +125 -0
- data/samples/bigdemo/wxSashWindow.rbw +141 -0
- data/samples/bigdemo/wxScrolledMessageDialog.rbw +57 -0
- data/samples/bigdemo/wxScrolledWindow.rbw +199 -0
- data/samples/bigdemo/wxSingleChoiceDialog.rbw +33 -0
- data/samples/bigdemo/wxSlider.rbw +42 -0
- data/samples/bigdemo/wxSpinButton.rbw +50 -0
- data/samples/bigdemo/wxSpinCtrl.rbw +51 -0
- data/samples/bigdemo/wxSplitterWindow.rbw +63 -0
- data/samples/bigdemo/wxStaticBitmap.rbw +47 -0
- data/samples/bigdemo/wxStaticText.rbw +55 -0
- data/samples/bigdemo/wxStatusBar.rbw +126 -0
- data/samples/bigdemo/wxTextCtrl.rbw +149 -0
- data/samples/bigdemo/wxTextEntryDialog.rbw +31 -0
- data/samples/bigdemo/wxToggleButton.rbw +49 -0
- data/samples/bigdemo/wxToolBar.rbw +131 -0
- data/samples/bigdemo/wxTreeCtrl.rbw +191 -0
- data/samples/calendar/calendar.rb +363 -0
- data/samples/calendar/tn_calendar.png +0 -0
- data/samples/caret/caret.rb +293 -0
- data/samples/caret/mondrian.xpm +44 -0
- data/samples/caret/tn_caret.png +0 -0
- data/samples/controls/books.rb +183 -0
- data/samples/controls/choice.xpm +27 -0
- data/samples/controls/combo.xpm +27 -0
- data/samples/controls/controls.rb +1143 -0
- data/samples/controls/gauge.xpm +27 -0
- data/samples/controls/get_item_sample.rb +117 -0
- data/samples/controls/list.xpm +27 -0
- data/samples/controls/mondrian.ico +0 -0
- data/samples/controls/mondrian.xpm +44 -0
- data/samples/controls/radio.xpm +27 -0
- data/samples/controls/stattext.xpm +24 -0
- data/samples/controls/test2.bmp +0 -0
- data/samples/controls/text.xpm +27 -0
- data/samples/controls/tn_books.png +0 -0
- data/samples/controls/tn_controls.png +0 -0
- data/samples/controls/tn_get_item_sample.png +0 -0
- data/samples/dialogs/dialogs.rb +879 -0
- data/samples/dialogs/tips.txt +18 -0
- data/samples/dialogs/tn_dialogs.png +0 -0
- data/samples/dialogs/tn_wizard.png +0 -0
- data/samples/dialogs/wizard.rb +89 -0
- data/samples/dragdrop/dragdrop.rb +200 -0
- data/samples/dragdrop/tn_dragdrop.png +0 -0
- data/samples/drawing/SVGlogo24.xpm +310 -0
- data/samples/drawing/bitmap.rb +76 -0
- data/samples/drawing/bitmap_image.rb +131 -0
- data/samples/drawing/graphics_drawing.rb +257 -0
- data/samples/drawing/maths_images.rb +327 -0
- data/samples/drawing/rmagic_bitmap_image.rb +139 -0
- data/samples/drawing/ruby-logo.jpg +0 -0
- data/samples/drawing/svgtest.rb +373 -0
- data/samples/drawing/tn_bitmap.png +0 -0
- data/samples/drawing/tn_bitmap_image.png +0 -0
- data/samples/drawing/tn_graphics_drawing.png +0 -0
- data/samples/drawing/tn_maths_images.png +0 -0
- data/samples/drawing/tn_rmagic_bitmap_image.png +0 -0
- data/samples/drawing/tn_svgtest.png +0 -0
- data/samples/etc/choice.rb +82 -0
- data/samples/etc/miniframe.rb +92 -0
- data/samples/etc/sash.rb +140 -0
- data/samples/etc/scrollwin.rb +120 -0
- data/samples/etc/system_settings.rb +263 -0
- data/samples/etc/tn_choice.png +0 -0
- data/samples/etc/tn_miniframe.png +0 -0
- data/samples/etc/tn_sash.png +0 -0
- data/samples/etc/tn_scrollwin.png +0 -0
- data/samples/etc/tn_system_settings.png +0 -0
- data/samples/event/activation.rb +129 -0
- data/samples/event/event.rb +220 -0
- data/samples/event/threaded.rb +141 -0
- data/samples/event/tn_activation.png +0 -0
- data/samples/event/tn_event.png +0 -0
- data/samples/event/tn_threaded.png +0 -0
- data/samples/event/tn_update_ui_event.png +0 -0
- data/samples/event/update_ui_event.rb +91 -0
- data/samples/grid/grid.rb +224 -0
- data/samples/grid/gridtablebase.rb +178 -0
- data/samples/grid/tn_grid.png +0 -0
- data/samples/grid/tn_gridtablebase.png +0 -0
- data/samples/html/8859_2.htm +14 -0
- data/samples/html/cp1250.htm +19 -0
- data/samples/html/foo.png +0 -0
- data/samples/html/html.rb +278 -0
- data/samples/html/i18n.gif +0 -0
- data/samples/html/imagemap.htm +20 -0
- data/samples/html/imagemap.png +0 -0
- data/samples/html/listtest.htm +28 -0
- data/samples/html/pic.png +0 -0
- data/samples/html/pic2.bmp +0 -0
- data/samples/html/regres.htm +20 -0
- data/samples/html/subsup.html +42 -0
- data/samples/html/tables.htm +255 -0
- data/samples/html/test.htm +375 -0
- data/samples/html/tn_html.png +0 -0
- data/samples/mdi/mdi.rb +118 -0
- data/samples/mdi/tn_mdi.png +0 -0
- data/samples/minimal/minimal.rb +95 -0
- data/samples/minimal/mondrian.ico +0 -0
- data/samples/minimal/mondrian.png +0 -0
- data/samples/minimal/nothing.rb +38 -0
- data/samples/minimal/tn_minimal.png +0 -0
- data/samples/minimal/tn_nothing.png +0 -0
- data/samples/printing/mondrian.ico +0 -0
- data/samples/printing/mondrian.xpm +44 -0
- data/samples/printing/printing.rb +499 -0
- data/samples/printing/printing2.rb +251 -0
- data/samples/printing/sample-text.txt +213 -0
- data/samples/printing/tn_printing.png +0 -0
- data/samples/printing/tn_printing2.png +0 -0
- data/samples/propgrid/propgrid.rb +2711 -0
- data/samples/propgrid/propgrid_minimal.rb +107 -0
- data/samples/propgrid/sample_props.rb +434 -0
- data/samples/propgrid/tn_propgrid.png +0 -0
- data/samples/propgrid/tn_propgrid_minimal.png +0 -0
- data/samples/ribbon/align_center.xpm +21 -0
- data/samples/ribbon/align_left.xpm +21 -0
- data/samples/ribbon/align_right.xpm +21 -0
- data/samples/ribbon/aui_style.xpm +53 -0
- data/samples/ribbon/auto_crop_selection.xpm +55 -0
- data/samples/ribbon/auto_crop_selection_small.xpm +33 -0
- data/samples/ribbon/circle.xpm +38 -0
- data/samples/ribbon/circle_small.xpm +22 -0
- data/samples/ribbon/colours.xpm +25 -0
- data/samples/ribbon/cross.xpm +38 -0
- data/samples/ribbon/empty.xpm +23 -0
- data/samples/ribbon/expand_selection_h.xpm +46 -0
- data/samples/ribbon/expand_selection_v.xpm +46 -0
- data/samples/ribbon/eye.xpm +26 -0
- data/samples/ribbon/hexagon.xpm +38 -0
- data/samples/ribbon/msw_style.xpm +65 -0
- data/samples/ribbon/position_left.xpm +22 -0
- data/samples/ribbon/position_top.xpm +22 -0
- data/samples/ribbon/ribbon.rb +900 -0
- data/samples/ribbon/ribbon.xpm +54 -0
- data/samples/ribbon/selection_panel.xpm +23 -0
- data/samples/ribbon/square.xpm +38 -0
- data/samples/ribbon/tn_ribbon.png +0 -0
- data/samples/ribbon/triangle.xpm +38 -0
- data/samples/sample.xpm +475 -0
- data/samples/sampler/back.xpm +21 -0
- data/samples/sampler/copy.xpm +44 -0
- data/samples/sampler/cut.xpm +46 -0
- data/samples/sampler/editor.rb +560 -0
- data/samples/sampler/ext.rb +51 -0
- data/samples/sampler/filesave.xpm +42 -0
- data/samples/sampler/find.xpm +62 -0
- data/samples/sampler/findrepl.xpm +63 -0
- data/samples/sampler/forward.xpm +21 -0
- data/samples/sampler/paste.xpm +46 -0
- data/samples/sampler/play.xpm +24 -0
- data/samples/sampler/redo.xpm +58 -0
- data/samples/sampler/sample.rb +347 -0
- data/samples/sampler/stc_editor.rb +321 -0
- data/samples/sampler/txt_editor.rb +130 -0
- data/samples/sampler/undo.xpm +58 -0
- data/samples/sampler.rb +394 -0
- data/samples/splash/mobile.xpm +1835 -0
- data/samples/splash/splash.png +0 -0
- data/samples/splash/splash.rb +164 -0
- data/samples/splash/tn_splash.png +0 -0
- data/samples/text/document-open.png +0 -0
- data/samples/text/document-save.png +0 -0
- data/samples/text/edit-copy.png +0 -0
- data/samples/text/edit-cut.png +0 -0
- data/samples/text/edit-paste.png +0 -0
- data/samples/text/edit-redo.png +0 -0
- data/samples/text/edit-undo.png +0 -0
- data/samples/text/format-text-bold.png +0 -0
- data/samples/text/format-text-italic.png +0 -0
- data/samples/text/format-text-underline.png +0 -0
- data/samples/text/mondrian.ico +0 -0
- data/samples/text/mondrian.xpm +44 -0
- data/samples/text/preferences-desktop-font.png +0 -0
- data/samples/text/rich_textctrl.rb +326 -0
- data/samples/text/scintilla.rb +179 -0
- data/samples/text/textctrl.rb +124 -0
- data/samples/text/tn_rich_textctrl.png +0 -0
- data/samples/text/tn_scintilla.png +0 -0
- data/samples/text/tn_textctrl.png +0 -0
- data/samples/text/tn_unicode.png +0 -0
- data/samples/text/unicode.rb +238 -0
- data/samples/text/utf8.txt +15 -0
- data/samples/treectrl/checked.xpm +54 -0
- data/samples/treectrl/icon1.xpm +79 -0
- data/samples/treectrl/icon2.xpm +53 -0
- data/samples/treectrl/icon3.xpm +79 -0
- data/samples/treectrl/icon4.xpm +43 -0
- data/samples/treectrl/icon5.xpm +79 -0
- data/samples/treectrl/state1.xpm +145 -0
- data/samples/treectrl/state2.xpm +144 -0
- data/samples/treectrl/state3.xpm +142 -0
- data/samples/treectrl/state4.xpm +145 -0
- data/samples/treectrl/state5.xpm +85 -0
- data/samples/treectrl/tn_treectrl.png +0 -0
- data/samples/treectrl/treectrl.rb +1720 -0
- data/samples/treectrl/unchecked.xpm +30 -0
- data/samples/xrc/custom_dialog.xrc +46 -0
- data/samples/xrc/custom_xrc_sample.rb +84 -0
- data/samples/xrc/samples.xrc +46 -0
- data/samples/xrc/tn_xrc_sample.png +0 -0
- data/samples/xrc/xrc_sample.rb +86 -0
- data/tests/test_basic.rb +20 -0
- data/tests/test_clipboard.rb +241 -0
- data/tests/test_dialog.rb +28 -0
- data/tests/test_event_handling.rb +103 -0
- data/tests/test_events.rb +45 -0
- data/tests/test_geometry.rb +141 -0
- data/tests/test_intl.rb +107 -0
- data/tests/test_item_data.rb +120 -0
- data/tests/test_variant.rb +151 -0
- data/tests/testapp.rb +40 -0
- data/tests/testapp_noframe.rb +28 -0
- metadata +930 -0
@@ -0,0 +1,1144 @@
|
|
1
|
+
# :stopdoc:
|
2
|
+
# This file is automatically generated by the WXRuby3 documentation
|
3
|
+
# generator. Do not alter this file.
|
4
|
+
# :startdoc:
|
5
|
+
|
6
|
+
|
7
|
+
module Wx
|
8
|
+
|
9
|
+
#
|
10
|
+
IMAGE_OPTION_QUALITY = "quality"
|
11
|
+
|
12
|
+
#
|
13
|
+
IMAGE_OPTION_FILENAME = "FileName"
|
14
|
+
|
15
|
+
#
|
16
|
+
IMAGE_OPTION_RESOLUTION = "Resolution"
|
17
|
+
|
18
|
+
#
|
19
|
+
IMAGE_OPTION_RESOLUTIONX = "ResolutionX"
|
20
|
+
|
21
|
+
#
|
22
|
+
IMAGE_OPTION_RESOLUTIONY = "ResolutionY"
|
23
|
+
|
24
|
+
#
|
25
|
+
IMAGE_OPTION_RESOLUTIONUNIT = "ResolutionUnit"
|
26
|
+
|
27
|
+
#
|
28
|
+
IMAGE_OPTION_MAX_WIDTH = "MaxWidth"
|
29
|
+
|
30
|
+
#
|
31
|
+
IMAGE_OPTION_MAX_HEIGHT = "MaxHeight"
|
32
|
+
|
33
|
+
#
|
34
|
+
IMAGE_OPTION_ORIGINAL_WIDTH = "OriginalWidth"
|
35
|
+
|
36
|
+
#
|
37
|
+
IMAGE_OPTION_ORIGINAL_HEIGHT = "OriginalHeight"
|
38
|
+
|
39
|
+
#
|
40
|
+
IMAGE_OPTION_BMP_FORMAT = "wxBMP_FORMAT"
|
41
|
+
|
42
|
+
#
|
43
|
+
IMAGE_OPTION_CUR_HOTSPOT_X = "HotSpotX"
|
44
|
+
|
45
|
+
#
|
46
|
+
IMAGE_OPTION_CUR_HOTSPOT_Y = "HotSpotY"
|
47
|
+
|
48
|
+
#
|
49
|
+
IMAGE_OPTION_GIF_COMMENT = "GifComment"
|
50
|
+
|
51
|
+
#
|
52
|
+
IMAGE_OPTION_GIF_TRANSPARENCY = "Transparency"
|
53
|
+
|
54
|
+
#
|
55
|
+
IMAGE_OPTION_GIF_TRANSPARENCY_HIGHLIGHT = "Highlight"
|
56
|
+
|
57
|
+
#
|
58
|
+
IMAGE_OPTION_GIF_TRANSPARENCY_UNCHANGED = "Unchanged"
|
59
|
+
|
60
|
+
#
|
61
|
+
IMAGE_OPTION_PNG_FORMAT = "PngFormat"
|
62
|
+
|
63
|
+
#
|
64
|
+
IMAGE_OPTION_PNG_BITDEPTH = "PngBitDepth"
|
65
|
+
|
66
|
+
#
|
67
|
+
IMAGE_OPTION_PNG_FILTER = "PngF"
|
68
|
+
|
69
|
+
#
|
70
|
+
IMAGE_OPTION_PNG_COMPRESSION_LEVEL = "PngZL"
|
71
|
+
|
72
|
+
#
|
73
|
+
IMAGE_OPTION_PNG_COMPRESSION_MEM_LEVEL = "PngZM"
|
74
|
+
|
75
|
+
#
|
76
|
+
IMAGE_OPTION_PNG_COMPRESSION_STRATEGY = "PngZS"
|
77
|
+
|
78
|
+
#
|
79
|
+
IMAGE_OPTION_PNG_COMPRESSION_BUFFER_SIZE = "PngZB"
|
80
|
+
|
81
|
+
#
|
82
|
+
IMAGE_OPTION_TIFF_BITSPERSAMPLE = "BitsPerSample"
|
83
|
+
|
84
|
+
#
|
85
|
+
IMAGE_OPTION_TIFF_SAMPLESPERPIXEL = "SamplesPerPixel"
|
86
|
+
|
87
|
+
#
|
88
|
+
IMAGE_OPTION_TIFF_COMPRESSION = "Compression"
|
89
|
+
|
90
|
+
#
|
91
|
+
IMAGE_OPTION_TIFF_PHOTOMETRIC = "Photometric"
|
92
|
+
|
93
|
+
#
|
94
|
+
IMAGE_OPTION_TIFF_IMAGEDESCRIPTOR = "ImageDescriptor"
|
95
|
+
|
96
|
+
# Possible values for the image resolution option.
|
97
|
+
#
|
98
|
+
#
|
99
|
+
# @see Wx::Image#get_option_int.
|
100
|
+
#
|
101
|
+
#
|
102
|
+
class ImageResolution < Wx::Enum
|
103
|
+
|
104
|
+
# Resolution not specified.
|
105
|
+
#
|
106
|
+
IMAGE_RESOLUTION_NONE = Wx::ImageResolution.new(0)
|
107
|
+
|
108
|
+
# Resolution specified in inches.
|
109
|
+
#
|
110
|
+
IMAGE_RESOLUTION_INCHES = Wx::ImageResolution.new(1)
|
111
|
+
|
112
|
+
# Resolution specified in centimetres.
|
113
|
+
#
|
114
|
+
IMAGE_RESOLUTION_CM = Wx::ImageResolution.new(2)
|
115
|
+
|
116
|
+
end # ImageResolution
|
117
|
+
|
118
|
+
# Image resize algorithm.
|
119
|
+
#
|
120
|
+
# This is used with {Wx::Image#scale} and {Wx::Image#rescale}.
|
121
|
+
#
|
122
|
+
class ImageResizeQuality < Wx::Enum
|
123
|
+
|
124
|
+
# Simplest and fastest algorithm.
|
125
|
+
#
|
126
|
+
IMAGE_QUALITY_NEAREST = Wx::ImageResizeQuality.new(0)
|
127
|
+
|
128
|
+
# Compromise between {Wx::ImageResizeQuality::IMAGE_QUALITY_NEAREST} and {Wx::ImageResizeQuality::IMAGE_QUALITY_BICUBIC}.
|
129
|
+
#
|
130
|
+
IMAGE_QUALITY_BILINEAR = Wx::ImageResizeQuality.new(1)
|
131
|
+
|
132
|
+
# Highest quality but slowest execution time.
|
133
|
+
#
|
134
|
+
IMAGE_QUALITY_BICUBIC = Wx::ImageResizeQuality.new(2)
|
135
|
+
|
136
|
+
# Use surrounding pixels to calculate an average that will be used for new pixels.
|
137
|
+
#
|
138
|
+
IMAGE_QUALITY_BOX_AVERAGE = Wx::ImageResizeQuality.new(3)
|
139
|
+
|
140
|
+
# Default image resizing algorithm used by {Wx::Image#scale}.
|
141
|
+
#
|
142
|
+
IMAGE_QUALITY_NORMAL = Wx::ImageResizeQuality.new(0)
|
143
|
+
|
144
|
+
# Best image resizing algorithm.
|
145
|
+
#
|
146
|
+
IMAGE_QUALITY_HIGH = Wx::ImageResizeQuality.new(4)
|
147
|
+
|
148
|
+
end # ImageResizeQuality
|
149
|
+
|
150
|
+
# Constants for {Wx::Image#paste} for specifying alpha blending option.
|
151
|
+
#
|
152
|
+
#
|
153
|
+
#
|
154
|
+
class ImageAlphaBlendMode < Wx::Enum
|
155
|
+
|
156
|
+
# Overwrite the original alpha values with the ones being pasted.
|
157
|
+
#
|
158
|
+
IMAGE_ALPHA_BLEND_OVER = Wx::ImageAlphaBlendMode.new(0)
|
159
|
+
|
160
|
+
# Compose the original alpha values with the ones being pasted.
|
161
|
+
#
|
162
|
+
IMAGE_ALPHA_BLEND_COMPOSE = Wx::ImageAlphaBlendMode.new(1)
|
163
|
+
|
164
|
+
end # ImageAlphaBlendMode
|
165
|
+
|
166
|
+
# Possible values for PNG image type option.
|
167
|
+
#
|
168
|
+
#
|
169
|
+
# @see Wx::Image#get_option_int.
|
170
|
+
#
|
171
|
+
#
|
172
|
+
class ImagePNGType < Wx::Enum
|
173
|
+
|
174
|
+
# Colour PNG image.
|
175
|
+
#
|
176
|
+
PNG_TYPE_COLOUR = Wx::ImagePNGType.new(0)
|
177
|
+
|
178
|
+
# Greyscale PNG image converted from RGB.
|
179
|
+
#
|
180
|
+
PNG_TYPE_GREY = Wx::ImagePNGType.new(2)
|
181
|
+
|
182
|
+
# Greyscale PNG image using red as grey.
|
183
|
+
#
|
184
|
+
PNG_TYPE_GREY_RED = Wx::ImagePNGType.new(3)
|
185
|
+
|
186
|
+
# Palette encoding.
|
187
|
+
#
|
188
|
+
PNG_TYPE_PALETTE = Wx::ImagePNGType.new(4)
|
189
|
+
|
190
|
+
end # ImagePNGType
|
191
|
+
|
192
|
+
#
|
193
|
+
#
|
194
|
+
BMP_24BPP = 24
|
195
|
+
|
196
|
+
#
|
197
|
+
#
|
198
|
+
BMP_8BPP = 8
|
199
|
+
|
200
|
+
#
|
201
|
+
#
|
202
|
+
BMP_8BPP_GREY = 9
|
203
|
+
|
204
|
+
#
|
205
|
+
#
|
206
|
+
BMP_8BPP_GRAY = 9
|
207
|
+
|
208
|
+
#
|
209
|
+
#
|
210
|
+
BMP_8BPP_RED = 10
|
211
|
+
|
212
|
+
#
|
213
|
+
#
|
214
|
+
BMP_8BPP_PALETTE = 11
|
215
|
+
|
216
|
+
#
|
217
|
+
#
|
218
|
+
BMP_4BPP = 4
|
219
|
+
|
220
|
+
#
|
221
|
+
#
|
222
|
+
BMP_1BPP = 1
|
223
|
+
|
224
|
+
#
|
225
|
+
#
|
226
|
+
BMP_1BPP_BW = 2
|
227
|
+
|
228
|
+
# Constant used to indicate the alpha value conventionally defined as the complete transparency.
|
229
|
+
#
|
230
|
+
IMAGE_ALPHA_TRANSPARENT = 0
|
231
|
+
|
232
|
+
# Constant used to indicate the alpha value conventionally defined as the complete opacity.
|
233
|
+
#
|
234
|
+
IMAGE_ALPHA_OPAQUE = 255
|
235
|
+
|
236
|
+
#
|
237
|
+
#
|
238
|
+
IMAGE_ALPHA_THRESHOLD = 128
|
239
|
+
|
240
|
+
# An instance of an empty image without an alpha channel.
|
241
|
+
#
|
242
|
+
NULL_IMAGE = nil
|
243
|
+
|
244
|
+
# This class encapsulates a platform-independent image.
|
245
|
+
# An image can be created from data, or using {Wx::Bitmap#convert_to_image}. An image can be loaded from a file in a variety of formats, and is extensible to new formats via image format handlers. Functions are available to set and get image bits, so it can be used for basic image manipulation.
|
246
|
+
# A {Wx::Image} cannot (currently) be drawn directly to a {Wx::DC}. Instead, a platform-specific {Wx::Bitmap} object must be created from it using the {Wx::Bitmap#initialize(wxImage,depth)} constructor. This bitmap can then be drawn in a device context, using {Wx::DC#draw_bitmap}.
|
247
|
+
# More on the difference between {Wx::Image} and {Wx::Bitmap}: {Wx::Image} is just a buffer of RGB bytes with an optional buffer for the alpha bytes. It is all generic, platform independent and image file format independent code. It includes generic code for scaling, resizing, clipping, and other manipulations of the image data. OTOH, {Wx::Bitmap} is intended to be a wrapper of whatever is the native image format that is quickest/easiest to draw to a DC or to be the target of the drawing operations performed on a {Wx::MemoryDC}. By splitting the responsibilities between {Wx::Image}/{Wx::Bitmap} like this then it's easier to use generic code shared by all platforms and image types for generic operations and platform specific code where performance or compatibility is needed.
|
248
|
+
# One colour value of the image may be used as a mask colour which will lead to the automatic creation of a {Wx::Mask} object associated to the bitmap object.
|
249
|
+
#
|
250
|
+
# == Alpha channel support
|
251
|
+
#
|
252
|
+
# Starting from wxWidgets 2.5.0 {Wx::Image} supports alpha channel data, that is in addition to a byte for the red, green and blue colour components for each pixel it also stores a byte representing the pixel opacity.
|
253
|
+
# An alpha value of 0 corresponds to a transparent pixel (null opacity) while a value of 255 means that the pixel is 100% opaque. The constants {Wx::IMAGE_ALPHA_TRANSPARENT} and {Wx::IMAGE_ALPHA_OPAQUE} can be used to indicate those values in a more readable form.
|
254
|
+
# While all images have RGB data, not all images have an alpha channel. Before using {Wx::Image#get_alpha} you should check if this image contains an alpha channel with {Wx::Image#has_alpha}. Currently the BMP, PNG, TGA, and TIFF format handlers have full alpha channel support for loading so if you want to use alpha you have to use one of these formats. If you initialize the image alpha channel yourself using {Wx::Image#set_alpha}, you should save it in either PNG, TGA, or TIFF format to avoid losing it as these are the only handlers that currently support saving with alpha.
|
255
|
+
#
|
256
|
+
# == Available image handlers
|
257
|
+
#
|
258
|
+
# The following image handlers are available. {Wx::BMPHandler} is always installed by default. To use other image formats, install the appropriate handler with {Wx::Image.add_handler} or call {init_all_image_handlers}.
|
259
|
+
#
|
260
|
+
# - {Wx::BMPHandler}: For loading (including alpha support) and saving, always installed.- {Wx::PNGHandler}: For loading and saving. Includes alpha support.- {Wx::JPEGHandler}: For loading and saving.- {Wx::GIFHandler}: For loading and saving (see below).- {Wx::PCXHandler}: For loading and saving (see below).- {Wx::PNMHandler}: For loading and saving (see below).- {Wx::TIFFHandler}: For loading and saving. Includes alpha support.- {Wx::TGAHandler}: For loading and saving. Includes alpha support.- {Wx::IFFHandler}: For loading only.- {Wx::XPMHandler}: For loading and saving.- {Wx::ICOHandler}: For loading and saving.- {Wx::CURHandler}: For loading and saving.- {Wx::ANIHandler}: For loading only.
|
261
|
+
#
|
262
|
+
# 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
|
+
# Loading PNMs only works for ASCII or raw RGB images. When saving in PNM format, {Wx::PNMHandler} will always save as raw RGB.
|
264
|
+
# Saving GIFs requires images of maximum 8 bpp (see {Wx::Quantize}), and the alpha channel converted to a mask (see {Wx::Image#convert_alpha_to_mask}). Saving an animated GIF requires images of the same size (see Wx::GIFHandler::SaveAnimation)
|
265
|
+
# ===
|
266
|
+
#
|
267
|
+
# Category: Graphics Device Interface (GDI)
|
268
|
+
# Predefined objects/pointers: {Wx::NULL_IMAGE}
|
269
|
+
# @see Wx::Bitmap
|
270
|
+
# @see init_all_image_handlers
|
271
|
+
# @see Wx::PixelData
|
272
|
+
#
|
273
|
+
#
|
274
|
+
class Image < Object
|
275
|
+
|
276
|
+
# Returns an identical copy of this image.
|
277
|
+
# @return [Wx::Image]
|
278
|
+
def copy; end
|
279
|
+
|
280
|
+
# @overload create(width, height, clear=true)
|
281
|
+
# Creates a fresh image.
|
282
|
+
# See {Wx::Image#initialize(int,int,bool)} for more info.
|
283
|
+
# true if the call succeeded, false otherwise.
|
284
|
+
# @param width [Integer]
|
285
|
+
# @param height [Integer]
|
286
|
+
# @param clear [true,false]
|
287
|
+
# @return [true,false]
|
288
|
+
# @overload create(sz, clear=true)
|
289
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
290
|
+
# @param sz [Array(Integer, Integer), Wx::Size]
|
291
|
+
# @param clear [true,false]
|
292
|
+
# @return [true,false]
|
293
|
+
# @overload create(width, height, data)
|
294
|
+
# Creates a fresh image.
|
295
|
+
# See wxImage::wxImage(int,int,unsigned char*,bool) for more info.
|
296
|
+
# true if the call succeeded, false otherwise.
|
297
|
+
# @param width [Integer]
|
298
|
+
# @param height [Integer]
|
299
|
+
# @param data [String]
|
300
|
+
# @return [true,false]
|
301
|
+
# @overload create(sz, data)
|
302
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
303
|
+
# @param sz [Array(Integer, Integer), Wx::Size]
|
304
|
+
# @param data [String]
|
305
|
+
# @return [true,false]
|
306
|
+
# @overload create(width, height, data, alpha)
|
307
|
+
# Creates a fresh image.
|
308
|
+
# See wxImage::wxImage(int,int,unsigned char*,unsigned char*,bool) for more info.
|
309
|
+
# true if the call succeeded, false otherwise.
|
310
|
+
# @param width [Integer]
|
311
|
+
# @param height [Integer]
|
312
|
+
# @param data [String]
|
313
|
+
# @param alpha [String]
|
314
|
+
# @return [true,false]
|
315
|
+
# @overload create(sz, data, alpha)
|
316
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
317
|
+
# @param sz [Array(Integer, Integer), Wx::Size]
|
318
|
+
# @param data [String]
|
319
|
+
# @param alpha [String]
|
320
|
+
# @return [true,false]
|
321
|
+
def create(*args) end
|
322
|
+
|
323
|
+
# Initialize the image data with zeroes (the default) or with the byte value given as value.
|
324
|
+
# @param value [Integer]
|
325
|
+
# @return [void]
|
326
|
+
def clear(value=0) end
|
327
|
+
|
328
|
+
# Destroys the image data.
|
329
|
+
# @return [void]
|
330
|
+
def destroy; end
|
331
|
+
|
332
|
+
# Initializes the image alpha channel data.
|
333
|
+
# It is an error to call it if the image already has alpha data. If it doesn't, alpha data will be by default initialized to all pixels being fully opaque. But if the image has a mask colour, all mask pixels will be completely transparent.
|
334
|
+
# @return [void]
|
335
|
+
def init_alpha; end
|
336
|
+
|
337
|
+
# Blurs the image in both horizontal and vertical directions by the specified pixel blurRadius.
|
338
|
+
# This should not be used when using a single mask colour for transparency.
|
339
|
+
# @see Wx::Image#blur_horizontal
|
340
|
+
# @see Wx::Image#blur_vertical
|
341
|
+
# @param blurRadius [Integer]
|
342
|
+
# @return [Wx::Image]
|
343
|
+
def blur(blurRadius) end
|
344
|
+
|
345
|
+
# Blurs the image in the horizontal direction only.
|
346
|
+
# This should not be used when using a single mask colour for transparency.
|
347
|
+
# @see Wx::Image#blur
|
348
|
+
# @see Wx::Image#blur_vertical
|
349
|
+
# @param blurRadius [Integer]
|
350
|
+
# @return [Wx::Image]
|
351
|
+
def blur_horizontal(blurRadius) end
|
352
|
+
|
353
|
+
# Blurs the image in the vertical direction only.
|
354
|
+
# This should not be used when using a single mask colour for transparency.
|
355
|
+
# @see Wx::Image#blur
|
356
|
+
# @see Wx::Image#blur_horizontal
|
357
|
+
# @param blurRadius [Integer]
|
358
|
+
# @return [Wx::Image]
|
359
|
+
def blur_vertical(blurRadius) end
|
360
|
+
|
361
|
+
# Returns a mirrored copy of the image.
|
362
|
+
# The parameter horizontally indicates the orientation.
|
363
|
+
# @param horizontally [true,false]
|
364
|
+
# @return [Wx::Image]
|
365
|
+
def mirror(horizontally=true) end
|
366
|
+
|
367
|
+
# Copy the data of the given image to the specified position in this image.
|
368
|
+
# Takes care of the mask colour and out of bounds problems.
|
369
|
+
# @param image [Wx::Image] The image containing the data to copy, must be valid.
|
370
|
+
# @param x [Integer] The horizontal position of the position to copy the data to.
|
371
|
+
# @param y [Integer] The vertical position of the position to copy the data to.
|
372
|
+
# @param alphaBlend [ImageAlphaBlendMode] This parameter (new in wx 3.1.5) determines whether the alpha values of the original image replace (default) or are composed with the alpha channel of this image. Notice that alpha blending overrides the mask handling.
|
373
|
+
# @return [void]
|
374
|
+
def paste(image, x, y, alphaBlend=Wx::IMAGE_ALPHA_BLEND_OVER) end
|
375
|
+
|
376
|
+
# Replaces the colour specified by r1,g1,b1 by the colour r2,g2,b2.
|
377
|
+
# @param r1 [Integer]
|
378
|
+
# @param g1 [Integer]
|
379
|
+
# @param b1 [Integer]
|
380
|
+
# @param r2 [Integer]
|
381
|
+
# @param g2 [Integer]
|
382
|
+
# @param b2 [Integer]
|
383
|
+
# @return [void]
|
384
|
+
def replace(r1, g1, b1, r2, g2, b2) end
|
385
|
+
|
386
|
+
# Changes the size of the image in-place by scaling it: after a call to this function,the image will have the given width and height.
|
387
|
+
# For a description of the quality parameter, see the {Wx::Image#scale} function. Returns the (modified) image itself.
|
388
|
+
# @see Wx::Image#scale
|
389
|
+
# @param width [Integer]
|
390
|
+
# @param height [Integer]
|
391
|
+
# @param quality [ImageResizeQuality]
|
392
|
+
# @return [Wx::Image]
|
393
|
+
def rescale(width, height, quality=Wx::IMAGE_QUALITY_NORMAL) end
|
394
|
+
|
395
|
+
# Changes the size of the image in-place without scaling it by adding either a border with the given colour or cropping as necessary.
|
396
|
+
# The image is pasted into a new image with the given size and background colour at the position pos relative to the upper left of the new image.
|
397
|
+
# If red = green = blue = -1 then use either the current mask colour if set or find, use, and set a suitable mask colour for any newly exposed areas.
|
398
|
+
# The (modified) image itself.
|
399
|
+
# @see Wx::Image#size
|
400
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
401
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
402
|
+
# @param red [Integer]
|
403
|
+
# @param green [Integer]
|
404
|
+
# @param blue [Integer]
|
405
|
+
# @return [Wx::Image]
|
406
|
+
def resize(size, pos, red=-1, green=-1, blue=-1) end
|
407
|
+
|
408
|
+
# Rotates the image about the given point, by angle radians.
|
409
|
+
# Passing true to interpolating results in better image quality, but is slower.
|
410
|
+
# If the image has a mask, then the mask colour is used for the uncovered pixels in the rotated image background. Else, black (rgb 0, 0, 0) will be used.
|
411
|
+
# Returns the rotated image, leaving this image intact.
|
412
|
+
# @param angle [Float]
|
413
|
+
# @param rotationCentre [Array(Integer, Integer), Wx::Point]
|
414
|
+
# @param interpolating [true,false]
|
415
|
+
# @param offsetAfterRotation [Wx::Point]
|
416
|
+
# @return [Wx::Image]
|
417
|
+
def rotate(angle, rotationCentre, interpolating=true, offsetAfterRotation=nil) end
|
418
|
+
|
419
|
+
# Returns a copy of the image rotated 90 degrees in the direction indicated by clockwise.
|
420
|
+
# @param clockwise [true,false]
|
421
|
+
# @return [Wx::Image]
|
422
|
+
def rotate90(clockwise=true) end
|
423
|
+
|
424
|
+
# Returns a copy of the image rotated by 180 degrees.
|
425
|
+
# @return [Wx::Image]
|
426
|
+
def rotate180; end
|
427
|
+
|
428
|
+
# Rotates the hue of each pixel in the image by angle, which is a double in the range [-1.0..+1.0], where -1.0 corresponds to -360 degrees and +1.0 corresponds to +360 degrees.
|
429
|
+
# @param angle [Float]
|
430
|
+
# @return [void]
|
431
|
+
def rotate_hue(angle) end
|
432
|
+
|
433
|
+
# Changes the saturation of each pixel in the image.
|
434
|
+
# factor is a double in the range [-1.0..+1.0], where -1.0 corresponds to -100 percent and +1.0 corresponds to +100 percent.
|
435
|
+
# @param factor [Float]
|
436
|
+
# @return [void]
|
437
|
+
def change_saturation(factor) end
|
438
|
+
|
439
|
+
# Changes the brightness (value) of each pixel in the image.
|
440
|
+
# factor is a double in the range [-1.0..+1.0], where -1.0 corresponds to -100 percent and +1.0 corresponds to +100 percent.
|
441
|
+
# @param factor [Float]
|
442
|
+
# @return [void]
|
443
|
+
def change_brightness(factor) end
|
444
|
+
|
445
|
+
# Changes the hue, the saturation and the brightness (value) of each pixel in the image.
|
446
|
+
# angleH is a double in the range [-1.0..+1.0], where -1.0 corresponds to -360 degrees and +1.0 corresponds to +360 degrees, factorS is a double in the range [-1.0..+1.0], where -1.0 corresponds to -100 percent and +1.0 corresponds to +100 percent and factorV is a double in the range [-1.0..+1.0], where -1.0 corresponds to -100 percent and +1.0 corresponds to +100 percent.
|
447
|
+
# @param angleH [Float]
|
448
|
+
# @param factorS [Float]
|
449
|
+
# @param factorV [Float]
|
450
|
+
# @return [void]
|
451
|
+
def change_hsv(angleH, factorS, factorV) end
|
452
|
+
|
453
|
+
# Returns a scaled version of the image.
|
454
|
+
# This is also useful for scaling bitmaps in general as the only other way to scale bitmaps is to blit a {Wx::MemoryDC} into another {Wx::MemoryDC}.
|
455
|
+
# The parameter quality determines what method to use for resampling the image, see {Wx::ImageResizeQuality} documentation.
|
456
|
+
# 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
|
+
# 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
|
+
# Example:
|
459
|
+
#
|
460
|
+
# // get the bitmap from somewhere
|
461
|
+
# wxBitmap bmp = ...;
|
462
|
+
#
|
463
|
+
# // rescale it to have size of 32*32
|
464
|
+
# if ( bmp.GetWidth() != 32 || bmp.GetHeight() != 32 )
|
465
|
+
# {
|
466
|
+
# wxImage image = bmp.ConvertToImage();
|
467
|
+
# bmp = wxBitmap(image.Scale(32, 32));
|
468
|
+
#
|
469
|
+
# // another possibility:
|
470
|
+
# image.Rescale(32, 32);
|
471
|
+
# bmp = image;
|
472
|
+
# }
|
473
|
+
#
|
474
|
+
# 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.
|
475
|
+
# @see Wx::Image#rescale
|
476
|
+
# @param width [Integer]
|
477
|
+
# @param height [Integer]
|
478
|
+
# @param quality [ImageResizeQuality]
|
479
|
+
# @return [Wx::Image]
|
480
|
+
def scale(width, height, quality=Wx::IMAGE_QUALITY_NORMAL) end
|
481
|
+
|
482
|
+
# Returns a resized version of this image without scaling it by adding either a border with the given colour or cropping as necessary.
|
483
|
+
# The image is pasted into a new image with the given size and background colour at the position pos relative to the upper left of the new image.
|
484
|
+
# If red = green = blue = -1 then the areas of the larger image not covered by this image are made transparent by filling them with the image mask colour (which will be allocated automatically if it isn't currently set).
|
485
|
+
# Otherwise, the areas will be filled with the colour with the specified RGB components.
|
486
|
+
# @see Wx::Image#resize
|
487
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
488
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
489
|
+
# @param red [Integer]
|
490
|
+
# @param green [Integer]
|
491
|
+
# @param blue [Integer]
|
492
|
+
# @return [Wx::Image]
|
493
|
+
def size(size, pos, red=-1, green=-1, blue=-1) end
|
494
|
+
|
495
|
+
# @overload convert_alpha_to_mask(threshold=Wx::IMAGE_ALPHA_THRESHOLD)
|
496
|
+
# If the image has alpha channel, this method converts it to mask.
|
497
|
+
# If the image has an alpha channel, all pixels with alpha value less than threshold are replaced with the mask colour and the alpha channel is removed. Otherwise nothing is done.
|
498
|
+
# The mask colour is chosen automatically using {Wx::Image#find_first_unused_colour}, see the overload below if this is not appropriate.
|
499
|
+
# Returns true on success, false on error.
|
500
|
+
# @param threshold [Integer]
|
501
|
+
# @return [true,false]
|
502
|
+
# @overload convert_alpha_to_mask(mr, mg, mb, threshold=Wx::IMAGE_ALPHA_THRESHOLD)
|
503
|
+
# If the image has alpha channel, this method converts it to mask using the specified colour as the mask colour.
|
504
|
+
# If the image has an alpha channel, all pixels with alpha value less than threshold are replaced with the mask colour and the alpha channel is removed. Otherwise nothing is done.
|
505
|
+
#
|
506
|
+
# Returns true on success, false on error.
|
507
|
+
# @param mr [Integer] The red component of the mask colour.
|
508
|
+
# @param mg [Integer] The green component of the mask colour.
|
509
|
+
# @param mb [Integer] The blue component of the mask colour.
|
510
|
+
# @param threshold [Integer] Pixels with alpha channel values below the given threshold are considered to be transparent, i.e. the corresponding mask pixels are set. Pixels with the alpha values above the threshold are considered to be opaque.
|
511
|
+
# @return [true,false]
|
512
|
+
def convert_alpha_to_mask(*args) end
|
513
|
+
|
514
|
+
# @overload convert_to_greyscale(weight_r, weight_g, weight_b)
|
515
|
+
# Returns a greyscale version of the image.
|
516
|
+
# The returned image uses the luminance component of the original to calculate the greyscale. Defaults to using the standard ITU-T BT.601 when converting to YUV, where every pixel equals (R * weight_r) + (G * weight_g) + (B * weight_b).
|
517
|
+
# This function calls {Wx::Colour.make_grey} for each pixel in the image.
|
518
|
+
# @param weight_r [Float]
|
519
|
+
# @param weight_g [Float]
|
520
|
+
# @param weight_b [Float]
|
521
|
+
# @return [Wx::Image]
|
522
|
+
# @overload convert_to_greyscale()
|
523
|
+
# Returns a greyscale version of the image.
|
524
|
+
# @return [Wx::Image]
|
525
|
+
def convert_to_greyscale(*args) end
|
526
|
+
|
527
|
+
# Returns monochromatic version of the image.
|
528
|
+
# The returned image has white colour where the original has (r,g,b) colour and black colour everywhere else.
|
529
|
+
# This function calls {Wx::Colour.make_mono} for each pixel in the image.
|
530
|
+
# @param r [Integer]
|
531
|
+
# @param g [Integer]
|
532
|
+
# @param b [Integer]
|
533
|
+
# @return [Wx::Image]
|
534
|
+
def convert_to_mono(r, g, b) end
|
535
|
+
|
536
|
+
# Returns disabled (dimmed) version of the image.
|
537
|
+
# This function calls {Wx::Colour#make_disabled} for each pixel in the image.
|
538
|
+
# @param brightness [Integer]
|
539
|
+
# @return [Wx::Image]
|
540
|
+
def convert_to_disabled(brightness=255) end
|
541
|
+
|
542
|
+
# Returns a changed version of the image based on the given lightness.
|
543
|
+
# This utility function simply darkens or lightens a color, based on the specified percentage ialpha. ialpha of 0 would make the color completely black, 200 completely white and 100 would not change the color.
|
544
|
+
# This function calls {Wx::Colour#change_lightness} for each pixel in the image.
|
545
|
+
# @param alpha [Integer]
|
546
|
+
# @return [Wx::Image]
|
547
|
+
def change_lightness(alpha) end
|
548
|
+
|
549
|
+
# Computes the histogram of the image.
|
550
|
+
# histogram is a reference to {Wx::ImageHistogram} object. {Wx::ImageHistogram} is a specialization of {Wx::HashMap} "template" and is defined as follows:
|
551
|
+
#
|
552
|
+
# class WXDLLEXPORT wxImageHistogramEntry
|
553
|
+
# {
|
554
|
+
# public:
|
555
|
+
# wxImageHistogramEntry() : index(0), value(0) {}
|
556
|
+
# unsigned long index;
|
557
|
+
# unsigned long value;
|
558
|
+
# };
|
559
|
+
#
|
560
|
+
# WX_DECLARE_EXPORTED_HASH_MAP(unsigned long, wxImageHistogramEntry,
|
561
|
+
# wxIntegerHash, wxIntegerEqual,
|
562
|
+
# wxImageHistogram);
|
563
|
+
#
|
564
|
+
# Returns number of colours in the histogram.
|
565
|
+
# @param histogram [Wx::ImageHistogram]
|
566
|
+
# @return [Integer]
|
567
|
+
def compute_histogram(histogram) end
|
568
|
+
|
569
|
+
# Finds the first colour that is never used in the image.
|
570
|
+
# 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.
|
571
|
+
# The parameters r, g, b are pointers to variables to save the colour.
|
572
|
+
# The parameters startR, startG, startB define the initial values of the colour. The returned colour will have RGB values equal to or greater than these.
|
573
|
+
# Returns false if there is no unused colour left, true on success.
|
574
|
+
#
|
575
|
+
# This method involves computing the histogram, which is a computationally intensive operation.
|
576
|
+
# @param startR [Integer]
|
577
|
+
# @param startG [Integer]
|
578
|
+
# @param startB [Integer]
|
579
|
+
# @return [Array(true,false,Integer,Integer,Integer)]
|
580
|
+
def find_first_unused_colour(startR=1, startG=0, startB=0) end
|
581
|
+
|
582
|
+
# Returns the red intensity at the given coordinate.
|
583
|
+
# @param x [Integer]
|
584
|
+
# @param y [Integer]
|
585
|
+
# @return [Integer]
|
586
|
+
def get_red(x, y) end
|
587
|
+
alias_method :red, :get_red
|
588
|
+
|
589
|
+
# Returns the green intensity at the given coordinate.
|
590
|
+
# @param x [Integer]
|
591
|
+
# @param y [Integer]
|
592
|
+
# @return [Integer]
|
593
|
+
def get_green(x, y) end
|
594
|
+
alias_method :green, :get_green
|
595
|
+
|
596
|
+
# Returns the blue intensity at the given coordinate.
|
597
|
+
# @param x [Integer]
|
598
|
+
# @param y [Integer]
|
599
|
+
# @return [Integer]
|
600
|
+
def get_blue(x, y) end
|
601
|
+
alias_method :blue, :get_blue
|
602
|
+
|
603
|
+
# Gets the red value of the mask colour.
|
604
|
+
# @return [Integer]
|
605
|
+
def get_mask_red; end
|
606
|
+
alias_method :mask_red, :get_mask_red
|
607
|
+
|
608
|
+
# Gets the green value of the mask colour.
|
609
|
+
# @return [Integer]
|
610
|
+
def get_mask_green; end
|
611
|
+
alias_method :mask_green, :get_mask_green
|
612
|
+
|
613
|
+
# Gets the blue value of the mask colour.
|
614
|
+
# @return [Integer]
|
615
|
+
def get_mask_blue; end
|
616
|
+
alias_method :mask_blue, :get_mask_blue
|
617
|
+
|
618
|
+
# Gets the width of the image in pixels.
|
619
|
+
#
|
620
|
+
# @see Wx::Image#get_height
|
621
|
+
# @see Wx::Image#get_size
|
622
|
+
# @return [Integer]
|
623
|
+
def get_width; end
|
624
|
+
alias_method :width, :get_width
|
625
|
+
|
626
|
+
# Gets the height of the image in pixels.
|
627
|
+
#
|
628
|
+
# @see Wx::Image#get_width
|
629
|
+
# @see Wx::Image#get_size
|
630
|
+
# @return [Integer]
|
631
|
+
def get_height; end
|
632
|
+
alias_method :height, :get_height
|
633
|
+
|
634
|
+
# Returns the size of the image in pixels.
|
635
|
+
#
|
636
|
+
# @see Wx::Image#get_height
|
637
|
+
# @see Wx::Image#get_width
|
638
|
+
# @return [Wx::Size]
|
639
|
+
def get_size; end
|
640
|
+
|
641
|
+
# Gets a user-defined string-valued option.
|
642
|
+
# Generic options:
|
643
|
+
# - {Wx::IMAGE_OPTION_FILENAME}: The name of the file from which the image was loaded.
|
644
|
+
#
|
645
|
+
# Options specific to {Wx::GIFHandler}:
|
646
|
+
# - {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.
|
647
|
+
#
|
648
|
+
# 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.
|
649
|
+
# @see Wx::Image#set_option
|
650
|
+
# @see Wx::Image#get_option_int
|
651
|
+
# @see Wx::Image#has_option
|
652
|
+
# @param name [String] The name of the option, case-insensitive.
|
653
|
+
# @return [String]
|
654
|
+
def get_option(name) end
|
655
|
+
alias_method :option, :get_option
|
656
|
+
|
657
|
+
# Gets a user-defined integer-valued option.
|
658
|
+
# 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.
|
659
|
+
# Generic options:
|
660
|
+
# - {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.
|
661
|
+
#
|
662
|
+
# - {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.
|
663
|
+
# - {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.
|
664
|
+
#
|
665
|
+
# - {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.
|
666
|
+
#
|
667
|
+
# - {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.
|
668
|
+
#
|
669
|
+
# Options specific to {Wx::PNGHandler}:
|
670
|
+
# - {Wx::IMAGE_OPTION_PNG_FORMAT}: Format for saving a PNG file, see {Wx::ImagePNGType} for the supported values.
|
671
|
+
# - {Wx::IMAGE_OPTION_PNG_BITDEPTH}: Bit depth for every channel (R/G/B/A).
|
672
|
+
# - {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).
|
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
|
+
# - {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.
|
675
|
+
# - {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.
|
676
|
+
# - {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.
|
677
|
+
#
|
678
|
+
# Options specific to {Wx::TIFFHandler}:
|
679
|
+
# - {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}.
|
680
|
+
# - {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.
|
681
|
+
# - {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.
|
682
|
+
# - {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.
|
683
|
+
#
|
684
|
+
# Options specific to {Wx::GIFHandler}:
|
685
|
+
# - {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.
|
686
|
+
#
|
687
|
+
# 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.
|
688
|
+
#
|
689
|
+
# The value of the option or 0 if not found. Use {Wx::Image#has_option} if 0 can be a valid option value.
|
690
|
+
# @see Wx::Image#set_option
|
691
|
+
# @see Wx::Image#get_option
|
692
|
+
# @param name [String] The name of the option, case-insensitive.
|
693
|
+
# @return [Integer]
|
694
|
+
def get_option_int(name) end
|
695
|
+
alias_method :option_int, :get_option_int
|
696
|
+
|
697
|
+
# Get the current mask colour or find a suitable unused colour that could be used as a mask colour.
|
698
|
+
# Returns true if the image currently has a mask.
|
699
|
+
# @return [Array(true,false,Integer,Integer,Integer)]
|
700
|
+
def get_or_find_mask_colour; end
|
701
|
+
alias_method :or_find_mask_colour, :get_or_find_mask_colour
|
702
|
+
|
703
|
+
# Returns the palette associated with the image.
|
704
|
+
# Currently the palette is only used when converting to {Wx::Bitmap} under Windows.
|
705
|
+
# Some of the {Wx::Image} handlers have been modified to set the palette if one exists in the image file (usually 256 or less colour images in GIF or PNG format).
|
706
|
+
# @return [void]
|
707
|
+
def get_palette; end
|
708
|
+
alias_method :palette, :get_palette
|
709
|
+
|
710
|
+
# Returns a sub image of the current one as long as the rect belongs entirely to the image.
|
711
|
+
# @param rect [Wx::Rect]
|
712
|
+
# @return [Wx::Image]
|
713
|
+
def get_sub_image(rect) end
|
714
|
+
alias_method :sub_image, :get_sub_image
|
715
|
+
|
716
|
+
# Gets the type of image found by {Wx::Image#load_file} or specified with {Wx::Image#save_file}.
|
717
|
+
# @return [BitmapType]
|
718
|
+
def get_type; end
|
719
|
+
alias_method :type, :get_type
|
720
|
+
|
721
|
+
# Returns true if this image has alpha channel, false otherwise.
|
722
|
+
#
|
723
|
+
# @see Wx::Image#get_alpha
|
724
|
+
# @see Wx::Image#set_alpha
|
725
|
+
# @return [true,false]
|
726
|
+
def has_alpha; end
|
727
|
+
alias_method :has_alpha?, :has_alpha
|
728
|
+
|
729
|
+
# Returns true if there is a mask active, false otherwise.
|
730
|
+
# @return [true,false]
|
731
|
+
def has_mask; end
|
732
|
+
alias_method :has_mask?, :has_mask
|
733
|
+
|
734
|
+
# Returns true if the given option is present.
|
735
|
+
# The function is case-insensitive to name.
|
736
|
+
# The lists of the currently supported options are in {Wx::Image#get_option} and {Wx::Image#get_option_int} function docs.
|
737
|
+
# @see Wx::Image#set_option
|
738
|
+
# @see Wx::Image#get_option
|
739
|
+
# @see Wx::Image#get_option_int
|
740
|
+
# @param name [String]
|
741
|
+
# @return [true,false]
|
742
|
+
def has_option(name) end
|
743
|
+
alias_method :has_option?, :has_option
|
744
|
+
|
745
|
+
# Returns true if image data is present.
|
746
|
+
# @return [true,false]
|
747
|
+
def is_ok; end
|
748
|
+
alias_method :ok?, :is_ok
|
749
|
+
|
750
|
+
# Returns true if the given pixel is transparent, i.e. either has the mask colour if this image has a mask or if this image has alpha channel and alpha value of this pixel is strictly less than threshold.
|
751
|
+
# @param x [Integer]
|
752
|
+
# @param y [Integer]
|
753
|
+
# @param threshold [Integer]
|
754
|
+
# @return [true,false]
|
755
|
+
def is_transparent(x, y, threshold=Wx::IMAGE_ALPHA_THRESHOLD) end
|
756
|
+
alias_method :transparent?, :is_transparent
|
757
|
+
|
758
|
+
# @overload load_stream(stream, type=Wx::BITMAP_TYPE_ANY, index=-1)
|
759
|
+
# Loads an image from an input stream.
|
760
|
+
# If the file can't be loaded, this function returns false and logs an error using {log_error}. If the file can be loaded but some problems were detected while doing it, it can also call {log_warning} to notify about these problems. If this is undesirable, use {Wx::Image#set_load_flags} to reset Load_Verbose flag and suppress these warnings.
|
761
|
+
#
|
762
|
+
# true if the operation succeeded, false otherwise. If the optional index parameter is out of range, false is returned and a call to {log_error} takes place.
|
763
|
+
#
|
764
|
+
# Depending on how wxWidgets has been configured, not all formats may be available.
|
765
|
+
#
|
766
|
+
# You can use {Wx::Image#get_option_int} to get the hotspot when loading cursor files:
|
767
|
+
#
|
768
|
+
# int hotspot_x = image.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_X);
|
769
|
+
# int hotspot_y = image.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
|
770
|
+
# @see Wx::Image#save_file
|
771
|
+
# @param stream [IO,Wx::InputStream] Opened input stream from which to load the image. Currently, the stream must support seeking.
|
772
|
+
# @param type [BitmapType] May be one of the following:
|
773
|
+
# - {Wx::BitmapType::BITMAP_TYPE_BMP}: Load a Windows bitmap file.
|
774
|
+
# - {Wx::BitmapType::BITMAP_TYPE_GIF}: Load a GIF bitmap file.
|
775
|
+
# - {Wx::BitmapType::BITMAP_TYPE_JPEG}: Load a JPEG bitmap file.
|
776
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PNG}: Load a PNG bitmap file.
|
777
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PCX}: Load a PCX bitmap file.
|
778
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PNM}: Load a PNM bitmap file.
|
779
|
+
# - {Wx::BitmapType::BITMAP_TYPE_TIFF}: Load a TIFF bitmap file.
|
780
|
+
# - {Wx::BitmapType::BITMAP_TYPE_TGA}: Load a TGA bitmap file.
|
781
|
+
# - {Wx::BitmapType::BITMAP_TYPE_XPM}: Load a XPM bitmap file.
|
782
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ICO}: Load a Windows icon file (ICO).
|
783
|
+
# - {Wx::BitmapType::BITMAP_TYPE_CUR}: Load a Windows cursor file (CUR).
|
784
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ANI}: Load a Windows animated cursor file (ANI).
|
785
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ANY}: Will try to autodetect the format.
|
786
|
+
# @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.
|
787
|
+
# @return [true,false]
|
788
|
+
# @overload load_stream(stream, mimetype, index=-1)
|
789
|
+
# Loads an image from an input stream.
|
790
|
+
# @param stream [IO,Wx::InputStream] Opened input stream from which to load the image. Currently, the stream must support seeking.
|
791
|
+
# @param mimetype [String] MIME type string (for example 'image/jpeg')
|
792
|
+
# @param index [Integer] See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
|
793
|
+
# @return [true,false]
|
794
|
+
def load_stream(*args) end
|
795
|
+
|
796
|
+
# @overload load_file(name, type=Wx::BITMAP_TYPE_ANY, index=-1)
|
797
|
+
# Loads an image from a file.
|
798
|
+
# If no handler type is provided, the library will try to autodetect the format.
|
799
|
+
# @param name [String] Name of the file from which to load the image.
|
800
|
+
# @param type [BitmapType] See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
|
801
|
+
# @param index [Integer] See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
|
802
|
+
# @return [true,false]
|
803
|
+
# @overload load_file(name, mimetype, index=-1)
|
804
|
+
# Loads an image from a file.
|
805
|
+
# If no handler type is provided, the library will try to autodetect the format.
|
806
|
+
# @param name [String] Name of the file from which to load the image.
|
807
|
+
# @param mimetype [String] MIME type string (for example 'image/jpeg')
|
808
|
+
# @param index [Integer] See the description in the LoadFile(wxInputStream&, wxBitmapType, int) overload.
|
809
|
+
# @return [true,false]
|
810
|
+
def load_file(*args) end
|
811
|
+
|
812
|
+
# @overload write(stream, mimetype)
|
813
|
+
# Saves an image in the given stream.
|
814
|
+
# true if the operation succeeded, false otherwise.
|
815
|
+
#
|
816
|
+
# Depending on how wxWidgets has been configured, not all formats may be available.
|
817
|
+
#
|
818
|
+
# 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):
|
819
|
+
#
|
820
|
+
# image.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotspotX);
|
821
|
+
# image.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotspotY);
|
822
|
+
# @see Wx::Image#load_file
|
823
|
+
# @param stream [IO,Wx::OutputStream] Opened output stream to save the image to.
|
824
|
+
# @param mimetype [String] MIME type.
|
825
|
+
# @return [true,false]
|
826
|
+
# @overload write(stream, type)
|
827
|
+
# Saves an image in the given stream.
|
828
|
+
# @param stream [IO,Wx::OutputStream] Opened output stream to save the image to.
|
829
|
+
# @param type [BitmapType] MIME type.
|
830
|
+
# @return [true,false]
|
831
|
+
def write(*args) end
|
832
|
+
|
833
|
+
# @overload save_file(name, type)
|
834
|
+
# Saves an image in the named file.
|
835
|
+
# @param name [String] Name of the file to save the image to.
|
836
|
+
# @param type [BitmapType] Currently these types can be used:
|
837
|
+
# - {Wx::BitmapType::BITMAP_TYPE_BMP}: Save a BMP image file.
|
838
|
+
# - {Wx::BitmapType::BITMAP_TYPE_JPEG}: Save a JPEG image file.
|
839
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PNG}: Save a PNG image file.
|
840
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PCX}: Save a PCX image file (tries to save as 8-bit if possible, falls back to 24-bit otherwise).
|
841
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PNM}: Save a PNM image file (as raw RGB always).
|
842
|
+
# - {Wx::BitmapType::BITMAP_TYPE_TIFF}: Save a TIFF image file.
|
843
|
+
# - {Wx::BitmapType::BITMAP_TYPE_XPM}: Save a XPM image file.
|
844
|
+
# - {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.
|
845
|
+
# - {Wx::BitmapType::BITMAP_TYPE_CUR}: Save a Windows cursor file (CUR).
|
846
|
+
# @return [true,false]
|
847
|
+
# @overload save_file(name, mimetype)
|
848
|
+
# Saves an image in the named file.
|
849
|
+
# @param name [String] Name of the file to save the image to.
|
850
|
+
# @param mimetype [String] MIME type.
|
851
|
+
# @return [true,false]
|
852
|
+
# @overload save_file(name)
|
853
|
+
# Saves an image in the named file.
|
854
|
+
# File type is determined from the extension of the file name. Note that this function may fail if the extension is not recognized! You can use one of the forms above to save images to files with non-standard extensions.
|
855
|
+
# @param name [String] Name of the file to save the image to.
|
856
|
+
# @return [true,false]
|
857
|
+
def save_file(*args) end
|
858
|
+
|
859
|
+
# This function is similar to {Wx::Image#set_data} and has similar restrictions.
|
860
|
+
# The pointer passed to it may however be NULL in which case the function will allocate the alpha array internally this is useful to add alpha channel data to an image which doesn't have any.
|
861
|
+
# If the pointer is not NULL, it must have one byte for each image pixel and be allocated with malloc(). {Wx::Image} takes ownership of the pointer and will free it unless static_data parameter is set to true in this case the caller should do it.
|
862
|
+
# @param alpha [String]
|
863
|
+
# @return [void]
|
864
|
+
def set_alpha_data(alpha=nil) end
|
865
|
+
alias_method :alpha_data=, :set_alpha_data
|
866
|
+
|
867
|
+
# Sets the alpha value for the given pixel.
|
868
|
+
# This function should only be called if the image has alpha channel data, use {Wx::Image#has_alpha} to check for this.
|
869
|
+
# @param x [Integer]
|
870
|
+
# @param y [Integer]
|
871
|
+
# @param alpha [Integer]
|
872
|
+
# @return [void]
|
873
|
+
def set_alpha(x, y, alpha) end
|
874
|
+
alias_method :alpha=, :set_alpha
|
875
|
+
|
876
|
+
# Removes the alpha channel from the image.
|
877
|
+
# This function should only be called if the image has alpha channel data, use {Wx::Image#has_alpha} to check for this.
|
878
|
+
# @return [void]
|
879
|
+
def clear_alpha; end
|
880
|
+
|
881
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
882
|
+
# @param data [String]
|
883
|
+
# @param new_width [Integer]
|
884
|
+
# @param new_height [Integer]
|
885
|
+
# @return [void]
|
886
|
+
def set_rgb_data_with_size(data, new_width, new_height) end
|
887
|
+
alias_method :rgb_data_with_size=, :set_rgb_data_with_size
|
888
|
+
|
889
|
+
# Sets the flags used for loading image files by this object.
|
890
|
+
# 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.
|
891
|
+
# 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:
|
892
|
+
#
|
893
|
+
# wxImage image;
|
894
|
+
# image.SetLoadFlags(image.GetLoadFlags() & ~wxImage::Load_Verbose);
|
895
|
+
# image.LoadFile(...);
|
896
|
+
# @see Wx::Image#load_file
|
897
|
+
# @see Wx::Image#set_load_flags
|
898
|
+
# @see Wx::Image#get_load_flags
|
899
|
+
# @param flags [Integer]
|
900
|
+
# @return [void]
|
901
|
+
def set_load_flags(flags) end
|
902
|
+
alias_method :load_flags=, :set_load_flags
|
903
|
+
|
904
|
+
# Specifies whether there is a mask or not.
|
905
|
+
# The area of the mask is determined by the current mask colour.
|
906
|
+
# @param hasMask [true,false]
|
907
|
+
# @return [void]
|
908
|
+
def set_mask(hasMask=true) end
|
909
|
+
alias_method :mask=, :set_mask
|
910
|
+
|
911
|
+
# Sets the mask colour for this image (and tells the image to use the mask).
|
912
|
+
# @param red [Integer]
|
913
|
+
# @param green [Integer]
|
914
|
+
# @param blue [Integer]
|
915
|
+
# @return [void]
|
916
|
+
def set_mask_colour(red, green, blue) end
|
917
|
+
|
918
|
+
# Sets image's mask so that the pixels that have RGB value of mr,mg,mb in mask will be masked in the image.
|
919
|
+
# This is done by first finding an unused colour in the image, setting this colour as the mask colour and then using this colour to draw all pixels in the image who corresponding pixel in mask has given RGB value.
|
920
|
+
# The parameter mask is the mask image to extract mask shape from. It must have the same dimensions as the image.
|
921
|
+
# The parameters mr, mg, mb are the RGB values of the pixels in mask that will be used to create the mask.
|
922
|
+
# Returns false if mask does not have same dimensions as the image or if there is no unused colour left. Returns true if the mask was successfully applied.
|
923
|
+
#
|
924
|
+
# Note that this method involves computing the histogram, which is a computationally intensive operation.
|
925
|
+
# @param mask [Wx::Image]
|
926
|
+
# @param mr [Integer]
|
927
|
+
# @param mg [Integer]
|
928
|
+
# @param mb [Integer]
|
929
|
+
# @return [true,false]
|
930
|
+
def set_mask_from_image(mask, mr, mg, mb) end
|
931
|
+
|
932
|
+
# @overload set_option(name, value)
|
933
|
+
# Sets a user-defined option.
|
934
|
+
# The function is case-insensitive to name.
|
935
|
+
# For example, when saving as a JPEG file, the option <b>quality</b> is used, which is a number between 0 and 100 (0 is terrible, 100 is very good).
|
936
|
+
# The lists of the currently supported options are in {Wx::Image#get_option} and {Wx::Image#get_option_int} function docs.
|
937
|
+
# @see Wx::Image#get_option
|
938
|
+
# @see Wx::Image#get_option_int
|
939
|
+
# @see Wx::Image#has_option
|
940
|
+
# @param name [String]
|
941
|
+
# @param value [String]
|
942
|
+
# @return [void]
|
943
|
+
# @overload set_option(name, value)
|
944
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
945
|
+
# @param name [String]
|
946
|
+
# @param value [Integer]
|
947
|
+
# @return [void]
|
948
|
+
def set_option(*args) end
|
949
|
+
|
950
|
+
# Associates a palette with the image.
|
951
|
+
# The palette may be used when converting {Wx::Image} to {Wx::Bitmap} (MSW only at present) or in file save operations (none as yet).
|
952
|
+
# @param palette [Wx::Palette]
|
953
|
+
# @return [void]
|
954
|
+
def set_palette(palette) end
|
955
|
+
alias_method :palette=, :set_palette
|
956
|
+
|
957
|
+
# @overload set_rgb(x, y, r, g, b)
|
958
|
+
# Set the color of the pixel at the given x and y coordinate.
|
959
|
+
# @param x [Integer]
|
960
|
+
# @param y [Integer]
|
961
|
+
# @param r [Integer]
|
962
|
+
# @param g [Integer]
|
963
|
+
# @param b [Integer]
|
964
|
+
# @return [void]
|
965
|
+
# @overload set_rgb(rect, red, green, blue)
|
966
|
+
# Sets the colour of the pixels within the given rectangle.
|
967
|
+
# This routine performs bounds-checks for the coordinate so it can be considered a safe way to manipulate the data.
|
968
|
+
# @param rect [Wx::Rect]
|
969
|
+
# @param red [Integer]
|
970
|
+
# @param green [Integer]
|
971
|
+
# @param blue [Integer]
|
972
|
+
# @return [void]
|
973
|
+
def set_rgb(*args) end
|
974
|
+
|
975
|
+
# Set the type of image returned by {Wx::Image#get_type}.
|
976
|
+
# This method is mostly used internally by the library but can also be called from the user code if the image was created from data in the given bitmap format without using {Wx::Image#load_file} (which would set the type correctly automatically).
|
977
|
+
# Notice that the image must be created before this function is called.
|
978
|
+
# @param type [BitmapType] One of bitmap type constants, {Wx::BitmapType::BITMAP_TYPE_INVALID} is a valid value for it and can be used to reset the bitmap type to default but {Wx::BITMAP_TYPE_MAX} is not allowed here.
|
979
|
+
# @return [void]
|
980
|
+
def set_type(type) end
|
981
|
+
alias_method :type=, :set_type
|
982
|
+
|
983
|
+
# Sets the default value for the flags used for loading image files.
|
984
|
+
# This method changes the global value of the flags used for all the subsequently created {Wx::Image} objects by default. It doesn't affect the already existing objects.
|
985
|
+
# By default, the global flags include Load_Verbose flag value.
|
986
|
+
# @see Wx::Image#load_file
|
987
|
+
# @see Wx::Image#set_load_flags
|
988
|
+
# @see Wx::Image.get_default_load_flags
|
989
|
+
# @param flags [Integer]
|
990
|
+
# @return [void]
|
991
|
+
def self.set_default_load_flags(flags) end
|
992
|
+
|
993
|
+
# If the image file contains more than one image and the image handler is capable of retrieving these individually, this function will return the number of available images.
|
994
|
+
# 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.
|
995
|
+
# See Wx::ImageHandler#get_image_count for more info.
|
996
|
+
# The parameter type may be one of the following values:
|
997
|
+
# - {Wx::BitmapType::BITMAP_TYPE_BMP}: Load a Windows bitmap file.
|
998
|
+
# - {Wx::BitmapType::BITMAP_TYPE_GIF}: Load a GIF bitmap file.
|
999
|
+
# - {Wx::BitmapType::BITMAP_TYPE_JPEG}: Load a JPEG bitmap file.
|
1000
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PNG}: Load a PNG bitmap file.
|
1001
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PCX}: Load a PCX bitmap file.
|
1002
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PNM}: Load a PNM bitmap file.
|
1003
|
+
# - {Wx::BitmapType::BITMAP_TYPE_TIFF}: Load a TIFF bitmap file.
|
1004
|
+
# - {Wx::BitmapType::BITMAP_TYPE_TGA}: Load a TGA bitmap file.
|
1005
|
+
# - {Wx::BitmapType::BITMAP_TYPE_XPM}: Load a XPM bitmap file.
|
1006
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ICO}: Load a Windows icon file (ICO).
|
1007
|
+
# - {Wx::BitmapType::BITMAP_TYPE_CUR}: Load a Windows cursor file (CUR).
|
1008
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ANI}: Load a Windows animated cursor file (ANI).
|
1009
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ANY}: Will try to autodetect the format.
|
1010
|
+
#
|
1011
|
+
# 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).
|
1012
|
+
# @param filename [String]
|
1013
|
+
# @param type [BitmapType]
|
1014
|
+
# @return [Integer]
|
1015
|
+
def self.get_image_count(filename, type=Wx::BITMAP_TYPE_ANY) end
|
1016
|
+
|
1017
|
+
# @overload initialize()
|
1018
|
+
# Creates an empty {Wx::Image} object without an alpha channel.
|
1019
|
+
# @return [Image]
|
1020
|
+
# @overload initialize(width, height, clear=true)
|
1021
|
+
# Creates an image with the given size and clears it if requested.
|
1022
|
+
# Does not create an alpha channel.
|
1023
|
+
# @param width [Integer] Specifies the width of the image.
|
1024
|
+
# @param height [Integer] Specifies the height of the image.
|
1025
|
+
# @param clear [true,false] If true, initialize the image to black.
|
1026
|
+
# @return [Image]
|
1027
|
+
# @overload initialize(sz, clear=true)
|
1028
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
1029
|
+
# @param sz [Array(Integer, Integer), Wx::Size]
|
1030
|
+
# @param clear [true,false]
|
1031
|
+
# @return [Image]
|
1032
|
+
# @overload initialize(width, height, data)
|
1033
|
+
# Creates an image from data in memory.
|
1034
|
+
# 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.
|
1035
|
+
# @param width [Integer] Specifies the width of the image.
|
1036
|
+
# @param height [Integer] Specifies the height of the image.
|
1037
|
+
# @param data [String] A pointer to RGB data
|
1038
|
+
# @return [Image]
|
1039
|
+
# @overload initialize(sz, data)
|
1040
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
1041
|
+
# @param sz [Array(Integer, Integer), Wx::Size]
|
1042
|
+
# @param data [String]
|
1043
|
+
# @return [Image]
|
1044
|
+
# @overload initialize(width, height, data, alpha)
|
1045
|
+
# Creates an image from data in memory.
|
1046
|
+
# 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.
|
1047
|
+
# @param width [Integer] Specifies the width of the image.
|
1048
|
+
# @param height [Integer] Specifies the height of the image.
|
1049
|
+
# @param data [String] A pointer to RGB data
|
1050
|
+
# @param alpha [String] A pointer to alpha-channel data
|
1051
|
+
# @return [Image]
|
1052
|
+
# @overload initialize(sz, data, alpha)
|
1053
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
1054
|
+
# @param sz [Array(Integer, Integer), Wx::Size]
|
1055
|
+
# @param data [String]
|
1056
|
+
# @param alpha [String]
|
1057
|
+
# @return [Image]
|
1058
|
+
# @overload initialize(xpmData)
|
1059
|
+
# Creates an image from XPM data.
|
1060
|
+
# <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
|
1061
|
+
# This constructor has become explicit in wxWidgets 3.1.6.
|
1062
|
+
# @param xpmData [char] A pointer to XPM image data.
|
1063
|
+
# @return [Image]
|
1064
|
+
# @overload initialize(name, type=Wx::BITMAP_TYPE_ANY, index=-1)
|
1065
|
+
# Creates an image from a file.
|
1066
|
+
# 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}.
|
1067
|
+
#
|
1068
|
+
# You can use {Wx::Image#get_option_int} to get the hotspot when loading cursor files:
|
1069
|
+
#
|
1070
|
+
# int hotspot_x = image.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_X);
|
1071
|
+
# int hotspot_y = image.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
|
1072
|
+
# @see Wx::Image#load_file
|
1073
|
+
# @param name [String] Name of the file from which to load the image.
|
1074
|
+
# @param type [BitmapType] May be one of the following:
|
1075
|
+
# - {Wx::BitmapType::BITMAP_TYPE_BMP}: Load a Windows bitmap file.
|
1076
|
+
# - {Wx::BitmapType::BITMAP_TYPE_GIF}: Load a GIF bitmap file.
|
1077
|
+
# - {Wx::BitmapType::BITMAP_TYPE_JPEG}: Load a JPEG bitmap file.
|
1078
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PNG}: Load a PNG bitmap file.
|
1079
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PCX}: Load a PCX bitmap file.
|
1080
|
+
# - {Wx::BitmapType::BITMAP_TYPE_PNM}: Load a PNM bitmap file.
|
1081
|
+
# - {Wx::BitmapType::BITMAP_TYPE_TIFF}: Load a TIFF bitmap file.
|
1082
|
+
# - {Wx::BitmapType::BITMAP_TYPE_TGA}: Load a TGA bitmap file.
|
1083
|
+
# - {Wx::BitmapType::BITMAP_TYPE_XPM}: Load a XPM bitmap file.
|
1084
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ICO}: Load a Windows icon file (ICO).
|
1085
|
+
# - {Wx::BitmapType::BITMAP_TYPE_CUR}: Load a Windows cursor file (CUR).
|
1086
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ANI}: Load a Windows animated cursor file (ANI).
|
1087
|
+
# - {Wx::BitmapType::BITMAP_TYPE_ANY}: Will try to autodetect the format.
|
1088
|
+
# @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.
|
1089
|
+
# @return [Image]
|
1090
|
+
# @overload initialize(name, mimetype, index=-1)
|
1091
|
+
# Creates an image from a file using MIME-types to specify the type.
|
1092
|
+
# @param name [String] Name of the file from which to load the image.
|
1093
|
+
# @param mimetype [String] MIME type string (for example 'image/jpeg')
|
1094
|
+
# @param index [Integer] See description in wxImage(const wxString&, wxBitmapType, int) overload.
|
1095
|
+
# @return [Image]
|
1096
|
+
def initialize(*args) end
|
1097
|
+
|
1098
|
+
# Returns the file load flags used for this object.
|
1099
|
+
# See {Wx::Image#set_load_flags} for more information about these flags.
|
1100
|
+
# @return [Integer]
|
1101
|
+
def get_load_flags; end
|
1102
|
+
alias_method :load_flags, :get_load_flags
|
1103
|
+
|
1104
|
+
# @overload self.can_read(filename)
|
1105
|
+
# Returns true if at least one of the available image handlers can read the file with the given name.
|
1106
|
+
# See Wx::ImageHandler::CanRead for more info.
|
1107
|
+
# @param filename [String]
|
1108
|
+
# @return [true,false]
|
1109
|
+
# @overload self.can_read(stream)
|
1110
|
+
# Returns true if at least one of the available image handlers can read the data in the given stream.
|
1111
|
+
# See Wx::ImageHandler::CanRead for more info.
|
1112
|
+
# @param stream [IO,Wx::InputStream]
|
1113
|
+
# @return [true,false]
|
1114
|
+
def self.can_read(*args) end
|
1115
|
+
|
1116
|
+
# Returns the currently used default file load flags.
|
1117
|
+
# See {Wx::Image.set_default_load_flags} for more information about these flags.
|
1118
|
+
# @return [Integer]
|
1119
|
+
def self.get_default_load_flags; end
|
1120
|
+
|
1121
|
+
# Iterates all registered {Wx::ImageHandler} objects, and returns a string containing file extension masks suitable for passing to file open/save dialog boxes.
|
1122
|
+
# 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:
|
1123
|
+
#
|
1124
|
+
# wxFileDialog FileDlg( this, "Choose Image", ::wxGetCwd(), "",
|
1125
|
+
# _("Image Files ") + wxImage::GetImageExtWildcard(),
|
1126
|
+
# wxFD_OPEN );
|
1127
|
+
# @see Wx::ImageHandler
|
1128
|
+
# @return [String]
|
1129
|
+
def self.get_image_ext_wildcard; end
|
1130
|
+
|
1131
|
+
# Converts a color in RGB color space to HSV color space.
|
1132
|
+
# @param rgb [Wx::Image::RGBValue]
|
1133
|
+
# @return [Wx::Image::HSVValue]
|
1134
|
+
def self.rg_bto_hsv(rgb) end
|
1135
|
+
|
1136
|
+
# Converts a color in HSV color space to RGB color space.
|
1137
|
+
# @param hsv [Wx::Image::HSVValue]
|
1138
|
+
# @return [Wx::Image::RGBValue]
|
1139
|
+
def self.hs_vto_rgb(hsv) end
|
1140
|
+
|
1141
|
+
end # Image
|
1142
|
+
|
1143
|
+
|
1144
|
+
end
|