wxruby3 0.9.0.pre.beta.14-x64-mingw-ucrt → 0.9.0.pre.rc.2-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (278) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/INSTALL.md +51 -22
  4. data/README.md +81 -6
  5. data/assets/hello_button-macos.png +0 -0
  6. data/assets/hello_button-msw.png +0 -0
  7. data/assets/hello_button.png +0 -0
  8. data/assets/hello_button_clicked-macos.png +0 -0
  9. data/assets/hello_button_clicked-msw.png +0 -0
  10. data/assets/hello_button_clicked.png +0 -0
  11. data/assets/hello_button_clicked_combi.png +0 -0
  12. data/assets/hello_world-macos.png +0 -0
  13. data/assets/hello_world-msw.png +0 -0
  14. data/assets/hello_world.png +0 -0
  15. data/assets/hello_world_combi.png +0 -0
  16. data/assets/repo-social-preview.png +0 -0
  17. data/ext/wxbase32u_gcc_custom.dll +0 -0
  18. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  19. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  23. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  24. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  25. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  26. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  27. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  28. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  29. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  30. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  31. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  32. data/lib/wx/core/art_locator.rb +2 -2
  33. data/lib/wx/core/artprovider.rb +2 -2
  34. data/lib/wx/core/bitmap.rb +6 -5
  35. data/lib/wx/core/bitmap_combobox.rb +34 -0
  36. data/lib/wx/core/brush.rb +6 -0
  37. data/lib/wx/core/controlwithitems.rb +52 -14
  38. data/lib/wx/core/cursor.rb +1 -1
  39. data/lib/wx/core/dc.rb +0 -20
  40. data/lib/wx/core/event_blocker.rb +14 -0
  41. data/lib/wx/core/events/evt_list.rb +19 -0
  42. data/lib/wx/core/evthandler.rb +48 -2
  43. data/lib/wx/core/find_replace_dialog.rb +24 -0
  44. data/lib/wx/core/font.rb +22 -14
  45. data/lib/wx/core/helpprovider.rb +2 -2
  46. data/lib/wx/core/icon.rb +1 -1
  47. data/lib/wx/core/image.rb +1 -1
  48. data/lib/wx/core/menu.rb +5 -0
  49. data/lib/wx/core/paintdc.rb +8 -0
  50. data/lib/wx/core/pen.rb +6 -0
  51. data/lib/wx/core/text_entry.rb +15 -0
  52. data/lib/wx/core/v_list_box.rb +13 -0
  53. data/lib/wx/core/window.rb +29 -2
  54. data/lib/wx/doc/app.rb +40 -0
  55. data/lib/wx/doc/brush.rb +17 -0
  56. data/lib/wx/doc/busy_info.rb +21 -0
  57. data/lib/wx/doc/client_dc.rb +28 -0
  58. data/lib/wx/doc/controlwithitems.rb +11 -0
  59. data/lib/wx/doc/dc.rb +0 -14
  60. data/lib/wx/doc/event_blocker.rb +27 -0
  61. data/lib/wx/doc/evthandler.rb +4 -0
  62. data/lib/wx/doc/extra/02_lifecycles.md +49 -0
  63. data/lib/wx/doc/extra/10_art.md +1 -1
  64. data/lib/wx/doc/extra/11_drawing_and_dc.md +62 -0
  65. data/lib/wx/doc/font.rb +27 -0
  66. data/lib/wx/doc/gen/about_dialog_info.rb +27 -24
  67. data/lib/wx/doc/gen/accelerator.rb +11 -12
  68. data/lib/wx/doc/gen/activity_indicator.rb +65 -0
  69. data/lib/wx/doc/gen/app.rb +6 -3
  70. data/lib/wx/doc/gen/art_provider.rb +53 -29
  71. data/lib/wx/doc/gen/aui/aui_manager.rb +4 -0
  72. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +1 -1
  73. data/lib/wx/doc/gen/aui/aui_pane_info.rb +2 -0
  74. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -0
  75. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +2 -2
  76. data/lib/wx/doc/gen/bitmap.rb +25 -25
  77. data/lib/wx/doc/gen/bitmap_combo_box.rb +157 -0
  78. data/lib/wx/doc/gen/box_sizer.rb +6 -8
  79. data/lib/wx/doc/gen/brush.rb +2 -0
  80. data/lib/wx/doc/gen/busy_info.rb +52 -46
  81. data/lib/wx/doc/gen/caret.rb +0 -4
  82. data/lib/wx/doc/gen/check_list_box.rb +0 -2
  83. data/lib/wx/doc/gen/choice.rb +1 -5
  84. data/lib/wx/doc/gen/client_dc.rb +13 -18
  85. data/lib/wx/doc/gen/clipboard.rb +30 -27
  86. data/lib/wx/doc/gen/collapsible_pane.rb +11 -9
  87. data/lib/wx/doc/gen/colour.rb +6 -3
  88. data/lib/wx/doc/gen/colour_dialog.rb +111 -23
  89. data/lib/wx/doc/gen/combo_box.rb +2 -4
  90. data/lib/wx/doc/gen/context_help_button.rb +48 -0
  91. data/lib/wx/doc/gen/control.rb +20 -18
  92. data/lib/wx/doc/gen/core.rb +2 -2
  93. data/lib/wx/doc/gen/cursor.rb +18 -50
  94. data/lib/wx/doc/gen/data_format.rb +0 -2
  95. data/lib/wx/doc/gen/data_object.rb +37 -44
  96. data/lib/wx/doc/gen/dc.rb +16 -24
  97. data/lib/wx/doc/gen/defs.rb +3 -40
  98. data/lib/wx/doc/gen/dialog.rb +21 -17
  99. data/lib/wx/doc/gen/dir_dialog.rb +10 -8
  100. data/lib/wx/doc/gen/event.rb +2 -2
  101. data/lib/wx/doc/gen/event_blocker.rb +51 -0
  102. data/lib/wx/doc/gen/event_filter.rb +88 -0
  103. data/lib/wx/doc/gen/event_list.rb +23 -2
  104. data/lib/wx/doc/gen/events.rb +103 -112
  105. data/lib/wx/doc/gen/evt_handler.rb +28 -52
  106. data/lib/wx/doc/gen/file_dialog.rb +53 -50
  107. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  108. data/lib/wx/doc/gen/font.rb +19 -2
  109. data/lib/wx/doc/gen/font_data.rb +2 -0
  110. data/lib/wx/doc/gen/font_dialog.rb +1 -1
  111. data/lib/wx/doc/gen/frame.rb +4 -3
  112. data/lib/wx/doc/gen/fs_file.rb +8 -0
  113. data/lib/wx/doc/gen/gcdc.rb +2 -22
  114. data/lib/wx/doc/gen/gdi_common.rb +18 -2
  115. data/lib/wx/doc/gen/gdi_object.rb +2 -0
  116. data/lib/wx/doc/gen/graphics_context.rb +4 -43
  117. data/lib/wx/doc/gen/graphics_object.rb +2 -0
  118. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
  119. data/lib/wx/doc/gen/grid/grid_ctrl.rb +4 -2
  120. data/lib/wx/doc/gen/grid/grid_table_message.rb +2 -0
  121. data/lib/wx/doc/gen/grid_bag_sizer.rb +4 -0
  122. data/lib/wx/doc/gen/help_controller.rb +4 -1
  123. data/lib/wx/doc/gen/html/html_cell.rb +4 -1
  124. data/lib/wx/doc/gen/html/html_help_controller.rb +4 -1
  125. data/lib/wx/doc/gen/html/html_help_data.rb +4 -0
  126. data/lib/wx/doc/gen/html/html_help_window.rb +2 -1
  127. data/lib/wx/doc/gen/html/html_list_box.rb +138 -11
  128. data/lib/wx/doc/gen/html/html_window.rb +9 -3
  129. data/lib/wx/doc/gen/hyperlink_ctrl.rb +147 -0
  130. data/lib/wx/doc/gen/hyperlink_event.rb +43 -0
  131. data/lib/wx/doc/gen/icon.rb +7 -1
  132. data/lib/wx/doc/gen/icon_location.rb +2 -0
  133. data/lib/wx/doc/gen/image.rb +15 -8
  134. data/lib/wx/doc/gen/keyboard_state.rb +6 -0
  135. data/lib/wx/doc/gen/list_box.rb +0 -11
  136. data/lib/wx/doc/gen/list_ctrl.rb +10 -13
  137. data/lib/wx/doc/gen/locale.rb +7 -3
  138. data/lib/wx/doc/gen/log.rb +6 -2
  139. data/lib/wx/doc/gen/mdi_frame.rb +2 -0
  140. data/lib/wx/doc/gen/media_ctrl.rb +2 -0
  141. data/lib/wx/doc/gen/memory_dc.rb +105 -18
  142. data/lib/wx/doc/gen/menu.rb +4 -2
  143. data/lib/wx/doc/gen/menu_bar.rb +0 -8
  144. data/lib/wx/doc/gen/menu_item.rb +9 -3
  145. data/lib/wx/doc/gen/message_dialog.rb +6 -3
  146. data/lib/wx/doc/gen/mirror_dc.rb +2 -8
  147. data/lib/wx/doc/gen/mouse_state.rb +2 -0
  148. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -2
  149. data/lib/wx/doc/gen/non_owned_window.rb +2 -1
  150. data/lib/wx/doc/gen/notebook.rb +4 -2
  151. data/lib/wx/doc/gen/paint_dc.rb +2 -6
  152. data/lib/wx/doc/gen/palette.rb +3 -3
  153. data/lib/wx/doc/gen/pen.rb +6 -1
  154. data/lib/wx/doc/gen/pg/pg_editor.rb +2 -1
  155. data/lib/wx/doc/gen/pg/pg_multi_button.rb +4 -0
  156. data/lib/wx/doc/gen/pg/pg_properties.rb +30 -3
  157. data/lib/wx/doc/gen/pg/pg_property.rb +30 -4
  158. data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
  159. data/lib/wx/doc/gen/pg/property_grid.rb +5 -2
  160. data/lib/wx/doc/gen/pg/property_grid_interface.rb +6 -2
  161. data/lib/wx/doc/gen/pg/property_grid_manager.rb +2 -0
  162. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -0
  163. data/lib/wx/doc/gen/picker_base.rb +2 -1
  164. data/lib/wx/doc/gen/platform_info.rb +4 -1
  165. data/lib/wx/doc/gen/property_sheet_dialog.rb +2 -0
  166. data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -8
  167. data/lib/wx/doc/gen/prt/print_data.rb +6 -0
  168. data/lib/wx/doc/gen/prt/printer.rb +0 -3
  169. data/lib/wx/doc/gen/prt/printer_dc.rb +2 -6
  170. data/lib/wx/doc/gen/radio_box.rb +2 -10
  171. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +6 -0
  172. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +1 -1
  173. data/lib/wx/doc/gen/region.rb +2 -0
  174. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -0
  175. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -4
  176. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +2 -0
  177. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -1
  178. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -0
  179. data/lib/wx/doc/gen/screen_dc.rb +2 -0
  180. data/lib/wx/doc/gen/scroll_bar.rb +2 -1
  181. data/lib/wx/doc/gen/scrolled_canvas.rb +4 -8
  182. data/lib/wx/doc/gen/scrolled_control.rb +4 -8
  183. data/lib/wx/doc/gen/scrolled_window.rb +4 -8
  184. data/lib/wx/doc/gen/search_ctrl.rb +131 -0
  185. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -2
  186. data/lib/wx/doc/gen/sizer.rb +14 -3
  187. data/lib/wx/doc/gen/splash_screen.rb +2 -0
  188. data/lib/wx/doc/gen/static_box.rb +6 -3
  189. data/lib/wx/doc/gen/static_box_sizer.rb +2 -1
  190. data/lib/wx/doc/gen/status_bar.rb +0 -5
  191. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4 -5
  192. data/lib/wx/doc/gen/svg_file_dc.rb +10 -11
  193. data/lib/wx/doc/gen/text_ctrl.rb +10 -3
  194. data/lib/wx/doc/gen/text_entry.rb +8 -3
  195. data/lib/wx/doc/gen/text_entry_dialog.rb +4 -2
  196. data/lib/wx/doc/gen/timer_event.rb +2 -0
  197. data/lib/wx/doc/gen/tool_bar.rb +8 -4
  198. data/lib/wx/doc/gen/top_level_window.rb +5 -2
  199. data/lib/wx/doc/gen/tree_ctrl.rb +0 -6
  200. data/lib/wx/doc/gen/ui_action_simulator.rb +100 -0
  201. data/lib/wx/doc/gen/utils.rb +1 -1
  202. data/lib/wx/doc/gen/v_list_box.rb +36 -26
  203. data/lib/wx/doc/gen/validator.rb +2 -1
  204. data/lib/wx/doc/gen/variant.rb +10 -0
  205. data/lib/wx/doc/gen/window.rb +38 -17
  206. data/lib/wx/doc/gen/window_dc.rb +2 -0
  207. data/lib/wx/doc/gen/window_disabler.rb +2 -0
  208. data/lib/wx/doc/gen/wizard_page_simple.rb +2 -0
  209. data/lib/wx/doc/gen/xml_node.rb +6 -0
  210. data/lib/wx/doc/gen/xml_resource.rb +4 -1
  211. data/lib/wx/doc/memory_dc.rb +75 -0
  212. data/lib/wx/doc/mirror_dc.rb +16 -0
  213. data/lib/wx/doc/pen.rb +17 -0
  214. data/lib/wx/doc/prt/printer_dc.rb +26 -0
  215. data/lib/wx/doc/radio_box.rb +20 -0
  216. data/lib/wx/doc/screen_dc.rb +10 -6
  217. data/lib/wx/doc/svg_file_dc.rb +20 -0
  218. data/lib/wx/doc/v_list_box.rb +9 -0
  219. data/lib/wx/doc/window.rb +27 -0
  220. data/lib/wx/doc/window_disabler.rb +10 -0
  221. data/lib/wx/html/keyword_defs.rb +6 -7
  222. data/lib/wx/html/require.rb +1 -0
  223. data/lib/wx/html/simple_html_listbox.rb +105 -0
  224. data/lib/wx/keyword_defs.rb +83 -75
  225. data/lib/wx/prt/keyword_defs.rb +5 -1
  226. data/lib/wx/version.rb +1 -1
  227. data/lib/wx/wxruby/cmd/test.rb +1 -1
  228. data/lib/wxruby_aui.so +0 -0
  229. data/lib/wxruby_core.so +0 -0
  230. data/lib/wxruby_grid.so +0 -0
  231. data/lib/wxruby_html.so +0 -0
  232. data/lib/wxruby_pg.so +0 -0
  233. data/lib/wxruby_prt.so +0 -0
  234. data/lib/wxruby_rbn.so +0 -0
  235. data/lib/wxruby_rtc.so +0 -0
  236. data/lib/wxruby_stc.so +0 -0
  237. data/rakelib/install.rb +20 -7
  238. data/rakelib/lib/config/linux.rb +4 -2
  239. data/rakelib/lib/config/macosx.rb +120 -1
  240. data/rakelib/lib/config/mingw.rb +6 -1
  241. data/rakelib/lib/config/unixish.rb +26 -11
  242. data/rakelib/lib/config.rb +15 -6
  243. data/rakelib/yard/yard/relative_markdown_links.rb +5 -1
  244. data/samples/aui/aui.rb +432 -363
  245. data/samples/bigdemo/wxArtProvider.rbw +5 -4
  246. data/samples/controls/controls.rb +2 -2
  247. data/samples/controls/htlbox.rb +411 -0
  248. data/samples/controls/tn_htlbox.png +0 -0
  249. data/samples/drawing/graphics_drawing.rb +1 -2
  250. data/samples/drawing/{svgtest.rb → image_prt.rb} +49 -18
  251. data/samples/drawing/tn_image_prt.png +0 -0
  252. data/samples/propgrid/propgrid.rb +26 -21
  253. data/samples/ribbon/ribbon.rb +47 -46
  254. data/samples/sampler/editor.rb +33 -25
  255. data/samples/sampler/sample.rb +2 -2
  256. data/samples/sampler/stc_editor.rb +4 -2
  257. data/tests/lib/item_container_tests.rb +82 -0
  258. data/tests/lib/text_entry_tests.rb +80 -0
  259. data/tests/lib/wxapp_runner.rb +15 -3
  260. data/tests/lib/wxframe_runner.rb +144 -0
  261. data/tests/test_app_event_filter.rb +74 -0
  262. data/tests/test_art_provider.rb +52 -0
  263. data/tests/test_clipboard.rb +2 -1
  264. data/tests/test_event_handling.rb +199 -16
  265. data/tests/test_events.rb +4 -11
  266. data/tests/test_ext_controls.rb +28 -0
  267. data/tests/test_font.rb +239 -0
  268. data/tests/test_gdi_object.rb +161 -0
  269. data/tests/test_intl.rb +16 -15
  270. data/tests/test_item_data.rb +33 -1
  271. data/tests/test_std_controls.rb +373 -0
  272. data/tests/test_window.rb +340 -0
  273. metadata +61 -8
  274. data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +0 -47
  275. data/lib/wx/doc/gen/buffered_dc.rb +0 -95
  276. data/lib/wx/doc/gen/buffered_paint_dc.rb +0 -55
  277. data/lib/wx/doc/gen/colour_data.rb +0 -96
  278. data/samples/drawing/tn_svgtest.png +0 -0
