wxruby3 0.9.0.pre.beta.11-x64-mingw-ucrt → 0.9.0.pre.beta.14-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (272) 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/accessors.rb +8 -2
  23. data/lib/wx/core/array_ext.rb +26 -0
  24. data/lib/wx/core/art_locator.rb +92 -0
  25. data/lib/wx/core/artprovider.rb +1 -1
  26. data/lib/wx/core/bitmap.rb +90 -53
  27. data/lib/wx/core/cursor.rb +12 -0
  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 +14 -0
  38. data/lib/wx/core/real_point.rb +15 -1
  39. data/lib/wx/core/rect.rb +42 -7
  40. data/lib/wx/core/region_iterator.rb +37 -0
  41. data/lib/wx/core/size.rb +20 -0
  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 +1 -2
  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 +122 -1
  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 -6
  90. data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
  91. data/lib/wx/doc/gen/dc.rb +9 -9
  92. data/lib/wx/doc/gen/defs.rb +0 -4
  93. data/lib/wx/doc/gen/dialog.rb +3 -3
  94. data/lib/wx/doc/gen/dir_dialog.rb +2 -4
  95. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  96. data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
  97. data/lib/wx/doc/gen/drag_drop.rb +13 -1
  98. data/lib/wx/doc/gen/editable_list_box.rb +2 -2
  99. data/lib/wx/doc/gen/event.rb +0 -1
  100. data/lib/wx/doc/gen/event_list.rb +18 -16
  101. data/lib/wx/doc/gen/events.rb +87 -2
  102. data/lib/wx/doc/gen/ext_help_controller.rb +2 -2
  103. data/lib/wx/doc/gen/file_dialog.rb +1 -1
  104. data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
  105. data/lib/wx/doc/gen/font.rb +6 -6
  106. data/lib/wx/doc/gen/font_dialog.rb +1 -2
  107. data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
  108. data/lib/wx/doc/gen/frame.rb +5 -5
  109. data/lib/wx/doc/gen/fs_file.rb +2 -2
  110. data/lib/wx/doc/gen/gauge.rb +2 -2
  111. data/lib/wx/doc/gen/gdi_common.rb +18 -21
  112. data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
  113. data/lib/wx/doc/gen/graphics_context.rb +4 -4
  114. data/lib/wx/doc/gen/graphics_object.rb +2 -2
  115. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  116. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  117. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  118. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  119. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  120. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  121. data/lib/wx/doc/gen/grid/grid_ctrl.rb +7 -7
  122. data/lib/wx/doc/gen/help_controller.rb +1 -1
  123. data/lib/wx/doc/gen/html/html_cell.rb +4 -4
  124. data/lib/wx/doc/gen/html/html_easy_printing.rb +6 -6
  125. data/lib/wx/doc/gen/html/html_help_controller.rb +6 -6
  126. data/lib/wx/doc/gen/html/html_help_frame.rb +2 -2
  127. data/lib/wx/doc/gen/html/html_help_window.rb +6 -6
  128. data/lib/wx/doc/gen/html/html_list_box.rb +6 -6
  129. data/lib/wx/doc/gen/html/html_printout.rb +4 -4
  130. data/lib/wx/doc/gen/html/html_window.rb +4 -4
  131. data/lib/wx/doc/gen/icon.rb +6 -6
  132. data/lib/wx/doc/gen/image.rb +7 -7
  133. data/lib/wx/doc/gen/list_box.rb +4 -4
  134. data/lib/wx/doc/gen/list_ctrl.rb +5 -5
  135. data/lib/wx/doc/gen/listbook.rb +2 -2
  136. data/lib/wx/doc/gen/locale.rb +8 -8
  137. data/lib/wx/doc/gen/log.rb +2 -2
  138. data/lib/wx/doc/gen/mdi_frame.rb +5 -5
  139. data/lib/wx/doc/gen/media_ctrl.rb +4 -4
  140. data/lib/wx/doc/gen/menu.rb +12 -12
  141. data/lib/wx/doc/gen/menu_item.rb +1 -1
  142. data/lib/wx/doc/gen/message_dialog.rb +2 -4
  143. data/lib/wx/doc/gen/mini_frame.rb +2 -2
  144. data/lib/wx/doc/gen/notebook.rb +3 -3
  145. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -1
  146. data/lib/wx/doc/gen/object.rb +0 -1
  147. data/lib/wx/doc/gen/panel.rb +2 -2
  148. data/lib/wx/doc/gen/pen.rb +2 -2
  149. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +1 -1
  150. data/lib/wx/doc/gen/pg/pg_cell.rb +1 -1
  151. data/lib/wx/doc/gen/pg/pg_properties.rb +20 -20
  152. data/lib/wx/doc/gen/pg/pg_property.rb +12 -12
  153. data/lib/wx/doc/gen/pg/property_grid.rb +3 -3
  154. data/lib/wx/doc/gen/pg/property_grid_interface.rb +14 -14
  155. data/lib/wx/doc/gen/pg/property_grid_manager.rb +3 -3
  156. data/lib/wx/doc/gen/pg/property_grid_page.rb +2 -2
  157. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -2
  158. data/lib/wx/doc/gen/popup_window.rb +3 -3
  159. data/lib/wx/doc/gen/property_sheet_dialog.rb +3 -3
  160. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  161. data/lib/wx/doc/gen/prt/printer.rb +1 -1
  162. data/lib/wx/doc/gen/radio_box.rb +4 -4
  163. data/lib/wx/doc/gen/radio_button.rb +2 -2
  164. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +2 -2
  165. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +12 -12
  166. data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
  167. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +2 -2
  168. data/lib/wx/doc/gen/rbn/ribbon_page.rb +2 -2
  169. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
  170. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +11 -11
  171. data/lib/wx/doc/gen/region.rb +1 -1
  172. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  173. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +10 -10
  174. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
  175. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +2 -2
  176. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -4
  177. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +1 -1
  178. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +6 -6
  179. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  180. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  181. data/lib/wx/doc/gen/sash_event.rb +1 -1
  182. data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
  183. data/lib/wx/doc/gen/sash_window.rb +1 -1
  184. data/lib/wx/doc/gen/scroll_bar.rb +150 -0
  185. data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
  186. data/lib/wx/doc/gen/scrolled_control.rb +2 -2
  187. data/lib/wx/doc/gen/scrolled_window.rb +2 -2
  188. data/lib/wx/doc/gen/simplebook.rb +2 -2
  189. data/lib/wx/doc/gen/sizer.rb +3 -3
  190. data/lib/wx/doc/gen/slider.rb +2 -2
  191. data/lib/wx/doc/gen/spin_button.rb +2 -2
  192. data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
  193. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  194. data/lib/wx/doc/gen/splitter_window.rb +2 -2
  195. data/lib/wx/doc/gen/static_bitmap.rb +2 -2
  196. data/lib/wx/doc/gen/static_box.rb +4 -4
  197. data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
  198. data/lib/wx/doc/gen/static_line.rb +2 -2
  199. data/lib/wx/doc/gen/static_text.rb +2 -2
  200. data/lib/wx/doc/gen/status_bar.rb +2 -2
  201. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
  202. data/lib/wx/doc/gen/task_bar_icon.rb +2 -2
  203. data/lib/wx/doc/gen/text_attr.rb +3 -3
  204. data/lib/wx/doc/gen/text_ctrl.rb +3 -3
  205. data/lib/wx/doc/gen/text_entry_dialog.rb +6 -8
  206. data/lib/wx/doc/gen/text_validator.rb +1 -1
  207. data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
  208. data/lib/wx/doc/gen/tip_provider.rb +1 -3
  209. data/lib/wx/doc/gen/toggle_button.rb +2 -2
  210. data/lib/wx/doc/gen/tool_bar.rb +10 -10
  211. data/lib/wx/doc/gen/toolbook.rb +2 -2
  212. data/lib/wx/doc/gen/top_level_window.rb +4 -4
  213. data/lib/wx/doc/gen/tree_ctrl.rb +4 -4
  214. data/lib/wx/doc/gen/treebook.rb +2 -2
  215. data/lib/wx/doc/gen/utils.rb +5 -42
  216. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  217. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  218. data/lib/wx/doc/gen/variant.rb +10 -10
  219. data/lib/wx/doc/gen/window.rb +9 -14
  220. data/lib/wx/doc/gen/wizard.rb +2 -2
  221. data/lib/wx/doc/gen/wizard_event.rb +1 -1
  222. data/lib/wx/doc/gen/xml_node.rb +2 -2
  223. data/lib/wx/doc/gen/xml_resource.rb +3 -3
  224. data/lib/wx/doc/graphics_context.rb +42 -0
  225. data/lib/wx/doc/icon.rb +18 -0
  226. data/lib/wx/doc/id_helper.rb +25 -0
  227. data/lib/wx/doc/image.rb +33 -0
  228. data/lib/wx/doc/region_iterator.rb +31 -0
  229. data/lib/wx/doc/scaled_dc.rb +1 -0
  230. data/lib/wx/doc/window.rb +18 -0
  231. data/lib/wx/global_const.rb +24 -18
  232. data/lib/wx/version.rb +1 -1
  233. data/lib/wx/wxruby/cmd/sampler.rb +3 -21
  234. data/lib/wxruby_aui.so +0 -0
  235. data/lib/wxruby_core.so +0 -0
  236. data/lib/wxruby_grid.so +0 -0
  237. data/lib/wxruby_html.so +0 -0
  238. data/lib/wxruby_pg.so +0 -0
  239. data/lib/wxruby_prt.so +0 -0
  240. data/lib/wxruby_rbn.so +0 -0
  241. data/lib/wxruby_rtc.so +0 -0
  242. data/lib/wxruby_stc.so +0 -0
  243. data/rakelib/lib/config.rb +4 -4
  244. data/samples/art/wxruby-128x128.png +0 -0
  245. data/samples/art/wxruby-256x256.png +0 -0
  246. data/samples/art/wxruby-64x64.png +0 -0
  247. data/samples/art/wxruby.ico +0 -0
  248. data/samples/art/wxruby.png +0 -0
  249. data/samples/drawing/graphics_drawing.rb +1 -2
  250. data/samples/propgrid/propgrid.rb +65 -65
  251. data/samples/sample.xpm +246 -470
  252. data/samples/treectrl/treectrl.rb +1 -1
  253. data/tests/art/my_art/sample.xpm +251 -0
  254. data/tests/art/sample3.xpm +251 -0
  255. data/tests/art/test_art/bitmap/sample.xpm +251 -0
  256. data/tests/art/test_art/bitmap/wxruby.bmp +0 -0
  257. data/tests/art/test_art/bitmap/wxruby.png +0 -0
  258. data/tests/art/test_art/bitmap/wxruby.xpm +251 -0
  259. data/tests/art/test_art/cursor/wxruby.bmp +0 -0
  260. data/tests/art/test_art/icon/sample.xpm +251 -0
  261. data/tests/art/test_art/icon/wxruby.ico +0 -0
  262. data/tests/art/test_art/icon/wxruby.png +0 -0
  263. data/tests/art/test_art/image/sample.xpm +251 -0
  264. data/tests/art/test_art/image/wxruby.jpg +0 -0
  265. data/tests/art/test_art/image/wxruby.png +0 -0
  266. data/tests/art/test_art/sample2.xpm +251 -0
  267. data/tests/test_art.rb +91 -0
  268. data/tests/test_clipboard.rb +35 -0
  269. data/tests/test_dc.rb +70 -0
  270. data/tests/test_events.rb +12 -0
  271. data/tests/test_geometry.rb +13 -0
  272. metadata +48 -5
