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
@@ -100,7 +100,7 @@ module Wx::RBN
100
100
  # Default constructor.
101
101
  # With this constructor, {Wx::RBN::RibbonButtonBar#create} should be called in order to create the button bar.
102
102
  # @return [RibbonButtonBar]
103
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
103
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
104
104
  # Construct a ribbon button bar with the given parameters.
105
105
  # @param parent [Wx::Window] Parent window for the button bar (typically a {Wx::RBN::RibbonPanel}).
106
106
  # @param id [Integer] An identifier for the button bar. {Wx::StandardID::ID_ANY} is taken to mean a default.
@@ -118,9 +118,9 @@ module Wx::RBN
118
118
  # @param size [Array(Integer, Integer), Wx::Size]
119
119
  # @param style [Integer]
120
120
  # @return [true,false]
121
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
121
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
122
122
 
123
- # @overload add_button(button_id, label, bitmap, help_string, kind=Wx::RIBBON_BUTTON_NORMAL)
123
+ # @overload add_button(button_id, label, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
124
124
  # Add a button to the button bar (simple version).
125
125
  # @param button_id [Integer]
126
126
  # @param label [String]
@@ -128,7 +128,7 @@ module Wx::RBN
128
128
  # @param help_string [String]
129
129
  # @param kind [RibbonButtonKind]
130
130
  # @return [Integer]
131
- # @overload add_button(button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RIBBON_BUTTON_NORMAL, help_string=Wx::EMPTY_STRING)
131
+ # @overload add_button(button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, help_string=(''))
132
132
  # Add a button to the button bar.
133
133
  # An opaque pointer which can be used only with other button bar methods.
134
134
  # @see Wx::RBN::RibbonButtonBar#add_dropdown_button
@@ -155,7 +155,7 @@ module Wx::RBN
155
155
  # @param bitmap [Wx::Bitmap]
156
156
  # @param help_string [String]
157
157
  # @return [Integer]
