wxruby3 0.9.0.pre.beta.10-x64-mingw-ucrt → 0.9.0.pre.beta.13-x64-mingw-ucrt

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -730,7 +730,7 @@ module Wx::PG
730
730
  # @param text [String] String to get the value from.
731
731
  # @param flags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, the function sets complete, storable value instead of displayable one (they may be different). {Wx::PG::PG_MISC_ARG_FLAGS::PG_PROGRAMMATIC_VALUE} flag is used to indicate that value is being set programmatically (i.e. operation is not caused by user input). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_REPORT_ERROR} is set, a special action should be performed if string couldn't have been successfully converted to the valid value (e.g. a special value can be set in this case).
732
732
  # @return [true,false]
733
- def set_value_from_string(text, flags=Wx::PG_PROGRAMMATIC_VALUE) end
733
+ def set_value_from_string(text, flags=Wx::PG::PG_MISC_ARG_FLAGS::PG_PROGRAMMATIC_VALUE) end
734
734
  alias_method :value_from_string=, :set_value_from_string
735
735
 
736
736
  # Converts integer to a value, and if successful, calls {Wx::PG::PGProperty#set_value} on it.
@@ -899,7 +899,7 @@ module Wx::PG
899
899
  # @param label [String] Label for added choice.
900
900
  # @param value [Integer] Value for new choice. Do not specify if you wish this to equal choice index.
901
901
  # @return [Integer]
902
- def add_choice(label, value=Wx::PG_INVALID_VALUE) end
902
+ def add_choice(label, value=Wx::PG::PG_INVALID_VALUE) end
903
903
 
904
904
  # Adds a private child property.
905
905
  # If you use this instead of {Wx::PG::PropertyGridInterface#insert} or {Wx::PG::PropertyGridInterface#append_in}, then property's parental type will automatically be set up to {Wx::PG::PGPropertyFlags::PG_PROP_AGGREGATE}. In other words, all properties of this property will become private.
@@ -1239,7 +1239,7 @@ module Wx::PG
1239
1239
  # @param hide [true,false] true for hide, false for reveal.
1240
1240
  # @param flags [Integer] By default changes are applied recursively. Set this parameter to {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_DONT_RECURSE} to prevent this.
1241
1241
  # @return [true,false]
