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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (272) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +85 -0
  3. data/README.md +2 -0
  4. data/assets/logo.png +0 -0
  5. data/assets/logo.svg +170 -0
  6. data/assets/logo.xcf +0 -0
  7. data/ext/wxbase32u_gcc_custom.dll +0 -0
  8. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  9. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  22. data/lib/wx/accessors.rb +8 -2
  23. data/lib/wx/core/array_ext.rb +26 -0
  24. data/lib/wx/core/art_locator.rb +92 -0
  25. data/lib/wx/core/artprovider.rb +1 -1
  26. data/lib/wx/core/bitmap.rb +90 -53
  27. data/lib/wx/core/cursor.rb +12 -0
  28. data/lib/wx/core/dataformat.rb +3 -1
  29. data/lib/wx/core/dc.rb +76 -52
  30. data/lib/wx/core/enum.rb +4 -0
  31. data/lib/wx/core/event.rb +38 -5
  32. data/lib/wx/core/events/evt_list.rb +3 -2
  33. data/lib/wx/core/evthandler.rb +64 -23
  34. data/lib/wx/core/icon.rb +50 -35
  35. data/lib/wx/core/id_helper.rb +32 -0
  36. data/lib/wx/core/image.rb +63 -53
  37. data/lib/wx/core/point.rb +14 -0
  38. data/lib/wx/core/real_point.rb +15 -1
  39. data/lib/wx/core/rect.rb +42 -7
  40. data/lib/wx/core/region_iterator.rb +37 -0
  41. data/lib/wx/core/size.rb +20 -0
  42. data/lib/wx/core/window.rb +8 -31
  43. data/lib/wx/doc/array_ext.rb +27 -0
  44. data/lib/wx/doc/art_locator.rb +57 -0
  45. data/lib/wx/doc/bitmap.rb +27 -0
  46. data/lib/wx/doc/clipboard.rb +12 -0
  47. data/lib/wx/doc/const.rb +77 -0
  48. data/lib/wx/doc/cursor.rb +16 -0
  49. data/lib/wx/doc/data_object.rb +1 -2
  50. data/lib/wx/doc/dc.rb +63 -46
  51. data/lib/wx/doc/event.rb +24 -0
  52. data/lib/wx/doc/events.rb +14 -0
  53. data/lib/wx/doc/evthandler.rb +24 -3
  54. data/lib/wx/doc/extra/00_starting.md +1 -1
  55. data/lib/wx/doc/extra/06_geometry.md +10 -4
  56. data/lib/wx/doc/extra/10_art.md +105 -0
  57. data/lib/wx/doc/gc_dc.rb +21 -0
  58. data/lib/wx/doc/gdi_common.rb +122 -1
  59. data/lib/wx/doc/gen/about_dialog_info.rb +1 -4
  60. data/lib/wx/doc/gen/animation.rb +3 -3
  61. data/lib/wx/doc/gen/animation_ctrl.rb +4 -4
  62. data/lib/wx/doc/gen/any_button.rb +1 -1
  63. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -1
  64. data/lib/wx/doc/gen/aui/aui_manager.rb +2 -2
  65. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -3
  66. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -3
  67. data/lib/wx/doc/gen/aui/aui_notebook.rb +2 -2
  68. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +6 -6
  69. data/lib/wx/doc/gen/bitmap.rb +1 -1
  70. data/lib/wx/doc/gen/bitmap_button.rb +2 -2
  71. data/lib/wx/doc/gen/book_ctrl_base.rb +4 -4
  72. data/lib/wx/doc/gen/brush.rb +1 -1
  73. data/lib/wx/doc/gen/button.rb +2 -2
  74. data/lib/wx/doc/gen/calendar_ctrl.rb +3 -3
  75. data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
  76. data/lib/wx/doc/gen/check_box.rb +2 -2
  77. data/lib/wx/doc/gen/check_list_box.rb +3 -3
  78. data/lib/wx/doc/gen/choice.rb +2 -2
  79. data/lib/wx/doc/gen/choicebook.rb +2 -2
  80. data/lib/wx/doc/gen/collapsible_pane.rb +2 -2
  81. data/lib/wx/doc/gen/colour.rb +1 -3
  82. data/lib/wx/doc/gen/colour_dialog.rb +1 -2
  83. data/lib/wx/doc/gen/colour_picker_ctrl.rb +2 -2
  84. data/lib/wx/doc/gen/combo_box.rb +4 -4
  85. data/lib/wx/doc/gen/context_help_button.rb +1 -1
  86. data/lib/wx/doc/gen/control.rb +3 -3
  87. data/lib/wx/doc/gen/core.rb +2 -2
  88. data/lib/wx/doc/gen/data_format.rb +1 -1
  89. data/lib/wx/doc/gen/data_object.rb +6 -6
  90. data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
  91. data/lib/wx/doc/gen/dc.rb +9 -9
  92. data/lib/wx/doc/gen/defs.rb +0 -4
  93. data/lib/wx/doc/gen/dialog.rb +3 -3
  94. data/lib/wx/doc/gen/dir_dialog.rb +2 -4
  95. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  96. data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
  97. data/lib/wx/doc/gen/drag_drop.rb +13 -1
  98. data/lib/wx/doc/gen/editable_list_box.rb +2 -2
  99. data/lib/wx/doc/gen/event.rb +0 -1
  100. data/lib/wx/doc/gen/event_list.rb +18 -16
  101. data/lib/wx/doc/gen/events.rb +87 -2
  102. data/lib/wx/doc/gen/ext_help_controller.rb +2 -2
  103. data/lib/wx/doc/gen/file_dialog.rb +1 -1
  104. data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
  105. data/lib/wx/doc/gen/font.rb +6 -6
  106. data/lib/wx/doc/gen/font_dialog.rb +1 -2
  107. data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
  108. data/lib/wx/doc/gen/frame.rb +5 -5
  109. data/lib/wx/doc/gen/fs_file.rb +2 -2
  110. data/lib/wx/doc/gen/gauge.rb +2 -2
  111. data/lib/wx/doc/gen/gdi_common.rb +18 -21
  112. data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
  113. data/lib/wx/doc/gen/graphics_context.rb +4 -4
  114. data/lib/wx/doc/gen/graphics_object.rb +2 -2
  115. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  116. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  117. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  118. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  119. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  120. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  121. data/lib/wx/doc/gen/grid/grid_ctrl.rb +7 -7
  122. data/lib/wx/doc/gen/help_controller.rb +1 -1
  123. data/lib/wx/doc/gen/html/html_cell.rb +4 -4
  124. data/lib/wx/doc/gen/html/html_easy_printing.rb +6 -6
  125. data/lib/wx/doc/gen/html/html_help_controller.rb +6 -6
  126. data/lib/wx/doc/gen/html/html_help_frame.rb +2 -2
  127. data/lib/wx/doc/gen/html/html_help_window.rb +6 -6
  128. data/lib/wx/doc/gen/html/html_list_box.rb +6 -6
  129. data/lib/wx/doc/gen/html/html_printout.rb +4 -4
  130. data/lib/wx/doc/gen/html/html_window.rb +4 -4
  131. data/lib/wx/doc/gen/icon.rb +6 -6
  132. data/lib/wx/doc/gen/image.rb +7 -7
  133. data/lib/wx/doc/gen/list_box.rb +4 -4
  134. data/lib/wx/doc/gen/list_ctrl.rb +5 -5
  135. data/lib/wx/doc/gen/listbook.rb +2 -2
  136. data/lib/wx/doc/gen/locale.rb +8 -8
  137. data/lib/wx/doc/gen/log.rb +2 -2
  138. data/lib/wx/doc/gen/mdi_frame.rb +5 -5
  139. data/lib/wx/doc/gen/media_ctrl.rb +4 -4
  140. data/lib/wx/doc/gen/menu.rb +12 -12
  141. data/lib/wx/doc/gen/menu_item.rb +1 -1
  142. data/lib/wx/doc/gen/message_dialog.rb +2 -4
  143. data/lib/wx/doc/gen/mini_frame.rb +2 -2
  144. data/lib/wx/doc/gen/notebook.rb +3 -3
  145. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -1
  146. data/lib/wx/doc/gen/object.rb +0 -1
  147. data/lib/wx/doc/gen/panel.rb +2 -2
  148. data/lib/wx/doc/gen/pen.rb +2 -2
  149. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +1 -1
  150. data/lib/wx/doc/gen/pg/pg_cell.rb +1 -1
  151. data/lib/wx/doc/gen/pg/pg_properties.rb +20 -20
  152. data/lib/wx/doc/gen/pg/pg_property.rb +12 -12
  153. data/lib/wx/doc/gen/pg/property_grid.rb +3 -3
  154. data/lib/wx/doc/gen/pg/property_grid_interface.rb +14 -14
  155. data/lib/wx/doc/gen/pg/property_grid_manager.rb +3 -3
  156. data/lib/wx/doc/gen/pg/property_grid_page.rb +2 -2
  157. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -2
  158. data/lib/wx/doc/gen/popup_window.rb +3 -3
  159. data/lib/wx/doc/gen/property_sheet_dialog.rb +3 -3
  160. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  161. data/lib/wx/doc/gen/prt/printer.rb +1 -1
  162. data/lib/wx/doc/gen/radio_box.rb +4 -4
  163. data/lib/wx/doc/gen/radio_button.rb +2 -2
  164. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +2 -2
  165. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +12 -12
  166. data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
  167. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +2 -2
  168. data/lib/wx/doc/gen/rbn/ribbon_page.rb +2 -2
  169. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
  170. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +11 -11
  171. data/lib/wx/doc/gen/region.rb +1 -1
  172. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  173. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +10 -10
  174. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
  175. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +2 -2
  176. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -4
  177. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +1 -1
  178. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +6 -6
  179. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  180. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  181. data/lib/wx/doc/gen/sash_event.rb +1 -1
  182. data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
  183. data/lib/wx/doc/gen/sash_window.rb +1 -1
  184. data/lib/wx/doc/gen/scroll_bar.rb +150 -0
  185. data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
  186. data/lib/wx/doc/gen/scrolled_control.rb +2 -2
  187. data/lib/wx/doc/gen/scrolled_window.rb +2 -2
  188. data/lib/wx/doc/gen/simplebook.rb +2 -2
  189. data/lib/wx/doc/gen/sizer.rb +3 -3
  190. data/lib/wx/doc/gen/slider.rb +2 -2
  191. data/lib/wx/doc/gen/spin_button.rb +2 -2
  192. data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
  193. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  194. data/lib/wx/doc/gen/splitter_window.rb +2 -2
  195. data/lib/wx/doc/gen/static_bitmap.rb +2 -2
  196. data/lib/wx/doc/gen/static_box.rb +4 -4
  197. data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
  198. data/lib/wx/doc/gen/static_line.rb +2 -2
  199. data/lib/wx/doc/gen/static_text.rb +2 -2
  200. data/lib/wx/doc/gen/status_bar.rb +2 -2
  201. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
  202. data/lib/wx/doc/gen/task_bar_icon.rb +2 -2
  203. data/lib/wx/doc/gen/text_attr.rb +3 -3
  204. data/lib/wx/doc/gen/text_ctrl.rb +3 -3
  205. data/lib/wx/doc/gen/text_entry_dialog.rb +6 -8
  206. data/lib/wx/doc/gen/text_validator.rb +1 -1
  207. data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
  208. data/lib/wx/doc/gen/tip_provider.rb +1 -3
  209. data/lib/wx/doc/gen/toggle_button.rb +2 -2
  210. data/lib/wx/doc/gen/tool_bar.rb +10 -10
  211. data/lib/wx/doc/gen/toolbook.rb +2 -2
  212. data/lib/wx/doc/gen/top_level_window.rb +4 -4
  213. data/lib/wx/doc/gen/tree_ctrl.rb +4 -4
  214. data/lib/wx/doc/gen/treebook.rb +2 -2
  215. data/lib/wx/doc/gen/utils.rb +5 -42
  216. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  217. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  218. data/lib/wx/doc/gen/variant.rb +10 -10
  219. data/lib/wx/doc/gen/window.rb +9 -14
  220. data/lib/wx/doc/gen/wizard.rb +2 -2
  221. data/lib/wx/doc/gen/wizard_event.rb +1 -1
  222. data/lib/wx/doc/gen/xml_node.rb +2 -2
  223. data/lib/wx/doc/gen/xml_resource.rb +3 -3
  224. data/lib/wx/doc/graphics_context.rb +42 -0
  225. data/lib/wx/doc/icon.rb +18 -0
  226. data/lib/wx/doc/id_helper.rb +25 -0
  227. data/lib/wx/doc/image.rb +33 -0
  228. data/lib/wx/doc/region_iterator.rb +31 -0
  229. data/lib/wx/doc/scaled_dc.rb +1 -0
  230. data/lib/wx/doc/window.rb +18 -0
  231. data/lib/wx/global_const.rb +24 -18
  232. data/lib/wx/version.rb +1 -1
  233. data/lib/wx/wxruby/cmd/sampler.rb +3 -21
  234. data/lib/wxruby_aui.so +0 -0
  235. data/lib/wxruby_core.so +0 -0
  236. data/lib/wxruby_grid.so +0 -0
  237. data/lib/wxruby_html.so +0 -0
  238. data/lib/wxruby_pg.so +0 -0
  239. data/lib/wxruby_prt.so +0 -0
  240. data/lib/wxruby_rbn.so +0 -0
  241. data/lib/wxruby_rtc.so +0 -0
  242. data/lib/wxruby_stc.so +0 -0
  243. data/rakelib/lib/config.rb +4 -4
  244. data/samples/art/wxruby-128x128.png +0 -0
  245. data/samples/art/wxruby-256x256.png +0 -0
  246. data/samples/art/wxruby-64x64.png +0 -0
  247. data/samples/art/wxruby.ico +0 -0
  248. data/samples/art/wxruby.png +0 -0
  249. data/samples/drawing/graphics_drawing.rb +1 -2
  250. data/samples/propgrid/propgrid.rb +65 -65
  251. data/samples/sample.xpm +246 -470
  252. data/samples/treectrl/treectrl.rb +1 -1
  253. data/tests/art/my_art/sample.xpm +251 -0
  254. data/tests/art/sample3.xpm +251 -0
  255. data/tests/art/test_art/bitmap/sample.xpm +251 -0
  256. data/tests/art/test_art/bitmap/wxruby.bmp +0 -0
  257. data/tests/art/test_art/bitmap/wxruby.png +0 -0
  258. data/tests/art/test_art/bitmap/wxruby.xpm +251 -0
  259. data/tests/art/test_art/cursor/wxruby.bmp +0 -0
  260. data/tests/art/test_art/icon/sample.xpm +251 -0
  261. data/tests/art/test_art/icon/wxruby.ico +0 -0
  262. data/tests/art/test_art/icon/wxruby.png +0 -0
  263. data/tests/art/test_art/image/sample.xpm +251 -0
  264. data/tests/art/test_art/image/wxruby.jpg +0 -0
  265. data/tests/art/test_art/image/wxruby.png +0 -0
  266. data/tests/art/test_art/sample2.xpm +251 -0
  267. data/tests/test_art.rb +91 -0
  268. data/tests/test_clipboard.rb +35 -0
  269. data/tests/test_dc.rb +70 -0
  270. data/tests/test_events.rb +12 -0
  271. data/tests/test_geometry.rb +13 -0
  272. metadata +48 -5
