wxruby3 0.9.0.pre.beta.13-x64-mingw-ucrt → 0.9.0.pre.rc.1-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/README.md +47 -4
  4. data/assets/hello_button.png +0 -0
  5. data/assets/hello_button_clicked.png +0 -0
  6. data/assets/hello_world.png +0 -0
  7. data/assets/repo-social-preview.png +0 -0
  8. data/ext/wxbase32u_gcc_custom.dll +0 -0
  9. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  10. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  23. data/lib/wx/accessors.rb +8 -2
  24. data/lib/wx/core/art_locator.rb +2 -2
  25. data/lib/wx/core/artprovider.rb +2 -2
  26. data/lib/wx/core/bitmap.rb +6 -5
  27. data/lib/wx/core/bitmap_combobox.rb +34 -0
  28. data/lib/wx/core/controlwithitems.rb +52 -14
  29. data/lib/wx/core/cursor.rb +1 -1
  30. data/lib/wx/core/dc.rb +0 -20
  31. data/lib/wx/core/event_blocker.rb +14 -0
  32. data/lib/wx/core/events/evt_list.rb +12 -0
  33. data/lib/wx/core/evthandler.rb +36 -0
  34. data/lib/wx/core/find_replace_dialog.rb +24 -0
  35. data/lib/wx/core/icon.rb +1 -1
  36. data/lib/wx/core/image.rb +1 -1
  37. data/lib/wx/core/paintdc.rb +8 -0
  38. data/lib/wx/core/text_entry.rb +15 -0
  39. data/lib/wx/core/v_list_box.rb +13 -0
  40. data/lib/wx/core/window.rb +1 -1
  41. data/lib/wx/doc/busy_info.rb +21 -0
  42. data/lib/wx/doc/client_dc.rb +28 -0
  43. data/lib/wx/doc/controlwithitems.rb +11 -0
  44. data/lib/wx/doc/dc.rb +0 -14
  45. data/lib/wx/doc/event_blocker.rb +27 -0
  46. data/lib/wx/doc/evthandler.rb +4 -0
  47. data/lib/wx/doc/extra/02_lifecycles.md +49 -0
  48. data/lib/wx/doc/extra/10_art.md +1 -1
  49. data/lib/wx/doc/extra/11_drawing_and_dc.md +62 -0
  50. data/lib/wx/doc/gen/about_dialog_info.rb +27 -24
  51. data/lib/wx/doc/gen/accelerator.rb +11 -12
  52. data/lib/wx/doc/gen/app.rb +6 -3
  53. data/lib/wx/doc/gen/art_provider.rb +53 -29
  54. data/lib/wx/doc/gen/aui/aui_manager.rb +4 -0
  55. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +1 -1
  56. data/lib/wx/doc/gen/aui/aui_pane_info.rb +2 -0
  57. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -0
  58. data/lib/wx/doc/gen/bitmap.rb +25 -25
  59. data/lib/wx/doc/gen/bitmap_combo_box.rb +157 -0
  60. data/lib/wx/doc/gen/box_sizer.rb +6 -8
  61. data/lib/wx/doc/gen/brush.rb +2 -0
  62. data/lib/wx/doc/gen/busy_info.rb +52 -46
  63. data/lib/wx/doc/gen/caret.rb +0 -4
  64. data/lib/wx/doc/gen/check_list_box.rb +0 -2
  65. data/lib/wx/doc/gen/choice.rb +1 -5
  66. data/lib/wx/doc/gen/client_dc.rb +13 -18
  67. data/lib/wx/doc/gen/clipboard.rb +30 -27
  68. data/lib/wx/doc/gen/collapsible_pane.rb +11 -9
  69. data/lib/wx/doc/gen/colour.rb +6 -3
  70. data/lib/wx/doc/gen/colour_dialog.rb +111 -23
  71. data/lib/wx/doc/gen/combo_box.rb +2 -4
  72. data/lib/wx/doc/gen/control.rb +20 -18
  73. data/lib/wx/doc/gen/core.rb +2 -2
  74. data/lib/wx/doc/gen/cursor.rb +18 -50
  75. data/lib/wx/doc/gen/data_format.rb +0 -2
  76. data/lib/wx/doc/gen/data_object.rb +37 -44
  77. data/lib/wx/doc/gen/dc.rb +16 -24
  78. data/lib/wx/doc/gen/defs.rb +3 -40
  79. data/lib/wx/doc/gen/dialog.rb +21 -17
  80. data/lib/wx/doc/gen/dir_dialog.rb +10 -8
  81. data/lib/wx/doc/gen/event.rb +2 -2
  82. data/lib/wx/doc/gen/event_blocker.rb +49 -0
  83. data/lib/wx/doc/gen/event_filter.rb +95 -0
  84. data/lib/wx/doc/gen/event_list.rb +16 -2
  85. data/lib/wx/doc/gen/events.rb +103 -112
  86. data/lib/wx/doc/gen/evt_handler.rb +28 -52
  87. data/lib/wx/doc/gen/file_dialog.rb +8 -4
  88. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  89. data/lib/wx/doc/gen/font.rb +10 -2
  90. data/lib/wx/doc/gen/font_data.rb +2 -0
  91. data/lib/wx/doc/gen/font_dialog.rb +1 -1
  92. data/lib/wx/doc/gen/frame.rb +4 -3
  93. data/lib/wx/doc/gen/fs_file.rb +8 -0
  94. data/lib/wx/doc/gen/gcdc.rb +2 -22
  95. data/lib/wx/doc/gen/gdi_common.rb +18 -2
  96. data/lib/wx/doc/gen/gdi_object.rb +2 -0
  97. data/lib/wx/doc/gen/graphics_context.rb +4 -43
  98. data/lib/wx/doc/gen/graphics_object.rb +2 -0
  99. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
  100. data/lib/wx/doc/gen/grid/grid_ctrl.rb +4 -2
  101. data/lib/wx/doc/gen/grid/grid_table_message.rb +2 -0
  102. data/lib/wx/doc/gen/grid_bag_sizer.rb +4 -0
  103. data/lib/wx/doc/gen/help_controller.rb +4 -1
  104. data/lib/wx/doc/gen/html/html_cell.rb +4 -1
  105. data/lib/wx/doc/gen/html/html_help_controller.rb +4 -1
  106. data/lib/wx/doc/gen/html/html_help_data.rb +4 -0
  107. data/lib/wx/doc/gen/html/html_help_window.rb +2 -1
  108. data/lib/wx/doc/gen/html/html_list_box.rb +138 -11
  109. data/lib/wx/doc/gen/html/html_window.rb +9 -3
  110. data/lib/wx/doc/gen/icon.rb +7 -1
  111. data/lib/wx/doc/gen/icon_location.rb +2 -0
  112. data/lib/wx/doc/gen/image.rb +15 -8
  113. data/lib/wx/doc/gen/keyboard_state.rb +6 -0
  114. data/lib/wx/doc/gen/list_box.rb +0 -11
  115. data/lib/wx/doc/gen/list_ctrl.rb +10 -13
  116. data/lib/wx/doc/gen/locale.rb +7 -3
  117. data/lib/wx/doc/gen/log.rb +6 -2
  118. data/lib/wx/doc/gen/mdi_frame.rb +2 -0
  119. data/lib/wx/doc/gen/media_ctrl.rb +2 -0
  120. data/lib/wx/doc/gen/memory_dc.rb +105 -18
  121. data/lib/wx/doc/gen/menu.rb +4 -2
  122. data/lib/wx/doc/gen/menu_bar.rb +0 -2
  123. data/lib/wx/doc/gen/menu_item.rb +9 -3
  124. data/lib/wx/doc/gen/message_dialog.rb +6 -3
  125. data/lib/wx/doc/gen/mirror_dc.rb +2 -8
  126. data/lib/wx/doc/gen/mouse_state.rb +2 -0
  127. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -2
  128. data/lib/wx/doc/gen/non_owned_window.rb +2 -1
  129. data/lib/wx/doc/gen/notebook.rb +4 -2
  130. data/lib/wx/doc/gen/paint_dc.rb +2 -6
  131. data/lib/wx/doc/gen/palette.rb +3 -3
  132. data/lib/wx/doc/gen/pen.rb +6 -1
  133. data/lib/wx/doc/gen/pg/pg_editor.rb +2 -1
  134. data/lib/wx/doc/gen/pg/pg_multi_button.rb +4 -0
  135. data/lib/wx/doc/gen/pg/pg_properties.rb +30 -3
  136. data/lib/wx/doc/gen/pg/pg_property.rb +30 -4
  137. data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
  138. data/lib/wx/doc/gen/pg/property_grid.rb +5 -2
  139. data/lib/wx/doc/gen/pg/property_grid_interface.rb +6 -2
  140. data/lib/wx/doc/gen/pg/property_grid_manager.rb +2 -0
  141. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -0
  142. data/lib/wx/doc/gen/picker_base.rb +2 -1
  143. data/lib/wx/doc/gen/platform_info.rb +4 -1
  144. data/lib/wx/doc/gen/property_sheet_dialog.rb +2 -0
  145. data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -8
  146. data/lib/wx/doc/gen/prt/print_data.rb +6 -0
  147. data/lib/wx/doc/gen/prt/printer.rb +0 -3
  148. data/lib/wx/doc/gen/prt/printer_dc.rb +2 -6
  149. data/lib/wx/doc/gen/radio_box.rb +2 -2
  150. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +6 -0
  151. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +1 -1
  152. data/lib/wx/doc/gen/region.rb +2 -0
  153. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -0
  154. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -4
  155. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +2 -0
  156. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -1
  157. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -0
  158. data/lib/wx/doc/gen/screen_dc.rb +2 -0
  159. data/lib/wx/doc/gen/scroll_bar.rb +2 -1
  160. data/lib/wx/doc/gen/scrolled_canvas.rb +4 -8
  161. data/lib/wx/doc/gen/scrolled_control.rb +4 -8
  162. data/lib/wx/doc/gen/scrolled_window.rb +4 -8
  163. data/lib/wx/doc/gen/search_ctrl.rb +131 -0
  164. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -2
  165. data/lib/wx/doc/gen/sizer.rb +14 -3
  166. data/lib/wx/doc/gen/splash_screen.rb +2 -0
  167. data/lib/wx/doc/gen/static_box.rb +6 -3
  168. data/lib/wx/doc/gen/static_box_sizer.rb +2 -1
  169. data/lib/wx/doc/gen/status_bar.rb +0 -5
  170. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4 -5
  171. data/lib/wx/doc/gen/svg_file_dc.rb +10 -11
  172. data/lib/wx/doc/gen/text_ctrl.rb +10 -3
  173. data/lib/wx/doc/gen/text_entry.rb +8 -3
  174. data/lib/wx/doc/gen/text_entry_dialog.rb +4 -2
  175. data/lib/wx/doc/gen/timer_event.rb +2 -0
  176. data/lib/wx/doc/gen/tool_bar.rb +8 -4
  177. data/lib/wx/doc/gen/top_level_window.rb +5 -2
  178. data/lib/wx/doc/gen/tree_ctrl.rb +0 -6
  179. data/lib/wx/doc/gen/ui_action_simulator.rb +100 -0
  180. data/lib/wx/doc/gen/utils.rb +1 -1
  181. data/lib/wx/doc/gen/v_list_box.rb +36 -26
  182. data/lib/wx/doc/gen/validator.rb +2 -1
  183. data/lib/wx/doc/gen/variant.rb +10 -0
  184. data/lib/wx/doc/gen/window.rb +38 -17
  185. data/lib/wx/doc/gen/window_dc.rb +2 -0
  186. data/lib/wx/doc/gen/window_disabler.rb +2 -0
  187. data/lib/wx/doc/gen/wizard_page_simple.rb +2 -0
  188. data/lib/wx/doc/gen/xml_node.rb +6 -0
  189. data/lib/wx/doc/gen/xml_resource.rb +4 -1
  190. data/lib/wx/doc/memory_dc.rb +75 -0
  191. data/lib/wx/doc/mirror_dc.rb +16 -0
  192. data/lib/wx/doc/prt/printer_dc.rb +26 -0
  193. data/lib/wx/doc/screen_dc.rb +10 -6
  194. data/lib/wx/doc/svg_file_dc.rb +20 -0
  195. data/lib/wx/doc/v_list_box.rb +9 -0
  196. data/lib/wx/doc/window_disabler.rb +10 -0
  197. data/lib/wx/global_const.rb +24 -18
  198. data/lib/wx/html/keyword_defs.rb +6 -7
  199. data/lib/wx/html/require.rb +1 -0
  200. data/lib/wx/html/simple_html_listbox.rb +105 -0
  201. data/lib/wx/keyword_defs.rb +7 -0
  202. data/lib/wx/version.rb +1 -1
  203. data/lib/wx/wxruby/cmd/test.rb +1 -1
  204. data/lib/wxruby_aui.so +0 -0
  205. data/lib/wxruby_core.so +0 -0
  206. data/lib/wxruby_grid.so +0 -0
  207. data/lib/wxruby_html.so +0 -0
  208. data/lib/wxruby_pg.so +0 -0
  209. data/lib/wxruby_prt.so +0 -0
  210. data/lib/wxruby_rbn.so +0 -0
  211. data/lib/wxruby_rtc.so +0 -0
  212. data/lib/wxruby_stc.so +0 -0
  213. data/rakelib/install.rb +3 -1
  214. data/rakelib/yard/yard/relative_markdown_links.rb +5 -1
  215. data/samples/bigdemo/wxArtProvider.rbw +5 -4
  216. data/samples/controls/controls.rb +2 -2
  217. data/samples/controls/htlbox.rb +411 -0
  218. data/samples/controls/tn_htlbox.png +0 -0
  219. data/samples/drawing/graphics_drawing.rb +1 -2
  220. data/samples/drawing/{svgtest.rb → image_prt.rb} +49 -18
  221. data/samples/drawing/tn_image_prt.png +0 -0
  222. data/samples/propgrid/propgrid.rb +23 -21
  223. data/samples/ribbon/ribbon.rb +47 -46
  224. data/tests/lib/wxapp_runner.rb +3 -3
  225. data/tests/lib/wxframe_runner.rb +59 -0
  226. data/tests/test_app_event_filter.rb +74 -0
  227. data/tests/test_art_provider.rb +52 -0
  228. data/tests/test_clipboard.rb +2 -1
  229. data/tests/test_event_handling.rb +199 -16
  230. data/tests/test_events.rb +4 -11
  231. data/tests/test_gdi_object.rb +161 -0
  232. data/tests/test_intl.rb +11 -14
  233. data/tests/test_item_data.rb +33 -1
  234. data/tests/test_std_controls.rb +147 -0
  235. metadata +38 -8
  236. data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +0 -47
  237. data/lib/wx/doc/gen/buffered_dc.rb +0 -95
  238. data/lib/wx/doc/gen/buffered_paint_dc.rb +0 -55
  239. data/lib/wx/doc/gen/colour_data.rb +0 -96
  240. data/samples/drawing/tn_svgtest.png +0 -0