1242
- def hide(hide, flags=Wx::PG_RECURSE) end
1242
+ def hide(hide, flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
1243
1243
 
1244
1244
  # Returns index of given child property.
1245
1245
  # {Wx::NOT_FOUND} if given property is not child of this.
@@ -1264,7 +1264,7 @@ module Wx::PG
1264
1264
  # @param index [Integer] Insertion position. Use {Wx::NOT_FOUND} to append.
1265
1265
  # @param value [Integer] Value for new choice. Do not specify if you wish this to equal choice index.
1266
1266
  # @return [Integer]
1267
- def insert_choice(label, index, value=Wx::PG_INVALID_VALUE) end
1267
+ def insert_choice(label, index, value=Wx::PG::PG_INVALID_VALUE) end
1268
1268
 
1269
1269
  # Returns true if this property is actually a {Wx::PG::PropertyCategory}.
1270
1270
  # @return [true,false]
@@ -1357,7 +1357,7 @@ module Wx::PG
1357
1357
  # @param colour [Wx::Colour,String,Symbol] Background colour to use.
1358
1358
  # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
1359
1359
  # @return [void]
1360
- def set_background_colour(colour, flags=Wx::PG_RECURSE) end
1360
+ def set_background_colour(colour, flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
1361
1361
  alias_method :background_colour=, :set_background_colour
1362
1362
 
1363
1363
  # @overload set_editor(editor)
@@ -1481,14 +1481,14 @@ module Wx::PG
1481
1481
  # @param colour [Wx::Colour,String,Symbol] Text colour to use.
1482
1482
  # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
1483
1483
  # @return [void]
1484
- def set_text_colour(colour, flags=Wx::PG_RECURSE) end
1484
+ def set_text_colour(colour, flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
1485
1485
  alias_method :text_colour=, :set_text_colour
1486
1486
 
1487
1487
  # Sets property's default text and background colours.
1488
1488
  # Unlike {Wx::PG::PropertyGridInterface#set_property_colours_to_default}, this does not automatically update the display.
1489
1489
  # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colours to be set recursively. Omit this flag to only set colours for the property in question and not any of its children.
1490
1490
  # @return [void]
1491
- def set_default_colours(flags=Wx::PG_RECURSE) end
1491
+ def set_default_colours(flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
1492
1492
  alias_method :default_colours=, :set_default_colours
1493
1493
 
1494
1494
  # Sets {Wx::Validator} for a property.
@@ -1506,7 +1506,7 @@ module Wx::PG
1506
1506
  # @param pList [Wx::Variant] Pointer to list variant that contains child values. Used to indicate which children should be marked as modified. Usually you just use NULL.
1507
1507
  # @param flags [Integer] {Wx::PG::PG_SETVALUE_FLAGS::PG_SETVAL_REFRESH_EDITOR} is set by default, to refresh editor and redraw properties.
1508
1508
  # @return [void]
1509
- def set_value(value, pList=nil, flags=Wx::PG_SETVAL_REFRESH_EDITOR) end
1509
+ def set_value(value, pList=nil, flags=Wx::PG::PG_SETVALUE_FLAGS::PG_SETVAL_REFRESH_EDITOR) end
1510
1510
  alias_method :value=, :set_value
1511
1511
 
1512
1512
  # Set {Wx::Bitmap} taken from {Wx::BitmapBundle} in front of the value.
@@ -1647,12 +1647,12 @@ module Wx::PG
1647
1647
  # @param arr [Array<String>]
1648
1648
  # @param arrint [Array<Integer>]
1649
1649
  # @return [void]
1650
- # @overload add(label, value=Wx::PG_INVALID_VALUE)
1650
+ # @overload add(label, value=Wx::PG::PG_INVALID_VALUE)
1651
1651
  # Adds a single choice item.
1652
1652
  # @param label [String] Label for added choice.
1653
1653
  # @param value [Integer] Value for added choice. If unspecified, index is used.
1654
1654
  # @return [Wx::PGChoiceEntry]
1655
- # @overload add(label, bitmap, value=Wx::PG_INVALID_VALUE)
1655
+ # @overload add(label, bitmap, value=Wx::PG::PG_INVALID_VALUE)
1656
1656
  # Adds a single item, with bitmap.
1657
1657
  # @param label [String]
1658
1658
  # @param bitmap [Wx::Bitmap]
@@ -1668,7 +1668,7 @@ module Wx::PG
1668
1668
  # @param label [String]
1669
1669
  # @param value [Integer]
1670
1670
  # @return [Wx::PGChoiceEntry]
1671
- def add_as_sorted(label, value=Wx::PG_INVALID_VALUE) end
1671
+ def add_as_sorted(label, value=Wx::PG::PG_INVALID_VALUE) end
1672
1672
 
1673
1673
  # Assigns choices data, using reference counting.
1674
1674
  # To create a real copy, use {Wx::PG::PGChoices#copy} member function instead.
@@ -1734,7 +1734,7 @@ module Wx::PG
1734
1734
  # @return [Integer]
1735
1735
  def index(*args) end
1736
1736
 
1737
- # @overload insert(label, index, value=Wx::PG_INVALID_VALUE)
1737
+ # @overload insert(label, index, value=Wx::PG::PG_INVALID_VALUE)
1738
1738
  # Inserts a single item.
1739
1739
  # @param label [String]
1740
1740
  # @param index [Integer]
@@ -109,7 +109,7 @@ module Wx::PG
109
109
  # Two step constructor.
110
110
  # Call {Wx::PG::PropertyGrid#create} when this constructor is called to build up the {Wx::PG::PropertyGrid}
111
111
  # @return [PropertyGrid]
112
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::PG_DEFAULT_STYLE, name=Wx::PROPERTY_GRID_NAME_STR)
112
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::PG::PG_DEFAULT_STYLE, name=Wx::PropertyGridNameStr)
113
113
  # Constructor.
114
114
  # The styles to be used are styles valid for the {Wx::Window}.
115
115
  # @see wxPropertyGrid Window Styles.
@@ -190,7 +190,7 @@ module Wx::PG
190
190
  # @param style [Integer]
191
191
  # @param name [String]
192
192
  # @return [true,false]
193
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::PG_DEFAULT_STYLE, name=Wx::PROPERTY_GRID_NAME_STR) end
193
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::PG::PG_DEFAULT_STYLE, name=Wx::PropertyGridNameStr) end
194
194
 
195
195
  # Dedicates a specific keycode to {Wx::PG::PropertyGrid}.
196
196
  # This means that such key presses will not be redirected to editor controls.
@@ -309,7 +309,7 @@ module Wx::PG
309
309
  # Returns last item which could be iterated using given flags.
310
310
  # @param flags [Integer] See wxPropertyGridIterator Flags.
311
311
  # @return [Wx::PG::PGProperty]
312
- def get_last_item(flags=Wx::PG_ITERATE_DEFAULT) end
312
+ def get_last_item(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_DEFAULT) end
313
313
  alias_method :last_item, :get_last_item
314
314
 
315
315
  # Returns colour of lines between cells.
@@ -184,11 +184,11 @@ module Wx::PG
184
184
  def get_first_child(id) end
185
185
  alias_method :first_child, :get_first_child
186
186
 
187
- # @overload get_first(flags=Wx::PG_ITERATE_ALL)
187
+ # @overload get_first(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_ALL)
188
188
  # Returns id of first item that matches given criteria.