158
- def add_dropdown_button(button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
158
+ def add_dropdown_button(button_id, label, bitmap, help_string=('')) end
159
159
 
160
160
  # Add a hybrid button to the button bar (simple version).
161
161
  #
@@ -165,7 +165,7 @@ module Wx::RBN
165
165
  # @param bitmap [Wx::Bitmap]
166
166
  # @param help_string [String]
167
167
  # @return [Integer]
168
- def add_hybrid_button(button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
168
+ def add_hybrid_button(button_id, label, bitmap, help_string=('')) end
169
169
 
170
170
  # Add a toggle button to the button bar (simple version).
171
171
  #
@@ -175,9 +175,9 @@ module Wx::RBN
175
175
  # @param bitmap [Wx::Bitmap]
176
176
  # @param help_string [String]
177
177
  # @return [Integer]
178
- def add_toggle_button(button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
178
+ def add_toggle_button(button_id, label, bitmap, help_string=('')) end
179
179
 
180
- # @overload insert_button(pos, button_id, label, bitmap, help_string, kind=Wx::RIBBON_BUTTON_NORMAL)
180
+ # @overload insert_button(pos, button_id, label, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
181
181
  # Inserts a button to the button bar (simple version) at the given position.
182
182
  #
183
183
  # @see Wx::RBN::RibbonButtonBar#add_button
@@ -188,7 +188,7 @@ module Wx::RBN
188
188
  # @param help_string [String]
189
189
  # @param kind [RibbonButtonKind]
190
190
  # @return [Integer]
191
- # @overload insert_button(pos, button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RIBBON_BUTTON_NORMAL, help_string=Wx::EMPTY_STRING)
191
+ # @overload insert_button(pos, button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, help_string=(''))
192
192
  # Insert a button to the button bar at the given position.
193
193
  # An opaque pointer which can be used only with other button bar methods.
194
194
  # @see Wx::RBN::RibbonButtonBar#insert_dropdown_button
@@ -223,7 +223,7 @@ module Wx::RBN
223
223
  # @param bitmap [Wx::Bitmap]
224
224
  # @param help_string [String]
225
225
  # @return [Integer]
226
- def insert_dropdown_button(pos, button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
226
+ def insert_dropdown_button(pos, button_id, label, bitmap, help_string=('')) end
227
227
 
228
228
  # Inserts a hybrid button to the button bar (simple version) at the given position.
229
229
  #
@@ -238,7 +238,7 @@ module Wx::RBN
238
238
  # @param bitmap [Wx::Bitmap]
239
239
  # @param help_string [String]
240
240
  # @return [Integer]
241
- def insert_hybrid_button(pos, button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
241
+ def insert_hybrid_button(pos, button_id, label, bitmap, help_string=('')) end
242
242
 
243
243
  # Inserts a toggle button to the button bar (simple version) at the given position.
244
244
  #
@@ -253,7 +253,7 @@ module Wx::RBN
253
253
  # @param bitmap [Wx::Bitmap]
254
254
  # @param help_string [String]
255
255
  # @return [Integer]
256
- def insert_toggle_button(pos, button_id, label, bitmap, help_string=Wx::EMPTY_STRING) end
256
+ def insert_toggle_button(pos, button_id, label, bitmap, help_string=('')) end
257
257
 
258
258
  # Returns the number of buttons in this button bar.
259
259
  # @return [Integer]
@@ -18,7 +18,7 @@ module Wx::RBN
18
18
  # @overload initialize()
19
19
  # Constructor.
20
20
  # @return [RibbonControl]
21
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::CONTROL_NAME_STR)
21
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ControlNameStr)
22
22
  # Constructor.
23
23
  # If parent is a {Wx::RBN::RibbonControl} with a non-NULL art provider, then the art provider of new control is set to that of parent.
24
24
  # @param parent [Wx::Window]
@@ -68,7 +68,7 @@ module Wx::RBN
68
68
  # Default constructor.
69
69
  # With this constructor, {Wx::RBN::RibbonGallery#create} should be called in order to create the gallery.
70
70
  # @return [RibbonGallery]
71
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
71
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
72
72
  # Construct a ribbon gallery with the given parameters.
73
73
  # @param parent [Wx::Window] Parent window for the gallery (typically a {Wx::RBN::RibbonPanel}).
74
74
  # @param id [Integer] An identifier for the gallery. {Wx::StandardID::ID_ANY} is taken to mean a default.
@@ -86,7 +86,7 @@ module Wx::RBN
86
86
  # @param size [Array(Integer, Integer), Wx::Size]
87
87
  # @param style [Integer]
88
88
  # @return [true,false]
89
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
89
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
90
90
 
91
91
  # Remove all items from the gallery.
92
92
  # @return [void]
@@ -21,7 +21,7 @@ module Wx::RBN
21
21
  # Default constructor.
22
22
  # With this constructor, {Wx::RBN::RibbonPage#create} should be called in order to create the ribbon page.
23
23
  # @return [RibbonPage]
24
- # @overload initialize(parent, id=Wx::ID_ANY, label=Wx::EMPTY_STRING, icon=Wx::NULL_BITMAP, style=0)
24
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, label=(''), icon=Wx::NULL_BITMAP, style=0)
25
25
  # Constructs a ribbon page, which must be a child of a ribbon bar.
26
26
  # @param parent [Wx::RibbonBar] Pointer to a parent {Wx::RBN::RibbonBar} (unlike most controls, a {Wx::RBN::RibbonPage} can only have {Wx::RBN::RibbonBar} as a parent).
27
27
  # @param id [Integer] Window identifier.
@@ -39,7 +39,7 @@ module Wx::RBN
39
39
  # @param icon [Wx::Bitmap]
40
40
  # @param style [Integer]
41
41
  # @return [true,false]
42
- def create(parent, id=Wx::ID_ANY, label=Wx::EMPTY_STRING, icon=Wx::NULL_BITMAP, style=0) end
42
+ def create(parent, id=Wx::StandardID::ID_ANY, label=(''), icon=Wx::NULL_BITMAP, style=0) end
43
43
 
44
44
  # Set the art provider to be used.
45
45
  # Normally called automatically by {Wx::RBN::RibbonBar} when the page is created, or the art provider changed on the bar.
@@ -112,7 +112,7 @@ module Wx::RBN
112
112
  # Default constructor.
113
113
  # With this constructor, {Wx::RBN::RibbonPanel#create} should be called in order to create the ribbon panel.
114
114
  # @return [RibbonPanel]
115
- # @overload initialize(parent, id=Wx::ID_ANY, label=Wx::EMPTY_STRING, minimised_icon=Wx::NULL_BITMAP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RIBBON_PANEL_DEFAULT_STYLE)
115
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, label=(''), minimised_icon=Wx::NULL_BITMAP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RBN::RibbonPanelOption::RIBBON_PANEL_DEFAULT_STYLE)
116
116
  # Constructs a ribbon panel.
117
117
  # @param parent [Wx::Window] Pointer to a parent window, which is typically a {Wx::RBN::RibbonPage}, though it can be any window.
118
118
  # @param id [Integer] Window identifier.
@@ -134,7 +134,7 @@ module Wx::RBN
134
134
  # @param size [Array(Integer, Integer), Wx::Size]
135
135
  # @param style [Integer]
136
136
  # @return [true,false]
137
- def create(parent, id=Wx::ID_ANY, label=Wx::EMPTY_STRING, icon=Wx::NULL_BITMAP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RIBBON_PANEL_DEFAULT_STYLE) end
137
+ def create(parent, id=Wx::StandardID::ID_ANY, label=(''), icon=Wx::NULL_BITMAP, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RBN::RibbonPanelOption::RIBBON_PANEL_DEFAULT_STYLE) end
138
138
 
139
139
  # @overload get_minimised_icon()
140
140
  # Get the bitmap to be used in place of the panel children when it is minimised.
@@ -33,7 +33,7 @@ module Wx::RBN
33
33
  # Default constructor.
34
34
  # With this constructor, {Wx::RBN::RibbonToolBar#create} should be called in order to create the tool bar.
35
35
  # @return [RibbonToolBar]
36
- # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
36
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
37
37
  # Construct a ribbon tool bar with the given parameters.
38
38
  # @param parent [Wx::Window] Parent window for the tool bar (typically a {Wx::RBN::RibbonPanel}).
39
39
  # @param id [Integer] An identifier for the toolbar. {Wx::StandardID::ID_ANY} is taken to mean a default.
@@ -51,16 +51,16 @@ module Wx::RBN
51
51
  # @param size [Array(Integer, Integer), Wx::Size]
52
52
  # @param style [Integer]
53
53
  # @return [true,false]
54
- def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
54
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
55
55
 
56
- # @overload add_tool(tool_id, bitmap, help_string, kind=Wx::RIBBON_BUTTON_NORMAL)
56
+ # @overload add_tool(tool_id, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
57
57
  # Add a tool to the tool bar (simple version).
58
58
  # @param tool_id [Integer]
59
59
  # @param bitmap [Wx::Bitmap]
60
60
  # @param help_string [String]
61
61
  # @param kind [RibbonButtonKind]
62
62
  # @return [Integer]
63
- # @overload add_tool(tool_id, bitmap, bitmap_disabled=Wx::NULL_BITMAP, help_string=Wx::EMPTY_STRING, kind=Wx::RIBBON_BUTTON_NORMAL, clientData=nil)
63
+ # @overload add_tool(tool_id, bitmap, bitmap_disabled=Wx::NULL_BITMAP, help_string=(''), kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, clientData=nil)
64
64
  # Add a tool to the tool bar.
65
65
  # An opaque pointer which can be used only with other tool bar methods.
66
66
  # @see Wx::RBN::RibbonToolBar#add_dropdown_tool
@@ -83,7 +83,7 @@ module Wx::RBN
83
83
  # @param bitmap [Wx::Bitmap]
84
84
  # @param help_string [String]
85
85
  # @return [Integer]
86
- def add_dropdown_tool(tool_id, bitmap, help_string=Wx::EMPTY_STRING) end
86
+ def add_dropdown_tool(tool_id, bitmap, help_string=('')) end
87
87
 
88
88
  # Add a hybrid tool to the tool bar (simple version).
89
89
  #
@@ -92,7 +92,7 @@ module Wx::RBN
92
92
  # @param bitmap [Wx::Bitmap]
93
93
  # @param help_string [String]
94
94
  # @return [Integer]
95
- def add_hybrid_tool(tool_id, bitmap, help_string=Wx::EMPTY_STRING) end
95
+ def add_hybrid_tool(tool_id, bitmap, help_string=('')) end
96
96
 
97
97
  # Add a toggle tool to the tool bar (simple version).
98
98
  #
@@ -108,7 +108,7 @@ module Wx::RBN
108
108
  # @return [Integer]
109
109
  def add_separator; end
110
110
 
111
- # @overload insert_tool(pos, tool_id, bitmap, help_string, kind=Wx::RIBBON_BUTTON_NORMAL)
111
+ # @overload insert_tool(pos, tool_id, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
112
112
  # Insert a tool to the tool bar (simple version) as the specified position.
113
113
  #
114
114
  # @see Wx::RBN::RibbonToolBar#insert_tool
@@ -118,7 +118,7 @@ module Wx::RBN
118
118
  # @param help_string [String]
119
119
  # @param kind [RibbonButtonKind]
120
120
  # @return [Integer]
121
- # @overload insert_tool(pos, tool_id, bitmap, bitmap_disabled=Wx::NULL_BITMAP, help_string=Wx::EMPTY_STRING, kind=Wx::RIBBON_BUTTON_NORMAL, clientData=nil)
121
+ # @overload insert_tool(pos, tool_id, bitmap, bitmap_disabled=Wx::NULL_BITMAP, help_string=(''), kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, clientData=nil)
122
122
  # Insert a tool to the tool bar at the specified position.
123
123
  # An opaque pointer which can be used only with other tool bar methods.
124
124
  # @see Wx::RBN::RibbonToolBar#insert_dropdown_tool
@@ -143,7 +143,7 @@ module Wx::RBN
143
143
  # @param bitmap [Wx::Bitmap]
144
144
  # @param help_string [String]
145
145
  # @return [Integer]
146
- def insert_dropdown_tool(pos, tool_id, bitmap, help_string=Wx::EMPTY_STRING) end
146
+ def insert_dropdown_tool(pos, tool_id, bitmap, help_string=('')) end
147
147
 
148
148
  # Insert a hybrid tool to the tool bar (simple version) as the specified position.
149
149
  #
@@ -154,7 +154,7 @@ module Wx::RBN
154
154
  # @param bitmap [Wx::Bitmap]
155
155
  # @param help_string [String]
156
156
  # @return [Integer]
157
- def insert_hybrid_tool(pos, tool_id, bitmap, help_string=Wx::EMPTY_STRING) end
157
+ def insert_hybrid_tool(pos, tool_id, bitmap, help_string=('')) end
158
158
 
159
159
  # Insert a toggle tool to the tool bar (simple version) as the specified position.
160
160
  #
@@ -165,7 +165,7 @@ module Wx::RBN
165
165
  # @param bitmap [Wx::Bitmap]
166
166
  # @param help_string [String]
167
167
  # @return [Integer]
168
- def insert_toggle_tool(pos, tool_id, bitmap, help_string=Wx::EMPTY_STRING) end
168
+ def insert_toggle_tool(pos, tool_id, bitmap, help_string=('')) end
169
169
 
170
170
  # Insert a separator to the tool bar at the specified position.
171
171
  #
@@ -93,7 +93,7 @@ module Wx
93
93
  # Copy constructor, uses Reference Counting.
94
94
  # @param region [Wx::Region]
95
95
  # @return [Region]
96
- # @overload initialize(points, fillStyle=Wx::ODDEVEN_RULE)
96
+ # @overload initialize(points, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE)
97
97
  # Constructs a region corresponding to the polygon made of n points in the provided array.
98
98
  # fillStyle parameter may have values {Wx::PolygonFillMode::WINDING_RULE} or {Wx::PolygonFillMode::ODDEVEN_RULE}.
99
99
  # @param points [Array<Wx::Point>,Array<Array<Integer>>]
@@ -0,0 +1,76 @@
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
+ # This class is used to iterate through the rectangles in a region, typically when examining the damaged regions of a window within an OnPaint call.
10
+ # To use it, construct an iterator object on the stack and loop through the regions, testing the object and incrementing the iterator at the end of the loop.
11
+ # See {Wx::PaintEvent} for an example of use.
12
+ # ===
13
+ #
14
+ # Category: Graphics Device Interface (GDI)
15
+ # Predefined objects/pointers: {Wx::NullRegion}
16
+ # @see Wx::PaintEvent
17
+ #
18
+ #
19
+ class RegionIterator < Object
20
+
21
+ # @overload initialize()
22
+ # Default constructor.
23
+ # @return [RegionIterator]
24
+ # @overload initialize(region)
25
+ # Creates an iterator object given a region.
26
+ # @param region [Wx::Region]
27
+ # @return [RegionIterator]
28
+ def initialize(*args) end
29
+
30
+ # An alias for {Wx::RegionIterator#get_height}.
31
+ # @return [Integer]
32
+ def get_h; end
33
+ alias_method :h, :get_h
34
+
35
+ # Returns the height value for the current region.
36
+ # @return [Integer]
37
+ def get_height; end
38
+ alias_method :height, :get_height
39
+
40
+ # Returns the current rectangle.
41
+ # @return [Wx::Rect]
42
+ def get_rect; end
43
+ alias_method :rect, :get_rect
44
+
45
+ # An alias for {Wx::RegionIterator#get_width}.
46
+ # @return [Integer]
47
+ def get_w; end
48
+ alias_method :w, :get_w
49
+
50
+ # Returns the width value for the current region.
51
+ # @return [Integer]
52
+ def get_width; end
53
+ alias_method :width, :get_width
54
+
55
+ # Returns the x value for the current region.
56
+ # @return [Integer]
57
+ def get_x; end
58
+ alias_method :x, :get_x
59
+
60
+ # Returns the y value for the current region.
61
+ # @return [Integer]
62
+ def get_y; end
63
+ alias_method :y, :get_y
64
+
65
+ # Returns true if there are still some rectangles; otherwise returns false.
66
+ # @return [true,false]
67
+ def have_rects; end
68
+
69
+ # Resets the iterator to the beginning of the rectangles.
70
+ # @return [void]
71
+ def reset; end
72
+
73
+ end # RegionIterator
74
+
75
+
76
+ end
@@ -631,7 +631,7 @@ module Wx::RTC
631
631
  # Sets the border width.
632
632
  # @param width [Wx::TextAttrDimension]
633
633
  # @return [void]
634
- # @overload set_width(value, units=Wx::TEXT_ATTR_UNITS_TENTHS_MM)
634
+ # @overload set_width(value, units=Wx::RTC::TextAttrUnits::TEXT_ATTR_UNITS_TENTHS_MM)
635
635
  # Sets the border width.
636
636
  # @param value [Integer]
637
637
  # @param units [TextAttrUnits]
@@ -732,7 +732,7 @@ module Wx::RTC
732
732
  # Sets the width of all borders.
733
733
  # @param width [Wx::TextAttrDimension]
734
734
  # @return [void]
735
- # @overload set_width(value, units=Wx::TEXT_ATTR_UNITS_TENTHS_MM)
735
+ # @overload set_width(value, units=Wx::RTC::TextAttrUnits::TEXT_ATTR_UNITS_TENTHS_MM)
736
736
  # Sets the width of all borders.
737
737
  # @param value [Integer]
738
738
  # @param units [TextAttrUnits]
@@ -1463,25 +1463,25 @@ module Wx::RTC
1463
1463
  # @return [void]
1464
1464
  def reset_and_clear_commands; end
1465
1465
 
1466
- # @overload load_file(filename, type=Wx::RICHTEXT_TYPE_ANY)
1466
+ # @overload load_file(filename, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)
1467
1467
  # Loads content from a stream or file.
1468
1468
  # Not all handlers will implement file loading.
1469
1469
  # @param filename [String]
1470
1470
  # @param type [RichTextFileType]
1471
1471
  # @return [true,false]
1472
- # @overload load_file(stream, type=Wx::RICHTEXT_TYPE_ANY)
1472
+ # @overload load_file(stream, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)
1473
1473
  # @param stream [IO,Wx::InputStream]
1474
1474
  # @param type [RichTextFileType]
1475
1475
  # @return [true,false]
1476
1476
  def load_file(*args) end
1477
1477
 
1478
- # @overload save_file(filename, type=Wx::RICHTEXT_TYPE_ANY)
1478
+ # @overload save_file(filename, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)
1479
1479
  # Saves content to a stream or file.
1480
1480
  # Not all handlers will implement file saving.
1481
1481
  # @param filename [String]
1482
1482
  # @param type [RichTextFileType]
1483
1483
  # @return [true,false]
1484
- # @overload save_file(stream, type=Wx::RICHTEXT_TYPE_ANY)
1484
+ # @overload save_file(stream, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)
1485
1485
  # @param stream [IO,Wx::OutputStream]
1486
1486
  # @param type [RichTextFileType]
1487
1487
  # @return [true,false]
@@ -1685,7 +1685,7 @@ module Wx::RTC
1685
1685
  # @param leftSubIndent [Integer]
1686
1686
  # @param bulletStyle [Integer]
1687
1687
  # @return [true,false]
1688
- def begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle=(Wx::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TEXT_ATTR_BULLET_STYLE_PERIOD)) end
1688
+ def begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle=(Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_PERIOD)) end
1689
1689
 