@@ -27,7 +27,7 @@ module Wx::GRID
27
27
  # @param outformat [String] strptime()-like format string used the parse the output date/time.
28
28
  # @param informat [String] strptime()-like format string used to parse the string entered in the cell.
29
29
  # @return [GridCellDateTimeRenderer]
30
- def initialize(outformat=Wx::DEFAULT_DATE_TIME_FORMAT, informat=Wx::DEFAULT_DATE_TIME_FORMAT) end
30
+ def initialize(outformat=Wx::DefaultDateTimeFormat, informat=Wx::DefaultDateTimeFormat) end
31
31
 
32
32
  end # GridCellDateTimeRenderer
33
33
 
@@ -26,7 +26,7 @@ module Wx::GRID
26
26
  # Enum cell editor ctor.
27
27
  # @param choices [String] Comma separated choice parameters "item1[,item2[...,itemN]]".
28
28
  # @return [GridCellEnumEditor]
29
- def initialize(choices=Wx::EMPTY_STRING) end
29
+ def initialize(choices=('')) end
30
30
 
31
31
  end # GridCellEnumEditor
32
32
 
@@ -25,7 +25,7 @@ module Wx::GRID
25
25
  # Enum renderer ctor.
26
26
  # @param choices [String] Comma separated string parameters "item1[,item2[...,itemN]]".
