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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) 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/dataformat.rb +3 -1
  28. data/lib/wx/core/dc.rb +76 -52
  29. data/lib/wx/core/enum.rb +4 -0
  30. data/lib/wx/core/event.rb +38 -5
  31. data/lib/wx/core/events/evt_list.rb +3 -2
  32. data/lib/wx/core/evthandler.rb +64 -23
  33. data/lib/wx/core/icon.rb +50 -35
  34. data/lib/wx/core/id_helper.rb +32 -0
  35. data/lib/wx/core/image.rb +63 -53
  36. data/lib/wx/core/point.rb +14 -0
  37. data/lib/wx/core/real_point.rb +15 -1
  38. data/lib/wx/core/rect.rb +42 -7
  39. data/lib/wx/core/region_iterator.rb +37 -0
  40. data/lib/wx/core/size.rb +20 -0
  41. data/lib/wx/core/window.rb +8 -31
  42. data/lib/wx/doc/array_ext.rb +27 -0
  43. data/lib/wx/doc/art_locator.rb +57 -0
  44. data/lib/wx/doc/bitmap.rb +27 -0
  45. data/lib/wx/doc/clipboard.rb +12 -0
  46. data/lib/wx/doc/const.rb +77 -0
  47. data/lib/wx/doc/cursor.rb +16 -0
  48. data/lib/wx/doc/data_object.rb +1 -2
  49. data/lib/wx/doc/dc.rb +63 -46
  50. data/lib/wx/doc/event.rb +24 -0
  51. data/lib/wx/doc/events.rb +14 -0
  52. data/lib/wx/doc/evthandler.rb +24 -3
  53. data/lib/wx/doc/extra/00_starting.md +1 -1
  54. data/lib/wx/doc/extra/06_geometry.md +10 -4
  55. data/lib/wx/doc/extra/10_art.md +105 -0
  56. data/lib/wx/doc/gc_dc.rb +21 -0
  57. data/lib/wx/doc/gdi_common.rb +122 -1
  58. data/lib/wx/doc/gen/about_dialog_info.rb +1 -4
  59. data/lib/wx/doc/gen/animation.rb +3 -3
  60. data/lib/wx/doc/gen/animation_ctrl.rb +4 -4
  61. data/lib/wx/doc/gen/any_button.rb +1 -1
  62. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -1
  63. data/lib/wx/doc/gen/aui/aui_manager.rb +2 -2
  64. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -3
  65. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -3
  66. data/lib/wx/doc/gen/aui/aui_notebook.rb +2 -2
  67. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +6 -6
  68. data/lib/wx/doc/gen/bitmap.rb +1 -1
  69. data/lib/wx/doc/gen/bitmap_button.rb +2 -2
  70. data/lib/wx/doc/gen/book_ctrl_base.rb +4 -4
  71. data/lib/wx/doc/gen/brush.rb +1 -1
  72. data/lib/wx/doc/gen/button.rb +2 -2
  73. data/lib/wx/doc/gen/calendar_ctrl.rb +3 -3
  74. data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
  75. data/lib/wx/doc/gen/check_box.rb +2 -2
  76. data/lib/wx/doc/gen/check_list_box.rb +3 -3
  77. data/lib/wx/doc/gen/choice.rb +2 -2
  78. data/lib/wx/doc/gen/choicebook.rb +2 -2
  79. data/lib/wx/doc/gen/collapsible_pane.rb +2 -2
  80. data/lib/wx/doc/gen/colour.rb +1 -3
  81. data/lib/wx/doc/gen/colour_dialog.rb +1 -2
  82. data/lib/wx/doc/gen/colour_picker_ctrl.rb +2 -2
  83. data/lib/wx/doc/gen/combo_box.rb +4 -4
  84. data/lib/wx/doc/gen/context_help_button.rb +1 -1
  85. data/lib/wx/doc/gen/control.rb +3 -3
  86. data/lib/wx/doc/gen/core.rb +2 -2
  87. data/lib/wx/doc/gen/data_format.rb +1 -1
  88. data/lib/wx/doc/gen/data_object.rb +6 -6
  89. data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
  90. data/lib/wx/doc/gen/dc.rb +9 -9
  91. data/lib/wx/doc/gen/defs.rb +0 -4
  92. data/lib/wx/doc/gen/dialog.rb +3 -3
  93. data/lib/wx/doc/gen/dir_dialog.rb +2 -4
  94. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  95. data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
  96. data/lib/wx/doc/gen/drag_drop.rb +13 -1
  97. data/lib/wx/doc/gen/editable_list_box.rb +2 -2
  98. data/lib/wx/doc/gen/event.rb +0 -1
  99. data/lib/wx/doc/gen/event_list.rb +18 -16
  100. data/lib/wx/doc/gen/events.rb +87 -2
  101. data/lib/wx/doc/gen/ext_help_controller.rb +2 -2
  102. data/lib/wx/doc/gen/file_dialog.rb +1 -1
  103. data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
  104. data/lib/wx/doc/gen/font.rb +6 -6
  105. data/lib/wx/doc/gen/font_dialog.rb +1 -2
  106. data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
  107. data/lib/wx/doc/gen/frame.rb +5 -5
  108. data/lib/wx/doc/gen/fs_file.rb +2 -2
  109. data/lib/wx/doc/gen/gauge.rb +2 -2
  110. data/lib/wx/doc/gen/gdi_common.rb +18 -21
  111. data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
  112. data/lib/wx/doc/gen/graphics_context.rb +4 -4
  113. data/lib/wx/doc/gen/graphics_object.rb +2 -2
  114. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  115. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  116. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  117. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  118. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  119. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  120. data/lib/wx/doc/gen/grid/grid_ctrl.rb +7 -7
  121. data/lib/wx/doc/gen/help_controller.rb +1 -1
  122. data/lib/wx/doc/gen/html/html_cell.rb +4 -4
  123. data/lib/wx/doc/gen/html/html_easy_printing.rb +6 -6
  124. data/lib/wx/doc/gen/html/html_help_controller.rb +6 -6
  125. data/lib/wx/doc/gen/html/html_help_frame.rb +2 -2
  126. data/lib/wx/doc/gen/html/html_help_window.rb +6 -6
  127. data/lib/wx/doc/gen/html/html_list_box.rb +6 -6
  128. data/lib/wx/doc/gen/html/html_printout.rb +4 -4
  129. data/lib/wx/doc/gen/html/html_window.rb +4 -4
  130. data/lib/wx/doc/gen/icon.rb +6 -6
  131. data/lib/wx/doc/gen/image.rb +7 -7
  132. data/lib/wx/doc/gen/list_box.rb +4 -4
  133. data/lib/wx/doc/gen/list_ctrl.rb +5 -5
  134. data/lib/wx/doc/gen/listbook.rb +2 -2
  135. data/lib/wx/doc/gen/locale.rb +8 -8
  136. data/lib/wx/doc/gen/log.rb +2 -2
  137. data/lib/wx/doc/gen/mdi_frame.rb +5 -5
  138. data/lib/wx/doc/gen/media_ctrl.rb +4 -4
  139. data/lib/wx/doc/gen/menu.rb +12 -12
  140. data/lib/wx/doc/gen/menu_item.rb +1 -1
  141. data/lib/wx/doc/gen/message_dialog.rb +2 -4
  142. data/lib/wx/doc/gen/mini_frame.rb +2 -2
  143. data/lib/wx/doc/gen/notebook.rb +3 -3
  144. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -1
  145. data/lib/wx/doc/gen/object.rb +0 -1
  146. data/lib/wx/doc/gen/panel.rb +2 -2
  147. data/lib/wx/doc/gen/pen.rb +2 -2
  148. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +1 -1
  149. data/lib/wx/doc/gen/pg/pg_cell.rb +1 -1
  150. data/lib/wx/doc/gen/pg/pg_properties.rb +20 -20
  151. data/lib/wx/doc/gen/pg/pg_property.rb +12 -12
  152. data/lib/wx/doc/gen/pg/property_grid.rb +3 -3
  153. data/lib/wx/doc/gen/pg/property_grid_interface.rb +14 -14
  154. data/lib/wx/doc/gen/pg/property_grid_manager.rb +3 -3
  155. data/lib/wx/doc/gen/pg/property_grid_page.rb +2 -2
  156. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -2
  157. data/lib/wx/doc/gen/popup_window.rb +3 -3
  158. data/lib/wx/doc/gen/property_sheet_dialog.rb +3 -3
  159. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  160. data/lib/wx/doc/gen/prt/printer.rb +1 -1
  161. data/lib/wx/doc/gen/radio_box.rb +4 -4
  162. data/lib/wx/doc/gen/radio_button.rb +2 -2
  163. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +2 -2
  164. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +12 -12
  165. data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
  166. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +2 -2
  167. data/lib/wx/doc/gen/rbn/ribbon_page.rb +2 -2
  168. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
  169. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +11 -11
  170. data/lib/wx/doc/gen/region.rb +1 -1
  171. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  172. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +10 -10
  173. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
  174. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +2 -2
  175. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -4
  176. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +1 -1
  177. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +6 -6
  178. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  179. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  180. data/lib/wx/doc/gen/sash_event.rb +1 -1
  181. data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
  182. data/lib/wx/doc/gen/sash_window.rb +1 -1
  183. data/lib/wx/doc/gen/scroll_bar.rb +150 -0
  184. data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
  185. data/lib/wx/doc/gen/scrolled_control.rb +2 -2
  186. data/lib/wx/doc/gen/scrolled_window.rb +2 -2
  187. data/lib/wx/doc/gen/simplebook.rb +2 -2
  188. data/lib/wx/doc/gen/sizer.rb +3 -3
  189. data/lib/wx/doc/gen/slider.rb +2 -2
  190. data/lib/wx/doc/gen/spin_button.rb +2 -2
  191. data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
  192. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  193. data/lib/wx/doc/gen/splitter_window.rb +2 -2
  194. data/lib/wx/doc/gen/static_bitmap.rb +2 -2
  195. data/lib/wx/doc/gen/static_box.rb +4 -4
  196. data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
  197. data/lib/wx/doc/gen/static_line.rb +2 -2
  198. data/lib/wx/doc/gen/static_text.rb +2 -2
  199. data/lib/wx/doc/gen/status_bar.rb +2 -2
  200. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
  201. data/lib/wx/doc/gen/task_bar_icon.rb +2 -2
  202. data/lib/wx/doc/gen/text_attr.rb +3 -3
  203. data/lib/wx/doc/gen/text_ctrl.rb +3 -3
  204. data/lib/wx/doc/gen/text_entry_dialog.rb +6 -8
  205. data/lib/wx/doc/gen/text_validator.rb +1 -1
  206. data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
  207. data/lib/wx/doc/gen/tip_provider.rb +1 -3
  208. data/lib/wx/doc/gen/toggle_button.rb +2 -2
  209. data/lib/wx/doc/gen/tool_bar.rb +10 -10
  210. data/lib/wx/doc/gen/toolbook.rb +2 -2
  211. data/lib/wx/doc/gen/top_level_window.rb +4 -4
  212. data/lib/wx/doc/gen/tree_ctrl.rb +4 -4
  213. data/lib/wx/doc/gen/treebook.rb +2 -2
  214. data/lib/wx/doc/gen/utils.rb +5 -42
  215. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  216. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  217. data/lib/wx/doc/gen/variant.rb +10 -10
  218. data/lib/wx/doc/gen/window.rb +9 -14
  219. data/lib/wx/doc/gen/wizard.rb +2 -2
  220. data/lib/wx/doc/gen/wizard_event.rb +1 -1
  221. data/lib/wx/doc/gen/xml_node.rb +2 -2
  222. data/lib/wx/doc/gen/xml_resource.rb +3 -3
  223. data/lib/wx/doc/graphics_context.rb +42 -0
  224. data/lib/wx/doc/icon.rb +18 -0
  225. data/lib/wx/doc/id_helper.rb +25 -0
  226. data/lib/wx/doc/image.rb +33 -0
  227. data/lib/wx/doc/region_iterator.rb +31 -0
  228. data/lib/wx/doc/scaled_dc.rb +1 -0
  229. data/lib/wx/doc/window.rb +18 -0
  230. data/lib/wx/version.rb +1 -1
  231. data/lib/wx/wxruby/cmd/sampler.rb +3 -21
  232. data/lib/wxruby_aui.so +0 -0
  233. data/lib/wxruby_core.so +0 -0
  234. data/lib/wxruby_grid.so +0 -0
  235. data/lib/wxruby_html.so +0 -0
  236. data/lib/wxruby_pg.so +0 -0
  237. data/lib/wxruby_prt.so +0 -0
  238. data/lib/wxruby_rbn.so +0 -0
  239. data/lib/wxruby_rtc.so +0 -0
  240. data/lib/wxruby_stc.so +0 -0
  241. data/rakelib/lib/config.rb +4 -4
  242. data/samples/art/wxruby-128x128.png +0 -0
  243. data/samples/art/wxruby-256x256.png +0 -0
  244. data/samples/art/wxruby-64x64.png +0 -0
  245. data/samples/art/wxruby.ico +0 -0
  246. data/samples/art/wxruby.png +0 -0
  247. data/samples/drawing/graphics_drawing.rb +1 -2
  248. data/samples/propgrid/propgrid.rb +65 -65
  249. data/samples/sample.xpm +246 -470
  250. data/samples/treectrl/treectrl.rb +1 -1
  251. data/tests/art/my_art/sample.xpm +251 -0
  252. data/tests/art/sample3.xpm +251 -0
  253. data/tests/art/test_art/bitmap/sample.xpm +251 -0
  254. data/tests/art/test_art/bitmap/wxruby.bmp +0 -0
  255. data/tests/art/test_art/bitmap/wxruby.png +0 -0
  256. data/tests/art/test_art/bitmap/wxruby.xpm +251 -0
  257. data/tests/art/test_art/cursor/wxruby.bmp +0 -0
  258. data/tests/art/test_art/icon/sample.xpm +251 -0
  259. data/tests/art/test_art/icon/wxruby.ico +0 -0
  260. data/tests/art/test_art/icon/wxruby.png +0 -0
  261. data/tests/art/test_art/image/sample.xpm +251 -0
  262. data/tests/art/test_art/image/wxruby.jpg +0 -0
  263. data/tests/art/test_art/image/wxruby.png +0 -0
  264. data/tests/art/test_art/sample2.xpm +251 -0
  265. data/tests/test_art.rb +91 -0
  266. data/tests/test_clipboard.rb +35 -0
  267. data/tests/test_dc.rb +70 -0
  268. data/tests/test_events.rb +12 -0
  269. data/tests/test_geometry.rb +13 -0
  270. metadata +48 -5