@@ -1430,7 +1430,7 @@ module Wx
1430
1430
 
1431
1431
  # Virtual keycodes used by {Wx::KeyEvent} and some other wxWidgets functions.
1432
1432
  #
1433
- # Note that the range 0..255 corresponds to the characters of the current locale, in particular the 32..127 subrange is for the ASCII symbols, and all the special key values such as WXK_END lie above this range.
1433
+ # Note that the range 0..255 corresponds to the characters of the current locale, in particular the 32..127 subrange is for the ASCII symbols, and all the special key values such as {Wx::K_END} lie above this range.
1434
1434
  #
1435
1435
  class KeyCode < Wx::Enum
1436
1436
 
@@ -1598,11 +1598,11 @@ module Wx
1598
1598
  #
1599
1599
  K_ALT = Wx::KeyCode.new(307)
1600
1600
 
1601
- # Note that under macOS, to improve compatibility with other systems, 'WXK_CONTROL' represents the 'Command' key.
1601
+ # Note that under macOS, to improve compatibility with other systems, '{Wx::K_CONTROL}' represents the 'Command' key.
1602
1602
  #
1603
1603
  K_CONTROL = Wx::KeyCode.new(308)
1604
1604
 
1605
- # Under macOS, where the 'Command' key is mapped to 'Control' to improve compatibility with other systems, WXK_RAW_CONTROL may be used to obtain the state of the actual 'Control' key ('WXK_CONTROL' would obtain the status of the 'Command' key).
1605
+ # Under macOS, where the 'Command' key is mapped to 'Control' to improve compatibility with other systems, {Wx::K_RAW}_CONTROL may be used to obtain the state of the actual 'Control' key ('{Wx::K_CONTROL}' would obtain the status of the 'Command' key).
1606
1606
  #
