wxruby3 0.9.0.pre.beta.11-x64-mingw-ucrt → 0.9.0.pre.beta.14-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/accessors.rb +8 -2
- 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/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 +14 -0
- data/lib/wx/core/real_point.rb +15 -1
- data/lib/wx/core/rect.rb +42 -7
- data/lib/wx/core/region_iterator.rb +37 -0
- data/lib/wx/core/size.rb +20 -0
- 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 +1 -2
- 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 +122 -1
- 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 -6
- 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/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 +1 -0
- data/lib/wx/doc/window.rb +18 -0
- data/lib/wx/global_const.rb +24 -18
- 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/test_art.rb +91 -0
- data/tests/test_clipboard.rb +35 -0
- data/tests/test_dc.rb +70 -0
- data/tests/test_events.rb +12 -0
- data/tests/test_geometry.rb +13 -0
- metadata +48 -5
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]
|
@@ -18,32 +18,32 @@ class Wx::EvtHandler
|
|
18
18
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
19
19
|
def evt_scroll(meth = nil, &block) end
|
20
20
|
|
21
|
-
# Process {Wx::EVT_SCROLL_TOP} scroll
|
21
|
+
# Process {Wx::EVT_SCROLL_TOP} scroll to top or leftmost (minimum) position events.
|
22
22
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
23
23
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
24
24
|
def evt_scroll_top(meth = nil, &block) end
|
25
25
|
|
26
|
-
# Process {Wx::EVT_SCROLL_BOTTOM} scroll
|
26
|
+
# Process {Wx::EVT_SCROLL_BOTTOM} scroll to bottom or rightmost (maximum) position events.
|
27
27
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
28
28
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
29
29
|
def evt_scroll_bottom(meth = nil, &block) end
|
30
30
|
|
31
|
-
# Process {Wx::EVT_SCROLL_LINEUP} line up events.
|
31
|
+
# Process {Wx::EVT_SCROLL_LINEUP} line up or left events.
|
32
32
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
33
33
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
34
34
|
def evt_scroll_lineup(meth = nil, &block) end
|
35
35
|
|
36
|
-
# Process {Wx::EVT_SCROLL_LINEDOWN} line down events.
|
36
|
+
# Process {Wx::EVT_SCROLL_LINEDOWN} line down or right events.
|
37
37
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
38
38
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
39
39
|
def evt_scroll_linedown(meth = nil, &block) end
|
40
40
|
|
41
|
-
# Process {Wx::EVT_SCROLL_PAGEUP} page up events.
|
41
|
+
# Process {Wx::EVT_SCROLL_PAGEUP} page up or left events.
|
42
42
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
43
43
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
44
44
|
def evt_scroll_pageup(meth = nil, &block) end
|
45
45
|
|
46
|
-
# Process {Wx::EVT_SCROLL_PAGEDOWN} page down events.
|
46
|
+
# Process {Wx::EVT_SCROLL_PAGEDOWN} page down or right events.
|
47
47
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
48
48
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
49
49
|
def evt_scroll_pagedown(meth = nil, &block) end
|
@@ -69,37 +69,37 @@ class Wx::EvtHandler
|
|
69
69
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
70
70
|
def evt_command_scroll(id, meth = nil, &block) end
|
71
71
|
|
72
|
-
# Process {Wx::EVT_SCROLL_TOP} scroll
|
72
|
+
# Process {Wx::EVT_SCROLL_TOP} scroll to top or leftmost (minimum) position events.
|
73
73
|
# @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
|
74
74
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
75
75
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
76
76
|
def evt_command_scroll_top(id, meth = nil, &block) end
|
77
77
|
|
78
|
-
# Process {Wx::EVT_SCROLL_BOTTOM} scroll
|
78
|
+
# Process {Wx::EVT_SCROLL_BOTTOM} scroll to bottom or rightmost (maximum) position events.
|
79
79
|
# @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
|
80
80
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
81
81
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
82
82
|
def evt_command_scroll_bottom(id, meth = nil, &block) end
|
83
83
|
|
84
|
-
# Process {Wx::EVT_SCROLL_LINEUP} line up events.
|
84
|
+
# Process {Wx::EVT_SCROLL_LINEUP} line up or left events.
|
85
85
|
# @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
|
86
86
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
87
87
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
88
88
|
def evt_command_scroll_lineup(id, meth = nil, &block) end
|
89
89
|
|
90
|
-
# Process {Wx::EVT_SCROLL_LINEDOWN} line down events.
|
90
|
+
# Process {Wx::EVT_SCROLL_LINEDOWN} line down or right events.
|
91
91
|
# @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
|
92
92
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
93
93
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
94
94
|
def evt_command_scroll_linedown(id, meth = nil, &block) end
|
95
95
|
|
96
|
-
# Process {Wx::EVT_SCROLL_PAGEUP} page up events.
|
96
|
+
# Process {Wx::EVT_SCROLL_PAGEUP} page up or left events.
|
97
97
|
# @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
|
98
98
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
99
99
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
100
100
|
def evt_command_scroll_pageup(id, meth = nil, &block) end
|
101
101
|
|
102
|
-
# Process {Wx::EVT_SCROLL_PAGEDOWN} page down events.
|
102
|
+
# Process {Wx::EVT_SCROLL_PAGEDOWN} page down or right events.
|
103
103
|
# @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
|
104
104
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
105
105
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
@@ -111,15 +111,17 @@ class Wx::EvtHandler
|
|
111
111
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
112
112
|
def evt_command_scroll_thumbtrack(id, meth = nil, &block) end
|
113
113
|
|
114
|
-
#
|
114
|
+
# Processes a {Wx::EVT_COMMAND_SCROLL_THUMBRELEASE} event.
|
115
|
+
# @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
|
115
116
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
116
117
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
117
|
-
def evt_command_scroll_thumbrelease(meth = nil, &block) end
|
118
|
+
def evt_command_scroll_thumbrelease(id, meth = nil, &block) end
|
118
119
|
|
119
|
-
#
|
120
|
+
# Processes a {Wx::EVT_COMMAND_SCROLL_CHANGED} event.
|
121
|
+
# @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
|
120
122
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
121
123
|
# @yieldparam [Wx::ScrollEvent] event the event to handle
|
122
|
-
def evt_command_scroll_changed(meth = nil, &block) end
|
124
|
+
def evt_command_scroll_changed(id, meth = nil, &block) end
|
123
125
|
|
124
126
|
# Process all scroll events.
|
125
127
|
# @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
|
data/lib/wx/doc/gen/events.rb
CHANGED
@@ -570,6 +570,91 @@ module Wx
|
|
570
570
|
def set_state(state) end
|
571
571
|
alias_method :state=, :set_state
|
572
572
|
|
573
|
+
# Return the bit mask of all pressed modifier keys.
|
574
|
+
# The return value is a combination of {Wx::KeyModifier::MOD_ALT}, {Wx::KeyModifier::MOD_CONTROL}, {Wx::KeyModifier::MOD_SHIFT} and {Wx::KeyModifier::MOD_META} bit masks. Additionally, {Wx::KeyModifier::MOD_NONE} is defined as 0, i.e. corresponds to no modifiers (see {Wx::MouseEvent#has_any_modifiers}) and {Wx::KeyModifier::MOD_CMD} is either {Wx::KeyModifier::MOD_CONTROL} (MSW and Unix) or {Wx::KeyModifier::MOD_META} (Mac), see {Wx::MouseEvent#cmd_down}. See {Wx::KeyModifier} for the full list of modifiers.
|
575
|
+
# Notice that this function is easier to use correctly than, for example, {Wx::MouseEvent#control_down} because when using the latter you also have to remember to test that none of the other modifiers is pressed:
|
576
|
+
#
|
577
|
+
# if ( ControlDown() && !AltDown() && !ShiftDown() && !MetaDown() )
|
578
|
+
# ... handle Ctrl-XXX ...
|
579
|
+
#
|
580
|
+
# and forgetting to do it can result in serious program bugs (e.g. program not working with European keyboard layout where AltGr key which is seen by the program as combination of CTRL and ALT is used). On the other hand, you can simply write:
|
581
|
+
#
|
582
|
+
# if ( GetModifiers() == wxMOD_CONTROL )
|
583
|
+
# ... handle Ctrl-XXX ...
|
584
|
+
#
|
585
|
+
# with this function.
|
586
|
+
# @return [Integer]
|
587
|
+
def get_modifiers; end
|
588
|
+
alias_method :modifiers, :get_modifiers
|
589
|
+
|
590
|
+
# Returns true if any modifiers at all are pressed.
|
591
|
+
# This is equivalent to <code>Wx::MouseEvent#get_modifiers</code> <code>!=</code> {Wx::KeyModifier::MOD_NONE}.
|
592
|
+
# Notice that this is different from {Wx::MouseEvent#has_modifiers} method which doesn't take e.g. Shift modifier into account. This method is most suitable for mouse events when any modifier, including Shift, can change the interpretation of the event.
|
593
|
+
# @return [true,false]
|
594
|
+
def has_any_modifiers; end
|
595
|
+
alias_method :has_any_modifiers?, :has_any_modifiers
|
596
|
+
|
597
|
+
# Returns true if Control or Alt are pressed.
|
598
|
+
# Checks if Control, Alt or, under macOS only, Command key are pressed (notice that the real Control key is still taken into account under OS X too).
|
599
|
+
# This method returns false if only Shift is pressed for compatibility reasons and also because pressing Shift usually doesn't change the interpretation of key events, see {Wx::MouseEvent#has_any_modifiers} if you want to take Shift into account as well.
|
600
|
+
# @return [true,false]
|
601
|
+
def has_modifiers; end
|
602
|
+
alias_method :has_modifiers?, :has_modifiers
|
603
|
+
|
604
|
+
# Returns true if the Control key or Apple/Command key under macOS is pressed.
|
605
|
+
# This function doesn't distinguish between right and left control keys.
|
606
|
+
# Notice that {Wx::MouseEvent#get_modifiers} should usually be used instead of this one.
|
607
|
+
# @return [true,false]
|
608
|
+
def control_down; end
|
609
|
+
|
610
|
+
# Returns true if the Control key (also under macOS).
|
611
|
+
# This function doesn't distinguish between right and left control keys.
|
612
|
+
# Notice that {Wx::MouseEvent#get_modifiers} should usually be used instead of this one.
|
613
|
+
# @return [true,false]
|
614
|
+
def raw_control_down; end
|
615
|
+
|
616
|
+
# Returns true if the Shift key is pressed.
|
617
|
+
# This function doesn't distinguish between right and left shift keys.
|
618
|
+
# Notice that {Wx::MouseEvent#get_modifiers} should usually be used instead of this one.
|
619
|
+
# @return [true,false]
|
620
|
+
def shift_down; end
|
621
|
+
|
622
|
+
# Returns true if the Alt key is pressed.
|
623
|
+
# Notice that {Wx::MouseEvent#get_modifiers} should usually be used instead of this one.
|
624
|
+
# @return [true,false]
|
625
|
+
def alt_down; end
|
626
|
+
|
627
|
+
# Returns true if the key used for command accelerators is pressed.
|
628
|
+
# Same as {Wx::MouseEvent#control_down}. Deprecated.
|
629
|
+
# Notice that {Wx::MouseEvent#get_modifiers} should usually be used instead of this one.
|
630
|
+
# @return [true,false]
|
631
|
+
def cmd_down; end
|
632
|
+
|
633
|
+
# @param down [true,false]
|
634
|
+
# @return [void]
|
635
|
+
def set_control_down(down) end
|
636
|
+
alias_method :control_down=, :set_control_down
|
637
|
+
|
638
|
+
# @param down [true,false]
|
639
|
+
# @return [void]
|
640
|
+
def set_raw_control_down(down) end
|
641
|
+
alias_method :raw_control_down=, :set_raw_control_down
|
642
|
+
|
643
|
+
# @param down [true,false]
|
644
|
+
# @return [void]
|
645
|
+
def set_shift_down(down) end
|
646
|
+
alias_method :shift_down=, :set_shift_down
|
647
|
+
|
648
|
+
# @param down [true,false]
|
649
|
+
# @return [void]
|
650
|
+
def set_alt_down(down) end
|
651
|
+
alias_method :alt_down=, :set_alt_down
|
652
|
+
|
653
|
+
# @param down [true,false]
|
654
|
+
# @return [void]
|
655
|
+
def set_meta_down(down) end
|
656
|
+
alias_method :meta_down=, :set_meta_down
|
657
|
+
|
573
658
|
end # MouseEvent
|
574
659
|
|
575
660
|
# A {Wx::SetCursorEvent} is generated from {Wx::Window} when the mouse cursor is about to be set as a result of mouse motion.
|
@@ -1364,7 +1449,7 @@ module Wx
|
|
1364
1449
|
# @param id [Integer]
|
1365
1450
|
# @param ActivationReason [Reason]
|
1366
1451
|
# @return [ActivateEvent]
|
1367
|
-
def initialize(eventType=Wx::EVT_NULL, active=true, id=0, ActivationReason=Wx::
|
1452
|
+
def initialize(eventType=Wx::EVT_NULL, active=true, id=0, ActivationReason=Wx::ActivateEvent::Reason::Reason_Unknown) end
|
1368
1453
|
|
1369
1454
|
# Returns true if the application or window is being activated, false otherwise.
|
1370
1455
|
# @return [true,false]
|
@@ -2364,7 +2449,7 @@ module Wx
|
|
2364
2449
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
2365
2450
|
# @param origin [Wx::HelpEvent::Origin]
|
2366
2451
|
# @return [HelpEvent]
|
2367
|
-
def initialize(type=Wx::EVT_NULL, winid=0, pt=Wx::DEFAULT_POSITION, origin=Wx::
|
2452
|
+
def initialize(type=Wx::EVT_NULL, winid=0, pt=Wx::DEFAULT_POSITION, origin=Wx::HelpEvent::Origin::Origin_Unknown) end
|
2368
2453
|
|
2369
2454
|
# Returns the origin of the help event which is one of the {Wx::HelpEvent::Origin} values.
|
2370
2455
|
# The application may handle events generated using the keyboard or mouse differently, e.g. by using {get_mouse_position} for the mouse events.
|
@@ -28,7 +28,7 @@ module Wx
|
|
28
28
|
# @param viewer [String] The command to call a browser/html viewer.
|
29
29
|
# @param flags [Integer] Set this to {Wx::HELP_NETSCAPE} if the browser is some variant of Netscape.
|
30
30
|
# @return [void]
|
31
|
-
def set_viewer(viewer=
|
31
|
+
def set_viewer(viewer=(''), flags=Wx::HELP_NETSCAPE) end
|
32
32
|
alias_method :viewer=, :set_viewer
|
33
33
|
|
34
34
|
# This must be called to tell the controller where to find the documentation.
|
@@ -49,7 +49,7 @@ module Wx
|
|
49
49
|
# @param k [String] string to search for, empty string will list all entries
|
50
50
|
# @param mode [HelpSearchMode] optional parameter allows the search the index ({Wx::HelpSearchMode::HELP_SEARCH_INDEX}) but this currently only supported by the {Wx::HTML::HtmlHelpController}.
|
51
51
|
# @return [true,false]
|
52
|
-
def keyword_search(k, mode=Wx::HELP_SEARCH_ALL) end
|
52
|
+
def keyword_search(k, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
|
53
53
|
|
54
54
|
# Does nothing.
|
55
55
|
# @return [void]
|
@@ -157,7 +157,7 @@ module Wx
|
|
157
157
|
# @param size [Array(Integer, Integer), Wx::Size] Dialog size. Not implemented.
|
158
158
|
# @param name [String] Dialog name. Not implemented.
|
159
159
|
# @return [FileDialog]
|
160
|
-
def initialize(parent, message=Wx::
|
160
|
+
def initialize(parent, message=Wx::FileSelectorPromptStr, defaultDir=(''), defaultFile=(''), wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, style=Wx::FD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::FileDialogNameStr) end
|
161
161
|
|
162
162
|
# Returns the path of the file currently selected in dialog.
|
163
163
|
# Notice that this file is not necessarily going to be accepted by the user, so calling this function mostly makes sense from an update UI event handler of a custom file dialog extra control to update its state depending on the currently selected file.
|
@@ -41,7 +41,7 @@ module Wx
|
|
41
41
|
|
42
42
|
# @overload initialize()
|
43
43
|
# @return [FilePickerCtrl]
|
44
|
-
# @overload initialize(parent, id, path=
|
44
|
+
# @overload initialize(parent, id, path=(''), message=Wx::FileSelectorPromptStr, wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FLP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FilePickerCtrlNameStr)
|
45
45
|
# Initializes the object and calls {Wx::FilePickerCtrl#create} with all the parameters.
|
46
46
|
# @param parent [Wx::Window]
|
47
47
|
# @param id [Integer]
|
@@ -69,7 +69,7 @@ module Wx
|
|
69
69
|
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
70
70
|
# @param name [String] Control name.
|
71
71
|
# @return [true,false]
|
72
|
-
def create(parent, id, path=
|
72
|
+
def create(parent, id, path=(''), message=Wx::FileSelectorPromptStr, wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FLP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FilePickerCtrlNameStr) end
|
73
73
|
|
74
74
|
# Similar to {Wx::FilePickerCtrl#get_path} but returns the path of the currently selected file as a {Wx::FileName} object.
|
75
75
|
# @return [Wx::FileName]
|
data/lib/wx/doc/gen/font.rb
CHANGED
@@ -1019,7 +1019,7 @@ module Wx
|
|
1019
1019
|
def set_numeric_weight(weight) end
|
1020
1020
|
alias_method :numeric_weight=, :set_numeric_weight
|
1021
1021
|
|
1022
|
-
# @overload self.create(pointSize, family, style, weight, underline=false, faceName=
|
1022
|
+
# @overload self.create(pointSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
1023
1023
|
# This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
|
1024
1024
|
# Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
|
1025
1025
|
# @param pointSize [Integer]
|
@@ -1030,7 +1030,7 @@ module Wx
|
|
1030
1030
|
# @param faceName [String]
|
1031
1031
|
# @param encoding [FontEncoding]
|
1032
1032
|
# @return [Wx::Font]
|
1033
|
-
# @overload self.create(pointSize, family, flags=Wx::FONTFLAG_DEFAULT, faceName=
|
1033
|
+
# @overload self.create(pointSize, family, flags=Wx::FontFlag::FONTFLAG_DEFAULT, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
1034
1034
|
# This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
|
1035
1035
|
# Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
|
1036
1036
|
# @param pointSize [Integer]
|
@@ -1039,7 +1039,7 @@ module Wx
|
|
1039
1039
|
# @param faceName [String]
|
1040
1040
|
# @param encoding [FontEncoding]
|
1041
1041
|
# @return [Wx::Font]
|
1042
|
-
# @overload self.create(pixelSize, family, style, weight, underline=false, faceName=
|
1042
|
+
# @overload self.create(pixelSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
1043
1043
|
# This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
|
1044
1044
|
# Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
|
1045
1045
|
# @param pixelSize [Array(Integer, Integer), Wx::Size]
|
@@ -1050,7 +1050,7 @@ module Wx
|
|
1050
1050
|
# @param faceName [String]
|
1051
1051
|
# @param encoding [FontEncoding]
|
1052
1052
|
# @return [Wx::Font]
|
1053
|
-
# @overload self.create(pixelSize, family, flags=Wx::FONTFLAG_DEFAULT, faceName=
|
1053
|
+
# @overload self.create(pixelSize, family, flags=Wx::FontFlag::FONTFLAG_DEFAULT, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
1054
1054
|
# This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
|
1055
1055
|
# Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
|
1056
1056
|
# @param pixelSize [Array(Integer, Integer), Wx::Size]
|
@@ -1086,7 +1086,7 @@ module Wx
|
|
1086
1086
|
# wxFont font(wxFontInfo(10).Bold().Underlined());
|
1087
1087
|
# @param fontInfo [Wx::FontInfo]
|
1088
1088
|
# @return [Font]
|
1089
|
-
# @overload initialize(pointSize, family, style, weight, underline=false, faceName=
|
1089
|
+
# @overload initialize(pointSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
1090
1090
|
# Creates a font object with the specified attributes and size in points.
|
1091
1091
|
# Notice that the use of this constructor is often more verbose and less readable than using wxFont(const wxFontInfo& font), e.g. the example in that constructor documentation would need to be written as:
|
1092
1092
|
#
|
@@ -1102,7 +1102,7 @@ module Wx
|
|
1102
1102
|
# @param faceName [String] An optional string specifying the face name to be used. If it is an empty string, a default face name will be chosen based on the family.
|
1103
1103
|
# @param encoding [FontEncoding] An encoding which may be one of the enumeration values of {Wx::FontEncoding}. If the specified encoding isn't available, no font is created (see also Font Encodings).
|
1104
1104
|
# @return [Font]
|
1105
|
-
# @overload initialize(pixelSize, family, style, weight, underline=false, faceName=
|
1105
|
+
# @overload initialize(pixelSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
|
1106
1106
|
# Creates a font object with the specified attributes and size in pixels.
|
1107
1107
|
# Notice that the use of this constructor is often more verbose and less readable than the use of constructor from {Wx::FontInfo}, consider using that constructor instead.
|
1108
1108
|
#
|
@@ -7,12 +7,11 @@
|
|
7
7
|
module Wx
|
8
8
|
|
9
9
|
# Shows the font selection dialog and returns the font selected by user or invalid font (use {Wx::Font#is_ok} to test whether a font is valid) if the dialog was cancelled.
|
10
|
-
# Include file: #include <wx/fontdlg.h>
|
11
10
|
# @param parent [Wx::Window] The parent window for the font selection dialog.
|
12
11
|
# @param fontInit [Wx::Font,Wx::FontInfo] If given, this will be the font initially selected in the dialog.
|
13
12
|
# @param caption [String] If given, this will be used for the dialog caption.
|
14
13
|
# @return [Wx::Font]
|
15
|
-
def self.get_font_from_user(parent, fontInit, caption=
|
14
|
+
def self.get_font_from_user(parent, fontInit, caption=('')) end
|
16
15
|
|
17
16
|
# This class represents the font chooser dialog.
|
18
17
|
# ===
|
@@ -38,7 +38,7 @@ module Wx
|
|
38
38
|
|
39
39
|
# @overload initialize()
|
40
40
|
# @return [FontPickerCtrl]
|
41
|
-
# @overload initialize(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
41
|
+
# @overload initialize(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FontPickerCtrlNameStr)
|
42
42
|
# Initializes the object and calls {Wx::FontPickerCtrl#create} with all the parameters.
|
43
43
|
# @param parent [Wx::Window]
|
44
44
|
# @param id [Integer]
|
@@ -62,7 +62,7 @@ module Wx
|
|
62
62
|
# @param validator [Wx::Validator] Validator which can be used for additional data checks.
|
63
63
|
# @param name [String] Control name.
|
64
64
|
# @return [true,false]
|
65
|
-
def create(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
65
|
+
def create(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FontPickerCtrlNameStr) end
|
66
66
|
|
67
67
|
# Returns the maximum point size value allowed for the user-chosen font.
|
68
68
|
# @return [Integer]
|
data/lib/wx/doc/gen/frame.rb
CHANGED
@@ -86,7 +86,7 @@ module Wx
|
|
86
86
|
# @overload initialize()
|
87
87
|
# Default constructor.
|
88
88
|
# @return [Frame]
|
89
|
-
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::
|
89
|
+
# @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
|
90
90
|
# Constructor, creating the window.
|
91
91
|
# For Motif, MWM (the Motif Window Manager) should be running for any window styles to work (otherwise all styles take effect).
|
92
92
|
# @see Wx::Frame#create
|
@@ -103,7 +103,7 @@ module Wx
|
|
103
103
|
# Centres the frame on the display.
|
104
104
|
# @param direction [Integer] The parameter may be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}.
|
105
105
|
# @return [void]
|
106
|
-
def centre(direction=Wx::BOTH) end
|
106
|
+
def centre(direction=Wx::Orientation::BOTH) end
|
107
107
|
|
108
108
|
# Used in two-step frame construction.
|
109
109
|
# See {Wx::Frame#frame} for further details.
|
@@ -115,7 +115,7 @@ module Wx
|
|
115
115
|
# @param style [Integer]
|
116
116
|
# @param name [String]
|
117
117
|
# @return [true,false]
|
118
|
-
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::
|
118
|
+
def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr) end
|
119
119
|
|
120
120
|
# Creates a status bar at the bottom of the frame.
|
121
121
|
# A pointer to the status bar if it was created successfully, NULL otherwise.
|
@@ -129,7 +129,7 @@ module Wx
|
|
129
129
|
# @param id [Integer] The status bar window identifier. If -1, an identifier will be chosen by wxWidgets.
|
130
130
|
# @param name [String] The status bar window name.
|
131
131
|
# @return [Wx::StatusBar]
|
132
|
-
def create_status_bar(number=1, style=Wx::STB_DEFAULT_STYLE, id=0, name=Wx::
|
132
|
+
def create_status_bar(number=1, style=Wx::STB_DEFAULT_STYLE, id=0, name=Wx::StatusBarNameStr) end
|
133
133
|
|
134
134
|
# Creates a toolbar at the top or left of the frame.
|
135
135
|
# A pointer to the toolbar if it was created successfully, NULL otherwise.
|
@@ -143,7 +143,7 @@ module Wx
|
|
143
143
|
# @param id [Integer] The toolbar window identifier. If -1, an identifier will be chosen by wxWidgets.
|
144
144
|
# @param name [String] The toolbar window name.
|
145
145
|
# @return [Wx::ToolBar]
|
146
|
-
def create_tool_bar(style=Wx::TB_DEFAULT_STYLE, id=Wx::ID_ANY, name=Wx::
|
146
|
+
def create_tool_bar(style=Wx::TB_DEFAULT_STYLE, id=Wx::StandardID::ID_ANY, name=Wx::ToolBarNameStr) end
|
147
147
|
|
148
148
|
# Method used to show help string of the selected menu toolbar item.
|
149
149
|
# This method is called by the default {Wx::EVT_MENU_HIGHLIGHT} event handler and also by {Wx::ToolBar} to show the optional help string associated with the selected menu or toolbar item. It can be overridden if the default behaviour of showing this string in the frame status bar is not appropriate.
|
data/lib/wx/doc/gen/fs_file.rb
CHANGED
@@ -209,7 +209,7 @@ module Wx
|
|
209
209
|
# @param pos [Wx::FileOffset] Offset to seek to.
|
210
210
|
# @param mode [Wx::SeekMode] One of {Wx::FromStart}, {Wx::FromEnd}, {Wx::FromCurrent}.
|
211
211
|
# @return [Wx::FileOffset]
|
212
|
-
def seek_i(pos, mode=Wx::
|
212
|
+
def seek_i(pos, mode=Wx::FromStart) end
|
213
213
|
|
214
214
|
# Returns the current stream position or {Wx::InvalidOffset} if it's not available (e.g.
|
215
215
|
# socket streams do not have a size nor a current stream position).
|
@@ -257,7 +257,7 @@ module Wx
|
|
257
257
|
# @param pos [Wx::FileOffset] Offset to seek to.
|
258
258
|
# @param mode [Wx::SeekMode] One of {Wx::FromStart}, {Wx::FromEnd}, {Wx::FromCurrent}.
|
259
259
|
# @return [Wx::FileOffset]
|
260
|
-
def seek_o(pos, mode=Wx::
|
260
|
+
def seek_o(pos, mode=Wx::FromStart) end
|
261
261
|
|
262
262
|
# Returns the current stream position.
|
263
263
|
# @return [Wx::FileOffset]
|
data/lib/wx/doc/gen/gauge.rb
CHANGED
@@ -51,7 +51,7 @@ module Wx
|
|
51
51
|
# @overload initialize()
|
52
52
|
# Default constructor.
|
53
53
|
# @return [Gauge]
|
54
|
-
# @overload initialize(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
54
|
+
# @overload initialize(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::GaugeNameStr)
|
55
55
|
# Constructor, creating and showing a gauge.
|
56
56
|
#
|
57
57
|
# @see Wx::Gauge#create
|
@@ -77,7 +77,7 @@ module Wx
|
|
77
77
|
# @param validator [Wx::Validator]
|
78
78
|
# @param name [String]
|
79
79
|
# @return [true,false]
|
80
|
-
def create(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
80
|
+
def create(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::GaugeNameStr) end
|
81
81
|
|
82
82
|
# Returns the maximum position of the gauge.
|
83
83
|
#
|
@@ -301,22 +301,16 @@ module Wx
|
|
301
301
|
|
302
302
|
# Returns true if the display is colour, false otherwise.
|
303
303
|
# Use of this function is not recommended in the new code as it only works for the primary display. Use Wx::Display#get_depth to retrieve the depth of the appropriate display and compare it with 1 instead.
|
304
|
-
#
|
305
|
-
# Include file: #include <wx/gdicmn.h>
|
306
304
|
# @return [true,false]
|
307
305
|
def self.colour_display; end
|
308
306
|
|
309
307
|
# Returns the depth of the display (a value of 1 denotes a monochrome display).
|
310
308
|
# Use of this function is not recommended in the new code as it only works for the primary display. Use Wx::Display#get_depth to retrieve the depth of the appropriate display instead.
|
311
|
-
#
|
312
|
-
# Include file: #include <wx/gdicmn.h>
|
313
309
|
# @return [Integer]
|
314
310
|
def self.display_depth; end
|
315
311
|
|
316
312
|
# Globally sets the cursor; only has an effect on Windows, Mac and GTK+.
|
317
313
|
# You should call this function with {Wx::NULL_CURSOR} to restore the system cursor.
|
318
|
-
#
|
319
|
-
# Include file: #include <wx/gdicmn.h>
|
320
314
|
# @see Wx::Cursor
|
321
315
|
# @see Wx::Window#set_cursor
|
322
316
|
# @param cursor [Wx::Cursor]
|
@@ -325,8 +319,6 @@ module Wx
|
|
325
319
|
|
326
320
|
# Returns the dimensions of the work area on the display.
|
327
321
|
# On Windows this means the area not covered by the taskbar, etc. Other platforms are currently defaulting to the whole display until a way is found to provide this info for all window managers, etc.
|
328
|
-
#
|
329
|
-
# Include file: #include <wx/gdicmn.h>
|
330
322
|
# @see Wx::Display
|
331
323
|
# @return [Wx::Rect]
|
332
324
|
def self.get_client_display_rect; end
|
@@ -334,22 +326,18 @@ module Wx
|
|
334
326
|
# Returns the display resolution in pixels per inch.
|
335
327
|
# The x component of the returned {Wx::Size} object contains the horizontal resolution and the y one the vertical resolution.
|
336
328
|
# Use of this function is not recommended in the new code as it only works for the primary display. Use Wx::Display#get_ppi to retrieve the resolution of the appropriate display instead.
|
337
|
-
#
|
338
|
-
# Include file: #include <wx/gdicmn.h>
|
339
329
|
# @see Wx::Display
|
340
330
|
# @return [Wx::Size]
|
341
331
|
def self.get_display_ppi; end
|
342
332
|
|
343
333
|
# Returns the display size in pixels.
|
344
334
|
# Use of this function is not recommended in the new code as it only works for the primary display. Use Wx::Display#get_geometry to retrieve the size of the appropriate display instead.
|
345
|
-
#
|
346
|
-
# Include file: #include <wx/gdicmn.h>
|
347
335
|
# @see Wx::Display
|
348
336
|
# @return [Wx::Size]
|
349
337
|
def self.get_display_size; end
|
350
338
|
|
351
339
|
# Returns the display size in millimeters.
|
352
|
-
#
|
340
|
+
#
|
353
341
|
# @see Wx::Display
|
354
342
|
# @return [Wx::Size]
|
355
343
|
def self.get_display_size_mm; end
|
@@ -609,15 +597,21 @@ module Wx
|
|
609
597
|
# @param r [Wx::Rect]
|
610
598
|
# @param dir [Integer]
|
611
599
|
# @return [Wx::Rect]
|
612
|
-
def centre_in(r, dir=Wx::BOTH) end
|
600
|
+
def centre_in(r, dir=Wx::Orientation::BOTH) end
|
613
601
|
|
614
602
|
# Returns the rectangle having the same size as this one but centered relatively to the given rectangle r.
|
615
603
|
# By default, rectangle is centred in both directions but if dir includes only {Wx::Orientation::VERTICAL} or only {Wx::Orientation::HORIZONTAL}, then it is only centered in this direction while the other component of its position remains unchanged.
|
616
604
|
# @param r [Wx::Rect]
|
617
605
|
# @param dir [Integer]
|
618
606
|
# @return [Wx::Rect]
|
619
|
-
def center_in(r, dir=Wx::BOTH) end
|
607
|
+
def center_in(r, dir=Wx::Orientation::BOTH) end
|
620
608
|
|
609
|
+
# @overload deflate(dx, dy)
|
610
|
+
# Decrease the rectangle size.
|
611
|
+
# This method is the opposite from {Wx::Rect#inflate}: Deflate(a, b) is equivalent to Inflate(-a, -b). Please refer to {Wx::Rect#inflate} for full description.
|
612
|
+
# @param dx [Integer]
|
613
|
+
# @param dy [Integer]
|
614
|
+
# @return [Wx::Rect]
|
621
615
|
# @overload deflate(diff)
|
622
616
|
# Decrease the rectangle size.
|
623
617
|
# This method is the opposite from {Wx::Rect#inflate}: Deflate(a, b) is equivalent to Inflate(-a, -b). Please refer to {Wx::Rect#inflate} for full description.
|
@@ -630,6 +624,15 @@ module Wx
|
|
630
624
|
# @return [Wx::Rect]
|
631
625
|
def deflate(*args) end
|
632
626
|
|
627
|
+
# @overload inflate(dx, dy)
|
628
|
+
# Increases the size of the rectangle.
|
629
|
+
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
630
|
+
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
631
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
632
|
+
# @see Wx::Rect#deflate
|
633
|
+
# @param dx [Integer]
|
634
|
+
# @param dy [Integer]
|
635
|
+
# @return [Wx::Rect]
|
633
636
|
# @overload inflate(diff)
|
634
637
|
# Increases the size of the rectangle.
|
635
638
|
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
@@ -648,12 +651,6 @@ module Wx
|
|
648
651
|
# @return [Wx::Rect]
|
649
652
|
def inflate(*args) end
|
650
653
|
|
651
|
-
# Moves the rectangle by the specified offset.
|
652
|
-
# If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
|
653
|
-
# @param pt [Array(Integer, Integer), Wx::Point]
|
654
|
-
# @return [void]
|
655
|
-
def offset(pt) end
|
656
|
-
|
657
654
|
# Modifies the rectangle to contain the bounding box of this rectangle and the one passed in as parameter.
|
658
655
|
# @param rect [Wx::Rect]
|
659
656
|
# @return [Wx::Rect]
|
@@ -37,7 +37,7 @@ module Wx
|
|
37
37
|
# @overload initialize()
|
38
38
|
# Default constructor.
|
39
39
|
# @return [GenericDirCtrl]
|
40
|
-
# @overload initialize(parent, id=Wx::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=
|
40
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=(''), defaultFilter=0, name=Wx::TreeCtrlNameStr)
|
41
41
|
# Main constructor.
|
42
42
|
# @param parent [Wx::Window] Parent window.
|
43
43
|
# @param id [Integer] Window identifier.
|
@@ -72,7 +72,7 @@ module Wx
|
|
72
72
|
# @param defaultFilter [Integer]
|
73
73
|
# @param name [String]
|
74
74
|
# @return [true,false]
|
75
|
-
def create(parent, id=Wx::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=
|
75
|
+
def create(parent, id=Wx::StandardID::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=(''), defaultFilter=0, name=Wx::TreeCtrlNameStr) end
|
76
76
|
|
77
77
|
# Tries to expand as much of the given path as possible, so that the filename or directory is visible in the tree control.
|
78
78
|
# @param path [String]
|
@@ -455,13 +455,13 @@ module Wx
|
|
455
455
|
# @param points [Array<Array<Float,Float>>]
|
456
456
|
# @param fillStyle [PolygonFillMode]
|
457
457
|
# @return [void]
|
458
|
-
def draw_lines(points, fillStyle=Wx::ODDEVEN_RULE) end
|
458
|
+
def draw_lines(points, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
|
459
459
|
|
460
460
|
# Draws the path by first filling and then stroking.
|
461
461
|
# @param path [Wx::GraphicsPath]
|
462
462
|
# @param fillStyle [PolygonFillMode]
|
463
463
|
# @return [void]
|
464
|
-
def draw_path(path, fillStyle=Wx::ODDEVEN_RULE) end
|
464
|
+
def draw_path(path, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
|
465
465
|
|
466
466
|
# Draws a rectangle.
|
467
467
|
# @param x [Float]
|
@@ -518,7 +518,7 @@ module Wx
|
|
518
518
|
# @param path [Wx::GraphicsPath]
|
519
519
|
# @param fillStyle [PolygonFillMode]
|
520
520
|
# @return [void]
|
521
|
-
def fill_path(path, fillStyle=Wx::ODDEVEN_RULE) end
|
521
|
+
def fill_path(path, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
|
522
522
|
|
523
523
|
# Strokes a single line.
|
524
524
|
# @param x1 [Float]
|
@@ -550,7 +550,7 @@ module Wx
|
|
550
550
|
# @param font [Wx::Font,Wx::FontInfo]
|
551
551
|
# @param col [Wx::Colour,String,Symbol]
|
552
552
|
# @return [Wx::GraphicsFont]
|
553
|
-
# @overload create_font(sizeInPixels, facename, flags=Wx::FONTFLAG_DEFAULT, col=Wx::BLACK)
|
553
|
+
# @overload create_font(sizeInPixels, facename, flags=Wx::FontFlag::FONTFLAG_DEFAULT, col=Wx::BLACK)
|
554
554
|
# Creates a font object with the specified attributes.
|
555
555
|
# The use of overload taking {Wx::Font} is preferred, see Wx::GraphicsRenderer#create_font for more details.
|
556
556
|
# For Direct2D graphics fonts can be created from TrueType fonts only.
|
@@ -336,13 +336,13 @@ module Wx
|
|
336
336
|
# @return [void]
|
337
337
|
def close_subpath; end
|
338
338
|
|
339
|
-
# @overload contains(c, fillStyle=Wx::ODDEVEN_RULE)
|
339
|
+
# @overload contains(c, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE)
|
340
340
|
#
|
341
341
|
# true if the point is within the path.
|
342
342
|
# @param c [Array<Float,Float>]
|
343
343
|
# @param fillStyle [PolygonFillMode]
|
344
344
|
# @return [true,false]
|
345
|
-
# @overload contains(x, y, fillStyle=Wx::ODDEVEN_RULE)
|
345
|
+
# @overload contains(x, y, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE)
|
346
346
|
#
|
347
347
|
# true if the point is within the path.
|
348
348
|
# @param x [Float]
|
@@ -36,7 +36,7 @@ module Wx::GRID
|
|
36
36
|
# @param valueTrue [String]
|
37
37
|
# @param valueFalse [String]
|
38
38
|
# @return [void]
|
39
|
-
def self.use_string_values(valueTrue=("1"), valueFalse=
|
39
|
+
def self.use_string_values(valueTrue=("1"), valueFalse=('')) end
|
40
40
|
|
41
41
|
end # GridCellBoolEditor
|
42
42
|
|