@@ -101,6 +101,8 @@ module Wx
101
101
  # @see Wx::DC#set_brush
102
102
  #
103
103
  #
104
+ #
105
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
104
106
  class Brush < GDIObject
105
107
 
106
108
  # @overload set_colour(colour)
@@ -7,52 +7,55 @@
7
7
  module Wx
8
8
 
9
9
  # This class makes it easy to tell your user that the program is temporarily busy.
10
- # Normally the main thread should always return to the main loop to continue dispatching events as quickly as possible, hence this class shouldn't be needed. However if the main thread does need to block, this class provides a simple way to at least show this to the user: just create a {Wx::BusyInfo} object on the stack, and within the current scope, a message window will be shown.
10
+ # Normally the main thread should always return to the main loop to continue dispatching events as quickly as possible,
11
+ # hence this class shouldn't be needed. However if the main thread does need to block, this class provides a simple
12
+ # way to at least show this to the user: just call {Wx::BusyInfo.busy} with a block and for the duration of the
13
+ # execution of the block a message window will be shown.
11
14
  # For example:
15
+ # ```ruby
16
+ # BusyInfo.busy('Working, please wait...') do
17
+ # 100000.times { do_a_calculation }
18
+ # end
19
+ # ```
12
20
  #
13
- # wxBusyInfo wait("Please wait, working...");
14
- #
15
- # for (int i = 0; i < 100000; i++)
16
- # {
17
- # DoACalculation();
18
- # }
21
+ # The displayed window is rather plain by default but can be customized by passing {Wx::BusyInfo.busy} an object of
22
+ # {Wx::BusyInfoFlags} class instead of a simple message. Here is an example:
19
23
  #