1607
1607
  K_RAW_CONTROL = Wx::KeyCode.new(308)
1608
1608
 
@@ -2787,42 +2787,5 @@ module Wx
2787
2787
  #
2788
2788
  DEFAULT_COORD = -1
2789
2789
 
2790
- # A function which deletes and nulls the pointer.
2791
- # This function uses operator delete to free the pointer and also sets it to NULL. Notice that this does not work for arrays, use {deletea} for them.
2792
- #
2793
- # MyClass *ptr = new MyClass;
2794
- # ...
2795
- # wxDELETE(ptr);
2796
- # wxASSERT(!ptr);
2797
- # @param ptr [T]
2798
- # @return [void]
2799
- def self.delete(ptr) end
2800
-
2801
- # A function which deletes and nulls the pointer.
2802
- # This function uses vector operator delete (delete[]) to free the array pointer and also sets it to NULL. Notice that this does not work for non-array pointers, use {delete} for them.
2803
- #
2804
- # MyClass *array = new MyClass[17];
2805
- # ...
2806
- # wxDELETEA(array);
2807
- # wxASSERT(!array);
2808
- # @see delete
2809
- # @param array [T]
2810
- # @return [void]
2811
- def self.deletea(array) end
2812
-
2813
- # Swaps the contents of two variables.
2814
- # This is similar to std::swap() but can be used even on the platforms where the standard C++ library is not available (if you don't target such platforms, please use std::swap() instead).
2815
- # The function relies on type T being copy constructible and assignable.
2816
- # Example of use:
2817
- #
2818
- # int x = 3,
2819
- # y = 4;
2820
- # wxSwap(x, y);
2821
- # wxASSERT( x == 4 && y == 3 );
2822
- # @param first [T]
2823
- # @param second [T]
2824
- # @return [void]
2825
- def self.swap(first, second) end
2826
-
2827
2790
 
