wxruby3 0.9.1-x64-mingw-ucrt → 0.9.3-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/INSTALL.md +35 -29
- data/README.md +24 -15
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/aui/aui_tab_ctrl.rb +18 -0
- data/lib/wx/aui/auinotebook.rb +6 -2
- data/lib/wx/aui/require.rb +1 -0
- data/lib/wx/core/app.rb +2 -2
- data/lib/wx/core/bitmap_combobox.rb +17 -21
- data/lib/wx/core/collapsible_pane.rb +1 -1
- data/lib/wx/core/combobox.rb +13 -3
- data/lib/wx/core/controlwithitems.rb +40 -128
- data/lib/wx/core/enum.rb +17 -1
- data/lib/wx/core/event.rb +6 -1
- data/lib/wx/core/events/evt_list.rb +5 -4
- data/lib/wx/core/evthandler.rb +8 -2
- data/lib/wx/core/generic_validator.rb +312 -0
- data/lib/wx/core/listbox.rb +2 -2
- data/lib/wx/core/log.rb +1 -1
- data/lib/wx/core/menu.rb +10 -0
- data/lib/wx/core/notebook.rb +6 -2
- data/lib/wx/core/owner_drawn_combobox.rb +45 -0
- data/lib/wx/core/size.rb +4 -0
- data/lib/wx/core/sizer.rb +12 -2
- data/lib/wx/core/standard_paths.rb +22 -0
- data/lib/wx/core/task_bar_button.rb +19 -0
- data/lib/wx/core/text_entry.rb +4 -1
- data/lib/wx/core/textctrl.rb +11 -1
- data/lib/wx/core/{treectrl.rb → tree_ctrl.rb} +31 -12
- data/lib/wx/core/validator.rb +70 -5
- data/lib/wx/core/window.rb +13 -7
- data/lib/wx/doc/app.rb +48 -38
- data/lib/wx/doc/art_locator.rb +48 -43
- data/lib/wx/doc/aui/auimanager.rb +16 -8
- data/lib/wx/doc/aui/auinotebook.rb +20 -5
- data/lib/wx/doc/clipboard.rb +11 -7
- data/lib/wx/doc/colour_dialog.rb +14 -10
- data/lib/wx/doc/comboctrl.rb +18 -0
- data/lib/wx/doc/controlwithitems.rb +34 -8
- data/lib/wx/doc/data_object.rb +2 -2
- data/lib/wx/doc/date_picker_ctrl.rb +23 -0
- data/lib/wx/doc/editable_listbox.rb +44 -0
- data/lib/wx/doc/enum.rb +15 -0
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/evthandler.rb +113 -108
- data/lib/wx/doc/extra/12_client_data.md +89 -0
- data/lib/wx/doc/extra/13_validators.md +139 -0
- data/lib/wx/doc/font.rb +1 -0
- data/lib/wx/doc/gc_dc.rb +6 -1
- data/lib/wx/doc/gdi_common.rb +4 -0
- data/lib/wx/doc/gen/about_dialog_info.rb +26 -2
- data/lib/wx/doc/gen/accelerator.rb +19 -4
- data/lib/wx/doc/gen/accessible.rb +48 -47
- data/lib/wx/doc/gen/activity_indicator.rb +10 -4
- data/lib/wx/doc/gen/animation.rb +19 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +16 -7
- data/lib/wx/doc/gen/any_button.rb +22 -1
- data/lib/wx/doc/gen/app.rb +41 -5
- data/lib/wx/doc/gen/app_traits.rb +65 -15
- data/lib/wx/doc/gen/art_provider.rb +33 -7
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +18 -3
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +35 -8
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +11 -4
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +4 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +3 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +8 -1
- data/lib/wx/doc/gen/aui/aui_notebook.rb +31 -7
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +5 -4
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +38 -2
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +9 -3
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -1
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +20 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +4 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -7
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +5 -1
- data/lib/wx/doc/gen/aui/event_list.rb +164 -160
- data/lib/wx/doc/gen/banner_window.rb +8 -1
- data/lib/wx/doc/gen/bitmap.rb +94 -16
- data/lib/wx/doc/gen/bitmap_button.rb +16 -8
- data/lib/wx/doc/gen/bitmap_combo_box.rb +20 -10
- data/lib/wx/doc/gen/book_ctrl_base.rb +31 -4
- data/lib/wx/doc/gen/book_ctrl_event.rb +9 -3
- data/lib/wx/doc/gen/box_sizer.rb +5 -1
- data/lib/wx/doc/gen/brush.rb +20 -2
- data/lib/wx/doc/gen/busy_info.rb +10 -2
- data/lib/wx/doc/gen/button.rb +31 -11
- data/lib/wx/doc/gen/calculate_layout_event.rb +5 -3
- data/lib/wx/doc/gen/calendar_ctrl.rb +38 -13
- data/lib/wx/doc/gen/calendar_date_attr.rb +2 -1
- data/lib/wx/doc/gen/calendar_event.rb +5 -2
- data/lib/wx/doc/gen/caret.rb +3 -1
- data/lib/wx/doc/gen/check_box.rb +17 -7
- data/lib/wx/doc/gen/check_list_box.rb +8 -6
- data/lib/wx/doc/gen/choice.rb +28 -9
- data/lib/wx/doc/gen/choicebook.rb +7 -7
- data/lib/wx/doc/gen/client_dc.rb +6 -2
- data/lib/wx/doc/gen/clipboard.rb +16 -3
- data/lib/wx/doc/gen/collapsible_pane.rb +9 -7
- data/lib/wx/doc/gen/collapsible_pane_event.rb +3 -3
- data/lib/wx/doc/gen/colour.rb +28 -4
- data/lib/wx/doc/gen/colour_dialog.rb +15 -7
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +13 -10
- data/lib/wx/doc/gen/colour_picker_event.rb +5 -5
- data/lib/wx/doc/gen/combo_box.rb +36 -14
- data/lib/wx/doc/gen/combo_ctrl.rb +117 -295
- data/lib/wx/doc/gen/command_link_button.rb +12 -5
- data/lib/wx/doc/gen/context_help_button.rb +13 -3
- data/lib/wx/doc/gen/control.rb +22 -8
- data/lib/wx/doc/gen/control_with_items.rb +45 -10
- data/lib/wx/doc/gen/core.rb +4 -4
- data/lib/wx/doc/gen/cursor.rb +10 -8
- data/lib/wx/doc/gen/data_format.rb +7 -1
- data/lib/wx/doc/gen/data_object.rb +42 -18
- data/lib/wx/doc/gen/date_event.rb +3 -2
- data/lib/wx/doc/gen/date_picker_ctrl.rb +18 -8
- data/lib/wx/doc/gen/dc.rb +238 -36
- data/lib/wx/doc/gen/defs.rb +51 -51
- data/lib/wx/doc/gen/dial_up_event.rb +2 -1
- data/lib/wx/doc/gen/dial_up_manager.rb +25 -5
- data/lib/wx/doc/gen/dialog.rb +72 -13
- data/lib/wx/doc/gen/dir_dialog.rb +22 -5
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -10
- data/lib/wx/doc/gen/drag_drop.rb +28 -7
- data/lib/wx/doc/gen/drag_image.rb +13 -2
- data/lib/wx/doc/gen/editable_list_box.rb +7 -5
- data/lib/wx/doc/gen/event.rb +57 -26
- data/lib/wx/doc/gen/event_blocker.rb +2 -3
- data/lib/wx/doc/gen/event_filter.rb +3 -0
- data/lib/wx/doc/gen/event_list.rb +1656 -1652
- data/lib/wx/doc/gen/events.rb +305 -173
- data/lib/wx/doc/gen/evt_handler.rb +49 -3
- data/lib/wx/doc/gen/ext_help_controller.rb +10 -1
- data/lib/wx/doc/gen/file_ctrl.rb +28 -10
- data/lib/wx/doc/gen/file_ctrl_event.rb +7 -4
- data/lib/wx/doc/gen/file_dialog.rb +44 -14
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +19 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +11 -3
- data/lib/wx/doc/gen/file_dir_picker_event.rb +4 -4
- data/lib/wx/doc/gen/file_picker_ctrl.rb +12 -9
- data/lib/wx/doc/gen/file_system.rb +54 -15
- data/lib/wx/doc/gen/find_dialog_event.rb +6 -4
- data/lib/wx/doc/gen/find_replace_data.rb +2 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +4 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +13 -1
- data/lib/wx/doc/gen/font.rb +103 -20
- data/lib/wx/doc/gen/font_data.rb +16 -3
- data/lib/wx/doc/gen/font_dialog.rb +6 -1
- data/lib/wx/doc/gen/font_picker_ctrl.rb +14 -7
- data/lib/wx/doc/gen/font_picker_event.rb +3 -3
- data/lib/wx/doc/gen/frame.rb +73 -15
- data/lib/wx/doc/gen/fs_file.rb +39 -10
- data/lib/wx/doc/gen/gauge.rb +19 -8
- data/lib/wx/doc/gen/gb_sizer_item.rb +5 -1
- data/lib/wx/doc/gen/gcdc.rb +3 -2
- data/lib/wx/doc/gen/gdi_common.rb +80 -11
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
- data/lib/wx/doc/gen/graphics_context.rb +86 -10
- data/lib/wx/doc/gen/graphics_object.rb +35 -6
- data/lib/wx/doc/gen/grid/event_list.rb +168 -164
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +3 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +16 -3
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +10 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +7 -1
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +256 -12
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +6 -4
- data/lib/wx/doc/gen/grid/grid_event.rb +6 -4
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +4 -4
- data/lib/wx/doc/gen/grid/grid_size_event.rb +4 -4
- data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +28 -3
- data/lib/wx/doc/gen/grid/grid_table_message.rb +2 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +21 -7
- data/lib/wx/doc/gen/grid_sizer.rb +11 -1
- data/lib/wx/doc/gen/gui_event_loop.rb +13 -3
- data/lib/wx/doc/gen/header_ctrl.rb +110 -11
- data/lib/wx/doc/gen/header_ctrl_event.rb +4 -2
- data/lib/wx/doc/gen/help_controller.rb +14 -3
- data/lib/wx/doc/gen/help_provider.rb +22 -4
- data/lib/wx/doc/gen/html/event_list.rb +41 -37
- data/lib/wx/doc/gen/html/html_cell.rb +48 -6
- data/lib/wx/doc/gen/html/html_cell_event.rb +5 -4
- data/lib/wx/doc/gen/html/html_easy_printing.rb +20 -3
- data/lib/wx/doc/gen/html/html_help_controller.rb +26 -2
- data/lib/wx/doc/gen/html/html_help_data.rb +8 -1
- data/lib/wx/doc/gen/html/html_help_window.rb +9 -1
- data/lib/wx/doc/gen/html/html_link_event.rb +3 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +54 -16
- data/lib/wx/doc/gen/html/html_printout.rb +7 -1
- data/lib/wx/doc/gen/html/html_window.rb +43 -6
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +9 -8
- data/lib/wx/doc/gen/hyperlink_event.rb +3 -3
- data/lib/wx/doc/gen/icon.rb +23 -29
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +143 -20
- data/lib/wx/doc/gen/image_list.rb +25 -6
- data/lib/wx/doc/gen/info_bar.rb +14 -2
- data/lib/wx/doc/gen/keyboard_state.rb +11 -1
- data/lib/wx/doc/gen/list_box.rb +46 -17
- data/lib/wx/doc/gen/list_ctrl.rb +165 -29
- data/lib/wx/doc/gen/list_event.rb +13 -4
- data/lib/wx/doc/gen/listbook.rb +7 -7
- data/lib/wx/doc/gen/locale.rb +68 -4
- data/lib/wx/doc/gen/log.rb +58 -12
- data/lib/wx/doc/gen/mdi_client_window.rb +11 -2
- data/lib/wx/doc/gen/mdi_frame.rb +51 -7
- data/lib/wx/doc/gen/media_ctrl.rb +43 -18
- data/lib/wx/doc/gen/media_event.rb +6 -4
- data/lib/wx/doc/gen/memory_dc.rb +16 -6
- data/lib/wx/doc/gen/menu.rb +81 -26
- data/lib/wx/doc/gen/menu_bar.rb +74 -15
- data/lib/wx/doc/gen/menu_item.rb +67 -19
- data/lib/wx/doc/gen/message_dialog.rb +17 -8
- data/lib/wx/doc/gen/mini_frame.rb +14 -5
- data/lib/wx/doc/gen/mirror_dc.rb +1 -2
- data/lib/wx/doc/gen/mouse_state.rb +1 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +9 -4
- data/lib/wx/doc/gen/non_owned_window.rb +4 -1
- data/lib/wx/doc/gen/notebook.rb +27 -9
- data/lib/wx/doc/gen/num_validator.rb +37 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +5 -1
- data/lib/wx/doc/gen/object.rb +3 -1
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +340 -0
- data/lib/wx/doc/gen/paint_dc.rb +1 -1
- data/lib/wx/doc/gen/palette.rb +5 -1
- data/lib/wx/doc/gen/panel.rb +25 -8
- data/lib/wx/doc/gen/pen.rb +46 -8
- data/lib/wx/doc/gen/pg/event_list.rb +97 -93
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +4 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +12 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +11 -3
- data/lib/wx/doc/gen/pg/pg_editor.rb +161 -16
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -2
- data/lib/wx/doc/gen/pg/pg_properties.rb +632 -83
- data/lib/wx/doc/gen/pg/pg_property.rb +381 -77
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +11 -4
- data/lib/wx/doc/gen/pg/property_grid.rb +123 -20
- data/lib/wx/doc/gen/pg/property_grid_event.rb +41 -9
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +273 -34
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +62 -10
- data/lib/wx/doc/gen/pg/property_grid_page.rb +33 -8
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +18 -4
- data/lib/wx/doc/gen/picker_base.rb +22 -5
- data/lib/wx/doc/gen/platform_info.rb +35 -9
- data/lib/wx/doc/gen/popup_window.rb +7 -5
- data/lib/wx/doc/gen/progress_dialog.rb +5 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -4
- data/lib/wx/doc/gen/prt/event_list.rb +8 -4
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +3 -1
- data/lib/wx/doc/gen/prt/post_script_dc.rb +3 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +5 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +4 -0
- data/lib/wx/doc/gen/prt/print_data.rb +31 -3
- data/lib/wx/doc/gen/prt/print_dialog.rb +5 -1
- data/lib/wx/doc/gen/prt/printer.rb +87 -11
- data/lib/wx/doc/gen/prt/printer_dc.rb +3 -1
- data/lib/wx/doc/gen/query_layout_info_event.rb +10 -3
- data/lib/wx/doc/gen/radio_box.rb +28 -10
- data/lib/wx/doc/gen/radio_button.rb +22 -9
- data/lib/wx/doc/gen/rbn/event_list.rb +127 -123
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +82 -3
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +26 -4
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +3 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +50 -12
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +3 -2
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -1
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +21 -11
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -1
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +16 -4
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +3 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +27 -3
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +3 -1
- data/lib/wx/doc/gen/rearrange_ctrl.rb +5 -2
- data/lib/wx/doc/gen/rearrange_list.rb +12 -4
- data/lib/wx/doc/gen/region.rb +104 -17
- data/lib/wx/doc/gen/region_iterator.rb +1 -1
- data/lib/wx/doc/gen/rtc/event_list.rb +116 -112
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +27 -9
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +45 -11
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +23 -14
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +84 -7
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +8 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +8 -2
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +8 -3
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -2
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -3
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +7 -2
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +82 -17
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +54 -11
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +15 -2
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +14 -9
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +4 -1
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +4 -3
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +13 -4
- data/lib/wx/doc/gen/sash_layout_window.rb +21 -4
- data/lib/wx/doc/gen/sash_window.rb +6 -4
- data/lib/wx/doc/gen/screen_dc.rb +1 -1
- data/lib/wx/doc/gen/scroll_bar.rb +28 -10
- data/lib/wx/doc/gen/scrolled_canvas.rb +48 -10
- data/lib/wx/doc/gen/scrolled_control.rb +48 -10
- data/lib/wx/doc/gen/scrolled_window.rb +48 -10
- data/lib/wx/doc/gen/search_ctrl.rb +14 -9
- data/lib/wx/doc/gen/simplebook.rb +8 -1
- data/lib/wx/doc/gen/single_choice_dialog.rb +9 -4
- data/lib/wx/doc/gen/sizer.rb +91 -16
- data/lib/wx/doc/gen/sizer_item.rb +21 -4
- data/lib/wx/doc/gen/slider.rb +50 -17
- data/lib/wx/doc/gen/spin_button.rb +24 -10
- data/lib/wx/doc/gen/spin_ctrl.rb +35 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +13 -7
- data/lib/wx/doc/gen/spin_double_event.rb +6 -4
- data/lib/wx/doc/gen/spin_event.rb +4 -3
- data/lib/wx/doc/gen/splash_screen.rb +3 -2
- data/lib/wx/doc/gen/splitter_event.rb +12 -4
- data/lib/wx/doc/gen/splitter_window.rb +100 -18
- data/lib/wx/doc/gen/static_bitmap.rb +109 -7
- data/lib/wx/doc/gen/static_box.rb +15 -7
- data/lib/wx/doc/gen/static_box_sizer.rb +3 -2
- data/lib/wx/doc/gen/static_line.rb +7 -4
- data/lib/wx/doc/gen/static_text.rb +10 -6
- data/lib/wx/doc/gen/status_bar.rb +32 -8
- data/lib/wx/doc/gen/stc/event_list.rb +212 -208
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +207 -13
- data/lib/wx/doc/gen/stc/styled_text_event.rb +31 -6
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +7 -1
- data/lib/wx/doc/gen/svg_file_dc.rb +15 -7
- data/lib/wx/doc/gen/system_options.rb +14 -6
- data/lib/wx/doc/gen/system_settings.rb +9 -3
- data/lib/wx/doc/gen/task_bar_button.rb +324 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +26 -8
- data/lib/wx/doc/gen/task_bar_icon_event.rb +5 -3
- data/lib/wx/doc/gen/text_attr.rb +47 -5
- data/lib/wx/doc/gen/text_ctrl.rb +114 -25
- data/lib/wx/doc/gen/text_entry.rb +69 -11
- data/lib/wx/doc/gen/text_entry_dialog.rb +14 -2
- data/lib/wx/doc/gen/text_validator.rb +58 -9
- data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -6
- data/lib/wx/doc/gen/timer.rb +14 -2
- data/lib/wx/doc/gen/timer_event.rb +2 -2
- data/lib/wx/doc/gen/tip_provider.rb +6 -1
- data/lib/wx/doc/gen/toggle_button.rb +73 -6
- data/lib/wx/doc/gen/tool_bar.rb +141 -25
- data/lib/wx/doc/gen/tool_tip.rb +41 -5
- data/lib/wx/doc/gen/toolbook.rb +6 -4
- data/lib/wx/doc/gen/top_level_window.rb +100 -23
- data/lib/wx/doc/gen/tree_ctrl.rb +89 -16
- data/lib/wx/doc/gen/tree_event.rb +9 -4
- data/lib/wx/doc/gen/treebook.rb +16 -4
- data/lib/wx/doc/gen/ui_action_simulator.rb +10 -2
- data/lib/wx/doc/gen/utils.rb +94 -7
- data/lib/wx/doc/gen/v_list_box.rb +27 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +21 -4
- data/lib/wx/doc/gen/validator.rb +10 -14
- data/lib/wx/doc/gen/variant.rb +7 -0
- data/lib/wx/doc/gen/window.rb +415 -57
- data/lib/wx/doc/gen/window_dc.rb +2 -1
- data/lib/wx/doc/gen/window_disabler.rb +6 -2
- data/lib/wx/doc/gen/with_images.rb +13 -2
- data/lib/wx/doc/gen/wizard.rb +22 -4
- data/lib/wx/doc/gen/wizard_event.rb +5 -4
- data/lib/wx/doc/gen/wizard_page.rb +7 -2
- data/lib/wx/doc/gen/wizard_page_simple.rb +5 -1
- data/lib/wx/doc/gen/wrap_sizer.rb +5 -1
- data/lib/wx/doc/gen/xml_node.rb +33 -4
- data/lib/wx/doc/gen/xml_resource.rb +40 -5
- data/lib/wx/doc/generic_validator.rb +95 -0
- data/lib/wx/doc/graphics_context.rb +1 -0
- data/lib/wx/doc/grid/grid.rb +22 -1
- data/lib/wx/doc/help_controller.rb +11 -7
- data/lib/wx/doc/html/html_help_controller.rb +12 -4
- data/lib/wx/doc/html/simple_html_listbox.rb +22 -0
- data/lib/wx/doc/list_ctrl.rb +33 -29
- data/lib/wx/doc/menu.rb +20 -0
- data/lib/wx/doc/notebook.rb +21 -0
- data/lib/wx/doc/num_validator.rb +387 -0
- data/lib/wx/doc/owner_drawn_combobox.rb +96 -0
- data/lib/wx/doc/pg/events.rb +13 -9
- data/lib/wx/doc/pg/numeric_property_validator.rb +33 -0
- data/lib/wx/doc/pg/pg_property.rb +18 -0
- data/lib/wx/doc/progress_dialog.rb +36 -32
- data/lib/wx/doc/prt/page_setup_dialog.rb +20 -12
- data/lib/wx/doc/prt/print_data.rb +13 -5
- data/lib/wx/doc/prt/print_dialog.rb +31 -23
- data/lib/wx/doc/prt/printer.rb +20 -12
- data/lib/wx/doc/radio_box.rb +19 -15
- data/lib/wx/doc/rbn/ribbon_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_gallery.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +13 -5
- data/lib/wx/doc/region_iterator.rb +32 -28
- data/lib/wx/doc/rtc/rich_text_composite_object.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_ctrl.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_paragraph.rb +24 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +27 -19
- data/lib/wx/doc/rtc/richtext_printing.rb +17 -9
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +17 -9
- data/lib/wx/doc/sizer.rb +20 -0
- data/lib/wx/doc/static_bitmap.rb +25 -0
- data/lib/wx/doc/stc/styled_text_ctrl.rb +24 -0
- data/lib/wx/doc/stream.rb +39 -35
- data/lib/wx/doc/system_settings.rb +30 -26
- data/lib/wx/doc/text_validator.rb +23 -9
- data/lib/wx/doc/textctrl.rb +16 -0
- data/lib/wx/doc/tree_ctrl.rb +95 -0
- data/lib/wx/doc/treebook.rb +9 -5
- data/lib/wx/doc/v_list_box.rb +9 -5
- data/lib/wx/doc/validator.rb +113 -0
- data/lib/wx/doc/variant.rb +164 -160
- data/lib/wx/doc/window.rb +87 -47
- data/lib/wx/doc/window_disabler.rb +10 -6
- data/lib/wx/grid/grid.rb +27 -4
- data/lib/wx/html/events/evt_list.rb +0 -10
- data/lib/wx/html/simple_html_listbox.rb +24 -91
- data/lib/wx/keyword_defs.rb +34 -2
- data/lib/wx/pg/pg_property.rb +22 -0
- data/lib/wx/rbn/ribbon_gallery.rb +0 -21
- data/lib/wx/rtc/require.rb +3 -0
- data/lib/wx/rtc/rich_text_composite_object.rb +25 -0
- data/lib/wx/rtc/rich_text_ctrl.rb +25 -0
- data/lib/wx/rtc/rich_text_paragraph.rb +25 -0
- data/lib/wx/stc/require.rb +1 -0
- data/lib/wx/stc/styled_text_ctrl.rb +25 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/lib/config/linux.rb +0 -3
- data/rakelib/lib/config/macosx.rb +2 -2
- data/rakelib/lib/config/mingw.rb +13 -1
- data/rakelib/lib/config/unixish.rb +1 -1
- data/rakelib/lib/config.rb +14 -4
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +74 -2
- data/rakelib/yard/templates/default/fulldoc/html/full_list.erb +38 -0
- data/rakelib/yard/templates/default/fulldoc/html/setup.rb +39 -0
- data/rakelib/yard/templates/default/tags/html/wxrb_require.erb +10 -0
- data/rakelib/yard/templates/default/tags/setup.rb +16 -0
- data/rakelib/yard/yard-custom-templates.rb +3 -0
- data/samples/aui/aui.rb +1237 -1233
- data/samples/calendar/calendar.rb +293 -289
- data/samples/controls/get_item_sample.rb +83 -79
- data/samples/controls/htlbox.rb +331 -327
- data/samples/dialogs/dialogs.rb +682 -694
- data/samples/dialogs/wizard.rb +52 -55
- data/samples/dragdrop/dragdrop.rb +146 -142
- data/samples/drawing/bitmap.rb +29 -26
- data/samples/drawing/bitmap_image.rb +84 -80
- data/samples/drawing/graphics_drawing.rb +209 -205
- data/samples/drawing/image_prt.rb +344 -340
- data/samples/drawing/maths_images.rb +18 -1
- data/samples/drawing/rmagic_bitmap_image.rb +88 -84
- data/samples/etc/caret.rb +306 -0
- data/samples/etc/miniframe.rb +65 -60
- data/samples/etc/sash.rb +109 -105
- data/samples/etc/scrollwin.rb +86 -80
- data/samples/etc/system_settings.rb +216 -209
- data/samples/event/activation.rb +72 -67
- data/samples/event/event.rb +160 -153
- data/samples/event/threaded.rb +8 -1
- data/samples/event/update_ui_event.rb +67 -60
- data/samples/grid/grid.rb +188 -181
- data/samples/grid/gridtablebase.rb +136 -129
- data/samples/html/html.rb +208 -204
- data/samples/mdi/mdi.rb +59 -54
- data/samples/minimal/minimal.rb +54 -51
- data/samples/minimal/nothing.rb +1 -0
- data/samples/printing/printing.rb +367 -377
- data/samples/printing/printing2.rb +203 -198
- data/samples/propgrid/propgrid.rb +2312 -2308
- data/samples/propgrid/propgrid_minimal.rb +57 -50
- data/samples/ribbon/ribbon.rb +780 -774
- data/samples/sampler/ext.rb +0 -33
- data/samples/sampler/sample.rb +4 -9
- data/samples/sampler.rb +1 -1
- data/samples/splash/splash.rb +118 -116
- data/samples/text/rich_textctrl.rb +207 -201
- data/samples/text/richtext.rb +1409 -1405
- data/samples/text/scintilla.rb +137 -128
- data/samples/text/textctrl.rb +89 -83
- data/samples/text/unicode.rb +175 -168
- data/samples/treectrl/treectrl.rb +1430 -1426
- data/samples/widgets/activityindicator.rb +95 -0
- data/samples/widgets/art/widgets/activityindicator.xpm +278 -0
- data/samples/widgets/art/widgets/bmpbtn.xpm +37 -0
- data/samples/widgets/art/widgets/bmpcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/button.xpm +54 -0
- data/samples/widgets/art/widgets/checkbox.xpm +54 -0
- data/samples/{bigdemo/icons → widgets/art/widgets}/choice.xpm +1 -1
- data/samples/widgets/art/widgets/choicebk.xpm +54 -0
- data/samples/widgets/art/widgets/clrpicker.xpm +193 -0
- data/samples/widgets/art/widgets/combobox.xpm +54 -0
- data/samples/widgets/art/widgets/datepick.xpm +200 -0
- data/samples/widgets/art/widgets/dirctrl.xpm +54 -0
- data/samples/widgets/art/widgets/dirpicker.xpm +213 -0
- data/samples/widgets/art/widgets/filepicker.xpm +214 -0
- data/samples/widgets/art/widgets/fontpicker.xpm +185 -0
- data/samples/widgets/art/widgets/gauge.xpm +54 -0
- data/samples/widgets/art/widgets/header.xpm +54 -0
- data/samples/widgets/art/widgets/hyperlnk.xpm +54 -0
- data/samples/widgets/art/widgets/listbook.xpm +54 -0
- data/samples/widgets/art/widgets/listbox.xpm +54 -0
- data/samples/widgets/art/widgets/native.xpm +81 -0
- data/samples/widgets/art/widgets/notebook.xpm +54 -0
- data/samples/widgets/art/widgets/odcombobox.xpm +54 -0
- data/samples/widgets/art/widgets/radiobox.xpm +54 -0
- data/samples/widgets/art/widgets/scrolbar.xpm +54 -0
- data/samples/widgets/art/widgets/slider.xpm +54 -0
- data/samples/widgets/art/widgets/spinbtn.xpm +40 -0
- data/samples/widgets/art/widgets/statbmp.xpm +40 -0
- data/samples/widgets/art/widgets/statbox.xpm +54 -0
- data/samples/widgets/art/widgets/stattext.xpm +54 -0
- data/samples/widgets/art/widgets/text.xpm +54 -0
- data/samples/widgets/art/widgets/timepick.xpm +207 -0
- data/samples/widgets/art/widgets/toggle.xpm +54 -0
- data/samples/widgets/art/widgets/toucan.png +0 -0
- data/samples/widgets/bmpcombobox.rb +651 -0
- data/samples/widgets/button.rb +462 -0
- data/samples/widgets/checkbox.rb +211 -0
- data/samples/widgets/choice.rb +287 -0
- data/samples/widgets/clrpicker.rb +156 -0
- data/samples/widgets/combobox.rb +516 -0
- data/samples/widgets/datepick.rb +215 -0
- data/samples/widgets/dirctrl.rb +265 -0
- data/samples/widgets/dirpicker.rb +158 -0
- data/samples/widgets/editlbox.rb +122 -0
- data/samples/widgets/filectrl.rb +216 -0
- data/samples/widgets/filepicker.rb +214 -0
- data/samples/widgets/fontpicker.rb +135 -0
- data/samples/widgets/gauge.rb +311 -0
- data/samples/widgets/headerctrl.rb +236 -0
- data/samples/widgets/hyperlink.rb +203 -0
- data/samples/widgets/itemcontainer.rb +185 -0
- data/samples/widgets/listbox.rb +473 -0
- data/samples/widgets/notebook.rb +488 -0
- data/samples/widgets/odcombobox.rb +608 -0
- data/samples/widgets/radiobox.rb +328 -0
- data/samples/widgets/searchctrl.rb +159 -0
- data/samples/widgets/slider.rb +594 -0
- data/samples/widgets/spinbtn.rb +443 -0
- data/samples/widgets/statbmp.rb +130 -0
- data/samples/widgets/static.rb +436 -0
- data/samples/widgets/textctrl.rb +700 -0
- data/samples/widgets/timepick.rb +148 -0
- data/samples/widgets/tn_widgets.png +0 -0
- data/samples/widgets/toggle.rb +385 -0
- data/samples/widgets/widgets.rb +1233 -0
- data/samples/xrc/custom_xrc_sample.rb +47 -41
- data/samples/xrc/xrc_sample.rb +53 -47
- data/tests/media/beep_lo.wav +0 -0
- data/tests/test_event_handling.rb +52 -34
- data/tests/test_events.rb +7 -0
- data/tests/test_item_data.rb +24 -0
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_media_ctrl.rb +38 -0
- data/tests/test_menu.rb +69 -0
- data/tests/test_pg.rb +27 -0
- data/tests/test_richtext.rb +45 -0
- data/tests/test_sizer.rb +59 -0
- data/tests/test_std_controls.rb +42 -1
- data/tests/test_styled_text_ctrl.rb +46 -0
- data/tests/test_tree_ctrl.rb +138 -0
- data/tests/test_validators.rb +805 -0
- data/tests/test_window.rb +12 -0
- data/tests/testapp_noframe.rb +1 -1
- metadata +113 -138
- data/lib/wx/core/choice.rb +0 -14
- data/lib/wx/core/combo_ctrl.rb +0 -110
- data/samples/bigdemo/About.rbw +0 -39
- data/samples/bigdemo/ColorPanel.rbw +0 -23
- data/samples/bigdemo/GridSimple.rbw +0 -78
- data/samples/bigdemo/MDIDemo.rbw +0 -57
- data/samples/bigdemo/PopupMenu.rbw +0 -146
- data/samples/bigdemo/ShapedWindow.rbw +0 -128
- data/samples/bigdemo/Sizers.rbw +0 -541
- data/samples/bigdemo/bigdemo.rb +0 -817
- data/samples/bigdemo/demoTemplate.rbw +0 -33
- 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/combo.bmp +0 -0
- data/samples/bigdemo/icons/combo.xpm +0 -27
- data/samples/bigdemo/icons/copy.xpm +0 -25
- data/samples/bigdemo/icons/cut.xpm +0 -24
- data/samples/bigdemo/icons/gauge.bmp +0 -0
- data/samples/bigdemo/icons/gauge.xpm +0 -27
- data/samples/bigdemo/icons/help.xpm +0 -25
- data/samples/bigdemo/icons/list.bmp +0 -0
- data/samples/bigdemo/icons/list.xpm +0 -27
- data/samples/bigdemo/icons/mondrian.ico +0 -0
- data/samples/bigdemo/icons/mondrian.xpm +0 -44
- data/samples/bigdemo/icons/new.xpm +0 -24
- data/samples/bigdemo/icons/ogl.ico +0 -0
- data/samples/bigdemo/icons/ogl.xpm +0 -45
- data/samples/bigdemo/icons/open.xpm +0 -26
- data/samples/bigdemo/icons/paste.bmp +0 -0
- data/samples/bigdemo/icons/paste.xpm +0 -38
- data/samples/bigdemo/icons/pointy.png +0 -0
- data/samples/bigdemo/icons/preview.xpm +0 -26
- data/samples/bigdemo/icons/print.xpm +0 -26
- data/samples/bigdemo/icons/radio.bmp +0 -0
- data/samples/bigdemo/icons/radio.xpm +0 -27
- data/samples/bigdemo/icons/robert.xpm +0 -415
- data/samples/bigdemo/icons/sashtest.ico +0 -0
- data/samples/bigdemo/icons/save.xpm +0 -25
- data/samples/bigdemo/icons/smiles.bmp +0 -0
- data/samples/bigdemo/icons/smiles.xpm +0 -39
- data/samples/bigdemo/icons/smiley.ico +0 -0
- data/samples/bigdemo/icons/smiley.xpm +0 -42
- data/samples/bigdemo/icons/stattext.xpm +0 -24
- data/samples/bigdemo/icons/test2.bmp +0 -0
- data/samples/bigdemo/icons/test2.png +0 -0
- data/samples/bigdemo/icons/test2.xpm +0 -79
- data/samples/bigdemo/icons/text.bmp +0 -0
- data/samples/bigdemo/icons/text.xpm +0 -27
- data/samples/bigdemo/icons/tog1.bmp +0 -0
- data/samples/bigdemo/icons/tog1.xpm +0 -38
- data/samples/bigdemo/icons/tog2.bmp +0 -0
- data/samples/bigdemo/icons/tog2.xpm +0 -38
- 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 +0 -25
- data/samples/bigdemo/icons/wxwin32x32.png +0 -0
- data/samples/bigdemo/icons/wxwin48x48.png +0 -0
- data/samples/bigdemo/run.rb +0 -98
- data/samples/bigdemo/tips.txt +0 -7
- data/samples/bigdemo/utils.rb +0 -20
- data/samples/bigdemo/wxArtProvider.rbw +0 -282
- data/samples/bigdemo/wxBitmapButton.rbw +0 -65
- data/samples/bigdemo/wxButton.rbw +0 -64
- data/samples/bigdemo/wxCalendarCtrl.rbw +0 -59
- data/samples/bigdemo/wxCheckBox.rbw +0 -50
- data/samples/bigdemo/wxCheckListBox.rbw +0 -65
- data/samples/bigdemo/wxChoice.rbw +0 -47
- data/samples/bigdemo/wxChoicebook.rbw +0 -78
- data/samples/bigdemo/wxColourDialog.rbw +0 -33
- data/samples/bigdemo/wxComboBox.rbw +0 -77
- data/samples/bigdemo/wxCursor.rbw +0 -136
- data/samples/bigdemo/wxDialog.rbw +0 -74
- data/samples/bigdemo/wxDirDialog.rbw +0 -29
- data/samples/bigdemo/wxDragImage.rbw +0 -70
- data/samples/bigdemo/wxFileDialog.rbw +0 -37
- data/samples/bigdemo/wxFileDialog_Save.rbw +0 -35
- data/samples/bigdemo/wxFindReplaceDialog.rbw +0 -82
- data/samples/bigdemo/wxFontDialog.rbw +0 -200
- data/samples/bigdemo/wxFrame.rbw +0 -53
- data/samples/bigdemo/wxGauge.rbw +0 -65
- data/samples/bigdemo/wxGenericDirCtrl.rbw +0 -74
- data/samples/bigdemo/wxGrid.rbw +0 -66
- data/samples/bigdemo/wxHtmlHelpController.rbw +0 -52
- data/samples/bigdemo/wxListBox.rbw +0 -140
- data/samples/bigdemo/wxListCtrl_virtual.rbw +0 -112
- data/samples/bigdemo/wxMDIWindows.rbw +0 -50
- data/samples/bigdemo/wxMenu.rbw +0 -247
- data/samples/bigdemo/wxMessageDialog.rbw +0 -27
- data/samples/bigdemo/wxMiniFrame.rbw +0 -70
- data/samples/bigdemo/wxMultipleChoiceDialog.rbw +0 -29
- data/samples/bigdemo/wxNotebook.rbw +0 -136
- data/samples/bigdemo/wxProgressDialog.rbw +0 -43
- data/samples/bigdemo/wxRadioBox.rbw +0 -72
- data/samples/bigdemo/wxRadioButton.rbw +0 -125
- data/samples/bigdemo/wxSashWindow.rbw +0 -141
- data/samples/bigdemo/wxScrolledMessageDialog.rbw +0 -57
- data/samples/bigdemo/wxScrolledWindow.rbw +0 -199
- data/samples/bigdemo/wxSingleChoiceDialog.rbw +0 -33
- data/samples/bigdemo/wxSlider.rbw +0 -42
- data/samples/bigdemo/wxSpinButton.rbw +0 -50
- data/samples/bigdemo/wxSpinCtrl.rbw +0 -51
- data/samples/bigdemo/wxSplitterWindow.rbw +0 -63
- data/samples/bigdemo/wxStaticBitmap.rbw +0 -47
- data/samples/bigdemo/wxStaticText.rbw +0 -55
- data/samples/bigdemo/wxStatusBar.rbw +0 -126
- data/samples/bigdemo/wxTextCtrl.rbw +0 -149
- data/samples/bigdemo/wxTextEntryDialog.rbw +0 -31
- data/samples/bigdemo/wxToggleButton.rbw +0 -49
- data/samples/bigdemo/wxToolBar.rbw +0 -131
- data/samples/bigdemo/wxTreeCtrl.rbw +0 -191
- data/samples/caret/caret.rb +0 -298
- data/samples/caret/mondrian.xpm +0 -44
- data/samples/controls/books.rb +0 -189
- data/samples/controls/choice.xpm +0 -27
- data/samples/controls/combo.xpm +0 -27
- data/samples/controls/controls.rb +0 -1099
- data/samples/controls/gauge.xpm +0 -27
- data/samples/controls/list.xpm +0 -27
- data/samples/controls/mondrian.ico +0 -0
- data/samples/controls/mondrian.xpm +0 -44
- data/samples/controls/radio.xpm +0 -27
- data/samples/controls/stattext.xpm +0 -24
- data/samples/controls/test2.bmp +0 -0
- data/samples/controls/text.xpm +0 -27
- data/samples/controls/tn_books.png +0 -0
- data/samples/controls/tn_controls.png +0 -0
- data/samples/etc/choice.rb +0 -87
- data/samples/etc/tn_choice.png +0 -0
- data/samples/text/mondrian.ico +0 -0
- data/samples/text/mondrian.xpm +0 -44
- /data/samples/{caret → etc}/tn_caret.png +0 -0
@@ -12,6 +12,7 @@ module Wx::PRT
|
|
12
12
|
# @see Wx::PRT::PrintData#set_bin
|
13
13
|
#
|
14
14
|
#
|
15
|
+
# @wxrb_require USE_PRINTING_ARCHITECTURE
|
15
16
|
class PrintBin < Wx::Enum
|
16
17
|
|
17
18
|
#
|
@@ -77,8 +78,8 @@ module Wx::PRT
|
|
77
78
|
end # PrintBin
|
78
79
|
|
79
80
|
# This class holds a variety of information related to printers and printer device contexts.
|
81
|
+
#
|
80
82
|
# This class is used to create a {Wx::PRT::PrinterDC} and a {Wx::PRT::PostScriptDC}. It is also used as a data member of {Wx::PRT::PrintDialogData} and {Wx::PRT::PageSetupDialogData}, as part of the mechanism for transferring data between the print dialogs and the application.
|
81
|
-
# ===
|
82
83
|
#
|
83
84
|
# Category: Printing Framework, Data Structures
|
84
85
|
# @see Printing Framework Overview
|
@@ -93,6 +94,7 @@ module Wx::PRT
|
|
93
94
|
#
|
94
95
|
#
|
95
96
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
97
|
+
# @wxrb_require USE_PRINTING_ARCHITECTURE
|
96
98
|
class PrintData < Object
|
97
99
|
|
98
100
|
# @overload initialize()
|
@@ -105,6 +107,7 @@ module Wx::PRT
|
|
105
107
|
def initialize(*args) end
|
106
108
|
|
107
109
|
# Returns the current bin (papersource).
|
110
|
+
#
|
108
111
|
# By default, the system is left to select the bin ({Wx::PRT::PrintBin::PRINTBIN_DEFAULT} is returned).
|
109
112
|
# See {Wx::PRT::PrintData#set_bin} for the full list of bin values.
|
110
113
|
# @return [Wx::PrintBin]
|
@@ -122,6 +125,7 @@ module Wx::PRT
|
|
122
125
|
alias_method :colour, :get_colour
|
123
126
|
|
124
127
|
# Returns the duplex mode.
|
128
|
+
#
|
125
129
|
# One of {Wx::DuplexMode::DUPLEX_SIMPLEX}, {Wx::DuplexMode::DUPLEX_HORIZONTAL}, {Wx::DuplexMode::DUPLEX_VERTICAL}.
|
126
130
|
# @return [Wx::DuplexMode]
|
127
131
|
def get_duplex; end
|
@@ -133,6 +137,7 @@ module Wx::PRT
|
|
133
137
|
alias_method :no_copies, :get_no_copies
|
134
138
|
|
135
139
|
# Gets the orientation.
|
140
|
+
#
|
136
141
|
# This can be {Wx::PrintOrientation::LANDSCAPE} or {Wx::PrintOrientation::PORTRAIT}.
|
137
142
|
# @return [Wx::PrintOrientation]
|
138
143
|
def get_orientation; end
|
@@ -140,18 +145,21 @@ module Wx::PRT
|
|
140
145
|
|
141
146
|
# Returns the paper size id.
|
142
147
|
#
|
148
|
+
#
|
143
149
|
# @see Wx::PRT::PrintData#set_paper_id
|
144
150
|
# @return [Wx::PaperSize]
|
145
151
|
def get_paper_id; end
|
146
152
|
alias_method :paper_id, :get_paper_id
|
147
153
|
|
148
154
|
# Returns the printer name.
|
155
|
+
#
|
149
156
|
# If the printer name is the empty string, it indicates that the default printer should be used.
|
150
157
|
# @return [Wx::String]
|
151
158
|
def get_printer_name; end
|
152
159
|
alias_method :printer_name, :get_printer_name
|
153
160
|
|
154
161
|
# Returns the current print quality.
|
162
|
+
#
|
155
163
|
# This can be a positive integer, denoting the number of dots per inch, or one of the following identifiers:
|
156
164
|
#
|
157
165
|
# - {Wx::PRINT_QUALITY_HIGH}
|
@@ -165,6 +173,7 @@ module Wx::PRT
|
|
165
173
|
alias_method :quality, :get_quality
|
166
174
|
|
167
175
|
# Returns true if the print data is valid for using in print dialogs.
|
176
|
+
#
|
168
177
|
# This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.
|
169
178
|
# @return [Boolean]
|
170
179
|
def is_ok; end
|
@@ -189,6 +198,7 @@ module Wx::PRT
|
|
189
198
|
alias_method :colour=, :set_colour
|
190
199
|
|
191
200
|
# Returns the duplex mode.
|
201
|
+
#
|
192
202
|
# One of {Wx::DuplexMode::DUPLEX_SIMPLEX}, {Wx::DuplexMode::DUPLEX_HORIZONTAL}, {Wx::DuplexMode::DUPLEX_VERTICAL}.
|
193
203
|
# @param mode [Wx::DuplexMode]
|
194
204
|
# @return [void]
|
@@ -202,6 +212,7 @@ module Wx::PRT
|
|
202
212
|
alias_method :no_copies=, :set_no_copies
|
203
213
|
|
204
214
|
# Sets the orientation.
|
215
|
+
#
|
205
216
|
# This can be {Wx::PrintOrientation::LANDSCAPE} or {Wx::PrintOrientation::PORTRAIT}.
|
206
217
|
# @param orientation [Wx::PrintOrientation]
|
207
218
|
# @return [void]
|
@@ -209,6 +220,7 @@ module Wx::PRT
|
|
209
220
|
alias_method :orientation=, :set_orientation
|
210
221
|
|
211
222
|
# Sets the paper id.
|
223
|
+
#
|
212
224
|
# This indicates the type of paper to be used. For a mapping between paper id, paper size and string name, see {Wx::PrintPaperDatabase} in <code>"paper.h"</code> (not yet documented).
|
213
225
|
# @see Wx::PRT::PrintData#set_paper_size
|
214
226
|
# @param paperId [Wx::PaperSize]
|
@@ -217,6 +229,7 @@ module Wx::PRT
|
|
217
229
|
alias_method :paper_id=, :set_paper_id
|
218
230
|
|
219
231
|
# Sets custom paper size.
|
232
|
+
#
|
220
233
|
# This method can be used to set up custom paper size. When using a standard size, prefer to use {Wx::PRT::PrintData#set_paper_id} instead.
|
221
234
|
# @param size [Array(Integer, Integer), Wx::Size]
|
222
235
|
# @return [void]
|
@@ -224,6 +237,7 @@ module Wx::PRT
|
|
224
237
|
alias_method :paper_size=, :set_paper_size
|
225
238
|
|
226
239
|
# Sets the printer name.
|
240
|
+
#
|
227
241
|
# This can be the empty string to indicate that the default printer should be used.
|
228
242
|
# @param printerName [String]
|
229
243
|
# @return [void]
|
@@ -231,6 +245,7 @@ module Wx::PRT
|
|
231
245
|
alias_method :printer_name=, :set_printer_name
|
232
246
|
|
233
247
|
# Sets the desired print quality.
|
248
|
+
#
|
234
249
|
# This can be a positive integer, denoting the number of dots per inch, or one of the following identifiers:
|
235
250
|
#
|
236
251
|
# - {Wx::PRINT_QUALITY_HIGH}
|
@@ -265,8 +280,8 @@ module Wx::PRT
|
|
265
280
|
end # PrintData
|
266
281
|
|
267
282
|
# This class holds information related to the visual characteristics of {Wx::PRT::PrintDialog}.
|
283
|
+
#
|
268
284
|
# It contains a {Wx::PRT::PrintData} object with underlying printing settings.
|
269
|
-
# ===
|
270
285
|
#
|
271
286
|
# Category: Printing Framework, Common Dialogs, Data Structures
|
272
287
|
# @see Printing Framework Overview
|
@@ -276,6 +291,7 @@ module Wx::PRT
|
|
276
291
|
#
|
277
292
|
#
|
278
293
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
294
|
+
# @wxrb_require USE_PRINTING_ARCHITECTURE
|
279
295
|
class PrintDialogData < Object
|
280
296
|
|
281
297
|
# @overload initialize()
|
@@ -362,6 +378,7 @@ module Wx::PRT
|
|
362
378
|
alias_method :to_page, :get_to_page
|
363
379
|
|
364
380
|
# Returns true if the print data is valid for using in print dialogs.
|
381
|
+
#
|
365
382
|
# This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.
|
366
383
|
# @return [Boolean]
|
367
384
|
def is_ok; end
|
@@ -410,6 +427,7 @@ module Wx::PRT
|
|
410
427
|
alias_method :print_to_file=, :set_print_to_file
|
411
428
|
|
412
429
|
# Selects the "Selection" radio button.
|
430
|
+
#
|
413
431
|
# The effect of printing the selection depends on how the application implements this command, if at all.
|
414
432
|
# @param flag [Boolean]
|
415
433
|
# @return [void]
|
@@ -425,8 +443,8 @@ module Wx::PRT
|
|
425
443
|
end # PrintDialogData
|
426
444
|
|
427
445
|
# This class holds a variety of information related to {Wx::PRT::PageSetupDialog}.
|
446
|
+
#
|
428
447
|
# It contains a {Wx::PRT::PrintData} member which is used to hold basic printer configuration data (as opposed to the user-interface configuration settings stored by {Wx::PRT::PageSetupDialogData}).
|
429
|
-
# ===
|
430
448
|
#
|
431
449
|
# Category: Printing Framework, Data Structures
|
432
450
|
# @see Printing Framework Overview
|
@@ -435,6 +453,7 @@ module Wx::PRT
|
|
435
453
|
#
|
436
454
|
#
|
437
455
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
456
|
+
# @wxrb_require USE_PRINTING_ARCHITECTURE
|
438
457
|
class PageSetupDialogData < Object
|
439
458
|
|
440
459
|
# @overload initialize()
|
@@ -516,12 +535,14 @@ module Wx::PRT
|
|
516
535
|
alias_method :margin_top_left, :get_margin_top_left
|
517
536
|
|
518
537
|
# Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
|
538
|
+
#
|
519
539
|
# Units are in millimetres.
|
520
540
|
# @return [Wx::Point]
|
521
541
|
def get_min_margin_bottom_right; end
|
522
542
|
alias_method :min_margin_bottom_right, :get_min_margin_bottom_right
|
523
543
|
|
524
544
|
# Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
|
545
|
+
#
|
525
546
|
# Units are in millimetres.
|
526
547
|
# @return [Wx::Point]
|
527
548
|
def get_min_margin_top_left; end
|
@@ -529,6 +550,7 @@ module Wx::PRT
|
|
529
550
|
|
530
551
|
# Returns the paper id (stored in the internal {Wx::PRT::PrintData} object).
|
531
552
|
#
|
553
|
+
#
|
532
554
|
# @see Wx::PRT::PrintData#set_paper_id
|
533
555
|
# @return [Wx::PaperSize]
|
534
556
|
def get_paper_id; end
|
@@ -544,6 +566,7 @@ module Wx::PRT
|
|
544
566
|
alias_method :print_data, :get_print_data
|
545
567
|
|
546
568
|
# Returns true if the print data associated with the dialog data is valid.
|
569
|
+
#
|
547
570
|
# This can return false on Windows if the current printer is not set, for example. On all other platforms, it returns true.
|
548
571
|
# @return [Boolean]
|
549
572
|
def is_ok; end
|
@@ -556,6 +579,7 @@ module Wx::PRT
|
|
556
579
|
alias_method :default_info=, :set_default_info
|
557
580
|
|
558
581
|
# Pass true if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
|
582
|
+
#
|
559
583
|
# Units are in millimetres.
|
560
584
|
# @param flag [Boolean]
|
561
585
|
# @return [void]
|
@@ -575,6 +599,7 @@ module Wx::PRT
|
|
575
599
|
alias_method :margin_top_left=, :set_margin_top_left
|
576
600
|
|
577
601
|
# Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
|
602
|
+
#
|
578
603
|
# Units are in millimetres.
|
579
604
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
580
605
|
# @return [void]
|
@@ -582,6 +607,7 @@ module Wx::PRT
|
|
582
607
|
alias_method :min_margin_bottom_right=, :set_min_margin_bottom_right
|
583
608
|
|
584
609
|
# Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
|
610
|
+
#
|
585
611
|
# Units are in millimetres.
|
586
612
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
587
613
|
# @return [void]
|
@@ -589,6 +615,7 @@ module Wx::PRT
|
|
589
615
|
alias_method :min_margin_top_left=, :set_min_margin_top_left
|
590
616
|
|
591
617
|
# Sets the paper size id.
|
618
|
+
#
|
592
619
|
# Calling this function overrides the explicit paper dimensions passed in {Wx::PRT::PageSetupDialogData#set_paper_size}.
|
593
620
|
# @see Wx::PRT::PrintData#set_paper_id
|
594
621
|
# @param id [Wx::PaperSize]
|
@@ -597,6 +624,7 @@ module Wx::PRT
|
|
597
624
|
alias_method :paper_id=, :set_paper_id
|
598
625
|
|
599
626
|
# Sets the paper size in millimetres.
|
627
|
+
#
|
600
628
|
# If a corresponding paper id is found, it will be set in the internal {Wx::PRT::PrintData} object, otherwise the paper size overrides the paper id.
|
601
629
|
# @param size [Array(Integer, Integer), Wx::Size]
|
602
630
|
# @return [void]
|
@@ -7,18 +7,20 @@
|
|
7
7
|
module Wx::PRT
|
8
8
|
|
9
9
|
# This class represents the print and print setup common dialogs.
|
10
|
+
#
|
10
11
|
# You may obtain a {Wx::PRT::PrinterDC} device context from a successfully dismissed print dialog.
|
11
|
-
# ===
|
12
12
|
#
|
13
13
|
# Category: Printing Framework
|
14
14
|
# @see Printing Framework Overview
|
15
15
|
# @see wxPrintDialog Overview
|
16
16
|
#
|
17
17
|
#
|
18
|
+
# @wxrb_require USE_PRINTING_ARCHITECTURE
|
18
19
|
class PrintDialog < Object
|
19
20
|
|
20
21
|
# @overload initialize(parent, data=nil)
|
21
22
|
# Constructor.
|
23
|
+
#
|
22
24
|
# Pass a parent window, and optionally a pointer to a block of print data, which will be copied to the print dialog's print data.
|
23
25
|
# @see Wx::PRT::PrintDialogData
|
24
26
|
# @param parent [Wx::Window]
|
@@ -31,12 +33,14 @@ module Wx::PRT
|
|
31
33
|
def initialize(*args) end
|
32
34
|
|
33
35
|
# Returns the device context created by the print dialog, if any.
|
36
|
+
#
|
34
37
|
# When this function has been called, the ownership of the device context is transferred to the application, so it must then be deleted explicitly.
|
35
38
|
# @return [Wx::DC]
|
36
39
|
def get_print_dc; end
|
37
40
|
alias_method :print_dc, :get_print_dc
|
38
41
|
|
39
42
|
# Shows the dialog, returning {Wx::StandardID::ID_OK} if the user pressed OK, and {Wx::StandardID::ID_CANCEL} otherwise.
|
43
|
+
#
|
40
44
|
# After this function is called, a device context may be retrievable using {Wx::PRT::PrintDialog#get_print_dc}.
|
41
45
|
# @return [Integer]
|
42
46
|
def show_modal; end
|
@@ -7,8 +7,8 @@
|
|
7
7
|
module Wx::PRT
|
8
8
|
|
9
9
|
# This class represents the Windows or PostScript printer, and is the vehicle through which printing may be launched by an application.
|
10
|
+
#
|
10
11
|
# Printing can also be achieved through using of lower functions and classes, but this and associated classes provide a more convenient and general method of printing.
|
11
|
-
# ===
|
12
12
|
#
|
13
13
|
# Category: Printing Framework
|
14
14
|
# @see Printing Framework Overview
|
@@ -18,9 +18,11 @@ module Wx::PRT
|
|
18
18
|
# @see Wx::PRT::PrintPreview
|
19
19
|
#
|
20
20
|
#
|
21
|
+
# @wxrb_require USE_PRINTING_ARCHITECTURE
|
21
22
|
class Printer < Object
|
22
23
|
|
23
24
|
# Constructor.
|
25
|
+
#
|
24
26
|
# Pass an optional pointer to a block of print dialog data, which will be copied to the printer object's local data.
|
25
27
|
# @see Wx::PRT::PrintDialogData
|
26
28
|
# @see Wx::PRT::PrintData
|
@@ -40,6 +42,7 @@ module Wx::PRT
|
|
40
42
|
alias_method :abort, :get_abort
|
41
43
|
|
42
44
|
# Starts the printing process.
|
45
|
+
#
|
43
46
|
# Provide a parent window, a user-defined {Wx::PRT::Printout} object which controls the printing of a document, and whether the print dialog should be invoked first.
|
44
47
|
# {Wx::PRT::Printer#print} could return false if there was a problem initializing the printer device context (current printer not set, for example) or the user cancelled printing. Call {Wx::PRT::Printer.get_last_error} to get detailed information about the kind of the error.
|
45
48
|
# @param parent [Wx::Window]
|
@@ -49,8 +52,14 @@ module Wx::PRT
|
|
49
52
|
def print(parent, printout, prompt=true) end
|
50
53
|
|
51
54
|
# Invokes the print dialog.
|
55
|
+
#
|
52
56
|
# If successful (the user did not press Cancel and no error occurred), a suitable device context will be returned; otherwise NULL is returned; call {Wx::PRT::Printer.get_last_error} to get detailed information about the kind of the error.
|
53
|
-
#
|
57
|
+
#
|
58
|
+
# <div class="wxrb-remark">
|
59
|
+
# <b>Remark:</b>
|
60
|
+
# <p>The application must delete this device context to avoid a memory leak.
|
61
|
+
# </p>
|
62
|
+
# </div>
|
54
63
|
# @param parent [Wx::Window]
|
55
64
|
# @return [Wx::DC]
|
56
65
|
def print_dialog(parent) end
|
@@ -63,6 +72,7 @@ module Wx::PRT
|
|
63
72
|
def report_error(parent, printout, message) end
|
64
73
|
|
65
74
|
# Return last error.
|
75
|
+
#
|
66
76
|
# Valid after calling {Wx::PRT::Printer#print}, {Wx::PRT::Printer#print_dialog} or {Wx::PRT::PrintPreview#print}.
|
67
77
|
# These functions set last error to {Wx::PRT::PrinterError::PRINTER_NO_ERROR} if no error happened.
|
68
78
|
# Returned value is one of the following:
|
@@ -81,9 +91,9 @@ module Wx::PRT
|
|
81
91
|
end # Printer
|
82
92
|
|
83
93
|
# This class encapsulates the functionality of printing out an application document.
|
94
|
+
#
|
84
95
|
# A new class must be derived and members overridden to respond to calls such as {Wx::PRT::Printout#on_print_page} and {Wx::PRT::Printout#has_page} and to render the print image onto an associated {Wx::DC}. Instances of this class are passed to {Wx::PRT::Printer#print} or to a {Wx::PRT::PrintPreview} object to initiate printing or previewing.
|
85
96
|
# Your derived {Wx::PRT::Printout} is responsible for drawing both the preview image and the printed page. If your windows' drawing routines accept an arbitrary DC as an argument, you can re-use those routines within your {Wx::PRT::Printout} subclass to draw the printout image. You may also add additional drawing elements within your {Wx::PRT::Printout} subclass, like headers, footers, and/or page numbers. However, the image on the printed page will often differ from the image drawn on the screen, as will the print preview image not just in the presence of headers and footers, but typically in scale. A high-resolution printer presents a much larger drawing surface (i.e., a higher-resolution DC); a zoomed-out preview image presents a much smaller drawing surface (lower-resolution DC). By using the routines FitThisSizeToXXX() and/or MapScreenSizeToXXX() within your {Wx::PRT::Printout} subclass to set the user scale and origin of the associated DC, you can easily use a single drawing routine to draw on your application's windows, to create the print preview image, and to create the printed paper image, and achieve a common appearance to the preview image and the printed page.
|
86
|
-
# ===
|
87
97
|
#
|
88
98
|
# Category: Printing Framework
|
89
99
|
# @see Printing Framework Overview
|
@@ -94,15 +104,18 @@ module Wx::PRT
|
|
94
104
|
# @see Wx::PRT::PrintPreview
|
95
105
|
#
|
96
106
|
#
|
107
|
+
# @wxrb_require USE_PRINTING_ARCHITECTURE
|
97
108
|
class Printout < Object
|
98
109
|
|
99
110
|
# Constructor.
|
111
|
+
#
|
100
112
|
# Pass an optional title argument - the current filename would be a good idea. This will appear in the printing list (at least in MSW)
|
101
113
|
# @param title [String]
|
102
114
|
# @return [Wx::PRT::Printout]
|
103
115
|
def initialize(title=("Wx::PRT::Printout")) end
|
104
116
|
|
105
117
|
# Set the user scale and device origin of the {Wx::DC} associated with this {Wx::PRT::Printout} so that the given image size fits entirely within the page rectangle and the origin is at the top left corner of the page rectangle.
|
118
|
+
#
|
106
119
|
# On MSW and Mac, the page rectangle is the printable area of the page. On other platforms and PostScript printing, the page rectangle is the entire paper.
|
107
120
|
# Use this if you want your printed image as large as possible, but with the caveat that on some platforms, portions of the image might be cut off at the edges.
|
108
121
|
# @param imageSize [Array(Integer, Integer), Wx::Size]
|
@@ -110,21 +123,34 @@ module Wx::PRT
|
|
110
123
|
def fit_this_size_to_page(imageSize) end
|
111
124
|
|
112
125
|
# Set the user scale and device origin of the {Wx::DC} associated with this {Wx::PRT::Printout} so that the given image size fits entirely within the page margins set in the given {Wx::PRT::PageSetupDialogData} object.
|
126
|
+
#
|
113
127
|
# This function provides the greatest consistency across all platforms because it does not depend on having access to the printable area of the paper.
|
114
|
-
#
|
128
|
+
#
|
129
|
+
# <div class="wxrb-remark">
|
130
|
+
# <b>Remark:</b>
|
131
|
+
# <p>On Mac, the native {Wx::PRT::PageSetupDialog} does not let you set the page margins; you'll have to provide your own mechanism, or you can use the Mac-only class WXOSX.
|
132
|
+
# </p>
|
133
|
+
# </div>
|
115
134
|
# @param imageSize [Array(Integer, Integer), Wx::Size]
|
116
135
|
# @param pageSetupData [Wx::PRT::PageSetupDialogData]
|
117
136
|
# @return [void]
|
118
137
|
def fit_this_size_to_page_margins(imageSize, pageSetupData) end
|
119
138
|
|
120
139
|
# Set the user scale and device origin of the {Wx::DC} associated with this {Wx::PRT::Printout} so that the given image size fits entirely within the paper and the origin is at the top left corner of the paper.
|
140
|
+
#
|
121
141
|
# Use this if you're managing your own page margins.
|
122
|
-
#
|
142
|
+
#
|
143
|
+
# <div class="wxrb-note">
|
144
|
+
# <b>Note:</b>
|
145
|
+
# <p>With most printers, the region around the edges of the paper are not printable so that the edges of the image could be cut off.
|
146
|
+
# </p>
|
147
|
+
# </div>
|
123
148
|
# @param imageSize [Array(Integer, Integer), Wx::Size]
|
124
149
|
# @return [void]
|
125
150
|
def fit_this_size_to_paper(imageSize) end
|
126
151
|
|
127
152
|
# Returns the device context associated with the printout (given to the printout at start of printing or previewing).
|
153
|
+
#
|
128
154
|
# The application can use {Wx::PRT::Printout#get_dc} to obtain a device context to draw on.
|
129
155
|
# This will be a {Wx::PRT::PrinterDC} if printing under Windows or Mac, a {Wx::PRT::PostScriptDC} if printing on other platforms, and a {Wx::MemoryDC} if previewing.
|
130
156
|
# @return [Wx::DC]
|
@@ -132,6 +158,7 @@ module Wx::PRT
|
|
132
158
|
alias_method :dc, :get_dc
|
133
159
|
|
134
160
|
# Return the rectangle corresponding to the page margins specified by the given {Wx::PRT::PageSetupDialogData} object in the associated {Wx::DC}'s logical coordinates for the current user scale and device origin.
|
161
|
+
#
|
135
162
|
# The page margins are specified with respect to the edges of the paper on all platforms.
|
136
163
|
# @param pageSetupData [Wx::PRT::PageSetupDialogData]
|
137
164
|
# @return [Wx::Rect]
|
@@ -139,6 +166,7 @@ module Wx::PRT
|
|
139
166
|
alias_method :logical_page_margins_rect, :get_logical_page_margins_rect
|
140
167
|
|
141
168
|
# Return the rectangle corresponding to the page in the associated {Wx::DC} 's logical coordinates for the current user scale and device origin.
|
169
|
+
#
|
142
170
|
# On MSW and Mac, this will be the printable area of the paper. On other platforms and PostScript printing, this will be the full paper rectangle.
|
143
171
|
# @return [Wx::Rect]
|
144
172
|
def get_logical_page_rect; end
|
@@ -150,6 +178,7 @@ module Wx::PRT
|
|
150
178
|
alias_method :logical_paper_rect, :get_logical_paper_rect
|
151
179
|
|
152
180
|
# Returns the number of pixels per logical inch of the printer device context.
|
181
|
+
#
|
153
182
|
# Dividing the printer PPI by the screen PPI can give a suitable scaling factor for drawing text onto the printer.
|
154
183
|
# Remember to multiply this by a scaling factor to take the preview DC size into account. Or you can just use the FitThisSizeToXXX() and MapScreenSizeToXXX routines below, which do most of the scaling calculations for you.
|
155
184
|
# @return [Array(Integer,Integer)]
|
@@ -157,6 +186,7 @@ module Wx::PRT
|
|
157
186
|
alias_method :ppi_printer, :get_ppi_printer
|
158
187
|
|
159
188
|
# Returns the number of pixels per logical inch of the screen device context.
|
189
|
+
#
|
160
190
|
# Dividing the printer PPI by the screen PPI can give a suitable scaling factor for drawing text onto the printer.
|
161
191
|
# If you are doing your own scaling, remember to multiply this by a scaling factor to take the preview DC size into account.
|
162
192
|
# @return [Array(Integer,Integer)]
|
@@ -164,6 +194,7 @@ module Wx::PRT
|
|
164
194
|
alias_method :ppi_screen, :get_ppi_screen
|
165
195
|
|
166
196
|
# Called by the framework to obtain information from the application about minimum and maximum page values that the user can select, and the required page range to be printed.
|
197
|
+
#
|
167
198
|
# By default this returns (1, 32000) for the page minimum and maximum values, and (1, 1) for the required page range.
|
168
199
|
# minPage must be greater than zero and maxPage must be greater than minPage.
|
169
200
|
# @return [Array(Integer,Integer,Integer,Integer)]
|
@@ -176,12 +207,14 @@ module Wx::PRT
|
|
176
207
|
alias_method :page_size_mm, :get_page_size_mm
|
177
208
|
|
178
209
|
# Returns the size of the printer page in pixels, called the page rectangle.
|
210
|
+
#
|
179
211
|
# The page rectangle has a top left corner at (0,0) and a bottom right corner at (w,h). These values may not be the same as the values returned from {Wx::DC#get_size}; if the printout is being used for previewing, a memory device context is used, which uses a bitmap size reflecting the current preview zoom. The application must take this discrepancy into account if previewing is to be supported.
|
180
212
|
# @return [Array(Integer,Integer)]
|
181
213
|
def get_page_size_pixels; end
|
182
214
|
alias_method :page_size_pixels, :get_page_size_pixels
|
183
215
|
|
184
216
|
# Returns the rectangle that corresponds to the entire paper in pixels, called the paper rectangle.
|
217
|
+
#
|
185
218
|
# This distinction between paper rectangle and page rectangle reflects the fact that most printers cannot print all the way to the edge of the paper. The page rectangle is a rectangle whose top left corner is at (0,0) and whose width and height are given by {Wx::DC#get_page_size_pixels}.
|
186
219
|
# On MSW and Mac, the page rectangle gives the printable area of the paper, while the paper rectangle represents the entire paper, including non-printable borders. Thus, the rectangle returned by {Wx::DC#get_paper_rect_pixels}.
|
187
220
|
# On other platforms and for PostScript printing, the paper is treated as if its entire area were printable, so this function will return the same rectangle as the page rectangle.
|
@@ -190,12 +223,14 @@ module Wx::PRT
|
|
190
223
|
alias_method :paper_rect_pixels, :get_paper_rect_pixels
|
191
224
|
|
192
225
|
# Returns the title of the printout.
|
226
|
+
#
|
193
227
|
# Todothe python note here was wrong
|
194
228
|
# @return [String]
|
195
229
|
def get_title; end
|
196
230
|
alias_method :title, :get_title
|
197
231
|
|
198
232
|
# Should be overridden to return true if the document has this page, or false if not.
|
233
|
+
#
|
199
234
|
# Returning false signifies the end of the document. By default, HasPage behaves as if the document has only one page.
|
200
235
|
# @param pageNum [Integer]
|
201
236
|
# @return [Boolean]
|
@@ -204,12 +239,14 @@ module Wx::PRT
|
|
204
239
|
|
205
240
|
# Returns true if the printout is currently being used for previewing.
|
206
241
|
#
|
242
|
+
#
|
207
243
|
# @see Wx::PRT::Printout#get_preview
|
208
244
|
# @return [Boolean]
|
209
245
|
def is_preview; end
|
210
246
|
alias_method :preview?, :is_preview
|
211
247
|
|
212
248
|
# Returns the associated preview object if any.
|
249
|
+
#
|
213
250
|
# If this printout object is used for previewing, returns the associated {Wx::PRT::PrintPreview}. Otherwise returns NULL.
|
214
251
|
# The returned pointer is not owned by the printout and must not be deleted.
|
215
252
|
# @see Wx::PRT::Printout#is_preview
|
@@ -218,10 +255,16 @@ module Wx::PRT
|
|
218
255
|
alias_method :preview, :get_preview
|
219
256
|
|
220
257
|
# Set the user scale and device origin of the {Wx::DC} associated with this {Wx::PRT::Printout} so that one screen pixel maps to one device pixel on the DC.
|
258
|
+
#
|
221
259
|
# That is, the user scale is set to (1,1) and the device origin is set to (0,0).
|
222
260
|
# Use this if you want to do your own scaling prior to calling {Wx::DC} drawing calls, for example, if your underlying model is floating-point and you want to achieve maximum drawing precision on high-resolution printers.
|
223
261
|
# You can use the GetLogicalXXXRect() routines below to obtain the paper rectangle, page rectangle, or page margins rectangle to perform your own scaling.
|
224
|
-
#
|
262
|
+
#
|
263
|
+
# <div class="wxrb-note">
|
264
|
+
# <b>Note:</b>
|
265
|
+
# <p>While the underlying drawing model of macOS is floating-point, wxWidgets's drawing model scales from integer coordinates.
|
266
|
+
# </p>
|
267
|
+
# </div>
|
225
268
|
# @return [void]
|
226
269
|
def map_screen_size_to_device; end
|
227
270
|
|
@@ -235,6 +278,7 @@ module Wx::PRT
|
|
235
278
|
def map_screen_size_to_page_margins(pageSetupData) end
|
236
279
|
|
237
280
|
# Set the user scale and device origin of the {Wx::DC} associated with this {Wx::PRT::Printout} so that the printed page matches the screen size as closely as possible and the logical origin is in the top left corner of the paper rectangle.
|
281
|
+
#
|
238
282
|
# That is, a 100-pixel object on screen should appear at the same size on the printed page. (It will, of course, be larger or smaller in the preview image, depending on the zoom factor.)
|
239
283
|
# Use this if you want WYSIWYG behaviour, e.g., in a text editor.
|
240
284
|
# @return [void]
|
@@ -247,36 +291,52 @@ module Wx::PRT
|
|
247
291
|
def offset_logical_origin(xoff, yoff) end
|
248
292
|
|
249
293
|
# Called by the framework at the start of document printing.
|
294
|
+
#
|
250
295
|
# Return false from this function cancels the print job.
|
251
296
|
# {Wx::PRT::Printout#on_begin_document} is called once for every copy printed.
|
252
|
-
#
|
297
|
+
#
|
298
|
+
# <div class="wxrb-remark">
|
299
|
+
# <b>Remark:</b>
|
300
|
+
# <p>The base {Wx::PRT::Printout#on_begin_document} must be called (and the return value checked) from within the overridden function, since it calls {Wx::DC#start_doc}.
|
301
|
+
# </p>
|
302
|
+
# </div>
|
253
303
|
# @param startPage [Integer]
|
254
304
|
# @param endPage [Integer]
|
255
305
|
# @return [Boolean]
|
256
306
|
def on_begin_document(startPage, endPage) end
|
257
307
|
|
258
308
|
# Called by the framework at the start of printing.
|
309
|
+
#
|
259
310
|
# {Wx::PRT::Printout#on_begin_printing} is called once for every print job (regardless of how many copies are being printed).
|
260
311
|
# @return [void]
|
261
312
|
def on_begin_printing; end
|
262
313
|
|
263
314
|
# Called by the framework at the end of document printing.
|
315
|
+
#
|
264
316
|
# {Wx::PRT::Printout#on_end_document} is called once for every copy printed.
|
265
|
-
#
|
317
|
+
#
|
318
|
+
# <div class="wxrb-remark">
|
319
|
+
# <b>Remark:</b>
|
320
|
+
# <p>The base {Wx::PRT::Printout#on_end_document} must be called from within the overridden function, since it calls {Wx::DC#end_doc}.
|
321
|
+
# </p>
|
322
|
+
# </div>
|
266
323
|
# @return [void]
|
267
324
|
def on_end_document; end
|
268
325
|
|
269
326
|
# Called by the framework at the end of printing.
|
327
|
+
#
|
270
328
|
# OnEndPrinting is called once for every print job (regardless of how many copies are being printed).
|
271
329
|
# @return [void]
|
272
330
|
def on_end_printing; end
|
273
331
|
|
274
332
|
# Called once by the framework before any other demands are made of the {Wx::PRT::Printout} object.
|
333
|
+
#
|
275
334
|
# This gives the object an opportunity to calculate the number of pages in the document, for example.
|
276
335
|
# @return [void]
|
277
336
|
def on_prepare_printing; end
|
278
337
|
|
279
338
|
# Called by the framework when a page should be printed.
|
339
|
+
#
|
280
340
|
# Returning false cancels the print job.
|
281
341
|
# @param pageNum [Integer]
|
282
342
|
# @return [Boolean]
|
@@ -291,10 +351,14 @@ module Wx::PRT
|
|
291
351
|
end # Printout
|
292
352
|
|
293
353
|
# Objects of this class manage the print preview process.
|
354
|
+
#
|
294
355
|
# The object is passed a {Wx::PRT::Printout} object, and the {Wx::PRT::PrintPreview} object itself is passed to a {Wx::PRT::PreviewFrame} object. Previewing is started by initializing and showing the preview frame. Unlike {Wx::PRT::Printer#print}, flow of control returns to the application immediately after the frame is shown.
|
295
|
-
# The preview shown is only exact on Windows. On other platforms, the {Wx::DC} used for preview is different from what is used for printing and the results may be significantly different, depending on how is the output created. In particular, printing code relying on {Wx::DC#get_text_extent} heavily (for example, {Wx::HTML::HtmlEasyPrinting} and other {Wx::HTML} classes do) is affected. It is recommended to use native preview functionality on platforms that offer it (macOS, GTK+).
|
296
356
|
#
|
297
|
-
#
|
357
|
+
# <div class="wxrb-note">
|
358
|
+
# <b>Note:</b>
|
359
|
+
# <p>The preview shown is only exact on Windows. On other platforms, the {Wx::DC} used for preview is different from what is used for printing and the results may be significantly different, depending on how is the output created. In particular, printing code relying on {Wx::DC#get_text_extent} heavily (for example, {Wx::HTML::HtmlEasyPrinting} and other {Wx::HTML} classes do) is affected. It is recommended to use native preview functionality on platforms that offer it (macOS, GTK+).
|
360
|
+
# </p>
|
361
|
+
# </div>
|
298
362
|
#
|
299
363
|
# Category: Printing Framework
|
300
364
|
# @see Printing Framework Overview
|
@@ -307,13 +371,20 @@ module Wx::PRT
|
|
307
371
|
# @see Wx::PRT::PreviewFrame
|
308
372
|
#
|
309
373
|
#
|
374
|
+
# @wxrb_require USE_PRINTING_ARCHITECTURE
|
310
375
|
class PrintPreview < Object
|
311
376
|
|
312
377
|
# @overload initialize(printout, printoutForPrinting=nil, data=nil)
|
313
378
|
# Constructor.
|
379
|
+
#
|
314
380
|
# Pass a printout object, an optional printout object to be used for actual printing, and the address of an optional block of printer data, which will be copied to the print preview object's print data.
|
315
381
|
# If printoutForPrinting is non-NULL, a <b>"Print..."</b> button will be placed on the preview frame so that the user can print directly from the preview interface.
|
316
|
-
#
|
382
|
+
#
|
383
|
+
# <div class="wxrb-remark">
|
384
|
+
# <b>Remark:</b>
|
385
|
+
# <p>Do not explicitly delete the printout objects once this constructor has been called, since they will be deleted in the {Wx::PRT::PrintPreview} destructor. The same does not apply to the data argument.
|
386
|
+
# </p>
|
387
|
+
# </div>
|
317
388
|
#
|
318
389
|
# Use {Wx::PRT::PrintPreview#is_ok} to check whether the {Wx::PRT::PrintPreview} object was created correctly.
|
319
390
|
# @param printout [Wx::PRT::Printout]
|
@@ -364,18 +435,21 @@ module Wx::PRT
|
|
364
435
|
|
365
436
|
# Gets the current percentage zoom level of the preview canvas.
|
366
437
|
#
|
438
|
+
#
|
367
439
|
# @see Wx::PRT::PrintPreview#set_zoom
|
368
440
|
# @return [Integer]
|
369
441
|
def get_zoom; end
|
370
442
|
alias_method :zoom, :get_zoom
|
371
443
|
|
372
444
|
# Returns true if the {Wx::PRT::PrintPreview} is valid, false otherwise.
|
445
|
+
#
|
373
446
|
# It could return false if there was a problem initializing the printer device context (current printer not set, for example).
|
374
447
|
# @return [Boolean]
|
375
448
|
def is_ok; end
|
376
449
|
alias_method :ok?, :is_ok
|
377
450
|
|
378
451
|
# Invokes the print process using the second {Wx::PRT::Printout} object supplied in the {Wx::PRT::PrintPreview} constructor.
|
452
|
+
#
|
379
453
|
# Will normally be called by the <b>Print</b>... panel item on the preview frame's control bar.
|
380
454
|
# Returns false in case of error call {Wx::PRT::Printer.get_last_error} to get detailed information about the kind of the error.
|
381
455
|
# @param prompt [Boolean]
|
@@ -383,6 +457,7 @@ module Wx::PRT
|
|
383
457
|
def print(prompt) end
|
384
458
|
|
385
459
|
# Renders a page into a {Wx::MemoryDC}.
|
460
|
+
#
|
386
461
|
# Used internally by {Wx::PRT::PrintPreview}.
|
387
462
|
# @param pageNum [Integer]
|
388
463
|
# @return [Boolean]
|
@@ -408,6 +483,7 @@ module Wx::PRT
|
|
408
483
|
|
409
484
|
# Sets the percentage preview zoom, and refreshes the preview canvas accordingly.
|
410
485
|
#
|
486
|
+
#
|
411
487
|
# @see Wx::PRT::PrintPreview#get_zoom
|
412
488
|
# @param percent [Integer]
|
413
489
|
# @return [void]
|
@@ -7,8 +7,8 @@
|
|
7
7
|
module Wx::PRT
|
8
8
|
|
9
9
|
# A printer device context is specific to MSW and Mac, and allows access to any printer with a Windows or Macintosh driver.
|
10
|
+
#
|
10
11
|
# See {Wx::DC} for further information on device contexts, and {Wx::DC#get_size} for advice on achieving the correct scaling for the page.
|
11
|
-
# ===
|
12
12
|
#
|
13
13
|
# Category: Printing Framework
|
14
14
|
# @see Printing Framework Overview
|
@@ -17,9 +17,11 @@ module Wx::PRT
|
|
17
17
|
#
|
18
18
|
#
|
19
19
|
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
20
|
+
# @wxrb_require WXMSW|WXOSX|USE_GTKPRINT,USE_PRINTING_ARCHITECTURE
|
20
21
|
class PrinterDC < DC
|
21
22
|
|
22
23
|
# Return the rectangle in device coordinates that corresponds to the full paper area, including the nonprinting regions of the paper.
|
24
|
+
#
|
23
25
|
# The point (0,0) in device coordinates is the top left corner of the page rectangle, which is the printable area on MSW and Mac. The coordinates of the top left corner of the paper rectangle will therefore have small negative values, while the bottom right coordinates will be somewhat larger than the values returned by {Wx::DC#get_size}.
|
24
26
|
# @return [Wx::Rect]
|
25
27
|
def get_paper_rect; end
|