20
- # It works by creating a window in the constructor, and deleting it in the destructor.
21
- # This window is rather plain by default but can be customized by passing {Wx::BusyInfo} constructor an object of {Wx::BusyInfoFlags} class instead of a simple message. Here is an example from the dialogs sample:
22
- #
23
- # wxBusyInfo info
24
- # (
25
- # wxBusyInfoFlags()
26
- # .Parent(this)
27
- # .Icon(wxArtProvider::GetIcon(wxART_PRINT,
28
- # wxART_OTHER, wxSize(128, 128)))
29
- # .Title("<b>Printing your document</b>")
30
- # .Text("Please wait...")
31
- # .Foreground(*wxWHITE)
32
- # .Background(*wxBLACK)
33
- # .Transparency(4*wxALPHA_OPAQUE/5)
34
- # );
24
+ # ```ruby
25
+ # Wx::BusyInfo.busy(
26
+ # Wx::BusyInfoFlags.new
27
+ # .parent(self)
28
+ # .icon(Wx::ArtProvider.get_icon(Wx::ART_PRINT,Wx::ART_OTHER, [128, 128]))
29
+ # .title("<b>Printing your document</b>")
30
+ # .text("Please wait...")
31
+ # .foreground(Wx::WHITE)
32
+ # .background(Wx::BLACK)
33
+ # .transparency(4*Wx::ALPHA_OPAQUE/5)) do |bi|
34
+ # end
35
+ # ```
35
36
  #