2828
2791
  end
@@ -53,28 +53,32 @@ module Wx
53
53
  # == Modal and Modeless
54
54
  #
55
55
  # There are two kinds of dialog, modal and modeless. A modal dialog blocks program flow and user input on other windows until it is dismissed, whereas a modeless dialog behaves more like a frame in that program flow continues, and input in other windows is still possible. To show a modal dialog you should use the {Wx::Dialog#show_modal} method while to show a dialog modelessly you simply use {Wx::Dialog#show}, just as with frames.
56
- # Note that the modal dialog is one of the very few examples of {Wx::Window}-derived objects which may be created on the stack and not on the heap. In other words, while most windows would be created like this:
56
+ # Note that dialogs need to be explicitly destroyed when closed and not used anymore. The traditional code for this would be like:
57
57
  #
58
- # void AskUser()
59
- # {
60
- # MyAskDialog *dlg = new MyAskDialog(...);
61
- # if ( dlg->ShowModal() == wxID_OK )
62
- # // ...
63
- # //else: dialog was cancelled or some another button pressed
58
+ # ```ruby
59
+ # def ask_user
60
+ # dlg = MyAskDialog.new(...)
61
+ # if dlg.show_modal == Wx::ID_OK
62
+ # # ...
63
+ # #else: dialog was cancelled or some another button pressed
64
+ # end
64
65
  #
