wxruby3 0.9.0.pre.beta.10-x64-mingw-ucrt → 0.9.0.pre.beta.13-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/INSTALL.md +85 -0
- data/README.md +2 -0
- data/assets/logo.png +0 -0
- data/assets/logo.svg +170 -0
- data/assets/logo.xcf +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/array_ext.rb +26 -0
- data/lib/wx/core/art_locator.rb +92 -0
- data/lib/wx/core/artprovider.rb +1 -1
- data/lib/wx/core/bitmap.rb +90 -53
- data/lib/wx/core/cursor.rb +12 -0
- data/lib/wx/core/data_object.rb +74 -6
- data/lib/wx/core/dataformat.rb +3 -1
- data/lib/wx/core/dc.rb +76 -52
- data/lib/wx/core/enum.rb +4 -0
- data/lib/wx/core/event.rb +38 -5
- data/lib/wx/core/events/evt_list.rb +3 -2
- data/lib/wx/core/evthandler.rb +64 -23
- data/lib/wx/core/icon.rb +50 -35
- data/lib/wx/core/id_helper.rb +32 -0
- data/lib/wx/core/image.rb +63 -53
- data/lib/wx/core/point.rb +35 -10
- data/lib/wx/core/real_point.rb +35 -10
- data/lib/wx/core/rect.rb +44 -9
- data/lib/wx/core/region_iterator.rb +37 -0
- data/lib/wx/core/size.rb +32 -5
- data/lib/wx/core/window.rb +8 -31
- data/lib/wx/doc/array_ext.rb +27 -0
- data/lib/wx/doc/art_locator.rb +57 -0
- data/lib/wx/doc/bitmap.rb +27 -0
- data/lib/wx/doc/clipboard.rb +12 -0
- data/lib/wx/doc/const.rb +77 -0
- data/lib/wx/doc/cursor.rb +16 -0
- data/lib/wx/doc/data_object.rb +103 -0
- data/lib/wx/doc/dc.rb +63 -46
- data/lib/wx/doc/event.rb +24 -0
- data/lib/wx/doc/events.rb +14 -0
- data/lib/wx/doc/evthandler.rb +24 -3
- data/lib/wx/doc/extra/00_starting.md +1 -1
- data/lib/wx/doc/extra/06_geometry.md +10 -4
- data/lib/wx/doc/extra/10_art.md +105 -0
- data/lib/wx/doc/gc_dc.rb +21 -0
- data/lib/wx/doc/gdi_common.rb +155 -6
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -4
- data/lib/wx/doc/gen/animation.rb +3 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +4 -4
- data/lib/wx/doc/gen/any_button.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_manager.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_notebook.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +6 -6
- data/lib/wx/doc/gen/bitmap.rb +1 -1
- data/lib/wx/doc/gen/bitmap_button.rb +2 -2
- data/lib/wx/doc/gen/book_ctrl_base.rb +4 -4
- data/lib/wx/doc/gen/brush.rb +1 -1
- data/lib/wx/doc/gen/button.rb +2 -2
- data/lib/wx/doc/gen/calendar_ctrl.rb +3 -3
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
- data/lib/wx/doc/gen/check_box.rb +2 -2
- data/lib/wx/doc/gen/check_list_box.rb +3 -3
- data/lib/wx/doc/gen/choice.rb +2 -2
- data/lib/wx/doc/gen/choicebook.rb +2 -2
- data/lib/wx/doc/gen/collapsible_pane.rb +2 -2
- data/lib/wx/doc/gen/colour.rb +1 -3
- data/lib/wx/doc/gen/colour_dialog.rb +1 -2
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/combo_box.rb +4 -4
- data/lib/wx/doc/gen/context_help_button.rb +1 -1
- data/lib/wx/doc/gen/control.rb +3 -3
- data/lib/wx/doc/gen/core.rb +2 -2
- data/lib/wx/doc/gen/data_format.rb +1 -1
- data/lib/wx/doc/gen/data_object.rb +6 -26
- data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
- data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dc.rb +9 -9
- data/lib/wx/doc/gen/defs.rb +0 -4
- data/lib/wx/doc/gen/dialog.rb +3 -3
- data/lib/wx/doc/gen/dir_dialog.rb +2 -4
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/drag_drop.rb +13 -1
- data/lib/wx/doc/gen/editable_list_box.rb +2 -2
- data/lib/wx/doc/gen/event.rb +0 -1
- data/lib/wx/doc/gen/event_list.rb +18 -16
- data/lib/wx/doc/gen/events.rb +87 -2
- data/lib/wx/doc/gen/ext_help_controller.rb +2 -2
- data/lib/wx/doc/gen/file_dialog.rb +1 -1
- data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/font.rb +6 -6
- data/lib/wx/doc/gen/font_dialog.rb +1 -2
- data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/frame.rb +5 -5
- data/lib/wx/doc/gen/fs_file.rb +2 -2
- data/lib/wx/doc/gen/gauge.rb +2 -2
- data/lib/wx/doc/gen/gdi_common.rb +18 -21
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
- data/lib/wx/doc/gen/graphics_context.rb +4 -4
- data/lib/wx/doc/gen/graphics_object.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +7 -7
- data/lib/wx/doc/gen/help_controller.rb +1 -1
- data/lib/wx/doc/gen/html/html_cell.rb +4 -4
- data/lib/wx/doc/gen/html/html_easy_printing.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_controller.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_frame.rb +2 -2
- data/lib/wx/doc/gen/html/html_help_window.rb +6 -6
- data/lib/wx/doc/gen/html/html_list_box.rb +6 -6
- data/lib/wx/doc/gen/html/html_printout.rb +4 -4
- data/lib/wx/doc/gen/html/html_window.rb +4 -4
- data/lib/wx/doc/gen/icon.rb +6 -6
- data/lib/wx/doc/gen/image.rb +7 -7
- data/lib/wx/doc/gen/list_box.rb +4 -4
- data/lib/wx/doc/gen/list_ctrl.rb +5 -5
- data/lib/wx/doc/gen/listbook.rb +2 -2
- data/lib/wx/doc/gen/locale.rb +8 -8
- data/lib/wx/doc/gen/log.rb +2 -2
- data/lib/wx/doc/gen/mdi_frame.rb +5 -5
- data/lib/wx/doc/gen/media_ctrl.rb +4 -4
- data/lib/wx/doc/gen/menu.rb +12 -12
- data/lib/wx/doc/gen/menu_item.rb +1 -1
- data/lib/wx/doc/gen/message_dialog.rb +2 -4
- data/lib/wx/doc/gen/mini_frame.rb +2 -2
- data/lib/wx/doc/gen/notebook.rb +3 -3
- data/lib/wx/doc/gen/number_entry_dialog.rb +0 -1
- data/lib/wx/doc/gen/object.rb +0 -1
- data/lib/wx/doc/gen/panel.rb +2 -2
- data/lib/wx/doc/gen/pen.rb +2 -2
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_properties.rb +20 -20
- data/lib/wx/doc/gen/pg/pg_property.rb +12 -12
- data/lib/wx/doc/gen/pg/property_grid.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +14 -14
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid_page.rb +2 -2
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -2
- data/lib/wx/doc/gen/popup_window.rb +3 -3
- data/lib/wx/doc/gen/property_sheet_dialog.rb +3 -3
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/printer.rb +1 -1
- data/lib/wx/doc/gen/radio_box.rb +4 -4
- data/lib/wx/doc/gen/radio_button.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +12 -12
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +11 -11
- data/lib/wx/doc/gen/region.rb +1 -1
- data/lib/wx/doc/gen/region_iterator.rb +76 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +10 -10
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -4
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +6 -6
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +1 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
- data/lib/wx/doc/gen/sash_window.rb +1 -1
- data/lib/wx/doc/gen/scaled_dc.rb +10 -0
- data/lib/wx/doc/gen/scroll_bar.rb +150 -0
- data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
- data/lib/wx/doc/gen/scrolled_control.rb +2 -2
- data/lib/wx/doc/gen/scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/simplebook.rb +2 -2
- data/lib/wx/doc/gen/sizer.rb +3 -3
- data/lib/wx/doc/gen/slider.rb +2 -2
- data/lib/wx/doc/gen/spin_button.rb +2 -2
- data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
- data/lib/wx/doc/gen/splash_screen.rb +1 -1
- data/lib/wx/doc/gen/splitter_window.rb +2 -2
- data/lib/wx/doc/gen/static_bitmap.rb +2 -2
- data/lib/wx/doc/gen/static_box.rb +4 -4
- data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
- data/lib/wx/doc/gen/static_line.rb +2 -2
- data/lib/wx/doc/gen/static_text.rb +2 -2
- data/lib/wx/doc/gen/status_bar.rb +2 -2
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
- data/lib/wx/doc/gen/task_bar_icon.rb +2 -2
- data/lib/wx/doc/gen/text_attr.rb +3 -3
- data/lib/wx/doc/gen/text_ctrl.rb +3 -3
- data/lib/wx/doc/gen/text_entry_dialog.rb +6 -8
- data/lib/wx/doc/gen/text_validator.rb +1 -1
- data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/tip_provider.rb +1 -3
- data/lib/wx/doc/gen/toggle_button.rb +2 -2
- data/lib/wx/doc/gen/tool_bar.rb +10 -10
- data/lib/wx/doc/gen/toolbook.rb +2 -2
- data/lib/wx/doc/gen/top_level_window.rb +4 -4
- data/lib/wx/doc/gen/tree_ctrl.rb +4 -4
- data/lib/wx/doc/gen/treebook.rb +2 -2
- data/lib/wx/doc/gen/utils.rb +5 -42
- data/lib/wx/doc/gen/v_list_box.rb +2 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/variant.rb +10 -10
- data/lib/wx/doc/gen/window.rb +9 -14
- data/lib/wx/doc/gen/wizard.rb +2 -2
- data/lib/wx/doc/gen/wizard_event.rb +1 -1
- data/lib/wx/doc/gen/xml_node.rb +2 -2
- data/lib/wx/doc/gen/xml_resource.rb +3 -3
- data/lib/wx/doc/graphics_context.rb +42 -0
- data/lib/wx/doc/icon.rb +18 -0
- data/lib/wx/doc/id_helper.rb +25 -0
- data/lib/wx/doc/image.rb +33 -0
- data/lib/wx/doc/region_iterator.rb +31 -0
- data/lib/wx/doc/scaled_dc.rb +17 -0
- data/lib/wx/doc/window.rb +18 -0
- data/lib/wx/global_const.rb +4 -3
- data/lib/wx/version.rb +1 -1
- data/lib/wx/wxruby/cmd/sampler.rb +3 -21
- 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/lib/config.rb +4 -4
- data/samples/art/wxruby-128x128.png +0 -0
- data/samples/art/wxruby-256x256.png +0 -0
- data/samples/art/wxruby-64x64.png +0 -0
- data/samples/art/wxruby.ico +0 -0
- data/samples/art/wxruby.png +0 -0
- data/samples/drawing/graphics_drawing.rb +1 -2
- data/samples/propgrid/propgrid.rb +65 -65
- data/samples/sample.xpm +246 -470
- data/samples/treectrl/treectrl.rb +1 -1
- data/tests/art/my_art/sample.xpm +251 -0
- data/tests/art/sample3.xpm +251 -0
- data/tests/art/test_art/bitmap/sample.xpm +251 -0
- data/tests/art/test_art/bitmap/wxruby.bmp +0 -0
- data/tests/art/test_art/bitmap/wxruby.png +0 -0
- data/tests/art/test_art/bitmap/wxruby.xpm +251 -0
- data/tests/art/test_art/cursor/wxruby.bmp +0 -0
- data/tests/art/test_art/icon/sample.xpm +251 -0
- data/tests/art/test_art/icon/wxruby.ico +0 -0
- data/tests/art/test_art/icon/wxruby.png +0 -0
- data/tests/art/test_art/image/sample.xpm +251 -0
- data/tests/art/test_art/image/wxruby.jpg +0 -0
- data/tests/art/test_art/image/wxruby.png +0 -0
- data/tests/art/test_art/sample2.xpm +251 -0
- data/tests/lib/wxapp_runner.rb +64 -0
- data/tests/test_art.rb +91 -0
- data/tests/test_basic.rb +0 -5
- data/tests/test_clipboard.rb +149 -17
- data/tests/test_dc.rb +70 -0
- data/tests/test_dialog.rb +2 -13
- data/tests/test_event_handling.rb +2 -13
- data/tests/test_events.rb +14 -6
- data/tests/test_geometry.rb +67 -17
- data/tests/test_intl.rb +2 -15
- data/tests/test_item_data.rb +2 -15
- data/tests/test_variant.rb +1 -15
- data/tests/testapp.rb +0 -5
- data/tests/testapp_noframe.rb +0 -5
- metadata +55 -3
@@ -29,7 +29,7 @@ module Wx
|
|
29
29
|
#
|
30
30
|
class CheckListBox < ListBox
|
31
31
|
|
32
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("
|
32
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("listBox"))
|
33
33
|
# Constructor, creating and showing a list box.
|
34
34
|
# <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
|
35
35
|
# @param parent [Wx::Window] Parent window. Must not be NULL.
|
@@ -41,7 +41,7 @@ module Wx
|
|
41
41
|
# @param validator [Wx::Validator] Window validator.
|
42
42
|
# @param name [String] Window name.
|
43
43
|
# @return [CheckListBox]
|
44
|
-
# @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("
|
44
|
+
# @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("listBox"))
|
45
45
|
# Constructor, creating and showing a list box.
|
46
46
|
# <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
|
47
47
|
# @param parent [Wx::Window] Parent window. Must not be NULL.
|
@@ -67,7 +67,7 @@ module Wx
|
|
67
67
|
# @param validator [Wx::Validator]
|
68
68
|
# @param name [String]
|
69
69
|
# @return [true,false]
|
70
|
-
def create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
70
|
+
def create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListBoxNameStr) end
|
71
71
|
|
72
72
|
# Checks the given item.
|
73
73
|
# Note that calling this method does not result in a {Wx::EVT_CHECKLISTBOX} event being emitted.
|
data/lib/wx/doc/gen/choice.rb
CHANGED
@@ -44,7 +44,7 @@ module Wx
|
|
44
44
|
# @param validator [Wx::Validator]
|
45
45
|
# @param name [String]
|
46
46
|
# @return [true,false]
|
47
|
-
def create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
47
|
+
def create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ChoiceNameStr) end
|
48
48
|
|
49
49
|
# @overload initialize()
|
50
50
|
# Default constructor.
|
@@ -52,7 +52,7 @@ module Wx
|
|
52
52
|
# @see Wx::Choice#create
|
53
53
|
# @see Wx::Validator
|
54
54
|
# @return [Choice]
|
55
|
-
# @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
55
|
+
# @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ChoiceNameStr)
|
56
56
|
# Constructor, creating and showing a choice.
|
57
57
|
# <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
|
58
58
|
# @see Wx::Choice#create
|
@@ -68,7 +68,7 @@ module Wx
|
|
68
68
|
# @overload initialize()
|
69
69
|
# Constructs a choicebook control.
|
70
70
|
# @return [Choicebook]
|
71
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=
|
71
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
|
72
72
|
# Constructs a choicebook control.
|
73
73
|
# @param parent [Wx::Window]
|
74
74
|
# @param id [Integer]
|
@@ -87,7 +87,7 @@ module Wx
|
|
87
87
|
# @param style [Integer]
|
88
88
|
# @param name [String]
|
89
89
|
# @return [true,false]
|
90
|
-
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=
|
90
|
+
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=('')) end
|
91
91
|
|
92
92
|
# Returns the {Wx::Choice} associated with the control.
|
93
93
|
# @return [Wx::Choice]
|
@@ -63,7 +63,7 @@ module Wx
|
|
63
63
|
# @overload initialize()
|
64
64
|
# Default constructor.
|
65
65
|
# @return [CollapsiblePane]
|
66
|
-
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
66
|
+
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CollapsiblePaneNameStr)
|
67
67
|
# Initializes the object and calls {Wx::CollapsiblePane#create} with all the parameters.
|
68
68
|
# @param parent [Wx::Window]
|
69
69
|
# @param id [Integer]
|
@@ -87,7 +87,7 @@ module Wx
|
|
87
87
|
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
88
88
|
# @param name [String] Control name.
|
89
89
|
# @return [true,false]
|
90
|
-
def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
90
|
+
def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CollapsiblePaneNameStr) end
|
91
91
|
|
92
92
|
# Collapses or expands the pane window.
|
93
93
|
# @param collapse [true,false]
|
data/lib/wx/doc/gen/colour.rb
CHANGED
@@ -32,8 +32,6 @@ module Wx
|
|
32
32
|
|
33
33
|
# Converts string to a {Wx::Colour} best represented by the given string.
|
34
34
|
# Returns true on success.
|
35
|
-
#
|
36
|
-
# Include file: #include <wx/colour.h>
|
37
35
|
# @see wxToString(const wxColour&)
|
38
36
|
# @param string [String]
|
39
37
|
# @param colour [Wx::Colour]
|
@@ -41,7 +39,7 @@ module Wx
|
|
41
39
|
def self.from_string(string, colour) end
|
42
40
|
|
43
41
|
# Converts the given {Wx::Colour} into a string.
|
44
|
-
#
|
42
|
+
#
|
45
43
|
# @see wxFromString(const wxString&
|
46
44
|
# @see wxColour*)
|
47
45
|
# @param colour [Wx::Colour,String,Symbol]
|
@@ -11,13 +11,12 @@ module Wx
|
|
11
11
|
EVT_COLOUR_CHANGED = 10183
|
12
12
|
|
13
13
|
# Shows the colour selection dialog and returns the colour selected by user or invalid colour (use {Wx::Colour#is_ok} to test whether a colour is valid) if the dialog was cancelled.
|
14
|
-
# Include file: #include <wx/colordlg.h>
|
15
14
|
# @param parent [Wx::Window] The parent window for the colour selection dialog.
|
16
15
|
# @param colInit [Wx::Colour,String,Symbol] If given, this will be the colour initially selected in the dialog.
|
17
16
|
# @param caption [String] If given, this will be used for the dialog caption.
|
18
17
|
# @param data [Wx::ColourData] Optional object storing additional colour dialog settings, such as custom colours. If none is provided the same settings as the last time are used.
|
19
18
|
# @return [Wx::Colour]
|
20
|
-
def self.get_colour_from_user(parent, colInit, caption=
|
19
|
+
def self.get_colour_from_user(parent, colInit, caption=(''), data=nil) end
|
21
20
|
|
22
21
|
# This class represents the colour chooser dialog.
|
23
22
|
# Starting from wxWidgets 3.1.3 and currently in the MSW port only, this dialog generates {Wx::EVT_COLOUR_CHANGED} events while it is being shown, i.e. from inside its {Wx::ColourDialog#show_modal} method, that notify the program about the change of the currently selected colour and allow it to e.g. preview the effect of selecting this colour. Note that if you react to this event, you should also correctly revert to the previously selected colour if the dialog is cancelled by the user.
|
@@ -52,7 +52,7 @@ module Wx
|
|
52
52
|
|
53
53
|
# @overload initialize()
|
54
54
|
# @return [ColourPickerCtrl]
|
55
|
-
# @overload initialize(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
55
|
+
# @overload initialize(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ColourPickerCtrlNameStr)
|
56
56
|
# Initializes the object and calls {Wx::ColourPickerCtrl#create} with all the parameters.
|
57
57
|
# @param parent [Wx::Window]
|
58
58
|
# @param id [Integer]
|
@@ -76,7 +76,7 @@ module Wx
|
|
76
76
|
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
77
77
|
# @param name [String] Control name.
|
78
78
|
# @return [true,false]
|
79
|
-
def create(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
79
|
+
def create(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ColourPickerCtrlNameStr) end
|
80
80
|
|
81
81
|
# Returns the currently selected colour.
|
82
82
|
# @return [Wx::Colour]
|
data/lib/wx/doc/gen/combo_box.rb
CHANGED
@@ -47,7 +47,7 @@ module Wx
|
|
47
47
|
|
48
48
|
include Wx::TextEntry
|
49
49
|
|
50
|
-
# @overload create(parent, id, value=
|
50
|
+
# @overload create(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=((const Wx::String *) nil), style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
|
51
51
|
# Creates the combobox for two-step construction.
|
52
52
|
# Derived classes should call or replace this function. See {Wx::ComboBox#combo_box} for further details.
|
53
53
|
# @param parent [Wx::Window]
|
@@ -60,7 +60,7 @@ module Wx
|
|
60
60
|
# @param validator [Wx::Validator]
|
61
61
|
# @param name [String]
|
62
62
|
# @return [true,false]
|
63
|
-
# @overload create(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
63
|
+
# @overload create(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
|
64
64
|
# Creates the combobox for two-step construction.
|
65
65
|
# Derived classes should call or replace this function. See {Wx::ComboBox#combo_box} for further details.
|
66
66
|
# @param parent [Wx::Window]
|
@@ -78,7 +78,7 @@ module Wx
|
|
78
78
|
# @overload initialize()
|
79
79
|
# Default constructor.
|
80
80
|
# @return [ComboBox]
|
81
|
-
# @overload initialize(parent, id, value=
|
81
|
+
# @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
|
82
82
|
# Constructor, creating and showing a combobox.
|
83
83
|
# <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
|
84
84
|
# @see Wx::ComboBox#create
|
@@ -93,7 +93,7 @@ module Wx
|
|
93
93
|
# @param validator [Wx::Validator] Window validator.
|
94
94
|
# @param name [String] Window name.
|
95
95
|
# @return [ComboBox]
|
96
|
-
# @overload initialize(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
96
|
+
# @overload initialize(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
|
97
97
|
# Constructor, creating and showing a combobox.
|
98
98
|
# <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
|
99
99
|
# @see Wx::ComboBox#create
|
@@ -26,7 +26,7 @@ module Wx
|
|
26
26
|
# @param size [Array(Integer, Integer), Wx::Size] Button size. If {Wx::DEFAULT_SIZE} is specified then the button is sized appropriately for the question mark bitmap.
|
27
27
|
# @param style [Integer] Window style.
|
28
28
|
# @return [ContextHelpButton]
|
29
|
-
def initialize(parent, id=Wx::ID_CONTEXT_HELP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
|
29
|
+
def initialize(parent, id=Wx::StandardID::ID_CONTEXT_HELP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
|
30
30
|
|
31
31
|
end # ContextHelpButton
|
32
32
|
|
data/lib/wx/doc/gen/control.rb
CHANGED
@@ -24,7 +24,7 @@ module Wx
|
|
24
24
|
#
|
25
25
|
class Control < Window
|
26
26
|
|
27
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
27
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ControlNameStr)
|
28
28
|
# Constructs a control.
|
29
29
|
# @param parent [Wx::Window] Pointer to a parent window.
|
30
30
|
# @param id [Integer] Control identifier. If {Wx::StandardID::ID_ANY}, will automatically create an identifier.
|
@@ -47,7 +47,7 @@ module Wx
|
|
47
47
|
# @param validator [Wx::Validator]
|
48
48
|
# @param name [String]
|
49
49
|
# @return [true,false]
|
50
|
-
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
50
|
+
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ControlNameStr) end
|
51
51
|
|
52
52
|
# Simulates the effect of the user issuing a command to the item.
|
53
53
|
#
|
@@ -237,7 +237,7 @@ module Wx
|
|
237
237
|
# @param maxWidth [Integer] The maximum width of the returned string in pixels. This argument determines how much characters of the string need to be removed (and replaced by ellipsis).
|
238
238
|
# @param flags [Integer] One or more of the {Wx::EllipsizeFlags} enumeration values combined.
|
239
239
|
# @return [String]
|
240
|
-
def self.ellipsize(label, dc, mode, maxWidth, flags=Wx::ELLIPSIZE_FLAGS_DEFAULT) end
|
240
|
+
def self.ellipsize(label, dc, mode, maxWidth, flags=Wx::EllipsizeFlags::ELLIPSIZE_FLAGS_DEFAULT) end
|
241
241
|
|
242
242
|
end # Control
|
243
243
|
|
data/lib/wx/doc/gen/core.rb
CHANGED
@@ -7,10 +7,10 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# wxRuby version string
|
10
|
-
Wx::WXRUBY_VERSION = '0.9.0-beta.
|
10
|
+
Wx::WXRUBY_VERSION = '0.9.0-beta.13'
|
11
11
|
|
12
12
|
# wxRuby version release type (alpha, beta, rc)
|
13
|
-
Wx::WXRUBY_RELEASE_TYPE = 'beta.
|
13
|
+
Wx::WXRUBY_RELEASE_TYPE = 'beta.13'
|
14
14
|
# wxRuby major version number
|
15
15
|
Wx::WXRUBY_MAJOR = 0
|
16
16
|
# wxRuby minor version number
|
@@ -46,7 +46,7 @@ module Wx
|
|
46
46
|
#
|
47
47
|
class DataFormat < ::Object
|
48
48
|
|
49
|
-
# @overload initialize(format=Wx::DF_INVALID)
|
49
|
+
# @overload initialize(format=Wx::DataFormatId::DF_INVALID)
|
50
50
|
# Constructs a data format object for one of the standard data formats or an empty data object (use {Wx::DataFormat#set_type} or {Wx::DataFormat#set_id} later in this case).
|
51
51
|
# <b>{Wx::Perl} Note:</b> In {Wx::Perl} use Wx::Bitmap->newNative(format).
|
52
52
|
# @param format [DataFormatId]
|
@@ -75,7 +75,7 @@ module Wx
|
|
75
75
|
# <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method only takes the dir parameter. In scalar context it returns the first format in the list, in list context it returns a list containing all the supported formats.
|
76
76
|
# @param dir [Direction]
|
77
77
|
# @return [Array<Wx::DataFormat>]
|
78
|
-
def get_all_formats(dir=Wx::
|
78
|
+
def get_all_formats(dir=Wx::DataObjectSimpleBase::Direction::Get) end
|
79
79
|
alias_method :all_formats, :get_all_formats
|
80
80
|
|
81
81
|
# The method will write the data of the format format to the buffer buf.
|
@@ -85,23 +85,17 @@ module Wx
|
|
85
85
|
def get_data_here(format) end
|
86
86
|
alias_method :data_here, :get_data_here
|
87
87
|
|
88
|
-
# Returns the data size of the given format format.
|
89
|
-
# @param format [Wx::DataFormat]
|
90
|
-
# @return [Integer]
|
91
|
-
def get_data_size(format) end
|
92
|
-
alias_method :data_size, :get_data_size
|
93
|
-
|
94
88
|
# Returns the number of available formats for rendering or setting the data.
|
95
89
|
# @param dir [Direction]
|
96
90
|
# @return [Integer]
|
97
|
-
def get_format_count(dir=Wx::
|
91
|
+
def get_format_count(dir=Wx::DataObjectSimpleBase::Direction::Get) end
|
98
92
|
alias_method :format_count, :get_format_count
|
99
93
|
|
100
94
|
# Returns the preferred format for either rendering the data (if dir is Get, its default value) or for setting it.
|
101
95
|
# Usually this will be the native format of the {Wx::DataObject}.
|
102
96
|
# @param dir [Direction]
|
103
97
|
# @return [Wx::DataFormat]
|
104
|
-
def get_preferred_format(dir=Wx::
|
98
|
+
def get_preferred_format(dir=Wx::DataObjectSimpleBase::Direction::Get) end
|
105
99
|
alias_method :preferred_format, :get_preferred_format
|
106
100
|
|
107
101
|
# Set the data in the format format of the length len provided in the buffer buf.
|
@@ -117,25 +111,11 @@ module Wx
|
|
117
111
|
# @param format [Wx::DataFormat]
|
118
112
|
# @param dir [Direction]
|
119
113
|
# @return [void]
|
120
|
-
def is_supported(format, dir=Wx::
|
114
|
+
def is_supported(format, dir=Wx::DataObjectSimpleBase::Direction::Get) end
|
121
115
|
alias_method :supported?, :is_supported
|
122
116
|
|
123
117
|
end # DataObject
|
124
118
|
|
125
|
-
# This is the simplest possible implementation of the {Wx::DataObject} class.
|
126
|
-
# The data object of (a class derived from) this class only supports <b>one format</b>, so the number of virtual functions to be implemented is reduced.
|
127
|
-
# Notice that this is still an abstract base class and cannot be used directly, it must be derived. The objects supporting rendering the data must override {Wx::DataObjectSimple#get_data_size} and {Wx::DataObjectSimple#get_data_here} while the objects which may be set must override {Wx::DataObjectSimple#set_data}. Of course, the objects supporting both operations must override all three methods.
|
128
|
-
# <b>{Wx::Perl} Note:</b> In {Wx::Perl}, you need to derive your data object class from Wx::PlDataObjectSimple.
|
129
|
-
# ===
|
130
|
-
#
|
131
|
-
# Category: Clipboard and Drag & Drop
|
132
|
-
# @see Drag and Drop Overview
|
133
|
-
# @see Drag & Drop Sample
|
134
|
-
# @see Wx::FileDataObject
|
135
|
-
# @see Wx::TextDataObject
|
136
|
-
# @see Wx::BitmapDataObject
|
137
|
-
#
|
138
|
-
#
|
139
119
|
class DataObjectSimple < DataObject
|
140
120
|
|
141
121
|
# Constructor accepts the supported format (none by default) which may also be set later with {Wx::DataObjectSimple#set_format}.
|
@@ -325,7 +305,7 @@ module Wx
|
|
325
305
|
# Constructor, may be used to initialise the text (otherwise {Wx::TextDataObject#set_text} should be used later).
|
326
306
|
# @param text [String]
|
327
307
|
# @return [TextDataObject]
|
328
|
-
def initialize(text=
|
308
|
+
def initialize(text=('')) end
|
329
309
|
|
330
310
|
# Returns the text associated with the data object.
|
331
311
|
# You may wish to override this method when offering data on-demand, but this is not required by wxWidgets' internals. Use this method to get data in text form from the {Wx::Clipboard}.
|
@@ -420,7 +400,7 @@ module Wx
|
|
420
400
|
# If url is empty, {Wx::URLDataObject#set_url} can be used later.
|
421
401
|
# @param url [String]
|
422
402
|
# @return [URLDataObject]
|
423
|
-
def initialize(url=
|
403
|
+
def initialize(url=('')) end
|
424
404
|
|
425
405
|
# Returns the URL stored by this object, as a string.
|
426
406
|
# @return [String]
|
@@ -62,7 +62,7 @@ module Wx
|
|
62
62
|
# @overload initialize()
|
63
63
|
# Default constructor.
|
64
64
|
# @return [DatePickerCtrl]
|
65
|
-
# @overload initialize(parent, id, dt=Wx::
|
65
|
+
# @overload initialize(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY), validator=Wx::DEFAULT_VALIDATOR, name=("datectrl"))
|
66
66
|
# Initializes the object and calls {Wx::DatePickerCtrl#create} with all the parameters.
|
67
67
|
# @param parent [Wx::Window]
|
68
68
|
# @param id [Integer]
|
@@ -88,7 +88,7 @@ module Wx
|
|
88
88
|
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
89
89
|
# @param name [String] Control name.
|
90
90
|
# @return [true,false]
|
91
|
-
def create(parent, id, dt=Wx::
|
91
|
+
def create(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY), validator=Wx::DEFAULT_VALIDATOR, name=("datectrl")) end
|
92
92
|
|
93
93
|
# Returns the currently entered date.
|
94
94
|
# For a control with {Wx::DP_ALLOWNONE} style the returned value may be invalid if no date is entered, otherwise it is always valid.
|
data/lib/wx/doc/gen/dc.rb
CHANGED
@@ -396,7 +396,7 @@ module Wx
|
|
396
396
|
# @return [void]
|
397
397
|
def draw_icon(*args) end
|
398
398
|
|
399
|
-
# @overload draw_label(text, bitmap, rect, alignment=(Wx::ALIGN_LEFT|Wx::ALIGN_TOP), indexAccel=-1, rectBounding=nil)
|
399
|
+
# @overload draw_label(text, bitmap, rect, alignment=(Wx::Alignment::ALIGN_LEFT|Wx::Alignment::ALIGN_TOP), indexAccel=-1, rectBounding=nil)
|
400
400
|
# Draw optional bitmap and the text into the given rectangle and aligns it as specified by alignment parameter; it also will emphasize the character with the given index if it is != -1 and return the bounding rectangle if required.
|
401
401
|
# @param text [String]
|
402
402
|
# @param bitmap [Wx::Bitmap]
|
@@ -405,7 +405,7 @@ module Wx
|
|
405
405
|
# @param indexAccel [Integer]
|
406
406
|
# @param rectBounding [Wx::Rect]
|
407
407
|
# @return [void]
|
408
|
-
# @overload draw_label(text, rect, alignment=(Wx::ALIGN_LEFT|Wx::ALIGN_TOP), indexAccel=-1)
|
408
|
+
# @overload draw_label(text, rect, alignment=(Wx::Alignment::ALIGN_LEFT|Wx::Alignment::ALIGN_TOP), indexAccel=-1)
|
409
409
|
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
410
410
|
# @param text [String]
|
411
411
|
# @param rect [Wx::Rect]
|
@@ -460,7 +460,7 @@ module Wx
|
|
460
460
|
# @param yoffset [Integer]
|
461
461
|
# @param fill_style [PolygonFillMode]
|
462
462
|
# @return [void]
|
463
|
-
def draw_polygon(points, xoffset=0, yoffset=0, fill_style=Wx::ODDEVEN_RULE) end
|
463
|
+
def draw_polygon(points, xoffset=0, yoffset=0, fill_style=Wx::PolygonFillMode::ODDEVEN_RULE) end
|
464
464
|
|
465
465
|
# Draws two or more filled polygons using an array of points, adding the optional offset coordinates.
|
466
466
|
# Notice that for the platforms providing a native implementation of this function (Windows and PostScript-based {Wx::DC} currently), this is more efficient than using {Wx::DC#draw_polygon} in a loop.
|
@@ -473,7 +473,7 @@ module Wx
|
|
473
473
|
# @param yoffset [Integer]
|
474
474
|
# @param fill_style [PolygonFillMode]
|
475
475
|
# @return [void]
|
476
|
-
def draw_poly_polygon(points, xoffset=0, yoffset=0, fill_style=Wx::ODDEVEN_RULE) end
|
476
|
+
def draw_poly_polygon(points, xoffset=0, yoffset=0, fill_style=Wx::PolygonFillMode::ODDEVEN_RULE) end
|
477
477
|
|
478
478
|
# @overload draw_rectangle(x, y, width, height)
|
479
479
|
# Draws a rectangle with the given corner coordinate and size.
|
@@ -598,9 +598,9 @@ module Wx
|
|
598
598
|
# @param destColour [Wx::Colour,String,Symbol]
|
599
599
|
# @param nDirection [Direction]
|
600
600
|
# @return [void]
|
601
|
-
def gradient_fill_linear(rect, initialColour, destColour, nDirection=Wx::RIGHT) end
|
601
|
+
def gradient_fill_linear(rect, initialColour, destColour, nDirection=Wx::Direction::RIGHT) end
|
602
602
|
|
603
|
-
# @overload flood_fill(x, y, colour, style=Wx::FLOOD_SURFACE)
|
603
|
+
# @overload flood_fill(x, y, colour, style=Wx::FloodFillStyle::FLOOD_SURFACE)
|
604
604
|
# Flood fills the device context starting from the given point, using the current brush colour, and using a style:
|
605
605
|
# - {Wx::FloodFillStyle::FLOOD_SURFACE}: The flooding occurs until a colour other than the given colour is encountered.- {Wx::FloodFillStyle::FLOOD_BORDER}: The area to be flooded is bounded by the given colour.
|
606
606
|
#
|
@@ -615,7 +615,7 @@ module Wx
|
|
615
615
|
# @param colour [Wx::Colour,String,Symbol]
|
616
616
|
# @param style [FloodFillStyle]
|
617
617
|
# @return [true,false]
|
618
|
-
# @overload flood_fill(pt, col, style=Wx::FLOOD_SURFACE)
|
618
|
+
# @overload flood_fill(pt, col, style=Wx::FloodFillStyle::FLOOD_SURFACE)
|
619
619
|
# This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
620
620
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
621
621
|
# @param col [Wx::Colour,String,Symbol]
|
@@ -917,7 +917,7 @@ module Wx
|
|
917
917
|
# @param xsrcMask [Integer] Source x position on the mask. If both xsrcMask and ysrcMask are <code>-1</code>, xsrc and ysrc will be assumed for the mask source position. Currently only implemented on Windows.
|
918
918
|
# @param ysrcMask [Integer] Source y position on the mask. If both xsrcMask and ysrcMask are <code>-1</code>, xsrc and ysrc will be assumed for the mask source position. Currently only implemented on Windows.
|
919
919
|
# @return [true,false]
|
920
|
-
def blit(xdest, ydest, width, height, source, xsrc, ysrc, logicalFunc=Wx::COPY, useMask=false, xsrcMask=Wx::DEFAULT_COORD, ysrcMask=Wx::DEFAULT_COORD) end
|
920
|
+
def blit(xdest, ydest, width, height, source, xsrc, ysrc, logicalFunc=Wx::RasterOperationMode::COPY, useMask=false, xsrcMask=Wx::DEFAULT_COORD, ysrcMask=Wx::DEFAULT_COORD) end
|
921
921
|
|
922
922
|
# Copy from a source DC to this DC possibly changing the scale.
|
923
923
|
# Unlike {Wx::DC#blit}, this method allows specifying different source and destination region sizes, meaning that it can stretch or shrink it while copying. The same can be achieved by changing the scale of the source or target DC but calling this method is simpler and can also be more efficient if the platform provides a native implementation of it.
|
@@ -959,7 +959,7 @@ module Wx
|
|
959
959
|
# @param xsrcMask [Integer] Source x position on the mask. If both xsrcMask and ysrcMask are {Wx::DEFAULT_COORD}, xsrc and ysrc will be assumed for the mask source position. Currently only implemented on Windows.
|
960
960
|
# @param ysrcMask [Integer] Source y position on the mask. If both xsrcMask and ysrcMask are {Wx::DEFAULT_COORD}, xsrc and ysrc will be assumed for the mask source position. Currently only implemented on Windows.
|
961
961
|
# @return [true,false]
|
962
|
-
def stretch_blit(xdest, ydest, dstWidth, dstHeight, source, xsrc, ysrc, srcWidth, srcHeight, logicalFunc=Wx::COPY, useMask=false, xsrcMask=Wx::DEFAULT_COORD, ysrcMask=Wx::DEFAULT_COORD) end
|
962
|
+
def stretch_blit(xdest, ydest, dstWidth, dstHeight, source, xsrc, ysrc, srcWidth, srcHeight, logicalFunc=Wx::RasterOperationMode::COPY, useMask=false, xsrcMask=Wx::DEFAULT_COORD, ysrcMask=Wx::DEFAULT_COORD) end
|
963
963
|
|
964
964
|
# Gets the brush used for painting the background.
|
965
965
|
#
|
data/lib/wx/doc/gen/defs.rb
CHANGED
@@ -2794,8 +2794,6 @@ module Wx
|
|
2794
2794
|
# ...
|
2795
2795
|
# wxDELETE(ptr);
|
2796
2796
|
# wxASSERT(!ptr);
|
2797
|
-
#
|
2798
|
-
# Include file: #include <wx/defs.h>
|
2799
2797
|
# @param ptr [T]
|
2800
2798
|
# @return [void]
|
2801
2799
|
def self.delete(ptr) end
|
@@ -2807,8 +2805,6 @@ module Wx
|
|
2807
2805
|
# ...
|
2808
2806
|
# wxDELETEA(array);
|
2809
2807
|
# wxASSERT(!array);
|
2810
|
-
#
|
2811
|
-
# Include file: #include <wx/defs.h>
|
2812
2808
|
# @see delete
|
2813
2809
|
# @param array [T]
|
2814
2810
|
# @return [void]
|
data/lib/wx/doc/gen/dialog.rb
CHANGED
@@ -116,7 +116,7 @@ module Wx
|
|
116
116
|
# @overload initialize()
|
117
117
|
# Default constructor.
|
118
118
|
# @return [Dialog]
|
119
|
-
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::
|
119
|
+
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DialogNameStr)
|
120
120
|
# Constructor.
|
121
121
|
#
|
122
122
|
# @see Wx::Dialog#create
|
@@ -147,7 +147,7 @@ module Wx
|
|
147
147
|
# Centres the dialog box on the display.
|
148
148
|
# @param direction [Integer] May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}.
|
149
149
|
# @return [void]
|
150
|
-
def centre(direction=Wx::BOTH) end
|
150
|
+
def centre(direction=Wx::Orientation::BOTH) end
|
151
151
|
|
152
152
|
# Used for two-step dialog box construction.
|
153
153
|
#
|
@@ -160,7 +160,7 @@ module Wx
|
|
160
160
|
# @param style [Integer]
|
161
161
|
# @param name [String]
|
162
162
|
# @return [true,false]
|
163
|
-
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::
|
163
|
+
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DialogNameStr) end
|
164
164
|
|
165
165
|
# Creates a sizer with standard buttons.
|
166
166
|
# flags is a bit list of the following flags: {Wx::OK}, {Wx::CANCEL}, {Wx::YES}, {Wx::NO}, {Wx::APPLY}, {Wx::CLOSE}, {Wx::HELP}, {Wx::NO_DEFAULT}.
|
@@ -45,15 +45,13 @@ module Wx
|
|
45
45
|
# {
|
46
46
|
# ...
|
47
47
|
# }
|
48
|
-
#
|
49
|
-
# Include file: #include <wx/dirdlg.h>
|
50
48
|
# @param message [String]
|
51
49
|
# @param default_path [String]
|
52
50
|
# @param style [Integer]
|
53
51
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
54
52
|
# @param parent [Wx::Window]
|
55
53
|
# @return [String]
|
56
|
-
def self.dir_selector(message=Wx::DIR_SELECTOR_PROMPT_STR, default_path=
|
54
|
+
def self.dir_selector(message=Wx::DIR_SELECTOR_PROMPT_STR, default_path=(''), style=0, pos=Wx::DEFAULT_POSITION, parent=nil) end
|
57
55
|
|
58
56
|
# This class represents the directory chooser dialog.
|
59
57
|
# === Styles
|
@@ -92,7 +90,7 @@ module Wx
|
|
92
90
|
# @param size [Array(Integer, Integer), Wx::Size] Dialog size. Ignored under Windows.
|
93
91
|
# @param name [String] The dialog name, not used.
|
94
92
|
# @return [DirDialog]
|
95
|
-
def initialize(parent, message=Wx::DIR_SELECTOR_PROMPT_STR, defaultPath=
|
93
|
+
def initialize(parent, message=Wx::DIR_SELECTOR_PROMPT_STR, defaultPath=(''), style=Wx::DD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::DIR_DIALOG_NAME_STR) end
|
96
94
|
|
97
95
|
# Returns the message that will be displayed on the dialog.
|
98
96
|
# @return [String]
|
@@ -49,7 +49,7 @@ module Wx
|
|
49
49
|
|
50
50
|
# @overload initialize()
|
51
51
|
# @return [DirFilterListCtrl]
|
52
|
-
# @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
|
52
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
|
53
53
|
# @param parent [Wx::GenericDirCtrl]
|
54
54
|
# @param id [Integer]
|
55
55
|
# @param pos [Array(Integer, Integer), Wx::Point]
|
@@ -64,7 +64,7 @@ module Wx
|
|
64
64
|
# @param size [Array(Integer, Integer), Wx::Size]
|
65
65
|
# @param style [Integer]
|
66
66
|
# @return [true,false]
|
67
|
-
def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
|
67
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
|
68
68
|
|
69
69
|
# @return [void]
|
70
70
|
def init; end
|
@@ -38,7 +38,7 @@ module Wx
|
|
38
38
|
|
39
39
|
# @overload initialize()
|
40
40
|
# @return [DirPickerCtrl]
|
41
|
-
# @overload initialize(parent, id, path=
|
41
|
+
# @overload initialize(parent, id, path=(''), message=Wx::DIR_SELECTOR_PROMPT_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::DirPickerCtrlNameStr)
|
42
42
|
# Initializes the object and calls {Wx::DirPickerCtrl#create} with all the parameters.
|
43
43
|
# @param parent [Wx::Window]
|
44
44
|
# @param id [Integer]
|
@@ -64,7 +64,7 @@ module Wx
|
|
64
64
|
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
65
65
|
# @param name [String] Control name.
|
66
66
|
# @return [true,false]
|
67
|
-
def create(parent, id, path=
|
67
|
+
def create(parent, id, path=(''), message=Wx::DIR_SELECTOR_PROMPT_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::DirPickerCtrlNameStr) end
|
68
68
|
|
69
69
|
# Returns the absolute path of the currently selected directory as a {Wx::FileName} object.
|
70
70
|
# This function is equivalent to {Wx::DirPickerCtrl#get_path}.
|
data/lib/wx/doc/gen/drag_drop.rb
CHANGED
@@ -6,6 +6,18 @@
|
|
6
6
|
|
7
7
|
module Wx
|
8
8
|
|
9
|
+
# Allow only copying.
|
10
|
+
#
|
11
|
+
Drag_CopyOnly = 0
|
12
|
+
|
13
|
+
# Allow moving too (copying is always allowed).
|
14
|
+
#
|
15
|
+
Drag_AllowMove = 1
|
16
|
+
|
17
|
+
# Allow moving and make it default operation.
|
18
|
+
#
|
19
|
+
Drag_DefaultMove = 3
|
20
|
+
|
9
21
|
# Result returned from a {Wx::DropSource#do_drag_drop} call.
|
10
22
|
#
|
11
23
|
#
|
@@ -103,7 +115,7 @@ module Wx
|
|
103
115
|
# The operation requested by the user, may be {Wx::DragResult::DragCopy}, {Wx::DragResult::DragMove}, {Wx::DragResult::DragLink}, {Wx::DragResult::DragCancel} or {Wx::DragResult::DragNone} if an error occurred.
|
104
116
|
# @param flags [Integer] If {Wx::Drag_AllowMove} is included in the flags, data may be moved and not only copied as is the case for the default {Wx::Drag_CopyOnly}. If {Wx::Drag_DefaultMove} is specified (which includes the previous flag), moving is not only possible but becomes the default operation.
|
105
117
|
# @return [DragResult]
|
106
|
-
def do_drag_drop(flags=Wx::
|
118
|
+
def do_drag_drop(flags=Wx::Drag_CopyOnly) end
|
107
119
|
|
108
120
|
# Returns the {Wx::DataObject} object that has been assigned previously.
|
109
121
|
# @return [Wx::DataObject]
|
@@ -45,7 +45,7 @@ module Wx
|
|
45
45
|
# @overload initialize()
|
46
46
|
# Default ctor.
|
47
47
|
# @return [EditableListBox]
|
48
|
-
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::
|
48
|
+
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::EditableListBoxNameStr)
|
49
49
|
# Constructor, creating and showing a list box.
|
50
50
|
#
|
51
51
|
# @see Wx::EditableListBox#create
|
@@ -69,7 +69,7 @@ module Wx
|
|
69
69
|
# @param style [Integer]
|
70
70
|
# @param name [String]
|
71
71
|
# @return [true,false]
|
72
|
-
def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::
|
72
|
+
def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::EditableListBoxNameStr) end
|
73
73
|
|
74
74
|
# Replaces current contents with given strings.
|
75
75
|
# @param strings [Array<String>]
|
data/lib/wx/doc/gen/event.rb
CHANGED
@@ -689,7 +689,6 @@ module Wx
|
|
689
689
|
|
690
690
|
# In a GUI application, this function posts event to the specified dest object using {Wx::EvtHandler#add_pending_event}.
|
691
691
|
# Otherwise, it dispatches event immediately using {Wx::EvtHandler#process_event}. See the respective documentation for details (and caveats). Because of limitation of {Wx::EvtHandler#add_pending_event} this function is not thread-safe for event objects having {Wx::String} fields, use {queue_event} instead.
|
692
|
-
# Include file: #include <wx/event.h>
|
693
692
|
# @param dest [Wx::EvtHandler]
|
694
693
|
# @param event [Wx::Event]
|
695
694
|
# @return [void]
|