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
@@ -52,24 +52,45 @@ module Wx
52
52
  # @return [Wx::Size]
53
53
  def +(arg) end
54
54
 
55
+ alias :get_x :get_width
56
+ alias :x :get_width
57
+ alias :get_y :get_height
58
+ alias :y :get_height
59
+
60
+ # Set this size to the given size's width,height values
61
+ # @param [Wx::Size] sz
62
+ # @return [self]
63
+ def assign(sz) end
64
+
65
+ # Returns self.
66
+ # @return [self]
67
+ def to_size; end
68
+
55
69
  end
56
70
 
57
71
  class Point
58
72
 
73
+ include Comparable
74
+
59
75
  # Returns point array (`[x, y]`)
60
76
  # @return [Array(Integer,Integer)] point as array
61
77
  def to_ary; end
62
78
 
63
- # Compare point values (Wx::Point or point array). Throws exception if incompatible.
79
+ # Compare point values (Wx::Point or point array). Returns -1,0 or 1 to indicate if this point
80
+ # is smaller, equal or greater than other (comparing <code>x*y</code> with <code>other.x*other.y</code>).
81
+ # Returns nil if incompatible.
64
82
  # @param [Wx::Point,Array(Integer,Integer)] other
65
- # @return [Boolean]
66
- def ==(other)end
83
+ # @return [Boolean,nil]
84
+ def <=>(other)end
67
85
 
68
86
  # Compare points.
69
87
  # @param [Wx::Point] other
70
88
  # @return [Boolean]
71
89
  def eql?(other)end
72
90
 
91
+ # Returns hash for point
92
+ def hash; end
93
+
73
94
  # Return a new Wx::Point with the x and y parameters both divided by
74
95
  # parameter +num+, which should be a Numeric
75
96
  # @param [Numeric] num
@@ -97,11 +118,27 @@ module Wx
97
118
  # @param [Wx::Point,Wx::Size,Array(Integer,Integer),Numeric] arg
98
119
  # @return [Wx::Point]
99
120
  def +(arg) end
100
-
121
+
122
+ # Converts point to Wx::RealPoint
123
+ # @return [Wx::RealPoint] Wx::RealPoint instance from point coordinates
124
+ def to_real_point; end
125
+ alias :to_real :to_real_point
126
+
127
+ # Returns self.
128
+ # @return [self]
129
+ def to_point; end
130
+
131
+ # Set this point to the given point's x,y values
132
+ # @param [Wx::Point] pt
133
+ # @return [self]
134
+ def assign(pt) end
135
+
101
136
  end
102
137
 
103
138
  class RealPoint
104
139
 
140
+ include Comparable
141
+
105
142
  # Returns point array (`[x, y]`)
106
143
  # @return [Array(Float,Float)] point as array
107
144
  def to_ary; end
@@ -111,11 +148,21 @@ module Wx
111
148
  # @return [Boolean]
112
149
  def ==(other)end
113
150
 
151
+ # Compare point values (Wx::RealPoint or point array). Returns -1,0 or 1 to indicate if this point
152
+ # is smaller, equal or greater than other (comparing <code>x*y</code> with <code>other.x*other.y</code>).
153
+ # Returns nil if incompatible.
154
+ # @param [Wx::RealPoint,Array(Float,Float)] other
155
+ # @return [Boolean,nil]
156
+ def <=>(other)end
157
+
114
158
  # Compare points.
115
159
  # @param [Wx::RealPoint] other
116
160
  # @return [Boolean]
117
161
  def eql?(other)end
118
162
 
163
+ # Returns hash for point
164
+ def hash; end
165
+
119
166
  # Return a new Wx::RealPoint with the x and y parameters both divided by
120
167
  # parameter +num+, which should be a Numeric
121
168
  # @param [Numeric] num
@@ -144,6 +191,19 @@ module Wx
144
191
  # @return [Wx::RealPoint]
145
192
  def +(arg) end
146
193
 
194
+ # Converts real point to Wx::Point
195
+ # @return [Wx::Point] Wx::Point instance from real point coordinates
196
+ def to_point; end
197
+
198
+ # Returns self.
199
+ # @return [self]
200
+ def to_real_point; end
201
+
202
+ # Set this point to the given point's x,y values
203
+ # @param [Wx::RealPoint] pt
204
+ # @return [self]
205
+ def assign(pt) end
206
+
147
207
  end