65
- # dlg->Destroy();
66
- # }
66
+ # dlg.destroy
67
+ # end
68
+ # ```
67
69
  #
68
70
  # You can achieve the same result with dialogs by using simpler code:
69
71
  #
70
- # void AskUser()
71
- # {
72
- # MyAskDialog dlg(...);
73
- # if ( dlg.ShowModal() == wxID_OK )
74
- # // ...
75
- #
76
- # // no need to call Destroy() here
77
- # }
72
+ # ```ruby
73
+ # def ask_user
74
+ # MyAskDialog(...) do |dlg|
75
+ # if dlg.show_modal == Wx::ID_OK
76
+ # # ...
77
+ # #else: dialog was cancelled or some another button pressed
78
+ # end
79
+ # end
80
+ # end
81
+ # ```
78
82
  #
79
83
  # An application can define a {Wx::CloseEvent} handler for the dialog to respond to system close events.
80
84
  # === Styles
@@ -40,11 +40,12 @@ module Wx
40
40
  # The arguments have the same meaning as those of {Wx::DirDialog#initialize}. The message is displayed at the top, and the default_path, if specified, is set as the initial selection.
41
41
  # The application must check for an empty return value (if the user pressed Cancel). For example:
42
42
  #
43
- # const wxString& dir = wxDirSelector("Choose a folder");
44
- # if ( !dir.empty() )
45
- # {
46
- # ...
47
- # }
43
+ # ```ruby
44
+ # dir = Wx.dir_selector('Choose a folder')
45
+ # unless dir.empty?
46
+ # ...
47
+ # end
48
+ # ```
48
49
  # @param message [String]