@@ -19,14 +19,14 @@ module Wx::RTC
19
19
  # @param name [String]
20
20
  # @param parentWindow [Wx::Window]
21
21
  # @return [RichTextPrinting]
22
- def initialize(name=("Wx::PRINTING"), parentWindow=nil) end
22
+ def initialize(name=("Printing"), parentWindow=nil) end
23
23
 
24
24
  # A convenience function to get the footer text.
25
25
  # See {Wx::RTC::RichTextHeaderFooterData} for details.
26
26
  # @param page [RichTextOddEvenPage]
27
27
  # @param location [RichTextPageLocation]
28
28
  # @return [String]
29
- def get_footer_text(page=Wx::RICHTEXT_PAGE_EVEN, location=Wx::RICHTEXT_PAGE_CENTRE) end
29
+ def get_footer_text(page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end
30
30
  alias_method :footer_text, :get_footer_text
31
31
 
32
32
  # Returns the internal {Wx::RTC::RichTextHeaderFooterData} object.
@@ -39,7 +39,7 @@ module Wx::RTC
39
39
  # @param page [RichTextOddEvenPage]
40
40
  # @param location [RichTextPageLocation]
41
41
  # @return [String]
42
- def get_header_text(page=Wx::RICHTEXT_PAGE_EVEN, location=Wx::RICHTEXT_PAGE_CENTRE) end
42
+ def get_header_text(page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end
43
43
  alias_method :header_text, :get_header_text
44
44
 
45
45
  # Returns the parent window to be used for the preview window and printing wait dialog.
@@ -93,7 +93,7 @@ module Wx::RTC
93
93
  # @param page [RichTextOddEvenPage]
94
94
  # @param location [RichTextPageLocation]
95
95
  # @return [void]
96
- def set_footer_text(text, page=Wx::RICHTEXT_PAGE_ALL, location=Wx::RICHTEXT_PAGE_CENTRE) end
96
+ def set_footer_text(text, page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end
97
97
  alias_method :footer_text=, :set_footer_text
98
98
 
99
99
  # Sets the internal {Wx::RTC::RichTextHeaderFooterData} object.
@@ -120,7 +120,7 @@ module Wx::RTC
120
120
  # @param page [RichTextOddEvenPage]
121
121
  # @param location [RichTextPageLocation]
122
122
  # @return [void]
123
- def set_header_text(text, page=Wx::RICHTEXT_PAGE_ALL, location=Wx::RICHTEXT_PAGE_CENTRE) end
123
+ def set_header_text(text, page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end
124
124
  alias_method :header_text=, :set_header_text
125
125
 
126
126
  # Sets the page setup data.
@@ -172,7 +172,7 @@ module Wx::RTC
172
172
  # Constructor.
173
173
  # @param title [String]
174
174
  # @return [RichTextPrintout]
175
- def initialize(title=("Wx::PRINTOUT")) end
175
+ def initialize(title=("Wx::PRT::Printout")) end
176
176
 
177
177
  # Calculates scaling and text, header and footer rectangles.
178
178
  # @param dc [Wx::DC]
@@ -26,7 +26,7 @@ module Wx::RTC
26
26
  # @param ext [String]
27
27
  # @param type [Integer]
28
28
  # @return [RichTextXMLHandler]
29
- def initialize(name=("Wx::XML"), ext=("Wx::XML"), type=Wx::RICHTEXT_TYPE_XML) end
29
+ def initialize(name=("XML"), ext=("xml"), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_XML) end
30
30
 
31
31
  # Returns true.
32
32
  # @return [true,false]
@@ -56,7 +56,7 @@ module Wx::RTC
56
56
  # @overload initialize()
57
57
  # Default ctor.
58
58
  # @return [SymbolPickerDialog]
59
- # @overload initialize(symbol, initialFont, normalTextFont, parent, id=Wx::ID_ANY, title=(_.new("Wx::SYMBOLS")), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_DIALOG_STYLE|Wx::RESIZE_BORDER|Wx::CLOSE_BOX))
59
+ # @overload initialize(symbol, initialFont, normalTextFont, parent, id=Wx::StandardID::ID_ANY, title=(_.new("Symbols")), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_DIALOG_STYLE|Wx::RESIZE_BORDER|Wx::CLOSE_BOX))
60
60
  # Constructor.
61
61
  # @param symbol [String] The initial symbol to show. Specify a single character in a string, or an empty string.
62
62
  # @param initialFont [String] The initial font to be displayed in the font list. If empty, the item normal text will be selected.
@@ -81,7 +81,7 @@ module Wx::RTC
81
81
  # @param size [Array(Integer, Integer), Wx::Size]
82
82
  # @param style [Integer]
83
83
  # @return [true,false]
84
- def create(symbol, initialFont, normalTextFont, parent, id=Wx::ID_ANY, caption=(Wx::GetTranslation.new("Wx::SYMBOLS")), pos=Wx::DEFAULT_POSITION, size=(Wx::Size.new(400, 300)), style=(Wx::DEFAULT_DIALOG_STYLE|Wx::RESIZE_BORDER|Wx::CLOSE_BOX)) end
84
+ def create(symbol, initialFont, normalTextFont, parent, id=Wx::StandardID::ID_ANY, caption=(Wx::GetTranslation.new("Symbols")), pos=Wx::DEFAULT_POSITION, size=(Wx::Size.new(400, 300)), style=(Wx::DEFAULT_DIALOG_STYLE|Wx::RESIZE_BORDER|Wx::CLOSE_BOX)) end
85
85
 
86
86
  # Returns the font name (the font reflected in the font list).
87
87
  # @return [String]
@@ -92,7 +92,7 @@ module Wx
92
92
  # @param id [Integer]
93
93
  # @param edge [SashEdgePosition]
94
94
  # @return [SashEvent]
95
- def initialize(id=0, edge=Wx::SASH_NONE) end
95
+ def initialize(id=0, edge=Wx::SashEdgePosition::SASH_NONE) end
96
96
 
97
97
  # Returns the rectangle representing the new size the window would be if the resize was applied.
98
98
  # It is up to the application to set the window size if required.
@@ -77,7 +77,7 @@ module Wx
77
77
  # @overload initialize()
78
78
  # Default ctor.
79
79
  # @return [SashLayoutWindow]
80
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::CLIP_CHILDREN|wxSW_3D), name=("Wx::LAYOUT_WINDOW"))
80
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::CLIP_CHILDREN|wxSW_3D), name=("layoutWindow"))
81
81
  # Constructs a sash layout window, which can be a child of a frame, dialog or any other non-control window.