27
27
  # @return [GridCellEnumRenderer]
28
- def initialize(choices=Wx::EMPTY_STRING) end
28
+ def initialize(choices=('')) end
29
29
 
30
30
  # Sets the comma separated string content of the enum.
31
31
  # @param params [String] Comma separated string parameters "item1[,item2[...,itemN]]".
@@ -27,7 +27,7 @@ module Wx::GRID
27
27
  # @param precision [Integer] Number of digits after the decimal dot.
28
28
  # @param format [Integer] The format to use for displaying the number, a combination of {Wx::GRID::GridCellFloatFormat} enum elements. This parameter is only available since wxWidgets 2.9.3.
29
29
  # @return [GridCellFloatEditor]
30
- def initialize(width=-1, precision=-1, format=Wx::GRID_FLOAT_FORMAT_DEFAULT) end
30
+ def initialize(width=-1, precision=-1, format=Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT) end
31
31
 
32
32
  # The parameters string format is "width[,precision[,format]]" where format should be chosen between f|e|g|E|G (f is used by default)
33
33
  # @param params [String]
@@ -26,7 +26,7 @@ module Wx::GRID
26
26
  # @param precision [Integer] Number of digits after the decimal dot.
27
27
  # @param format [Integer] The format used to display the string, must be a combination of {Wx::GRID::GridCellFloatFormat} enum elements. This parameter is only available since wxWidgets 2.9.3.
28
28
  # @return [GridCellFloatRenderer]
29
- def initialize(width=-1, precision=-1, format=Wx::GRID_FLOAT_FORMAT_DEFAULT) end
29
+ def initialize(width=-1, precision=-1, format=Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT) end
30
30
 
31
31
  # Returns the specifier used to format the data to string.
32
32
  # The returned value is a combination of {Wx::GRID::GridCellFloatFormat} elements.
@@ -298,7 +298,7 @@ module Wx::GRID
298
298
  # Default constructor.
299
299
  # You must call {Wx::GRID::Grid#create} to really create the grid window and also call {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize its contents.
300
300
  # @return [Grid]
301
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GRID_NAME_STR)
301
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GridNameStr)
302
302
  # Constructor creating the grid window.
303
303
  # You must call either {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize the grid contents before using it.
304
304
  # @param parent [Wx::Window]
@@ -319,7 +319,7 @@ module Wx::GRID
319
319
  # @param style [Integer]
320
320
  # @param name [String]
321
321
  # @return [true,false]
322
- def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GRID_NAME_STR) end
322
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GridNameStr) end
323
323
 
324
324
  # Creates a grid with the specified initial number of rows and columns.
325
325
  # Call this directly after the grid constructor. When you use this function {Wx::GRID::Grid} will create and manage a simple table of string values for you. All of the grid data will be stored in memory.
@@ -328,7 +328,7 @@ module Wx::GRID
328
328
  # @param numCols [Integer]
329
329
  # @param selmode [GridSelectionModes]
330
330
  # @return [true,false]
331
- def create_grid(numRows, numCols, selmode=Wx::GRID_SELECT_CELLS) end
331
+ def create_grid(numRows, numCols, selmode=Wx::GRID::Grid::GridSelectionModes::GridSelectCells) end
332
332
 
333
333
  # Assigns a pointer to a custom grid table to be used by the grid.
334
334
  # This function is identical to {Wx::GRID::Grid#set_table} with takeOwnership parameter set to true, i.e. it simply always takes the ownership of the passed in pointer. This makes it simpler to use than {Wx::GRID::Grid#set_table} in the common case when the table should be owned by the grid object.
@@ -336,7 +336,7 @@ module Wx::GRID
336
336
  # @param table [Wx::GridTableBase] The heap-allocated pointer to the table.
337
337
  # @param selmode [GridSelectionModes] Selection mode to use.
338
338
  # @return [void]
339
- def assign_table(table, selmode=Wx::GRID_SELECT_CELLS) end
339
+ def assign_table(table, selmode=Wx::GRID::Grid::GridSelectionModes::GridSelectCells) end
340
340
 
341
341
  # Receive and handle a message from the table.
342
342
  # @param msg [Wx::GridTableMessage]
@@ -2142,7 +2142,7 @@ module Wx::GRID
2142
2142
  # @param bottomRight [Wx::GridCellCoords] The bottom right cell of the block to be drawn. Defaults to row and column counts.
2143
2143
  # @param style [Integer] A combination of values from {Wx::GRID::GridRenderStyle}.
2144
2144
  # @return [void]
