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.
Files changed (283) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +85 -0
  3. data/README.md +2 -0
  4. data/assets/logo.png +0 -0
  5. data/assets/logo.svg +170 -0
  6. data/assets/logo.xcf +0 -0
  7. data/ext/wxbase32u_gcc_custom.dll +0 -0
  8. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  9. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  22. data/lib/wx/core/array_ext.rb +26 -0
  23. data/lib/wx/core/art_locator.rb +92 -0
  24. data/lib/wx/core/artprovider.rb +1 -1
  25. data/lib/wx/core/bitmap.rb +90 -53
  26. data/lib/wx/core/cursor.rb +12 -0
  27. data/lib/wx/core/data_object.rb +74 -6
  28. data/lib/wx/core/dataformat.rb +3 -1
  29. data/lib/wx/core/dc.rb +76 -52
  30. data/lib/wx/core/enum.rb +4 -0
  31. data/lib/wx/core/event.rb +38 -5
  32. data/lib/wx/core/events/evt_list.rb +3 -2
  33. data/lib/wx/core/evthandler.rb +64 -23
  34. data/lib/wx/core/icon.rb +50 -35
  35. data/lib/wx/core/id_helper.rb +32 -0
  36. data/lib/wx/core/image.rb +63 -53
  37. data/lib/wx/core/point.rb +35 -10
  38. data/lib/wx/core/real_point.rb +35 -10
  39. data/lib/wx/core/rect.rb +44 -9
  40. data/lib/wx/core/region_iterator.rb +37 -0
  41. data/lib/wx/core/size.rb +32 -5
  42. data/lib/wx/core/window.rb +8 -31
  43. data/lib/wx/doc/array_ext.rb +27 -0
  44. data/lib/wx/doc/art_locator.rb +57 -0
  45. data/lib/wx/doc/bitmap.rb +27 -0
  46. data/lib/wx/doc/clipboard.rb +12 -0
  47. data/lib/wx/doc/const.rb +77 -0
  48. data/lib/wx/doc/cursor.rb +16 -0
  49. data/lib/wx/doc/data_object.rb +103 -0
  50. data/lib/wx/doc/dc.rb +63 -46
  51. data/lib/wx/doc/event.rb +24 -0
  52. data/lib/wx/doc/events.rb +14 -0
  53. data/lib/wx/doc/evthandler.rb +24 -3
  54. data/lib/wx/doc/extra/00_starting.md +1 -1
  55. data/lib/wx/doc/extra/06_geometry.md +10 -4
  56. data/lib/wx/doc/extra/10_art.md +105 -0
  57. data/lib/wx/doc/gc_dc.rb +21 -0
  58. data/lib/wx/doc/gdi_common.rb +155 -6
  59. data/lib/wx/doc/gen/about_dialog_info.rb +1 -4
  60. data/lib/wx/doc/gen/animation.rb +3 -3
  61. data/lib/wx/doc/gen/animation_ctrl.rb +4 -4
  62. data/lib/wx/doc/gen/any_button.rb +1 -1
  63. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -1
  64. data/lib/wx/doc/gen/aui/aui_manager.rb +2 -2
  65. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -3
  66. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -3
  67. data/lib/wx/doc/gen/aui/aui_notebook.rb +2 -2
  68. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +6 -6
  69. data/lib/wx/doc/gen/bitmap.rb +1 -1
  70. data/lib/wx/doc/gen/bitmap_button.rb +2 -2
  71. data/lib/wx/doc/gen/book_ctrl_base.rb +4 -4
  72. data/lib/wx/doc/gen/brush.rb +1 -1
  73. data/lib/wx/doc/gen/button.rb +2 -2
  74. data/lib/wx/doc/gen/calendar_ctrl.rb +3 -3
  75. data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
  76. data/lib/wx/doc/gen/check_box.rb +2 -2
  77. data/lib/wx/doc/gen/check_list_box.rb +3 -3
  78. data/lib/wx/doc/gen/choice.rb +2 -2
  79. data/lib/wx/doc/gen/choicebook.rb +2 -2
  80. data/lib/wx/doc/gen/collapsible_pane.rb +2 -2
  81. data/lib/wx/doc/gen/colour.rb +1 -3
  82. data/lib/wx/doc/gen/colour_dialog.rb +1 -2
  83. data/lib/wx/doc/gen/colour_picker_ctrl.rb +2 -2
  84. data/lib/wx/doc/gen/combo_box.rb +4 -4
  85. data/lib/wx/doc/gen/context_help_button.rb +1 -1
  86. data/lib/wx/doc/gen/control.rb +3 -3
  87. data/lib/wx/doc/gen/core.rb +2 -2
  88. data/lib/wx/doc/gen/data_format.rb +1 -1
  89. data/lib/wx/doc/gen/data_object.rb +6 -26
  90. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  91. data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
  92. data/lib/wx/doc/gen/dc.rb +9 -9
  93. data/lib/wx/doc/gen/defs.rb +0 -4
  94. data/lib/wx/doc/gen/dialog.rb +3 -3
  95. data/lib/wx/doc/gen/dir_dialog.rb +2 -4
  96. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  97. data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
  98. data/lib/wx/doc/gen/drag_drop.rb +13 -1
  99. data/lib/wx/doc/gen/editable_list_box.rb +2 -2
  100. data/lib/wx/doc/gen/event.rb +0 -1
  101. data/lib/wx/doc/gen/event_list.rb +18 -16
  102. data/lib/wx/doc/gen/events.rb +87 -2
  103. data/lib/wx/doc/gen/ext_help_controller.rb +2 -2
  104. data/lib/wx/doc/gen/file_dialog.rb +1 -1
  105. data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
  106. data/lib/wx/doc/gen/font.rb +6 -6
  107. data/lib/wx/doc/gen/font_dialog.rb +1 -2
  108. data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
  109. data/lib/wx/doc/gen/frame.rb +5 -5
  110. data/lib/wx/doc/gen/fs_file.rb +2 -2
  111. data/lib/wx/doc/gen/gauge.rb +2 -2
  112. data/lib/wx/doc/gen/gdi_common.rb +18 -21
  113. data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
  114. data/lib/wx/doc/gen/graphics_context.rb +4 -4
  115. data/lib/wx/doc/gen/graphics_object.rb +2 -2
  116. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  117. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  118. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  119. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  120. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  121. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  122. data/lib/wx/doc/gen/grid/grid_ctrl.rb +7 -7
  123. data/lib/wx/doc/gen/help_controller.rb +1 -1
  124. data/lib/wx/doc/gen/html/html_cell.rb +4 -4
  125. data/lib/wx/doc/gen/html/html_easy_printing.rb +6 -6
  126. data/lib/wx/doc/gen/html/html_help_controller.rb +6 -6
  127. data/lib/wx/doc/gen/html/html_help_frame.rb +2 -2
  128. data/lib/wx/doc/gen/html/html_help_window.rb +6 -6
  129. data/lib/wx/doc/gen/html/html_list_box.rb +6 -6
  130. data/lib/wx/doc/gen/html/html_printout.rb +4 -4
  131. data/lib/wx/doc/gen/html/html_window.rb +4 -4
  132. data/lib/wx/doc/gen/icon.rb +6 -6
  133. data/lib/wx/doc/gen/image.rb +7 -7
  134. data/lib/wx/doc/gen/list_box.rb +4 -4
  135. data/lib/wx/doc/gen/list_ctrl.rb +5 -5
  136. data/lib/wx/doc/gen/listbook.rb +2 -2
  137. data/lib/wx/doc/gen/locale.rb +8 -8
  138. data/lib/wx/doc/gen/log.rb +2 -2
  139. data/lib/wx/doc/gen/mdi_frame.rb +5 -5
  140. data/lib/wx/doc/gen/media_ctrl.rb +4 -4
  141. data/lib/wx/doc/gen/menu.rb +12 -12
  142. data/lib/wx/doc/gen/menu_item.rb +1 -1
  143. data/lib/wx/doc/gen/message_dialog.rb +2 -4
  144. data/lib/wx/doc/gen/mini_frame.rb +2 -2
  145. data/lib/wx/doc/gen/notebook.rb +3 -3
  146. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -1
  147. data/lib/wx/doc/gen/object.rb +0 -1
  148. data/lib/wx/doc/gen/panel.rb +2 -2
  149. data/lib/wx/doc/gen/pen.rb +2 -2
  150. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +1 -1
  151. data/lib/wx/doc/gen/pg/pg_cell.rb +1 -1
  152. data/lib/wx/doc/gen/pg/pg_properties.rb +20 -20
  153. data/lib/wx/doc/gen/pg/pg_property.rb +12 -12
  154. data/lib/wx/doc/gen/pg/property_grid.rb +3 -3
  155. data/lib/wx/doc/gen/pg/property_grid_interface.rb +14 -14
  156. data/lib/wx/doc/gen/pg/property_grid_manager.rb +3 -3
  157. data/lib/wx/doc/gen/pg/property_grid_page.rb +2 -2
  158. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -2
  159. data/lib/wx/doc/gen/popup_window.rb +3 -3
  160. data/lib/wx/doc/gen/property_sheet_dialog.rb +3 -3
  161. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  162. data/lib/wx/doc/gen/prt/printer.rb +1 -1
  163. data/lib/wx/doc/gen/radio_box.rb +4 -4
  164. data/lib/wx/doc/gen/radio_button.rb +2 -2
  165. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +2 -2
  166. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +12 -12
  167. data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
  168. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +2 -2
  169. data/lib/wx/doc/gen/rbn/ribbon_page.rb +2 -2
  170. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
  171. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +11 -11
  172. data/lib/wx/doc/gen/region.rb +1 -1
  173. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  174. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +10 -10
  175. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
  176. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +2 -2
  177. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -4
  178. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +1 -1
  179. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +6 -6
  180. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  181. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  182. data/lib/wx/doc/gen/sash_event.rb +1 -1
  183. data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
  184. data/lib/wx/doc/gen/sash_window.rb +1 -1
  185. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  186. data/lib/wx/doc/gen/scroll_bar.rb +150 -0
  187. data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
  188. data/lib/wx/doc/gen/scrolled_control.rb +2 -2
  189. data/lib/wx/doc/gen/scrolled_window.rb +2 -2
  190. data/lib/wx/doc/gen/simplebook.rb +2 -2
  191. data/lib/wx/doc/gen/sizer.rb +3 -3
  192. data/lib/wx/doc/gen/slider.rb +2 -2
  193. data/lib/wx/doc/gen/spin_button.rb +2 -2
  194. data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
  195. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  196. data/lib/wx/doc/gen/splitter_window.rb +2 -2
  197. data/lib/wx/doc/gen/static_bitmap.rb +2 -2
  198. data/lib/wx/doc/gen/static_box.rb +4 -4
  199. data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
  200. data/lib/wx/doc/gen/static_line.rb +2 -2
  201. data/lib/wx/doc/gen/static_text.rb +2 -2
  202. data/lib/wx/doc/gen/status_bar.rb +2 -2
  203. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
  204. data/lib/wx/doc/gen/task_bar_icon.rb +2 -2
  205. data/lib/wx/doc/gen/text_attr.rb +3 -3
  206. data/lib/wx/doc/gen/text_ctrl.rb +3 -3
  207. data/lib/wx/doc/gen/text_entry_dialog.rb +6 -8
  208. data/lib/wx/doc/gen/text_validator.rb +1 -1
  209. data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
  210. data/lib/wx/doc/gen/tip_provider.rb +1 -3
  211. data/lib/wx/doc/gen/toggle_button.rb +2 -2
  212. data/lib/wx/doc/gen/tool_bar.rb +10 -10
  213. data/lib/wx/doc/gen/toolbook.rb +2 -2
  214. data/lib/wx/doc/gen/top_level_window.rb +4 -4
  215. data/lib/wx/doc/gen/tree_ctrl.rb +4 -4
  216. data/lib/wx/doc/gen/treebook.rb +2 -2
  217. data/lib/wx/doc/gen/utils.rb +5 -42
  218. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  219. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  220. data/lib/wx/doc/gen/variant.rb +10 -10
  221. data/lib/wx/doc/gen/window.rb +9 -14
  222. data/lib/wx/doc/gen/wizard.rb +2 -2
  223. data/lib/wx/doc/gen/wizard_event.rb +1 -1
  224. data/lib/wx/doc/gen/xml_node.rb +2 -2
  225. data/lib/wx/doc/gen/xml_resource.rb +3 -3
  226. data/lib/wx/doc/graphics_context.rb +42 -0
  227. data/lib/wx/doc/icon.rb +18 -0
  228. data/lib/wx/doc/id_helper.rb +25 -0
  229. data/lib/wx/doc/image.rb +33 -0
  230. data/lib/wx/doc/region_iterator.rb +31 -0
  231. data/lib/wx/doc/scaled_dc.rb +17 -0
  232. data/lib/wx/doc/window.rb +18 -0
  233. data/lib/wx/global_const.rb +4 -3
  234. data/lib/wx/version.rb +1 -1
  235. data/lib/wx/wxruby/cmd/sampler.rb +3 -21
  236. data/lib/wxruby_aui.so +0 -0
  237. data/lib/wxruby_core.so +0 -0
  238. data/lib/wxruby_grid.so +0 -0
  239. data/lib/wxruby_html.so +0 -0
  240. data/lib/wxruby_pg.so +0 -0
  241. data/lib/wxruby_prt.so +0 -0
  242. data/lib/wxruby_rbn.so +0 -0
  243. data/lib/wxruby_rtc.so +0 -0
  244. data/lib/wxruby_stc.so +0 -0
  245. data/rakelib/lib/config.rb +4 -4
  246. data/samples/art/wxruby-128x128.png +0 -0
  247. data/samples/art/wxruby-256x256.png +0 -0
  248. data/samples/art/wxruby-64x64.png +0 -0
  249. data/samples/art/wxruby.ico +0 -0
  250. data/samples/art/wxruby.png +0 -0
  251. data/samples/drawing/graphics_drawing.rb +1 -2
  252. data/samples/propgrid/propgrid.rb +65 -65
  253. data/samples/sample.xpm +246 -470
  254. data/samples/treectrl/treectrl.rb +1 -1
  255. data/tests/art/my_art/sample.xpm +251 -0
  256. data/tests/art/sample3.xpm +251 -0
  257. data/tests/art/test_art/bitmap/sample.xpm +251 -0
  258. data/tests/art/test_art/bitmap/wxruby.bmp +0 -0
  259. data/tests/art/test_art/bitmap/wxruby.png +0 -0
  260. data/tests/art/test_art/bitmap/wxruby.xpm +251 -0
  261. data/tests/art/test_art/cursor/wxruby.bmp +0 -0
  262. data/tests/art/test_art/icon/sample.xpm +251 -0
  263. data/tests/art/test_art/icon/wxruby.ico +0 -0
  264. data/tests/art/test_art/icon/wxruby.png +0 -0
  265. data/tests/art/test_art/image/sample.xpm +251 -0
  266. data/tests/art/test_art/image/wxruby.jpg +0 -0
  267. data/tests/art/test_art/image/wxruby.png +0 -0
  268. data/tests/art/test_art/sample2.xpm +251 -0
  269. data/tests/lib/wxapp_runner.rb +64 -0
  270. data/tests/test_art.rb +91 -0
  271. data/tests/test_basic.rb +0 -5
  272. data/tests/test_clipboard.rb +149 -17
  273. data/tests/test_dc.rb +70 -0
  274. data/tests/test_dialog.rb +2 -13
  275. data/tests/test_event_handling.rb +2 -13
  276. data/tests/test_events.rb +14 -6
  277. data/tests/test_geometry.rb +67 -17
  278. data/tests/test_intl.rb +2 -15
  279. data/tests/test_item_data.rb +2 -15
  280. data/tests/test_variant.rb +1 -15
  281. data/tests/testapp.rb +0 -5
  282. data/tests/testapp_noframe.rb +0 -5
  283. metadata +55 -3