82
82
  # @param parent [Wx::Window] Pointer to a parent window.
83
83
  # @param id [Integer] Window identifier. If -1, will automatically create an identifier.
@@ -96,7 +96,7 @@ module Wx
96
96
  # @param style [Integer] Window style. For window styles, please see {Wx::SashLayoutWindow}.
97
97
  # @param name [String] Window name.
98
98
  # @return [true,false]
99
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::CLIP_CHILDREN|wxSW_3D), name=("Wx::LAYOUT_WINDOW")) end
99
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::CLIP_CHILDREN|wxSW_3D), name=("layoutWindow")) end
100
100
 
101
101
  # Returns the alignment of the window: one of {Wx::LayoutAlignment::LAYOUT_TOP}, {Wx::LayoutAlignment::LAYOUT_LEFT}, {Wx::LayoutAlignment::LAYOUT_RIGHT}, {Wx::LayoutAlignment::LAYOUT_BOTTOM}.
102
102
  # @return [LayoutAlignment]
@@ -38,7 +38,7 @@ module Wx
38
38
  # @overload initialize()
39
39
  # Default ctor.
40
40
  # @return [SashWindow]
41
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::CLIP_CHILDREN|wxSW_3D), name=("Wx::SASH_WINDOW"))
41
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::CLIP_CHILDREN|wxSW_3D), name=("sashWindow"))
42
42
  # Constructs a sash window, which can be a child of a frame, dialog or any other non-control window.
