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
@@ -0,0 +1,150 @@
|
|
1
|
+
# :stopdoc:
|
2
|
+
# This file is automatically generated by the WXRuby3 documentation
|
3
|
+
# generator. Do not alter this file.
|
4
|
+
# :startdoc:
|
5
|
+
|
6
|
+
|
7
|
+
module Wx
|
8
|
+
|
9
|
+
# A {Wx::ScrollBar} is a control that represents a horizontal or vertical scrollbar.
|
10
|
+
# It is distinct from the two scrollbars that some windows provide automatically, but the two types of scrollbar share the way events are received.
|
11
|
+
# A scrollbar has the following main attributes: range, thumb size, page size, and position. The range is the total number of units associated with the view represented by the scrollbar. For a table with 15 columns, the range would be 15. The thumb size is the number of units that are currently visible. For the table example, the window might be sized so that only 5 columns are currently visible, in which case the application would set the thumb size to 5. When the thumb size becomes the same as or greater than the range, the scrollbar will be automatically hidden on most platforms. The page size is the number of units that the scrollbar should scroll by, when 'paging' through the data. This value is normally the same as the thumb size length, because it is natural to assume that the visible window size defines a page. The scrollbar position is the current thumb position. Most applications will find it convenient to provide a function called AdjustScrollbars() which can be called initially, from an OnSize event handler, and whenever the application data changes in size. It will adjust the view, object and page size according to the size of the window and the size of the data.
|
12
|
+
#
|
13
|
+
# === Styles
|
14
|
+
#
|
15
|
+
# This class supports the following styles:
|
16
|
+
#
|
17
|
+
# - {Wx::SB_HORIZONTAL}: Specifies a horizontal scrollbar.
|
18
|
+
# - {Wx::SB_VERTICAL}: Specifies a vertical scrollbar.
|
19
|
+
#
|
20
|
+
# === Events emitted by this class
|
21
|
+
#
|
22
|
+
# The following event-handler methods redirect the events to member method or handler blocks for {Wx::ScrollEvent} events.
|
23
|
+
# Event handler methods for events emitted by this class: except for this, the macros behave exactly the same.
|
24
|
+
# - {Wx::EvtHandler#evt_scroll}(meth = nil, &block): Process all scroll events.
|
25
|
+
# - {Wx::EvtHandler#evt_scroll_top}(meth = nil, &block): Process {Wx::EVT_SCROLL_TOP} scroll to top or leftmost (minimum) position events.
|
26
|
+
# - {Wx::EvtHandler#evt_scroll_bottom}(meth = nil, &block): Process {Wx::EVT_SCROLL_BOTTOM} scroll to bottom or rightmost (maximum) position events.
|
27
|
+
# - {Wx::EvtHandler#evt_scroll_lineup}(meth = nil, &block): Process {Wx::EVT_SCROLL_LINEUP} line up or left events.
|
28
|
+
# - {Wx::EvtHandler#evt_scroll_linedown}(meth = nil, &block): Process {Wx::EVT_SCROLL_LINEDOWN} line down or right events.
|
29
|
+
# - {Wx::EvtHandler#evt_scroll_pageup}(meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEUP} page up or left events.
|
30
|
+
# - {Wx::EvtHandler#evt_scroll_pagedown}(meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEDOWN} page down or right events.
|
31
|
+
# - {Wx::EvtHandler#evt_scroll_thumbtrack}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
|
32
|
+
# - {Wx::EvtHandler#evt_scroll_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBRELEASE} thumb release events.
|
33
|
+
# - {Wx::EvtHandler#evt_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
|
34
|
+
# - {Wx::EvtHandler#evt_command_scroll}(id, meth = nil, &block): Process all scroll events.
|
35
|
+
# - {Wx::EvtHandler#evt_command_scroll_top}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_TOP} scroll to top or leftmost (minimum) position events.
|
36
|
+
# - {Wx::EvtHandler#evt_command_scroll_bottom}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_BOTTOM} scroll to bottom or rightmost (maximum) position events.
|
37
|
+
# - {Wx::EvtHandler#evt_command_scroll_lineup}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_LINEUP} line up or left events.
|
38
|
+
# - {Wx::EvtHandler#evt_command_scroll_linedown}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_LINEDOWN} line down or right events.
|
39
|
+
# - {Wx::EvtHandler#evt_command_scroll_pageup}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEUP} page up or left events.
|
40
|
+
# - {Wx::EvtHandler#evt_command_scroll_pagedown}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEDOWN} page down or right events.
|
41
|
+
# - {Wx::EvtHandler#evt_command_scroll_thumbtrack}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
|
42
|
+
# - {Wx::EvtHandler#evt_command_scroll_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBRELEASE} thumb release events.
|
43
|
+
# - {Wx::EvtHandler#evt_command_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
|
44
|
+
#
|
45
|
+
# == The difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED
|
46
|
+
#
|
47
|
+
# The EVT_SCROLL_THUMBRELEASE event is only emitted when actually dragging the thumb using the mouse and releasing it (This EVT_SCROLL_THUMBRELEASE event is also followed by an EVT_SCROLL_CHANGED event).
|
48
|
+
# The EVT_SCROLL_CHANGED event also occurs when using the keyboard to change the thumb position, and when clicking next to the thumb (In all these cases the EVT_SCROLL_THUMBRELEASE event does not happen).
|
49
|
+
# In short, the EVT_SCROLL_CHANGED event is triggered when scrolling/moving has finished independently of the way it had started. Please see the Widgets Sample ("Slider" page) to see the difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED in action.
|
50
|
+
# ===
|
51
|
+
#
|
52
|
+
# Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
|
53
|
+
# </td><td> {Wx::GTK} Appearance
|
54
|
+
# </td><td> {Wx::OSX} Appearance
|
55
|
+
# </td></tr></table></div>
|
56
|
+
# @see Scrolled Windows
|
57
|
+
# @see Events and Event Handling
|
58
|
+
# @see Wx::Scrolled
|
59
|
+
#
|
60
|
+
#
|
61
|
+
class ScrollBar < Control
|
62
|
+
|
63
|
+
# @overload initialize()
|
64
|
+
# Default constructor.
|
65
|
+
# @return [ScrollBar]
|
66
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SB_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ScrollBarNameStr)
|
67
|
+
# Constructor, creating and showing a scrollbar.
|
68
|
+
#
|
69
|
+
# @see Wx::ScrollBar#create
|
70
|
+
# @see Wx::Validator
|
71
|
+
# @param parent [Wx::Window] Parent window. Must be non-NULL.
|
72
|
+
# @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
|
73
|
+
# @param pos [Array(Integer, Integer), Wx::Point] Window position. If {Wx::DEFAULT_POSITION} is specified then a default position is chosen.
|
74
|
+
# @param size [Array(Integer, Integer), Wx::Size] Window size. If {Wx::DEFAULT_SIZE} is specified then a default size is chosen.
|
75
|
+
# @param style [Integer] Window style. See {Wx::ScrollBar}.
|
76
|
+
# @param validator [Wx::Validator] Window validator.
|
77
|
+
# @param name [String] Window name.
|
78
|
+
# @return [ScrollBar]
|
79
|
+
def initialize(*args) end
|
80
|
+
|
81
|
+
# Scrollbar creation function called by the scrollbar constructor.
|
82
|
+
# See {Wx::ScrollBar#scroll_bar} for details.
|
83
|
+
# @param parent [Wx::Window]
|
84
|
+
# @param id [Integer]
|
85
|
+
# @param pos [Array(Integer, Integer), Wx::Point]
|
86
|
+
# @param size [Array(Integer, Integer), Wx::Size]
|
87
|
+
# @param style [Integer]
|
88
|
+
# @param validator [Wx::Validator]
|
89
|
+
# @param name [String]
|
90
|
+
# @return [true,false]
|
91
|
+
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SB_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ScrollBarNameStr) end
|
92
|
+
|
93
|
+
# Returns the page size of the scrollbar.
|
94
|
+
# This is the number of scroll units that will be scrolled when the user pages up or down. Often it is the same as the thumb size.
|
95
|
+
# @see Wx::ScrollBar#set_scrollbar
|
96
|
+
# @return [Integer]
|
97
|
+
def get_page_size; end
|
98
|
+
alias_method :page_size, :get_page_size
|
99
|
+
|
100
|
+
# Returns the length of the scrollbar.
|
101
|
+
#
|
102
|
+
# @see Wx::ScrollBar#set_scrollbar
|
103
|
+
# @return [Integer]
|
104
|
+
def get_range; end
|
105
|
+
alias_method :range, :get_range
|
106
|
+
|
107
|
+
# Returns the current position of the scrollbar thumb.
|
108
|
+
#
|
109
|
+
# @see Wx::ScrollBar#set_thumb_position
|
110
|
+
# @return [Integer]
|
111
|
+
def get_thumb_position; end
|
112
|
+
alias_method :thumb_position, :get_thumb_position
|
113
|
+
|
114
|
+
# Returns the thumb or 'view' size.
|
115
|
+
#
|
116
|
+
# @see Wx::ScrollBar#set_scrollbar
|
117
|
+
# @return [Integer]
|
118
|
+
def get_thumb_size; end
|
119
|
+
alias_method :thumb_size, :get_thumb_size
|
120
|
+
|
121
|
+
# Sets the scrollbar properties.
|
122
|
+
# Let's say you wish to display 50 lines of text, using the same font. The window is sized so that you can only see 16 lines at a time. You would use:
|
123
|
+
#
|
124
|
+
# scrollbar->SetScrollbar(0, 16, 50, 15);
|
125
|
+
# The page size is 1 less than the thumb size so that the last line of the previous page will be visible on the next page, to help orient the user. Note that with the window at this size, the thumb position can never go above 50 minus 16, or 34. You can determine how many lines are currently visible by dividing the current view size by the character height in pixels. When defining your own scrollbar behaviour, you will always need to recalculate the scrollbar settings when the window size changes. You could therefore put your scrollbar calculations and {Wx::ScrollBar#set_scrollbar} call into a function named AdjustScrollbars, which can be called initially and also from a {Wx::SizeEvent} event handler function.
|
126
|
+
# @param position [Integer] The position of the scrollbar in scroll units.
|
127
|
+
# @param thumbSize [Integer] The size of the thumb, or visible portion of the scrollbar, in scroll units.
|
128
|
+
# @param range [Integer] The maximum position of the scrollbar.
|
129
|
+
# @param pageSize [Integer] The size of the page size in scroll units. This is the number of units the scrollbar will scroll when it is paged up or down. Often it is the same as the thumb size.
|
130
|
+
# @param refresh [true,false] true to redraw the scrollbar, false otherwise.
|
131
|
+
# @return [void]
|
132
|
+
def set_scrollbar(position, thumbSize, range, pageSize, refresh=true) end
|
133
|
+
|
134
|
+
# Sets the position of the scrollbar.
|
135
|
+
#
|
136
|
+
# @see Wx::ScrollBar#get_thumb_position
|
137
|
+
# @param viewStart [Integer] The position of the scrollbar thumb.
|
138
|
+
# @return [void]
|
139
|
+
def set_thumb_position(viewStart) end
|
140
|
+
alias_method :thumb_position=, :set_thumb_position
|
141
|
+
|
142
|
+
# Returns true for scrollbars that have the vertical style set.
|
143
|
+
# @return [true,false]
|
144
|
+
def is_vertical; end
|
145
|
+
alias_method :vertical?, :is_vertical
|
146
|
+
|
147
|
+
end # ScrollBar
|
148
|
+
|
149
|
+
|
150
|
+
end
|
@@ -69,7 +69,7 @@ module Wx
|
|
69
69
|
# @overload initialize()
|
70
70
|
# Default constructor.
|
71
71
|
# @return [Scrolled]
|
72
|
-
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("
|
72
|
+
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
|
73
73
|
# Constructor.
|
74
74
|
# The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
|
75
75
|
# @param parent [Wx::Window] Parent window.
|
@@ -117,7 +117,7 @@ module Wx
|
|
117
117
|
# @param style [Integer]
|
118
118
|
# @param name [String]
|
119
119
|
# @return [true,false]
|
120
|
-
def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("
|
120
|
+
def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow")) end
|
121
121
|
|
122
122
|
# Disable use of keyboard keys for scrolling.
|
123
123
|
# By default cursor movement keys (including Home, End, Page Up and Down) are used to scroll the window appropriately. If the derived class uses these keys for something else, e.g. changing the currently selected item, this function can be used to disable this behaviour as it's not only not necessary then but can actually be actively harmful if another object forwards a keyboard event corresponding to one of the above keys to us using ProcessWindowEvent() because the event will always be processed which can be undesirable.
|
@@ -69,7 +69,7 @@ module Wx
|
|
69
69
|
# @overload initialize()
|
70
70
|
# Default constructor.
|
71
71
|
# @return [Scrolled]
|
72
|
-
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("
|
72
|
+
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
|
73
73
|
# Constructor.
|
74
74
|
# The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
|
75
75
|
# @param parent [Wx::Window] Parent window.
|
@@ -117,7 +117,7 @@ module Wx
|
|
117
117
|
# @param style [Integer]
|
118
118
|
# @param name [String]
|
119
119
|
# @return [true,false]
|
120
|
-
def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("
|
120
|
+
def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow")) end
|
121
121
|
|
122
122
|
# Disable use of keyboard keys for scrolling.
|
123
123
|
# By default cursor movement keys (including Home, End, Page Up and Down) are used to scroll the window appropriately. If the derived class uses these keys for something else, e.g. changing the currently selected item, this function can be used to disable this behaviour as it's not only not necessary then but can actually be actively harmful if another object forwards a keyboard event corresponding to one of the above keys to us using ProcessWindowEvent() because the event will always be processed which can be undesirable.
|
@@ -89,7 +89,7 @@ module Wx
|
|
89
89
|
# @overload initialize()
|
90
90
|
# Default constructor.
|
91
91
|
# @return [Scrolled]
|
92
|
-
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("
|
92
|
+
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
|
93
93
|
# Constructor.
|
94
94
|
# The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
|
95
95
|
# @param parent [Wx::Window] Parent window.
|
@@ -137,7 +137,7 @@ module Wx
|
|
137
137
|
# @param style [Integer]
|
138
138
|
# @param name [String]
|
139
139
|
# @return [true,false]
|
140
|
-
def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("
|
140
|
+
def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow")) end
|
141
141
|
|
142
142
|
# Disable use of keyboard keys for scrolling.
|
143
143
|
# By default cursor movement keys (including Home, End, Page Up and Down) are used to scroll the window appropriately. If the derived class uses these keys for something else, e.g. changing the currently selected item, this function can be used to disable this behaviour as it's not only not necessary then but can actually be actively harmful if another object forwards a keyboard event corresponding to one of the above keys to us using ProcessWindowEvent() because the event will always be processed which can be undesirable.
|
@@ -26,7 +26,7 @@ module Wx
|
|
26
26
|
# Default constructor.
|
27
27
|
# Use {Wx::Simplebook#create} later to really create the control.
|
28
28
|
# @return [Simplebook]
|
29
|
-
# @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=
|
29
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
|
30
30
|
# Constructs a simple book control.
|
31
31
|
# @param parent [Wx::Window]
|
32
32
|
# @param id [Integer]
|
@@ -45,7 +45,7 @@ module Wx
|
|
45
45
|
# @param style [Integer]
|
46
46
|
# @param name [String]
|
47
47
|
# @return [true,false]
|
48
|
-
def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=
|
48
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=('')) end
|
49
49
|
|
50
50
|
# Set the effects to use for showing and hiding the pages.
|
51
51
|
# This method allows specifying the effects passed to {Wx::Window#show_with_effect} and {Wx::Window#hide_with_effect} respectively when the pages need to be shown or hidden.
|
data/lib/wx/doc/gen/sizer.rb
CHANGED
@@ -731,7 +731,7 @@ module Wx
|
|
731
731
|
# @param direction [Integer]
|
732
732
|
# @param borderinpixels [Integer]
|
733
733
|
# @return [Wx::SizerFlags]
|
734
|
-
# @overload border(direction=Wx::ALL)
|
734
|
+
# @overload border(direction=Wx::Direction::ALL)
|
735
735
|
# Sets the {Wx::SizerFlags} to have a border with size as returned by {Wx::SizerFlags.get_default_border}.
|
736
736
|
# @param direction [Integer] Direction(s) to apply the border in.
|
737
737
|
# @return [Wx::SizerFlags]
|
@@ -774,7 +774,7 @@ module Wx
|
|
774
774
|
# Sets the border in the given direction having twice the default border size.
|
775
775
|
# @param direction [Integer]
|
776
776
|
# @return [Wx::SizerFlags]
|
777
|
-
def double_border(direction=Wx::ALL) end
|
777
|
+
def double_border(direction=Wx::Direction::ALL) end
|
778
778
|
|
779
779
|
# Sets the border in left and right directions having twice the default border size.
|
780
780
|
# @return [Wx::SizerFlags]
|
@@ -820,7 +820,7 @@ module Wx
|
|
820
820
|
# Sets the border in the given direction having thrice the default border size.
|
821
821
|
# @param direction [Integer]
|
822
822
|
# @return [Wx::SizerFlags]
|
823
|
-
def triple_border(direction=Wx::ALL) end
|
823
|
+
def triple_border(direction=Wx::Direction::ALL) end
|
824
824
|
|
825
825
|
# Globally disable checks for sizer flag consistency in debug builds.
|
826
826
|
# By default, sizer classes such as {Wx::BoxSizer} and {Wx::FlexGridSizer} assert when passed invalid flags, even though doing this usually doesn't result in any catastrophic consequences and the invalid flags are simply ignored later. Due to this, and the fact that these checks were only added in wxWidgets 3.1, existing code may run into multiple asserts warning about incorrect sizer flags use. Using this function provides a temporary solution for avoiding such asserts when upgrading to wxWidgets 3.1 from a previous version and will prevent such checks from being done.
|
data/lib/wx/doc/gen/slider.rb
CHANGED
@@ -116,7 +116,7 @@ module Wx
|
|
116
116
|
# @overload initialize()
|
117
117
|
# Default constructor.
|
118
118
|
# @return [Slider]
|
119
|
-
# @overload initialize(parent, id, value, minValue, maxValue, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
119
|
+
# @overload initialize(parent, id, value, minValue, maxValue, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SliderNameStr)
|
120
120
|
# Constructor, creating and showing a slider.
|
121
121
|
#
|
122
122
|
# @see Wx::Slider#create
|
@@ -157,7 +157,7 @@ module Wx
|
|
157
157
|
# @param validator [Wx::Validator]
|
158
158
|
# @param name [String]
|
159
159
|
# @return [true,false]
|
160
|
-
def create(parent, id, value, minValue, maxValue, point=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
160
|
+
def create(parent, id, value, minValue, maxValue, point=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SliderNameStr) end
|
161
161
|
|
162
162
|
# Returns the line size.
|
163
163
|
#
|
@@ -42,7 +42,7 @@ module Wx
|
|
42
42
|
# @overload initialize()
|
43
43
|
# Default constructor.
|
44
44
|
# @return [SpinButton]
|
45
|
-
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("
|
45
|
+
# @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("spinButton"))
|
46
46
|
# Constructor, creating and showing a spin button.
|
47
47
|
#
|
48
48
|
# @see Wx::SpinButton#create
|
@@ -64,7 +64,7 @@ module Wx
|
|
64
64
|
# @param style [Integer]
|
65
65
|
# @param name [String]
|
66
66
|
# @return [true,false]
|
67
|
-
def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("Wx::
|
67
|
+
def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("Wx::SpinButton")) end
|
68
68
|
|
69
69
|
# Get the value for increment for a spin control.
|
70
70
|
# The default value is 1 but it can be changed using {Wx::SpinButton#set_increment}.
|
data/lib/wx/doc/gen/spin_ctrl.rb
CHANGED
@@ -49,7 +49,7 @@ module Wx
|
|
49
49
|
# @overload initialize()
|
50
50
|
# Default constructor.
|
51
51
|
# @return [SpinCtrl]
|
52
|
-
# @overload initialize(parent, id=Wx::ID_ANY, value=
|
52
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_ARROW_KEYS, min=0, max=100, initial=0, name=("Wx::SpinCtrl"))
|
53
53
|
# Constructor, creating and showing a spin control.
|
54
54
|
# If value is non-empty, it will be shown in the text entry part of the control and if it has numeric value, the initial numeric value of the control, as returned by {Wx::SpinCtrl#get_value} will also be determined by it instead of by initial. Hence, it only makes sense to specify initial if value is an empty string or is not convertible to a number, otherwise initial is simply ignored and the number specified by value is used.
|
55
55
|
# @see Wx::SpinCtrl#create
|
@@ -79,7 +79,7 @@ module Wx
|
|
79
79
|
# @param initial [Integer]
|
80
80
|
# @param name [String]
|
81
81
|
# @return [true,false]
|
82
|
-
def create(parent, id=Wx::ID_ANY, value=
|
82
|
+
def create(parent, id=Wx::StandardID::ID_ANY, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_ARROW_KEYS, min=0, max=100, initial=0, name=("Wx::SpinCtrl")) end
|
83
83
|
|
84
84
|
# Returns the numerical base being currently used, 10 by default.
|
85
85
|
#
|
@@ -55,7 +55,7 @@ module Wx
|
|
55
55
|
# @param size [Array(Integer, Integer), Wx::Size]
|
56
56
|
# @param style [Integer]
|
57
57
|
# @return [SplashScreen]
|
58
|
-
def initialize(bitmap, splashStyle, milliseconds, parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::BORDER_SIMPLE|Wx::FRAME_NO_TASKBAR|Wx::STAY_ON_TOP)) end
|
58
|
+
def initialize(bitmap, splashStyle, milliseconds, parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::Border::BORDER_SIMPLE|Wx::FRAME_NO_TASKBAR|Wx::STAY_ON_TOP)) end
|
59
59
|
|
60
60
|
# Returns the splash style (see {splash_screen} for details).
|
61
61
|
# @return [Integer]
|
@@ -122,7 +122,7 @@ module Wx
|
|
122
122
|
# @overload initialize()
|
123
123
|
# Default constructor.
|
124
124
|
# @return [SplitterWindow]
|
125
|
-
# @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("
|
125
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("splitterWindow"))
|
126
126
|
# Constructor for creating the window.
|
127
127
|
# After using this constructor, you must create either one or two subwindows with the splitter window as parent, and then call one of {Wx::SplitterWindow#initialize}, {Wx::SplitterWindow#split_vertically} and {Wx::SplitterWindow#split_horizontally} in order to set the pane(s). You can create two windows, with one hidden when not being shown; or you can create and delete the second pane on demand.
|
128
128
|
# @see Wx::SplitterWindow#initialize
|
@@ -147,7 +147,7 @@ module Wx
|
|
147
147
|
# @param style [Integer]
|
148
148
|
# @param name [String]
|
149
149
|
# @return [true,false]
|
150
|
-
def create(parent, id=Wx::ID_ANY, point=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("
|
150
|
+
def create(parent, id=Wx::StandardID::ID_ANY, point=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("splitter")) end
|
151
151
|
|
152
152
|
# Returns the current minimum pane size (defaults to zero).
|
153
153
|
#
|
@@ -51,7 +51,7 @@ module Wx
|
|
51
51
|
# @overload initialize()
|
52
52
|
# Default constructor.
|
53
53
|
# @return [StaticBitmap]
|
54
|
-
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
54
|
+
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBitmapNameStr)
|
55
55
|
# Constructor, creating and showing a static bitmap control.
|
56
56
|
#
|
57
57
|
# @see Wx::StaticBitmap#create
|
@@ -75,7 +75,7 @@ module Wx
|
|
75
75
|
# @param style [Integer]
|
76
76
|
# @param name [String]
|
77
77
|
# @return [true,false]
|
78
|
-
def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
78
|
+
def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBitmapNameStr) end
|
79
79
|
|
80
80
|
# Returns the bitmap currently used in the control.
|
81
81
|
# Notice that this method can be called even if {Wx::StaticBitmap#set_icon} had been used.
|
@@ -36,7 +36,7 @@ module Wx
|
|
36
36
|
# @overload initialize()
|
37
37
|
# Default constructor.
|
38
38
|
# @return [StaticBox]
|
39
|
-
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
39
|
+
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBoxNameStr)
|
40
40
|
# Constructor, creating and showing a static box.
|
41
41
|
#
|
42
42
|
# @see Wx::StaticBox#create
|
@@ -48,7 +48,7 @@ module Wx
|
|
48
48
|
# @param style [Integer] Window style. There are no {Wx::StaticBox}-specific styles, but generic {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE_HORIZONTAL} and {Wx::Alignment::ALIGN_RIGHT} can be used here to change the position of the static box label when using {Wx::GTK} (these styles are ignored under the other platforms currently).
|
49
49
|
# @param name [String] Window name.
|
50
50
|
# @return [StaticBox]
|
51
|
-
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
51
|
+
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBoxNameStr)
|
52
52
|
# Constructor for a static box using the given window as label.
|
53
53
|
# This constructor takes a pointer to an arbitrary window (although usually a {Wx::CheckBox} or a {Wx::RadioButton}) instead of just the usual text label and puts this window at the top of the box at the place where the label would be shown.
|
54
54
|
# The label window must be a non-null, fully created window and will become a child of this {Wx::StaticBox}, i.e. it will be owned by this control and will be deleted when the {Wx::StaticBox} itself is deleted.
|
@@ -73,7 +73,7 @@ module Wx
|
|
73
73
|
# @return [StaticBox]
|
74
74
|
def initialize(*args) end
|
75
75
|
|
76
|
-
# @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
76
|
+
# @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBoxNameStr)
|
77
77
|
# Creates the static box for two-step construction.
|
78
78
|
# See {Wx::StaticBox#static_box} for further details.
|
79
79
|
# @param parent [Wx::Window]
|
@@ -84,7 +84,7 @@ module Wx
|
|
84
84
|
# @param style [Integer]
|
85
85
|
# @param name [String]
|
86
86
|
# @return [true,false]
|
87
|
-
# @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
87
|
+
# @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBoxNameStr)
|
88
88
|
# Creates the static box with the window as a label.
|
89
89
|
# This method can only be called for an object created using its default constructor.
|
90
90
|
# See the constructor documentation for more details.
|
@@ -37,7 +37,7 @@ module Wx
|
|
37
37
|
# @param box [Wx::StaticBox] The static box to associate with the sizer (which will take its ownership).
|
38
38
|
# @param orient [Integer] Can be either {Wx::Orientation::VERTICAL} or {Wx::Orientation::HORIZONTAL}.
|
39
39
|
# @return [StaticBoxSizer]
|
40
|
-
# @overload initialize(orient, parent, label=
|
40
|
+
# @overload initialize(orient, parent, label=(''))
|
41
41
|
# This constructor creates a new static box with the given label and parent window.
|
42
42
|
# @param orient [Integer]
|
43
43
|
# @param parent [Wx::Window]
|
@@ -26,7 +26,7 @@ module Wx
|
|
26
26
|
# @overload initialize()
|
27
27
|
# Default constructor.
|
28
28
|
# @return [StaticLine]
|
29
|
-
# @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::
|
29
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::StaticLineNameStr)
|
30
30
|
# Constructor, creating and showing a static line.
|
31
31
|
#
|
32
32
|
# @see Wx::StaticLine#create
|
@@ -48,7 +48,7 @@ module Wx
|
|
48
48
|
# @param style [Integer]
|
49
49
|
# @param name [String]
|
50
50
|
# @return [true,false]
|
51
|
-
def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::
|
51
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::StaticLineNameStr) end
|
52
52
|
|
53
53
|
# Returns true if the line is vertical, false if horizontal.
|
54
54
|
# @return [true,false]
|
@@ -47,7 +47,7 @@ module Wx
|
|
47
47
|
# @overload initialize()
|
48
48
|
# Default constructor.
|
49
49
|
# @return [StaticText]
|
50
|
-
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
50
|
+
# @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticTextNameStr)
|
51
51
|
# Constructor, creating and showing a text control.
|
52
52
|
#
|
53
53
|
# @see Wx::StaticText#create
|
@@ -71,7 +71,7 @@ module Wx
|
|
71
71
|
# @param style [Integer]
|
72
72
|
# @param name [String]
|
73
73
|
# @return [true,false]
|
74
|
-
def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
74
|
+
def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticTextNameStr) end
|
75
75
|
|
76
76
|
# Returns true if the window styles for this control contains one of the {Wx::ST_ELLIPSIZE_START}, {Wx::ST_ELLIPSIZE_MIDDLE} or {Wx::ST_ELLIPSIZE_END} styles.
|
77
77
|
# @return [true,false]
|
@@ -68,7 +68,7 @@ module Wx
|
|
68
68
|
# @overload initialize()
|
69
69
|
# Default ctor.
|
70
70
|
# @return [StatusBar]
|
71
|
-
# @overload initialize(parent, id=Wx::ID_ANY, style=Wx::STB_DEFAULT_STYLE, name=Wx::
|
71
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, style=Wx::STB_DEFAULT_STYLE, name=Wx::StatusBarNameStr)
|
72
72
|
# Constructor, creating the window.
|
73
73
|
#
|
74
74
|
# @see Wx::StatusBar#create
|
@@ -86,7 +86,7 @@ module Wx
|
|
86
86
|
# @param style [Integer]
|
87
87
|
# @param name [String]
|
88
88
|
# @return [true,false]
|
89
|
-
def create(parent, id=Wx::ID_ANY, style=Wx::STB_DEFAULT_STYLE, name=Wx::
|
89
|
+
def create(parent, id=Wx::StandardID::ID_ANY, style=Wx::STB_DEFAULT_STYLE, name=Wx::StatusBarNameStr) end
|
90
90
|
|
91
91
|
# Returns the size and position of a field's internal bounding rectangle.
|
92
92
|
# true if the field index is valid, false otherwise.
|
@@ -25,7 +25,7 @@ module Wx::STC
|
|
25
25
|
#
|
26
26
|
class StyledTextCtrl < Control
|
27
27
|
|
28
|
-
# @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
28
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STCNameStr)
|
29
29
|
# Ctor.
|
30
30
|
# @param parent [Wx::Window]
|
31
31
|
# @param id [Integer]
|
@@ -48,7 +48,7 @@ module Wx::STC
|
|
48
48
|
# @param style [Integer]
|
49
49
|
# @param name [String]
|
50
50
|
# @return [true,false]
|
51
|
-
def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
51
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STCNameStr) end
|
52
52
|
|
53
53
|
# Add text to the document at current position.
|
54
54
|
# @param text [String]
|
@@ -3701,7 +3701,7 @@ module Wx::STC
|
|
3701
3701
|
# @param underline [true,false]
|
3702
3702
|
# @param encoding [FontEncoding]
|
3703
3703
|
# @return [void]
|
3704
|
-
def style_set_font_attr(styleNum, size, faceName, bold, italic, underline, encoding=Wx::FONTENCODING_DEFAULT) end
|
3704
|
+
def style_set_font_attr(styleNum, size, faceName, bold, italic, underline, encoding=Wx::FontEncoding::FONTENCODING_DEFAULT) end
|
3705
3705
|
|
3706
3706
|
# Set the font encoding to be used by a style.
|
3707
3707
|
# @param style [Integer]
|
@@ -36,7 +36,7 @@ module Wx
|
|
36
36
|
# The iconType is only applicable on {Wx::OSX}/Cocoa.
|
37
37
|
# @param iconType [TaskBarIconType]
|
38
38
|
# @return [TaskBarIcon]
|
39
|
-
def initialize(iconType=Wx::TBI_DEFAULT_TYPE) end
|
39
|
+
def initialize(iconType=Wx::TaskBarIconType::TBI_DEFAULT_TYPE) end
|
40
40
|
|
41
41
|
# This method is similar to {Wx::Window#destroy} and can be used to schedule the task bar icon object for the delayed destruction: it will be deleted during the next event loop iteration, which allows the task bar icon to process any pending events for it before being destroyed.
|
42
42
|
# @return [void]
|
@@ -67,7 +67,7 @@ module Wx
|
|
67
67
|
# @param icon [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
68
68
|
# @param tooltip [String]
|
69
69
|
# @return [true,false]
|
70
|
-
def set_icon(icon, tooltip=
|
70
|
+
def set_icon(icon, tooltip=('')) end
|
71
71
|
alias_method :icon=, :set_icon
|
72
72
|
|
73
73
|
# Returns true if system tray is available in the desktop environment the app runs under.
|
data/lib/wx/doc/gen/text_attr.rb
CHANGED
@@ -20,7 +20,7 @@ module Wx
|
|
20
20
|
# @overload initialize()
|
21
21
|
# Constructors.
|
22
22
|
# @return [TextAttr]
|
23
|
-
# @overload initialize(colText, colBack=Wx::NULL_COLOUR, font=Wx::NULL_FONT, alignment=Wx::TEXT_ALIGNMENT_DEFAULT)
|
23
|
+
# @overload initialize(colText, colBack=Wx::NULL_COLOUR, font=Wx::NULL_FONT, alignment=Wx::TextAttrAlignment::TEXT_ALIGNMENT_DEFAULT)
|
24
24
|
# Constructors.
|
25
25
|
# @param colText [Wx::Colour,String,Symbol]
|
26
26
|
# @param colBack [Wx::Colour,String,Symbol]
|
@@ -97,7 +97,7 @@ module Wx
|
|
97
97
|
# @param font [Wx::Font,Wx::FontInfo]
|
98
98
|
# @param flags [Integer]
|
99
99
|
# @return [true,false]
|
100
|
-
def get_font_attributes(font, flags=Wx::TEXT_ATTR_FONT) end
|
100
|
+
def get_font_attributes(font, flags=Wx::TextAttrFlags::TEXT_ATTR_FONT) end
|
101
101
|
alias_method :font_attributes, :get_font_attributes
|
102
102
|
|
103
103
|
# Returns the font encoding.
|
@@ -456,7 +456,7 @@ module Wx
|
|
456
456
|
# @param font [Wx::Font,Wx::FontInfo]
|
457
457
|
# @param flags [Integer]
|
458
458
|
# @return [void]
|
459
|
-
def set_font(font, flags=(Wx::TEXT_ATTR_FONT &~Wx::TEXT_ATTR_FONT_PIXEL_SIZE)) end
|
459
|
+
def set_font(font, flags=(Wx::TextAttrFlags::TEXT_ATTR_FONT &~Wx::TextAttrFlags::TEXT_ATTR_FONT_PIXEL_SIZE)) end
|
460
460
|
alias_method :font=, :set_font
|
461
461
|
|
462
462
|
# Sets the font encoding.
|
data/lib/wx/doc/gen/text_ctrl.rb
CHANGED
@@ -612,7 +612,7 @@ module Wx
|
|
612
612
|
# @overload initialize()
|
613
613
|
# Default ctor.
|
614
614
|
# @return [TextCtrl]
|
615
|
-
# @overload initialize(parent, id, value=
|
615
|
+
# @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr)
|
616
616
|
# Constructor, creating and showing a text control.
|
617
617
|
# The horizontal scrollbar ({Wx::HSCROLL} style flag) will only be created for multi-line text controls. Without a horizontal scrollbar, text lines that don't fit in the control's size will be wrapped (but no newline character is inserted). Single line controls don't have a horizontal scrollbar, the text is automatically scrolled so that the insertion point is always visible.
|
618
618
|
# @see Wx::TextCtrl#create
|
@@ -639,7 +639,7 @@ module Wx
|
|
639
639
|
# @param validator [Wx::Validator]
|
640
640
|
# @param name [String]
|
641
641
|
# @return [void]
|
642
|
-
def create(parent, id, value=
|
642
|
+
def create(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr) end
|
643
643
|
|
644
644
|
# Resets the internal modified flag as if the current changes had been saved.
|
645
645
|
# @return [void]
|
@@ -788,7 +788,7 @@ module Wx
|
|
788
788
|
# @param filename [String] The name of the file in which to save the text.
|
789
789
|
# @param fileType [Integer] The type of file to save. This is currently ignored in {Wx::TextCtrl}.
|
790
790
|
# @return [void]
|
791
|
-
def save_file(filename=
|
791
|
+
def save_file(filename=(''), fileType=Wx::TEXT_TYPE_ANY) end
|
792
792
|
|
793
793
|
# Changes the default style to use for the new text which is going to be added to the control.
|
794
794
|
# This applies both to the text added programmatically using {Wx::TextCtrl#write_text} or {Wx::TextCtrl#append_text} and to the text entered by the user interactively.
|
@@ -18,7 +18,6 @@ module Wx
|
|
18
18
|
# The user may type in text and press OK to return this text, or press Cancel to return the empty string.
|
19
19
|
# If centre is true, the message text (which may include new line characters) is centred; if false, the message is left-justified.
|
20
20
|
# This function is a wrapper around {Wx::TextEntryDialog} and while it is usually more convenient to use, using the dialog directly is more flexible, e.g. it allows you to specify the {Wx::TE_MULTILINE} to allow the user enter multiple lines of text while this function is limited to single line entry only.
|
21
|
-
# Include file: #include <wx/textdlg.h>
|
22
21
|
# @param message [String]
|
23
22
|
# @param caption [String]
|
24
23
|
# @param default_value [String]
|
@@ -27,11 +26,10 @@ module Wx
|
|
27
26
|
# @param y [Integer]
|
28
27
|
# @param centre [true,false]
|
29
28
|
# @return [String]
|
30
|
-
def self.get_text_from_user(message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, default_value=
|
29
|
+
def self.get_text_from_user(message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, default_value=(''), parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD, centre=true) end
|
31
30
|
|
32
31
|
# Similar to {get_text_from_user} but the text entered in the dialog is not shown on screen but replaced with stars.
|
33
32
|
# This is intended to be used for entering passwords as the function name implies.
|
34
|
-
# Include file: #include <wx/textdlg.h>
|
35
33
|
# @param message [String]
|
36
34
|
# @param caption [String]
|
37
35
|
# @param default_value [String]
|
@@ -40,7 +38,7 @@ module Wx
|
|
40
38
|
# @param y [Integer]
|
41
39
|
# @param centre [true,false]
|
42
40
|
# @return [String]
|
43
|
-
def self.get_password_from_user(message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, default_value=
|
41
|
+
def self.get_password_from_user(message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, default_value=(''), parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD, centre=true) end
|
44
42
|
|
45
43
|
# This class represents a dialog that requests a one-line text string from the user.
|
46
44
|
# It is implemented as a generic wxWidgets dialog.
|
@@ -67,7 +65,7 @@ module Wx
|
|
67
65
|
# The first overload uses the provided validator which can be of a custom class derived from {Wx::TextValidator} while the second one creates a {Wx::TextValidator} with the specified style.
|
68
66
|
# @param validator [Wx::TextValidator]
|
69
67
|
# @return [void]
|
70
|
-
# @overload set_text_validator(style=Wx::FILTER_NONE)
|
68
|
+
# @overload set_text_validator(style=Wx::TextValidatorStyle::FILTER_NONE)
|
71
69
|
# Associate a validator with the text control used by the dialog.
|
72
70
|
# These methods can be used to limit the user entry to only some characters, e.g.
|
73
71
|
#
|
@@ -89,7 +87,7 @@ module Wx
|
|
89
87
|
# Default constructor.
|
90
88
|
# Call {Wx::TextEntryDialog#create} to really create the dialog later.
|
91
89
|
# @return [TextEntryDialog]
|
92
|
-
# @overload initialize(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=
|
90
|
+
# @overload initialize(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION)
|
93
91
|
# Constructor.
|
94
92
|
# Use {Wx::TextEntryDialog#show_modal} to show the dialog.
|
95
93
|
# See {Wx::TextEntryDialog#create} method for parameter description.
|
@@ -109,7 +107,7 @@ module Wx
|
|
109
107
|
# @param style [Integer] A dialog style, specifying the buttons ({Wx::OK}, {Wx::CANCEL}) and an optional {Wx::GeometryCentre::CENTRE} style. Additionally, most {Wx::TextCtrl} styles (such as {Wx::TE_PASSWORD} or {Wx::TE_MULTILINE}) may be specified here, but {Wx::TE_READONLY} may not be used, as it doesn't make sense for this dialog, used for text input.
|
110
108
|
# @param pos [Array(Integer, Integer), Wx::Point] Dialog position.
|
111
109
|
# @return [true,false]
|
112
|
-
def create(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=
|
110
|
+
def create(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION) end
|
113
111
|
|
114
112
|
# Returns the text that the user has entered if the user has pressed OK, or the original value if the user has pressed Cancel.
|
115
113
|
# @return [String]
|
@@ -162,7 +160,7 @@ module Wx
|
|
162
160
|
# @param style [Integer] A dialog style, specifying the buttons ({Wx::OK}, {Wx::CANCEL}) and an optional {Wx::GeometryCentre::CENTRE} style. You do not need to specify the {Wx::TE_PASSWORD} style, it is always applied.
|
163
161
|
# @param pos [Array(Integer, Integer), Wx::Point] Dialog position.
|
164
162
|
# @return [PasswordEntryDialog]
|
165
|
-
def initialize(parent, message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, defaultValue=
|
163
|
+
def initialize(parent, message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, defaultValue=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION) end
|
166
164
|
|
167
165
|
end # PasswordEntryDialog
|
168
166
|
|