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
@@ -124,7 +124,7 @@ module Wx
124
124
  # Default constructor.
125
125
  # The brush will be uninitialised, and {Wx::Brush}:{Wx::Brush#is_ok} will return false.
126
126
  # @return [Brush]
127
- # @overload initialize(colour, style=Wx::BRUSHSTYLE_SOLID)
127
+ # @overload initialize(colour, style=Wx::BrushStyle::BRUSHSTYLE_SOLID)
128
128
  # Constructs a brush from a colour object and style.
129
129
  # @param colour [Wx::Colour,String,Symbol] Colour object.
130
130
  # @param style [BrushStyle] One of the {Wx::BrushStyle} enumeration values.
@@ -52,7 +52,7 @@ module Wx
52
52
  # @overload initialize()
53
53
  # Default ctor.
54
54
  # @return [Button]
55
- # @overload initialize(parent, id, label=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR)
55
+ # @overload initialize(parent, id, label=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ButtonNameStr)
56
56
  # Constructor, creating and showing a button.
57
57
  # The preferred way to create standard buttons is to use default value of label. If no label is supplied and id is one of standard IDs from this list, a standard label will be used. In other words, if you use a predefined {Wx::ID_XXX} constant, just omit the label completely rather than specifying it. In particular, help buttons (the ones with id of {Wx::StandardID::ID_HELP}) under macOS can't display any label at all and while {Wx::Button} will detect if the standard "Help" label is used and ignore it, using any other label will prevent the button from correctly appearing as a help button and so should be avoided.
58
58
  # In addition to that, the button will be decorated with stock icons under GTK+ 2.
@@ -80,7 +80,7 @@ module Wx
80
80
  # @param validator [Wx::Validator]
81
81
  # @param name [String]
82
82
  # @return [true,false]
83
- def create(parent, id, label=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::BUTTON_NAME_STR) end
83
+ def create(parent, id, label=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ButtonNameStr) end
84
84
 
85
85
  # Returns true if an authentication needed symbol is displayed on the button.
86
86
  # This method always returns false if the platform is not Windows Vista or newer.
@@ -61,7 +61,7 @@ module Wx
61
61
  # @param lowerdate [Time,Date,DateTime] The low limit for the dates shown by the control or {Wx::DefaultDateTime}.
62
62
  # @param upperdate [Time,Date,DateTime] The high limit for the dates shown by the control or {Wx::DefaultDateTime}.
63
63
  # @return [void]
64
- def set_date_range(lowerdate=Wx::DEFAULT_DATE_TIME, upperdate=Wx::DEFAULT_DATE_TIME) end
64
+ def set_date_range(lowerdate=Wx::DefaultDateTime, upperdate=Wx::DefaultDateTime) end
65
65
  alias_method :date_range=, :set_date_range
66
66
 
67
67
  # Returns the limits currently being used.
@@ -74,7 +74,7 @@ module Wx
74
74
  # @overload initialize()
75
75
  # Default constructor.
76
76
  # @return [CalendarCtrl]
77
- # @overload initialize(parent, id, date=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CALENDAR_NAME_STR)
77
+ # @overload initialize(parent, id, date=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CalendarNameStr)
78
78
  # Does the same as {Wx::CalendarCtrl#create} method.
79
79
  # @param parent [Wx::Window]
80
80
  # @param id [Integer]
@@ -96,7 +96,7 @@ module Wx
96
96
  # @param style [Integer]
97
97
  # @param name [String]
98
98
  # @return [void]
99
- def create(parent, id, date=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CALENDAR_NAME_STR) end
99
+ def create(parent, id, date=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CAL_SHOW_HOLIDAYS, name=Wx::CalendarNameStr) end
100
100
 
101
101
  # This function should be used instead of changing {Wx::CAL_SHOW_HOLIDAYS} style bit directly.
102
102
  # It enables or disables the special highlighting of the holidays.
@@ -16,7 +16,7 @@ module Wx
16
16
  #
17
17
  class CalendarDateAttr < ::Object
18
18
 
19
- # @overload initialize(colText=Wx::NULL_COLOUR, colBack=Wx::NULL_COLOUR, colBorder=Wx::NULL_COLOUR, font=Wx::NULL_FONT, border=Wx::CAL_BORDER_NONE)
19
+ # @overload initialize(colText=Wx::NULL_COLOUR, colBack=Wx::NULL_COLOUR, colBorder=Wx::NULL_COLOUR, font=Wx::NULL_FONT, border=Wx::CalendarDateBorder::CAL_BORDER_NONE)
20
20
  # Constructor for specifying all {Wx::CalendarDateAttr} properties.
21
21
  # @param colText [Wx::Colour,String,Symbol]