@@ -84,7 +84,7 @@ module Wx
84
84
  # Copy constructor.
85
85
  # @param validator [Wx::TextValidator]
86
86
  # @return [TextValidator]
87
- # @overload initialize(style=Wx::FILTER_NONE, valPtr=nil)
87
+ # @overload initialize(style=Wx::TextValidatorStyle::FILTER_NONE, valPtr=nil)
88
88
  # Constructor taking a style and optional pointer to a {Wx::String} variable.
89
89
  # @param style [Integer] One or more of the {Wx::TextValidatorStyle} styles. See {Wx::TextValidator#set_style}.
90
90
  # @param valPtr [String] A pointer to a {Wx::String} variable that contains the value. This variable should have a lifetime equal to or longer than the validator lifetime (which is usually determined by the lifetime of the window).
@@ -36,7 +36,7 @@ module Wx
36
36
  # @overload initialize()
37
37
  # Default constructor.
38
38
  # @return [TimePickerCtrl]
39
- # @overload initialize(parent, id, dt=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TP_DEFAULT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TIME_PICKER_CTRL_NAME_STR)
39
+ # @overload initialize(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TP_DEFAULT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TimePickerCtrlNameStr)
40
40
  # Initializes the object and calls {Wx::TimePickerCtrl#create} with all the parameters.
