wxruby3 0.9.0.pre.beta.14-x64-mingw-ucrt → 0.9.0.pre.rc.2-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/INSTALL.md +51 -22
- data/README.md +81 -6
- data/assets/hello_button-macos.png +0 -0
- data/assets/hello_button-msw.png +0 -0
- data/assets/hello_button.png +0 -0
- data/assets/hello_button_clicked-macos.png +0 -0
- data/assets/hello_button_clicked-msw.png +0 -0
- data/assets/hello_button_clicked.png +0 -0
- data/assets/hello_button_clicked_combi.png +0 -0
- data/assets/hello_world-macos.png +0 -0
- data/assets/hello_world-msw.png +0 -0
- data/assets/hello_world.png +0 -0
- data/assets/hello_world_combi.png +0 -0
- data/assets/repo-social-preview.png +0 -0
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/core/art_locator.rb +2 -2
- data/lib/wx/core/artprovider.rb +2 -2
- data/lib/wx/core/bitmap.rb +6 -5
- data/lib/wx/core/bitmap_combobox.rb +34 -0
- data/lib/wx/core/brush.rb +6 -0
- data/lib/wx/core/controlwithitems.rb +52 -14
- data/lib/wx/core/cursor.rb +1 -1
- data/lib/wx/core/dc.rb +0 -20
- data/lib/wx/core/event_blocker.rb +14 -0
- data/lib/wx/core/events/evt_list.rb +19 -0
- data/lib/wx/core/evthandler.rb +48 -2
- data/lib/wx/core/find_replace_dialog.rb +24 -0
- data/lib/wx/core/font.rb +22 -14
- data/lib/wx/core/helpprovider.rb +2 -2
- data/lib/wx/core/icon.rb +1 -1
- data/lib/wx/core/image.rb +1 -1
- data/lib/wx/core/menu.rb +5 -0
- data/lib/wx/core/paintdc.rb +8 -0
- data/lib/wx/core/pen.rb +6 -0
- data/lib/wx/core/text_entry.rb +15 -0
- data/lib/wx/core/v_list_box.rb +13 -0
- data/lib/wx/core/window.rb +29 -2
- data/lib/wx/doc/app.rb +40 -0
- data/lib/wx/doc/brush.rb +17 -0
- data/lib/wx/doc/busy_info.rb +21 -0
- data/lib/wx/doc/client_dc.rb +28 -0
- data/lib/wx/doc/controlwithitems.rb +11 -0
- data/lib/wx/doc/dc.rb +0 -14
- data/lib/wx/doc/event_blocker.rb +27 -0
- data/lib/wx/doc/evthandler.rb +4 -0
- data/lib/wx/doc/extra/02_lifecycles.md +49 -0
- data/lib/wx/doc/extra/10_art.md +1 -1
- data/lib/wx/doc/extra/11_drawing_and_dc.md +62 -0
- data/lib/wx/doc/font.rb +27 -0
- data/lib/wx/doc/gen/about_dialog_info.rb +27 -24
- data/lib/wx/doc/gen/accelerator.rb +11 -12
- data/lib/wx/doc/gen/activity_indicator.rb +65 -0
- data/lib/wx/doc/gen/app.rb +6 -3
- data/lib/wx/doc/gen/art_provider.rb +53 -29
- data/lib/wx/doc/gen/aui/aui_manager.rb +4 -0
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -0
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +2 -2
- data/lib/wx/doc/gen/bitmap.rb +25 -25
- data/lib/wx/doc/gen/bitmap_combo_box.rb +157 -0
- data/lib/wx/doc/gen/box_sizer.rb +6 -8
- data/lib/wx/doc/gen/brush.rb +2 -0
- data/lib/wx/doc/gen/busy_info.rb +52 -46
- data/lib/wx/doc/gen/caret.rb +0 -4
- data/lib/wx/doc/gen/check_list_box.rb +0 -2
- data/lib/wx/doc/gen/choice.rb +1 -5
- data/lib/wx/doc/gen/client_dc.rb +13 -18
- data/lib/wx/doc/gen/clipboard.rb +30 -27
- data/lib/wx/doc/gen/collapsible_pane.rb +11 -9
- data/lib/wx/doc/gen/colour.rb +6 -3
- data/lib/wx/doc/gen/colour_dialog.rb +111 -23
- data/lib/wx/doc/gen/combo_box.rb +2 -4
- data/lib/wx/doc/gen/context_help_button.rb +48 -0
- data/lib/wx/doc/gen/control.rb +20 -18
- data/lib/wx/doc/gen/core.rb +2 -2
- data/lib/wx/doc/gen/cursor.rb +18 -50
- data/lib/wx/doc/gen/data_format.rb +0 -2
- data/lib/wx/doc/gen/data_object.rb +37 -44
- data/lib/wx/doc/gen/dc.rb +16 -24
- data/lib/wx/doc/gen/defs.rb +3 -40
- data/lib/wx/doc/gen/dialog.rb +21 -17
- data/lib/wx/doc/gen/dir_dialog.rb +10 -8
- data/lib/wx/doc/gen/event.rb +2 -2
- data/lib/wx/doc/gen/event_blocker.rb +51 -0
- data/lib/wx/doc/gen/event_filter.rb +88 -0
- data/lib/wx/doc/gen/event_list.rb +23 -2
- data/lib/wx/doc/gen/events.rb +103 -112
- data/lib/wx/doc/gen/evt_handler.rb +28 -52
- data/lib/wx/doc/gen/file_dialog.rb +53 -50
- data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
- data/lib/wx/doc/gen/font.rb +19 -2
- data/lib/wx/doc/gen/font_data.rb +2 -0
- data/lib/wx/doc/gen/font_dialog.rb +1 -1
- data/lib/wx/doc/gen/frame.rb +4 -3
- data/lib/wx/doc/gen/fs_file.rb +8 -0
- data/lib/wx/doc/gen/gcdc.rb +2 -22
- data/lib/wx/doc/gen/gdi_common.rb +18 -2
- data/lib/wx/doc/gen/gdi_object.rb +2 -0
- data/lib/wx/doc/gen/graphics_context.rb +4 -43
- data/lib/wx/doc/gen/graphics_object.rb +2 -0
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_table_message.rb +2 -0
- data/lib/wx/doc/gen/grid_bag_sizer.rb +4 -0
- data/lib/wx/doc/gen/help_controller.rb +4 -1
- data/lib/wx/doc/gen/html/html_cell.rb +4 -1
- data/lib/wx/doc/gen/html/html_help_controller.rb +4 -1
- data/lib/wx/doc/gen/html/html_help_data.rb +4 -0
- data/lib/wx/doc/gen/html/html_help_window.rb +2 -1
- data/lib/wx/doc/gen/html/html_list_box.rb +138 -11
- data/lib/wx/doc/gen/html/html_window.rb +9 -3
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +147 -0
- data/lib/wx/doc/gen/hyperlink_event.rb +43 -0
- data/lib/wx/doc/gen/icon.rb +7 -1
- data/lib/wx/doc/gen/icon_location.rb +2 -0
- data/lib/wx/doc/gen/image.rb +15 -8
- data/lib/wx/doc/gen/keyboard_state.rb +6 -0
- data/lib/wx/doc/gen/list_box.rb +0 -11
- data/lib/wx/doc/gen/list_ctrl.rb +10 -13
- data/lib/wx/doc/gen/locale.rb +7 -3
- data/lib/wx/doc/gen/log.rb +6 -2
- data/lib/wx/doc/gen/mdi_frame.rb +2 -0
- data/lib/wx/doc/gen/media_ctrl.rb +2 -0
- data/lib/wx/doc/gen/memory_dc.rb +105 -18
- data/lib/wx/doc/gen/menu.rb +4 -2
- data/lib/wx/doc/gen/menu_bar.rb +0 -8
- data/lib/wx/doc/gen/menu_item.rb +9 -3
- data/lib/wx/doc/gen/message_dialog.rb +6 -3
- data/lib/wx/doc/gen/mirror_dc.rb +2 -8
- data/lib/wx/doc/gen/mouse_state.rb +2 -0
- data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -2
- data/lib/wx/doc/gen/non_owned_window.rb +2 -1
- data/lib/wx/doc/gen/notebook.rb +4 -2
- data/lib/wx/doc/gen/paint_dc.rb +2 -6
- data/lib/wx/doc/gen/palette.rb +3 -3
- data/lib/wx/doc/gen/pen.rb +6 -1
- data/lib/wx/doc/gen/pg/pg_editor.rb +2 -1
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +4 -0
- data/lib/wx/doc/gen/pg/pg_properties.rb +30 -3
- data/lib/wx/doc/gen/pg/pg_property.rb +30 -4
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
- data/lib/wx/doc/gen/pg/property_grid.rb +5 -2
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +6 -2
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +2 -0
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -0
- data/lib/wx/doc/gen/picker_base.rb +2 -1
- data/lib/wx/doc/gen/platform_info.rb +4 -1
- data/lib/wx/doc/gen/property_sheet_dialog.rb +2 -0
- data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -8
- data/lib/wx/doc/gen/prt/print_data.rb +6 -0
- data/lib/wx/doc/gen/prt/printer.rb +0 -3
- data/lib/wx/doc/gen/prt/printer_dc.rb +2 -6
- data/lib/wx/doc/gen/radio_box.rb +2 -10
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +6 -0
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +1 -1
- data/lib/wx/doc/gen/region.rb +2 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -4
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +2 -0
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -0
- data/lib/wx/doc/gen/screen_dc.rb +2 -0
- data/lib/wx/doc/gen/scroll_bar.rb +2 -1
- data/lib/wx/doc/gen/scrolled_canvas.rb +4 -8
- data/lib/wx/doc/gen/scrolled_control.rb +4 -8
- data/lib/wx/doc/gen/scrolled_window.rb +4 -8
- data/lib/wx/doc/gen/search_ctrl.rb +131 -0
- data/lib/wx/doc/gen/single_choice_dialog.rb +0 -2
- data/lib/wx/doc/gen/sizer.rb +14 -3
- data/lib/wx/doc/gen/splash_screen.rb +2 -0
- data/lib/wx/doc/gen/static_box.rb +6 -3
- data/lib/wx/doc/gen/static_box_sizer.rb +2 -1
- data/lib/wx/doc/gen/status_bar.rb +0 -5
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4 -5
- data/lib/wx/doc/gen/svg_file_dc.rb +10 -11
- data/lib/wx/doc/gen/text_ctrl.rb +10 -3
- data/lib/wx/doc/gen/text_entry.rb +8 -3
- data/lib/wx/doc/gen/text_entry_dialog.rb +4 -2
- data/lib/wx/doc/gen/timer_event.rb +2 -0
- data/lib/wx/doc/gen/tool_bar.rb +8 -4
- data/lib/wx/doc/gen/top_level_window.rb +5 -2
- data/lib/wx/doc/gen/tree_ctrl.rb +0 -6
- data/lib/wx/doc/gen/ui_action_simulator.rb +100 -0
- data/lib/wx/doc/gen/utils.rb +1 -1
- data/lib/wx/doc/gen/v_list_box.rb +36 -26
- data/lib/wx/doc/gen/validator.rb +2 -1
- data/lib/wx/doc/gen/variant.rb +10 -0
- data/lib/wx/doc/gen/window.rb +38 -17
- data/lib/wx/doc/gen/window_dc.rb +2 -0
- data/lib/wx/doc/gen/window_disabler.rb +2 -0
- data/lib/wx/doc/gen/wizard_page_simple.rb +2 -0
- data/lib/wx/doc/gen/xml_node.rb +6 -0
- data/lib/wx/doc/gen/xml_resource.rb +4 -1
- data/lib/wx/doc/memory_dc.rb +75 -0
- data/lib/wx/doc/mirror_dc.rb +16 -0
- data/lib/wx/doc/pen.rb +17 -0
- data/lib/wx/doc/prt/printer_dc.rb +26 -0
- data/lib/wx/doc/radio_box.rb +20 -0
- data/lib/wx/doc/screen_dc.rb +10 -6
- data/lib/wx/doc/svg_file_dc.rb +20 -0
- data/lib/wx/doc/v_list_box.rb +9 -0
- data/lib/wx/doc/window.rb +27 -0
- data/lib/wx/doc/window_disabler.rb +10 -0
- data/lib/wx/html/keyword_defs.rb +6 -7
- data/lib/wx/html/require.rb +1 -0
- data/lib/wx/html/simple_html_listbox.rb +105 -0
- data/lib/wx/keyword_defs.rb +83 -75
- data/lib/wx/prt/keyword_defs.rb +5 -1
- data/lib/wx/version.rb +1 -1
- data/lib/wx/wxruby/cmd/test.rb +1 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/install.rb +20 -7
- data/rakelib/lib/config/linux.rb +4 -2
- data/rakelib/lib/config/macosx.rb +120 -1
- data/rakelib/lib/config/mingw.rb +6 -1
- data/rakelib/lib/config/unixish.rb +26 -11
- data/rakelib/lib/config.rb +15 -6
- data/rakelib/yard/yard/relative_markdown_links.rb +5 -1
- data/samples/aui/aui.rb +432 -363
- data/samples/bigdemo/wxArtProvider.rbw +5 -4
- data/samples/controls/controls.rb +2 -2
- data/samples/controls/htlbox.rb +411 -0
- data/samples/controls/tn_htlbox.png +0 -0
- data/samples/drawing/graphics_drawing.rb +1 -2
- data/samples/drawing/{svgtest.rb → image_prt.rb} +49 -18
- data/samples/drawing/tn_image_prt.png +0 -0
- data/samples/propgrid/propgrid.rb +26 -21
- data/samples/ribbon/ribbon.rb +47 -46
- data/samples/sampler/editor.rb +33 -25
- data/samples/sampler/sample.rb +2 -2
- data/samples/sampler/stc_editor.rb +4 -2
- data/tests/lib/item_container_tests.rb +82 -0
- data/tests/lib/text_entry_tests.rb +80 -0
- data/tests/lib/wxapp_runner.rb +15 -3
- data/tests/lib/wxframe_runner.rb +144 -0
- data/tests/test_app_event_filter.rb +74 -0
- data/tests/test_art_provider.rb +52 -0
- data/tests/test_clipboard.rb +2 -1
- data/tests/test_event_handling.rb +199 -16
- data/tests/test_events.rb +4 -11
- data/tests/test_ext_controls.rb +28 -0
- data/tests/test_font.rb +239 -0
- data/tests/test_gdi_object.rb +161 -0
- data/tests/test_intl.rb +16 -15
- data/tests/test_item_data.rb +33 -1
- data/tests/test_std_controls.rb +373 -0
- data/tests/test_window.rb +340 -0
- metadata +61 -8
- data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +0 -47
- data/lib/wx/doc/gen/buffered_dc.rb +0 -95
- data/lib/wx/doc/gen/buffered_paint_dc.rb +0 -55
- data/lib/wx/doc/gen/colour_data.rb +0 -96
- data/samples/drawing/tn_svgtest.png +0 -0
@@ -1,95 +0,0 @@
|
|
1
|
-
# :stopdoc:
|
2
|
-
# This file is automatically generated by the WXRuby3 documentation
|
3
|
-
# generator. Do not alter this file.
|
4
|
-
# :startdoc:
|
5
|
-
|
6
|
-
|
7
|
-
module Wx
|
8
|
-
|
9
|
-
#
|
10
|
-
BUFFER_VIRTUAL_AREA = 1
|
11
|
-
|
12
|
-
#
|
13
|
-
BUFFER_CLIENT_AREA = 2
|
14
|
-
|
15
|
-
#
|
16
|
-
BUFFER_USES_SHARED_BUFFER = 4
|
17
|
-
|
18
|
-
# Check if the window is natively double buffered and will return a {Wx::PaintDC} if it is, a {Wx::BufferedPaintDC} otherwise.
|
19
|
-
# It is the caller's responsibility to delete the {Wx::DC} pointer when finished with it.
|
20
|
-
# @param window [Wx::Window]
|
21
|
-
# @return [Wx::DC]
|
22
|
-
def self.auto_buffered_paint_dc_factory(window) end
|
23
|
-
|
24
|
-
# This class provides a simple way to avoid flicker: when drawing on it, everything is in fact first drawn on an in-memory buffer (a {Wx::Bitmap}) and then copied to the screen, using the associated {Wx::DC}, only once, when this object is destroyed.
|
25
|
-
# {Wx::BufferedDC} itself is typically associated with {Wx::ClientDC}, if you want to use it in your EVT_PAINT handler, you should look at {Wx::BufferedPaintDC} instead.
|
26
|
-
# When used like this, a valid DC must be specified in the constructor while the buffer bitmap doesn't have to be explicitly provided, by default this class will allocate the bitmap of required size itself. However using a dedicated bitmap can speed up the redrawing process by eliminating the repeated creation and destruction of a possibly big bitmap. Otherwise, {Wx::BufferedDC} can be used in the same way as any other device context.
|
27
|
-
# Another possible use for {Wx::BufferedDC} is to use it to maintain a backing store for the window contents. In this case, the associated DC may be NULL but a valid backing store bitmap should be specified.
|
28
|
-
# Finally, please note that GTK+ 2.0 as well as macOS provide double buffering themselves natively. You can either use {Wx::Window#is_double_buffered} to determine whether you need to use buffering or not, or use {Wx::AutoBufferedPaintDC} to avoid needless double buffering on the systems which already do it automatically.
|
29
|
-
# ===
|
30
|
-
#
|
31
|
-
# Category: Device Contexts
|
32
|
-
# @see Wx::DC
|
33
|
-
# @see Wx::MemoryDC
|
34
|
-
# @see Wx::BufferedPaintDC
|
35
|
-
# @see Wx::AutoBufferedPaintDC
|
36
|
-
#
|
37
|
-
#
|
38
|
-
class BufferedDC < MemoryDC
|
39
|
-
|
40
|
-
# @overload init(dc, area, style=Wx::BUFFER_CLIENT_AREA)
|
41
|
-
# Initializes the object created using the default constructor.
|
42
|
-
# Please see the constructors for parameter details.
|
43
|
-
# @param dc [Wx::DC]
|
44
|
-
# @param area [Array(Integer, Integer), Wx::Size]
|
45
|
-
# @param style [Integer]
|
46
|
-
# @return [void]
|
47
|
-
# @overload init(dc, buffer=Wx::NULL_BITMAP, style=Wx::BUFFER_CLIENT_AREA)
|
48
|
-
# Initializes the object created using the default constructor.
|
49
|
-
# Please see the constructors for parameter details.
|
50
|
-
# @param dc [Wx::DC]
|
51
|
-
# @param buffer [Wx::Bitmap]
|
52
|
-
# @param style [Integer]
|
53
|
-
# @return [void]
|
54
|
-
def init(*args) end
|
55
|
-
|
56
|
-
# @overload initialize()
|
57
|
-
# Default constructor.
|
58
|
-
# You must call one of the {Wx::BufferedDC#init} methods later in order to use the device context.
|
59
|
-
# @return [BufferedDC]
|
60
|
-
# @overload initialize(dc, area, style=Wx::BUFFER_CLIENT_AREA)
|
61
|
-
# Creates a buffer for the provided dc.
|
62
|
-
# {Wx::BufferedDC#init} must not be called when using this constructor.
|
63
|
-
# @param dc [Wx::DC] The underlying DC: everything drawn to this object will be flushed to this DC when this object is destroyed. You may pass NULL in order to just initialize the buffer, and not flush it.
|
64
|
-
# @param area [Array(Integer, Integer), Wx::Size] The size of the bitmap to be used for buffering (this bitmap is created internally when it is not given explicitly).
|
65
|
-
# @param style [Integer] {Wx::BUFFER_CLIENT_AREA} to indicate that just the client area of the window is buffered, or {Wx::BUFFER_VIRTUAL_AREA} to indicate that the buffer bitmap covers the virtual area.
|
66
|
-
# @return [BufferedDC]
|
67
|
-
# @overload initialize(dc, buffer=Wx::NULL_BITMAP, style=Wx::BUFFER_CLIENT_AREA)
|
68
|
-
# Creates a buffer for the provided dc.
|
69
|
-
# {Wx::BufferedDC#init} must not be called when using this constructor.
|
70
|
-
# @param dc [Wx::DC] The underlying DC: everything drawn to this object will be flushed to this DC when this object is destroyed. You may pass NULL in order to just initialize the buffer, and not flush it.
|
71
|
-
# @param buffer [Wx::Bitmap] Explicitly provided bitmap to be used for buffering: this is the most efficient solution as the bitmap doesn't have to be recreated each time but it also requires more memory as the bitmap is never freed. The bitmap should have appropriate size, anything drawn outside of its bounds is clipped.
|
72
|
-
# @param style [Integer] {Wx::BUFFER_CLIENT_AREA} to indicate that just the client area of the window is buffered, or {Wx::BUFFER_VIRTUAL_AREA} to indicate that the buffer bitmap covers the virtual area.
|
73
|
-
# @return [BufferedDC]
|
74
|
-
def initialize(*args) end
|
75
|
-
|
76
|
-
# Blits the buffer to the dc, and detaches the dc from the buffer (so it can be effectively used once only).
|
77
|
-
# Usually only called in the destructor or by the destructor of derived classes if the BufferedDC must blit before the derived class (which may own the dc it's blitting to) is destroyed.
|
78
|
-
# @return [void]
|
79
|
-
def un_mask; end
|
80
|
-
|
81
|
-
# Set the style.
|
82
|
-
# @param style [Integer]
|
83
|
-
# @return [void]
|
84
|
-
def set_style(style) end
|
85
|
-
alias_method :style=, :set_style
|
86
|
-
|
87
|
-
# Get the style.
|
88
|
-
# @return [Integer]
|
89
|
-
def get_style; end
|
90
|
-
alias_method :style, :get_style
|
91
|
-
|
92
|
-
end # BufferedDC
|
93
|
-
|
94
|
-
|
95
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
# :stopdoc:
|
2
|
-
# This file is automatically generated by the WXRuby3 documentation
|
3
|
-
# generator. Do not alter this file.
|
4
|
-
# :startdoc:
|
5
|
-
|
6
|
-
|
7
|
-
module Wx
|
8
|
-
|
9
|
-
#
|
10
|
-
BUFFER_VIRTUAL_AREA = 1
|
11
|
-
|
12
|
-
#
|
13
|
-
BUFFER_CLIENT_AREA = 2
|
14
|
-
|
15
|
-
#
|
16
|
-
BUFFER_USES_SHARED_BUFFER = 4
|
17
|
-
|
18
|
-
# Check if the window is natively double buffered and will return a {Wx::PaintDC} if it is, a {Wx::BufferedPaintDC} otherwise.
|
19
|
-
# It is the caller's responsibility to delete the {Wx::DC} pointer when finished with it.
|
20
|
-
# @param window [Wx::Window]
|
21
|
-
# @return [Wx::DC]
|
22
|
-
def self.auto_buffered_paint_dc_factory(window) end
|
23
|
-
|
24
|
-
# This is a subclass of {Wx::BufferedDC} which can be used inside of an <code>EVT_PAINT()</code> event handler to achieve double-buffered drawing.
|
25
|
-
# Just use this class instead of {Wx::PaintDC} and make sure {Wx::Window#set_background_style} is called with {Wx::BackgroundStyle::BG_STYLE_PAINT} somewhere in the class initialization code, and that's all you have to do to (mostly) avoid flicker. The only thing to watch out for is that if you are using this class together with {Wx::Scrolled}, you probably do <b>not</b> want to call Wx::Scrolled#prepare_dc on it as it already does this internally for the real underlying {Wx::PaintDC}.
|
26
|
-
# ===
|
27
|
-
#
|
28
|
-
# Category: Device Contexts
|
29
|
-
# @see Wx::DC
|
30
|
-
# @see Wx::BufferedDC
|
31
|
-
# @see Wx::AutoBufferedPaintDC
|
32
|
-
# @see Wx::PaintDC
|
33
|
-
#
|
34
|
-
#
|
35
|
-
class BufferedPaintDC < BufferedDC
|
36
|
-
|
37
|
-
# @overload initialize(window, buffer, style=Wx::BUFFER_CLIENT_AREA)
|
38
|
-
# As with {Wx::BufferedDC}, you may either provide the bitmap to be used for buffering or let this object create one internally (in the latter case, the size of the client part of the window is used).
|
39
|
-
# Pass {Wx::BUFFER_CLIENT_AREA} for the style parameter to indicate that just the client area of the window is buffered, or {Wx::BUFFER_VIRTUAL_AREA} to indicate that the buffer bitmap covers the virtual area.
|
40
|
-
# @param window [Wx::Window]
|
41
|
-
# @param buffer [Wx::Bitmap]
|
42
|
-
# @param style [Integer]
|
43
|
-
# @return [BufferedPaintDC]
|
44
|
-
# @overload initialize(window, style=Wx::BUFFER_CLIENT_AREA)
|
45
|
-
# As with {Wx::BufferedDC}, you may either provide the bitmap to be used for buffering or let this object create one internally (in the latter case, the size of the client part of the window is used).
|
46
|
-
# Pass {Wx::BUFFER_CLIENT_AREA} for the style parameter to indicate that just the client area of the window is buffered, or {Wx::BUFFER_VIRTUAL_AREA} to indicate that the buffer bitmap covers the virtual area.
|
47
|
-
# @param window [Wx::Window]
|
48
|
-
# @param style [Integer]
|
49
|
-
# @return [BufferedPaintDC]
|
50
|
-
def initialize(*args) end
|
51
|
-
|
52
|
-
end # BufferedPaintDC
|
53
|
-
|
54
|
-
|
55
|
-
end
|
@@ -1,96 +0,0 @@
|
|
1
|
-
# :stopdoc:
|
2
|
-
# This file is automatically generated by the WXRuby3 documentation
|
3
|
-
# generator. Do not alter this file.
|
4
|
-
# :startdoc:
|
5
|
-
|
6
|
-
|
7
|
-
module Wx
|
8
|
-
|
9
|
-
# This class holds a variety of information related to colour dialogs.
|
10
|
-
# ===
|
11
|
-
#
|
12
|
-
# Category: Common Dialogs, Data Structures
|
13
|
-
# @see Wx::Colour
|
14
|
-
# @see Wx::ColourDialog
|
15
|
-
# @see wxColourDialog Overview
|
16
|
-
#
|
17
|
-
#
|
18
|
-
class ColourData < Object
|
19
|
-
|
20
|
-
#
|
21
|
-
#
|
22
|
-
NUM_CUSTOM = 16
|
23
|
-
|
24
|
-
# Constructor.
|
25
|
-
# Initializes the custom colours to {Wx::NULL_COLOUR}, the data colour setting to black, and the choose full setting to true.
|
26
|
-
# @return [ColourData]
|
27
|
-
def initialize; end
|
28
|
-
|
29
|
-
# Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls.
|
30
|
-
# Has no meaning under other platforms.
|
31
|
-
# The default value is true.
|
32
|
-
# @return [true,false]
|
33
|
-
def get_choose_full; end
|
34
|
-
alias_method :choose_full, :get_choose_full
|
35
|
-
|
36
|
-
# Indicates whether the colour dialog will display alpha values and an opacity selector.
|
37
|
-
# It is meaningful under {Wx::GTK}, {Wx::OSX} and with regards to generic colour dialog.
|
38
|
-
# The default value is false, except {Wx::OSX} where it is true (for the sake of backward compatibility).
|
39
|
-
# @return [true,false]
|
40
|
-
def get_choose_alpha; end
|
41
|
-
alias_method :choose_alpha, :get_choose_alpha
|
42
|
-
|
43
|
-
# Gets the current colour associated with the colour dialog.
|
44
|
-
# The default colour is black.
|
45
|
-
# @return [Wx::Colour]
|
46
|
-
def get_colour; end
|
47
|
-
alias_method :colour, :get_colour
|
48
|
-
|
49
|
-
# Returns custom colours associated with the colour dialog.
|
50
|
-
# @param i [Integer] An integer between 0 and 15, being any of the 15 custom colours that the user has saved. The default custom colours are invalid colours.
|
51
|
-
# @return [Wx::Colour]
|
52
|
-
def get_custom_colour(i) end
|
53
|
-
alias_method :custom_colour, :get_custom_colour
|
54
|
-
|
55
|
-
# Under Windows, tells the Windows colour dialog to display the full dialog with custom colour selection controls.
|
56
|
-
# Under other platforms, has no effect.
|
57
|
-
# The default value is true.
|
58
|
-
# @param flag [true,false]
|
59
|
-
# @return [void]
|
60
|
-
def set_choose_full(flag) end
|
61
|
-
alias_method :choose_full=, :set_choose_full
|
62
|
-
|
63
|
-
# Tells the colour dialog to show alpha values and an opacity selector (slider).
|
64
|
-
# Currently it has effect under {Wx::GTK}, {Wx::OSX} and for generic colour dialog.
|
65
|
-
# The default value is false, except {Wx::OSX} where it is true for backward compatibility.
|
66
|
-
# @param flag [true,false]
|
67
|
-
# @return [void]
|
68
|
-
def set_choose_alpha(flag) end
|
69
|
-
alias_method :choose_alpha=, :set_choose_alpha
|
70
|
-
|
71
|
-
# Sets the default colour for the colour dialog.
|
72
|
-
# The default colour is black.
|
73
|
-
# @param colour [Wx::Colour,String,Symbol]
|
74
|
-
# @return [void]
|
75
|
-
def set_colour(colour) end
|
76
|
-
alias_method :colour=, :set_colour
|
77
|
-
|
78
|
-
# Sets custom colours for the colour dialog.
|
79
|
-
# @param i [Integer] An integer between 0 and 15 for whatever custom colour you want to set. The default custom colours are invalid colours.
|
80
|
-
# @param colour [Wx::Colour,String,Symbol] The colour to set
|
81
|
-
# @return [void]
|
82
|
-
def set_custom_colour(i, colour) end
|
83
|
-
|
84
|
-
# Converts the colours saved in this class in a string form, separating the various colours with a comma.
|
85
|
-
# @return [String]
|
86
|
-
def to_string; end
|
87
|
-
|
88
|
-
# Decodes the given string, which should be in the same format returned by {Wx::ColourData#to_string}, and sets the internal colours.
|
89
|
-
# @param str [String]
|
90
|
-
# @return [true,false]
|
91
|
-
def from_string(str) end
|
92
|
-
|
93
|
-
end # ColourData
|
94
|
-
|
95
|
-
|
96
|
-
end
|
Binary file
|