148
208
 
149
209
  class Rect
@@ -152,7 +212,7 @@ module Wx
152
212
  # @return [Array(Integer,Integer,Integer,Integer)] rect as array
153
213
  def to_ary; end
154
214
 
155
- # Compare area values (Wx::Rect or 4-element array). Throws exception if incompatible.
215
+ # Compare area values (Wx::Rect or 4-element array). Returns false if incompatible.
156
216
  # @param [Wx::Rect,Array(Integer,Integer,Integer,Integer)] other
157
217
  # @return [Boolean]
158
218
  def ==(other)end
@@ -162,6 +222,88 @@ module Wx
162
222
  # @return [Boolean]
163
223
  def eql?(other)end
164
224
 
225
+ # Update this rectangle to the union with 'rect'
226
+ # @param [Wx::Rect] rect
227
+ # @return [self]
228
+ def union!(rect) end
229
+
230
+ # Update this rectangle to the intersection with 'rect'
231
+ # @param [Wx::Rect] rect
232
+ # @return [self]
233
+ def intersect!(rect) end
234
+
235
+ # @overload deflate!(dx, dy)
236
+ # Decrease the rectangle size.
237
+ # This method is the opposite from {inflate!}: deflate!(a, b) is equivalent to inflate!(-a, -b). Please refer to {inflate!} for full description.
238
+ # @param dx [Integer]
239
+ # @param dy [Integer]
240
+ # @return [self]
241
+ # @overload deflate!(diff)
242
+ # Decrease the rectangle size.
243
+ # This method is the opposite from {inflate!}: deflate!(a, b) is equivalent to inflate!(-a, -b). Please refer to {inflate!} for full description.
244
+ # @param diff [Array(Integer, Integer), Wx::Size]
245
+ # @return [self]
246
+ # @overload deflate!(diff)
247
+ # Decrease the rectangle size.
248
+ # This method is the opposite from {inflate!}: deflate!(a, b) is equivalent to inflate!(-a, -b). Please refer to {inflate!} for full description.
249
+ # @param diff [Integer]
250
+ # @return [self]
251
+ def deflate!(*args) end
252
+
253
+ # @overload inflate!(dx, dy)
254
+ # Increases the size of the rectangle.
255
+ # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
256
+ # Inflating and deflating behaves "naturally". Defined more precisely, that means:
257
+ # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
258
+ # @see #inflate
259
+ # @see #deflate!
260
+ # @param dx [Integer]
261
+ # @param dy [Integer]
262
+ # @return [self]
263
+ # @overload inflate!(diff)
264
+ # Increases the size of the rectangle.
265
+ # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
266
+ # Inflating and deflating behaves "naturally". Defined more precisely, that means:
267
+ # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
268
+ # @see deflate
269
+ # @param diff [Array(Integer, Integer), Wx::Size]
270
+ # @return [self]
271
+ # @overload inflate!(diff)
272
+ # Increases the size of the rectangle.
273
+ # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
274
+ # Inflating and deflating behaves "naturally". Defined more precisely, that means:
275
+ # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
276
+ # @see deflate
277
+ # @param diff [Integer]
278
+ # @return [self]
279
+ def inflate!(*args) end
280
+
281
+ # @overload offset(dx, dy)
282
+ # Moves the rectangle by the specified offset.
283
+ # If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
284
+ # @param dx [Integer]
285
+ # @param dy [Integer]
286
+ # @return [Wx::Rect]
287
+ # @overload offset(pt)
288
+ # Moves the rectangle by the specified offset.
289
+ # If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
290
+ # @param pt [Array(Integer, Integer), Wx::Point]
291
+ # @return [Wx::Rect]
292
+ def offset(*args) end
293
+
294
+ # @overload offset!(dx, dy)
295
+ # Moves the rectangle by the specified offset.
296
+ # If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
297
+ # @param dx [Integer]
298
+ # @param dy [Integer]
299
+ # @return [self]
300
+ # @overload offset!(pt)
301
+ # Moves the rectangle by the specified offset.
302
+ # If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
303
+ # @param pt [Array(Integer, Integer), Wx::Point]
304
+ # @return [self]
305
+ def offset!(*args) end
306
+
165
307
  alias :& :intersect
