wxruby3 1.6.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CREDITS.md +32 -25
- data/INSTALL.md +19 -4
- data/README.md +5 -5
- data/assets/repo-social-preview.odg +0 -0
- data/assets/repo-social-preview.xcf +0 -0
- data/ext/wxruby3/include/wxRubyApp.h +58 -45
- data/ext/wxruby3/include/wxruby-runtime.h +78 -1
- data/ext/wxruby3/swig/common.i +2 -2
- data/ext/wxruby3/swig/custom/director.swg +2 -2
- data/ext/wxruby3/swig/custom/rubyprimtypes.swg +59 -15
- data/ext/wxruby3/swig/custom/rubyrun.swg +4 -0
- data/ext/wxruby3/swig/custom/rubytracking.swg +4 -0
- data/ext/wxruby3/swig/custom/swiglabels.swg +129 -0
- data/ext/wxruby3/swig/custom/swigrun.swg +15 -0
- data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +20 -0
- data/ext/wxruby3/swig/mark_free_impl.i +152 -88
- data/ext/wxruby3/swig/memory_management.i +1 -0
- data/ext/wxruby3/swig/wx.i +73 -44
- data/lib/wx/aui/events/evt_list.rb +148 -0
- data/lib/wx/aui/require.rb +0 -1
- data/lib/wx/core/calendar_ctrl.rb +15 -0
- data/lib/wx/core/clipboard.rb +9 -13
- data/lib/wx/core/config.rb +1 -1
- data/lib/wx/core/events/evt_list.rb +1458 -0
- data/lib/wx/core/font/encoding.rb +113 -0
- data/lib/wx/core/generic_validator.rb +83 -31
- data/lib/wx/core/tipwindow.rb +16 -0
- data/lib/wx/doc/aui/auitabctrl.rb +35 -0
- data/lib/wx/doc/config.rb +2 -2
- data/lib/wx/doc/functions.rb +1 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
- data/lib/wx/doc/gen/accelerator.rb +178 -0
- data/lib/wx/doc/gen/activity_indicator.rb +83 -0
- data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
- data/lib/wx/doc/gen/animation.rb +275 -0
- data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
- data/lib/wx/doc/gen/any_button.rb +191 -0
- data/lib/wx/doc/gen/app.rb +463 -0
- data/lib/wx/doc/gen/app_traits.rb +396 -0
- data/lib/wx/doc/gen/art_provider.rb +605 -0
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
- data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
- data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
- data/lib/wx/doc/gen/aui/event_list.rb +179 -0
- data/lib/wx/doc/gen/banner_window.rb +124 -0
- data/lib/wx/doc/gen/bitmap.rb +731 -0
- data/lib/wx/doc/gen/bitmap_button.rb +123 -0
- data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
- data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
- data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
- data/lib/wx/doc/gen/box_sizer.rb +85 -0
- data/lib/wx/doc/gen/brush.rb +251 -0
- data/lib/wx/doc/gen/busy_info.rb +157 -0
- data/lib/wx/doc/gen/button.rb +182 -0
- data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
- data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
- data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
- data/lib/wx/doc/gen/calendar_event.rb +147 -0
- data/lib/wx/doc/gen/caret.rb +97 -0
- data/lib/wx/doc/gen/check_box.rb +175 -0
- data/lib/wx/doc/gen/check_list_box.rb +121 -0
- data/lib/wx/doc/gen/choice.rb +175 -0
- data/lib/wx/doc/gen/choicebook.rb +116 -0
- data/lib/wx/doc/gen/client_dc.rb +43 -0
- data/lib/wx/doc/gen/clipboard.rb +144 -0
- data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
- data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
- data/lib/wx/doc/gen/colour.rb +333 -0
- data/lib/wx/doc/gen/colour_dialog.rb +190 -0
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
- data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
- data/lib/wx/doc/gen/combo_box.rb +292 -0
- data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
- data/lib/wx/doc/gen/command_link_button.rb +134 -0
- data/lib/wx/doc/gen/config_base.rb +10 -0
- data/lib/wx/doc/gen/context_help_button.rb +109 -0
- data/lib/wx/doc/gen/control.rb +277 -0
- data/lib/wx/doc/gen/control_with_items.rb +253 -0
- data/lib/wx/doc/gen/core.rb +45 -0
- data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
- data/lib/wx/doc/gen/cursor.rb +193 -0
- data/lib/wx/doc/gen/data_format.rb +85 -0
- data/lib/wx/doc/gen/data_object.rb +436 -0
- data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
- data/lib/wx/doc/gen/date_event.rb +49 -0
- data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
- data/lib/wx/doc/gen/dc.rb +1631 -0
- data/lib/wx/doc/gen/dc_overlay.rb +102 -0
- data/lib/wx/doc/gen/defs.rb +2802 -0
- data/lib/wx/doc/gen/dial_up_event.rb +45 -0
- data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
- data/lib/wx/doc/gen/dialog.rb +541 -0
- data/lib/wx/doc/gen/dir_dialog.rb +164 -0
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
- data/lib/wx/doc/gen/display.rb +238 -0
- data/lib/wx/doc/gen/drag_drop.rb +299 -0
- data/lib/wx/doc/gen/drag_image.rb +116 -0
- data/lib/wx/doc/gen/editable_list_box.rb +109 -0
- data/lib/wx/doc/gen/event.rb +990 -0
- data/lib/wx/doc/gen/event_blocker.rb +50 -0
- data/lib/wx/doc/gen/event_filter.rb +92 -0
- data/lib/wx/doc/gen/event_list.rb +1644 -0
- data/lib/wx/doc/gen/events.rb +2809 -0
- data/lib/wx/doc/gen/evt_handler.rb +229 -0
- data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
- data/lib/wx/doc/gen/file_ctrl.rb +231 -0
- data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
- data/lib/wx/doc/gen/file_dialog.rb +353 -0
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
- data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
- data/lib/wx/doc/gen/file_system.rb +232 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
- data/lib/wx/doc/gen/find_replace_data.rb +60 -0
- data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
- data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
- data/lib/wx/doc/gen/font.rb +1379 -0
- data/lib/wx/doc/gen/font_data.rb +151 -0
- data/lib/wx/doc/gen/font_dialog.rb +88 -0
- data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
- data/lib/wx/doc/gen/font_picker_event.rb +65 -0
- data/lib/wx/doc/gen/frame.rb +352 -0
- data/lib/wx/doc/gen/fs_file.rb +337 -0
- data/lib/wx/doc/gen/functions.rb +10 -0
- data/lib/wx/doc/gen/gauge.rb +157 -0
- data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
- data/lib/wx/doc/gen/gcdc.rb +46 -0
- data/lib/wx/doc/gen/gdi_common.rb +1271 -0
- data/lib/wx/doc/gen/gdi_object.rb +31 -0
- data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
- data/lib/wx/doc/gen/geometry.rb +661 -0
- data/lib/wx/doc/gen/graphics_context.rb +1184 -0
- data/lib/wx/doc/gen/graphics_object.rb +750 -0
- data/lib/wx/doc/gen/grid/event_list.rb +191 -0
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
- data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
- data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
- data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
- data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
- data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
- data/lib/wx/doc/gen/grid_sizer.rb +195 -0
- data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
- data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
- data/lib/wx/doc/gen/header_ctrl.rb +880 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
- data/lib/wx/doc/gen/help_controller.rb +195 -0
- data/lib/wx/doc/gen/help_provider.rb +98 -0
- data/lib/wx/doc/gen/html/event_list.rb +38 -0
- data/lib/wx/doc/gen/html/html_cell.rb +536 -0
- data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
- data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
- data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
- data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
- data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
- data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
- data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
- data/lib/wx/doc/gen/html/html_printout.rb +109 -0
- data/lib/wx/doc/gen/html/html_window.rb +461 -0
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
- data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
- data/lib/wx/doc/gen/icon.rb +267 -0
- data/lib/wx/doc/gen/icon_location.rb +40 -0
- data/lib/wx/doc/gen/image.rb +1371 -0
- data/lib/wx/doc/gen/image_list.rb +168 -0
- data/lib/wx/doc/gen/info_bar.rb +195 -0
- data/lib/wx/doc/gen/keyboard_state.rb +140 -0
- data/lib/wx/doc/gen/list_box.rb +304 -0
- data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
- data/lib/wx/doc/gen/list_event.rb +208 -0
- data/lib/wx/doc/gen/listbook.rb +116 -0
- data/lib/wx/doc/gen/locale.rb +4293 -0
- data/lib/wx/doc/gen/log.rb +603 -0
- data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
- data/lib/wx/doc/gen/mdi_frame.rb +324 -0
- data/lib/wx/doc/gen/media_ctrl.rb +269 -0
- data/lib/wx/doc/gen/media_event.rb +117 -0
- data/lib/wx/doc/gen/memory_dc.rb +174 -0
- data/lib/wx/doc/gen/menu.rb +509 -0
- data/lib/wx/doc/gen/menu_bar.rb +287 -0
- data/lib/wx/doc/gen/menu_item.rb +362 -0
- data/lib/wx/doc/gen/message_dialog.rb +238 -0
- data/lib/wx/doc/gen/mini_frame.rb +108 -0
- data/lib/wx/doc/gen/mirror_dc.rb +22 -0
- data/lib/wx/doc/gen/mouse_state.rb +150 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
- data/lib/wx/doc/gen/non_owned_window.rb +49 -0
- data/lib/wx/doc/gen/notebook.rb +278 -0
- data/lib/wx/doc/gen/num_validator.rb +37 -0
- data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
- data/lib/wx/doc/gen/object.rb +59 -0
- data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
- data/lib/wx/doc/gen/paint_dc.rb +27 -0
- data/lib/wx/doc/gen/palette.rb +92 -0
- data/lib/wx/doc/gen/panel.rb +127 -0
- data/lib/wx/doc/gen/pen.rb +511 -0
- data/lib/wx/doc/gen/persistence_manager.rb +135 -0
- data/lib/wx/doc/gen/persistent_object.rb +52 -0
- data/lib/wx/doc/gen/persistent_window.rb +241 -0
- data/lib/wx/doc/gen/pg/event_list.rb +106 -0
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
- data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
- data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
- data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
- data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
- data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
- data/lib/wx/doc/gen/picker_base.rb +152 -0
- data/lib/wx/doc/gen/platform_info.rb +622 -0
- data/lib/wx/doc/gen/popup_window.rb +107 -0
- data/lib/wx/doc/gen/progress_dialog.rb +100 -0
- data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
- data/lib/wx/doc/gen/prt/event_list.rb +17 -0
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
- data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
- data/lib/wx/doc/gen/prt/print_data.rb +804 -0
- data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
- data/lib/wx/doc/gen/prt/printer.rb +518 -0
- data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
- data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
- data/lib/wx/doc/gen/radio_box.rb +306 -0
- data/lib/wx/doc/gen/radio_button.rb +159 -0
- data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
- data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
- data/lib/wx/doc/gen/rearrange_list.rb +123 -0
- data/lib/wx/doc/gen/region.rb +380 -0
- data/lib/wx/doc/gen/region_iterator.rb +76 -0
- data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
- data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
- data/lib/wx/doc/gen/sash_event.rb +147 -0
- data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
- data/lib/wx/doc/gen/sash_window.rb +171 -0
- data/lib/wx/doc/gen/scaled_dc.rb +10 -0
- data/lib/wx/doc/gen/screen_dc.rb +30 -0
- data/lib/wx/doc/gen/scroll_bar.rb +204 -0
- data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
- data/lib/wx/doc/gen/scrolled_control.rb +410 -0
- data/lib/wx/doc/gen/scrolled_window.rb +430 -0
- data/lib/wx/doc/gen/search_ctrl.rb +159 -0
- data/lib/wx/doc/gen/secret_store.rb +116 -0
- data/lib/wx/doc/gen/simplebook.rb +110 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
- data/lib/wx/doc/gen/sizer.rb +945 -0
- data/lib/wx/doc/gen/sizer_item.rb +244 -0
- data/lib/wx/doc/gen/slider.rb +342 -0
- data/lib/wx/doc/gen/spin_button.rb +157 -0
- data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
- data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
- data/lib/wx/doc/gen/spin_double_event.rb +55 -0
- data/lib/wx/doc/gen/spin_event.rb +51 -0
- data/lib/wx/doc/gen/splash_screen.rb +113 -0
- data/lib/wx/doc/gen/splitter_event.rb +99 -0
- data/lib/wx/doc/gen/splitter_window.rb +498 -0
- data/lib/wx/doc/gen/static_bitmap.rb +256 -0
- data/lib/wx/doc/gen/static_box.rb +180 -0
- data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
- data/lib/wx/doc/gen/static_line.rb +83 -0
- data/lib/wx/doc/gen/static_text.rb +127 -0
- data/lib/wx/doc/gen/status_bar.rb +290 -0
- data/lib/wx/doc/gen/stc/event_list.rb +221 -0
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
- data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
- data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
- data/lib/wx/doc/gen/system_options.rb +129 -0
- data/lib/wx/doc/gen/system_settings.rb +507 -0
- data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
- data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
- data/lib/wx/doc/gen/text_attr.rb +756 -0
- data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
- data/lib/wx/doc/gen/text_entry.rb +441 -0
- data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
- data/lib/wx/doc/gen/text_validator.rb +245 -0
- data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
- data/lib/wx/doc/gen/timer.rb +119 -0
- data/lib/wx/doc/gen/timer_event.rb +68 -0
- data/lib/wx/doc/gen/tip_provider.rb +63 -0
- data/lib/wx/doc/gen/tip_window.rb +51 -0
- data/lib/wx/doc/gen/toggle_button.rb +182 -0
- data/lib/wx/doc/gen/tool_bar.rb +890 -0
- data/lib/wx/doc/gen/tool_tip.rb +86 -0
- data/lib/wx/doc/gen/toolbook.rb +118 -0
- data/lib/wx/doc/gen/top_level_window.rb +497 -0
- data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
- data/lib/wx/doc/gen/tree_event.rb +127 -0
- data/lib/wx/doc/gen/treebook.rb +180 -0
- data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
- data/lib/wx/doc/gen/utils.rb +273 -0
- data/lib/wx/doc/gen/v_list_box.rb +272 -0
- data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
- data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
- data/lib/wx/doc/gen/validator.rb +68 -0
- data/lib/wx/doc/gen/variant.rb +294 -0
- data/lib/wx/doc/gen/window.rb +2917 -0
- data/lib/wx/doc/gen/window_dc.rb +38 -0
- data/lib/wx/doc/gen/window_disabler.rb +30 -0
- data/lib/wx/doc/gen/with_images.rb +84 -0
- data/lib/wx/doc/gen/wizard.rb +257 -0
- data/lib/wx/doc/gen/wizard_event.rb +113 -0
- data/lib/wx/doc/gen/wizard_page.rb +65 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
- data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
- data/lib/wx/doc/gen/xml_node.rb +316 -0
- data/lib/wx/doc/gen/xml_resource.rb +320 -0
- data/lib/wx/doc/generic_validator.rb +5 -0
- data/lib/wx/doc/tip_window.rb +18 -6
- data/lib/wx/grid/events/evt_list.rb +166 -0
- data/lib/wx/html/events/evt_list.rb +27 -0
- data/lib/wx/html/simple_html_listbox.rb +46 -33
- data/lib/wx/keyword_defs.rb +9 -0
- data/lib/wx/pg/events/evt_list.rb +73 -0
- data/lib/wx/pg/pg_property.rb +26 -0
- data/lib/wx/pg/property_grid_interface.rb +2 -2
- data/lib/wx/rbn/events/evt_list.rb +102 -0
- data/lib/wx/rtc/events/evt_list.rb +98 -0
- data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
- data/lib/wx/stc/events/evt_list.rb +178 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wx/wxruby/cmd/setup.rb +6 -0
- data/rakelib/configure.rb +9 -0
- data/rakelib/gem.rake +3 -2
- data/rakelib/lib/config/linux.rb +1 -1
- data/rakelib/lib/config/macosx.rb +15 -1
- data/rakelib/lib/config/pkgman/linux.rb +7 -2
- data/rakelib/lib/config/unixish.rb +3 -3
- data/rakelib/lib/config.rb +16 -5
- data/rakelib/lib/core/include/swigdirector.inc +3 -3
- data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
- data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
- data/rakelib/lib/core/include/swigrun.inc +189 -0
- data/rakelib/lib/core/package.rb +3 -1
- data/rakelib/lib/director/accelerator.rb +1 -1
- data/rakelib/lib/director/animation.rb +1 -0
- data/rakelib/lib/director/app_traits.rb +1 -1
- data/rakelib/lib/director/aui_manager.rb +21 -14
- data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
- data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
- data/rakelib/lib/director/aui_notebook.rb +20 -3
- data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
- data/rakelib/lib/director/calendar_ctrl.rb +72 -14
- data/rakelib/lib/director/clipboard.rb +2 -0
- data/rakelib/lib/director/data_object.rb +15 -7
- data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
- data/rakelib/lib/director/display.rb +81 -0
- data/rakelib/lib/director/event.rb +33 -16
- data/rakelib/lib/director/event_handler.rb +27 -2
- data/rakelib/lib/director/functions.rb +9 -0
- data/rakelib/lib/director/geometry.rb +5 -0
- data/rakelib/lib/director/grid_ctrl.rb +123 -28
- data/rakelib/lib/director/help_provider.rb +1 -1
- data/rakelib/lib/director/html_listbox.rb +16 -3
- data/rakelib/lib/director/hvscrolled.rb +7 -106
- data/rakelib/lib/director/image_list.rb +1 -0
- data/rakelib/lib/director/mdi_frame.rb +4 -0
- data/rakelib/lib/director/menu.rb +56 -15
- data/rakelib/lib/director/menu_bar.rb +62 -0
- data/rakelib/lib/director/menu_item.rb +7 -1
- data/rakelib/lib/director/num_validator.rb +27 -0
- data/rakelib/lib/director/numeric_property_validator.rb +9 -0
- data/rakelib/lib/director/popup_window.rb +2 -0
- data/rakelib/lib/director/preview_frame.rb +29 -6
- data/rakelib/lib/director/printer.rb +59 -5
- data/rakelib/lib/director/property_grid.rb +37 -18
- data/rakelib/lib/director/property_grid_interface.rb +10 -8
- data/rakelib/lib/director/property_grid_manager.rb +99 -39
- data/rakelib/lib/director/property_grid_page.rb +60 -0
- data/rakelib/lib/director/rich_tooltip.rb +22 -0
- data/rakelib/lib/director/richtext_ctrl.rb +5 -0
- data/rakelib/lib/director/richtext_object.rb +13 -4
- data/rakelib/lib/director/richtext_style_listbox.rb +4 -1
- data/rakelib/lib/director/scrolled_t.rb +3 -0
- data/rakelib/lib/director/searchctrl.rb +1 -0
- data/rakelib/lib/director/task_bar_icon.rb +14 -8
- data/rakelib/lib/director/text_validator.rb +9 -0
- data/rakelib/lib/director/tip_window.rb +117 -6
- data/rakelib/lib/director/tool_bar.rb +6 -0
- data/rakelib/lib/director/validator.rb +12 -0
- data/rakelib/lib/director/variant.rb +36 -20
- data/rakelib/lib/director/vlistbox.rb +25 -22
- data/rakelib/lib/director/window.rb +10 -1
- data/rakelib/lib/director/xml_resource.rb +6 -0
- data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
- data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
- data/rakelib/lib/generate/doc.rb +12 -7
- data/rakelib/lib/generate/interface.rb +16 -1
- data/rakelib/lib/specs/interfaces.rb +3 -1
- data/rakelib/lib/swig_runner.rb +10 -10
- data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
- data/rakelib/lib/typemap/common.rb +3 -3
- data/rakelib/lib/typemap/print_page_range.rb +32 -8
- data/samples/art/wxruby-512x512.png +0 -0
- data/samples/calendar/calendar.rb +64 -1
- data/samples/dialogs/dialogs.rb +172 -0
- data/samples/dialogs/tip.xpm +157 -0
- data/samples/drawing/maths_images.rb +1 -1
- data/samples/event/event.rb +1 -1
- data/samples/printing/printing2.rb +1 -1
- data/samples/sampler.rb +26 -8
- data/samples/text/textctrl.rb +2 -2
- data/samples/treectrl/treectrl.rb +2 -2
- data/tests/lib/leaked_process_event_exception_test.rb +1 -1
- data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
- data/tests/lib/wxapp_runner.rb +31 -41
- data/tests/lib/wxframe_runner.rb +23 -11
- data/tests/lib/wxrb_test.rb +58 -0
- data/tests/test_app_event_filter.rb +1 -1
- data/tests/test_app_exit_exception.rb +3 -3
- data/tests/test_app_init_exception.rb +3 -3
- data/tests/test_app_traits.rb +24 -21
- data/tests/test_art.rb +7 -7
- data/tests/test_art_provider.rb +1 -1
- data/tests/test_basic.rb +2 -2
- data/tests/test_book_controls.rb +1 -1
- data/tests/test_box_sizer.rb +1 -1
- data/tests/test_clipboard.rb +5 -5
- data/tests/test_combo_ctrl.rb +2 -2
- data/tests/test_config.rb +11 -1
- data/tests/test_dc.rb +1 -1
- data/tests/test_dialog.rb +1 -1
- data/tests/test_event_handling.rb +1 -1
- data/tests/test_events.rb +1 -1
- data/tests/test_exceptions.rb +2 -2
- data/tests/test_ext_controls.rb +10 -10
- data/tests/test_file_dialog.rb +1 -1
- data/tests/test_font.rb +1 -1
- data/tests/test_gdi_object.rb +1 -1
- data/tests/test_geometry.rb +2 -2
- data/tests/test_grid_sizer.rb +2 -2
- data/tests/test_intl.rb +1 -1
- data/tests/test_item_data.rb +12 -12
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_log.rb +2 -2
- data/tests/test_media_ctrl.rb +1 -1
- data/tests/test_menu.rb +114 -43
- data/tests/test_proof_check.rb +1 -1
- data/tests/test_propgrid.rb +31 -31
- data/tests/test_richtext.rb +10 -24
- data/tests/test_secret_store.rb +1 -1
- data/tests/test_sizer.rb +1 -1
- data/tests/test_std_controls.rb +8 -8
- data/tests/test_styled_text_ctrl.rb +1 -1
- data/tests/test_timer.rb +1 -1
- data/tests/test_tree_ctrl.rb +1 -1
- data/tests/test_validators.rb +79 -36
- data/tests/test_variant.rb +1 -1
- data/tests/test_window.rb +11 -11
- data/tests/testapp.rb +2 -2
- data/tests/testapp_noframe.rb +2 -2
- metadata +400 -11
- data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
|
@@ -0,0 +1,1184 @@
|
|
|
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
|
+
# Anti-aliasing modes used by {Wx::GraphicsContext#set_antialias_mode}.
|
|
10
|
+
#
|
|
11
|
+
#
|
|
12
|
+
#
|
|
13
|
+
# @wxrb_require USE_GRAPHICS_CONTEXT
|
|
14
|
+
class AntialiasMode < Wx::Enum
|
|
15
|
+
|
|
16
|
+
# No anti-aliasing.
|
|
17
|
+
#
|
|
18
|
+
ANTIALIAS_NONE = Wx::AntialiasMode.new(0)
|
|
19
|
+
|
|
20
|
+
# The default anti-aliasing.
|
|
21
|
+
#
|
|
22
|
+
ANTIALIAS_DEFAULT = Wx::AntialiasMode.new(1)
|
|
23
|
+
|
|
24
|
+
end # AntialiasMode
|
|
25
|
+
|
|
26
|
+
# Interpolation quality used by {Wx::GraphicsContext#set_interpolation_quality}.
|
|
27
|
+
#
|
|
28
|
+
#
|
|
29
|
+
#
|
|
30
|
+
# @wxrb_require USE_GRAPHICS_CONTEXT
|
|
31
|
+
class InterpolationQuality < Wx::Enum
|
|
32
|
+
|
|
33
|
+
# default interpolation, based on type of context, in general medium quality
|
|
34
|
+
#
|
|
35
|
+
INTERPOLATION_DEFAULT = Wx::InterpolationQuality.new(0)
|
|
36
|
+
|
|
37
|
+
# no interpolation
|
|
38
|
+
#
|
|
39
|
+
INTERPOLATION_NONE = Wx::InterpolationQuality.new(1)
|
|
40
|
+
|
|
41
|
+
# fast interpolation, suited for interactivity
|
|
42
|
+
#
|
|
43
|
+
INTERPOLATION_FAST = Wx::InterpolationQuality.new(2)
|
|
44
|
+
|
|
45
|
+
# better quality
|
|
46
|
+
#
|
|
47
|
+
INTERPOLATION_GOOD = Wx::InterpolationQuality.new(3)
|
|
48
|
+
|
|
49
|
+
# best quality, not suited for interactivity
|
|
50
|
+
#
|
|
51
|
+
INTERPOLATION_BEST = Wx::InterpolationQuality.new(4)
|
|
52
|
+
|
|
53
|
+
end # InterpolationQuality
|
|
54
|
+
|
|
55
|
+
# Compositing is done using Porter-Duff compositions (see http://keithp.com/~keithp/porterduff/p253-porter.pdf) with {Wx::GraphicsContext#set_composition_mode}.
|
|
56
|
+
#
|
|
57
|
+
# The description gives a short equation on how the values of a resulting pixel are calculated. R = Result, S = Source, D = Destination, colors premultiplied with alpha Ra, Sa, Da their alpha components
|
|
58
|
+
#
|
|
59
|
+
# @wxrb_require USE_GRAPHICS_CONTEXT
|
|
60
|
+
class CompositionMode < Wx::Enum
|
|
61
|
+
|
|
62
|
+
# Indicates invalid or unsupported composition mode.
|
|
63
|
+
#
|
|
64
|
+
COMPOSITION_INVALID = Wx::CompositionMode.new(-1)
|
|
65
|
+
|
|
66
|
+
# R = 0
|
|
67
|
+
#
|
|
68
|
+
COMPOSITION_CLEAR = Wx::CompositionMode.new(0)
|
|
69
|
+
|
|
70
|
+
# R = S
|
|
71
|
+
#
|
|
72
|
+
COMPOSITION_SOURCE = Wx::CompositionMode.new(1)
|
|
73
|
+
|
|
74
|
+
# R = S + D*(1 - Sa)
|
|
75
|
+
#
|
|
76
|
+
COMPOSITION_OVER = Wx::CompositionMode.new(2)
|
|
77
|
+
|
|
78
|
+
# R = S*Da
|
|
79
|
+
#
|
|
80
|
+
COMPOSITION_IN = Wx::CompositionMode.new(3)
|
|
81
|
+
|
|
82
|
+
# R = S*(1 - Da)
|
|
83
|
+
#
|
|
84
|
+
COMPOSITION_OUT = Wx::CompositionMode.new(4)
|
|
85
|
+
|
|
86
|
+
# R = S*Da + D*(1 - Sa)
|
|
87
|
+
#
|
|
88
|
+
COMPOSITION_ATOP = Wx::CompositionMode.new(5)
|
|
89
|
+
|
|
90
|
+
# R = D, essentially a noop
|
|
91
|
+
#
|
|
92
|
+
COMPOSITION_DEST = Wx::CompositionMode.new(6)
|
|
93
|
+
|
|
94
|
+
# R = S*(1 - Da) + D
|
|
95
|
+
#
|
|
96
|
+
COMPOSITION_DEST_OVER = Wx::CompositionMode.new(7)
|
|
97
|
+
|
|
98
|
+
# R = D*Sa
|
|
99
|
+
#
|
|
100
|
+
COMPOSITION_DEST_IN = Wx::CompositionMode.new(8)
|
|
101
|
+
|
|
102
|
+
# R = D*(1 - Sa)
|
|
103
|
+
#
|
|
104
|
+
COMPOSITION_DEST_OUT = Wx::CompositionMode.new(9)
|
|
105
|
+
|
|
106
|
+
# R = S*(1 - Da) + D*Sa
|
|
107
|
+
#
|
|
108
|
+
COMPOSITION_DEST_ATOP = Wx::CompositionMode.new(10)
|
|
109
|
+
|
|
110
|
+
# R = S*(1 - Da) + D*(1 - Sa)
|
|
111
|
+
#
|
|
112
|
+
COMPOSITION_XOR = Wx::CompositionMode.new(11)
|
|
113
|
+
|
|
114
|
+
# R = S + D
|
|
115
|
+
#
|
|
116
|
+
COMPOSITION_ADD = Wx::CompositionMode.new(12)
|
|
117
|
+
|
|
118
|
+
# Result is the absolute value of the difference between the source and the destination.
|
|
119
|
+
#
|
|
120
|
+
COMPOSITION_DIFF = Wx::CompositionMode.new(13)
|
|
121
|
+
|
|
122
|
+
end # CompositionMode
|
|
123
|
+
|
|
124
|
+
# Used to indicate what kind of gradient is set in a {Wx::GraphicsPenInfo} object.
|
|
125
|
+
#
|
|
126
|
+
#
|
|
127
|
+
#
|
|
128
|
+
# @wxrb_require USE_GRAPHICS_CONTEXT
|
|
129
|
+
class GradientType < Wx::Enum
|
|
130
|
+
|
|
131
|
+
# No gradient.
|
|
132
|
+
#
|
|
133
|
+
GRADIENT_NONE = Wx::GradientType.new(0)
|
|
134
|
+
|
|
135
|
+
# A gradient that blends two or more colors along an axis.
|
|
136
|
+
#
|
|
137
|
+
GRADIENT_LINEAR = Wx::GradientType.new(1)
|
|
138
|
+
|
|
139
|
+
# A gradient that blends two or more colors across an ellipse.
|
|
140
|
+
#
|
|
141
|
+
GRADIENT_RADIAL = Wx::GradientType.new(2)
|
|
142
|
+
|
|
143
|
+
end # GradientType
|
|
144
|
+
|
|
145
|
+
# An empty {Wx::GraphicsPen} object.
|
|
146
|
+
#
|
|
147
|
+
NULL_GRAPHICS_PEN = nil
|
|
148
|
+
|
|
149
|
+
# An empty {Wx::GraphicsBrush} object.
|
|
150
|
+
#
|
|
151
|
+
NULL_GRAPHICS_BRUSH = nil
|
|
152
|
+
|
|
153
|
+
# An empty {Wx::GraphicsFont} object.
|
|
154
|
+
#
|
|
155
|
+
NULL_GRAPHICS_FONT = nil
|
|
156
|
+
|
|
157
|
+
# An empty {Wx::GraphicsBitmap} object.
|
|
158
|
+
#
|
|
159
|
+
NULL_GRAPHICS_BITMAP = nil
|
|
160
|
+
|
|
161
|
+
# An empty {Wx::GraphicsMatrix} object.
|
|
162
|
+
#
|
|
163
|
+
NULL_GRAPHICS_MATRIX = nil
|
|
164
|
+
|
|
165
|
+
# An empty {Wx::GraphicsPath} object.
|
|
166
|
+
#
|
|
167
|
+
NULL_GRAPHICS_PATH = nil
|
|
168
|
+
|
|
169
|
+
# A {Wx::GraphicsContext} instance is the object that is drawn upon.
|
|
170
|
+
#
|
|
171
|
+
# It is created by a renderer using {Wx::GraphicsRenderer#create_context}. This can be either directly using a renderer instance, or indirectly using the static convenience {Wx::GraphicsContext.create} functions of {Wx::GraphicsContext} that always delegate the task to the default renderer.
|
|
172
|
+
#
|
|
173
|
+
# ```ruby
|
|
174
|
+
# class MyCanvas < Wx::ScrolledWindow
|
|
175
|
+
#
|
|
176
|
+
# def on_paint(event)
|
|
177
|
+
# # Create paint DC
|
|
178
|
+
# self.paint do |dc|
|
|
179
|
+
# # Create graphics context from it
|
|
180
|
+
# Wx::GraphicsContext.draw_on(dc) do |gc|
|
|
181
|
+
# # make a path that contains a circle and some lines
|
|
182
|
+
# gc.set_pen(Wx::RED_PEN)
|
|
183
|
+
# path = gc.create_path
|
|
184
|
+
# path.add_circle(50.0, 50.0, 50.0)
|
|
185
|
+
# path.move_to_point(0.0, 50.0)
|
|
186
|
+
# path.add_line_to_point(100.0, 50.0)
|
|
187
|
+
# path.move_to_point(50.0, 0.0)
|
|
188
|
+
# path.add_line_to_point(50.0, 100.0)
|
|
189
|
+
# path.close_sub_path
|
|
190
|
+
# path.add_rectangle(25.0, 25.0, 50.0, 50.0)
|
|
191
|
+
#
|
|
192
|
+
# gc.stroke_path(path)
|
|
193
|
+
# end
|
|
194
|
+
# end
|
|
195
|
+
# end
|
|
196
|
+
# end
|
|
197
|
+
# end
|
|
198
|
+
# ```
|
|
199
|
+
#
|
|
200
|
+
# <div class="wxrb-remark">
|
|
201
|
+
# <b>Remark:</b>
|
|
202
|
+
# <p>For some renderers (like Direct2D or Cairo), the processing of drawing operations may be deferred. For example, Direct2D render targets normally build up a batch of rendering commands but defers processing them, while Cairo operates on a separate surface. To make drawing results visible, you need to update the context's content by either calling {Wx::GraphicsContext#flush} or by destroying the context.
|
|
203
|
+
# </p>
|
|
204
|
+
# </div>
|
|
205
|
+
#
|
|
206
|
+
# Category: Graphics Device Interface (GDI), Device Contexts
|
|
207
|
+
# @see Wx::GraphicsRenderer#create_context
|
|
208
|
+
# @see Wx::GCDC
|
|
209
|
+
# @see Wx::DC
|
|
210
|
+
#
|
|
211
|
+
#
|
|
212
|
+
#
|
|
213
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
214
|
+
# @wxrb_require USE_GRAPHICS_CONTEXT
|
|
215
|
+
class GraphicsContext < GraphicsObject
|
|
216
|
+
|
|
217
|
+
# @overload self.create(window)
|
|
218
|
+
# Creates a {Wx::GraphicsContext} from a {Wx::Window}.
|
|
219
|
+
#
|
|
220
|
+
#
|
|
221
|
+
# @see Wx::GraphicsRenderer#create_context
|
|
222
|
+
# @param window [Wx::Window]
|
|
223
|
+
# @return [Wx::GraphicsContext]
|
|
224
|
+
# @overload self.create(windowDC)
|
|
225
|
+
# Creates a {Wx::GraphicsContext} from a {Wx::WindowDC}.
|
|
226
|
+
#
|
|
227
|
+
#
|
|
228
|
+
# @see Wx::GraphicsRenderer#create_context
|
|
229
|
+
# @param windowDC [Wx::WindowDC]
|
|
230
|
+
# @return [Wx::GraphicsContext]
|
|
231
|
+
# @overload self.create(memoryDC)
|
|
232
|
+
# Creates a {Wx::GraphicsContext} from a {Wx::MemoryDC}.
|
|
233
|
+
#
|
|
234
|
+
#
|
|
235
|
+
# @see Wx::GraphicsRenderer#create_context
|
|
236
|
+
# @param memoryDC [Wx::MemoryDC]
|
|
237
|
+
# @return [Wx::GraphicsContext]
|
|
238
|
+
# @overload self.create(printerDC)
|
|
239
|
+
# Creates a {Wx::GraphicsContext} from a {Wx::PRT::PrinterDC}.
|
|
240
|
+
#
|
|
241
|
+
# Under GTK+, this will only work when using the GtkPrint printing backend (which is available since GTK+ 2.10).
|
|
242
|
+
# @see Wx::GraphicsRenderer#create_context
|
|
243
|
+
# @see Printing Under Unix (GTK+)
|
|
244
|
+
# @param printerDC [Wx::PRT::PrinterDC]
|
|
245
|
+
# @return [Wx::GraphicsContext]
|
|
246
|
+
# @wxrb_require WXMSW|WXOSX|USE_GTKPRINT
|
|
247
|
+
# @overload self.create(image)
|
|
248
|
+
# Creates a {Wx::GraphicsContext} associated with a {Wx::Image}.
|
|
249
|
+
#
|
|
250
|
+
# The image specifies the size of the context, as well as whether alpha is supported (if {Wx::Image#has_alpha}) or not and the initial contents of the context. The image object must have a life time greater than that of the new context as the context copies its contents back to the image when it is destroyed.
|
|
251
|
+
# @param image [Wx::Image]
|
|
252
|
+
# @return [Wx::GraphicsContext]
|
|
253
|
+
# @overload self.create()
|
|
254
|
+
# Create a lightweight context that can be used only for measuring text.
|
|
255
|
+
# @return [Wx::GraphicsContext]
|
|
256
|
+
def self.create(*args) end
|
|
257
|
+
|
|
258
|
+
# Resets the clipping to original shape.
|
|
259
|
+
#
|
|
260
|
+
# <div class="wxrb-remark">
|
|
261
|
+
# <b>Remark:</b>
|
|
262
|
+
# <p>Use {Wx::GraphicsContext#get_clip_box} to cache and restore a previous clipping area.
|
|
263
|
+
# </p>
|
|
264
|
+
# </div>
|
|
265
|
+
# @return [void]
|
|
266
|
+
def reset_clip; end
|
|
267
|
+
|
|
268
|
+
# @overload clip(region)
|
|
269
|
+
# Sets the clipping region to the intersection of the given region and the previously set clipping region.
|
|
270
|
+
#
|
|
271
|
+
# The clipping region is an area to which drawing is restricted.
|
|
272
|
+
#
|
|
273
|
+
# <div class="wxrb-remark">
|
|
274
|
+
# <b>Remark:</b>
|
|
275
|
+
# <p>
|
|
276
|
+
#
|
|
277
|
+
# - Clipping region should be given in logical coordinates.
|
|
278
|
+
# - Calling this function can only make the clipping region smaller, never larger.
|
|
279
|
+
# - You need to call {Wx::GraphicsContext#reset_clip} first if you want to set the clipping region exactly to the region specified.
|
|
280
|
+
# - If resulting clipping region is empty, then all drawing upon the context is clipped out (all changes made by drawing operations are masked out).
|
|
281
|
+
#
|
|
282
|
+
# </p>
|
|
283
|
+
# </div>
|
|
284
|
+
# @param region [Wx::Region]
|
|
285
|
+
# @return [void]
|
|
286
|
+
# @overload clip(x, y, w, h)
|
|
287
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
288
|
+
# @param x [Float]
|
|
289
|
+
# @param y [Float]
|
|
290
|
+
# @param w [Float]
|
|
291
|
+
# @param h [Float]
|
|
292
|
+
# @return [void]
|
|
293
|
+
# @overload clip(rect)
|
|
294
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
295
|
+
# @param rect [Wx::Rect2DDouble]
|
|
296
|
+
# @return [void]
|
|
297
|
+
def clip(*args) end
|
|
298
|
+
|
|
299
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
300
|
+
# @return [Wx::Rect2DDouble]
|
|
301
|
+
def get_clip_box; end
|
|
302
|
+
alias_method :clip_box, :get_clip_box
|
|
303
|
+
|
|
304
|
+
# Creates a native affine transformation matrix from the passed-in values.
|
|
305
|
+
#
|
|
306
|
+
# The default parameters result in an identity matrix.
|
|
307
|
+
# @param a [Float]
|
|
308
|
+
# @param b [Float]
|
|
309
|
+
# @param c [Float]
|
|
310
|
+
# @param d [Float]
|
|
311
|
+
# @param tx [Float]
|
|
312
|
+
# @param ty [Float]
|
|
313
|
+
# @return [Wx::GraphicsMatrix]
|
|
314
|
+
def create_matrix(a=1.0, b=0.0, c=0.0, d=1.0, tx=0.0, ty=0.0) end
|
|
315
|
+
|
|
316
|
+
# Concatenates the passed-in transform with the current transform of this context.
|
|
317
|
+
# @param matrix [Wx::GraphicsMatrix]
|
|
318
|
+
# @return [void]
|
|
319
|
+
def concat_transform(matrix) end
|
|
320
|
+
|
|
321
|
+
# Gets the current transformation matrix of this context.
|
|
322
|
+
# @return [Wx::GraphicsMatrix]
|
|
323
|
+
def get_transform; end
|
|
324
|
+
alias_method :transform, :get_transform
|
|
325
|
+
|
|
326
|
+
# Rotates the current transformation matrix (in radians).
|
|
327
|
+
#
|
|
328
|
+
# This can be useful for applying a tilt to your drawing commands or for drawing radial patterns.
|
|
329
|
+
#
|
|
330
|
+
# <div class="wxrb-note">
|
|
331
|
+
# <b>Note:</b>
|
|
332
|
+
# <p>A positive angle will rotate clockwise, negative counterclockwise.
|
|
333
|
+
# </p>
|
|
334
|
+
# </div>
|
|
335
|
+
# @see deg_to_rad
|
|
336
|
+
# @param angle [Float] Rotation angle in radians, clockwise.
|
|
337
|
+
# @return [void]
|
|
338
|
+
def rotate(angle) end
|
|
339
|
+
|
|
340
|
+
# Scales (i.e., shrinks or grows) the current transformation matrix.
|
|
341
|
+
# @param xScale [Float]
|
|
342
|
+
# @param yScale [Float]
|
|
343
|
+
# @return [void]
|
|
344
|
+
def scale(xScale, yScale) end
|
|
345
|
+
|
|
346
|
+
# Sets the current transformation matrix of this context.
|
|
347
|
+
# @param matrix [Wx::GraphicsMatrix]
|
|
348
|
+
# @return [void]
|
|
349
|
+
def set_transform(matrix) end
|
|
350
|
+
alias_method :transform=, :set_transform
|
|
351
|
+
|
|
352
|
+
# @overload translate(dx, dy)
|
|
353
|
+
# Translates (i.e., moves) the current transformation matrix.
|
|
354
|
+
# @param dx [Float]
|
|
355
|
+
# @param dy [Float]
|
|
356
|
+
# @return [void]
|
|
357
|
+
# @overload translate(pt)
|
|
358
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
359
|
+
# @param pt [Wx::Point2DDouble]
|
|
360
|
+
# @return [void]
|
|
361
|
+
def translate(*args) end
|
|
362
|
+
|
|
363
|
+
# Creates a native brush from a {Wx::Brush}.
|
|
364
|
+
# @param brush [Wx::Brush]
|
|
365
|
+
# @return [Wx::GraphicsBrush]
|
|
366
|
+
def create_brush(brush) end
|
|
367
|
+
|
|
368
|
+
# @overload create_linear_gradient_brush(x1, y1, x2, y2, c1, c2, matrix=Wx::NULL_GRAPHICS_MATRIX)
|
|
369
|
+
# Creates a native brush with a linear gradient.
|
|
370
|
+
#
|
|
371
|
+
# The brush starts at (x1, y1) and ends at (x2, y2). Either just the start and end gradient colours (c1 and c2) or full set of gradient stops can be specified.
|
|
372
|
+
# The version taking {Wx::GraphicsGradientStops} is new in wxWidgets 2.9.1.
|
|
373
|
+
# The matrix parameter was added in wxWidgets 3.1.3.
|
|
374
|
+
# @param x1 [Float]
|
|
375
|
+
# @param y1 [Float]
|
|
376
|
+
# @param x2 [Float]
|
|
377
|
+
# @param y2 [Float]
|
|
378
|
+
# @param c1 [Wx::Colour,String,Symbol]
|
|
379
|
+
# @param c2 [Wx::Colour,String,Symbol]
|
|
380
|
+
# @param matrix [Wx::GraphicsMatrix]
|
|
381
|
+
# @return [Wx::GraphicsBrush]
|
|
382
|
+
# @overload create_linear_gradient_brush(x1, y1, x2, y2, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
|
|
383
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
384
|
+
# @param x1 [Float]
|
|
385
|
+
# @param y1 [Float]
|
|
386
|
+
# @param x2 [Float]
|
|
387
|
+
# @param y2 [Float]
|
|
388
|
+
# @param stops [Wx::GraphicsGradientStops]
|
|
389
|
+
# @param matrix [Wx::GraphicsMatrix]
|
|
390
|
+
# @return [Wx::GraphicsBrush]
|
|
391
|
+
def create_linear_gradient_brush(*args) end
|
|
392
|
+
|
|
393
|
+
# @overload create_radial_gradient_brush(startX, startY, endX, endY, radius, oColor, cColor, matrix=Wx::NULL_GRAPHICS_MATRIX)
|
|
394
|
+
# Creates a native brush with a radial gradient.
|
|
395
|
+
#
|
|
396
|
+
# The brush originates at (startX, startY) and ends on a circle around (endX, endY) with the given radius.
|
|
397
|
+
# The gradient may be specified either by its start and end colours, oColor and cColor, or by a full set of gradient stops.
|
|
398
|
+
# The version taking {Wx::GraphicsGradientStops} is new in wxWidgets 2.9.1.
|
|
399
|
+
# The ability to apply a transformation matrix to the gradient was added in 3.1.3.
|
|
400
|
+
# @param startX [Float]
|
|
401
|
+
# @param startY [Float]
|
|
402
|
+
# @param endX [Float]
|
|
403
|
+
# @param endY [Float]
|
|
404
|
+
# @param radius [Float]
|
|
405
|
+
# @param oColor [Wx::Colour,String,Symbol]
|
|
406
|
+
# @param cColor [Wx::Colour,String,Symbol]
|
|
407
|
+
# @param matrix [Wx::GraphicsMatrix]
|
|
408
|
+
# @return [Wx::GraphicsBrush]
|
|
409
|
+
# @overload create_radial_gradient_brush(startX, startY, endX, endY, radius, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
|
|
410
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
411
|
+
# @param startX [Float]
|
|
412
|
+
# @param startY [Float]
|
|
413
|
+
# @param endX [Float]
|
|
414
|
+
# @param endY [Float]
|
|
415
|
+
# @param radius [Float]
|
|
416
|
+
# @param stops [Wx::GraphicsGradientStops]
|
|
417
|
+
# @param matrix [Wx::GraphicsMatrix]
|
|
418
|
+
# @return [Wx::GraphicsBrush]
|
|
419
|
+
def create_radial_gradient_brush(*args) end
|
|
420
|
+
|
|
421
|
+
# @overload set_brush(brush)
|
|
422
|
+
# Sets the brush for filling paths.
|
|
423
|
+
# @param brush [Wx::Brush]
|
|
424
|
+
# @return [void]
|
|
425
|
+
# @overload set_brush(brush)
|
|
426
|
+
# Sets the brush for filling paths.
|
|
427
|
+
# @param brush [Wx::GraphicsBrush]
|
|
428
|
+
# @return [void]
|
|
429
|
+
def set_brush(*args) end
|
|
430
|
+
alias_method :brush=, :set_brush
|
|
431
|
+
|
|
432
|
+
# @overload create_pen(pen)
|
|
433
|
+
# Creates a native pen from a {Wx::Pen}.
|
|
434
|
+
#
|
|
435
|
+
# Prefer to use the overload taking {Wx::GraphicsPenInfo} unless you already have a {Wx::Pen} as constructing one only to pass it to this method is wasteful.
|
|
436
|
+
# @param pen [Wx::Pen]
|
|
437
|
+
# @return [Wx::GraphicsPen]
|
|
438
|
+
# @overload create_pen(info)
|
|
439
|
+
# Creates a native pen from a {Wx::GraphicsPenInfo}.
|
|
440
|
+
# @param info [Wx::GraphicsPenInfo]
|
|
441
|
+
# @return [Wx::GraphicsPen]
|
|
442
|
+
def create_pen(*args) end
|
|
443
|
+
|
|
444
|
+
# @overload set_pen(pen)
|
|
445
|
+
# Sets the pen used for stroking.
|
|
446
|
+
# @param pen [Wx::Pen]
|
|
447
|
+
# @return [void]
|
|
448
|
+
# @overload set_pen(pen)
|
|
449
|
+
# Sets the pen used for stroking.
|
|
450
|
+
# @param pen [Wx::GraphicsPen]
|
|
451
|
+
# @return [void]
|
|
452
|
+
def set_pen(*args) end
|
|
453
|
+
alias_method :pen=, :set_pen
|
|
454
|
+
|
|
455
|
+
# @overload draw_bitmap(bmp, x, y, w, h)
|
|
456
|
+
# Draws the bitmap.
|
|
457
|
+
#
|
|
458
|
+
# In case of a mono bitmap, this is treated as a mask and the current brushed is used for filling.
|
|
459
|
+
# @param bmp [Wx::GraphicsBitmap]
|
|
460
|
+
# @param x [Float]
|
|
461
|
+
# @param y [Float]
|
|
462
|
+
# @param w [Float]
|
|
463
|
+
# @param h [Float]
|
|
464
|
+
# @return [void]
|
|
465
|
+
# @overload draw_bitmap(bmp, x, y, w, h)
|
|
466
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
467
|
+
# @param bmp [Wx::Bitmap]
|
|
468
|
+
# @param x [Float]
|
|
469
|
+
# @param y [Float]
|
|
470
|
+
# @param w [Float]
|
|
471
|
+
# @param h [Float]
|
|
472
|
+
# @return [void]
|
|
473
|
+
# @overload draw_bitmap(bmp, rect)
|
|
474
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
475
|
+
# @param bmp [Wx::GraphicsBitmap]
|
|
476
|
+
# @param rect [Wx::Rect2DDouble]
|
|
477
|
+
# @return [void]
|
|
478
|
+
def draw_bitmap(*args) end
|
|
479
|
+
|
|
480
|
+
# @overload draw_ellipse(x, y, w, h)
|
|
481
|
+
# Draws an ellipse.
|
|
482
|
+
# @param x [Float]
|
|
483
|
+
# @param y [Float]
|
|
484
|
+
# @param w [Float]
|
|
485
|
+
# @param h [Float]
|
|
486
|
+
# @return [void]
|
|
487
|
+
# @overload draw_ellipse(rect)
|
|
488
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
489
|
+
# @param rect [Wx::Rect2DDouble]
|
|
490
|
+
# @return [void]
|
|
491
|
+
def draw_ellipse(*args) end
|
|
492
|
+
|
|
493
|
+
# @overload draw_icon(icon, x, y, w, h)
|
|
494
|
+
# Draws the icon.
|
|
495
|
+
# @param icon [Wx::Icon]
|
|
496
|
+
# @param x [Float]
|
|
497
|
+
# @param y [Float]
|
|
498
|
+
# @param w [Float]
|
|
499
|
+
# @param h [Float]
|
|
500
|
+
# @return [void]
|
|
501
|
+
# @overload draw_icon(icon, rect)
|
|
502
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
503
|
+
# @param icon [Wx::Icon]
|
|
504
|
+
# @param rect [Wx::Rect2DDouble]
|
|
505
|
+
# @return [void]
|
|
506
|
+
def draw_icon(*args) end
|
|
507
|
+
|
|
508
|
+
# Draws the path by first filling and then stroking.
|
|
509
|
+
# @param path [Wx::GraphicsPath]
|
|
510
|
+
# @param fillStyle [Wx::PolygonFillMode]
|
|
511
|
+
# @return [void]
|
|
512
|
+
def draw_path(path, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
|
|
513
|
+
|
|
514
|
+
# @overload draw_rectangle(x, y, w, h)
|
|
515
|
+
# Draws a rectangle.
|
|
516
|
+
# @param x [Float]
|
|
517
|
+
# @param y [Float]
|
|
518
|
+
# @param w [Float]
|
|
519
|
+
# @param h [Float]
|
|
520
|
+
# @return [void]
|
|
521
|
+
# @overload draw_rectangle(rect)
|
|
522
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
523
|
+
# @param rect [Wx::Rect2DDouble]
|
|
524
|
+
# @return [void]
|
|
525
|
+
def draw_rectangle(*args) end
|
|
526
|
+
|
|
527
|
+
# @overload draw_rounded_rectangle(x, y, w, h, radius)
|
|
528
|
+
# Draws a rounded rectangle.
|
|
529
|
+
# @param x [Float]
|
|
530
|
+
# @param y [Float]
|
|
531
|
+
# @param w [Float]
|
|
532
|
+
# @param h [Float]
|
|
533
|
+
# @param radius [Float]
|
|
534
|
+
# @return [void]
|
|
535
|
+
# @overload draw_rounded_rectangle(rect, radius)
|
|
536
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
537
|
+
# @param rect [Wx::Rect2DDouble]
|
|
538
|
+
# @param radius [Float]
|
|
539
|
+
# @return [void]
|
|
540
|
+
def draw_rounded_rectangle(*args) end
|
|
541
|
+
|
|
542
|
+
# @overload draw_text(str, x, y)
|
|
543
|
+
# Draws text at the defined position.
|
|
544
|
+
# @param str [String]
|
|
545
|
+
# @param x [Float]
|
|
546
|
+
# @param y [Float]
|
|
547
|
+
# @return [void]
|
|
548
|
+
# @overload draw_text(str, pt)
|
|
549
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
550
|
+
# @param str [String]
|
|
551
|
+
# @param pt [Wx::Point2DDouble]
|
|
552
|
+
# @return [void]
|
|
553
|
+
# @overload draw_text(str, x, y, angle)
|
|
554
|
+
# Draws text at the defined position.
|
|
555
|
+
# @param str [String] The text to draw.
|
|
556
|
+
# @param x [Float] The x coordinate position to draw the text at.
|
|
557
|
+
# @param y [Float] The y coordinate position to draw the text at.
|
|
558
|
+
# @param angle [Float] The angle, in radians, relative to the (default) horizontal direction to draw the string.
|
|
559
|
+
# @return [void]
|
|
560
|
+
# @overload draw_text(str, x, y, backgroundBrush)
|
|
561
|
+
# Draws text at the defined position.
|
|
562
|
+
# @param str [String] The text to draw.
|
|
563
|
+
# @param x [Float] The x coordinate position to draw the text at.
|
|
564
|
+
# @param y [Float] The y coordinate position to draw the text at.
|
|
565
|
+
# @param backgroundBrush [Wx::GraphicsBrush] Brush to fill the text with.
|
|
566
|
+
# @return [void]
|
|
567
|
+
# @overload draw_text(str, x, y, angle, backgroundBrush)
|
|
568
|
+
# Draws text at the defined position.
|
|
569
|
+
# @param str [String] The text to draw.
|
|
570
|
+
# @param x [Float] The x coordinate position to draw the text at.
|
|
571
|
+
# @param y [Float] The y coordinate position to draw the text at.
|
|
572
|
+
# @param angle [Float] The angle, in radians, relative to the (default) horizontal direction to draw the string.
|
|
573
|
+
# @param backgroundBrush [Wx::GraphicsBrush] Brush to fill the text with.
|
|
574
|
+
# @return [void]
|
|
575
|
+
def draw_text(*args) end
|
|
576
|
+
|
|
577
|
+
# @overload clear_rectangle(x, y, w, h)
|
|
578
|
+
# Paints a transparent rectangle (only useful for bitmaps or windows).
|
|
579
|
+
# @param x [Float]
|
|
580
|
+
# @param y [Float]
|
|
581
|
+
# @param w [Float]
|
|
582
|
+
# @param h [Float]
|
|
583
|
+
# @return [void]
|
|
584
|
+
# @overload clear_rectangle(rect)
|
|
585
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
586
|
+
# @param rect [Wx::Rect2DDouble]
|
|
587
|
+
# @return [void]
|
|
588
|
+
def clear_rectangle(*args) end
|
|
589
|
+
|
|
590
|
+
# Creates a native graphics path which is initially empty.
|
|
591
|
+
# @return [Wx::GraphicsPath]
|
|
592
|
+
def create_path; end
|
|
593
|
+
|
|
594
|
+
# Fills the path with the current brush.
|
|
595
|
+
# @param path [Wx::GraphicsPath]
|
|
596
|
+
# @param fillStyle [Wx::PolygonFillMode]
|
|
597
|
+
# @return [void]
|
|
598
|
+
def fill_path(path, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
|
|
599
|
+
|
|
600
|
+
# @overload stroke_line(x1, y1, x2, y2)
|
|
601
|
+
# Strokes a single line.
|
|
602
|
+
# @param x1 [Float]
|
|
603
|
+
# @param y1 [Float]
|
|
604
|
+
# @param x2 [Float]
|
|
605
|
+
# @param y2 [Float]
|
|
606
|
+
# @return [void]
|
|
607
|
+
# @overload stroke_line(pt1, pt2)
|
|
608
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
609
|
+
# @param pt1 [Wx::Point2DDouble]
|
|
610
|
+
# @param pt2 [Wx::Point2DDouble]
|
|
611
|
+
# @return [void]
|
|
612
|
+
def stroke_line(*args) end
|
|
613
|
+
|
|
614
|
+
# Strokes along a path with the current pen.
|
|
615
|
+
# @param path [Wx::GraphicsPath]
|
|
616
|
+
# @return [void]
|
|
617
|
+
def stroke_path(path) end
|
|
618
|
+
|
|
619
|
+
# @overload create_font(font, col=Wx::BLACK)
|
|
620
|
+
# Creates a native graphics font from a {Wx::Font} and a text colour.
|
|
621
|
+
#
|
|
622
|
+
# <div class="wxrb-remark">
|
|
623
|
+
# <b>Remark:</b>
|
|
624
|
+
# <p>For Direct2D graphics, fonts can be created from TrueType fonts only.
|
|
625
|
+
# </p>
|
|
626
|
+
# </div>
|
|
627
|
+
# @param font [Wx::Font,Wx::FontInfo]
|
|
628
|
+
# @param col [Wx::Colour,String,Symbol]
|
|
629
|
+
# @return [Wx::GraphicsFont]
|
|
630
|
+
# @overload create_font(sizeInPixels, facename, flags=Wx::FontFlag::FONTFLAG_DEFAULT, col=Wx::BLACK)
|
|
631
|
+
# Creates a font object with the specified attributes.
|
|
632
|
+
#
|
|
633
|
+
# The use of overload taking {Wx::Font} is preferred, see {Wx::GraphicsRenderer#create_font} for more details.
|
|
634
|
+
#
|
|
635
|
+
# <div class="wxrb-remark">
|
|
636
|
+
# <b>Remark:</b>
|
|
637
|
+
# <p>For Direct2D, graphics fonts can be created from TrueType fonts only.
|
|
638
|
+
# </p>
|
|
639
|
+
# </div>
|
|
640
|
+
# @param sizeInPixels [Float]
|
|
641
|
+
# @param facename [String]
|
|
642
|
+
# @param flags [Integer]
|
|
643
|
+
# @param col [Wx::Colour,String,Symbol]
|
|
644
|
+
# @return [Wx::GraphicsFont]
|
|
645
|
+
def create_font(*args) end
|
|
646
|
+
|
|
647
|
+
# @overload set_font(font, colour)
|
|
648
|
+
# Sets the font for drawing text.
|
|
649
|
+
#
|
|
650
|
+
# <div class="wxrb-remark">
|
|
651
|
+
# <b>Remark:</b>
|
|
652
|
+
# <p>For Direct2D, only TrueType fonts can be used.
|
|
653
|
+
# </p>
|
|
654
|
+
# </div>
|
|
655
|
+
# @param font [Wx::Font,Wx::FontInfo]
|
|
656
|
+
# @param colour [Wx::Colour,String,Symbol]
|
|
657
|
+
# @return [void]
|
|
658
|
+
# @overload set_font(font)
|
|
659
|
+
# Sets the font for drawing text.
|
|
660
|
+
# @param font [Wx::GraphicsFont]
|
|
661
|
+
# @return [void]
|
|
662
|
+
def set_font(*args) end
|
|
663
|
+
alias_method :font=, :set_font
|
|
664
|
+
|
|
665
|
+
# Fills the widths array with the widths from the beginning of text to the corresponding character of text.
|
|
666
|
+
# @param text [String]
|
|
667
|
+
# @return [Array<Float>]
|
|
668
|
+
def get_partial_text_extents(text) end
|
|
669
|
+
alias_method :partial_text_extents, :get_partial_text_extents
|
|
670
|
+
|
|
671
|
+
# Gets the dimensions of the string using the currently selected font.
|
|
672
|
+
# @param text [String] The text string to measure.
|
|
673
|
+
# @return [Array(Float,Float,Float,Float)]
|
|
674
|
+
def get_text_extent(text) end
|
|
675
|
+
alias_method :text_extent, :get_text_extent
|
|
676
|
+
|
|
677
|
+
# Begin a new document (relevant only for printing / pdf / etc.) If there is a progress dialog, message will be shown.
|
|
678
|
+
# @param message [String]
|
|
679
|
+
# @return [Boolean]
|
|
680
|
+
def start_doc(message) end
|
|
681
|
+
|
|
682
|
+
# Done with that document (relevant only for printing / pdf / etc.).
|
|
683
|
+
# @return [void]
|
|
684
|
+
def end_doc; end
|
|
685
|
+
|
|
686
|
+
# Opens a new page (relevant only for printing / pdf etc.) with the given size in points.
|
|
687
|
+
#
|
|
688
|
+
# (If both are nil, then the default page size will be used.)
|
|
689
|
+
# @param width [Float]
|
|
690
|
+
# @param height [Float]
|
|
691
|
+
# @return [void]
|
|
692
|
+
def start_page(width=0, height=0) end
|
|
693
|
+
|
|
694
|
+
# Ends the current page (relevant only for printing / pdf / etc.).
|
|
695
|
+
# @return [void]
|
|
696
|
+
def end_page; end
|
|
697
|
+
|
|
698
|
+
# Creates {Wx::GraphicsBitmap} from an existing {Wx::Bitmap}.
|
|
699
|
+
#
|
|
700
|
+
# An invalid {Wx::NULL_GRAPHICS_BITMAP} on failure.
|
|
701
|
+
# @param bitmap [Wx::Bitmap]
|
|
702
|
+
# @return [Wx::GraphicsBitmap]
|
|
703
|
+
def create_bitmap(bitmap) end
|
|
704
|
+
|
|
705
|
+
# Creates {Wx::GraphicsBitmap} from an existing {Wx::Image}.
|
|
706
|
+
#
|
|
707
|
+
# This method is more efficient than converting {Wx::Image} to {Wx::Bitmap} first and then calling {Wx::GraphicsContext#create_bitmap}, but otherwise has the same effect.
|
|
708
|
+
# An invalid {Wx::NULL_GRAPHICS_BITMAP} on failure.
|
|
709
|
+
# @param image [Wx::Image]
|
|
710
|
+
# @return [Wx::GraphicsBitmap]
|
|
711
|
+
def create_bitmap_from_image(image) end
|
|
712
|
+
|
|
713
|
+
# Extracts a sub-bitmap from an existing bitmap.
|
|
714
|
+
# @param bitmap [Wx::GraphicsBitmap]
|
|
715
|
+
# @param x [Float]
|
|
716
|
+
# @param y [Float]
|
|
717
|
+
# @param w [Float]
|
|
718
|
+
# @param h [Float]
|
|
719
|
+
# @return [Wx::GraphicsBitmap]
|
|
720
|
+
def create_sub_bitmap(bitmap, x, y, w, h) end
|
|
721
|
+
|
|
722
|
+
# All rendering will be done into a fully transparent, temporary context.
|
|
723
|
+
#
|
|
724
|
+
# Layers can be nested by making balanced calls to {Wx::GraphicsContext#begin_layer}/EndLayer().
|
|
725
|
+
# @param opacity [Float]
|
|
726
|
+
# @return [void]
|
|
727
|
+
def begin_layer(opacity) end
|
|
728
|
+
|
|
729
|
+
# Composites back the drawings into the context with the opacity given at the {Wx::GraphicsContext#begin_layer} call.
|
|
730
|
+
# @return [void]
|
|
731
|
+
def end_layer; end
|
|
732
|
+
|
|
733
|
+
# Push the current state (like transformations, clipping region and quality settings) of the context on a stack.
|
|
734
|
+
#
|
|
735
|
+
# Multiple balanced calls to {Wx::GraphicsContext#push_state} and {Wx::GraphicsContext#pop_state} can be nested.
|
|
736
|
+
# @see Wx::GraphicsContext#pop_state
|
|
737
|
+
# @return [void]
|
|
738
|
+
def push_state; end
|
|
739
|
+
|
|
740
|
+
# Sets current state of the context to the state saved by a preceding call to {Wx::GraphicsContext#push_state} and removes that state from the stack of saved states.
|
|
741
|
+
#
|
|
742
|
+
#
|
|
743
|
+
# @see Wx::GraphicsContext#push_state
|
|
744
|
+
# @return [void]
|
|
745
|
+
def pop_state; end
|
|
746
|
+
|
|
747
|
+
# Make sure that the current content of this context is immediately visible.
|
|
748
|
+
# @return [void]
|
|
749
|
+
def flush; end
|
|
750
|
+
|
|
751
|
+
# Sets the antialiasing mode; returns true if it supported.
|
|
752
|
+
# @param antialias [Wx::AntialiasMode]
|
|
753
|
+
# @return [Boolean]
|
|
754
|
+
def set_antialias_mode(antialias) end
|
|
755
|
+
alias_method :antialias_mode=, :set_antialias_mode
|
|
756
|
+
|
|
757
|
+
# Returns the current shape antialiasing mode.
|
|
758
|
+
# @return [Wx::AntialiasMode]
|
|
759
|
+
def get_antialias_mode; end
|
|
760
|
+
alias_method :antialias_mode, :get_antialias_mode
|
|
761
|
+
|
|
762
|
+
# Sets the interpolation quality; returns true if it is supported.
|
|
763
|
+
#
|
|
764
|
+
# <div class="wxrb-remark">
|
|
765
|
+
# <b>Remark:</b>
|
|
766
|
+
# <p>Not implemented in the Cairo backend currently.
|
|
767
|
+
# </p>
|
|
768
|
+
# </div>
|
|
769
|
+
# @param interpolation [Wx::InterpolationQuality]
|
|
770
|
+
# @return [Boolean]
|
|
771
|
+
def set_interpolation_quality(interpolation) end
|
|
772
|
+
alias_method :interpolation_quality=, :set_interpolation_quality
|
|
773
|
+
|
|
774
|
+
# Returns the current interpolation quality.
|
|
775
|
+
# @return [Wx::InterpolationQuality]
|
|
776
|
+
def get_interpolation_quality; end
|
|
777
|
+
alias_method :interpolation_quality, :get_interpolation_quality
|
|
778
|
+
|
|
779
|
+
# Sets the compositing operator, returns true if it supported.
|
|
780
|
+
# @param op [Wx::CompositionMode]
|
|
781
|
+
# @return [Boolean]
|
|
782
|
+
def set_composition_mode(op) end
|
|
783
|
+
alias_method :composition_mode=, :set_composition_mode
|
|
784
|
+
|
|
785
|
+
# Returns the current compositing operator.
|
|
786
|
+
# @return [Wx::CompositionMode]
|
|
787
|
+
def get_composition_mode; end
|
|
788
|
+
alias_method :composition_mode, :get_composition_mode
|
|
789
|
+
|
|
790
|
+
# Returns the size of the graphics context in device coordinates.
|
|
791
|
+
# @return [Array(Float,Float)]
|
|
792
|
+
def get_size; end
|
|
793
|
+
alias_method :size, :get_size
|
|
794
|
+
|
|
795
|
+
# Returns the resolution of the graphics context in device points per inch.
|
|
796
|
+
# @return [Array(Float,Float)]
|
|
797
|
+
def get_dpi; end
|
|
798
|
+
alias_method :dpi, :get_dpi
|
|
799
|
+
|
|
800
|
+
# Returns the associated window, if any.
|
|
801
|
+
#
|
|
802
|
+
# If this context was created using {Wx::GraphicsContext.create} overload taking {Wx::Window} or {Wx::WindowDC}, this method returns the corresponding window. Otherwise, returns nil.
|
|
803
|
+
# A possibly nil window pointer.
|
|
804
|
+
# @return [Wx::Window]
|
|
805
|
+
def get_window; end
|
|
806
|
+
alias_method :window, :get_window
|
|
807
|
+
|
|
808
|
+
# Helper to determine if a 0.5 offset should be applied for the drawing operation.
|
|
809
|
+
# @return [Boolean]
|
|
810
|
+
def should_offset; end
|
|
811
|
+
|
|
812
|
+
# Indicates whether the context should try to offset for pixel boundaries.
|
|
813
|
+
#
|
|
814
|
+
# This only makes sense on bitmap devices like screen. By default, this is turned off.
|
|
815
|
+
# @param enable [Boolean]
|
|
816
|
+
# @return [void]
|
|
817
|
+
def enable_offset(enable=true) end
|
|
818
|
+
|
|
819
|
+
# Helper to determine if a 0.5 offset should be applied for the drawing operation.
|
|
820
|
+
# @return [void]
|
|
821
|
+
def disable_offset; end
|
|
822
|
+
|
|
823
|
+
# Helper to determine if a 0.5 offset should be applied for the drawing operation.
|
|
824
|
+
# @return [Boolean]
|
|
825
|
+
def offset_enabled; end
|
|
826
|
+
|
|
827
|
+
# @overload from_dip(sz)
|
|
828
|
+
# Convert DPI-independent pixel values to the value in pixels appropriate for the graphics context.
|
|
829
|
+
#
|
|
830
|
+
# See {Wx::Window#from_dip} and {Wx::DC#from_dip} for more info about converting device independent pixel values.
|
|
831
|
+
# @param sz [Array(Integer, Integer), Wx::Size]
|
|
832
|
+
# @return [Wx::Size]
|
|
833
|
+
# @overload from_dip(pt)
|
|
834
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
835
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
|
836
|
+
# @return [Wx::Point]
|
|
837
|
+
# @overload from_dip(d)
|
|
838
|
+
# Convert DPI-independent value in pixels to the value in pixels appropriate for the graphics context.
|
|
839
|
+
#
|
|
840
|
+
# This is the same as the <code>Wx::GraphicsContext#from_dip(const Wx::Size&)</code> overload, but assumes that the resolution is the same in horizontal and vertical directions.
|
|
841
|
+
# @param d [Integer]
|
|
842
|
+
# @return [Integer]
|
|
843
|
+
def from_dip(*args) end
|
|
844
|
+
|
|
845
|
+
# @overload to_dip(sz)
|
|
846
|
+
# Convert pixel values of the current graphics context to DPI-independent pixel values.
|
|
847
|
+
#
|
|
848
|
+
# See {Wx::Window#to_dip} and {Wx::DC#to_dip} for more info about converting device independent pixel values.
|
|
849
|
+
# @param sz [Array(Integer, Integer), Wx::Size]
|
|
850
|
+
# @return [Wx::Size]
|
|
851
|
+
# @overload to_dip(pt)
|
|
852
|
+
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
853
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
|
854
|
+
# @return [Wx::Point]
|
|
855
|
+
# @overload to_dip(d)
|
|
856
|
+
# Convert pixel values of the current graphics context to DPI-independent pixel values.
|
|
857
|
+
#
|
|
858
|
+
# This is the same as ToDIP(const {Wx::Size}&) overload, but assumes that the resolution is the same in horizontal and vertical directions.
|
|
859
|
+
# @param d [Integer]
|
|
860
|
+
# @return [Integer]
|
|
861
|
+
def to_dip(*args) end
|
|
862
|
+
|
|
863
|
+
end # GraphicsContext
|
|
864
|
+
|
|
865
|
+
# Represents a single gradient stop in a collection of gradient stops as represented by {Wx::GraphicsGradientStops}.
|
|
866
|
+
#
|
|
867
|
+
# Category: Graphics Device Interface (GDI)
|
|
868
|
+
#
|
|
869
|
+
#
|
|
870
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
871
|
+
# @wxrb_require USE_GRAPHICS_CONTEXT
|
|
872
|
+
class GraphicsGradientStop < ::Object
|
|
873
|
+
|
|
874
|
+
# Return the stop colour.
|
|
875
|
+
# @return [Wx::Colour,String,Symbol]
|
|
876
|
+
def get_colour; end
|
|
877
|
+
alias_method :colour, :get_colour
|
|
878
|
+
|
|
879
|
+
# Change the stop colour.
|
|
880
|
+
# @param col [Wx::Colour,String,Symbol] The new colour.
|
|
881
|
+
# @return [void]
|
|
882
|
+
def set_colour(col) end
|
|
883
|
+
alias_method :colour=, :set_colour
|
|
884
|
+
|
|
885
|
+
# Return the stop position.
|
|
886
|
+
# @return [Float]
|
|
887
|
+
def get_position; end
|
|
888
|
+
alias_method :position, :get_position
|
|
889
|
+
|
|
890
|
+
# Change the stop position.
|
|
891
|
+
# @param pos [Float] The new position, must always be in [0, 1] range.
|
|
892
|
+
# @return [void]
|
|
893
|
+
def set_position(pos) end
|
|
894
|
+
alias_method :position=, :set_position
|
|
895
|
+
|
|
896
|
+
end # GraphicsGradientStop
|
|
897
|
+
|
|
898
|
+
# Represents a collection of {Wx::GraphicGradientStop} values for use with CreateLinearGradientBrush and CreateRadialGradientBrush.
|
|
899
|
+
#
|
|
900
|
+
# The stops are maintained in order of position. If two or more stops are added with the same position, then the one(s) added later come later. This can be useful for producing discontinuities in the colour gradient.
|
|
901
|
+
# Notice that this class is write-once; you can't modify the stops once they had been added.
|
|
902
|
+
#
|
|
903
|
+
# Category: Graphics Device Interface (GDI)
|
|
904
|
+
#
|
|
905
|
+
#
|
|
906
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
907
|
+
# @wxrb_require USE_GRAPHICS_CONTEXT
|
|
908
|
+
class GraphicsGradientStops < ::Object
|
|
909
|
+
|
|
910
|
+
# @overload add(stop)
|
|
911
|
+
# Add a new stop.
|
|
912
|
+
# @param stop [Wx::GraphicsGradientStop]
|
|
913
|
+
# @return [void]
|
|
914
|
+
# @overload add(col, pos)
|
|
915
|
+
# Add a new stop.
|
|
916
|
+
# @param col [Wx::Colour]
|
|
917
|
+
# @param pos [Float]
|
|
918
|
+
# @return [void]
|
|
919
|
+
def add(*args) end
|
|
920
|
+
|
|
921
|
+
# Initializes the gradient stops with the given boundary colours.
|
|
922
|
+
#
|
|
923
|
+
# Creates a {Wx::GraphicsGradientStops} instance with start colour given by startCol and end colour given by endCol.
|
|
924
|
+
# @param startCol [Wx::Colour]
|
|
925
|
+
# @param endCol [Wx::Colour]
|
|
926
|
+
# @return [Wx::GraphicsGradientStops]
|
|
927
|
+
def initialize(startCol=Wx::TRANSPARENT_COLOUR, endCol=Wx::TRANSPARENT_COLOUR) end
|
|
928
|
+
|
|
929
|
+
#
|
|
930
|
+
#
|
|
931
|
+
# The stop at the given index.
|
|
932
|
+
# @param n [unsigned] The index, must be in [0, {Wx::GraphicsGradientStops#get_count}) range.
|
|
933
|
+
# @return [Wx::GraphicsGradientStop]
|
|
934
|
+
def item(n) end
|
|
935
|
+
|
|
936
|
+
#
|
|
937
|
+
#
|
|
938
|
+
# The number of stops.
|
|
939
|
+
# @return [Integer]
|
|
940
|
+
def get_count; end
|
|
941
|
+
alias_method :count, :get_count
|
|
942
|
+
|
|
943
|
+
# Set the start colour to col.
|
|
944
|
+
# @param col [Wx::Colour]
|
|
945
|
+
# @return [void]
|
|
946
|
+
def set_start_colour(col) end
|
|
947
|
+
alias_method :start_colour=, :set_start_colour
|
|
948
|
+
|
|
949
|
+
#
|
|
950
|
+
#
|
|
951
|
+
# The start colour.
|
|
952
|
+
# @return [Wx::Colour]
|
|
953
|
+
def get_start_colour; end
|
|
954
|
+
alias_method :start_colour, :get_start_colour
|
|
955
|
+
|
|
956
|
+
# Set the end colour to col.
|
|
957
|
+
# @param col [Wx::Colour]
|
|
958
|
+
# @return [void]
|
|
959
|
+
def set_end_colour(col) end
|
|
960
|
+
alias_method :end_colour=, :set_end_colour
|
|
961
|
+
|
|
962
|
+
#
|
|
963
|
+
#
|
|
964
|
+
# The end colour.
|
|
965
|
+
# @return [Wx::Colour]
|
|
966
|
+
def get_end_colour; end
|
|
967
|
+
alias_method :end_colour, :get_end_colour
|
|
968
|
+
|
|
969
|
+
end # GraphicsGradientStops
|
|
970
|
+
|
|
971
|
+
# This class is a helper used for {Wx::GraphicsPen} creation using the named parameter idiom: it allows specifying various {Wx::GraphicsPen} attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to {Wx::GraphicsPen} constructors.
|
|
972
|
+
#
|
|
973
|
+
# Typically, you would use {Wx::GraphicsPenInfo} with a {Wx::GraphicsContext}. For example, to start drawing with a dotted blue pen slightly wider than normal you could, write the following:
|
|
974
|
+
# ```ruby
|
|
975
|
+
# ctx = Wx::GraphicsContext.create(dc)
|
|
976
|
+
#
|
|
977
|
+
# ctx.set_pen(Wx::GraphicsPenInfo.new(Wx::BLUE).width(1.25).style(Wx::PENSTYLE_DOT))
|
|
978
|
+
# ```
|
|
979
|
+
#
|
|
980
|
+
#
|
|
981
|
+
# @note This class is <b>untracked</b> and should not be derived from nor instances extended!
|
|
982
|
+
# @wxrb_require USE_GRAPHICS_CONTEXT
|
|
983
|
+
class GraphicsPenInfo < ::Object
|
|
984
|
+
|
|
985
|
+
# Constructor, which can set the colour, width and style for the pen.
|
|
986
|
+
# @param colour [Wx::Colour,String,Symbol]
|
|
987
|
+
# @param width [Float]
|
|
988
|
+
# @param style [Wx::PenStyle]
|
|
989
|
+
# @return [Wx::GraphicsPenInfo]
|
|
990
|
+
def initialize(colour=(Wx::Colour.new()), width=1.0, style=Wx::PenStyle::PENSTYLE_SOLID) end
|
|
991
|
+
|
|
992
|
+
# Sets the colour for the pen.
|
|
993
|
+
# @param col [Wx::Colour,String,Symbol]
|
|
994
|
+
# @return [Wx::GraphicsPenInfo]
|
|
995
|
+
def colour(col) end
|
|
996
|
+
|
|
997
|
+
# Sets the line width for the pen.
|
|
998
|
+
# @param width [Float]
|
|
999
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1000
|
+
def width(width) end
|
|
1001
|
+
|
|
1002
|
+
# Sets the style for the pen.
|
|
1003
|
+
# @param style [Wx::PenStyle]
|
|
1004
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1005
|
+
def style(style) end
|
|
1006
|
+
|
|
1007
|
+
# Sets the bitmap used for stippling.
|
|
1008
|
+
#
|
|
1009
|
+
# When the pen is used, a repeating pattern of this bitmap will be drawn.
|
|
1010
|
+
# @param stipple [Wx::Bitmap]
|
|
1011
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1012
|
+
def stipple(stipple) end
|
|
1013
|
+
|
|
1014
|
+
# Sets the join for the pen, which is the appearance of where two lines meet or overlap.
|
|
1015
|
+
# @param join [Wx::PenJoin]
|
|
1016
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1017
|
+
def join(join) end
|
|
1018
|
+
|
|
1019
|
+
# Sets the cap (i.e., the end point) for the pen.
|
|
1020
|
+
# @param cap [Wx::PenCap]
|
|
1021
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1022
|
+
def cap(cap) end
|
|
1023
|
+
|
|
1024
|
+
# @overload linear_gradient(x1, y1, x2, y2, c1, c2, matrix=Wx::NULL_GRAPHICS_MATRIX)
|
|
1025
|
+
# Applies a linear gradient to the pen.
|
|
1026
|
+
#
|
|
1027
|
+
# <div class="wxrb-remark">
|
|
1028
|
+
# <b>Remark:</b>
|
|
1029
|
+
# <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
|
|
1030
|
+
# </p>
|
|
1031
|
+
# </div>
|
|
1032
|
+
# @param x1 [Float] The x coordinate of the starting point of the gradient.
|
|
1033
|
+
# @param y1 [Float] The y coordinate of the starting point of the gradient.
|
|
1034
|
+
# @param x2 [Float] The x coordinate of the ending point of the gradient.
|
|
1035
|
+
# @param y2 [Float] The y coordinate of the ending point of the gradient.
|
|
1036
|
+
# @param c1 [Wx::Colour,String,Symbol] The starting colour.
|
|
1037
|
+
# @param c2 [Wx::Colour,String,Symbol] The ending colour.
|
|
1038
|
+
# @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
|
|
1039
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1040
|
+
# @overload linear_gradient(x1, y1, x2, y2, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
|
|
1041
|
+
# Applies a linear gradient to the pen, including discontinuous stops in the pattern.
|
|
1042
|
+
#
|
|
1043
|
+
# <div class="wxrb-remark">
|
|
1044
|
+
# <b>Remark:</b>
|
|
1045
|
+
# <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
|
|
1046
|
+
# </p>
|
|
1047
|
+
# </div>
|
|
1048
|
+
# @param x1 [Float] The x coordinate of the starting point of the gradient.
|
|
1049
|
+
# @param y1 [Float] The y coordinate of the starting point of the gradient.
|
|
1050
|
+
# @param x2 [Float] The x coordinate of the ending point of the gradient.
|
|
1051
|
+
# @param y2 [Float] The y coordinate of the ending point of the gradient.
|
|
1052
|
+
# @param stops [Wx::GraphicsGradientStops] A series of stops to include in the pattern.
|
|
1053
|
+
# @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
|
|
1054
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1055
|
+
def linear_gradient(*args) end
|
|
1056
|
+
|
|
1057
|
+
# @overload radial_gradient(startX, startY, endX, endY, radius, oColor, cColor, matrix=Wx::NULL_GRAPHICS_MATRIX)
|
|
1058
|
+
# Applies a radial (i.e., circular) gradient to the pen.
|
|
1059
|
+
#
|
|
1060
|
+
# <div class="wxrb-remark">
|
|
1061
|
+
# <b>Remark:</b>
|
|
1062
|
+
# <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
|
|
1063
|
+
# </p>
|
|
1064
|
+
# </div>
|
|
1065
|
+
# @param startX [Float] The x coordinate of the starting point of the gradient.
|
|
1066
|
+
# @param startY [Float] The startY coordinate of the starting point of the gradient.
|
|
1067
|
+
# @param endX [Float] The endX coordinate of the end of the circle.
|
|
1068
|
+
# @param endY [Float] The endY coordinate of the end of the circle.
|
|
1069
|
+
# @param radius [Float] The radius of the circle of the gradient (around endX and endY).
|
|
1070
|
+
# @param oColor [Wx::Colour,String,Symbol] The outer colour.
|
|
1071
|
+
# @param cColor [Wx::Colour,String,Symbol] The center colour.
|
|
1072
|
+
# @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
|
|
1073
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1074
|
+
# @overload radial_gradient(startX, startY, endX, endY, radius, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
|
|
1075
|
+
# Applies a radial (i.e., circular) gradient to the pen, including discontinuous stops in the pattern.
|
|
1076
|
+
#
|
|
1077
|
+
# <div class="wxrb-remark">
|
|
1078
|
+
# <b>Remark:</b>
|
|
1079
|
+
# <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
|
|
1080
|
+
# </p>
|
|
1081
|
+
# </div>
|
|
1082
|
+
# @param startX [Float] The x coordinate of the starting point of the gradient.
|
|
1083
|
+
# @param startY [Float] The startY coordinate of the starting point of the gradient.
|
|
1084
|
+
# @param endX [Float] The endX coordinate of the end of the circle.
|
|
1085
|
+
# @param endY [Float] The endY coordinate of the end of the circle.
|
|
1086
|
+
# @param radius [Float] The radius of the circle of the gradient (around endX and endY).
|
|
1087
|
+
# @param stops [Wx::GraphicsGradientStops] A series of stops to include in the pattern.
|
|
1088
|
+
# @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
|
|
1089
|
+
# @return [Wx::GraphicsPenInfo]
|
|
1090
|
+
def radial_gradient(*args) end
|
|
1091
|
+
|
|
1092
|
+
# Returns the pen's colour.
|
|
1093
|
+
# @return [Wx::Colour]
|
|
1094
|
+
def get_colour; end
|
|
1095
|
+
|
|
1096
|
+
# Returns the pen's stipple bitmap.
|
|
1097
|
+
# @return [Wx::Bitmap]
|
|
1098
|
+
def get_stipple; end
|
|
1099
|
+
|
|
1100
|
+
# Returns the pen's style.
|
|
1101
|
+
# @return [Wx::PenStyle]
|
|
1102
|
+
def get_style; end
|
|
1103
|
+
|
|
1104
|
+
# Returns the pen's joining method.
|
|
1105
|
+
# @return [Wx::PenJoin]
|
|
1106
|
+
def get_join; end
|
|
1107
|
+
|
|
1108
|
+
# Returns the pen's cap (i.e., end-point style).
|
|
1109
|
+
# @return [Wx::PenCap]
|
|
1110
|
+
def get_cap; end
|
|
1111
|
+
|
|
1112
|
+
# Returns the number of dashes in the pen's dash pattern.
|
|
1113
|
+
# @return [Integer]
|
|
1114
|
+
def get_dash_count; end
|
|
1115
|
+
alias_method :dash_count, :get_dash_count
|
|
1116
|
+
|
|
1117
|
+
# Returns whether the pen is transparent.
|
|
1118
|
+
# @return [Boolean]
|
|
1119
|
+
def is_transparent; end
|
|
1120
|
+
alias_method :transparent?, :is_transparent
|
|
1121
|
+
|
|
1122
|
+
# Returns the pen's line width.
|
|
1123
|
+
# @return [Float]
|
|
1124
|
+
def get_width; end
|
|
1125
|
+
|
|
1126
|
+
# Returns the pen's gradient type.
|
|
1127
|
+
# @return [Wx::GradientType]
|
|
1128
|
+
def get_gradient_type; end
|
|
1129
|
+
alias_method :gradient_type, :get_gradient_type
|
|
1130
|
+
|
|
1131
|
+
# Returns the x coordinate of the starting point (if using a gradient).
|
|
1132
|
+
# @return [Float]
|
|
1133
|
+
def get_x1; end
|
|
1134
|
+
alias_method :x1, :get_x1
|
|
1135
|
+
|
|
1136
|
+
# Returns the y coordinate of the starting point (if using a gradient).
|
|
1137
|
+
# @return [Float]
|
|
1138
|
+
def get_y1; end
|
|
1139
|
+
alias_method :y1, :get_y1
|
|
1140
|
+
|
|
1141
|
+
# Returns the x coordinate of the ending point (if using a gradient).
|
|
1142
|
+
# @return [Float]
|
|
1143
|
+
def get_x2; end
|
|
1144
|
+
alias_method :x2, :get_x2
|
|
1145
|
+
|
|
1146
|
+
# Returns the y coordinate of the ending point (if using a gradient).
|
|
1147
|
+
# @return [Float]
|
|
1148
|
+
def get_y2; end
|
|
1149
|
+
alias_method :y2, :get_y2
|
|
1150
|
+
|
|
1151
|
+
# Returns the x coordinate of the starting point (if using a gradient).
|
|
1152
|
+
# @return [Float]
|
|
1153
|
+
def get_start_x; end
|
|
1154
|
+
alias_method :start_x, :get_start_x
|
|
1155
|
+
|
|
1156
|
+
# Returns the y coordinate of the starting point (if using a gradient).
|
|
1157
|
+
# @return [Float]
|
|
1158
|
+
def get_start_y; end
|
|
1159
|
+
alias_method :start_y, :get_start_y
|
|
1160
|
+
|
|
1161
|
+
# Returns the x coordinate of the ending point (if using a gradient).
|
|
1162
|
+
# @return [Float]
|
|
1163
|
+
def get_end_x; end
|
|
1164
|
+
alias_method :end_x, :get_end_x
|
|
1165
|
+
|
|
1166
|
+
# Returns the y coordinate of the ending point (if using a gradient).
|
|
1167
|
+
# @return [Float]
|
|
1168
|
+
def get_end_y; end
|
|
1169
|
+
alias_method :end_y, :get_end_y
|
|
1170
|
+
|
|
1171
|
+
# Returns the radius of the radial gradient.
|
|
1172
|
+
# @return [Float]
|
|
1173
|
+
def get_radius; end
|
|
1174
|
+
alias_method :radius, :get_radius
|
|
1175
|
+
|
|
1176
|
+
# Returns the stops of the gradient.
|
|
1177
|
+
# @return [Wx::GraphicsGradientStops]
|
|
1178
|
+
def get_stops; end
|
|
1179
|
+
alias_method :stops, :get_stops
|
|
1180
|
+
|
|
1181
|
+
end # GraphicsPenInfo
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
end
|