43
43
  # @param parent [Wx::Window] Pointer to a parent window.
44
44
  # @param id [Integer] Window identifier. If -1, will automatically create an identifier.
@@ -0,0 +1,150 @@
1
+ # :stopdoc:
2
+ # This file is automatically generated by the WXRuby3 documentation
3
+ # generator. Do not alter this file.
4
+ # :startdoc:
5
+
6
+
7
+ module Wx
8
+
9
+ # A {Wx::ScrollBar} is a control that represents a horizontal or vertical scrollbar.
10
+ # It is distinct from the two scrollbars that some windows provide automatically, but the two types of scrollbar share the way events are received.
11
+ # A scrollbar has the following main attributes: range, thumb size, page size, and position. The range is the total number of units associated with the view represented by the scrollbar. For a table with 15 columns, the range would be 15. The thumb size is the number of units that are currently visible. For the table example, the window might be sized so that only 5 columns are currently visible, in which case the application would set the thumb size to 5. When the thumb size becomes the same as or greater than the range, the scrollbar will be automatically hidden on most platforms. The page size is the number of units that the scrollbar should scroll by, when 'paging' through the data. This value is normally the same as the thumb size length, because it is natural to assume that the visible window size defines a page. The scrollbar position is the current thumb position. Most applications will find it convenient to provide a function called AdjustScrollbars() which can be called initially, from an OnSize event handler, and whenever the application data changes in size. It will adjust the view, object and page size according to the size of the window and the size of the data.
12
+ #
13
+ # === Styles
14
+ #
15
+ # This class supports the following styles:
16
+ #
17
+ # - {Wx::SB_HORIZONTAL}: Specifies a horizontal scrollbar.
18
+ # - {Wx::SB_VERTICAL}: Specifies a vertical scrollbar.
19
+ #
20
+ # === Events emitted by this class
21
+ #
22
+ # The following event-handler methods redirect the events to member method or handler blocks for {Wx::ScrollEvent} events.
23
+ # Event handler methods for events emitted by this class: except for this, the macros behave exactly the same.
24
+ # - {Wx::EvtHandler#evt_scroll}(meth = nil, &block): Process all scroll events.
25
+ # - {Wx::EvtHandler#evt_scroll_top}(meth = nil, &block): Process {Wx::EVT_SCROLL_TOP} scroll to top or leftmost (minimum) position events.
26
+ # - {Wx::EvtHandler#evt_scroll_bottom}(meth = nil, &block): Process {Wx::EVT_SCROLL_BOTTOM} scroll to bottom or rightmost (maximum) position events.
27
+ # - {Wx::EvtHandler#evt_scroll_lineup}(meth = nil, &block): Process {Wx::EVT_SCROLL_LINEUP} line up or left events.
28
+ # - {Wx::EvtHandler#evt_scroll_linedown}(meth = nil, &block): Process {Wx::EVT_SCROLL_LINEDOWN} line down or right events.
29
+ # - {Wx::EvtHandler#evt_scroll_pageup}(meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEUP} page up or left events.
30
+ # - {Wx::EvtHandler#evt_scroll_pagedown}(meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEDOWN} page down or right events.
31
+ # - {Wx::EvtHandler#evt_scroll_thumbtrack}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
32
+ # - {Wx::EvtHandler#evt_scroll_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBRELEASE} thumb release events.
33
+ # - {Wx::EvtHandler#evt_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
34
+ # - {Wx::EvtHandler#evt_command_scroll}(id, meth = nil, &block): Process all scroll events.
35
+ # - {Wx::EvtHandler#evt_command_scroll_top}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_TOP} scroll to top or leftmost (minimum) position events.
36
+ # - {Wx::EvtHandler#evt_command_scroll_bottom}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_BOTTOM} scroll to bottom or rightmost (maximum) position events.
37
+ # - {Wx::EvtHandler#evt_command_scroll_lineup}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_LINEUP} line up or left events.
38
+ # - {Wx::EvtHandler#evt_command_scroll_linedown}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_LINEDOWN} line down or right events.
39
+ # - {Wx::EvtHandler#evt_command_scroll_pageup}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEUP} page up or left events.
40
+ # - {Wx::EvtHandler#evt_command_scroll_pagedown}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_PAGEDOWN} page down or right events.
41
+ # - {Wx::EvtHandler#evt_command_scroll_thumbtrack}(id, meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBTRACK} thumbtrack events (frequent events sent as the user drags the thumbtrack).
42
+ # - {Wx::EvtHandler#evt_command_scroll_thumbrelease}(meth = nil, &block): Process {Wx::EVT_SCROLL_THUMBRELEASE} thumb release events.
43
+ # - {Wx::EvtHandler#evt_command_scroll_changed}(meth = nil, &block): Process {Wx::EVT_SCROLL_CHANGED} end of scrolling events (MSW only).
44
+ #
45
+ # == The difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED
46
+ #
47
+ # The EVT_SCROLL_THUMBRELEASE event is only emitted when actually dragging the thumb using the mouse and releasing it (This EVT_SCROLL_THUMBRELEASE event is also followed by an EVT_SCROLL_CHANGED event).
48
+ # The EVT_SCROLL_CHANGED event also occurs when using the keyboard to change the thumb position, and when clicking next to the thumb (In all these cases the EVT_SCROLL_THUMBRELEASE event does not happen).
49
+ # In short, the EVT_SCROLL_CHANGED event is triggered when scrolling/moving has finished independently of the way it had started. Please see the Widgets Sample ("Slider" page) to see the difference between EVT_SCROLL_THUMBRELEASE and EVT_SCROLL_CHANGED in action.
50
+ # ===
51
+ #
52
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> {Wx::MSW} Appearance
53
+ # </td><td> {Wx::GTK} Appearance
54
+ # </td><td> {Wx::OSX} Appearance
55
+ # </td></tr></table></div>
56
+ # @see Scrolled Windows
57
+ # @see Events and Event Handling
58
+ # @see Wx::Scrolled
59
+ #
60
+ #
61
+ class ScrollBar < Control
62
+
63
+ # @overload initialize()
64
+ # Default constructor.
65
+ # @return [ScrollBar]
66
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SB_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ScrollBarNameStr)
67
+ # Constructor, creating and showing a scrollbar.
68
+ #
69
+ # @see Wx::ScrollBar#create
70
+ # @see Wx::Validator
71
+ # @param parent [Wx::Window] Parent window. Must be non-NULL.
72
+ # @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value.
73
+ # @param pos [Array(Integer, Integer), Wx::Point] Window position. If {Wx::DEFAULT_POSITION} is specified then a default position is chosen.
74
+ # @param size [Array(Integer, Integer), Wx::Size] Window size. If {Wx::DEFAULT_SIZE} is specified then a default size is chosen.
75
+ # @param style [Integer] Window style. See {Wx::ScrollBar}.
76
+ # @param validator [Wx::Validator] Window validator.
77
+ # @param name [String] Window name.
78
+ # @return [ScrollBar]
79
+ def initialize(*args) end
80
+
81
+ # Scrollbar creation function called by the scrollbar constructor.
82
+ # See {Wx::ScrollBar#scroll_bar} for details.
83
+ # @param parent [Wx::Window]
84
+ # @param id [Integer]
85
+ # @param pos [Array(Integer, Integer), Wx::Point]
86
+ # @param size [Array(Integer, Integer), Wx::Size]
87
+ # @param style [Integer]
88
+ # @param validator [Wx::Validator]
89
+ # @param name [String]
90
+ # @return [true,false]
91
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SB_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ScrollBarNameStr) end
92
+
93
+ # Returns the page size of the scrollbar.
94
+ # This is the number of scroll units that will be scrolled when the user pages up or down. Often it is the same as the thumb size.
95
+ # @see Wx::ScrollBar#set_scrollbar
96
+ # @return [Integer]
97
+ def get_page_size; end
98
+ alias_method :page_size, :get_page_size
99
+
100
+ # Returns the length of the scrollbar.
101
+ #
102
+ # @see Wx::ScrollBar#set_scrollbar
103
+ # @return [Integer]
104
+ def get_range; end
105
+ alias_method :range, :get_range
106
+
107
+ # Returns the current position of the scrollbar thumb.
108
+ #
109
+ # @see Wx::ScrollBar#set_thumb_position
110
+ # @return [Integer]
111
+ def get_thumb_position; end
112
+ alias_method :thumb_position, :get_thumb_position
113
+
114
+ # Returns the thumb or 'view' size.
115
+ #
116
+ # @see Wx::ScrollBar#set_scrollbar
117
+ # @return [Integer]
118
+ def get_thumb_size; end
119
+ alias_method :thumb_size, :get_thumb_size
120
+
121
+ # Sets the scrollbar properties.
122
+ # Let's say you wish to display 50 lines of text, using the same font. The window is sized so that you can only see 16 lines at a time. You would use:
123
+ #
124
+ # scrollbar->SetScrollbar(0, 16, 50, 15);
125
+ # The page size is 1 less than the thumb size so that the last line of the previous page will be visible on the next page, to help orient the user. Note that with the window at this size, the thumb position can never go above 50 minus 16, or 34. You can determine how many lines are currently visible by dividing the current view size by the character height in pixels. When defining your own scrollbar behaviour, you will always need to recalculate the scrollbar settings when the window size changes. You could therefore put your scrollbar calculations and {Wx::ScrollBar#set_scrollbar} call into a function named AdjustScrollbars, which can be called initially and also from a {Wx::SizeEvent} event handler function.
126
+ # @param position [Integer] The position of the scrollbar in scroll units.
127
+ # @param thumbSize [Integer] The size of the thumb, or visible portion of the scrollbar, in scroll units.
128
+ # @param range [Integer] The maximum position of the scrollbar.
129
+ # @param pageSize [Integer] The size of the page size in scroll units. This is the number of units the scrollbar will scroll when it is paged up or down. Often it is the same as the thumb size.
130
+ # @param refresh [true,false] true to redraw the scrollbar, false otherwise.
131
+ # @return [void]
132
+ def set_scrollbar(position, thumbSize, range, pageSize, refresh=true) end
133
+
134
+ # Sets the position of the scrollbar.
135
+ #
136
+ # @see Wx::ScrollBar#get_thumb_position
137
+ # @param viewStart [Integer] The position of the scrollbar thumb.
138
+ # @return [void]
139
+ def set_thumb_position(viewStart) end
140
+ alias_method :thumb_position=, :set_thumb_position
141
+
142
+ # Returns true for scrollbars that have the vertical style set.
143
+ # @return [true,false]
144
+ def is_vertical; end
145
+ alias_method :vertical?, :is_vertical
146
+
147
+ end # ScrollBar
148
+
149
+
150
+ end
@@ -69,7 +69,7 @@ module Wx
69
69
  # @overload initialize()