189
189
  # @param flags [Integer] See wxPropertyGridIterator Flags.
190
190
  # @return [Wx::PG::PGProperty]
191
- # @overload get_first(flags=Wx::PG_ITERATE_ALL)
191
+ # @overload get_first(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_ALL)
192
192
  # @param flags [Integer]
193
193
  # @return [Wx::PGProperty]
194
194
  def get_first(*args) end
@@ -208,7 +208,7 @@ module Wx::PG
208
208
  # @param inverse [true,false] If false, properties that have given flags are stored, otherwise there are stored only properties without given flags.
209
209
  # @param iterFlags [Integer] Iterator flags to use. Default is everything expect private children. See wxPropertyGridIterator Flags.
210
210
  # @return [Array<Wx::PG::PGProperty>]
211
- def get_properties_with_flag(flags, inverse=false, iterFlags=((Wx::PG_ITERATE_PROPERTIES|Wx::PG_ITERATE_HIDDEN|Wx::PG_ITERATE_CATEGORIES))) end
211
+ def get_properties_with_flag(flags, inverse=false, iterFlags=((Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_PROPERTIES|Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_HIDDEN|Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_CATEGORIES))) end
212
212
  alias_method :properties_with_flag, :get_properties_with_flag
213
213
 
214
214
  # Returns value of given attribute.
@@ -388,7 +388,7 @@ module Wx::PG
388
388
  # @param baseparent [Wx::PGProperty] The base property which children properties will be queried for values.
389
389
  # @param flags [Integer] Use {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_KEEP_STRUCTURE} to retain category structure; each sub category will be its own {Wx::VariantList} of {Wx::Variant}. Use {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_INC_ATTRIBUTES} to include property attributes as well. Each attribute will be stored as list variant named "@<propname>@attr."
390
390
  # @return [Wx::Variant]
391
- def get_property_values(listname=Wx::EMPTY_STRING, baseparent=nil, flags=0) end
391
+ def get_property_values(listname=(''), baseparent=nil, flags=0) end
392
392
  alias_method :property_values, :get_property_values
393
393
 
394
394
  # Returns list of currently selected properties.
@@ -409,7 +409,7 @@ module Wx::PG
409
409
  # @param hide [true,false] If true, hides property, otherwise reveals it.
410
410
  # @param flags [Integer] By default changes are applied recursively. Set this parameter {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_DONT_RECURSE} to prevent this.
411
411
  # @return [true,false]
