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
@@ -52,59 +52,58 @@ module Wx
|
|
52
52
|
# This class represents the file chooser dialog.
|
53
53
|
# The path and filename are distinct elements of a full file pathname. If path is {Wx::EmptyString}, the current directory will be used. If filename is {Wx::EmptyString}, no default filename will be supplied. The wildcard determines what files are displayed in the file selector, and file extension supplies a type extension for the required filename.
|
54
54
|
# The typical usage for the open file dialog is:
|
55
|
-
# ```
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
#
|
66
|
-
# wxFileDialog
|
67
|
-
# openFileDialog(this, _("Open XYZ file"), "", "",
|
68
|
-
# "XYZ files (*.xyz)|*.xyz", wxFD_OPEN|wxFD_FILE_MUST_EXIST);
|
69
|
-
#
|
70
|
-
# if (openFileDialog.ShowModal() == wxID_CANCEL)
|
71
|
-
# return; // the user changed idea...
|
72
|
-
#
|
73
|
-
# // proceed loading the file chosen by the user;
|
74
|
-
# // this can be done with e.g. wxWidgets input streams:
|
75
|
-
# wxFileInputStream input_stream(openFileDialog.GetPath());
|
76
|
-
# if (!input_stream.IsOk())
|
77
|
-
# {
|
78
|
-
# wxLogError("Cannot open file '%s'.", openFileDialog.GetPath());
|
79
|
-
# return;
|
80
|
-
# }
|
55
|
+
# ```ruby
|
56
|
+
# class MyFrame
|
57
|
+
# ...
|
58
|
+
# def on_open(event)
|
59
|
+
# if (...current content has not been saved...)
|
60
|
+
# if Wx.message_box('Current content has not been saved! Proceed?', 'Please confirm',
|
61
|
+
# Wx::ICON_QUESTION | Wx::YES_NO, self) == Wx::NO
|
62
|
+
# return
|
63
|
+
# #else: proceed asking to the user the new file to open
|
64
|
+
# end
|
65
|
+
# end
|
81
66
|
#
|
67
|
+
# Wx::FileDialog(self, "Open XYZ file", "", "",
|
68
|
+
# "XYZ files (*.xyz)|*.xyz", Wx::FD_OPEN|Wx::FD_FILE_MUST_EXIST) do |dlg|
|
69
|
+
# return if dlg.show_modal == Wx::ID_CANCEL # the user changed idea...?
|
70
|
+
#
|
71
|
+
# # proceed loading the file chosen by the user
|
72
|
+
# file = File.open(dlg.path, 'r') rescue nil
|
73
|
+
# unless file
|
74
|
+
# Wx.log_error("Cannot open file '#{dlg.path}'.")
|
75
|
+
# return
|
76
|
+
# end
|
82
77
|
# ...
|
83
|
-
#
|
78
|
+
# end
|
79
|
+
# end
|
80
|
+
#
|
81
|
+
# end
|
84
82
|
# ```
|
85
83
|
#
|
86
84
|
# The typical usage for the save file dialog is instead somewhat simpler:
|
87
|
-
# ```
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
#
|
93
|
-
#
|
94
|
-
# if (saveFileDialog.ShowModal() == wxID_CANCEL)
|
95
|
-
# return; // the user changed idea...
|
96
|
-
#
|
97
|
-
# // save the current contents in the file;
|
98
|
-
# // this can be done with e.g. wxWidgets output streams:
|
99
|
-
# wxFileOutputStream output_stream(saveFileDialog.GetPath());
|
100
|
-
# if (!output_stream.IsOk())
|
101
|
-
# {
|
102
|
-
# wxLogError("Cannot save current contents in file '%s'.", saveFileDialog.GetPath());
|
103
|
-
# return;
|
104
|
-
# }
|
85
|
+
# ```ruby
|
86
|
+
# class MyFrame
|
87
|
+
# ...
|
88
|
+
# def on_save_as(event)
|
89
|
+
# Wx::FileDialog(self, "Save XYZ file", "", "",
|
90
|
+
# "XYZ files (*.xyz)|*.xyz", Wx::FD_SAVE|Wx::FD_OVERWRITE_PROMPT) do |dlg|
|
91
|
+
# return if dlg.show_modal == Wx::ID_CANCEL # the user changed idea...?
|
105
92
|
#
|
106
|
-
#
|
107
|
-
#
|
93
|
+
# # save the current contents in the file
|
94
|
+
# begin
|
95
|
+
# File.open(dlg.path, 'w+') do |f|
|
96
|
+
# # save to file
|
97
|
+
# end
|
98
|
+
# rescue
|
99
|
+
# Wx.log_error("Cannot save current contents in file '#{dlg.path}'.")
|
100
|
+
# return
|
101
|
+
# end
|
102
|
+
# end
|
103
|
+
# ...
|
104
|
+
# end
|
105
|
+
#
|
106
|
+
# end
|
108
107
|
# ```
|
109
108
|
#
|
110
109
|
# == Wildcard Filters
|
@@ -115,29 +114,38 @@ module Wx
|
|
115
114
|
# ```
|
116
115
|
#
|
117
116
|
# On Mac macOS in the open file dialog the filter choice box is not shown by default. Instead all given wildcards are applied at the same time: So in the above example all bmp, gif and png files are displayed. To enforce the display of the filter choice set the corresponding {Wx::SystemOptions} before calling the file open dialog:
|
118
|
-
# ```
|
119
|
-
#
|
117
|
+
# ```ruby
|
118
|
+
# Wx::SystemOptions.set_option(Wx::OSX_FILEDIALOG_ALWAYS_SHOW_TYPES, 1)
|
120
119
|
# ```
|
121
120
|
# But in contrast to Windows and Unix, where the file type choice filters only the selected files, on Mac macOS even in this case the dialog shows all files matching all file types. The files which does not match the currently selected file type are greyed out and are not selectable.
|
122
121
|
#
|
123
122
|
# == Dialog Customization
|
124
123
|
#
|
125
124
|
# Uniquely among the other standard dialogs, {Wx::FileDialog} can be customized by adding extra controls to it. Moreover, there are two ways to do it: the first one is to define a callback function and use {Wx::FileDialog#set_extra_control_creator} to tell the dialog to call it, while the second one requires defining a class inheriting from {Wx::FileDialogCustomizeHook} and implementing its virtual functions, notably Wx::FileDialogCustomizeHook#add_custom_controls where the extra controls have to be created, and finally calling {Wx::FileDialog#set_customize_hook} with this custom hook object.
|
126
|
-
# The first approach is somewhat simpler and more flexible, as it allows to create any kind of custom controls, but is not supported by the "new style" (where "new" means used since Windows Vista, i.e. circa 2007) file dialogs under MSW. Because of this, calling {Wx::FileDialog#set_extra_control_creator} in
|
125
|
+
# The first approach is somewhat simpler and more flexible, as it allows to create any kind of custom controls, but is not supported by the "new style" (where "new" means used since Windows Vista, i.e. circa 2007) file dialogs under MSW. Because of this, calling {Wx::FileDialog#set_extra_control_creator} in wxMSW forces the use of old style (Windows XP) dialogs, that may look out of place. The second approach is implemented by the MSW dialogs natively and doesn't suffer from this limitation, so its use is recommended, especially if the few simple control types supported by it (see {Wx::FileDialogCustomize} for more information about the supported controls) are sufficient for your needs.
|
127
126
|
# Both of the approaches to the dialog customization are demonstrated in the Dialogs Sample, please check it for more details.
|
128
127
|
# === Styles
|
129
128
|
#
|
130
129
|
# This class supports the following styles:
|
131
|
-
#
|
130
|
+
#
|
132
131
|
# - {Wx::FD_DEFAULT_STYLE}: Equivalent to {Wx::FD_OPEN}.
|
132
|
+
#
|
133
133
|
# - {Wx::FD_OPEN}: This is an open dialog; usually this means that the default button's label of the dialog is "Open". Cannot be combined with {Wx::FD_SAVE}.
|
134
|
+
#
|
134
135
|
# - {Wx::FD_SAVE}: This is a save dialog; usually this means that the default button's label of the dialog is "Save". Cannot be combined with {Wx::FD_OPEN}.
|
135
|
-
#
|
136
|
-
# - {Wx::
|
136
|
+
#
|
137
|
+
# - {Wx::FD_OVERWRITE_PROMPT}: For save dialog only: prompt for a confirmation if a file will be overwritten. This style is always enabled on wxOSX and cannot be disabled.
|
138
|
+
#
|
139
|
+
# - {Wx::FD_NO_FOLLOW}: Directs the dialog to return the path and file name of the selected shortcut file, not its target as it does by default. Currently this flag is only implemented in wxMSW and wxOSX (where it prevents aliases from being resolved). The non-dereferenced link path is always returned, even without this flag, under Unix and so using it there doesn't do anything. This flag was added in wxWidgets 3.1.0.
|
140
|
+
#
|
137
141
|
# - {Wx::FD_FILE_MUST_EXIST}: For open dialog only: the user may only select files that actually exist. Notice that under macOS the file dialog with {Wx::FD_OPEN} style always behaves as if this style was specified, because it is impossible to choose a file that doesn't exist from a standard macOS file dialog.
|
142
|
+
#
|
138
143
|
# - {Wx::FD_MULTIPLE}: For open dialog only: allows selecting multiple files.
|
144
|
+
#
|
139
145
|
# - {Wx::FD_CHANGE_DIR}: Change the current working directory (when the dialog is dismissed) to the directory where the file(s) chosen by the user are.
|
140
|
-
#
|
146
|
+
#
|
147
|
+
# - {Wx::FD_PREVIEW}: Show the preview of the selected files (currently only supported by wxGTK).
|
148
|
+
#
|
141
149
|
# - {Wx::FD_SHOW_HIDDEN}: Show hidden files. This flag was added in wxWidgets 3.1.3
|
142
150
|
#
|
143
151
|
# ===
|
@@ -160,7 +168,7 @@ module Wx
|
|
160
168
|
# @param pos [Array(Integer, Integer), Wx::Point] Dialog position. Not implemented.
|
161
169
|
# @param size [Array(Integer, Integer), Wx::Size] Dialog size. Not implemented.
|
162
170
|
# @param name [String] Dialog name. Not implemented.
|
163
|
-
# @return [FileDialog]
|
171
|
+
# @return [Wx::FileDialog]
|
164
172
|
def initialize(parent, message=Wx::FileSelectorPromptStr, defaultDir=(''), defaultFile=(''), wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, style=Wx::FD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::FileDialogNameStr) end
|
165
173
|
|
166
174
|
# Returns the path of the file currently selected in dialog.
|
@@ -257,7 +265,7 @@ module Wx
|
|
257
265
|
alias_method :directory=, :set_directory
|
258
266
|
|
259
267
|
# Sets the default filename.
|
260
|
-
# In
|
268
|
+
# In wxGTK this will have little effect unless a default directory has previously been set.
|
261
269
|
# @param setfilename [String]
|
262
270
|
# @return [void]
|
263
271
|
def set_filename(setfilename) end
|
@@ -58,7 +58,9 @@ module Wx
|
|
58
58
|
#
|
59
59
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::FileDirPickerEvent} events.
|
60
60
|
# Event handler methods:
|
61
|
+
#
|
61
62
|
# - {Wx::EvtHandler#evt_filepicker_changed}(id, meth = nil, &block): Generated whenever the selected file changes.
|
63
|
+
#
|
62
64
|
# - {Wx::EvtHandler#evt_dirpicker_changed}(id, meth = nil, &block): Generated whenever the selected directory changes.
|
63
65
|
#
|
64
66
|
# ===
|
@@ -71,14 +73,14 @@ module Wx
|
|
71
73
|
class FileDirPickerEvent < CommandEvent
|
72
74
|
|
73
75
|
# @overload initialize()
|
74
|
-
# @return [FileDirPickerEvent]
|
76
|
+
# @return [Wx::FileDirPickerEvent]
|
75
77
|
# @overload initialize(type, generator, id, path)
|
76
78
|
# The constructor is not normally used by the user code.
|
77
|
-
# @param type [
|
79
|
+
# @param type [Wx::AUI::AuiMDIChildFrame::EventType]
|
78
80
|
# @param generator [Wx::Object]
|
79
81
|
# @param id [Integer]
|
80
82
|
# @param path [String]
|
81
|
-
# @return [FileDirPickerEvent]
|
83
|
+
# @return [Wx::FileDirPickerEvent]
|
82
84
|
def initialize(*args) end
|
83
85
|
|
84
86
|
# Retrieve the absolute path of the file/directory the user has just selected.
|
@@ -11,27 +11,35 @@ module Wx
|
|
11
11
|
# === Styles
|
12
12
|
#
|
13
13
|
# This class supports the following styles:
|
14
|
-
#
|
15
|
-
# - {Wx::FLP_DEFAULT_STYLE}: The default style: includes {Wx::FLP_OPEN} | {Wx::FLP_FILE_MUST_EXIST} and, under
|
14
|
+
#
|
15
|
+
# - {Wx::FLP_DEFAULT_STYLE}: The default style: includes {Wx::FLP_OPEN} | {Wx::FLP_FILE_MUST_EXIST} and, under wxMSW and wxOSX, {Wx::FLP_USE_TEXTCTRL}.
|
16
|
+
#
|
16
17
|
# - {Wx::FLP_USE_TEXTCTRL}: Creates a text control to the left of the picker button which is completely managed by the {Wx::FilePickerCtrl} and which can be used by the user to specify a path (see SetPath). The text control is automatically synchronized with button's value. Use functions defined in {Wx::PickerBase} to modify the text control.
|
18
|
+
#
|
17
19
|
# - {Wx::FLP_OPEN}: Creates a picker which allows the user to select a file to open.
|
20
|
+
#
|
18
21
|
# - {Wx::FLP_SAVE}: Creates a picker which allows the user to select a file to save.
|
22
|
+
#
|
19
23
|
# - {Wx::FLP_OVERWRITE_PROMPT}: Can be combined with {Wx::FLP_SAVE} only: ask confirmation to the user before selecting a file.
|
24
|
+
#
|
20
25
|
# - {Wx::FLP_FILE_MUST_EXIST}: Can be combined with {Wx::FLP_OPEN} only: the file selected in the popup {Wx::FileDialog} must be an existing file. Notice that it still remains possible for the user to enter a non-existent file name in the text control if {Wx::FLP_USE_TEXTCTRL} is also used, this flag is a hint for the user rather than a guarantee that the selected file does exist for the program.
|
26
|
+
#
|
21
27
|
# - {Wx::FLP_CHANGE_DIR}: Change current working directory on each user file selection change.
|
28
|
+
#
|
22
29
|
# - {Wx::FLP_SMALL}: Use smaller version of the control with a small "..." button instead of the normal "Browse" one. This flag is new since wxWidgets 2.9.3.
|
23
30
|
#
|
24
31
|
# === Events emitted by this class
|
25
32
|
#
|
26
33
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::FileDirPickerEvent} events.
|
27
34
|
# Event handler methods for events emitted by this class:
|
35
|
+
#
|
28
36
|
# - {Wx::EvtHandler#evt_filepicker_changed}(id, meth = nil, &block): The user changed the file selected in the control either using the button or using text control (see {Wx::FLP_USE_TEXTCTRL}; note that in this case the event is fired only if the user's input is valid, e.g. an existing file path if {Wx::FLP_FILE_MUST_EXIST} was given).
|
29
37
|
#
|
30
38
|
# ===
|
31
39
|
#
|
32
|
-
# Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
33
|
-
# </td><td>
|
34
|
-
# </td><td>
|
40
|
+
# Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
41
|
+
# </td><td> wxGTK Appearance
|
42
|
+
# </td><td> wxOSX Appearance
|
35
43
|
# </td></tr></table></div>
|
36
44
|
# @see Wx::FileDialog
|
37
45
|
# @see Wx::FileDirPickerEvent
|
@@ -40,7 +48,7 @@ module Wx
|
|
40
48
|
class FilePickerCtrl < PickerBase
|
41
49
|
|
42
50
|
# @overload initialize()
|
43
|
-
# @return [FilePickerCtrl]
|
51
|
+
# @return [Wx::FilePickerCtrl]
|
44
52
|
# @overload initialize(parent, id, path=(''), message=Wx::FileSelectorPromptStr, wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FLP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FilePickerCtrlNameStr)
|
45
53
|
# Initializes the object and calls {Wx::FilePickerCtrl#create} with all the parameters.
|
46
54
|
# @param parent [Wx::Window]
|
@@ -53,7 +61,7 @@ module Wx
|
|
53
61
|
# @param style [Integer]
|
54
62
|
# @param validator [Wx::Validator]
|
55
63
|
# @param name [String]
|
56
|
-
# @return [FilePickerCtrl]
|
64
|
+
# @return [Wx::FilePickerCtrl]
|
57
65
|
def initialize(*args) end
|
58
66
|
|
59
67
|
# Creates this widget with the given parameters.
|
@@ -95,7 +103,7 @@ module Wx
|
|
95
103
|
alias_method :initial_directory=, :set_initial_directory
|
96
104
|
|
97
105
|
# Sets the absolute path of the currently selected file.
|
98
|
-
# If the control uses {Wx::FLP_FILE_MUST_EXIST} and does not use {Wx::FLP_USE_TEXTCTRL} style, the filename must be a name of an existing file and will be simply ignored by the native
|
106
|
+
# If the control uses {Wx::FLP_FILE_MUST_EXIST} and does not use {Wx::FLP_USE_TEXTCTRL} style, the filename must be a name of an existing file and will be simply ignored by the native wxGTK implementation if this is not the case (the generic implementation used under the other platforms accepts even invalid file names currently, but this is subject to change in the future, don't rely on being able to use non-existent paths with it).
|
99
107
|
# @param filename [String]
|
100
108
|
# @return [void]
|
101
109
|
def set_path(filename) end
|
@@ -75,10 +75,15 @@ module Wx
|
|
75
75
|
#
|
76
76
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::FindDialogEvent} events.
|
77
77
|
# Event handler methods:
|
78
|
+
#
|
78
79
|
# - {Wx::EvtHandler#evt_find}(id, meth = nil, &block): Find button was pressed in the dialog.
|
80
|
+
#
|
79
81
|
# - {Wx::EvtHandler#evt_find_next}(id, meth = nil, &block): Find next button was pressed in the dialog.
|
82
|
+
#
|
80
83
|
# - {Wx::EvtHandler#evt_find_replace}(id, meth = nil, &block): Replace button was pressed in the dialog.
|
84
|
+
#
|
81
85
|
# - {Wx::EvtHandler#evt_find_replace_all}(id, meth = nil, &block): Replace all button was pressed in the dialog.
|
86
|
+
#
|
82
87
|
# - {Wx::EvtHandler#evt_find_close}(id, meth = nil, &block): The dialog is being destroyed, any pointers to it cannot be used any longer.
|
83
88
|
#
|
84
89
|
# ===
|
@@ -88,9 +93,9 @@ module Wx
|
|
88
93
|
class FindDialogEvent < CommandEvent
|
89
94
|
|
90
95
|
# Constructor used by wxWidgets only.
|
91
|
-
# @param commandType [
|
96
|
+
# @param commandType [Wx::AUI::AuiMDIChildFrame::EventType]
|
92
97
|
# @param id [Integer]
|
93
|
-
# @return [FindDialogEvent]
|
98
|
+
# @return [Wx::FindDialogEvent]
|
94
99
|
def initialize(commandType=Wx::EVT_NULL, id=0) end
|
95
100
|
|
96
101
|
# Return the pointer to the dialog which generated this event.
|
@@ -21,7 +21,7 @@ module Wx
|
|
21
21
|
# @param data [Wx::FindReplaceData]
|
22
22
|
# @param title [String]
|
23
23
|
# @param style [Integer]
|
24
|
-
# @return [FindReplaceDialog]
|
24
|
+
# @return [Wx::FindReplaceDialog]
|
25
25
|
def initialize(parent, data, title, style=0) end
|
26
26
|
|
27
27
|
# Creates the dialog; use {Wx::Window#show} to show it on screen.
|
@@ -23,13 +23,13 @@ module Wx
|
|
23
23
|
# @param cols [Integer]
|
24
24
|
# @param vgap [Integer]
|
25
25
|
# @param hgap [Integer]
|
26
|
-
# @return [FlexGridSizer]
|
26
|
+
# @return [Wx::FlexGridSizer]
|
27
27
|
# @overload initialize(cols, gap=(Wx::Size.new(0, 0)))
|
28
28
|
# {Wx::FlexGridSizer} constructors.
|
29
29
|
# Please see {Wx::GridSizer::GridSizer} documentation.
|
30
30
|
# @param cols [Integer]
|
31
31
|
# @param gap [Array(Integer, Integer), Wx::Size]
|
32
|
-
# @return [FlexGridSizer]
|
32
|
+
# @return [Wx::FlexGridSizer]
|
33
33
|
# @overload initialize(rows, cols, vgap, hgap)
|
34
34
|
# {Wx::FlexGridSizer} constructors.
|
35
35
|
# Please see {Wx::GridSizer::GridSizer} documentation.
|
@@ -37,14 +37,14 @@ module Wx
|
|
37
37
|
# @param cols [Integer]
|
38
38
|
# @param vgap [Integer]
|
39
39
|
# @param hgap [Integer]
|
40
|
-
# @return [FlexGridSizer]
|
40
|
+
# @return [Wx::FlexGridSizer]
|
41
41
|
# @overload initialize(rows, cols, gap)
|
42
42
|
# {Wx::FlexGridSizer} constructors.
|
43
43
|
# Please see {Wx::GridSizer::GridSizer} documentation.
|
44
44
|
# @param rows [Integer]
|
45
45
|
# @param cols [Integer]
|
46
46
|
# @param gap [Array(Integer, Integer), Wx::Size]
|
47
|
-
# @return [FlexGridSizer]
|
47
|
+
# @return [Wx::FlexGridSizer]
|
48
48
|
def initialize(*args) end
|
49
49
|
|
50
50
|
# Specifies that column idx (starting from zero) should be grown if there is extra space available to the sizer.
|
@@ -64,7 +64,10 @@ module Wx
|
|
64
64
|
|
65
65
|
# Returns a {Wx::Orientation} value that specifies whether the sizer flexibly resizes its columns, rows, or both (default).
|
66
66
|
# One of the following values:
|
67
|
-
#
|
67
|
+
#
|
68
|
+
# - {Wx::Orientation::VERTICAL}: Rows are flexibly sized.
|
69
|
+
# - {Wx::Orientation::HORIZONTAL}: Columns are flexibly sized.
|
70
|
+
# - {Wx::Orientation::BOTH}: Both rows and columns are flexibly sized (this is the default value).
|
68
71
|
# @see Wx::FlexGridSizer#set_flexible_direction
|
69
72
|
# @return [Integer]
|
70
73
|
def get_flexible_direction; end
|
@@ -73,7 +76,10 @@ module Wx
|
|
73
76
|
# Returns the value that specifies how the sizer grows in the "non-flexible" direction if there is one.
|
74
77
|
# The behaviour of the elements in the flexible direction (i.e. both rows and columns by default, or rows only if {Wx::FlexGridSizer#get_flexible_direction} is {Wx::Orientation::VERTICAL} or columns only if it is {Wx::Orientation::HORIZONTAL}) is always governed by their proportion as specified in the call to {Wx::FlexGridSizer#add_growable_row} or {Wx::FlexGridSizer#add_growable_col}. What happens in the other direction depends on the value of returned by this function as described below.
|
75
78
|
# One of the following values:
|
76
|
-
#
|
79
|
+
#
|
80
|
+
# - {Wx::FlexSizerGrowMode::FLEX_GROWMODE_NONE}: Sizer doesn't grow its elements at all in the non-flexible direction.
|
81
|
+
# - {Wx::FlexSizerGrowMode::FLEX_GROWMODE_SPECIFIED}: Sizer honors growable columns/rows set with {Wx::FlexGridSizer#add_growable_col} and {Wx::FlexGridSizer#add_growable_row} in the non-flexible direction as well. In this case equal sizing applies to minimum sizes of columns or rows (this is the default value).
|
82
|
+
# - {Wx::FlexSizerGrowMode::FLEX_GROWMODE_ALL}: Sizer equally stretches all columns or rows in the non-flexible direction, independently of the proportions applied in the flexible direction.
|
77
83
|
# @see Wx::FlexGridSizer#set_flexible_direction
|
78
84
|
# @see Wx::FlexGridSizer#set_non_flexible_grow_mode
|
79
85
|
# @return [FlexSizerGrowMode]
|
data/lib/wx/doc/gen/font.rb
CHANGED
@@ -206,7 +206,7 @@ module Wx
|
|
206
206
|
#
|
207
207
|
FONTFLAG_UNDERLINED = Wx::FontFlag.new(64)
|
208
208
|
|
209
|
-
# Strike-through style (implemented in MSW, GTK, and
|
209
|
+
# Strike-through style (implemented in MSW, GTK, and wxOSX)
|
210
210
|
#
|
211
211
|
FONTFLAG_STRIKETHROUGH = Wx::FontFlag.new(128)
|
212
212
|
|
@@ -667,7 +667,7 @@ module Wx
|
|
667
667
|
alias_method :base_font, :get_base_font
|
668
668
|
|
669
669
|
# Returns the encoding of this font.
|
670
|
-
# Note that under
|
670
|
+
# Note that under wxGTK the returned value is always {Wx::FontEncoding::FONTENCODING_UTF8}.
|
671
671
|
# @see Wx::Font#set_encoding
|
672
672
|
# @return [FontEncoding]
|
673
673
|
def get_encoding; end
|
@@ -700,7 +700,7 @@ module Wx
|
|
700
700
|
|
701
701
|
# Returns a user-friendly string for this font object.
|
702
702
|
# Returned string is always non-empty unless the font is invalid (in which case an assert is triggered).
|
703
|
-
# The string does not encode all {Wx::Font} infos under all platforms; e.g. under
|
703
|
+
# The string does not encode all {Wx::Font} infos under all platforms; e.g. under wxMSW the font family is not present in the returned string.
|
704
704
|
# Some examples of the formats of returned strings (which are platform-dependent) are in {Wx::Font#set_native_font_info_user_desc}.
|
705
705
|
# @see Wx::Font#set_native_font_info_user_desc
|
706
706
|
# @see Wx::Font#get_native_font_info_desc
|
@@ -726,7 +726,7 @@ module Wx
|
|
726
726
|
alias_method :fractional_point_size, :get_fractional_point_size
|
727
727
|
|
728
728
|
# Gets the pixel size.
|
729
|
-
# Note that under
|
729
|
+
# Note that under wxMSW if you passed to {Wx::Font#set_pixel_size} (or to the ctor) a {Wx::Size} object with a null width value, you'll get a null width in the returned object.
|
730
730
|
# @see Wx::Font#set_pixel_size
|
731
731
|
# @return [Wx::Size]
|
732
732
|
def get_pixel_size; end
|
@@ -824,7 +824,7 @@ module Wx
|
|
824
824
|
def underlined; end
|
825
825
|
|
826
826
|
# Returns stricken-through version of this font.
|
827
|
-
# Currently stricken-through fonts are only supported in
|
827
|
+
# Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
|
828
828
|
# @see Wx::Font#make_strikethrough
|
829
829
|
# @return [Wx::Font]
|
830
830
|
def strikethrough; end
|
@@ -864,7 +864,7 @@ module Wx
|
|
864
864
|
def make_underlined; end
|
865
865
|
|
866
866
|
# Changes this font to be stricken-through.
|
867
|
-
# Currently stricken-through fonts are only supported in
|
867
|
+
# Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
|
868
868
|
# @see Wx::Font#strikethrough
|
869
869
|
# @return [Wx::Font]
|
870
870
|
def make_strikethrough; end
|
@@ -888,7 +888,7 @@ module Wx
|
|
888
888
|
def scaled(x) end
|
889
889
|
|
890
890
|
# Sets the encoding for this font.
|
891
|
-
# Note that under
|
891
|
+
# Note that under wxGTK this function has no effect (because the underlying Pango library always uses {Wx::FontEncoding::FONTENCODING_UTF8}).
|
892
892
|
# @see Wx::Font#get_encoding
|
893
893
|
# @param encoding [FontEncoding]
|
894
894
|
# @return [void]
|
@@ -916,6 +916,15 @@ module Wx
|
|
916
916
|
def set_family(family) end
|
917
917
|
alias_method :family=, :set_family
|
918
918
|
|
919
|
+
# Creates the font corresponding to the given native font description string which must have been previously returned by {Wx::Font#get_native_font_info_desc}.
|
920
|
+
# If the string is invalid, font is unchanged. This function is typically used for de-serializing a {Wx::Font} object previously saved in a string-form.
|
921
|
+
# true if the creation was successful.
|
922
|
+
# @see Wx::Font#set_native_font_info_user_desc
|
923
|
+
# @param info [String]
|
924
|
+
# @return [true,false]
|
925
|
+
def set_native_font_info(info) end
|
926
|
+
alias_method :native_font_info=, :set_native_font_info
|
927
|
+
|
919
928
|
# Creates the font corresponding to the given native font description string and returns true if the creation was successful.
|
920
929
|
# Unlike {Wx::Font#set_native_font_info}, this function accepts strings which are user-friendly. Examples of accepted string formats are:
|
921
930
|
#
|
@@ -923,18 +932,18 @@ module Wx
|
|
923
932
|
# generic syntax
|
924
933
|
# example
|
925
934
|
#
|
926
|
-
#
|
935
|
+
# wxGTK2
|
927
936
|
# <code>[underlined] [strikethrough] [FACE-NAME] [bold] [oblique|italic] [POINTSIZE]</code>
|
928
937
|
# Monospace bold 10
|
929
938
|
#
|
930
|
-
#
|
939
|
+
# wxMSW
|
931
940
|
# <code>[light|bold] [italic] [FACE-NAME] [POINTSIZE] [ENCODING]</code>
|
932
941
|
# Tahoma 10 WINDOWS-1252
|
933
942
|
#
|
934
943
|
# Todoadd an example for {Wx::Mac}
|
935
944
|
#
|
936
945
|
# For more detailed information about the allowed syntaxes you can look at the documentation of the native API used for font-rendering (e.g. pango_font_description_from_string under GTK, although notice that it doesn't support the "underlined" and "strikethrough" attributes and so those are handled by wxWidgets itself).
|
937
|
-
# Note that unlike {Wx::Font#set_native_font_info}, this function doesn't always restore all attributes of the {Wx::Font} object under all platforms; e.g. on
|
946
|
+
# Note that unlike {Wx::Font#set_native_font_info}, this function doesn't always restore all attributes of the {Wx::Font} object under all platforms; e.g. on wxMSW the font family is not restored (because GetNativeFontInfoUserDesc doesn't return it on wxMSW). If you want to serialize/deserialize a font in string form, you should use {Wx::Font#get_native_font_info_desc} and {Wx::Font#set_native_font_info} instead.
|
938
947
|
# @see Wx::Font#set_native_font_info
|
939
948
|
# @param info [String]
|
940
949
|
# @return [true,false]
|
@@ -959,7 +968,7 @@ module Wx
|
|
959
968
|
|
960
969
|
# Sets the pixel size.
|
961
970
|
# The height parameter of pixelSize must be positive while the width parameter may also be zero (to indicate that you're not interested in the width of the characters: a suitable width will be chosen for best rendering).
|
962
|
-
# This feature (specifying the font pixel size) is directly supported only under
|
971
|
+
# This feature (specifying the font pixel size) is directly supported only under wxMSW and wxGTK currently; under other platforms a font with the closest size to the given one is found using binary search (this maybe slower).
|
963
972
|
# @see Wx::Font#get_pixel_size
|
964
973
|
# @param pixelSize [Array(Integer, Integer), Wx::Size]
|
965
974
|
# @return [void]
|
@@ -998,7 +1007,7 @@ module Wx
|
|
998
1007
|
alias_method :underlined=, :set_underlined
|
999
1008
|
|
1000
1009
|
# Sets strike-through attribute of the font.
|
1001
|
-
# Currently stricken-through fonts are only supported in
|
1010
|
+
# Currently stricken-through fonts are only supported in wxMSW, wxGTK, and wxOSX.
|
1002
1011
|
# @see Wx::Font#get_strikethrough
|
1003
1012
|
# @param strikethrough [true,false] true to add strike-through style, false to remove it.
|
1004
1013
|
# @return [void]
|
@@ -1075,27 +1084,28 @@ module Wx
|
|
1075
1084
|
|
1076
1085
|
# @overload initialize()
|
1077
1086
|
# Default ctor.
|
1078
|
-
# @return [Font]
|
1087
|
+
# @return [Wx::Font]
|
1079
1088
|
# @overload initialize(font)
|
1080
1089
|
# Copy constructor, uses reference counting.
|
1081
1090
|
# @param font [Wx::Font,Wx::FontInfo]
|
1082
|
-
# @return [Font]
|
1091
|
+
# @return [Wx::Font]
|
1083
1092
|
# @overload initialize(fontInfo)
|
1084
1093
|
# Creates a font object using the specified font description.
|
1085
1094
|
# This is the preferred way to create font objects as using this ctor results in more readable code and it is also extensible, e.g. it could continue to be used if support for more font attributes is added in the future. For example, this constructor provides the only way of creating fonts with strike-through style.
|
1086
1095
|
# Example of creating a font using this ctor:
|
1087
|
-
# ```
|
1088
|
-
#
|
1096
|
+
# ```ruby
|
1097
|
+
# font = Wx::Font.new(Wx::FontInfo.new(10).bold().underlined())
|
1089
1098
|
# ```
|
1090
1099
|
# @param fontInfo [Wx::FontInfo]
|
1091
|
-
# @return [Font]
|
1100
|
+
# @return [Wx::Font]
|
1092
1101
|
# @overload initialize(pointSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
1093
1102
|
# Creates a font object with the specified attributes and size in points.
|
1094
1103
|
# Notice that the use of this constructor is often more verbose and less readable than using wxFont(const wxFontInfo& font), e.g. the example in that constructor documentation would need to be written as:
|
1095
1104
|
#
|
1096
|
-
# ```
|
1097
|
-
#
|
1098
|
-
#
|
1105
|
+
# ```ruby
|
1106
|
+
# font = Wx::Font.new(10, Wx::FontFamily::FONTFAMILY_DEFAULT,
|
1107
|
+
# Wx::FontStyle::FONTSTYLE_NORMAL,
|
1108
|
+
# Wx::FontWeight::FONTWEIGHT_BOLD, true)
|
1099
1109
|
# ```
|
1100
1110
|
#
|
1101
1111
|
# If the desired font does not exist, the closest match will be chosen. Under Windows, only scalable TrueType fonts are used.
|
@@ -1106,7 +1116,7 @@ module Wx
|
|
1106
1116
|
# @param underline [true,false] The value can be true or false. At present this has an effect on Windows and Motif 2.x only.
|
1107
1117
|
# @param faceName [String] An optional string specifying the face name to be used. If it is an empty string, a default face name will be chosen based on the family.
|
1108
1118
|
# @param encoding [FontEncoding] An encoding which may be one of the enumeration values of {Wx::FontEncoding}. If the specified encoding isn't available, no font is created (see also Font Encodings).
|
1109
|
-
# @return [Font]
|
1119
|
+
# @return [Wx::Font]
|
1110
1120
|
# @overload initialize(pixelSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
1111
1121
|
# Creates a font object with the specified attributes and size in pixels.
|
1112
1122
|
# Notice that the use of this constructor is often more verbose and less readable than the use of constructor from {Wx::FontInfo}, consider using that constructor instead.
|
@@ -1119,12 +1129,12 @@ module Wx
|
|
1119
1129
|
# @param underline [true,false] The value can be true or false. At present this has an effect on Windows and Motif 2.x only.
|
1120
1130
|
# @param faceName [String] An optional string specifying the face name to be used. If it is an empty string, a default face name will be chosen based on the family.
|
1121
1131
|
# @param encoding [FontEncoding] An encoding which may be one of the enumeration values of {Wx::FontEncoding}. If the specified encoding isn't available, no font is created (see also Font Encodings).
|
1122
|
-
# @return [Font]
|
1132
|
+
# @return [Wx::Font]
|
1123
1133
|
# @overload initialize(nativeInfoString)
|
1124
1134
|
# Constructor from font description string.
|
1125
1135
|
# This constructor uses {Wx::Font#set_native_font_info} to initialize the font. If fontdesc is invalid the font remains uninitialized, i.e. its {Wx::Font#is_ok} method will return false.
|
1126
1136
|
# @param nativeInfoString [String]
|
1127
|
-
# @return [Font]
|
1137
|
+
# @return [Wx::Font]
|
1128
1138
|
def initialize(*args) end
|
1129
1139
|
|
1130
1140
|
# Equality operator.
|
@@ -1160,8 +1170,8 @@ module Wx
|
|
1160
1170
|
|
1161
1171
|
# This class is a helper used for {Wx::Font} creation using named parameter idiom: it allows specifying various {Wx::Font} attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to {Wx::Font} constructors.
|
1162
1172
|
# For example, to create an italic font with the given face name and size you could use:
|
1163
|
-
# ```
|
1164
|
-
#
|
1173
|
+
# ```ruby
|
1174
|
+
# font = Wx::Font.new(Wx::FontInfo.new(12).face_name('Helvetica').italic())
|
1165
1175
|
# ```
|
1166
1176
|
#
|
1167
1177
|
# Notice that all of the methods of this object return a reference to the object itself, allowing the calls to them to be chained as in the example above.
|
@@ -1173,19 +1183,19 @@ module Wx
|
|
1173
1183
|
|
1174
1184
|
# @overload initialize()
|
1175
1185
|
# Default constructor uses the default font size for the current platform.
|
1176
|
-
# @return [FontInfo]
|
1186
|
+
# @return [Wx::FontInfo]
|
1177
1187
|
# @overload initialize(pointSize)
|
1178
1188
|
# Constructor setting the font size in points to use.
|
1179
1189
|
# Note that until wxWidgets 3.1.2 fractional point sizes were not supported, and the type of pointSize was int.
|
1180
1190
|
# @see Wx::Font#set_point_size
|
1181
1191
|
# @param pointSize [Float]
|
1182
|
-
# @return [FontInfo]
|
1192
|
+
# @return [Wx::FontInfo]
|
1183
1193
|
# @overload initialize(pixelSize)
|
1184
1194
|
# Constructor setting the font size in pixels to use.
|
1185
1195
|
#
|
1186
1196
|
# @see Wx::Font#set_pixel_size
|
1187
1197
|
# @param pixelSize [Array(Integer, Integer), Wx::Size]
|
1188
|
-
# @return [FontInfo]
|
1198
|
+
# @return [Wx::FontInfo]
|
1189
1199
|
def initialize(*args) end
|
1190
1200
|
|
1191
1201
|
# Set the font family.
|
@@ -1258,7 +1268,7 @@ module Wx
|
|
1258
1268
|
def underlined(underlined=true) end
|
1259
1269
|
|
1260
1270
|
# Use a strike-through version of the font.
|
1261
|
-
# Currently this is only implemented in
|
1271
|
+
# Currently this is only implemented in wxMSW, wxGTK, and wxOSX.
|
1262
1272
|
# @param strikethrough [true,false]
|
1263
1273
|
# @return [Wx::FontInfo]
|
1264
1274
|
def strikethrough(strikethrough=true) end
|