2145
- def render(dc, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, topLeft=(Wx::GridCellCoords.new(-1, -1)), bottomRight=(Wx::GridCellCoords.new(-1, -1)), style=Wx::GRID_DRAW_DEFAULT) end
2145
+ def render(dc, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, topLeft=(Wx::GridCellCoords.new(-1, -1)), bottomRight=(Wx::GridCellCoords.new(-1, -1)), style=Wx::GRID::GridRenderStyle::GRID_DRAW_DEFAULT) end
2146
2146
 
2147
2147
  # Sets the cell attributes for the specified cell.
2148
2148
  # The grid takes ownership of the attribute pointer.
@@ -2320,7 +2320,7 @@ module Wx::GRID
2320
2320
  # @return [void]
2321
2321
  def draw_corner_label(dc) end
2322
2322
 
2323
- # @overload draw_text_rectangle(dc, text, rect, horizontalAlignment=Wx::ALIGN_LEFT, verticalAlignment=Wx::ALIGN_TOP, textOrientation=Wx::HORIZONTAL)
2323
+ # @overload draw_text_rectangle(dc, text, rect, horizontalAlignment=Wx::Alignment::ALIGN_LEFT, verticalAlignment=Wx::Alignment::ALIGN_TOP, textOrientation=Wx::Orientation::HORIZONTAL)
2324
2324
  # @param dc [Wx::DC]
2325
2325
  # @param text [String]
2326
2326
  # @param rect [Wx::Rect]
@@ -2328,7 +2328,7 @@ module Wx::GRID
2328
2328
  # @param verticalAlignment [Integer]
2329
2329
  # @param textOrientation [Integer]
2330
2330
  # @return [void]
2331
- # @overload draw_text_rectangle(dc, lines, rect, horizontalAlignment=Wx::ALIGN_LEFT, verticalAlignment=Wx::ALIGN_TOP, textOrientation=Wx::HORIZONTAL)
2331
+ # @overload draw_text_rectangle(dc, lines, rect, horizontalAlignment=Wx::Alignment::ALIGN_LEFT, verticalAlignment=Wx::Alignment::ALIGN_TOP, textOrientation=Wx::Orientation::HORIZONTAL)
2332
2332
  # @param dc [Wx::DC]
2333
2333
  # @param lines [Array<String>]
2334
2334
  # @param rect [Wx::Rect]
@@ -91,7 +91,7 @@ module Wx
91
91
  # @param keyWord [String]
92
92
  # @param mode [HelpSearchMode]
93
93
  # @return [true,false]