412
- def hide_property(id, hide=true, flags=Wx::PG_RECURSE) end
412
+ def hide_property(id, hide=true, flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
413
413
 
414
414
  # @overload insert(priorThis, newProperty)
415
415
  # Inserts property to the property container.
@@ -519,12 +519,12 @@ module Wx::PG
519
519
  # @param src [String] String generated by SaveEditableState.
520
520
  # @param restoreStates [Integer] Which parts to restore from source string. See list of editable state flags.
521
521
  # @return [true,false]
522
- def restore_editable_state(src, restoreStates=Wx::ALL_STATES) end
522
+ def restore_editable_state(src, restoreStates=Wx::PG::PropertyGridInterface::EditableStateFlags::AllStates) end
523
523
 
524
524
  # Used to acquire user-editable state (selected property, expanded properties, scrolled position, splitter positions).
525
525
  # @param includedStates [Integer] Which parts of state to include. See list of editable state flags.
526
526
  # @return [String]
527
- def save_editable_state(includedStates=Wx::ALL_STATES) end
527
+ def save_editable_state(includedStates=Wx::PG::PropertyGridInterface::EditableStateFlags::AllStates) end
528
528
 
529
529
  # Set proportion of an auto-stretchable column.
530
530
  # {Wx::PG::PG_WINDOW_STYLES::PG_SPLITTER_AUTO_CENTER} window style needs to be used to indicate that columns are auto- resizable.
@@ -560,7 +560,7 @@ module Wx::PG
560
560
  # @param colour [Wx::Colour,String,Symbol] New background colour.
561
561
  # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
562
562
  # @return [void]
563
- def set_property_background_colour(id, colour, flags=Wx::PG_RECURSE) end
563
+ def set_property_background_colour(id, colour, flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
564
564
 
565
565
  # Sets text, bitmap, and colours for given column's cell.
566
566
  # - You can set label cell by using column 0.- You can use {Wx::PG::PG_LABEL} as text to use default text for column.
@@ -571,7 +571,7 @@ module Wx::PG
571
571
  # @param fgCol [Wx::Colour,String,Symbol]
572
572
  # @param bgCol [Wx::Colour,String,Symbol]
573
573
  # @return [void]
574
- def set_property_cell(id, column, text=Wx::EMPTY_STRING, bitmap=(Wx::BitmapBundle.new()), fgCol=Wx::NULL_COLOUR, bgCol=Wx::NULL_COLOUR) end
574
+ def set_property_cell(id, column, text=(''), bitmap=(Wx::BitmapBundle.new()), fgCol=Wx::NULL_COLOUR, bgCol=Wx::NULL_COLOUR) end
575
575
 
576
576
  # Sets client data (void*) of a property.
577
577
  # This untyped client data has to be deleted manually.
@@ -585,7 +585,7 @@ module Wx::PG
585
585
  # @param id [String,Wx::PG::PGProperty] Property name or pointer.
586
586
  # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_DONT_RECURSE} which causes colour to be reset only for the property in question (for backward compatibility).
587
587
  # @return [void]
588
- def set_property_colours_to_default(id, flags=Wx::PG_DONT_RECURSE) end
588
+ def set_property_colours_to_default(id, flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_DONT_RECURSE) end
589
589
  alias_method :property_colours_to_default=, :set_property_colours_to_default
590
590
 
591
591
  # @overload set_property_editor(id, editor)
@@ -623,7 +623,7 @@ module Wx::PG
623
623
  # @param set [true,false] Use true to enable read-only, false to disable it.
624
624
  # @param flags [Integer] By default changes are applied recursively. Set this parameter to {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_DONT_RECURSE} to prevent this.
625
625
  # @return [void]
626
- def set_property_read_only(id, set=true, flags=Wx::PG_RECURSE) end
626
+ def set_property_read_only(id, set=true, flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
627
627
  alias_method :property_read_only=, :set_property_read_only
628
628
 
629
629
  # Sets property's value to unspecified.
@@ -633,12 +633,12 @@ module Wx::PG
633
633
  def set_property_value_unspecified(id) end
634
634
  alias_method :property_value_unspecified=, :set_property_value_unspecified
635
635
 
636
- # @overload set_property_values(list, defaultCategory=Wx::NULL_PROPERTY)
636
+ # @overload set_property_values(list, defaultCategory=Wx::PG::NullProperty)
637
637
  # Sets property values from a list of {Wx::Variants}.
638
638
  # @param list [Wx::VariantList]
639
639
  # @param defaultCategory [String,Wx::PG::PGProperty]
640
640
  # @return [void]
641
- # @overload set_property_values(list, defaultCategory=Wx::NULL_PROPERTY)
641
+ # @overload set_property_values(list, defaultCategory=Wx::PG::NullProperty)
642
642
  # Sets property values from a list of {Wx::Variants}.
643
643
  # @param list [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
644
644
  # @param defaultCategory [String,Wx::PG::PGProperty]
@@ -674,7 +674,7 @@ module Wx::PG
674
674
  # @param colour [Wx::Colour,String,Symbol] New text colour.
675
675
  # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
676
676
  # @return [void]
677
- def set_property_text_colour(id, colour, flags=Wx::PG_RECURSE) end
677
+ def set_property_text_colour(id, colour, flags=Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE) end
678
678
 
679
679
  # Sets validator of a property.
680
680
  # @param id [String,Wx::PG::PGProperty]
@@ -67,7 +67,7 @@ module Wx::PG
67
67
  # Two step constructor.
68
68
  # Call Create when this constructor is called to build up the {Wx::PG::PropertyGridManager}.
69
69
  # @return [PropertyGridManager]
70
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::PGMAN_DEFAULT_STYLE, name=Wx::PROPERTY_GRID_MANAGER_NAME_STR)
70
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::PG::PGMAN_DEFAULT_STYLE, name=Wx::PropertyGridManagerNameStr)
71
71
  # The default constructor.
72
72
  # The styles to be used are styles valid for the {Wx::Window}.
73
73
  # @see wxPropertyGrid Window Styles
@@ -90,7 +90,7 @@ module Wx::PG
90
90
  # @param bmp [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] Bitmap bundle for toolbar image. If the bundle is empty, then a built-in default bitmap bundle is used.
91
91
  # @param pageObj [Wx::PropertyGridPage] {Wx::PG::PropertyGridPage} instance. Manager will take ownership of this object. NULL indicates that a default page instance should be created.
92
92
  # @return [Wx::PropertyGridPage]
93
- def add_page(label=Wx::EMPTY_STRING, bmp=(Wx::BitmapBundle.new()), pageObj=nil) end
93
+ def add_page(label=(''), bmp=(Wx::BitmapBundle.new()), pageObj=nil) end
94
94
 
95
95
  # Deletes all properties and all pages.
96
96
  # @return [void]
@@ -117,7 +117,7 @@ module Wx::PG
117
117
  # @param style [Integer]
118
118
  # @param name [String]
119
119
  # @return [true,false]
120
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::PGMAN_DEFAULT_STYLE, name=Wx::PROPERTY_GRID_MANAGER_NAME_STR) end
120
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::PG::PGMAN_DEFAULT_STYLE, name=Wx::PropertyGridManagerNameStr) end
121
121
 
