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/core/menu.rb
CHANGED
data/lib/wx/core/pen.rb
ADDED
data/lib/wx/core/window.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Copyright 2004-2007 by Kevin Smith
|
2
|
-
#
|
2
|
+
# Copyright 2022 by Martin Corino
|
3
|
+
# released under the MIT(-style) wxruby2/3 license
|
3
4
|
|
4
5
|
# The base class for all things displayed on screen
|
5
6
|
class Wx::Window
|
@@ -69,4 +70,30 @@ class Wx::Window
|
|
69
70
|
self.paint(&block)
|
70
71
|
end
|
71
72
|
end
|
73
|
+
|
74
|
+
# implement non-static variants of these
|
75
|
+
|
76
|
+
def from_dip(*args)
|
77
|
+
Wx::Window.from_dip(*args, self)
|
78
|
+
end
|
79
|
+
def to_dip(*args)
|
80
|
+
Wx::Window.to_dip(*args, self)
|
81
|
+
end
|
82
|
+
|
83
|
+
def from_phys(*args)
|
84
|
+
Wx::Window.from_phys(*args, self)
|
85
|
+
end
|
86
|
+
def to_phys(*args)
|
87
|
+
Wx::Window.to_phys(*args, self)
|
88
|
+
end
|
89
|
+
|
90
|
+
# implement Window update locker
|
91
|
+
def locked(&block)
|
92
|
+
self.freeze
|
93
|
+
begin
|
94
|
+
block.call if block_given?
|
95
|
+
ensure
|
96
|
+
self.thaw
|
97
|
+
end
|
98
|
+
end
|
72
99
|
end
|
data/lib/wx/doc/app.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
|
2
|
+
class Wx::App
|
3
|
+
|
4
|
+
# Set the menu item id for the About menu item.
|
5
|
+
# Default is {Wx::ID_ABOUT}
|
6
|
+
# @param [Integer] id
|
7
|
+
def set_mac_about_menu_itemid(id) end
|
8
|
+
alias :mac_about_menu_itemid= :set_mac_about_menu_itemid
|
9
|
+
|
10
|
+
# Get the current menu item id for the About menu item.
|
11
|
+
# Default is {Wx::ID_ABOUT}
|
12
|
+
# @return [Integer]
|
13
|
+
def get_mac_about_menu_itemid(id) end
|
14
|
+
alias :mac_about_menu_itemid :get_mac_about_menu_itemid
|
15
|
+
|
16
|
+
# Set the menu item id for the Preferences menu item.
|
17
|
+
# Default is {Wx::ID_PREFERENCES}
|
18
|
+
# @param [Integer] id
|
19
|
+
def set_mac_preferences_menu_itemid(id) end
|
20
|
+
alias :mac_preferences_menu_itemid= :set_mac_preferences_menu_itemid
|
21
|
+
|
22
|
+
# Get the current menu item id for the Preferences menu item.
|
23
|
+
# Default is {Wx::ID_PREFERENCES}
|
24
|
+
# @return [Integer]
|
25
|
+
def get_mac_preferences_menu_itemid(id) end
|
26
|
+
alias :mac_preferences_menu_itemid :get_mac_preferences_menu_itemid
|
27
|
+
|
28
|
+
# Set the menu item id for the Exit menu item.
|
29
|
+
# Default is {Wx::ID_EXIT}
|
30
|
+
# @param [Integer] id
|
31
|
+
def set_mac_exit_menu_itemid(id) end
|
32
|
+
alias :mac_exit_menu_itemid= :set_mac_exit_menu_itemid
|
33
|
+
|
34
|
+
# Get the current menu item id for the Exit menu item.
|
35
|
+
# Default is {Wx::ID_EXIT}
|
36
|
+
# @return [Integer]
|
37
|
+
def get_mac_exit_menu_itemid(id) end
|
38
|
+
alias :mac_exit_menu_itemid :get_mac_exit_menu_itemid
|
39
|
+
|
40
|
+
end
|
data/lib/wx/doc/bitmap.rb
CHANGED
@@ -8,20 +8,16 @@ module Wx
|
|
8
8
|
# Default BitmapType for current platform. Actual value is platform dependent.
|
9
9
|
CURSOR_DEFAULT_TYPE = Wx::BitmapType::BITMAP_TYPE_ANY
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
# @see Wx::ArtLocator::find_art
|
23
|
-
def self.Bitmap(name, bmp_type = nil); end
|
24
|
-
|
25
|
-
end
|
11
|
+
# Searches for an art file with basename 'name' and creates a Bitmap if found.
|
12
|
+
# Raises an ArgumentError if not found.
|
13
|
+
# Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
|
14
|
+
# determine the values for the 'art_path' and 'art_owner' arguments ('art_path' is set to the
|
15
|
+
# absolute path to the folder holding the caller's code and 'art_owner' to the basename of the
|
16
|
+
# caller's source file). The 'art_type' argument is set to <code>:icon</code>.
|
17
|
+
# @param [String,Symbol] name base name of art file
|
18
|
+
# @param [Wx::BitmapType,nil] bmp_type bitmap type for art file (nil means any supported type)
|
19
|
+
# @return [Wx::Bitmap]
|
20
|
+
# @see Wx::ArtLocator::find_art
|
21
|
+
def self.Bitmap(name, bmp_type = nil); end
|
26
22
|
|
27
23
|
end
|
data/lib/wx/doc/brush.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
module Wx
|
3
|
+
|
4
|
+
class Brush
|
5
|
+
|
6
|
+
# Finds a brush with the specified attributes in the global list and returns it, else creates a new brush, adds it to the global brush list, and returns it.
|
7
|
+
# @param [Wx::Colour,String,Symbol] colour The Brush colour.
|
8
|
+
# @param [Wx::BrushStyle] style The brush style. See {Wx::BrushStyle} for a list of the styles.
|
9
|
+
# @return [Wx::Brush]
|
10
|
+
def self.find_or_create_brush(colour, style=Wx::BrushStyle::BRUSHSTYLE_SOLID) end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
# In wxRuby this is simply an alias for the Brush class.
|
15
|
+
TheBrushList = Wx::Brush
|
16
|
+
|
17
|
+
end
|
@@ -18,9 +18,9 @@ is available for anyone to look at and use in any way they like. Also, anyone ca
|
|
18
18
|
and enhancements to the project.
|
19
19
|
|
20
20
|
Like wxWidgets wxRuby is a cross platform toolkit. This means that the same program will run on multiple platforms
|
21
|
-
without modification. Currently Supported platforms are Microsoft Windows and Linux or other
|
22
|
-
unix-like systems with GTK2 or GTK3 libraries.
|
23
|
-
|
21
|
+
without modification. Currently Supported platforms are Microsoft Windows, MacOSX and Linux or other
|
22
|
+
unix-like systems with GTK2 or GTK3 libraries. Contributions to achieve support for other wxWidgets supported platforms
|
23
|
+
are appreciated.
|
24
24
|
|
25
25
|
Since the programming language is Ruby, wxRuby programs are simple and easy to write and understand. To accomplish the
|
26
26
|
full Ruby experience wxRuby has not ported the wxWidgets API 1 on 1 to Ruby but has made an effort to make the wxRuby
|
@@ -75,7 +75,7 @@ require 'wx'
|
|
75
75
|
Wx::App.run { puts 'Hello world!' }
|
76
76
|
```
|
77
77
|
|
78
|
-
As you can there is no obligation to create an instance of the Wx::App class in wxRuby for
|
78
|
+
As you can see there is no obligation to create an instance of the Wx::App class in wxRuby for
|
79
79
|
(admittedly extremely) simple applications. Calling the #run class method with a block will suffice.<br>
|
80
80
|
The class method will create an instance of the generic Wx::App class under the hood and use the
|
81
81
|
provided block as the #on_init callback. As the code inside the block returns a false-type value (#puts
|
@@ -127,8 +127,8 @@ When creating #on_init/#on_exit methods it is important to understand that those
|
|
127
127
|
with wxWidgets itself). The base Wx::App class actually does not define these methods so it's also not needed (even not possible)
|
128
128
|
to call `super` in the implementation. The wxRuby application class implementation will call the wxWidget OnInit base implementation
|
129
129
|
itself and after successful completion check for the existence of an #on_init method (which could also be 'automagicallly'
|
130
|
-
created from a block passed to #run) and call that if available or terminate the application if not.
|
131
|
-
exit sequence
|
130
|
+
created from a block passed to #run) and call that if available or terminate the application if not. The
|
131
|
+
exit sequence of executions are similar but reversed (first a possible #on_exit method and than the wxWidgets base OnExit).
|
132
132
|
|
133
133
|
What remains though is that for a derived application class it is still not necessary to explicitly create a class instance.
|
134
134
|
Simply calling the #run class method will suffice.
|
@@ -76,7 +76,7 @@ As mentioned above the wxWidgets GUI framework resources will only be fully init
|
|
76
76
|
starts. Likewise the framework resources will be de-initialized (deleted) after `#on_exit` method ends which means that
|
77
77
|
your application should not attempt to access any of these resources (windows, fonts, colours etc.) after that moment.
|
78
78
|
|
79
|
-
Also, largely because of the way the wxWidgets framework is designed but also because of
|
79
|
+
Also, largely because of the way the wxWidgets framework is designed but also because of the way this meshes with Ruby
|
80
80
|
GC, there is no safe way to re-initialize the framework after an application instance ends it run. This means you
|
81
81
|
**cannot** safely attempt to start another application instance after a previous (first) one has ended.
|
82
82
|
|
@@ -120,7 +120,7 @@ therefor provides special support to ease handling the destruction of these. See
|
|
120
120
|
One of the trickier things to handle correctly in the kind of native extensions like wxRuby is maintaining object
|
121
121
|
identities i.e. keeping native instances synced with their Ruby wrapper counter parts.
|
122
122
|
|
123
|
-
Whenever a native extension is allowed to call back into Ruby space we encounter the problem
|
123
|
+
Whenever a native extension is allowed to call back into Ruby space we encounter the problem that we need to map any
|
124
124
|
native object data provided for the call to the right Ruby types and when necessary to the right Ruby instance (object
|
125
125
|
identity).
|
126
126
|
|
@@ -131,8 +131,8 @@ passing them on to Ruby space.
|
|
131
131
|
For a lot of other objects though it is essential to not only map to the right **most derived** class type but also to
|
132
132
|
the exact Ruby instance which was originally instantiated as wrapper for the native object if any exists (in case no
|
133
133
|
Ruby instance existed yet a new instance of the correct **most derived** class should be instantiated at that point).
|
134
|
-
The reason this is important is 1
|
135
|
-
reference other data and/or functionality related to that specific Ruby/native pair and 2
|
134
|
+
The reason this is important is **1.** because the Ruby instance may have been used to identify, link to or otherwise
|
135
|
+
reference other data and/or functionality related to that specific Ruby/native pair and **2.** the Ruby instance could
|
136
136
|
contain data elements (instance variables) related to that specific Ruby/native pair.<br>
|
137
137
|
In the case of wxRuby Window instance for example it is common to derive custom Window classes with custom behaviour and
|
138
138
|
corresponding instance variables that drive that behaviour. When an event handler or an overloaded native method is passed
|
@@ -155,11 +155,12 @@ There are however quite a lot of wrapped native objects in wxRuby for which *obj
|
|
155
155
|
object tracking has been disabled for their classes. This means these kind of classes/object should **not** be derived from
|
156
156
|
(if even possible and/or useful) to add functionality/information or their identity used as key to link other information.<br>
|
157
157
|
These classes include:
|
158
|
-
|
158
|
+
* classes considered POD types like Wx::Size, Wx::Point, Wx::RealPoint, Wx::Rect, Wx::GBSpan, Wx::GBPosition, Wx::BusyInfoFlags,
|
159
159
|
Wx::AboutDialogInfo
|
160
|
-
|
160
|
+
* final non-instantiatable classes like the Wx::DC (Device Context) class family, Wx::GraphicsContext, Wx::WindowsDisabler,
|
161
161
|
Wx::EventBlocker, Wx::BusyInfo
|
162
|
-
|
163
|
-
|
162
|
+
* classes with native singleton objects like Wx::Clipboard
|
163
|
+
* the reference counted GDI objects like Wx::Pen, Wx::Brush, Wx::Colour, Wx::Cursor, Wx::Bitmap, Wx::Icon and similar
|
164
|
+
reference counted objects like Wx::Font
|
164
165
|
|
165
166
|
The reference documentation will note untracked object classes.
|
@@ -15,7 +15,7 @@ your own Ruby application code.
|
|
15
15
|
|
16
16
|
Any exceptions raised from wxRuby wrapper code signal coding errors that need to be rectified.
|
17
17
|
|
18
|
-
As far as handling application code exceptions is concerned the same advice applies as for wxWidgets itself; do **
|
18
|
+
As far as handling application code exceptions is concerned the same advice applies as for wxWidgets itself; do **NOT**
|
19
19
|
let exceptions escape your event handlers meaning that if you can reasonably expect application code to raise exceptions
|
20
20
|
you should make sure to catch any such exceptions within the context of the event handler like:
|
21
21
|
|
@@ -12,9 +12,9 @@ device context object is destroyed.
|
|
12
12
|
For this reason the common practice in wxWidgets C++ code would be to create temporary DC objects on the
|
13
13
|
stack and draw on them while they are in scope (for several classes it is even strongly advised to never create
|
14
14
|
them any other way and to never keep objects alive out of scope). When leaving the scope these object would than be
|
15
|
-
automatically destroyed and
|
15
|
+
automatically destroyed and any buffered output flushed to the final target.
|
16
16
|
|
17
|
-
In Ruby this approach is impossible as Ruby is a purely dynamic language and does not **this kind** of scope bound
|
17
|
+
In Ruby this approach is impossible as Ruby is a purely dynamic language and does not support **this kind** of scope bound
|
18
18
|
life cycles. Any DC object created would have to be dynamically created and due to the properties of the GC driven
|
19
19
|
life cycles could well be kept alive beyond the scope of it's creation. This will not always cause problems but could
|
20
20
|
and does not really have an upside.
|
@@ -24,7 +24,7 @@ cannot be instantiated using `new`. Rather all `Wx::DC` derived classes provide
|
|
24
24
|
temporary dc objects that will be passed on to blocks given and will only exist for the duration of the execution of
|
25
25
|
the block. This will guarantee proper DC cleanup when leaving it's usage scope.
|
26
26
|
|
27
|
-
> Note that it is a **BAD** idea to think about storing the dc reference
|
27
|
+
> Note that it is a **BAD** idea to think about storing the dc reference provided to the block for later access!
|
28
28
|
|
29
29
|
A typical usage of a `::draw_on` method would be:
|
30
30
|
|
@@ -48,7 +48,7 @@ The `Wx::PaintDC` and `Wx::AutoBufferedPaintDC` classes provide `::draw_on` meth
|
|
48
48
|
this is mostly to be consistent.
|
49
49
|
|
50
50
|
In this case it is recommended to instead use the `Wx::Window#paint` or `Wx::Window#paint_buffered` methods as these
|
51
|
-
provide some optimizations with regard to automatically detecting
|
51
|
+
provide some optimizations with regard to automatically detecting if the methods are called inside `Wx::EVT_PAINT`
|
52
52
|
handlers (which should normally be the case) or not.
|
53
53
|
|
54
54
|
So the typical way to do buffered painting inside a windows `Wx::EVT_PAINT` handler would be something like:
|
data/lib/wx/doc/font.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
module Wx
|
3
|
+
class Font
|
4
|
+
|
5
|
+
# @overload find_or_create_font(point_size, family, style, weight, underline=false, facename='', encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
6
|
+
# Finds a font of the given specification in the global font list, or creates one and adds it to the list.
|
7
|
+
# @param [Integer] point_size Size in points. See {Wx::Font#set_point_size} for more info.
|
8
|
+
# @param [Wx::FontFamily] family The font family: a generic portable way of referring to fonts without specifying a facename.
|
9
|
+
# @param [Wx::FontStyle] style One of {Wx::FontStyle::FONTSTYLE_NORMAL}, {Wx::FontStyle::FONTSTYLE_SLANT} and {Wx::FontStyle::FONTSTYLE_ITALIC}.
|
10
|
+
# @param [Wx::FontWeight] weight Font weight, sometimes also referred to as font boldness. One of the {Wx::FontWeight} enumeration values.
|
11
|
+
# @param [Boolean] underline The value can be true or false.
|
12
|
+
# @param [String] facename 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.
|
13
|
+
# @param [Wx::FontEncoding] encoding 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).
|
14
|
+
# @return [Wx::Font]
|
15
|
+
# @see Wx::Font#initialize
|
16
|
+
# @overload find_or_create_font(font_info)
|
17
|
+
# Finds a font of the given specification in the global font list, or creates one and adds it to the list.
|
18
|
+
# @param [Wx::FontInfo] font_info
|
19
|
+
# @return [Wx::Font]
|
20
|
+
def self.find_or_create_font(*args) end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
# In wxRuby this is simply an alias for the Font class.
|
25
|
+
TheFontList = Font
|
26
|
+
|
27
|
+
end
|
data/lib/wx/doc/functions.rb
CHANGED
@@ -11,32 +11,73 @@ module Wx
|
|
11
11
|
# @param lvl [Integer] logging level (like {Wx::LOG_Message})
|
12
12
|
# @param fmt [String] message (formatting) string
|
13
13
|
# @param args [Array<Object>] optional message arguments
|
14
|
-
# @
|
15
|
-
|
14
|
+
# @param filename [String] optional file name for log info
|
15
|
+
# @param line [Integer] optional line number for log info
|
16
|
+
# @param func [String] optional function name for log info
|
17
|
+
# @param component [String] optional component name for log info
|
18
|
+
# @return [void]
|
19
|
+
def self.log_generic(lvl, fmt, *args, filename: nil, line: 0, func: nil, component: nil) end
|
16
20
|
|
17
21
|
# Log a Wx low priority informational message to the current Wx log output
|
18
22
|
# @param fmt [String] message (formatting) string
|
19
23
|
# @param args [Array<Object>] optional message arguments
|
20
|
-
# @
|
21
|
-
|
24
|
+
# @param filename [String] optional file name for log info
|
25
|
+
# @param line [Integer] optional line number for log info
|
26
|
+
# @param func [String] optional function name for log info
|
27
|
+
# @param component [String] optional component name for log info
|
28
|
+
# @return [void]
|
29
|
+
def self.log_info(fmt, *args, filename: nil, line: 0, func: nil, component: nil) end
|
22
30
|
|
23
31
|
# Log a Wx Informational message to the current Wx log output
|
24
32
|
# @param fmt [String] message (formatting) string
|
25
33
|
# @param args [Array<Object>] optional message arguments
|
26
|
-
# @
|
27
|
-
|
34
|
+
# @param filename [String] optional file name for log info
|
35
|
+
# @param line [Integer] optional line number for log info
|
36
|
+
# @param func [String] optional function name for log info
|
37
|
+
# @param component [String] optional component name for log info
|
38
|
+
# @return [void]
|
39
|
+
def self.log_message(fmt, *args, filename: nil, line: 0, func: nil, component: nil) end
|
28
40
|
|
29
41
|
# Log a Wx Error message to the current Wx log output
|
30
42
|
# @param fmt [String] message (formatting) string
|
31
43
|
# @param args [Array<Object>] optional message arguments
|
32
|
-
# @
|
33
|
-
|
44
|
+
# @param filename [String] optional file name for log info
|
45
|
+
# @param line [Integer] optional line number for log info
|
46
|
+
# @param func [String] optional function name for log info
|
47
|
+
# @param component [String] optional component name for log info
|
48
|
+
# @return [void]
|
49
|
+
def self.log_error(fmt, *args, filename: nil, line: 0, func: nil, component: nil) end
|
34
50
|
|
35
51
|
# Log a Wx Warning message to the current Wx log output
|
36
52
|
# @param fmt [String] message (formatting) string
|
37
53
|
# @param args [Array<Object>] optional message arguments
|
38
|
-
# @
|
39
|
-
|
54
|
+
# @param filename [String] optional file name for log info
|
55
|
+
# @param line [Integer] optional line number for log info
|
56
|
+
# @param func [String] optional function name for log info
|
57
|
+
# @param component [String] optional component name for log info
|
58
|
+
# @return [void]
|
59
|
+
def self.log_warning(fmt, *args, filename: nil, line: 0, func: nil, component: nil) end
|
60
|
+
|
61
|
+
# Log a Wx verbose informational message to the current Wx log output
|
62
|
+
# (needs explicit activation to be shown)
|
63
|
+
# @param fmt [String] message (formatting) string
|
64
|
+
# @param args [Array<Object>] optional message arguments
|
65
|
+
# @param filename [String] optional file name for log info
|
66
|
+
# @param line [Integer] optional line number for log info
|
67
|
+
# @param func [String] optional function name for log info
|
68
|
+
# @param component [String] optional component name for log info
|
69
|
+
# @return [void]
|
70
|
+
def self.log_verbose(fmt, *args, filename: nil, line: 0, func: nil, component: nil) end
|
71
|
+
|
72
|
+
# Log a Wx debug message to the current Wx log output
|
73
|
+
# @param fmt [String] message (formatting) string
|
74
|
+
# @param args [Array<Object>] optional message arguments
|
75
|
+
# @param filename [String] optional file name for log info
|
76
|
+
# @param line [Integer] optional line number for log info
|
77
|
+
# @param func [String] optional function name for log info
|
78
|
+
# @param component [String] optional component name for log info
|
79
|
+
# @return [void]
|
80
|
+
def self.log_debug(fmt, *args, filename: nil, line: 0, func: nil, component: nil) end
|
40
81
|
|
41
82
|
# Log a Wx Status message - this is directed to the status bar of the
|
42
83
|
# specified Frame window, or the application main window if not specified.
|
@@ -51,19 +92,6 @@ module Wx
|
|
51
92
|
# @return [nil]
|
52
93
|
def self.log_status(fmt, *args) end
|
53
94
|
|
54
|
-
# Log a Wx verbose informational message to the current Wx log output
|
55
|
-
# (needs explicit activation to be shown)
|
56
|
-
# @param fmt [String] message (formatting) string
|
57
|
-
# @param args [Array<Object>] optional message arguments
|
58
|
-
# @return [nil]
|
59
|
-
def self.log_verbose(fmt, *args) end
|
60
|
-
|
61
|
-
# Log a Wx debug message to the current Wx log output
|
62
|
-
# @param fmt [String] message (formatting) string
|
63
|
-
# @param args [Array<Object>] optional message arguments
|
64
|
-
# @return [nil]
|
65
|
-
def self.log_debug(fmt, *args) end
|
66
|
-
|
67
95
|
# @!endgroup
|
68
96
|
|
69
97
|
# @!group Other class methods
|
data/lib/wx/doc/gc_dc.rb
CHANGED
@@ -66,7 +66,7 @@ module Wx
|
|
66
66
|
class AboutDialogInfo < ::Object
|
67
67
|
|
68
68
|
# Default constructor leaves all fields are initially uninitialized, in general you should call at least {Wx::AboutDialogInfo#set_version}, {Wx::AboutDialogInfo#set_copyright} and {Wx::AboutDialogInfo#set_description}.
|
69
|
-
# @return [AboutDialogInfo]
|
69
|
+
# @return [Wx::AboutDialogInfo]
|
70
70
|
def initialize; end
|
71
71
|
|
72
72
|
# Adds an artist name to be shown in the program credits.
|
@@ -58,11 +58,11 @@ module Wx
|
|
58
58
|
# @param keyCode [Integer,String] The keycode (or character) to be detected. See {Wx::KeyCode} for a full list of keycodes.
|
59
59
|
# @param cmd [Integer] The menu or control command identifier (ID).
|
60
60
|
# @param item [Wx::MenuItem] The menu item associated with this accelerator.
|
61
|
-
# @return [AcceleratorEntry]
|
61
|
+
# @return [Wx::AcceleratorEntry]
|
62
62
|
# @overload initialize(entry)
|
63
63
|
# Copy ctor.
|
64
64
|
# @param entry [Wx::AcceleratorEntry]
|
65
|
-
# @return [AcceleratorEntry]
|
65
|
+
# @return [Wx::AcceleratorEntry]
|
66
66
|
def initialize(*args) end
|
67
67
|
|
68
68
|
# Returns the command identifier for the accelerator table entry.
|
@@ -148,16 +148,16 @@ module Wx
|
|
148
148
|
|
149
149
|
# @overload initialize()
|
150
150
|
# Default ctor.
|
151
|
-
# @return [AcceleratorTable]
|
151
|
+
# @return [Wx::AcceleratorTable]
|
152
152
|
# @overload initialize(entries)
|
153
153
|
# Initializes the accelerator table from an array of {Wx::AcceleratorEntry}.
|
154
154
|
# @param entries [Array<Wx::AcceleratorEntry>] The array of entries.
|
155
|
-
# @return [AcceleratorTable]
|
155
|
+
# @return [Wx::AcceleratorTable]
|
156
156
|
# @overload initialize(resource)
|
157
157
|
# Loads the accelerator table from a Windows resource (Windows only).
|
158
|
-
# Availability: only available for the
|
158
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
159
159
|
# @param resource [String] Name of a Windows accelerator.
|
160
|
-
# @return [AcceleratorTable]
|
160
|
+
# @return [Wx::AcceleratorTable]
|
161
161
|
def initialize(*args) end
|
162
162
|
|
163
163
|
# Returns true if the accelerator table is valid.
|
@@ -638,7 +638,7 @@ module Wx
|
|
638
638
|
# Most functions work with an object id, which can be zero to refer to 'this' UI element, or greater than zero to refer to the nth child element. This allows you to specify elements that don't have a corresponding {Wx::Window} or {Wx::Accessible}; for example, the sash of a splitter window.
|
639
639
|
# For details on the semantics of functions and types, please refer to the Microsoft Active Accessibility 1.2 documentation.
|
640
640
|
# This class is compiled into wxWidgets only if the {Wx::Setup::USE_ACCESSIBILITY} setup symbol is set to 1.
|
641
|
-
# Availability: only available for the
|
641
|
+
# Availability: only available for the wxMSW port. {Wx::msw}
|
642
642
|
# ===
|
643
643
|
#
|
644
644
|
# Category: {Wx::Miscellaneous}
|
@@ -650,7 +650,7 @@ module Wx
|
|
650
650
|
# Constructor, taking an optional window.
|
651
651
|
# The object can be associated with a window later.
|
652
652
|
# @param win [Wx::Window]
|
653
|
-
# @return [Accessible]
|
653
|
+
# @return [Wx::Accessible]
|
654
654
|
def initialize(win=nil) end
|
655
655
|
|
656
656
|
# Performs the default action for the object.
|
@@ -744,9 +744,13 @@ module Wx
|
|
744
744
|
|
745
745
|
# Gets a variant representing the selected children of this object.
|
746
746
|
# Acceptable values are:
|
747
|
+
#
|
747
748
|
# - a null variant (<code>IsNull()</code> returns true) if no children are selected
|
749
|
+
#
|
748
750
|
# - a <code>void*</code> pointer to a {Wx::Accessible} of selected child object
|
751
|
+
#
|
749
752
|
# - an integer representing the selected child element, or 0 if this object is selected (<code>GetType()</code> <code>==</code> <code>"long"</code>)
|
753
|
+
#
|
750
754
|
# - a list variant (<code>GetType()</code> <code>==</code> <code>"list"</code>) if multiple child objects are selected
|
751
755
|
# @param selections [Wx::Variant]
|
752
756
|
# @return [AccStatus]
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# :stopdoc:
|
2
|
+
# This file is automatically generated by the WXRuby3 documentation
|
3
|
+
# generator. Do not alter this file.
|
4
|
+
# :startdoc:
|
5
|
+
|
6
|
+
|
7
|
+
module Wx
|
8
|
+
|
9
|
+
# Small control showing an animation indicating that the program is currently busy performing some background task.
|
10
|
+
# ===
|
11
|
+
#
|
12
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
13
|
+
# </td><td> wxGTK Appearance
|
14
|
+
# </td><td> wxOSX Appearance
|
15
|
+
# </td></tr></table></div>
|
16
|
+
#
|
17
|
+
class ActivityIndicator < Control
|
18
|
+
|
19
|
+
# @overload initialize()
|
20
|
+
# Default constructor.
|
21
|
+
# Use {Wx::ActivityIndicator#create} to really create the control after using this constructor.
|
22
|
+
# @return [Wx::ActivityIndicator]
|
23
|
+
# @overload initialize(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=("activityindicator"))
|
24
|
+
# Constructor fully creating the control.
|
25
|
+
# The arguments have the usual meanings and only parent is typically required.
|
26
|
+
# @param parent [Wx::Window]
|
27
|
+
# @param winid [Integer]
|
28
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
29
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
30
|
+
# @param style [Integer]
|
31
|
+
# @param name [String]
|
32
|
+
# @return [Wx::ActivityIndicator]
|
33
|
+
def initialize(*args) end
|
34
|
+
|
35
|
+
# Create the control initialized using the default constructor.
|
36
|
+
# This method can be used to finish the control creation if it hadn't been done already by using the non-default constructor.
|
37
|
+
# @param parent [Wx::Window]
|
38
|
+
# @param winid [Integer]
|
39
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
40
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
41
|
+
# @param style [Integer]
|
42
|
+
# @param name [String]
|
43
|
+
# @return [true,false]
|
44
|
+
def create(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=("activityindicator")) end
|
45
|
+
|
46
|
+
# Starts animation of the indicator.
|
47
|
+
# Does nothing if the indicator is already running.
|
48
|
+
# @return [void]
|
49
|
+
def start; end
|
50
|
+
|
51
|
+
# Stops the animation of the indicator.
|
52
|
+
# Notice that the animation is stopped even if {Wx::ActivityIndicator#start} had been called multiple times before, i.e. the calls are not cumulative.
|
53
|
+
# @return [void]
|
54
|
+
def stop; end
|
55
|
+
|
56
|
+
# Returns true if the control is currently showing activity.
|
57
|
+
# Returns false initially, true once {Wx::ActivityIndicator#start} is called and false again after calling {Wx::ActivityIndicator#stop}.
|
58
|
+
# @return [true,false]
|
59
|
+
def is_running; end
|
60
|
+
alias_method :running?, :is_running
|
61
|
+
|
62
|
+
end # ActivityIndicator
|
63
|
+
|
64
|
+
|
65
|
+
end
|
data/lib/wx/doc/gen/animation.rb
CHANGED
@@ -76,18 +76,18 @@ module Wx
|
|
76
76
|
# Constructs a new empty animation object.
|
77
77
|
# Call {Wx::Animation#load} to initialize it.
|
78
78
|
# @see Wx::AnimationCtrl#create_animation
|
79
|
-
# @return [Animation]
|
79
|
+
# @return [Wx::Animation]
|
80
80
|
# @overload initialize(name, type=Wx::AnimationType::ANIMATION_TYPE_ANY)
|
81
81
|
# Constructs a new animation object and load the animation data from the given filename.
|
82
82
|
#
|
83
83
|
# @see Wx::AnimationCtrl#create_animation
|
84
84
|
# @param name [String] A filename.
|
85
85
|
# @param type [AnimationType] One of the {Wx::AnimationType} values; {Wx::AnimationType::ANIMATION_TYPE_ANY} means that the function should try to autodetect the filetype.
|
86
|
-
# @return [Animation]
|
86
|
+
# @return [Wx::Animation]
|
87
87
|
# @overload initialize(other)
|
88
88
|
# Copy constructor.
|
89
89
|
# @param other [Wx::Animation]
|
90
|
-
# @return [Animation]
|
90
|
+
# @return [Wx::Animation]
|
91
91
|
def initialize(*args) end
|
92
92
|
|
93
93
|
# Returns true if animation data is present.
|
@@ -103,13 +103,13 @@ module Wx
|
|
103
103
|
alias_method :delay, :get_delay
|
104
104
|
|
105
105
|
# Returns the number of frames for this animation.
|
106
|
-
# This method is not implemented in the native
|
106
|
+
# This method is not implemented in the native wxGTK implementation of this class and always returns 0 there.
|
107
107
|
# @return [Integer]
|
108
108
|
def get_frame_count; end
|
109
109
|
alias_method :frame_count, :get_frame_count
|
110
110
|
|
111
111
|
# Returns the i-th frame as a {Wx::Image}.
|
112
|
-
# This method is not implemented in the native
|
112
|
+
# This method is not implemented in the native wxGTK implementation of this class and always returns an invalid image there.
|
113
113
|
# @param frame [Integer]
|
114
114
|
# @return [Wx::Image]
|
115
115
|
def get_frame(frame) end
|
@@ -129,7 +129,7 @@ module Wx
|
|
129
129
|
|
130
130
|
# Loads an animation from the given stream.
|
131
131
|
# true if the operation succeeded, false otherwise.
|
132
|
-
# @param stream [IO,Wx::InputStream] The stream to use to load the animation. Under
|
132
|
+
# @param stream [IO,Wx::InputStream] The stream to use to load the animation. Under wxGTK may be any kind of stream; under other platforms this must be a seekable stream.
|
133
133
|
# @param type [AnimationType] One of the {Wx::AnimationType} enumeration values.
|
134
134
|
# @return [true,false]
|
135
135
|
def load(stream, type=Wx::AnimationType::ANIMATION_TYPE_ANY) end
|
@@ -170,7 +170,7 @@ module Wx
|
|
170
170
|
#
|
171
171
|
class AnimationDecoder < ::Object
|
172
172
|
|
173
|
-
# @return [AnimationDecoder]
|
173
|
+
# @return [Wx::AnimationDecoder]
|
174
174
|
def initialize; end
|
175
175
|
|
176
176
|
# Load the animation image frames from the given stream.
|