22
22
  # @param colBack [Wx::Colour,String,Symbol]
@@ -70,7 +70,7 @@ module Wx
70
70
  # @see Wx::CheckBox#create
71
71
  # @see Wx::Validator
72
72
  # @return [CheckBox]
73
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CHECK_BOX_NAME_STR)
73
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CheckBoxNameStr)
74
74
  # Constructor, creating and showing a checkbox.
75
75
  #
76
76
  # @see Wx::CheckBox#create
@@ -97,7 +97,7 @@ module Wx
97
97
  # @param validator [Wx::Validator]
98
98
  # @param name [String]
99
99
  # @return [true,false]
100
- def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CHECK_BOX_NAME_STR) end
100
+ def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CheckBoxNameStr) end
101
101
 
102
102
  # Gets the state of a 2-state checkbox.
103
103
  # Returns true if it is checked, false otherwise.
@@ -29,7 +29,7 @@ module Wx
29
29
  #
30
30
  class CheckListBox < ListBox
31
31
 
32
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("Wx::LIST_BOX"))
32
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("listBox"))
33
33
  # Constructor, creating and showing a list box.
34
34
  # <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
35
35
  # @param parent [Wx::Window] Parent window. Must not be NULL.
@@ -41,7 +41,7 @@ module Wx
41
41
  # @param validator [Wx::Validator] Window validator.
42
42
  # @param name [String] Window name.
43
43
  # @return [CheckListBox]
44
- # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("Wx::LIST_BOX"))
44
+ # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=("listBox"))
45
45
  # Constructor, creating and showing a list box.
46
46
  # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
47
47
  # @param parent [Wx::Window] Parent window. Must not be NULL.
@@ -67,7 +67,7 @@ module Wx
67
67
  # @param validator [Wx::Validator]
68
68
  # @param name [String]
69
69
  # @return [true,false]
70
- def create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::LIST_BOX_NAME_STR) end
70
+ def create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ListBoxNameStr) end
71
71
 
72
72
  # Checks the given item.
73
73
  # Note that calling this method does not result in a {Wx::EVT_CHECKLISTBOX} event being emitted.
@@ -44,7 +44,7 @@ module Wx
44
44
  # @param validator [Wx::Validator]
45
45
  # @param name [String]
46
46
  # @return [true,false]
47
- def create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CHOICE_NAME_STR) end
47
+ def create(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ChoiceNameStr) end
48
48
 
49
49
  # @overload initialize()
50
50
  # Default constructor.
@@ -52,7 +52,7 @@ module Wx
52
52
  # @see Wx::Choice#create
53
53
  # @see Wx::Validator
54
54
  # @return [Choice]
55
- # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CHOICE_NAME_STR)
55
+ # @overload initialize(parent, id, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ChoiceNameStr)
56
56
  # Constructor, creating and showing a choice.
57
57
  # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
58
58
  # @see Wx::Choice#create
@@ -68,7 +68,7 @@ module Wx
68
68
  # @overload initialize()
69
69
  # Constructs a choicebook control.
70
70
  # @return [Choicebook]
71
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::EMPTY_STRING)
71
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
72
72
  # Constructs a choicebook control.
73
73
  # @param parent [Wx::Window]
74
74
  # @param id [Integer]
@@ -87,7 +87,7 @@ module Wx
87
87
  # @param style [Integer]
88
88
  # @param name [String]
89
89
  # @return [true,false]
90
- def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::EMPTY_STRING) end
90
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=('')) end
91
91
 
92
92
  # Returns the {Wx::Choice} associated with the control.
93
93
  # @return [Wx::Choice]
@@ -63,7 +63,7 @@ module Wx
63
63
  # @overload initialize()
64
64
  # Default constructor.
65
65
  # @return [CollapsiblePane]
66
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::COLLAPSIBLE_PANE_NAME_STR)
66
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CollapsiblePaneNameStr)
67
67
  # Initializes the object and calls {Wx::CollapsiblePane#create} with all the parameters.
68
68
  # @param parent [Wx::Window]
69
69
  # @param id [Integer]
@@ -87,7 +87,7 @@ module Wx
87
87
  # @param validator [Wx::Validator] Validator which can be used for additional data checks.
88
88
  # @param name [String] Control name.
89
89
  # @return [true,false]
90
- def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::COLLAPSIBLE_PANE_NAME_STR) end
90
+ def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CollapsiblePaneNameStr) end
91
91
 
92
92
  # Collapses or expands the pane window.
93
93
  # @param collapse [true,false]
@@ -32,8 +32,6 @@ module Wx
32
32
 
33
33
  # Converts string to a {Wx::Colour} best represented by the given string.
34
34
  # Returns true on success.
35
- #
36
- # Include file: #include <wx/colour.h>
37
35
  # @see wxToString(const wxColour&)