166
308
 
167
309
  alias :| :union
@@ -169,13 +311,20 @@ module Wx
169
311
  # Returns the overlap of the rectangle areas.
170
312
  # Does not check negative or zero overlap like #intersect.
171
313
  # @param [Wx::Rect] rect
314
+ # @return [Wx::Rect]
172
315
  def *(rect) end
173
316
 
174
- # Modifies the rectangle to contain the bounding box of this rectangle and the one passed in as parameter.
317
+ # Returns a rectangle containing the bounding box of this rectangle and the one passed in as parameter.
175
318
  # Does not ignore empty rectangles like #union
176
319
  # @param [Wx::Rect] rect
320
+ # @return [Wx::Rect]
177
321
  def +(rect) end
178
322
 
323
+ # Set this rectangle to the given rectangle's position & size values
324
+ # @param [Wx::Rect] rct
325
+ # @return [self]
326
+ def assign(rct) end
327
+
179
328
  end
180
329
 
181
330
  end
@@ -22,7 +22,6 @@ module Wx
22
22
  # }
23
23
  #
24
24
  # Please see the Dialogs Sample for more examples of using this function and {Wx::AboutDialogInfo} for the description of the information which can be shown in the about dialog.
25
- # Include file: #include <wx/aboutdlg.h>
26
25
  # @param info [Wx::AboutDialogInfo]
27
26
  # @param parent [Wx::Window]
28
27
  # @return [void]
@@ -31,8 +30,6 @@ module Wx
31
30
  # This function does the same thing as {about_box} except that it always uses the generic wxWidgets version of the dialog instead of the native one.
32
31
  # This is mainly useful if you need to customize the dialog by e.g. adding custom controls to it (customizing the native dialog is not currently supported).
33
32
  # See the Dialogs Sample for an example of about dialog customization.
34
- #
35
- # Include file: #include <wx/aboutdlg.h>
36
33
  # @see Wx::AboutDialogInfo
37
34
  # @param info [Wx::AboutDialogInfo]
38
35
  # @param parent [Wx::Window]
@@ -266,7 +263,7 @@ module Wx
266
263
  # @param url [String]
267
264
  # @param desc [String]
268
265
  # @return [void]
269
- def set_web_site(url, desc=Wx::EMPTY_STRING) end
266
+ def set_web_site(url, desc=('')) end
270
267
  alias_method :web_site=, :set_web_site
271
268
 
272
269
  # Returns true if developers have been set in the dialog info.
@@ -77,7 +77,7 @@ module Wx
77
77
  # Call {Wx::Animation#load} to initialize it.
78
78
  # @see Wx::AnimationCtrl#create_animation
79
79
  # @return [Animation]
80
- # @overload initialize(name, type=Wx::ANIMATION_TYPE_ANY)
80
+ # @overload initialize(name, type=Wx::AnimationType::ANIMATION_TYPE_ANY)
81
81
  # Constructs a new animation object and load the animation data from the given filename.
82
82
  #
83
83
  # @see Wx::AnimationCtrl#create_animation
@@ -125,14 +125,14 @@ module Wx
125
125
  # @param name [String] A filename.
126
126
  # @param type [AnimationType] One of the {Wx::AnimationType} values; {Wx::AnimationType::ANIMATION_TYPE_ANY} means that the function should try to autodetect the filetype.
127
127
  # @return [true,false]
128
- def load_file(name, type=Wx::ANIMATION_TYPE_ANY) end
128
+ def load_file(name, type=Wx::AnimationType::ANIMATION_TYPE_ANY) end
129
129
 
130
130
  # Loads an animation from the given stream.
131
131
  # true if the operation succeeded, false otherwise.
132
132
  # @param stream [IO,Wx::InputStream] The stream to use to load the animation. Under {Wx::GTK} may be any kind of stream; under other platforms this must be a seekable stream.
133
133
  # @param type [AnimationType] One of the {Wx::AnimationType} enumeration values.
134
134
  # @return [true,false]
135
- def load(stream, type=Wx::ANIMATION_TYPE_ANY) end
135
+ def load(stream, type=Wx::AnimationType::ANIMATION_TYPE_ANY) end
136
136
 
137
137
  # Returns the list of animation decoders used by the generic animation and {Wx::GenericAnimationCtrl}.