94
- def keyword_search(keyWord, mode=Wx::HELP_SEARCH_ALL) end
94
+ def keyword_search(keyWord, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
95
95
 
96
96
  # Overridable member called when this application's viewer is quit by the user.
97
97
  # This does not work for all help controllers.
@@ -143,7 +143,7 @@ module Wx::HTML
143
143
  # @param y [Integer]
144
144
  # @param flags [unsigned]
145
145
  # @return [Wx::HTML::HtmlCell,Wx::HTML::HtmlContainerCell]
146
- def find_cell_by_pos(x, y, flags=Wx::HTML_FIND_EXACT) end
146
+ def find_cell_by_pos(x, y, flags=Wx::HTML::HTML_FIND_EXACT) end
147
147
 
148
148
  # Returns descent value of the cell (m_Descent member).
149
149
  # See explanation:
@@ -274,7 +274,7 @@ module Wx::HTML
274
274
  # @overload initialize()
275
275
  # Default ctor.
276
276
  # @return [HtmlLinkInfo]
277
- # @overload initialize(href, target=Wx::EMPTY_STRING)
277
+ # @overload initialize(href, target=(''))
278
278
  # Construct hypertext link from HREF (aka URL) and TARGET (name of target frame).
279
279
  # @param href [String]
280
280
  # @param target [String]
@@ -406,14 +406,14 @@ module Wx::HTML
406
406
  # @param units [Integer] Units of i. This parameter affects interpretation of value.
407
407
  # - {Wx::HTML::HTML_UNITS_PIXELS}: i is number of pixels- {Wx::HTML::HTML_UNITS_PERCENT}: i is interpreted as percents of width of parent container
408
408
  # @return [void]
409
- def set_indent(i, what, units=Wx::HTML_UNITS_PIXELS) end
409
+ def set_indent(i, what, units=Wx::HTML::HTML_UNITS_PIXELS) end
410
410
 
411
411
  # Sets minimal height of the container.
412
412
  # When container's {Wx::HTML::HtmlCell#layout} is called, m_Height is set depending on layout of subcells to the height of area covered by layed-out subcells. Calling this method guarantees you that the height of container is never smaller than h - even if the subcells cover much smaller area.
413
413
  # @param h [Integer] The minimal height.
414
414
  # @param align [Integer] If height of the container is lower than the minimum height, empty space must be inserted somewhere in order to ensure minimal height. This parameter is one of {Wx::HTML::HTML_ALIGN_TOP}, {Wx::HTML::HTML_ALIGN_BOTTOM}, {Wx::HTML::HTML_ALIGN_CENTER}. It refers to the contents, not to the empty place.
415
415
  # @return [void]
416
- def set_min_height(h, align=Wx::HTML_ALIGN_TOP) end
416
+ def set_min_height(h, align=Wx::HTML::HTML_ALIGN_TOP) end
417
417
  alias_method :min_height=, :set_min_height
418
418
 
419
419
  # @overload set_width_float(w, units)
@@ -54,7 +54,7 @@ module Wx::HTML
54
54
  # @param name [String] Name of the printing object. Used by preview frames and setup dialogs.
55
55
  # @param parentWindow [Wx::Window] pointer to the window that will own the preview frame and setup dialogs. May be NULL.
56
56
  # @return [HtmlEasyPrinting]
57
- def initialize(name=("Wx::PRINTING"), parentWindow=nil) end
57
+ def initialize(name=("Printing"), parentWindow=nil) end
58
58
 
59
59
  # Returns the current name being used for preview frames and setup dialogs.
60
60
  # @return [Wx::String]
@@ -93,7 +93,7 @@ module Wx::HTML
93
93
  # @param htmltext [String] HTML text.
94
94
  # @param basepath [String] base directory (html string would be stored there if it was in file). It is used to determine path for loading images, for example.
95
95
  # @return [true,false]
96
- def preview_text(htmltext, basepath=Wx::EMPTY_STRING) end
96
+ def preview_text(htmltext, basepath=('')) end
97
97
 
98
98
  # Print HTML file.
99
99
  # Returns false in case of error call {Wx::PRT::Printer.get_last_error} to get detailed information about the kind of the error.
@@ -106,7 +106,7 @@ module Wx::HTML
106
106
  # @param htmltext [String] HTML text.
107
107
  # @param basepath [String] base directory (html string would be stored there if it was in file). It is used to determine path for loading images, for example.
108
108
  # @return [true,false]
109
- def print_text(htmltext, basepath=Wx::EMPTY_STRING) end
109
+ def print_text(htmltext, basepath=('')) end
110
110
 
111
111
  # Sets fonts.
112
112
  # See Wx::HtmlDCRenderer::SetFonts for detailed description.
@@ -129,7 +129,7 @@ module Wx::HTML
129
129
  # @param normal_face [String]
130
130
  # @param fixed_face [String]
131
131
  # @return [void]
132
- def set_standard_fonts(size=-1, normal_face=Wx::EMPTY_STRING, fixed_face=Wx::EMPTY_STRING) end
132
+ def set_standard_fonts(size=-1, normal_face=(''), fixed_face=('')) end
133
133
  alias_method :standard_fonts=, :set_standard_fonts
134
134
 
135
135
  # Set page footer.
@@ -137,7 +137,7 @@ module Wx::HTML
137
137
  # @param footer [String] HTML text to be used as footer.
138
138
  # @param pg [Integer] one of {Wx::HTML::PAGE_ODD}, {Wx::HTML::PAGE_EVEN} and {Wx::HTML::PAGE_ALL} constants.
139
139
  # @return [void]
140
- def set_footer(footer, pg=Wx::PAGE_ALL) end
140
+ def set_footer(footer, pg=Wx::HTML::PAGE_ALL) end
141
141
  alias_method :footer=, :set_footer
142
142
 
143
143
  # Set page header.
@@ -146,7 +146,7 @@ module Wx::HTML
146
146
  # @param header [String] HTML text to be used as header.
147
147
  # @param pg [Integer] one of {Wx::HTML::PAGE_ODD}, {Wx::HTML::PAGE_EVEN} and {Wx::HTML::PAGE_ALL} constants.
148
148
  # @return [void]
149
- def set_header(header, pg=Wx::PAGE_ALL) end
149
+ def set_header(header, pg=Wx::HTML::PAGE_ALL) end
150
150
  alias_method :header=, :set_header
151
151
 
152
152
  # Sets the parent window for dialogs.
@@ -57,13 +57,13 @@ module Wx::HTML
57
57
  #
58
58
  class HtmlHelpController < Object
59
59
 
60
- # @overload initialize(style=Wx::HF_DEFAULT_STYLE, parentWindow=nil)
60
+ # @overload initialize(style=Wx::HTML::HF_DEFAULT_STYLE, parentWindow=nil)
61
61
  # Constructor.
62
62
  # @param style [Integer] This is a combination of these flags:
63
63
  # - {Wx::HTML::HF_TOOLBAR}: The help window has a toolbar.- {Wx::HTML::HF_FLAT_TOOLBAR}: The help window has a toolbar with flat buttons (aka coolbar).- {Wx::HTML::HF_CONTENTS}: The help window has a contents panel.- {Wx::HTML::HF_INDEX}: The help window has an index panel.- {Wx::HTML::HF_SEARCH}: The help window has a search panel.- {Wx::HTML::HF_BOOKMARKS}: The help window has bookmarks controls.- {Wx::HTML::HF_OPEN_FILES}: Allows user to open arbitrary HTML document.- {Wx::HTML::HF_PRINT}: The toolbar contains "print" button.- {Wx::HTML::HF_MERGE_BOOKS}: The contents pane does not show book nodes. All books are merged together and appear as single book to the user.- {Wx::HTML::HF_ICONS_BOOK}: All nodes in contents pane have a book icon. This is how Microsoft's HTML help viewer behaves.- {Wx::HTML::HF_ICONS_FOLDER}: Book nodes in contents pane have a book icon, book's sections have a folder icon. This is the default.- {Wx::HTML::HF_ICONS_BOOK_CHAPTER}: Both book nodes and nodes of top-level sections of a book (i.e. chapters) have a book icon, all other sections (sections, subsections, ...) have a folder icon.- {Wx::HTML::HF_EMBEDDED}: Specifies that the help controller controls an embedded window of class {Wx::HTML::HtmlHelpWindow} that should not be destroyed when the controller is destroyed.- {Wx::HTML::HF_DIALOG}: Specifies that the help controller should create a dialog containing the help window.- {Wx::HTML::HF_FRAME}: Specifies that the help controller should create a frame containing the help window. This is the default if neither {Wx::HTML::HF_DIALOG} nor {Wx::HTML::HF_EMBEDDED} is specified.- {Wx::HTML::HF_MODAL}: Specifies that the help controller should create a modal dialog containing the help window (used with the {Wx::HTML::HF_DIALOG} style).- {Wx::HTML::HF_DEFAULT_STYLE}: {Wx::HTML::HF_TOOLBAR} | {Wx::HTML::HF_CONTENTS} | {Wx::HTML::HF_INDEX} | {Wx::HTML::HF_SEARCH} | {Wx::HTML::HF_BOOKMARKS} | {Wx::HTML::HF_PRINT}
64
64
  # @param parentWindow [Wx::Window] This is an optional window to be used as the parent for the help window.
65
65
  # @return [HtmlHelpController]
66
- # @overload initialize(parentWindow, style=Wx::HF_DEFAULT_STYLE)
66
+ # @overload initialize(parentWindow, style=Wx::HTML::HF_DEFAULT_STYLE)
67
67
  # @param parentWindow [Wx::Window]
68
68
  # @param style [Integer]
69
69
  # @return [HtmlHelpController]
@@ -118,13 +118,13 @@ module Wx::HTML
118
118
  # @param keyword [String]
119
119
  # @param mode [HelpSearchMode]
120
120
  # @return [true,false]
121
- def keyword_search(keyword, mode=Wx::HELP_SEARCH_ALL) end
121
+ def keyword_search(keyword, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
122
122
 
123
123
  # Reads the controller's setting (position of window, etc.)
124
124
  # @param cfg [Wx::ConfigBase]
125
125
  # @param path [String]
126
126
  # @return [void]
127
- def read_customization(cfg, path=Wx::EMPTY_STRING) end
127
+ def read_customization(cfg, path=('')) end
128
128
 
129
129
  # Sets whether the help frame should prevent application from exiting if it's the only remaining top level window.
130
130
  #
@@ -155,13 +155,13 @@ module Wx::HTML
155
155
  # @param config [Wx::ConfigBase]
156
156
  # @param rootpath [String]
157
157
  # @return [void]
158
- def use_config(config, rootpath=Wx::EMPTY_STRING) end
158
+ def use_config(config, rootpath=('')) end
159
159
 
160
160
  # Stores controllers setting (position of window etc.)
161
161
  # @param cfg [Wx::ConfigBase]
162
162
  # @param path [String]
163
163
  # @return [void]
164
- def write_customization(cfg, path=Wx::EMPTY_STRING) end
164
+ def write_customization(cfg, path=('')) end
165
165
 
166
166
  # Get the current help window.
167
167
  # @return [Wx::HtmlHelpWindow]
@@ -56,7 +56,7 @@ module Wx::HTML
56
56
  # @overload initialize(data=nil)
57
57
  # @param data [Wx::HtmlHelpData]
58
58
  # @return [HtmlHelpFrame]
59
- # @overload initialize(parent, id, title=Wx::EMPTY_STRING, style=Wx::HF_DEFAULT_STYLE, data=nil, config=nil, rootpath=Wx::EMPTY_STRING)
59
+ # @overload initialize(parent, id, title=(''), style=Wx::HTML::HF_DEFAULT_STYLE, data=nil, config=nil, rootpath=(''))
60
60
  # Constructor.
61
61
  # For the possible values of style, please see {Wx::HTML::HtmlHelpController}.
62
62
  # @param parent [Wx::Window]
@@ -86,7 +86,7 @@ module Wx::HTML
86
86
  # @param config [Wx::ConfigBase]
87
87
  # @param rootpath [String]
88
88
  # @return [true,false]
89
- def create(parent, id, title=Wx::EMPTY_STRING, style=Wx::HF_DEFAULT_STYLE, config=nil, rootpath=Wx::EMPTY_STRING) end
89
+ def create(parent, id, title=(''), style=Wx::HTML::HF_DEFAULT_STYLE, config=nil, rootpath=('')) end
90
90
 
91
91
  # Returns the help controller associated with the frame.
92
92
  # @return [Wx::HtmlHelpController]
@@ -130,7 +130,7 @@ module Wx::HTML
130
130
  # @overload initialize(data=nil)
131
131
  # @param data [Wx::HtmlHelpData]
132
132
  # @return [HtmlHelpWindow]
133
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::BORDER_NONE), helpStyle=Wx::HF_DEFAULT_STYLE, data=nil)
133
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::Border::BORDER_NONE), helpStyle=Wx::HTML::HF_DEFAULT_STYLE, data=nil)
134
134
  # Constructor.