36
37
  # This shows that separate title and text can be set, and that simple markup ({Wx::Control#set_label_markup}) can be used in them, and that it's also possible to add an icon and customize the colours and transparency of the window.
37
- # You may also want to call {Wx::TheApp}->Yield() to refresh the window periodically (in case it had been obscured by other windows, for example) like this:
38
- #
39
- # wxWindowDisabler disableAll;
40
- # wxBusyInfo wait("Please wait, working...");
41
- #
42
- # for (int i = 0; i < 100000; i++)
43
- # {
44
- # DoACalculation();
45
- #
46
- # if ( !(i % 1000) )
47
- # wxTheApp->Yield();
48
- # }
38
+ # You may also want to call `Wx.get_app.yield` to refresh the window periodically (in case it had been obscured by other windows, for example) like this:
39
+ # ```ruby
40
+ # Wx::WindowDisabler.disable do
41
+ # BusyInfo.busy('Working, please wait...') do
42
+ # 100000.times do |i|
43
+ # do_a_calculation }
44
+ # Wx.get_app.yield if (i % 1000) == 0
45
+ # end
46
+ # end
47
+ # end
48
+ # ```
49
49
  #
50
- # but take care to not cause undesirable reentrancies when doing it (see {Wx::App::Yield} for more details). The simplest way to do it is to use {Wx::WindowDisabler} class as illustrated in the above example.
50
+ # but take care to not cause undesirable re-entrance when doing it (see {Wx::App#yield} for more details). The simplest way to do it is to use {Wx::WindowDisabler} class as illustrated in the above example.
51
51
  # Note that a {Wx::BusyInfo} is always built with the {Wx::STAY_ON_TOP} window style (see {Wx::Frame} window styles for more info).
52
- # ===
52
+ #
53
+ # ===
53
54
  #
54
55
  # Category: Common Dialogs
55
56
  #
57
+ #
58
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
56
59
  class BusyInfo < ::Object
57
60
 
58
61
  # Update the information text.
@@ -71,18 +74,21 @@ module Wx
71
74
  # Parameters for {Wx::BusyInfo}.
72
75
  # This class exists only in order to make passing attributes to {Wx::BusyInfo} constructor easier and the code doing it more readable.
73
76
  # All methods of this class return the reference to the object on which they are called, making it possible to chain them together, e.g. typically you would just create a temporary {Wx::BusyInfoFlags} object and then call the methods corresponding to the attributes you want to set, before finally passing the result to {Wx::BusyInfo} constructor, e.g.:
77
+ # ```ruby
78
+ # Wx::BusyInfo.busy(
79
+ # Wx::BusyInfoFlags.new
80
+ # .parent(self)
81
+ # .icon(Wx::ArtProvider.get_icon(Wx::ART_PRINT,Wx::ART_OTHER, [128, 128]))
82
+ # .title("<b>Printing your document</b>")
83
+ # .text("Please wait...")
84
+ # .foreground(Wx::WHITE)
85
+ # .background(Wx::BLACK)
86
+ # .transparency(4*Wx::ALPHA_OPAQUE/5)) do |bi|
87
+ # end
88
+ # ```
74
89
  #