138
138
  # @return [Array<Wx::AnimationDecoder>]
@@ -41,7 +41,7 @@ module Wx
41
41
  # @param style [Integer]
42
42
  # @param name [String]
43
43
  # @return [AnimationCtrl]
44
- def initialize(parent, id, anim=Wx::NULL_ANIMATION, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AC_DEFAULT_STYLE, name=Wx::ANIMATION_CTRL_NAME_STR) end
44
+ def initialize(parent, id, anim=Wx::NULL_ANIMATION, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AC_DEFAULT_STYLE, name=Wx::AnimationCtrlNameStr) end
45
45
 
46
46
  # Creates the control with the given anim animation.
47
47
  # After control creation you must explicitly call {Wx::AnimationCtrl#play} to start to play the animation. Until that function won't be called, the first frame of the animation is displayed.
@@ -55,7 +55,7 @@ module Wx
55
55
  # @param style [Integer] The window style, see {Wx::AC_}* flags.
56
56
  # @param name [String] Control name.
57
57
  # @return [true,false]
58
- def create(parent, id, anim=Wx::NULL_ANIMATION, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AC_DEFAULT_STYLE, name=Wx::ANIMATION_CTRL_NAME_STR) end
58
+ def create(parent, id, anim=Wx::NULL_ANIMATION, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AC_DEFAULT_STYLE, name=Wx::AnimationCtrlNameStr) end
59
59
 
60
60
  # Create a new animation object compatible with this control.
61
61
  # A {Wx::Animation} object created using this function is always compatible with controls of this type, see {Wx::Animation#is_compatible_with}.
@@ -83,14 +83,14 @@ module Wx
83
83
  # @param file [String]
84
84
  # @param animType [AnimationType]
85
85
  # @return [true,false]
86
- def load_file(file, animType=Wx::ANIMATION_TYPE_ANY) end
86
+ def load_file(file, animType=Wx::AnimationType::ANIMATION_TYPE_ANY) end
87
87
 
88
88
  # Loads the animation from the given stream and calls {Wx::AnimationCtrl#set_animation}.
89
89
  # See {Wx::Animation#load} for more info.
90
90
  # @param file [IO,Wx::InputStream]
91
91
  # @param animType [AnimationType]
92
92
  # @return [true,false]
93
- def load(file, animType=Wx::ANIMATION_TYPE_ANY) end
93
+ def load(file, animType=Wx::AnimationType::ANIMATION_TYPE_ANY) end
94
94
 
95
95
  # Starts playing the animation.
96
96
  # The animation is always played in loop mode (unless the last frame of the animation has an infinite delay time) and always start from the first frame even if you {Wx::stopped} it while some other frame was displayed.
@@ -102,7 +102,7 @@ module Wx
102
102
  # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] The bitmap bundle containing the resolution-dependent bitmaps to display in the button. At default DPI, the size of the bitmap is determined by the default bundle size, i.e. the value returned from {Wx::BitmapBundle#get_default_size}. If the bitmap bundle is invalid, any currently shown bitmaps are removed from the button.
103
103
  # @param dir [Direction] The position of the bitmap inside the button. By default it is positioned to the left of the text, near to the left button border. Other possible values include {Wx::Direction::RIGHT}, {Wx::Direction::TOP} and {Wx::Direction::BOTTOM}.
104
104
  # @return [void]
105
- def set_bitmap(bitmap, dir=Wx::LEFT) end
105
+ def set_bitmap(bitmap, dir=Wx::Direction::LEFT) end
106
106
  alias_method :bitmap=, :set_bitmap
107
107
 
108
108
  # Sets the bitmap to be shown when the mouse is over the button.
@@ -17,7 +17,7 @@ module Wx::AUI
17
17
  # @param id [Integer]
18
18
  # @param style [Integer]
19
19
  # @return [AuiFloatingFrame]
20
- def initialize(parent, ownerMgr, pane, id=Wx::ID_ANY, style=(Wx::RESIZE_BORDER|Wx::SYSTEM_MENU|Wx::CAPTION|Wx::FRAME_NO_TASKBAR|Wx::FRAME_FLOAT_ON_PARENT|Wx::CLIP_CHILDREN)) end
20
+ def initialize(parent, ownerMgr, pane, id=Wx::StandardID::ID_ANY, style=(Wx::RESIZE_BORDER|Wx::SYSTEM_MENU|Wx::CAPTION|Wx::FRAME_NO_TASKBAR|Wx::FRAME_FLOAT_ON_PARENT|Wx::CLIP_CHILDREN)) end
21
21
 