1690
1690
  # Ends numbered bullet.
1691
1691
  # @return [true,false]
@@ -1698,7 +1698,7 @@ module Wx::RTC
1698
1698
  # @param leftSubIndent [Integer]
1699
1699
  # @param bulletStyle [Integer]
1700
1700
  # @return [true,false]
1701
- def begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle=Wx::TEXT_ATTR_BULLET_STYLE_SYMBOL) end
1701
+ def begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_SYMBOL) end
1702
1702
 
1703
1703
  # Ends symbol bullet.
1704
1704
  # @return [true,false]
@@ -1711,7 +1711,7 @@ module Wx::RTC
1711
1711
  # @param leftSubIndent [Integer]
1712
1712
  # @param bulletStyle [Integer]
1713
1713
  # @return [true,false]
1714
- def begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle=Wx::TEXT_ATTR_BULLET_STYLE_STANDARD) end
1714
+ def begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD) end
1715
1715
 
1716
1716
  # Ends standard bullet.
1717
1717
  # @return [true,false]
@@ -1752,7 +1752,7 @@ module Wx::RTC
1752
1752
  # @param url [String]
1753
1753
  # @param characterStyle [String]
1754
1754
  # @return [true,false]
1755
- def begin_url(url, characterStyle=Wx::EMPTY_STRING) end
1755
+ def begin_url(url, characterStyle=('')) end
1756
1756
 