41
41
  # @param parent [Wx::Window]
42
42
  # @param id [Integer]
@@ -62,7 +62,7 @@ module Wx
62
62
  # @param validator [Wx::Validator] Validator which can be used for additional checks.
63
63
  # @param name [String] Control name.
64
64
  # @return [true,false]
65
- def create(parent, id, dt=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TP_DEFAULT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TIME_PICKER_CTRL_NAME_STR) end
65
+ def create(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TP_DEFAULT, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TimePickerCtrlNameStr) end
66
66
 
67
67
  # Returns the currently entered time as hours, minutes and seconds.
68
68
  # All the arguments must be non-NULL, false is returned otherwise and none of them is modified.
@@ -7,7 +7,7 @@
7
7
  module Wx
8
8
 
9
9
  # This function creates a {Wx::TipProvider} which may be used with {show_tip}.
10
- # Include file: #include <wx/tipdlg.h>
10
+ #
11
11
  # @see wxTipProvider Overview
12
12
  # @param filename [String] The name of the file containing the tips, one per line.
13
13
  # @param currentTip [Integer] The index of the first tip to show. Normally this index is remembered between the 2 program runs.
@@ -16,8 +16,6 @@ module Wx
16
16
 
17
17
  # This function shows a "startup tip" to the user.
18
18
  # The return value is the state of the "Show tips at startup" checkbox.