38
36
  # @param string [String]
39
37
  # @param colour [Wx::Colour]
@@ -41,7 +39,7 @@ module Wx
41
39
  def self.from_string(string, colour) end
42
40
 
43
41
  # Converts the given {Wx::Colour} into a string.
44
- # Include file: #include <wx/colour.h>
42
+ #
45
43
  # @see wxFromString(const wxString&
46
44
  # @see wxColour*)
47
45
  # @param colour [Wx::Colour,String,Symbol]
@@ -11,13 +11,12 @@ module Wx
11
11
  EVT_COLOUR_CHANGED = 10183
12
12
 
13
13
  # Shows the colour selection dialog and returns the colour selected by user or invalid colour (use {Wx::Colour#is_ok} to test whether a colour is valid) if the dialog was cancelled.
14
- # Include file: #include <wx/colordlg.h>
15
14
  # @param parent [Wx::Window] The parent window for the colour selection dialog.
16
15
  # @param colInit [Wx::Colour,String,Symbol] If given, this will be the colour initially selected in the dialog.
17
16
  # @param caption [String] If given, this will be used for the dialog caption.
18
17
  # @param data [Wx::ColourData] Optional object storing additional colour dialog settings, such as custom colours. If none is provided the same settings as the last time are used.
19
18
  # @return [Wx::Colour]
20
- def self.get_colour_from_user(parent, colInit, caption=Wx::EMPTY_STRING, data=nil) end
19
+ def self.get_colour_from_user(parent, colInit, caption=(''), data=nil) end
21
20
 
22
21
  # This class represents the colour chooser dialog.
23
22
  # Starting from wxWidgets 3.1.3 and currently in the MSW port only, this dialog generates {Wx::EVT_COLOUR_CHANGED} events while it is being shown, i.e. from inside its {Wx::ColourDialog#show_modal} method, that notify the program about the change of the currently selected colour and allow it to e.g. preview the effect of selecting this colour. Note that if you react to this event, you should also correctly revert to the previously selected colour if the dialog is cancelled by the user.
@@ -52,7 +52,7 @@ module Wx
52
52
 
53
53
  # @overload initialize()
54
54
  # @return [ColourPickerCtrl]
55
- # @overload initialize(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::COLOUR_PICKER_CTRL_NAME_STR)
55
+ # @overload initialize(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ColourPickerCtrlNameStr)
56
56
  # Initializes the object and calls {Wx::ColourPickerCtrl#create} with all the parameters.
57
57
  # @param parent [Wx::Window]
58
58
  # @param id [Integer]
@@ -76,7 +76,7 @@ module Wx
76
76
  # @param validator [Wx::Validator] Validator which can be used for additional data checks.
77
77
  # @param name [String] Control name.
78
78
  # @return [true,false]
79
- def create(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::COLOUR_PICKER_CTRL_NAME_STR) end
79
+ def create(parent, id, colour=Wx::BLACK, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::CLRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ColourPickerCtrlNameStr) end
80
80
 
81
81
  # Returns the currently selected colour.
82
82
  # @return [Wx::Colour]
@@ -47,7 +47,7 @@ module Wx
47
47
 
48
48
  include Wx::TextEntry
49
49
 
50
- # @overload create(parent, id, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=((Wx::CONST Wx::STRING *) nil), style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::COMBO_BOX_NAME_STR)
50
+ # @overload create(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=((const Wx::String *) nil), style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
51
51
  # Creates the combobox for two-step construction.
52
52
  # Derived classes should call or replace this function. See {Wx::ComboBox#combo_box} for further details.
53
53
  # @param parent [Wx::Window]
@@ -60,7 +60,7 @@ module Wx
60
60
  # @param validator [Wx::Validator]
61
61
  # @param name [String]
62
62
  # @return [true,false]
63
- # @overload create(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::COMBO_BOX_NAME_STR)
63
+ # @overload create(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
64
64
  # Creates the combobox for two-step construction.
65
65
  # Derived classes should call or replace this function. See {Wx::ComboBox#combo_box} for further details.
66
66
  # @param parent [Wx::Window]
@@ -78,7 +78,7 @@ module Wx
78
78
  # @overload initialize()
79
79
  # Default constructor.
80
80
  # @return [ComboBox]
81
- # @overload initialize(parent, id, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::COMBO_BOX_NAME_STR)
81
+ # @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
82
82
  # Constructor, creating and showing a combobox.
83
83
  # <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
84
84
  # @see Wx::ComboBox#create
@@ -93,7 +93,7 @@ module Wx
93
93
  # @param validator [Wx::Validator] Window validator.
94
94
  # @param name [String] Window name.
95
95
  # @return [ComboBox]