@@ -36,7 +36,7 @@ module Wx
36
36
  # The iconType is only applicable on {Wx::OSX}/Cocoa.
37
37
  # @param iconType [TaskBarIconType]
38
38
  # @return [TaskBarIcon]
39
- def initialize(iconType=Wx::TBI_DEFAULT_TYPE) end
39
+ def initialize(iconType=Wx::TaskBarIconType::TBI_DEFAULT_TYPE) end
40
40
 
41
41
  # This method is similar to {Wx::Window#destroy} and can be used to schedule the task bar icon object for the delayed destruction: it will be deleted during the next event loop iteration, which allows the task bar icon to process any pending events for it before being destroyed.
42
42
  # @return [void]
@@ -67,7 +67,7 @@ module Wx
67
67
  # @param icon [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
68
68
  # @param tooltip [String]
69
69
  # @return [true,false]
70
- def set_icon(icon, tooltip=Wx::EMPTY_STRING) end
70
+ def set_icon(icon, tooltip=('')) end
71
71
  alias_method :icon=, :set_icon
72
72
 
73
73
  # Returns true if system tray is available in the desktop environment the app runs under.
@@ -20,7 +20,7 @@ module Wx
20
20
  # @overload initialize()
21
21
  # Constructors.
22
22
  # @return [TextAttr]