75
- # wxBusyInfo info
76
- # (
77
- # wxBusyInfoFlags()
78
- # .Parent(window)
79
- # .Icon(icon)
80
- # .Title("Some text")
81
- # .Text("Some more text")
82
- # .Foreground(wxColour(...))
83
- # .Background(wxColour(...))
84
- # );
85
90
  #
91
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
86
92
  class BusyInfoFlags < ::Object
87
93
 
88
94
  # Default constructor initializes all attributes to default values.
@@ -33,15 +33,11 @@ module Wx
33
33
  def create(window, size) end
34
34
 
35
35
  # Get the caret position (in pixels).
36
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} there are two methods instead of a single overloaded method:
37
- # - {Wx::Caret#get_position}: returns a Wx::Point object.- GetPositionXY(): returns a 2-element list (x, y).
38
36
  # @return [Wx::Point]
39
37
  def get_position; end
40
38
  alias_method :position, :get_position
41
39
 
42
40
  # Get the caret size.
43
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} there are two methods instead of a single overloaded method:
44
- # - {Wx::Caret#get_size}: returns a Wx::Size object.- GetSizeWH(): returns a 2-element list (width, height).
45
41
  # @return [Wx::Size]
46
42
  def get_size; end
47
43
  alias_method :size, :get_size
@@ -31,7 +31,6 @@ module Wx
31
31
 
32
32
  # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("listBox"))
33
33
  # Constructor, creating and showing a list box.
34
- # <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
35
34
  # @param parent [Wx::Window] Parent window. Must not be NULL.
36
35
  # @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
37
36
  # @param pos [Array(Integer, Integer), Wx::Point] Window position. If {Wx::DEFAULT_POSITION} is specified then a default position is chosen.
@@ -43,7 +42,6 @@ module Wx
43
42
  # @return [CheckListBox]
44
43
  # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("listBox"))
45
44
  # Constructor, creating and showing a list box.
46
- # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
47
45
  # @param parent [Wx::Window] Parent window. Must not be NULL.
48
46
  # @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
49
47
  # @param pos [Array(Integer, Integer), Wx::Point] Window position.
@@ -54,7 +54,7 @@ module Wx
54
54
  # @return [Choice]
55
55
  # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ChoiceNameStr)
56
56
  # Constructor, creating and showing a choice.
57
- # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
57
+ #
58
58
  # @see Wx::Choice#create
59
59
  # @see Wx::Validator
60
60
  # @param parent [Wx::Window] Parent window. Must not be NULL.
@@ -87,10 +87,6 @@ module Wx
87
87
  def set_columns(n=1) end
88
88
  alias_method :columns=, :set_columns
89
89
 
90
- # @return [true,false]
91
- def is_sorted; end
92
- alias_method :sorted?, :is_sorted
93
-
94
90
  # Returns the number of items in the control.
95
91
  #
96
92
  # @see Wx::Choice#is_empty
@@ -8,18 +8,17 @@ module Wx
8
8
 
9
9
  # {Wx::ClientDC} is primarily useful for obtaining information about the window from outside EVT_PAINT() handler.
10
10
  # Typical use of this class is to obtain the extent of some text string in order to allocate enough size for a window, e.g.
11
- #
12
- # // Create the initially empty label with the size big enough to show
13
- # // the given string.
14
- # wxClientDC dc(this);
15
- # wxStaticText* text = new wxStaticText
16
- # (
17
- # this, wxID_ANY, "",
18
- # wxPoint(),
19
- # dc.GetTextExtent("String of max length"),
20
- # wxST_NO_AUTORESIZE
21
- # );
22
- # }
11
+ # ```ruby
12
+ # # Create the initially empty label with the size big enough to show
13
+ # # the given string.
14
+ # text = Wx::ClientDC.draw_on(self) do |dc|
15
+ # Wx::StaticText.new(
16
+ # self, Wx::ID_ANY, "",
17
+ # Wx::Point.new,
18
+ # dc.get_text_extent("String of max length"),
19
+ # Wx::ST_NO_AUTORESIZE)
20
+ # end
21
+ # ```
23
22
  #
24
23
  # While {Wx::ClientDC} may also be used for drawing on the client area of a window from outside an EVT_PAINT() handler in some ports, this does not work on all platforms (neither {Wx::OSX} nor {Wx::GTK} with GTK 3 Wayland backend support this, so drawing using {Wx::ClientDC} simply doesn't have any effect there) and the only portable way of drawing is via {Wx::PaintDC}. To redraw a small part of the window, use {Wx::Window#refresh_rect} to invalidate just this part and check {Wx::Window#get_update_region} in the paint event handler to redraw this part only.
25
24
  #
@@ -35,14 +34,10 @@ module Wx
35
34
  # @see Wx::ScreenDC
36
35
  #
37
36
  #
37
+ #
38
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
38
39
  class ClientDC < WindowDC
39
40
 
40
- # Constructor.
41
- # Pass a pointer to the window on which you wish to paint.
42
- # @param window [Wx::Window]
43
- # @return [ClientDC]
44
- def initialize(window) end
45
-
46
41
  end # ClientDC
47
42
 
48
43
 
@@ -7,42 +7,45 @@
7
7
  module Wx
8
8
 
9
9
  # A class for manipulating the clipboard.
10
- # To use the clipboard, you call member functions of the global {Wx::TheClipboard} object.
11
- # See the wxDataObject Overview for further information.
12
- # Call {Wx::Clipboard#open} to get ownership of the clipboard. If this operation returns true, you now own the clipboard. Call {Wx::Clipboard#set_data} to put data on the clipboard, or {Wx::Clipboard#get_data} to retrieve data from the clipboard. Call {Wx::Clipboard#close} to close the clipboard and relinquish ownership. You should keep the clipboard open only momentarily.
10
+ # To use the clipboard, you call member functions of the global {Wx::Clipboard} object passed to the block for {Wx::Clipboard.open}.
11
+ # See the {Wx::DataObject} Overview for further information.
12
+ # Call {Wx::Clipboard.open} to get ownership of the (global) clipboard and execute the given block. You now
13
+ # own the clipboard passed to the given block. Call {Wx::Clipboard#set_data} to put data on the clipboard, or
14
+ # {Wx::Clipboard#get_data} to retrieve data from the clipboard. The clipboard is closed and ownership
15
+ # relinquished when the block returns. You should keep the clipboard open only momentarily.
13
16
  # For example:
14
17
  #
15
- # // Write some text to the clipboard
16
- # if (wxTheClipboard->Open())
17
- # {
18
- # // This data objects are held by the clipboard,
19
- # // so do not delete them in the app.
20
- # wxTheClipboard->SetData( new wxTextDataObject("Some text") );
21
- # wxTheClipboard->Close();
22
- # }
23
- #
24
- # // Read some text
25
- # if (wxTheClipboard->Open())
26
- # {
27
- # if (wxTheClipboard->IsSupported( wxDF_TEXT ))
28
- # {
29
- # wxTextDataObject data;
30
- # wxTheClipboard->GetData( data );
31
- # wxMessageBox( data.GetText() );
32
- # }
33
- # wxTheClipboard->Close();
34
- # }
18
+ # ```ruby
19
+ # # Write some text to the clipboard
20
+ # Wx::Clipboard.open do |clip|
21
+ # # This data object is held by the clipboard
22
+ # clip.place(Wx::TextDataObject.new("Some text"))
23
+ # # or alternatively
24
+ # # clip.set_data(Wx::TextDataObject.new("Some text"))
25
+ # end
35
26
  #
36
- # On GTK, the clipboard behavior can vary depending on the configuration of the end-user's machine. In order for the clipboard data to persist after the window closes, a clipboard manager must be installed. Some clipboard managers will automatically flush the clipboard after each new piece of data is added, while others will not. The {Wx::Clipboard#flush} function will force the clipboard manager to flush the data.
27
+ # # Read some text
28
+ # data = Wx::TextDataObject.new
29
+ # Wx::Clipboard.open do |clip|
30
+ # if clip.supported?(Wx::DF_TEXT)
31
+ # clip.fetch(data) # or clip.get_data(data)
32
+ # end
33
+ # end
34
+ # Wx.message_box(data.get_text)
35
+ # ```
36
+ #
37
+ # On GTK, the clipboard behavior can vary depending on the configuration of the end-user's machine. In order
38
+ # for the clipboard data to persist after the window closes, a clipboard manager must be installed. Some
39
+ # clipboard managers will automatically flush the clipboard after each new piece of data is added, while others
40
+ # will not. The {Wx::Clipboard#flush} function will force the clipboard manager to flush the data.
37
41
  #
38
42
  # ===
39
43
  #
40
44
  # Category: Clipboard and Drag & Drop
41
- # @see Drag and Drop Overview
42
- # @see wxDataObject Overview
43
- # @see Wx::DataObject
45
+ # @see Wx::DataObject
44
46
  #
45
47
  #
48
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
46
49
  class Clipboard < Object
47
50
 
48
51
  # Default constructor.
@@ -21,17 +21,19 @@ module Wx
21
21
  # Note that because of its nature of control which can dynamically (and drastically) change its size at run-time under user-input, when putting {Wx::CollapsiblePane} inside a {Wx::Sizer} you should be careful to add it with a proportion value of zero; this is because otherwise all other windows with non-null proportion values will automatically resize each time the user expands or collapse the pane window usually resulting in a weird, flickering effect.
22
22
  # Usage sample:
23
23
  #
24
- # wxCollapsiblePane *collpane = new wxCollapsiblePane(this, wxID_ANY, "Details:");
24
+ # ```ruby
25
+ # collpane = Wx::CollapsiblePane.new(self, Wx::ID_ANY, "Details:")
25
26
  #
26
- # // add the pane with a zero proportion value to the 'sz' sizer which contains it
27
- # sz->Add(collpane, 0, wxGROW|wxALL, 5);
27
+ # # add the pane with a zero proportion value to the 'sz' sizer which contains it
28
+ # sz.add(collpane, 0, Wx::GROW|Wx::ALL, 5)
28
29
  #
29
- # // now add a test label in the collapsible pane using a sizer to layout it:
30
- # wxWindow *win = collpane->GetPane();
31
- # wxSizer *paneSz = new wxBoxSizer(wxVERTICAL);
32
- # paneSz->Add(new wxStaticText(win, wxID_ANY, "test!"), 1, wxGROW|wxALL, 2);
33
- # win->SetSizer(paneSz);
34
- # paneSz->SetSizeHints(win);
30
+ # #/ now add a test label in the collapsible pane using a sizer to layout it:
31
+ # win = collpane.get_pane
32
+ # pane_sz = Wx::VBoxSizer
33
+ # pane_sz.add(Wx::StaticText.new(win, Wx::ID_ANY, "test!"), 1, Wx::GROW|Wx::ALL, 2)
34
+ # win.set_sizer(pane_sz)
35
+ # pane_sz.set_size_hints(win)
36
+ # ```
35
37
  #
36
38
  # It is only available if {Wx::Setup::USE_COLLPANE} is set to 1 (the default).
37
39
  # === Styles
@@ -66,6 +66,8 @@ module Wx
66
66
  # @see Wx::SystemSettings
67
67
  #
68
68
  #
69
+ #
70
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
69
71
  class Colour < Object
70
72
 
71
73
  # Sets the RGB or RGBA colour values from a single 32 bit value.
@@ -111,11 +113,11 @@ module Wx
111
113
  # @param blue [Integer]
112
114
  # @param alpha [Integer]
113
115
  # @return [void]
114
- # @overload set(RGB)
116
+ # @overload set(rGB)
115
117
  # Sets the RGB intensity values using the given values (first overload), extracting them from the packed long (second overload), using the given string (third overload).
