wxruby3 0.9.0.pre.rc.2-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 +30 -8
- data/README.md +3 -3
- 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/event_loop.rb +7 -0
- 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/doc/bitmap.rb +11 -15
- 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 +1 -1
- 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 +5 -5
- 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 +33 -18
- 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 +4 -3
- 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 +1 -1
- data/lib/wx/doc/gen/event_filter.rb +5 -2
- data/lib/wx/doc/gen/event_list.rb +15 -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 +16 -7
- 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 +30 -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 +12 -7
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
- 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 -4
- 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 -10
- 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/prt/printer_dc.rb +2 -2
- data/lib/wx/doc/scaled_dc.rb +1 -1
- data/lib/wx/doc/text_validator.rb +12 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/tests/test_art.rb +9 -0
- data/tests/test_box_sizer.rb +161 -0
- data/tests/test_grid_sizer.rb +148 -0
- data/tests/test_list_ctrl.rb +53 -0
- data/tests/test_log.rb +163 -0
- data/tests/test_std_controls.rb +58 -0
- data/tests/test_timer.rb +95 -0
- metadata +13 -2
data/lib/wx/doc/gen/frame.rb
CHANGED
@@ -26,32 +26,47 @@ module Wx
|
|
26
26
|
# {Wx::Frame} processes the following events:
|
27
27
|
#
|
28
28
|
# - {Wx::EVT_SIZE}: if the frame has exactly one child window, not counting the status and toolbar, this child is resized to take the entire frame client area. If two or more windows are present, they should be laid out explicitly either by manually handling {Wx::EVT_SIZE} or using sizers;
|
29
|
+
#
|
29
30
|
# - {Wx::EVT_MENU_HIGHLIGHT}: the default implementation displays the help string associated with the selected item in the first pane of the status bar, if there is one.
|
30
31
|
#
|
31
32
|
# === Styles
|
32
33
|
#
|
33
34
|
# This class supports the following styles:
|
34
|
-
#
|
35
|
+
#
|
35
36
|
# - {Wx::DEFAULT_FRAME_STYLE}: Defined as {Wx::MINIMIZE_BOX} | {Wx::MAXIMIZE_BOX} | {Wx::RESIZE_BORDER} | {Wx::SYSTEM_MENU} | {Wx::CAPTION} | {Wx::CLOSE_BOX} | {Wx::CLIP_CHILDREN}.
|
37
|
+
#
|
36
38
|
# - {Wx::ICONIZE}: Display the frame iconized (minimized). Windows only.
|
39
|
+
#
|
37
40
|
# - {Wx::CAPTION}: Puts a caption on the frame. Notice that this flag is required by {Wx::MINIMIZE_BOX}, {Wx::MAXIMIZE_BOX} and {Wx::CLOSE_BOX} on most systems as the corresponding buttons cannot be shown if the window has no title bar at all. I.e. if {Wx::CAPTION} is not specified those styles would be simply ignored.
|
41
|
+
#
|
38
42
|
# - {Wx::MINIMIZE}: Identical to {Wx::ICONIZE}. Windows only.
|
43
|
+
#
|
39
44
|
# - {Wx::MINIMIZE_BOX}: Displays a minimize box on the frame.
|
45
|
+
#
|
40
46
|
# - {Wx::MAXIMIZE}: Displays the frame maximized. Windows and GTK+ only.
|
41
|
-
#
|
47
|
+
#
|
48
|
+
# - {Wx::MAXIMIZE_BOX}: Displays a maximize box on the frame. Notice that under wxGTK {Wx::RESIZE_BORDER} must be used as well or this style is ignored.
|
49
|
+
#
|
42
50
|
# - {Wx::CLOSE_BOX}: Displays a close box on the frame.
|
51
|
+
#
|
43
52
|
# - {Wx::STAY_ON_TOP}: Stay on top of all other windows, see also {Wx::FRAME_FLOAT_ON_PARENT}.
|
53
|
+
#
|
44
54
|
# - {Wx::SYSTEM_MENU}: Displays a system menu containing the list of various windows commands in the window title bar. Unlike {Wx::MINIMIZE_BOX}, {Wx::MAXIMIZE_BOX} and {Wx::CLOSE_BOX} styles this style can be used without {Wx::CAPTION}, at least under Windows, and makes the system menu available without showing it on screen in this case. However it is recommended to only use it together with {Wx::CAPTION} for consistent behaviour under all platforms.
|
55
|
+
#
|
45
56
|
# - {Wx::RESIZE_BORDER}: Displays a resizable border around the window.
|
57
|
+
#
|
46
58
|
# - {Wx::FRAME_TOOL_WINDOW}: Causes a frame with a small title bar to be created; the frame does not appear in the taskbar under Windows or GTK+.
|
47
|
-
#
|
59
|
+
#
|
60
|
+
# - {Wx::FRAME_NO_TASKBAR}: Creates an otherwise normal frame but it does not appear in the taskbar under Windows or GTK+ (note that it will minimize to the desktop window under Windows which may seem strange to the users and thus it might be better to use this style only without {Wx::MINIMIZE_BOX} style). In wxGTK, the flag is respected only if the window manager supports _NET_WM_STATE_SKIP_TASKBAR hint.
|
61
|
+
#
|
48
62
|
# - {Wx::FRAME_FLOAT_ON_PARENT}: The frame will always be on top of its parent (unlike {Wx::STAY_ON_TOP}). A frame created with this style must have a non-NULL parent.
|
63
|
+
#
|
49
64
|
# - {Wx::FRAME_SHAPED}: Windows with this style are allowed to have their shape changed with the {Wx::Frame#set_shape} method.
|
50
65
|
#
|
51
66
|
# The default frame style is for normal, resizable frames. To create a frame which cannot be resized by user, you may use the following combination of styles:
|
52
67
|
#
|
53
|
-
# ```
|
54
|
-
#
|
68
|
+
# ```ruby
|
69
|
+
# Wx::DEFAULT_FRAME_STYLE & ~(Wx::RESIZE_BORDER | Wx::MAXIMIZE_BOX)
|
55
70
|
# ```
|
56
71
|
#
|
57
72
|
# See also the Window Styles.
|
@@ -59,19 +74,25 @@ module Wx
|
|
59
74
|
# === Extra Styles
|
60
75
|
#
|
61
76
|
# This class supports the following extra styles:
|
62
|
-
#
|
77
|
+
#
|
63
78
|
# - {Wx::FRAME_EX_CONTEXTHELP}: Under Windows, puts a query button on the caption. When pressed, Windows will go into a context-sensitive help mode and wxWidgets will send a {Wx::EVT_HELP} event if the user clicked on an application window. Note that this is an extended style and must be set by calling SetExtraStyle before Create is called (two-step construction). You cannot use this style together with {Wx::MAXIMIZE_BOX} or {Wx::MINIMIZE_BOX}, so you should use {Wx::DEFAULT_FRAME_STYLE} ~ ({Wx::MINIMIZE_BOX} | {Wx::MAXIMIZE_BOX}) for the frames having this style (the dialogs don't have a minimize or a maximize box by default)
|
79
|
+
#
|
64
80
|
# - {Wx::FRAME_EX_METAL}: On macOS, frames with this style will be shown with a metallic look. This is an extra style.
|
65
81
|
#
|
66
82
|
# === Events emitted by this class
|
67
83
|
#
|
68
84
|
# Event handler methods for events emitted by this class:
|
69
|
-
#
|
85
|
+
#
|
70
86
|
# - {Wx::EvtHandler#evt_close}(meth = nil, &block): Process a {Wx::EVT_CLOSE_WINDOW} event when the frame is being closed by the user or programmatically (see {Wx::Window#close}). The user may generate this event clicking the close button (typically the 'X' on the top-right of the title bar) if it's present (see the {Wx::CLOSE_BOX} style). See {Wx::CloseEvent}.
|
87
|
+
#
|
71
88
|
# - {Wx::EvtHandler#evt_iconize}(meth = nil, &block): Process a {Wx::EVT_ICONIZE} event. See {Wx::IconizeEvent}.
|
89
|
+
#
|
72
90
|
# - {Wx::EvtHandler#evt_menu_open}(meth = nil, &block): A menu is about to be opened. See {Wx::MenuEvent}.
|
91
|
+
#
|
73
92
|
# - {Wx::EvtHandler#evt_menu_close}(meth = nil, &block): A menu has been just closed. See {Wx::MenuEvent}.
|
93
|
+
#
|
74
94
|
# - {Wx::EvtHandler#evt_menu_highlight}(id, meth = nil, &block): The menu item with the specified id has been highlighted: used to show help prompts in the status bar by {Wx::Frame}. See {Wx::MenuEvent}.
|
95
|
+
#
|
75
96
|
# - {Wx::EvtHandler#evt_menu_highlight_all}(meth = nil, &block): A menu item has been highlighted, i.e. the currently selected menu item has changed. See {Wx::MenuEvent}.
|
76
97
|
#
|
77
98
|
# ===
|
@@ -87,7 +108,7 @@ module Wx
|
|
87
108
|
|
88
109
|
# @overload initialize()
|
89
110
|
# Default constructor.
|
90
|
-
# @return [Frame]
|
111
|
+
# @return [Wx::Frame]
|
91
112
|
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
|
92
113
|
# Constructor, creating the window.
|
93
114
|
# For Motif, MWM (the Motif Window Manager) should be running for any window styles to work (otherwise all styles take effect).
|
@@ -99,7 +120,7 @@ module Wx
|
|
99
120
|
# @param size [Array(Integer, Integer), Wx::Size] The window size. The value {Wx::DEFAULT_SIZE} indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
|
100
121
|
# @param style [Integer] The window style. See {Wx::Frame} class description.
|
101
122
|
# @param name [String] The name of the window. This parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual windows.
|
102
|
-
# @return [Frame]
|
123
|
+
# @return [Wx::Frame]
|
103
124
|
def initialize(*args) end
|
104
125
|
|
105
126
|
# Centres the frame on the display.
|
@@ -255,8 +276,10 @@ module Wx
|
|
255
276
|
# Returns a {Wx::TaskBarButton} pointer representing the taskbar button of the window under Windows 7 or later. The returned {Wx::TaskBarButton} may be used, if non-NULL, to access the functionality including thumbnail representations, thumbnail toolbars, notification and status overlays, and progress indicators.
|
256
277
|
# The returned pointer must not be deleted, it is owned by the frame and will be only deleted when the frame itself is destroyed.
|
257
278
|
# This function is not available in the other ports by design, any occurrences of it in the portable code must be guarded by
|
258
|
-
# ```
|
259
|
-
#
|
279
|
+
# ```ruby
|
280
|
+
# if Wx::PLATFORM == 'WXMSW'
|
281
|
+
# #...
|
282
|
+
# end
|
260
283
|
# ```
|
261
284
|
# preprocessor guards.
|
262
285
|
# @return [Wx::TaskBarButton]
|
data/lib/wx/doc/gen/fs_file.rb
CHANGED
@@ -38,19 +38,6 @@ module Wx
|
|
38
38
|
|
39
39
|
# Constructor.
|
40
40
|
# You probably won't use it. See the Note for details.
|
41
|
-
# It is seldom used by the application programmer but you will need it if you are writing your own virtual FS. For example you may need something similar to {Wx::MemoryInputStream}, but because {Wx::MemoryInputStream} doesn't free the memory when destroyed and thus passing a memory stream pointer into {Wx::FSFile} constructor would lead to memory leaks, you can write your own class derived from {Wx::FSFile}:
|
42
|
-
#
|
43
|
-
# ```
|
44
|
-
# class wxMyFSFile : public wxFSFile
|
45
|
-
# {
|
46
|
-
# private:
|
47
|
-
# void *m_Mem;
|
48
|
-
# public:
|
49
|
-
# wxMyFSFile(.....)
|
50
|
-
# ~wxMyFSFile() {free(m_Mem);}
|
51
|
-
# // of course dtor is virtual ;-)
|
52
|
-
# };
|
53
|
-
# ```
|
54
41
|
#
|
55
42
|
# If you are not sure of the meaning of these params, see the description of the GetXXXX() functions.
|
56
43
|
# @param stream [IO] The input stream that will be used to access data
|
@@ -58,7 +45,7 @@ module Wx
|
|
58
45
|
# @param mimetype [String] MIME type of this file. It may be left empty, in which case the type will be determined from file's extension (location must not be empty in this case).
|
59
46
|
# @param anchor [String] Anchor. See {Wx::FSFile#get_anchor} for details.
|
60
47
|
# @param modif [Wx::DateTime] Modification date and time for this file.
|
61
|
-
# @return [FSFile]
|
48
|
+
# @return [Wx::FSFile]
|
62
49
|
def initialize(stream, location, mimetype, anchor, modif) end
|
63
50
|
|
64
51
|
# Detaches the stream from the {Wx::FSFile} object.
|
@@ -121,7 +108,7 @@ module Wx
|
|
121
108
|
|
122
109
|
# Creates a dummy stream object.
|
123
110
|
# It doesn't do anything.
|
124
|
-
# @return [StreamBase]
|
111
|
+
# @return [Wx::StreamBase]
|
125
112
|
def initialize; end
|
126
113
|
|
127
114
|
# This function returns the last error.
|
@@ -175,7 +162,7 @@ module Wx
|
|
175
162
|
class InputStream < StreamBase
|
176
163
|
|
177
164
|
# Creates a dummy input stream.
|
178
|
-
# @return [InputStream]
|
165
|
+
# @return [Wx::InputStream]
|
179
166
|
def initialize; end
|
180
167
|
|
181
168
|
# Returns true if some data is available in the stream right now, so that calling {Wx::InputStream#read} wouldn't block.
|
@@ -241,7 +228,7 @@ module Wx
|
|
241
228
|
class OutputStream < StreamBase
|
242
229
|
|
243
230
|
# Creates a dummy {Wx::OutputStream} object.
|
244
|
-
# @return [OutputStream]
|
231
|
+
# @return [Wx::OutputStream]
|
245
232
|
def initialize; end
|
246
233
|
|
247
234
|
# Closes the stream, returning false if an error occurs.
|
data/lib/wx/doc/gen/gauge.rb
CHANGED
@@ -29,18 +29,22 @@ module Wx
|
|
29
29
|
# === Styles
|
30
30
|
#
|
31
31
|
# This class supports the following styles:
|
32
|
-
#
|
32
|
+
#
|
33
33
|
# - {Wx::GA_HORIZONTAL}: Creates a horizontal gauge.
|
34
|
+
#
|
34
35
|
# - {Wx::GA_VERTICAL}: Creates a vertical gauge.
|
36
|
+
#
|
35
37
|
# - {Wx::GA_SMOOTH}: Creates smooth progress bar with one pixel wide update step (not supported by all platforms).
|
38
|
+
#
|
36
39
|
# - {Wx::GA_TEXT}: Display the current value in percents in the gauge itself. This style is only supported in {Wx::Qt} and ignored under the other platforms. This flag is only available in wxWidgets 3.1.0 and later.
|
40
|
+
#
|
37
41
|
# - {Wx::GA_PROGRESS}: Reflect the value of gauge in the application taskbar button under Windows 7 and later and the dock icon under macOS, ignored under the other platforms. This flag is only available in wxWidgets 3.1.0 and later.
|
38
42
|
#
|
39
43
|
# ===
|
40
44
|
#
|
41
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
42
|
-
# </td><td>
|
43
|
-
# </td><td>
|
45
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
46
|
+
# </td><td> wxGTK Appearance
|
47
|
+
# </td><td> wxOSX Appearance
|
44
48
|
# </td></tr></table></div>
|
45
49
|
# @see Wx::Slider
|
46
50
|
# @see Wx::ScrollBar
|
@@ -50,7 +54,7 @@ module Wx
|
|
50
54
|
|
51
55
|
# @overload initialize()
|
52
56
|
# Default constructor.
|
53
|
-
# @return [Gauge]
|
57
|
+
# @return [Wx::Gauge]
|
54
58
|
# @overload initialize(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::GaugeNameStr)
|
55
59
|
# Constructor, creating and showing a gauge.
|
56
60
|
#
|
@@ -63,7 +67,7 @@ module Wx
|
|
63
67
|
# @param style [Integer] Gauge style.
|
64
68
|
# @param validator [Wx::Validator] Window validator.
|
65
69
|
# @param name [String] Window name.
|
66
|
-
# @return [Gauge]
|
70
|
+
# @return [Wx::Gauge]
|
67
71
|
def initialize(*args) end
|
68
72
|
|
69
73
|
# Creates the gauge for two-step construction.
|
@@ -105,7 +109,7 @@ module Wx
|
|
105
109
|
|
106
110
|
# Sets the range (maximum value) of the gauge.
|
107
111
|
# This function makes the gauge switch to determinate mode, if it's not already.
|
108
|
-
# When the gauge is in indeterminate mode, under
|
112
|
+
# When the gauge is in indeterminate mode, under wxMSW the gauge repeatedly goes from zero to range and back; under other ports when in indeterminate mode, the range setting is ignored.
|
109
113
|
# @see Wx::Gauge#get_range
|
110
114
|
# @param range [Integer]
|
111
115
|
# @return [void]
|
data/lib/wx/doc/gen/gcdc.rb
CHANGED
@@ -9,7 +9,11 @@ module Wx
|
|
9
9
|
# {Wx::GCDC} is a device context that draws on a {Wx::GraphicsContext}.
|
10
10
|
# {Wx::GCDC} does its best to implement {Wx::DC} API, but the following features are not (fully) implemented because {Wx::GraphicsContext} doesn't support them:
|
11
11
|
#
|
12
|
-
# - {Wx::GCDC#get_pixel} method is not implemented and always returns false because modern graphics layers don't support retrieving the contents of the drawn pixels
|
12
|
+
# - {Wx::GCDC#get_pixel} method is not implemented and always returns false because modern graphics layers don't support retrieving the contents of the drawn pixels.
|
13
|
+
# - {Wx::GCDC#flood_fill} method is not, and can't be, implemented, as its functionality relies on reading the pixels from {Wx::GraphicsContext} too.
|
14
|
+
# - {Wx::GCDC#set_logical_function} method only works with {Wx::RasterOperationMode::COPY}, {Wx::RasterOperationMode::OR}, {Wx::RasterOperationMode::NO_OP}, {Wx::RasterOperationMode::CLEAR} and {Wx::RasterOperationMode::XOR} functions, attempts to use any other function (including {Wx::RasterOperationMode::INVERT}) don't do anything.
|
15
|
+
# - Similarly, {Wx::RasterOperationMode} parameter of {Wx::GCDC#blit} and {Wx::GCDC#stretch_blit} can only be one of the supported logical functions listed above, using any other function will result in an assertion failure and not drawing anything.
|
16
|
+
# - For Direct2D-based {Wx::GraphicsContext}, only true-type fonts can be used in the font-related functions.
|
13
17
|
#
|
14
18
|
# ===
|
15
19
|
#
|
@@ -120,7 +120,7 @@ module Wx
|
|
120
120
|
|
121
121
|
# Standard cursors.
|
122
122
|
#
|
123
|
-
# Notice that under
|
123
|
+
# Notice that under wxMSW some of these cursors are defined in wx.rc file and not by the system itself so you should include this file from your own resource file (possibly creating a trivial resource file just containing a single include line if you don't need it otherwise) to be able to use them.
|
124
124
|
# See {Wx::Cursor}.
|
125
125
|
#
|
126
126
|
class StockCursor < Wx::Enum
|
@@ -365,11 +365,10 @@ module Wx
|
|
365
365
|
# Combine this object with another one replacing the uninitialized values.
|
366
366
|
# It is typically used like this:
|
367
367
|
#
|
368
|
-
# ```
|
369
|
-
# if
|
370
|
-
#
|
371
|
-
#
|
372
|
-
# }
|
368
|
+
# ```ruby
|
369
|
+
# if !pos.is_fully_specified
|
370
|
+
# pos.set_defaults(get_default_position)
|
371
|
+
# end
|
373
372
|
# ```
|
374
373
|
# @see Wx::Point#is_fully_specified
|
375
374
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
@@ -404,23 +403,21 @@ module Wx
|
|
404
403
|
# @overload initialize()
|
405
404
|
# Constructs a point.
|
406
405
|
# Initializes the internal x and y coordinates to zero.
|
407
|
-
# @return [Point]
|
406
|
+
# @return [Wx::Point]
|
408
407
|
# @overload initialize(x, y)
|
409
408
|
# Initializes the point object with the given x and y coordinates.
|
410
409
|
# @param x [Integer]
|
411
410
|
# @param y [Integer]
|
412
|
-
# @return [Point]
|
411
|
+
# @return [Wx::Point]
|
413
412
|
# @overload initialize(pt)
|
414
413
|
# Converts the given {Wx::RealPoint} (with floating point coordinates) to a {Wx::Point} instance.
|
415
414
|
# Notice that this truncates the floating point values of pt components, if you want to round them instead you need to do it manually, e.g.
|
416
|
-
# ```
|
417
|
-
#
|
418
|
-
#
|
419
|
-
# wxRealPoint rp = ...;
|
420
|
-
# wxPoint p(wxRound(rp.x), wxRound(rp.y));
|
415
|
+
# ```ruby
|
416
|
+
# real_point = ...
|
417
|
+
# p = Wx::Point.new(real_point.x.round, real_point.y.round)
|
421
418
|
# ```
|
422
419
|
# @param pt [Wx::RealPoint]
|
423
|
-
# @return [Point]
|
420
|
+
# @return [Wx::Point]
|
424
421
|
def initialize(*args) end
|
425
422
|
|
426
423
|
end # Point
|
@@ -497,12 +494,12 @@ module Wx
|
|
497
494
|
|
498
495
|
# @overload initialize()
|
499
496
|
# Initializes this size object with zero width and height.
|
500
|
-
# @return [Size]
|
497
|
+
# @return [Wx::Size]
|
501
498
|
# @overload initialize(width, height)
|
502
499
|
# Initializes this size object with the given width and height.
|
503
500
|
# @param width [Integer]
|
504
501
|
# @param height [Integer]
|
505
|
-
# @return [Size]
|
502
|
+
# @return [Wx::Size]
|
506
503
|
def initialize(*args) end
|
507
504
|
|
508
505
|
# Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size.
|
@@ -558,11 +555,10 @@ module Wx
|
|
558
555
|
# Combine this size object with another one replacing the default (i.e. equal to -1) components of this object with those of the other.
|
559
556
|
# It is typically used like this:
|
560
557
|
#
|
561
|
-
# ```
|
562
|
-
# if
|
563
|
-
#
|
564
|
-
#
|
565
|
-
# }
|
558
|
+
# ```ruby
|
559
|
+
# if !size.is_fully_specified
|
560
|
+
# size.set_defaults(get_default_size)
|
561
|
+
# end
|
566
562
|
# ```
|
567
563
|
# @see Wx::Size#is_fully_specified
|
568
564
|
# @param sizeDefault [Array(Integer, Integer), Wx::Size]
|
@@ -640,7 +636,9 @@ module Wx
|
|
640
636
|
# Increases the size of the rectangle.
|
641
637
|
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
642
638
|
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
643
|
-
#
|
639
|
+
#
|
640
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
|
641
|
+
# - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
644
642
|
# @see Wx::Rect#deflate
|
645
643
|
# @param dx [Integer]
|
646
644
|
# @param dy [Integer]
|
@@ -649,7 +647,9 @@ module Wx
|
|
649
647
|
# Increases the size of the rectangle.
|
650
648
|
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
651
649
|
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
652
|
-
#
|
650
|
+
#
|
651
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
|
652
|
+
# - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
653
653
|
# @see Wx::Rect#deflate
|
654
654
|
# @param diff [Array(Integer, Integer), Wx::Size]
|
655
655
|
# @return [Wx::Rect]
|
@@ -657,7 +657,9 @@ module Wx
|
|
657
657
|
# Increases the size of the rectangle.
|
658
658
|
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
659
659
|
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
660
|
-
#
|
660
|
+
#
|
661
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
|
662
|
+
# - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
661
663
|
# @see Wx::Rect#deflate
|
662
664
|
# @param diff [Integer]
|
663
665
|
# @return [Wx::Rect]
|
@@ -671,29 +673,29 @@ module Wx
|
|
671
673
|
# @overload initialize()
|
672
674
|
# Default constructor.
|
673
675
|
# Initializes to zero the internal x, y, width and height members.
|
674
|
-
# @return [Rect]
|
676
|
+
# @return [Wx::Rect]
|
675
677
|
# @overload initialize(x, y, width, height)
|
676
678
|
# Creates a {Wx::Rect} object from x, y, width and height values.
|
677
679
|
# @param x [Integer]
|
678
680
|
# @param y [Integer]
|
679
681
|
# @param width [Integer]
|
680
682
|
# @param height [Integer]
|
681
|
-
# @return [Rect]
|
683
|
+
# @return [Wx::Rect]
|
682
684
|
# @overload initialize(topLeft, bottomRight)
|
683
685
|
# Creates a {Wx::Rect} object from top-left and bottom-right points.
|
684
686
|
# The width of the rectangle will be <code>bottomRight.x-topLeft.x+1</code> and the height will be <code>bottomRight.y-topLeft.y+1</code>.
|
685
687
|
# @param topLeft [Wx::Point]
|
686
688
|
# @param bottomRight [Wx::Point]
|
687
|
-
# @return [Rect]
|
689
|
+
# @return [Wx::Rect]
|
688
690
|
# @overload initialize(pos, size)
|
689
691
|
# Creates a {Wx::Rect} object from position pos and size values.
|
690
692
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
691
693
|
# @param size [Array(Integer, Integer), Wx::Size]
|
692
|
-
# @return [Rect]
|
694
|
+
# @return [Wx::Rect]
|
693
695
|
# @overload initialize(size)
|
694
696
|
# Creates a {Wx::Rect} object from size values at the origin.
|
695
697
|
# @param size [Array(Integer, Integer), Wx::Size]
|
696
|
-
# @return [Rect]
|
698
|
+
# @return [Wx::Rect]
|
697
699
|
def initialize(*args) end
|
698
700
|
|
699
701
|
# @overload contains(x, y)
|
@@ -929,16 +931,16 @@ module Wx
|
|
929
931
|
|
930
932
|
# @overload initialize()
|
931
933
|
# Initializes to zero the x and y members.
|
932
|
-
# @return [RealPoint]
|
934
|
+
# @return [Wx::RealPoint]
|
933
935
|
# @overload initialize(x, y)
|
934
936
|
# Initializes the point with the given coordinates.
|
935
937
|
# @param x [Float]
|
936
938
|
# @param y [Float]
|
937
|
-
# @return [RealPoint]
|
939
|
+
# @return [Wx::RealPoint]
|
938
940
|
# @overload initialize(pt)
|
939
941
|
# Converts the given {Wx::Point} (with integer coordinates) to a {Wx::RealPoint}.
|
940
942
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
941
|
-
# @return [RealPoint]
|
943
|
+
# @return [Wx::RealPoint]
|
942
944
|
def initialize(*args) end
|
943
945
|
|
944
946
|
end # RealPoint
|
@@ -1093,7 +1095,7 @@ module Wx
|
|
1093
1095
|
|
1094
1096
|
# Constructs the colour database.
|
1095
1097
|
# It will be initialized at the first use.
|
1096
|
-
# @return [ColourDatabase]
|
1098
|
+
# @return [Wx::ColourDatabase]
|
1097
1099
|
def initialize; end
|
1098
1100
|
|
1099
1101
|
# Adds a colour to the database.
|
@@ -11,32 +11,38 @@ module Wx
|
|
11
11
|
# === Styles
|
12
12
|
#
|
13
13
|
# This class supports the following styles:
|
14
|
-
#
|
14
|
+
#
|
15
15
|
# - {Wx::DIRCTRL_DIR_ONLY}: Only show directories, and not files.
|
16
|
+
#
|
16
17
|
# - {Wx::DIRCTRL_3D_INTERNAL}: Use 3D borders for internal controls. This is the default.
|
18
|
+
#
|
17
19
|
# - {Wx::DIRCTRL_SELECT_FIRST}: When setting the default path, select the first file in the directory.
|
20
|
+
#
|
18
21
|
# - {Wx::DIRCTRL_SHOW_FILTERS}: Show the drop-down filter list.
|
22
|
+
#
|
19
23
|
# - {Wx::DIRCTRL_EDIT_LABELS}: Allow the folder and file labels to be editable.
|
24
|
+
#
|
20
25
|
# - {Wx::DIRCTRL_MULTIPLE}: Allows multiple files and folders to be selected.
|
21
26
|
#
|
22
27
|
# ===
|
23
28
|
#
|
24
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
25
|
-
# </td><td>
|
26
|
-
# </td><td>
|
29
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
30
|
+
# </td><td> wxGTK Appearance
|
31
|
+
# </td><td> wxOSX Appearance
|
27
32
|
# </td></tr></table></div>
|
28
33
|
# === Events emitted by this class
|
29
34
|
#
|
30
35
|
# Event handler methods for events emitted by this class:
|
31
|
-
#
|
36
|
+
#
|
32
37
|
# - {Wx::EvtHandler#evt_dirctrl_selectionchanged}(id, meth = nil, &block): Selected directory has changed. Processes a {Wx::EVT_DIRCTRL_SELECTIONCHANGED} event type. Notice that this event is generated even for the changes done by the program itself and not only those done by the user. Available since wxWidgets 2.9.5.
|
38
|
+
#
|
33
39
|
# - {Wx::EvtHandler#evt_dirctrl_fileactivated}(id, meth = nil, &block): The user activated a file by double-clicking or pressing Enter. Available since wxWidgets 2.9.5.
|
34
40
|
#
|
35
41
|
class GenericDirCtrl < Control
|
36
42
|
|
37
43
|
# @overload initialize()
|
38
44
|
# Default constructor.
|
39
|
-
# @return [GenericDirCtrl]
|
45
|
+
# @return [Wx::GenericDirCtrl]
|
40
46
|
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=(''), defaultFilter=0, name=Wx::TreeCtrlNameStr)
|
41
47
|
# Main constructor.
|
42
48
|
# @param parent [Wx::Window] Parent window.
|
@@ -48,7 +54,7 @@ module Wx
|
|
48
54
|
# @param filter [String] A filter string, using the same syntax as that for {Wx::FileDialog}. This may be empty if filters are not being used. Example: <code>"All files (*.*)|*.*|JPEG files (*.jpg)|*.jpg"</code>
|
49
55
|
# @param defaultFilter [Integer] The zero-indexed default filter setting.
|
50
56
|
# @param name [String] The window name.
|
51
|
-
# @return [GenericDirCtrl]
|
57
|
+
# @return [Wx::GenericDirCtrl]
|
52
58
|
def initialize(*args) end
|
53
59
|
|
54
60
|
# Collapse the given path.
|
@@ -165,33 +165,31 @@ module Wx
|
|
165
165
|
# A {Wx::GraphicsContext} instance is the object that is drawn upon.
|
166
166
|
# It is created by a renderer using Wx::GraphicsRenderer#create_context. This can be either directly using a renderer instance, or indirectly using the static convenience {Wx::GraphicsContext.create} functions of {Wx::GraphicsContext} that always delegate the task to the default renderer.
|
167
167
|
#
|
168
|
-
# ```
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
#
|
193
|
-
# }
|
194
|
-
# }
|
168
|
+
# ```ruby
|
169
|
+
# class MyCanvas < Wx::ScrolledWindow
|
170
|
+
#
|
171
|
+
# def on_paint(event)
|
172
|
+
# # Create paint DC
|
173
|
+
# self.paint do |dc|
|
174
|
+
# # Create graphics context from it
|
175
|
+
# Wx::GraphicsContext.draw_on(dc) do |gc|
|
176
|
+
# # make a path that contains a circle and some lines
|
177
|
+
# gc.set_pen(Wx::RED_PEN)
|
178
|
+
# path = gc.create_path
|
179
|
+
# path.add_circle(50.0, 50.0, 50.0)
|
180
|
+
# path.move_to_point(0.0, 50.0)
|
181
|
+
# path.add_line_to_point(100.0, 50.0)
|
182
|
+
# path.move_to_point(50.0, 0.0)
|
183
|
+
# path.add_line_to_point(50.0, 100.0)
|
184
|
+
# path.close_sub_path
|
185
|
+
# path.add_rectangle(25.0, 25.0, 50.0, 50.0)
|
186
|
+
#
|
187
|
+
# gc.stroke_path(path)
|
188
|
+
# end
|
189
|
+
# end
|
190
|
+
# end
|
191
|
+
# end
|
192
|
+
# end
|
195
193
|
# ```
|
196
194
|
#
|
197
195
|
# For some renderers (like Direct2D or Cairo) processing of drawing operations may be deferred (Direct2D render target normally builds up a batch of rendering commands but defers processing of these commands, Cairo operates on a separate surface) so to make drawing results visible you need to update the content of the context by calling {Wx::GraphicsContext#flush} or by destroying the context.
|
@@ -216,7 +214,10 @@ module Wx
|
|
216
214
|
# Sets the clipping region to the intersection of the given region and the previously set clipping region.
|
217
215
|
# The clipping region is an area to which drawing is restricted.
|
218
216
|
#
|
219
|
-
# - Clipping region should be given in logical coordinates
|
217
|
+
# - Clipping region should be given in logical coordinates.
|
218
|
+
# - Calling this function can only make the clipping region smaller, never larger.
|
219
|
+
# - You need to call {Wx::GraphicsContext#reset_clip} first if you want to set the clipping region exactly to the region specified.
|
220
|
+
# - If resulting clipping region is empty, then all drawing upon the context is clipped out (all changes made by drawing operations are masked out).
|
220
221
|
# @param region [Wx::Region]
|
221
222
|
# @return [void]
|
222
223
|
# @overload clip(x, y, w, h)
|
@@ -481,7 +481,7 @@ module Wx
|
|
481
481
|
class GraphicsBitmap < GraphicsObject
|
482
482
|
|
483
483
|
# Default constructor creates an invalid bitmap.
|
484
|
-
# @return [GraphicsBitmap]
|
484
|
+
# @return [Wx::GraphicsBitmap]
|
485
485
|
def initialize; end
|
486
486
|
|
487
487
|
# Return the contents of this bitmap as {Wx::Image}.
|
@@ -15,7 +15,7 @@ module Wx::GRID
|
|
15
15
|
# Note that the implementation of this method must never return Wx::GridActivationResult#do_edit for the editors inheriting from this class, as it doesn't support normal editing.
|
16
16
|
# @param row [Integer]
|
17
17
|
# @param col [Integer]
|
18
|
-
# @param grid [Wx::Grid]
|
18
|
+
# @param grid [Wx::GRID::Grid]
|
19
19
|
# @param actSource [Wx::GridActivationSource]
|
20
20
|
# @return [Wx::GridActivationResult]
|
21
21
|
def try_activate(row, col, grid, actSource) end
|
@@ -23,7 +23,7 @@ module Wx::GRID
|
|
23
23
|
# Same method as in {Wx::GRID::GridCellEditor}, but pure virtual.
|
24
24
|
# @param row [Integer]
|
25
25
|
# @param col [Integer]
|
26
|
-
# @param grid [Wx::Grid]
|
26
|
+
# @param grid [Wx::GRID::Grid]
|
27
27
|
# @return [void]
|
28
28
|
def do_activate(row, col, grid) end
|
29
29
|
|