22
22
  # @param pane [Wx::AuiPaneInfo]
23
23
  # @return [void]
@@ -72,7 +72,7 @@ module Wx::AUI
72
72
  # @param managed_wnd [Wx::Window] Specifies the {Wx::Frame} which should be managed.
73
73
  # @param flags [Integer] Specifies the frame management behaviour and visual effects with the {Wx::AUI::AuiManagerOption}'s style flags.
74
74
  # @return [AuiManager]
75
- def initialize(managed_wnd=nil, flags=Wx::AUI_MGR_DEFAULT) end
75
+ def initialize(managed_wnd=nil, flags=Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT) end
76
76
 
77
77
  # @overload add_pane(window, pane_info)
78
78
  # {Wx::AUI::AuiManager#add_pane} tells the frame manager to start managing a child window.
@@ -80,7 +80,7 @@ module Wx::AUI
80
80
  # @param window [Wx::Window]
81
81
  # @param pane_info [Wx::AuiPaneInfo]
82
82
  # @return [true,false]
83
- # @overload add_pane(window, direction=Wx::LEFT, caption=Wx::EMPTY_STRING)
83
+ # @overload add_pane(window, direction=Wx::Direction::LEFT, caption=(''))
84
84
  # @param window [Wx::Window]
85
85
  # @param direction [Integer]
86
86
  # @param caption [String]
@@ -13,7 +13,7 @@ module Wx::AUI
13
13
 
14
14
  # @overload initialize()
15
15
  # @return [AuiMDIChildFrame]
16
- # @overload initialize(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR)
16
+ # @overload initialize(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
17
17
  # @param parent [Wx::AuiMDIParentFrame]
18
18
  # @param winid [Integer]
19
19
  # @param title [String]
@@ -32,7 +32,7 @@ module Wx::AUI
32
32
  # @param style [Integer]
33
33
  # @param name [String]
34
34
  # @return [true,false]
35
- def create(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR) end
35
+ def create(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr) end
36
36
 
37
37
  # @param menuBar [Wx::MenuBar]
38
38
  # @return [void]
@@ -93,7 +93,7 @@ module Wx::AUI
93
93
  # @param winid [Integer]
94
94
  # @param name [String]
95
95
  # @return [Wx::StatusBar]
96
- def create_status_bar(number=1, style=1, winid=1, name=Wx::EMPTY_STRING) end
96
+ def create_status_bar(number=1, style=1, winid=1, name=('')) end
97
97
 
98
98
  # @return [Wx::StatusBar]
99
99
  def get_status_bar; end
@@ -13,7 +13,7 @@ module Wx::AUI
13
13
 
14
14
  # @overload initialize()
15
15
  # @return [AuiMDIParentFrame]
16
- # @overload initialize(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FRAME_NAME_STR)
16
+ # @overload initialize(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FrameNameStr)
17
17
  # @param parent [Wx::Window]
18
18
  # @param winid [Integer]
19
19
  # @param title [String]
@@ -32,7 +32,7 @@ module Wx::AUI
32
32
  # @param style [Integer]
33
33
  # @param name [String]
34
34
  # @return [true,false]
35
- def create(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FRAME_NAME_STR) end
35
+ def create(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FrameNameStr) end
36
36
 
37
37
  # @param provider [Wx::AuiTabArt]
38
38
  # @return [void]
@@ -92,7 +92,7 @@ module Wx::AUI
92
92
 
93
93
  # @param orient [Orientation]
94
94
  # @return [void]
95
- def tile(orient=Wx::HORIZONTAL) end
95
+ def tile(orient=Wx::Orientation::HORIZONTAL) end
96
96
 
97
97
  # @return [void]
98
98
  def arrange_icons; end
@@ -57,7 +57,7 @@ module Wx::AUI
57
57
  # @overload initialize()
58
58
  # Default ctor.
59
59
  # @return [AuiNotebook]
60
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI_NB_DEFAULT_STYLE)
60
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI::AuiNotebookOption::AUI_NB_DEFAULT_STYLE)
61
61
  # Constructor.