1757
1757
  # Ends URL.
1758
1758
  # @return [true,false]
@@ -194,7 +194,7 @@ module Wx::RTC
194
194
  # @overload initialize()
195
195
  # Default constructor.
196
196
  # @return [RichTextCtrl]
197
- # @overload initialize(parent, id=-1, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RE_MULTILINE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR)
197
+ # @overload initialize(parent, id=-1, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RTC::RE_MULTILINE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr)
198
198
  # Constructor, creating and showing a rich text control.
199
199
  #
200
200
  # @see Wx::RTC::RichTextCtrl#create
@@ -220,7 +220,7 @@ module Wx::RTC
220
220
  # @param validator [Wx::Validator]
221
221
  # @param name [String]
222
222
  # @return [true,false]
223
- def create(parent, id=-1, value=Wx::EMPTY_STRING, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RE_MULTILINE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR) end
223
+ def create(parent, id=-1, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::RTC::RE_MULTILINE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TextCtrlNameStr) end
224
224
 
225
225
  # Initialises the members of the control.
226
226
  # @return [void]
@@ -502,7 +502,7 @@ module Wx::RTC
502
502
  # @param file [String]
503
503
  # @param type [Integer]
504
504
  # @return [true,false]
505
- def load_file(file, type=Wx::RICHTEXT_TYPE_ANY) end
505
+ def load_file(file, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
506
506
 
507
507
  # Helper function for {Wx::RTC::RichTextCtrl#load_file}.
508
508
  # Loads content into the control's buffer using the given type.
@@ -519,7 +519,7 @@ module Wx::RTC
519
519
  # @param file [String]
520
520
  # @param type [Integer]
521
521
  # @return [true,false]
522
- def save_file(file=Wx::EMPTY_STRING, type=Wx::RICHTEXT_TYPE_ANY) end
522
+ def save_file(file=(''), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
523
523
 
524
524
  # Helper function for {Wx::RTC::RichTextCtrl#save_file}.
525
525
  # Saves the buffer content using the given type.
@@ -528,7 +528,7 @@ module Wx::RTC
528
528
  # @param file [String]
529
529
  # @param fileType [Integer]
530
530
  # @return [true,false]
531
- def do_save_file(file=Wx::EMPTY_STRING, fileType=Wx::RICHTEXT_TYPE_ANY) end
531
+ def do_save_file(file=(''), fileType=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY) end
532
532
 
533
533
  # Sets flags that change the behaviour of loading or saving.
534
534
  # See the documentation for each handler class to see what flags are relevant for each handler.
@@ -624,7 +624,7 @@ module Wx::RTC
624
624
  # @param style [Wx::RichTextAttr]
625
625
  # @param flags [Integer]
626
626
  # @return [true,false]
627
- def set_style_ex(range, style, flags=Wx::RICHTEXT_SETSTYLE_WITH_UNDO) end
627
+ def set_style_ex(range, style, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
628
628
 
629
629
  # @overload get_uncombined_style(position, style)
630
630
  # Gets the attributes at the given position.
@@ -663,7 +663,7 @@ module Wx::RTC
663
663
  # @param startFrom [Integer]
664
664
  # @param specifiedLevel [Integer]
665
665
  # @return [true,false]
666
- def set_list_style(range, defName, flags=Wx::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) end
666
+ def set_list_style(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) end
667
667
 
668
668
  # Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.
669
669
  # flags is a bit list of the following:
@@ -674,9 +674,9 @@ module Wx::RTC
674
674
  # @param range [Range]
675
675
  # @param flags [Integer]
676
676
  # @return [true,false]
677
- def clear_list_style(range, flags=Wx::RICHTEXT_SETSTYLE_WITH_UNDO) end
677
+ def clear_list_style(range, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
678
678
 
679
- # @overload number_list(range, def_=nil, flags=Wx::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
679
+ # @overload number_list(range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
680
680
  # Numbers the paragraphs in the given range.
681
681
  # Pass flags to determine how the attributes are set.
682
682
  # Either the style definition or the name of the style definition (in the current sheet) can be passed.
@@ -691,7 +691,7 @@ module Wx::RTC
691
691
  # @param startFrom [Integer]
692
692
  # @param specifiedLevel [Integer]
693
693
  # @return [true,false]
694
- # @overload number_list(range, defName, flags=Wx::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
694
+ # @overload number_list(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
695
695
  # @param range [Range]
696
696
  # @param defName [String]
697
697
  # @param flags [Integer]
@@ -700,7 +700,7 @@ module Wx::RTC
700
700
  # @return [true,false]
701
701
  def number_list(*args) end
702
702
 
703
- # @overload promote_list(promoteBy, range, def_=nil, flags=Wx::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
703
+ # @overload promote_list(promoteBy, range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
704
704
  # Promotes or demotes the paragraphs in the given range.
705
705
  # A positive promoteBy produces a smaller indent, and a negative number produces a larger indent. Pass flags to determine how the attributes are set. Either the style definition or the name of the style definition (in the current sheet) can be passed.
706
706
  # flags is a bit list of the following:
@@ -716,7 +716,7 @@ module Wx::RTC
716
716
  # @param flags [Integer]
717
717
  # @param specifiedLevel [Integer]
718
718
  # @return [true,false]
719
- # @overload promote_list(promoteBy, range, defName, flags=Wx::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
719
+ # @overload promote_list(promoteBy, range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
720
720
  # @param promoteBy [Integer]
721
721
  # @param range [Range]
722
722
  # @param defName [String]
@@ -734,7 +734,7 @@ module Wx::RTC
734
734
  # @param properties [Wx::RichTextProperties]
735
735
  # @param flags [Integer]
736
736
  # @return [true,false]
737
- def set_properties(range, properties, flags=Wx::RICHTEXT_SETPROPERTIES_WITH_UNDO) end
737
+ def set_properties(range, properties, flags=Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO) end
738
738
 
739
739
  # Deletes the content within the given range.
740
740
  # @param range [Range]
@@ -879,14 +879,14 @@ module Wx::RTC
879
879
  def has_unfocused_selection; end
880
880
  alias_method :has_unfocused_selection?, :has_unfocused_selection
881
881
 
882
- # @overload write_image(image, bitmapType=Wx::BITMAP_TYPE_PNG, textAttr=(Wx::RichTextAttr.new()))
882
+ # @overload write_image(image, bitmapType=Wx::BitmapType::BITMAP_TYPE_PNG, textAttr=(Wx::RichTextAttr.new()))
883
883
  # Write a bitmap or image at the current insertion point.
884
884
  # Supply an optional type to use for internal and file storage of the raw data.
885
885
  # @param image [Wx::Image]
886
886
  # @param bitmapType [BitmapType]
887
887
  # @param textAttr [Wx::RichTextAttr]
888
888
  # @return [true,false]
889
- # @overload write_image(bitmap, bitmapType=Wx::BITMAP_TYPE_PNG, textAttr=(Wx::RichTextAttr.new()))
889
+ # @overload write_image(bitmap, bitmapType=Wx::BitmapType::BITMAP_TYPE_PNG, textAttr=(Wx::RichTextAttr.new()))
890
890
  # @param bitmap [Wx::Bitmap]
891
891
  # @param bitmapType [BitmapType]
892
892
  # @param textAttr [Wx::RichTextAttr]
@@ -1053,7 +1053,7 @@ module Wx::RTC
1053
1053
  # @param leftSubIndent [Integer]
1054
1054
  # @param bulletStyle [Integer]
1055
1055
  # @return [true,false]
1056
- def begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle=(Wx::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TEXT_ATTR_BULLET_STYLE_PERIOD)) end
1056
+ def begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle=(Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_PERIOD)) end
1057
1057
 
1058
1058
  # Ends application of a numbered bullet.
1059
1059
  # @return [true,false]
@@ -1066,7 +1066,7 @@ module Wx::RTC
1066
1066
  # @param leftSubIndent [Integer]
1067
1067
  # @param bulletStyle [Integer]
1068
1068
  # @return [true,false]
1069
- def begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle=Wx::TEXT_ATTR_BULLET_STYLE_SYMBOL) end
1069
+ def begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_SYMBOL) end
1070
1070
 