96
- # @overload initialize(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::COMBO_BOX_NAME_STR)
96
+ # @overload initialize(parent, id, value, pos, size, choices, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ComboBoxNameStr)
97
97
  # Constructor, creating and showing a combobox.
98
98
  # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
99
99
  # @see Wx::ComboBox#create
@@ -26,7 +26,7 @@ module Wx
26
26
  # @param size [Array(Integer, Integer), Wx::Size] Button size. If {Wx::DEFAULT_SIZE} is specified then the button is sized appropriately for the question mark bitmap.
27
27
  # @param style [Integer] Window style.
28
28
  # @return [ContextHelpButton]
29
- def initialize(parent, id=Wx::ID_CONTEXT_HELP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
29
+ def initialize(parent, id=Wx::StandardID::ID_CONTEXT_HELP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
30
30
 
31
31
  end # ContextHelpButton
32
32
 
@@ -24,7 +24,7 @@ module Wx
24
24
  #
25
25
  class Control < Window
26
26
 
27
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CONTROL_NAME_STR)
27
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ControlNameStr)
28
28
  # Constructs a control.
29
29
  # @param parent [Wx::Window] Pointer to a parent window.
30
30
  # @param id [Integer] Control identifier. If {Wx::StandardID::ID_ANY}, will automatically create an identifier.
@@ -47,7 +47,7 @@ module Wx
47
47
  # @param validator [Wx::Validator]
48
48
  # @param name [String]
49
49
  # @return [true,false]
50
- def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CONTROL_NAME_STR) end
50
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ControlNameStr) end
51
51
 
52
52
  # Simulates the effect of the user issuing a command to the item.
53
53
  #
@@ -237,7 +237,7 @@ module Wx
237
237
  # @param maxWidth [Integer] The maximum width of the returned string in pixels. This argument determines how much characters of the string need to be removed (and replaced by ellipsis).
238
238
  # @param flags [Integer] One or more of the {Wx::EllipsizeFlags} enumeration values combined.
239
239
  # @return [String]
240
- def self.ellipsize(label, dc, mode, maxWidth, flags=Wx::ELLIPSIZE_FLAGS_DEFAULT) end
240
+ def self.ellipsize(label, dc, mode, maxWidth, flags=Wx::EllipsizeFlags::ELLIPSIZE_FLAGS_DEFAULT) end
241
241
 
242
242
  end # Control
243
243
 
@@ -7,10 +7,10 @@
7
7
  module Wx
8
8
 
9
9
  # wxRuby version string
10
- Wx::WXRUBY_VERSION = '0.9.0-beta.11'
10
+ Wx::WXRUBY_VERSION = '0.9.0-beta.14'
11
11
 
12
12
  # wxRuby version release type (alpha, beta, rc)
13
- Wx::WXRUBY_RELEASE_TYPE = 'beta.11'
13
+ Wx::WXRUBY_RELEASE_TYPE = 'beta.14'
14
14
  # wxRuby major version number
15
15
  Wx::WXRUBY_MAJOR = 0
16
16
  # wxRuby minor version number
@@ -46,7 +46,7 @@ module Wx
46
46
  #
47
47
  class DataFormat < ::Object
48
48
 
49
- # @overload initialize(format=Wx::DF_INVALID)
49
+ # @overload initialize(format=Wx::DataFormatId::DF_INVALID)
50
50
  # Constructs a data format object for one of the standard data formats or an empty data object (use {Wx::DataFormat#set_type} or {Wx::DataFormat#set_id} later in this case).
51
51
  # <b>{Wx::Perl} Note:</b> In {Wx::Perl} use Wx::Bitmap->newNative(format).
52
52
  # @param format [DataFormatId]
@@ -75,7 +75,7 @@ module Wx
75
75
  # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method only takes the dir parameter. In scalar context it returns the first format in the list, in list context it returns a list containing all the supported formats.
76
76
  # @param dir [Direction]
77
77
  # @return [Array<Wx::DataFormat>]
78
- def get_all_formats(dir=Wx::GET) end
78
+ def get_all_formats(dir=Wx::DataObjectSimpleBase::Direction::Get) end
79
79
  alias_method :all_formats, :get_all_formats
80
80
 
81
81
  # The method will write the data of the format format to the buffer buf.
@@ -88,14 +88,14 @@ module Wx
88
88
  # Returns the number of available formats for rendering or setting the data.
89
89
  # @param dir [Direction]
90
90
  # @return [Integer]
91
- def get_format_count(dir=Wx::GET) end
91
+ def get_format_count(dir=Wx::DataObjectSimpleBase::Direction::Get) end
92
92
  alias_method :format_count, :get_format_count
93
93
 
94
94
  # Returns the preferred format for either rendering the data (if dir is Get, its default value) or for setting it.