122
122
  # Enables or disables (shows/hides) categories according to parameter enable.
123
123
  # Calling this may not properly update toolbar buttons.
@@ -210,11 +210,11 @@ module Wx::PG
210
210
  def get_grid; end
211
211
  alias_method :grid, :get_grid
212
212
 
213
- # @overload get_last_item(flags=Wx::PG_ITERATE_DEFAULT)
213
+ # @overload get_last_item(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_DEFAULT)
214
214
  # Returns last item which could be iterated using given flags.
215
215
  # @param flags [Integer] wxPropertyGridIterator Flags
216
216
  # @return [Wx::PG::PGProperty]
217
- # @overload get_last_item(flags=Wx::PG_ITERATE_DEFAULT)
217
+ # @overload get_last_item(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_DEFAULT)
218
218
  # @param flags [Integer]
219
219
  # @return [Wx::PGProperty]
220
220
  def get_last_item(*args) end
@@ -66,11 +66,11 @@ module Wx::PG
66
66
  def get_grid; end
67
67
  alias_method :grid, :get_grid
68
68
 
69
- # @overload get_last_item(flags=Wx::PG_ITERATE_DEFAULT)
69
+ # @overload get_last_item(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_DEFAULT)
70
70
  # Returns last item which could be iterated using given flags.
71
71
  # @param flags [Integer] wxPropertyGridIterator Flags
72
72
  # @return [Wx::PG::PGProperty]
73
- # @overload get_last_item(flags=Wx::PG_ITERATE_DEFAULT)
73
+ # @overload get_last_item(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_DEFAULT)
74
74
  # @param flags [Integer]
75
75
  # @return [Wx::PGProperty]
76
76
  def get_last_item(*args) end
@@ -28,7 +28,7 @@ module Wx
28
28
  # @overload initialize()
29
29
  # Default constructor.
30
30
  # @return [PopupWindow]
31
- # @overload initialize(parent, flags=Wx::BORDER_NONE)
31
+ # @overload initialize(parent, flags=Wx::Border::BORDER_NONE)
32
32
  # Constructor.
33
33
  # @param parent [Wx::Window]
34
34
  # @param flags [Integer]
@@ -39,7 +39,7 @@ module Wx
39
39
  # @param parent [Wx::Window]
40
40
  # @param flags [Integer]
41
41
  # @return [true,false]
42
- def create(parent, flags=Wx::BORDER_NONE) end
42
+ def create(parent, flags=Wx::Border::BORDER_NONE) end
43
43
 
44
44
  # Move the popup window to the right position, i.e. such that it is entirely visible.
45
45
  # The popup is positioned at ptOrigin + size if it opens below and to the right (default), at ptOrigin - sizePopup if it opens above and to the left etc.
@@ -63,7 +63,7 @@ module Wx
63
63
  # @overload initialize()
64
64
  # Default constructor.
65
65
  # @return [PopupTransientWindow]
66
- # @overload initialize(parent, flags=Wx::BORDER_NONE)
66
+ # @overload initialize(parent, flags=Wx::Border::BORDER_NONE)
67
67
  # Constructor.
68
68
  # @param parent [Wx::Window]
69
69
  # @param flags [Integer]
@@ -80,7 +80,7 @@ module Wx
80
80
  # Default constructor.
81
81
  # Call Create if using this form of constructor.
82
82
  # @return [PropertySheetDialog]
83
- # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DIALOG_NAME_STR)
83
+ # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DialogNameStr)
84
84
  # Constructor.
85
85
  # @param parent [Wx::Window]
86
86
  # @param id [Integer]
@@ -106,7 +106,7 @@ module Wx
106
106
  # @param style [Integer]
107
107
  # @param name [String]
108
108
  # @return [true,false]
109
- def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DIALOG_NAME_STR) end
109
+ def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DialogNameStr) end
110
110
 
111
111
  # Call this to create the buttons for the dialog.
112
112
  # This calls {Wx::Dialog#create_button_sizer}, and the flags are the same.
@@ -141,7 +141,7 @@ module Wx
141
141
  # On PocketPC, this does nothing, since the dialog will be shown full-screen, and the layout will be done when the dialog receives a size event.
142
142
  # @param centreFlags [Integer]
143
143
  # @return [void]
144
- def layout_dialog(centreFlags=Wx::BOTH) end
144
+ def layout_dialog(centreFlags=Wx::Orientation::BOTH) end
145
145
 
146
146
  # Sets the book control used for the dialog.
147
147
  # You will normally not need to use this.
@@ -112,7 +112,7 @@ module Wx::PRT
112
112
  # @param style [Integer]
113
113
  # @param name [String]
114
114
  # @return [PrintAbortDialog]
115
- def initialize(parent, documentTitle, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=("Wx::DIALOG")) end
115
+ def initialize(parent, documentTitle, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=("dialog")) end
116
116
 