135
135
  # For the values of helpStyle, please see the documentation for {Wx::HTML::HtmlHelpController}.
136
136
  # @param parent [Wx::Window]
@@ -152,7 +152,7 @@ module Wx::HTML
152
152
  # @param style [Integer]
153
153
  # @param helpStyle [Integer]
154
154
  # @return [true,false]
155
- def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::BORDER_NONE), helpStyle=Wx::HF_DEFAULT_STYLE) end
155
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::Border::BORDER_NONE), helpStyle=Wx::HTML::HF_DEFAULT_STYLE) end
156
156
 
157
157
  # @overload display(x)
158
158
  # Displays page x.
@@ -185,7 +185,7 @@ module Wx::HTML
185
185
  # @param keyword [String]
186
186
  # @param mode [HelpSearchMode]
187
187
  # @return [true,false]
188
- def keyword_search(keyword, mode=Wx::HELP_SEARCH_ALL) end
188
+ def keyword_search(keyword, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
189
189
 
190
190
  # Reads the user's settings for this window.
191
191
  #
@@ -193,14 +193,14 @@ module Wx::HTML
193
193
  # @param cfg [Wx::ConfigBase]
194
194
  # @param path [String]
195
195
  # @return [void]
196
- def read_customization(cfg, path=Wx::EMPTY_STRING) end
196
+ def read_customization(cfg, path=('')) end
197
197
 
198
198
  # Associates a {Wx::Config} object with the help window.
199
199
  # It is recommended that you use {Wx::HTML::HtmlHelpController#use_config} instead.
200
200
  # @param config [Wx::ConfigBase]
201
201
  # @param rootpath [String]
202
202
  # @return [void]
203
- def use_config(config, rootpath=Wx::EMPTY_STRING) end
203
+ def use_config(config, rootpath=('')) end
204
204
 
205
205
  # Saves the user's settings for this window.
206
206
  #
@@ -208,7 +208,7 @@ module Wx::HTML
208
208
  # @param cfg [Wx::ConfigBase]
209
209
  # @param path [String]
210
210
  # @return [void]
211
- def write_customization(cfg, path=Wx::EMPTY_STRING) end
211
+ def write_customization(cfg, path=('')) end
212
212
 
213
213
  # Refresh all panels.
214
214
  # This is necessary if a new book was added.
@@ -30,7 +30,7 @@ module Wx::HTML
30
30
  #
31
31
  class HtmlListBox < VListBox
32
32
 
33
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::HTML_LIST_BOX_NAME_STR)
33
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::HtmlListBoxNameStr)
34
34
  # Normal constructor which calls {Wx::HTML::HtmlListBox#create} internally.
35
35
  # @param parent [Wx::Window]
36
36
  # @param id [Integer]
@@ -54,7 +54,7 @@ module Wx::HTML
54
54
  # @param style [Integer]
55
55
  # @param name [String]
56
56
  # @return [true,false]
57
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::HTML_LIST_BOX_NAME_STR) end
57
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::HtmlListBoxNameStr) end
58
58
 
59
59
  end # HtmlListBox
60
60
 
@@ -91,7 +91,7 @@ module Wx::HTML
91
91
  #
92
92
  class SimpleHtmlListBox < HtmlListBox
93
93
 
94
- # @overload create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=Wx::HLB_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SIMPLE_HTML_LIST_BOX_NAME_STR)
94
+ # @overload create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=Wx::HTML::HLB_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SimpleHtmlListBoxNameStr)
95
95
  # Creates the HTML listbox for two-step construction.
96
96
  # See {Wx::HTML::SimpleHtmlListBox#simple_html_list_box} for further details.
97
97
  # @param parent [Wx::Window]
@@ -103,7 +103,7 @@ module Wx::HTML
103
103
  # @param validator [Wx::Validator]
104
104
  # @param name [String]
105
105
  # @return [true,false]
106
- # @overload create(parent, id, pos, size, choices, style=Wx::HLB_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SIMPLE_HTML_LIST_BOX_NAME_STR)
106
+ # @overload create(parent, id, pos, size, choices, style=Wx::HTML::HLB_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SimpleHtmlListBoxNameStr)
107
107
  # Creates the HTML listbox for two-step construction.
108
108
  # See {Wx::HTML::SimpleHtmlListBox#simple_html_list_box} for further details.
109
109
  # @param parent [Wx::Window]
@@ -117,7 +117,7 @@ module Wx::HTML
117
117
  # @return [true,false]
118
118
  def create(*args) end
119
119
 
120
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=Wx::HLB_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SIMPLE_HTML_LIST_BOX_NAME_STR)
120
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=Wx::HTML::HLB_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SimpleHtmlListBoxNameStr)
121
121
  # Constructor, creating and showing the HTML list box.
122
122
  # @param parent [Wx::Window] Parent window. Must not be NULL.
123
123
  # @param id [Integer] Window identifier. A value of -1 indicates a default value.
@@ -128,7 +128,7 @@ module Wx::HTML
128
128
  # @param validator [Wx::Validator] Window validator.
129
129
  # @param name [String] Window name.
130
130
  # @return [SimpleHtmlListBox]
131
- # @overload initialize(parent, id, pos, size, choices, style=Wx::HLB_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SIMPLE_HTML_LIST_BOX_NAME_STR)
131
+ # @overload initialize(parent, id, pos, size, choices, style=Wx::HTML::HLB_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SimpleHtmlListBoxNameStr)
132
132
  # Constructor, creating and showing the HTML list box.
133
133
  # @param parent [Wx::Window] Parent window. Must not be NULL.
134
134
  # @param id [Integer] Window identifier. A value of -1 indicates a default value.
@@ -16,7 +16,7 @@ module Wx::HTML
16
16
  # Constructor.
17
17
  # @param title [String]
18
18
  # @return [HtmlPrintout]
19
- def initialize(title=("Wx::PRINTOUT")) end
19
+ def initialize(title=("Wx::PRT::Printout")) end
20
20
 
21
21
  # This function sets font sizes and faces.