1071
1071
  # Ends applying a symbol bullet.
1072
1072
  # @return [true,false]
@@ -1078,7 +1078,7 @@ module Wx::RTC
1078
1078
  # @param leftSubIndent [Integer]
1079
1079
  # @param bulletStyle [Integer]
1080
1080
  # @return [true,false]
1081
- def begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle=Wx::TEXT_ATTR_BULLET_STYLE_STANDARD) end
1081
+ def begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD) end
1082
1082
 
1083
1083
  # Begins applying a standard bullet.
1084
1084
  # @return [true,false]
@@ -1119,7 +1119,7 @@ module Wx::RTC
1119
1119
  # @param url [String]
1120
1120
  # @param characterStyle [String]
1121
1121
  # @return [true,false]
1122
- def begin_url(url, characterStyle=Wx::EMPTY_STRING) end
1122
+ def begin_url(url, characterStyle=('')) end
1123
1123
 
1124
1124
  # Ends applying a URL.
1125
1125
  # @return [true,false]
@@ -21,7 +21,7 @@ module Wx::RTC
21
21
  # @param ext [String]
22
22
  # @param type [Integer]
23
23
  # @return [RichTextFileHandler]
24
- def initialize(name=Wx::EMPTY_STRING, ext=Wx::EMPTY_STRING, type=0) end
24
+ def initialize(name=(''), ext=(''), type=0) end
25
25
 