49
50
  # @param default_path [String]
50
51
  # @param style [Integer]
@@ -65,9 +66,10 @@ module Wx
65
66
  # - {Wx::DD_SHOW_HIDDEN}: Show hidden and system folders. This flag is only available since wxWidgets 3.1.4
66
67
  #
67
68
  # Notice that {Wx::RESIZE_BORDER} has special side effect under Windows where two different directory selection dialogs are available and this style also implicitly selects the new version as the old one always has fixed size. As the new version is almost always preferable, it is recommended that {Wx::RESIZE_BORDER} style be always used. This is the case if the dialog is created with the default style value but if you need to use any additional styles you should still specify {Wx::DD_DEFAULT_STYLE} unless you explicitly need to use the old dialog version under Windows. E.g. do
68
- #
69
- # wxDirDialog dlg(NULL, "Choose input directory", "",
70
- # wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST);
69
+ # ```ruby
70
+ # Wx::DirDialog(nil, 'Choose input directory', '',
71
+ # Wx::DD_DEFAULT_STYLE | Wx::DD_DIR_MUST_EXIST)
72
+ # ```
71
73
  # instead of just using {Wx::DD_DIR_MUST_EXIST} style alone.
72
74
  # MacOS 10.11+ does not display a title bar on the dialog. Use {Wx::DirDialog#set_message} to change the string displayed to the user at the top of the dialog after creation. The {Wx::DirDialog#set_title} method is provided for compatibility with pre-10.11 MacOS versions that do still support displaying the title bar.
73
75
  #
@@ -80,7 +80,7 @@ module Wx
80
80
  #
81
81
  K_CATEGORY_CUT = Wx::KeyCategoryFlags.new(16)
82
82
 
83
- # union of WXK_CATEGORY_ARROW, WXK_CATEGORY_PAGING, and WXK_CATEGORY_JUMP categories
83
+ # union of {Wx::K_CATEGORY}_ARROW, {Wx::K_CATEGORY}_PAGING, and {Wx::K_CATEGORY}_JUMP categories
84
84
  #
85
85
  K_CATEGORY_NAVIGATION = Wx::KeyCategoryFlags.new(7)
86
86
 
@@ -697,7 +697,7 @@ module Wx
697
697
  # An event is a structure holding information about an event passed to a callback or member function.
698
698
  # {Wx::Event} used to be a multipurpose event object, and is an abstract base class for other event classes (see below).
699
699
  # For more information about events, see the Events and Event Handling overview.
700
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} custom event classes should be derived from Wx::PlEvent and Wx::PlCommandEvent.
700
+ #
701
701
  # ===
702
702
  #
703
703
  # Category: {Wx::Events}