117
117
  # @param currentPage [Integer]
118
118
  # @param totalPages [Integer]
@@ -100,7 +100,7 @@ module Wx::PRT
100
100
  # Pass an optional title argument - the current filename would be a good idea. This will appear in the printing list (at least in MSW)
101
101
  # @param title [String]
102
102
  # @return [Printout]
103
- def initialize(title=("Wx::PRINTOUT")) end
103
+ def initialize(title=("Wx::PRT::Printout")) end
104
104
 
105
105
  # Set the user scale and device origin of the {Wx::DC} associated with this {Wx::PRT::Printout} so that the given image size fits entirely within the page rectangle and the origin is at the top left corner of the page rectangle.
106
106
  # On MSW and Mac, the page rectangle is the printable area of the page. On other platforms and PostScript printing, the page rectangle is the entire paper.
@@ -40,7 +40,7 @@ module Wx
40
40
  # @see Wx::RadioBox#create
41
41
  # @see Wx::Validator
42
42
  # @return [RadioBox]
43
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RADIO_BOX_NAME_STR)
43
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RadioBoxNameStr)
44
44
  # Constructor, creating and showing a radiobox.
45
45
  # <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
46
46
  # @see Wx::RadioBox#create
@@ -56,7 +56,7 @@ module Wx
56
56
  # @param validator [Wx::Validator] Window validator.
57
57
  # @param name [String] Window name.
58
58
  # @return [RadioBox]
59
- # @overload initialize(parent, id, label, pos, size, choices, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RADIO_BOX_NAME_STR)
59
+ # @overload initialize(parent, id, label, pos, size, choices, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RadioBoxNameStr)
60
60
  # Constructor, creating and showing a radiobox.
61
61
  # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
62
62
  # @see Wx::RadioBox#create
@@ -74,7 +74,7 @@ module Wx
74
74
  # @return [RadioBox]
75
75
  def initialize(*args) end
76
76
 
77
- # @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RADIO_BOX_NAME_STR)
77
+ # @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RadioBoxNameStr)
78
78
  # Creates the radiobox for two-step construction.
79
79
  # See {Wx::RadioBox#radio_box} for further details.
80
80
  # @param parent [Wx::Window]
@@ -88,7 +88,7 @@ module Wx
88
88
  # @param validator [Wx::Validator]
89
89
  # @param name [String]
90
90
  # @return [true,false]
91
- # @overload create(parent, id, label, pos, size, choices, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RADIO_BOX_NAME_STR)
91
+ # @overload create(parent, id, label, pos, size, choices, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RadioBoxNameStr)
92
92
  # Creates the radiobox for two-step construction.
93
93
  # See {Wx::RadioBox#radio_box} for further details.
94
94
  # @param parent [Wx::Window]
@@ -42,7 +42,7 @@ module Wx
42
42
  # @see Wx::RadioButton#create
43
43
  # @see Wx::Validator
44
44
  # @return [RadioButton]
45
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RADIO_BUTTON_NAME_STR)
45
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RadioButtonNameStr)
46
46
  # Constructor, creating and showing a radio button.
47
47
  #
48
48
  # @see Wx::RadioButton#create
@@ -69,7 +69,7 @@ module Wx
69
69
  # @param validator [Wx::Validator]
70
70
  # @param name [String]
71
71
  # @return [true,false]
72
- def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RADIO_BUTTON_NAME_STR) end
72
+ def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RadioButtonNameStr) end
73
73
 
74
74
  # Returns true if the radio button is checked, false otherwise.
75
75
  # @return [true,false]
@@ -54,7 +54,7 @@ module Wx::RBN
54
54
  # Default constructor.
55
55
  # With this constructor, {Wx::RBN::RibbonBar#create} should be called in order to create the ribbon bar.
56
56
  # @return [RibbonBar]
57
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RIBBON_BAR_DEFAULT_STYLE)
57
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RBN::RibbonBarOption::RIBBON_BAR_DEFAULT_STYLE)
58
58
  # Construct a ribbon bar with the given parameters.
59
59
  # @param parent [Wx::Window]
60
60
  # @param id [Integer]
@@ -72,7 +72,7 @@ module Wx::RBN
72
72
  # @param size [Array(Integer, Integer), Wx::Size]
73
73
  # @param style [Integer]
74
74
  # @return [true,false]
75
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RIBBON_BAR_DEFAULT_STYLE) end
75
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RBN::RibbonBarOption::RIBBON_BAR_DEFAULT_STYLE) end
76
76
 
77
77
  # Set the margin widths (in pixels) on the left and right sides of the tab bar region of the ribbon bar.
78
78
  # These margins will be painted with the tab background, but tabs and scroll buttons will never be painted in the margins.
@@ -100,7 +100,7 @@ module Wx::RBN
100
100
  # Default constructor.