23
- # @overload initialize(colText, colBack=Wx::NULL_COLOUR, font=Wx::NULL_FONT, alignment=Wx::TEXT_ALIGNMENT_DEFAULT)
23
+ # @overload initialize(colText, colBack=Wx::NULL_COLOUR, font=Wx::NULL_FONT, alignment=Wx::TextAttrAlignment::TEXT_ALIGNMENT_DEFAULT)
24
24
  # Constructors.
25
25
  # @param colText [Wx::Colour,String,Symbol]
26
26
  # @param colBack [Wx::Colour,String,Symbol]
@@ -97,7 +97,7 @@ module Wx
97
97
  # @param font [Wx::Font,Wx::FontInfo]
98
98
  # @param flags [Integer]
99
99
  # @return [true,false]
100
- def get_font_attributes(font, flags=Wx::TEXT_ATTR_FONT) end
100
+ def get_font_attributes(font, flags=Wx::TextAttrFlags::TEXT_ATTR_FONT) end
101
101
  alias_method :font_attributes, :get_font_attributes
102
102
 
103
103
  # Returns the font encoding.
@@ -456,7 +456,7 @@ module Wx
456
456
  # @param font [Wx::Font,Wx::FontInfo]
457
457
  # @param flags [Integer]
458
458
  # @return [void]