@@ -0,0 +1,49 @@
1
+ # :stopdoc:
2
+ # This file is automatically generated by the WXRuby3 documentation
3
+ # generator. Do not alter this file.
4
+ # :startdoc:
5
+
6
+
7
+ module Wx
8
+
9
+ # This class is a special event handler which allows discarding any event (or a set of event types) directed to a specific window.
10
+ # Example:
11
+ #
12
+ # ```
13
+ # void MyWindow::DoSomething()
14
+ # {
15
+ # {
16
+ # // block all events directed to this window while
17
+ # // we do the 1000 FunctionWhichSendsEvents() calls
18
+ # wxEventBlocker blocker(this);
19
+ #
20
+ # for ( int i = 0; i 1000; i++ )
21
+ # FunctionWhichSendsEvents(i);
22
+ #
23
+ # } // ~wxEventBlocker called, old event handler is restored
24
+ #
25
+ # // the event generated by this call will be processed:
26
+ # FunctionWhichSendsEvents(0)
27
+ # }
28
+ # ```
29
+ #
30
+ # ===
31
+ #
32
+ # Category: {Wx::Events}
33
+ # @see How Events are Processed
34
+ # @see Wx::EvtHandler
35
+ #
36
+ #
37
+ #
38
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
39
+ class EventBlocker < EvtHandler
40
+
41
+ # Adds to the list of event types which should be blocked the given eventType.
42
+ # @param eventType [Integer]
43
+ # @return [void]
44
+ def block(eventType) end
45
+
46
+ end # EventBlocker
47
+
48
+
49
+ end
@@ -0,0 +1,95 @@
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 global event filter for pre-processing all the events generated in the program.
10
+ # This is a very simple class which just provides {Wx::EventFilter#filter_event} virtual method to be called by {Wx::EvtHandler} before starting process of any event. Thus, inheriting from this class and overriding {Wx::EventFilter#filter_event} allows capturing and possibly handling or ignoring all the events happening in the program. Of course, having event filters adds additional overhead to every event processing and so should not be used lightly and your {Wx::EventFilter#filter_event} code should try to return as quickly as possible, especially for the events it is not interested in.
11
+ # An example of using this class:
12
+ # ```
13
+ # // This class allows determining the last time the user has worked with
14
+ # // this application:
15
+ # class LastActivityTimeDetector : public wxEventFilter
16
+ # {
17
+ # public:
18
+ # LastActivityTimeDetector()
19
+ # {
20
+ # wxEvtHandler::AddFilter(this);
21
+ #
22
+ # m_last = wxDateTime::Now();
23
+ # }
24
+ #
25
+ # virtual ~LastActivityTimeDetector()
26
+ # {
27
+ # wxEvtHandler::RemoveFilter(this);
28
+ # }
29
+ #
30
+ # virtual int FilterEvent(wxEvent& event)
31
+ # {
32
+ # // Update the last user activity
33
+ # const wxEventType t = event.GetEventType();
34
+ # if ( t == wxEVT_KEY_DOWN || t == wxEVT_MOTION ||
35
+ # t == wxEVT_LEFT_DOWN ||
36
+ # t == wxEVT_RIGHT_DOWN ||
37
+ # t == wxEVT_MIDDLE_DOWN )
38
+ # {
39
+ # m_last = wxDateTime::Now();
40
+ # }
41
+ #
42
+ # // Continue processing the event normally as well.
43
+ # return Event_Skip;
44
+ # }
45
+ #
46
+ # // This function could be called periodically from some timer to
47
+ # // do something (e.g. hide sensitive data or log out from remote
48
+ # // server) if the user has been inactive for some time period.
49
+ # bool IsInactiveFor(const wxTimeSpan& diff) const
50
+ # {
51
+ # return wxDateTime::Now() - diff > m_last;
52
+ # }
53
+ #
54
+ # private:
55
+ # wxDateTime m_last;
56
+ # };
57
+ # ```
58
+ #
59
+ # Notice that {Wx::App} derives from {Wx::EventFilter} and is registered as an event filter during its creation so you may also override {Wx::EventFilter#filter_event} method in your {Wx::App}-derived class and, in fact, this is often the most convenient way to do it. However creating a new class deriving directly from {Wx::EventFilter} allows isolating the event filtering code in its own separate class and also having several independent filters, if necessary.
60
+ # Category: {Wx::Events}
61
+ #
62
+ #
63
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
64
+ class EventFilter < ::Object
65
+
66
+ # Process event as usual.
67
+ #
68
+ Event_Skip = -1
69
+
70
+ # Don't process the event normally at all.
71
+ #
72
+ Event_Ignore = 0
73
+
74
+ # Event was already handled, don't process it normally.
75
+ #
76
+ Event_Processed = 1
77
+
78
+ # Default constructor.
79
+ # Constructor does not register this filter using {Wx::EvtHandler.add_filter}, it's your responsibility to do it when necessary.
80
+ # Notice that the objects of this class can't be copied.
81
+ # @return [EventFilter]
82
+ def initialize; end
83
+
84
+ # Override this method to implement event pre-processing.
85
+ # This method allows filtering all the events processed by the program, so you should try to return quickly from it to avoid slowing down the program to a crawl.
86
+ # Although the return type of this method is int, this is only due to backwards compatibility concerns and the actual return value must be one of the Event_XXX constants defined above:
87
+ # - Event_Skip to continue processing the event normally (this should be used in most cases).- Event_Ignore to not process this event at all (this can be used to suppress some events).- Event_Processed to not process this event normally but indicate that it was already processed by the event filter and so no default processing should take place either (this should only be used if the filter really did process the event).
88
+ # @param event [Wx::Event]
89
+ # @return [Integer]
90
+ def filter_event(event) end
91
+
92
+ end # EventFilter
93
+
94
+
95
+ end
@@ -1130,7 +1130,7 @@ class Wx::EvtHandler
1130
1130
  # @yieldparam [Wx::CommandEvent] event the event to handle