19
- #
20
- # Include file: #include <wx/tipdlg.h>
21
19
  # @see wxTipProvider Overview
22
20
  # @param parent [Wx::Window] The parent window for the modal dialog.
23
21
  # @param tipProvider [Wx::TipProvider] An object which is used to get the text of the tips. It may be created with the {create_file_tip_provider} function.
@@ -36,7 +36,7 @@ module Wx
36
36
  # @overload initialize()
37
37
  # Default constructor.
38
38
  # @return [ToggleButton]
39
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, val=Wx::DEFAULT_VALIDATOR, name=Wx::CHECK_BOX_NAME_STR)
39
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, val=Wx::DEFAULT_VALIDATOR, name=Wx::CheckBoxNameStr)
40
40
  # Constructor, creating and showing a toggle button.
41
41
  #
42
42
  # @see Wx::ToggleButton#create
@@ -63,7 +63,7 @@ module Wx
63
63
  # @param val [Wx::Validator]
64
64
  # @param name [String]
65
65
  # @return [true,false]
66
- def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, val=Wx::DEFAULT_VALIDATOR, name=Wx::CHECK_BOX_NAME_STR) end
66
+ def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, val=Wx::DEFAULT_VALIDATOR, name=Wx::CheckBoxNameStr) end
67
67
 
68
68
  # Gets the state of the toggle button.
69
69
  # Returns true if it is pressed, false otherwise.
@@ -147,7 +147,7 @@ module Wx
147
147
  #
148
148
  class ToolBar < Control
149
149
 
150
- # @overload add_tool(toolId, label, bitmap, shortHelp=Wx::EMPTY_STRING, kind=Wx::ITEM_NORMAL)
150
+ # @overload add_tool(toolId, label, bitmap, shortHelp=(''), kind=Wx::ItemKind::ITEM_NORMAL)
151
151
  # Adds a tool to the toolbar.
152
152
  # This most commonly used version has fewer parameters than the full version below which specifies the more rarely used button features.
153
153
  #
@@ -165,7 +165,7 @@ module Wx
165
165
  # @param shortHelp [String] This string is used for the tools tooltip.
166
166
  # @param kind [ItemKind] May be {Wx::ItemKind::ITEM_NORMAL} for a normal button (default), {Wx::ItemKind::ITEM_CHECK} for a checkable tool (such tool stays pressed after it had been toggled) or {Wx::ItemKind::ITEM_RADIO} for a checkable tool which makes part of a radio group of tools each of which is automatically unchecked whenever another button in the group is checked. {Wx::ItemKind::ITEM_DROPDOWN} specifies that a drop-down menu button will appear next to the tool button (only GTK+ and MSW). Call {Wx::ToolBar#set_dropdown_menu} afterwards.
167
167
  # @return [Wx::ToolBarToolBase]
168
- # @overload add_tool(toolId, label, bitmap, bmpDisabled, kind=Wx::ITEM_NORMAL, shortHelp=Wx::EMPTY_STRING, longHelp=Wx::EMPTY_STRING, clientData=nil)
168
+ # @overload add_tool(toolId, label, bitmap, bmpDisabled, kind=Wx::ItemKind::ITEM_NORMAL, shortHelp=(''), longHelp=(''), clientData=nil)
169
169
  # Adds a tool to the toolbar.
170
170
  # After you have added tools to a toolbar, you must call {Wx::ToolBar#realize} in order to have the tools appear.
171
171
  # @see Wx::ToolBar#add_separator
@@ -203,7 +203,7 @@ module Wx
203
203
  # @param longHelp [String]
204
204
  # @param clientData [Wx::Object]
205
205
  # @return [Wx::ToolBarToolBase]
206
- def insert_tool(pos, toolId, label, bitmap, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ITEM_NORMAL, shortHelp=Wx::EMPTY_STRING, longHelp=Wx::EMPTY_STRING, clientData=nil) end
206
+ def insert_tool(pos, toolId, label, bitmap, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ItemKind::ITEM_NORMAL, shortHelp=(''), longHelp=(''), clientData=nil) end
207
207
 
208
208
  # @overload set_margins(x, y)
209
209
  # Set the values to be used as margins for the toolbar.
@@ -225,7 +225,7 @@ module Wx
225
225
  # @overload initialize()
226
226
  # Default constructor.
227
227
  # @return [ToolBar]
228
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TB_HORIZONTAL, name=Wx::TOOL_BAR_NAME_STR)
228
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TB_HORIZONTAL, name=Wx::ToolBarNameStr)
229
229
  # Constructs a toolbar.
230
230
  # After a toolbar is created, you use {Wx::ToolBar#add_tool} and perhaps {Wx::ToolBar#add_separator}, and then you must call {Wx::ToolBar#realize} to construct and display the toolbar tools.
231
231
  # @param parent [Wx::Window] Pointer to a parent window.
@@ -248,14 +248,14 @@ module Wx
248
248
  # @param longHelp [String]
249
249
  # @param clientData [Wx::Object]
250
250
  # @return [Wx::ToolBarToolBase]
251
- def add_check_tool(toolId, label, bitmap1, bmpDisabled=Wx::NULL_BITMAP, shortHelp=Wx::EMPTY_STRING, longHelp=Wx::EMPTY_STRING, clientData=nil) end
251
+ def add_check_tool(toolId, label, bitmap1, bmpDisabled=Wx::NULL_BITMAP, shortHelp=(''), longHelp=(''), clientData=nil) end
252
252
 
253
253
  # Adds any control to the toolbar, typically e.g. a {Wx::ComboBox}.
254
254
  # {Wx::Mac}: labels are only displayed if wxWidgets is built with {Wx::MAC_USE_NATIVE_TOOLBAR} set to 1
255
255
  # @param control [Wx::Control] The control to be added.
256
256
  # @param label [String] Text to be displayed near the control.
257
257
  # @return [Wx::ToolBarToolBase]