70
70
  # Default constructor.
71
71
  # @return [Scrolled]
72
- # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("Wx::SCROLLED_WINDOW"))
72
+ # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
73
73
  # Constructor.
74
74
  # The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
75
75
  # @param parent [Wx::Window] Parent window.
@@ -117,7 +117,7 @@ module Wx
117
117
  # @param style [Integer]
118
118
  # @param name [String]
119
119
  # @return [true,false]
120
- def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("Wx::SCROLLED_WINDOW")) end
120
+ def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow")) end
121
121
 
122
122
  # Disable use of keyboard keys for scrolling.
123
123
  # By default cursor movement keys (including Home, End, Page Up and Down) are used to scroll the window appropriately. If the derived class uses these keys for something else, e.g. changing the currently selected item, this function can be used to disable this behaviour as it's not only not necessary then but can actually be actively harmful if another object forwards a keyboard event corresponding to one of the above keys to us using ProcessWindowEvent() because the event will always be processed which can be undesirable.
@@ -69,7 +69,7 @@ module Wx
69
69
  # @overload initialize()
70
70
  # Default constructor.
71
71
  # @return [Scrolled]
72
- # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("Wx::SCROLLED_WINDOW"))
72
+ # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
73
73
  # Constructor.
74
74
  # The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
75
75
  # @param parent [Wx::Window] Parent window.
