wxruby3 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CREDITS.md +32 -25
- data/INSTALL.md +19 -4
- data/README.md +5 -5
- data/assets/repo-social-preview.odg +0 -0
- data/assets/repo-social-preview.xcf +0 -0
- data/ext/wxruby3/include/wxRubyApp.h +58 -45
- data/ext/wxruby3/include/wxruby-runtime.h +78 -1
- data/ext/wxruby3/swig/common.i +2 -2
- data/ext/wxruby3/swig/custom/director.swg +2 -2
- data/ext/wxruby3/swig/custom/rubyprimtypes.swg +59 -15
- data/ext/wxruby3/swig/custom/rubyrun.swg +4 -0
- data/ext/wxruby3/swig/custom/rubytracking.swg +4 -0
- data/ext/wxruby3/swig/custom/swiglabels.swg +129 -0
- data/ext/wxruby3/swig/custom/swigrun.swg +15 -0
- data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +20 -0
- data/ext/wxruby3/swig/mark_free_impl.i +152 -88
- data/ext/wxruby3/swig/memory_management.i +1 -0
- data/ext/wxruby3/swig/wx.i +73 -44
- data/lib/wx/aui/events/evt_list.rb +148 -0
- data/lib/wx/aui/require.rb +0 -1
- data/lib/wx/core/calendar_ctrl.rb +15 -0
- data/lib/wx/core/clipboard.rb +9 -13
- data/lib/wx/core/config.rb +1 -1
- data/lib/wx/core/events/evt_list.rb +1458 -0
- data/lib/wx/core/font/encoding.rb +113 -0
- data/lib/wx/core/generic_validator.rb +83 -31
- data/lib/wx/core/tipwindow.rb +16 -0
- data/lib/wx/doc/aui/auitabctrl.rb +35 -0
- data/lib/wx/doc/config.rb +2 -2
- data/lib/wx/doc/functions.rb +1 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
- data/lib/wx/doc/gen/accelerator.rb +178 -0
- data/lib/wx/doc/gen/activity_indicator.rb +83 -0
- data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
- data/lib/wx/doc/gen/animation.rb +275 -0
- data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
- data/lib/wx/doc/gen/any_button.rb +191 -0
- data/lib/wx/doc/gen/app.rb +463 -0
- data/lib/wx/doc/gen/app_traits.rb +396 -0
- data/lib/wx/doc/gen/art_provider.rb +605 -0
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
- data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
- data/lib/wx/doc/gen/aui/event_list.rb +179 -0
- data/lib/wx/doc/gen/banner_window.rb +124 -0
- data/lib/wx/doc/gen/bitmap.rb +731 -0
- data/lib/wx/doc/gen/bitmap_button.rb +123 -0
- data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
- data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
- data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
- data/lib/wx/doc/gen/box_sizer.rb +85 -0
- data/lib/wx/doc/gen/brush.rb +251 -0
- data/lib/wx/doc/gen/busy_info.rb +157 -0
- data/lib/wx/doc/gen/button.rb +182 -0
- data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
- data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
- data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
- data/lib/wx/doc/gen/calendar_event.rb +147 -0
- data/lib/wx/doc/gen/caret.rb +97 -0
- data/lib/wx/doc/gen/check_box.rb +175 -0
- data/lib/wx/doc/gen/check_list_box.rb +121 -0
- data/lib/wx/doc/gen/choice.rb +175 -0
- data/lib/wx/doc/gen/choicebook.rb +116 -0
- data/lib/wx/doc/gen/client_dc.rb +43 -0
- data/lib/wx/doc/gen/clipboard.rb +144 -0
- data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
- data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
- data/lib/wx/doc/gen/colour.rb +333 -0
- data/lib/wx/doc/gen/colour_dialog.rb +190 -0
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
- data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
- data/lib/wx/doc/gen/combo_box.rb +292 -0
- data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
- data/lib/wx/doc/gen/command_link_button.rb +134 -0
- data/lib/wx/doc/gen/config_base.rb +10 -0
- data/lib/wx/doc/gen/context_help_button.rb +109 -0
- data/lib/wx/doc/gen/control.rb +277 -0
- data/lib/wx/doc/gen/control_with_items.rb +253 -0
- data/lib/wx/doc/gen/core.rb +45 -0
- data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
- data/lib/wx/doc/gen/cursor.rb +193 -0
- data/lib/wx/doc/gen/data_format.rb +85 -0
- data/lib/wx/doc/gen/data_object.rb +436 -0
- data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
- data/lib/wx/doc/gen/date_event.rb +49 -0
- data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
- data/lib/wx/doc/gen/dc.rb +1631 -0
- data/lib/wx/doc/gen/dc_overlay.rb +102 -0
- data/lib/wx/doc/gen/defs.rb +2802 -0
- data/lib/wx/doc/gen/dial_up_event.rb +45 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
- data/lib/wx/doc/gen/dialog.rb +541 -0
- data/lib/wx/doc/gen/dir_dialog.rb +164 -0
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
- data/lib/wx/doc/gen/display.rb +238 -0
- data/lib/wx/doc/gen/drag_drop.rb +299 -0
- data/lib/wx/doc/gen/drag_image.rb +116 -0
- data/lib/wx/doc/gen/editable_list_box.rb +109 -0
- data/lib/wx/doc/gen/event.rb +990 -0
- data/lib/wx/doc/gen/event_blocker.rb +50 -0
- data/lib/wx/doc/gen/event_filter.rb +92 -0
- data/lib/wx/doc/gen/event_list.rb +1644 -0
- data/lib/wx/doc/gen/events.rb +2809 -0
- data/lib/wx/doc/gen/evt_handler.rb +229 -0
- data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
- data/lib/wx/doc/gen/file_ctrl.rb +231 -0
- data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
- data/lib/wx/doc/gen/file_dialog.rb +353 -0
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
- data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
- data/lib/wx/doc/gen/file_system.rb +232 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
- data/lib/wx/doc/gen/find_replace_data.rb +60 -0
- data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
- data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
- data/lib/wx/doc/gen/font.rb +1379 -0
- data/lib/wx/doc/gen/font_data.rb +151 -0
- data/lib/wx/doc/gen/font_dialog.rb +88 -0
- data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
- data/lib/wx/doc/gen/font_picker_event.rb +65 -0
- data/lib/wx/doc/gen/frame.rb +352 -0
- data/lib/wx/doc/gen/fs_file.rb +337 -0
- data/lib/wx/doc/gen/functions.rb +10 -0
- data/lib/wx/doc/gen/gauge.rb +157 -0
- data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
- data/lib/wx/doc/gen/gcdc.rb +46 -0
- data/lib/wx/doc/gen/gdi_common.rb +1271 -0
- data/lib/wx/doc/gen/gdi_object.rb +31 -0
- data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
- data/lib/wx/doc/gen/geometry.rb +661 -0
- data/lib/wx/doc/gen/graphics_context.rb +1184 -0
- data/lib/wx/doc/gen/graphics_object.rb +750 -0
- data/lib/wx/doc/gen/grid/event_list.rb +191 -0
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
- data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
- data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
- data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
- data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
- data/lib/wx/doc/gen/grid_sizer.rb +195 -0
- data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
- data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
- data/lib/wx/doc/gen/header_ctrl.rb +880 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
- data/lib/wx/doc/gen/help_controller.rb +195 -0
- data/lib/wx/doc/gen/help_provider.rb +98 -0
- data/lib/wx/doc/gen/html/event_list.rb +38 -0
- data/lib/wx/doc/gen/html/html_cell.rb +536 -0
- data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
- data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
- data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
- data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
- data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
- data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
- data/lib/wx/doc/gen/html/html_printout.rb +109 -0
- data/lib/wx/doc/gen/html/html_window.rb +461 -0
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
- data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
- data/lib/wx/doc/gen/icon.rb +267 -0
- data/lib/wx/doc/gen/icon_location.rb +40 -0
- data/lib/wx/doc/gen/image.rb +1371 -0
- data/lib/wx/doc/gen/image_list.rb +168 -0
- data/lib/wx/doc/gen/info_bar.rb +195 -0
- data/lib/wx/doc/gen/keyboard_state.rb +140 -0
- data/lib/wx/doc/gen/list_box.rb +304 -0
- data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
- data/lib/wx/doc/gen/list_event.rb +208 -0
- data/lib/wx/doc/gen/listbook.rb +116 -0
- data/lib/wx/doc/gen/locale.rb +4293 -0
- data/lib/wx/doc/gen/log.rb +603 -0
- data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
- data/lib/wx/doc/gen/mdi_frame.rb +324 -0
- data/lib/wx/doc/gen/media_ctrl.rb +269 -0
- data/lib/wx/doc/gen/media_event.rb +117 -0
- data/lib/wx/doc/gen/memory_dc.rb +174 -0
- data/lib/wx/doc/gen/menu.rb +509 -0
- data/lib/wx/doc/gen/menu_bar.rb +287 -0
- data/lib/wx/doc/gen/menu_item.rb +362 -0
- data/lib/wx/doc/gen/message_dialog.rb +238 -0
- data/lib/wx/doc/gen/mini_frame.rb +108 -0
- data/lib/wx/doc/gen/mirror_dc.rb +22 -0
- data/lib/wx/doc/gen/mouse_state.rb +150 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
- data/lib/wx/doc/gen/non_owned_window.rb +49 -0
- data/lib/wx/doc/gen/notebook.rb +278 -0
- data/lib/wx/doc/gen/num_validator.rb +37 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
- data/lib/wx/doc/gen/object.rb +59 -0
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
- data/lib/wx/doc/gen/paint_dc.rb +27 -0
- data/lib/wx/doc/gen/palette.rb +92 -0
- data/lib/wx/doc/gen/panel.rb +127 -0
- data/lib/wx/doc/gen/pen.rb +511 -0
- data/lib/wx/doc/gen/persistence_manager.rb +135 -0
- data/lib/wx/doc/gen/persistent_object.rb +52 -0
- data/lib/wx/doc/gen/persistent_window.rb +241 -0
- data/lib/wx/doc/gen/pg/event_list.rb +106 -0
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
- data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
- data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
- data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
- data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
- data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
- data/lib/wx/doc/gen/picker_base.rb +152 -0
- data/lib/wx/doc/gen/platform_info.rb +622 -0
- data/lib/wx/doc/gen/popup_window.rb +107 -0
- data/lib/wx/doc/gen/progress_dialog.rb +100 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
- data/lib/wx/doc/gen/prt/event_list.rb +17 -0
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
- data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
- data/lib/wx/doc/gen/prt/print_data.rb +804 -0
- data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
- data/lib/wx/doc/gen/prt/printer.rb +518 -0
- data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
- data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
- data/lib/wx/doc/gen/radio_box.rb +306 -0
- data/lib/wx/doc/gen/radio_button.rb +159 -0
- data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
- data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
- data/lib/wx/doc/gen/rearrange_list.rb +123 -0
- data/lib/wx/doc/gen/region.rb +380 -0
- data/lib/wx/doc/gen/region_iterator.rb +76 -0
- data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
- data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
- data/lib/wx/doc/gen/sash_event.rb +147 -0
- data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
- data/lib/wx/doc/gen/sash_window.rb +171 -0
- data/lib/wx/doc/gen/scaled_dc.rb +10 -0
- data/lib/wx/doc/gen/screen_dc.rb +30 -0
- data/lib/wx/doc/gen/scroll_bar.rb +204 -0
- data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
- data/lib/wx/doc/gen/scrolled_control.rb +410 -0
- data/lib/wx/doc/gen/scrolled_window.rb +430 -0
- data/lib/wx/doc/gen/search_ctrl.rb +159 -0
- data/lib/wx/doc/gen/secret_store.rb +116 -0
- data/lib/wx/doc/gen/simplebook.rb +110 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
- data/lib/wx/doc/gen/sizer.rb +945 -0
- data/lib/wx/doc/gen/sizer_item.rb +244 -0
- data/lib/wx/doc/gen/slider.rb +342 -0
- data/lib/wx/doc/gen/spin_button.rb +157 -0
- data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
- data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
- data/lib/wx/doc/gen/spin_double_event.rb +55 -0
- data/lib/wx/doc/gen/spin_event.rb +51 -0
- data/lib/wx/doc/gen/splash_screen.rb +113 -0
- data/lib/wx/doc/gen/splitter_event.rb +99 -0
- data/lib/wx/doc/gen/splitter_window.rb +498 -0
- data/lib/wx/doc/gen/static_bitmap.rb +256 -0
- data/lib/wx/doc/gen/static_box.rb +180 -0
- data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
- data/lib/wx/doc/gen/static_line.rb +83 -0
- data/lib/wx/doc/gen/static_text.rb +127 -0
- data/lib/wx/doc/gen/status_bar.rb +290 -0
- data/lib/wx/doc/gen/stc/event_list.rb +221 -0
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
- data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
- data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
- data/lib/wx/doc/gen/system_options.rb +129 -0
- data/lib/wx/doc/gen/system_settings.rb +507 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
- data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
- data/lib/wx/doc/gen/text_attr.rb +756 -0
- data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
- data/lib/wx/doc/gen/text_entry.rb +441 -0
- data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
- data/lib/wx/doc/gen/text_validator.rb +245 -0
- data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
- data/lib/wx/doc/gen/timer.rb +119 -0
- data/lib/wx/doc/gen/timer_event.rb +68 -0
- data/lib/wx/doc/gen/tip_provider.rb +63 -0
- data/lib/wx/doc/gen/tip_window.rb +51 -0
- data/lib/wx/doc/gen/toggle_button.rb +182 -0
- data/lib/wx/doc/gen/tool_bar.rb +890 -0
- data/lib/wx/doc/gen/tool_tip.rb +86 -0
- data/lib/wx/doc/gen/toolbook.rb +118 -0
- data/lib/wx/doc/gen/top_level_window.rb +497 -0
- data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
- data/lib/wx/doc/gen/tree_event.rb +127 -0
- data/lib/wx/doc/gen/treebook.rb +180 -0
- data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
- data/lib/wx/doc/gen/utils.rb +273 -0
- data/lib/wx/doc/gen/v_list_box.rb +272 -0
- data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
- data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
- data/lib/wx/doc/gen/validator.rb +68 -0
- data/lib/wx/doc/gen/variant.rb +294 -0
- data/lib/wx/doc/gen/window.rb +2917 -0
- data/lib/wx/doc/gen/window_dc.rb +38 -0
- data/lib/wx/doc/gen/window_disabler.rb +30 -0
- data/lib/wx/doc/gen/with_images.rb +84 -0
- data/lib/wx/doc/gen/wizard.rb +257 -0
- data/lib/wx/doc/gen/wizard_event.rb +113 -0
- data/lib/wx/doc/gen/wizard_page.rb +65 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
- data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
- data/lib/wx/doc/gen/xml_node.rb +316 -0
- data/lib/wx/doc/gen/xml_resource.rb +320 -0
- data/lib/wx/doc/generic_validator.rb +5 -0
- data/lib/wx/doc/tip_window.rb +18 -6
- data/lib/wx/grid/events/evt_list.rb +166 -0
- data/lib/wx/html/events/evt_list.rb +27 -0
- data/lib/wx/html/simple_html_listbox.rb +46 -33
- data/lib/wx/keyword_defs.rb +9 -0
- data/lib/wx/pg/events/evt_list.rb +73 -0
- data/lib/wx/pg/pg_property.rb +26 -0
- data/lib/wx/pg/property_grid_interface.rb +2 -2
- data/lib/wx/rbn/events/evt_list.rb +102 -0
- data/lib/wx/rtc/events/evt_list.rb +98 -0
- data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
- data/lib/wx/stc/events/evt_list.rb +178 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wx/wxruby/cmd/setup.rb +6 -0
- data/rakelib/configure.rb +9 -0
- data/rakelib/gem.rake +3 -2
- data/rakelib/lib/config/linux.rb +1 -1
- data/rakelib/lib/config/macosx.rb +15 -1
- data/rakelib/lib/config/pkgman/linux.rb +7 -2
- data/rakelib/lib/config/unixish.rb +3 -3
- data/rakelib/lib/config.rb +16 -5
- data/rakelib/lib/core/include/swigdirector.inc +3 -3
- data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
- data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
- data/rakelib/lib/core/include/swigrun.inc +189 -0
- data/rakelib/lib/core/package.rb +3 -1
- data/rakelib/lib/director/accelerator.rb +1 -1
- data/rakelib/lib/director/animation.rb +1 -0
- data/rakelib/lib/director/app_traits.rb +1 -1
- data/rakelib/lib/director/aui_manager.rb +21 -14
- data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
- data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
- data/rakelib/lib/director/aui_notebook.rb +20 -3
- data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
- data/rakelib/lib/director/calendar_ctrl.rb +72 -14
- data/rakelib/lib/director/clipboard.rb +2 -0
- data/rakelib/lib/director/data_object.rb +15 -7
- data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
- data/rakelib/lib/director/display.rb +81 -0
- data/rakelib/lib/director/event.rb +33 -16
- data/rakelib/lib/director/event_handler.rb +27 -2
- data/rakelib/lib/director/functions.rb +9 -0
- data/rakelib/lib/director/geometry.rb +5 -0
- data/rakelib/lib/director/grid_ctrl.rb +123 -28
- data/rakelib/lib/director/help_provider.rb +1 -1
- data/rakelib/lib/director/html_listbox.rb +16 -3
- data/rakelib/lib/director/hvscrolled.rb +7 -106
- data/rakelib/lib/director/image_list.rb +1 -0
- data/rakelib/lib/director/mdi_frame.rb +4 -0
- data/rakelib/lib/director/menu.rb +56 -15
- data/rakelib/lib/director/menu_bar.rb +62 -0
- data/rakelib/lib/director/menu_item.rb +7 -1
- data/rakelib/lib/director/num_validator.rb +27 -0
- data/rakelib/lib/director/numeric_property_validator.rb +9 -0
- data/rakelib/lib/director/popup_window.rb +2 -0
- data/rakelib/lib/director/preview_frame.rb +29 -6
- data/rakelib/lib/director/printer.rb +59 -5
- data/rakelib/lib/director/property_grid.rb +37 -18
- data/rakelib/lib/director/property_grid_interface.rb +10 -8
- data/rakelib/lib/director/property_grid_manager.rb +99 -39
- data/rakelib/lib/director/property_grid_page.rb +60 -0
- data/rakelib/lib/director/rich_tooltip.rb +22 -0
- data/rakelib/lib/director/richtext_ctrl.rb +5 -0
- data/rakelib/lib/director/richtext_object.rb +13 -4
- data/rakelib/lib/director/richtext_style_listbox.rb +4 -1
- data/rakelib/lib/director/scrolled_t.rb +3 -0
- data/rakelib/lib/director/searchctrl.rb +1 -0
- data/rakelib/lib/director/task_bar_icon.rb +14 -8
- data/rakelib/lib/director/text_validator.rb +9 -0
- data/rakelib/lib/director/tip_window.rb +117 -6
- data/rakelib/lib/director/tool_bar.rb +6 -0
- data/rakelib/lib/director/validator.rb +12 -0
- data/rakelib/lib/director/variant.rb +36 -20
- data/rakelib/lib/director/vlistbox.rb +25 -22
- data/rakelib/lib/director/window.rb +10 -1
- data/rakelib/lib/director/xml_resource.rb +6 -0
- data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
- data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
- data/rakelib/lib/generate/doc.rb +12 -7
- data/rakelib/lib/generate/interface.rb +16 -1
- data/rakelib/lib/specs/interfaces.rb +3 -1
- data/rakelib/lib/swig_runner.rb +10 -10
- data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
- data/rakelib/lib/typemap/common.rb +3 -3
- data/rakelib/lib/typemap/print_page_range.rb +32 -8
- data/samples/art/wxruby-512x512.png +0 -0
- data/samples/calendar/calendar.rb +64 -1
- data/samples/dialogs/dialogs.rb +172 -0
- data/samples/dialogs/tip.xpm +157 -0
- data/samples/drawing/maths_images.rb +1 -1
- data/samples/event/event.rb +1 -1
- data/samples/printing/printing2.rb +1 -1
- data/samples/sampler.rb +26 -8
- data/samples/text/textctrl.rb +2 -2
- data/samples/treectrl/treectrl.rb +2 -2
- data/tests/lib/leaked_process_event_exception_test.rb +1 -1
- data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
- data/tests/lib/wxapp_runner.rb +31 -41
- data/tests/lib/wxframe_runner.rb +23 -11
- data/tests/lib/wxrb_test.rb +58 -0
- data/tests/test_app_event_filter.rb +1 -1
- data/tests/test_app_exit_exception.rb +3 -3
- data/tests/test_app_init_exception.rb +3 -3
- data/tests/test_app_traits.rb +24 -21
- data/tests/test_art.rb +7 -7
- data/tests/test_art_provider.rb +1 -1
- data/tests/test_basic.rb +2 -2
- data/tests/test_book_controls.rb +1 -1
- data/tests/test_box_sizer.rb +1 -1
- data/tests/test_clipboard.rb +5 -5
- data/tests/test_combo_ctrl.rb +2 -2
- data/tests/test_config.rb +11 -1
- data/tests/test_dc.rb +1 -1
- data/tests/test_dialog.rb +1 -1
- data/tests/test_event_handling.rb +1 -1
- data/tests/test_events.rb +1 -1
- data/tests/test_exceptions.rb +2 -2
- data/tests/test_ext_controls.rb +10 -10
- data/tests/test_file_dialog.rb +1 -1
- data/tests/test_font.rb +1 -1
- data/tests/test_gdi_object.rb +1 -1
- data/tests/test_geometry.rb +2 -2
- data/tests/test_grid_sizer.rb +2 -2
- data/tests/test_intl.rb +1 -1
- data/tests/test_item_data.rb +12 -12
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_log.rb +2 -2
- data/tests/test_media_ctrl.rb +1 -1
- data/tests/test_menu.rb +114 -43
- data/tests/test_proof_check.rb +1 -1
- data/tests/test_propgrid.rb +31 -31
- data/tests/test_richtext.rb +10 -24
- data/tests/test_secret_store.rb +1 -1
- data/tests/test_sizer.rb +1 -1
- data/tests/test_std_controls.rb +8 -8
- data/tests/test_styled_text_ctrl.rb +1 -1
- data/tests/test_timer.rb +1 -1
- data/tests/test_tree_ctrl.rb +1 -1
- data/tests/test_validators.rb +79 -36
- data/tests/test_variant.rb +1 -1
- data/tests/test_window.rb +11 -11
- data/tests/testapp.rb +2 -2
- data/tests/testapp_noframe.rb +2 -2
- metadata +400 -11
- data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# :stopdoc:
|
|
2
|
+
# This file is automatically generated by the WXRuby3 documentation
|
|
3
|
+
# generator. Do not alter this file.
|
|
4
|
+
# :startdoc:
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Wx
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
IMAGELIST_DRAW_NORMAL = 1
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
IMAGELIST_DRAW_TRANSPARENT = 2
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
IMAGELIST_DRAW_SELECTED = 4
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
IMAGELIST_DRAW_FOCUSED = 8
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
#
|
|
23
|
+
IMAGE_LIST_NORMAL = 0
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
#
|
|
27
|
+
IMAGE_LIST_SMALL = 1
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
#
|
|
31
|
+
IMAGE_LIST_STATE = 2
|
|
32
|
+
|
|
33
|
+
# A {Wx::ImageList} contains a list of images, which are stored in an unspecified form.
|
|
34
|
+
#
|
|
35
|
+
# Images can use alpha channel or masks for transparent drawing, and can be made from a variety of sources including bitmaps and icons.
|
|
36
|
+
# {Wx::ImageList} is used principally in conjunction with {Wx::TreeCtrl} and {Wx::ListCtrl} classes.
|
|
37
|
+
# Use of this class is not recommended in the new code as it doesn't support showing DPI-dependent bitmaps. Please use {Wx::WithImages#set_images} instead of {Wx::WithImages#set_image_list}.
|
|
38
|
+
#
|
|
39
|
+
# Category: Graphics Device Interface (GDI)
|
|
40
|
+
# @see Wx::TreeCtrl
|
|
41
|
+
# @see Wx::ListCtrl
|
|
42
|
+
#
|
|
43
|
+
#
|
|
44
|
+
# @wxrb_require USE_IMAGLIST
|
|
45
|
+
class ImageList < Object
|
|
46
|
+
|
|
47
|
+
# @overload initialize()
|
|
48
|
+
# Default ctor.
|
|
49
|
+
#
|
|
50
|
+
# Note that the object created using the default ctor is invalid and calling any methods other than {Wx::ImageList#create} on it will result in an assertion failure.
|
|
51
|
+
# @return [Wx::ImageList]
|
|
52
|
+
# @overload initialize(width, height, mask=true, initialCount=1)
|
|
53
|
+
# Constructor specifying the image size, whether image masks should be created, and the initial size of the list.
|
|
54
|
+
#
|
|
55
|
+
# Note that the size is specified in physical pixels and must correspond to the size of bitmaps, in pixels, that will be added to this list.
|
|
56
|
+
# @see Wx::ImageList#create
|
|
57
|
+
# @param width [Integer] Width of the images in the list.
|
|
58
|
+
# @param height [Integer] Height of the images in the list.
|
|
59
|
+
# @param mask [Boolean] If true, all images will have masks, with the mask being created from the light grey pixels if not specified otherwise, i.e. if the image doesn't have neither alpha channel nor mask and no mask is explicitly specified when adding it. Note that if an image does have alpha channel or mask, it will always be used, whether this parameter is true or false.
|
|
60
|
+
# @param initialCount [Integer] The initial size of the list.
|
|
61
|
+
# @return [Wx::ImageList]
|
|
62
|
+
def initialize(*args) end
|
|
63
|
+
|
|
64
|
+
# @overload add(bitmap, mask=Wx::NULL_BITMAP)
|
|
65
|
+
# Adds a new image or images using a bitmap and optional mask bitmap.
|
|
66
|
+
#
|
|
67
|
+
# The physical size of the bitmap should be the same as the size specified when constructing {Wx::ImageList}. If the width of the bitmap is greater than the image list width, bitmap is split into smaller images of the required width, allowing to add multiple images from a single bitmap.
|
|
68
|
+
#
|
|
69
|
+
# The new zero-based image index.
|
|
70
|
+
# @param bitmap [Wx::Bitmap] Bitmap representing the opaque areas of the image.
|
|
71
|
+
# @param mask [Wx::Bitmap] Monochrome mask bitmap, representing the transparent areas of the image.
|
|
72
|
+
# @return [Integer]
|
|
73
|
+
# @overload add(bitmap, maskColour)
|
|
74
|
+
# Adds a new image or images using a bitmap and mask colour.
|
|
75
|
+
#
|
|
76
|
+
# The physical size of the bitmap should be the same as the size specified when constructing {Wx::ImageList}. If the width of the bitmap is greater than the image list width, bitmap is split into smaller images of the required width, allowing to add multiple images from a single bitmap.
|
|
77
|
+
#
|
|
78
|
+
# The new zero-based image index.
|
|
79
|
+
# @param bitmap [Wx::Bitmap] Bitmap representing the opaque areas of the image.
|
|
80
|
+
# @param maskColour [Wx::Colour,String,Symbol] Colour indicating which parts of the image are transparent.
|
|
81
|
+
# @return [Integer]
|
|
82
|
+
def add(*args) end
|
|
83
|
+
|
|
84
|
+
# Initializes the list.
|
|
85
|
+
#
|
|
86
|
+
# See {Wx::ImageList#initialize} for details.
|
|
87
|
+
# This function can be called only once after creating the object using its default ctor or after calling {Wx::ImageList#destroy}.
|
|
88
|
+
# @param width [Integer]
|
|
89
|
+
# @param height [Integer]
|
|
90
|
+
# @param mask [Boolean]
|
|
91
|
+
# @param initialCount [Integer]
|
|
92
|
+
# @return [Boolean]
|
|
93
|
+
def create(width, height, mask=true, initialCount=1) end
|
|
94
|
+
|
|
95
|
+
# Destroys the current list.
|
|
96
|
+
#
|
|
97
|
+
# This function resets the object to its initial state and does more than just {Wx::ImageList#remove_all} in the native WXMSW version.
|
|
98
|
+
# After calling it, {Wx::ImageList#create} may be called again to recreate the image list, e.g. using a different size.
|
|
99
|
+
# @return [void]
|
|
100
|
+
def destroy; end
|
|
101
|
+
|
|
102
|
+
# Draws a specified image onto a device context.
|
|
103
|
+
# @param index [Integer] Image index, starting from zero.
|
|
104
|
+
# @param dc [Wx::DC] Device context to draw on.
|
|
105
|
+
# @param x [Integer] X position on the device context.
|
|
106
|
+
# @param y [Integer] Y position on the device context.
|
|
107
|
+
# @param flags [Integer] How to draw the image. A bitlist of a selection of the following:
|
|
108
|
+
#
|
|
109
|
+
# - {Wx::IMAGELIST_DRAW_NORMAL}: Draw the image normally.
|
|
110
|
+
# - {Wx::IMAGELIST_DRAW_TRANSPARENT}: Draw the image with transparency.
|
|
111
|
+
# - {Wx::IMAGELIST_DRAW_SELECTED}: Draw the image in selected state.
|
|
112
|
+
# - {Wx::IMAGELIST_DRAW_FOCUSED}: Draw the image in a focused state.
|
|
113
|
+
# @param solidBackground [Boolean] For optimisation - drawing can be faster if the function is told that the background is solid.
|
|
114
|
+
# @return [Boolean]
|
|
115
|
+
def draw(index, dc, x, y, flags=Wx::IMAGELIST_DRAW_NORMAL, solidBackground=false) end
|
|
116
|
+
|
|
117
|
+
# Returns the bitmap corresponding to the given index.
|
|
118
|
+
# @param index [Integer]
|
|
119
|
+
# @return [Wx::Bitmap]
|
|
120
|
+
def get_bitmap(index) end
|
|
121
|
+
alias_method :bitmap, :get_bitmap
|
|
122
|
+
|
|
123
|
+
# Returns the icon corresponding to the given index.
|
|
124
|
+
# @param index [Integer]
|
|
125
|
+
# @return [Wx::Icon]
|
|
126
|
+
def get_icon(index) end
|
|
127
|
+
alias_method :icon, :get_icon
|
|
128
|
+
|
|
129
|
+
# Returns the number of images in the list.
|
|
130
|
+
# @return [Integer]
|
|
131
|
+
def get_image_count; end
|
|
132
|
+
alias_method :image_count, :get_image_count
|
|
133
|
+
|
|
134
|
+
# Retrieves the size of the image list as passed to {Wx::ImageList#create}.
|
|
135
|
+
#
|
|
136
|
+
# the size of the image list, which may be zero if the image list was not yet initialised.
|
|
137
|
+
# @return [Wx::Size]
|
|
138
|
+
def get_size; end
|
|
139
|
+
alias_method :size, :get_size
|
|
140
|
+
|
|
141
|
+
# Removes the image at the given position.
|
|
142
|
+
# @param index [Integer]
|
|
143
|
+
# @return [Boolean]
|
|
144
|
+
def remove(index) end
|
|
145
|
+
|
|
146
|
+
# Removes all the images in the list.
|
|
147
|
+
# @return [Boolean]
|
|
148
|
+
def remove_all; end
|
|
149
|
+
|
|
150
|
+
# Replaces the existing image with the new image.
|
|
151
|
+
#
|
|
152
|
+
# true if the replacement was successful, false otherwise.
|
|
153
|
+
#
|
|
154
|
+
# <div class="wxrb-remark">
|
|
155
|
+
# <b>Remark:</b>
|
|
156
|
+
# <p>The original bitmap or icon is not affected by the {Wx::ImageList#replace} operation, and can be deleted afterwards.
|
|
157
|
+
# </p>
|
|
158
|
+
# </div>
|
|
159
|
+
# @param index [Integer] The index of the bitmap to be replaced.
|
|
160
|
+
# @param bitmap [Wx::Bitmap] Bitmap representing the opaque areas of the image.
|
|
161
|
+
# @param mask [Wx::Bitmap] Monochrome mask bitmap, representing the transparent areas of the image.
|
|
162
|
+
# @return [Boolean]
|
|
163
|
+
def replace(index, bitmap, mask=Wx::NULL_BITMAP) end
|
|
164
|
+
|
|
165
|
+
end # ImageList
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
end
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# :stopdoc:
|
|
2
|
+
# This file is automatically generated by the WXRuby3 documentation
|
|
3
|
+
# generator. Do not alter this file.
|
|
4
|
+
# :startdoc:
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Wx
|
|
8
|
+
|
|
9
|
+
# Include support for showing a customizable checkbox() at the bottom of a {Wx::InfoBar}.
|
|
10
|
+
#
|
|
11
|
+
INFOBAR_CHECKBOX = 16
|
|
12
|
+
|
|
13
|
+
# An info bar is a transient window shown at top or bottom of its parent window to display non-critical information to the user.
|
|
14
|
+
#
|
|
15
|
+
# This class provides another way to show messages to the user, intermediate between message boxes and status bar messages. The message boxes are modal and thus interrupt the users work flow and should be used sparingly for this reason. However status bar messages are often too easy not to notice at all. An info bar provides a way to present the messages which has a much higher chance to be noticed by the user but without being annoying.
|
|
16
|
+
# Info bar may show an icon (on the left), text message and, optionally, buttons allowing the user to react to the information presented. Unless a custom button was added to the info bar, it also has a close button at the right allowing the user to dismiss it so it isn't necessary to provide a button just to close it.
|
|
17
|
+
# {Wx::InfoBar} calls its parent {Wx::Window#layout} method and assumes that it will change the parent layout appropriately depending on whether the info bar itself is shown or hidden. Usually this is achieved by simply using a sizer for the parent window layout and adding {Wx::InfoBar} to this sizer as one of the items. Considering the usual placement of the info bars, normally this sizer should be a vertical {Wx::BoxSizer} and the bar its first or last element so the simplest possible example of using this class would be:
|
|
18
|
+
# ```ruby
|
|
19
|
+
# class MyFrame < Wx::Frame
|
|
20
|
+
#
|
|
21
|
+
# def initialize()
|
|
22
|
+
# # ...
|
|
23
|
+
# @infoBar = Wx::InfoBar.new(self)
|
|
24
|
+
#
|
|
25
|
+
# sizer = Wx::VBoxSizer.new
|
|
26
|
+
# sizer.add(@infoBar, Wx::SizerFlags.new.expand)
|
|
27
|
+
# # ... add other frame controls to the sizer ...
|
|
28
|
+
# set_sizer(sizer)
|
|
29
|
+
# end
|
|
30
|
+
#
|
|
31
|
+
# def some_method
|
|
32
|
+
# @infoBar.show_message('Something happened', Wx::ICON_INFORMATION)
|
|
33
|
+
# end
|
|
34
|
+
#
|
|
35
|
+
# end
|
|
36
|
+
# ```
|
|
37
|
+
#
|
|
38
|
+
# See the dialogs sample for more sophisticated examples.
|
|
39
|
+
# Currently this class is implemented generically (i.e. in the same platform-independent way for all ports) and also natively in WXGTK but the native implementation requires GTK+ 2.18 version or later (this requirement should be satisfied by any desktop systems currently in use).
|
|
40
|
+
#
|
|
41
|
+
# Category: Miscellaneous Windows
|
|
42
|
+
# @see Wx::StatusBar
|
|
43
|
+
# @see Wx::MessageDialog
|
|
44
|
+
#
|
|
45
|
+
#
|
|
46
|
+
# @wxrb_require USE_INFOBAR
|
|
47
|
+
class InfoBar < Control
|
|
48
|
+
|
|
49
|
+
# Set the effects to use when showing and hiding the bar.
|
|
50
|
+
#
|
|
51
|
+
# Either or both of the parameters can be set to {Wx::ShowEffect::SHOW_EFFECT_NONE} to disable using effects entirely.
|
|
52
|
+
# By default, the info bar uses {Wx::ShowEffect::SHOW_EFFECT_SLIDE_TO_BOTTOM} effect for showing itself and {Wx::ShowEffect::SHOW_EFFECT_SLIDE_TO_TOP} for hiding if it is the first element of the containing sizer and reverse effects if it's the last one. If it is neither the first nor the last element, no effect is used to avoid the use of an inappropriate one and this function must be called if an effect is desired.
|
|
53
|
+
# @param showEffect [Wx::ShowEffect] The effect to use when showing the bar.
|
|
54
|
+
# @param hideEffect [Wx::ShowEffect] The effect to use when hiding the bar.
|
|
55
|
+
# @return [void]
|
|
56
|
+
def set_show_hide_effects(showEffect, hideEffect) end
|
|
57
|
+
|
|
58
|
+
# Return the effect currently used for showing the bar.
|
|
59
|
+
# @return [Wx::ShowEffect]
|
|
60
|
+
def get_show_effect; end
|
|
61
|
+
alias_method :show_effect, :get_show_effect
|
|
62
|
+
|
|
63
|
+
# Return the effect currently used for hiding the bar.
|
|
64
|
+
# @return [Wx::ShowEffect]
|
|
65
|
+
def get_hide_effect; end
|
|
66
|
+
alias_method :hide_effect, :get_hide_effect
|
|
67
|
+
|
|
68
|
+
# Set the duration of the animation used when showing or hiding the bar.
|
|
69
|
+
#
|
|
70
|
+
# By default, 500ms duration is used.
|
|
71
|
+
# @param duration [Integer] Duration of the animation, in milliseconds.
|
|
72
|
+
# @return [void]
|
|
73
|
+
def set_effect_duration(duration) end
|
|
74
|
+
alias_method :effect_duration=, :set_effect_duration
|
|
75
|
+
|
|
76
|
+
# Return the effect animation duration currently used.
|
|
77
|
+
# @return [Integer]
|
|
78
|
+
def get_effect_duration; end
|
|
79
|
+
alias_method :effect_duration, :get_effect_duration
|
|
80
|
+
|
|
81
|
+
# Return whether the checkbox was checked at the time of the window being closed.
|
|
82
|
+
#
|
|
83
|
+
# This function is typically used in the button handler for the {Wx::EVT_BUTTON} message for {Wx::StandardID::ID_CLOSE}, which would typically call {Wx::InfoBar#dismiss} to hide the info bar and then call this function to see if the checkbox was checked and save its value to reuse it the next time (e.g. to avoid showing the same message again in a common use case).
|
|
84
|
+
# See the dialogs sample for an example.
|
|
85
|
+
# @return [Boolean]
|
|
86
|
+
def is_check_box_checked; end
|
|
87
|
+
alias_method :check_box_checked?, :is_check_box_checked
|
|
88
|
+
|
|
89
|
+
# Sets whether the checkbox should be shown, its label, and whether it is checked by default.
|
|
90
|
+
#
|
|
91
|
+
# <div class="wxrb-note">
|
|
92
|
+
# <b>Note:</b>
|
|
93
|
+
# <p>The {Wx::INFOBAR_CHECKBOX} style must be used for this control if calling this function.
|
|
94
|
+
# </p>
|
|
95
|
+
# </div>
|
|
96
|
+
# @param checkBoxText [String]
|
|
97
|
+
# @param checked [Boolean]
|
|
98
|
+
# @return [void]
|
|
99
|
+
def show_check_box(checkBoxText, checked) end
|
|
100
|
+
|
|
101
|
+
# @overload initialize()
|
|
102
|
+
# Default constructor.
|
|
103
|
+
#
|
|
104
|
+
# Use {Wx::InfoBar#create} for the objects created using this constructor.
|
|
105
|
+
# @return [Wx::InfoBar]
|
|
106
|
+
# @overload initialize(parent, winid=Wx::StandardID::ID_ANY, style=0)
|
|
107
|
+
# Constructor creating the info bar window.
|
|
108
|
+
#
|
|
109
|
+
#
|
|
110
|
+
# @see Wx::InfoBar#create
|
|
111
|
+
# @param parent [Wx::Window]
|
|
112
|
+
# @param winid [Integer]
|
|
113
|
+
# @param style [Integer]
|
|
114
|
+
# @return [Wx::InfoBar]
|
|
115
|
+
# @overload initialize(parent, winid=Wx::StandardID::ID_ANY, style=0, &block)
|
|
116
|
+
# Constructor creating the info bar window.
|
|
117
|
+
#
|
|
118
|
+
#
|
|
119
|
+
# @see Wx::InfoBar#create
|
|
120
|
+
# @param parent [Wx::Window]
|
|
121
|
+
# @param winid [Integer]
|
|
122
|
+
# @param style [Integer]
|
|
123
|
+
# @yieldparam [Wx::InfoBar] win new instance
|
|
124
|
+
# @return [Wx::InfoBar]
|
|
125
|
+
def initialize(*args) end
|
|
126
|
+
|
|
127
|
+
# Create the info bar window.
|
|
128
|
+
#
|
|
129
|
+
# Notice that unlike most of the other {Wx::Window}-derived classes, {Wx::InfoBar} is created hidden and is only shown when {Wx::InfoBar#show_message} is called. This is more convenient as usually the info bar is created to be shown at some later time and not immediately and so creating it hidden avoids the need to call {Wx::InfoBar#hide} explicitly from the code using it.
|
|
130
|
+
# This should be only called if the object was created using its default constructor.
|
|
131
|
+
# @param parent [Wx::Window] A valid parent window pointer.
|
|
132
|
+
# @param winid [Integer] The id of the info bar window, usually unused as currently no events are generated by this class.
|
|
133
|
+
# @param style [Integer] Optional styles to apply to the control.
|
|
134
|
+
# @return [Boolean]
|
|
135
|
+
def create(parent, winid=Wx::StandardID::ID_ANY, style=0) end
|
|
136
|
+
|
|
137
|
+
# Add a button to be shown in the info bar.
|
|
138
|
+
#
|
|
139
|
+
# The button added by this method will be shown to the right of the text (in LTR layout), with each successive button being added to the right of the previous one. If any buttons are added to the info bar using this method, the default "Close" button is not shown as it is assumed that the extra buttons already allow the user to close it.
|
|
140
|
+
# Clicking the button will generate a normal EVT_COMMAND_BUTTON_CLICKED event which can be handled as usual. The default handler in {Wx::InfoBar} itself closes the window whenever a button in it is clicked so if you wish the info bar to be hidden when the button is clicked, simply call <code>event.Skip()</code> in the button handler to let the base class handler do it (calling {Wx::InfoBar#dismiss} explicitly works too, of course). On the other hand, if you don't skip the event, the info bar will remain opened so make sure to do it for at least some buttons to allow the user to close it.
|
|
141
|
+
# Notice that the generic {Wx::InfoBar} implementation handles the button events itself and so they are not propagated to the info bar parent and you need to either inherit from {Wx::InfoBar} and handle them in your derived class or use {Wx::EvtHandler#bind}, as is done in the dialogs sample, to handle the button events in the parent frame.
|
|
142
|
+
# @param btnid [Integer] Id of the button. It will be used in the button message clicking this button will generate.
|
|
143
|
+
# @param label [String] The label of the button. It may only be empty if btnid is one of the stock ids in which case the corresponding stock label (see {get_stock_label}) will be used.
|
|
144
|
+
# @return [void]
|
|
145
|
+
def add_button(btnid, label=('')) end
|
|
146
|
+
|
|
147
|
+
# Hide the info bar window.
|
|
148
|
+
#
|
|
149
|
+
# This method hides the window and lays out the parent window to account for its disappearance (unlike a simple {Wx::InfoBar#hide}).
|
|
150
|
+
# @return [void]
|
|
151
|
+
def dismiss; end
|
|
152
|
+
|
|
153
|
+
# Remove a button previously added by {Wx::InfoBar#add_button}.
|
|
154
|
+
# @param btnid [Integer] Id of the button to remove. If more than one button with the same id is used in the info bar (which is in any case not recommended), the last, i.e. most recently added, button with this id is removed.
|
|
155
|
+
# @return [void]
|
|
156
|
+
def remove_button(btnid) end
|
|
157
|
+
|
|
158
|
+
# Show a message in the bar.
|
|
159
|
+
#
|
|
160
|
+
# If the bar is currently hidden, it will be shown. Otherwise its message will be updated in place.
|
|
161
|
+
# @param msg [String] The text of the message.
|
|
162
|
+
# @param flags [Integer] One of {Wx::ICON_NONE}, {Wx::ICON_INFORMATION} (default), {Wx::ICON_QUESTION}, {Wx::ICON_WARNING} or {Wx::ICON_ERROR} values. These flags have the same meaning as in {Wx::MessageDialog} for the generic version, i.e. show (or not, in case of {Wx::ICON_NONE}) the corresponding icon in the bar but can be interpreted by the native versions. For example, the GTK+ native implementation doesn't show icons at all but uses this parameter to select the appropriate background colour for the notification.
|
|
163
|
+
# @return [void]
|
|
164
|
+
def show_message(msg, flags=Wx::ICON_INFORMATION) end
|
|
165
|
+
|
|
166
|
+
# Returns the number of currently shown buttons.
|
|
167
|
+
#
|
|
168
|
+
# This is simply the number of calls to {Wx::InfoBar#add_button} minus the number of calls to {Wx::InfoBar#remove_button} so far.
|
|
169
|
+
# The number of currently shown buttons, possibly 0.
|
|
170
|
+
# @return [Integer]
|
|
171
|
+
def get_button_count; end
|
|
172
|
+
alias_method :button_count, :get_button_count
|
|
173
|
+
|
|
174
|
+
# Returns the ID of the button at the given position.
|
|
175
|
+
#
|
|
176
|
+
# The positions of the buttons are counted in order of their addition.
|
|
177
|
+
#
|
|
178
|
+
# The ID of the button at the given position or {Wx::StandardID::ID_NONE} if it is out of range (this also results in an assertion failure).
|
|
179
|
+
# @param idx [Integer] The position of the button in 0 to {Wx::InfoBar#get_button_count} range.
|
|
180
|
+
# @return [Integer]
|
|
181
|
+
def get_button_id(idx) end
|
|
182
|
+
alias_method :button_id, :get_button_id
|
|
183
|
+
|
|
184
|
+
# Returns whether a button with the given ID is currently shown.
|
|
185
|
+
#
|
|
186
|
+
# true if the button with this ID is currently shown.
|
|
187
|
+
# @param btnid [Integer] ID of the button to check for.
|
|
188
|
+
# @return [Boolean]
|
|
189
|
+
def has_button_id(btnid) end
|
|
190
|
+
alias_method :has_button_id?, :has_button_id
|
|
191
|
+
|
|
192
|
+
end # InfoBar
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
end
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# :stopdoc:
|
|
2
|
+
# This file is automatically generated by the WXRuby3 documentation
|
|
3
|
+
# generator. Do not alter this file.
|
|
4
|
+
# :startdoc:
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Wx
|
|
8
|
+
|
|
9
|
+
# Provides methods for testing the state of the keyboard modifier keys.
|
|
10
|
+
#
|
|
11
|
+
# This class is used as a base class of {Wx::KeyEvent} and {Wx::MouseState} and, hence, indirectly, of {Wx::MouseEvent}, so its methods may be used to get information about the modifier keys which were pressed when the event occurred.
|
|
12
|
+
# This class is implemented entirely inline in <{Wx::/kbdstate.h}> and thus has no linking requirements.
|
|
13
|
+
#
|
|
14
|
+
# Category: {Wx::Events}
|
|
15
|
+
# @see Wx::KeyEvent
|
|
16
|
+
# @see Wx::MouseState
|
|
17
|
+
#
|
|
18
|
+
#
|
|
19
|
+
#
|
|
20
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
21
|
+
class KeyboardState < ::Object
|
|
22
|
+
|
|
23
|
+
# Constructor initializes the modifier key settings.
|
|
24
|
+
#
|
|
25
|
+
# By default, no modifiers are active.
|
|
26
|
+
# @param controlDown [Boolean]
|
|
27
|
+
# @param shiftDown [Boolean]
|
|
28
|
+
# @param altDown [Boolean]
|
|
29
|
+
# @param metaDown [Boolean]
|
|
30
|
+
# @return [Wx::KeyboardState]
|
|
31
|
+
def initialize(controlDown=false, shiftDown=false, altDown=false, metaDown=false) end
|
|
32
|
+
|
|
33
|
+
# Return the bit mask of all pressed modifier keys.
|
|
34
|
+
#
|
|
35
|
+
# The return value is a combination of {Wx::KeyModifier::MOD_ALT}, {Wx::KeyModifier::MOD_CONTROL}, {Wx::KeyModifier::MOD_SHIFT} and {Wx::KeyModifier::MOD_META} bit masks. Additionally, {Wx::KeyModifier::MOD_NONE} is defined as 0, i.e. corresponds to no modifiers (see {Wx::KeyboardState#has_any_modifiers}) and {Wx::KeyModifier::MOD_CMD} is either {Wx::KeyModifier::MOD_CONTROL} (MSW and Unix) or {Wx::KeyModifier::MOD_META} (Mac), see {Wx::KeyboardState#cmd_down}. See {Wx::KeyModifier} for the full list of modifiers.
|
|
36
|
+
# Notice that this function is easier to use correctly than, for example, {Wx::KeyboardState#control_down} because when using the latter you also have to remember to test that none of the other modifiers is pressed:
|
|
37
|
+
#
|
|
38
|
+
# ```ruby
|
|
39
|
+
# if control_down && !alt_down && !shift_down && !meta_down
|
|
40
|
+
# ... handle Ctrl-XXX ...
|
|
41
|
+
# ```
|
|
42
|
+
#
|
|
43
|
+
# and forgetting to do it can result in serious program bugs (e.g. program not working with European keyboard layout where AltGr key which is seen by the program as combination of CTRL and ALT is used). On the other hand, you can simply write:
|
|
44
|
+
#
|
|
45
|
+
# ```ruby
|
|
46
|
+
# if get_modifiers == Wx::MOD_CONTROL
|
|
47
|
+
# ... handle Ctrl-XXX ...
|
|
48
|
+
# ```
|
|
49
|
+
#
|
|
50
|
+
# with this function.
|
|
51
|
+
# @return [Integer]
|
|
52
|
+
def get_modifiers; end
|
|
53
|
+
alias_method :modifiers, :get_modifiers
|
|
54
|
+
|
|
55
|
+
# Returns true if any modifiers at all are pressed.
|
|
56
|
+
#
|
|
57
|
+
# This is equivalent to <code>Wx::KeyboardState#get_modifiers</code> <code>!=</code> {Wx::KeyModifier::MOD_NONE}.
|
|
58
|
+
# Notice that this is different from {Wx::KeyboardState#has_modifiers} method which doesn't take e.g. Shift modifier into account. This method is most suitable for mouse events when any modifier, including Shift, can change the interpretation of the event.
|
|
59
|
+
# @return [Boolean]
|
|
60
|
+
def has_any_modifiers; end
|
|
61
|
+
alias_method :has_any_modifiers?, :has_any_modifiers
|
|
62
|
+
|
|
63
|
+
# Returns true if Control or Alt are pressed.
|
|
64
|
+
#
|
|
65
|
+
# Checks if Control, Alt or, under macOS only, Command key are pressed (notice that the real Control key is still taken into account under OS X too).
|
|
66
|
+
# This method returns false if only Shift is pressed for compatibility reasons and also because pressing Shift usually doesn't change the interpretation of key events, see {Wx::KeyboardState#has_any_modifiers} if you want to take Shift into account as well.
|
|
67
|
+
# @return [Boolean]
|
|
68
|
+
def has_modifiers; end
|
|
69
|
+
alias_method :has_modifiers?, :has_modifiers
|
|
70
|
+
|
|
71
|
+
# Returns true if the Control key or Apple/Command key under macOS is pressed.
|
|
72
|
+
#
|
|
73
|
+
# This function doesn't distinguish between right and left control keys.
|
|
74
|
+
# Notice that {Wx::KeyboardState#get_modifiers} should usually be used instead of this one.
|
|
75
|
+
# @return [Boolean]
|
|
76
|
+
def control_down; end
|
|
77
|
+
|
|
78
|
+
# Returns true if the Control key (also under macOS).
|
|
79
|
+
#
|
|
80
|
+
# This function doesn't distinguish between right and left control keys.
|
|
81
|
+
# Notice that {Wx::KeyboardState#get_modifiers} should usually be used instead of this one.
|
|
82
|
+
# @return [Boolean]
|
|
83
|
+
def raw_control_down; end
|
|
84
|
+
|
|
85
|
+
# Returns true if the Shift key is pressed.
|
|
86
|
+
#
|
|
87
|
+
# This function doesn't distinguish between right and left shift keys.
|
|
88
|
+
# Notice that {Wx::KeyboardState#get_modifiers} should usually be used instead of this one.
|
|
89
|
+
# @return [Boolean]
|
|
90
|
+
def shift_down; end
|
|
91
|
+
|
|
92
|
+
# Returns true if the Meta/Windows/Apple key is pressed.
|
|
93
|
+
#
|
|
94
|
+
# This function tests the state of the key traditionally called Meta under Unix systems, Windows keys under MSW Notice that {Wx::KeyboardState#get_modifiers} should usually be used instead of this one.
|
|
95
|
+
# @see Wx::KeyboardState#cmd_down
|
|
96
|
+
# @return [Boolean]
|
|
97
|
+
def meta_down; end
|
|
98
|
+
|
|
99
|
+
# Returns true if the Alt key is pressed.
|
|
100
|
+
#
|
|
101
|
+
# Notice that {Wx::KeyboardState#get_modifiers} should usually be used instead of this one.
|
|
102
|
+
# @return [Boolean]
|
|
103
|
+
def alt_down; end
|
|
104
|
+
|
|
105
|
+
# Returns true if the key used for command accelerators is pressed.
|
|
106
|
+
#
|
|
107
|
+
# Same as {Wx::KeyboardState#control_down}. Deprecated.
|
|
108
|
+
# Notice that {Wx::KeyboardState#get_modifiers} should usually be used instead of this one.
|
|
109
|
+
# @return [Boolean]
|
|
110
|
+
def cmd_down; end
|
|
111
|
+
|
|
112
|
+
# @param down [Boolean]
|
|
113
|
+
# @return [void]
|
|
114
|
+
def set_control_down(down) end
|
|
115
|
+
alias_method :control_down=, :set_control_down
|
|
116
|
+
|
|
117
|
+
# @param down [Boolean]
|
|
118
|
+
# @return [void]
|
|
119
|
+
def set_raw_control_down(down) end
|
|
120
|
+
alias_method :raw_control_down=, :set_raw_control_down
|
|
121
|
+
|
|
122
|
+
# @param down [Boolean]
|
|
123
|
+
# @return [void]
|
|
124
|
+
def set_shift_down(down) end
|
|
125
|
+
alias_method :shift_down=, :set_shift_down
|
|
126
|
+
|
|
127
|
+
# @param down [Boolean]
|
|
128
|
+
# @return [void]
|
|
129
|
+
def set_alt_down(down) end
|
|
130
|
+
alias_method :alt_down=, :set_alt_down
|
|
131
|
+
|
|
132
|
+
# @param down [Boolean]
|
|
133
|
+
# @return [void]
|
|
134
|
+
def set_meta_down(down) end
|
|
135
|
+
alias_method :meta_down=, :set_meta_down
|
|
136
|
+
|
|
137
|
+
end # KeyboardState
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
end
|