258
- def add_control(control, label=Wx::EMPTY_STRING) end
258
+ def add_control(control, label=('')) end
259
259
 
260
260
  # Adds a new radio tool to the toolbar.
261
261
  # Consecutive radio tools form a radio group such that exactly one button in the group is pressed at any moment, in other words whenever a button in the group is pressed the previously pressed button is automatically released. You should avoid having the radio groups of only one element as it would be impossible for the user to use such button.
@@ -269,7 +269,7 @@ module Wx
269
269
  # @param longHelp [String]
270
270
  # @param clientData [Wx::Object]
271
271
  # @return [Wx::ToolBarToolBase]
272
- def add_radio_tool(toolId, label, bitmap1, bmpDisabled=Wx::NULL_BITMAP, shortHelp=Wx::EMPTY_STRING, longHelp=Wx::EMPTY_STRING, clientData=nil) end
272
+ def add_radio_tool(toolId, label, bitmap1, bmpDisabled=Wx::NULL_BITMAP, shortHelp=(''), longHelp=(''), clientData=nil) end
273
273
 
274
274
  # Adds a separator for spacing groups of tools.
275
275
  # Notice that the separator uses the look appropriate for the current platform so it can be a vertical line (MSW, some versions of GTK) or just an empty space or something else.
@@ -445,7 +445,7 @@ module Wx
445
445
  # @param control [Wx::Control]
446
446
  # @param label [String]
447
447
  # @return [Wx::ToolBarToolBase]
448
- def insert_control(pos, control, label=Wx::EMPTY_STRING) end
448
+ def insert_control(pos, control, label=('')) end
449
449
 
450
450
  # Inserts the separator into the toolbar at the given position.
451
451
  # You must call {Wx::ToolBar#realize} for the change to take place.
@@ -586,7 +586,7 @@ module Wx
586
586
  # @return [void]
587
587
  def toggle_tool(toolId, toggle) end
588
588
 
589
- # @overload create_tool(toolId, label, bmpNormal, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ITEM_NORMAL, clientData=nil, shortHelp=Wx::EMPTY_STRING, longHelp=Wx::EMPTY_STRING)
589
+ # @overload create_tool(toolId, label, bmpNormal, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ItemKind::ITEM_NORMAL, clientData=nil, shortHelp=(''), longHelp=(''))
590
590
  # Factory function to create a new toolbar tool.
591
591
  # @param toolId [Integer]
592
592
  # @param label [String]
@@ -616,7 +616,7 @@ module Wx
616
616
  #
617
617
  class ToolBarToolBase < Object
618
618
 
619
- # @overload initialize(tbar=nil, toolid=Wx::ID_SEPARATOR, label=Wx::EMPTY_STRING, bmpNormal=Wx::NULL_BITMAP, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ITEM_NORMAL, clientData=nil, shortHelpString=Wx::EMPTY_STRING, longHelpString=Wx::EMPTY_STRING)
619
+ # @overload initialize(tbar=nil, toolid=Wx::StandardID::ID_SEPARATOR, label=(''), bmpNormal=Wx::NULL_BITMAP, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ItemKind::ITEM_NORMAL, clientData=nil, shortHelpString=(''), longHelpString=(''))
620
620
  # @param tbar [Wx::ToolBarBase]
621
621
  # @param toolid [Integer]
622
622
  # @param label [String]
@@ -52,7 +52,7 @@ module Wx
52
52
  # @overload initialize()
53
53
  # Constructs a choicebook control.
54
54
  # @return [Toolbook]
55
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::EMPTY_STRING)
55
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
56
56
  # Constructs a choicebook control.
57
57
  # @param parent [Wx::Window]
58
58
  # @param id [Integer]
@@ -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, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::EMPTY_STRING) end
74
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=('')) end
75
75
 
76
76
  # Returns the {Wx::ToolBarBase} associated with the control.
77
77
  # @return [Wx::ToolBarBase]
@@ -83,7 +83,7 @@ module Wx
83
83
  # @overload initialize()
84
84
  # Default ctor.
85
85
  # @return [TopLevelWindow]
86
- # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR)
86
+ # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
87
87
  # Constructor creating the top level window.
88
88
  # @param parent [Wx::Window]
89
89
  # @param id [Integer]
@@ -104,7 +104,7 @@ module Wx
104
104
  # @param style [Integer]
105
105
  # @param name [String]
106
106
  # @return [true,false]
107
- def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR) end
107
+ def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr) end
108
108
 
109
109
  # Returns true if the platform supports making the window translucent.
110
110
  #
@@ -116,14 +116,14 @@ module Wx
116
116
  # A synonym for {Wx::TopLevelWindow#centre_on_screen}.
117
117
  # @param direction [Integer]
118
118
  # @return [void]
119
- def center_on_screen(direction=Wx::BOTH) end
119
+ def center_on_screen(direction=Wx::Orientation::BOTH) end
120
120
 
121
121
  # Centres the window on screen.
122
122
  #
123
123
  # @see Wx::Window#centre_on_parent
124
124
  # @param direction [Integer] Specifies the direction for the centering. May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}.
125
125
  # @return [void]
126
- def centre_on_screen(direction=Wx::BOTH) end
126
+ def centre_on_screen(direction=Wx::Orientation::BOTH) end
127
127
 
128
128
  # Enables or disables the Close button (most often in the right upper corner of a dialog) and the Close entry of the system menu (most often in the left upper corner of the dialog).
129
129
  # Returns true if operation was successful. This may be wrong on X11 (including GTK+) where the window manager may not support this operation and there is no way to find out.
@@ -310,7 +310,7 @@ module Wx
310
310
  # @overload initialize()
311
311
  # Default Constructor.
312
312
  # @return [TreeCtrl]
313
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TREE_CTRL_NAME_STR)
313
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TreeCtrlNameStr)
314
314
  # Constructor, creating and showing a tree control.
315
315
  #
316
316
  # @see Wx::TreeCtrl#create
@@ -377,7 +377,7 @@ module Wx
377
377
  # @param validator [Wx::Validator]
378
378
  # @param name [String]
379
379
  # @return [true,false]