@@ -117,7 +117,7 @@ module Wx
117
117
  # @param style [Integer]
118
118
  # @param name [String]
119
119
  # @return [true,false]
120
- def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("Wx::SCROLLED_WINDOW")) end
120
+ def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow")) end
121
121
 
122
122
  # Disable use of keyboard keys for scrolling.
123
123
  # By default cursor movement keys (including Home, End, Page Up and Down) are used to scroll the window appropriately. If the derived class uses these keys for something else, e.g. changing the currently selected item, this function can be used to disable this behaviour as it's not only not necessary then but can actually be actively harmful if another object forwards a keyboard event corresponding to one of the above keys to us using ProcessWindowEvent() because the event will always be processed which can be undesirable.
@@ -89,7 +89,7 @@ module Wx
89
89
  # @overload initialize()
90
90
  # Default constructor.
91
91
  # @return [Scrolled]
92
- # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("Wx::SCROLLED_WINDOW"))
92
+ # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow"))
93
93
  # Constructor.
94
94
  # The window is initially created without visible scrollbars. Call Wx::Scrolled#set_scrollbars to specify how big the virtual window size should be.
95
95
  # @param parent [Wx::Window] Parent window.
@@ -137,7 +137,7 @@ module Wx
137
137
  # @param style [Integer]
138
138
  # @param name [String]
139
139
  # @return [true,false]
140
- def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("Wx::SCROLLED_WINDOW")) end
140
+ def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::HSCROLL|Wx::VSCROLL), name=("scrolledWindow")) end
141
141
 
142
142
  # Disable use of keyboard keys for scrolling.
143
143
  # By default cursor movement keys (including Home, End, Page Up and Down) are used to scroll the window appropriately. If the derived class uses these keys for something else, e.g. changing the currently selected item, this function can be used to disable this behaviour as it's not only not necessary then but can actually be actively harmful if another object forwards a keyboard event corresponding to one of the above keys to us using ProcessWindowEvent() because the event will always be processed which can be undesirable.
@@ -26,7 +26,7 @@ module Wx
26
26
  # Default constructor.
27
27
  # Use {Wx::Simplebook#create} later to really create the control.
28
28
  # @return [Simplebook]
29
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::EMPTY_STRING)
29
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
30
30
  # Constructs a simple book control.
31
31
  # @param parent [Wx::Window]
32
32
  # @param id [Integer]
@@ -45,7 +45,7 @@ module Wx
45
45
  # @param style [Integer]
46
46
  # @param name [String]
47
47
  # @return [true,false]
48
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::EMPTY_STRING) end
48
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=('')) end
49
49
 
50
50
  # Set the effects to use for showing and hiding the pages.
51
51
  # This method allows specifying the effects passed to {Wx::Window#show_with_effect} and {Wx::Window#hide_with_effect} respectively when the pages need to be shown or hidden.
@@ -731,7 +731,7 @@ module Wx
731
731
  # @param direction [Integer]
732
732
  # @param borderinpixels [Integer]
733
733
  # @return [Wx::SizerFlags]
734
- # @overload border(direction=Wx::ALL)
734
+ # @overload border(direction=Wx::Direction::ALL)
735
735
  # Sets the {Wx::SizerFlags} to have a border with size as returned by {Wx::SizerFlags.get_default_border}.
736
736
  # @param direction [Integer] Direction(s) to apply the border in.
737
737
  # @return [Wx::SizerFlags]
@@ -774,7 +774,7 @@ module Wx
774
774
  # Sets the border in the given direction having twice the default border size.
775
775
  # @param direction [Integer]
776
776
  # @return [Wx::SizerFlags]
777
- def double_border(direction=Wx::ALL) end
777
+ def double_border(direction=Wx::Direction::ALL) end
778
778
 
779
779
  # Sets the border in left and right directions having twice the default border size.
780
780
  # @return [Wx::SizerFlags]
@@ -820,7 +820,7 @@ module Wx
820
820
  # Sets the border in the given direction having thrice the default border size.
821
821
  # @param direction [Integer]
822
822
  # @return [Wx::SizerFlags]
823
- def triple_border(direction=Wx::ALL) end
823
+ def triple_border(direction=Wx::Direction::ALL) end
824
824
 
825
825
  # Globally disable checks for sizer flag consistency in debug builds.
826
826
  # By default, sizer classes such as {Wx::BoxSizer} and {Wx::FlexGridSizer} assert when passed invalid flags, even though doing this usually doesn't result in any catastrophic consequences and the invalid flags are simply ignored later. Due to this, and the fact that these checks were only added in wxWidgets 3.1, existing code may run into multiple asserts warning about incorrect sizer flags use. Using this function provides a temporary solution for avoiding such asserts when upgrading to wxWidgets 3.1 from a previous version and will prevent such checks from being done.