95
95
  # Usually this will be the native format of the {Wx::DataObject}.
96
96
  # @param dir [Direction]
97
97
  # @return [Wx::DataFormat]
98
- def get_preferred_format(dir=Wx::GET) end
98
+ def get_preferred_format(dir=Wx::DataObjectSimpleBase::Direction::Get) end
99
99
  alias_method :preferred_format, :get_preferred_format
100
100
 
101
101
  # Set the data in the format format of the length len provided in the buffer buf.
@@ -111,7 +111,7 @@ module Wx
111
111
  # @param format [Wx::DataFormat]
112
112
  # @param dir [Direction]
113
113
  # @return [void]
114
- def is_supported(format, dir=Wx::GET) end
114
+ def is_supported(format, dir=Wx::DataObjectSimpleBase::Direction::Get) end
115
115
  alias_method :supported?, :is_supported
116
116
 
117
117
  end # DataObject
@@ -305,7 +305,7 @@ module Wx
305
305
  # Constructor, may be used to initialise the text (otherwise {Wx::TextDataObject#set_text} should be used later).
306
306
  # @param text [String]
307
307
  # @return [TextDataObject]
308
- def initialize(text=Wx::EMPTY_STRING) end
308
+ def initialize(text=('')) end
309
309
 
310
310
  # Returns the text associated with the data object.
311
311
  # You may wish to override this method when offering data on-demand, but this is not required by wxWidgets' internals. Use this method to get data in text form from the {Wx::Clipboard}.
@@ -400,7 +400,7 @@ module Wx
400
400
  # If url is empty, {Wx::URLDataObject#set_url} can be used later.
401
401
  # @param url [String]
402
402
  # @return [URLDataObject]
403
- def initialize(url=Wx::EMPTY_STRING) end
403
+ def initialize(url=('')) end
404
404
 
405
405
  # Returns the URL stored by this object, as a string.
406
406
  # @return [String]
@@ -62,7 +62,7 @@ module Wx
62
62
  # @overload initialize()
63
63
  # Default constructor.
64
64
  # @return [DatePickerCtrl]
65
- # @overload initialize(parent, id, dt=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY), validator=Wx::DEFAULT_VALIDATOR, name=("Wx::DATECTRL"))
65
+ # @overload initialize(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY), validator=Wx::DEFAULT_VALIDATOR, name=("datectrl"))
66
66
  # Initializes the object and calls {Wx::DatePickerCtrl#create} with all the parameters.
67
67
  # @param parent [Wx::Window]
68
68
  # @param id [Integer]
@@ -88,7 +88,7 @@ module Wx
88
88
  # @param validator [Wx::Validator] Validator which can be used for additional data checks.
89
89
  # @param name [String] Control name.
90
90
  # @return [true,false]
91
- def create(parent, id, dt=Wx::DEFAULT_DATE_TIME, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY), validator=Wx::DEFAULT_VALIDATOR, name=("Wx::DATECTRL")) end
91
+ def create(parent, id, dt=Wx::DefaultDateTime, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DP_DEFAULT|Wx::DP_SHOWCENTURY), validator=Wx::DEFAULT_VALIDATOR, name=("datectrl")) end
92
92
 
93
93
  # Returns the currently entered date.
94
94
  # For a control with {Wx::DP_ALLOWNONE} style the returned value may be invalid if no date is entered, otherwise it is always valid.
data/lib/wx/doc/gen/dc.rb CHANGED
@@ -396,7 +396,7 @@ module Wx
396
396
  # @return [void]
397
397
  def draw_icon(*args) end
398
398
 
399
- # @overload draw_label(text, bitmap, rect, alignment=(Wx::ALIGN_LEFT|Wx::ALIGN_TOP), indexAccel=-1, rectBounding=nil)
399
+ # @overload draw_label(text, bitmap, rect, alignment=(Wx::Alignment::ALIGN_LEFT|Wx::Alignment::ALIGN_TOP), indexAccel=-1, rectBounding=nil)
400
400
  # Draw optional bitmap and the text into the given rectangle and aligns it as specified by alignment parameter; it also will emphasize the character with the given index if it is != -1 and return the bounding rectangle if required.
401
401
  # @param text [String]
402
402
  # @param bitmap [Wx::Bitmap]
@@ -405,7 +405,7 @@ module Wx
405
405
  # @param indexAccel [Integer]
406
406
  # @param rectBounding [Wx::Rect]
407
407
  # @return [void]
408
- # @overload draw_label(text, rect, alignment=(Wx::ALIGN_LEFT|Wx::ALIGN_TOP), indexAccel=-1)
408
+ # @overload draw_label(text, rect, alignment=(Wx::Alignment::ALIGN_LEFT|Wx::Alignment::ALIGN_TOP), indexAccel=-1)
409
409
  # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