62
62
  # Creates a {Wx::AuiNotebok} control.
63
63
  # @param parent [Wx::Window]
@@ -111,7 +111,7 @@ module Wx::AUI
111
111
  # @param size [Array(Integer, Integer), Wx::Size]
112
112
  # @param style [Integer]
113
113
  # @return [true,false]
114
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
114
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
115
115
 
116
116
  # Deletes all pages.
117
117
  # @return [true,false]
@@ -44,7 +44,7 @@ module Wx::AUI
44
44
  # @overload initialize()
45
45
  # Default constructor, use {Wx::AUI::AuiToolBar#create} later.
46
46
  # @return [AuiToolBar]
47
- # @overload initialize(parent, id=Wx::ID_ANY, position=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI_TB_DEFAULT_STYLE)
47
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, position=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI::AuiToolBarStyle::AUI_TB_DEFAULT_STYLE)
48
48
  # Constructor creating and initializing the object.
49
49
  # @param parent [Wx::Window]
50
50
  # @param id [Integer]
@@ -61,7 +61,7 @@ module Wx::AUI
61
61
  # @param size [Array(Integer, Integer), Wx::Size]
62
62
  # @param style [Integer]
63
63
  # @return [true,false]
64
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI_TB_DEFAULT_STYLE) end
64
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI::AuiToolBarStyle::AUI_TB_DEFAULT_STYLE) end
65
65
 
66
66
  # Sets the style of the window.
67
67
  # Please note that some styles cannot be changed after the window creation and that {Wx::AUI::AuiToolBar#refresh} might need to be called after changing the others for the change to take place immediately.
@@ -99,7 +99,7 @@ module Wx::AUI
99
99
  def set_font(font) end
100
100
  alias_method :font=, :set_font
101
101
 
102
- # @overload add_tool(toolId, label, bitmap, short_help_string=Wx::EMPTY_STRING, kind=Wx::ITEM_NORMAL)
102
+ # @overload add_tool(toolId, label, bitmap, short_help_string=(''), kind=Wx::ItemKind::ITEM_NORMAL)
103
103
  # @param toolId [Integer]
104
104
  # @param label [String]
105
105
  # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
@@ -116,7 +116,7 @@ module Wx::AUI
116
116
  # @param long_help_string [String]
117
117
  # @param client_data [Wx::Object]
118
118
  # @return [Wx::AuiToolBarItem]
119
- # @overload add_tool(toolId, bitmap, disabled_bitmap, toggle=false, client_data=nil, short_help_string=Wx::EMPTY_STRING, long_help_string=Wx::EMPTY_STRING)
119
+ # @overload add_tool(toolId, bitmap, disabled_bitmap, toggle=false, client_data=nil, short_help_string=(''), long_help_string=(''))
120
120
  # @param toolId [Integer]
121
121
  # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
122
122
  # @param disabled_bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
@@ -131,12 +131,12 @@ module Wx::AUI
131
131
  # @param label [String]
132
132
  # @param width [Integer]
133
133
  # @return [Wx::AuiToolBarItem]
134
- def add_label(toolId, label=Wx::EMPTY_STRING, width=-1) end
134
+ def add_label(toolId, label=(''), width=-1) end
135
135
 
136
136
  # @param control [Wx::Control]
137
137
  # @param label [String]
138
138
  # @return [Wx::AuiToolBarItem]
139
- def add_control(control, label=Wx::EMPTY_STRING) end
139
+ def add_control(control, label=('')) end
140
140
 
141
141
  # @return [Wx::AuiToolBarItem]
142
142
  def add_separator; end
@@ -531,7 +531,7 @@ module Wx
531
531
  # @return [Wx::BitmapBundle]
532
532
  def self.from_resources(name) end
533
533
 
534
- # @overload self.from_files(path, filename, extension=("Wx::PNG"))
534
+ # @overload self.from_files(path, filename, extension=("png"))
535
535
  # Create a bundle from bitmaps stored as files.
536
536
  # Looking in path for files using filename as prefix and potentionally a suffix with scale, e.g. "_2x" or "@2x"
537
537
  # @param path [String] Path of the directory containing the files
@@ -38,7 +38,7 @@ module Wx
38
38
  # @overload initialize()
39
39
  # Default ctor.