@@ -116,7 +116,7 @@ module Wx
116
116
  # @overload initialize()
117
117
  # Default constructor.
118
118
  # @return [Slider]
119
- # @overload initialize(parent, id, value, minValue, maxValue, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SLIDER_NAME_STR)
119
+ # @overload initialize(parent, id, value, minValue, maxValue, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SliderNameStr)
120
120
  # Constructor, creating and showing a slider.
121
121
  #
122
122
  # @see Wx::Slider#create
@@ -157,7 +157,7 @@ module Wx
157
157
  # @param validator [Wx::Validator]
158
158
  # @param name [String]
159
159
  # @return [true,false]
160
- def create(parent, id, value, minValue, maxValue, point=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SLIDER_NAME_STR) end
160
+ def create(parent, id, value, minValue, maxValue, point=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SL_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::SliderNameStr) end
161
161
 
162
162
  # Returns the line size.
163
163
  #
@@ -42,7 +42,7 @@ module Wx
42
42
  # @overload initialize()
43
43
  # Default constructor.
44
44
  # @return [SpinButton]
45
- # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("Wx::SPIN_BUTTON"))
45
+ # @overload initialize(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("spinButton"))
46
46
  # Constructor, creating and showing a spin button.
47
47
  #
48
48
  # @see Wx::SpinButton#create
@@ -64,7 +64,7 @@ module Wx
64
64
  # @param style [Integer]
65
65
  # @param name [String]
66
66
  # @return [true,false]
67
- def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("Wx::SPIN_BUTTON")) end
67
+ def create(parent, id=-1, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_VERTICAL, name=("Wx::SpinButton")) end
68
68
 
69
69
  # Get the value for increment for a spin control.
70
70
  # The default value is 1 but it can be changed using {Wx::SpinButton#set_increment}.
@@ -49,7 +49,7 @@ module Wx
49
49
  # @overload initialize()
50
50
  # Default constructor.
51
51
  # @return [SpinCtrl]
52
- # @overload initialize(parent, id=Wx::ID_ANY, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_ARROW_KEYS, min=0, max=100, initial=0, name=("Wx::SPIN_CTRL"))
52
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_ARROW_KEYS, min=0, max=100, initial=0, name=("Wx::SpinCtrl"))
53
53
  # Constructor, creating and showing a spin control.
54
54
  # If value is non-empty, it will be shown in the text entry part of the control and if it has numeric value, the initial numeric value of the control, as returned by {Wx::SpinCtrl#get_value} will also be determined by it instead of by initial. Hence, it only makes sense to specify initial if value is an empty string or is not convertible to a number, otherwise initial is simply ignored and the number specified by value is used.
55
55
  # @see Wx::SpinCtrl#create
@@ -79,7 +79,7 @@ module Wx
79
79
  # @param initial [Integer]
80
80
  # @param name [String]
81
81
  # @return [true,false]
82
- def create(parent, id=Wx::ID_ANY, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_ARROW_KEYS, min=0, max=100, initial=0, name=("Wx::SPIN_CTRL")) end
82
+ def create(parent, id=Wx::StandardID::ID_ANY, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::SP_ARROW_KEYS, min=0, max=100, initial=0, name=("Wx::SpinCtrl")) end
83
83
 
84
84
  # Returns the numerical base being currently used, 10 by default.
85
85
  #
@@ -55,7 +55,7 @@ module Wx
55
55
  # @param size [Array(Integer, Integer), Wx::Size]
56
56
  # @param style [Integer]
57
57
  # @return [SplashScreen]
58
- def initialize(bitmap, splashStyle, milliseconds, parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::BORDER_SIMPLE|Wx::FRAME_NO_TASKBAR|Wx::STAY_ON_TOP)) end
58
+ def initialize(bitmap, splashStyle, milliseconds, parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::Border::BORDER_SIMPLE|Wx::FRAME_NO_TASKBAR|Wx::STAY_ON_TOP)) end
59
59
 
60
60
  # Returns the splash style (see {splash_screen} for details).
61
61
  # @return [Integer]
@@ -122,7 +122,7 @@ module Wx
122
122
  # @overload initialize()
123
123
  # Default constructor.
124
124
  # @return [SplitterWindow]
125
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("Wx::SPLITTER_WINDOW"))
125
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("splitterWindow"))
126
126
  # Constructor for creating the window.
127
127
  # After using this constructor, you must create either one or two subwindows with the splitter window as parent, and then call one of {Wx::SplitterWindow#initialize}, {Wx::SplitterWindow#split_vertically} and {Wx::SplitterWindow#split_horizontally} in order to set the pane(s). You can create two windows, with one hidden when not being shown; or you can create and delete the second pane on demand.
128
128
  # @see Wx::SplitterWindow#initialize
@@ -147,7 +147,7 @@ module Wx
147
147
  # @param style [Integer]
148
148
  # @param name [String]
149
149
  # @return [true,false]
150
- def create(parent, id=Wx::ID_ANY, point=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("Wx::SPLITTER")) end
150
+ def create(parent, id=Wx::StandardID::ID_ANY, point=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=wxSP_3D, name=("splitter")) end
151
151
 
152
152
  # Returns the current minimum pane size (defaults to zero).
153
153
  #
@@ -51,7 +51,7 @@ module Wx
51
51
  # @overload initialize()
52
52
  # Default constructor.
53
53
  # @return [StaticBitmap]
54
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STATIC_BITMAP_NAME_STR)
54
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBitmapNameStr)
55
55
  # Constructor, creating and showing a static bitmap control.
56
56
  #
57
57
  # @see Wx::StaticBitmap#create
@@ -75,7 +75,7 @@ module Wx
75
75
  # @param style [Integer]
76
76
  # @param name [String]
77
77
  # @return [true,false]
78
- def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STATIC_BITMAP_NAME_STR) end
78
+ def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBitmapNameStr) end
79
79
 
80
80
  # Returns the bitmap currently used in the control.
81
81
  # Notice that this method can be called even if {Wx::StaticBitmap#set_icon} had been used.
@@ -36,7 +36,7 @@ module Wx
36
36
  # @overload initialize()
37
37
  # Default constructor.
38
38
  # @return [StaticBox]
39
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STATIC_BOX_NAME_STR)
39
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBoxNameStr)
40
40
  # Constructor, creating and showing a static box.
41
41
  #
42
42
  # @see Wx::StaticBox#create