459
- def set_font(font, flags=(Wx::TEXT_ATTR_FONT &~Wx::TEXT_ATTR_FONT_PIXEL_SIZE)) end
459
+ def set_font(font, flags=(Wx::TextAttrFlags::TEXT_ATTR_FONT &~Wx::TextAttrFlags::TEXT_ATTR_FONT_PIXEL_SIZE)) end
460
460
  alias_method :font=, :set_font
461
461
 
462
462
  # Sets the font encoding.
@@ -612,7 +612,7 @@ module Wx
612
612
  # @overload initialize()
613
613
  # Default ctor.
614
614
  # @return [TextCtrl]
615
- # @overload initialize(parent, id, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR)
615
+ # @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr)
616
616
  # Constructor, creating and showing a text control.
617
617
  # The horizontal scrollbar ({Wx::HSCROLL} style flag) will only be created for multi-line text controls. Without a horizontal scrollbar, text lines that don't fit in the control's size will be wrapped (but no newline character is inserted). Single line controls don't have a horizontal scrollbar, the text is automatically scrolled so that the insertion point is always visible.
618
618
  # @see Wx::TextCtrl#create
@@ -639,7 +639,7 @@ module Wx
639
639
  # @param validator [Wx::Validator]
640
640
  # @param name [String]
641
641
  # @return [void]
642
- def create(parent, id, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR) end
642
+ def create(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr) end
643
643
 
644
644
  # Resets the internal modified flag as if the current changes had been saved.
645
645
  # @return [void]
@@ -788,7 +788,7 @@ module Wx
788
788
  # @param filename [String] The name of the file in which to save the text.
789
789
  # @param fileType [Integer] The type of file to save. This is currently ignored in {Wx::TextCtrl}.
790
790
  # @return [void]
791
- def save_file(filename=Wx::EMPTY_STRING, fileType=Wx::TEXT_TYPE_ANY) end
791
+ def save_file(filename=(''), fileType=Wx::TEXT_TYPE_ANY) end
792
792
 
793
793
  # Changes the default style to use for the new text which is going to be added to the control.
794
794
  # This applies both to the text added programmatically using {Wx::TextCtrl#write_text} or {Wx::TextCtrl#append_text} and to the text entered by the user interactively.
@@ -18,7 +18,6 @@ module Wx
18
18
  # The user may type in text and press OK to return this text, or press Cancel to return the empty string.
19
19
  # If centre is true, the message text (which may include new line characters) is centred; if false, the message is left-justified.
20
20
  # This function is a wrapper around {Wx::TextEntryDialog} and while it is usually more convenient to use, using the dialog directly is more flexible, e.g. it allows you to specify the {Wx::TE_MULTILINE} to allow the user enter multiple lines of text while this function is limited to single line entry only.
21
- # Include file: #include <wx/textdlg.h>
22
21
  # @param message [String]
23
22
  # @param caption [String]
24
23
  # @param default_value [String]
@@ -27,11 +26,10 @@ module Wx
27
26
  # @param y [Integer]
28
27
  # @param centre [true,false]
29
28
  # @return [String]
30
- def self.get_text_from_user(message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, default_value=Wx::EMPTY_STRING, parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD, centre=true) end
29
+ def self.get_text_from_user(message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, default_value=(''), parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD, centre=true) end
31
30
 