40
40
  # @return [BitmapButton]
41
- # @overload initialize(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR)
41
+ # @overload initialize(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ButtonNameStr)
42
42
  # Constructor, creating and showing a button.
43
43
  # The bitmap parameter is normally the only bitmap you need to provide, and wxWidgets will draw the button correctly in its different states. If you want more control, call any of the functions {Wx::BitmapButton#set_bitmap_pressed}, {Wx::BitmapButton#set_bitmap_focus}, {Wx::BitmapButton#set_bitmap_disabled}.
44
44
  # @see Wx::BitmapButton#create
@@ -65,7 +65,7 @@ module Wx
65
65
  # @param validator [Wx::Validator]
66
66
  # @param name [String]
67
67
  # @return [true,false]
68
- def create(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR) end
68
+ def create(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ButtonNameStr) end
69
69
 
70
70
  # Creation function for two-step creation of "Close" button.
71
71
  # It is usually not necessary to use this function directly as {Wx::BitmapButton.new_close_button} is more convenient, but, if required, it can be called on a default-constructed {Wx::BitmapButton} object to achieve the same effect.
@@ -144,7 +144,7 @@ module Wx
144
144
  # @param select [true,false] Specifies whether the page should be selected.
145
145
  # @param imageId [Integer] Specifies the optional image index for the new page.
146
146
  # @return [true,false]
147
- def add_page(page, text, select=false, imageId=Wx::NO_IMAGE) end
147
+ def add_page(page, text, select=false, imageId=Wx::AUI::AuiMDIClientWindow::NO_IMAGE) end
148
148
 
149
149
  # Deletes all pages.
150
150
  # @return [true,false]
@@ -167,7 +167,7 @@ module Wx
167
167
  # @param select [true,false] Specifies whether the page should be selected.
168
168
  # @param imageId [Integer] Specifies the optional image index for the new page.
169
169
  # @return [true,false]
170
- def insert_page(index, page, text, select=false, imageId=Wx::NO_IMAGE) end
170
+ def insert_page(index, page, text, select=false, imageId=Wx::AUI::AuiMDIClientWindow::NO_IMAGE) end
171
171
 
172
172
  # Deletes the specified page, without deleting the associated window.
173
173
  # See {Wx::BookCtrlBase#delete_page} for a note about the events generated by this function.
@@ -197,7 +197,7 @@ module Wx
197
197
  # @overload initialize()
198
198
  # Default ctor.
199
199
  # @return [BookCtrlBase]
200
- # @overload initialize(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::EMPTY_STRING)
200
+ # @overload initialize(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
201
201
  # Constructs the book control with the given parameters.
202
202
  # See {Wx::BookCtrlBase#create} for two-step construction.
203
203
  # @param parent [Wx::Window]
@@ -217,7 +217,7 @@ module Wx
217
217
  # @param style [Integer]
218
218
  # @param name [String]
219
219
  # @return [true,false]
220
- def create(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::EMPTY_STRING) end
220
+ def create(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=('')) end
221
221
 
222
222
  # Sets the width and height of the pages.
223
223
  # This method is currently not implemented for {Wx::GTK}.
@@ -124,7 +124,7 @@ module Wx
124
124
  # Default constructor.
125
125
  # The brush will be uninitialised, and {Wx::Brush}:{Wx::Brush#is_ok} will return false.
126
126
  # @return [Brush]
127
- # @overload initialize(colour, style=Wx::BRUSHSTYLE_SOLID)
127
+ # @overload initialize(colour, style=Wx::BrushStyle::BRUSHSTYLE_SOLID)
128
128
  # Constructs a brush from a colour object and style.
129
129
  # @param colour [Wx::Colour,String,Symbol] Colour object.
130
130
  # @param style [BrushStyle] One of the {Wx::BrushStyle} enumeration values.
@@ -52,7 +52,7 @@ module Wx
52
52
  # @overload initialize()
53
53
  # Default ctor.
54
54
  # @return [Button]
55
- # @overload initialize(parent, id, label=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR)
55
+ # @overload initialize(parent, id, label=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ButtonNameStr)
56
56
  # Constructor, creating and showing a button.