410
410
  # @param text [String]
411
411
  # @param rect [Wx::Rect]
@@ -460,7 +460,7 @@ module Wx
460
460
  # @param yoffset [Integer]
461
461
  # @param fill_style [PolygonFillMode]
462
462
  # @return [void]
463
- def draw_polygon(points, xoffset=0, yoffset=0, fill_style=Wx::ODDEVEN_RULE) end
463
+ def draw_polygon(points, xoffset=0, yoffset=0, fill_style=Wx::PolygonFillMode::ODDEVEN_RULE) end
464
464
 
465
465
  # Draws two or more filled polygons using an array of points, adding the optional offset coordinates.
466
466
  # Notice that for the platforms providing a native implementation of this function (Windows and PostScript-based {Wx::DC} currently), this is more efficient than using {Wx::DC#draw_polygon} in a loop.
@@ -473,7 +473,7 @@ module Wx
473
473
  # @param yoffset [Integer]
474
474
  # @param fill_style [PolygonFillMode]
475
475
  # @return [void]
476
- def draw_poly_polygon(points, xoffset=0, yoffset=0, fill_style=Wx::ODDEVEN_RULE) end
476
+ def draw_poly_polygon(points, xoffset=0, yoffset=0, fill_style=Wx::PolygonFillMode::ODDEVEN_RULE) end
477
477
 
478
478
  # @overload draw_rectangle(x, y, width, height)
479
479
  # Draws a rectangle with the given corner coordinate and size.
@@ -598,9 +598,9 @@ module Wx
598
598
  # @param destColour [Wx::Colour,String,Symbol]
599
599
  # @param nDirection [Direction]
600
600
  # @return [void]
601
- def gradient_fill_linear(rect, initialColour, destColour, nDirection=Wx::RIGHT) end
601
+ def gradient_fill_linear(rect, initialColour, destColour, nDirection=Wx::Direction::RIGHT) end
602
602
 
603
- # @overload flood_fill(x, y, colour, style=Wx::FLOOD_SURFACE)
603
+ # @overload flood_fill(x, y, colour, style=Wx::FloodFillStyle::FLOOD_SURFACE)
604
604
  # Flood fills the device context starting from the given point, using the current brush colour, and using a style:
605
605
  # - {Wx::FloodFillStyle::FLOOD_SURFACE}: The flooding occurs until a colour other than the given colour is encountered.- {Wx::FloodFillStyle::FLOOD_BORDER}: The area to be flooded is bounded by the given colour.
606
606
  #
@@ -615,7 +615,7 @@ module Wx
615
615
  # @param colour [Wx::Colour,String,Symbol]
616
616
  # @param style [FloodFillStyle]
617
617
  # @return [true,false]
618
- # @overload flood_fill(pt, col, style=Wx::FLOOD_SURFACE)
618
+ # @overload flood_fill(pt, col, style=Wx::FloodFillStyle::FLOOD_SURFACE)
619
619
  # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
620
620
  # @param pt [Array(Integer, Integer), Wx::Point]
621
621
  # @param col [Wx::Colour,String,Symbol]
@@ -917,7 +917,7 @@ module Wx
917
917
  # @param xsrcMask [Integer] Source x position on the mask. If both xsrcMask and ysrcMask are <code>-1</code>, xsrc and ysrc will be assumed for the mask source position. Currently only implemented on Windows.
918
918
  # @param ysrcMask [Integer] Source y position on the mask. If both xsrcMask and ysrcMask are <code>-1</code>, xsrc and ysrc will be assumed for the mask source position. Currently only implemented on Windows.
919
919
  # @return [true,false]
920
- def blit(xdest, ydest, width, height, source, xsrc, ysrc, logicalFunc=Wx::COPY, useMask=false, xsrcMask=Wx::DEFAULT_COORD, ysrcMask=Wx::DEFAULT_COORD) end
920
+ def blit(xdest, ydest, width, height, source, xsrc, ysrc, logicalFunc=Wx::RasterOperationMode::COPY, useMask=false, xsrcMask=Wx::DEFAULT_COORD, ysrcMask=Wx::DEFAULT_COORD) end
921
921
 
922
922
  # Copy from a source DC to this DC possibly changing the scale.
923
923
  # Unlike {Wx::DC#blit}, this method allows specifying different source and destination region sizes, meaning that it can stretch or shrink it while copying. The same can be achieved by changing the scale of the source or target DC but calling this method is simpler and can also be more efficient if the platform provides a native implementation of it.