32
31
  # Similar to {get_text_from_user} but the text entered in the dialog is not shown on screen but replaced with stars.
33
32
  # This is intended to be used for entering passwords as the function name implies.
34
- # Include file: #include <wx/textdlg.h>
35
33
  # @param message [String]
36
34
  # @param caption [String]
37
35
  # @param default_value [String]
@@ -40,7 +38,7 @@ module Wx
40
38
  # @param y [Integer]
41
39
  # @param centre [true,false]
42
40
  # @return [String]
43
- def self.get_password_from_user(message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, default_value=Wx::EMPTY_STRING, parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD, centre=true) end
41
+ def self.get_password_from_user(message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, default_value=(''), parent=nil, x=Wx::DEFAULT_COORD, y=Wx::DEFAULT_COORD, centre=true) end
44
42
 
45
43
  # This class represents a dialog that requests a one-line text string from the user.
46
44
  # It is implemented as a generic wxWidgets dialog.
@@ -67,7 +65,7 @@ module Wx
67
65
  # The first overload uses the provided validator which can be of a custom class derived from {Wx::TextValidator} while the second one creates a {Wx::TextValidator} with the specified style.
68
66
  # @param validator [Wx::TextValidator]
69
67
  # @return [void]
70
- # @overload set_text_validator(style=Wx::FILTER_NONE)
68
+ # @overload set_text_validator(style=Wx::TextValidatorStyle::FILTER_NONE)
71
69
  # Associate a validator with the text control used by the dialog.
72
70
  # These methods can be used to limit the user entry to only some characters, e.g.
73
71
  #
@@ -89,7 +87,7 @@ module Wx
89
87
  # Default constructor.
90
88
  # Call {Wx::TextEntryDialog#create} to really create the dialog later.
91
89
  # @return [TextEntryDialog]
92
- # @overload initialize(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=Wx::EMPTY_STRING, style=Wx::TEXT_ENTRY_DIALOG_STYLE, pos=Wx::DEFAULT_POSITION)
90
+ # @overload initialize(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION)
93
91
  # Constructor.
94
92
  # Use {Wx::TextEntryDialog#show_modal} to show the dialog.
95
93
  # See {Wx::TextEntryDialog#create} method for parameter description.
@@ -109,7 +107,7 @@ module Wx
109
107
  # @param style [Integer] A dialog style, specifying the buttons ({Wx::OK}, {Wx::CANCEL}) and an optional {Wx::GeometryCentre::CENTRE} style. Additionally, most {Wx::TextCtrl} styles (such as {Wx::TE_PASSWORD} or {Wx::TE_MULTILINE}) may be specified here, but {Wx::TE_READONLY} may not be used, as it doesn't make sense for this dialog, used for text input.
110
108
  # @param pos [Array(Integer, Integer), Wx::Point] Dialog position.
111
109
  # @return [true,false]
112
- def create(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=Wx::EMPTY_STRING, style=Wx::TEXT_ENTRY_DIALOG_STYLE, pos=Wx::DEFAULT_POSITION) end
110
+ def create(parent, message, caption=Wx::GET_TEXT_FROM_USER_PROMPT_STR, value=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION) end
113
111
 
114
112
  # Returns the text that the user has entered if the user has pressed OK, or the original value if the user has pressed Cancel.
115
113
  # @return [String]
@@ -162,7 +160,7 @@ module Wx
162
160
  # @param style [Integer] A dialog style, specifying the buttons ({Wx::OK}, {Wx::CANCEL}) and an optional {Wx::GeometryCentre::CENTRE} style. You do not need to specify the {Wx::TE_PASSWORD} style, it is always applied.
163
161
  # @param pos [Array(Integer, Integer), Wx::Point] Dialog position.
164
162
  # @return [PasswordEntryDialog]
165
- def initialize(parent, message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, defaultValue=Wx::EMPTY_STRING, style=Wx::TEXT_ENTRY_DIALOG_STYLE, pos=Wx::DEFAULT_POSITION) end
163
+ def initialize(parent, message, caption=Wx::GET_PASSWORD_FROM_USER_PROMPT_STR, defaultValue=(''), style=Wx::TextEntryDialogStyle, pos=Wx::DEFAULT_POSITION) end
166
164
 
167
165
  end # PasswordEntryDialog
168
166
 
@@ -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.