380
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TREE_CTRL_NAME_STR) end
380
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TR_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TreeCtrlNameStr) end
381
381
 
382
382
  # Deletes the specified item.
383
383
  # A EVT_TREE_DELETE_ITEM event will be generated.
@@ -525,7 +525,7 @@ module Wx
525
525
  # @param item [Wx::TreeItemId]
526
526
  # @param which [TreeItemIcon]
527
527
  # @return [Integer]
528
- def get_item_image(item, which=Wx::TREE_ITEM_ICON_NORMAL) end
528
+ def get_item_image(item, which=Wx::TreeItemIcon::TreeItemIcon_Normal) end
529
529
  alias_method :item_image, :get_item_image
530
530
 
531
531
  # Returns the item's parent.
@@ -772,7 +772,7 @@ module Wx
772
772
  # @param image [Integer]
773
773
  # @param which [TreeItemIcon]
774
774
  # @return [void]
775
- def set_item_image(item, image, which=Wx::TREE_ITEM_ICON_NORMAL) end
775
+ def set_item_image(item, image, which=Wx::TreeItemIcon::TreeItemIcon_Normal) end
776
776
 
777
777
  # Sets the specified item state.
778
778
  # The value of state may be an index into the state image list, or one of the special values:
@@ -52,7 +52,7 @@ module Wx
52
52
  # @overload initialize()
53
53
  # Default constructor.
54
54
  # @return [Treebook]
55
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::BK_DEFAULT, name=Wx::EMPTY_STRING)
55
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::BK_DEFAULT, name=(''))
56
56
  # Creates an empty {Wx::Treebook}.
57
57
  # @param parent [Wx::Window] The parent window. Must be non-NULL.
58
58
  # @param id [Integer] The window identifier.
@@ -95,7 +95,7 @@ module Wx
95
95
  # @param style [Integer]
96
96
  # @param name [String]
97
97
  # @return [true,false]
98
- def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::BK_DEFAULT, name=Wx::EMPTY_STRING) end
98
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::BK_DEFAULT, name=('')) end
99
99
 
100
100
  # Deletes the page at the specified position and all its children.
101
101
  # Could trigger page selection change in a case when selected page is removed. In that case its parent is selected (or the next page if no parent).
@@ -8,8 +8,6 @@ module Wx
8
8
 
9
9
  # Changes the cursor to the given cursor for all windows in the application.
10
10
  # Use {end_busy_cursor} to revert the cursor back to its previous state. These two calls can be nested, and a counter ensures that only the outer calls take effect.
11
- #
12
- # Include file: #include <wx/utils.h>
13
11
  # @see is_busy
14
12
  # @see Wx::BusyCursor
15
13
  # @param cursor [Wx::Cursor]
@@ -18,15 +16,13 @@ module Wx
18
16
 
19
17
  # Changes the cursor back to the original cursor, for all windows in the application.
20
18
  # Use with {begin_busy_cursor}.
21
- #
22
- # Include file: #include <wx/utils.h>
23
19
  # @see is_busy
24
20
  # @see Wx::BusyCursor
25
21
  # @return [void]
26
22
  def self.end_busy_cursor; end
27
23
 
28
24
  # Returns true if between two {begin_busy_cursor} and {end_busy_cursor} calls.
29
- # Include file: #include <wx/utils.h>
25
+ #
30
26
  # @see Wx::BusyCursor.
31
27
  # @return [true,false]
32
28
  def self.is_busy; end
@@ -34,22 +30,18 @@ module Wx
34
30
  # Ring the system bell.
35
31
  # This function is categorized as a GUI one and so is not thread-safe.
36
32
  #
37
- # Include file: #include <wx/utils.h>
38
33
  # ===
39
34
  # @return [void]
40
35
  def self.bell; end
41
36
 
42
37
  # Shows a message box with the information about the wxWidgets build used, including its version, most important build parameters and the version of the underlying GUI toolkit.
43
38
  # This is mainly used for diagnostic purposes and can be invoked by Ctrl-Alt-middle clicking on any {Wx::Window} which doesn't otherwise handle this event.
44
- #
45
- # Include file: #include <wx/utils.h>
46
39
  # @see get_library_version_info
47
40
  # @param parent [Wx::Window]
48
41
  # @return [void]
49
42
  def self.info_message_box(parent) end
50
43
 
51
44
  # Get wxWidgets version information.
52
- # Include file: #include <wx/utils.h>
53
45
  # ===
54
46
  # @see Wx::VersionInfo
55
47
  # @return [Wx::VersionInfo]
@@ -59,38 +51,32 @@ module Wx
59
51
  # For togglable keys (Caps Lock, Num Lock and Scroll Lock), returns true if the key is toggled such that its LED indicator is lit. There is currently no way to test whether togglable keys are up or down.
60
52
  # Even though there are virtual key codes defined for mouse buttons, they cannot be used with this function currently.
61
53
  # In {Wx::GTK}, this function can be only used with modifier keys (WXK_ALT, WXK_CONTROL and WXK_SHIFT) when not using X11 backend currently.
62
- # Include file: #include <wx/utils.h>
63
54
  # @param key [KeyCode]
64
55
  # @return [true,false]
65
56
  def self.get_key_state(key) end
66
57
 
67
58
  # Returns the mouse position in screen coordinates.
68
- # Include file: #include <wx/utils.h>
69
59
  # @return [Wx::Point]
70
60
  def self.get_mouse_position; end
71
61
 
72
62
  # Returns the current state of the mouse.
73
63
  # Returns a {Wx::MouseState} instance that contains the current position of the mouse pointer in screen coordinates, as well as boolean values indicating the up/down status of the mouse buttons and the modifier keys.
74
- # Include file: #include <wx/utils.h>
75
64
  # @return [Wx::MouseState]
76
65
  def self.get_mouse_state; end
77
66
 
78
67
  # This function enables or disables all top level windows.
79
68
  # It is used by {safe_yield}.
80
- # Include file: #include <wx/utils.h>
81
69
  # @param enable [true,false]
82
70
  # @return [void]
83
71
  def self.enable_top_level_windows(enable=true) end
84
72
 
85
73
  # Find the deepest window at the given mouse position in screen coordinates, returning the window if found, or NULL if not.