22
22
  # See {Wx::HTML::HtmlWindow#set_fonts} for detailed description.
@@ -32,7 +32,7 @@ module Wx::HTML
32
32
  # @param footer [String] HTML text to be used as footer.
33
33
  # @param pg [Integer] one of {Wx::HTML::PAGE_ODD}, {Wx::HTML::PAGE_EVEN} and {Wx::HTML::PAGE_ALL} constants.
34
34
  # @return [void]
35
- def set_footer(footer, pg=Wx::PAGE_ALL) end
35
+ def set_footer(footer, pg=Wx::HTML::PAGE_ALL) end
36
36
  alias_method :footer=, :set_footer
37
37
 
38
38
  # Set page header.
@@ -41,7 +41,7 @@ module Wx::HTML
41
41
  # @param header [String] HTML text to be used as header.
42
42
  # @param pg [Integer] one of {Wx::HTML::PAGE_ODD}, {Wx::HTML::PAGE_EVEN} and {Wx::HTML::PAGE_ALL} constants.
43
43
  # @return [void]
44
- def set_header(header, pg=Wx::PAGE_ALL) end
44
+ def set_header(header, pg=Wx::HTML::PAGE_ALL) end
45
45
  alias_method :header=, :set_header
46
46
 
47
47
  # Prepare the class for printing this HTML <b>file</b>.
@@ -56,7 +56,7 @@ module Wx::HTML
56
56
  # @param basepath [String] base directory (html string would be stored there if it was in file). It is used to determine path for loading images, for example.
57
57
  # @param isdir [true,false] false if basepath is filename, true if it is directory name (see {Wx::FileSystem} for detailed explanation).
58
58
  # @return [void]
59
- def set_html_text(html, basepath=Wx::EMPTY_STRING, isdir=true) end
59
+ def set_html_text(html, basepath=(''), isdir=true) end
60
60
  alias_method :html_text=, :set_html_text
61
61
 
62
62
  # @overload set_margins(top=25.2, bottom=25.2, left=25.2, right=25.2, spaces=5)
@@ -103,7 +103,7 @@ module Wx::HTML
103
103
  # @overload initialize()
104
104
  # Default ctor.
105
105
  # @return [HtmlWindow]
106
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HW_DEFAULT_STYLE, name=("Wx::HTML_WINDOW"))
106
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HTML::HW_DEFAULT_STYLE, name=("htmlWindow"))
107
107
  # Constructor.
108
108
  # The parameters are the same as Wx::Scrolled#initialize constructor.
109
109
  # @param parent [Wx::Window]
@@ -216,7 +216,7 @@ module Wx::HTML
216
216
  # @param cfg [Wx::ConfigBase] {Wx::Config} from which you want to read the configuration.
217
217
  # @param path [String] Optional path in config tree. If not given current path is used.
218
218
  # @return [void]
219
- def read_customization(cfg, path=Wx::EMPTY_STRING) end
219
+ def read_customization(cfg, path=('')) end
220
220
 
221
221
  # Selects all text in the window.
222
222
  #
@@ -269,7 +269,7 @@ module Wx::HTML
269
269
  # @param normal_face [String]
270
270
  # @param fixed_face [String]
271
271
  # @return [void]
272
- def set_standard_fonts(size=-1, normal_face=Wx::EMPTY_STRING, fixed_face=Wx::EMPTY_STRING) end
272
+ def set_standard_fonts(size=-1, normal_face=(''), fixed_face=('')) end
273
273
  alias_method :standard_fonts=, :set_standard_fonts
274
274
 
275
275
  # Sets the source of a page and displays it, for example:
@@ -314,7 +314,7 @@ module Wx::HTML
314
314
  # @param cfg [Wx::ConfigBase] {Wx::Config} to which you want to save the configuration.
315
315
  # @param path [String] Optional path in config tree. If not given, the current path is used.
316
316
  # @return [void]
317
- def write_customization(cfg, path=Wx::EMPTY_STRING) end
317
+ def write_customization(cfg, path=('')) end
318
318
 
319
319
  # Adds an input filter to the static list of available filters.
320
320
  # These filters are present by default:
@@ -166,12 +166,12 @@ module Wx
166
166
  # @overload initialize()
167
167
  # Default ctor.
168
168
  # @return [IconBundle]
169
- # @overload initialize(file, type=Wx::BITMAP_TYPE_ANY)
169
+ # @overload initialize(file, type=Wx::BitmapType::BITMAP_TYPE_ANY)
170
170
  # Initializes the bundle with the icon(s) found in the file.
171
171
  # @param file [String]
172
172
  # @param type [BitmapType]
173
173
  # @return [IconBundle]
174
- # @overload initialize(stream, type=Wx::BITMAP_TYPE_ANY)
174
+ # @overload initialize(stream, type=Wx::BitmapType::BITMAP_TYPE_ANY)
175
175
  # Initializes the bundle with the icon(s) found in the stream.
176
176
  # Notice that the stream must be seekable, at least if it contains more than one icon. The stream pointer is positioned after the last icon read from the stream when this function returns.
177
177
  # @param stream [IO,Wx::InputStream]
@@ -197,12 +197,12 @@ module Wx
197
197
  # @return [IconBundle]
198
198
  def initialize(*args) end
199
199
 
200
- # @overload add_icon(file, type=Wx::BITMAP_TYPE_ANY)
200
+ # @overload add_icon(file, type=Wx::BitmapType::BITMAP_TYPE_ANY)
201
201
  # Adds all the icons contained in the file to the bundle; if the collection already contains icons with the same width and height, they are replaced by the new ones.
202
202
  # @param file [String]
203
203
  # @param type [BitmapType]
204
204
  # @return [void]
205
- # @overload add_icon(stream, type=Wx::BITMAP_TYPE_ANY)
205
+ # @overload add_icon(stream, type=Wx::BitmapType::BITMAP_TYPE_ANY)
206
206
  # Adds all the icons contained in the stream to the bundle; if the collection already contains icons with the same width and height, they are replaced by the new ones.
207
207
  # Notice that, as well as in the constructor loading the icon bundle from stream, the stream must be seekable, at least if more than one icon is to be loaded from it.
208
208
  # @param stream [IO,Wx::InputStream]
@@ -221,7 +221,7 @@ module Wx
221
221
  # @return [void]
222
222
  def add_icon(*args) end
223
223
 
224
- # @overload get_icon(size, flags=Wx::FALLBACK_SYSTEM)
224
+ # @overload get_icon(size, flags=Wx::IconBundle::FALLBACK_SYSTEM)
225
225
  # Returns the icon with the given size.
226
226
  # If size is {Wx::DEFAULT_SIZE}, it is interpreted as the standard system icon size, i.e. the size returned by {Wx::SystemSettings.get_metric} for {Wx::SystemMetric::SYS_ICON_X} and {Wx::SystemMetric::SYS_ICON_Y}.
227
227
  # If the bundle contains an icon with exactly the requested size, it's always returned. Otherwise, the behaviour depends on the flags. If only {Wx::IconBundle::FALLBACK_NONE} is given, the function returns an invalid icon. If {Wx::IconBundle::FALLBACK_SYSTEM} is given, it tries to find the icon of standard system size, regardless of the size passed as parameter. Otherwise, or if the icon system size is not found either, but {Wx::IconBundle::FALLBACK_NEAREST_LARGER} flag is specified, the function returns the smallest icon of the size larger than the requested one or, if this fails too, just the icon closest to the specified size.