57
57
  # The preferred way to create standard buttons is to use default value of label. If no label is supplied and id is one of standard IDs from this list, a standard label will be used. In other words, if you use a predefined {Wx::ID_XXX} constant, just omit the label completely rather than specifying it. In particular, help buttons (the ones with id of {Wx::StandardID::ID_HELP}) under macOS can't display any label at all and while {Wx::Button} will detect if the standard "Help" label is used and ignore it, using any other label will prevent the button from correctly appearing as a help button and so should be avoided.
58
58
  # In addition to that, the button will be decorated with stock icons under GTK+ 2.
@@ -80,7 +80,7 @@ module Wx
80
80
  # @param validator [Wx::Validator]
81
81
  # @param name [String]
82
82
  # @return [true,false]
83
- def create(parent, id, label=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR) end
83
+ def create(parent, id, label=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ButtonNameStr) end
84
84
 
85
85
  # Returns true if an authentication needed symbol is displayed on the button.
86
86
  # This method always returns false if the platform is not Windows Vista or newer.
@@ -61,7 +61,7 @@ module Wx
61
61
  # @param lowerdate [Time,Date,DateTime] The low limit for the dates shown by the control or {Wx::DefaultDateTime}.
62
62
  # @param upperdate [Time,Date,DateTime] The high limit for the dates shown by the control or {Wx::DefaultDateTime}.
63
63
  # @return [void]
64
- def set_date_range(lowerdate=Wx::DEFAULT_DATE_TIME, upperdate=Wx::DEFAULT_DATE_TIME) end
64
+ def set_date_range(lowerdate=Wx::DefaultDateTime, upperdate=Wx::DefaultDateTime) end
65
65
  alias_method :date_range=, :set_date_range
66
66
 
67
67
  # Returns the limits currently being used.
@@ -74,7 +74,7 @@ module Wx
74
74
  # @overload initialize()
75
75
  # Default constructor.
76
76
  # @return [CalendarCtrl]
77
- # @overload initialize(parent, id, date=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CALENDAR_NAME_STR)
77
+ # @overload initialize(parent, id, date=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CalendarNameStr)
78
78
  # Does the same as {Wx::CalendarCtrl#create} method.
79
79
  # @param parent [Wx::Window]
80
80
  # @param id [Integer]
@@ -96,7 +96,7 @@ module Wx
96
96
  # @param style [Integer]
97
97
  # @param name [String]
98
98
  # @return [void]
99
- def create(parent, id, date=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CALENDAR_NAME_STR) end
99
+ def create(parent, id, date=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CalendarNameStr) end
100
100
 
101
101
  # This function should be used instead of changing {Wx::CAL_SHOW_HOLIDAYS} style bit directly.
102
102
  # It enables or disables the special highlighting of the holidays.
@@ -16,7 +16,7 @@ module Wx
16
16
  #
17
17
  class CalendarDateAttr < ::Object
18
18
 
19
- # @overload initialize(colText=Wx::NULL_COLOUR, colBack=Wx::NULL_COLOUR, colBorder=Wx::NULL_COLOUR, font=Wx::NULL_FONT, border=Wx::CAL_BORDER_NONE)
19
+ # @overload initialize(colText=Wx::NULL_COLOUR, colBack=Wx::NULL_COLOUR, colBorder=Wx::NULL_COLOUR, font=Wx::NULL_FONT, border=Wx::CalendarDateBorder::CAL_BORDER_NONE)
20
20
  # Constructor for specifying all {Wx::CalendarDateAttr} properties.
21
21
  # @param colText [Wx::Colour,String,Symbol]
22
22
  # @param colBack [Wx::Colour,String,Symbol]
@@ -70,7 +70,7 @@ module Wx
70
70
  # @see Wx::CheckBox#create
71
71
  # @see Wx::Validator
72
72
  # @return [CheckBox]
73
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CHECK_BOX_NAME_STR)
73
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CheckBoxNameStr)
74
74
  # Constructor, creating and showing a checkbox.
75
75
  #
76
76
  # @see Wx::CheckBox#create
@@ -97,7 +97,7 @@ module Wx
97
97
  # @param validator [Wx::Validator]
98
98
  # @param name [String]
99
99
  # @return [true,false]
100
- def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CHECK_BOX_NAME_STR) end
100
+ def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CheckBoxNameStr) end
101
101
 
102
102
  # Gets the state of a 2-state checkbox.
103
103
  # Returns true if it is checked, false otherwise.