86
74
  # This function takes child windows at the given position into account even if they are disabled. The hidden children are however skipped by it.
87
- # Include file: #include <wx/utils.h>
88
75
  # @param pt [Array(Integer, Integer), Wx::Point]
89
76
  # @return [Wx::Window]
90
77
  def self.find_window_at_point(pt) end
91
78
 
92
79
  # Find a menu item identifier associated with the given frame's menu bar.
93
- # Include file: #include <wx/utils.h>
94
80
  # @param frame [Wx::Frame]
95
81
  # @param menuString [String]
96
82
  # @param itemString [String]
@@ -98,7 +84,6 @@ module Wx
98
84
  def self.find_menu_item_id(frame, menuString, itemString) end
99
85
 
100
86
  # Ensures that Ids subsequently generated by {new_id} do not clash with the given id.
101
- # Include file: #include <wx/utils.h>
102
87
  # @param id [Integer]
103
88
  # @return [void]
104
89
  def self.register_id(id) end
@@ -106,8 +91,6 @@ module Wx
106
91
  # Opens the document in the application associated with the files of this type.
107
92
  # The flags parameter is currently not used
108
93
  # Returns true if the application was successfully launched.
109
- #
110
- # Include file: #include <wx/utils.h>
111
94
  # @see launch_default_browser
112
95
  # @see execute
113
96
  # @param document [String]
@@ -123,8 +106,6 @@ module Wx
123
106
  #
124
107
  # Returns true if the application was successfully launched.
125
108
  # For some configurations of the running user, the application which is launched to open the given URL may be URL-dependent (e.g. a browser may be used for local URLs while another one may be used for remote URLs).
126
- #
127
- # Include file: #include <wx/utils.h>
128
109
  # @see launch_default_application
129
110
  # @see execute
130
111
  # @param url [String]
@@ -134,18 +115,15 @@ module Wx
134
115
 
135
116
  # Copies the user's email address into the supplied buffer, by concatenating the values returned by {get_full_host_name} and {get_user_id}.
136
117
  # true if successful, false otherwise.
137
- #
138
- # Include file: #include <wx/utils.h>
139
118
  # @return [String]
140
119
  def self.get_email_address; end
141
120
 
142
121
  # Returns the amount of free memory in bytes under environments which support it, and -1 if not supported or failed to perform measurement.
143
- # Include file: #include <wx/utils.h>
144
122
  # @return [Wx::MemorySize]
145
123
  def self.get_free_memory; end
146
124
 
147
125
  # Return the (current) user's home directory.
148
- # Include file: #include <wx/utils.h>
126
+ #
149
127
  # @see get_user_home
150
128
  # @see Wx::StandardPaths
151
129
  # @return [String]
@@ -154,14 +132,12 @@ module Wx
154
132
  # Copies the current host machine's name into the supplied buffer.
155
133
  # Please note that the returned name is not fully qualified, i.e. it does not include the domain name.
156
134
  # The hostname if successful or an empty string otherwise.
157
- #
158
- # Include file: #include <wx/utils.h>
159
135
  # @see get_full_host_name
160
136
  # @return [String]
161
137
  def self.get_host_name; end
162
138
 
163
139
  # Returns the FQDN (fully qualified domain host name) or an empty string on error.
164
- # Include file: #include <wx/utils.h>
140
+ #
165
141
  # @see get_host_name
166
142
  # @return [String]
167
143
  def self.get_full_host_name; end
@@ -169,16 +145,13 @@ module Wx
169
145
  # Returns the home directory for the given user.
170
146
  # If the user is empty (default value), this function behaves like {get_home_dir} (i.e. returns the current user home directory).
171
147
  # If the home directory couldn't be determined, an empty string is returned.
172
- # Include file: #include <wx/utils.h>
173
148
  # @param user [String]
174
149
  # @return [String]
175
- def self.get_user_home(user=Wx::EMPTY_STRING) end
150
+ def self.get_user_home(user=('')) end
176
151
 
177
152
  # This function returns the "user id" also known as "login name" under Unix (i.e.
178
153
  # something like "jsmith"). It uniquely identifies the current user (on this system). Under Windows or NT, this function first looks in the environment variables USER and LOGNAME; if neither of these is found, the entry <b>UserId</b> in the <b>wxWidgets</b> section of the WIN.INI file is tried.
179
154
  # The login name if successful or an empty string otherwise.
180
- #
181
- # Include file: #include <wx/utils.h>
182
155
  # @see get_user_name
183
156
  # @return [String]
184
157
  def self.get_user_id; end
@@ -186,22 +159,18 @@ module Wx
186
159
  # This function returns the full user name (something like "Mr. John Smith").
187
160
  # Under Windows or NT, this function looks for the entry UserName in the wxWidgets section of the WIN.INI file. If PenWindows is running, the entry Current in the section User of the PENWIN.INI file is used.
188
161
  # The full user name if successful or an empty string otherwise.
189
- #
190
- # Include file: #include <wx/utils.h>
191
162
  # @see get_user_id
192
163
  # @return [String]
193
164
  def self.get_user_name; end
194
165
 
195
166
  # Returns the string containing the description of the current platform in a user-readable form.
196
167
  # For example, this function may return strings like "Windows 10 (build 10240), 64-bit edition" or "Linux 4.1.4 i386".
197
- #
198
- # Include file: #include <wx/utils.h>
199
168
  # @see get_os_version
200
169
  # @return [String]
201
170
  def self.get_os_description; end
202
171
 
203
172
  # Returns true if the version of the operating system on which the program is running under is the same or later than the given version.
204
- # Include file: #include <wx/utils.h>
173
+ #
205
174
  # @see get_os_version
206
175
  # @see Wx::PlatformInfo
207
176
  # @param majorVsn [Integer]
@@ -213,15 +182,11 @@ module Wx
213
182
  # Returns true if the operating system the program is running under is 64 bit.
214
183
  # The check is performed at run-time and may differ from the value available at compile-time (at compile-time you can just check if <code>sizeof(void*) == 8</code>) since the program could be running in emulation mode or in a mixed 32/64 bit system.
215
184
  # This function is not 100% reliable on some systems given the fact that there isn't always a standard way to do a reliable check on the OS bitness.