101
101
  # With this constructor, {Wx::RBN::RibbonButtonBar#create} should be called in order to create the button bar.
102
102
  # @return [RibbonButtonBar]
103
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
103
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
104
104
  # Construct a ribbon button bar with the given parameters.
105
105
  # @param parent [Wx::Window] Parent window for the button bar (typically a {Wx::RBN::RibbonPanel}).
106
106
  # @param id [Integer] An identifier for the button bar. {Wx::StandardID::ID_ANY} is taken to mean a default.
@@ -118,9 +118,9 @@ module Wx::RBN
118
118
  # @param size [Array(Integer, Integer), Wx::Size]
119
119
  # @param style [Integer]
120
120
  # @return [true,false]
121
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
121
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
122
122
 
123
- # @overload add_button(button_id, label, bitmap, help_string, kind=Wx::RIBBON_BUTTON_NORMAL)
123
+ # @overload add_button(button_id, label, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
124
124
  # Add a button to the button bar (simple version).
125
125
  # @param button_id [Integer]
126
126
  # @param label [String]
@@ -128,7 +128,7 @@ module Wx::RBN
128
128
  # @param help_string [String]
129
129
  # @param kind [RibbonButtonKind]
130
130
  # @return [Integer]
131
- # @overload add_button(button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RIBBON_BUTTON_NORMAL, help_string=Wx::EMPTY_STRING)
131
+ # @overload add_button(button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, help_string=(''))
132
132
  # Add a button to the button bar.
133
133
  # An opaque pointer which can be used only with other button bar methods.
134
134
  # @see Wx::RBN::RibbonButtonBar#add_dropdown_button
@@ -155,7 +155,7 @@ module Wx::RBN
155
155
  # @param bitmap [Wx::Bitmap]
156
156
  # @param help_string [String]
157
157
  # @return [Integer]