116
118
  # When using third form, {Wx::Colour#set} accepts: colour names (those listed in {Wx::ColourDatabase}), the CSS-like <code>"rgb(r,g,b)"</code> or <code>"rgba(r,g,b,a)"</code> syntax (case insensitive) and the HTML-like syntax: <code>"#"</code> followed by 6 hexadecimal digits for red, green, blue components.
117
119
  # Returns true if the conversion was successful, false otherwise.
118
- # @param RGB [Integer]
120
+ # @param rGB [Integer]
119
121
  # @return [void]
120
122
  # @overload set(str)
121
123
  # Sets the RGB intensity values using the given values (first overload), extracting them from the packed long (second overload), using the given string (third overload).
@@ -185,8 +187,9 @@ module Wx
185
187
 
186
188
  # Return the perceived brightness of the colour.
187
189
  # This value is computed using the simple
188
- #
190
+ # ```
189
191
  # 0.299*R + 0.587*G + 0.114*B
192
+ # ```
190
193
  # formula with the coefficients taken from the RGB to YIQ conversion formula and R, G and B being the values of the corresponding colour channels normalized to 0..1 range, so that the return value is 0 for black and 1 for white.
191
194
  # @return [Float]
192
195
  def get_luminance; end
@@ -21,30 +21,30 @@ module Wx
21
21
  # This class represents the colour chooser dialog.
22
22
  # Starting from wxWidgets 3.1.3 and currently in the MSW port only, this dialog generates {Wx::EVT_COLOUR_CHANGED} events while it is being shown, i.e. from inside its {Wx::ColourDialog#show_modal} method, that notify the program about the change of the currently selected colour and allow it to e.g. preview the effect of selecting this colour. Note that if you react to this event, you should also correctly revert to the previously selected colour if the dialog is cancelled by the user.
23
23
  # Example of using this class with dynamic feedback for the selected colour:
24
+ # ```ruby
25
+ # # Some function for redrawing using the given colour. Ideally, it
26
+ # # shouldn't do anything if the colour is the same as the one used
27
+ # # before.
28
+ # # def redraw(colour) ... end
24
29
  #
25
- # // Some function for redrawing using the given colour. Ideally, it
26
- # // shouldn't do anything if the colour is the same as the one used
27
- # // before.
28
- # void Redraw(const wxColour& colour);
29
- #
30
- # wxColourData data;
31
- # data.SetColour(initialColourToUse);
32
- # wxColourData dlg(this, &data);
33
- # dlg.Bind(wxEVT_COLOUR_CHANGED, [](wxColourDialogEvent& event) {
34
- # Redraw(event.GetColour());
35
- # });
36
- # if ( dlg.ShowModal() == wxID_OK ) {
37
- # // Colour did change.
38
- # } else {
39
- # // Colour didn't change.
40
- # }
41
- #
42
- # // This call is unnecessary under platforms generating
43
- # // wxEVT_COLOUR_CHANGED if the dialog was accepted and unnecessary
44
- # // under the platforms not generating this event if it was cancelled,
45
- # // so we could check for the different cases explicitly to avoid it,
46
- # // but it's simpler to just always call it.
47
- # Redraw(data.GetColour());
30
+ # data = Wx::ColourData.new
31
+ # data.set_colour(initialColourToUse)
32
+ # Wx::ColourDialog(self, data) do |dlg|
33
+ # dlg.evt_colour_changed { |event| redraw(event.get_colour) }
34
+ # if dlg.show_modal == Wx::ID_OK
35
+ # # Colour did change.
36
+ # else
37
+ # # Colour didn't change.
38
+ # end
39
+ # end
40
+ #
41
+ # # This call is unnecessary under platforms generating
42
+ # # Wx::EVT_COLOUR_CHANGED if the dialog was accepted and unnecessary
43
+ # # under the platforms not generating this event if it was cancelled,
44
+ # # so we could check for the different cases explicitly to avoid it,
45
+ # # but it's simpler to just always call it.
46
+ # redraw(data.get_colour)
47
+ # ```
48
48
  #
49
49
  # ===
50
50
  #
@@ -79,5 +79,93 @@ module Wx
79
79
 
80
80
  end # ColourDialog
81
81
 