216
- #
217
- # Include file: #include <wx/utils.h>
218
185
  # @return [true,false]
219
186
  def self.is_platform64bit; end
220
187
 
221
188
  # Returns true if the current platform is little endian (instead of big endian).
222
189
  # The check is performed at run-time.
223
- #
224
- # Include file: #include <wx/utils.h>
225
190
  # @see Byte Order Functions and Macros
226
191
  # @return [true,false]
227
192
  def self.is_platform_little_endian; end
@@ -247,8 +212,6 @@ module Wx
247
212
  # Note that performing the shutdown requires the corresponding access rights (superuser under Unix, SE_SHUTDOWN privilege under Windows) and that this function is only implemented under Unix and MSW.
248
213
  #
249
214
  # true on success, false if an error occurred.
250
- #
251
- # Include file: #include <wx/utils.h>
252
215
  # @param flags [Integer] One of {Wx::SHUTDOWN_POWEROFF}, {Wx::SHUTDOWN_REBOOT} or {Wx::SHUTDOWN_LOGOFF} (currently implemented only for MSW) possibly combined with {Wx::SHUTDOWN_FORCE} which forces shutdown under MSW by forcefully terminating all the applications. As doing this can result in a data loss, this flag shouldn't be used unless really necessary.
253
216
  # @return [true,false]
254
217
  def self.shutdown(flags=Wx::SHUTDOWN_POWEROFF) end
@@ -35,7 +35,7 @@ module Wx
35
35
  # @overload initialize()
36
36
  # Default constructor, you must call {Wx::VListBox#create} later.
37
37
  # @return [VListBox]
38
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::V_LIST_BOX_NAME_STR)
38
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::VListBoxNameStr)
39
39
  # Normal constructor which calls {Wx::VListBox#create} internally.
40
40
  # @param parent [Wx::Window]
41
41
  # @param id [Integer]
@@ -61,7 +61,7 @@ module Wx
61
61
  # @param style [Integer]
62
62
  # @param name [String]
63
63
  # @return [true,false]
64
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::V_LIST_BOX_NAME_STR) end
64
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::VListBoxNameStr) end
65
65
 
66
66
  # Deselects all the items in the listbox.
67
67
  # This method is only valid for multi selection listboxes.
@@ -65,7 +65,7 @@ module Wx
65
65
  # @overload initialize()
66
66
  # Default constructor, you must call {Wx::VScrolledWindow#create} later.
67
67
  # @return [VScrolledWindow]
68
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR)
68
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr)
69
69
  # This is the normal constructor, no need to call {Wx::VScrolledWindow#create} after using this constructor.
70
70
  # {Wx::VSCROLL} is always automatically added to the style, there is no need to specify it explicitly.
71
71
  # @param parent [Wx::Window] The parent window, must not be NULL.
@@ -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, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PANEL_NAME_STR) end
89
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr) end
90
90
 
91
91
  # Returns the number of rows the target window contains.
92
92
  #
@@ -183,7 +183,7 @@ module Wx
183
183
  # @overload initialize()
184
184
  # Default constructor.
185
185
  # @return [Variant]
186
- # @overload initialize(data, name=Wx::EMPTY_STRING)
186
+ # @overload initialize(data, name=(''))
187
187
  # Constructs a variant directly with a {Wx::VariantData} object.
188
188
  # {Wx::Variant} will take ownership of the {Wx::VariantData} and will not increase its reference count.
189
189
  # @param data [Object]
@@ -193,47 +193,47 @@ module Wx
193
193
  # Constructs a variant from another variant by increasing the reference count.
194
194
  # @param variant [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
195
195
  # @return [Variant]
196
- # @overload initialize(value, name=Wx::EMPTY_STRING)
196
+ # @overload initialize(value, name=(''))
197
197
  # Constructs a variant from a string.
198
198
  # @param value [String]
199
199
  # @param name [String]
200
200
  # @return [Variant]
201
- # @overload initialize(value, name=Wx::EMPTY_STRING)
201
+ # @overload initialize(value, name=(''))
202
202
  # Constructs a variant from a long.
203
203
  # @param value [Integer]
204
204
  # @param name [String]
205
205
  # @return [Variant]
206
- # @overload initialize(value, name=Wx::EMPTY_STRING)
206
+ # @overload initialize(value, name=(''))
207
207
  # Constructs a variant from a bool.
208
208
  # @param value [true,false]
209
209
  # @param name [String]
210
210
  # @return [Variant]
211
- # @overload initialize(value, name=Wx::EMPTY_STRING)
211
+ # @overload initialize(value, name=(''))
212
212
  # Constructs a variant from a double.
213
213
  # @param value [Float]
214
214
  # @param name [String]
215
215
  # @return [Variant]
216
- # @overload initialize(value, name=Wx::EMPTY_STRING)
216
+ # @overload initialize(value, name=(''))
217
217
  # Constructs a variant from a {Wx::LongLong}.
218
218
  # @param value [Integer]
219
219
  # @param name [String]
220
220
  # @return [Variant]
221
- # @overload initialize(value, name=Wx::EMPTY_STRING)
221
+ # @overload initialize(value, name=(''))
222
222
  # Constructs a variant from a {Wx::ULongLong}.
223
223
  # @param value [Integer]
224
224
  # @param name [String]
225
225
  # @return [Variant]
226
- # @overload initialize(value, name=Wx::EMPTY_STRING)
226
+ # @overload initialize(value, name=(''))
227
227
  # Constructs a variant from a list of variants.
228
228
  # @param value [Array<Wx::Variant>]
229
229
  # @param name [String]
230
230
  # @return [Variant]
231
- # @overload initialize(val, name=Wx::EMPTY_STRING)
231
+ # @overload initialize(val, name=(''))
232
232
  # Constructs a variant from a {Wx::DateTime}.
233
233
  # @param val [Time,Date,DateTime]
234
234
  # @param name [String]
235
235
  # @return [Variant]
236
- # @overload initialize(val, name=Wx::EMPTY_STRING)
236
+ # @overload initialize(val, name=(''))
237
237
  # Constructs a variant from a {Wx::ArrayString}.
238
238
  # @param val [Array<String>]
239
239
  # @param name [String]