@@ -48,7 +48,7 @@ module Wx
48
48
  # @param style [Integer] Window style. There are no {Wx::StaticBox}-specific styles, but generic {Wx::Alignment::ALIGN_LEFT}, {Wx::Alignment::ALIGN_CENTRE_HORIZONTAL} and {Wx::Alignment::ALIGN_RIGHT} can be used here to change the position of the static box label when using {Wx::GTK} (these styles are ignored under the other platforms currently).
49
49
  # @param name [String] Window name.
50
50
  # @return [StaticBox]
51
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STATIC_BOX_NAME_STR)
51
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBoxNameStr)
52
52
  # Constructor for a static box using the given window as label.
53
53
  # This constructor takes a pointer to an arbitrary window (although usually a {Wx::CheckBox} or a {Wx::RadioButton}) instead of just the usual text label and puts this window at the top of the box at the place where the label would be shown.
54
54
  # The label window must be a non-null, fully created window and will become a child of this {Wx::StaticBox}, i.e. it will be owned by this control and will be deleted when the {Wx::StaticBox} itself is deleted.
@@ -73,7 +73,7 @@ module Wx
73
73
  # @return [StaticBox]
74
74
  def initialize(*args) end
75
75
 
76
- # @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STATIC_BOX_NAME_STR)
76
+ # @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBoxNameStr)
77
77
  # Creates the static box for two-step construction.
78
78
  # See {Wx::StaticBox#static_box} for further details.
79
79
  # @param parent [Wx::Window]
@@ -84,7 +84,7 @@ module Wx
84
84
  # @param style [Integer]
85
85
  # @param name [String]
86
86
  # @return [true,false]
87
- # @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STATIC_BOX_NAME_STR)
87
+ # @overload create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticBoxNameStr)
88
88
  # Creates the static box with the window as a label.
89
89
  # This method can only be called for an object created using its default constructor.
90
90
  # See the constructor documentation for more details.
@@ -37,7 +37,7 @@ module Wx
37
37
  # @param box [Wx::StaticBox] The static box to associate with the sizer (which will take its ownership).
38
38
  # @param orient [Integer] Can be either {Wx::Orientation::VERTICAL} or {Wx::Orientation::HORIZONTAL}.
39
39
  # @return [StaticBoxSizer]
40
- # @overload initialize(orient, parent, label=Wx::EMPTY_STRING)
40
+ # @overload initialize(orient, parent, label=(''))
41
41
  # This constructor creates a new static box with the given label and parent window.
42
42
  # @param orient [Integer]
43
43
  # @param parent [Wx::Window]
@@ -26,7 +26,7 @@ module Wx
26
26
  # @overload initialize()
27
27
  # Default constructor.
28
28
  # @return [StaticLine]
29
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::STATIC_LINE_NAME_STR)
29
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::StaticLineNameStr)
30
30
  # Constructor, creating and showing a static line.
31
31
  #
32
32
  # @see Wx::StaticLine#create
@@ -48,7 +48,7 @@ module Wx
48
48
  # @param style [Integer]
49
49
  # @param name [String]
50
50
  # @return [true,false]
51
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::STATIC_LINE_NAME_STR) end
51
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::StaticLineNameStr) end
52
52
 
53
53
  # Returns true if the line is vertical, false if horizontal.
54
54
  # @return [true,false]
@@ -47,7 +47,7 @@ module Wx
47
47
  # @overload initialize()
48
48
  # Default constructor.
49
49
  # @return [StaticText]
50
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STATIC_TEXT_NAME_STR)
50
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticTextNameStr)
51
51
  # Constructor, creating and showing a text control.
52
52
  #
53
53
  # @see Wx::StaticText#create
@@ -71,7 +71,7 @@ module Wx
71
71
  # @param style [Integer]
72
72
  # @param name [String]
73
73
  # @return [true,false]
74
- def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STATIC_TEXT_NAME_STR) end
74
+ def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::StaticTextNameStr) end
75
75
 
76
76
  # Returns true if the window styles for this control contains one of the {Wx::ST_ELLIPSIZE_START}, {Wx::ST_ELLIPSIZE_MIDDLE} or {Wx::ST_ELLIPSIZE_END} styles.
77
77
  # @return [true,false]
@@ -68,7 +68,7 @@ module Wx
68
68
  # @overload initialize()
69
69
  # Default ctor.
70
70
  # @return [StatusBar]
71
- # @overload initialize(parent, id=Wx::ID_ANY, style=Wx::STB_DEFAULT_STYLE, name=Wx::STATUS_BAR_NAME_STR)
71
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, style=Wx::STB_DEFAULT_STYLE, name=Wx::StatusBarNameStr)
72
72
  # Constructor, creating the window.
73
73
  #
74
74
  # @see Wx::StatusBar#create
@@ -86,7 +86,7 @@ module Wx
86
86
  # @param style [Integer]
87
87
  # @param name [String]
88
88
  # @return [true,false]
89
- def create(parent, id=Wx::ID_ANY, style=Wx::STB_DEFAULT_STYLE, name=Wx::STATUS_BAR_NAME_STR) end
89
+ def create(parent, id=Wx::StandardID::ID_ANY, style=Wx::STB_DEFAULT_STYLE, name=Wx::StatusBarNameStr) end
90
90
 
91
91
  # Returns the size and position of a field's internal bounding rectangle.
92
92
  # true if the field index is valid, false otherwise.
@@ -25,7 +25,7 @@ module Wx::STC
25
25
  #
26
26
  class StyledTextCtrl < Control
27
27
 
28
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STC_NAME_STR)
28
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STCNameStr)
29
29
  # Ctor.
30
30
  # @param parent [Wx::Window]
31
31
  # @param id [Integer]
@@ -48,7 +48,7 @@ module Wx::STC
48
48
  # @param style [Integer]
49
49
  # @param name [String]
50
50
  # @return [true,false]
51
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STC_NAME_STR) end
51
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::STCNameStr) end
52
52
 
53
53
  # Add text to the document at current position.
54
54
  # @param text [String]
@@ -3701,7 +3701,7 @@ module Wx::STC
3701
3701
  # @param underline [true,false]
3702
3702
  # @param encoding [FontEncoding]
3703
3703
  # @return [void]
3704
- def style_set_font_attr(styleNum, size, faceName, bold, italic, underline, encoding=Wx::FONTENCODING_DEFAULT) end
3704
+ def style_set_font_attr(styleNum, size, faceName, bold, italic, underline, encoding=Wx::FontEncoding::FONTENCODING_DEFAULT) end
3705
3705
 
3706
3706
  # Set the font encoding to be used by a style.
3707
3707
  # @param style [Integer]