82
+ # This class holds a variety of information related to colour dialogs.
83
+ # ===
84
+ #
85
+ # Category: Common Dialogs, Data Structures
86
+ # @see Wx::Colour
87
+ # @see Wx::ColourDialog
88
+ # @see wxColourDialog Overview
89
+ #
90
+ #
91
+ #
92
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
93
+ class ColourData < Object
94
+
95
+ #
96
+ #
97
+ NUM_CUSTOM = 16
98
+
99
+ # Constructor.
100
+ # Initializes the custom colours to {Wx::NULL_COLOUR}, the data colour setting to black, and the choose full setting to true.
101
+ # @return [ColourData]
102
+ def initialize; end
103
+
104
+ # Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls.
105
+ # Has no meaning under other platforms.
106
+ # The default value is true.
107
+ # @return [true,false]
108
+ def get_choose_full; end
109
+ alias_method :choose_full, :get_choose_full
110
+
111
+ # Indicates whether the colour dialog will display alpha values and an opacity selector.
112
+ # It is meaningful under {Wx::GTK}, {Wx::OSX} and with regards to generic colour dialog.
113
+ # The default value is false, except {Wx::OSX} where it is true (for the sake of backward compatibility).
114
+ # @return [true,false]
115
+ def get_choose_alpha; end
116
+ alias_method :choose_alpha, :get_choose_alpha
117
+
118
+ # Gets the current colour associated with the colour dialog.
119
+ # The default colour is black.
120
+ # @return [Wx::Colour]
121
+ def get_colour; end
122
+ alias_method :colour, :get_colour
123
+
124
+ # Returns custom colours associated with the colour dialog.
125
+ # @param i [Integer] An integer between 0 and 15, being any of the 15 custom colours that the user has saved. The default custom colours are invalid colours.
126
+ # @return [Wx::Colour]
127
+ def get_custom_colour(i) end
128
+ alias_method :custom_colour, :get_custom_colour
129
+
130
+ # Under Windows, tells the Windows colour dialog to display the full dialog with custom colour selection controls.
131
+ # Under other platforms, has no effect.
132
+ # The default value is true.
133
+ # @param flag [true,false]
134
+ # @return [void]
135
+ def set_choose_full(flag) end
136
+ alias_method :choose_full=, :set_choose_full
137
+
138
+ # Tells the colour dialog to show alpha values and an opacity selector (slider).
139
+ # Currently it has effect under {Wx::GTK}, {Wx::OSX} and for generic colour dialog.
140
+ # The default value is false, except {Wx::OSX} where it is true for backward compatibility.
141
+ # @param flag [true,false]
142
+ # @return [void]
143
+ def set_choose_alpha(flag) end
144
+ alias_method :choose_alpha=, :set_choose_alpha
145
+
146
+ # Sets the default colour for the colour dialog.
147
+ # The default colour is black.
148
+ # @param colour [Wx::Colour,String,Symbol]
149
+ # @return [void]
150
+ def set_colour(colour) end
151
+ alias_method :colour=, :set_colour
152
+
153
+ # Sets custom colours for the colour dialog.
154
+ # @param i [Integer] An integer between 0 and 15 for whatever custom colour you want to set. The default custom colours are invalid colours.
155
+ # @param colour [Wx::Colour,String,Symbol] The colour to set
156
+ # @return [void]
157
+ def set_custom_colour(i, colour) end
158
+
159
+ # Converts the colours saved in this class in a string form, separating the various colours with a comma.
160
+ # @return [String]
161
+ def to_string; end
162
+
163
+ # Decodes the given string, which should be in the same format returned by {Wx::ColourData#to_string}, and sets the internal colours.
164
+ # @param str [String]
165
+ # @return [true,false]
166
+ def from_string(str) end
167
+
168
+ end # ColourData
169
+
82
170
 
83
171
  end
@@ -80,7 +80,7 @@ module Wx
80
80
  # @return [ComboBox]
81
81
  # @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
82
82
  # Constructor, creating and showing a combobox.
83
- # <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
83
+ #
84
84
  # @see Wx::ComboBox#create
85
85
  # @see Wx::Validator
86
86
  # @param parent [Wx::Window] Parent window. Must not be NULL.
@@ -95,7 +95,7 @@ module Wx
95
95
  # @return [ComboBox]
96
96
  # @overload initialize(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
97
97
  # Constructor, creating and showing a combobox.
98
- # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
98
+ #
99
99
  # @see Wx::ComboBox#create
100
100
  # @see Wx::Validator
101
101
  # @param parent [Wx::Window] Parent window. Must not be NULL.
@@ -180,8 +180,6 @@ module Wx
180
180
 
181
181
  # Gets the current selection span.
182
182
  # If the returned values are equal, there was no selection. Please note that the indices returned may be used with the other {Wx::TextCtrl} methods but don't necessarily represent the correct indices into the string returned by {Wx::ComboBox#get_value} for multiline controls under Windows (at least,) you should use {Wx::ComboBox#get_string_selection} to get the selected text.
183
- #
184
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method takes no parameters and returns a 2-element list (from, to).
185
183
  # @return [Array(Integer,Integer)]
186
184
  def get_text_selection_range; end
187
185
  alias_method :text_selection_range, :get_text_selection_range
@@ -30,5 +30,53 @@ module Wx
30
30
 
31
31
  end # ContextHelpButton
32
32
 
33
+ # This class changes the cursor to a query and puts the application into a 'context-sensitive help mode'.
34
+ # When the user left-clicks on a window within the specified window, a {Wx::EVT_HELP} event is sent to that control, and the application may respond to it by popping up some help.
35
+ # For example:
36
+ # ```ruby
37
+ # # puts the application into a 'context-sensitive help mode' for my_window
38
+ # context_help = Wx::ContextHelp.new(my_window)
39
+ # ...
40
+ # ...
41
+ # # ends the 'context-sensitive help mode' for my_window
42
+ # context_help.end_context_help
43
+ # ```
44
+ #
45
+ # There are a couple of ways to invoke this behaviour implicitly:
46
+ #
47
+ # - Use the {Wx::DIALOG_EX_CONTEXTHELP} style for a dialog (Windows only). This will put a question mark in the titlebar, and Windows will put the application into context-sensitive help mode automatically, with further programming.- Create a {Wx::ContextHelpButton}, whose predefined behaviour is to create a context help object. Normally you will write your application so that this button is only added to a dialog for non-Windows platforms (use {Wx::DIALOG_EX_CONTEXTHELP} on Windows).
48
+ #
49
+ # Note that on macOS, the cursor does not change when in context-sensitive help mode.
50
+ # ===
51
+ #
52
+ # Category: {Wx::HELP}
53
+ # @see Wx::HelpEvent
54
+ # @see Wx::HelpController
55
+ # @see Wx::ContextHelpButton
56
+ #
57
+ #
58
+ class ContextHelp < Object
59
+
60
+ # Constructs a context help object, calling {Wx::ContextHelp#begin_context_help} if doNow is true (the default).
61
+ # If window is NULL, the top window is used.
62
+ # @param window [Wx::Window]
63
+ # @param doNow [true,false]
64
+ # @return [ContextHelp]
65
+ def initialize(window=nil, doNow=true) end
66
+
67
+ # Puts the application into context-sensitive help mode.
68
+ # window is the window which will be used to catch events; if NULL, the top window will be used.
69
+ # Returns true if the application was successfully put into context-sensitive help mode. This function only returns when the event loop has finished.
70
+ # @param window [Wx::Window]
71
+ # @return [true,false]
72
+ def begin_context_help(window) end
73
+
74
+ # Ends context-sensitive help mode.
75
+ # Not normally called by the application.
76
+ # @return [true,false]
77
+ def end_context_help; end
78
+
79
+ end # ContextHelp
80
+
33
81
 
34
82
  end