26
26
  # @overload load_file(buffer, stream)
27
27
  # Loads the buffer from a stream.
@@ -153,7 +153,7 @@ module Wx::RTC
153
153
  # @param ext [String]
154
154
  # @param type [RichTextFileType]
155
155
  # @return [RichTextPlainTextHandler]
156
- def initialize(name=("Wx::TEXT"), ext=("Wx::TXT"), type=Wx::RICHTEXT_TYPE_TEXT) end
156
+ def initialize(name=("Text"), ext=("txt"), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_TEXT) end
157
157
 
158
158
  # Returns true if we can save using this handler.
159
159
  # @return [true,false]
@@ -89,7 +89,7 @@ module Wx::RTC
89
89
  # @param page [RichTextOddEvenPage]
90
90
  # @param location [RichTextPageLocation]
91
91
  # @return [String]
92
- def get_footer_text(page=Wx::RICHTEXT_PAGE_EVEN, location=Wx::RICHTEXT_PAGE_CENTRE) end
92
+ def get_footer_text(page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end
93
93
  alias_method :footer_text, :get_footer_text
94
94
 
95
95
  # Returns the margin between the text and the header.
@@ -101,7 +101,7 @@ module Wx::RTC
101
101
  # @param page [RichTextOddEvenPage]
102
102
  # @param location [RichTextPageLocation]
103
103
  # @return [String]
104
- def get_header_text(page=Wx::RICHTEXT_PAGE_EVEN, location=Wx::RICHTEXT_PAGE_CENTRE) end
104
+ def get_header_text(page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_EVEN, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end
105
105
  alias_method :header_text, :get_header_text
106
106
 
107
107
  # Returns true if the header and footer will be shown on the first page.
@@ -137,7 +137,7 @@ module Wx::RTC
137
137
  # @param page [RichTextOddEvenPage]
138
138
  # @param location [RichTextPageLocation]
139
139
  # @return [void]
140
- def set_footer_text(text, page=Wx::RICHTEXT_PAGE_ALL, location=Wx::RICHTEXT_PAGE_CENTRE) end
140
+ def set_footer_text(text, page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end
141
141
  alias_method :footer_text=, :set_footer_text
142
142
 
143
143
  # Sets the header text on odd or even pages, and at a given position on the page (left, centre or right).
@@ -145,7 +145,7 @@ module Wx::RTC
145
145
  # @param page [RichTextOddEvenPage]
146
146
  # @param location [RichTextPageLocation]
147
147
  # @return [void]
148
- def set_header_text(text, page=Wx::RICHTEXT_PAGE_ALL, location=Wx::RICHTEXT_PAGE_CENTRE) end
148
+ def set_header_text(text, page=Wx::RTC::RichTextOddEvenPage::RICHTEXT_PAGE_ALL, location=Wx::RTC::RichTextPageLocation::RICHTEXT_PAGE_CENTRE) end
149
149
  alias_method :header_text=, :set_header_text
150
150
 
151
151
  # Sets the margins between text and header or footer, in tenths of a millimeter.
@@ -30,7 +30,7 @@ module Wx::RTC
30
30
  # @param ext [String]
31
31
  # @param type [Integer]
32
32
  # @return [RichTextHTMLHandler]
33
- def initialize(name=("Wx::HTML"), ext=("Wx::HTML"), type=Wx::RICHTEXT_TYPE_HTML) end
33
+ def initialize(name=("Wx::HTML"), ext=("Wx::HTML"), type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_HTML) end
34
34
 
35
35
  # Clears the image locations generated by the last operation.
36
36
  # @return [void]