wxruby3 1.6.0 → 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 +21 -6
- 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 +154 -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/core/variant.rb +6 -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/pg/pg_property.rb +5 -0
- data/lib/wx/doc/tip_window.rb +18 -6
- data/lib/wx/doc/variant.rb +30 -0
- 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 +85 -52
- data/lib/wx/pg/property_grid_interface.rb +12 -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 +84 -66
- data/rakelib/gem.rb +4 -20
- 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 +19 -8
- 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/core/spec.rb +1 -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/bitmap_combobox.rb +4 -2
- 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 +30 -4
- data/rakelib/lib/director/hvscrolled.rb +154 -0
- 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/persistent_window.rb +16 -0
- data/rakelib/lib/director/pgproperty.rb +3 -2
- 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 +11 -2
- 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/top_level_window.rb +0 -1
- data/rakelib/lib/director/utils.rb +3 -1
- data/rakelib/lib/director/validator.rb +12 -0
- data/rakelib/lib/director/variant.rb +64 -20
- data/rakelib/lib/director/vlistbox.rb +29 -22
- data/rakelib/lib/director/window.rb +12 -2
- 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 +6 -2
- data/rakelib/lib/swig_runner.rb +12 -12
- 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 +857 -0
- 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 +402 -12
- data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
- data/rakelib/lib/director/hvscrolled_window.rb +0 -140
|
@@ -0,0 +1,1271 @@
|
|
|
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
|
+
# Bitmap type flags.
|
|
10
|
+
#
|
|
11
|
+
# See {Wx::Bitmap} and {Wx::Image} classes.
|
|
12
|
+
#
|
|
13
|
+
class BitmapType < Wx::Enum
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
#
|
|
17
|
+
BITMAP_TYPE_INVALID = Wx::BitmapType.new(0)
|
|
18
|
+
|
|
19
|
+
#
|
|
20
|
+
#
|
|
21
|
+
BITMAP_TYPE_BMP = Wx::BitmapType.new(1)
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
BITMAP_TYPE_ICO = Wx::BitmapType.new(3)
|
|
26
|
+
|
|
27
|
+
#
|
|
28
|
+
#
|
|
29
|
+
BITMAP_TYPE_CUR = Wx::BitmapType.new(5)
|
|
30
|
+
|
|
31
|
+
#
|
|
32
|
+
#
|
|
33
|
+
BITMAP_TYPE_XBM = Wx::BitmapType.new(7)
|
|
34
|
+
|
|
35
|
+
#
|
|
36
|
+
#
|
|
37
|
+
BITMAP_TYPE_XBM_DATA = Wx::BitmapType.new(8)
|
|
38
|
+
|
|
39
|
+
#
|
|
40
|
+
#
|
|
41
|
+
BITMAP_TYPE_XPM = Wx::BitmapType.new(9)
|
|
42
|
+
|
|
43
|
+
#
|
|
44
|
+
#
|
|
45
|
+
BITMAP_TYPE_XPM_DATA = Wx::BitmapType.new(10)
|
|
46
|
+
|
|
47
|
+
#
|
|
48
|
+
#
|
|
49
|
+
BITMAP_TYPE_TIFF = Wx::BitmapType.new(11)
|
|
50
|
+
|
|
51
|
+
#
|
|
52
|
+
#
|
|
53
|
+
BITMAP_TYPE_TIF = Wx::BitmapType.new(11)
|
|
54
|
+
|
|
55
|
+
#
|
|
56
|
+
#
|
|
57
|
+
BITMAP_TYPE_GIF = Wx::BitmapType.new(13)
|
|
58
|
+
|
|
59
|
+
#
|
|
60
|
+
#
|
|
61
|
+
BITMAP_TYPE_PNG = Wx::BitmapType.new(15)
|
|
62
|
+
|
|
63
|
+
#
|
|
64
|
+
#
|
|
65
|
+
BITMAP_TYPE_JPEG = Wx::BitmapType.new(17)
|
|
66
|
+
|
|
67
|
+
#
|
|
68
|
+
#
|
|
69
|
+
BITMAP_TYPE_PNM = Wx::BitmapType.new(19)
|
|
70
|
+
|
|
71
|
+
#
|
|
72
|
+
#
|
|
73
|
+
BITMAP_TYPE_PCX = Wx::BitmapType.new(21)
|
|
74
|
+
|
|
75
|
+
#
|
|
76
|
+
#
|
|
77
|
+
BITMAP_TYPE_PICT = Wx::BitmapType.new(23)
|
|
78
|
+
|
|
79
|
+
#
|
|
80
|
+
#
|
|
81
|
+
BITMAP_TYPE_ICON = Wx::BitmapType.new(25)
|
|
82
|
+
|
|
83
|
+
#
|
|
84
|
+
#
|
|
85
|
+
BITMAP_TYPE_ANI = Wx::BitmapType.new(27)
|
|
86
|
+
|
|
87
|
+
#
|
|
88
|
+
#
|
|
89
|
+
BITMAP_TYPE_IFF = Wx::BitmapType.new(28)
|
|
90
|
+
|
|
91
|
+
#
|
|
92
|
+
#
|
|
93
|
+
BITMAP_TYPE_TGA = Wx::BitmapType.new(29)
|
|
94
|
+
|
|
95
|
+
#
|
|
96
|
+
#
|
|
97
|
+
BITMAP_TYPE_MACCURSOR = Wx::BitmapType.new(30)
|
|
98
|
+
|
|
99
|
+
#
|
|
100
|
+
#
|
|
101
|
+
BITMAP_TYPE_WEBP = Wx::BitmapType.new(32)
|
|
102
|
+
|
|
103
|
+
#
|
|
104
|
+
#
|
|
105
|
+
BITMAP_TYPE_ANY = Wx::BitmapType.new(50)
|
|
106
|
+
|
|
107
|
+
end # BitmapType
|
|
108
|
+
|
|
109
|
+
# Polygon filling mode.
|
|
110
|
+
#
|
|
111
|
+
# See {Wx::DC#draw_polygon}.
|
|
112
|
+
#
|
|
113
|
+
class PolygonFillMode < Wx::Enum
|
|
114
|
+
|
|
115
|
+
#
|
|
116
|
+
#
|
|
117
|
+
ODDEVEN_RULE = Wx::PolygonFillMode.new(1)
|
|
118
|
+
|
|
119
|
+
#
|
|
120
|
+
#
|
|
121
|
+
WINDING_RULE = Wx::PolygonFillMode.new(2)
|
|
122
|
+
|
|
123
|
+
end # PolygonFillMode
|
|
124
|
+
|
|
125
|
+
# Standard cursors.
|
|
126
|
+
#
|
|
127
|
+
# Notice that under WXMSW some of these cursors are defined in wx.rc file and not by the system itself so you should include this file from your own resource file (possibly creating a trivial resource file just containing a single include line if you don't need it otherwise) to be able to use them.
|
|
128
|
+
# See {Wx::Cursor}.
|
|
129
|
+
#
|
|
130
|
+
class StockCursor < Wx::Enum
|
|
131
|
+
|
|
132
|
+
#
|
|
133
|
+
#
|
|
134
|
+
CURSOR_NONE = Wx::StockCursor.new(0)
|
|
135
|
+
|
|
136
|
+
# A standard arrow cursor.
|
|
137
|
+
#
|
|
138
|
+
CURSOR_ARROW = Wx::StockCursor.new(1)
|
|
139
|
+
|
|
140
|
+
# A standard arrow cursor pointing to the right.
|
|
141
|
+
#
|
|
142
|
+
CURSOR_RIGHT_ARROW = Wx::StockCursor.new(2)
|
|
143
|
+
|
|
144
|
+
# Bullseye cursor.
|
|
145
|
+
#
|
|
146
|
+
CURSOR_BULLSEYE = Wx::StockCursor.new(3)
|
|
147
|
+
|
|
148
|
+
# Rectangular character cursor.
|
|
149
|
+
#
|
|
150
|
+
CURSOR_CHAR = Wx::StockCursor.new(4)
|
|
151
|
+
|
|
152
|
+
# A cross cursor.
|
|
153
|
+
#
|
|
154
|
+
CURSOR_CROSS = Wx::StockCursor.new(5)
|
|
155
|
+
|
|
156
|
+
# A hand cursor.
|
|
157
|
+
#
|
|
158
|
+
CURSOR_HAND = Wx::StockCursor.new(6)
|
|
159
|
+
|
|
160
|
+
# An I-beam cursor (vertical line).
|
|
161
|
+
#
|
|
162
|
+
CURSOR_IBEAM = Wx::StockCursor.new(7)
|
|
163
|
+
|
|
164
|
+
# Represents a mouse with the left button depressed.
|
|
165
|
+
#
|
|
166
|
+
CURSOR_LEFT_BUTTON = Wx::StockCursor.new(8)
|
|
167
|
+
|
|
168
|
+
# A magnifier icon.
|
|
169
|
+
#
|
|
170
|
+
CURSOR_MAGNIFIER = Wx::StockCursor.new(9)
|
|
171
|
+
|
|
172
|
+
# Represents a mouse with the middle button depressed.
|
|
173
|
+
#
|
|
174
|
+
CURSOR_MIDDLE_BUTTON = Wx::StockCursor.new(10)
|
|
175
|
+
|
|
176
|
+
# A no-entry sign cursor.
|
|
177
|
+
#
|
|
178
|
+
CURSOR_NO_ENTRY = Wx::StockCursor.new(11)
|
|
179
|
+
|
|
180
|
+
# A paintbrush cursor.
|
|
181
|
+
#
|
|
182
|
+
CURSOR_PAINT_BRUSH = Wx::StockCursor.new(12)
|
|
183
|
+
|
|
184
|
+
# A pencil cursor.
|
|
185
|
+
#
|
|
186
|
+
CURSOR_PENCIL = Wx::StockCursor.new(13)
|
|
187
|
+
|
|
188
|
+
# A cursor that points left.
|
|
189
|
+
#
|
|
190
|
+
CURSOR_POINT_LEFT = Wx::StockCursor.new(14)
|
|
191
|
+
|
|
192
|
+
# A cursor that points right.
|
|
193
|
+
#
|
|
194
|
+
CURSOR_POINT_RIGHT = Wx::StockCursor.new(15)
|
|
195
|
+
|
|
196
|
+
# An arrow and question mark.
|
|
197
|
+
#
|
|
198
|
+
CURSOR_QUESTION_ARROW = Wx::StockCursor.new(16)
|
|
199
|
+
|
|
200
|
+
# Represents a mouse with the right button depressed.
|
|
201
|
+
#
|
|
202
|
+
CURSOR_RIGHT_BUTTON = Wx::StockCursor.new(17)
|
|
203
|
+
|
|
204
|
+
# A sizing cursor pointing NE-SW.
|
|
205
|
+
#
|
|
206
|
+
CURSOR_SIZENESW = Wx::StockCursor.new(18)
|
|
207
|
+
|
|
208
|
+
# A sizing cursor pointing N-S.
|
|
209
|
+
#
|
|
210
|
+
CURSOR_SIZENS = Wx::StockCursor.new(19)
|
|
211
|
+
|
|
212
|
+
# A sizing cursor pointing NW-SE.
|
|
213
|
+
#
|
|
214
|
+
CURSOR_SIZENWSE = Wx::StockCursor.new(20)
|
|
215
|
+
|
|
216
|
+
# A sizing cursor pointing W-E.
|
|
217
|
+
#
|
|
218
|
+
CURSOR_SIZEWE = Wx::StockCursor.new(21)
|
|
219
|
+
|
|
220
|
+
# A general sizing cursor.
|
|
221
|
+
#
|
|
222
|
+
CURSOR_SIZING = Wx::StockCursor.new(22)
|
|
223
|
+
|
|
224
|
+
# A spraycan cursor.
|
|
225
|
+
#
|
|
226
|
+
CURSOR_SPRAYCAN = Wx::StockCursor.new(23)
|
|
227
|
+
|
|
228
|
+
# A wait cursor.
|
|
229
|
+
#
|
|
230
|
+
CURSOR_WAIT = Wx::StockCursor.new(24)
|
|
231
|
+
|
|
232
|
+
# A watch cursor.
|
|
233
|
+
#
|
|
234
|
+
CURSOR_WATCH = Wx::StockCursor.new(25)
|
|
235
|
+
|
|
236
|
+
# Transparent cursor.
|
|
237
|
+
#
|
|
238
|
+
CURSOR_BLANK = Wx::StockCursor.new(26)
|
|
239
|
+
|
|
240
|
+
# Standard X11 cursor (only in WXGTK).
|
|
241
|
+
#
|
|
242
|
+
CURSOR_DEFAULT = Wx::StockCursor.new(27)
|
|
243
|
+
|
|
244
|
+
# A wait cursor with a standard arrow.
|
|
245
|
+
#
|
|
246
|
+
CURSOR_ARROWWAIT = Wx::StockCursor.new(28)
|
|
247
|
+
|
|
248
|
+
#
|
|
249
|
+
#
|
|
250
|
+
CURSOR_MAX = Wx::StockCursor.new(29)
|
|
251
|
+
|
|
252
|
+
end # StockCursor
|
|
253
|
+
|
|
254
|
+
# Flags used by {Wx::Control.ellipsize} function.
|
|
255
|
+
#
|
|
256
|
+
#
|
|
257
|
+
#
|
|
258
|
+
class EllipsizeFlags < Wx::Enum
|
|
259
|
+
|
|
260
|
+
# No special flags.
|
|
261
|
+
#
|
|
262
|
+
ELLIPSIZE_FLAGS_NONE = Wx::EllipsizeFlags.new(0)
|
|
263
|
+
|
|
264
|
+
# Take mnemonics into account when calculating the text width.
|
|
265
|
+
#
|
|
266
|
+
ELLIPSIZE_FLAGS_PROCESS_MNEMONICS = Wx::EllipsizeFlags.new(1)
|
|
267
|
+
|
|
268
|
+
# Expand tabs in spaces when calculating the text width.
|
|
269
|
+
#
|
|
270
|
+
ELLIPSIZE_FLAGS_EXPAND_TABS = Wx::EllipsizeFlags.new(2)
|
|
271
|
+
|
|
272
|
+
# The default flags for {Wx::Control.ellipsize}.
|
|
273
|
+
#
|
|
274
|
+
ELLIPSIZE_FLAGS_DEFAULT = Wx::EllipsizeFlags.new(3)
|
|
275
|
+
|
|
276
|
+
end # EllipsizeFlags
|
|
277
|
+
|
|
278
|
+
# The different ellipsization modes supported by the {Wx::Control.ellipsize} and Wx::RendererNative#draw_item_text functions.
|
|
279
|
+
#
|
|
280
|
+
#
|
|
281
|
+
#
|
|
282
|
+
class EllipsizeMode < Wx::Enum
|
|
283
|
+
|
|
284
|
+
# Don't ellipsize the text at all.
|
|
285
|
+
#
|
|
286
|
+
ELLIPSIZE_NONE = Wx::EllipsizeMode.new(0)
|
|
287
|
+
|
|
288
|
+
# Put the ellipsis at the start of the string, if the string needs ellipsization.
|
|
289
|
+
#
|
|
290
|
+
ELLIPSIZE_START = Wx::EllipsizeMode.new(1)
|
|
291
|
+
|
|
292
|
+
# Put the ellipsis in the middle of the string, if the string needs ellipsization.
|
|
293
|
+
#
|
|
294
|
+
ELLIPSIZE_MIDDLE = Wx::EllipsizeMode.new(2)
|
|
295
|
+
|
|
296
|
+
# Put the ellipsis at the end of the string, if the string needs ellipsization.
|
|
297
|
+
#
|
|
298
|
+
ELLIPSIZE_END = Wx::EllipsizeMode.new(3)
|
|
299
|
+
|
|
300
|
+
end # EllipsizeMode
|
|
301
|
+
|
|
302
|
+
# Global instance of a {Wx::Point} initialized with values (-1,-1).
|
|
303
|
+
#
|
|
304
|
+
DEFAULT_POSITION = Wx::Point.new(-1, -1)
|
|
305
|
+
|
|
306
|
+
# Global instance of a {Wx::Size} object initialized to (-1,-1).
|
|
307
|
+
#
|
|
308
|
+
DEFAULT_SIZE = Wx::Size.new(-1, -1)
|
|
309
|
+
|
|
310
|
+
# Returns true if the display is colour, false otherwise.
|
|
311
|
+
#
|
|
312
|
+
# <div class="wxrb-note">
|
|
313
|
+
# <b>Note:</b>
|
|
314
|
+
# <p>Use of this function is not recommended in the new code as it only works for the primary display. Use {Wx::Display#get_depth} to retrieve the depth of the appropriate display and compare it with 1 instead.
|
|
315
|
+
# </p>
|
|
316
|
+
# </div>
|
|
317
|
+
# @return [Boolean]
|
|
318
|
+
def self.colour_display; end
|
|
319
|
+
|
|
320
|
+
# Returns the depth of the display (a value of 1 denotes a monochrome display).
|
|
321
|
+
#
|
|
322
|
+
# <div class="wxrb-note">
|
|
323
|
+
# <b>Note:</b>
|
|
324
|
+
# <p>Use of this function is not recommended in the new code as it only works for the primary display. Use {Wx::Display#get_depth} to retrieve the depth of the appropriate display instead.
|
|
325
|
+
# </p>
|
|
326
|
+
# </div>
|
|
327
|
+
# @return [Integer]
|
|
328
|
+
def self.display_depth; end
|
|
329
|
+
|
|
330
|
+
# Globally sets the cursor.
|
|
331
|
+
#
|
|
332
|
+
# The globally set cursor overrides any cursor set for the individual windows, i.e. the specified cursor will be used for all windows of the application until this function is called again with an empty cursor bundle to restore the default behaviour of using the window-specific cursors.
|
|
333
|
+
# Note that this function won't update the cursor size if the DPI or user preferred cursor size changes, as this is considered unlikely to happen while this temporary cursor is shown. If you do want to update the cursor size, you need to handle {Wx::EVT_DPI_CHANGED} and {Wx::EVT_SYS_METRIC_CHANGED} events and call this function again from their handlers.
|
|
334
|
+
# @see Wx::Cursor
|
|
335
|
+
# @see Wx::Window#set_cursor
|
|
336
|
+
# @see Wx::Window#set_cursor_bundle
|
|
337
|
+
# @param cursors [Wx::CursorBundle]
|
|
338
|
+
# @return [void]
|
|
339
|
+
def self.set_cursor(cursors) end
|
|
340
|
+
|
|
341
|
+
# Returns the dimensions of the work area on the display.
|
|
342
|
+
#
|
|
343
|
+
# On Windows this means the area not covered by the taskbar, etc. Other platforms are currently defaulting to the whole display until a way is found to provide this info for all window managers, etc.
|
|
344
|
+
# @see Wx::Display
|
|
345
|
+
# @return [Wx::Rect]
|
|
346
|
+
def self.get_client_display_rect; end
|
|
347
|
+
|
|
348
|
+
# Returns the display resolution in pixels per inch.
|
|
349
|
+
#
|
|
350
|
+
# The x component of the returned {Wx::Size} object contains the horizontal resolution and the y one the vertical resolution.
|
|
351
|
+
#
|
|
352
|
+
# <div class="wxrb-note">
|
|
353
|
+
# <b>Note:</b>
|
|
354
|
+
# <p>Use of this function is not recommended in the new code as it only works for the primary display. Use {Wx::Display#get_ppi} to retrieve the resolution of the appropriate display instead.
|
|
355
|
+
# </p>
|
|
356
|
+
# </div>
|
|
357
|
+
# @see Wx::Display
|
|
358
|
+
# @return [Wx::Size]
|
|
359
|
+
def self.get_display_ppi; end
|
|
360
|
+
|
|
361
|
+
# Returns the display size in pixels.
|
|
362
|
+
#
|
|
363
|
+
# <div class="wxrb-note">
|
|
364
|
+
# <b>Note:</b>
|
|
365
|
+
# <p>Use of this function is not recommended in the new code as it only works for the primary display. Use {Wx::Display#get_geometry} to retrieve the size of the appropriate display instead.
|
|
366
|
+
# </p>
|
|
367
|
+
# </div>
|
|
368
|
+
# @see Wx::Display
|
|
369
|
+
# @return [Wx::Size]
|
|
370
|
+
def self.get_display_size; end
|
|
371
|
+
|
|
372
|
+
# Returns the display size in millimeters.
|
|
373
|
+
#
|
|
374
|
+
#
|
|
375
|
+
# @see Wx::Display
|
|
376
|
+
# @return [Wx::Size]
|
|
377
|
+
def self.get_display_size_mm; end
|
|
378
|
+
|
|
379
|
+
# A {Wx::Point} is a useful data structure for graphics operations.
|
|
380
|
+
#
|
|
381
|
+
# It contains integer x and y members. See {Wx::RealPoint} for a floating point version.
|
|
382
|
+
# Note that the width and height stored inside a {Wx::Point} object may be negative and that {Wx::Point} functions do not perform any check against negative values (this is used to e.g. store the special -1 value in {Wx::DEFAULT_POSITION} instance).
|
|
383
|
+
#
|
|
384
|
+
# Category: Data Structures
|
|
385
|
+
# Predefined objects/pointers: {Wx::DEFAULT_POSITION}
|
|
386
|
+
# @see Wx::RealPoint
|
|
387
|
+
#
|
|
388
|
+
#
|
|
389
|
+
#
|
|
390
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
391
|
+
class Point < ::Object
|
|
392
|
+
|
|
393
|
+
# Returns true if neither of the point components is equal to {Wx::DEFAULT_COORD}.
|
|
394
|
+
#
|
|
395
|
+
# This method is typically used before calling {Wx::Point#set_defaults}.
|
|
396
|
+
# @return [Boolean]
|
|
397
|
+
def is_fully_specified; end
|
|
398
|
+
alias_method :fully_specified?, :is_fully_specified
|
|
399
|
+
|
|
400
|
+
# Combine this object with another one replacing the uninitialized values.
|
|
401
|
+
#
|
|
402
|
+
# It is typically used like this:
|
|
403
|
+
#
|
|
404
|
+
# ```ruby
|
|
405
|
+
# if !pos.is_fully_specified
|
|
406
|
+
# pos.set_defaults(get_default_position)
|
|
407
|
+
# end
|
|
408
|
+
# ```
|
|
409
|
+
# @see Wx::Point#is_fully_specified
|
|
410
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
|
411
|
+
# @return [void]
|
|
412
|
+
def set_defaults(pt) end
|
|
413
|
+
alias_method :defaults=, :set_defaults
|
|
414
|
+
|
|
415
|
+
# x member.
|
|
416
|
+
#
|
|
417
|
+
#
|
|
418
|
+
# @return [Integer]
|
|
419
|
+
def x; end
|
|
420
|
+
# x member.
|
|
421
|
+
#
|
|
422
|
+
#
|
|
423
|
+
# @param val [Integer]
|
|
424
|
+
# @return [void]
|
|
425
|
+
def x=(val); end
|
|
426
|
+
|
|
427
|
+
# y member.
|
|
428
|
+
#
|
|
429
|
+
#
|
|
430
|
+
# @return [Integer]
|
|
431
|
+
def y; end
|
|
432
|
+
# y member.
|
|
433
|
+
#
|
|
434
|
+
#
|
|
435
|
+
# @param val [Integer]
|
|
436
|
+
# @return [void]
|
|
437
|
+
def y=(val); end
|
|
438
|
+
|
|
439
|
+
# @overload initialize()
|
|
440
|
+
# Constructs a point.
|
|
441
|
+
#
|
|
442
|
+
# Initializes the internal x and y coordinates to zero.
|
|
443
|
+
# @return [Wx::Point]
|
|
444
|
+
# @overload initialize(x, y)
|
|
445
|
+
# Initializes the point object with the given x and y coordinates.
|
|
446
|
+
# @param x [Integer]
|
|
447
|
+
# @param y [Integer]
|
|
448
|
+
# @return [Wx::Point]
|
|
449
|
+
# @overload initialize(pt)
|
|
450
|
+
# Converts the given {Wx::RealPoint} (with floating point coordinates) to a {Wx::Point} instance.
|
|
451
|
+
#
|
|
452
|
+
# Notice that since v3.1.2 the behaviour of this constructor has changed to round the floating point values of pt components, if you want to truncate them instead, please use {Wx::Point.truncate}.
|
|
453
|
+
# @param pt [Wx::RealPoint]
|
|
454
|
+
# @return [Wx::Point]
|
|
455
|
+
def initialize(*args) end
|
|
456
|
+
|
|
457
|
+
# Creates a {Wx::Point} by rounding the coordinates of the given {Wx::RealPoint}.
|
|
458
|
+
#
|
|
459
|
+
# This is equivalent to using the constructor taking {Wx::RealPoint} but is more explicit about the fact that rounding is performed.
|
|
460
|
+
# @param pt [Wx::RealPoint]
|
|
461
|
+
# @return [Wx::Point]
|
|
462
|
+
def self.round(pt) end
|
|
463
|
+
|
|
464
|
+
# Creates a {Wx::Point} by truncating the coordinates of the given {Wx::RealPoint}.
|
|
465
|
+
#
|
|
466
|
+
# This is similar to {Wx::Point.round} but instead of rounding the coordinates, they are simply truncated to integers.
|
|
467
|
+
# @param pt [Wx::RealPoint]
|
|
468
|
+
# @return [Wx::Point]
|
|
469
|
+
def self.truncate(pt) end
|
|
470
|
+
|
|
471
|
+
end # Point
|
|
472
|
+
|
|
473
|
+
# A {Wx::Size} is a useful data structure for graphics operations.
|
|
474
|
+
#
|
|
475
|
+
# It simply contains integer x and y members.
|
|
476
|
+
# Note that the width and height stored inside a {Wx::Size} object may be negative and that {Wx::Size} functions do not perform any check against negative values (this is used to e.g. store the special -1 value in {Wx::DEFAULT_SIZE} instance). See also {Wx::Size#is_fully_specified} and {Wx::Size#set_defaults} for utility functions regarding the special -1 value.
|
|
477
|
+
# {Wx::Size} is used throughout wxWidgets as well as {Wx::Point} which, although almost equivalent to {Wx::Size}, has a different meaning: {Wx::Point} represents a position while {Wx::Size} represents the size.
|
|
478
|
+
#
|
|
479
|
+
# Category: Data Structures
|
|
480
|
+
# Predefined objects/pointers: {Wx::DEFAULT_SIZE}
|
|
481
|
+
# @see Wx::Point
|
|
482
|
+
# @see Wx::RealPoint
|
|
483
|
+
#
|
|
484
|
+
#
|
|
485
|
+
#
|
|
486
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
487
|
+
class Size < ::Object
|
|
488
|
+
|
|
489
|
+
# @overload dec_by(pt)
|
|
490
|
+
# Decreases the size in both x and y directions.
|
|
491
|
+
#
|
|
492
|
+
#
|
|
493
|
+
# @see Wx::Size#inc_by
|
|
494
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
|
495
|
+
# @return [void]
|
|
496
|
+
# @overload dec_by(size)
|
|
497
|
+
# Decreases the size in both x and y directions.
|
|
498
|
+
#
|
|
499
|
+
#
|
|
500
|
+
# @see Wx::Size#inc_by
|
|
501
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
502
|
+
# @return [void]
|
|
503
|
+
# @overload dec_by(dx, dy)
|
|
504
|
+
# Decreases the size in both x and y directions.
|
|
505
|
+
#
|
|
506
|
+
#
|
|
507
|
+
# @see Wx::Size#inc_by
|
|
508
|
+
# @param dx [Integer]
|
|
509
|
+
# @param dy [Integer]
|
|
510
|
+
# @return [void]
|
|
511
|
+
# @overload dec_by(d)
|
|
512
|
+
# Decreases the size in both x and y directions.
|
|
513
|
+
#
|
|
514
|
+
#
|
|
515
|
+
# @see Wx::Size#inc_by
|
|
516
|
+
# @param d [Integer]
|
|
517
|
+
# @return [void]
|
|
518
|
+
def dec_by(*args) end
|
|
519
|
+
|
|
520
|
+
# @overload inc_by(pt)
|
|
521
|
+
# Increases the size in both x and y directions.
|
|
522
|
+
#
|
|
523
|
+
#
|
|
524
|
+
# @see Wx::Size#dec_by
|
|
525
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
|
526
|
+
# @return [void]
|
|
527
|
+
# @overload inc_by(size)
|
|
528
|
+
# Increases the size in both x and y directions.
|
|
529
|
+
#
|
|
530
|
+
#
|
|
531
|
+
# @see Wx::Size#dec_by
|
|
532
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
533
|
+
# @return [void]
|
|
534
|
+
# @overload inc_by(dx, dy)
|
|
535
|
+
# Increases the size in both x and y directions.
|
|
536
|
+
#
|
|
537
|
+
#
|
|
538
|
+
# @see Wx::Size#dec_by
|
|
539
|
+
# @param dx [Integer]
|
|
540
|
+
# @param dy [Integer]
|
|
541
|
+
# @return [void]
|
|
542
|
+
# @overload inc_by(d)
|
|
543
|
+
# Increases the size in both x and y directions.
|
|
544
|
+
#
|
|
545
|
+
#
|
|
546
|
+
# @see Wx::Size#dec_by
|
|
547
|
+
# @param d [Integer]
|
|
548
|
+
# @return [void]
|
|
549
|
+
def inc_by(*args) end
|
|
550
|
+
|
|
551
|
+
# @overload initialize()
|
|
552
|
+
# Initializes this size object with zero width and height.
|
|
553
|
+
# @return [Wx::Size]
|
|
554
|
+
# @overload initialize(width, height)
|
|
555
|
+
# Initializes this size object with the given width and height.
|
|
556
|
+
# @param width [Integer]
|
|
557
|
+
# @param height [Integer]
|
|
558
|
+
# @return [Wx::Size]
|
|
559
|
+
def initialize(*args) end
|
|
560
|
+
|
|
561
|
+
# Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size.
|
|
562
|
+
#
|
|
563
|
+
#
|
|
564
|
+
# @see Wx::Size#inc_to
|
|
565
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
566
|
+
# @return [void]
|
|
567
|
+
def dec_to(size) end
|
|
568
|
+
|
|
569
|
+
# Decrements this object to be not bigger than the given size ignoring non-specified components.
|
|
570
|
+
#
|
|
571
|
+
# This is similar to {Wx::Size#dec_to} but doesn't do anything for x or y component if the same component of size is not specified, i.e. set to {Wx::DEFAULT_COORD}.
|
|
572
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
573
|
+
# @return [void]
|
|
574
|
+
def dec_to_if_specified(size) end
|
|
575
|
+
|
|
576
|
+
# Gets the height member.
|
|
577
|
+
# @return [Integer]
|
|
578
|
+
def get_height; end
|
|
579
|
+
alias_method :height, :get_height
|
|
580
|
+
|
|
581
|
+
# Gets the width member.
|
|
582
|
+
# @return [Integer]
|
|
583
|
+
def get_width; end
|
|
584
|
+
alias_method :width, :get_width
|
|
585
|
+
|
|
586
|
+
# Increments this object so that both of its dimensions are not less than the corresponding dimensions of the size.
|
|
587
|
+
#
|
|
588
|
+
#
|
|
589
|
+
# @see Wx::Size#dec_to
|
|
590
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
591
|
+
# @return [void]
|
|
592
|
+
def inc_to(size) end
|
|
593
|
+
|
|
594
|
+
# Returns true if this size is at least as big as the other one in both directions.
|
|
595
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
596
|
+
# @return [Boolean]
|
|
597
|
+
def is_at_least(size) end
|
|
598
|
+
alias_method :at_least?, :is_at_least
|
|
599
|
+
|
|
600
|
+
# Returns true if either of the size object components is 0 or -1/.
|
|
601
|
+
#
|
|
602
|
+
# Empty {Wx::Size} objects don't define a valid size in the geometric sense.
|
|
603
|
+
# @see Wx::Rect#is_empty
|
|
604
|
+
# @return [Boolean]
|
|
605
|
+
def is_empty; end
|
|
606
|
+
alias_method :empty?, :is_empty
|
|
607
|
+
|
|
608
|
+
# Returns true if neither of the size object components is equal to -1, which is used as default for the size values in wxWidgets (hence the predefined {Wx::DEFAULT_SIZE} has both of its components equal to -1).
|
|
609
|
+
#
|
|
610
|
+
# This method is typically used before calling {Wx::Size#set_defaults}.
|
|
611
|
+
# @return [Boolean]
|
|
612
|
+
def is_fully_specified; end
|
|
613
|
+
alias_method :fully_specified?, :is_fully_specified
|
|
614
|
+
|
|
615
|
+
# Scales the dimensions of this object by the given factors.
|
|
616
|
+
#
|
|
617
|
+
# If you want to scale both dimensions by the same factor you can also use {Wx::operator*=()}.
|
|
618
|
+
# A reference to this object (so that you can concatenate other operations in the same line).
|
|
619
|
+
# @param xscale [Float]
|
|
620
|
+
# @param yscale [Float]
|
|
621
|
+
# @return [Wx::Size]
|
|
622
|
+
def scale(xscale, yscale) end
|
|
623
|
+
|
|
624
|
+
# Sets the width and height members.
|
|
625
|
+
# @param width [Integer]
|
|
626
|
+
# @param height [Integer]
|
|
627
|
+
# @return [void]
|
|
628
|
+
def set(width, height) end
|
|
629
|
+
|
|
630
|
+
# Combine this size object with another one replacing the default (i.e. equal to -1) components of this object with those of the other.
|
|
631
|
+
#
|
|
632
|
+
# It is typically used like this:
|
|
633
|
+
#
|
|
634
|
+
# ```ruby
|
|
635
|
+
# if !size.is_fully_specified
|
|
636
|
+
# size.set_defaults(get_default_size)
|
|
637
|
+
# end
|
|
638
|
+
# ```
|
|
639
|
+
# @see Wx::Size#is_fully_specified
|
|
640
|
+
# @param sizeDefault [Array(Integer, Integer), Wx::Size]
|
|
641
|
+
# @return [void]
|
|
642
|
+
def set_defaults(sizeDefault) end
|
|
643
|
+
alias_method :defaults=, :set_defaults
|
|
644
|
+
|
|
645
|
+
# Sets the height.
|
|
646
|
+
# @param height [Integer]
|
|
647
|
+
# @return [void]
|
|
648
|
+
def set_height(height) end
|
|
649
|
+
alias_method :height=, :set_height
|
|
650
|
+
|
|
651
|
+
# Sets the width.
|
|
652
|
+
# @param width [Integer]
|
|
653
|
+
# @return [void]
|
|
654
|
+
def set_width(width) end
|
|
655
|
+
alias_method :width=, :set_width
|
|
656
|
+
|
|
657
|
+
end # Size
|
|
658
|
+
|
|
659
|
+
# Represents a rectangle with integer coordinates.
|
|
660
|
+
#
|
|
661
|
+
# x and y members specify the coordinates of the rectangle top-left corner and width and height specify its width and height respectively. The usual C++ semi-open interval convention is used: point p lies inside the rectangle if and only if both conditions below are satisfied:
|
|
662
|
+
# ```
|
|
663
|
+
# x <= p.x < x + width
|
|
664
|
+
# y <= p.y < y + height
|
|
665
|
+
# ```
|
|
666
|
+
#
|
|
667
|
+
# In other words, the rectangle left and right boundaries are at x and <code>x+width-1</code> and its top and bottom boundaries are at y and <code>y+height-1</code> respectively.
|
|
668
|
+
# Note that the x and y coordinates may be negative, but width and height are always strictly positive for non-empty rectangles.
|
|
669
|
+
#
|
|
670
|
+
# Category: Data Structures
|
|
671
|
+
# @see Wx::Point
|
|
672
|
+
# @see Wx::Size
|
|
673
|
+
#
|
|
674
|
+
#
|
|
675
|
+
#
|
|
676
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
677
|
+
class Rect < ::Object
|
|
678
|
+
|
|
679
|
+
# Returns the rectangle having the same size as this one but centered relatively to the given rectangle r.
|
|
680
|
+
#
|
|
681
|
+
# By default, rectangle is centred in both directions but if dir includes only {Wx::Orientation::VERTICAL} or only {Wx::Orientation::HORIZONTAL}, then it is only centered in this direction while the other component of its position remains unchanged.
|
|
682
|
+
# @see Wx::Rect#make_centered_in
|
|
683
|
+
# @param r [Wx::Rect]
|
|
684
|
+
# @param dir [Integer]
|
|
685
|
+
# @return [Wx::Rect]
|
|
686
|
+
def centre_in(r, dir=Wx::Orientation::BOTH) end
|
|
687
|
+
|
|
688
|
+
# Returns the rectangle having the same size as this one but centered relatively to the given rectangle r.
|
|
689
|
+
#
|
|
690
|
+
# By default, rectangle is centred in both directions but if dir includes only {Wx::Orientation::VERTICAL} or only {Wx::Orientation::HORIZONTAL}, then it is only centered in this direction while the other component of its position remains unchanged.
|
|
691
|
+
# @see Wx::Rect#make_centered_in
|
|
692
|
+
# @param r [Wx::Rect]
|
|
693
|
+
# @param dir [Integer]
|
|
694
|
+
# @return [Wx::Rect]
|
|
695
|
+
def center_in(r, dir=Wx::Orientation::BOTH) end
|
|
696
|
+
|
|
697
|
+
# @overload deflate(dx, dy)
|
|
698
|
+
# Decrease the rectangle size.
|
|
699
|
+
#
|
|
700
|
+
# This method is the opposite from {Wx::Rect#inflate}: Deflate(a, b) is equivalent to Inflate(-a, -b). Please refer to {Wx::Rect#inflate} for full description.
|
|
701
|
+
# @param dx [Integer]
|
|
702
|
+
# @param dy [Integer]
|
|
703
|
+
# @return [Wx::Rect]
|
|
704
|
+
# @overload deflate(diff)
|
|
705
|
+
# Decrease the rectangle size.
|
|
706
|
+
#
|
|
707
|
+
# This method is the opposite from {Wx::Rect#inflate}: Deflate(a, b) is equivalent to Inflate(-a, -b). Please refer to {Wx::Rect#inflate} for full description.
|
|
708
|
+
# @param diff [Array(Integer, Integer), Wx::Size]
|
|
709
|
+
# @return [Wx::Rect]
|
|
710
|
+
# @overload deflate(diff)
|
|
711
|
+
# Decrease the rectangle size.
|
|
712
|
+
#
|
|
713
|
+
# This method is the opposite from {Wx::Rect#inflate}: Deflate(a, b) is equivalent to Inflate(-a, -b). Please refer to {Wx::Rect#inflate} for full description.
|
|
714
|
+
# @param diff [Integer]
|
|
715
|
+
# @return [Wx::Rect]
|
|
716
|
+
def deflate(*args) end
|
|
717
|
+
|
|
718
|
+
# @overload inflate(dx, dy)
|
|
719
|
+
# Increases the size of the rectangle.
|
|
720
|
+
#
|
|
721
|
+
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
|
722
|
+
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
|
723
|
+
#
|
|
724
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
|
|
725
|
+
# - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
|
726
|
+
# @see Wx::Rect#deflate
|
|
727
|
+
# @param dx [Integer]
|
|
728
|
+
# @param dy [Integer]
|
|
729
|
+
# @return [Wx::Rect]
|
|
730
|
+
# @overload inflate(diff)
|
|
731
|
+
# Increases the size of the rectangle.
|
|
732
|
+
#
|
|
733
|
+
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
|
734
|
+
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
|
735
|
+
#
|
|
736
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
|
|
737
|
+
# - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
|
738
|
+
# @see Wx::Rect#deflate
|
|
739
|
+
# @param diff [Array(Integer, Integer), Wx::Size]
|
|
740
|
+
# @return [Wx::Rect]
|
|
741
|
+
# @overload inflate(diff)
|
|
742
|
+
# Increases the size of the rectangle.
|
|
743
|
+
#
|
|
744
|
+
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
|
745
|
+
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
|
746
|
+
#
|
|
747
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
|
|
748
|
+
# - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
|
749
|
+
# @see Wx::Rect#deflate
|
|
750
|
+
# @param diff [Integer]
|
|
751
|
+
# @return [Wx::Rect]
|
|
752
|
+
def inflate(*args) end
|
|
753
|
+
|
|
754
|
+
# Modifies the rectangle to contain the bounding box of this rectangle and the one passed in as parameter.
|
|
755
|
+
# @param rect [Wx::Rect]
|
|
756
|
+
# @return [Wx::Rect]
|
|
757
|
+
def union(rect) end
|
|
758
|
+
|
|
759
|
+
# @overload initialize()
|
|
760
|
+
# Default constructor.
|
|
761
|
+
#
|
|
762
|
+
# Initializes to zero the internal x, y, width and height members.
|
|
763
|
+
# @return [Wx::Rect]
|
|
764
|
+
# @overload initialize(x, y, width, height)
|
|
765
|
+
# Creates a {Wx::Rect} object from x, y, width and height values.
|
|
766
|
+
# @param x [Integer]
|
|
767
|
+
# @param y [Integer]
|
|
768
|
+
# @param width [Integer]
|
|
769
|
+
# @param height [Integer]
|
|
770
|
+
# @return [Wx::Rect]
|
|
771
|
+
# @overload initialize(topLeft, bottomRight)
|
|
772
|
+
# Creates a {Wx::Rect} object from top-left and bottom-right points.
|
|
773
|
+
#
|
|
774
|
+
# The width of the rectangle will be <code>bottomRight.x-topLeft.x+1</code> and the height will be <code>bottomRight.y-topLeft.y+1</code>.
|
|
775
|
+
# @param topLeft [Wx::Point]
|
|
776
|
+
# @param bottomRight [Wx::Point]
|
|
777
|
+
# @return [Wx::Rect]
|
|
778
|
+
# @overload initialize(pos, size)
|
|
779
|
+
# Creates a {Wx::Rect} object from position pos and size values.
|
|
780
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
|
781
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
782
|
+
# @return [Wx::Rect]
|
|
783
|
+
# @overload initialize(size)
|
|
784
|
+
# Creates a {Wx::Rect} object from size values at the origin.
|
|
785
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
|
786
|
+
# @return [Wx::Rect]
|
|
787
|
+
def initialize(*args) end
|
|
788
|
+
|
|
789
|
+
# @overload contains(x, y)
|
|
790
|
+
# Returns true if the given point is inside the rectangle (or on its boundary) and false otherwise.
|
|
791
|
+
# @param x [Integer]
|
|
792
|
+
# @param y [Integer]
|
|
793
|
+
# @return [Boolean]
|
|
794
|
+
# @overload contains(pt)
|
|
795
|
+
# Returns true if the given point is inside the rectangle (or on its boundary) and false otherwise.
|
|
796
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
|
797
|
+
# @return [Boolean]
|
|
798
|
+
# @overload contains(rect)
|
|
799
|
+
# Returns true if the given rectangle is completely inside this rectangle (or touches its boundary) and false otherwise.
|
|
800
|
+
# @param rect [Wx::Rect]
|
|
801
|
+
# @return [Boolean]
|
|
802
|
+
def contains(*args) end
|
|
803
|
+
|
|
804
|
+
# Gets the bottom point of the rectangle.
|
|
805
|
+
# @return [Integer]
|
|
806
|
+
def get_bottom; end
|
|
807
|
+
alias_method :bottom, :get_bottom
|
|
808
|
+
|
|
809
|
+
# Gets the position of the bottom left corner.
|
|
810
|
+
# @return [Wx::Point]
|
|
811
|
+
def get_bottom_left; end
|
|
812
|
+
alias_method :bottom_left, :get_bottom_left
|
|
813
|
+
|
|
814
|
+
# Gets the position of the bottom right corner.
|
|
815
|
+
# @return [Wx::Point]
|
|
816
|
+
def get_bottom_right; end
|
|
817
|
+
alias_method :bottom_right, :get_bottom_right
|
|
818
|
+
|
|
819
|
+
# Gets the height member.
|
|
820
|
+
# @return [Integer]
|
|
821
|
+
def get_height; end
|
|
822
|
+
alias_method :height, :get_height
|
|
823
|
+
|
|
824
|
+
# Gets the left point of the rectangle (the same as {Wx::Rect#get_x}).
|
|
825
|
+
# @return [Integer]
|
|
826
|
+
def get_left; end
|
|
827
|
+
alias_method :left, :get_left
|
|
828
|
+
|
|
829
|
+
# Gets the position.
|
|
830
|
+
# @return [Wx::Point]
|
|
831
|
+
def get_position; end
|
|
832
|
+
alias_method :position, :get_position
|
|
833
|
+
|
|
834
|
+
# Gets the right point of the rectangle.
|
|
835
|
+
# @return [Integer]
|
|
836
|
+
def get_right; end
|
|
837
|
+
alias_method :right, :get_right
|
|
838
|
+
|
|
839
|
+
# Gets the size.
|
|
840
|
+
#
|
|
841
|
+
#
|
|
842
|
+
# @see Wx::Rect#set_size
|
|
843
|
+
# @return [Wx::Size]
|
|
844
|
+
def get_size; end
|
|
845
|
+
alias_method :size, :get_size
|
|
846
|
+
|
|
847
|
+
# Gets the top point of the rectangle (the same as {Wx::Rect#get_y}).
|
|
848
|
+
# @return [Integer]
|
|
849
|
+
def get_top; end
|
|
850
|
+
alias_method :top, :get_top
|
|
851
|
+
|
|
852
|
+
# Gets the position of the top left corner of the rectangle, same as {Wx::Rect#get_position}.
|
|
853
|
+
# @return [Wx::Point]
|
|
854
|
+
def get_top_left; end
|
|
855
|
+
alias_method :top_left, :get_top_left
|
|
856
|
+
|
|
857
|
+
# Gets the position of the top right corner.
|
|
858
|
+
# @return [Wx::Point]
|
|
859
|
+
def get_top_right; end
|
|
860
|
+
alias_method :top_right, :get_top_right
|
|
861
|
+
|
|
862
|
+
# Gets the width member.
|
|
863
|
+
# @return [Integer]
|
|
864
|
+
def get_width; end
|
|
865
|
+
alias_method :width, :get_width
|
|
866
|
+
|
|
867
|
+
# Gets the x member.
|
|
868
|
+
# @return [Integer]
|
|
869
|
+
def get_x; end
|
|
870
|
+
alias_method :x, :get_x
|
|
871
|
+
|
|
872
|
+
# Gets the y member.
|
|
873
|
+
# @return [Integer]
|
|
874
|
+
def get_y; end
|
|
875
|
+
alias_method :y, :get_y
|
|
876
|
+
|
|
877
|
+
# Returns the overlapping portion of this rectangle and the one passed in as parameter.
|
|
878
|
+
# @param rect [Wx::Rect]
|
|
879
|
+
# @return [Wx::Rect]
|
|
880
|
+
def intersect(rect) end
|
|
881
|
+
|
|
882
|
+
# Returns true if this rectangle has a non-empty intersection with the rectangle rect and false otherwise.
|
|
883
|
+
# @param rect [Wx::Rect]
|
|
884
|
+
# @return [Boolean]
|
|
885
|
+
def intersects(rect) end
|
|
886
|
+
|
|
887
|
+
# Returns true if this rectangle has a width or height less than or equal to 0 and false otherwise.
|
|
888
|
+
#
|
|
889
|
+
# This is equivalent to using <code>Wx::Rect#get_size.Wx::Rect#is_empty</code>.
|
|
890
|
+
# @see Wx::Size#is_empty
|
|
891
|
+
# @return [Boolean]
|
|
892
|
+
def is_empty; end
|
|
893
|
+
alias_method :empty?, :is_empty
|
|
894
|
+
|
|
895
|
+
# Center this rectangle inside the given rectangle r.
|
|
896
|
+
#
|
|
897
|
+
# By default, rectangle is centred in both directions but if dir includes only {Wx::Orientation::VERTICAL} or only {Wx::Orientation::HORIZONTAL}, then it is only centered in this direction while the other component of its position remains unchanged.
|
|
898
|
+
# @see Wx::Rect#center_in
|
|
899
|
+
# @param r [Wx::Rect]
|
|
900
|
+
# @param dir [Integer]
|
|
901
|
+
# @return [void]
|
|
902
|
+
def make_centered_in(r, dir=Wx::Orientation::BOTH) end
|
|
903
|
+
|
|
904
|
+
# Sets the height.
|
|
905
|
+
# @param height [Integer]
|
|
906
|
+
# @return [void]
|
|
907
|
+
def set_height(height) end
|
|
908
|
+
alias_method :height=, :set_height
|
|
909
|
+
|
|
910
|
+
# Sets the position.
|
|
911
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
|
912
|
+
# @return [void]
|
|
913
|
+
def set_position(pos) end
|
|
914
|
+
alias_method :position=, :set_position
|
|
915
|
+
|
|
916
|
+
# Sets the size.
|
|
917
|
+
#
|
|
918
|
+
#
|
|
919
|
+
# @see Wx::Rect#get_size
|
|
920
|
+
# @param s [Array(Integer, Integer), Wx::Size]
|
|
921
|
+
# @return [void]
|
|
922
|
+
def set_size(s) end
|
|
923
|
+
alias_method :size=, :set_size
|
|
924
|
+
|
|
925
|
+
# Sets the width.
|
|
926
|
+
# @param width [Integer]
|
|
927
|
+
# @return [void]
|
|
928
|
+
def set_width(width) end
|
|
929
|
+
alias_method :width=, :set_width
|
|
930
|
+
|
|
931
|
+
# Sets the x position.
|
|
932
|
+
# @param x [Integer]
|
|
933
|
+
# @return [void]
|
|
934
|
+
def set_x(x) end
|
|
935
|
+
alias_method :x=, :set_x
|
|
936
|
+
|
|
937
|
+
# Sets the y position.
|
|
938
|
+
# @param y [Integer]
|
|
939
|
+
# @return [void]
|
|
940
|
+
def set_y(y) end
|
|
941
|
+
alias_method :y=, :set_y
|
|
942
|
+
|
|
943
|
+
# Set the left side of the rectangle.
|
|
944
|
+
#
|
|
945
|
+
# Notice that because the rectangle stores its left side and width, calling {Wx::Rect#set_left} changes the right side position too but does preserve the width.
|
|
946
|
+
# @param left [Integer]
|
|
947
|
+
# @return [void]
|
|
948
|
+
def set_left(left) end
|
|
949
|
+
alias_method :left=, :set_left
|
|
950
|
+
|
|
951
|
+
# Set the right side of the rectangle.
|
|
952
|
+
#
|
|
953
|
+
# Notice that this doesn't affect {Wx::Rect#get_left} return value but changes the rectangle width to set its right side to the given position.
|
|
954
|
+
# @param right [Integer]
|
|
955
|
+
# @return [void]
|
|
956
|
+
def set_right(right) end
|
|
957
|
+
alias_method :right=, :set_right
|
|
958
|
+
|
|
959
|
+
# Set the top edge of the rectangle.
|
|
960
|
+
#
|
|
961
|
+
# Notice that because the rectangle stores its top side and height, calling {Wx::Rect#set_top} changes the bottom side position too but does preserve the height.
|
|
962
|
+
# @param top [Integer]
|
|
963
|
+
# @return [void]
|
|
964
|
+
def set_top(top) end
|
|
965
|
+
alias_method :top=, :set_top
|
|
966
|
+
|
|
967
|
+
# Set the bottom edge of the rectangle.
|
|
968
|
+
#
|
|
969
|
+
# Notice that this doesn't affect {Wx::Rect#get_top} return value but changes the rectangle height to set its bottom side to the given position.
|
|
970
|
+
# @param bottom [Integer]
|
|
971
|
+
# @return [void]
|
|
972
|
+
def set_bottom(bottom) end
|
|
973
|
+
alias_method :bottom=, :set_bottom
|
|
974
|
+
|
|
975
|
+
# Set the top-left point of the rectangle.
|
|
976
|
+
# @param p [Array(Integer, Integer), Wx::Point]
|
|
977
|
+
# @return [void]
|
|
978
|
+
def set_top_left(p) end
|
|
979
|
+
alias_method :top_left=, :set_top_left
|
|
980
|
+
|
|
981
|
+
# Set the bottom-right point of the rectangle.
|
|
982
|
+
# @param p [Array(Integer, Integer), Wx::Point]
|
|
983
|
+
# @return [void]
|
|
984
|
+
def set_bottom_right(p) end
|
|
985
|
+
alias_method :bottom_right=, :set_bottom_right
|
|
986
|
+
|
|
987
|
+
# Set the top-right point of the rectangle.
|
|
988
|
+
# @param p [Array(Integer, Integer), Wx::Point]
|
|
989
|
+
# @return [void]
|
|
990
|
+
def set_top_right(p) end
|
|
991
|
+
alias_method :top_right=, :set_top_right
|
|
992
|
+
|
|
993
|
+
# Set the bottom-left point of the rectangle.
|
|
994
|
+
# @param p [Array(Integer, Integer), Wx::Point]
|
|
995
|
+
# @return [void]
|
|
996
|
+
def set_bottom_left(p) end
|
|
997
|
+
alias_method :bottom_left=, :set_bottom_left
|
|
998
|
+
|
|
999
|
+
end # Rect
|
|
1000
|
+
|
|
1001
|
+
# A {Wx::RealPoint} is a useful data structure for graphics operations.
|
|
1002
|
+
#
|
|
1003
|
+
# It contains floating point x and y members. See {Wx::Point} for an integer version.
|
|
1004
|
+
# Note that the coordinates stored inside a {Wx::RealPoint} object may be negative and that {Wx::RealPoint} functions do not perform any check against negative values.
|
|
1005
|
+
#
|
|
1006
|
+
# Category: Data Structures
|
|
1007
|
+
# @see Wx::Point
|
|
1008
|
+
#
|
|
1009
|
+
#
|
|
1010
|
+
#
|
|
1011
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
1012
|
+
class RealPoint < ::Object
|
|
1013
|
+
|
|
1014
|
+
# X coordinate of this point.
|
|
1015
|
+
#
|
|
1016
|
+
#
|
|
1017
|
+
# @return [Float]
|
|
1018
|
+
def x; end
|
|
1019
|
+
# X coordinate of this point.
|
|
1020
|
+
#
|
|
1021
|
+
#
|
|
1022
|
+
# @param val [Float]
|
|
1023
|
+
# @return [void]
|
|
1024
|
+
def x=(val); end
|
|
1025
|
+
|
|
1026
|
+
# Y coordinate of this point.
|
|
1027
|
+
#
|
|
1028
|
+
#
|
|
1029
|
+
# @return [Float]
|
|
1030
|
+
def y; end
|
|
1031
|
+
# Y coordinate of this point.
|
|
1032
|
+
#
|
|
1033
|
+
#
|
|
1034
|
+
# @param val [Float]
|
|
1035
|
+
# @return [void]
|
|
1036
|
+
def y=(val); end
|
|
1037
|
+
|
|
1038
|
+
# @overload initialize()
|
|
1039
|
+
# Initializes to zero the x and y members.
|
|
1040
|
+
# @return [Wx::RealPoint]
|
|
1041
|
+
# @overload initialize(x, y)
|
|
1042
|
+
# Initializes the point with the given coordinates.
|
|
1043
|
+
# @param x [Float]
|
|
1044
|
+
# @param y [Float]
|
|
1045
|
+
# @return [Wx::RealPoint]
|
|
1046
|
+
# @overload initialize(pt)
|
|
1047
|
+
# Converts the given {Wx::Point} (with integer coordinates) to a {Wx::RealPoint}.
|
|
1048
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
|
1049
|
+
# @return [Wx::RealPoint]
|
|
1050
|
+
def initialize(*args) end
|
|
1051
|
+
|
|
1052
|
+
end # RealPoint
|
|
1053
|
+
|
|
1054
|
+
# wxWidgets maintains a database of standard RGB colours for a predefined set of named colours.
|
|
1055
|
+
#
|
|
1056
|
+
# The application may add to this set if desired by using {Wx::ColourDatabase#add_colour} and may use it to look up colours by names using {Wx::ColourDatabase#find} or find the names for the standard colour using {Wx::ColourDatabase#find_name}.
|
|
1057
|
+
# It is also possible to switch between the colour values defined in the CSS standard (see https://www.w3.org/TR/css-color-4/\#named-colors) and the traditional colour values which were used by wxWidgets versions earlier than 3.3.0, which may be useful to preserve the appearance of the existing code: if you need to do this, please call {Wx::ColourDatabase#use_scheme} with Traditional argument, but the use of new, standard colours is recommended.
|
|
1058
|
+
# There is one predefined, global instance of this class called {Wx::TheColourDatabase}.
|
|
1059
|
+
# The standard database contains at least the following colours:
|
|
1060
|
+
#
|
|
1061
|
+
# AQUAMARINE
|
|
1062
|
+
#
|
|
1063
|
+
# BLACK
|
|
1064
|
+
#
|
|
1065
|
+
# BLUE
|
|
1066
|
+
#
|
|
1067
|
+
# BLUE VIOLET
|
|
1068
|
+
#
|
|
1069
|
+
# BROWN
|
|
1070
|
+
#
|
|
1071
|
+
# CADET BLUE
|
|
1072
|
+
#
|
|
1073
|
+
# CORAL
|
|
1074
|
+
#
|
|
1075
|
+
# CORNFLOWER BLUE
|
|
1076
|
+
#
|
|
1077
|
+
# CYAN
|
|
1078
|
+
#
|
|
1079
|
+
# DARK GREY
|
|
1080
|
+
#
|
|
1081
|
+
# DARK GREEN
|
|
1082
|
+
#
|
|
1083
|
+
# DARK OLIVE GREEN
|
|
1084
|
+
#
|
|
1085
|
+
# DARK ORCHID
|
|
1086
|
+
#
|
|
1087
|
+
# DARK SLATE BLUE
|
|
1088
|
+
#
|
|
1089
|
+
# DARK SLATE GREY
|
|
1090
|
+
#
|
|
1091
|
+
# DARK TURQUOISE
|
|
1092
|
+
#
|
|
1093
|
+
# DIM GREY
|
|
1094
|
+
# FIREBRICK
|
|
1095
|
+
#
|
|
1096
|
+
# FOREST GREEN
|
|
1097
|
+
#
|
|
1098
|
+
# GOLD
|
|
1099
|
+
#
|
|
1100
|
+
# GOLDENROD
|
|
1101
|
+
#
|
|
1102
|
+
# GREY
|
|
1103
|
+
#
|
|
1104
|
+
# GREEN
|
|
1105
|
+
#
|
|
1106
|
+
# GREEN YELLOW
|
|
1107
|
+
#
|
|
1108
|
+
# INDIAN RED
|
|
1109
|
+
#
|
|
1110
|
+
# KHAKI
|
|
1111
|
+
#
|
|
1112
|
+
# LIGHT BLUE
|
|
1113
|
+
#
|
|
1114
|
+
# LIGHT GREY
|
|
1115
|
+
#
|
|
1116
|
+
# LIGHT STEEL BLUE
|
|
1117
|
+
#
|
|
1118
|
+
# LIME GREEN
|
|
1119
|
+
#
|
|
1120
|
+
# MAGENTA
|
|
1121
|
+
#
|
|
1122
|
+
# MAROON
|
|
1123
|
+
#
|
|
1124
|
+
# MEDIUM AQUAMARINE
|
|
1125
|
+
#
|
|
1126
|
+
# MEDIUM BLUE
|
|
1127
|
+
# MEDIUM FOREST GREEN
|
|
1128
|
+
#
|
|
1129
|
+
# MEDIUM GOLDENROD
|
|
1130
|
+
#
|
|
1131
|
+
# MEDIUM ORCHID
|
|
1132
|
+
#
|
|
1133
|
+
# MEDIUM SEA GREEN
|
|
1134
|
+
#
|
|
1135
|
+
# MEDIUM SLATE BLUE
|
|
1136
|
+
#
|
|
1137
|
+
# MEDIUM SPRING GREEN
|
|
1138
|
+
#
|
|
1139
|
+
# MEDIUM TURQUOISE
|
|
1140
|
+
#
|
|
1141
|
+
# MEDIUM VIOLET RED
|
|
1142
|
+
#
|
|
1143
|
+
# MIDNIGHT BLUE
|
|
1144
|
+
#
|
|
1145
|
+
# NAVY
|
|
1146
|
+
#
|
|
1147
|
+
# ORANGE
|
|
1148
|
+
#
|
|
1149
|
+
# ORANGE RED
|
|
1150
|
+
#
|
|
1151
|
+
# ORCHID
|
|
1152
|
+
#
|
|
1153
|
+
# PALE GREEN
|
|
1154
|
+
#
|
|
1155
|
+
# PINK
|
|
1156
|
+
#
|
|
1157
|
+
# PLUM
|
|
1158
|
+
#
|
|
1159
|
+
# PURPLE
|
|
1160
|
+
# RED
|
|
1161
|
+
#
|
|
1162
|
+
# SALMON
|
|
1163
|
+
#
|
|
1164
|
+
# SEA GREEN
|
|
1165
|
+
#
|
|
1166
|
+
# SIENNA
|
|
1167
|
+
#
|
|
1168
|
+
# SKY BLUE
|
|
1169
|
+
#
|
|
1170
|
+
# SLATE BLUE
|
|
1171
|
+
#
|
|
1172
|
+
# SPRING GREEN
|
|
1173
|
+
#
|
|
1174
|
+
# STEEL BLUE
|
|
1175
|
+
#
|
|
1176
|
+
# TAN
|
|
1177
|
+
#
|
|
1178
|
+
# THISTLE
|
|
1179
|
+
#
|
|
1180
|
+
# TURQUOISE
|
|
1181
|
+
#
|
|
1182
|
+
# VIOLET
|
|
1183
|
+
#
|
|
1184
|
+
# VIOLET RED
|
|
1185
|
+
#
|
|
1186
|
+
# WHEAT
|
|
1187
|
+
#
|
|
1188
|
+
# WHITE
|
|
1189
|
+
#
|
|
1190
|
+
# YELLOW
|
|
1191
|
+
#
|
|
1192
|
+
# YELLOW GREEN
|
|
1193
|
+
#
|
|
1194
|
+
# See the "Database colours" page of the page_samples_drawing to see how all these colours look like.
|
|
1195
|
+
#
|
|
1196
|
+
# Category: Graphics Device Interface (GDI)
|
|
1197
|
+
# @see Wx::Colour
|
|
1198
|
+
#
|
|
1199
|
+
#
|
|
1200
|
+
#
|
|
1201
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
1202
|
+
class ColourDatabase < ::Object
|
|
1203
|
+
|
|
1204
|
+
# Possible colour schemes for {Wx::ColourDatabase#use_scheme}.
|
|
1205
|
+
#
|
|
1206
|
+
#
|
|
1207
|
+
#
|
|
1208
|
+
class Scheme < Wx::Enum
|
|
1209
|
+
|
|
1210
|
+
# Use CSS standard colours, default since 3.3.0.
|
|
1211
|
+
#
|
|
1212
|
+
CSS = Wx::ColourDatabase::Scheme.new(0)
|
|
1213
|
+
|
|
1214
|
+
# Use traditional wxWidgets colours for compatibility.
|
|
1215
|
+
#
|
|
1216
|
+
Traditional = Wx::ColourDatabase::Scheme.new(1)
|
|
1217
|
+
|
|
1218
|
+
end # Scheme
|
|
1219
|
+
|
|
1220
|
+
# Constructs the colour database.
|
|
1221
|
+
#
|
|
1222
|
+
# It will be initialized at the first use.
|
|
1223
|
+
# @return [Wx::ColourDatabase]
|
|
1224
|
+
def initialize; end
|
|
1225
|
+
|
|
1226
|
+
# Adds a colour to the database.
|
|
1227
|
+
#
|
|
1228
|
+
# If a colour with the same name already exists, it is replaced.
|
|
1229
|
+
# @param colourName [String]
|
|
1230
|
+
# @param colour [Wx::Colour,String,Symbol]
|
|
1231
|
+
# @return [void]
|
|
1232
|
+
def add_colour(colourName, colour) end
|
|
1233
|
+
|
|
1234
|
+
# Finds a colour given the name.
|
|
1235
|
+
#
|
|
1236
|
+
# Returns an invalid colour object (that is, {Wx::Colour#is_ok} will return false) if the colour wasn't found in the database.
|
|
1237
|
+
# @param colourName [String]
|
|
1238
|
+
# @return [Wx::Colour]
|
|
1239
|
+
def find(colourName) end
|
|
1240
|
+
|
|
1241
|
+
# Finds a colour name given the colour.
|
|
1242
|
+
#
|
|
1243
|
+
# Returns an empty string if the colour is not found in the database.
|
|
1244
|
+
# @param colour [Wx::Colour,String,Symbol]
|
|
1245
|
+
# @return [String]
|
|
1246
|
+
def find_name(colour) end
|
|
1247
|
+
|
|
1248
|
+
# List all known colours by name.
|
|
1249
|
+
# @return [Array<String>]
|
|
1250
|
+
def get_all_names; end
|
|
1251
|
+
alias_method :all_names, :get_all_names
|
|
1252
|
+
|
|
1253
|
+
# Select the colour scheme to use.
|
|
1254
|
+
#
|
|
1255
|
+
# By default, {Wx::ColourDatabase} uses CSS scheme which returns the standard values for the colours defined in the CSS specification, see https://www.w3.org/TR/css-color-4/\#named-colors
|
|
1256
|
+
# If preserving compatibility with the behaviour and appearance of the previous wxWidgets versions is important, you may switch to the traditional colour scheme by using this function with Traditional argument, e.g. call
|
|
1257
|
+
#
|
|
1258
|
+
# ```
|
|
1259
|
+
# wxTheColourDatabase->UseScheme(wxColourDatabase::Traditional);
|
|
1260
|
+
# ```
|
|
1261
|
+
#
|
|
1262
|
+
# during the application initialization. Please note that in the previous versions WXGTK already used CSS colour values, unlike all the other ports, so Traditional is not actually backwards compatible for WXGTK, but does make the colour values consistent across all platforms and the same as had been used by WXMSW and WXOSX before. In other words, to obtain 100% compatibility with the previous versions, the {Wx::ColourDatabase#use_scheme} call above should be made for all ports except WXGTK.
|
|
1263
|
+
# Note that the colour names defined only by wxWidgets, which notably includes all colour variants with spaces in their names, are still available in the default CSS colour scheme, with their traditional values but the names of colours defined by CSS standard are taken from it, e.g. "GREEN" corresponds to <code>\#00ff00</code> in the traditional scheme but to <code>\#008000</code> in the CSS scheme. Similarly, CSS colour names that were not defined by the previous wxWidgets versions are available even when using the traditional scheme, the scheme choice only affects the values of the colours defined by both wxWidgets and CSS with different values.
|
|
1264
|
+
# @param scheme [Wx::ColourDatabase::Scheme]
|
|
1265
|
+
# @return [void]
|
|
1266
|
+
def use_scheme(scheme) end
|
|
1267
|
+
|
|
1268
|
+
end # ColourDatabase
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
end
|