wxruby3 0.9.0.pre.rc.1-x64-mingw-ucrt → 0.9.0.pre.rc.3-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +73 -22
- data/README.md +40 -8
- data/assets/hello_button-macos.png +0 -0
- data/assets/hello_button-msw.png +0 -0
- data/assets/hello_button_clicked-macos.png +0 -0
- data/assets/hello_button_clicked-msw.png +0 -0
- data/assets/hello_button_clicked_combi.png +0 -0
- data/assets/hello_world-macos.png +0 -0
- data/assets/hello_world-msw.png +0 -0
- data/assets/hello_world_combi.png +0 -0
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/core/brush.rb +6 -0
- data/lib/wx/core/event_loop.rb +7 -0
- data/lib/wx/core/events/evt_list.rb +7 -0
- data/lib/wx/core/evthandler.rb +12 -2
- data/lib/wx/core/font.rb +22 -14
- data/lib/wx/core/helpprovider.rb +2 -2
- data/lib/wx/core/image.rb +33 -0
- data/lib/wx/core/listctrl.rb +17 -13
- data/lib/wx/core/log.rb +90 -0
- data/lib/wx/core/menu.rb +5 -0
- data/lib/wx/core/pen.rb +6 -0
- data/lib/wx/core/window.rb +28 -1
- data/lib/wx/doc/app.rb +40 -0
- data/lib/wx/doc/bitmap.rb +11 -15
- data/lib/wx/doc/brush.rb +17 -0
- data/lib/wx/doc/event_loop.rb +7 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/09_exceptions.md +1 -1
- data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
- data/lib/wx/doc/font.rb +27 -0
- data/lib/wx/doc/functions.rb +51 -23
- data/lib/wx/doc/gc_dc.rb +1 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
- data/lib/wx/doc/gen/accelerator.rb +6 -6
- data/lib/wx/doc/gen/accessible.rb +6 -2
- data/lib/wx/doc/gen/activity_indicator.rb +65 -0
- data/lib/wx/doc/gen/animation.rb +7 -7
- data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
- data/lib/wx/doc/gen/any_button.rb +1 -1
- data/lib/wx/doc/gen/app.rb +17 -11
- data/lib/wx/doc/gen/art_provider.rb +61 -1
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
- data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +35 -20
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
- data/lib/wx/doc/gen/bitmap.rb +32 -26
- data/lib/wx/doc/gen/bitmap_button.rb +10 -6
- data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
- data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +16 -4
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +19 -7
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
- data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
- data/lib/wx/doc/gen/calendar_event.rb +3 -3
- data/lib/wx/doc/gen/caret.rb +2 -2
- data/lib/wx/doc/gen/check_box.rb +10 -6
- data/lib/wx/doc/gen/check_list_box.rb +8 -7
- data/lib/wx/doc/gen/choice.rb +7 -6
- data/lib/wx/doc/gen/choicebook.rb +12 -6
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +1 -1
- data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
- data/lib/wx/doc/gen/colour.rb +16 -6
- data/lib/wx/doc/gen/colour_dialog.rb +6 -6
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +22 -13
- data/lib/wx/doc/gen/context_help_button.rb +50 -1
- data/lib/wx/doc/gen/control.rb +9 -6
- data/lib/wx/doc/gen/core.rb +5 -2
- data/lib/wx/doc/gen/cursor.rb +16 -11
- data/lib/wx/doc/gen/data_format.rb +2 -2
- data/lib/wx/doc/gen/data_object.rb +23 -16
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
- data/lib/wx/doc/gen/dc.rb +37 -12
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +19 -5
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
- data/lib/wx/doc/gen/drag_drop.rb +15 -15
- data/lib/wx/doc/gen/drag_image.rb +6 -6
- data/lib/wx/doc/gen/editable_list_box.rb +7 -3
- data/lib/wx/doc/gen/event.rb +44 -13
- data/lib/wx/doc/gen/event_blocker.rb +19 -17
- data/lib/wx/doc/gen/event_filter.rb +43 -47
- data/lib/wx/doc/gen/event_list.rb +22 -15
- data/lib/wx/doc/gen/events.rb +215 -79
- data/lib/wx/doc/gen/evt_handler.rb +1 -1
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_dialog.rb +64 -56
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
- data/lib/wx/doc/gen/font.rb +39 -29
- data/lib/wx/doc/gen/font_data.rb +9 -5
- data/lib/wx/doc/gen/font_dialog.rb +3 -3
- data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +34 -11
- data/lib/wx/doc/gen/fs_file.rb +4 -17
- data/lib/wx/doc/gen/gauge.rb +11 -7
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +35 -33
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
- data/lib/wx/doc/gen/graphics_context.rb +29 -28
- data/lib/wx/doc/gen/graphics_object.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
- data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
- data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/help_controller.rb +18 -12
- data/lib/wx/doc/gen/html/html_cell.rb +36 -18
- data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
- data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
- data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
- data/lib/wx/doc/gen/html/html_printout.rb +15 -5
- data/lib/wx/doc/gen/html/html_window.rb +19 -8
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +152 -0
- data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
- data/lib/wx/doc/gen/icon.rb +14 -14
- data/lib/wx/doc/gen/image.rb +119 -64
- data/lib/wx/doc/gen/image_list.rb +10 -6
- data/lib/wx/doc/gen/keyboard_state.rb +7 -7
- data/lib/wx/doc/gen/list_box.rb +30 -21
- data/lib/wx/doc/gen/list_ctrl.rb +169 -78
- data/lib/wx/doc/gen/list_event.rb +24 -2
- data/lib/wx/doc/gen/listbook.rb +12 -6
- data/lib/wx/doc/gen/locale.rb +11 -36
- data/lib/wx/doc/gen/log.rb +122 -45
- data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
- data/lib/wx/doc/gen/mdi_frame.rb +15 -9
- data/lib/wx/doc/gen/media_ctrl.rb +7 -4
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +23 -27
- data/lib/wx/doc/gen/menu.rb +9 -9
- data/lib/wx/doc/gen/menu_bar.rb +4 -10
- data/lib/wx/doc/gen/menu_item.rb +115 -34
- data/lib/wx/doc/gen/message_dialog.rb +48 -30
- data/lib/wx/doc/gen/mini_frame.rb +12 -3
- data/lib/wx/doc/gen/mouse_state.rb +1 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +6 -7
- data/lib/wx/doc/gen/notebook.rb +20 -15
- data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/object.rb +2 -2
- data/lib/wx/doc/gen/palette.rb +3 -3
- data/lib/wx/doc/gen/panel.rb +4 -3
- data/lib/wx/doc/gen/pen.rb +25 -12
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
- data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
- data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
- data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
- data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
- data/lib/wx/doc/gen/picker_base.rb +12 -11
- data/lib/wx/doc/gen/platform_info.rb +7 -7
- data/lib/wx/doc/gen/popup_window.rb +6 -6
- data/lib/wx/doc/gen/progress_dialog.rb +1 -1
- data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +24 -18
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +22 -22
- data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
- data/lib/wx/doc/gen/radio_box.rb +12 -18
- data/lib/wx/doc/gen/radio_button.rb +8 -6
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
- data/lib/wx/doc/gen/region.rb +9 -8
- data/lib/wx/doc/gen/region_iterator.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +3 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
- data/lib/wx/doc/gen/sash_window.rb +8 -3
- data/lib/wx/doc/gen/scroll_bar.rb +29 -8
- data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
- data/lib/wx/doc/gen/scrolled_control.rb +41 -23
- data/lib/wx/doc/gen/scrolled_window.rb +41 -23
- data/lib/wx/doc/gen/search_ctrl.rb +15 -8
- data/lib/wx/doc/gen/simplebook.rb +2 -2
- data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/sizer.rb +29 -28
- data/lib/wx/doc/gen/slider.rb +49 -16
- data/lib/wx/doc/gen/spin_button.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +20 -4
- data/lib/wx/doc/gen/static_bitmap.rb +5 -5
- data/lib/wx/doc/gen/static_box.rb +36 -32
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +5 -4
- data/lib/wx/doc/gen/static_text.rb +12 -6
- data/lib/wx/doc/gen/status_bar.rb +14 -5
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
- data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
- data/lib/wx/doc/gen/system_options.rb +11 -1
- data/lib/wx/doc/gen/system_settings.rb +3 -3
- data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +11 -7
- data/lib/wx/doc/gen/text_ctrl.rb +61 -92
- data/lib/wx/doc/gen/text_entry.rb +28 -40
- data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
- data/lib/wx/doc/gen/text_validator.rb +0 -11
- data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
- data/lib/wx/doc/gen/timer.rb +8 -4
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +6 -5
- data/lib/wx/doc/gen/tool_bar.rb +41 -24
- data/lib/wx/doc/gen/tool_tip.rb +2 -2
- data/lib/wx/doc/gen/toolbook.rb +6 -3
- data/lib/wx/doc/gen/top_level_window.rb +35 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
- data/lib/wx/doc/gen/tree_event.rb +23 -2
- data/lib/wx/doc/gen/treebook.rb +6 -2
- data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
- data/lib/wx/doc/gen/utils.rb +9 -3
- data/lib/wx/doc/gen/v_list_box.rb +2 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/validator.rb +7 -5
- data/lib/wx/doc/gen/variant.rb +34 -97
- data/lib/wx/doc/gen/window.rb +157 -102
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +1 -1
- data/lib/wx/doc/gen/wizard.rb +17 -4
- data/lib/wx/doc/gen/wizard_event.rb +9 -2
- data/lib/wx/doc/gen/wizard_page.rb +1 -1
- data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
- data/lib/wx/doc/gen/xml_node.rb +3 -3
- data/lib/wx/doc/gen/xml_resource.rb +12 -9
- data/lib/wx/doc/image.rb +42 -12
- data/lib/wx/doc/list_ctrl.rb +32 -0
- data/lib/wx/doc/log.rb +28 -0
- data/lib/wx/doc/pen.rb +17 -0
- data/lib/wx/doc/prt/printer_dc.rb +2 -2
- data/lib/wx/doc/radio_box.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +1 -1
- data/lib/wx/doc/text_validator.rb +12 -0
- data/lib/wx/doc/window.rb +27 -0
- data/lib/wx/keyword_defs.rb +77 -76
- data/lib/wx/prt/keyword_defs.rb +5 -1
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/install.rb +17 -6
- data/rakelib/lib/config/linux.rb +4 -2
- data/rakelib/lib/config/macosx.rb +120 -1
- data/rakelib/lib/config/mingw.rb +6 -1
- data/rakelib/lib/config/unixish.rb +26 -11
- data/rakelib/lib/config.rb +15 -6
- data/samples/aui/aui.rb +432 -363
- data/samples/propgrid/propgrid.rb +3 -0
- data/samples/sampler/editor.rb +33 -25
- data/samples/sampler/sample.rb +2 -2
- data/samples/sampler/stc_editor.rb +4 -2
- data/tests/lib/item_container_tests.rb +82 -0
- data/tests/lib/text_entry_tests.rb +80 -0
- data/tests/lib/wxapp_runner.rb +12 -0
- data/tests/lib/wxframe_runner.rb +89 -4
- data/tests/test_art.rb +9 -0
- data/tests/test_box_sizer.rb +161 -0
- data/tests/test_ext_controls.rb +28 -0
- data/tests/test_font.rb +239 -0
- data/tests/test_grid_sizer.rb +148 -0
- data/tests/test_intl.rb +5 -1
- data/tests/test_list_ctrl.rb +53 -0
- data/tests/test_log.rb +163 -0
- data/tests/test_std_controls.rb +321 -37
- data/tests/test_timer.rb +95 -0
- data/tests/test_window.rb +340 -0
- metadata +36 -2
data/lib/wx/doc/gen/window.rb
CHANGED
@@ -154,62 +154,105 @@ module Wx
|
|
154
154
|
# === Styles
|
155
155
|
#
|
156
156
|
# This class supports the following styles:
|
157
|
-
#
|
157
|
+
#
|
158
158
|
# - {Wx::Border::BORDER_DEFAULT}: The window class will decide the kind of border to show, if any.
|
159
|
+
#
|
159
160
|
# - {Wx::Border::BORDER_SIMPLE}: Displays a thin border around the window. {Wx::SIMPLE_BORDER} is the old name for this style.
|
161
|
+
#
|
160
162
|
# - {Wx::Border::BORDER_SUNKEN}: Displays a sunken border. {Wx::SUNKEN_BORDER} is the old name for this style.
|
163
|
+
#
|
161
164
|
# - {Wx::Border::BORDER_RAISED}: Displays a raised border. {Wx::RAISED_BORDER} is the old name for this style.
|
165
|
+
#
|
162
166
|
# - {Wx::Border::BORDER_STATIC}: Displays a border suitable for a static control. {Wx::STATIC_BORDER} is the old name for this style. Windows only.
|
167
|
+
#
|
163
168
|
# - {Wx::Border::BORDER_THEME}: Displays a native border suitable for a control, on the current platform. On Windows, this will be a themed border; on most other platforms a sunken border will be used. For more information for themed borders on Windows, please see Themed borders on Windows.
|
169
|
+
#
|
164
170
|
# - {Wx::Border::BORDER_NONE}: Displays no border, overriding the default border style for the window. {Wx::NO_BORDER} is the old name for this style.
|
171
|
+
#
|
165
172
|
# - {Wx::Border::BORDER_DOUBLE}: This style is obsolete and should not be used.
|
173
|
+
#
|
166
174
|
# - {Wx::TRANSPARENT_WINDOW}: The window is transparent, that is, it will not receive paint events. Windows only.
|
175
|
+
#
|
167
176
|
# - {Wx::TAB_TRAVERSAL}: This style is used by wxWidgets for the windows supporting TAB navigation among their children, such as {Wx::Dialog} and {Wx::Panel}. It should almost never be used in the application code.
|
177
|
+
#
|
168
178
|
# - {Wx::WANTS_CHARS}: Use this to indicate that the window wants to get all char/key events for all keys - even for keys like TAB or ENTER which are usually used for dialog navigation and which wouldn't be generated without this style. If you need to use this style in order to get the arrows or etc., but would still like to have normal keyboard navigation take place, you should call Navigate in response to the key events for Tab and Shift-Tab.
|
179
|
+
#
|
169
180
|
# - {Wx::NO_FULL_REPAINT_ON_RESIZE}: On Windows, this style used to disable repainting the window completely when its size is changed. Since this behaviour is now the default, the style is now obsolete and no longer has an effect.
|
181
|
+
#
|
170
182
|
# - {Wx::VSCROLL}: Use this style to enable a vertical scrollbar. Notice that this style cannot be used with native controls which don't support scrollbars nor with top-level windows in most ports.
|
183
|
+
#
|
171
184
|
# - {Wx::HSCROLL}: Use this style to enable a horizontal scrollbar. The same limitations as for {Wx::VSCROLL} apply to this style.
|
172
|
-
#
|
185
|
+
#
|
186
|
+
# - {Wx::ALWAYS_SHOW_SB}: If a window has scrollbars, disable them instead of hiding them when they are not needed (i.e. when the size of the window is big enough to not require the scrollbars to navigate it). This style is currently implemented for wxMSW, wxGTK and {Wx::Universal} and does nothing on the other platforms.
|
187
|
+
#
|
173
188
|
# - {Wx::CLIP_CHILDREN}: Use this style to eliminate flicker caused by the background being repainted, then children being painted over them. Windows only.
|
189
|
+
#
|
174
190
|
# - {Wx::FULL_REPAINT_ON_RESIZE}: Use this style to force a complete redraw of the window whenever it is resized instead of redrawing just the part of the window affected by resizing. Note that this was the behaviour by default before 2.5.1 release and that if you experience redraw problems with code which previously used to work you may want to try this. Currently this style applies on GTK+ 2 and Windows only, and full repainting is always done on other platforms.
|
175
191
|
#
|
176
192
|
# === Extra Styles
|
177
193
|
#
|
178
194
|
# This class supports the following extra styles:
|
179
|
-
#
|
195
|
+
#
|
180
196
|
# - {Wx::WS_EX_BLOCK_EVENTS}: {Wx::CommandEvents} and the objects of the derived classes are forwarded to the parent window and so on recursively by default. Using this flag for the given window allows blocking this propagation at this window, i.e. prevent the events from being propagated further upwards. Dialogs have this flag on by default for the reasons explained in the Events and Event Handling.
|
197
|
+
#
|
181
198
|
# - {Wx::WS_EX_TRANSIENT}: Don't use this window as an implicit parent for the other windows: this must be used with transient windows as otherwise there is the risk of creating a dialog/frame with this window as a parent, which would lead to a crash if the parent were destroyed before the child.
|
199
|
+
#
|
182
200
|
# - {Wx::WS_EX_CONTEXTHELP}: Under Windows, puts a query button on the caption. When pressed, Windows will go into a context-sensitive help mode and wxWidgets will send a {Wx::EVT_HELP} event if the user clicked on an application window. This style cannot be used (because of the underlying native behaviour) together with {Wx::MAXIMIZE_BOX} or {Wx::MINIMIZE_BOX}, so these two styles are automatically turned off if this one is used.
|
201
|
+
#
|
183
202
|
# - {Wx::WS_EX_PROCESS_IDLE}: This window should always process idle events, even if the mode set by {Wx::IdleEvent.set_mode} is {Wx::IdleMode::IDLE_PROCESS_SPECIFIED}.
|
203
|
+
#
|
184
204
|
# - {Wx::WS_EX_PROCESS_UI_UPDATES}: This window should always process UI update events, even if the mode set by {Wx::UpdateUIEvent.set_mode} is {Wx::UpdateUIMode::UPDATE_UI_PROCESS_SPECIFIED}.
|
185
205
|
#
|
186
206
|
# === Events emitted by this class
|
187
207
|
#
|
188
208
|
# Event handler methods for events emitted by this class:
|
189
|
-
#
|
209
|
+
#
|
190
210
|
# - {Wx::EvtHandler#EVT_ACTIVATE}(meth = nil, &block): Process a {Wx::EVT_ACTIVATE} event. See {Wx::ActivateEvent}.
|
211
|
+
#
|
191
212
|
# - {Wx::EvtHandler#evt_child_focus}(meth = nil, &block): Process a {Wx::EVT_CHILD_FOCUS} event. See {Wx::ChildFocusEvent}.
|
213
|
+
#
|
192
214
|
# - {Wx::EvtHandler#evt_context_menu}(meth = nil, &block): A right click (or other context menu command depending on platform) has been detected. See {Wx::ContextMenuEvent}.
|
215
|
+
#
|
193
216
|
# - {Wx::EvtHandler#evt_help}(id, meth = nil, &block): Process a {Wx::EVT_HELP} event. See {Wx::HelpEvent}.
|
217
|
+
#
|
194
218
|
# - {Wx::EvtHandler#evt_help_range}(id1, id2, meth = nil, &block): Process a {Wx::EVT_HELP} event for a range of ids. See {Wx::HelpEvent}.
|
219
|
+
#
|
195
220
|
# - {Wx::EvtHandler#evt_drop_files}(meth = nil, &block): Process a {Wx::EVT_DROP_FILES} event. See {Wx::DropFilesEvent}.
|
221
|
+
#
|
196
222
|
# - {Wx::EvtHandler#evt_erase_background}(meth = nil, &block): Process a {Wx::EVT_ERASE_BACKGROUND} event. See {Wx::EraseEvent}.
|
223
|
+
#
|
197
224
|
# - {Wx::EvtHandler#evt_set_focus}(meth = nil, &block): Process a {Wx::EVT_SET_FOCUS} event. See {Wx::FocusEvent}.
|
225
|
+
#
|
198
226
|
# - {Wx::EvtHandler#evt_kill_focus}(meth = nil, &block): Process a {Wx::EVT_KILL_FOCUS} event. See {Wx::FocusEvent}.
|
227
|
+
#
|
199
228
|
# - {Wx::EvtHandler#evt_idle}(meth = nil, &block): Process a {Wx::EVT_IDLE} event. See {Wx::IdleEvent}.
|
229
|
+
#
|
200
230
|
# - {Wx::EvtHandler}evt_joy_*(meth = nil, &block): Processes joystick events. See {Wx::JoystickEvent}.
|
231
|
+
#
|
201
232
|
# - {Wx::EvtHandler#evt_key_down}(meth = nil, &block): Process a {Wx::EVT_KEY_DOWN} event (any key has been pressed). See {Wx::KeyEvent}.
|
233
|
+
#
|
202
234
|
# - {Wx::EvtHandler#evt_key_up}(meth = nil, &block): Process a {Wx::EVT_KEY_UP} event (any key has been released). See {Wx::KeyEvent}.
|
235
|
+
#
|
203
236
|
# - {Wx::EvtHandler#evt_char}(meth = nil, &block): Process a {Wx::EVT_CHAR} event. See {Wx::KeyEvent}.
|
237
|
+
#
|
204
238
|
# - {Wx::EvtHandler#evt_char_hook}(meth = nil, &block): Process a {Wx::EVT_CHAR_HOOK} event. See {Wx::KeyEvent}.
|
239
|
+
#
|
205
240
|
# - {Wx::EvtHandler#evt_mouse_capture_lost}(meth = nil, &block): Process a {Wx::EVT_MOUSE_CAPTURE_LOST} event. See {Wx::MouseCaptureLostEvent}.
|
241
|
+
#
|
206
242
|
# - {Wx::EvtHandler#evt_mouse_capture_changed}(meth = nil, &block): Process a {Wx::EVT_MOUSE_CAPTURE_CHANGED} event. See {Wx::MouseCaptureChangedEvent}.
|
243
|
+
#
|
207
244
|
# - {Wx::EvtHandler}evt_mouse_*(meth = nil, &block): See {Wx::MouseEvent}.
|
245
|
+
#
|
208
246
|
# - {Wx::EvtHandler#evt_paint}(meth = nil, &block): Process a {Wx::EVT_PAINT} event. See {Wx::PaintEvent}.
|
247
|
+
#
|
209
248
|
# - {Wx::EvtHandler}evt_power_*(meth = nil, &block): The system power state changed. See {Wx::PowerEvent}.
|
249
|
+
#
|
210
250
|
# - {Wx::EvtHandler}evt_scrollwin_*(meth = nil, &block): Process scroll events. See {Wx::ScrollWinEvent}.
|
251
|
+
#
|
211
252
|
# - {Wx::EvtHandler#evt_set_cursor}(meth = nil, &block): Process a {Wx::EVT_SET_CURSOR} event. See {Wx::SetCursorEvent}.
|
253
|
+
#
|
212
254
|
# - {Wx::EvtHandler#evt_size}(meth = nil, &block): Process a {Wx::EVT_SIZE} event. See {Wx::SizeEvent}.
|
255
|
+
#
|
213
256
|
# - {Wx::EvtHandler#evt_sys_colour_changed}(meth = nil, &block): Process a {Wx::EVT_SYS_COLOUR_CHANGED} event. See {Wx::SysColourChangedEvent}.
|
214
257
|
#
|
215
258
|
# ===
|
@@ -417,7 +460,7 @@ module Wx
|
|
417
460
|
# Scrolls the window by the given number of lines down (if lines is positive) or up.
|
418
461
|
# Returns true if the window was scrolled, false if it was already on top/bottom and nothing was done.
|
419
462
|
#
|
420
|
-
# This function is currently only implemented under MSW and {Wx::TextCtrl} under
|
463
|
+
# This function is currently only implemented under MSW and {Wx::TextCtrl} under wxGTK (it also works for {Wx::Scrolled} classes under all platforms).
|
421
464
|
# @see Wx::Window#scroll_pages
|
422
465
|
# @param lines [Integer]
|
423
466
|
# @return [true,false]
|
@@ -426,7 +469,7 @@ module Wx
|
|
426
469
|
# Scrolls the window by the given number of pages down (if pages is positive) or up.
|
427
470
|
# Returns true if the window was scrolled, false if it was already on top/bottom and nothing was done.
|
428
471
|
#
|
429
|
-
# This function is currently only implemented under MSW and
|
472
|
+
# This function is currently only implemented under MSW and wxGTK.
|
430
473
|
# @see Wx::Window#scroll_lines
|
431
474
|
# @param pages [Integer]
|
432
475
|
# @return [true,false]
|
@@ -436,7 +479,7 @@ module Wx
|
|
436
479
|
# Note that you can often use {Wx::Scrolled} instead of using this function directly.
|
437
480
|
# @param dx [Integer] Amount to scroll horizontally.
|
438
481
|
# @param dy [Integer] Amount to scroll vertically.
|
439
|
-
# @param rect [Wx::Rect] Rectangle to scroll, if it is NULL, the whole window is scrolled (this is always the case under
|
482
|
+
# @param rect [Wx::Rect] Rectangle to scroll, if it is NULL, the whole window is scrolled (this is always the case under wxGTK which doesn't support this parameter)
|
440
483
|
# @return [void]
|
441
484
|
def scroll_window(dx, dy, rect=nil) end
|
442
485
|
|
@@ -471,8 +514,8 @@ module Wx
|
|
471
514
|
|
472
515
|
# Sets the scrollbar properties of a built-in scrollbar.
|
473
516
|
# Let's say you wish to display 50 lines of text, using the same font. The window is sized so that you can only see 16 lines at a time. You would use:
|
474
|
-
# ```
|
475
|
-
#
|
517
|
+
# ```ruby
|
518
|
+
# set_scrollbar(Wx::VERTICAL, 0, 16, 50)
|
476
519
|
# ```
|
477
520
|
# Note that with the window at this size, the thumb position can never go above 50 minus 16, or 34. You can determine how many lines are currently visible by dividing the current view size by the character height in pixels. When defining your own scrollbar behaviour, you will always need to recalculate the scrollbar settings when the window size changes. You could therefore put your scrollbar calculations and SetScrollbar call into a function named AdjustScrollbars, which can be called initially and also from your {Wx::SizeEvent} handler function.
|
478
521
|
# @see Scrolled Windows
|
@@ -482,7 +525,7 @@ module Wx
|
|
482
525
|
# @param orientation [Integer] Determines the scrollbar whose page size is to be set. May be {Wx::Orientation::HORIZONTAL} or {Wx::Orientation::VERTICAL}.
|
483
526
|
# @param position [Integer] The position of the scrollbar in scroll units.
|
484
527
|
# @param thumbSize [Integer] The size of the thumb, or visible portion of the scrollbar, in scroll units.
|
485
|
-
# @param range [Integer] The maximum position of the scrollbar. Value of -1 can be used to ask for the scrollbar to be shown but in the disabled state: this can be used to avoid removing the scrollbar even when it is not needed (currently this is only implemented in
|
528
|
+
# @param range [Integer] The maximum position of the scrollbar. Value of -1 can be used to ask for the scrollbar to be shown but in the disabled state: this can be used to avoid removing the scrollbar even when it is not needed (currently this is only implemented in wxMSW port).
|
486
529
|
# @param refresh [true,false] true to redraw the scrollbar, false otherwise.
|
487
530
|
# @return [void]
|
488
531
|
def set_scrollbar(orientation, position, thumbSize, range, refresh=true) end
|
@@ -535,8 +578,8 @@ module Wx
|
|
535
578
|
# @overload from_dip(sz)
|
536
579
|
# Convert DPI-independent pixel values to the value in pixels appropriate for the current toolkit.
|
537
580
|
# A DPI-independent pixel is just a pixel at the standard 96 DPI resolution. To keep the same physical size at higher resolution, the physical pixel value must be scaled by {Wx::Window#get_dpi_scale_factor} but this scaling may be already done by the underlying toolkit (GTK+, Cocoa, ...) automatically. This method performs the conversion only if it is not already done by the lower level toolkit and so by using it with pixel values you can guarantee that the physical size of the corresponding elements will remain the same in all resolutions under all platforms. For example, instead of creating a bitmap of the hard coded size of 32 pixels you should use
|
538
|
-
# ```
|
539
|
-
#
|
581
|
+
# ```ruby
|
582
|
+
# bmp = Wx::Bitmap.new(from_dip(Wx::Size.new(32, 32)))
|
540
583
|
# ```
|
541
584
|
# to avoid using tiny bitmaps on high DPI screens.
|
542
585
|
# Notice that this function is only needed when using hard coded pixel values. It is not necessary if the sizes are already based on the DPI-independent units such as dialog units or if you are relying on the controls automatic best size determination and using sizers to lay out them.
|
@@ -577,9 +620,9 @@ module Wx
|
|
577
620
|
# @overload to_dip(sz)
|
578
621
|
# Convert pixel values of the current toolkit to DPI-independent pixel values.
|
579
622
|
# A DPI-independent pixel is just a pixel at the standard 96 DPI resolution. To keep the same physical size at higher resolution, the physical pixel value must be scaled by {Wx::Window#get_dpi_scale_factor} but this scaling may be already done by the underlying toolkit (GTK+, Cocoa, ...) automatically. This method performs the conversion only if it is not already done by the lower level toolkit, For example, you may want to use this to store window sizes and positions so that they can be re-used regardless of the display DPI:
|
580
|
-
# ```
|
581
|
-
#
|
582
|
-
#
|
623
|
+
# ```ruby
|
624
|
+
# pt = Wx::Point.new(to_dip(get_position))
|
625
|
+
# size = Wx::Size.new(to_dip(get_size))
|
583
626
|
# ```
|
584
627
|
#
|
585
628
|
# Also note that if either component of sz has the special value of -1, it is returned unchanged independently of the current DPI, to preserve the special value of -1 in wxWidgets API (it is often used to mean "unspecified").
|
@@ -809,7 +852,7 @@ module Wx
|
|
809
852
|
# Returns the factor mapping logical pixels of this window to physical pixels.
|
810
853
|
# This function can be used to portably determine the number of physical pixels in a window of the given size, by multiplying the window size by the value returned from it. I.e. it returns the factor converting window coordinates to "content view" coordinates, where the view can be just a simple window displaying a {Wx::Bitmap} or {Wx::GLCanvas} or any other kind of window rendering arbitrary "content" on screen.
|
811
854
|
# For the platforms not doing any pixel mapping, i.e. where logical and physical pixels are one and the same, this function always returns 1.0 and so using it is, in principle, unnecessary and could be avoided by using preprocessor check for {Wx::HAS_DPI_INDEPENDENT_PIXELS} not being defined, however using this function unconditionally under all platforms is usually simpler and so preferable.
|
812
|
-
# Current behaviour of this function is compatible with wxWidgets 3.0, but different from its behaviour in versions 3.1.0 to 3.1.3, where it returned the same value as {Wx::Window#get_dpi_scale_factor}. Please use the other function if you need to use a scaling factor greater than 1.0 even for the platforms without {Wx::HAS_DPI_INDEPENDENT_PIXELS}, such as
|
855
|
+
# Current behaviour of this function is compatible with wxWidgets 3.0, but different from its behaviour in versions 3.1.0 to 3.1.3, where it returned the same value as {Wx::Window#get_dpi_scale_factor}. Please use the other function if you need to use a scaling factor greater than 1.0 even for the platforms without {Wx::HAS_DPI_INDEPENDENT_PIXELS}, such as wxMSW.
|
813
856
|
# @return [Float]
|
814
857
|
def get_content_scale_factor; end
|
815
858
|
alias_method :content_scale_factor, :get_content_scale_factor
|
@@ -907,8 +950,8 @@ module Wx
|
|
907
950
|
|
908
951
|
# Sets the maximum client size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size of its client area.
|
909
952
|
# Note that this method is just a shortcut for:
|
910
|
-
# ```
|
911
|
-
#
|
953
|
+
# ```ruby
|
954
|
+
# set_max_size(client_to_window_size(size))
|
912
955
|
# ```
|
913
956
|
# @see Wx::Window#set_max_size
|
914
957
|
# @see Window Sizing Overview
|
@@ -930,8 +973,8 @@ module Wx
|
|
930
973
|
# You may need to call this if you change the window size after construction and before adding to its parent sizer.
|
931
974
|
# Note, that just as with {Wx::Window#set_min_size}, calling this method doesn't prevent the program from explicitly making the window smaller than the specified size.
|
932
975
|
# Note that this method is just a shortcut for:
|
933
|
-
# ```
|
934
|
-
#
|
976
|
+
# ```ruby
|
977
|
+
# set_min_size(client_to_window_size(size))
|
935
978
|
# ```
|
936
979
|
# @see Wx::Window#set_min_size
|
937
980
|
# @see Window Sizing Overview
|
@@ -960,7 +1003,13 @@ module Wx
|
|
960
1003
|
# @param width [Integer] Required width in pixels, or {Wx::DEFAULT_COORD} to indicate that the existing value should be used.
|
961
1004
|
# @param height [Integer] Required height position in pixels, or {Wx::DEFAULT_COORD} to indicate that the existing value should be used.
|
962
1005
|
# @param sizeFlags [Integer] Indicates the interpretation of other parameters. It is a bit list of the following:
|
963
|
-
#
|
1006
|
+
#
|
1007
|
+
# - {Wx::SIZE_AUTO_WIDTH}: a {Wx::DEFAULT_COORD} width value is taken to indicate a wxWidgets-supplied default width.
|
1008
|
+
# - {Wx::SIZE_AUTO_HEIGHT}: a {Wx::DEFAULT_COORD} height value is taken to indicate a wxWidgets-supplied default height.
|
1009
|
+
# - {Wx::SIZE_AUTO}: {Wx::DEFAULT_COORD} size values are taken to indicate a wxWidgets-supplied default size.
|
1010
|
+
# - {Wx::SIZE_USE_EXISTING}: existing dimensions should be used if {Wx::DEFAULT_COORD} values are supplied.
|
1011
|
+
# - {Wx::SIZE_ALLOW_MINUS_ONE}: allow negative dimensions (i.e. value of {Wx::DEFAULT_COORD}) to be interpreted as real dimensions, not default values.
|
1012
|
+
# - {Wx::SIZE_FORCE}: normally, if the position and the size of the window are already the same as the parameters of this function, nothing is done. but with this flag a window resize may be forced even in this case (supported in wx 2.6.2 and later and only implemented for MSW and ignored elsewhere currently).
|
964
1013
|
# @return [void]
|
965
1014
|
# @overload set_size(rect)
|
966
1015
|
# Sets the size of the window in pixels.
|
@@ -1079,8 +1128,8 @@ module Wx
|
|
1079
1128
|
# @overload move(x, y, flags=Wx::SIZE_USE_EXISTING)
|
1080
1129
|
# Moves the window to the given position.
|
1081
1130
|
# Implementations of SetSize can also implicitly implement the {Wx::Window#move} function, which is defined in the base {Wx::Window} class as the call:
|
1082
|
-
# ```
|
1083
|
-
#
|
1131
|
+
# ```ruby
|
1132
|
+
# set_size(x, y, Wx::DEFAULT_COORD, Wx::DEFAULT_COORD, Wx::SIZE_USE_EXISTING)
|
1084
1133
|
# ```
|
1085
1134
|
# @see Wx::Window#set_size
|
1086
1135
|
# @param x [Integer] Required x position.
|
@@ -1090,8 +1139,8 @@ module Wx
|
|
1090
1139
|
# @overload move(pt, flags=Wx::SIZE_USE_EXISTING)
|
1091
1140
|
# Moves the window to the given position.
|
1092
1141
|
# Implementations of {Wx::Window#set_size} can also implicitly implement the {Wx::Window#move} function, which is defined in the base {Wx::Window} class as the call:
|
1093
|
-
# ```
|
1094
|
-
#
|
1142
|
+
# ```ruby
|
1143
|
+
# set_size(x, y, Wx::DEFAULT_COORD, Wx::DEFAULT_COORD, Wx::SIZE_USE_EXISTING)
|
1095
1144
|
# ```
|
1096
1145
|
# @see Wx::Window#set_size
|
1097
1146
|
# @param pt [Array(Integer, Integer), Wx::Point] {Wx::Point} object representing the position.
|
@@ -1114,10 +1163,7 @@ module Wx
|
|
1114
1163
|
# @overload convert_dialog_to_pixels(pt)
|
1115
1164
|
# Converts a point or size from dialog units to pixels.
|
1116
1165
|
# For the x dimension, the dialog units are multiplied by the average character width and then divided by 4. For the y dimension, the dialog units are multiplied by the average character height and then divided by 8.
|
1117
|
-
# Dialog units are used for maintaining a dialog's proportions even if the font changes. You can also use these functions programmatically.
|
1118
|
-
# ```
|
1119
|
-
# #define wxDLG_UNIT(parent, pt) parent->ConvertDialogToPixels(pt)
|
1120
|
-
# ```
|
1166
|
+
# Dialog units are used for maintaining a dialog's proportions even if the font changes. You can also use these functions programmatically.
|
1121
1167
|
# @see Wx::Window#convert_pixels_to_dialog
|
1122
1168
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
1123
1169
|
# @return [Wx::Point]
|
@@ -1154,7 +1200,7 @@ module Wx
|
|
1154
1200
|
# Freezes the window or, in other words, prevents any updates from taking place on screen, the window is not redrawn at all.
|
1155
1201
|
# {Wx::Window#thaw} must be called to re-enable window redrawing. Calls to these two functions may be nested but to ensure that the window is properly repainted again, you must thaw it exactly as many times as you froze it.
|
1156
1202
|
# If the window has any children, they are recursively frozen too.
|
1157
|
-
# This method is useful for visual appearance optimization (for example, it is a good idea to use it before doing many large text insertions in a row into a {Wx::TextCtrl} under
|
1203
|
+
# This method is useful for visual appearance optimization (for example, it is a good idea to use it before doing many large text insertions in a row into a {Wx::TextCtrl} under wxGTK) but is not implemented on all platforms nor for all controls so it is mostly just a hint to wxWidgets and not a mandatory directive.
|
1158
1204
|
# @see Wx::WindowUpdateLocker
|
1159
1205
|
# @see Wx::Window#thaw
|
1160
1206
|
# @see Wx::Window#is_frozen
|
@@ -1306,22 +1352,19 @@ module Wx
|
|
1306
1352
|
# Sets the background style of the window.
|
1307
1353
|
# The default background style is {Wx::BackgroundStyle::BG_STYLE_ERASE} which indicates that the window background may be erased in EVT_ERASE_BACKGROUND handler. This is a safe, compatibility default; however you may want to change it to {Wx::BackgroundStyle::BG_STYLE_SYSTEM} if you don't define any erase background event handlers at all, to avoid unnecessary generation of erase background events and always let system erase the background. And you should change the background style to {Wx::BackgroundStyle::BG_STYLE_PAINT} if you define an EVT_PAINT handler which completely overwrites the window background as in this case erasing it previously, either in EVT_ERASE_BACKGROUND handler or in the system default handler, would result in flicker as the background pixels will be repainted twice every time the window is redrawn. Do ensure that the background is entirely erased by your EVT_PAINT handler in this case however as otherwise garbage may be left on screen.
|
1308
1354
|
# Notice that in previous versions of wxWidgets a common way to work around the above mentioned flickering problem was to define an empty EVT_ERASE_BACKGROUND handler. Setting background style to {Wx::BackgroundStyle::BG_STYLE_PAINT} is a simpler and more efficient solution to the same problem.
|
1309
|
-
# Under
|
1355
|
+
# Under wxGTK and wxOSX, you can use {Wx::BackgroundStyle::BG_STYLE_TRANSPARENT} to obtain full transparency of the window background. Note that wxGTK supports this only since GTK 2.12 with a compositing manager enabled, call {Wx::Window#is_transparent_background_supported} to check whether this is the case, see the example of doing it in the shapedsample".
|
1310
1356
|
# Also, in order for <code>SetBackgroundStyle(wxBG_STYLE_TRANSPARENT)</code> to work, it must be called before {Wx::Window#create}. If you're using your own {Wx::Window}-derived class you should write your code in the following way:
|
1311
|
-
# ```
|
1312
|
-
# class MyWidget
|
1313
|
-
#
|
1314
|
-
#
|
1315
|
-
#
|
1316
|
-
#
|
1317
|
-
#
|
1318
|
-
#
|
1319
|
-
#
|
1320
|
-
#
|
1321
|
-
#
|
1322
|
-
# Create(parent, ...);
|
1323
|
-
# }
|
1324
|
-
# };
|
1357
|
+
# ```ruby
|
1358
|
+
# class MyWidget < Wx::Window
|
1359
|
+
# def initialize(parent, ...)
|
1360
|
+
# super() # Use default ctor here!
|
1361
|
+
# # Do this first:
|
1362
|
+
# set_background_style(Wx::BG_STYLE_TRANSPARENT)
|
1363
|
+
#
|
1364
|
+
# # And really create the window afterwards:
|
1365
|
+
# create(parent, ...)
|
1366
|
+
# end
|
1367
|
+
# end
|
1325
1368
|
# ```
|
1326
1369
|
# @see Wx::Window#set_background_colour
|
1327
1370
|
# @see Wx::Window#get_foreground_colour
|
@@ -1477,8 +1520,8 @@ module Wx
|
|
1477
1520
|
def handle_as_navigation_key(event) end
|
1478
1521
|
|
1479
1522
|
# Shorthand for:
|
1480
|
-
# ```
|
1481
|
-
#
|
1523
|
+
# ```ruby
|
1524
|
+
# get_event_handler.safely_process_event(event)
|
1482
1525
|
# ```
|
1483
1526
|
# @see Wx::Window#process_window_event
|
1484
1527
|
# @param event [Wx::Event]
|
@@ -1487,8 +1530,8 @@ module Wx
|
|
1487
1530
|
|
1488
1531
|
# Convenient wrapper for {Wx::Window#process_event}.
|
1489
1532
|
# This is the same as writing
|
1490
|
-
# ```
|
1491
|
-
#
|
1533
|
+
# ```ruby
|
1534
|
+
# get_event_handler.process_event(event)
|
1492
1535
|
# ```
|
1493
1536
|
# but more convenient. Notice that {Wx::Window#process_event} itself can't be called for {Wx::Window} objects as it ignores the event handlers associated with the window; use this function instead.
|
1494
1537
|
# @param event [Wx::Event]
|
@@ -1505,9 +1548,9 @@ module Wx
|
|
1505
1548
|
# An event handler is an object that is capable of processing the events sent to a window. By default, the window is its own event handler, but an application may wish to substitute another, for example to allow central implementation of event-handling for a variety of different window classes.
|
1506
1549
|
# {Wx::Window#push_event_handler} allows an application to set up a stack of event handlers, where an event not handled by one event handler is handed to the next one in the chain.
|
1507
1550
|
# E.g. if you have two event handlers A and B and a {Wx::Window} instance W and you call:
|
1508
|
-
# ```
|
1509
|
-
# W
|
1510
|
-
# W
|
1551
|
+
# ```ruby
|
1552
|
+
# W.push_event_handler(A)
|
1553
|
+
# W.push_event_handler(B)
|
1511
1554
|
# ```
|
1512
1555
|
# you will end up with the following situation:
|
1513
1556
|
#
|
@@ -1717,10 +1760,10 @@ module Wx
|
|
1717
1760
|
# Enable or disable the window for user input.
|
1718
1761
|
# Note that when a parent window is disabled, all of its children are disabled as well and they are re-enabled again when the parent is.
|
1719
1762
|
# A window can be created initially disabled by calling this method on it before calling {Wx::Window#create} to create the actual underlying window, e.g.
|
1720
|
-
# ```
|
1721
|
-
#
|
1722
|
-
# w
|
1723
|
-
# w
|
1763
|
+
# ```ruby
|
1764
|
+
# w = MyWindow.new # Note: default ctor is used here.
|
1765
|
+
# w.enable(false)
|
1766
|
+
# w.create(parent, ... all the usual non-default ctor arguments ...)
|
1724
1767
|
# ```
|
1725
1768
|
#
|
1726
1769
|
# Returns true if the window has been enabled or disabled, false if nothing was done, i.e. if the window had already been in the specified state.
|
@@ -1745,7 +1788,7 @@ module Wx
|
|
1745
1788
|
def show(show=true) end
|
1746
1789
|
|
1747
1790
|
# This function shows a window, like {Wx::Window#show}, but using a special visual effect if possible.
|
1748
|
-
# Currently this function is only implemented in
|
1791
|
+
# Currently this function is only implemented in wxMSW and wxOSX and does the same thing as {Wx::Window#show} in the other ports.
|
1749
1792
|
# @see Wx::Window#hide_with_effect
|
1750
1793
|
# @param effect [ShowEffect] The effect to use.
|
1751
1794
|
# @param timeout [Integer] The timeout parameter specifies the time of the animation, in milliseconds. If the default value of 0 is used, the default animation time for the current platform is used.
|
@@ -1813,7 +1856,7 @@ module Wx
|
|
1813
1856
|
# This function shows a popup menu at the given position in this window and returns the selected id.
|
1814
1857
|
# It can be more convenient than the general purpose {Wx::Window#popup_menu} function for simple menus proposing a choice in a list of strings to the user.
|
1815
1858
|
# Notice that to avoid unexpected conflicts between the (usually consecutive range of) ids used by the menu passed to this function and the existing EVT_UPDATE_UI() handlers, this function temporarily disables UI updates for the window, so you need to manually disable (or toggle or ...) any items which should be disabled in the menu before showing it.
|
1816
|
-
# The parameter menu is the menu to show. The parameter pos (or the parameters x and y) is the position at which to show the menu in client coordinates. It is recommended to not explicitly specify coordinates when calling this method in response to mouse click, because some of the ports (namely,
|
1859
|
+
# The parameter menu is the menu to show. The parameter pos (or the parameters x and y) is the position at which to show the menu in client coordinates. It is recommended to not explicitly specify coordinates when calling this method in response to mouse click, because some of the ports (namely, wxGTK) can do a better job of positioning the menu in that case.
|
1817
1860
|
# The selected menu item id or {Wx::StandardID::ID_NONE} if none selected or an error occurred.
|
1818
1861
|
# @param menu [Wx::Menu]
|
1819
1862
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
@@ -1833,7 +1876,7 @@ module Wx
|
|
1833
1876
|
# menu is the menu to pop up.
|
1834
1877
|
# The position where the menu will appear can be specified either as a {Wx::Point} pos or by two integers (x and y).
|
1835
1878
|
# Note that this function switches focus to this window before showing the menu.
|
1836
|
-
# Just before the menu is popped up, {Wx::Menu::UpdateUI} is called to ensure that the menu items are in the correct state. The menu does not get deleted by the window. It is recommended to not explicitly specify coordinates when calling PopupMenu in response to mouse click, because some of the ports (namely,
|
1879
|
+
# Just before the menu is popped up, {Wx::Menu::UpdateUI} is called to ensure that the menu items are in the correct state. The menu does not get deleted by the window. It is recommended to not explicitly specify coordinates when calling PopupMenu in response to mouse click, because some of the ports (namely, wxGTK) can do a better job of positioning the menu in that case.
|
1837
1880
|
# @see Wx::Menu
|
1838
1881
|
# @param menu [Wx::Menu]
|
1839
1882
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
@@ -2137,8 +2180,8 @@ module Wx
|
|
2137
2180
|
|
2138
2181
|
# Request generation of touch events for this window.
|
2139
2182
|
# Each call to this function supersedes the previous ones, i.e. if you want to receive events for both zoom and rotate gestures, you need to call
|
2140
|
-
# ```
|
2141
|
-
#
|
2183
|
+
# ```ruby
|
2184
|
+
# enable_touch_events(Wx::TOUCH_ZOOM_GESTURE | Wx::TOUCH_ROTATE_GESTURE)
|
2142
2185
|
# ```
|
2143
2186
|
# instead of calling it twice in a row as the second call would disable the first gesture.
|
2144
2187
|
#
|
@@ -2173,19 +2216,19 @@ module Wx
|
|
2173
2216
|
# Does the window-specific updating after processing the update event.
|
2174
2217
|
# This function is called by {Wx::Window#update_window_ui} in order to check return values in the {Wx::UpdateUIEvent} and act appropriately. For example, to allow frame and dialog title updating, wxWidgets implements this function as follows:
|
2175
2218
|
#
|
2176
|
-
# ```
|
2177
|
-
#
|
2178
|
-
#
|
2179
|
-
#
|
2180
|
-
#
|
2181
|
-
#
|
2219
|
+
# ```ruby
|
2220
|
+
# # do the window-specific processing after processing the update event
|
2221
|
+
# def Wx::TopLevelWindow.do_update_window_ui(event)
|
2222
|
+
# if event.get_set_enabled
|
2223
|
+
# enable(event.get_enabled)
|
2224
|
+
# end
|
2182
2225
|
#
|
2183
|
-
#
|
2184
|
-
#
|
2185
|
-
#
|
2186
|
-
#
|
2187
|
-
#
|
2188
|
-
#
|
2226
|
+
# if event.get_set_text
|
2227
|
+
# if event.get_text != get_title
|
2228
|
+
# set_title(event.get_text)
|
2229
|
+
# end
|
2230
|
+
# end
|
2231
|
+
# end
|
2189
2232
|
# ```
|
2190
2233
|
# @param event [Wx::UpdateUIEvent]
|
2191
2234
|
# @return [void]
|
@@ -2271,12 +2314,14 @@ module Wx
|
|
2271
2314
|
# You can call this function from your application to ensure that your UI is up-to-date at this point (as far as your {Wx::UpdateUIEvent} handlers are concerned). This may be necessary if you have called {Wx::UpdateUIEvent.set_mode} or {Wx::UpdateUIEvent.set_update_interval} to limit the overhead that wxWidgets incurs by sending update UI events in idle time. flags should be a bitlist of one or more of the {Wx::UpdateUI} enumeration.
|
2272
2315
|
# If you are calling this function from an OnInternalIdle or OnIdle function, make sure you pass the {Wx::UpdateUI::UPDATE_UI_FROMIDLE} flag, since this tells the window to only update the UI elements that need to be updated in idle time. Some windows update their elements only when necessary, for example when a menu is about to be shown. The following is an example of how to call UpdateWindowUI from an idle function.
|
2273
2316
|
#
|
2274
|
-
# ```
|
2275
|
-
#
|
2276
|
-
#
|
2277
|
-
#
|
2278
|
-
#
|
2279
|
-
#
|
2317
|
+
# ```ruby
|
2318
|
+
# class MyWindow
|
2319
|
+
# ...
|
2320
|
+
# def on_internal_idle
|
2321
|
+
# update_window_ui(Wx::UPDATE_UI_FROMIDLE) if Wx::UpdateUIEvent.can_update(self)
|
2322
|
+
# end
|
2323
|
+
# ...
|
2324
|
+
# end
|
2280
2325
|
# ```
|
2281
2326
|
# @see Wx::UpdateUIEvent
|
2282
2327
|
# @see Wx::Window#do_update_window_ui
|
@@ -2367,7 +2412,7 @@ module Wx
|
|
2367
2412
|
|
2368
2413
|
# @overload initialize()
|
2369
2414
|
# Default constructor.
|
2370
|
-
# @return [Window]
|
2415
|
+
# @return [Wx::Window]
|
2371
2416
|
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr)
|
2372
2417
|
# Constructs a window, which can be a child of a frame, dialog or any other non-control window.
|
2373
2418
|
# @param parent [Wx::Window] Pointer to a parent window.
|
@@ -2376,41 +2421,51 @@ module Wx
|
|
2376
2421
|
# @param size [Array(Integer, Integer), Wx::Size] Window size. {Wx::DEFAULT_SIZE} indicates that wxWidgets should generate a default size for the window. If no suitable size can be found, the window will be sized to 20x20 pixels so that the window is visible but obviously not correctly sized.
|
2377
2422
|
# @param style [Integer] Window style. For generic window styles, please see {Wx::Window}.
|
2378
2423
|
# @param name [String] Window name.
|
2379
|
-
# @return [Window]
|
2424
|
+
# @return [Wx::Window]
|
2380
2425
|
def initialize(*args) end
|
2381
2426
|
|
2382
2427
|
# Construct the actual window object after creating the C++ object.
|
2383
2428
|
# The non-default constructor of {Wx::Window} class does two things: it initializes the C++ object and it also creates the window object in the underlying graphical toolkit. The {Wx::Window#create} method can be used to perform the second part later, while the default constructor can be used to perform the first part only.
|
2384
2429
|
# Please note that the underlying window must be created exactly once, i.e. if you use the default constructor, which doesn't do this, you must call {Wx::Window#create} before using the window and if you use the non-default constructor, you can not call {Wx::Window#create}, as the underlying window is already created.
|
2385
2430
|
# Note that it is possible and, in fact, useful, to call some methods on the object between creating the C++ object itself and calling {Wx::Window#create} on it, e.g. a common pattern to avoid showing the contents of a window before it is fully initialized is:
|
2386
|
-
# ```
|
2387
|
-
#
|
2388
|
-
# panel
|
2389
|
-
# panel
|
2431
|
+
# ```ruby
|
2432
|
+
# panel = Wx::Panel.new # Note: default constructor used.
|
2433
|
+
# panel.hide # Can be called before actually creating it.
|
2434
|
+
# panel.create(parent, Wx::ID_ANY, ...) # Won't be shown yet.
|
2390
2435
|
# ... create all the panel children ...
|
2391
|
-
# panel
|
2436
|
+
# panel.show # Now everything will be shown at once.
|
2392
2437
|
# ```
|
2393
2438
|
#
|
2394
2439
|
# Also note that it is possible to create an object of a derived type and then call {Wx::Window#create} on it:
|
2395
|
-
# ```
|
2396
|
-
#
|
2397
|
-
#
|
2398
|
-
#
|
2399
|
-
#
|
2400
|
-
#
|
2440
|
+
# ```ruby
|
2441
|
+
# # Suppose we have this function (which would typically be in a
|
2442
|
+
# # different file from the rest of the code).
|
2443
|
+
# def my_create_window_object_function
|
2444
|
+
# MyCustomClassDerivingFromWindow.new
|
2445
|
+
# end
|
2401
2446
|
#
|
2402
|
-
#
|
2403
|
-
#
|
2404
|
-
#
|
2447
|
+
# # Then we can create a window of MyCustomClassDerivingFromWindow
|
2448
|
+
# # class without really knowing about this type, as we would have
|
2449
|
+
# # to do if we wanted to use the non-default constructor, like this:
|
2405
2450
|
#
|
2406
|
-
#
|
2407
|
-
#
|
2451
|
+
# # First create the C++ object using the factory function.
|
2452
|
+
# window = my_create_window_object_function
|
2408
2453
|
#
|
2409
|
-
#
|
2410
|
-
#
|
2411
|
-
#
|
2412
|
-
#
|
2413
|
-
#
|
2454
|
+
# # And now create the underlying window.
|
2455
|
+
# #
|
2456
|
+
# # This should call the base Wx::Window#create.
|
2457
|
+
# # In C++ (wxWidgets) this method is not virtual and cannot be overloaded
|
2458
|
+
# # so the derived class can't customize this part.
|
2459
|
+
# # In wxRuby however this method can be overloaded as long as the following
|
2460
|
+
# # is kept in mind:
|
2461
|
+
# # 1. the overloaded version will **NOT** be called when using a non-default
|
2462
|
+
# # constructor (Create will than be called from C++ which will always be
|
2463
|
+
# # the base Wx::Window version);
|
2464
|
+
# # 2. when calling the overloaded version from Ruby understand that the window
|
2465
|
+
# # will not actually be created until after the `super` version has been called.
|
2466
|
+
# # In general it's best not to overload this method but to define a different method
|
2467
|
+
# # if a custom initializer is needed.
|
2468
|
+
# window.create(parent, Wx::ID_ANY, ...)
|
2414
2469
|
# ```
|
2415
2470
|
# This is notably used by XML Based Resource System (XRC).
|
2416
2471
|
# The parameters of this method have exactly the same meaning as the non-default constructor parameters, please refer to them for their description.
|
data/lib/wx/doc/gen/window_dc.rb
CHANGED
data/lib/wx/doc/gen/wizard.rb
CHANGED
@@ -16,12 +16,19 @@ module Wx
|
|
16
16
|
#
|
17
17
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::WizardEvent} events.
|
18
18
|
# Event handler methods for events emitted by this class:
|
19
|
+
#
|
19
20
|
# - {Wx::EvtHandler#evt_wizard_page_changed}(id, meth = nil, &block): The page has just been changed (this event cannot be vetoed).
|
21
|
+
#
|
20
22
|
# - {Wx::EvtHandler#evt_wizard_page_changing}(id, meth = nil, &block): The page is being changed (this event can be vetoed).
|
23
|
+
#
|
21
24
|
# - {Wx::EvtHandler#evt_wizard_before_page_changed}(id, meth = nil, &block): Called after Next is clicked but before GetNext is called. Unlike EVT_WIZARD_CHANGING, the handler for this function can change state that might affect the return value of GetNext. This event can be vetoed.
|
25
|
+
#
|
22
26
|
# - {Wx::EvtHandler#evt_wizard_page_shown}(id, meth = nil, &block): The page was shown and laid out (this event cannot be vetoed).
|
27
|
+
#
|
23
28
|
# - {Wx::EvtHandler#evt_wizard_cancel}(id, meth = nil, &block): The user attempted to cancel the wizard (this event may also be vetoed).
|
29
|
+
#
|
24
30
|
# - {Wx::EvtHandler#evt_wizard_help}(id, meth = nil, &block): The wizard help button was pressed.
|
31
|
+
#
|
25
32
|
# - {Wx::EvtHandler#evt_wizard_finished}(id, meth = nil, &block): The wizard finished button was pressed.
|
26
33
|
#
|
27
34
|
# == Extended styles
|
@@ -31,7 +38,7 @@ module Wx
|
|
31
38
|
# === Extra Styles
|
32
39
|
#
|
33
40
|
# This class supports the following extra styles:
|
34
|
-
#
|
41
|
+
#
|
35
42
|
# - {Wx::WIZARD_EX_HELPBUTTON}: Shows a Help button using {Wx::StandardID::ID_HELP}.
|
36
43
|
#
|
37
44
|
# See also {Wx::Dialog} for other extended styles.
|
@@ -48,7 +55,7 @@ module Wx
|
|
48
55
|
# @overload initialize()
|
49
56
|
# Default constructor.
|
50
57
|
# Use this if you wish to derive from {Wx::Wizard} and then call {Wx::Wizard#create}, for example if you wish to set an extra style with {Wx::Window#set_extra_style} between the two calls.
|
51
|
-
# @return [Wizard]
|
58
|
+
# @return [Wx::Wizard]
|
52
59
|
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, title=(''), bitmap=(Wx::BitmapBundle.new()), pos=Wx::DEFAULT_POSITION, style=Wx::DEFAULT_DIALOG_STYLE)
|
53
60
|
# Constructor which really creates the wizard if you use this constructor, you shouldn't call {Wx::Wizard#create}.
|
54
61
|
# Notice that unlike almost all other wxWidgets classes, there is no size parameter in the {Wx::Wizard} constructor because the wizard will have a predefined default size by default. If you want to change this, you should use the {Wx::Wizard#get_page_area_sizer} function.
|
@@ -58,7 +65,7 @@ module Wx
|
|
58
65
|
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] The default bitmap used in the left side of the wizard. See also {Wx::Wizard#get_bitmap}.
|
59
66
|
# @param pos [Array(Integer, Integer), Wx::Point] The position of the dialog, it will be centered on the screen by default.
|
60
67
|
# @param style [Integer] Window style is passed to {Wx::Dialog}.
|
61
|
-
# @return [Wizard]
|
68
|
+
# @return [Wx::Wizard]
|
62
69
|
def initialize(*args) end
|
63
70
|
|
64
71
|
# Creates the wizard dialog.
|
@@ -159,7 +166,13 @@ module Wx
|
|
159
166
|
# Sets the flags indicating how the wizard or page bitmap should be expanded and positioned to fit the page height.
|
160
167
|
# By default, placement is 0 (no expansion is done). placement is a bitlist with the following possible values:
|
161
168
|
#
|
162
|
-
# - <b>{Wx::WIZARD_VALIGN_TOP}:</b> Aligns the bitmap at the top
|
169
|
+
# - <b>{Wx::WIZARD_VALIGN_TOP}:</b> Aligns the bitmap at the top.
|
170
|
+
# - <b>{Wx::WIZARD_VALIGN_CENTRE}:</b> Centres the bitmap vertically.
|
171
|
+
# - <b>{Wx::WIZARD_VALIGN_BOTTOM}:</b> Aligns the bitmap at the bottom.
|
172
|
+
# - <b>{Wx::WIZARD_HALIGN_LEFT}:</b> Left-aligns the bitmap.
|
173
|
+
# - <b>{Wx::WIZARD_HALIGN_CENTRE}:</b> Centres the bitmap horizontally.
|
174
|
+
# - <b>{Wx::WIZARD_HALIGN_RIGHT}:</b> Right-aligns the bitmap.
|
175
|
+
# - <b>{Wx::WIZARD_TILE}:</b> The bitmap will be tiled to fit available space.
|
163
176
|
#
|
164
177
|
# See also {Wx::Wizard#set_minimum_bitmap_width}.
|
165
178
|
# @param placement [Integer]
|