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/combo_box.rb
CHANGED
@@ -14,28 +14,37 @@ module Wx
|
|
14
14
|
# === Styles
|
15
15
|
#
|
16
16
|
# This class supports the following styles:
|
17
|
-
#
|
17
|
+
#
|
18
18
|
# - {Wx::CB_SIMPLE}: Creates a combobox with a permanently displayed list. Windows only.
|
19
|
+
#
|
19
20
|
# - {Wx::CB_DROPDOWN}: Creates a combobox with a drop-down list. MSW and Motif only.
|
21
|
+
#
|
20
22
|
# - {Wx::CB_READONLY}: A combobox with this style behaves like a {Wx::Choice} (and may look in the same way as well, although this is platform-dependent), i.e. it allows the user to choose from the list of options but doesn't allow to enter a value not present in the list.
|
23
|
+
#
|
21
24
|
# - {Wx::CB_SORT}: Sorts the entries in the list alphabetically.
|
25
|
+
#
|
22
26
|
# - {Wx::TE_PROCESS_ENTER}: The control will generate the event {Wx::EVT_TEXT_ENTER} that can be handled by the program. Otherwise, i.e. either if this style not specified at all, or it is used, but there is no event handler for this event or the event handler called {Wx::Event#skip} to avoid overriding the default handling, pressing Enter key is either processed internally by the control or used to activate the default button of the dialog, if any.
|
23
27
|
#
|
24
28
|
# === Events emitted by this class
|
25
29
|
#
|
26
30
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
|
27
31
|
# Event handler methods for events emitted by this class:
|
32
|
+
#
|
28
33
|
# - {Wx::EvtHandler#evt_combobox}(id, meth = nil, &block): Process a {Wx::EVT_COMBOBOX} event, when an item on the list is selected. Note that calling {Wx::ComboBox#get_value} returns the new value of selection.
|
34
|
+
#
|
29
35
|
# - {Wx::EvtHandler#evt_text}(id, meth = nil, &block): Process a {Wx::EVT_TEXT} event, when the combobox text changes.
|
36
|
+
#
|
30
37
|
# - {Wx::EvtHandler#evt_text_enter}(id, meth = nil, &block): Process a {Wx::EVT_TEXT_ENTER} event, when RETURN is pressed in the combobox (notice that the combobox must have been created with {Wx::TE_PROCESS_ENTER} style to receive this event).
|
31
|
-
#
|
38
|
+
#
|
39
|
+
# - {Wx::EvtHandler#evt_combobox_dropdown}(id, meth = nil, &block): Process a {Wx::EVT_COMBOBOX_DROPDOWN} event, which is generated when the list box part of the combo box is shown (drops down). Notice that this event is only supported by wxMSW, wxGTK with GTK+ 2.10 or later, and wxOSX/Cocoa.
|
40
|
+
#
|
32
41
|
# - {Wx::EvtHandler#evt_combobox_closeup}(id, meth = nil, &block): Process a {Wx::EVT_COMBOBOX_CLOSEUP} event, which is generated when the list box of the combo box disappears (closes up). This event is only generated for the same platforms as {Wx::EVT_COMBOBOX_DROPDOWN} above.
|
33
42
|
#
|
34
43
|
# ===
|
35
44
|
#
|
36
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
37
|
-
# </td><td>
|
38
|
-
# </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
|
39
48
|
# </td></tr></table></div>
|
40
49
|
# @see Wx::ListBox
|
41
50
|
# @see Wx::TextCtrl
|
@@ -77,7 +86,7 @@ module Wx
|
|
77
86
|
|
78
87
|
# @overload initialize()
|
79
88
|
# Default constructor.
|
80
|
-
# @return [ComboBox]
|
89
|
+
# @return [Wx::ComboBox]
|
81
90
|
# @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
|
82
91
|
# Constructor, creating and showing a combobox.
|
83
92
|
#
|
@@ -92,7 +101,7 @@ module Wx
|
|
92
101
|
# @param style [Integer] Window style. See {Wx::ComboBox}.
|
93
102
|
# @param validator [Wx::Validator] Window validator.
|
94
103
|
# @param name [String] Window name.
|
95
|
-
# @return [ComboBox]
|
104
|
+
# @return [Wx::ComboBox]
|
96
105
|
# @overload initialize(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
|
97
106
|
# Constructor, creating and showing a combobox.
|
98
107
|
#
|
@@ -107,7 +116,7 @@ module Wx
|
|
107
116
|
# @param style [Integer] Window style. See {Wx::ComboBox}.
|
108
117
|
# @param validator [Wx::Validator] Window validator.
|
109
118
|
# @param name [String] Window name.
|
110
|
-
# @return [ComboBox]
|
119
|
+
# @return [Wx::ComboBox]
|
111
120
|
def initialize(*args) end
|
112
121
|
|
113
122
|
# Returns the item being selected right now.
|
@@ -117,7 +126,7 @@ module Wx
|
|
117
126
|
alias_method :current_selection, :get_current_selection
|
118
127
|
|
119
128
|
# Same as {Wx::TextEntry#get_insertion_point}.
|
120
|
-
# Under
|
129
|
+
# Under wxMSW, this function always returns 0 if the combobox doesn't have the focus.
|
121
130
|
# @return [Integer]
|
122
131
|
def get_insertion_point; end
|
123
132
|
alias_method :insertion_point, :get_insertion_point
|
@@ -159,14 +168,14 @@ module Wx
|
|
159
168
|
alias_method :value=, :set_value
|
160
169
|
|
161
170
|
# Shows the list box portion of the combo box.
|
162
|
-
# Currently this method is implemented in
|
163
|
-
# Notice that calling this function will generate a {Wx::EVT_COMBOBOX_DROPDOWN} event except under
|
171
|
+
# Currently this method is implemented in wxMSW, wxGTK and wxOSX/Cocoa.
|
172
|
+
# Notice that calling this function will generate a {Wx::EVT_COMBOBOX_DROPDOWN} event except under wxOSX where generation of this event is not supported at all.
|
164
173
|
# @return [void]
|
165
174
|
def popup; end
|
166
175
|
|
167
176
|
# Hides the list box portion of the combo box.
|
168
|
-
# Currently this method is implemented in
|
169
|
-
# Notice that calling this function will generate a {Wx::EVT_COMBOBOX_CLOSEUP} event except under
|
177
|
+
# Currently this method is implemented in wxMSW, wxGTK and wxOSX/Cocoa.
|
178
|
+
# Notice that calling this function will generate a {Wx::EVT_COMBOBOX_CLOSEUP} event except under wxOSX where generation of this event is not supported at all.
|
170
179
|
# @return [void]
|
171
180
|
def dismiss; end
|
172
181
|
|
@@ -25,7 +25,7 @@ module Wx
|
|
25
25
|
# @param pos [Array(Integer, Integer), Wx::Point] Button position. If {Wx::DEFAULT_POSITION} is specified then a default position is chosen.
|
26
26
|
# @param size [Array(Integer, Integer), Wx::Size] Button size. If {Wx::DEFAULT_SIZE} is specified then the button is sized appropriately for the question mark bitmap.
|
27
27
|
# @param style [Integer] Window style.
|
28
|
-
# @return [ContextHelpButton]
|
28
|
+
# @return [Wx::ContextHelpButton]
|
29
29
|
def initialize(parent, id=Wx::StandardID::ID_CONTEXT_HELP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
|
30
30
|
|
31
31
|
end # ContextHelpButton
|
@@ -44,7 +44,8 @@ module Wx
|
|
44
44
|
#
|
45
45
|
# There are a couple of ways to invoke this behaviour implicitly:
|
46
46
|
#
|
47
|
-
# - Use the {Wx::DIALOG_EX_CONTEXTHELP} style for a dialog (Windows only). This will put a question mark in the titlebar, and Windows will put the application into context-sensitive help mode automatically, with further programming
|
47
|
+
# - Use the {Wx::DIALOG_EX_CONTEXTHELP} style for a dialog (Windows only). This will put a question mark in the titlebar, and Windows will put the application into context-sensitive help mode automatically, with further programming.
|
48
|
+
# - Create a {Wx::ContextHelpButton}, whose predefined behaviour is to create a context help object. Normally you will write your application so that this button is only added to a dialog for non-Windows platforms (use {Wx::DIALOG_EX_CONTEXTHELP} on Windows).
|
48
49
|
#
|
49
50
|
# Note that on macOS, the cursor does not change when in context-sensitive help mode.
|
50
51
|
# ===
|
@@ -61,7 +62,7 @@ module Wx
|
|
61
62
|
# If window is NULL, the top window is used.
|
62
63
|
# @param window [Wx::Window]
|
63
64
|
# @param doNow [true,false]
|
64
|
-
# @return [ContextHelp]
|
65
|
+
# @return [Wx::ContextHelp]
|
65
66
|
def initialize(window=nil, doNow=true) end
|
66
67
|
|
67
68
|
# Puts the application into context-sensitive help mode.
|
data/lib/wx/doc/gen/control.rb
CHANGED
@@ -12,8 +12,11 @@ module Wx
|
|
12
12
|
#
|
13
13
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ClipboardTextEvent} events.
|
14
14
|
# Event handler methods for events emitted by this class:
|
15
|
+
#
|
15
16
|
# - {Wx::EvtHandler#evt_text_copy}(id, meth = nil, &block): Some or all of the controls content was copied to the clipboard.
|
17
|
+
#
|
16
18
|
# - {Wx::EvtHandler#evt_text_cut}(id, meth = nil, &block): Some or all of the controls content was cut (i.e. copied and deleted).
|
19
|
+
#
|
17
20
|
# - {Wx::EvtHandler#evt_text_paste}(id, meth = nil, &block): Clipboard content was pasted into the control.
|
18
21
|
#
|
19
22
|
# ===
|
@@ -33,10 +36,10 @@ module Wx
|
|
33
36
|
# @param style [Integer] Control style. For generic window styles, please see {Wx::Window}.
|
34
37
|
# @param validator [Wx::Validator] Control validator.
|
35
38
|
# @param name [String] Control name.
|
36
|
-
# @return [Control]
|
39
|
+
# @return [Wx::Control]
|
37
40
|
# @overload initialize()
|
38
41
|
# Default constructor to allow 2-phase creation.
|
39
|
-
# @return [Control]
|
42
|
+
# @return [Wx::Control]
|
40
43
|
def initialize(*args) end
|
41
44
|
|
42
45
|
# @param parent [Wx::Window]
|
@@ -83,7 +86,7 @@ module Wx
|
|
83
86
|
# postcode.get_text_extent("99999")))
|
84
87
|
# ```
|
85
88
|
#
|
86
|
-
# Currently this method is only implemented for {Wx::TextCtrl}, {Wx::ComboBox} and {Wx::Choice} in
|
89
|
+
# Currently this method is only implemented for {Wx::TextCtrl}, {Wx::ComboBox} and {Wx::Choice} in wxMSW and wxGTK.
|
87
90
|
#
|
88
91
|
# The size that the control should have to leave the area of the specified size for its text. May return {Wx::DEFAULT_SIZE} if this method is not implemented for this particular control under the current platform.
|
89
92
|
# @param xlen [Integer] The horizontal extent of the area to leave for text, in pixels.
|
@@ -135,7 +138,7 @@ module Wx
|
|
135
138
|
# "<span foreground='red'>breakfast</span> "+
|
136
139
|
# "available <big>HERE</big>")
|
137
140
|
# ```
|
138
|
-
# would show the string using bold, red and big for the corresponding words under
|
141
|
+
# would show the string using bold, red and big for the corresponding words under wxGTK but will simply show the string "Bed & breakfast
|
139
142
|
# available HERE" on the other platforms. In any case, the "B" of "Bed" will be underlined to indicate that it can be used as a mnemonic for this control.
|
140
143
|
# The supported tags are:
|
141
144
|
# <b>Tag</b>
|
@@ -211,8 +214,8 @@ module Wx
|
|
211
214
|
#
|
212
215
|
# true if the new label was set (even if markup in it was ignored) or false if we failed to parse the markup. In this case the label remains unchanged.
|
213
216
|
#
|
214
|
-
# Currently {Wx::Button} supports markup in all major ports (
|
215
|
-
# @param markup [String] String containing markup for the label. It may contain markup tags described above and newline characters but currently only
|
217
|
+
# Currently {Wx::Button} supports markup in all major ports (wxMSW, wxGTK and wxOSX/Cocoa) while {Wx::StaticText} supports it in wxGTK and wxOSX and its generic version (which can be used under MSW if markup support is required). Extending support to more controls is planned in the future.
|
218
|
+
# @param markup [String] String containing markup for the label. It may contain markup tags described above and newline characters but currently only wxGTK and wxOSX support multiline labels with markup, the generic implementation (also used in wxMSW) only handles single line markup labels. Notice that the string must be well-formed (e.g. all tags must be correctly closed) and won't be shown at all otherwise.
|
216
219
|
# @return [true,false]
|
217
220
|
def set_label_markup(markup) end
|
218
221
|
alias_method :label_markup=, :set_label_markup
|
data/lib/wx/doc/gen/core.rb
CHANGED
@@ -7,10 +7,10 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# wxRuby version string
|
10
|
-
Wx::WXRUBY_VERSION = '0.9.0-rc.
|
10
|
+
Wx::WXRUBY_VERSION = '0.9.0-rc.3'
|
11
11
|
|
12
12
|
# wxRuby version release type (alpha, beta, rc)
|
13
|
-
Wx::WXRUBY_RELEASE_TYPE = 'rc.
|
13
|
+
Wx::WXRUBY_RELEASE_TYPE = 'rc.3'
|
14
14
|
# wxRuby major version number
|
15
15
|
Wx::WXRUBY_MAJOR = 0
|
16
16
|
# wxRuby minor version number
|
@@ -33,6 +33,9 @@ module Wx
|
|
33
33
|
# Integer constant reflecting the sub-release number of the wxWidgets release used to build wxRuby
|
34
34
|
WXWIDGETS_SUBRELEASE_NUMBER = 1
|
35
35
|
|
36
|
+
# Integer constant reflecting the wxWidgets wxDEBUG_LEVEL
|
37
|
+
WXWIDGETS_DEBUG_LEVEL = 1
|
38
|
+
|
36
39
|
# Boolean constant indicating if wxRuby was build in debug (true) or release (false) mode
|
37
40
|
DEBUG = false
|
38
41
|
|
data/lib/wx/doc/gen/cursor.rb
CHANGED
@@ -39,25 +39,30 @@ module Wx
|
|
39
39
|
|
40
40
|
# @overload initialize()
|
41
41
|
# Default constructor.
|
42
|
-
# @return [Cursor]
|
42
|
+
# @return [Wx::Cursor]
|
43
43
|
# @overload initialize(cursorName, type=Wx::CURSOR_DEFAULT_TYPE, hotSpotX=0, hotSpotY=0)
|
44
44
|
# Constructs a cursor by passing a string resource name or filename.
|
45
|
-
# The arguments hotSpotX and hotSpotY are only used when there's no hotspot info in the resource/image-file to load (e.g. when using {Wx::BitmapType::BITMAP_TYPE_ICO} under
|
45
|
+
# The arguments hotSpotX and hotSpotY are only used when there's no hotspot info in the resource/image-file to load (e.g. when using {Wx::BitmapType::BITMAP_TYPE_ICO} under wxMSW or {Wx::BitmapType::BITMAP_TYPE_XPM} under wxGTK).
|
46
46
|
# @param cursorName [String] The name of the resource or the image file to load.
|
47
47
|
# @param type [BitmapType] Icon type to load. It defaults to {Wx::CURSOR_DEFAULT_TYPE}, which is a #define associated to different values on different platforms:
|
48
|
-
#
|
48
|
+
#
|
49
|
+
# - under Windows, it defaults to {Wx::BITMAP_TYPE_CUR_RESOURCE}. Other permitted types under Windows are {Wx::BitmapType::BITMAP_TYPE_CUR} (to load a cursor from a .cur cursor file), {Wx::BitmapType::BITMAP_TYPE_ICO} (to load a cursor from a .ico icon file) and {Wx::BitmapType::BITMAP_TYPE_ANI} (to load a cursor from a .ani icon file).
|
50
|
+
# - under MacOS, it defaults to {Wx::BITMAP_TYPE_MACCURSOR_RESOURCE}; when specifying a string resource name, first the color cursors 'crsr' and then the black/white cursors 'CURS' in the resource chain are scanned through. Note that resource forks are deprecated on macOS so this is only available for legacy reasons and should not be used in new code.
|
51
|
+
# - under GTK, it defaults to {Wx::BitmapType::BITMAP_TYPE_XPM}. See the wxCursor(const wxImage& image) ctor for more info.
|
52
|
+
# - under X11, it defaults to {Wx::BitmapType::BITMAP_TYPE_XPM}.
|
53
|
+
# - under Motif, it defaults to {Wx::BitmapType::BITMAP_TYPE_XBM}.
|
49
54
|
# @param hotSpotX [Integer] Hotspot x coordinate (relative to the top left of the image).
|
50
55
|
# @param hotSpotY [Integer] Hotspot y coordinate (relative to the top left of the image).
|
51
|
-
# @return [Cursor]
|
56
|
+
# @return [Wx::Cursor]
|
52
57
|
# @overload initialize(cursorId)
|
53
58
|
# Constructs a cursor using a cursor identifier.
|
54
59
|
# @param cursorId [StockCursor] A stock cursor identifier. See {Wx::StockCursor}.
|
55
|
-
# @return [Cursor]
|
60
|
+
# @return [Wx::Cursor]
|
56
61
|
# @overload initialize(image)
|
57
62
|
# Constructs a cursor from a {Wx::Image}.
|
58
63
|
# If cursor are monochrome on the current platform, colors with the RGB elements all greater than 127 will be foreground, colors less than this background. The mask (if any) will be used to specify the transparent area.
|
59
|
-
# In
|
60
|
-
# In
|
64
|
+
# In wxMSW the foreground will be white and the background black. If the cursor is larger than 32x32 it is resized.
|
65
|
+
# In wxGTK, colour cursors and alpha channel are supported (starting from GTK+ 2.2). Otherwise the two most frequent colors will be used for foreground and background. In any case, the cursor will be displayed at the size of the image.
|
61
66
|
# Under {Wx::Mac} (Cocoa), large cursors are supported.
|
62
67
|
# Notice that the image can define the cursor hot spot. To set it you need to use {Wx::Image#set_option} with {Wx::IMAGE_OPTION_CUR_HOTSPOT_X} or {Wx::IMAGE_OPTION_CUR_HOTSPOT_Y}, e.g.
|
63
68
|
# ```ruby
|
@@ -65,16 +70,16 @@ module Wx
|
|
65
70
|
# image.set_option(Wx::IMAGE_OPTION_CUR_HOTSPOT_X, hotSpotY)
|
66
71
|
# ```
|
67
72
|
# @param image [Wx::Image]
|
68
|
-
# @return [Cursor]
|
73
|
+
# @return [Wx::Cursor]
|
69
74
|
# @overload initialize(xpmData)
|
70
75
|
# Constructs a cursor from XPM data.
|
71
76
|
# In versions of wxWidgets until 3.1.6 constructing {Wx::Cursor} from XPM data implicitly used {Wx::Image} constructor from XPM data and {Wx::Cursor} constructor from {Wx::Image}. Since 3.1.6 this constructor overload is available to allow constructing {Wx::Cursor} from XPM to still work, even though {Wx::Image} constructor from XPM is now explicit.
|
72
77
|
# @param xpmData [char]
|
73
|
-
# @return [Cursor]
|
78
|
+
# @return [Wx::Cursor]
|
74
79
|
# @overload initialize(cursor)
|
75
80
|
# Copy constructor, uses reference counting.
|
76
81
|
# @param cursor [Wx::Cursor] Pointer or reference to a cursor to copy.
|
77
|
-
# @return [Cursor]
|
82
|
+
# @return [Wx::Cursor]
|
78
83
|
def initialize(*args) end
|
79
84
|
|
80
85
|
# Returns true if cursor data is present.
|
@@ -84,7 +89,7 @@ module Wx
|
|
84
89
|
|
85
90
|
# Returns the coordinates of the cursor hot spot.
|
86
91
|
# The hot spot is the point at which the mouse is actually considered to be when this cursor is used.
|
87
|
-
# This method is currently only implemented in
|
92
|
+
# This method is currently only implemented in wxMSW and wxGTK2+ and simply returns {Wx::DEFAULT_POSITION} in the other ports.
|
88
93
|
# @return [Wx::Point]
|
89
94
|
def get_hot_spot; end
|
90
95
|
alias_method :hot_spot, :get_hot_spot
|
@@ -49,11 +49,11 @@ module Wx
|
|
49
49
|
# @overload initialize(format=Wx::DataFormatId::DF_INVALID)
|
50
50
|
# Constructs a data format object for one of the standard data formats or an empty data object (use {Wx::DataFormat#set_type} or {Wx::DataFormat#set_id} later in this case).
|
51
51
|
# @param format [DataFormatId]
|
52
|
-
# @return [DataFormat]
|
52
|
+
# @return [Wx::DataFormat]
|
53
53
|
# @overload initialize(format)
|
54
54
|
# Constructs a data format object for a custom format identified by its name format.
|
55
55
|
# @param format [String]
|
56
|
-
# @return [DataFormat]
|
56
|
+
# @return [Wx::DataFormat]
|
57
57
|
def initialize(*args) end
|
58
58
|
|
59
59
|
# Returns the name of a custom format (this function will fail for a standard format).
|
@@ -19,9 +19,16 @@ module Wx
|
|
19
19
|
# So, you have several solutions when you need a {Wx::DataObject} class (and you need one as soon as you want to transfer data via the clipboard or drag and drop):
|
20
20
|
#
|
21
21
|
# - Use one of the built-in classes.
|
22
|
-
#
|
23
|
-
# -
|
24
|
-
# -
|
22
|
+
#
|
23
|
+
# - You may use {Wx::TextDataObject}, {Wx::BitmapDataObject} {Wx::FileDataObject}, {Wx::URLDataObject} in the simplest cases when you only need to support one format and your data is either text, bitmap or list of files.
|
24
|
+
# - Use {Wx::DataObjectSimple}
|
25
|
+
#
|
26
|
+
# - Deriving from {Wx::DataObjectSimple} is the simplest solution for custom data - you will only support one format and so probably won't be able to communicate with other programs, but data transfer will work in your program (or between different instances of it).
|
27
|
+
# - Use {Wx::DataObjectComposite}
|
28
|
+
#
|
29
|
+
# - This is a simple but powerful solution which allows you to support any number of formats (either standard or custom if you combine it with the previous solution).
|
30
|
+
# - Use {Wx::DataObject} directly
|
31
|
+
#
|
25
32
|
# - This is the solution for maximum flexibility and efficiency, but it is also the most difficult to implement.
|
26
33
|
#
|
27
34
|
# Please note that the easiest way to use drag and drop and the clipboard with multiple formats is by using {Wx::DataObjectComposite}, but it is not the most efficient one as each {Wx::DataObjectSimple} would contain the whole data in its respective formats. Now imagine that you want to paste 200 pages of text in your proprietary format, as well as Word, RTF, HTML, Unicode and plain text to the clipboard and even today's computers are in trouble. For this case, you will have to derive from {Wx::DataObject} directly and make it enumerate its formats and provide the data in the requested format on demand.
|
@@ -67,7 +74,7 @@ module Wx
|
|
67
74
|
end # Direction
|
68
75
|
|
69
76
|
# Constructor.
|
70
|
-
# @return [DataObject]
|
77
|
+
# @return [Wx::DataObject]
|
71
78
|
def initialize; end
|
72
79
|
|
73
80
|
# Copies all formats supported in the given direction dir to the array pointed to by formats.
|
@@ -80,7 +87,7 @@ module Wx
|
|
80
87
|
# The method will write the data of the format format to the buffer buf.
|
81
88
|
# In other words, copy the data from this object in the given format to the supplied buffer. Returns true on success, false on failure.
|
82
89
|
# @param format [Wx::DataFormat]
|
83
|
-
# @return [String]
|
90
|
+
# @return [Array(,String)]
|
84
91
|
def get_data_here(format) end
|
85
92
|
alias_method :data_here, :get_data_here
|
86
93
|
|
@@ -103,13 +110,13 @@ module Wx
|
|
103
110
|
# true on success, false on failure.
|
104
111
|
# @param format [Wx::DataFormat] The format for which to set the data.
|
105
112
|
# @param buf [String] Non-NULL pointer to the data.
|
106
|
-
# @return [
|
113
|
+
# @return []
|
107
114
|
def set_data(format, buf) end
|
108
115
|
|
109
116
|
# Returns true if this format is supported.
|
110
117
|
# @param format [Wx::DataFormat]
|
111
118
|
# @param dir [Direction]
|
112
|
-
# @return [
|
119
|
+
# @return []
|
113
120
|
def is_supported(format, dir=Wx::DataObjectSimpleBase::Direction::Get) end
|
114
121
|
alias_method :supported?, :is_supported
|
115
122
|
|
@@ -119,7 +126,7 @@ module Wx
|
|
119
126
|
|
120
127
|
# Constructor accepts the supported format (none by default) which may also be set later with {Wx::DataObjectSimple#set_format}.
|
121
128
|
# @param format [Wx::DataFormat]
|
122
|
-
# @return [DataObjectSimple]
|
129
|
+
# @return [Wx::DataObjectSimple]
|
123
130
|
def initialize(format=Wx::FORMAT_INVALID) end
|
124
131
|
|
125
132
|
# Returns the (one and only one) format supported by this object.
|
@@ -187,7 +194,7 @@ module Wx
|
|
187
194
|
class DataObjectComposite < DataObject
|
188
195
|
|
189
196
|
# The default constructor.
|
190
|
-
# @return [DataObjectComposite]
|
197
|
+
# @return [Wx::DataObjectComposite]
|
191
198
|
def initialize; end
|
192
199
|
|
193
200
|
# Adds the dataObject to the list of supported objects and it becomes the preferred object if preferred is true.
|
@@ -230,7 +237,7 @@ module Wx
|
|
230
237
|
|
231
238
|
# Constructor, optionally passing a bitmap (otherwise use {Wx::BitmapDataObject#set_bitmap} later).
|
232
239
|
# @param bitmap [Wx::Bitmap]
|
233
|
-
# @return [BitmapDataObject]
|
240
|
+
# @return [Wx::BitmapDataObject]
|
234
241
|
def initialize(bitmap=Wx::NULL_BITMAP) end
|
235
242
|
|
236
243
|
# Returns the bitmap associated with the data object.
|
@@ -263,7 +270,7 @@ module Wx
|
|
263
270
|
class FileDataObject < DataObjectSimple
|
264
271
|
|
265
272
|
# Constructor.
|
266
|
-
# @return [FileDataObject]
|
273
|
+
# @return [Wx::FileDataObject]
|
267
274
|
def initialize; end
|
268
275
|
|
269
276
|
# Adds a file to the file list represented by this data object (Windows only).
|
@@ -295,7 +302,7 @@ module Wx
|
|
295
302
|
|
296
303
|
# Constructor, may be used to initialise the text (otherwise {Wx::TextDataObject#set_text} should be used later).
|
297
304
|
# @param text [String]
|
298
|
-
# @return [TextDataObject]
|
305
|
+
# @return [Wx::TextDataObject]
|
299
306
|
def initialize(text=('')) end
|
300
307
|
|
301
308
|
# Returns the text associated with the data object.
|
@@ -334,7 +341,7 @@ module Wx
|
|
334
341
|
# The constructor accepts a format argument which specifies the (single) format supported by this object.
|
335
342
|
# If it isn't set here, {Wx::DataObjectSimple#set_format} should be used.
|
336
343
|
# @param format [Wx::DataFormat]
|
337
|
-
# @return [CustomDataObject]
|
344
|
+
# @return [Wx::CustomDataObject]
|
338
345
|
def initialize(format=Wx::FORMAT_INVALID) end
|
339
346
|
|
340
347
|
end # CustomDataObject
|
@@ -355,7 +362,7 @@ module Wx
|
|
355
362
|
|
356
363
|
# Constructor, optionally passing an image (otherwise use {Wx::ImageDataObject#set_image} later).
|
357
364
|
# @param image [Wx::Image]
|
358
|
-
# @return [ImageDataObject]
|
365
|
+
# @return [Wx::ImageDataObject]
|
359
366
|
def initialize(image=Wx::NULL_IMAGE) end
|
360
367
|
|
361
368
|
# Returns the image associated with the data object.
|
@@ -378,7 +385,7 @@ module Wx
|
|
378
385
|
# Wx::Clipboard.open { |clip| clip.place(Wx::URLDataObject.new(url))
|
379
386
|
# ```
|
380
387
|
#
|
381
|
-
# The actual base class of this class is not always {Wx::DataObject} itself, but rather either {Wx::DataObjectComposite} in
|
388
|
+
# The actual base class of this class is not always {Wx::DataObject} itself, but rather either {Wx::DataObjectComposite} in wxMSW and wxGTK or {Wx::TextDataObject} in the other ports. Please don't rely on the exact base class, it is not guaranteed that it won't change in the future.
|
382
389
|
#
|
383
390
|
# ===
|
384
391
|
#
|
@@ -392,7 +399,7 @@ module Wx
|
|
392
399
|
# Constructor, may be used to initialize the URL.
|
393
400
|
# If url is empty, {Wx::URLDataObject#set_url} can be used later.
|
394
401
|
# @param url [String]
|
395
|
-
# @return [URLDataObject]
|
402
|
+
# @return [Wx::URLDataObject]
|
396
403
|
def initialize(url=('')) end
|
397
404
|
|
398
405
|
# Returns the URL stored by this object, as a string.
|
@@ -23,12 +23,12 @@ module Wx
|
|
23
23
|
class DateEvent < CommandEvent
|
24
24
|
|
25
25
|
# @overload initialize()
|
26
|
-
# @return [DateEvent]
|
26
|
+
# @return [Wx::DateEvent]
|
27
27
|
# @overload initialize(win, dt, type)
|
28
28
|
# @param win [Wx::Window]
|
29
29
|
# @param dt [Time,Date,DateTime]
|
30
|
-
# @param type [
|
31
|
-
# @return [DateEvent]
|
30
|
+
# @param type [Wx::AUI::AuiMDIChildFrame::EventType]
|
31
|
+
# @return [Wx::DateEvent]
|
32
32
|
def initialize(*args) end
|
33
33
|
|
34
34
|
# Returns the date.
|
@@ -32,11 +32,15 @@ module Wx
|
|
32
32
|
# === Styles
|
33
33
|
#
|
34
34
|
# This class supports the following styles:
|
35
|
-
#
|
35
|
+
#
|
36
36
|
# - {Wx::DP_SPIN}: Creates a control without a month calendar drop down but with spin-control-like arrows to change individual date components. This style is not supported by the generic version.
|
37
|
+
#
|
37
38
|
# - {Wx::DP_DROPDOWN}: Creates a control with a month calendar drop-down part from which the user can select a date. This style is not supported in OSX/Cocoa native version.
|
39
|
+
#
|
38
40
|
# - {Wx::DP_DEFAULT}: Creates a control with the style that is best supported for the current platform (currently {Wx::DP_SPIN} under Windows and OSX/Cocoa and {Wx::DP_DROPDOWN} elsewhere).
|
41
|
+
#
|
39
42
|
# - {Wx::DP_ALLOWNONE}: With this style, the control allows the user to not enter any valid date at all. Without it - the default - the control always has some valid date. This style is not supported in OSX/Cocoa native version.
|
43
|
+
#
|
40
44
|
# - {Wx::DP_SHOWCENTURY}: Forces display of the century in the default date format. Without this style the century could be displayed, or not, depending on the default date representation in the system. This style is not supported in OSX/Cocoa native version currently.
|
41
45
|
#
|
42
46
|
# As can be seen from the remarks above, most of the control style are only supported in the native MSW implementation. In portable code it's recommended to use {Wx::DP_DEFAULT} style only, possibly combined with {Wx::DP_SHOWCENTURY} (this is also the style used by default if none is specified).
|
@@ -44,13 +48,14 @@ module Wx
|
|
44
48
|
#
|
45
49
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::DateEvent} events.
|
46
50
|
# Event handler methods for events emitted by this class:
|
51
|
+
#
|
47
52
|
# - {Wx::EvtHandler#evt_date_changed}(id, meth = nil, &block): Process a {Wx::EVT_DATE_CHANGED} event, which fires when the user changes the current selection in the control.
|
48
53
|
#
|
49
54
|
# ===
|
50
55
|
#
|
51
|
-
# Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
52
|
-
# </td><td>
|
53
|
-
# </td><td>
|
56
|
+
# Category: Picker Controls <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
57
|
+
# </td><td> wxGTK Appearance
|
58
|
+
# </td><td> wxOSX Appearance
|
54
59
|
# </td></tr></table></div>
|
55
60
|
# @see Wx::TimePickerCtrl
|
56
61
|
# @see Wx::CalendarCtrl
|
@@ -61,7 +66,7 @@ module Wx
|
|
61
66
|
|
62
67
|
# @overload initialize()
|
63
68
|
# Default constructor.
|
64
|
-
# @return [DatePickerCtrl]
|
69
|
+
# @return [Wx::DatePickerCtrl]
|
65
70
|
# @overload initialize(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY), validator=Wx::DEFAULT_VALIDATOR, name=("datectrl"))
|
66
71
|
# Initializes the object and calls {Wx::DatePickerCtrl#create} with all the parameters.
|
67
72
|
# @param parent [Wx::Window]
|
@@ -72,7 +77,7 @@ module Wx
|
|
72
77
|
# @param style [Integer]
|
73
78
|
# @param validator [Wx::Validator]
|
74
79
|
# @param name [String]
|
75
|
-
# @return [DatePickerCtrl]
|
80
|
+
# @return [Wx::DatePickerCtrl]
|
76
81
|
def initialize(*args) end
|
77
82
|
|
78
83
|
# Create the control window.
|
data/lib/wx/doc/gen/dc.rb
CHANGED
@@ -10,8 +10,13 @@ module Wx
|
|
10
10
|
#
|
11
11
|
# {Wx::DC#blit} and {Wx::DC#stretch_blit}).
|
12
12
|
# The description of the values below refer to how a generic src source pixel and the corresponding dst destination pixel gets combined together to produce the final pixel. E.g. {Wx::RasterOperationMode::CLEAR} and {Wx::RasterOperationMode::SET} completely ignore the source and the destination pixel and always put zeroes or ones in the final surface.
|
13
|
-
# Note that not all modes are supported under all platforms. Notably
|
14
|
-
#
|
13
|
+
# Note that not all modes are supported under all platforms. Notably wxGTK3 and {Wx::Mac} only support the following modes:
|
14
|
+
#
|
15
|
+
# - {Wx::RasterOperationMode::COPY}
|
16
|
+
# - {Wx::RasterOperationMode::OR}
|
17
|
+
# - {Wx::RasterOperationMode::NO_OP}
|
18
|
+
# - {Wx::RasterOperationMode::CLEAR}
|
19
|
+
# - {Wx::RasterOperationMode::XOR} and only support the commonly used {Wx::RasterOperationMode::INVERT} when the source colour is white (as it is implemented using {Wx::CompositionMode::COMPOSITION_DIFF} composition mode).
|
15
20
|
#
|
16
21
|
class RasterOperationMode < Wx::Enum
|
17
22
|
|
@@ -599,14 +604,15 @@ module Wx
|
|
599
604
|
|
600
605
|
# @overload flood_fill(x, y, colour, style=Wx::FloodFillStyle::FLOOD_SURFACE)
|
601
606
|
# Flood fills the device context starting from the given point, using the current brush colour, and using a style:
|
602
|
-
# - {Wx::FloodFillStyle::FLOOD_SURFACE}: The flooding occurs until a colour other than the given colour is encountered
|
607
|
+
# - {Wx::FloodFillStyle::FLOOD_SURFACE}: The flooding occurs until a colour other than the given colour is encountered.
|
608
|
+
# - {Wx::FloodFillStyle::FLOOD_BORDER}: The area to be flooded is bounded by the given colour.
|
603
609
|
#
|
604
|
-
# Currently this method is not implemented in
|
610
|
+
# Currently this method is not implemented in wxOSX and does nothing there.
|
605
611
|
# false if the operation failed.
|
606
612
|
#
|
607
613
|
# The present implementation for non-Windows platforms may fail to find colour borders if the pixels do not match the colour exactly. However the function will still return true.
|
608
614
|
#
|
609
|
-
# This method shouldn't be used with {Wx::PaintDC} under non-Windows platforms as it uses {Wx::DC#get_pixel} internally and this may give wrong results, notably in
|
615
|
+
# This method shouldn't be used with {Wx::PaintDC} under non-Windows platforms as it uses {Wx::DC#get_pixel} internally and this may give wrong results, notably in wxGTK. If you need to flood fill {Wx::PaintDC}, create a temporary {Wx::MemoryDC}, flood fill it and then blit it to, or draw as a bitmap on, {Wx::PaintDC}. See the example of doing this in the drawing sample and {Wx::BufferedPaintDC} class.
|
610
616
|
# @param x [Integer]
|
611
617
|
# @param y [Integer]
|
612
618
|
# @param colour [Wx::Colour,String,Symbol]
|
@@ -658,7 +664,10 @@ module Wx
|
|
658
664
|
# Sets the clipping region for this device context to the intersection of the given region described by the parameters of this method and the previously set clipping region.
|
659
665
|
# The clipping region is an area to which drawing is restricted. Possible uses for the clipping region are for clipping text or for speeding up window redraws when only a known area of the screen is damaged.
|
660
666
|
#
|
661
|
-
# - Clipping region should be given in logical coordinates
|
667
|
+
# - Clipping region should be given in logical coordinates.
|
668
|
+
# - Calling this function can only make the clipping region smaller, never larger.
|
669
|
+
# - You need to call {Wx::DC#destroy_clipping_region} first if you want to set the clipping region exactly to the region specified.
|
670
|
+
# - If resulting clipping region is empty, then all drawing on the DC is clipped out (all changes made by drawing operations are masked out).
|
662
671
|
# @see Wx::DC#destroy_clipping_region
|
663
672
|
# @see Wx::Region
|
664
673
|
# @param x [Integer]
|
@@ -697,7 +706,7 @@ module Wx
|
|
697
706
|
|
698
707
|
# Returns the various font characteristics.
|
699
708
|
# This method allows retrieving some of the font characteristics not returned by {Wx::DC#get_text_extent}, notably internal leading and average character width.
|
700
|
-
# Currently this method returns correct results only under
|
709
|
+
# Currently this method returns correct results only under wxMSW, in the other ports the internal leading will always be 0 and the average character width will be computed as the width of the character 'x'.
|
701
710
|
# @return [Wx::FontMetrics]
|
702
711
|
def get_font_metrics; end
|
703
712
|
alias_method :font_metrics, :get_font_metrics
|
@@ -797,7 +806,7 @@ module Wx
|
|
797
806
|
alias_method :background_mode=, :set_background_mode
|
798
807
|
|
799
808
|
# Sets the current font for the DC.
|
800
|
-
# The font parameter should be valid, although in
|
809
|
+
# The font parameter should be valid, although in wxMSW port (only) the argument {Wx::NULL_FONT} is also accepted and resets the device context font to the default value used by the system (which is not generally useful).
|
801
810
|
# @see Wx::Font
|
802
811
|
# @param font [Wx::Font,Wx::FontInfo]
|
803
812
|
# @return [void]
|
@@ -892,16 +901,22 @@ module Wx
|
|
892
901
|
# @param ysrc [Integer] Source device context y position.
|
893
902
|
# @param logicalFunc [RasterOperationMode] Logical function to use, see {Wx::DC#set_logical_function}.
|
894
903
|
# @param useMask [true,false] If true, Blit does a transparent blit using the mask that is associated with the bitmap selected into the source device context. The Windows implementation does the following if MaskBlt cannot be used:
|
904
|
+
#
|
895
905
|
# -
|
896
906
|
# Creates a temporary bitmap and copies the destination area into it.
|
907
|
+
#
|
897
908
|
# -
|
898
909
|
# Copies the source area into the temporary bitmap using the specified logical function.
|
910
|
+
#
|
899
911
|
# -
|
900
912
|
# Sets the masked area in the temporary bitmap to BLACK by ANDing the mask bitmap with the temp bitmap with the foreground colour set to WHITE and the bg colour set to BLACK.
|
913
|
+
#
|
901
914
|
# -
|
902
915
|
# Sets the unmasked area in the destination area to BLACK by ANDing the mask bitmap with the destination area with the foreground colour set to BLACK and the background colour set to WHITE.
|
916
|
+
#
|
903
917
|
# -
|
904
918
|
# ORs the temporary bitmap with the destination area.
|
919
|
+
#
|
905
920
|
# -
|
906
921
|
# Deletes the temporary bitmap.
|
907
922
|
#
|
@@ -934,16 +949,22 @@ module Wx
|
|
934
949
|
# @param srcHeight [Integer] Height of source area to be copied.
|
935
950
|
# @param logicalFunc [RasterOperationMode] Logical function to use, see {Wx::DC#set_logical_function}.
|
936
951
|
# @param useMask [true,false] If true, Blit does a transparent blit using the mask that is associated with the bitmap selected into the source device context. The Windows implementation does the following if MaskBlt cannot be used:
|
952
|
+
#
|
937
953
|
# -
|
938
954
|
# Creates a temporary bitmap and copies the destination area into it.
|
955
|
+
#
|
939
956
|
# -
|
940
957
|
# Copies the source area into the temporary bitmap using the specified logical function.
|
958
|
+
#
|
941
959
|
# -
|
942
960
|
# Sets the masked area in the temporary bitmap to BLACK by ANDing the mask bitmap with the temp bitmap with the foreground colour set to WHITE and the bg colour set to BLACK.
|
961
|
+
#
|
943
962
|
# -
|
944
963
|
# Sets the unmasked area in the destination area to BLACK by ANDing the mask bitmap with the destination area with the foreground colour set to BLACK and the background colour set to WHITE.
|
964
|
+
#
|
945
965
|
# -
|
946
966
|
# ORs the temporary bitmap with the destination area.
|
967
|
+
#
|
947
968
|
# -
|
948
969
|
# Deletes the temporary bitmap.
|
949
970
|
#
|
@@ -1041,7 +1062,11 @@ module Wx
|
|
1041
1062
|
|
1042
1063
|
# Copy attributes from another DC.
|
1043
1064
|
# The copied attributes currently are:
|
1044
|
-
#
|
1065
|
+
#
|
1066
|
+
# - Font
|
1067
|
+
# - Text foreground and background colours
|
1068
|
+
# - Background brush
|
1069
|
+
# - Layout direction
|
1045
1070
|
#
|
1046
1071
|
# Note that the scaling factor is not considered to be an attribute of {Wx::DC} and is not copied by this function.
|
1047
1072
|
# @param dc [Wx::DC] A valid (i.e. its {Wx::DC#is_ok} must return true) source device context.
|
@@ -1083,10 +1108,10 @@ module Wx
|
|
1083
1108
|
alias_method :map_mode, :get_map_mode
|
1084
1109
|
|
1085
1110
|
# Gets in colour the colour at the specified location.
|
1086
|
-
# This method isn't available for {Wx::PRT::PostScriptDC} or {Wx::MetafileDC} nor for any DC in
|
1111
|
+
# This method isn't available for {Wx::PRT::PostScriptDC} or {Wx::MetafileDC} nor for any DC in wxOSX port and simply returns false there.
|
1087
1112
|
# Setting a pixel can be done using {Wx::DC#draw_point}.
|
1088
1113
|
#
|
1089
|
-
# This method shouldn't be used with {Wx::PaintDC} as accessing the DC while drawing can result in unexpected results, notably in
|
1114
|
+
# This method shouldn't be used with {Wx::PaintDC} as accessing the DC while drawing can result in unexpected results, notably in wxGTK.
|
1090
1115
|
# @param x [Integer]
|
1091
1116
|
# @param y [Integer]
|
1092
1117
|
# @param colour [Wx::Colour]
|
@@ -1189,7 +1214,7 @@ module Wx
|
|
1189
1214
|
def set_device_origin(x, y) end
|
1190
1215
|
|
1191
1216
|
# Sets the current logical function for the device context.
|
1192
|
-
# This function is not fully supported in all ports, due to the limitations of the underlying drawing model. Notably, {Wx::RasterOperationMode::INVERT} which was commonly used for drawing rubber bands or other moving outlines in the past, is not, and will not, be supported by
|
1217
|
+
# This function is not fully supported in all ports, due to the limitations of the underlying drawing model. Notably, {Wx::RasterOperationMode::INVERT} which was commonly used for drawing rubber bands or other moving outlines in the past, is not, and will not, be supported by wxGTK3 and {Wx::Mac}. The suggested alternative is to draw temporarily objects normally and refresh the (affected part of the) window to remove them later.
|
1193
1218
|
#
|
1194
1219
|
# It determines how a source pixel (from a pen or brush colour, or source device context if using {Wx::DC#blit}) combines with a destination pixel in the current device context. Text drawing is not affected by this function.
|
1195
1220
|
# See {Wx::RasterOperationMode} enumeration values for more info.
|