wxruby3 0.9.0.pre.rc.1-x64-mingw-ucrt → 0.9.0.pre.rc.3-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +73 -22
- data/README.md +40 -8
- data/assets/hello_button-macos.png +0 -0
- data/assets/hello_button-msw.png +0 -0
- data/assets/hello_button_clicked-macos.png +0 -0
- data/assets/hello_button_clicked-msw.png +0 -0
- data/assets/hello_button_clicked_combi.png +0 -0
- data/assets/hello_world-macos.png +0 -0
- data/assets/hello_world-msw.png +0 -0
- data/assets/hello_world_combi.png +0 -0
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/core/brush.rb +6 -0
- data/lib/wx/core/event_loop.rb +7 -0
- data/lib/wx/core/events/evt_list.rb +7 -0
- data/lib/wx/core/evthandler.rb +12 -2
- data/lib/wx/core/font.rb +22 -14
- data/lib/wx/core/helpprovider.rb +2 -2
- data/lib/wx/core/image.rb +33 -0
- data/lib/wx/core/listctrl.rb +17 -13
- data/lib/wx/core/log.rb +90 -0
- data/lib/wx/core/menu.rb +5 -0
- data/lib/wx/core/pen.rb +6 -0
- data/lib/wx/core/window.rb +28 -1
- data/lib/wx/doc/app.rb +40 -0
- data/lib/wx/doc/bitmap.rb +11 -15
- data/lib/wx/doc/brush.rb +17 -0
- data/lib/wx/doc/event_loop.rb +7 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/09_exceptions.md +1 -1
- data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
- data/lib/wx/doc/font.rb +27 -0
- data/lib/wx/doc/functions.rb +51 -23
- data/lib/wx/doc/gc_dc.rb +1 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
- data/lib/wx/doc/gen/accelerator.rb +6 -6
- data/lib/wx/doc/gen/accessible.rb +6 -2
- data/lib/wx/doc/gen/activity_indicator.rb +65 -0
- data/lib/wx/doc/gen/animation.rb +7 -7
- data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
- data/lib/wx/doc/gen/any_button.rb +1 -1
- data/lib/wx/doc/gen/app.rb +17 -11
- data/lib/wx/doc/gen/art_provider.rb +61 -1
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
- data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +35 -20
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
- data/lib/wx/doc/gen/bitmap.rb +32 -26
- data/lib/wx/doc/gen/bitmap_button.rb +10 -6
- data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
- data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +16 -4
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +19 -7
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
- data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
- data/lib/wx/doc/gen/calendar_event.rb +3 -3
- data/lib/wx/doc/gen/caret.rb +2 -2
- data/lib/wx/doc/gen/check_box.rb +10 -6
- data/lib/wx/doc/gen/check_list_box.rb +8 -7
- data/lib/wx/doc/gen/choice.rb +7 -6
- data/lib/wx/doc/gen/choicebook.rb +12 -6
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +1 -1
- data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
- data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
- data/lib/wx/doc/gen/colour.rb +16 -6
- data/lib/wx/doc/gen/colour_dialog.rb +6 -6
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +22 -13
- data/lib/wx/doc/gen/context_help_button.rb +50 -1
- data/lib/wx/doc/gen/control.rb +9 -6
- data/lib/wx/doc/gen/core.rb +5 -2
- data/lib/wx/doc/gen/cursor.rb +16 -11
- data/lib/wx/doc/gen/data_format.rb +2 -2
- data/lib/wx/doc/gen/data_object.rb +23 -16
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
- data/lib/wx/doc/gen/dc.rb +37 -12
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +19 -5
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
- data/lib/wx/doc/gen/drag_drop.rb +15 -15
- data/lib/wx/doc/gen/drag_image.rb +6 -6
- data/lib/wx/doc/gen/editable_list_box.rb +7 -3
- data/lib/wx/doc/gen/event.rb +44 -13
- data/lib/wx/doc/gen/event_blocker.rb +19 -17
- data/lib/wx/doc/gen/event_filter.rb +43 -47
- data/lib/wx/doc/gen/event_list.rb +22 -15
- data/lib/wx/doc/gen/events.rb +215 -79
- data/lib/wx/doc/gen/evt_handler.rb +1 -1
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_dialog.rb +64 -56
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
- data/lib/wx/doc/gen/font.rb +39 -29
- data/lib/wx/doc/gen/font_data.rb +9 -5
- data/lib/wx/doc/gen/font_dialog.rb +3 -3
- data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +34 -11
- data/lib/wx/doc/gen/fs_file.rb +4 -17
- data/lib/wx/doc/gen/gauge.rb +11 -7
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +35 -33
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
- data/lib/wx/doc/gen/graphics_context.rb +29 -28
- data/lib/wx/doc/gen/graphics_object.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
- data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
- data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/help_controller.rb +18 -12
- data/lib/wx/doc/gen/html/html_cell.rb +36 -18
- data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
- data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
- data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
- data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
- data/lib/wx/doc/gen/html/html_printout.rb +15 -5
- data/lib/wx/doc/gen/html/html_window.rb +19 -8
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +152 -0
- data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
- data/lib/wx/doc/gen/icon.rb +14 -14
- data/lib/wx/doc/gen/image.rb +119 -64
- data/lib/wx/doc/gen/image_list.rb +10 -6
- data/lib/wx/doc/gen/keyboard_state.rb +7 -7
- data/lib/wx/doc/gen/list_box.rb +30 -21
- data/lib/wx/doc/gen/list_ctrl.rb +169 -78
- data/lib/wx/doc/gen/list_event.rb +24 -2
- data/lib/wx/doc/gen/listbook.rb +12 -6
- data/lib/wx/doc/gen/locale.rb +11 -36
- data/lib/wx/doc/gen/log.rb +122 -45
- data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
- data/lib/wx/doc/gen/mdi_frame.rb +15 -9
- data/lib/wx/doc/gen/media_ctrl.rb +7 -4
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +23 -27
- data/lib/wx/doc/gen/menu.rb +9 -9
- data/lib/wx/doc/gen/menu_bar.rb +4 -10
- data/lib/wx/doc/gen/menu_item.rb +115 -34
- data/lib/wx/doc/gen/message_dialog.rb +48 -30
- data/lib/wx/doc/gen/mini_frame.rb +12 -3
- data/lib/wx/doc/gen/mouse_state.rb +1 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +6 -7
- data/lib/wx/doc/gen/notebook.rb +20 -15
- data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/object.rb +2 -2
- data/lib/wx/doc/gen/palette.rb +3 -3
- data/lib/wx/doc/gen/panel.rb +4 -3
- data/lib/wx/doc/gen/pen.rb +25 -12
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
- data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
- data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
- data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
- data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
- data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
- data/lib/wx/doc/gen/picker_base.rb +12 -11
- data/lib/wx/doc/gen/platform_info.rb +7 -7
- data/lib/wx/doc/gen/popup_window.rb +6 -6
- data/lib/wx/doc/gen/progress_dialog.rb +1 -1
- data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +24 -18
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +22 -22
- data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
- data/lib/wx/doc/gen/radio_box.rb +12 -18
- data/lib/wx/doc/gen/radio_button.rb +8 -6
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
- data/lib/wx/doc/gen/region.rb +9 -8
- data/lib/wx/doc/gen/region_iterator.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +3 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
- data/lib/wx/doc/gen/sash_window.rb +8 -3
- data/lib/wx/doc/gen/scroll_bar.rb +29 -8
- data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
- data/lib/wx/doc/gen/scrolled_control.rb +41 -23
- data/lib/wx/doc/gen/scrolled_window.rb +41 -23
- data/lib/wx/doc/gen/search_ctrl.rb +15 -8
- data/lib/wx/doc/gen/simplebook.rb +2 -2
- data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/sizer.rb +29 -28
- data/lib/wx/doc/gen/slider.rb +49 -16
- data/lib/wx/doc/gen/spin_button.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +20 -4
- data/lib/wx/doc/gen/static_bitmap.rb +5 -5
- data/lib/wx/doc/gen/static_box.rb +36 -32
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +5 -4
- data/lib/wx/doc/gen/static_text.rb +12 -6
- data/lib/wx/doc/gen/status_bar.rb +14 -5
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
- data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
- data/lib/wx/doc/gen/system_options.rb +11 -1
- data/lib/wx/doc/gen/system_settings.rb +3 -3
- data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +11 -7
- data/lib/wx/doc/gen/text_ctrl.rb +61 -92
- data/lib/wx/doc/gen/text_entry.rb +28 -40
- data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
- data/lib/wx/doc/gen/text_validator.rb +0 -11
- data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
- data/lib/wx/doc/gen/timer.rb +8 -4
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +6 -5
- data/lib/wx/doc/gen/tool_bar.rb +41 -24
- data/lib/wx/doc/gen/tool_tip.rb +2 -2
- data/lib/wx/doc/gen/toolbook.rb +6 -3
- data/lib/wx/doc/gen/top_level_window.rb +35 -25
- data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
- data/lib/wx/doc/gen/tree_event.rb +23 -2
- data/lib/wx/doc/gen/treebook.rb +6 -2
- data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
- data/lib/wx/doc/gen/utils.rb +9 -3
- data/lib/wx/doc/gen/v_list_box.rb +2 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/validator.rb +7 -5
- data/lib/wx/doc/gen/variant.rb +34 -97
- data/lib/wx/doc/gen/window.rb +157 -102
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +1 -1
- data/lib/wx/doc/gen/wizard.rb +17 -4
- data/lib/wx/doc/gen/wizard_event.rb +9 -2
- data/lib/wx/doc/gen/wizard_page.rb +1 -1
- data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
- data/lib/wx/doc/gen/xml_node.rb +3 -3
- data/lib/wx/doc/gen/xml_resource.rb +12 -9
- data/lib/wx/doc/image.rb +42 -12
- data/lib/wx/doc/list_ctrl.rb +32 -0
- data/lib/wx/doc/log.rb +28 -0
- data/lib/wx/doc/pen.rb +17 -0
- data/lib/wx/doc/prt/printer_dc.rb +2 -2
- data/lib/wx/doc/radio_box.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +1 -1
- data/lib/wx/doc/text_validator.rb +12 -0
- data/lib/wx/doc/window.rb +27 -0
- data/lib/wx/keyword_defs.rb +77 -76
- data/lib/wx/prt/keyword_defs.rb +5 -1
- data/lib/wx/version.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/install.rb +17 -6
- data/rakelib/lib/config/linux.rb +4 -2
- data/rakelib/lib/config/macosx.rb +120 -1
- data/rakelib/lib/config/mingw.rb +6 -1
- data/rakelib/lib/config/unixish.rb +26 -11
- data/rakelib/lib/config.rb +15 -6
- data/samples/aui/aui.rb +432 -363
- data/samples/propgrid/propgrid.rb +3 -0
- data/samples/sampler/editor.rb +33 -25
- data/samples/sampler/sample.rb +2 -2
- data/samples/sampler/stc_editor.rb +4 -2
- data/tests/lib/item_container_tests.rb +82 -0
- data/tests/lib/text_entry_tests.rb +80 -0
- data/tests/lib/wxapp_runner.rb +12 -0
- data/tests/lib/wxframe_runner.rb +89 -4
- data/tests/test_art.rb +9 -0
- data/tests/test_box_sizer.rb +161 -0
- data/tests/test_ext_controls.rb +28 -0
- data/tests/test_font.rb +239 -0
- data/tests/test_grid_sizer.rb +148 -0
- data/tests/test_intl.rb +5 -1
- data/tests/test_list_ctrl.rb +53 -0
- data/tests/test_log.rb +163 -0
- data/tests/test_std_controls.rb +321 -37
- data/tests/test_timer.rb +95 -0
- data/tests/test_window.rb +340 -0
- metadata +36 -2
@@ -12,17 +12,22 @@ module Wx
|
|
12
12
|
# === Styles
|
13
13
|
#
|
14
14
|
# This class supports the following styles:
|
15
|
-
#
|
15
|
+
#
|
16
16
|
# - {Wx::SW_3D}: Draws a 3D effect sash and border.
|
17
|
+
#
|
17
18
|
# - {Wx::SW_3DSASH}: Draws a 3D effect sash.
|
19
|
+
#
|
18
20
|
# - {Wx::SW_3DBORDER}: Draws a 3D effect border.
|
21
|
+
#
|
19
22
|
# - {Wx::SW_BORDER}: Draws a thin black border.
|
20
23
|
#
|
21
24
|
# === Events emitted by this class
|
22
25
|
#
|
23
26
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::SashEvent} events.
|
24
27
|
# Event handler methods for events emitted by this class:
|
28
|
+
#
|
25
29
|
# - {Wx::EvtHandler#evt_sash_dragged}(id, meth = nil, &block): Process a {Wx::EVT_SASH_DRAGGED} event, when the user has finished dragging a sash.
|
30
|
+
#
|
26
31
|
# - {Wx::EvtHandler#evt_sash_dragged_range}(id1, id2, meth = nil, &block): Process a {Wx::EVT_SASH_DRAGGED_RANGE} event, when the user has finished dragging a sash. The event handler is called when windows with ids in the given range have their sashes dragged.
|
27
32
|
#
|
28
33
|
# ===
|
@@ -37,7 +42,7 @@ module Wx
|
|
37
42
|
|
38
43
|
# @overload initialize()
|
39
44
|
# Default ctor.
|
40
|
-
# @return [SashWindow]
|
45
|
+
# @return [Wx::SashWindow]
|
41
46
|
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::CLIP_CHILDREN|wxSW_3D), name=("sashWindow"))
|
42
47
|
# Constructs a sash window, which can be a child of a frame, dialog or any other non-control window.
|
43
48
|
# @param parent [Wx::Window] Pointer to a parent window.
|
@@ -46,7 +51,7 @@ module Wx
|
|
46
51
|
# @param size [Array(Integer, Integer), Wx::Size] Window size. {Wx::DEFAULT_SIZE} is (-1, -1) which indicates that {Wx::SashWindows} should generate a default size for the window.
|
47
52
|
# @param style [Integer] Window style. For window styles, please see {Wx::SashWindow}.
|
48
53
|
# @param name [String] Window name.
|
49
|
-
# @return [SashWindow]
|
54
|
+
# @return [Wx::SashWindow]
|
50
55
|
def initialize(*args) end
|
51
56
|
|
52
57
|
# Gets the maximum window size in the x direction.
|
@@ -13,33 +13,54 @@ module Wx
|
|
13
13
|
# === Styles
|
14
14
|
#
|
15
15
|
# This class supports the following styles:
|
16
|
-
#
|
16
|
+
#
|
17
17
|
# - {Wx::SB_HORIZONTAL}: Specifies a horizontal scrollbar.
|
18
|
+
#
|
18
19
|
# - {Wx::SB_VERTICAL}: Specifies a vertical scrollbar.
|
19
20
|
#
|
20
21
|
# === Events emitted by this class
|
21
22
|
#
|
22
23
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ScrollEvent} events.
|
23
24
|
# Event handler methods for events emitted by this class: except for this, the macros behave exactly the same.
|
25
|
+
#
|
24
26
|
# - {Wx::EvtHandler#evt_scroll}(meth = nil, &block): Process all scroll events.
|
27
|
+
#
|
25
28
|
# - {Wx::EvtHandler#evt_scroll_top}(meth = nil, &block): Process {Wx::EVT_SCROLL_TOP} scroll to top or leftmost (minimum) position events.
|
29
|
+
#
|
26
30
|
# - {Wx::EvtHandler#evt_scroll_bottom}(meth = nil, &block): Process {Wx::EVT_SCROLL_BOTTOM} scroll to bottom or rightmost (maximum) position events.
|
31
|
+
#
|
27
32
|
# - {Wx::EvtHandler#evt_scroll_lineup}(meth = nil, &block): Process {Wx::EVT_SCROLL_LINEUP} line up or left events.
|
33
|
+
#
|
28
34
|
# - {Wx::EvtHandler#evt_scroll_linedown}(meth = nil, &block): Process {Wx::EVT_SCROLL_LINEDOWN} line down or right events.
|
35
|
+
#
|
29
36
|
# - {Wx::EvtHandler#evt_scroll_pageup}(meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEUP} page up or left events.
|
37
|
+
#
|
30
38
|
# - {Wx::EvtHandler#evt_scroll_pagedown}(meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEDOWN} page down or right events.
|
39
|
+
#
|
31
40
|
# - {Wx::EvtHandler#evt_scroll_thumbtrack}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
|
41
|
+
#
|
32
42
|
# - {Wx::EvtHandler#evt_scroll_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBRELEASE} thumb release events.
|
43
|
+
#
|
33
44
|
# - {Wx::EvtHandler#evt_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
|
45
|
+
#
|
34
46
|
# - {Wx::EvtHandler#evt_command_scroll}(id, meth = nil, &block): Process all scroll events.
|
47
|
+
#
|
35
48
|
# - {Wx::EvtHandler#evt_command_scroll_top}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_TOP} scroll to top or leftmost (minimum) position events.
|
49
|
+
#
|
36
50
|
# - {Wx::EvtHandler#evt_command_scroll_bottom}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_BOTTOM} scroll to bottom or rightmost (maximum) position events.
|
51
|
+
#
|
37
52
|
# - {Wx::EvtHandler#evt_command_scroll_lineup}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_LINEUP} line up or left events.
|
53
|
+
#
|
38
54
|
# - {Wx::EvtHandler#evt_command_scroll_linedown}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_LINEDOWN} line down or right events.
|
55
|
+
#
|
39
56
|
# - {Wx::EvtHandler#evt_command_scroll_pageup}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEUP} page up or left events.
|
57
|
+
#
|
40
58
|
# - {Wx::EvtHandler#evt_command_scroll_pagedown}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEDOWN} page down or right events.
|
59
|
+
#
|
41
60
|
# - {Wx::EvtHandler#evt_command_scroll_thumbtrack}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
|
61
|
+
#
|
42
62
|
# - {Wx::EvtHandler#evt_command_scroll_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBRELEASE} thumb release events.
|
63
|
+
#
|
43
64
|
# - {Wx::EvtHandler#evt_command_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
|
44
65
|
#
|
45
66
|
# == The difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED
|
@@ -49,9 +70,9 @@ module Wx
|
|
49
70
|
# In short, the EVT_SCROLL_CHANGED event is triggered when scrolling/moving has finished independently of the way it had started. Please see the Widgets Sample ("Slider" page) to see the difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED in action.
|
50
71
|
# ===
|
51
72
|
#
|
52
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
53
|
-
# </td><td>
|
54
|
-
# </td><td>
|
73
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
74
|
+
# </td><td> wxGTK Appearance
|
75
|
+
# </td><td> wxOSX Appearance
|
55
76
|
# </td></tr></table></div>
|
56
77
|
# @see Scrolled Windows
|
57
78
|
# @see Events and Event Handling
|
@@ -62,7 +83,7 @@ module Wx
|
|
62
83
|
|
63
84
|
# @overload initialize()
|
64
85
|
# Default constructor.
|
65
|
-
# @return [ScrollBar]
|
86
|
+
# @return [Wx::ScrollBar]
|
66
87
|
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SB_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ScrollBarNameStr)
|
67
88
|
# Constructor, creating and showing a scrollbar.
|
68
89
|
#
|
@@ -75,7 +96,7 @@ module Wx
|
|
75
96
|
# @param style [Integer] Window style. See {Wx::ScrollBar}.
|
76
97
|
# @param validator [Wx::Validator] Window validator.
|
77
98
|
# @param name [String] Window name.
|
78
|
-
# @return [ScrollBar]
|
99
|
+
# @return [Wx::ScrollBar]
|
79
100
|
def initialize(*args) end
|
80
101
|
|
81
102
|
# Scrollbar creation function called by the scrollbar constructor.
|
@@ -120,8 +141,8 @@ module Wx
|
|
120
141
|
|
121
142
|
# Sets the scrollbar properties.
|
122
143
|
# Let's say you wish to display 50 lines of text, using the same font. The window is sized so that you can only see 16 lines at a time. You would use:
|
123
|
-
# ```
|
124
|
-
# scrollbar
|
144
|
+
# ```ruby
|
145
|
+
# scrollbar.set_scrollbar(0, 16, 50, 15)
|
125
146
|
# ```
|
126
147
|
# The page size is 1 less than the thumb size so that the last line of the previous page will be visible on the next page, to help orient the user. Note that with the window at this size, the thumb position can never go above 50 minus 16, or 34. You can determine how many lines are currently visible by dividing the current view size by the character height in pixels. When defining your own scrollbar behaviour, you will always need to recalculate the scrollbar settings when the window size changes. You could therefore put your scrollbar calculations and {Wx::ScrollBar#set_scrollbar} call into a function named AdjustScrollbars, which can be called initially and also from a {Wx::SizeEvent} event handler function.
|
127
148
|
# @param position [Integer] The position of the scrollbar in scroll units.
|
@@ -9,7 +9,8 @@ module Wx
|
|
9
9
|
# The {Wx::Scrolled} class manages scrolling for its client area, transforming the coordinates according to the scrollbar positions, and setting the scroll positions, thumb sizes and ranges according to the area in view.
|
10
10
|
# There are two commonly used (but not the only possible!) specializations of this class:
|
11
11
|
#
|
12
|
-
# - {Wx::ScrolledWindow}, aka {Wx::Scrolled}<{Wx::Panel}>, is equivalent to {Wx::ScrolledWindow} from earlier versions. Derived from {Wx::Panel}, it shares {Wx::Panel}'s behaviour with regard to TAB traversal and focus handling. Use this if the scrolled window will have child controls
|
12
|
+
# - {Wx::ScrolledWindow}, aka {Wx::Scrolled}<{Wx::Panel}>, is equivalent to {Wx::ScrolledWindow} from earlier versions. Derived from {Wx::Panel}, it shares {Wx::Panel}'s behaviour with regard to TAB traversal and focus handling. Use this if the scrolled window will have child controls.
|
13
|
+
# - {Wx::ScrolledCanvas}, aka {Wx::Scrolled}<{Wx::Window}>, derives from {Wx::Window} and so doesn't handle children specially. This is suitable e.g. for implementing scrollable controls such as tree or list controls.
|
13
14
|
#
|
14
15
|
# See Wx::Scrolled#create if you want to use {Wx::Scrolled} with a custom class.
|
15
16
|
#
|
@@ -28,24 +29,36 @@ module Wx
|
|
28
29
|
# === Styles
|
29
30
|
#
|
30
31
|
# This class supports the following styles:
|
31
|
-
#
|
32
|
+
#
|
32
33
|
# - {Wx::HSCROLL}: If this style is specified and {Wx::VSCROLL} isn't, the window will be scrollable only in horizontal direction (by default, i.e. if neither this style nor {Wx::VSCROLL} is specified, it scrolls in both directions).
|
34
|
+
#
|
33
35
|
# - {Wx::VSCROLL}: If this style is specified and {Wx::HSCROLL} isn't, the window will be scrollable only in vertical direction (by default, i.e. if neither this style nor {Wx::HSCROLL} is specified, it scrolls in both directions).
|
36
|
+
#
|
34
37
|
# - {Wx::ALWAYS_SHOW_SB}: Since wxWidgets 2.9.5, specifying this style makes the window always show its scrollbars, even if they are not used. See Wx::Scrolled#show_scrollbars.
|
38
|
+
#
|
35
39
|
# - {Wx::RETAINED}: Uses a backing pixmap to speed refreshes. Motif only.
|
36
40
|
#
|
37
41
|
# === Events emitted by this class
|
38
42
|
#
|
39
43
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ScrollWinEvent} events.
|
40
44
|
# Event handler methods for events emitted by this class:
|
45
|
+
#
|
41
46
|
# - {Wx::EvtHandler#evt_scrollwin}(meth = nil, &block): Process all scroll events.
|
47
|
+
#
|
42
48
|
# - {Wx::EvtHandler#evt_scrollwin_top}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_TOP} scroll-to-top events.
|
49
|
+
#
|
43
50
|
# - {Wx::EvtHandler#evt_scrollwin_bottom}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_BOTTOM} scroll-to-bottom events.
|
51
|
+
#
|
44
52
|
# - {Wx::EvtHandler#evt_scrollwin_lineup}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_LINEUP} line up events.
|
53
|
+
#
|
45
54
|
# - {Wx::EvtHandler#evt_scrollwin_linedown}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_LINEDOWN} line down events.
|
55
|
+
#
|
46
56
|
# - {Wx::EvtHandler#evt_scrollwin_pageup}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_PAGEUP} page up events.
|
57
|
+
#
|
47
58
|
# - {Wx::EvtHandler#evt_scrollwin_pagedown}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_PAGEDOWN} page down events.
|
59
|
+
#
|
48
60
|
# - {Wx::EvtHandler#evt_scrollwin_thumbtrack}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
|
61
|
+
#
|
49
62
|
# - {Wx::EvtHandler#evt_scrollwin_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_THUMBRELEASE} thumb release events.
|
50
63
|
#
|
51
64
|
# Don't confuse {Wx::ScrollWinEvents} generated by this class with {Wx::ScrollEvent} objects generated by {Wx::ScrollBar} and {Wx::Slider}.
|
@@ -68,7 +81,7 @@ module Wx
|
|
68
81
|
|
69
82
|
# @overload initialize()
|
70
83
|
# Default constructor.
|
71
|
-
# @return [Scrolled]
|
84
|
+
# @return [Wx::Scrolled]
|
72
85
|
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
|
73
86
|
# Constructor.
|
74
87
|
# The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
|
@@ -78,7 +91,7 @@ module Wx
|
|
78
91
|
# @param size [Array(Integer, Integer), Wx::Size] Window size. If a size of {Wx::DEFAULT_SIZE} is specified then the window is sized appropriately.
|
79
92
|
# @param style [Integer] Window style. See {Wx::Scrolled}.
|
80
93
|
# @param name [String] Window name.
|
81
|
-
# @return [Scrolled]
|
94
|
+
# @return [Wx::Scrolled]
|
82
95
|
def initialize(*args) end
|
83
96
|
|
84
97
|
# @overload calc_scrolled_position(x, y)
|
@@ -125,22 +138,24 @@ module Wx
|
|
125
138
|
# Call this function to prepare the device context for drawing a scrolled image.
|
126
139
|
# It sets the device origin according to the current scroll position. Wx::Scrolled#do_prepare_dc is called automatically within the default {Wx::EVT_PAINT} event handler, so your Wx::Scrolled#on_draw override will be passed an already 'pre-scrolled' device context. However, if you wish to draw from outside of Wx::Scrolled#on_draw (e.g. from your own {Wx::EVT_PAINT} handler), you must call this function yourself.
|
127
140
|
# For example:
|
128
|
-
# ```
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
141
|
+
# ```ruby
|
142
|
+
# class MyWindow < Wx::ScrolledCanvas
|
143
|
+
#
|
144
|
+
# def on_event(event)
|
145
|
+
# Wx::ClientDC.draw_on(self) do |dc|
|
146
|
+
# do_prepare_dc(dc)
|
147
|
+
#
|
148
|
+
# dc.set_pen(Wx::BLACK_PEN)
|
149
|
+
# pos = event.position
|
150
|
+
# if xpos > -1 && ypos > -1 && event.dragging
|
151
|
+
# dc.draw_line(xpos, ypos, pos.x, pos.y)
|
152
|
+
# end
|
153
|
+
# xpos = pos.x
|
154
|
+
# ypos = pos.y
|
155
|
+
# end
|
156
|
+
# end
|
157
|
+
#
|
158
|
+
# end
|
144
159
|
# ```
|
145
160
|
#
|
146
161
|
# Notice that the function sets the origin by moving it relatively to the current origin position, so you shouldn't change the origin before calling Wx::Scrolled#do_prepare_dc or, if you do, reset it to (0, 0) later. If you call Wx::Scrolled#do_prepare_dc immediately after device context creation, as in the example above, this problem doesn't arise, of course, so it is customary to do it like this.
|
@@ -158,7 +173,10 @@ module Wx
|
|
158
173
|
|
159
174
|
# Set the scrollbar visibility.
|
160
175
|
# By default the scrollbar in the corresponding direction is only shown if it is needed, i.e. if the virtual size of the scrolled window in this direction is greater than the current physical window size. Using this function the scrollbar visibility can be changed to be:
|
161
|
-
#
|
176
|
+
#
|
177
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_ALWAYS}: To always show the scrollbar, even if it is not needed currently ({Wx::ALWAYS_SHOW_SB} style can be used during the window creation to achieve the same effect but it applies in both directions).
|
178
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_NEVER}: To never show the scrollbar at all. In this case the program should presumably provide some other way for the user to scroll the window.
|
179
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_DEFAULT}: To restore the default behaviour described above.
|
162
180
|
#
|
163
181
|
# Note that the window must be created before calling this method.
|
164
182
|
# @param horz [ScrollbarVisibility] The desired visibility for the horizontal scrollbar.
|
@@ -223,8 +241,8 @@ module Wx
|
|
223
241
|
# The first pair of parameters give the number of pixels per 'scroll step', i.e. amount moved when the up or down scroll arrows are pressed. The second pair gives the length of scrollbar in scroll steps, which sets the size of the virtual window.
|
224
242
|
# xPos and yPos optionally specify a position to scroll to immediately.
|
225
243
|
# For example, the following gives a window horizontal and vertical scrollbars with 20 pixels per scroll step, and a size of 50 steps (1000 pixels) in each direction:
|
226
|
-
# ```
|
227
|
-
# window
|
244
|
+
# ```ruby
|
245
|
+
# window.set_scrollbars(20, 20, 50, 50)
|
228
246
|
# ```
|
229
247
|
#
|
230
248
|
# {Wx::Scrolled} manages the page size itself, using the current client window size as the page size.
|
@@ -9,7 +9,8 @@ module Wx
|
|
9
9
|
# The {Wx::Scrolled} class manages scrolling for its client area, transforming the coordinates according to the scrollbar positions, and setting the scroll positions, thumb sizes and ranges according to the area in view.
|
10
10
|
# There are two commonly used (but not the only possible!) specializations of this class:
|
11
11
|
#
|
12
|
-
# - {Wx::ScrolledWindow}, aka {Wx::Scrolled}<{Wx::Panel}>, is equivalent to {Wx::ScrolledWindow} from earlier versions. Derived from {Wx::Panel}, it shares {Wx::Panel}'s behaviour with regard to TAB traversal and focus handling. Use this if the scrolled window will have child controls
|
12
|
+
# - {Wx::ScrolledWindow}, aka {Wx::Scrolled}<{Wx::Panel}>, is equivalent to {Wx::ScrolledWindow} from earlier versions. Derived from {Wx::Panel}, it shares {Wx::Panel}'s behaviour with regard to TAB traversal and focus handling. Use this if the scrolled window will have child controls.
|
13
|
+
# - {Wx::ScrolledCanvas}, aka {Wx::Scrolled}<{Wx::Window}>, derives from {Wx::Window} and so doesn't handle children specially. This is suitable e.g. for implementing scrollable controls such as tree or list controls.
|
13
14
|
#
|
14
15
|
# See Wx::Scrolled#create if you want to use {Wx::Scrolled} with a custom class.
|
15
16
|
#
|
@@ -28,24 +29,36 @@ module Wx
|
|
28
29
|
# === Styles
|
29
30
|
#
|
30
31
|
# This class supports the following styles:
|
31
|
-
#
|
32
|
+
#
|
32
33
|
# - {Wx::HSCROLL}: If this style is specified and {Wx::VSCROLL} isn't, the window will be scrollable only in horizontal direction (by default, i.e. if neither this style nor {Wx::VSCROLL} is specified, it scrolls in both directions).
|
34
|
+
#
|
33
35
|
# - {Wx::VSCROLL}: If this style is specified and {Wx::HSCROLL} isn't, the window will be scrollable only in vertical direction (by default, i.e. if neither this style nor {Wx::HSCROLL} is specified, it scrolls in both directions).
|
36
|
+
#
|
34
37
|
# - {Wx::ALWAYS_SHOW_SB}: Since wxWidgets 2.9.5, specifying this style makes the window always show its scrollbars, even if they are not used. See Wx::Scrolled#show_scrollbars.
|
38
|
+
#
|
35
39
|
# - {Wx::RETAINED}: Uses a backing pixmap to speed refreshes. Motif only.
|
36
40
|
#
|
37
41
|
# === Events emitted by this class
|
38
42
|
#
|
39
43
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ScrollWinEvent} events.
|
40
44
|
# Event handler methods for events emitted by this class:
|
45
|
+
#
|
41
46
|
# - {Wx::EvtHandler#evt_scrollwin}(meth = nil, &block): Process all scroll events.
|
47
|
+
#
|
42
48
|
# - {Wx::EvtHandler#evt_scrollwin_top}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_TOP} scroll-to-top events.
|
49
|
+
#
|
43
50
|
# - {Wx::EvtHandler#evt_scrollwin_bottom}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_BOTTOM} scroll-to-bottom events.
|
51
|
+
#
|
44
52
|
# - {Wx::EvtHandler#evt_scrollwin_lineup}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_LINEUP} line up events.
|
53
|
+
#
|
45
54
|
# - {Wx::EvtHandler#evt_scrollwin_linedown}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_LINEDOWN} line down events.
|
55
|
+
#
|
46
56
|
# - {Wx::EvtHandler#evt_scrollwin_pageup}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_PAGEUP} page up events.
|
57
|
+
#
|
47
58
|
# - {Wx::EvtHandler#evt_scrollwin_pagedown}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_PAGEDOWN} page down events.
|
59
|
+
#
|
48
60
|
# - {Wx::EvtHandler#evt_scrollwin_thumbtrack}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
|
61
|
+
#
|
49
62
|
# - {Wx::EvtHandler#evt_scrollwin_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_THUMBRELEASE} thumb release events.
|
50
63
|
#
|
51
64
|
# Don't confuse {Wx::ScrollWinEvents} generated by this class with {Wx::ScrollEvent} objects generated by {Wx::ScrollBar} and {Wx::Slider}.
|
@@ -68,7 +81,7 @@ module Wx
|
|
68
81
|
|
69
82
|
# @overload initialize()
|
70
83
|
# Default constructor.
|
71
|
-
# @return [Scrolled]
|
84
|
+
# @return [Wx::Scrolled]
|
72
85
|
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
|
73
86
|
# Constructor.
|
74
87
|
# The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
|
@@ -78,7 +91,7 @@ module Wx
|
|
78
91
|
# @param size [Array(Integer, Integer), Wx::Size] Window size. If a size of {Wx::DEFAULT_SIZE} is specified then the window is sized appropriately.
|
79
92
|
# @param style [Integer] Window style. See {Wx::Scrolled}.
|
80
93
|
# @param name [String] Window name.
|
81
|
-
# @return [Scrolled]
|
94
|
+
# @return [Wx::Scrolled]
|
82
95
|
def initialize(*args) end
|
83
96
|
|
84
97
|
# @overload calc_scrolled_position(x, y)
|
@@ -125,22 +138,24 @@ module Wx
|
|
125
138
|
# Call this function to prepare the device context for drawing a scrolled image.
|
126
139
|
# It sets the device origin according to the current scroll position. Wx::Scrolled#do_prepare_dc is called automatically within the default {Wx::EVT_PAINT} event handler, so your Wx::Scrolled#on_draw override will be passed an already 'pre-scrolled' device context. However, if you wish to draw from outside of Wx::Scrolled#on_draw (e.g. from your own {Wx::EVT_PAINT} handler), you must call this function yourself.
|
127
140
|
# For example:
|
128
|
-
# ```
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
141
|
+
# ```ruby
|
142
|
+
# class MyWindow < Wx::ScrolledControl
|
143
|
+
#
|
144
|
+
# def on_event(event)
|
145
|
+
# Wx::ClientDC.draw_on(self) do |dc|
|
146
|
+
# do_prepare_dc(dc)
|
147
|
+
#
|
148
|
+
# dc.set_pen(Wx::BLACK_PEN)
|
149
|
+
# pos = event.position
|
150
|
+
# if xpos > -1 && ypos > -1 && event.dragging
|
151
|
+
# dc.draw_line(xpos, ypos, pos.x, pos.y)
|
152
|
+
# end
|
153
|
+
# xpos = pos.x
|
154
|
+
# ypos = pos.y
|
155
|
+
# end
|
156
|
+
# end
|
157
|
+
#
|
158
|
+
# end
|
144
159
|
# ```
|
145
160
|
#
|
146
161
|
# Notice that the function sets the origin by moving it relatively to the current origin position, so you shouldn't change the origin before calling Wx::Scrolled#do_prepare_dc or, if you do, reset it to (0, 0) later. If you call Wx::Scrolled#do_prepare_dc immediately after device context creation, as in the example above, this problem doesn't arise, of course, so it is customary to do it like this.
|
@@ -158,7 +173,10 @@ module Wx
|
|
158
173
|
|
159
174
|
# Set the scrollbar visibility.
|
160
175
|
# By default the scrollbar in the corresponding direction is only shown if it is needed, i.e. if the virtual size of the scrolled window in this direction is greater than the current physical window size. Using this function the scrollbar visibility can be changed to be:
|
161
|
-
#
|
176
|
+
#
|
177
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_ALWAYS}: To always show the scrollbar, even if it is not needed currently ({Wx::ALWAYS_SHOW_SB} style can be used during the window creation to achieve the same effect but it applies in both directions).
|
178
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_NEVER}: To never show the scrollbar at all. In this case the program should presumably provide some other way for the user to scroll the window.
|
179
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_DEFAULT}: To restore the default behaviour described above.
|
162
180
|
#
|
163
181
|
# Note that the window must be created before calling this method.
|
164
182
|
# @param horz [ScrollbarVisibility] The desired visibility for the horizontal scrollbar.
|
@@ -223,8 +241,8 @@ module Wx
|
|
223
241
|
# The first pair of parameters give the number of pixels per 'scroll step', i.e. amount moved when the up or down scroll arrows are pressed. The second pair gives the length of scrollbar in scroll steps, which sets the size of the virtual window.
|
224
242
|
# xPos and yPos optionally specify a position to scroll to immediately.
|
225
243
|
# For example, the following gives a window horizontal and vertical scrollbars with 20 pixels per scroll step, and a size of 50 steps (1000 pixels) in each direction:
|
226
|
-
# ```
|
227
|
-
# window
|
244
|
+
# ```ruby
|
245
|
+
# window.set_scrollbars(20, 20, 50, 50)
|
228
246
|
# ```
|
229
247
|
#
|
230
248
|
# {Wx::Scrolled} manages the page size itself, using the current client window size as the page size.
|
@@ -29,7 +29,8 @@ module Wx
|
|
29
29
|
# The {Wx::Scrolled} class manages scrolling for its client area, transforming the coordinates according to the scrollbar positions, and setting the scroll positions, thumb sizes and ranges according to the area in view.
|
30
30
|
# There are two commonly used (but not the only possible!) specializations of this class:
|
31
31
|
#
|
32
|
-
# - {Wx::ScrolledWindow}, aka {Wx::Scrolled}<{Wx::Panel}>, is equivalent to {Wx::ScrolledWindow} from earlier versions. Derived from {Wx::Panel}, it shares {Wx::Panel}'s behaviour with regard to TAB traversal and focus handling. Use this if the scrolled window will have child controls
|
32
|
+
# - {Wx::ScrolledWindow}, aka {Wx::Scrolled}<{Wx::Panel}>, is equivalent to {Wx::ScrolledWindow} from earlier versions. Derived from {Wx::Panel}, it shares {Wx::Panel}'s behaviour with regard to TAB traversal and focus handling. Use this if the scrolled window will have child controls.
|
33
|
+
# - {Wx::ScrolledCanvas}, aka {Wx::Scrolled}<{Wx::Window}>, derives from {Wx::Window} and so doesn't handle children specially. This is suitable e.g. for implementing scrollable controls such as tree or list controls.
|
33
34
|
#
|
34
35
|
# See Wx::Scrolled#create if you want to use {Wx::Scrolled} with a custom class.
|
35
36
|
#
|
@@ -48,24 +49,36 @@ module Wx
|
|
48
49
|
# === Styles
|
49
50
|
#
|
50
51
|
# This class supports the following styles:
|
51
|
-
#
|
52
|
+
#
|
52
53
|
# - {Wx::HSCROLL}: If this style is specified and {Wx::VSCROLL} isn't, the window will be scrollable only in horizontal direction (by default, i.e. if neither this style nor {Wx::VSCROLL} is specified, it scrolls in both directions).
|
54
|
+
#
|
53
55
|
# - {Wx::VSCROLL}: If this style is specified and {Wx::HSCROLL} isn't, the window will be scrollable only in vertical direction (by default, i.e. if neither this style nor {Wx::HSCROLL} is specified, it scrolls in both directions).
|
56
|
+
#
|
54
57
|
# - {Wx::ALWAYS_SHOW_SB}: Since wxWidgets 2.9.5, specifying this style makes the window always show its scrollbars, even if they are not used. See Wx::Scrolled#show_scrollbars.
|
58
|
+
#
|
55
59
|
# - {Wx::RETAINED}: Uses a backing pixmap to speed refreshes. Motif only.
|
56
60
|
#
|
57
61
|
# === Events emitted by this class
|
58
62
|
#
|
59
63
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ScrollWinEvent} events.
|
60
64
|
# Event handler methods for events emitted by this class:
|
65
|
+
#
|
61
66
|
# - {Wx::EvtHandler#evt_scrollwin}(meth = nil, &block): Process all scroll events.
|
67
|
+
#
|
62
68
|
# - {Wx::EvtHandler#evt_scrollwin_top}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_TOP} scroll-to-top events.
|
69
|
+
#
|
63
70
|
# - {Wx::EvtHandler#evt_scrollwin_bottom}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_BOTTOM} scroll-to-bottom events.
|
71
|
+
#
|
64
72
|
# - {Wx::EvtHandler#evt_scrollwin_lineup}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_LINEUP} line up events.
|
73
|
+
#
|
65
74
|
# - {Wx::EvtHandler#evt_scrollwin_linedown}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_LINEDOWN} line down events.
|
75
|
+
#
|
66
76
|
# - {Wx::EvtHandler#evt_scrollwin_pageup}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_PAGEUP} page up events.
|
77
|
+
#
|
67
78
|
# - {Wx::EvtHandler#evt_scrollwin_pagedown}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_PAGEDOWN} page down events.
|
79
|
+
#
|
68
80
|
# - {Wx::EvtHandler#evt_scrollwin_thumbtrack}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
|
81
|
+
#
|
69
82
|
# - {Wx::EvtHandler#evt_scrollwin_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLLWIN_THUMBRELEASE} thumb release events.
|
70
83
|
#
|
71
84
|
# Don't confuse {Wx::ScrollWinEvents} generated by this class with {Wx::ScrollEvent} objects generated by {Wx::ScrollBar} and {Wx::Slider}.
|
@@ -88,7 +101,7 @@ module Wx
|
|
88
101
|
|
89
102
|
# @overload initialize()
|
90
103
|
# Default constructor.
|
91
|
-
# @return [Scrolled]
|
104
|
+
# @return [Wx::Scrolled]
|
92
105
|
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
|
93
106
|
# Constructor.
|
94
107
|
# The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
|
@@ -98,7 +111,7 @@ module Wx
|
|
98
111
|
# @param size [Array(Integer, Integer), Wx::Size] Window size. If a size of {Wx::DEFAULT_SIZE} is specified then the window is sized appropriately.
|
99
112
|
# @param style [Integer] Window style. See {Wx::Scrolled}.
|
100
113
|
# @param name [String] Window name.
|
101
|
-
# @return [Scrolled]
|
114
|
+
# @return [Wx::Scrolled]
|
102
115
|
def initialize(*args) end
|
103
116
|
|
104
117
|
# @overload calc_scrolled_position(x, y)
|
@@ -145,22 +158,24 @@ module Wx
|
|
145
158
|
# Call this function to prepare the device context for drawing a scrolled image.
|
146
159
|
# It sets the device origin according to the current scroll position. Wx::Scrolled#do_prepare_dc is called automatically within the default {Wx::EVT_PAINT} event handler, so your Wx::Scrolled#on_draw override will be passed an already 'pre-scrolled' device context. However, if you wish to draw from outside of Wx::Scrolled#on_draw (e.g. from your own {Wx::EVT_PAINT} handler), you must call this function yourself.
|
147
160
|
# For example:
|
148
|
-
# ```
|
149
|
-
#
|
150
|
-
#
|
151
|
-
#
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
163
|
-
#
|
161
|
+
# ```ruby
|
162
|
+
# class MyWindow < Wx::ScrolledWindow
|
163
|
+
#
|
164
|
+
# def on_event(event)
|
165
|
+
# Wx::ClientDC.draw_on(self) do |dc|
|
166
|
+
# do_prepare_dc(dc)
|
167
|
+
#
|
168
|
+
# dc.set_pen(Wx::BLACK_PEN)
|
169
|
+
# pos = event.position
|
170
|
+
# if xpos > -1 && ypos > -1 && event.dragging
|
171
|
+
# dc.draw_line(xpos, ypos, pos.x, pos.y)
|
172
|
+
# end
|
173
|
+
# xpos = pos.x
|
174
|
+
# ypos = pos.y
|
175
|
+
# end
|
176
|
+
# end
|
177
|
+
#
|
178
|
+
# end
|
164
179
|
# ```
|
165
180
|
#
|
166
181
|
# Notice that the function sets the origin by moving it relatively to the current origin position, so you shouldn't change the origin before calling Wx::Scrolled#do_prepare_dc or, if you do, reset it to (0, 0) later. If you call Wx::Scrolled#do_prepare_dc immediately after device context creation, as in the example above, this problem doesn't arise, of course, so it is customary to do it like this.
|
@@ -178,7 +193,10 @@ module Wx
|
|
178
193
|
|
179
194
|
# Set the scrollbar visibility.
|
180
195
|
# By default the scrollbar in the corresponding direction is only shown if it is needed, i.e. if the virtual size of the scrolled window in this direction is greater than the current physical window size. Using this function the scrollbar visibility can be changed to be:
|
181
|
-
#
|
196
|
+
#
|
197
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_ALWAYS}: To always show the scrollbar, even if it is not needed currently ({Wx::ALWAYS_SHOW_SB} style can be used during the window creation to achieve the same effect but it applies in both directions).
|
198
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_NEVER}: To never show the scrollbar at all. In this case the program should presumably provide some other way for the user to scroll the window.
|
199
|
+
# - {Wx::ScrollbarVisibility::SHOW_SB_DEFAULT}: To restore the default behaviour described above.
|
182
200
|
#
|
183
201
|
# Note that the window must be created before calling this method.
|
184
202
|
# @param horz [ScrollbarVisibility] The desired visibility for the horizontal scrollbar.
|
@@ -243,8 +261,8 @@ module Wx
|
|
243
261
|
# The first pair of parameters give the number of pixels per 'scroll step', i.e. amount moved when the up or down scroll arrows are pressed. The second pair gives the length of scrollbar in scroll steps, which sets the size of the virtual window.
|
244
262
|
# xPos and yPos optionally specify a position to scroll to immediately.
|
245
263
|
# For example, the following gives a window horizontal and vertical scrollbars with 20 pixels per scroll step, and a size of 50 steps (1000 pixels) in each direction:
|
246
|
-
# ```
|
247
|
-
# window
|
264
|
+
# ```ruby
|
265
|
+
# window.set_scrollbars(20, 20, 50, 50)
|
248
266
|
# ```
|
249
267
|
#
|
250
268
|
# {Wx::Scrolled} manages the page size itself, using the current client window size as the page size.
|
@@ -20,26 +20,33 @@ module Wx
|
|
20
20
|
# === Styles
|
21
21
|
#
|
22
22
|
# This class supports the following styles:
|
23
|
-
#
|
23
|
+
#
|
24
24
|
# - {Wx::TE_PROCESS_TAB}: The control will receive {Wx::EVT_CHAR} events for TAB pressed - normally, TAB is used for passing to the next control in a dialog instead. For the control created with this style, you can still use Ctrl-Enter to pass to the next control from the keyboard.
|
25
|
+
#
|
25
26
|
# - {Wx::TE_NOHIDESEL}: By default, the Windows text control doesn't show the selection when it doesn't have focus - use this style to force it to always show it. It doesn't do anything under other platforms.
|
27
|
+
#
|
26
28
|
# - {Wx::TE_LEFT}: The text in the control will be left-justified (default).
|
27
|
-
#
|
28
|
-
# - {Wx::
|
29
|
+
#
|
30
|
+
# - {Wx::TE_CENTRE}: The text in the control will be centered (currently wxMSW and wxGTK2 only).
|
31
|
+
#
|
32
|
+
# - {Wx::TE_RIGHT}: The text in the control will be right-justified (currently wxMSW and wxGTK2 only).
|
33
|
+
#
|
29
34
|
# - {Wx::TE_CAPITALIZE}: On PocketPC and Smartphone, causes the first letter to be capitalized.
|
30
35
|
#
|
31
36
|
# === Events emitted by this class
|
32
37
|
#
|
33
38
|
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
|
34
39
|
# Event handler methods for events emitted by this class:{Wx::TextCtrl}. However it is recommended to use {Wx::EVT_SEARCH} to actually start searching to avoid doing it too soon, while the user is still typing (note that {Wx::EVT_SEARCH} is also triggered by pressing Enter in the control).
|
40
|
+
#
|
35
41
|
# - {Wx::EvtHandler#evt_search}(id, meth = nil, &block): Respond to a {Wx::EVT_SEARCH} event, generated when the search button is clicked. Note that this does not initiate a search on its own, you need to perform the appropriate action in your event handler. You may use
|
42
|
+
#
|
36
43
|
# - {Wx::EvtHandler#evt_search_cancel}(id, meth = nil, &block): Respond to a {Wx::EVT_SEARCH_CANCEL} event, generated when the cancel button is clicked.
|
37
44
|
#
|
38
45
|
# ===
|
39
46
|
#
|
40
|
-
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td>
|
41
|
-
# </td><td>
|
42
|
-
# </td><td>
|
47
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
|
48
|
+
# </td><td> wxGTK Appearance
|
49
|
+
# </td><td> wxOSX Appearance
|
43
50
|
# </td></tr></table></div>
|
44
51
|
# @see Wx::TextCtrl
|
45
52
|
#
|
@@ -50,7 +57,7 @@ module Wx
|
|
50
57
|
|
51
58
|
# @overload initialize()
|
52
59
|
# Default constructor.
|
53
|
-
# @return [SearchCtrl]
|
60
|
+
# @return [Wx::SearchCtrl]
|
54
61
|
# @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SearchCtrlNameStr)
|
55
62
|
# Constructor, creating and showing a text control.
|
56
63
|
#
|
@@ -64,7 +71,7 @@ module Wx
|
|
64
71
|
# @param style [Integer] Window style. See {Wx::SearchCtrl}.
|
65
72
|
# @param validator [Wx::Validator] Window validator.
|
66
73
|
# @param name [String] Window name.
|
67
|
-
# @return [SearchCtrl]
|
74
|
+
# @return [Wx::SearchCtrl]
|
68
75
|
def initialize(*args) end
|
69
76
|
|
70
77
|
# @param parent [Wx::Window]
|
@@ -25,7 +25,7 @@ module Wx
|
|
25
25
|
# @overload initialize()
|
26
26
|
# Default constructor.
|
27
27
|
# Use {Wx::Simplebook#create} later to really create the control.
|
28
|
-
# @return [Simplebook]
|
28
|
+
# @return [Wx::Simplebook]
|
29
29
|
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
|
30
30
|
# Constructs a simple book control.
|
31
31
|
# @param parent [Wx::Window]
|
@@ -34,7 +34,7 @@ module Wx
|
|
34
34
|
# @param size [Array(Integer, Integer), Wx::Size]
|
35
35
|
# @param style [Integer]
|
36
36
|
# @param name [String]
|
37
|
-
# @return [Simplebook]
|
37
|
+
# @return [Wx::Simplebook]
|
38
38
|
def initialize(*args) end
|
39
39
|
|
40
40
|
# Really create the window of an object created using default constructor.
|
@@ -20,9 +20,11 @@ module Wx
|
|
20
20
|
# === Styles
|
21
21
|
#
|
22
22
|
# This class supports the following styles:
|
23
|
-
#
|
23
|
+
#
|
24
24
|
# - {Wx::OK}: Show an OK button.
|
25
|
+
#
|
25
26
|
# - {Wx::CANCEL}: Show a Cancel button.
|
27
|
+
#
|
26
28
|
# - {Wx::GeometryCentre::CENTRE}: Centre the message.
|
27
29
|
#
|
28
30
|
# ===
|
@@ -43,7 +45,7 @@ module Wx
|
|
43
45
|
# @param clientData [void] An array of client data to be associated with the items. See {Wx::SingleChoiceDialog#get_selection_data}.
|
44
46
|
# @param style [Integer] A dialog style (bitlist) containing flags chosen from standard dialog styles and the ones listed in the class documentation. The default value is equivalent to {Wx::DEFAULT_DIALOG_STYLE} | {Wx::RESIZE_BORDER} | {Wx::OK} | {Wx::CANCEL} | {Wx::GeometryCentre::CENTRE}.
|
45
47
|
# @param pos [Array(Integer, Integer), Wx::Point] Dialog position.
|
46
|
-
# @return [SingleChoiceDialog]
|
48
|
+
# @return [Wx::SingleChoiceDialog]
|
47
49
|
def initialize(parent, message, caption, choices, clientData=nil, style=Wx::CHOICEDLG_STYLE, pos=Wx::DEFAULT_POSITION) end
|
48
50
|
|
49
51
|
# Returns the index of selected item.
|