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,123 @@
|
|
|
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
|
+
# A bitmap button is a control that contains a bitmap.
|
|
10
|
+
#
|
|
11
|
+
# Notice that since wxWidgets 2.9.1 bitmap display is supported by the base {Wx::Button} class itself and the only tiny advantage of using this class is that it allows specifying the bitmap in its constructor, unlike {Wx::Button}. Please see the base class documentation for more information about images support in {Wx::Button}.
|
|
12
|
+
# ### Styles
|
|
13
|
+
#
|
|
14
|
+
# This class supports the following styles:
|
|
15
|
+
#
|
|
16
|
+
# - {Wx::BU_LEFT}: Left-justifies the bitmap label.
|
|
17
|
+
#
|
|
18
|
+
# - {Wx::BU_TOP}: Aligns the bitmap label to the top of the button.
|
|
19
|
+
#
|
|
20
|
+
# - {Wx::BU_RIGHT}: Right-justifies the bitmap label.
|
|
21
|
+
#
|
|
22
|
+
# - {Wx::BU_BOTTOM}: Aligns the bitmap label to the bottom of the button.
|
|
23
|
+
#
|
|
24
|
+
# Note that the {Wx::BU_EXACTFIT} style supported by {Wx::Button} is not used by this class as bitmap buttons don't have any minimal standard size by default.
|
|
25
|
+
# ### Events emitted by this class
|
|
26
|
+
#
|
|
27
|
+
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
|
|
28
|
+
# Event handler methods for events emitted by this class:
|
|
29
|
+
#
|
|
30
|
+
# - {Wx::EvtHandler#evt_button}(id, meth = nil, &block): Process a {Wx::EVT_BUTTON} event, when the button is clicked.
|
|
31
|
+
#
|
|
32
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> WXMSW Appearance
|
|
33
|
+
# </td><td> WXGTK Appearance
|
|
34
|
+
# </td><td> WXOSX Appearance
|
|
35
|
+
# </td></tr></table></div>
|
|
36
|
+
# @see Wx::Button
|
|
37
|
+
#
|
|
38
|
+
#
|
|
39
|
+
# @wxrb_require USE_BMPBUTTON
|
|
40
|
+
class BitmapButton < Button
|
|
41
|
+
|
|
42
|
+
# @overload initialize()
|
|
43
|
+
# Default ctor.
|
|
44
|
+
# @return [Wx::BitmapButton]
|
|
45
|
+
# @overload initialize(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR)
|
|
46
|
+
# Constructor, creating and showing a button.
|
|
47
|
+
#
|
|
48
|
+
# <div class="wxrb-remark">
|
|
49
|
+
# <b>Remark:</b>
|
|
50
|
+
# <p>The bitmap parameter is normally the only bitmap you need to provide, and wxWidgets will draw the button correctly in its different states. If you want more control, call any of the functions {Wx::BitmapButton#set_bitmap_pressed}, {Wx::BitmapButton#set_bitmap_focus}, {Wx::BitmapButton#set_bitmap_disabled}.
|
|
51
|
+
# </p>
|
|
52
|
+
# </div>
|
|
53
|
+
# @see Wx::BitmapButton#create
|
|
54
|
+
# @see Wx::Validator
|
|
55
|
+
# @param parent [Wx::Window] Parent window. Must not be nil.
|
|
56
|
+
# @param id [Integer] Button identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
|
|
57
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] Bitmap to be displayed.
|
|
58
|
+
# @param pos [Array(Integer, Integer), Wx::Point] Button position. If {Wx::DEFAULT_POSITION} is specified then a default position is chosen.
|
|
59
|
+
# @param size [Array(Integer, Integer), Wx::Size] Button size. If {Wx::DEFAULT_SIZE} is specified then the button is sized appropriately for the bitmap.
|
|
60
|
+
# @param style [Integer] Window style. See {Wx::BitmapButton}.
|
|
61
|
+
# @param validator [Wx::Validator] Window validator.
|
|
62
|
+
# @param name [String] Window name.
|
|
63
|
+
# @return [Wx::BitmapButton]
|
|
64
|
+
# @overload initialize(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR, &block)
|
|
65
|
+
# Constructor, creating and showing a button.
|
|
66
|
+
#
|
|
67
|
+
# <div class="wxrb-remark">
|
|
68
|
+
# <b>Remark:</b>
|
|
69
|
+
# <p>The bitmap parameter is normally the only bitmap you need to provide, and wxWidgets will draw the button correctly in its different states. If you want more control, call any of the functions {Wx::BitmapButton#set_bitmap_pressed}, {Wx::BitmapButton#set_bitmap_focus}, {Wx::BitmapButton#set_bitmap_disabled}.
|
|
70
|
+
# </p>
|
|
71
|
+
# </div>
|
|
72
|
+
# @see Wx::BitmapButton#create
|
|
73
|
+
# @see Wx::Validator
|
|
74
|
+
# @param parent [Wx::Window] Parent window. Must not be nil.
|
|
75
|
+
# @param id [Integer] Button identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
|
|
76
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] Bitmap to be displayed.
|
|
77
|
+
# @param pos [Array(Integer, Integer), Wx::Point] Button position. If {Wx::DEFAULT_POSITION} is specified then a default position is chosen.
|
|
78
|
+
# @param size [Array(Integer, Integer), Wx::Size] Button size. If {Wx::DEFAULT_SIZE} is specified then the button is sized appropriately for the bitmap.
|
|
79
|
+
# @param style [Integer] Window style. See {Wx::BitmapButton}.
|
|
80
|
+
# @param validator [Wx::Validator] Window validator.
|
|
81
|
+
# @param name [String] Window name.
|
|
82
|
+
# @yieldparam [Wx::BitmapButton] win new instance
|
|
83
|
+
# @return [Wx::BitmapButton]
|
|
84
|
+
def initialize(*args) end
|
|
85
|
+
|
|
86
|
+
# Button creation function for two-step creation.
|
|
87
|
+
#
|
|
88
|
+
# For more details, see {Wx::BitmapButton#initialize}.
|
|
89
|
+
# @param parent [Wx::Window]
|
|
90
|
+
# @param id [Integer]
|
|
91
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
|
92
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
|
93
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
94
|
+
# @param style [Integer]
|
|
95
|
+
# @param validator [Wx::Validator]
|
|
96
|
+
# @param name [String]
|
|
97
|
+
# @return [Boolean]
|
|
98
|
+
def create(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR) end
|
|
99
|
+
|
|
100
|
+
# Creation function for two-step creation of "Close" button.
|
|
101
|
+
#
|
|
102
|
+
# It is usually not necessary to use this function directly as {Wx::BitmapButton.new_close_button} is more convenient, but, if required, it can be called on a default-constructed {Wx::BitmapButton} object to achieve the same effect.
|
|
103
|
+
# @param parent [Wx::Window] The button parent window, must be non-null.
|
|
104
|
+
# @param winid [Integer] The identifier for the new button.
|
|
105
|
+
# @param name [String] The name for the new button.
|
|
106
|
+
# @return [Boolean]
|
|
107
|
+
def create_close_button(parent, winid, name=('')) end
|
|
108
|
+
|
|
109
|
+
# Helper function creating a standard-looking "Close" button.
|
|
110
|
+
#
|
|
111
|
+
# To get the best results, platform-specific code may need to be used to create a small, title bar-like "Close" button. This function is provided to avoid the need to test for the current platform and creates the button with as native look as possible.
|
|
112
|
+
#
|
|
113
|
+
# The new button.
|
|
114
|
+
# @param parent [Wx::Window] The button parent window, must be non-null.
|
|
115
|
+
# @param winid [Integer] The identifier for the new button.
|
|
116
|
+
# @param name [String] The name for the new button (available since wxWidgets 3.1.5)
|
|
117
|
+
# @return [Wx::BitmapButton]
|
|
118
|
+
def self.new_close_button(parent, winid, name=('')) end
|
|
119
|
+
|
|
120
|
+
end # BitmapButton
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
end
|
|
@@ -0,0 +1,221 @@
|
|
|
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
|
+
# A combobox that displays bitmap in front of the list items.
|
|
10
|
+
#
|
|
11
|
+
# It currently only allows using bitmaps of one size, and resizes itself so that a bitmap can be shown next to the text field.
|
|
12
|
+
#
|
|
13
|
+
# <div class="wxrb-remark">
|
|
14
|
+
# <b>Remark:</b>
|
|
15
|
+
# <p>While {Wx::BitmapComboBox} contains the {Wx::ComboBox} API, but it might not actually be derived from that class. In fact, if the platform does not have a native implementation, {Wx::BitmapComboBox} will inherit from {Wx::OwnerDrawnComboBox}. You can determine if the implementation is generic by checking whether {Wx::GENERIC_BITMAPCOMBOBOX} is defined. Currently {Wx::BitmapComboBox} is implemented natively for MSW and GTK+.
|
|
16
|
+
# </p>
|
|
17
|
+
# </div>
|
|
18
|
+
#
|
|
19
|
+
# ### Styles
|
|
20
|
+
#
|
|
21
|
+
# This class supports the following styles:
|
|
22
|
+
#
|
|
23
|
+
# - {Wx::CB_READONLY}: Creates a combobox without a text editor. On some platforms the control may appear very different when this style is used.
|
|
24
|
+
#
|
|
25
|
+
# - {Wx::CB_SORT}: Sorts the entries in the list alphabetically.
|
|
26
|
+
#
|
|
27
|
+
# - {Wx::TE_PROCESS_ENTER}: The control will generate the event {Wx::EVT_TEXT_ENTER} (otherwise pressing Enter key is either processed internally by the control or used for navigation between dialog controls). Windows only.
|
|
28
|
+
#
|
|
29
|
+
# Todocreate {Wx::CB_PROCESS_ENTER} rather than reusing {Wx::TE_PROCESS_ENTER}!
|
|
30
|
+
#
|
|
31
|
+
# ### Events emitted by this class
|
|
32
|
+
#
|
|
33
|
+
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
|
|
34
|
+
# Event handler methods for events emitted by this class:
|
|
35
|
+
#
|
|
36
|
+
# - {Wx::EvtHandler#evt_combobox}(id, meth = nil, &block): Process a {Wx::EVT_COMBOBOX} event, when an item on the list is selected.
|
|
37
|
+
#
|
|
38
|
+
# - {Wx::EvtHandler#evt_text}(id, meth = nil, &block): Process a {Wx::EVT_TEXT} event, when the combobox text changes.
|
|
39
|
+
#
|
|
40
|
+
# - {Wx::EvtHandler#evt_text_enter}(id, meth = nil, &block): Process a {Wx::EVT_TEXT_ENTER} event, when RETURN is pressed in the combobox.
|
|
41
|
+
#
|
|
42
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> WXMSW Appearance
|
|
43
|
+
# </td><td> WXGTK Appearance
|
|
44
|
+
# </td><td> WXOSX Appearance
|
|
45
|
+
# </td></tr></table></div>
|
|
46
|
+
# @see Wx::ComboBox
|
|
47
|
+
# @see Wx::Choice
|
|
48
|
+
# @see Wx::OwnerDrawnComboBox
|
|
49
|
+
# @see Wx::CommandEvent
|
|
50
|
+
#
|
|
51
|
+
#
|
|
52
|
+
# @wxrb_require USE_BITMAPCOMBOBOX
|
|
53
|
+
class BitmapComboBox < ComboBox
|
|
54
|
+
|
|
55
|
+
# @overload initialize()
|
|
56
|
+
# Default ctor.
|
|
57
|
+
# @return [Wx::BitmapComboBox]
|
|
58
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BITMAP_COMBO_BOX_NAME_STR)
|
|
59
|
+
# Constructor, creating and showing a combobox.
|
|
60
|
+
#
|
|
61
|
+
#
|
|
62
|
+
# @see Wx::BitmapComboBox#create
|
|
63
|
+
# @see Wx::Validator
|
|
64
|
+
# @param parent [Wx::Window] Parent window. Must not be nil.
|
|
65
|
+
# @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
|
|
66
|
+
# @param value [String] Initial selection string. An empty string indicates no selection.
|
|
67
|
+
# @param pos [Array(Integer, Integer), Wx::Point] Initial position.
|
|
68
|
+
# @param size [Array(Integer, Integer), Wx::Size] Initial size.
|
|
69
|
+
# @param choices [Array<String>] An array of strings with which to initialise the control.
|
|
70
|
+
# @param style [Integer] The window style, see {Wx::CB_}* flags.
|
|
71
|
+
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
|
72
|
+
# @param name [String] Control name.
|
|
73
|
+
# @return [Wx::BitmapComboBox]
|
|
74
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BITMAP_COMBO_BOX_NAME_STR, &block)
|
|
75
|
+
# Constructor, creating and showing a combobox.
|
|
76
|
+
#
|
|
77
|
+
#
|
|
78
|
+
# @see Wx::BitmapComboBox#create
|
|
79
|
+
# @see Wx::Validator
|
|
80
|
+
# @param parent [Wx::Window] Parent window. Must not be nil.
|
|
81
|
+
# @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
|
|
82
|
+
# @param value [String] Initial selection string. An empty string indicates no selection.
|
|
83
|
+
# @param pos [Array(Integer, Integer), Wx::Point] Initial position.
|
|
84
|
+
# @param size [Array(Integer, Integer), Wx::Size] Initial size.
|
|
85
|
+
# @param choices [Array<String>] An array of strings with which to initialise the control.
|
|
86
|
+
# @param style [Integer] The window style, see {Wx::CB_}* flags.
|
|
87
|
+
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
|
88
|
+
# @param name [String] Control name.
|
|
89
|
+
# @yieldparam [Wx::BitmapComboBox] win new instance
|
|
90
|
+
# @return [Wx::BitmapComboBox]
|
|
91
|
+
# @overload initialize(parent, id, value, pos, size, choices, style, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BITMAP_COMBO_BOX_NAME_STR)
|
|
92
|
+
# Constructor, creating and showing a combobox.
|
|
93
|
+
#
|
|
94
|
+
#
|
|
95
|
+
# @see Wx::BitmapComboBox#create
|
|
96
|
+
# @see Wx::Validator
|
|
97
|
+
# @param parent [Wx::Window] Parent window. Must not be nil.
|
|
98
|
+
# @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
|
|
99
|
+
# @param value [String] Initial selection string. An empty string indicates no selection.
|
|
100
|
+
# @param pos [Array(Integer, Integer), Wx::Point] Initial position.
|
|
101
|
+
# @param size [Array(Integer, Integer), Wx::Size] Initial size.
|
|
102
|
+
# @param choices [Array<String>] A {Wx::ArrayString} with which to initialise the control.
|
|
103
|
+
# @param style [Integer] The window style, see {Wx::CB_}* flags.
|
|
104
|
+
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
|
105
|
+
# @param name [String] Control name.
|
|
106
|
+
# @return [Wx::BitmapComboBox]
|
|
107
|
+
# @overload initialize(parent, id, value, pos, size, choices, style, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BITMAP_COMBO_BOX_NAME_STR, &block)
|
|
108
|
+
# Constructor, creating and showing a combobox.
|
|
109
|
+
#
|
|
110
|
+
#
|
|
111
|
+
# @see Wx::BitmapComboBox#create
|
|
112
|
+
# @see Wx::Validator
|
|
113
|
+
# @param parent [Wx::Window] Parent window. Must not be nil.
|
|
114
|
+
# @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
|
|
115
|
+
# @param value [String] Initial selection string. An empty string indicates no selection.
|
|
116
|
+
# @param pos [Array(Integer, Integer), Wx::Point] Initial position.
|
|
117
|
+
# @param size [Array(Integer, Integer), Wx::Size] Initial size.
|
|
118
|
+
# @param choices [Array<String>] A {Wx::ArrayString} with which to initialise the control.
|
|
119
|
+
# @param style [Integer] The window style, see {Wx::CB_}* flags.
|
|
120
|
+
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
|
121
|
+
# @param name [String] Control name.
|
|
122
|
+
# @yieldparam [Wx::BitmapComboBox] win new instance
|
|
123
|
+
# @return [Wx::BitmapComboBox]
|
|
124
|
+
def initialize(*args) end
|
|
125
|
+
|
|
126
|
+
# @overload append(item, bitmap=(Wx::BitmapBundle.new()))
|
|
127
|
+
# Adds the item to the end of the combo box.
|
|
128
|
+
# @param item [String]
|
|
129
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
|
130
|
+
# @return [Integer]
|
|
131
|
+
# @overload append(item, bitmap, clientData)
|
|
132
|
+
# Adds the item to the end of the combo box, associating the given untyped, client data pointer clientData with the item.
|
|
133
|
+
# @param item [String]
|
|
134
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
|
135
|
+
# @param clientData [Object]
|
|
136
|
+
# @return [Integer]
|
|
137
|
+
# @overload append(item, bitmap, clientData)
|
|
138
|
+
# Adds the item to the end of the combo box, associating the given typed client data pointer clientData with the item.
|
|
139
|
+
# @param item [String]
|
|
140
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
|
141
|
+
# @param clientData [Object]
|
|
142
|
+
# @return [Integer]
|
|
143
|
+
def append(*args) end
|
|
144
|
+
|
|
145
|
+
# @overload create(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BITMAP_COMBO_BOX_NAME_STR)
|
|
146
|
+
# Creates the combobox for two-step construction.
|
|
147
|
+
# @param parent [Wx::Window]
|
|
148
|
+
# @param id [Integer]
|
|
149
|
+
# @param value [String]
|
|
150
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
|
151
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
152
|
+
# @param choices [Array<String>]
|
|
153
|
+
# @param style [Integer]
|
|
154
|
+
# @param validator [Wx::Validator]
|
|
155
|
+
# @param name [String]
|
|
156
|
+
# @return [Boolean]
|
|
157
|
+
# @overload create(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BITMAP_COMBO_BOX_NAME_STR)
|
|
158
|
+
# Creates the combobox for two-step construction.
|
|
159
|
+
# @param parent [Wx::Window]
|
|
160
|
+
# @param id [Integer]
|
|
161
|
+
# @param value [String]
|
|
162
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
|
163
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
164
|
+
# @param choices [Array<String>]
|
|
165
|
+
# @param style [Integer]
|
|
166
|
+
# @param validator [Wx::Validator]
|
|
167
|
+
# @param name [String]
|
|
168
|
+
# @return [Boolean]
|
|
169
|
+
def create(*args) end
|
|
170
|
+
|
|
171
|
+
# Returns the size of the bitmaps used in the combo box.
|
|
172
|
+
#
|
|
173
|
+
# If the combo box is empty, then {Wx::DEFAULT_SIZE} is returned.
|
|
174
|
+
# @return [Wx::Size]
|
|
175
|
+
def get_bitmap_size; end
|
|
176
|
+
alias_method :bitmap_size, :get_bitmap_size
|
|
177
|
+
|
|
178
|
+
# Returns the bitmap of the item with the given index.
|
|
179
|
+
# @param n [Integer]
|
|
180
|
+
# @return [Wx::Bitmap]
|
|
181
|
+
def get_item_bitmap(n) end
|
|
182
|
+
alias_method :item_bitmap, :get_item_bitmap
|
|
183
|
+
|
|
184
|
+
# @overload insert(item, bitmap, pos)
|
|
185
|
+
# Inserts the item into the list before pos.
|
|
186
|
+
#
|
|
187
|
+
# Not valid for {Wx::CB_SORT} style, use {Wx::BitmapComboBox#append} instead.
|
|
188
|
+
# @param item [String]
|
|
189
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
|
190
|
+
# @param pos [Integer]
|
|
191
|
+
# @return [Integer]
|
|
192
|
+
# @overload insert(item, bitmap, pos, clientData)
|
|
193
|
+
# Inserts the item into the list before pos, associating the given untyped, client data pointer with the item.
|
|
194
|
+
#
|
|
195
|
+
# Not valid for {Wx::CB_SORT} style, use {Wx::BitmapComboBox#append} instead.
|
|
196
|
+
# @param item [String]
|
|
197
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
|
198
|
+
# @param pos [Integer]
|
|
199
|
+
# @param clientData [Object]
|
|
200
|
+
# @return [Integer]
|
|
201
|
+
# @overload insert(item, bitmap, pos, clientData)
|
|
202
|
+
# Inserts the item into the list before pos, associating the given typed client data pointer with the item.
|
|
203
|
+
#
|
|
204
|
+
# Not valid for {Wx::CB_SORT} style, use {Wx::BitmapComboBox#append} instead.
|
|
205
|
+
# @param item [String]
|
|
206
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
|
207
|
+
# @param pos [Integer]
|
|
208
|
+
# @param clientData [Object]
|
|
209
|
+
# @return [Integer]
|
|
210
|
+
def insert(*args) end
|
|
211
|
+
|
|
212
|
+
# Sets the bitmap for the given item.
|
|
213
|
+
# @param n [Integer]
|
|
214
|
+
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
|
215
|
+
# @return [void]
|
|
216
|
+
def set_item_bitmap(n, bitmap) end
|
|
217
|
+
|
|
218
|
+
end # BitmapComboBox
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
end
|
|
@@ -0,0 +1,273 @@
|
|
|
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
|
+
BK_DEFAULT = 0
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
BK_TOP = 16
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
BK_BOTTOM = 32
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
BK_LEFT = 64
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
BK_RIGHT = 128
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
BK_ALIGN_MASK = 240
|
|
26
|
+
|
|
27
|
+
# No tab at the specified point.
|
|
28
|
+
#
|
|
29
|
+
BK_HITTEST_NOWHERE = 1
|
|
30
|
+
|
|
31
|
+
# The point is over an icon.
|
|
32
|
+
#
|
|
33
|
+
BK_HITTEST_ONICON = 2
|
|
34
|
+
|
|
35
|
+
# The point is over a tab label.
|
|
36
|
+
#
|
|
37
|
+
BK_HITTEST_ONLABEL = 4
|
|
38
|
+
|
|
39
|
+
# The point if over a tab item but not over its icon or label.
|
|
40
|
+
#
|
|
41
|
+
BK_HITTEST_ONITEM = 16
|
|
42
|
+
|
|
43
|
+
# The point is over the page area.
|
|
44
|
+
#
|
|
45
|
+
BK_HITTEST_ONPAGE = 8
|
|
46
|
+
|
|
47
|
+
# A book control is a convenient way of displaying multiple pages of information, displayed one page at a time.
|
|
48
|
+
#
|
|
49
|
+
# wxWidgets has five variants of this control:
|
|
50
|
+
#
|
|
51
|
+
# - {Wx::Choicebook}: controlled by a {Wx::Choice}
|
|
52
|
+
#
|
|
53
|
+
# - {Wx::Listbook}: controlled by a {Wx::ListCtrl}
|
|
54
|
+
#
|
|
55
|
+
# - {Wx::Notebook}: uses a row of tabs
|
|
56
|
+
#
|
|
57
|
+
# - {Wx::Treebook}: controlled by a {Wx::TreeCtrl}
|
|
58
|
+
#
|
|
59
|
+
# - {Wx::Toolbook}: controlled by a {Wx::ToolBar}
|
|
60
|
+
#
|
|
61
|
+
# This abstract class is the parent of all these book controls, and provides their basic interface. This is a pure virtual class so you cannot allocate it directly.
|
|
62
|
+
#
|
|
63
|
+
# Category: Book Controls
|
|
64
|
+
# @see wxBookCtrl Overview
|
|
65
|
+
#
|
|
66
|
+
#
|
|
67
|
+
# @wxrb_require USE_AUI|USE_NOTEBOOK|USE_LISTBOOK|USE_CHOICEBOOK|USE_TOOLBOOK|USE_TREEBOOK
|
|
68
|
+
class BookCtrlBase < Control
|
|
69
|
+
|
|
70
|
+
include Wx::WithImages
|
|
71
|
+
|
|
72
|
+
# Symbolic constant indicating that no image should be used.
|
|
73
|
+
#
|
|
74
|
+
NO_IMAGE = -1
|
|
75
|
+
|
|
76
|
+
# Returns the image index for the given page.
|
|
77
|
+
# @param nPage [Integer]
|
|
78
|
+
# @return [Integer]
|
|
79
|
+
def get_page_image(nPage) end
|
|
80
|
+
alias_method :page_image, :get_page_image
|
|
81
|
+
|
|
82
|
+
# Sets the image index for the given page.
|
|
83
|
+
#
|
|
84
|
+
# image is an index into the image list which was set with {Wx::BookCtrlBase#set_image_list}.
|
|
85
|
+
# @param page [Integer]
|
|
86
|
+
# @param image [Integer]
|
|
87
|
+
# @return [Boolean]
|
|
88
|
+
def set_page_image(page, image) end
|
|
89
|
+
|
|
90
|
+
# Returns the string for the given page.
|
|
91
|
+
# @param nPage [Integer]
|
|
92
|
+
# @return [String]
|
|
93
|
+
def get_page_text(nPage) end
|
|
94
|
+
alias_method :page_text, :get_page_text
|
|
95
|
+
|
|
96
|
+
# Sets the text for the given page.
|
|
97
|
+
#
|
|
98
|
+
# The text may contain mnemonics, i.e. accelerator characters preceded by the ampersand (<code>&</code>) character. If you need to include a literal ampersand in the text, you need to double it, i.e. use <code>&&</code>.
|
|
99
|
+
# @param page [Integer]
|
|
100
|
+
# @param text [String]
|
|
101
|
+
# @return [Boolean]
|
|
102
|
+
def set_page_text(page, text) end
|
|
103
|
+
|
|
104
|
+
# Returns the currently selected page, or {Wx::NOT_FOUND} if none was selected.
|
|
105
|
+
#
|
|
106
|
+
# Note that this method may return either the previously or newly selected page when called from the EVT_BOOKCTRL_PAGE_CHANGED handler depending on the platform and so {Wx::BookCtrlEvent#get_selection} should be used instead in this case.
|
|
107
|
+
# @return [Integer]
|
|
108
|
+
def get_selection; end
|
|
109
|
+
alias_method :selection, :get_selection
|
|
110
|
+
|
|
111
|
+
# Returns the currently selected page or nil.
|
|
112
|
+
# @return [Wx::Window]
|
|
113
|
+
def get_current_page; end
|
|
114
|
+
alias_method :current_page, :get_current_page
|
|
115
|
+
|
|
116
|
+
# Sets the selection to the given page, returning the previous selection.
|
|
117
|
+
#
|
|
118
|
+
# Notice that the call to this function generates the page changing events, use the {Wx::BookCtrlBase#change_selection} function if you don't want these events to be generated.
|
|
119
|
+
# @see Wx::BookCtrlBase#get_selection
|
|
120
|
+
# @param page [Integer]
|
|
121
|
+
# @return [Integer]
|
|
122
|
+
def set_selection(page) end
|
|
123
|
+
alias_method :selection=, :set_selection
|
|
124
|
+
|
|
125
|
+
# Cycles through the tabs.
|
|
126
|
+
#
|
|
127
|
+
# The call to this function generates the page changing events.
|
|
128
|
+
# @param forward [Boolean]
|
|
129
|
+
# @return [void]
|
|
130
|
+
def advance_selection(forward=true) end
|
|
131
|
+
|
|
132
|
+
# Changes the selection to the given page, returning the previous selection.
|
|
133
|
+
#
|
|
134
|
+
# This function behaves as {Wx::BookCtrlBase#set_selection} but does not generate the page changing events.
|
|
135
|
+
# See User Generated Events vs Programmatically Generated Events for more information.
|
|
136
|
+
# @param page [Integer]
|
|
137
|
+
# @return [Integer]
|
|
138
|
+
def change_selection(page) end
|
|
139
|
+
|
|
140
|
+
# Returns the index of the specified tab window or {Wx::NOT_FOUND} if not found.
|
|
141
|
+
#
|
|
142
|
+
# The zero-based tab index or {Wx::NOT_FOUND} if not found.
|
|
143
|
+
# @param page [Wx::Window] One of the control pages.
|
|
144
|
+
# @return [Integer]
|
|
145
|
+
def find_page(page) end
|
|
146
|
+
|
|
147
|
+
# Adds a new page.
|
|
148
|
+
#
|
|
149
|
+
# The page must have the book control itself as the parent and must not have been added to this control previously.
|
|
150
|
+
# The call to this function will generate the page changing and page changed events if select is true, but not when inserting the very first page (as there is no previous page selection to switch from in this case and so it wouldn't make sense to e.g. veto such event).
|
|
151
|
+
#
|
|
152
|
+
# true if successful, false otherwise.
|
|
153
|
+
#
|
|
154
|
+
# <div class="wxrb-remark">
|
|
155
|
+
# <b>Remark:</b>
|
|
156
|
+
# <p>Do not delete the page, it will be deleted by the book control.
|
|
157
|
+
# </p>
|
|
158
|
+
# </div>
|
|
159
|
+
# @see Wx::BookCtrlBase#insert_page
|
|
160
|
+
# @param page [Wx::Window] Specifies the new page.
|
|
161
|
+
# @param text [String] Specifies the text of the new page. Note that it may contain mnemonic characters, see {Wx::BookCtrlBase#set_page_text} for more information.
|
|
162
|
+
# @param select [Boolean] Specifies whether the page should be selected.
|
|
163
|
+
# @param imageId [Integer] Specifies the optional image index for the new page.
|
|
164
|
+
# @return [Boolean]
|
|
165
|
+
def add_page(page, text, select=false, imageId=Wx::AUI::AuiNotebook::NO_IMAGE) end
|
|
166
|
+
|
|
167
|
+
# Deletes all pages.
|
|
168
|
+
# @return [Boolean]
|
|
169
|
+
def delete_all_pages; end
|
|
170
|
+
|
|
171
|
+
# Deletes the specified page, and the associated window.
|
|
172
|
+
#
|
|
173
|
+
# The call to this function generates the page changing events when deleting the currently selected page or a page preceding it in the index order, but it does not send any events when deleting the last page: while in this case the selection also changes, it becomes invalid and for compatibility reasons the control never generates events with the invalid selection index.
|
|
174
|
+
# @param page [Integer]
|
|
175
|
+
# @return [Boolean]
|
|
176
|
+
def delete_page(page) end
|
|
177
|
+
|
|
178
|
+
# Inserts a new page at the specified position.
|
|
179
|
+
#
|
|
180
|
+
# true if successful, false otherwise.
|
|
181
|
+
#
|
|
182
|
+
# <div class="wxrb-remark">
|
|
183
|
+
# <b>Remark:</b>
|
|
184
|
+
# <p>Do not delete the page, it will be deleted by the book control.
|
|
185
|
+
# </p>
|
|
186
|
+
# </div>
|
|
187
|
+
# @see Wx::BookCtrlBase#add_page
|
|
188
|
+
# @param index [Integer] Specifies the position for the new page.
|
|
189
|
+
# @param page [Wx::Window] Specifies the new page.
|
|
190
|
+
# @param text [String] Specifies the text of the new page. Note that it may contain mnemonic characters, see {Wx::BookCtrlBase#set_page_text} for more information.
|
|
191
|
+
# @param select [Boolean] Specifies whether the page should be selected.
|
|
192
|
+
# @param imageId [Integer] Specifies the optional image index for the new page.
|
|
193
|
+
# @return [Boolean]
|
|
194
|
+
def insert_page(index, page, text, select=false, imageId=Wx::AUI::AuiNotebook::NO_IMAGE) end
|
|
195
|
+
|
|
196
|
+
# Deletes the specified page, without deleting the associated window.
|
|
197
|
+
#
|
|
198
|
+
# See {Wx::BookCtrlBase#delete_page} for a note about the events generated by this function.
|
|
199
|
+
# @param page [Integer]
|
|
200
|
+
# @return [Boolean]
|
|
201
|
+
def remove_page(page) end
|
|
202
|
+
|
|
203
|
+
# Returns the number of pages in the control.
|
|
204
|
+
# @return [Integer]
|
|
205
|
+
def get_page_count; end
|
|
206
|
+
alias_method :page_count, :get_page_count
|
|
207
|
+
|
|
208
|
+
# Returns the window at the given page position.
|
|
209
|
+
# @param page [Integer]
|
|
210
|
+
# @return [Wx::Window]
|
|
211
|
+
def get_page(page) end
|
|
212
|
+
alias_method :page, :get_page
|
|
213
|
+
|
|
214
|
+
# Returns the sizer containing the control for page selection, if any.
|
|
215
|
+
#
|
|
216
|
+
# Some derived classes, e.g. {Wx::Choicebook}, use a separate control for switching the currently selected page and this function returns the sizer used for positioning this control and the pages themselves inside the book control.
|
|
217
|
+
# Note that many classes, notably {Wx::Notebook}, do not use any such control, and this function simply returns nil for them.
|
|
218
|
+
# Non-owning pointer to the sizer or nil.
|
|
219
|
+
# @return [Wx::Sizer]
|
|
220
|
+
def get_control_sizer; end
|
|
221
|
+
alias_method :control_sizer, :get_control_sizer
|
|
222
|
+
|
|
223
|
+
# @overload initialize()
|
|
224
|
+
# Default ctor.
|
|
225
|
+
# @return [Wx::BookCtrlBase]
|
|
226
|
+
# @overload initialize(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
|
|
227
|
+
# Constructs the book control with the given parameters.
|
|
228
|
+
#
|
|
229
|
+
# See {Wx::BookCtrlBase#create} for two-step construction.
|
|
230
|
+
# @param parent [Wx::Window]
|
|
231
|
+
# @param winid [Integer]
|
|
232
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
|
233
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
234
|
+
# @param style [Integer]
|
|
235
|
+
# @param name [String]
|
|
236
|
+
# @return [Wx::BookCtrlBase]
|
|
237
|
+
def initialize(*args) end
|
|
238
|
+
|
|
239
|
+
# Constructs the book control with the given parameters.
|
|
240
|
+
# @param parent [Wx::Window]
|
|
241
|
+
# @param winid [Integer]
|
|
242
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
|
243
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
244
|
+
# @param style [Integer]
|
|
245
|
+
# @param name [String]
|
|
246
|
+
# @return [Boolean]
|
|
247
|
+
def create(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=('')) end
|
|
248
|
+
|
|
249
|
+
# Sets the width and height of the pages.
|
|
250
|
+
#
|
|
251
|
+
# <div class="wxrb-note">
|
|
252
|
+
# <b>Note:</b>
|
|
253
|
+
# <p>This method is currently not implemented for WXGTK.
|
|
254
|
+
# </p>
|
|
255
|
+
# </div>
|
|
256
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
257
|
+
# @return [void]
|
|
258
|
+
def set_page_size(size) end
|
|
259
|
+
alias_method :page_size=, :set_page_size
|
|
260
|
+
|
|
261
|
+
# Returns the index of the tab at the specified position or {Wx::NOT_FOUND} if none.
|
|
262
|
+
#
|
|
263
|
+
# If flags parameter is non-null, the position of the point inside the tab is returned as well.
|
|
264
|
+
#
|
|
265
|
+
# Returns the zero-based tab index or {Wx::NOT_FOUND} if there is no tab at the specified position.
|
|
266
|
+
# @param pt [Array(Integer, Integer), Wx::Point] Specifies the point for the hit test.
|
|
267
|
+
# @return [Array(Integer,Integer)]
|
|
268
|
+
def hit_test(pt) end
|
|
269
|
+
|
|
270
|
+
end # BookCtrlBase
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
# This class represents the events generated by book controls ({Wx::Notebook}, {Wx::Listbook}, {Wx::Choicebook}, {Wx::Treebook}, {Wx::AUI::AuiNotebook}).
|
|
10
|
+
#
|
|
11
|
+
# The page CHANGING events are sent before the current page is changed. It allows the program to examine the current page (which can be retrieved with {Wx::BookCtrlEvent#get_old_selection}) and to veto the page change by calling {Wx::NotifyEvent#veto} if, for example, the current values in the controls of the old page are invalid. However the handler for this event does not have access to the new page being selected as this information is not always provided by the underlying native control.
|
|
12
|
+
# The page CHANGED events are sent after the page has been changed and the program cannot veto it any more, it just informs it about the page change. However the handler for this event has access to the newly selected page.
|
|
13
|
+
# To summarize, if the program is interested in validating the page values before allowing the user to change it, it should process the page changing event. If it just needs to react to the page change after it happened, handling page changed events is enough. It is also perfectly possible to handle both of these events, for different purposes.
|
|
14
|
+
#
|
|
15
|
+
# Category: {Wx::Events}, Book Controls
|
|
16
|
+
# @see Wx::Notebook
|
|
17
|
+
# @see Wx::Listbook
|
|
18
|
+
# @see Wx::Choicebook
|
|
19
|
+
# @see Wx::Treebook
|
|
20
|
+
# @see Wx::Toolbook
|
|
21
|
+
# @see Wx::AUI::AuiNotebook
|
|
22
|
+
#
|
|
23
|
+
#
|
|
24
|
+
# @wxrb_require USE_AUI|USE_NOTEBOOK|USE_LISTBOOK|USE_CHOICEBOOK|USE_TOOLBOOK|USE_TREEBOOK
|
|
25
|
+
class BookCtrlEvent < NotifyEvent
|
|
26
|
+
|
|
27
|
+
# Constructor (used internally by wxWidgets only).
|
|
28
|
+
# @param eventType [Wx::TipWindow::EventType]
|
|
29
|
+
# @param id [Integer]
|
|
30
|
+
# @param sel [Integer]
|
|
31
|
+
# @param oldSel [Integer]
|
|
32
|
+
# @return [Wx::BookCtrlEvent]
|
|
33
|
+
def initialize(eventType=Wx::EVT_NULL, id=0, sel=Wx::NOT_FOUND, oldSel=Wx::NOT_FOUND) end
|
|
34
|
+
|
|
35
|
+
# Returns the page that was selected before the change, {Wx::NOT_FOUND} if none was selected.
|
|
36
|
+
# @return [Integer]
|
|
37
|
+
def get_old_selection; end
|
|
38
|
+
alias_method :old_selection, :get_old_selection
|
|
39
|
+
|
|
40
|
+
# Returns the currently selected page, or {Wx::NOT_FOUND} if none was selected.
|
|
41
|
+
#
|
|
42
|
+
# <div class="wxrb-note">
|
|
43
|
+
# <b>Note:</b>
|
|
44
|
+
# <p>under Windows, {Wx::BookCtrlEvent#get_selection} will return the same value as {Wx::BookCtrlEvent#get_old_selection} when called from the EVT_BOOKCTRL_PAGE_CHANGING handler and not the page which is going to be selected.
|
|
45
|
+
# </p>
|
|
46
|
+
# </div>
|
|
47
|
+
# @return [Integer]
|
|
48
|
+
def get_selection; end
|
|
49
|
+
alias_method :selection, :get_selection
|
|
50
|
+
|
|
51
|
+
# Sets the id of the page selected before the change.
|
|
52
|
+
# @param page [Integer]
|
|
53
|
+
# @return [void]
|
|
54
|
+
def set_old_selection(page) end
|
|
55
|
+
alias_method :old_selection=, :set_old_selection
|
|
56
|
+
|
|
57
|
+
# Sets the selection member variable.
|
|
58
|
+
# @param page [Integer]
|
|
59
|
+
# @return [void]
|
|
60
|
+
def set_selection(page) end
|
|
61
|
+
alias_method :selection=, :set_selection
|
|
62
|
+
|
|
63
|
+
end # BookCtrlEvent
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
end
|