@@ -229,7 +229,7 @@ module Wx
229
229
  # @param size [Array(Integer, Integer), Wx::Size]
230
230
  # @param flags [Integer]
231
231
  # @return [Wx::Icon]
232
- # @overload get_icon(size=Wx::DEFAULT_COORD, flags=Wx::FALLBACK_SYSTEM)
232
+ # @overload get_icon(size=Wx::DEFAULT_COORD, flags=Wx::IconBundle::FALLBACK_SYSTEM)
233
233
  # Same as.
234
234
  # GetIcon( wxSize( size, size ) )
235
235
  # .
@@ -371,7 +371,7 @@ module Wx
371
371
  # @param y [Integer] The vertical position of the position to copy the data to.
372
372
  # @param alphaBlend [ImageAlphaBlendMode] This parameter (new in wx 3.1.5) determines whether the alpha values of the original image replace (default) or are composed with the alpha channel of this image. Notice that alpha blending overrides the mask handling.
373
373
  # @return [void]
374
- def paste(image, x, y, alphaBlend=Wx::IMAGE_ALPHA_BLEND_OVER) end
374
+ def paste(image, x, y, alphaBlend=Wx::ImageAlphaBlendMode::IMAGE_ALPHA_BLEND_OVER) end
375
375
 
376
376
  # Replaces the colour specified by r1,g1,b1 by the colour r2,g2,b2.
377
377
  # @param r1 [Integer]
@@ -390,7 +390,7 @@ module Wx
390
390
  # @param height [Integer]
391
391
  # @param quality [ImageResizeQuality]
392
392
  # @return [Wx::Image]
393
- def rescale(width, height, quality=Wx::IMAGE_QUALITY_NORMAL) end
393
+ def rescale(width, height, quality=Wx::ImageResizeQuality::IMAGE_QUALITY_NORMAL) end
394
394
 
395
395
  # Changes the size of the image in-place without scaling it by adding either a border with the given colour or cropping as necessary.
396
396
  # The image is pasted into a new image with the given size and background colour at the position pos relative to the upper left of the new image.
@@ -477,7 +477,7 @@ module Wx
477
477
  # @param height [Integer]
478
478
  # @param quality [ImageResizeQuality]
479
479
  # @return [Wx::Image]
480
- def scale(width, height, quality=Wx::IMAGE_QUALITY_NORMAL) end
480
+ def scale(width, height, quality=Wx::ImageResizeQuality::IMAGE_QUALITY_NORMAL) end
481
481
 
482
482
  # Returns a resized version of this image without scaling it by adding either a border with the given colour or cropping as necessary.
483
483
  # The image is pasted into a new image with the given size and background colour at the position pos relative to the upper left of the new image.
@@ -755,7 +755,7 @@ module Wx
755
755
  def is_transparent(x, y, threshold=Wx::IMAGE_ALPHA_THRESHOLD) end
756
756
  alias_method :transparent?, :is_transparent
757
757
 
758
- # @overload load_stream(stream, type=Wx::BITMAP_TYPE_ANY, index=-1)
758
+ # @overload load_stream(stream, type=Wx::BitmapType::BITMAP_TYPE_ANY, index=-1)
759
759
  # Loads an image from an input stream.
760
760
  # If the file can't be loaded, this function returns false and logs an error using {log_error}. If the file can be loaded but some problems were detected while doing it, it can also call {log_warning} to notify about these problems. If this is undesirable, use {Wx::Image#set_load_flags} to reset Load_Verbose flag and suppress these warnings.
761
761
  #
@@ -793,7 +793,7 @@ module Wx
793
793
  # @return [true,false]
794
794
  def load_stream(*args) end
795
795
 
796
- # @overload load_file(name, type=Wx::BITMAP_TYPE_ANY, index=-1)
796
+ # @overload load_file(name, type=Wx::BitmapType::BITMAP_TYPE_ANY, index=-1)
797
797
  # Loads an image from a file.
798
798
  # If no handler type is provided, the library will try to autodetect the format.
799
799
  # @param name [String] Name of the file from which to load the image.
@@ -1012,7 +1012,7 @@ module Wx
1012
1012
  # @param filename [String]
1013
1013
  # @param type [BitmapType]
1014
1014
  # @return [Integer]
1015
- def self.get_image_count(filename, type=Wx::BITMAP_TYPE_ANY) end
1015
+ def self.get_image_count(filename, type=Wx::BitmapType::BITMAP_TYPE_ANY) end
1016
1016
 
1017
1017
  # @overload initialize()
1018
1018
  # Creates an empty {Wx::Image} object without an alpha channel.
@@ -1061,7 +1061,7 @@ module Wx
1061
1061
  # This constructor has become explicit in wxWidgets 3.1.6.
1062
1062
  # @param xpmData [char] A pointer to XPM image data.
1063
1063
  # @return [Image]
1064
- # @overload initialize(name, type=Wx::BITMAP_TYPE_ANY, index=-1)
1064
+ # @overload initialize(name, type=Wx::BitmapType::BITMAP_TYPE_ANY, index=-1)
1065
1065
  # Creates an image from a file.
1066
1066
  # Depending on how wxWidgets has been configured and by which handlers have been loaded, not all formats may be available. Any handler other than BMP must be previously initialized with {Wx::Image.add_handler} or {init_all_image_handlers}.
1067
1067
  #
@@ -46,7 +46,7 @@ module Wx
46
46
  #
47
47
  class ListBox < ControlWithItems
48
48
 
49
- # @overload create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR)
49
+ # @overload create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListBoxNameStr)
50
50
  # Creates the listbox for two-step construction.
51
51
  # See {Wx::ListBox#list_box} for further details.
52
52
  # @param parent [Wx::Window]
@@ -58,7 +58,7 @@ module Wx
58
58
  # @param validator [Wx::Validator]
59
59
  # @param name [String]
60
60
  # @return [true,false]
61
- # @overload create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR)
61
+ # @overload create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListBoxNameStr)
62
62
  # Creates the listbox for two-step construction.
63
63
  # See {Wx::ListBox#list_box} for further details.
64
64
  # @param parent [Wx::Window]
@@ -75,7 +75,7 @@ module Wx
75
75
  # @overload initialize()
76
76
  # Default constructor.
77
77
  # @return [ListBox]
78
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR)
78
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListBoxNameStr)
79
79
  # Constructor, creating and showing a list box.
80
80
  # <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
81
81
  # @param parent [Wx::Window] The parent window.
@@ -87,7 +87,7 @@ module Wx
87
87
  # @param validator [Wx::Validator] The validator for this control.
88
88
  # @param name [String] The name of this class.
89
89
  # @return [ListBox]
90
- # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR)
90
+ # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListBoxNameStr)
91
91
  # Constructor, creating and showing a list box.
92
92
  # See the other {Wx::ListBox#list_box} constructor; the only difference is that this overload takes a {Wx::ArrayString} instead of a pointer to an array of {Wx::String}.
93
93
  # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.