wxruby3 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (541) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS.md +32 -25
  3. data/INSTALL.md +21 -6
  4. data/README.md +5 -5
  5. data/assets/repo-social-preview.odg +0 -0
  6. data/assets/repo-social-preview.xcf +0 -0
  7. data/ext/wxruby3/include/wxRubyApp.h +58 -45
  8. data/ext/wxruby3/include/wxruby-runtime.h +78 -1
  9. data/ext/wxruby3/swig/common.i +2 -2
  10. data/ext/wxruby3/swig/custom/director.swg +2 -2
  11. data/ext/wxruby3/swig/custom/rubyprimtypes.swg +59 -15
  12. data/ext/wxruby3/swig/custom/rubyrun.swg +4 -0
  13. data/ext/wxruby3/swig/custom/rubytracking.swg +4 -0
  14. data/ext/wxruby3/swig/custom/swiglabels.swg +129 -0
  15. data/ext/wxruby3/swig/custom/swigrun.swg +15 -0
  16. data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +20 -0
  17. data/ext/wxruby3/swig/mark_free_impl.i +154 -88
  18. data/ext/wxruby3/swig/memory_management.i +1 -0
  19. data/ext/wxruby3/swig/wx.i +73 -44
  20. data/lib/wx/aui/events/evt_list.rb +148 -0
  21. data/lib/wx/aui/require.rb +0 -1
  22. data/lib/wx/core/calendar_ctrl.rb +15 -0
  23. data/lib/wx/core/clipboard.rb +9 -13
  24. data/lib/wx/core/config.rb +1 -1
  25. data/lib/wx/core/events/evt_list.rb +1458 -0
  26. data/lib/wx/core/font/encoding.rb +113 -0
  27. data/lib/wx/core/generic_validator.rb +83 -31
  28. data/lib/wx/core/tipwindow.rb +16 -0
  29. data/lib/wx/core/variant.rb +6 -0
  30. data/lib/wx/doc/aui/auitabctrl.rb +35 -0
  31. data/lib/wx/doc/config.rb +2 -2
  32. data/lib/wx/doc/functions.rb +1 -1
  33. data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
  34. data/lib/wx/doc/gen/accelerator.rb +178 -0
  35. data/lib/wx/doc/gen/activity_indicator.rb +83 -0
  36. data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
  37. data/lib/wx/doc/gen/animation.rb +275 -0
  38. data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
  39. data/lib/wx/doc/gen/any_button.rb +191 -0
  40. data/lib/wx/doc/gen/app.rb +463 -0
  41. data/lib/wx/doc/gen/app_traits.rb +396 -0
  42. data/lib/wx/doc/gen/art_provider.rb +605 -0
  43. data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
  44. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
  45. data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
  46. data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
  47. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
  48. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
  49. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
  50. data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
  51. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
  52. data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
  53. data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
  54. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
  55. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
  56. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
  57. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
  58. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
  59. data/lib/wx/doc/gen/aui/event_list.rb +179 -0
  60. data/lib/wx/doc/gen/banner_window.rb +124 -0
  61. data/lib/wx/doc/gen/bitmap.rb +731 -0
  62. data/lib/wx/doc/gen/bitmap_button.rb +123 -0
  63. data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
  64. data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
  65. data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
  66. data/lib/wx/doc/gen/box_sizer.rb +85 -0
  67. data/lib/wx/doc/gen/brush.rb +251 -0
  68. data/lib/wx/doc/gen/busy_info.rb +157 -0
  69. data/lib/wx/doc/gen/button.rb +182 -0
  70. data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
  71. data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
  72. data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
  73. data/lib/wx/doc/gen/calendar_event.rb +147 -0
  74. data/lib/wx/doc/gen/caret.rb +97 -0
  75. data/lib/wx/doc/gen/check_box.rb +175 -0
  76. data/lib/wx/doc/gen/check_list_box.rb +121 -0
  77. data/lib/wx/doc/gen/choice.rb +175 -0
  78. data/lib/wx/doc/gen/choicebook.rb +116 -0
  79. data/lib/wx/doc/gen/client_dc.rb +43 -0
  80. data/lib/wx/doc/gen/clipboard.rb +144 -0
  81. data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
  82. data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
  83. data/lib/wx/doc/gen/colour.rb +333 -0
  84. data/lib/wx/doc/gen/colour_dialog.rb +190 -0
  85. data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
  86. data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
  87. data/lib/wx/doc/gen/combo_box.rb +292 -0
  88. data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
  89. data/lib/wx/doc/gen/command_link_button.rb +134 -0
  90. data/lib/wx/doc/gen/config_base.rb +10 -0
  91. data/lib/wx/doc/gen/context_help_button.rb +109 -0
  92. data/lib/wx/doc/gen/control.rb +277 -0
  93. data/lib/wx/doc/gen/control_with_items.rb +253 -0
  94. data/lib/wx/doc/gen/core.rb +45 -0
  95. data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
  96. data/lib/wx/doc/gen/cursor.rb +193 -0
  97. data/lib/wx/doc/gen/data_format.rb +85 -0
  98. data/lib/wx/doc/gen/data_object.rb +436 -0
  99. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  100. data/lib/wx/doc/gen/date_event.rb +49 -0
  101. data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
  102. data/lib/wx/doc/gen/dc.rb +1631 -0
  103. data/lib/wx/doc/gen/dc_overlay.rb +102 -0
  104. data/lib/wx/doc/gen/defs.rb +2802 -0
  105. data/lib/wx/doc/gen/dial_up_event.rb +45 -0
  106. data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
  107. data/lib/wx/doc/gen/dialog.rb +541 -0
  108. data/lib/wx/doc/gen/dir_dialog.rb +164 -0
  109. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
  110. data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
  111. data/lib/wx/doc/gen/display.rb +238 -0
  112. data/lib/wx/doc/gen/drag_drop.rb +299 -0
  113. data/lib/wx/doc/gen/drag_image.rb +116 -0
  114. data/lib/wx/doc/gen/editable_list_box.rb +109 -0
  115. data/lib/wx/doc/gen/event.rb +990 -0
  116. data/lib/wx/doc/gen/event_blocker.rb +50 -0
  117. data/lib/wx/doc/gen/event_filter.rb +92 -0
  118. data/lib/wx/doc/gen/event_list.rb +1644 -0
  119. data/lib/wx/doc/gen/events.rb +2809 -0
  120. data/lib/wx/doc/gen/evt_handler.rb +229 -0
  121. data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
  122. data/lib/wx/doc/gen/file_ctrl.rb +231 -0
  123. data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
  124. data/lib/wx/doc/gen/file_dialog.rb +353 -0
  125. data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
  126. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
  127. data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
  128. data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
  129. data/lib/wx/doc/gen/file_system.rb +232 -0
  130. data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
  131. data/lib/wx/doc/gen/find_replace_data.rb +60 -0
  132. data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
  133. data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
  134. data/lib/wx/doc/gen/font.rb +1379 -0
  135. data/lib/wx/doc/gen/font_data.rb +151 -0
  136. data/lib/wx/doc/gen/font_dialog.rb +88 -0
  137. data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
  138. data/lib/wx/doc/gen/font_picker_event.rb +65 -0
  139. data/lib/wx/doc/gen/frame.rb +352 -0
  140. data/lib/wx/doc/gen/fs_file.rb +337 -0
  141. data/lib/wx/doc/gen/functions.rb +10 -0
  142. data/lib/wx/doc/gen/gauge.rb +157 -0
  143. data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
  144. data/lib/wx/doc/gen/gcdc.rb +46 -0
  145. data/lib/wx/doc/gen/gdi_common.rb +1271 -0
  146. data/lib/wx/doc/gen/gdi_object.rb +31 -0
  147. data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
  148. data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
  149. data/lib/wx/doc/gen/geometry.rb +661 -0
  150. data/lib/wx/doc/gen/graphics_context.rb +1184 -0
  151. data/lib/wx/doc/gen/graphics_object.rb +750 -0
  152. data/lib/wx/doc/gen/grid/event_list.rb +191 -0
  153. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
  154. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
  155. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
  156. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
  157. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
  158. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
  159. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
  160. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
  161. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
  162. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
  163. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
  164. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
  165. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
  166. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
  167. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
  168. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
  169. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
  170. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
  171. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
  172. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
  173. data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
  174. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
  175. data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
  176. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
  177. data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
  178. data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
  179. data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
  180. data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
  181. data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
  182. data/lib/wx/doc/gen/grid_sizer.rb +195 -0
  183. data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
  184. data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
  185. data/lib/wx/doc/gen/header_ctrl.rb +880 -0
  186. data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
  187. data/lib/wx/doc/gen/help_controller.rb +195 -0
  188. data/lib/wx/doc/gen/help_provider.rb +98 -0
  189. data/lib/wx/doc/gen/html/event_list.rb +38 -0
  190. data/lib/wx/doc/gen/html/html_cell.rb +536 -0
  191. data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
  192. data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
  193. data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
  194. data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
  195. data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
  196. data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
  197. data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
  198. data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
  199. data/lib/wx/doc/gen/html/html_printout.rb +109 -0
  200. data/lib/wx/doc/gen/html/html_window.rb +461 -0
  201. data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
  202. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  203. data/lib/wx/doc/gen/icon.rb +267 -0
  204. data/lib/wx/doc/gen/icon_location.rb +40 -0
  205. data/lib/wx/doc/gen/image.rb +1371 -0
  206. data/lib/wx/doc/gen/image_list.rb +168 -0
  207. data/lib/wx/doc/gen/info_bar.rb +195 -0
  208. data/lib/wx/doc/gen/keyboard_state.rb +140 -0
  209. data/lib/wx/doc/gen/list_box.rb +304 -0
  210. data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
  211. data/lib/wx/doc/gen/list_event.rb +208 -0
  212. data/lib/wx/doc/gen/listbook.rb +116 -0
  213. data/lib/wx/doc/gen/locale.rb +4293 -0
  214. data/lib/wx/doc/gen/log.rb +603 -0
  215. data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
  216. data/lib/wx/doc/gen/mdi_frame.rb +324 -0
  217. data/lib/wx/doc/gen/media_ctrl.rb +269 -0
  218. data/lib/wx/doc/gen/media_event.rb +117 -0
  219. data/lib/wx/doc/gen/memory_dc.rb +174 -0
  220. data/lib/wx/doc/gen/menu.rb +509 -0
  221. data/lib/wx/doc/gen/menu_bar.rb +287 -0
  222. data/lib/wx/doc/gen/menu_item.rb +362 -0
  223. data/lib/wx/doc/gen/message_dialog.rb +238 -0
  224. data/lib/wx/doc/gen/mini_frame.rb +108 -0
  225. data/lib/wx/doc/gen/mirror_dc.rb +22 -0
  226. data/lib/wx/doc/gen/mouse_state.rb +150 -0
  227. data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
  228. data/lib/wx/doc/gen/non_owned_window.rb +49 -0
  229. data/lib/wx/doc/gen/notebook.rb +278 -0
  230. data/lib/wx/doc/gen/num_validator.rb +37 -0
  231. data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
  232. data/lib/wx/doc/gen/object.rb +59 -0
  233. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
  234. data/lib/wx/doc/gen/paint_dc.rb +27 -0
  235. data/lib/wx/doc/gen/palette.rb +92 -0
  236. data/lib/wx/doc/gen/panel.rb +127 -0
  237. data/lib/wx/doc/gen/pen.rb +511 -0
  238. data/lib/wx/doc/gen/persistence_manager.rb +135 -0
  239. data/lib/wx/doc/gen/persistent_object.rb +52 -0
  240. data/lib/wx/doc/gen/persistent_window.rb +241 -0
  241. data/lib/wx/doc/gen/pg/event_list.rb +106 -0
  242. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
  243. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
  244. data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
  245. data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
  246. data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
  247. data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
  248. data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
  249. data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
  250. data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
  251. data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
  252. data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
  253. data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
  254. data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
  255. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
  256. data/lib/wx/doc/gen/picker_base.rb +152 -0
  257. data/lib/wx/doc/gen/platform_info.rb +622 -0
  258. data/lib/wx/doc/gen/popup_window.rb +107 -0
  259. data/lib/wx/doc/gen/progress_dialog.rb +100 -0
  260. data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
  261. data/lib/wx/doc/gen/prt/event_list.rb +17 -0
  262. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
  263. data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
  264. data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
  265. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
  266. data/lib/wx/doc/gen/prt/print_data.rb +804 -0
  267. data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
  268. data/lib/wx/doc/gen/prt/printer.rb +518 -0
  269. data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
  270. data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
  271. data/lib/wx/doc/gen/radio_box.rb +306 -0
  272. data/lib/wx/doc/gen/radio_button.rb +159 -0
  273. data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
  274. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
  275. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
  276. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
  277. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
  278. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
  279. data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
  280. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
  281. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
  282. data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
  283. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
  284. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
  285. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
  286. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
  287. data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
  288. data/lib/wx/doc/gen/rearrange_list.rb +123 -0
  289. data/lib/wx/doc/gen/region.rb +380 -0
  290. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  291. data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
  292. data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
  293. data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
  294. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
  295. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
  296. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
  297. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
  298. data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
  299. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
  300. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
  301. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
  302. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
  303. data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
  304. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
  305. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
  306. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
  307. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
  308. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
  309. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
  310. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
  311. data/lib/wx/doc/gen/sash_event.rb +147 -0
  312. data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
  313. data/lib/wx/doc/gen/sash_window.rb +171 -0
  314. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  315. data/lib/wx/doc/gen/screen_dc.rb +30 -0
  316. data/lib/wx/doc/gen/scroll_bar.rb +204 -0
  317. data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
  318. data/lib/wx/doc/gen/scrolled_control.rb +410 -0
  319. data/lib/wx/doc/gen/scrolled_window.rb +430 -0
  320. data/lib/wx/doc/gen/search_ctrl.rb +159 -0
  321. data/lib/wx/doc/gen/secret_store.rb +116 -0
  322. data/lib/wx/doc/gen/simplebook.rb +110 -0
  323. data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
  324. data/lib/wx/doc/gen/sizer.rb +945 -0
  325. data/lib/wx/doc/gen/sizer_item.rb +244 -0
  326. data/lib/wx/doc/gen/slider.rb +342 -0
  327. data/lib/wx/doc/gen/spin_button.rb +157 -0
  328. data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
  329. data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
  330. data/lib/wx/doc/gen/spin_double_event.rb +55 -0
  331. data/lib/wx/doc/gen/spin_event.rb +51 -0
  332. data/lib/wx/doc/gen/splash_screen.rb +113 -0
  333. data/lib/wx/doc/gen/splitter_event.rb +99 -0
  334. data/lib/wx/doc/gen/splitter_window.rb +498 -0
  335. data/lib/wx/doc/gen/static_bitmap.rb +256 -0
  336. data/lib/wx/doc/gen/static_box.rb +180 -0
  337. data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
  338. data/lib/wx/doc/gen/static_line.rb +83 -0
  339. data/lib/wx/doc/gen/static_text.rb +127 -0
  340. data/lib/wx/doc/gen/status_bar.rb +290 -0
  341. data/lib/wx/doc/gen/stc/event_list.rb +221 -0
  342. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
  343. data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
  344. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
  345. data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
  346. data/lib/wx/doc/gen/system_options.rb +129 -0
  347. data/lib/wx/doc/gen/system_settings.rb +507 -0
  348. data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
  349. data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
  350. data/lib/wx/doc/gen/text_attr.rb +756 -0
  351. data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
  352. data/lib/wx/doc/gen/text_entry.rb +441 -0
  353. data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
  354. data/lib/wx/doc/gen/text_validator.rb +245 -0
  355. data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
  356. data/lib/wx/doc/gen/timer.rb +119 -0
  357. data/lib/wx/doc/gen/timer_event.rb +68 -0
  358. data/lib/wx/doc/gen/tip_provider.rb +63 -0
  359. data/lib/wx/doc/gen/tip_window.rb +51 -0
  360. data/lib/wx/doc/gen/toggle_button.rb +182 -0
  361. data/lib/wx/doc/gen/tool_bar.rb +890 -0
  362. data/lib/wx/doc/gen/tool_tip.rb +86 -0
  363. data/lib/wx/doc/gen/toolbook.rb +118 -0
  364. data/lib/wx/doc/gen/top_level_window.rb +497 -0
  365. data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
  366. data/lib/wx/doc/gen/tree_event.rb +127 -0
  367. data/lib/wx/doc/gen/treebook.rb +180 -0
  368. data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
  369. data/lib/wx/doc/gen/utils.rb +273 -0
  370. data/lib/wx/doc/gen/v_list_box.rb +272 -0
  371. data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
  372. data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
  373. data/lib/wx/doc/gen/validator.rb +68 -0
  374. data/lib/wx/doc/gen/variant.rb +294 -0
  375. data/lib/wx/doc/gen/window.rb +2917 -0
  376. data/lib/wx/doc/gen/window_dc.rb +38 -0
  377. data/lib/wx/doc/gen/window_disabler.rb +30 -0
  378. data/lib/wx/doc/gen/with_images.rb +84 -0
  379. data/lib/wx/doc/gen/wizard.rb +257 -0
  380. data/lib/wx/doc/gen/wizard_event.rb +113 -0
  381. data/lib/wx/doc/gen/wizard_page.rb +65 -0
  382. data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
  383. data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
  384. data/lib/wx/doc/gen/xml_node.rb +316 -0
  385. data/lib/wx/doc/gen/xml_resource.rb +320 -0
  386. data/lib/wx/doc/generic_validator.rb +5 -0
  387. data/lib/wx/doc/pg/pg_property.rb +5 -0
  388. data/lib/wx/doc/tip_window.rb +18 -6
  389. data/lib/wx/doc/variant.rb +30 -0
  390. data/lib/wx/grid/events/evt_list.rb +166 -0
  391. data/lib/wx/html/events/evt_list.rb +27 -0
  392. data/lib/wx/html/simple_html_listbox.rb +46 -33
  393. data/lib/wx/keyword_defs.rb +9 -0
  394. data/lib/wx/pg/events/evt_list.rb +73 -0
  395. data/lib/wx/pg/pg_property.rb +85 -52
  396. data/lib/wx/pg/property_grid_interface.rb +12 -2
  397. data/lib/wx/rbn/events/evt_list.rb +102 -0
  398. data/lib/wx/rtc/events/evt_list.rb +98 -0
  399. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  400. data/lib/wx/stc/events/evt_list.rb +178 -0
  401. data/lib/wx/version.rb +1 -1
  402. data/lib/wx/wxruby/cmd/setup.rb +6 -0
  403. data/rakelib/configure.rb +9 -0
  404. data/rakelib/gem.rake +84 -66
  405. data/rakelib/gem.rb +4 -20
  406. data/rakelib/lib/config/linux.rb +1 -1
  407. data/rakelib/lib/config/macosx.rb +15 -1
  408. data/rakelib/lib/config/pkgman/linux.rb +7 -2
  409. data/rakelib/lib/config/unixish.rb +3 -3
  410. data/rakelib/lib/config.rb +19 -8
  411. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  412. data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
  413. data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
  414. data/rakelib/lib/core/include/swigrun.inc +189 -0
  415. data/rakelib/lib/core/package.rb +3 -1
  416. data/rakelib/lib/core/spec.rb +1 -1
  417. data/rakelib/lib/director/accelerator.rb +1 -1
  418. data/rakelib/lib/director/animation.rb +1 -0
  419. data/rakelib/lib/director/app_traits.rb +1 -1
  420. data/rakelib/lib/director/aui_manager.rb +21 -14
  421. data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
  422. data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
  423. data/rakelib/lib/director/aui_notebook.rb +20 -3
  424. data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
  425. data/rakelib/lib/director/bitmap_combobox.rb +4 -2
  426. data/rakelib/lib/director/calendar_ctrl.rb +72 -14
  427. data/rakelib/lib/director/clipboard.rb +2 -0
  428. data/rakelib/lib/director/data_object.rb +15 -7
  429. data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
  430. data/rakelib/lib/director/display.rb +81 -0
  431. data/rakelib/lib/director/event.rb +33 -16
  432. data/rakelib/lib/director/event_handler.rb +27 -2
  433. data/rakelib/lib/director/functions.rb +9 -0
  434. data/rakelib/lib/director/geometry.rb +5 -0
  435. data/rakelib/lib/director/grid_ctrl.rb +123 -28
  436. data/rakelib/lib/director/help_provider.rb +1 -1
  437. data/rakelib/lib/director/html_listbox.rb +30 -4
  438. data/rakelib/lib/director/hvscrolled.rb +154 -0
  439. data/rakelib/lib/director/image_list.rb +1 -0
  440. data/rakelib/lib/director/mdi_frame.rb +4 -0
  441. data/rakelib/lib/director/menu.rb +56 -15
  442. data/rakelib/lib/director/menu_bar.rb +62 -0
  443. data/rakelib/lib/director/menu_item.rb +7 -1
  444. data/rakelib/lib/director/num_validator.rb +27 -0
  445. data/rakelib/lib/director/numeric_property_validator.rb +9 -0
  446. data/rakelib/lib/director/persistent_window.rb +16 -0
  447. data/rakelib/lib/director/pgproperty.rb +3 -2
  448. data/rakelib/lib/director/popup_window.rb +2 -0
  449. data/rakelib/lib/director/preview_frame.rb +29 -6
  450. data/rakelib/lib/director/printer.rb +59 -5
  451. data/rakelib/lib/director/property_grid.rb +37 -18
  452. data/rakelib/lib/director/property_grid_interface.rb +10 -8
  453. data/rakelib/lib/director/property_grid_manager.rb +99 -39
  454. data/rakelib/lib/director/property_grid_page.rb +60 -0
  455. data/rakelib/lib/director/rich_tooltip.rb +22 -0
  456. data/rakelib/lib/director/richtext_ctrl.rb +5 -0
  457. data/rakelib/lib/director/richtext_object.rb +13 -4
  458. data/rakelib/lib/director/richtext_style_listbox.rb +11 -2
  459. data/rakelib/lib/director/scrolled_t.rb +3 -0
  460. data/rakelib/lib/director/searchctrl.rb +1 -0
  461. data/rakelib/lib/director/task_bar_icon.rb +14 -8
  462. data/rakelib/lib/director/text_validator.rb +9 -0
  463. data/rakelib/lib/director/tip_window.rb +117 -6
  464. data/rakelib/lib/director/tool_bar.rb +6 -0
  465. data/rakelib/lib/director/top_level_window.rb +0 -1
  466. data/rakelib/lib/director/utils.rb +3 -1
  467. data/rakelib/lib/director/validator.rb +12 -0
  468. data/rakelib/lib/director/variant.rb +64 -20
  469. data/rakelib/lib/director/vlistbox.rb +29 -22
  470. data/rakelib/lib/director/window.rb +12 -2
  471. data/rakelib/lib/director/xml_resource.rb +6 -0
  472. data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
  473. data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
  474. data/rakelib/lib/generate/doc.rb +12 -7
  475. data/rakelib/lib/generate/interface.rb +16 -1
  476. data/rakelib/lib/specs/interfaces.rb +6 -2
  477. data/rakelib/lib/swig_runner.rb +12 -12
  478. data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
  479. data/rakelib/lib/typemap/common.rb +3 -3
  480. data/rakelib/lib/typemap/print_page_range.rb +32 -8
  481. data/samples/art/wxruby-512x512.png +0 -0
  482. data/samples/calendar/calendar.rb +64 -1
  483. data/samples/dialogs/dialogs.rb +172 -0
  484. data/samples/dialogs/tip.xpm +157 -0
  485. data/samples/drawing/maths_images.rb +1 -1
  486. data/samples/event/event.rb +1 -1
  487. data/samples/printing/printing2.rb +1 -1
  488. data/samples/sampler.rb +26 -8
  489. data/samples/text/textctrl.rb +2 -2
  490. data/samples/treectrl/treectrl.rb +2 -2
  491. data/tests/lib/leaked_process_event_exception_test.rb +1 -1
  492. data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
  493. data/tests/lib/wxapp_runner.rb +31 -41
  494. data/tests/lib/wxframe_runner.rb +23 -11
  495. data/tests/lib/wxrb_test.rb +58 -0
  496. data/tests/test_app_event_filter.rb +1 -1
  497. data/tests/test_app_exit_exception.rb +3 -3
  498. data/tests/test_app_init_exception.rb +3 -3
  499. data/tests/test_app_traits.rb +24 -21
  500. data/tests/test_art.rb +7 -7
  501. data/tests/test_art_provider.rb +1 -1
  502. data/tests/test_basic.rb +2 -2
  503. data/tests/test_book_controls.rb +1 -1
  504. data/tests/test_box_sizer.rb +1 -1
  505. data/tests/test_clipboard.rb +5 -5
  506. data/tests/test_combo_ctrl.rb +2 -2
  507. data/tests/test_config.rb +11 -1
  508. data/tests/test_dc.rb +1 -1
  509. data/tests/test_dialog.rb +1 -1
  510. data/tests/test_event_handling.rb +1 -1
  511. data/tests/test_events.rb +1 -1
  512. data/tests/test_exceptions.rb +2 -2
  513. data/tests/test_ext_controls.rb +10 -10
  514. data/tests/test_file_dialog.rb +1 -1
  515. data/tests/test_font.rb +1 -1
  516. data/tests/test_gdi_object.rb +1 -1
  517. data/tests/test_geometry.rb +2 -2
  518. data/tests/test_grid_sizer.rb +2 -2
  519. data/tests/test_intl.rb +1 -1
  520. data/tests/test_item_data.rb +12 -12
  521. data/tests/test_list_ctrl.rb +1 -1
  522. data/tests/test_log.rb +2 -2
  523. data/tests/test_media_ctrl.rb +1 -1
  524. data/tests/test_menu.rb +114 -43
  525. data/tests/test_proof_check.rb +1 -1
  526. data/tests/test_propgrid.rb +857 -0
  527. data/tests/test_richtext.rb +10 -24
  528. data/tests/test_secret_store.rb +1 -1
  529. data/tests/test_sizer.rb +1 -1
  530. data/tests/test_std_controls.rb +8 -8
  531. data/tests/test_styled_text_ctrl.rb +1 -1
  532. data/tests/test_timer.rb +1 -1
  533. data/tests/test_tree_ctrl.rb +1 -1
  534. data/tests/test_validators.rb +79 -36
  535. data/tests/test_variant.rb +1 -1
  536. data/tests/test_window.rb +11 -11
  537. data/tests/testapp.rb +2 -2
  538. data/tests/testapp_noframe.rb +2 -2
  539. metadata +402 -12
  540. data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
  541. data/rakelib/lib/director/hvscrolled_window.rb +0 -140