158
- def add_dropdown_button(button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
158
+ def add_dropdown_button(button_id, label, bitmap, help_string=('')) end
159
159
 
160
160
  # Add a hybrid button to the button bar (simple version).
161
161
  #
@@ -165,7 +165,7 @@ module Wx::RBN
165
165
  # @param bitmap [Wx::Bitmap]
166
166
  # @param help_string [String]
167
167
  # @return [Integer]
168
- def add_hybrid_button(button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
168
+ def add_hybrid_button(button_id, label, bitmap, help_string=('')) end
169
169
 
170
170
  # Add a toggle button to the button bar (simple version).
171
171
  #
@@ -175,9 +175,9 @@ module Wx::RBN
175
175
  # @param bitmap [Wx::Bitmap]
176
176
  # @param help_string [String]
177
177
  # @return [Integer]
178
- def add_toggle_button(button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
178
+ def add_toggle_button(button_id, label, bitmap, help_string=('')) end
179
179
 
180
- # @overload insert_button(pos, button_id, label, bitmap, help_string, kind=Wx::RIBBON_BUTTON_NORMAL)
180
+ # @overload insert_button(pos, button_id, label, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
181
181
  # Inserts a button to the button bar (simple version) at the given position.
182
182
  #
183
183
  # @see Wx::RBN::RibbonButtonBar#add_button
@@ -188,7 +188,7 @@ module Wx::RBN
188
188
  # @param help_string [String]
189
189
  # @param kind [RibbonButtonKind]
190
190
  # @return [Integer]
191
- # @overload insert_button(pos, button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RIBBON_BUTTON_NORMAL, help_string=Wx::EMPTY_STRING)
191
+ # @overload insert_button(pos, button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, help_string=(''))
192
192
  # Insert a button to the button bar at the given position.
193
193
  # An opaque pointer which can be used only with other button bar methods.
194
194
  # @see Wx::RBN::RibbonButtonBar#insert_dropdown_button
@@ -223,7 +223,7 @@ module Wx::RBN
223
223
  # @param bitmap [Wx::Bitmap]
224
224
  # @param help_string [String]
225
225
  # @return [Integer]
226
- def insert_dropdown_button(pos, button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
226
+ def insert_dropdown_button(pos, button_id, label, bitmap, help_string=('')) end
227
227
 
228
228
  # Inserts a hybrid button to the button bar (simple version) at the given position.
229
229
  #
@@ -238,7 +238,7 @@ module Wx::RBN
238
238
  # @param bitmap [Wx::Bitmap]
239
239
  # @param help_string [String]
240
240
  # @return [Integer]
241
- def insert_hybrid_button(pos, button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
241
+ def insert_hybrid_button(pos, button_id, label, bitmap, help_string=('')) end
242
242
 
243
243
  # Inserts a toggle button to the button bar (simple version) at the given position.
244
244
  #
@@ -253,7 +253,7 @@ module Wx::RBN
253
253
  # @param bitmap [Wx::Bitmap]
254
254
  # @param help_string [String]
255
255
  # @return [Integer]
256
- def insert_toggle_button(pos, button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
256
+ def insert_toggle_button(pos, button_id, label, bitmap, help_string=('')) end
257
257
 
258
258
  # Returns the number of buttons in this button bar.
259
259
  # @return [Integer]
@@ -18,7 +18,7 @@ module Wx::RBN
18
18
  # @overload initialize()
19
19
  # Constructor.
20
20
  # @return [RibbonControl]
21
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CONTROL_NAME_STR)
21
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ControlNameStr)
22
22
  # Constructor.
23
23
  # If parent is a {Wx::RBN::RibbonControl} with a non-NULL art provider, then the art provider of new control is set to that of parent.
24
24
  # @param parent [Wx::Window]
@@ -68,7 +68,7 @@ module Wx::RBN
68
68
  # Default constructor.
69
69
  # With this constructor, {Wx::RBN::RibbonGallery#create} should be called in order to create the gallery.
70
70
  # @return [RibbonGallery]
71
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
71
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
72
72
  # Construct a ribbon gallery with the given parameters.
73
73
  # @param parent [Wx::Window] Parent window for the gallery (typically a {Wx::RBN::RibbonPanel}).
74
74
  # @param id [Integer] An identifier for the gallery. {Wx::StandardID::ID_ANY} is taken to mean a default.
@@ -86,7 +86,7 @@ module Wx::RBN
86
86
  # @param size [Array(Integer, Integer), Wx::Size]
87
87
  # @param style [Integer]
88
88
  # @return [true,false]
89
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
89
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
90
90
 
91
91
  # Remove all items from the gallery.
92
92
  # @return [void]
@@ -21,7 +21,7 @@ module Wx::RBN
21
21
  # Default constructor.
22
22
  # With this constructor, {Wx::RBN::RibbonPage#create} should be called in order to create the ribbon page.
23
23
  # @return [RibbonPage]
24
- # @overload initialize(parent, id=Wx::ID_ANY, label=Wx::EMPTY_STRING, icon=Wx::NULL_BITMAP, style=0)
24
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, label=(''), icon=Wx::NULL_BITMAP, style=0)
25
25
  # Constructs a ribbon page, which must be a child of a ribbon bar.
26
26
  # @param parent [Wx::RibbonBar] Pointer to a parent {Wx::RBN::RibbonBar} (unlike most controls, a {Wx::RBN::RibbonPage} can only have {Wx::RBN::RibbonBar} as a parent).
27
27
  # @param id [Integer] Window identifier.
@@ -39,7 +39,7 @@ module Wx::RBN
39
39
  # @param icon [Wx::Bitmap]
40
40
  # @param style [Integer]
41
41
  # @return [true,false]
42
- def create(parent, id=Wx::ID_ANY, label=Wx::EMPTY_STRING, icon=Wx::NULL_BITMAP, style=0) end
42
+ def create(parent, id=Wx::StandardID::ID_ANY, label=(''), icon=Wx::NULL_BITMAP, style=0) end
43
43
 
44
44
  # Set the art provider to be used.
45
45
  # Normally called automatically by {Wx::RBN::RibbonBar} when the page is created, or the art provider changed on the bar.
@@ -112,7 +112,7 @@ module Wx::RBN
112
112
  # Default constructor.
113
113
  # With this constructor, {Wx::RBN::RibbonPanel#create} should be called in order to create the ribbon panel.
114
114
  # @return [RibbonPanel]
115
- # @overload initialize(parent, id=Wx::ID_ANY, label=Wx::EMPTY_STRING, minimised_icon=Wx::NULL_BITMAP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RIBBON_PANEL_DEFAULT_STYLE)
115
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, label=(''), minimised_icon=Wx::NULL_BITMAP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RBN::RibbonPanelOption::RIBBON_PANEL_DEFAULT_STYLE)
116
116
  # Constructs a ribbon panel.
117
117
  # @param parent [Wx::Window] Pointer to a parent window, which is typically a {Wx::RBN::RibbonPage}, though it can be any window.
118
118
  # @param id [Integer] Window identifier.
@@ -134,7 +134,7 @@ module Wx::RBN
134
134
  # @param size [Array(Integer, Integer), Wx::Size]
135
135
  # @param style [Integer]
136
136
  # @return [true,false]
137
- def create(parent, id=Wx::ID_ANY, label=Wx::EMPTY_STRING, icon=Wx::NULL_BITMAP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RIBBON_PANEL_DEFAULT_STYLE) end
137
+ def create(parent, id=Wx::StandardID::ID_ANY, label=(''), icon=Wx::NULL_BITMAP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RBN::RibbonPanelOption::RIBBON_PANEL_DEFAULT_STYLE) end
138
138
 
139
139
  # @overload get_minimised_icon()
140
140
  # Get the bitmap to be used in place of the panel children when it is minimised.