1131
1131
  def evt_choice(id, meth = nil, &block) end
1132
1132
 
1133
- # Process a {Wx::EVT_COMBOBOX} event, when an item on the list is selected. Note that calling {Wx::ComboBox#get_value} returns the new value of selection.
1133
+ # Process a {Wx::EVT_COMBOBOX} event, when an item on the list is selected.
1134
1134
  # @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
1135
1135
  # @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
1136
1136
  # @yieldparam [Wx::CommandEvent] event the event to handle
@@ -1199,7 +1199,7 @@ class Wx::EvtHandler
1199
1199
  # @yieldparam [Wx::CommandEvent] event the event to handle
1200
1200
  def evt_text(id, meth = nil, &block) end
1201
1201
 
1202
- # Process a {Wx::EVT_TEXT_ENTER} event, when RETURN is pressed in the combobox (notice that the combobox must have been created with {Wx::TE_PROCESS_ENTER} style to receive this event).
1202
+ # Process a {Wx::EVT_TEXT_ENTER} event, when RETURN is pressed in the combobox.
1203
1203
  # @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
1204
1204
  # @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
1205
1205
  # @yieldparam [Wx::CommandEvent] event the event to handle
@@ -1330,6 +1330,20 @@ class Wx::EvtHandler
1330
1330
  # @yieldparam [Wx::BookCtrlEvent] event the event to handle
1331
1331
  def evt_notebook_page_changing(id, meth = nil, &block) end
1332
1332
 
1333
+ # Respond to a {Wx::EVT_SEARCH} event, generated when the search button is clicked. Note that this does not initiate a search on its own, you need to perform the appropriate action in your event handler. You may use
1334
+ # Processes a {Wx::EVT_SEARCH} event.
1335
+ # @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
1336
+ # @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
1337
+ # @yieldparam [Wx::CommandEvent] event the event to handle
1338
+ def evt_search(id, meth = nil, &block) end
1339
+
1340
+ # Respond to a {Wx::EVT_SEARCH_CANCEL} event, generated when the cancel button is clicked.
1341
+ # Processes a {Wx::EVT_SEARCH_CANCEL} event.
1342
+ # @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
1343
+ # @param [String,Symbol,Method,Proc] meth (name of) method or handler proc
1344
+ # @yieldparam [Wx::CommandEvent] event the event to handle
1345
+ def evt_search_cancel(id, meth = nil, &block) end
1346
+
1333
1347
  # Process a {Wx::EVT_SPINCTRL} event, which is generated whenever the numeric value of the spin control is updated.
1334
1348
  # @param [Integer,Wx::Enum,Wx::Window,Wx::MenuItem,Wx::ToolBarTool,Wx::Timer] id window/control id
1335
1349
  # @param [String,Symbol,Method,Proc] meth (name of) method or handler proc