wxruby3 0.9.5-x64-mingw-ucrt → 0.9.7-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.wxconfig +9 -8
- data/INSTALL.md +315 -78
- data/README.md +31 -20
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/core/ext.rb +22 -3
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
- data/lib/wx/doc/gen/accelerator.rb +1 -1
- data/lib/wx/doc/gen/accessible.rb +1 -1
- data/lib/wx/doc/gen/activity_indicator.rb +1 -1
- data/lib/wx/doc/gen/animation.rb +1 -1
- data/lib/wx/doc/gen/animation_ctrl.rb +1 -1
- data/lib/wx/doc/gen/any_button.rb +1 -1
- data/lib/wx/doc/gen/app.rb +1 -1
- data/lib/wx/doc/gen/app_traits.rb +1 -1
- data/lib/wx/doc/gen/art_provider.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +430 -426
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +34 -30
- data/lib/wx/doc/gen/aui/aui_manager.rb +352 -348
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +107 -103
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +157 -153
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +42 -38
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +109 -105
- data/lib/wx/doc/gen/aui/aui_notebook.rb +438 -434
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +145 -141
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +689 -685
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +369 -365
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +100 -96
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +445 -441
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +268 -264
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +179 -175
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +219 -215
- data/lib/wx/doc/gen/banner_window.rb +1 -1
- data/lib/wx/doc/gen/bitmap.rb +1 -1
- data/lib/wx/doc/gen/bitmap_button.rb +1 -1
- data/lib/wx/doc/gen/bitmap_combo_box.rb +1 -1
- data/lib/wx/doc/gen/book_ctrl_base.rb +1 -1
- data/lib/wx/doc/gen/book_ctrl_event.rb +1 -1
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +1 -1
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +1 -1
- data/lib/wx/doc/gen/calculate_layout_event.rb +1 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +1 -1
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
- data/lib/wx/doc/gen/calendar_event.rb +1 -1
- data/lib/wx/doc/gen/caret.rb +1 -1
- data/lib/wx/doc/gen/check_box.rb +1 -1
- data/lib/wx/doc/gen/check_list_box.rb +1 -1
- data/lib/wx/doc/gen/choice.rb +1 -1
- data/lib/wx/doc/gen/choicebook.rb +1 -1
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +1 -1
- data/lib/wx/doc/gen/collapsible_pane.rb +1 -1
- data/lib/wx/doc/gen/collapsible_pane_event.rb +1 -1
- data/lib/wx/doc/gen/colour.rb +1 -1
- data/lib/wx/doc/gen/colour_dialog.rb +1 -1
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +1 -1
- data/lib/wx/doc/gen/colour_picker_event.rb +1 -1
- data/lib/wx/doc/gen/combo_box.rb +1 -1
- data/lib/wx/doc/gen/combo_ctrl.rb +1 -1
- data/lib/wx/doc/gen/command_link_button.rb +1 -1
- data/lib/wx/doc/gen/config_base.rb +1 -1
- data/lib/wx/doc/gen/context_help_button.rb +1 -1
- data/lib/wx/doc/gen/control.rb +1 -1
- data/lib/wx/doc/gen/control_with_items.rb +1 -1
- data/lib/wx/doc/gen/core.rb +5 -5
- data/lib/wx/doc/gen/cursor.rb +1 -1
- data/lib/wx/doc/gen/data_format.rb +1 -1
- data/lib/wx/doc/gen/data_object.rb +1 -1
- data/lib/wx/doc/gen/data_object_simple_base.rb +1 -1
- data/lib/wx/doc/gen/date_event.rb +1 -1
- data/lib/wx/doc/gen/date_picker_ctrl.rb +1 -1
- data/lib/wx/doc/gen/dc.rb +1 -1
- data/lib/wx/doc/gen/defs.rb +1 -1
- data/lib/wx/doc/gen/dial_up_event.rb +1 -1
- data/lib/wx/doc/gen/dial_up_manager.rb +1 -1
- data/lib/wx/doc/gen/dialog.rb +1 -1
- data/lib/wx/doc/gen/dir_dialog.rb +1 -1
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -1
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +1 -1
- data/lib/wx/doc/gen/drag_drop.rb +1 -1
- data/lib/wx/doc/gen/drag_image.rb +1 -1
- data/lib/wx/doc/gen/editable_list_box.rb +1 -1
- data/lib/wx/doc/gen/event.rb +1 -1
- data/lib/wx/doc/gen/event_blocker.rb +1 -1
- data/lib/wx/doc/gen/event_filter.rb +1 -1
- data/lib/wx/doc/gen/events.rb +1 -1
- data/lib/wx/doc/gen/evt_handler.rb +1 -1
- data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
- data/lib/wx/doc/gen/file_ctrl.rb +1 -1
- data/lib/wx/doc/gen/file_ctrl_event.rb +1 -1
- data/lib/wx/doc/gen/file_dialog.rb +1 -1
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +1 -1
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +1 -1
- data/lib/wx/doc/gen/file_dir_picker_event.rb +1 -1
- data/lib/wx/doc/gen/file_picker_ctrl.rb +1 -1
- data/lib/wx/doc/gen/file_system.rb +1 -1
- data/lib/wx/doc/gen/find_dialog_event.rb +1 -1
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/flex_grid_sizer.rb +1 -1
- data/lib/wx/doc/gen/font.rb +1 -1
- data/lib/wx/doc/gen/font_data.rb +1 -1
- data/lib/wx/doc/gen/font_dialog.rb +1 -1
- data/lib/wx/doc/gen/font_picker_ctrl.rb +1 -1
- data/lib/wx/doc/gen/font_picker_event.rb +1 -1
- data/lib/wx/doc/gen/frame.rb +1 -1
- data/lib/wx/doc/gen/fs_file.rb +1 -1
- data/lib/wx/doc/gen/functions.rb +1 -1
- data/lib/wx/doc/gen/gauge.rb +1 -1
- data/lib/wx/doc/gen/gb_sizer_item.rb +1 -1
- data/lib/wx/doc/gen/gcdc.rb +1 -1
- data/lib/wx/doc/gen/gdi_common.rb +3 -3
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +1 -1
- data/lib/wx/doc/gen/graphics_context.rb +1 -1
- data/lib/wx/doc/gen/graphics_object.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +28 -24
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +251 -247
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +25 -21
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +27 -23
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +38 -34
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +25 -21
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +35 -31
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +28 -24
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +34 -30
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +30 -26
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +183 -179
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +29 -25
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +33 -29
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +34 -30
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +67 -63
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +34 -30
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +25 -21
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +93 -89
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +25 -21
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +38 -34
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +2722 -2718
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +82 -78
- data/lib/wx/doc/gen/grid/grid_event.rb +106 -102
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +93 -89
- data/lib/wx/doc/gen/grid/grid_size_event.rb +70 -66
- data/lib/wx/doc/gen/grid/grid_string_table.rb +130 -126
- data/lib/wx/doc/gen/grid/grid_table_base.rb +303 -299
- data/lib/wx/doc/gen/grid/grid_table_message.rb +70 -66
- data/lib/wx/doc/gen/grid_bag_sizer.rb +1 -1
- data/lib/wx/doc/gen/grid_sizer.rb +1 -1
- data/lib/wx/doc/gen/gui_event_loop.rb +1 -1
- data/lib/wx/doc/gen/header_ctrl.rb +1 -1
- data/lib/wx/doc/gen/header_ctrl_event.rb +1 -1
- data/lib/wx/doc/gen/help_controller.rb +1 -1
- data/lib/wx/doc/gen/help_provider.rb +1 -1
- data/lib/wx/doc/gen/html/html_cell.rb +515 -511
- data/lib/wx/doc/gen/html/html_cell_event.rb +58 -54
- data/lib/wx/doc/gen/html/html_easy_printing.rb +171 -167
- data/lib/wx/doc/gen/html/html_help_controller.rb +292 -288
- data/lib/wx/doc/gen/html/html_help_data.rb +147 -143
- data/lib/wx/doc/gen/html/html_help_window.rb +232 -228
- data/lib/wx/doc/gen/html/html_link_event.rb +30 -26
- data/lib/wx/doc/gen/html/html_list_box.rb +301 -297
- data/lib/wx/doc/gen/html/html_printout.rb +94 -90
- data/lib/wx/doc/gen/html/html_window.rb +406 -402
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +1 -1
- data/lib/wx/doc/gen/hyperlink_event.rb +1 -1
- data/lib/wx/doc/gen/icon.rb +1 -1
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +1 -1
- data/lib/wx/doc/gen/image_list.rb +1 -1
- data/lib/wx/doc/gen/info_bar.rb +1 -1
- data/lib/wx/doc/gen/keyboard_state.rb +1 -1
- data/lib/wx/doc/gen/list_box.rb +1 -1
- data/lib/wx/doc/gen/list_ctrl.rb +1 -1
- data/lib/wx/doc/gen/list_event.rb +1 -1
- data/lib/wx/doc/gen/listbook.rb +1 -1
- data/lib/wx/doc/gen/locale.rb +1 -1
- data/lib/wx/doc/gen/log.rb +1 -1
- data/lib/wx/doc/gen/mdi_client_window.rb +1 -1
- data/lib/wx/doc/gen/mdi_frame.rb +1 -1
- data/lib/wx/doc/gen/media_ctrl.rb +1 -1
- data/lib/wx/doc/gen/media_event.rb +1 -1
- data/lib/wx/doc/gen/memory_dc.rb +1 -1
- data/lib/wx/doc/gen/menu.rb +1 -1
- data/lib/wx/doc/gen/menu_bar.rb +1 -1
- data/lib/wx/doc/gen/menu_item.rb +1 -1
- data/lib/wx/doc/gen/message_dialog.rb +1 -1
- data/lib/wx/doc/gen/mini_frame.rb +1 -1
- data/lib/wx/doc/gen/mirror_dc.rb +1 -1
- data/lib/wx/doc/gen/mouse_state.rb +1 -1
- data/lib/wx/doc/gen/multi_choice_dialog.rb +1 -1
- data/lib/wx/doc/gen/non_owned_window.rb +1 -1
- data/lib/wx/doc/gen/notebook.rb +1 -1
- data/lib/wx/doc/gen/num_validator.rb +1 -1
- data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
- data/lib/wx/doc/gen/object.rb +1 -1
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +1 -1
- data/lib/wx/doc/gen/paint_dc.rb +1 -1
- data/lib/wx/doc/gen/palette.rb +1 -1
- data/lib/wx/doc/gen/panel.rb +1 -1
- data/lib/wx/doc/gen/pen.rb +1 -1
- data/lib/wx/doc/gen/persistence_manager.rb +1 -1
- data/lib/wx/doc/gen/persistent_object.rb +1 -1
- data/lib/wx/doc/gen/persistent_window.rb +1 -1
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +33 -29
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +299 -295
- data/lib/wx/doc/gen/pg/pg_cell.rb +162 -158
- data/lib/wx/doc/gen/pg/pg_editor.rb +693 -689
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +133 -129
- data/lib/wx/doc/gen/pg/pg_properties.rb +2662 -2658
- data/lib/wx/doc/gen/pg/pg_property.rb +1929 -1925
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +275 -271
- data/lib/wx/doc/gen/pg/property_grid.rb +708 -704
- data/lib/wx/doc/gen/pg/property_grid_event.rb +168 -164
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +1071 -1067
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +386 -382
- data/lib/wx/doc/gen/pg/property_grid_page.rb +267 -263
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +147 -143
- data/lib/wx/doc/gen/picker_base.rb +1 -1
- data/lib/wx/doc/gen/platform_info.rb +1 -1
- data/lib/wx/doc/gen/popup_window.rb +1 -1
- data/lib/wx/doc/gen/progress_dialog.rb +1 -1
- data/lib/wx/doc/gen/property_sheet_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +32 -28
- data/lib/wx/doc/gen/prt/post_script_dc.rb +21 -17
- data/lib/wx/doc/gen/prt/preview_frame.rb +49 -45
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +126 -122
- data/lib/wx/doc/gen/prt/print_data.rb +637 -633
- data/lib/wx/doc/gen/prt/print_dialog.rb +43 -39
- data/lib/wx/doc/gen/prt/printer.rb +484 -480
- data/lib/wx/doc/gen/prt/printer_dc.rb +26 -22
- data/lib/wx/doc/gen/query_layout_info_event.rb +1 -1
- data/lib/wx/doc/gen/radio_box.rb +1 -1
- data/lib/wx/doc/gen/radio_button.rb +1 -1
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1716 -1712
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +239 -235
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +34 -30
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +439 -435
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +52 -48
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +116 -112
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +205 -201
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +44 -40
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +129 -125
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +229 -225
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +34 -30
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +329 -325
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +31 -27
- data/lib/wx/doc/gen/rearrange_ctrl.rb +1 -1
- data/lib/wx/doc/gen/rearrange_list.rb +1 -1
- data/lib/wx/doc/gen/region.rb +1 -1
- data/lib/wx/doc/gen/region_iterator.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +424 -420
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1148 -1144
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +30 -26
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +516 -512
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +1991 -1987
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +159 -155
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +167 -163
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +271 -267
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +171 -167
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +88 -84
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +323 -319
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2819 -2815
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1187 -1183
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +242 -238
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +286 -282
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +181 -177
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +47 -43
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +145 -141
- data/lib/wx/doc/gen/sash_event.rb +1 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +1 -1
- data/lib/wx/doc/gen/sash_window.rb +1 -1
- data/lib/wx/doc/gen/scaled_dc.rb +1 -1
- data/lib/wx/doc/gen/screen_dc.rb +1 -1
- data/lib/wx/doc/gen/scroll_bar.rb +1 -1
- data/lib/wx/doc/gen/scrolled_canvas.rb +1 -1
- data/lib/wx/doc/gen/scrolled_control.rb +1 -1
- data/lib/wx/doc/gen/scrolled_window.rb +1 -1
- data/lib/wx/doc/gen/search_ctrl.rb +1 -1
- data/lib/wx/doc/gen/simplebook.rb +1 -1
- data/lib/wx/doc/gen/single_choice_dialog.rb +1 -1
- data/lib/wx/doc/gen/sizer.rb +1 -1
- data/lib/wx/doc/gen/sizer_item.rb +1 -1
- data/lib/wx/doc/gen/slider.rb +1 -1
- data/lib/wx/doc/gen/spin_button.rb +1 -1
- data/lib/wx/doc/gen/spin_ctrl.rb +1 -1
- data/lib/wx/doc/gen/spin_ctrl_double.rb +1 -1
- data/lib/wx/doc/gen/spin_double_event.rb +1 -1
- data/lib/wx/doc/gen/spin_event.rb +1 -1
- data/lib/wx/doc/gen/splash_screen.rb +1 -1
- data/lib/wx/doc/gen/splitter_event.rb +1 -1
- data/lib/wx/doc/gen/splitter_window.rb +1 -1
- data/lib/wx/doc/gen/static_bitmap.rb +1 -1
- data/lib/wx/doc/gen/static_box.rb +1 -1
- data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
- data/lib/wx/doc/gen/static_line.rb +1 -1
- data/lib/wx/doc/gen/static_text.rb +1 -1
- data/lib/wx/doc/gen/status_bar.rb +1 -1
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4202 -4198
- data/lib/wx/doc/gen/stc/styled_text_event.rb +7511 -7507
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +1 -1
- data/lib/wx/doc/gen/svg_file_dc.rb +1 -1
- data/lib/wx/doc/gen/system_options.rb +1 -1
- data/lib/wx/doc/gen/system_settings.rb +1 -1
- data/lib/wx/doc/gen/task_bar_button.rb +1 -1
- data/lib/wx/doc/gen/task_bar_icon.rb +1 -1
- data/lib/wx/doc/gen/task_bar_icon_event.rb +1 -1
- data/lib/wx/doc/gen/text_attr.rb +1 -1
- data/lib/wx/doc/gen/text_ctrl.rb +1 -1
- data/lib/wx/doc/gen/text_entry.rb +1 -1
- data/lib/wx/doc/gen/text_entry_dialog.rb +1 -1
- data/lib/wx/doc/gen/text_validator.rb +1 -1
- data/lib/wx/doc/gen/time_picker_ctrl.rb +1 -1
- data/lib/wx/doc/gen/timer.rb +1 -1
- data/lib/wx/doc/gen/timer_event.rb +1 -1
- data/lib/wx/doc/gen/tip_provider.rb +1 -1
- data/lib/wx/doc/gen/toggle_button.rb +1 -1
- data/lib/wx/doc/gen/tool_bar.rb +1 -1
- data/lib/wx/doc/gen/tool_tip.rb +1 -1
- data/lib/wx/doc/gen/toolbook.rb +1 -1
- data/lib/wx/doc/gen/top_level_window.rb +1 -1
- data/lib/wx/doc/gen/tree_ctrl.rb +1 -1
- data/lib/wx/doc/gen/tree_event.rb +1 -1
- data/lib/wx/doc/gen/treebook.rb +1 -1
- data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
- data/lib/wx/doc/gen/utils.rb +1 -1
- data/lib/wx/doc/gen/v_list_box.rb +1 -1
- data/lib/wx/doc/gen/v_scrolled_window.rb +1 -1
- data/lib/wx/doc/gen/validator.rb +1 -1
- data/lib/wx/doc/gen/variant.rb +1 -1
- data/lib/wx/doc/gen/window.rb +1 -1
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/window_disabler.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +1 -1
- data/lib/wx/doc/gen/wizard.rb +1 -1
- data/lib/wx/doc/gen/wizard_event.rb +1 -1
- data/lib/wx/doc/gen/wizard_page.rb +1 -1
- data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
- data/lib/wx/doc/gen/wrap_sizer.rb +1 -1
- data/lib/wx/doc/gen/xml_node.rb +1 -1
- data/lib/wx/doc/gen/xml_resource.rb +1 -1
- data/lib/wx/rtc/ext/rich_text_ctrl.rb +5 -5
- data/lib/wx/version.rb +1 -1
- data/lib/wx/wxruby/base.rb +6 -4
- data/lib/wx/wxruby/cmd/sampler.rb +39 -29
- data/lib/wx/wxruby/cmd/setup.rb +122 -0
- data/lib/wx/wxruby/cmd/test.rb +56 -6
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/install.rb +2 -0
- data/rakelib/lib/config/linux.rb +24 -2
- data/rakelib/lib/config/macosx.rb +16 -0
- data/rakelib/lib/config/mingw.rb +133 -9
- data/rakelib/lib/config/pkgman/arch.rb +53 -0
- data/rakelib/lib/config/pkgman/base.rb +169 -0
- data/rakelib/lib/config/pkgman/debian.rb +66 -0
- data/rakelib/lib/config/pkgman/macosx.rb +183 -0
- data/rakelib/lib/config/pkgman/rhel.rb +54 -0
- data/rakelib/lib/config/pkgman/suse.rb +54 -0
- data/rakelib/lib/config/unixish.rb +36 -19
- data/rakelib/lib/config.rb +254 -61
- data/rakelib/prepost.rake +9 -4
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +14 -0
- data/rakelib/yard/templates/default/fulldoc/html/setup.rb +5 -5
- data/rakelib/yard/yard/relative_markdown_links.rb +7 -1
- metadata +23 -4
@@ -6,364 +6,368 @@
|
|
6
6
|
|
7
7
|
module Wx::AUI
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
# {Wx::AUI::AuiManager} uses wxWidgets' sizer mechanism to plan the layout of each frame. It uses a replaceable dock art class to do all drawing, so all drawing is localized in one area, and may be customized depending on an application's specific needs.
|
13
|
-
# {Wx::AUI::AuiManager} works as follows: the programmer adds panes to the class, or makes changes to existing pane properties (dock position, floating state, show state, etc.). To apply these changes, {Wx::AUI::AuiManager}'s {Wx::AUI::AuiManager#update} function is called. This batch processing can be used to avoid flicker, by modifying more than one pane at a time, and then "committing" all of the changes at once by calling {Wx::AUI::AuiManager#update}.
|
14
|
-
# Panes can be added quite easily:
|
15
|
-
#
|
16
|
-
# ```ruby
|
17
|
-
# @text1 = Wx::TextCtrl.new(self, -1)
|
18
|
-
# @text2 = Wx::TextCtrl.new(self, -1)
|
19
|
-
# @mgr.add_pane(@text1, Wx::LEFT, 'Pane Caption')
|
20
|
-
# @mgr.add_pane(@text2, Wx::BOTTOM, 'Pane Caption')
|
21
|
-
# @mgr.update
|
22
|
-
# ```
|
23
|
-
#
|
24
|
-
# Later on, the positions can be modified easily. The following will float an existing pane in a tool window:
|
25
|
-
#
|
26
|
-
# ```ruby
|
27
|
-
# @mgr.get_pane(@text1).float
|
28
|
-
# ```
|
29
|
-
#
|
30
|
-
# ## Layers, Rows and Directions, Positions
|
31
|
-
# Inside {Wx::AUI}, the docking layout is figured out by checking several pane parameters. Four of these are important for determining where a pane will end up:
|
32
|
-
#
|
33
|
-
# - Direction: Each docked pane has a direction, Top, Bottom, Left, Right, or Center. This is fairly self-explanatory. The pane will be placed in the location specified by this variable.
|
34
|
-
#
|
35
|
-
# - Position: More than one pane can be placed inside of a dock. Imagine two panes being docked on the left side of a window. One pane can be placed over another. In proportionally managed docks, the pane position indicates its sequential position, starting with zero. So, in our scenario with two panes docked on the left side, the top pane in the dock would have position 0, and the second one would occupy position 1.
|
36
|
-
#
|
37
|
-
# - Row: A row can allow for two docks to be placed next to each other. One of the most common places for this to happen is in the toolbar. Multiple toolbar rows are allowed, the first row being row 0, and the second row 1. Rows can also be used on vertically docked panes.
|
38
|
-
#
|
39
|
-
# - Layer: A layer is akin to an onion. Layer 0 is the very center of the managed pane. Thus, if a pane is in layer 0, it will be closest to the center window (also sometimes known as the "content window"). Increasing layers "swallow up" all layers of a lower value. This can look very similar to multiple rows, but is different because all panes in a lower level yield to panes in higher levels. The best way to understand layers is by running the {Wx::AUI} sample.
|
40
|
-
#
|
41
|
-
# ### Styles
|
42
|
-
#
|
43
|
-
# This class supports the following styles:
|
44
|
-
#
|
45
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_FLOATING}: Allow a pane to be undocked to take the form of a {Wx::MiniFrame}.
|
46
|
-
#
|
47
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_ACTIVE_PANE}: Change the color of the title bar of the pane when it is activated.
|
48
|
-
#
|
49
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_DRAG}: Make the pane transparent during its movement.
|
50
|
-
#
|
51
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_HINT}: The possible location for docking is indicated by a translucent area.
|
52
|
-
#
|
53
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_VENETIAN_BLINDS_HINT}: The possible location for docking is indicated by gradually appearing partially transparent hint.
|
54
|
-
#
|
55
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_RECTANGLE_HINT}: The possible location for docking is indicated by a rectangular outline.
|
56
|
-
#
|
57
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_HINT_FADE}: The translucent area where the pane could be docked appears gradually.
|
58
|
-
#
|
59
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_NO_VENETIAN_BLINDS_FADE}: Used in complement of {Wx::AUI::AuiManagerOption::AUI_MGR_VENETIAN_BLINDS_HINT} to show the docking hint immediately.
|
60
|
-
#
|
61
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE}: When a docked pane is resized, its content is refreshed in live (instead of moving the border alone and refreshing the content at the end).
|
62
|
-
#
|
63
|
-
# - {Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT}: Default behaviour, combines: {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_FLOATING} | {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_HINT} | {Wx::AUI::AuiManagerOption::AUI_MGR_HINT_FADE} | {Wx::AUI::AuiManagerOption::AUI_MGR_NO_VENETIAN_BLINDS_FADE}.
|
64
|
-
#
|
65
|
-
# ### Events emitted by this class
|
66
|
-
#
|
67
|
-
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::AUI::AuiManagerEvent} events.
|
68
|
-
# Event handler methods for events emitted by this class:
|
69
|
-
#
|
70
|
-
# - {Wx::EvtHandler#evt_aui_pane_button}(meth = nil, &block): Triggered when any button is pressed for any docked panes.
|
71
|
-
#
|
72
|
-
# - {Wx::EvtHandler#evt_aui_pane_close}(meth = nil, &block): Triggered when a docked or floating pane is closed.
|
73
|
-
#
|
74
|
-
# - {Wx::EvtHandler#evt_aui_pane_maximize}(meth = nil, &block): Triggered when a pane is maximized.
|
75
|
-
#
|
76
|
-
# - {Wx::EvtHandler#evt_aui_pane_restore}(meth = nil, &block): Triggered when a pane is restored.
|
77
|
-
#
|
78
|
-
# - {Wx::EvtHandler#evt_aui_pane_activated}(meth = nil, &block): Triggered when a pane is made 'active'. This event is new since wxWidgets 2.9.4.
|
79
|
-
#
|
80
|
-
# - {Wx::EvtHandler#evt_aui_render}(meth = nil, &block): This event can be caught to override the default renderer in order to custom draw your {Wx::AUI::AuiManager} window (not recommended).
|
81
|
-
#
|
82
|
-
# Category: Window Docking (wxAUI)
|
83
|
-
# @see wxAUI Overview
|
84
|
-
# @see Wx::AUI::AuiNotebook
|
85
|
-
# @see Wx::AUI::AuiDockArt
|
86
|
-
# @see Wx::AUI::AuiPaneInfo
|
87
|
-
#
|
88
|
-
#
|
89
|
-
# @wxrb_require USE_AUI
|
90
|
-
class AuiManager < EvtHandler
|
91
|
-
|
92
|
-
# Constructor.
|
93
|
-
# @param managed_wnd [Wx::Window] Specifies the {Wx::Frame} which should be managed.
|
94
|
-
# @param flags [Integer] Specifies the frame management behaviour and visual effects with the {Wx::AUI::AuiManagerOption}'s style flags.
|
95
|
-
# @return [Wx::AUI::AuiManager]
|
96
|
-
def initialize(managed_wnd=nil, flags=Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT) end
|
97
|
-
|
98
|
-
# @overload add_pane(window, pane_info)
|
99
|
-
# {Wx::AUI::AuiManager#add_pane} tells the frame manager to start managing a child window.
|
100
|
-
#
|
101
|
-
# There are several versions of this function. The first version allows the full spectrum of pane parameter possibilities. The second version is used for simpler user interfaces which do not require as much configuration. The last version allows a drop position to be specified, which will determine where the pane will be added.
|
102
|
-
# @param window [Wx::Window]
|
103
|
-
# @param pane_info [Wx::AUI::AuiPaneInfo]
|
104
|
-
# @return [Boolean]
|
105
|
-
# @overload add_pane(window, direction=Wx::Direction::LEFT, caption=(''))
|
106
|
-
# @param window [Wx::Window]
|
107
|
-
# @param direction [Integer]
|
108
|
-
# @param caption [String]
|
109
|
-
# @return [Boolean]
|
110
|
-
# @overload add_pane(window, pane_info, drop_pos)
|
111
|
-
# @param window [Wx::Window]
|
112
|
-
# @param pane_info [Wx::AUI::AuiPaneInfo]
|
113
|
-
# @param drop_pos [Array(Integer, Integer), Wx::Point]
|
114
|
-
# @return [Boolean]
|
115
|
-
def add_pane(*args) end
|
116
|
-
|
117
|
-
# This function is used by controls to calculate the drop hint rectangle.
|
118
|
-
#
|
119
|
-
# The method first calls DoDrop() to determine the exact position the pane would be at were if dropped.
|
120
|
-
#
|
121
|
-
# The rectangle hint will be returned in screen coordinates if the pane would indeed become docked at the specified drop point. Otherwise, an empty rectangle is returned.
|
122
|
-
# @param paneWindow [Wx::Window] The window pointer of the pane being dragged.
|
123
|
-
# @param pt [Array(Integer, Integer), Wx::Point] The mouse position, in client coordinates.
|
124
|
-
# @param offset [Array(Integer, Integer), Wx::Point] Describes the offset that the mouse is from the upper-left corner of the item being dragged.
|
125
|
-
# @return [Wx::Rect]
|
126
|
-
def calculate_hint_rect(paneWindow, pt, offset) end
|
127
|
-
|
128
|
-
# Check if a key modifier is pressed (actually {Wx::KeyCode::K_CONTROL} or {Wx::KeyCode::K_ALT}) while dragging the frame to not dock the window.
|
129
|
-
# @param p [Wx::AUI::AuiPaneInfo]
|
130
|
-
# @return [Boolean]
|
131
|
-
def can_dock_panel(p) end
|
132
|
-
alias_method :can_dock_panel?, :can_dock_panel
|
133
|
-
|
134
|
-
# Destroys or hides the given pane depending on its flags.
|
135
|
-
#
|
136
|
-
#
|
137
|
-
# @see Wx::AUI::AuiPaneInfo#destroy_on_close
|
138
|
-
# @param paneInfo [Wx::AUI::AuiPaneInfo]
|
139
|
-
# @return [void]
|
140
|
-
def close_pane(paneInfo) end
|
141
|
-
|
142
|
-
# Creates a floating frame in this {Wx::AUI::AuiManager} with the given parent and {Wx::AUI::AuiPaneInfo}.
|
143
|
-
# @param parent [Wx::Window]
|
144
|
-
# @param p [Wx::AUI::AuiPaneInfo]
|
145
|
-
# @return [Wx::AUI::AuiFloatingFrame]
|
146
|
-
def create_floating_frame(parent, p) end
|
147
|
-
|
148
|
-
# Tells the {Wx::AUI::AuiManager} to stop managing the pane specified by window.
|
149
|
-
#
|
150
|
-
# The window, if in a floated frame, is reparented to the frame managed by {Wx::AUI::AuiManager}.
|
151
|
-
# @param window [Wx::Window]
|
152
|
-
# @return [Boolean]
|
153
|
-
def detach_pane(window) end
|
154
|
-
|
155
|
-
# This function is used by controls to draw the hint window.
|
156
|
-
#
|
157
|
-
# It is rarely called, and is mostly used by controls implementing custom pane drag/drop behaviour.
|
158
|
-
# @param paneWindow [Wx::Window]
|
159
|
-
# @param pt [Array(Integer, Integer), Wx::Point]
|
160
|
-
# @param offset [Array(Integer, Integer), Wx::Point]
|
161
|
-
# @return [void]
|
162
|
-
def draw_hint_rect(paneWindow, pt, offset) end
|
163
|
-
|
164
|
-
# Returns the current art provider being used.
|
165
|
-
#
|
166
|
-
#
|
167
|
-
# @see Wx::AUI::AuiDockArt.
|
168
|
-
# @return [Wx::AUI::AuiDockArt]
|
169
|
-
def get_art_provider; end
|
170
|
-
alias_method :art_provider, :get_art_provider
|
171
|
-
|
172
|
-
# Returns the current dock constraint values.
|
173
|
-
#
|
174
|
-
# See {Wx::AUI::AuiManager#set_dock_size_constraint} for more information.
|
175
|
-
# @return [Array(Float,Float)]
|
176
|
-
def get_dock_size_constraint; end
|
177
|
-
alias_method :dock_size_constraint, :get_dock_size_constraint
|
178
|
-
|
179
|
-
# Returns the current {Wx::AUI::AuiManagerOption}'s flags.
|
180
|
-
# @return [Integer]
|
181
|
-
def get_flags; end
|
182
|
-
alias_method :flags, :get_flags
|
183
|
-
|
184
|
-
# Returns the frame currently being managed by {Wx::AUI::AuiManager}.
|
185
|
-
# @return [Wx::Window]
|
186
|
-
def get_managed_window; end
|
187
|
-
alias_method :managed_window, :get_managed_window
|
188
|
-
|
189
|
-
# @overload get_pane(window)
|
190
|
-
# {Wx::AUI::AuiManager#get_pane} is used to lookup a {Wx::AUI::AuiPaneInfo} object either by window pointer or by pane name, which acts as a unique id for a window pane.
|
191
|
-
#
|
192
|
-
# The returned {Wx::AUI::AuiPaneInfo} object may then be modified to change a pane's look, state or position. After one or more modifications to {Wx::AUI::AuiPaneInfo}, {Wx::AUI::AuiManager#update} should be called to commit the changes to the user interface. If the lookup failed (meaning the pane could not be found in the manager), a call to the returned {Wx::AUI::AuiPaneInfo}'s IsOk() method will return false.
|
193
|
-
# @param window [Wx::Window]
|
194
|
-
# @return [Wx::AUI::AuiPaneInfo]
|
195
|
-
# @overload get_pane(name)
|
196
|
-
# @param name [String]
|
197
|
-
# @return [Wx::AUI::AuiPaneInfo]
|
198
|
-
def get_pane(*args) end
|
199
|
-
alias_method :pane, :get_pane
|
200
|
-
|
201
|
-
# Returns true if windows are resized live.
|
202
|
-
#
|
203
|
-
# This function combines the check for {Wx::AUI::AuiManager.always_uses_live_resize} and, for the platforms where live resizing is optional, the check for {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE} flag.
|
204
|
-
# Using this accessor allows to verify whether live resizing is being actually used.
|
205
|
-
# @return [Boolean]
|
206
|
-
def has_live_resize; end
|
207
|
-
alias_method :has_live_resize?, :has_live_resize
|
208
|
-
|
209
|
-
# {Wx::AUI::AuiManager#hide_hint} hides any docking hint that may be visible.
|
210
|
-
# @return [void]
|
211
|
-
def hide_hint; end
|
212
|
-
|
213
|
-
# This method is used to insert either a previously unmanaged pane window into the frame manager, or to insert a currently managed pane somewhere else.
|
214
|
-
#
|
215
|
-
# {Wx::AUI::AuiManager#insert_pane} will push all panes, rows, or docks aside and insert the window into the position specified by insert_location.
|
216
|
-
# Because insert_location can specify either a pane, dock row, or dock layer, the insert_level parameter is used to disambiguate this. The parameter insert_level can take a value of {Wx::AUI_INSERT_PANE}, {Wx::AUI_INSERT_ROW} or {Wx::AUI_INSERT_DOCK}.
|
217
|
-
# @param window [Wx::Window]
|
218
|
-
# @param insert_location [Wx::AUI::AuiPaneInfo]
|
219
|
-
# @param insert_level [Integer]
|
220
|
-
# @return [Boolean]
|
221
|
-
def insert_pane(window, insert_location, insert_level=Wx::AUI_INSERT_PANE) end
|
222
|
-
|
223
|
-
# {Wx::AUI::AuiManager#load_pane_info} is similar to LoadPerspective, with the exception that it only loads information about a single pane.
|
224
|
-
#
|
225
|
-
# This method writes the serialized data into the passed pane. Pointers to UI elements are not modified.
|
226
|
-
#
|
227
|
-
# <div class="wxrb-note">
|
228
|
-
# <b>Note:</b>
|
229
|
-
# <p>This operation also changes the name in the pane information!
|
230
|
-
# </p>
|
231
|
-
# </div>
|
232
|
-
# @see Wx::AUI::AuiManager#load_perspective
|
233
|
-
#
|
234
|
-
# @see Wx::AUI::AuiManager#save_pane_info.
|
235
|
-
#
|
236
|
-
# @see Wx::AUI::AuiManager#save_perspective
|
237
|
-
# @param pane_part [String]
|
238
|
-
# @param pane [Wx::AUI::AuiPaneInfo]
|
239
|
-
# @return [void]
|
240
|
-
def load_pane_info(pane_part, pane) end
|
241
|
-
|
242
|
-
# Loads a saved perspective.
|
243
|
-
#
|
244
|
-
# A perspective is the layout state of an AUI managed window.
|
245
|
-
# All currently existing panes that have an object in "perspective" with the same name ("equivalent") will receive the layout parameters of the object in "perspective". Existing panes that do not have an equivalent in "perspective" remain unchanged, objects in "perspective" having no equivalent in the manager are ignored.
|
246
|
-
# @see Wx::AUI::AuiManager#load_pane_info
|
247
|
-
#
|
248
|
-
# @see Wx::AUI::AuiManager#load_perspective
|
249
|
-
#
|
250
|
-
# @see Wx::AUI::AuiManager#save_perspective
|
251
|
-
# @param perspective [String] Serialized layout information of a perspective (excl. pointers to UI elements).
|
252
|
-
# @param update [Boolean] If update is true, {Wx::AUI::AuiManager#update} is automatically invoked, thus realizing the specified perspective on screen.
|
253
|
-
# @return [Boolean]
|
254
|
-
def load_perspective(perspective, update=true) end
|
255
|
-
|
256
|
-
# Maximize the given pane.
|
257
|
-
# @param paneInfo [Wx::AUI::AuiPaneInfo]
|
258
|
-
# @return [void]
|
259
|
-
def maximize_pane(paneInfo) end
|
260
|
-
|
261
|
-
# Restore the last state of the given pane.
|
262
|
-
# @param paneInfo [Wx::AUI::AuiPaneInfo]
|
263
|
-
# @return [void]
|
264
|
-
def restore_pane(paneInfo) end
|
265
|
-
|
266
|
-
# Restore the previously maximized pane.
|
267
|
-
# @return [void]
|
268
|
-
def restore_maximized_pane; end
|
269
|
-
|
270
|
-
# {Wx::AUI::AuiManager#save_pane_info} is similar to SavePerspective, with the exception that it only saves information about a single pane.
|
271
|
-
#
|
272
|
-
# The serialized layout parameters of the pane are returned within the string. Information about the pointers to UI elements stored in the pane are not serialized.
|
273
|
-
# @see Wx::AUI::AuiManager#load_pane_info
|
274
|
-
#
|
275
|
-
# @see Wx::AUI::AuiManager#load_perspective
|
276
|
-
#
|
277
|
-
# @see Wx::AUI::AuiManager#save_perspective
|
278
|
-
# @param pane [Wx::AUI::AuiPaneInfo] Pane whose layout parameters should be serialized.
|
279
|
-
# @return [String]
|
280
|
-
def save_pane_info(pane) end
|
281
|
-
|
282
|
-
# Saves the entire user interface layout into an encoded {Wx::String}, which can then be stored by the application (probably using {Wx::Config}).
|
9
|
+
module Wx::AUI
|
10
|
+
|
11
|
+
# {Wx::AUI::AuiManager} is the central class of the {Wx::AUI} class framework.
|
283
12
|
#
|
13
|
+
# {Wx::AUI::AuiManager} manages the panes associated with it for a particular {Wx::Frame}, using a pane's {Wx::AUI::AuiPaneInfo} information to determine each pane's docking and floating behaviour.
|
14
|
+
# {Wx::AUI::AuiManager} uses wxWidgets' sizer mechanism to plan the layout of each frame. It uses a replaceable dock art class to do all drawing, so all drawing is localized in one area, and may be customized depending on an application's specific needs.
|
15
|
+
# {Wx::AUI::AuiManager} works as follows: the programmer adds panes to the class, or makes changes to existing pane properties (dock position, floating state, show state, etc.). To apply these changes, {Wx::AUI::AuiManager}'s {Wx::AUI::AuiManager#update} function is called. This batch processing can be used to avoid flicker, by modifying more than one pane at a time, and then "committing" all of the changes at once by calling {Wx::AUI::AuiManager#update}.
|
16
|
+
# Panes can be added quite easily:
|
284
17
|
#
|
285
|
-
#
|
18
|
+
# ```ruby
|
19
|
+
# @text1 = Wx::TextCtrl.new(self, -1)
|
20
|
+
# @text2 = Wx::TextCtrl.new(self, -1)
|
21
|
+
# @mgr.add_pane(@text1, Wx::LEFT, 'Pane Caption')
|
22
|
+
# @mgr.add_pane(@text2, Wx::BOTTOM, 'Pane Caption')
|
23
|
+
# @mgr.update
|
24
|
+
# ```
|
286
25
|
#
|
287
|
-
#
|
26
|
+
# Later on, the positions can be modified easily. The following will float an existing pane in a tool window:
|
288
27
|
#
|
289
|
-
#
|
290
|
-
#
|
291
|
-
|
292
|
-
|
293
|
-
# Instructs {Wx::AUI::AuiManager} to use art provider specified by parameter art_provider for all drawing calls.
|
294
|
-
#
|
295
|
-
# This allows pluggable look-and-feel features. The previous art provider object, if any, will be deleted by {Wx::AUI::AuiManager}.
|
296
|
-
# @see Wx::AUI::AuiDockArt.
|
297
|
-
# @param art_provider [Wx::AUI::AuiDockArt]
|
298
|
-
# @return [void]
|
299
|
-
def set_art_provider(art_provider) end
|
300
|
-
alias_method :art_provider=, :set_art_provider
|
301
|
-
|
302
|
-
# When a user creates a new dock by dragging a window into a docked position, often times the large size of the window will create a dock that is unwieldy large.
|
303
|
-
#
|
304
|
-
# {Wx::AUI::AuiManager} by default limits the size of any new dock to 1/3 of the window size. For horizontal docks, this would be 1/3 of the window height. For vertical docks, 1/3 of the width.
|
305
|
-
# Calling this function will adjust this constraint value. The numbers must be between 0.0 and 1.0. For instance, calling SetDockSizeContraint with 0.5, 0.5 will cause new docks to be limited to half of the size of the entire managed window.
|
306
|
-
# @param widthpct [Float]
|
307
|
-
# @param heightpct [Float]
|
308
|
-
# @return [void]
|
309
|
-
def set_dock_size_constraint(widthpct, heightpct) end
|
310
|
-
|
311
|
-
# This method is used to specify {Wx::AUI::AuiManagerOption}'s flags.
|
28
|
+
# ```ruby
|
29
|
+
# @mgr.get_pane(@text1).float
|
30
|
+
# ```
|
312
31
|
#
|
313
|
-
#
|
314
|
-
#
|
315
|
-
# @return [void]
|
316
|
-
def set_flags(flags) end
|
317
|
-
alias_method :flags=, :set_flags
|
318
|
-
|
319
|
-
# Called to specify the frame or window which is to be managed by {Wx::AUI::AuiManager}.
|
32
|
+
# ## Layers, Rows and Directions, Positions
|
33
|
+
# Inside {Wx::AUI}, the docking layout is figured out by checking several pane parameters. Four of these are important for determining where a pane will end up:
|
320
34
|
#
|
321
|
-
#
|
322
|
-
# @param managed_wnd [Wx::Window]
|
323
|
-
# @return [void]
|
324
|
-
def set_managed_window(managed_wnd) end
|
325
|
-
|
326
|
-
# This function is used by controls to explicitly show a hint window at the specified rectangle.
|
35
|
+
# - Direction: Each docked pane has a direction, Top, Bottom, Left, Right, or Center. This is fairly self-explanatory. The pane will be placed in the location specified by this variable.
|
327
36
|
#
|
328
|
-
#
|
329
|
-
# @param rect [Wx::Rect]
|
330
|
-
# @return [void]
|
331
|
-
def show_hint(rect) end
|
332
|
-
|
333
|
-
# Mostly used internally to define the drag action parameters.
|
334
|
-
# @param paneWindow [Wx::Window]
|
335
|
-
# @param offset [Array(Integer, Integer), Wx::Point]
|
336
|
-
# @return [void]
|
337
|
-
def start_pane_drag(paneWindow, offset) end
|
338
|
-
|
339
|
-
# Dissociate the managed window from the manager.
|
37
|
+
# - Position: More than one pane can be placed inside of a dock. Imagine two panes being docked on the left side of a window. One pane can be placed over another. In proportionally managed docks, the pane position indicates its sequential position, starting with zero. So, in our scenario with two panes docked on the left side, the top pane in the dock would have position 0, and the second one would occupy position 1.
|
340
38
|
#
|
341
|
-
#
|
342
|
-
# @return [void]
|
343
|
-
def un_init; end
|
344
|
-
|
345
|
-
# This method is called after any number of changes are made to any of the managed panes.
|
39
|
+
# - Row: A row can allow for two docks to be placed next to each other. One of the most common places for this to happen is in the toolbar. Multiple toolbar rows are allowed, the first row being row 0, and the second row 1. Rows can also be used on vertically docked panes.
|
346
40
|
#
|
347
|
-
#
|
348
|
-
# @return [void]
|
349
|
-
def update; end
|
350
|
-
|
351
|
-
# Returns true if live resize is always used on the current platform.
|
41
|
+
# - Layer: A layer is akin to an onion. Layer 0 is the very center of the managed pane. Thus, if a pane is in layer 0, it will be closest to the center window (also sometimes known as the "content window"). Increasing layers "swallow up" all layers of a lower value. This can look very similar to multiple rows, but is different because all panes in a lower level yield to panes in higher levels. The best way to understand layers is by running the {Wx::AUI} sample.
|
352
42
|
#
|
353
|
-
#
|
354
|
-
# Currently this is the case for WXOSX and WXGTK3 ports, as live resizing is the only implemented method there.
|
355
|
-
# @return [Boolean]
|
356
|
-
def self.always_uses_live_resize; end
|
357
|
-
|
358
|
-
# Calling this method will return the {Wx::AUI::AuiManager} for a given window.
|
43
|
+
# ### Styles
|
359
44
|
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
|
45
|
+
# This class supports the following styles:
|
46
|
+
#
|
47
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_FLOATING}: Allow a pane to be undocked to take the form of a {Wx::MiniFrame}.
|
48
|
+
#
|
49
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_ACTIVE_PANE}: Change the color of the title bar of the pane when it is activated.
|
50
|
+
#
|
51
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_DRAG}: Make the pane transparent during its movement.
|
52
|
+
#
|
53
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_HINT}: The possible location for docking is indicated by a translucent area.
|
54
|
+
#
|
55
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_VENETIAN_BLINDS_HINT}: The possible location for docking is indicated by gradually appearing partially transparent hint.
|
56
|
+
#
|
57
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_RECTANGLE_HINT}: The possible location for docking is indicated by a rectangular outline.
|
58
|
+
#
|
59
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_HINT_FADE}: The translucent area where the pane could be docked appears gradually.
|
60
|
+
#
|
61
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_NO_VENETIAN_BLINDS_FADE}: Used in complement of {Wx::AUI::AuiManagerOption::AUI_MGR_VENETIAN_BLINDS_HINT} to show the docking hint immediately.
|
62
|
+
#
|
63
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE}: When a docked pane is resized, its content is refreshed in live (instead of moving the border alone and refreshing the content at the end).
|
64
|
+
#
|
65
|
+
# - {Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT}: Default behaviour, combines: {Wx::AUI::AuiManagerOption::AUI_MGR_ALLOW_FLOATING} | {Wx::AUI::AuiManagerOption::AUI_MGR_TRANSPARENT_HINT} | {Wx::AUI::AuiManagerOption::AUI_MGR_HINT_FADE} | {Wx::AUI::AuiManagerOption::AUI_MGR_NO_VENETIAN_BLINDS_FADE}.
|
66
|
+
#
|
67
|
+
# ### Events emitted by this class
|
68
|
+
#
|
69
|
+
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::AUI::AuiManagerEvent} events.
|
70
|
+
# Event handler methods for events emitted by this class:
|
71
|
+
#
|
72
|
+
# - {Wx::EvtHandler#evt_aui_pane_button}(meth = nil, &block): Triggered when any button is pressed for any docked panes.
|
73
|
+
#
|
74
|
+
# - {Wx::EvtHandler#evt_aui_pane_close}(meth = nil, &block): Triggered when a docked or floating pane is closed.
|
75
|
+
#
|
76
|
+
# - {Wx::EvtHandler#evt_aui_pane_maximize}(meth = nil, &block): Triggered when a pane is maximized.
|
77
|
+
#
|
78
|
+
# - {Wx::EvtHandler#evt_aui_pane_restore}(meth = nil, &block): Triggered when a pane is restored.
|
79
|
+
#
|
80
|
+
# - {Wx::EvtHandler#evt_aui_pane_activated}(meth = nil, &block): Triggered when a pane is made 'active'. This event is new since wxWidgets 2.9.4.
|
81
|
+
#
|
82
|
+
# - {Wx::EvtHandler#evt_aui_render}(meth = nil, &block): This event can be caught to override the default renderer in order to custom draw your {Wx::AUI::AuiManager} window (not recommended).
|
83
|
+
#
|
84
|
+
# Category: Window Docking (wxAUI)
|
85
|
+
# @see wxAUI Overview
|
86
|
+
# @see Wx::AUI::AuiNotebook
|
87
|
+
# @see Wx::AUI::AuiDockArt
|
88
|
+
# @see Wx::AUI::AuiPaneInfo
|
89
|
+
#
|
90
|
+
#
|
91
|
+
# @wxrb_require USE_AUI
|
92
|
+
class AuiManager < EvtHandler
|
93
|
+
|
94
|
+
# Constructor.
|
95
|
+
# @param managed_wnd [Wx::Window] Specifies the {Wx::Frame} which should be managed.
|
96
|
+
# @param flags [Integer] Specifies the frame management behaviour and visual effects with the {Wx::AUI::AuiManagerOption}'s style flags.
|
97
|
+
# @return [Wx::AUI::AuiManager]
|
98
|
+
def initialize(managed_wnd=nil, flags=Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT) end
|
99
|
+
|
100
|
+
# @overload add_pane(window, pane_info)
|
101
|
+
# {Wx::AUI::AuiManager#add_pane} tells the frame manager to start managing a child window.
|
102
|
+
#
|
103
|
+
# There are several versions of this function. The first version allows the full spectrum of pane parameter possibilities. The second version is used for simpler user interfaces which do not require as much configuration. The last version allows a drop position to be specified, which will determine where the pane will be added.
|
104
|
+
# @param window [Wx::Window]
|
105
|
+
# @param pane_info [Wx::AUI::AuiPaneInfo]
|
106
|
+
# @return [Boolean]
|
107
|
+
# @overload add_pane(window, direction=Wx::Direction::LEFT, caption=(''))
|
108
|
+
# @param window [Wx::Window]
|
109
|
+
# @param direction [Integer]
|
110
|
+
# @param caption [String]
|
111
|
+
# @return [Boolean]
|
112
|
+
# @overload add_pane(window, pane_info, drop_pos)
|
113
|
+
# @param window [Wx::Window]
|
114
|
+
# @param pane_info [Wx::AUI::AuiPaneInfo]
|
115
|
+
# @param drop_pos [Array(Integer, Integer), Wx::Point]
|
116
|
+
# @return [Boolean]
|
117
|
+
def add_pane(*args) end
|
118
|
+
|
119
|
+
# This function is used by controls to calculate the drop hint rectangle.
|
120
|
+
#
|
121
|
+
# The method first calls DoDrop() to determine the exact position the pane would be at were if dropped.
|
122
|
+
#
|
123
|
+
# The rectangle hint will be returned in screen coordinates if the pane would indeed become docked at the specified drop point. Otherwise, an empty rectangle is returned.
|
124
|
+
# @param paneWindow [Wx::Window] The window pointer of the pane being dragged.
|
125
|
+
# @param pt [Array(Integer, Integer), Wx::Point] The mouse position, in client coordinates.
|
126
|
+
# @param offset [Array(Integer, Integer), Wx::Point] Describes the offset that the mouse is from the upper-left corner of the item being dragged.
|
127
|
+
# @return [Wx::Rect]
|
128
|
+
def calculate_hint_rect(paneWindow, pt, offset) end
|
129
|
+
|
130
|
+
# Check if a key modifier is pressed (actually {Wx::KeyCode::K_CONTROL} or {Wx::KeyCode::K_ALT}) while dragging the frame to not dock the window.
|
131
|
+
# @param p [Wx::AUI::AuiPaneInfo]
|
132
|
+
# @return [Boolean]
|
133
|
+
def can_dock_panel(p) end
|
134
|
+
alias_method :can_dock_panel?, :can_dock_panel
|
135
|
+
|
136
|
+
# Destroys or hides the given pane depending on its flags.
|
137
|
+
#
|
138
|
+
#
|
139
|
+
# @see Wx::AUI::AuiPaneInfo#destroy_on_close
|
140
|
+
# @param paneInfo [Wx::AUI::AuiPaneInfo]
|
141
|
+
# @return [void]
|
142
|
+
def close_pane(paneInfo) end
|
143
|
+
|
144
|
+
# Creates a floating frame in this {Wx::AUI::AuiManager} with the given parent and {Wx::AUI::AuiPaneInfo}.
|
145
|
+
# @param parent [Wx::Window]
|
146
|
+
# @param p [Wx::AUI::AuiPaneInfo]
|
147
|
+
# @return [Wx::AUI::AuiFloatingFrame]
|
148
|
+
def create_floating_frame(parent, p) end
|
149
|
+
|
150
|
+
# Tells the {Wx::AUI::AuiManager} to stop managing the pane specified by window.
|
151
|
+
#
|
152
|
+
# The window, if in a floated frame, is reparented to the frame managed by {Wx::AUI::AuiManager}.
|
153
|
+
# @param window [Wx::Window]
|
154
|
+
# @return [Boolean]
|
155
|
+
def detach_pane(window) end
|
156
|
+
|
157
|
+
# This function is used by controls to draw the hint window.
|
158
|
+
#
|
159
|
+
# It is rarely called, and is mostly used by controls implementing custom pane drag/drop behaviour.
|
160
|
+
# @param paneWindow [Wx::Window]
|
161
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
162
|
+
# @param offset [Array(Integer, Integer), Wx::Point]
|
163
|
+
# @return [void]
|
164
|
+
def draw_hint_rect(paneWindow, pt, offset) end
|
165
|
+
|
166
|
+
# Returns the current art provider being used.
|
167
|
+
#
|
168
|
+
#
|
169
|
+
# @see Wx::AUI::AuiDockArt.
|
170
|
+
# @return [Wx::AUI::AuiDockArt]
|
171
|
+
def get_art_provider; end
|
172
|
+
alias_method :art_provider, :get_art_provider
|
173
|
+
|
174
|
+
# Returns the current dock constraint values.
|
175
|
+
#
|
176
|
+
# See {Wx::AUI::AuiManager#set_dock_size_constraint} for more information.
|
177
|
+
# @return [Array(Float,Float)]
|
178
|
+
def get_dock_size_constraint; end
|
179
|
+
alias_method :dock_size_constraint, :get_dock_size_constraint
|
180
|
+
|
181
|
+
# Returns the current {Wx::AUI::AuiManagerOption}'s flags.
|
182
|
+
# @return [Integer]
|
183
|
+
def get_flags; end
|
184
|
+
alias_method :flags, :get_flags
|
185
|
+
|
186
|
+
# Returns the frame currently being managed by {Wx::AUI::AuiManager}.
|
187
|
+
# @return [Wx::Window]
|
188
|
+
def get_managed_window; end
|
189
|
+
alias_method :managed_window, :get_managed_window
|
190
|
+
|
191
|
+
# @overload get_pane(window)
|
192
|
+
# {Wx::AUI::AuiManager#get_pane} is used to lookup a {Wx::AUI::AuiPaneInfo} object either by window pointer or by pane name, which acts as a unique id for a window pane.
|
193
|
+
#
|
194
|
+
# The returned {Wx::AUI::AuiPaneInfo} object may then be modified to change a pane's look, state or position. After one or more modifications to {Wx::AUI::AuiPaneInfo}, {Wx::AUI::AuiManager#update} should be called to commit the changes to the user interface. If the lookup failed (meaning the pane could not be found in the manager), a call to the returned {Wx::AUI::AuiPaneInfo}'s IsOk() method will return false.
|
195
|
+
# @param window [Wx::Window]
|
196
|
+
# @return [Wx::AUI::AuiPaneInfo]
|
197
|
+
# @overload get_pane(name)
|
198
|
+
# @param name [String]
|
199
|
+
# @return [Wx::AUI::AuiPaneInfo]
|
200
|
+
def get_pane(*args) end
|
201
|
+
alias_method :pane, :get_pane
|
202
|
+
|
203
|
+
# Returns true if windows are resized live.
|
204
|
+
#
|
205
|
+
# This function combines the check for {Wx::AUI::AuiManager.always_uses_live_resize} and, for the platforms where live resizing is optional, the check for {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE} flag.
|
206
|
+
# Using this accessor allows to verify whether live resizing is being actually used.
|
207
|
+
# @return [Boolean]
|
208
|
+
def has_live_resize; end
|
209
|
+
alias_method :has_live_resize?, :has_live_resize
|
210
|
+
|
211
|
+
# {Wx::AUI::AuiManager#hide_hint} hides any docking hint that may be visible.
|
212
|
+
# @return [void]
|
213
|
+
def hide_hint; end
|
214
|
+
|
215
|
+
# This method is used to insert either a previously unmanaged pane window into the frame manager, or to insert a currently managed pane somewhere else.
|
216
|
+
#
|
217
|
+
# {Wx::AUI::AuiManager#insert_pane} will push all panes, rows, or docks aside and insert the window into the position specified by insert_location.
|
218
|
+
# Because insert_location can specify either a pane, dock row, or dock layer, the insert_level parameter is used to disambiguate this. The parameter insert_level can take a value of {Wx::AUI_INSERT_PANE}, {Wx::AUI_INSERT_ROW} or {Wx::AUI_INSERT_DOCK}.
|
219
|
+
# @param window [Wx::Window]
|
220
|
+
# @param insert_location [Wx::AUI::AuiPaneInfo]
|
221
|
+
# @param insert_level [Integer]
|
222
|
+
# @return [Boolean]
|
223
|
+
def insert_pane(window, insert_location, insert_level=Wx::AUI_INSERT_PANE) end
|
224
|
+
|
225
|
+
# {Wx::AUI::AuiManager#load_pane_info} is similar to LoadPerspective, with the exception that it only loads information about a single pane.
|
226
|
+
#
|
227
|
+
# This method writes the serialized data into the passed pane. Pointers to UI elements are not modified.
|
228
|
+
#
|
229
|
+
# <div class="wxrb-note">
|
230
|
+
# <b>Note:</b>
|
231
|
+
# <p>This operation also changes the name in the pane information!
|
232
|
+
# </p>
|
233
|
+
# </div>
|
234
|
+
# @see Wx::AUI::AuiManager#load_perspective
|
235
|
+
#
|
236
|
+
# @see Wx::AUI::AuiManager#save_pane_info.
|
237
|
+
#
|
238
|
+
# @see Wx::AUI::AuiManager#save_perspective
|
239
|
+
# @param pane_part [String]
|
240
|
+
# @param pane [Wx::AUI::AuiPaneInfo]
|
241
|
+
# @return [void]
|
242
|
+
def load_pane_info(pane_part, pane) end
|
243
|
+
|
244
|
+
# Loads a saved perspective.
|
245
|
+
#
|
246
|
+
# A perspective is the layout state of an AUI managed window.
|
247
|
+
# All currently existing panes that have an object in "perspective" with the same name ("equivalent") will receive the layout parameters of the object in "perspective". Existing panes that do not have an equivalent in "perspective" remain unchanged, objects in "perspective" having no equivalent in the manager are ignored.
|
248
|
+
# @see Wx::AUI::AuiManager#load_pane_info
|
249
|
+
#
|
250
|
+
# @see Wx::AUI::AuiManager#load_perspective
|
251
|
+
#
|
252
|
+
# @see Wx::AUI::AuiManager#save_perspective
|
253
|
+
# @param perspective [String] Serialized layout information of a perspective (excl. pointers to UI elements).
|
254
|
+
# @param update [Boolean] If update is true, {Wx::AUI::AuiManager#update} is automatically invoked, thus realizing the specified perspective on screen.
|
255
|
+
# @return [Boolean]
|
256
|
+
def load_perspective(perspective, update=true) end
|
257
|
+
|
258
|
+
# Maximize the given pane.
|
259
|
+
# @param paneInfo [Wx::AUI::AuiPaneInfo]
|
260
|
+
# @return [void]
|
261
|
+
def maximize_pane(paneInfo) end
|
262
|
+
|
263
|
+
# Restore the last state of the given pane.
|
264
|
+
# @param paneInfo [Wx::AUI::AuiPaneInfo]
|
265
|
+
# @return [void]
|
266
|
+
def restore_pane(paneInfo) end
|
267
|
+
|
268
|
+
# Restore the previously maximized pane.
|
269
|
+
# @return [void]
|
270
|
+
def restore_maximized_pane; end
|
271
|
+
|
272
|
+
# {Wx::AUI::AuiManager#save_pane_info} is similar to SavePerspective, with the exception that it only saves information about a single pane.
|
273
|
+
#
|
274
|
+
# The serialized layout parameters of the pane are returned within the string. Information about the pointers to UI elements stored in the pane are not serialized.
|
275
|
+
# @see Wx::AUI::AuiManager#load_pane_info
|
276
|
+
#
|
277
|
+
# @see Wx::AUI::AuiManager#load_perspective
|
278
|
+
#
|
279
|
+
# @see Wx::AUI::AuiManager#save_perspective
|
280
|
+
# @param pane [Wx::AUI::AuiPaneInfo] Pane whose layout parameters should be serialized.
|
281
|
+
# @return [String]
|
282
|
+
def save_pane_info(pane) end
|
283
|
+
|
284
|
+
# Saves the entire user interface layout into an encoded {Wx::String}, which can then be stored by the application (probably using {Wx::Config}).
|
285
|
+
#
|
286
|
+
#
|
287
|
+
# @see Wx::AUI::AuiManager#load_perspective
|
288
|
+
#
|
289
|
+
# @see Wx::AUI::AuiManager#load_pane_info
|
290
|
+
#
|
291
|
+
# @see Wx::AUI::AuiManager#save_pane_info
|
292
|
+
# @return [String]
|
293
|
+
def save_perspective; end
|
294
|
+
|
295
|
+
# Instructs {Wx::AUI::AuiManager} to use art provider specified by parameter art_provider for all drawing calls.
|
296
|
+
#
|
297
|
+
# This allows pluggable look-and-feel features. The previous art provider object, if any, will be deleted by {Wx::AUI::AuiManager}.
|
298
|
+
# @see Wx::AUI::AuiDockArt.
|
299
|
+
# @param art_provider [Wx::AUI::AuiDockArt]
|
300
|
+
# @return [void]
|
301
|
+
def set_art_provider(art_provider) end
|
302
|
+
alias_method :art_provider=, :set_art_provider
|
303
|
+
|
304
|
+
# When a user creates a new dock by dragging a window into a docked position, often times the large size of the window will create a dock that is unwieldy large.
|
305
|
+
#
|
306
|
+
# {Wx::AUI::AuiManager} by default limits the size of any new dock to 1/3 of the window size. For horizontal docks, this would be 1/3 of the window height. For vertical docks, 1/3 of the width.
|
307
|
+
# Calling this function will adjust this constraint value. The numbers must be between 0.0 and 1.0. For instance, calling SetDockSizeContraint with 0.5, 0.5 will cause new docks to be limited to half of the size of the entire managed window.
|
308
|
+
# @param widthpct [Float]
|
309
|
+
# @param heightpct [Float]
|
310
|
+
# @return [void]
|
311
|
+
def set_dock_size_constraint(widthpct, heightpct) end
|
312
|
+
|
313
|
+
# This method is used to specify {Wx::AUI::AuiManagerOption}'s flags.
|
314
|
+
#
|
315
|
+
# flags specifies options which allow the frame management behaviour to be modified.
|
316
|
+
# @param flags [Integer]
|
317
|
+
# @return [void]
|
318
|
+
def set_flags(flags) end
|
319
|
+
alias_method :flags=, :set_flags
|
320
|
+
|
321
|
+
# Called to specify the frame or window which is to be managed by {Wx::AUI::AuiManager}.
|
322
|
+
#
|
323
|
+
# Frame management is not restricted to just frames. Child windows or custom controls are also allowed.
|
324
|
+
# @param managed_wnd [Wx::Window]
|
325
|
+
# @return [void]
|
326
|
+
def set_managed_window(managed_wnd) end
|
327
|
+
|
328
|
+
# This function is used by controls to explicitly show a hint window at the specified rectangle.
|
329
|
+
#
|
330
|
+
# It is rarely called, and is mostly used by controls implementing custom pane drag/drop behaviour. The specified rectangle should be in screen coordinates.
|
331
|
+
# @param rect [Wx::Rect]
|
332
|
+
# @return [void]
|
333
|
+
def show_hint(rect) end
|
334
|
+
|
335
|
+
# Mostly used internally to define the drag action parameters.
|
336
|
+
# @param paneWindow [Wx::Window]
|
337
|
+
# @param offset [Array(Integer, Integer), Wx::Point]
|
338
|
+
# @return [void]
|
339
|
+
def start_pane_drag(paneWindow, offset) end
|
340
|
+
|
341
|
+
# Dissociate the managed window from the manager.
|
342
|
+
#
|
343
|
+
# This function may be called before the managed frame or window is destroyed, but, since wxWidgets 3.1.4, it's unnecessary to call it explicitly, as it will be called automatically when this window is destroyed, as well as when the manager itself is.
|
344
|
+
# @return [void]
|
345
|
+
def un_init; end
|
346
|
+
|
347
|
+
# This method is called after any number of changes are made to any of the managed panes.
|
348
|
+
#
|
349
|
+
# {Wx::AUI::AuiManager#update} must be invoked after {Wx::AUI::AuiManager#add_pane} or {Wx::AUI::AuiManager#insert_pane} are called in order to "realize" or "commit" the changes. In addition, any number of changes may be made to {Wx::AUI::AuiPaneInfo} structures (retrieved with {Wx::AUI::AuiManager#get_pane}), but to realize the changes, {Wx::AUI::AuiManager#update} must be called. This construction allows pane flicker to be avoided by updating the whole layout at one time.
|
350
|
+
# @return [void]
|
351
|
+
def update; end
|
352
|
+
|
353
|
+
# Returns true if live resize is always used on the current platform.
|
354
|
+
#
|
355
|
+
# If this function returns true, {Wx::AUI::AuiManagerOption::AUI_MGR_LIVE_RESIZE} flag is ignored and live resize is always used, whether it's specified or not.
|
356
|
+
# Currently this is the case for WXOSX and WXGTK3 ports, as live resizing is the only implemented method there.
|
357
|
+
# @return [Boolean]
|
358
|
+
def self.always_uses_live_resize; end
|
359
|
+
|
360
|
+
# Calling this method will return the {Wx::AUI::AuiManager} for a given window.
|
361
|
+
#
|
362
|
+
# The window parameter should specify any child window or sub-child window of the frame or window managed by {Wx::AUI::AuiManager}.
|
363
|
+
# The window parameter need not be managed by the manager itself, nor does it even need to be a child or sub-child of a managed window. It must however be inside the window hierarchy underneath the managed window.
|
364
|
+
# @param window [Wx::Window]
|
365
|
+
# @return [Wx::AUI::AuiManager]
|
366
|
+
def self.get_manager(window) end
|
367
|
+
|
368
|
+
end # AuiManager
|
365
369
|
|
366
|
-
end # AuiManager
|
367
|
-
|
368
370
|
|
369
|
-
end
|
371
|
+
end
|
372
|
+
|
373
|
+
end
|