@@ -959,7 +959,7 @@ module Wx
959
959
  # @param xsrcMask [Integer] Source x position on the mask. If both xsrcMask and ysrcMask are {Wx::DEFAULT_COORD}, xsrc and ysrc will be assumed for the mask source position. Currently only implemented on Windows.
960
960
  # @param ysrcMask [Integer] Source y position on the mask. If both xsrcMask and ysrcMask are {Wx::DEFAULT_COORD}, xsrc and ysrc will be assumed for the mask source position. Currently only implemented on Windows.
961
961
  # @return [true,false]
962
- def stretch_blit(xdest, ydest, dstWidth, dstHeight, source, xsrc, ysrc, srcWidth, srcHeight, logicalFunc=Wx::COPY, useMask=false, xsrcMask=Wx::DEFAULT_COORD, ysrcMask=Wx::DEFAULT_COORD) end
962
+ def stretch_blit(xdest, ydest, dstWidth, dstHeight, source, xsrc, ysrc, srcWidth, srcHeight, logicalFunc=Wx::RasterOperationMode::COPY, useMask=false, xsrcMask=Wx::DEFAULT_COORD, ysrcMask=Wx::DEFAULT_COORD) end
963
963
 
964
964
  # Gets the brush used for painting the background.
965
965
  #
@@ -2794,8 +2794,6 @@ module Wx
2794
2794
  # ...
2795
2795
  # wxDELETE(ptr);
2796
2796
  # wxASSERT(!ptr);
2797
- #
2798
- # Include file: #include <wx/defs.h>
2799
2797
  # @param ptr [T]
2800
2798
  # @return [void]
2801
2799
  def self.delete(ptr) end
@@ -2807,8 +2805,6 @@ module Wx
2807
2805
  # ...
2808
2806
  # wxDELETEA(array);
2809
2807
  # wxASSERT(!array);
2810
- #
2811
- # Include file: #include <wx/defs.h>
2812
2808
  # @see delete
2813
2809
  # @param array [T]
2814
2810
  # @return [void]
@@ -116,7 +116,7 @@ module Wx
116
116
  # @overload initialize()
117
117
  # Default constructor.
118
118
  # @return [Dialog]
119
- # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DIALOG_NAME_STR)
119
+ # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DialogNameStr)
120
120
  # Constructor.
121
121
  #
122
122
  # @see Wx::Dialog#create
@@ -147,7 +147,7 @@ module Wx
147
147
  # Centres the dialog box on the display.
148
148
  # @param direction [Integer] May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}.
149
149
  # @return [void]
150
- def centre(direction=Wx::BOTH) end
150
+ def centre(direction=Wx::Orientation::BOTH) end
151
151
 
152
152
  # Used for two-step dialog box construction.
153
153
  #
@@ -160,7 +160,7 @@ module Wx
160
160
  # @param style [Integer]
161
161
  # @param name [String]
162
162
  # @return [true,false]
163
- def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DIALOG_NAME_STR) end
163
+ def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_DIALOG_STYLE, name=Wx::DialogNameStr) end
164
164
 
165
165
  # Creates a sizer with standard buttons.
166
166
  # flags is a bit list of the following flags: {Wx::OK}, {Wx::CANCEL}, {Wx::YES}, {Wx::NO}, {Wx::APPLY}, {Wx::CLOSE}, {Wx::HELP}, {Wx::NO_DEFAULT}.
@@ -45,15 +45,13 @@ module Wx
45
45
  # {
46
46
  # ...
47
47
  # }
48
- #
49
- # Include file: #include <wx/dirdlg.h>
50
48
  # @param message [String]
51
49
  # @param default_path [String]
52
50
  # @param style [Integer]
53
51
  # @param pos [Array(Integer, Integer), Wx::Point]
54
52
  # @param parent [Wx::Window]
55
53
  # @return [String]
56
- def self.dir_selector(message=Wx::DIR_SELECTOR_PROMPT_STR, default_path=Wx::EMPTY_STRING, style=0, pos=Wx::DEFAULT_POSITION, parent=nil) end
54
+ def self.dir_selector(message=Wx::DIR_SELECTOR_PROMPT_STR, default_path=(''), style=0, pos=Wx::DEFAULT_POSITION, parent=nil) end
57
55
 
58
56
  # This class represents the directory chooser dialog.
59
57
  # === Styles
@@ -92,7 +90,7 @@ module Wx
92
90
  # @param size [Array(Integer, Integer), Wx::Size] Dialog size. Ignored under Windows.
93
91
  # @param name [String] The dialog name, not used.
94
92
  # @return [DirDialog]
95
- def initialize(parent, message=Wx::DIR_SELECTOR_PROMPT_STR, defaultPath=Wx::EMPTY_STRING, style=Wx::DD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::DIR_DIALOG_NAME_STR) end
93
+ def initialize(parent, message=Wx::DIR_SELECTOR_PROMPT_STR, defaultPath=(''), style=Wx::DD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::DIR_DIALOG_NAME_STR) end
96
94
 