@@ -0,0 +1,1240 @@
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
+ module RTC
10
+
11
+ # This class knows how to lay out paragraphs.
12
+ #
13
+ # Category: Rich Text
14
+ # @see Wx::RTC::RichTextCompositeObject
15
+ # @see Wx::RTC::RichTextObject
16
+ # @see Wx::RTC::RichTextBuffer
17
+ # @see Wx::RTC::RichTextCtrl
18
+ #
19
+ #
20
+ #
21
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
22
+ # @wxrb_require USE_RICHTEXT
23
+ class RichTextParagraphLayoutBox < RichTextCompositeObject
24
+
25
+ # @overload initialize(parent=nil)
26
+ # @param parent [Wx::RTC::RichTextObject]
27
+ # @return [Wx::RTC::RichTextParagraphLayoutBox]
28
+ # @overload initialize(obj)
29
+ # @param obj [Wx::RTC::RichTextParagraphLayoutBox]
30
+ # @return [Wx::RTC::RichTextParagraphLayoutBox]
31
+ def initialize(*args) end
32
+
33
+ # Hit-testing: returns a flag indicating hit test details, plus information about position.
34
+ #
35
+ # contextObj is returned to specify what object position is relevant to, since otherwise there's an ambiguity. @ obj might not be a child of contextObj, since we may be referring to the container itself if we have no hit on a child - for example if we click outside an object.
36
+ # The function puts the position in textPosition if one is found. pt is in logical units (a zero y position is at the beginning of the buffer).
37
+ # One of the {Wx::RTC::RichTextHitTestFlags} values.
38
+ # @param dc [Wx::ReadOnlyDC]
39
+ # @param context [Wx::RTC::RichTextDrawingContext]
40
+ # @param pt [Array(Integer, Integer), Wx::Point]
41
+ # @param textPosition [Integer]
42
+ # @param flags [Integer]
43
+ # @return [Array(Integer,Integer,Wx::RTC::RichTextObject,Wx::RTC::RichTextObject)]
44
+ def hit_test(dc, context, pt, textPosition, flags=0) end
45
+
46
+ # Draw the item, within the given range.
47
+ #
48
+ # Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
49
+ # @param dc [Wx::DC]
50
+ # @param context [Wx::RTC::RichTextDrawingContext]
51
+ # @param range [Range]
52
+ # @param selection [Wx::RTC::RichTextSelection]
53
+ # @param rect [Wx::Rect]
54
+ # @param descent [Integer]
55
+ # @param style [Integer]
56
+ # @return [Boolean]
57
+ def draw(dc, context, range, selection, rect, descent, style) end
58
+
59
+ # Lay the item out at the specified position with the given size constraint.
60
+ #
61
+ # Layout must set the cached size. rect is the available space for the object, and parentRect is the container that is used to determine a relative size or position (for example if a text box must be 50% of the parent text box).
62
+ # @param dc [Wx::ReadOnlyDC]
63
+ # @param context [Wx::RTC::RichTextDrawingContext]
64
+ # @param rect [Wx::Rect]
65
+ # @param parentRect [Wx::Rect]
66
+ # @param style [Integer]
67
+ # @return [Boolean]
68
+ def layout(dc, context, rect, parentRect, style) end
69
+
70
+ # Returns the object size for the given range.
71
+ #
72
+ # Returns false if the range is invalid for this object.
73
+ # @param range [Range]
74
+ # @param size [Array(Integer, Integer), Wx::Size]
75
+ # @param descent [int]
76
+ # @param dc [Wx::ReadOnlyDC]
77
+ # @param context [Wx::RTC::RichTextDrawingContext]
78
+ # @param flags [Integer]
79
+ # @param position [Array(Integer, Integer), Wx::Point]
80
+ # @param parentSize [Array(Integer, Integer), Wx::Size]
81
+ # @param partialExtents [Array,nil]
82
+ # @return [Boolean]
83
+ def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
84
+ alias_method :range_size, :get_range_size
85
+
86
+ # Deletes the given range.
87
+ # @param range [Range]
88
+ # @return [Boolean]
89
+ def delete_range(range) end
90
+
91
+ # Returns any text in this object for the given range.
92
+ # @param range [Range]
93
+ # @return [String]
94
+ def get_text_for_range(range) end
95
+ alias_method :text_for_range, :get_text_for_range
96
+
97
+ # Imports this object from XML.
98
+ # @param buffer [Wx::RTC::RichTextBuffer]
99
+ # @param node [Wx::XmlNode]
100
+ # @param handler [Wx::RTC::RichTextXMLHandler]
101
+ # @param recurse [Boolean]
102
+ # @return [Array(Boolean,Boolean)]
103
+ def import_from_xml(buffer, node, handler, recurse) end
104
+
105
+ # Returns the XML node name of this object.
106
+ #
107
+ # This must be overridden for {Wx::XmlNode}-base XML export to work.
108
+ # @return [String]
109
+ def get_xml_node_name; end
110
+ alias_method :xml_node_name, :get_xml_node_name
111
+
112
+ # Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject is possible.
113
+ #
114
+ # For example, containers supporting text, such as a text box object, can accept the focus, but a table can't (set the focus to individual cells instead).
115
+ # @return [Boolean]
116
+ def accepts_focus; end
117
+
118
+ # Associates a control with the buffer, for operations that for example require refreshing the window.
119
+ # @param ctrl [Wx::RTC::RichTextCtrl]
120
+ # @return [void]
121
+ def set_rich_text_ctrl(ctrl) end
122
+ alias_method :rich_text_ctrl=, :set_rich_text_ctrl
123
+
124
+ # Returns the associated control.
125
+ # @return [Wx::RTC::RichTextCtrl]
126
+ def get_rich_text_ctrl; end
127
+ alias_method :rich_text_ctrl, :get_rich_text_ctrl
128
+
129
+ # Sets a flag indicating whether the last paragraph is partial or complete.
130
+ # @param partialPara [Boolean]
131
+ # @return [void]
132
+ def set_partial_paragraph(partialPara) end
133
+ alias_method :partial_paragraph=, :set_partial_paragraph
134
+
135
+ # Returns a flag indicating whether the last paragraph is partial or complete.
136
+ # @return [Boolean]
137
+ def get_partial_paragraph; end
138
+ alias_method :partial_paragraph, :get_partial_paragraph
139
+
140
+ # Returns the style sheet associated with the overall buffer.
141
+ # @return [Wx::RTC::RichTextStyleSheet]
142
+ def get_style_sheet; end
143
+ alias_method :style_sheet, :get_style_sheet
144
+
145
+ # Returns true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
146
+ # @return [Boolean]
147
+ def is_top_level; end
148
+ alias_method :top_level?, :is_top_level
149
+
150
+ # Submits a command to insert paragraphs.
151
+ # @param buffer [Wx::RTC::RichTextBuffer]
152
+ # @param pos [Integer]
153
+ # @param paragraphs [Wx::RTC::RichTextParagraphLayoutBox]
154
+ # @param ctrl [Wx::RTC::RichTextCtrl]
155
+ # @param flags [Integer]
156
+ # @return [Boolean]
157
+ def insert_paragraphs_with_undo(buffer, pos, paragraphs, ctrl, flags=0) end
158
+
159
+ # Submits a command to insert the given text.
160
+ # @param buffer [Wx::RTC::RichTextBuffer]
161
+ # @param pos [Integer]
162
+ # @param text [String]
163
+ # @param ctrl [Wx::RTC::RichTextCtrl]
164
+ # @param flags [Integer]
165
+ # @return [Boolean]
166
+ def insert_text_with_undo(buffer, pos, text, ctrl, flags=0) end
167
+
168
+ # Submits a command to insert the given text.
169
+ # @param buffer [Wx::RTC::RichTextBuffer]
170
+ # @param pos [Integer]
171
+ # @param ctrl [Wx::RTC::RichTextCtrl]
172
+ # @param flags [Integer]
173
+ # @return [Boolean]
174
+ def insert_newline_with_undo(buffer, pos, ctrl, flags=0) end
175
+
176
+ # Submits a command to insert the given image.
177
+ # @param buffer [Wx::RTC::RichTextBuffer]
178
+ # @param pos [Integer]
179
+ # @param imageBlock [Wx::RTC::RichTextImageBlock]
180
+ # @param ctrl [Wx::RTC::RichTextCtrl]
181
+ # @param flags [Integer]
182
+ # @param textAttr [Wx::RTC::RichTextAttr]
183
+ # @return [Boolean]
184
+ def insert_image_with_undo(buffer, pos, imageBlock, ctrl, flags, textAttr) end
185
+
186
+ # Submits a command to insert the given field.
187
+ #
188
+ # Field data can be included in properties.
189
+ # @see Wx::RTC::RichTextField
190
+ # @see Wx::RTC::RichTextFieldType
191
+ # @see Wx::RTC::RichTextFieldTypeStandard
192
+ # @param buffer [Wx::RTC::RichTextBuffer]
193
+ # @param pos [Integer]
194
+ # @param fieldType [String]
195
+ # @param properties [Wx::RTC::RichTextProperties]
196
+ # @param ctrl [Wx::RTC::RichTextCtrl]
197
+ # @param flags [Integer]
198
+ # @param textAttr [Wx::RTC::RichTextAttr]
199
+ # @return [Wx::RTC::RichTextField]
200
+ def insert_field_with_undo(buffer, pos, fieldType, properties, ctrl, flags, textAttr) end
201
+
202
+ # Returns the style that is appropriate for a new paragraph at this position.
203
+ #
204
+ # If the previous paragraph has a paragraph style name, looks up the next-paragraph style.
205
+ # @param buffer [Wx::RTC::RichTextBuffer]
206
+ # @param pos [Integer]
207
+ # @param caretPosition [Boolean]
208
+ # @param lookUpNewParaStyle [Boolean]
209
+ # @return [Wx::RTC::RichTextAttr]
210
+ def get_style_for_new_paragraph(buffer, pos, caretPosition=false, lookUpNewParaStyle=false) end
211
+ alias_method :style_for_new_paragraph, :get_style_for_new_paragraph
212
+
213
+ # Inserts an object.
214
+ # @param buffer [Wx::RTC::RichTextBuffer]
215
+ # @param pos [Integer]
216
+ # @param object [Wx::RTC::RichTextObject]
217
+ # @param ctrl [Wx::RTC::RichTextCtrl]
218
+ # @param flags [Integer]
219
+ # @return [Wx::RTC::RichTextObject]
220
+ def insert_object_with_undo(buffer, pos, object, ctrl, flags=0) end
221
+
222
+ # Submits a command to delete this range.
223
+ # @param range [Range]
224
+ # @param ctrl [Wx::RTC::RichTextCtrl]
225
+ # @param buffer [Wx::RTC::RichTextBuffer]
226
+ # @return [Boolean]
227
+ def delete_range_with_undo(range, ctrl, buffer) end
228
+
229
+ # Draws the floating objects in this buffer.
230
+ # @param dc [Wx::DC]
231
+ # @param context [Wx::RTC::RichTextDrawingContext]
232
+ # @param range [Range]
233
+ # @param selection [Wx::RTC::RichTextSelection]
234
+ # @param rect [Wx::Rect]
235
+ # @param descent [Integer]
236
+ # @param style [Integer]
237
+ # @return [void]
238
+ def draw_floats(dc, context, range, selection, rect, descent, style) end
239
+
240
+ # Moves an anchored object to another paragraph.
241
+ # @param from [Wx::RTC::RichTextParagraph]
242
+ # @param to [Wx::RTC::RichTextParagraph]
243
+ # @param obj [Wx::RTC::RichTextObject]
244
+ # @return [void]
245
+ def move_anchored_object_to_paragraph(from, to, obj) end
246
+
247
+ # Initializes the object.
248
+ # @return [void]
249
+ def init; end
250
+
251
+ # Clears all the children.
252
+ # @return [void]
253
+ def clear; end
254
+
255
+ # Clears and initializes with one blank paragraph.
256
+ # @return [void]
257
+ def reset; end
258
+
259
+ # Convenience function to add a paragraph of text.
260
+ # @param text [String]
261
+ # @param paraStyle [Wx::RTC::RichTextAttr]
262
+ # @return [Range]
263
+ def add_paragraph(text, paraStyle=nil) end
264
+
265
+ # Convenience function to add an image.
266
+ # @param image [Wx::Image]
267
+ # @param paraStyle [Wx::RTC::RichTextAttr]
268
+ # @return [Range]
269
+ def add_image(image, paraStyle=nil) end
270
+
271
+ # Adds multiple paragraphs, based on newlines.
272
+ # @param text [String]
273
+ # @param paraStyle [Wx::RTC::RichTextAttr]
274
+ # @return [Range]
275
+ def add_paragraphs(text, paraStyle=nil) end
276
+
277
+ # Returns the line at the given position.
278
+ #
279
+ # If caretPosition is true, the position is a caret position, which is normally a smaller number.
280
+ # @param pos [Integer]
281
+ # @param caretPosition [Boolean]
282
+ # @return [Wx::RTC::RichTextLine]
283
+ def get_line_at_position(pos, caretPosition=false) end
284
+ alias_method :line_at_position, :get_line_at_position
285
+
286
+ # Returns the line at the given y pixel position, or the last line.
287
+ # @param y [Integer]
288
+ # @return [Wx::RTC::RichTextLine]
289
+ def get_line_at_y_position(y) end
290
+ alias_method :line_at_y_position, :get_line_at_y_position
291
+
292
+ # Returns the paragraph at the given character or caret position.
293
+ # @param pos [Integer]
294
+ # @param caretPosition [Boolean]
295
+ # @return [Wx::RTC::RichTextParagraph]
296
+ def get_paragraph_at_position(pos, caretPosition=false) end
297
+ alias_method :paragraph_at_position, :get_paragraph_at_position
298
+
299
+ # Returns the line size at the given position.
300
+ # @param pos [Integer]
301
+ # @param caretPosition [Boolean]
302
+ # @return [Wx::Size]
303
+ def get_line_size_at_position(pos, caretPosition=false) end
304
+ alias_method :line_size_at_position, :get_line_size_at_position
305
+
306
+ # Given a position, returns the number of the visible line (potentially many to a paragraph), starting from zero at the start of the buffer.
307
+ #
308
+ # We also have to pass a bool (startOfLine) that indicates whether the caret is being shown at the end of the previous line or at the start of the next, since the caret can be shown at two visible positions for the same underlying position.
309
+ # @param pos [Integer]
310
+ # @param caretPosition [Boolean]
311
+ # @param startOfLine [Boolean]
312
+ # @return [Integer]
313
+ def get_visible_line_number(pos, caretPosition=false, startOfLine=false) end
314
+ alias_method :visible_line_number, :get_visible_line_number
315
+
316
+ # Given a line number, returns the corresponding {Wx::RTC::RichTextLine} object.
317
+ # @param lineNumber [Integer]
318
+ # @return [Wx::RTC::RichTextLine]
319
+ def get_line_for_visible_line_number(lineNumber) end
320
+ alias_method :line_for_visible_line_number, :get_line_for_visible_line_number
321
+
322
+ # Returns the leaf object in a paragraph at this position.
323
+ # @param position [Integer]
324
+ # @return [Wx::RTC::RichTextObject]
325
+ def get_leaf_object_at_position(position) end
326
+ alias_method :leaf_object_at_position, :get_leaf_object_at_position
327
+
328
+ # Returns the paragraph by number.
329
+ # @param paragraphNumber [Integer]
330
+ # @return [Wx::RTC::RichTextParagraph]
331
+ def get_paragraph_at_line(paragraphNumber) end
332
+ alias_method :paragraph_at_line, :get_paragraph_at_line
333
+
334
+ # Returns the paragraph for a given line.
335
+ # @param line [Wx::RTC::RichTextLine]
336
+ # @return [Wx::RTC::RichTextParagraph]
337
+ def get_paragraph_for_line(line) end
338
+ alias_method :paragraph_for_line, :get_paragraph_for_line
339
+
340
+ # Returns the length of the paragraph.
341
+ # @param paragraphNumber [Integer]
342
+ # @return [Integer]
343
+ def get_paragraph_length(paragraphNumber) end
344
+ alias_method :paragraph_length, :get_paragraph_length
345
+
346
+ # Returns the number of paragraphs.
347
+ # @return [Integer]
348
+ def get_paragraph_count; end
349
+ alias_method :paragraph_count, :get_paragraph_count
350
+
351
+ # Returns the number of visible lines.
352
+ # @return [Integer]
353
+ def get_line_count; end
354
+ alias_method :line_count, :get_line_count
355
+
356
+ # Returns the text of the paragraph.
357
+ # @param paragraphNumber [Integer]
358
+ # @return [String]
359
+ def get_paragraph_text(paragraphNumber) end
360
+ alias_method :paragraph_text, :get_paragraph_text
361
+
362
+ # Converts zero-based line column and paragraph number to a position.
363
+ # @param x [Integer]
364
+ # @param y [Integer]
365
+ # @return [Integer]
366
+ def xy_to_position(x, y) end
367
+
368
+ # Converts a zero-based position to line column and paragraph number.
369
+ # @param pos [Integer]
370
+ # @return [Array(Boolean,Integer,Integer)]
371
+ def position_to_xy(pos) end
372
+
373
+ # @overload set_style(range, style, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
374
+ # Sets the attributes for the given range.
375
+ #
376
+ # Pass flags to determine how the attributes are set.
377
+ # The end point of range is specified as the last character position of the span of text. So, for example, to set the style for a character at position 5, use the range (5,5). This differs from the {Wx::RTC::RichTextCtrl} API, where you would specify (5,6).
378
+ # flags may contain a bit list of the following values:
379
+ #
380
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_NONE}: no style flag.
381
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this operation should be undoable.
382
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_OPTIMIZE}: specifies that the style should not be applied if the combined style at this point is already the style in question.
383
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY}: specifies that the style should only be applied to paragraphs, and not the content. This allows content styling to be preserved independently from that of e.g. a named paragraph style.
384
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_CHARACTERS_ONLY}: specifies that the style should only be applied to characters, and not the paragraph. This allows content styling to be preserved independently from that of e.g. a named paragraph style.
385
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_RESET}: resets (clears) the existing style before applying the new style.
386
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_REMOVE}: removes the specified style. Only the style flags are used in this operation.
387
+ # @param range [Range]
388
+ # @param style [Wx::RTC::RichTextAttr]
389
+ # @param flags [Integer]
390
+ # @return [Boolean]
391
+ # @overload set_style(obj, textAttr, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO)
392
+ # Sets the attributes for the given object only, for example the box attributes for a text box.
393
+ # @param obj [Wx::RTC::RichTextObject]
394
+ # @param textAttr [Wx::RTC::RichTextAttr]
395
+ # @param flags [Integer]
396
+ # @return [void]
397
+ def set_style(*args) end
398
+
399
+ # Returns the combined text attributes for this position.
400
+ #
401
+ # This function gets the uncombined style - that is, the attributes associated with the paragraph or character content, and not necessarily the combined attributes you see on the screen. To get the combined attributes, use {Wx::RTC::RichTextParagraphLayoutBox#get_style}. If you specify (any) paragraph attribute in style's flags, this function will fetch the paragraph attributes. Otherwise, it will return the character attributes.
402
+ # @param position [Integer]
403
+ # @param style [Wx::RTC::RichTextAttr]
404
+ # @return [Boolean]
405
+ def get_style(position, style) end
406
+ alias_method :style, :get_style
407
+
408
+ # Returns the content (uncombined) attributes for this position.
409
+ # @param position [Integer]
410
+ # @param style [Wx::RTC::RichTextAttr]
411
+ # @return [Boolean]
412
+ def get_uncombined_style(position, style) end
413
+ alias_method :uncombined_style, :get_uncombined_style
414
+
415
+ # Implementation helper for GetStyle.
416
+ #
417
+ # If combineStyles is true, combine base, paragraph and context attributes.
418
+ # @param position [Integer]
419
+ # @param style [Wx::RTC::RichTextAttr]
420
+ # @param combineStyles [Boolean]
421
+ # @return [Boolean]
422
+ def do_get_style(position, style, combineStyles=true) end
423
+
424
+ # This function gets a style representing the common, combined attributes in the given range.
425
+ #
426
+ # Attributes which have different values within the specified range will not be included the style flags.
427
+ # The function is used to get the attributes to display in the formatting dialog: the user can edit the attributes common to the selection, and optionally specify the values of further attributes to be applied uniformly.
428
+ # To apply the edited attributes, you can use {Wx::RTC::RichTextParagraphLayoutBox#set_style} specifying the {Wx::RTC::RICHTEXT_SETSTYLE_OPTIMIZE} flag, which will only apply attributes that are different from the combined attributes within the range. So, the user edits the effective, displayed attributes for the range, but his choice won't be applied unnecessarily to content. As an example, say the style for a paragraph specifies bold, but the paragraph text doesn't specify a weight. The combined style is bold, and this is what the user will see on-screen and in the formatting dialog. The user now specifies red text, in addition to bold. When applying with {Wx::RTC::RichTextParagraphLayoutBox#set_style}, the content font weight attributes won't be changed to bold because this is already specified by the paragraph. However the text colour attributes will be changed to show red.
429
+ # @param range [Range]
430
+ # @param style [Wx::RTC::RichTextAttr]
431
+ # @return [Boolean]
432
+ def get_style_for_range(range, style) end
433
+ alias_method :style_for_range, :get_style_for_range
434
+
435
+ # Combines style with currentStyle for the purpose of summarising the attributes of a range of content.
436
+ # @param currentStyle [Wx::RTC::RichTextAttr]
437
+ # @param style [Wx::RTC::RichTextAttr]
438
+ # @param clashingAttr [Wx::RTC::RichTextAttr]
439
+ # @param absentAttr [Wx::RTC::RichTextAttr]
440
+ # @return [Boolean]
441
+ def collect_style(currentStyle, style, clashingAttr, absentAttr) end
442
+
443
+ # @overload set_list_style(range, def_, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
444
+ # Sets the list attributes for the given range, passing flags to determine how the attributes are set.
445
+ #
446
+ # Either the style definition or the name of the style definition (in the current sheet) can be passed.
447
+ # flags is a bit list of the following:
448
+ #
449
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
450
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
451
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
452
+ # @see Wx::RTC::RichTextParagraphLayoutBox#number_list
453
+ # @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
454
+ # @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style.
455
+ # @param range [Range]
456
+ # @param def_ [Wx::RTC::RichTextListStyleDefinition]
457
+ # @param flags [Integer]
458
+ # @param startFrom [Integer]
459
+ # @param specifiedLevel [Integer]
460
+ # @return [Boolean]
461
+ # @overload set_list_style(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
462
+ # @param range [Range]
463
+ # @param defName [String]
464
+ # @param flags [Integer]
465
+ # @param startFrom [Integer]
466
+ # @param specifiedLevel [Integer]
467
+ # @return [Boolean]
468
+ def set_list_style(*args) end
469
+
470
+ # Clears the list style from the given range, clearing list-related attributes and applying any named paragraph style associated with each paragraph.
471
+ #
472
+ # flags is a bit list of the following:
473
+ #
474
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
475
+ # @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
476
+ # @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
477
+ # @see Wx::RTC::RichTextParagraphLayoutBox#number_list
478
+ # @param range [Range]
479
+ # @param flags [Integer]
480
+ # @return [Boolean]
481
+ def clear_list_style(range, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO) end
482
+
483
+ # @overload number_list(range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
484
+ # Numbers the paragraphs in the given range.
485
+ #
486
+ # 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.
487
+ # flags is a bit list of the following:
488
+ #
489
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
490
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
491
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
492
+ #
493
+ # def can be nil to indicate that the existing list style should be used.
494
+ # @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
495
+ # @see Wx::RTC::RichTextParagraphLayoutBox#promote_list
496
+ # @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style
497
+ # @param range [Range]
498
+ # @param def_ [Wx::RTC::RichTextListStyleDefinition]
499
+ # @param flags [Integer]
500
+ # @param startFrom [Integer]
501
+ # @param specifiedLevel [Integer]
502
+ # @return [Boolean]
503
+ # @overload number_list(range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1)
504
+ # @param range [Range]
505
+ # @param defName [String]
506
+ # @param flags [Integer]
507
+ # @param startFrom [Integer]
508
+ # @param specifiedLevel [Integer]
509
+ # @return [Boolean]
510
+ def number_list(*args) end
511
+
512
+ # @overload promote_list(promoteBy, range, def_=nil, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
513
+ # Promotes the list items within the given range.
514
+ #
515
+ # 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.
516
+ # flags is a bit list of the following:
517
+ #
518
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO}: specifies that this command will be undoable.
519
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_RENUMBER}: specifies that numbering should start from startFrom, otherwise existing attributes are used.
520
+ # - {Wx::RTC::RICHTEXT_SETSTYLE_SPECIFY_LEVEL}: specifies that listLevel should be used as the level for all paragraphs, otherwise the current indentation will be used.
521
+ # @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
522
+ # @see Wx::RTC::RichTextParagraphLayoutBox#set_list_style
523
+ # @see Wx::RTC::RichTextParagraphLayoutBox#clear_list_style
524
+ # @param promoteBy [Integer]
525
+ # @param range [Range]
526
+ # @param def_ [Wx::RTC::RichTextListStyleDefinition]
527
+ # @param flags [Integer]
528
+ # @param specifiedLevel [Integer]
529
+ # @return [Boolean]
530
+ # @overload promote_list(promoteBy, range, defName, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1)
531
+ # @param promoteBy [Integer]
532
+ # @param range [Range]
533
+ # @param defName [String]
534
+ # @param flags [Integer]
535
+ # @param specifiedLevel [Integer]
536
+ # @return [Boolean]
537
+ def promote_list(*args) end
538
+
539
+ # Helper for NumberList and PromoteList, that does renumbering and promotion simultaneously def can be nil/empty to indicate that the existing list style should be used.
540
+ # @param range [Range]
541
+ # @param promotionRange [Range]
542
+ # @param promoteBy [Integer]
543
+ # @param def_ [Wx::RTC::RichTextListStyleDefinition]
544
+ # @param flags [Integer]
545
+ # @param startFrom [Integer]
546
+ # @param specifiedLevel [Integer]
547
+ # @return [Boolean]
548
+ def do_number_list(range, promotionRange, promoteBy, def_, flags=Wx::RTC::RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) end
549
+
550
+ # Fills in the attributes for numbering a paragraph after previousParagraph.
551
+ # @param previousParagraph [Wx::RTC::RichTextParagraph]
552
+ # @param attr [Wx::RTC::RichTextAttr]
553
+ # @return [Boolean]
554
+ def find_next_paragraph_number(previousParagraph, attr) end
555
+
556
+ # Sets the properties for the given range, passing flags to determine how the attributes are set.
557
+ #
558
+ # You can merge properties or replace them.
559
+ # The end point of range is specified as the last character position of the span of text, plus one. So, for example, to set the properties for a character at position 5, use the range (5,6).
560
+ # flags may contain a bit list of the following values:
561
+ #
562
+ # - {Wx::RTC::RICHTEXT_SETPROPERTIES_NONE}: no flag.
563
+ # - {Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO}: specifies that this operation should be undoable.
564
+ # - {Wx::RTC::RICHTEXT_SETPROPERTIES_PARAGRAPHS_ONLY}: specifies that the properties should only be applied to paragraphs, and not the content.
565
+ # - {Wx::RTC::RICHTEXT_SETPROPERTIES_CHARACTERS_ONLY}: specifies that the properties should only be applied to characters, and not the paragraph.
566
+ # - {Wx::RTC::RICHTEXT_SETPROPERTIES_RESET}: resets (clears) the existing properties before applying the new properties.
567
+ # - {Wx::RTC::RICHTEXT_SETPROPERTIES_REMOVE}: removes the specified properties.
568
+ # @param range [Range]
569
+ # @param properties [Wx::RTC::RichTextProperties]
570
+ # @param flags [Integer]
571
+ # @return [Boolean]
572
+ def set_properties(range, properties, flags=Wx::RTC::RICHTEXT_SETPROPERTIES_WITH_UNDO) end
573
+
574
+ # Sets with undo the properties for the given object.
575
+ # @param obj [Wx::RTC::RichTextObject]
576
+ # @param properties [Wx::RTC::RichTextProperties]
577
+ # @param objToSet [Wx::RTC::RichTextObject]
578
+ # @return [Boolean]
579
+ def set_object_properties_with_undo(obj, properties, objToSet=nil) end
580
+
581
+ # Test if this whole range has character attributes of the specified kind.
582
+ #
583
+ # If any of the attributes are different within the range, the test fails. You can use this to implement, for example, bold button updating. style must have flags indicating which attributes are of interest.
584
+ # @param range [Range]
585
+ # @param style [Wx::RTC::RichTextAttr]
586
+ # @return [Boolean]
587
+ def has_character_attributes(range, style) end
588
+ alias_method :has_character_attributes?, :has_character_attributes
589
+
590
+ # Test if this whole range has paragraph attributes of the specified kind.
591
+ #
592
+ # If any of the attributes are different within the range, the test fails. You can use this to implement, for example, centering button updating. style must have flags indicating which attributes are of interest.
593
+ # @param range [Range]
594
+ # @param style [Wx::RTC::RichTextAttr]
595
+ # @return [Boolean]
596
+ def has_paragraph_attributes(range, style) end
597
+ alias_method :has_paragraph_attributes?, :has_paragraph_attributes
598
+
599
+ # Clones the object.
600
+ # @return [Wx::RTC::RichTextObject]
601
+ def clone; end
602
+
603
+ # Prepares the content just before insertion (or after buffer reset).
604
+ #
605
+ # Currently is only called if undo mode is on.
606
+ # @param container [Wx::RTC::RichTextParagraphLayoutBox]
607
+ # @return [void]
608
+ def prepare_content(container) end
609
+
610
+ # Insert fragment into this box at the given position.
611
+ #
612
+ # If partialParagraph is true, it is assumed that the last (or only) paragraph is just a piece of data with no paragraph marker.
613
+ # @param position [Integer]
614
+ # @param fragment [Wx::RTC::RichTextParagraphLayoutBox]
615
+ # @return [Boolean]
616
+ def insert_fragment(position, fragment) end
617
+
618
+ # Make a copy of the fragment corresponding to the given range, putting it in fragment.
619
+ # @param range [Range]
620
+ # @param fragment [Wx::RTC::RichTextParagraphLayoutBox]
621
+ # @return [Boolean]
622
+ def copy_fragment(range, fragment) end
623
+
624
+ # Apply the style sheet to the buffer, for example if the styles have changed.
625
+ # @param styleSheet [Wx::RTC::RichTextStyleSheet]
626
+ # @return [Boolean]
627
+ def apply_style_sheet(styleSheet) end
628
+
629
+ # @param obj [Wx::RTC::RichTextParagraphLayoutBox]
630
+ # @return [void]
631
+ def copy(obj) end
632
+
633
+ # Calculate ranges.
634
+ # @return [void]
635
+ def update_ranges; end
636
+
637
+ # Get all the text.
638
+ # @return [String]
639
+ def get_text; end
640
+ alias_method :text, :get_text
641
+
642
+ # Sets the default style, affecting the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
643
+ #
644
+ # This is not cumulative - setting the default style will replace the previous default style.
645
+ # Setting it to a default attribute object makes new content take on the 'basic' style.
646
+ # @param style [Wx::RTC::RichTextAttr]
647
+ # @return [Boolean]
648
+ def set_default_style(style) end
649
+ alias_method :default_style=, :set_default_style
650
+
651
+ # Returns the current default style, affecting the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
652
+ # @return [Wx::RTC::RichTextAttr]
653
+ def get_default_style; end
654
+ alias_method :default_style, :get_default_style
655
+
656
+ # Sets the basic (overall) style.
657
+ #
658
+ # This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
659
+ # @param style [Wx::RTC::RichTextAttr]
660
+ # @return [void]
661
+ def set_basic_style(style) end
662
+ alias_method :basic_style=, :set_basic_style
663
+
664
+ # Returns the basic (overall) style.
665
+ #
666
+ # This is the style of the whole buffer before further styles are applied, unlike the default style, which only affects the style currently being applied (for example, setting the default style to bold will cause subsequently inserted text to be bold).
667
+ # @return [Wx::RTC::RichTextAttr]
668
+ def get_basic_style; end
669
+ alias_method :basic_style, :get_basic_style
670
+
671
+ # Invalidates the buffer.
672
+ #
673
+ # With no argument, invalidates whole buffer.
674
+ # @param invalidRange [Range]
675
+ # @return [void]
676
+ def invalidate(invalidRange=Wx::RICHTEXT_ALL) end
677
+
678
+ # Do the (in)validation for this object only.
679
+ # @param invalidRange [Range]
680
+ # @return [void]
681
+ def do_invalidate(invalidRange) end
682
+
683
+ # Do the (in)validation both up and down the hierarchy.
684
+ # @param invalidRange [Range]
685
+ # @return [void]
686
+ def invalidate_hierarchy(invalidRange=Wx::RICHTEXT_ALL) end
687
+
688
+ # Gather information about floating objects.
689
+ #
690
+ # If untilObj is non-null, will stop getting information if the current object is this, since we will collect the rest later.
691
+ # @param availableRect [Wx::Rect]
692
+ # @param untilObj [Wx::RTC::RichTextObject]
693
+ # @return [Boolean]
694
+ def update_floating_objects(availableRect, untilObj=nil) end
695
+
696
+ # Get invalid range, rounding to entire paragraphs if argument is true.
697
+ # @param wholeParagraphs [Boolean]
698
+ # @return [Range]
699
+ def get_invalid_range(wholeParagraphs=false) end
700
+ alias_method :invalid_range, :get_invalid_range
701
+
702
+ # Returns true if this object needs layout.
703
+ # @return [Boolean]
704
+ def is_dirty; end
705
+ alias_method :dirty?, :is_dirty
706
+
707
+ # Returns the {Wx::RTC::RichTextFloatCollector} of this object.
708
+ # @return [Wx::RTC::RichTextFloatCollector]
709
+ def get_float_collector; end
710
+ alias_method :float_collector, :get_float_collector
711
+
712
+ # Returns the number of floating objects at this level.
713
+ # @return [Integer]
714
+ def get_floating_object_count; end
715
+ alias_method :floating_object_count, :get_floating_object_count
716
+
717
+ # Returns a list of floating objects.
718
+ # @param objects [Array<Wx::RTC::RichTextObject>]
719
+ # @return [Boolean]
720
+ def get_floating_objects(objects) end
721
+ alias_method :floating_objects, :get_floating_objects
722
+
723
+ end # RichTextParagraphLayoutBox
724
+
725
+ # This class implements the general concept of a field, an object that represents additional functionality such as a footnote, a bookmark, a page number, a table of contents, and so on.
726
+ #
727
+ # Extra information (such as a bookmark name) can be stored in the object properties.
728
+ # Drawing, layout, and property editing is delegated to classes derived from {Wx::RTC::RichTextFieldType}, such as instances of {Wx::RTC::RichTextFieldTypeStandard}; this makes the use of fields an efficient method of introducing extra functionality, since most of the information required to draw a field (such as a bitmap) is kept centrally in a single field type definition.
729
+ # The FieldType property, accessed by SetFieldType/GetFieldType, is used to retrieve the field type definition. So be careful not to overwrite this property.
730
+ # {Wx::RTC::RichTextField} is derived from {Wx::RTC::RichTextParagraphLayoutBox}, which means that it can contain its own read-only content, refreshed when the application calls the UpdateField function. Whether a field is treated as a composite or a single graphic is determined by the field type definition. If using {Wx::RTC::RichTextFieldTypeStandard}, passing the display type {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_COMPOSITE} to the field type definition causes the field to behave like a composite; the other display styles display a simple graphic. When implementing a composite field, you will still need to derive from {Wx::RTC::RichTextFieldTypeStandard} or {Wx::RTC::RichTextFieldType}, if only to implement UpdateField to refresh the field content appropriately. {Wx::RTC::RichTextFieldTypeStandard} is only one possible implementation, but covers common needs especially for simple, static fields using text or a bitmap.
731
+ # Register field types on application initialisation with the static function {Wx::RTC::RichTextBuffer.add_field_type}. They will be deleted automatically on application exit.
732
+ # An application can write a field to a control with {Wx::RTC::RichTextCtrl#write_field}, taking a field type, the properties for the field, and optional attributes.
733
+ #
734
+ # Category: Rich Text
735
+ # @see Wx::RTC::RichTextFieldTypeStandard
736
+ # @see Wx::RTC::RichTextFieldType
737
+ # @see Wx::RTC::RichTextParagraphLayoutBox
738
+ # @see Wx::RTC::RichTextProperties
739
+ # @see Wx::RTC::RichTextCtrl
740
+ #
741
+ #
742
+ #
743
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
744
+ # @wxrb_require USE_RICHTEXT
745
+ class RichTextField < RichTextParagraphLayoutBox
746
+
747
+ # @overload initialize(fieldType=(''), parent=nil)
748
+ # Default constructor; optionally pass the parent object.
749
+ # @param fieldType [String]
750
+ # @param parent [Wx::RTC::RichTextObject]
751
+ # @return [Wx::RTC::RichTextField]
752
+ # @overload initialize(obj)
753
+ # Copy constructor.
754
+ # @param obj [Wx::RTC::RichTextField]
755
+ # @return [Wx::RTC::RichTextField]
756
+ def initialize(*args) end
757
+
758
+ # Draw the item, within the given range.
759
+ #
760
+ # Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
761
+ # @param dc [Wx::DC]
762
+ # @param context [Wx::RTC::RichTextDrawingContext]
763
+ # @param range [Range]
764
+ # @param selection [Wx::RTC::RichTextSelection]
765
+ # @param rect [Wx::Rect]
766
+ # @param descent [Integer]
767
+ # @param style [Integer]
768
+ # @return [Boolean]
769
+ def draw(dc, context, range, selection, rect, descent, style) end
770
+
771
+ # Lay the item out at the specified position with the given size constraint.
772
+ #
773
+ # Layout must set the cached size. rect is the available space for the object, and parentRect is the container that is used to determine a relative size or position (for example if a text box must be 50% of the parent text box).
774
+ # @param dc [Wx::ReadOnlyDC]
775
+ # @param context [Wx::RTC::RichTextDrawingContext]
776
+ # @param rect [Wx::Rect]
777
+ # @param parentRect [Wx::Rect]
778
+ # @param style [Integer]
779
+ # @return [Boolean]
780
+ def layout(dc, context, rect, parentRect, style) end
781
+
782
+ # Returns the object size for the given range.
783
+ #
784
+ # Returns false if the range is invalid for this object.
785
+ # @param range [Range]
786
+ # @param size [Array(Integer, Integer), Wx::Size]
787
+ # @param descent [int]
788
+ # @param dc [Wx::ReadOnlyDC]
789
+ # @param context [Wx::RTC::RichTextDrawingContext]
790
+ # @param flags [Integer]
791
+ # @param position [Array(Integer, Integer), Wx::Point]
792
+ # @param parentSize [Array(Integer, Integer), Wx::Size]
793
+ # @param partialExtents [Array,nil]
794
+ # @return [Boolean]
795
+ def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
796
+ alias_method :range_size, :get_range_size
797
+
798
+ # Returns the XML node name of this object.
799
+ #
800
+ # This must be overridden for {Wx::XmlNode}-base XML export to work.
801
+ # @return [String]
802
+ def get_xml_node_name; end
803
+ alias_method :xml_node_name, :get_xml_node_name
804
+
805
+ # Returns true if we can edit the object's properties via a GUI.
806
+ # @return [Boolean]
807
+ def can_edit_properties; end
808
+ alias_method :can_edit_properties?, :can_edit_properties
809
+
810
+ # Edits the object's properties via a GUI.
811
+ # @param parent [Wx::Window]
812
+ # @param buffer [Wx::RTC::RichTextBuffer]
813
+ # @return [Boolean]
814
+ def edit_properties(parent, buffer) end
815
+
816
+ # Returns the label to be used for the properties context menu item.
817
+ # @return [String]
818
+ def get_properties_menu_label; end
819
+ alias_method :properties_menu_label, :get_properties_menu_label
820
+
821
+ # Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject is possible.
822
+ #
823
+ # For example, containers supporting text, such as a text box object, can accept the focus, but a table can't (set the focus to individual cells instead).
824
+ # @return [Boolean]
825
+ def accepts_focus; end
826
+
827
+ # Calculates the range of the object.
828
+ #
829
+ # By default, guess that the object is 1 unit long.
830
+ # @param start [Integer]
831
+ # @param end_ [Integer]
832
+ # @return [Integer]
833
+ def calculate_range(start, end_) end
834
+
835
+ # If a field has children, we don't want the user to be able to edit it.
836
+ # @return [Boolean]
837
+ def is_atomic; end
838
+ alias_method :atomic?, :is_atomic
839
+
840
+ # Returns true if the buffer is empty.
841
+ # @return [Boolean]
842
+ def is_empty; end
843
+ alias_method :empty?, :is_empty
844
+
845
+ # Returns true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
846
+ # @return [Boolean]
847
+ def is_top_level; end
848
+ alias_method :top_level?, :is_top_level
849
+
850
+ # @param fieldType [String]
851
+ # @return [void]
852
+ def set_field_type(fieldType) end
853
+ alias_method :field_type=, :set_field_type
854
+
855
+ # @return [String]
856
+ def get_field_type; end
857
+ alias_method :field_type, :get_field_type
858
+
859
+ # Update the field; delegated to the associated field type.
860
+ #
861
+ # This would typically expand the field to its value, if this is a dynamically changing and/or composite field.
862
+ # @param buffer [Wx::RTC::RichTextBuffer]
863
+ # @return [Boolean]
864
+ def update_field(buffer) end
865
+
866
+ # Clones the object.
867
+ # @return [Wx::RTC::RichTextObject]
868
+ def clone; end
869
+
870
+ # @param obj [Wx::RTC::RichTextField]
871
+ # @return [void]
872
+ def copy(obj) end
873
+
874
+ end # RichTextField
875
+
876
+ # A style sheet contains named paragraph and character styles that make it easy for a user to apply combinations of attributes to a {Wx::RTC::RichTextCtrl}.
877
+ #
878
+ # You can use a {Wx::RTC::RichTextStyleListBox} in your user interface to show available styles to the user, and allow application of styles to the control.
879
+ #
880
+ # Category: Rich Text
881
+ #
882
+ # @wxrb_require USE_RICHTEXT
883
+ class RichTextStyleSheet < Object
884
+
885
+ # @overload initialize()
886
+ # Constructor.
887
+ # @return [Wx::RTC::RichTextStyleSheet]
888
+ # @overload initialize(sheet)
889
+ # Copy constructor.
890
+ # @param sheet [Wx::RTC::RichTextStyleSheet]
891
+ # @return [Wx::RTC::RichTextStyleSheet]
892
+ def initialize(*args) end
893
+
894
+ # Copies given style sheet.
895
+ # @param sheet [Wx::RTC::RichTextStyleSheet]
896
+ # @return [void]
897
+ def copy(sheet) end
898
+
899
+ # Adds a definition to the character style list.
900
+ # @param def_ [Wx::RTC::RichTextCharacterStyleDefinition]
901
+ # @return [Boolean]
902
+ def add_character_style(def_) end
903
+
904
+ # Adds a definition to the list style list.
905
+ # @param def_ [Wx::RTC::RichTextListStyleDefinition]
906
+ # @return [Boolean]
907
+ def add_list_style(def_) end
908
+
909
+ # Adds a definition to the paragraph style list.
910
+ # @param def_ [Wx::RTC::RichTextParagraphStyleDefinition]
911
+ # @return [Boolean]
912
+ def add_paragraph_style(def_) end
913
+
914
+ # Adds a definition to the appropriate style list.
915
+ # @param def_ [Wx::RTC::RichTextStyleDefinition]
916
+ # @return [Boolean]
917
+ def add_style(def_) end
918
+
919
+ # Deletes all styles.
920
+ # @return [void]
921
+ def delete_styles; end
922
+
923
+ # Finds a character definition by name.
924
+ # @param name [String]
925
+ # @param recurse [Boolean]
926
+ # @return [Wx::RTC::RichTextCharacterStyleDefinition]
927
+ def find_character_style(name, recurse=true) end
928
+
929
+ # Finds a list definition by name.
930
+ # @param name [String]
931
+ # @param recurse [Boolean]
932
+ # @return [Wx::RTC::RichTextListStyleDefinition]
933
+ def find_list_style(name, recurse=true) end
934
+
935
+ # Finds a paragraph definition by name.
936
+ # @param name [String]
937
+ # @param recurse [Boolean]
938
+ # @return [Wx::RTC::RichTextParagraphStyleDefinition]
939
+ def find_paragraph_style(name, recurse=true) end
940
+
941
+ # Finds a style definition by name.
942
+ # @param name [String]
943
+ # @return [Wx::RTC::RichTextStyleDefinition]
944
+ def find_style(name) end
945
+
946
+ # Returns the nth character style.
947
+ # @param n [Integer]
948
+ # @return [Wx::RTC::RichTextCharacterStyleDefinition]
949
+ def get_character_style(n) end
950
+ alias_method :character_style, :get_character_style
951
+
952
+ # Returns the number of character styles.
953
+ # @return [Integer]
954
+ def get_character_style_count; end
955
+ alias_method :character_style_count, :get_character_style_count
956
+
957
+ # Returns the style sheet's description.
958
+ # @return [Wx::String]
959
+ def get_description; end
960
+ alias_method :description, :get_description
961
+
962
+ # Returns the nth list style.
963
+ # @param n [Integer]
964
+ # @return [Wx::RTC::RichTextListStyleDefinition]
965
+ def get_list_style(n) end
966
+ alias_method :list_style, :get_list_style
967
+
968
+ # Returns the number of list styles.
969
+ # @return [Integer]
970
+ def get_list_style_count; end
971
+ alias_method :list_style_count, :get_list_style_count
972
+
973
+ # Returns the style sheet's name.
974
+ # @return [Wx::String]
975
+ def get_name; end
976
+ alias_method :name, :get_name
977
+
978
+ # Returns the nth paragraph style.
979
+ # @param n [Integer]
980
+ # @return [Wx::RTC::RichTextParagraphStyleDefinition]
981
+ def get_paragraph_style(n) end
982
+ alias_method :paragraph_style, :get_paragraph_style
983
+
984
+ # Returns the number of paragraph styles.
985
+ # @return [Integer]
986
+ def get_paragraph_style_count; end
987
+ alias_method :paragraph_style_count, :get_paragraph_style_count
988
+
989
+ # Removes a character style.
990
+ # @param def_ [Wx::RTC::RichTextStyleDefinition]
991
+ # @param deleteStyle [Boolean]
992
+ # @return [Boolean]
993
+ def remove_character_style(def_, deleteStyle=false) end
994
+
995
+ # Removes a list style.
996
+ # @param def_ [Wx::RTC::RichTextStyleDefinition]
997
+ # @param deleteStyle [Boolean]
998
+ # @return [Boolean]
999
+ def remove_list_style(def_, deleteStyle=false) end
1000
+
1001
+ # Removes a paragraph style.
1002
+ # @param def_ [Wx::RTC::RichTextStyleDefinition]
1003
+ # @param deleteStyle [Boolean]
1004
+ # @return [Boolean]
1005
+ def remove_paragraph_style(def_, deleteStyle=false) end
1006
+
1007
+ # Removes a style.
1008
+ # @param def_ [Wx::RTC::RichTextStyleDefinition]
1009
+ # @param deleteStyle [Boolean]
1010
+ # @return [Boolean]
1011
+ def remove_style(def_, deleteStyle=false) end
1012
+
1013
+ # Sets the style sheet's description.
1014
+ # @param descr [String]
1015
+ # @return [void]
1016
+ def set_description(descr) end
1017
+ alias_method :description=, :set_description
1018
+
1019
+ # Sets the style sheet's name.
1020
+ # @param name [String]
1021
+ # @return [void]
1022
+ def set_name(name) end
1023
+ alias_method :name=, :set_name
1024
+
1025
+ # Returns the sheet's properties.
1026
+ # @return [Wx::RTC::RichTextProperties]
1027
+ def get_properties; end
1028
+ alias_method :properties, :get_properties
1029
+
1030
+ # Sets the sheet's properties.
1031
+ # @param props [Wx::RTC::RichTextProperties]
1032
+ # @return [void]
1033
+ def set_properties(props) end
1034
+ alias_method :properties=, :set_properties
1035
+
1036
+ end # RichTextStyleSheet
1037
+
1038
+ # This is a base class for paragraph and character styles.
1039
+ #
1040
+ # Category: Rich Text
1041
+ #
1042
+ # @wxrb_require USE_RICHTEXT
1043
+ class RichTextStyleDefinition < Object
1044
+
1045
+ # Constructor.
1046
+ # @param name [String]
1047
+ # @return [Wx::RTC::RichTextStyleDefinition]
1048
+ def initialize(name=('')) end
1049
+
1050
+ # Returns the style on which this style is based.
1051
+ # @return [Wx::String]
1052
+ def get_base_style; end
1053
+ alias_method :base_style, :get_base_style
1054
+
1055
+ # Returns the style's description.
1056
+ # @return [Wx::String]
1057
+ def get_description; end
1058
+ alias_method :description, :get_description
1059
+
1060
+ # Returns the style name.
1061
+ # @return [Wx::String]
1062
+ def get_name; end
1063
+ alias_method :name, :get_name
1064
+
1065
+ # Returns the style attributes combined with the attributes of the specified base style, if any.
1066
+ #
1067
+ # This function works recursively.
1068
+ # @param sheet [Wx::RTC::RichTextStyleSheet]
1069
+ # @return [Wx::RTC::RichTextAttr]
1070
+ def get_style_merged_with_base(sheet) end
1071
+ alias_method :style_merged_with_base, :get_style_merged_with_base
1072
+
1073
+ # Sets the name of the style that this style is based on.
1074
+ # @param name [String]
1075
+ # @return [void]
1076
+ def set_base_style(name) end
1077
+ alias_method :base_style=, :set_base_style
1078
+
1079
+ # Sets the style description.
1080
+ # @param descr [String]
1081
+ # @return [void]
1082
+ def set_description(descr) end
1083
+ alias_method :description=, :set_description
1084
+
1085
+ # Sets the name of the style.
1086
+ # @param name [String]
1087
+ # @return [void]
1088
+ def set_name(name) end
1089
+ alias_method :name=, :set_name
1090
+
1091
+ # Sets the attributes for this style.
1092
+ # @param style [Wx::RTC::RichTextAttr]
1093
+ # @return [void]
1094
+ def set_style(style) end
1095
+ alias_method :style=, :set_style
1096
+
1097
+ # Returns the definition's properties.
1098
+ # @return [Wx::RTC::RichTextProperties]
1099
+ def get_properties; end
1100
+ alias_method :properties, :get_properties
1101
+
1102
+ # Sets the definition's properties.
1103
+ # @param props [Wx::RTC::RichTextProperties]
1104
+ # @return [void]
1105
+ def set_properties(props) end
1106
+ alias_method :properties=, :set_properties
1107
+
1108
+ end # RichTextStyleDefinition
1109
+
1110
+ # This class represents a character style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
1111
+ #
1112
+ # Category: Rich Text
1113
+ #
1114
+ # @wxrb_require USE_RICHTEXT
1115
+ class RichTextCharacterStyleDefinition < RichTextStyleDefinition
1116
+
1117
+ # Constructor.
1118
+ # @param name [String]
1119
+ # @return [Wx::RTC::RichTextCharacterStyleDefinition]
1120
+ def initialize(name=('')) end
1121
+
1122
+ end # RichTextCharacterStyleDefinition
1123
+
1124
+ # This class represents a paragraph style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
1125
+ #
1126
+ # Category: Rich Text
1127
+ #
1128
+ # @wxrb_require USE_RICHTEXT
1129
+ class RichTextParagraphStyleDefinition < RichTextStyleDefinition
1130
+
1131
+ # Constructor.
1132
+ # @param name [String]
1133
+ # @return [Wx::RTC::RichTextParagraphStyleDefinition]
1134
+ def initialize(name=('')) end
1135
+
1136
+ # Returns the style that should normally follow this style.
1137
+ # @return [Wx::String]
1138
+ def get_next_style; end
1139
+ alias_method :next_style, :get_next_style
1140
+
1141
+ # Sets the style that should normally follow this style.
1142
+ # @param name [String]
1143
+ # @return [void]
1144
+ def set_next_style(name) end
1145
+ alias_method :next_style=, :set_next_style
1146
+
1147
+ end # RichTextParagraphStyleDefinition
1148
+
1149
+ # This class represents a list style definition, usually added to a {Wx::RTC::RichTextStyleSheet}.
1150
+ #
1151
+ # The class inherits paragraph attributes from {Wx::RichTextStyleParagraphDefinition}, and adds 10 further attribute objects, one for each level of a list. When applying a list style to a paragraph, the list style's base and appropriate level attributes are merged with the paragraph's existing attributes.
1152
+ # You can apply a list style to one or more paragraphs using {Wx::RTC::RichTextCtrl#set_list_style}. You can also use the functions {Wx::RTC::RichTextCtrl#number_list}, {Wx::RTC::RichTextCtrl#promote_list} and {Wx::RTC::RichTextCtrl#clear_list_style}.
1153
+ # As usual, there are {Wx::RTC::RichTextBuffer} versions of these functions so that you can apply them directly to a buffer without requiring a control.
1154
+ #
1155
+ # Category: Rich Text
1156
+ #
1157
+ # @wxrb_require USE_RICHTEXT
1158
+ class RichTextListStyleDefinition < RichTextParagraphStyleDefinition
1159
+
1160
+ # Constructor.
1161
+ # @param name [String]
1162
+ # @return [Wx::RTC::RichTextListStyleDefinition]
1163
+ def initialize(name=('')) end
1164
+
1165
+ # This function combines the given paragraph style with the list style's base attributes and level style matching the given indent, returning the combined attributes.
1166
+ #
1167
+ # If styleSheet is specified, the base style for this definition will also be included in the result.
1168
+ # @param indent [Integer]
1169
+ # @param paraStyle [Wx::RTC::RichTextAttr]
1170
+ # @param styleSheet [Wx::RTC::RichTextStyleSheet]
1171
+ # @return [Wx::RTC::RichTextAttr]
1172
+ def combine_with_paragraph_style(indent, paraStyle, styleSheet=nil) end
1173
+
1174
+ # This function finds the level (from 0 to 9) whose indentation attribute mostly closely matches indent (expressed in tenths of a millimetre).
1175
+ # @param indent [Integer]
1176
+ # @return [Integer]
1177
+ def find_level_for_indent(indent) end
1178
+
1179
+ # This function combines the list style's base attributes and the level style matching the given indent, returning the combined attributes.
1180
+ #
1181
+ # If styleSheet is specified, the base style for this definition will also be included in the result.
1182
+ # @param indent [Integer]
1183
+ # @param styleSheet [Wx::RTC::RichTextStyleSheet]
1184
+ # @return [Wx::RTC::RichTextAttr]
1185
+ def get_combined_style(indent, styleSheet=nil) end
1186
+ alias_method :combined_style, :get_combined_style
1187
+
1188
+ # This function combines the list style's base attributes and the style for the specified level, returning the combined attributes.
1189
+ #
1190
+ # If styleSheet is specified, the base style for this definition will also be included in the result.
1191
+ # @param level [Integer]
1192
+ # @param styleSheet [Wx::RTC::RichTextStyleSheet]
1193
+ # @return [Wx::RTC::RichTextAttr]
1194
+ def get_combined_style_for_level(level, styleSheet=nil) end
1195
+ alias_method :combined_style_for_level, :get_combined_style_for_level
1196
+
1197
+ # Returns the style for the given level.
1198
+ #
1199
+ # level is a number between 0 and 9.
1200
+ # @param level [Integer]
1201
+ # @return [Wx::RTC::RichTextAttr]
1202
+ def get_level_attributes(level) end
1203
+ alias_method :level_attributes, :get_level_attributes
1204
+
1205
+ # Returns the number of levels.
1206
+ #
1207
+ # This is hard-wired to 10. Returns the style for the given level. level is a number between 0 and 9.
1208
+ # @return [Integer]
1209
+ def get_level_count; end
1210
+ alias_method :level_count, :get_level_count
1211
+
1212
+ # Returns true if the given level has numbered list attributes.
1213
+ # @param level [Integer]
1214
+ # @return [Boolean]
1215
+ def is_numbered(level) end
1216
+ alias_method :numbered?, :is_numbered
1217
+
1218
+ # Sets the style for the given level.
1219
+ #
1220
+ # level is a number between 0 and 9. The first and most flexible form uses a {Wx::TextAttr} object, while the second form is for convenient setting of the most commonly-used attributes.
1221
+ # @param level [Integer]
1222
+ # @param attr [Wx::RTC::RichTextAttr]
1223
+ # @return [void]
1224
+ def set_level_attributes(level, attr) end
1225
+
1226
+ # Convenience function for setting the major attributes for a list level specification.
1227
+ # @param i [Integer]
1228
+ # @param leftIndent [Integer]
1229
+ # @param leftSubIndent [Integer]
1230
+ # @param bulletStyle [Integer]
1231
+ # @param bulletSymbol [String]
1232
+ # @return [void]
1233
+ def set_attributes(i, leftIndent, leftSubIndent, bulletStyle, bulletSymbol=('')) end
1234
+
1235
+ end # RichTextListStyleDefinition
1236
+
1237
+
1238
+ end
1239
+
1240
+ end