97
95
  # Returns the message that will be displayed on the dialog.
98
96
  # @return [String]
@@ -49,7 +49,7 @@ module Wx
49
49
 
50
50
  # @overload initialize()
51
51
  # @return [DirFilterListCtrl]
52
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
52
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
53
53
  # @param parent [Wx::GenericDirCtrl]
54
54
  # @param id [Integer]
55
55
  # @param pos [Array(Integer, Integer), Wx::Point]
@@ -64,7 +64,7 @@ module Wx
64
64
  # @param size [Array(Integer, Integer), Wx::Size]
65
65
  # @param style [Integer]
66
66
  # @return [true,false]
67
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
67
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
68
68
 
69
69
  # @return [void]
70
70
  def init; end
@@ -38,7 +38,7 @@ module Wx
38
38
 
39
39
  # @overload initialize()
40
40
  # @return [DirPickerCtrl]
41
- # @overload initialize(parent, id, path=Wx::EMPTY_STRING, message=Wx::DIR_SELECTOR_PROMPT_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::DIR_PICKER_CTRL_NAME_STR)
41
+ # @overload initialize(parent, id, path=(''), message=Wx::DIR_SELECTOR_PROMPT_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::DirPickerCtrlNameStr)
42
42
  # Initializes the object and calls {Wx::DirPickerCtrl#create} with all the parameters.
43
43
  # @param parent [Wx::Window]
44
44
  # @param id [Integer]
@@ -64,7 +64,7 @@ module Wx
64
64
  # @param validator [Wx::Validator] Validator which can be used for additional data checks.
65
65
  # @param name [String] Control name.
66
66
  # @return [true,false]
67
- def create(parent, id, path=Wx::EMPTY_STRING, message=Wx::DIR_SELECTOR_PROMPT_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::DIR_PICKER_CTRL_NAME_STR) end
67
+ def create(parent, id, path=(''), message=Wx::DIR_SELECTOR_PROMPT_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::DirPickerCtrlNameStr) end
68
68
 
69
69
  # Returns the absolute path of the currently selected directory as a {Wx::FileName} object.
70
70
  # This function is equivalent to {Wx::DirPickerCtrl#get_path}.
@@ -6,6 +6,18 @@
6
6
 
7
7
  module Wx
8
8
 
9
+ # Allow only copying.
10
+ #
11
+ Drag_CopyOnly = 0
12
+
13
+ # Allow moving too (copying is always allowed).
14
+ #
15
+ Drag_AllowMove = 1
16
+
17
+ # Allow moving and make it default operation.
18
+ #
19
+ Drag_DefaultMove = 3
20
+
9
21
  # Result returned from a {Wx::DropSource#do_drag_drop} call.
10
22
  #
11
23
  #
@@ -103,7 +115,7 @@ module Wx
103
115
  # The operation requested by the user, may be {Wx::DragResult::DragCopy}, {Wx::DragResult::DragMove}, {Wx::DragResult::DragLink}, {Wx::DragResult::DragCancel} or {Wx::DragResult::DragNone} if an error occurred.
104
116
  # @param flags [Integer] If {Wx::Drag_AllowMove} is included in the flags, data may be moved and not only copied as is the case for the default {Wx::Drag_CopyOnly}. If {Wx::Drag_DefaultMove} is specified (which includes the previous flag), moving is not only possible but becomes the default operation.
105
117
  # @return [DragResult]
106
- def do_drag_drop(flags=Wx::DRAG_COPY_ONLY) end
118
+ def do_drag_drop(flags=Wx::Drag_CopyOnly) end
107
119
 
108
120
  # Returns the {Wx::DataObject} object that has been assigned previously.
109
121
  # @return [Wx::DataObject]
@@ -45,7 +45,7 @@ module Wx
45
45
  # @overload initialize()
46
46
  # Default ctor.
47
47
  # @return [EditableListBox]
48
- # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::EDITABLE_LIST_BOX_NAME_STR)
48
+ # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::EditableListBoxNameStr)
49
49
  # Constructor, creating and showing a list box.
50
50
  #
51
51
  # @see Wx::EditableListBox#create
@@ -69,7 +69,7 @@ module Wx
69
69
  # @param style [Integer]
70
70
  # @param name [String]
71
71
  # @return [true,false]
72
- def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::EDITABLE_LIST_BOX_NAME_STR) end
72
+ def create(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::EL_DEFAULT_STYLE, name=Wx::EditableListBoxNameStr) end
73
73
 
74
74
  # Replaces current contents with given strings.
75
75
  # @param strings [Array<String>]