wxruby3 0.9.0.pre.rc.3-x64-mingw-ucrt → 0.9.1-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (685) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/ext/mkrf_conf_bingem.rb +4 -1
  4. data/ext/wxbase32u_gcc_custom.dll +0 -0
  5. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  7. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  19. data/lib/wx/accessors.rb +10 -2
  20. data/lib/wx/aui/auifloatframe.rb +20 -0
  21. data/lib/wx/aui/auimanager.rb +3 -0
  22. data/lib/wx/aui/auinotebook.rb +17 -0
  23. data/lib/wx/aui/events/evt_list.rb +7 -7
  24. data/lib/wx/aui/require.rb +5 -1
  25. data/lib/wx/aui.rb +4 -1
  26. data/lib/wx/core/acceleratortable.rb +8 -0
  27. data/lib/wx/core/animation.rb +8 -0
  28. data/lib/wx/core/app.rb +8 -0
  29. data/lib/wx/core/array_ext.rb +7 -0
  30. data/lib/wx/core/art_locator.rb +7 -0
  31. data/lib/wx/core/artprovider.rb +9 -0
  32. data/lib/wx/core/bitmap.rb +16 -4
  33. data/lib/wx/core/bitmap_combobox.rb +7 -0
  34. data/lib/wx/core/brush.rb +7 -0
  35. data/lib/wx/core/busycursor.rb +9 -0
  36. data/lib/wx/core/choice.rb +7 -0
  37. data/lib/wx/core/choicedlg.rb +7 -0
  38. data/lib/wx/core/clientdc.rb +9 -0
  39. data/lib/wx/core/clipboard.rb +8 -0
  40. data/lib/wx/core/collapsible_pane.rb +8 -1
  41. data/lib/wx/core/colour.rb +8 -0
  42. data/lib/wx/core/combo_ctrl.rb +110 -0
  43. data/lib/wx/core/combobox.rb +7 -0
  44. data/lib/wx/core/config.rb +303 -0
  45. data/lib/wx/core/const.rb +83 -0
  46. data/lib/wx/core/controlwithitems.rb +12 -1
  47. data/lib/wx/core/cursor.rb +14 -4
  48. data/lib/wx/core/data_object.rb +7 -0
  49. data/lib/wx/core/dataformat.rb +9 -0
  50. data/lib/wx/core/datetime.rb +14 -0
  51. data/lib/wx/core/dc.rb +7 -0
  52. data/lib/wx/core/dialog.rb +18 -1
  53. data/lib/wx/core/enum.rb +7 -0
  54. data/lib/wx/core/event.rb +7 -0
  55. data/lib/wx/core/event_blocker.rb +7 -0
  56. data/lib/wx/core/event_loop.rb +7 -0
  57. data/lib/wx/core/events/evt_list.rb +100 -0
  58. data/lib/wx/core/evthandler.rb +8 -0
  59. data/lib/wx/core/ext.rb +7 -0
  60. data/lib/wx/core/file_dialog.rb +23 -0
  61. data/lib/wx/core/find_replace_dialog.rb +7 -0
  62. data/lib/wx/core/functions.rb +8 -0
  63. data/lib/wx/core/gauge.rb +10 -1
  64. data/lib/wx/core/genericdirctrl.rb +9 -0
  65. data/lib/wx/core/hboxsizer.rb +16 -0
  66. data/lib/wx/core/helpcontroller.rb +8 -0
  67. data/lib/wx/core/helpcontrollerhelpprovider.rb +9 -0
  68. data/lib/wx/core/helpprovider.rb +10 -1
  69. data/lib/wx/core/icon.rb +17 -6
  70. data/lib/wx/core/id_helper.rb +7 -0
  71. data/lib/wx/core/image.rb +16 -4
  72. data/lib/wx/core/imagelist.rb +8 -1
  73. data/lib/wx/core/listbox.rb +7 -0
  74. data/lib/wx/core/listctrl.rb +9 -0
  75. data/lib/wx/core/locale.rb +8 -0
  76. data/lib/wx/core/log.rb +24 -0
  77. data/lib/wx/core/menu.rb +9 -0
  78. data/lib/wx/core/menu_bar.rb +7 -0
  79. data/lib/wx/core/menuitem.rb +9 -0
  80. data/lib/wx/core/notebook.rb +9 -0
  81. data/lib/wx/core/object.rb +9 -0
  82. data/lib/wx/core/paintdc.rb +7 -0
  83. data/lib/wx/core/pen.rb +7 -0
  84. data/lib/wx/core/pen_info.rb +7 -0
  85. data/lib/wx/core/platform_info.rb +7 -0
  86. data/lib/wx/core/point.rb +8 -0
  87. data/lib/wx/core/real_point.rb +8 -0
  88. data/lib/wx/core/rect.rb +9 -0
  89. data/lib/wx/core/region_iterator.rb +7 -0
  90. data/lib/wx/core/simplehelpprovider.rb +9 -0
  91. data/lib/wx/core/size.rb +8 -0
  92. data/lib/wx/core/sizer.rb +9 -0
  93. data/lib/wx/core/splash_screen.rb +22 -2
  94. data/lib/wx/core/text_entry.rb +7 -0
  95. data/lib/wx/core/textctrl.rb +86 -5
  96. data/lib/wx/core/timer.rb +9 -0
  97. data/lib/wx/core/toolbar.rb +9 -0
  98. data/lib/wx/core/toolbartool.rb +8 -0
  99. data/lib/wx/core/treectrl.rb +9 -0
  100. data/lib/wx/core/v_list_box.rb +7 -0
  101. data/lib/wx/core/validator.rb +7 -0
  102. data/lib/wx/core/variant.rb +7 -0
  103. data/lib/wx/core/vboxsizer.rb +16 -0
  104. data/lib/wx/core/window.rb +8 -0
  105. data/lib/wx/core/window_update_locker.rb +9 -0
  106. data/lib/wx/core/xmlresource.rb +8 -0
  107. data/lib/wx/core.rb +4 -1
  108. data/lib/wx/doc/app.rb +7 -1
  109. data/lib/wx/doc/array_ext.rb +6 -0
  110. data/lib/wx/doc/art_locator.rb +7 -0
  111. data/lib/wx/doc/aui/auimanager.rb +6 -0
  112. data/lib/wx/doc/aui/auinotebook.rb +6 -0
  113. data/lib/wx/doc/bitmap.rb +12 -4
  114. data/lib/wx/doc/brush.rb +6 -0
  115. data/lib/wx/doc/busy_info.rb +6 -0
  116. data/lib/wx/doc/client_dc.rb +6 -0
  117. data/lib/wx/doc/clipboard.rb +6 -0
  118. data/lib/wx/doc/colour_dialog.rb +6 -0
  119. data/lib/wx/doc/config.rb +190 -0
  120. data/lib/wx/doc/const.rb +73 -66
  121. data/lib/wx/doc/controlwithitems.rb +6 -0
  122. data/lib/wx/doc/core.rb +6 -0
  123. data/lib/wx/doc/cursor.rb +13 -5
  124. data/lib/wx/doc/data_object.rb +6 -0
  125. data/lib/wx/doc/datetime.rb +16 -0
  126. data/lib/wx/doc/dc.rb +6 -0
  127. data/lib/wx/doc/enum.rb +8 -1
  128. data/lib/wx/doc/event.rb +6 -0
  129. data/lib/wx/doc/event_blocker.rb +6 -0
  130. data/lib/wx/doc/event_loop.rb +6 -0
  131. data/lib/wx/doc/events.rb +6 -0
  132. data/lib/wx/doc/evthandler.rb +8 -0
  133. data/lib/wx/doc/extra/01_packages.md +52 -51
  134. data/lib/wx/doc/extra/05_event-handling.md +37 -12
  135. data/lib/wx/doc/extra/06_geometry.md +5 -5
  136. data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
  137. data/lib/wx/doc/extra/09_exceptions.md +1 -1
  138. data/lib/wx/doc/extra/10_art.md +18 -12
  139. data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
  140. data/lib/wx/doc/font.rb +6 -0
  141. data/lib/wx/doc/font_data.rb +16 -0
  142. data/lib/wx/doc/functions.rb +18 -10
  143. data/lib/wx/doc/gc_dc.rb +6 -0
  144. data/lib/wx/doc/gdi_common.rb +8 -1
  145. data/lib/wx/doc/gen/about_dialog_info.rb +9 -9
  146. data/lib/wx/doc/gen/accelerator.rb +4 -9
  147. data/lib/wx/doc/gen/accessible.rb +21 -21
  148. data/lib/wx/doc/gen/activity_indicator.rb +4 -4
  149. data/lib/wx/doc/gen/animation.rb +13 -13
  150. data/lib/wx/doc/gen/animation_ctrl.rb +9 -9
  151. data/lib/wx/doc/gen/any_button.rb +2 -2
  152. data/lib/wx/doc/gen/app.rb +16 -85
  153. data/lib/wx/doc/gen/app_traits.rb +381 -0
  154. data/lib/wx/doc/gen/art_provider.rb +4 -4
  155. data/lib/wx/doc/gen/aui/aui_manager.rb +12 -14
  156. data/lib/wx/doc/gen/aui/aui_manager_event.rb +5 -5
  157. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +15 -16
  158. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +1 -1
  159. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +4 -4
  160. data/lib/wx/doc/gen/aui/aui_notebook.rb +102 -19
  161. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +1 -1
  162. data/lib/wx/doc/gen/aui/aui_pane_info.rb +44 -44
  163. data/lib/wx/doc/gen/aui/aui_tab_art.rb +11 -11
  164. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +28 -28
  165. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +2 -2
  166. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +3 -3
  167. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +7 -7
  168. data/lib/wx/doc/gen/aui/event_list.rb +7 -0
  169. data/lib/wx/doc/gen/banner_window.rb +98 -0
  170. data/lib/wx/doc/gen/bitmap.rb +26 -57
  171. data/lib/wx/doc/gen/bitmap_button.rb +5 -5
  172. data/lib/wx/doc/gen/bitmap_combo_box.rb +6 -6
  173. data/lib/wx/doc/gen/book_ctrl_base.rb +13 -13
  174. data/lib/wx/doc/gen/book_ctrl_event.rb +1 -1
  175. data/lib/wx/doc/gen/brush.rb +8 -8
  176. data/lib/wx/doc/gen/button.rb +6 -6
  177. data/lib/wx/doc/gen/calendar_ctrl.rb +12 -12
  178. data/lib/wx/doc/gen/calendar_date_attr.rb +11 -11
  179. data/lib/wx/doc/gen/calendar_event.rb +2 -8
  180. data/lib/wx/doc/gen/caret.rb +4 -4
  181. data/lib/wx/doc/gen/check_box.rb +11 -11
  182. data/lib/wx/doc/gen/check_list_box.rb +7 -7
  183. data/lib/wx/doc/gen/choice.rb +5 -5
  184. data/lib/wx/doc/gen/choicebook.rb +1 -1
  185. data/lib/wx/doc/gen/clipboard.rb +9 -9
  186. data/lib/wx/doc/gen/collapsible_pane.rb +6 -6
  187. data/lib/wx/doc/gen/collapsible_pane_event.rb +3 -3
  188. data/lib/wx/doc/gen/colour.rb +26 -26
  189. data/lib/wx/doc/gen/colour_dialog.rb +6 -6
  190. data/lib/wx/doc/gen/colour_picker_ctrl.rb +3 -3
  191. data/lib/wx/doc/gen/combo_box.rb +11 -11
  192. data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
  193. data/lib/wx/doc/gen/command_link_button.rb +110 -0
  194. data/lib/wx/doc/gen/config_base.rb +10 -0
  195. data/lib/wx/doc/gen/context_help_button.rb +3 -3
  196. data/lib/wx/doc/gen/control.rb +5 -5
  197. data/lib/wx/doc/gen/control_with_items.rb +5 -5
  198. data/lib/wx/doc/gen/core.rb +6 -6
  199. data/lib/wx/doc/gen/cursor.rb +4 -9
  200. data/lib/wx/doc/gen/data_format.rb +3 -3
  201. data/lib/wx/doc/gen/data_object.rb +14 -14
  202. data/lib/wx/doc/gen/date_event.rb +1 -1
  203. data/lib/wx/doc/gen/date_picker_ctrl.rb +5 -5
  204. data/lib/wx/doc/gen/dc.rb +127 -64
  205. data/lib/wx/doc/gen/defs.rb +3 -3
  206. data/lib/wx/doc/gen/dial_up_event.rb +42 -0
  207. data/lib/wx/doc/gen/dial_up_manager.rb +129 -0
  208. data/lib/wx/doc/gen/dialog.rb +48 -19
  209. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -1
  210. data/lib/wx/doc/gen/dir_picker_ctrl.rb +5 -5
  211. data/lib/wx/doc/gen/drag_drop.rb +18 -44
  212. data/lib/wx/doc/gen/drag_image.rb +7 -32
  213. data/lib/wx/doc/gen/editable_list_box.rb +4 -4
  214. data/lib/wx/doc/gen/event.rb +22 -24
  215. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  216. data/lib/wx/doc/gen/event_list.rb +133 -7
  217. data/lib/wx/doc/gen/events.rb +162 -166
  218. data/lib/wx/doc/gen/evt_handler.rb +7 -7
  219. data/lib/wx/doc/gen/ext_help_controller.rb +8 -8
  220. data/lib/wx/doc/gen/file_ctrl.rb +200 -0
  221. data/lib/wx/doc/gen/file_ctrl_event.rb +80 -0
  222. data/lib/wx/doc/gen/file_dialog.rb +5 -3
  223. data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
  224. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
  225. data/lib/wx/doc/gen/file_dir_picker_event.rb +1 -1
  226. data/lib/wx/doc/gen/file_picker_ctrl.rb +5 -5
  227. data/lib/wx/doc/gen/file_system.rb +250 -0
  228. data/lib/wx/doc/gen/find_dialog_event.rb +1 -1
  229. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  230. data/lib/wx/doc/gen/flex_grid_sizer.rb +4 -4
  231. data/lib/wx/doc/gen/font.rb +61 -66
  232. data/lib/wx/doc/gen/font_data.rb +6 -6
  233. data/lib/wx/doc/gen/font_dialog.rb +2 -2
  234. data/lib/wx/doc/gen/font_picker_ctrl.rb +3 -3
  235. data/lib/wx/doc/gen/frame.rb +10 -24
  236. data/lib/wx/doc/gen/fs_file.rb +61 -21
  237. data/lib/wx/doc/gen/gauge.rb +5 -5
  238. data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
  239. data/lib/wx/doc/gen/gdi_common.rb +8 -8
  240. data/lib/wx/doc/gen/generic_dir_ctrl.rb +8 -8
  241. data/lib/wx/doc/gen/graphics_context.rb +291 -60
  242. data/lib/wx/doc/gen/graphics_object.rb +47 -101
  243. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -0
  244. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +36 -51
  245. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +2 -0
  246. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +2 -0
  247. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +3 -1
  248. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +2 -0
  249. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
  250. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +2 -0
  251. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +2 -0
  252. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
  253. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +6 -4
  254. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +2 -0
  255. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +2 -0
  256. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +2 -0
  257. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +2 -0
  258. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +2 -0
  259. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +2 -0
  260. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +3 -1
  261. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +2 -0
  262. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +2 -0
  263. data/lib/wx/doc/gen/grid/grid_ctrl.rb +416 -173
  264. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +1 -1
  265. data/lib/wx/doc/gen/grid/grid_event.rb +7 -7
  266. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +9 -9
  267. data/lib/wx/doc/gen/grid/grid_size_event.rb +5 -5
  268. data/lib/wx/doc/gen/grid/grid_string_table.rb +6 -6
  269. data/lib/wx/doc/gen/grid/grid_table_base.rb +15 -15
  270. data/lib/wx/doc/gen/grid_bag_sizer.rb +10 -10
  271. data/lib/wx/doc/gen/gui_event_loop.rb +12 -12
  272. data/lib/wx/doc/gen/header_ctrl.rb +755 -0
  273. data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
  274. data/lib/wx/doc/gen/help_controller.rb +46 -7
  275. data/lib/wx/doc/gen/help_provider.rb +3 -3
  276. data/lib/wx/doc/gen/html/html_cell.rb +67 -44
  277. data/lib/wx/doc/gen/html/html_cell_event.rb +3 -3
  278. data/lib/wx/doc/gen/html/html_easy_printing.rb +6 -6
  279. data/lib/wx/doc/gen/html/html_help_controller.rb +79 -52
  280. data/lib/wx/doc/gen/html/html_help_data.rb +2 -2
  281. data/lib/wx/doc/gen/html/html_help_window.rb +21 -27
  282. data/lib/wx/doc/gen/html/html_list_box.rb +11 -11
  283. data/lib/wx/doc/gen/html/html_printout.rb +1 -1
  284. data/lib/wx/doc/gen/html/html_window.rb +36 -32
  285. data/lib/wx/doc/gen/hyperlink_ctrl.rb +5 -5
  286. data/lib/wx/doc/gen/icon.rb +10 -10
  287. data/lib/wx/doc/gen/icon_location.rb +1 -1
  288. data/lib/wx/doc/gen/image.rb +46 -51
  289. data/lib/wx/doc/gen/image_list.rb +14 -24
  290. data/lib/wx/doc/gen/info_bar.rb +152 -0
  291. data/lib/wx/doc/gen/keyboard_state.rb +17 -17
  292. data/lib/wx/doc/gen/list_box.rb +24 -24
  293. data/lib/wx/doc/gen/list_ctrl.rb +61 -96
  294. data/lib/wx/doc/gen/list_event.rb +2 -2
  295. data/lib/wx/doc/gen/listbook.rb +1 -1
  296. data/lib/wx/doc/gen/locale.rb +15 -39
  297. data/lib/wx/doc/gen/log.rb +17 -67
  298. data/lib/wx/doc/gen/mdi_client_window.rb +1 -1
  299. data/lib/wx/doc/gen/mdi_frame.rb +12 -12
  300. data/lib/wx/doc/gen/media_ctrl.rb +17 -17
  301. data/lib/wx/doc/gen/media_event.rb +1 -1
  302. data/lib/wx/doc/gen/memory_dc.rb +3 -6
  303. data/lib/wx/doc/gen/menu.rb +15 -16
  304. data/lib/wx/doc/gen/menu_bar.rb +9 -26
  305. data/lib/wx/doc/gen/menu_item.rb +88 -88
  306. data/lib/wx/doc/gen/message_dialog.rb +6 -6
  307. data/lib/wx/doc/gen/mini_frame.rb +4 -4
  308. data/lib/wx/doc/gen/mouse_state.rb +50 -10
  309. data/lib/wx/doc/gen/non_owned_window.rb +2 -2
  310. data/lib/wx/doc/gen/notebook.rb +9 -9
  311. data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
  312. data/lib/wx/doc/gen/object.rb +1 -12
  313. data/lib/wx/doc/gen/palette.rb +12 -14
  314. data/lib/wx/doc/gen/panel.rb +6 -6
  315. data/lib/wx/doc/gen/pen.rb +25 -25
  316. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +2 -2
  317. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +14 -14
  318. data/lib/wx/doc/gen/pg/pg_cell.rb +3 -6
  319. data/lib/wx/doc/gen/pg/pg_editor.rb +19 -19
  320. data/lib/wx/doc/gen/pg/pg_multi_button.rb +61 -86
  321. data/lib/wx/doc/gen/pg/pg_properties.rb +210 -263
  322. data/lib/wx/doc/gen/pg/pg_property.rb +161 -257
  323. data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -2
  324. data/lib/wx/doc/gen/pg/property_grid.rb +32 -32
  325. data/lib/wx/doc/gen/pg/property_grid_event.rb +7 -7
  326. data/lib/wx/doc/gen/pg/property_grid_interface.rb +43 -49
  327. data/lib/wx/doc/gen/pg/property_grid_manager.rb +41 -44
  328. data/lib/wx/doc/gen/pg/property_grid_page.rb +11 -20
  329. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +10 -19
  330. data/lib/wx/doc/gen/picker_base.rb +5 -5
  331. data/lib/wx/doc/gen/platform_info.rb +174 -14
  332. data/lib/wx/doc/gen/popup_window.rb +2 -2
  333. data/lib/wx/doc/gen/progress_dialog.rb +2 -2
  334. data/lib/wx/doc/gen/property_sheet_dialog.rb +3 -3
  335. data/lib/wx/doc/gen/prt/preview_frame.rb +14 -1
  336. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  337. data/lib/wx/doc/gen/prt/print_data.rb +44 -44
  338. data/lib/wx/doc/gen/prt/printer.rb +23 -28
  339. data/lib/wx/doc/gen/query_layout_info_event.rb +4 -4
  340. data/lib/wx/doc/gen/radio_box.rb +13 -13
  341. data/lib/wx/doc/gen/radio_button.rb +7 -7
  342. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +28 -28
  343. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +13 -13
  344. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +1 -1
  345. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +13 -13
  346. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +2 -2
  347. data/lib/wx/doc/gen/rbn/ribbon_control.rb +8 -8
  348. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +8 -14
  349. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +1 -1
  350. data/lib/wx/doc/gen/rbn/ribbon_page.rb +7 -7
  351. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -16
  352. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +1 -1
  353. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +13 -13
  354. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +2 -2
  355. data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
  356. data/lib/wx/doc/gen/rearrange_list.rb +99 -0
  357. data/lib/wx/doc/gen/region.rb +26 -35
  358. data/lib/wx/doc/gen/region_iterator.rb +1 -1
  359. data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
  360. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +608 -1520
  361. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
  362. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
  363. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +437 -474
  364. data/lib/wx/doc/gen/rtc/rich_text_event.rb +9 -9
  365. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +13 -13
  366. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
  367. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +14 -14
  368. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +3 -16
  369. data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
  370. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
  371. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
  372. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +18 -18
  373. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
  374. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
  375. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
  376. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
  377. data/lib/wx/doc/gen/sash_event.rb +8 -5
  378. data/lib/wx/doc/gen/sash_layout_window.rb +10 -10
  379. data/lib/wx/doc/gen/sash_window.rb +7 -7
  380. data/lib/wx/doc/gen/scroll_bar.rb +6 -6
  381. data/lib/wx/doc/gen/scrolled_canvas.rb +12 -18
  382. data/lib/wx/doc/gen/scrolled_control.rb +12 -18
  383. data/lib/wx/doc/gen/scrolled_window.rb +12 -18
  384. data/lib/wx/doc/gen/search_ctrl.rb +7 -7
  385. data/lib/wx/doc/gen/simplebook.rb +5 -5
  386. data/lib/wx/doc/gen/single_choice_dialog.rb +1 -2
  387. data/lib/wx/doc/gen/sizer.rb +40 -45
  388. data/lib/wx/doc/gen/sizer_item.rb +5 -5
  389. data/lib/wx/doc/gen/slider.rb +4 -4
  390. data/lib/wx/doc/gen/spin_button.rb +3 -3
  391. data/lib/wx/doc/gen/spin_ctrl.rb +3 -3
  392. data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
  393. data/lib/wx/doc/gen/spin_double_event.rb +53 -0
  394. data/lib/wx/doc/gen/spin_event.rb +1 -1
  395. data/lib/wx/doc/gen/splitter_event.rb +1 -1
  396. data/lib/wx/doc/gen/splitter_window.rb +18 -14
  397. data/lib/wx/doc/gen/static_bitmap.rb +6 -6
  398. data/lib/wx/doc/gen/static_box.rb +11 -11
  399. data/lib/wx/doc/gen/static_line.rb +5 -5
  400. data/lib/wx/doc/gen/static_text.rb +5 -5
  401. data/lib/wx/doc/gen/status_bar.rb +41 -7
  402. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +148 -180
  403. data/lib/wx/doc/gen/stc/styled_text_event.rb +6 -6
  404. data/lib/wx/doc/gen/svg_file_dc.rb +5 -5
  405. data/lib/wx/doc/gen/system_options.rb +2 -2
  406. data/lib/wx/doc/gen/system_settings.rb +6 -6
  407. data/lib/wx/doc/gen/task_bar_icon.rb +7 -7
  408. data/lib/wx/doc/gen/task_bar_icon_event.rb +1 -1
  409. data/lib/wx/doc/gen/text_attr.rb +56 -54
  410. data/lib/wx/doc/gen/text_ctrl.rb +15 -39
  411. data/lib/wx/doc/gen/text_entry.rb +16 -16
  412. data/lib/wx/doc/gen/text_entry_dialog.rb +4 -4
  413. data/lib/wx/doc/gen/text_validator.rb +3 -8
  414. data/lib/wx/doc/gen/time_picker_ctrl.rb +5 -5
  415. data/lib/wx/doc/gen/timer.rb +5 -5
  416. data/lib/wx/doc/gen/tip_provider.rb +2 -2
  417. data/lib/wx/doc/gen/toggle_button.rb +6 -6
  418. data/lib/wx/doc/gen/tool_bar.rb +32 -39
  419. data/lib/wx/doc/gen/tool_tip.rb +1 -9
  420. data/lib/wx/doc/gen/toolbook.rb +6 -6
  421. data/lib/wx/doc/gen/top_level_window.rb +27 -97
  422. data/lib/wx/doc/gen/tree_ctrl.rb +22 -22
  423. data/lib/wx/doc/gen/tree_event.rb +2 -2
  424. data/lib/wx/doc/gen/treebook.rb +14 -14
  425. data/lib/wx/doc/gen/ui_action_simulator.rb +19 -18
  426. data/lib/wx/doc/gen/utils.rb +12 -12
  427. data/lib/wx/doc/gen/v_list_box.rb +11 -11
  428. data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
  429. data/lib/wx/doc/gen/validator.rb +3 -3
  430. data/lib/wx/doc/gen/variant.rb +22 -22
  431. data/lib/wx/doc/gen/window.rb +162 -127
  432. data/lib/wx/doc/gen/with_images.rb +1 -1
  433. data/lib/wx/doc/gen/wizard.rb +4 -4
  434. data/lib/wx/doc/gen/wizard_event.rb +3 -3
  435. data/lib/wx/doc/gen/wizard_page.rb +2 -2
  436. data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
  437. data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
  438. data/lib/wx/doc/gen/xml_node.rb +10 -10
  439. data/lib/wx/doc/gen/xml_resource.rb +12 -12
  440. data/lib/wx/doc/graphics_context.rb +59 -39
  441. data/lib/wx/doc/grid/grid.rb +16 -1
  442. data/lib/wx/doc/hboxsizer.rb +33 -0
  443. data/lib/wx/doc/help_controller.rb +6 -0
  444. data/lib/wx/doc/html/html_help_controller.rb +6 -0
  445. data/lib/wx/doc/icon.rb +13 -5
  446. data/lib/wx/doc/id_helper.rb +6 -0
  447. data/lib/wx/doc/image.rb +12 -4
  448. data/lib/wx/doc/list_ctrl.rb +6 -0
  449. data/lib/wx/doc/log.rb +17 -0
  450. data/lib/wx/doc/memory_dc.rb +6 -0
  451. data/lib/wx/doc/mirror_dc.rb +6 -0
  452. data/lib/wx/doc/pen.rb +6 -0
  453. data/lib/wx/doc/pg/events.rb +6 -0
  454. data/lib/wx/doc/pg/pg_property.rb +17 -0
  455. data/lib/wx/doc/pg/pgeditor.rb +6 -0
  456. data/lib/wx/doc/pg/property_grid.rb +6 -0
  457. data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
  458. data/lib/wx/doc/progress_dialog.rb +6 -0
  459. data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
  460. data/lib/wx/doc/prt/print_data.rb +6 -0
  461. data/lib/wx/doc/prt/print_dialog.rb +6 -0
  462. data/lib/wx/doc/prt/printer.rb +6 -0
  463. data/lib/wx/doc/prt/printer_dc.rb +6 -0
  464. data/lib/wx/doc/radio_box.rb +6 -0
  465. data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
  466. data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
  467. data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
  468. data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
  469. data/lib/wx/doc/region_iterator.rb +6 -0
  470. data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
  471. data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
  472. data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
  473. data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
  474. data/lib/wx/doc/scaled_dc.rb +6 -0
  475. data/lib/wx/doc/screen_dc.rb +6 -0
  476. data/lib/wx/doc/stock_objects.rb +6 -0
  477. data/lib/wx/doc/stream.rb +6 -0
  478. data/lib/wx/doc/svg_file_dc.rb +6 -0
  479. data/lib/wx/doc/system_settings.rb +6 -0
  480. data/lib/wx/doc/text_validator.rb +6 -0
  481. data/lib/wx/doc/textctrl.rb +89 -0
  482. data/lib/wx/doc/tree_event.rb +20 -0
  483. data/lib/wx/doc/treebook.rb +6 -0
  484. data/lib/wx/doc/v_list_box.rb +6 -0
  485. data/lib/wx/doc/variant.rb +6 -0
  486. data/lib/wx/doc/vboxsizer.rb +33 -0
  487. data/lib/wx/doc/window.rb +11 -0
  488. data/lib/wx/doc/window_disabler.rb +6 -0
  489. data/lib/wx/doc/xml_resource.rb +8 -0
  490. data/lib/wx/global_const.rb +4 -1
  491. data/lib/wx/grid/grid.rb +23 -3
  492. data/lib/wx/grid/keyword_defs.rb +8 -1
  493. data/lib/wx/grid/require.rb +4 -1
  494. data/lib/wx/grid.rb +4 -1
  495. data/lib/wx/helpers.rb +8 -1
  496. data/lib/wx/html/htmlhelpcontroller.rb +29 -3
  497. data/lib/wx/html/htmlwindow.rb +23 -12
  498. data/lib/wx/html/keyword_defs.rb +8 -1
  499. data/lib/wx/html/require.rb +4 -1
  500. data/lib/wx/html/simple_html_listbox.rb +3 -0
  501. data/lib/wx/html.rb +4 -1
  502. data/lib/wx/keyword_ctors.rb +22 -3
  503. data/lib/wx/keyword_defs.rb +96 -7
  504. data/lib/wx/pg/events.rb +4 -1
  505. data/lib/wx/pg/keyword_defs.rb +8 -1
  506. data/lib/wx/pg/pg_editor.rb +3 -0
  507. data/lib/wx/pg/pg_properties.rb +4 -1
  508. data/lib/wx/pg/pg_property.rb +18 -5
  509. data/lib/wx/pg/property_grid.rb +4 -1
  510. data/lib/wx/pg/property_grid_interface.rb +3 -0
  511. data/lib/wx/pg/require.rb +4 -1
  512. data/lib/wx/pg.rb +4 -1
  513. data/lib/wx/prt/keyword_defs.rb +8 -1
  514. data/lib/wx/prt/page_setup_dialog.rb +3 -0
  515. data/lib/wx/prt/previewframe.rb +5 -0
  516. data/lib/wx/prt/require.rb +4 -1
  517. data/lib/wx/prt.rb +4 -1
  518. data/lib/wx/rbn/events.rb +4 -1
  519. data/lib/wx/rbn/keyword_defs.rb +8 -1
  520. data/lib/wx/rbn/require.rb +5 -1
  521. data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
  522. data/lib/wx/rbn/ribbon_bar.rb +3 -0
  523. data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
  524. data/lib/wx/rbn/ribbon_control.rb +3 -0
  525. data/lib/wx/rbn/ribbon_gallery.rb +10 -0
  526. data/lib/wx/rbn/ribbon_page.rb +3 -0
  527. data/lib/wx/rbn/ribbon_panel.rb +3 -0
  528. data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
  529. data/lib/wx/rbn.rb +4 -1
  530. data/lib/wx/rtc/ext.rb +4 -1
  531. data/lib/wx/rtc/keyword_defs.rb +18 -7
  532. data/lib/wx/rtc/require.rb +8 -1
  533. data/lib/wx/rtc/richtext_buffer.rb +36 -0
  534. data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
  535. data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
  536. data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
  537. data/lib/wx/rtc.rb +5 -1
  538. data/lib/wx/stc/keyword_defs.rb +8 -1
  539. data/lib/wx/stc/require.rb +4 -1
  540. data/lib/wx/stc.rb +4 -1
  541. data/lib/wx/version.rb +5 -1
  542. data/lib/wx/wxruby/base.rb +4 -1
  543. data/lib/wx/wxruby/cmd/sampler.rb +4 -1
  544. data/lib/wx/wxruby/cmd/test.rb +4 -1
  545. data/lib/wx.rb +4 -1
  546. data/lib/wxruby_aui.so +0 -0
  547. data/lib/wxruby_core.so +0 -0
  548. data/lib/wxruby_grid.so +0 -0
  549. data/lib/wxruby_html.so +0 -0
  550. data/lib/wxruby_pg.so +0 -0
  551. data/lib/wxruby_prt.so +0 -0
  552. data/lib/wxruby_rbn.so +0 -0
  553. data/lib/wxruby_rtc.so +0 -0
  554. data/lib/wxruby_stc.so +0 -0
  555. data/rakelib/install.rb +4 -1
  556. data/rakelib/lib/config/cygwin.rb +4 -1
  557. data/rakelib/lib/config/linux.rb +4 -1
  558. data/rakelib/lib/config/macosx.rb +6 -3
  559. data/rakelib/lib/config/mingw.rb +4 -1
  560. data/rakelib/lib/config/netbsd.rb +4 -1
  561. data/rakelib/lib/config/unixish.rb +10 -7
  562. data/rakelib/lib/config.rb +7 -2
  563. data/rakelib/lib/ext/enum_chain.rb +4 -1
  564. data/rakelib/prepost.rake +4 -1
  565. data/rakelib/prepost.rb +4 -1
  566. data/samples/aui/aui.rb +8 -3
  567. data/samples/bigdemo/bigdemo.rb +9 -2
  568. data/samples/bigdemo/run.rb +9 -2
  569. data/samples/bigdemo/utils.rb +9 -1
  570. data/samples/calendar/calendar.rb +9 -4
  571. data/samples/caret/caret.rb +8 -3
  572. data/samples/controls/books.rb +8 -2
  573. data/samples/controls/controls.rb +33 -77
  574. data/samples/controls/get_item_sample.rb +8 -2
  575. data/samples/controls/htlbox.rb +10 -3
  576. data/samples/dialogs/dialogs.rb +9 -4
  577. data/samples/dialogs/wizard.rb +8 -3
  578. data/samples/dragdrop/dragdrop.rb +8 -3
  579. data/samples/drawing/bitmap.rb +8 -3
  580. data/samples/drawing/bitmap_image.rb +8 -3
  581. data/samples/drawing/graphics_drawing.rb +44 -33
  582. data/samples/drawing/image_prt.rb +8 -2
  583. data/samples/drawing/maths_images.rb +8 -3
  584. data/samples/drawing/rmagic_bitmap_image.rb +8 -3
  585. data/samples/etc/choice.rb +8 -3
  586. data/samples/etc/miniframe.rb +8 -3
  587. data/samples/etc/sash.rb +8 -3
  588. data/samples/etc/scrollwin.rb +8 -3
  589. data/samples/etc/system_settings.rb +8 -3
  590. data/samples/event/activation.rb +8 -3
  591. data/samples/event/event.rb +8 -3
  592. data/samples/event/threaded.rb +8 -3
  593. data/samples/event/update_ui_event.rb +8 -3
  594. data/samples/grid/grid.rb +9 -3
  595. data/samples/grid/gridtablebase.rb +8 -3
  596. data/samples/html/html.rb +8 -3
  597. data/samples/mdi/mdi.rb +8 -3
  598. data/samples/minimal/minimal.rb +8 -3
  599. data/samples/minimal/nothing.rb +8 -3
  600. data/samples/printing/printing.rb +8 -3
  601. data/samples/printing/printing2.rb +8 -2
  602. data/samples/propgrid/propgrid.rb +4 -1
  603. data/samples/propgrid/propgrid_minimal.rb +4 -2
  604. data/samples/propgrid/sample_props.rb +4 -1
  605. data/samples/ribbon/ribbon.rb +4 -1
  606. data/samples/sampler/editor.rb +4 -1
  607. data/samples/sampler/ext.rb +4 -1
  608. data/samples/sampler/sample.rb +13 -4
  609. data/samples/sampler/stc_editor.rb +4 -1
  610. data/samples/sampler/txt_editor.rb +4 -1
  611. data/samples/sampler.rb +11 -3
  612. data/samples/splash/splash.rb +4 -2
  613. data/samples/text/art/richtext/alignleft.xpm +24 -0
  614. data/samples/text/art/richtext/alignright.xpm +24 -0
  615. data/samples/text/art/richtext/bold.xpm +24 -0
  616. data/samples/text/art/richtext/centre.xpm +24 -0
  617. data/samples/text/art/richtext/copy.xpm +45 -0
  618. data/samples/text/art/richtext/cut.xpm +47 -0
  619. data/samples/text/art/richtext/font.xpm +25 -0
  620. data/samples/text/art/richtext/idea.xpm +47 -0
  621. data/samples/text/art/richtext/indentless.xpm +25 -0
  622. data/samples/text/art/richtext/indentmore.xpm +25 -0
  623. data/samples/text/art/richtext/italic.xpm +25 -0
  624. data/samples/text/art/richtext/open.xpm +58 -0
  625. data/samples/text/art/richtext/paste.xpm +47 -0
  626. data/samples/text/art/richtext/redo.xpm +59 -0
  627. data/samples/text/art/richtext/save.xpm +43 -0
  628. data/samples/text/art/richtext/smiley.xpm +42 -0
  629. data/samples/text/art/richtext/underline.xpm +25 -0
  630. data/samples/text/art/richtext/undo.xpm +59 -0
  631. data/samples/text/art/richtext/zebra.xpm +409 -0
  632. data/samples/text/rich_textctrl.rb +8 -3
  633. data/samples/text/richtext.rb +1794 -0
  634. data/samples/text/scintilla.rb +8 -3
  635. data/samples/text/textctrl.rb +21 -4
  636. data/samples/text/tn_richtext.png +0 -0
  637. data/samples/text/unicode.rb +9 -4
  638. data/samples/treectrl/treectrl.rb +10 -5
  639. data/samples/xrc/custom_xrc_sample.rb +8 -3
  640. data/samples/xrc/xrc_sample.rb +8 -3
  641. data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
  642. data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
  643. data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
  644. data/tests/lib/item_container_tests.rb +3 -0
  645. data/tests/lib/text_entry_tests.rb +3 -0
  646. data/tests/lib/wxapp_runner.rb +3 -0
  647. data/tests/lib/wxframe_runner.rb +81 -3
  648. data/tests/test_app_event_filter.rb +3 -0
  649. data/tests/test_app_exit_exception.rb +36 -0
  650. data/tests/test_app_init_exception.rb +20 -0
  651. data/tests/test_app_traits.rb +33 -0
  652. data/tests/test_art.rb +22 -0
  653. data/tests/test_art_provider.rb +3 -0
  654. data/tests/test_aui.rb +65 -0
  655. data/tests/test_basic.rb +5 -1
  656. data/tests/test_book_controls.rb +29 -0
  657. data/tests/test_box_sizer.rb +5 -2
  658. data/tests/test_clipboard.rb +3 -0
  659. data/tests/test_config.rb +150 -0
  660. data/tests/test_dc.rb +3 -0
  661. data/tests/test_dialog.rb +3 -0
  662. data/tests/test_event_handling.rb +3 -0
  663. data/tests/test_events.rb +3 -0
  664. data/tests/test_exceptions.rb +41 -0
  665. data/tests/test_ext_controls.rb +286 -3
  666. data/tests/test_file_dialog.rb +55 -0
  667. data/tests/test_font.rb +8 -5
  668. data/tests/test_gdi_object.rb +3 -0
  669. data/tests/test_geometry.rb +4 -0
  670. data/tests/test_grid_sizer.rb +7 -4
  671. data/tests/test_intl.rb +3 -0
  672. data/tests/test_item_data.rb +3 -0
  673. data/tests/test_list_ctrl.rb +4 -1
  674. data/tests/test_log.rb +63 -0
  675. data/tests/test_proof_check.rb +52 -0
  676. data/tests/test_richtext.rb +204 -0
  677. data/tests/test_sizer.rb +43 -0
  678. data/tests/test_std_controls.rb +81 -35
  679. data/tests/test_timer.rb +3 -0
  680. data/tests/test_variant.rb +3 -0
  681. data/tests/test_window.rb +10 -8
  682. data/tests/testapp.rb +4 -0
  683. data/tests/testapp_noframe.rb +4 -0
  684. metadata +86 -3
  685. data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
@@ -6,1385 +6,17 @@
6
6
 
7
7
  module Wx::RTC
8
8
 
9
- #
10
- RICHTEXT_FIXED_WIDTH = 1
11
-
12
- #
13
- RICHTEXT_FIXED_HEIGHT = 2
14
-
15
- #
16
- RICHTEXT_VARIABLE_WIDTH = 4
17
-
18
- #
19
- RICHTEXT_VARIABLE_HEIGHT = 8
20
-
21
- #
22
- RICHTEXT_LAYOUT_SPECIFIED_RECT = 16
23
-
24
- #
25
- RICHTEXT_DRAW_IGNORE_CACHE = 1
26
-
27
- #
28
- RICHTEXT_DRAW_SELECTED = 2
29
-
30
- #
31
- RICHTEXT_DRAW_PRINT = 4
32
-
33
- #
34
- RICHTEXT_DRAW_GUIDELINES = 8
35
-
36
- #
37
- RICHTEXT_FORMATTED = 1
38
-
39
- #
40
- RICHTEXT_UNFORMATTED = 2
41
-
42
- #
43
- RICHTEXT_CACHE_SIZE = 4
44
-
45
- #
46
- RICHTEXT_HEIGHT_ONLY = 8
47
-
48
- #
49
- RICHTEXT_SETSTYLE_NONE = 0
50
-
51
- #
52
- RICHTEXT_SETSTYLE_WITH_UNDO = 1
53
-
54
- #
55
- RICHTEXT_SETSTYLE_OPTIMIZE = 2
56
-
57
- #
58
- RICHTEXT_SETSTYLE_PARAGRAPHS_ONLY = 4
59
-
60
- #
61
- RICHTEXT_SETSTYLE_CHARACTERS_ONLY = 8
62
-
63
- #
64
- RICHTEXT_SETSTYLE_RENUMBER = 16
65
-
66
- #
67
- RICHTEXT_SETSTYLE_SPECIFY_LEVEL = 32
68
-
69
- #
70
- RICHTEXT_SETSTYLE_RESET = 64
71
-
72
- #
73
- RICHTEXT_SETSTYLE_REMOVE = 128
74
-
75
- #
76
- RICHTEXT_SETPROPERTIES_NONE = 0
77
-
78
- #
79
- RICHTEXT_SETPROPERTIES_WITH_UNDO = 1
80
-
81
- #
82
- RICHTEXT_SETPROPERTIES_PARAGRAPHS_ONLY = 2
83
-
84
- #
85
- RICHTEXT_SETPROPERTIES_CHARACTERS_ONLY = 4
86
-
87
- #
88
- RICHTEXT_SETPROPERTIES_RESET = 8
89
-
90
- #
91
- RICHTEXT_SETPROPERTIES_REMOVE = 16
92
-
93
- #
94
- RICHTEXT_INSERT_NONE = 0
95
-
96
- #
97
- RICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE = 1
98
-
99
- #
100
- RICHTEXT_INSERT_INTERACTIVE = 2
101
-
102
- #
103
- TEXT_ATTR_KEEP_FIRST_PARA_STYLE = 268435456
104
-
105
- #
106
- SCRIPT_MUL_FACTOR = 1.5
107
-
108
- #
109
- RICHTEXT_HANDLER_INCLUDE_STYLESHEET = 1
110
-
111
- #
112
- RICHTEXT_HANDLER_SAVE_IMAGES_TO_MEMORY = 16
113
-
114
- #
115
- RICHTEXT_HANDLER_SAVE_IMAGES_TO_FILES = 32
116
-
117
- #
118
- RICHTEXT_HANDLER_SAVE_IMAGES_TO_BASE64 = 64
119
-
120
- #
121
- RICHTEXT_HANDLER_NO_HEADER_FOOTER = 128
122
-
123
- #
124
- RICHTEXT_HANDLER_CONVERT_FACENAMES = 256
125
-
126
- #
127
- RICHTEXT_HANDLER_USE_CSS = 4096
128
-
129
- # File types in {Wx::RichText} context.
130
- #
131
- #
132
- #
133
- class RichTextFileType < Wx::Enum
134
-
135
- #
136
- #
137
- RICHTEXT_TYPE_ANY = Wx::RTC::RichTextFileType.new(0)
138
-
139
- #
140
- #
141
- RICHTEXT_TYPE_TEXT = Wx::RTC::RichTextFileType.new(1)
142
-
143
- #
144
- #
145
- RICHTEXT_TYPE_XML = Wx::RTC::RichTextFileType.new(2)
146
-
147
- #
148
- #
149
- RICHTEXT_TYPE_HTML = Wx::RTC::RichTextFileType.new(3)
150
-
151
- #
152
- #
153
- RICHTEXT_TYPE_RTF = Wx::RTC::RichTextFileType.new(4)
154
-
155
- #
156
- #
157
- RICHTEXT_TYPE_PDF = Wx::RTC::RichTextFileType.new(5)
158
-
159
- end # RichTextFileType
160
-
161
- # Flags returned from hit-testing, or passed to hit-test function.
162
- #
163
- #
164
- #
165
- class RichTextHitTestFlags < Wx::Enum
166
-
167
- #
168
- #
169
- RICHTEXT_HITTEST_NONE = Wx::RTC::RichTextHitTestFlags.new(1)
170
-
171
- #
172
- #
173
- RICHTEXT_HITTEST_BEFORE = Wx::RTC::RichTextHitTestFlags.new(2)
174
-
175
- #
176
- #
177
- RICHTEXT_HITTEST_AFTER = Wx::RTC::RichTextHitTestFlags.new(4)
178
-
179
- #
180
- #
181
- RICHTEXT_HITTEST_ON = Wx::RTC::RichTextHitTestFlags.new(8)
182
-
183
- #
184
- #
185
- RICHTEXT_HITTEST_OUTSIDE = Wx::RTC::RichTextHitTestFlags.new(16)
186
-
187
- #
188
- #
189
- RICHTEXT_HITTEST_NO_NESTED_OBJECTS = Wx::RTC::RichTextHitTestFlags.new(32)
190
-
191
- #
192
- #
193
- RICHTEXT_HITTEST_NO_FLOATING_OBJECTS = Wx::RTC::RichTextHitTestFlags.new(64)
194
-
195
- #
196
- #
197
- RICHTEXT_HITTEST_HONOUR_ATOMIC = Wx::RTC::RichTextHitTestFlags.new(128)
198
-
199
- end # RichTextHitTestFlags
200
-
201
- # Miscellaneous text box flags.
202
- #
203
- #
204
- #
205
- class TextBoxAttrFlags < Wx::Enum
206
-
207
- #
208
- #
209
- TEXT_BOX_ATTR_FLOAT = Wx::RTC::TextBoxAttrFlags.new(1)
210
-
211
- #
212
- #
213
- TEXT_BOX_ATTR_CLEAR = Wx::RTC::TextBoxAttrFlags.new(2)
214
-
215
- #
216
- #
217
- TEXT_BOX_ATTR_COLLAPSE_BORDERS = Wx::RTC::TextBoxAttrFlags.new(4)
218
-
219
- #
220
- #
221
- TEXT_BOX_ATTR_VERTICAL_ALIGNMENT = Wx::RTC::TextBoxAttrFlags.new(8)
222
-
223
- #
224
- #
225
- TEXT_BOX_ATTR_BOX_STYLE_NAME = Wx::RTC::TextBoxAttrFlags.new(16)
226
-
227
- #
228
- #
229
- TEXT_BOX_ATTR_WHITESPACE = Wx::RTC::TextBoxAttrFlags.new(32)
230
-
231
- #
232
- #
233
- TEXT_BOX_ATTR_CORNER_RADIUS = Wx::RTC::TextBoxAttrFlags.new(64)
234
-
235
- end # TextBoxAttrFlags
236
-
237
- # Whether a value is present, used in dimension flags.
238
- #
239
- #
240
- #
241
- class TextAttrValueFlags < Wx::Enum
242
-
243
- #
244
- #
245
- TEXT_ATTR_VALUE_VALID = Wx::RTC::TextAttrValueFlags.new(4096)
246
-
247
- #
248
- #
249
- TEXT_ATTR_VALUE_VALID_MASK = Wx::RTC::TextAttrValueFlags.new(4096)
250
-
251
- end # TextAttrValueFlags
252
-
253
- # Units, included in the dimension value.
254
- #
255
- #
256
- #
257
- class TextAttrUnits < Wx::Enum
258
-
259
- #
260
- #
261
- TEXT_ATTR_UNITS_TENTHS_MM = Wx::RTC::TextAttrUnits.new(1)
262
-
263
- #
264
- #
265
- TEXT_ATTR_UNITS_PIXELS = Wx::RTC::TextAttrUnits.new(2)
266
-
267
- #
268
- #
269
- TEXT_ATTR_UNITS_PERCENTAGE = Wx::RTC::TextAttrUnits.new(4)
270
-
271
- #
272
- #
273
- TEXT_ATTR_UNITS_POINTS = Wx::RTC::TextAttrUnits.new(8)
274
-
275
- #
276
- #
277
- TEXT_ATTR_UNITS_HUNDREDTHS_POINT = Wx::RTC::TextAttrUnits.new(256)
278
-
279
- #
280
- #
281
- TEXT_ATTR_UNITS_MASK = Wx::RTC::TextAttrUnits.new(271)
282
-
283
- end # TextAttrUnits
284
-
285
- # Position alternatives, included in the dimension flags.
286
- #
287
- #
288
- #
289
- class TextBoxAttrPosition < Wx::Enum
290
-
291
- #
292
- #
293
- TEXT_BOX_ATTR_POSITION_STATIC = Wx::RTC::TextBoxAttrPosition.new(0)
294
-
295
- #
296
- #
297
- TEXT_BOX_ATTR_POSITION_RELATIVE = Wx::RTC::TextBoxAttrPosition.new(16)
298
-
299
- #
300
- #
301
- TEXT_BOX_ATTR_POSITION_ABSOLUTE = Wx::RTC::TextBoxAttrPosition.new(32)
302
-
303
- #
304
- #
305
- TEXT_BOX_ATTR_POSITION_FIXED = Wx::RTC::TextBoxAttrPosition.new(64)
306
-
307
- #
308
- #
309
- TEXT_BOX_ATTR_POSITION_MASK = Wx::RTC::TextBoxAttrPosition.new(240)
310
-
311
- end # TextBoxAttrPosition
312
-
313
- # Border styles, used with {Wx::RTC::TextAttrBorder}.
314
- #
315
- #
316
- #
317
- class TextAttrBorderStyle < Wx::Enum
318
-
319
- #
320
- #
321
- TEXT_BOX_ATTR_BORDER_NONE = Wx::RTC::TextAttrBorderStyle.new(0)
322
-
323
- #
324
- #
325
- TEXT_BOX_ATTR_BORDER_SOLID = Wx::RTC::TextAttrBorderStyle.new(1)
326
-
327
- #
328
- #
329
- TEXT_BOX_ATTR_BORDER_DOTTED = Wx::RTC::TextAttrBorderStyle.new(2)
330
-
331
- #
332
- #
333
- TEXT_BOX_ATTR_BORDER_DASHED = Wx::RTC::TextAttrBorderStyle.new(3)
334
-
335
- #
336
- #
337
- TEXT_BOX_ATTR_BORDER_DOUBLE = Wx::RTC::TextAttrBorderStyle.new(4)
338
-
339
- #
340
- #
341
- TEXT_BOX_ATTR_BORDER_GROOVE = Wx::RTC::TextAttrBorderStyle.new(5)
342
-
343
- #
344
- #
345
- TEXT_BOX_ATTR_BORDER_RIDGE = Wx::RTC::TextAttrBorderStyle.new(6)
346
-
347
- #
348
- #
349
- TEXT_BOX_ATTR_BORDER_INSET = Wx::RTC::TextAttrBorderStyle.new(7)
350
-
351
- #
352
- #
353
- TEXT_BOX_ATTR_BORDER_OUTSET = Wx::RTC::TextAttrBorderStyle.new(8)
354
-
355
- end # TextAttrBorderStyle
356
-
357
- # Border style presence flags, used with {Wx::RTC::TextAttrBorder}.
358
- #
359
- #
360
- #
361
- class TextAttrBorderFlags < Wx::Enum
362
-
363
- #
364
- #
365
- TEXT_BOX_ATTR_BORDER_STYLE = Wx::RTC::TextAttrBorderFlags.new(1)
366
-
367
- #
368
- #
369
- TEXT_BOX_ATTR_BORDER_COLOUR = Wx::RTC::TextAttrBorderFlags.new(2)
370
-
371
- end # TextAttrBorderFlags
372
-
373
- # Border width symbols for qualitative widths, used with {Wx::RTC::TextAttrBorder}.
374
- #
375
- #
376
- #
377
- class TextAttrBorderWidth < Wx::Enum
378
-
379
- #
380
- #
381
- TEXT_BOX_ATTR_BORDER_THIN = Wx::RTC::TextAttrBorderWidth.new(-1)
382
-
383
- #
384
- #
385
- TEXT_BOX_ATTR_BORDER_MEDIUM = Wx::RTC::TextAttrBorderWidth.new(-2)
386
-
387
- #
388
- #
389
- TEXT_BOX_ATTR_BORDER_THICK = Wx::RTC::TextAttrBorderWidth.new(-3)
390
-
391
- end # TextAttrBorderWidth
392
-
393
- # Float styles.
394
- #
395
- #
396
- #
397
- class TextBoxAttrFloatStyle < Wx::Enum
398
-
399
- #
400
- #
401
- TEXT_BOX_ATTR_FLOAT_NONE = Wx::RTC::TextBoxAttrFloatStyle.new(0)
402
-
403
- #
404
- #
405
- TEXT_BOX_ATTR_FLOAT_LEFT = Wx::RTC::TextBoxAttrFloatStyle.new(1)
406
-
407
- #
408
- #
409
- TEXT_BOX_ATTR_FLOAT_RIGHT = Wx::RTC::TextBoxAttrFloatStyle.new(2)
410
-
411
- end # TextBoxAttrFloatStyle
412
-
413
- # Clear styles.
414
- #
415
- #
416
- #
417
- class TextBoxAttrClearStyle < Wx::Enum
418
-
419
- #
420
- #
421
- TEXT_BOX_ATTR_CLEAR_NONE = Wx::RTC::TextBoxAttrClearStyle.new(0)
422
-
423
- #
424
- #
425
- TEXT_BOX_ATTR_CLEAR_LEFT = Wx::RTC::TextBoxAttrClearStyle.new(1)
426
-
427
- #
428
- #
429
- TEXT_BOX_ATTR_CLEAR_RIGHT = Wx::RTC::TextBoxAttrClearStyle.new(2)
430
-
431
- #
432
- #
433
- TEXT_BOX_ATTR_CLEAR_BOTH = Wx::RTC::TextBoxAttrClearStyle.new(3)
434
-
435
- end # TextBoxAttrClearStyle
436
-
437
- # Collapse mode styles.
438
- #
439
- #
440
- #
441
- class TextBoxAttrCollapseMode < Wx::Enum
442
-
443
- #
444
- #
445
- TEXT_BOX_ATTR_COLLAPSE_NONE = Wx::RTC::TextBoxAttrCollapseMode.new(0)
446
-
447
- #
448
- #
449
- TEXT_BOX_ATTR_COLLAPSE_FULL = Wx::RTC::TextBoxAttrCollapseMode.new(1)
450
-
451
- end # TextBoxAttrCollapseMode
452
-
453
- # Vertical alignment values.
454
- #
455
- #
456
- #
457
- class TextBoxAttrVerticalAlignment < Wx::Enum
458
-
459
- #
460
- #
461
- TEXT_BOX_ATTR_VERTICAL_ALIGNMENT_NONE = Wx::RTC::TextBoxAttrVerticalAlignment.new(0)
462
-
463
- #
464
- #
465
- TEXT_BOX_ATTR_VERTICAL_ALIGNMENT_TOP = Wx::RTC::TextBoxAttrVerticalAlignment.new(1)
466
-
467
- #
468
- #
469
- TEXT_BOX_ATTR_VERTICAL_ALIGNMENT_CENTRE = Wx::RTC::TextBoxAttrVerticalAlignment.new(2)
470
-
471
- #
472
- #
473
- TEXT_BOX_ATTR_VERTICAL_ALIGNMENT_BOTTOM = Wx::RTC::TextBoxAttrVerticalAlignment.new(3)
474
-
475
- end # TextBoxAttrVerticalAlignment
476
-
477
- # Whitespace values mirroring the CSS white-space attribute.
478
- #
479
- # Only {Wx::RTC::TextBoxAttrWhitespaceMode::TEXT_BOX_ATTR_WHITESPACE_NO_WRAP} is currently implemented, in table cells.
480
- #
481
- class TextBoxAttrWhitespaceMode < Wx::Enum
482
-
483
- #
484
- #
485
- TEXT_BOX_ATTR_WHITESPACE_NONE = Wx::RTC::TextBoxAttrWhitespaceMode.new(0)
486
-
487
- #
488
- #
489
- TEXT_BOX_ATTR_WHITESPACE_NORMAL = Wx::RTC::TextBoxAttrWhitespaceMode.new(1)
490
-
491
- #
492
- #
493
- TEXT_BOX_ATTR_WHITESPACE_NO_WRAP = Wx::RTC::TextBoxAttrWhitespaceMode.new(2)
494
-
495
- #
496
- #
497
- TEXT_BOX_ATTR_WHITESPACE_PREFORMATTED = Wx::RTC::TextBoxAttrWhitespaceMode.new(3)
498
-
499
- #
500
- #
501
- TEXT_BOX_ATTR_WHITESPACE_PREFORMATTED_LINE = Wx::RTC::TextBoxAttrWhitespaceMode.new(4)
502
-
503
- #
504
- #
505
- TEXT_BOX_ATTR_WHITESPACE_PREFORMATTED_WRAP = Wx::RTC::TextBoxAttrWhitespaceMode.new(5)
506
-
507
- end # TextBoxAttrWhitespaceMode
508
-
509
- # The command identifiers for Do/Undo.
510
- #
511
- #
512
- #
513
- class RichTextCommandId < Wx::Enum
514
-
515
- #
516
- #
517
- RICHTEXT_INSERT = Wx::RTC::RichTextCommandId.new(0)
518
-
519
- #
520
- #
521
- RICHTEXT_DELETE = Wx::RTC::RichTextCommandId.new(1)
522
-
523
- #
524
- #
525
- RICHTEXT_CHANGE_ATTRIBUTES = Wx::RTC::RichTextCommandId.new(2)
526
-
527
- #
528
- #
529
- RICHTEXT_CHANGE_STYLE = Wx::RTC::RichTextCommandId.new(3)
530
-
531
- #
532
- #
533
- RICHTEXT_CHANGE_OBJECT = Wx::RTC::RichTextCommandId.new(5)
534
-
535
- end # RichTextCommandId
536
-
537
- # The line break character that can be embedded in content.
538
- #
539
- RICH_TEXT_LINE_BREAK_CHAR = "\u001D"
540
-
541
- # A class representing a rich text object border.
542
- # ===
543
- #
544
- # Category: Rich Text
545
- # @see Wx::RTC::RichTextAttr
546
- # @see Wx::RTC::RichTextCtrl
547
- # @see wxRichTextAttrBorders
548
- #
549
- #
550
- #
551
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
552
- class TextAttrBorder < ::Object
553
-
554
- # Default constructor.
555
- # @return [Wx::RTC::TextAttrBorder]
556
- def initialize; end
557
-
558
- # Equality operator.
559
- # @param border [Wx::RTC::TextAttrBorder]
560
- # @return [true,false]
561
- def ==(border) end
562
-
563
- # Resets the border style, colour, width and flags.
564
- # @return [void]
565
- def reset; end
566
-
567
- # Partial equality test.
568
- # If weakTest is true, attributes of this object do not have to be present if those attributes of border are present. If weakTest is false, the function will fail if an attribute is present in border but not in this object.
569
- # @param border [Wx::RTC::TextAttrBorder]
570
- # @param weakTest [true,false]
571
- # @return [true,false]
572
- def eq_partial(border, weakTest=true) end
573
-
574
- # Applies the border to this object, but not if the same as compareWith.
575
- # @param border [Wx::RTC::TextAttrBorder]
576
- # @param compareWith [Wx::RTC::TextAttrBorder]
577
- # @return [true,false]
578
- def apply(border, compareWith=nil) end
579
-
580
- # Removes the specified attributes from this object.
581
- # @param attr [Wx::RTC::TextAttrBorder]
582
- # @return [true,false]
583
- def remove_style(attr) end
584
-
585
- # Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects.
586
- # @param attr [Wx::RTC::TextAttrBorder]
587
- # @param clashingAttr [Wx::RTC::TextAttrBorder]
588
- # @param absentAttr [Wx::RTC::TextAttrBorder]
589
- # @return [void]
590
- def collect_common_attributes(attr, clashingAttr, absentAttr) end
591
-
592
- # Sets the border style.
593
- # @param style [Integer]
594
- # @return [void]
595
- def set_style(style) end
596
- alias_method :style=, :set_style
597
-
598
- # Gets the border style.
599
- # @return [Integer]
600
- def get_style; end
601
- alias_method :style, :get_style
602
-
603
- # @overload set_colour(colour)
604
- # Sets the border colour.
605
- # @param colour [Integer]
606
- # @return [void]
607
- # @overload set_colour(colour)
608
- # Sets the border colour.
609
- # @param colour [Wx::Colour,String,Symbol]
610
- # @return [void]
611
- def set_colour(*args) end
612
- alias_method :colour=, :set_colour
613
-
614
- # Gets the colour as a long.
615
- # @return [Integer]
616
- def get_colour_long; end
617
- alias_method :colour_long, :get_colour_long
618
-
619
- # Gets the colour.
620
- # @return [Wx::Colour]
621
- def get_colour; end
622
- alias_method :colour, :get_colour
623
-
624
- # @overload get_width()
625
- # Gets the border width.
626
- # @return [Wx::TextAttrDimension]
627
- # @overload get_width()
628
- # @return [Wx::TextAttrDimension]
629
- def get_width(*args) end
630
- alias_method :width, :get_width
631
-
632
- # @overload set_width(width)
633
- # Sets the border width.
634
- # @param width [Wx::TextAttrDimension]
635
- # @return [void]
636
- # @overload set_width(value, units=Wx::RTC::TextAttrUnits::TEXT_ATTR_UNITS_TENTHS_MM)
637
- # Sets the border width.
638
- # @param value [Integer]
639
- # @param units [TextAttrUnits]
640
- # @return [void]
641
- def set_width(*args) end
642
- alias_method :width=, :set_width
643
-
644
- # True if the border has a valid style.
645
- # @return [true,false]
646
- def has_style; end
647
- alias_method :has_style?, :has_style
648
-
649
- # True if the border has a valid colour.
650
- # @return [true,false]
651
- def has_colour; end
652
- alias_method :has_colour?, :has_colour
653
-
654
- # True if the border has a valid width.
655
- # @return [true,false]
656
- def has_width; end
657
- alias_method :has_width?, :has_width
658
-
659
- # True if the border is valid.
660
- # @return [true,false]
661
- def is_valid; end
662
- alias_method :valid?, :is_valid
663
-
664
- # True if the border has no attributes set.
665
- # @return [true,false]
666
- def is_default; end
667
- alias_method :default?, :is_default
668
-
669
- # Set the valid flag for this border.
670
- # @return [void]
671
- def make_valid; end
672
-
673
- # Returns the border flags.
674
- # @return [Integer]
675
- def get_flags; end
676
- alias_method :flags, :get_flags
677
-
678
- # Sets the border flags.
679
- # @param flags [Integer]
680
- # @return [void]
681
- def set_flags(flags) end
682
- alias_method :flags=, :set_flags
683
-
684
- # Adds a border flag.
685
- # @param flag [Integer]
686
- # @return [void]
687
- def add_flag(flag) end
688
-
689
- # Removes a border flag.
690
- # @param flag [Integer]
691
- # @return [void]
692
- def remove_flag(flag) end
693
-
694
- end # TextAttrBorder
695
-
696
- # A class representing a rich text object's borders.
697
- # ===
698
- #
699
- # Category: Rich Text
700
- # @see Wx::RTC::RichTextAttr
701
- # @see Wx::RTC::RichTextCtrl
702
- # @see wxRichTextAttrBorder
703
- #
704
- #
705
- #
706
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
707
- class TextAttrBorders < ::Object
708
-
709
- # Default constructor.
710
- # @return [Wx::RTC::TextAttrBorders]
711
- def initialize; end
712
-
713
- # Equality operator.
714
- # @param borders [Wx::RTC::TextAttrBorders]
715
- # @return [true,false]
716
- def ==(borders) end
717
-
718
- # Sets the style of all borders.
719
- # @param style [Integer]
720
- # @return [void]
721
- def set_style(style) end
722
- alias_method :style=, :set_style
723
-
724
- # @overload set_colour(colour)
725
- # Sets colour of all borders.
726
- # @param colour [Integer]
727
- # @return [void]
728
- # @overload set_colour(colour)
729
- # Sets the colour for all borders.
730
- # @param colour [Wx::Colour,String,Symbol]
731
- # @return [void]
732
- def set_colour(*args) end
733
- alias_method :colour=, :set_colour
734
-
735
- # @overload set_width(width)
736
- # Sets the width of all borders.
737
- # @param width [Wx::TextAttrDimension]
738
- # @return [void]
739
- # @overload set_width(value, units=Wx::RTC::TextAttrUnits::TEXT_ATTR_UNITS_TENTHS_MM)
740
- # Sets the width of all borders.
741
- # @param value [Integer]
742
- # @param units [TextAttrUnits]
743
- # @return [void]
744
- def set_width(*args) end
745
- alias_method :width=, :set_width
746
-
747
- # Resets all borders.
748
- # @return [void]
749
- def reset; end
750
-
751
- # Partial equality test.
752
- # If weakTest is true, attributes of this object do not have to be present if those attributes of borders are present. If weakTest is false, the function will fail if an attribute is present in borders but not in this object.
753
- # @param borders [Wx::RTC::TextAttrBorders]
754
- # @param weakTest [true,false]
755
- # @return [true,false]
756
- def eq_partial(borders, weakTest=true) end
757
-
758
- # Applies border to this object, but not if the same as compareWith.
759
- # @param borders [Wx::RTC::TextAttrBorders]
760
- # @param compareWith [Wx::RTC::TextAttrBorders]
761
- # @return [true,false]
762
- def apply(borders, compareWith=nil) end
763
-
764
- # Removes the specified attributes from this object.
765
- # @param attr [Wx::RTC::TextAttrBorders]
766
- # @return [true,false]
767
- def remove_style(attr) end
768
-
769
- # Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects.
770
- # @param attr [Wx::RTC::TextAttrBorders]
771
- # @param clashingAttr [Wx::RTC::TextAttrBorders]
772
- # @param absentAttr [Wx::RTC::TextAttrBorders]
773
- # @return [void]
774
- def collect_common_attributes(attr, clashingAttr, absentAttr) end
775
-
776
- # Returns true if at least one border is valid.
777
- # @return [true,false]
778
- def is_valid; end
779
- alias_method :valid?, :is_valid
780
-
781
- # @overload get_left()
782
- # Returns the left border.
783
- # @return [Wx::RTC::TextAttrBorder]
784
- # @overload get_left()
785
- # @return [Wx::RTC::TextAttrBorder]
786
- def get_left(*args) end
787
- alias_method :left, :get_left
788
-
789
- # @overload get_right()
790
- # Returns the right border.
791
- # @return [Wx::RTC::TextAttrBorder]
792
- # @overload get_right()
793
- # @return [Wx::RTC::TextAttrBorder]
794
- def get_right(*args) end
795
- alias_method :right, :get_right
796
-
797
- # @overload get_top()
798
- # Returns the top border.
799
- # @return [Wx::RTC::TextAttrBorder]
800
- # @overload get_top()
801
- # @return [Wx::RTC::TextAttrBorder]
802
- def get_top(*args) end
803
- alias_method :top, :get_top
804
-
805
- # @overload get_bottom()
806
- # Returns the bottom border.
807
- # @return [Wx::RTC::TextAttrBorder]
808
- # @overload get_bottom()
809
- # @return [Wx::RTC::TextAttrBorder]
810
- def get_bottom(*args) end
811
- alias_method :bottom, :get_bottom
812
-
813
- end # TextAttrBorders
814
-
815
- # A class representing the box attributes of a rich text object.
816
- # ===
817
- #
818
- # Category: Rich Text
819
- # @see Wx::RTC::RichTextAttr
820
- # @see Wx::RTC::RichTextCtrl
821
- #
822
- #
823
- #
824
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
825
- class TextBoxAttr < ::Object
826
-
827
- # @overload initialize()
828
- # Default constructor.
829
- # @return [Wx::RTC::TextBoxAttr]
830
- # @overload initialize(attr)
831
- # Copy constructor.
832
- # @param attr [Wx::RTC::TextBoxAttr]
833
- # @return [Wx::RTC::TextBoxAttr]
834
- def initialize(*args) end
835
-
836
- # Initialises this object.
837
- # @return [void]
838
- def init; end
839
-
840
- # Resets this object.
841
- # @return [void]
842
- def reset; end
843
-
844
- # Equality test.
845
- # @param attr [Wx::RTC::TextBoxAttr]
846
- # @return [true,false]
847
- def ==(attr) end
848
-
849
- # Partial equality test, ignoring unset attributes.
850
- # If weakTest is true, attributes of this object do not have to be present if those attributes of attr are present. If weakTest is false, the function will fail if an attribute is present in attr but not in this object.
851
- # @param attr [Wx::RTC::TextBoxAttr]
852
- # @param weakTest [true,false]
853
- # @return [true,false]
854
- def eq_partial(attr, weakTest=true) end
855
-
856
- # Merges the given attributes.
857
- # If compareWith is non-NULL, then it will be used to mask out those attributes that are the same in style and compareWith, for situations where we don't want to explicitly set inherited attributes.
858
- # @param style [Wx::RTC::TextBoxAttr]
859
- # @param compareWith [Wx::RTC::TextBoxAttr]
860
- # @return [true,false]
861
- def apply(style, compareWith=nil) end
862
-
863
- # Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects.
864
- # @param attr [Wx::RTC::TextBoxAttr]
865
- # @param clashingAttr [Wx::RTC::TextBoxAttr]
866
- # @param absentAttr [Wx::RTC::TextBoxAttr]
867
- # @return [void]
868
- def collect_common_attributes(attr, clashingAttr, absentAttr) end
869
-
870
- # Removes the specified attributes from this object.
871
- # @param attr [Wx::RTC::TextBoxAttr]
872
- # @return [true,false]
873
- def remove_style(attr) end
874
-
875
- # Sets the flags.
876
- # @param flags [Integer]
877
- # @return [void]
878
- def set_flags(flags) end
879
- alias_method :flags=, :set_flags
880
-
881
- # Returns the flags.
882
- # @return [Integer]
883
- def get_flags; end
884
- alias_method :flags, :get_flags
885
-
886
- # Is this flag present?
887
- # @param flag [TextBoxAttrFlags]
888
- # @return [true,false]
889
- def has_flag(flag) end
890
- alias_method :has_flag?, :has_flag
891
-
892
- # Removes this flag.
893
- # @param flag [TextBoxAttrFlags]
894
- # @return [void]
895
- def remove_flag(flag) end
896
-
897
- # Adds this flag.
898
- # @param flag [TextBoxAttrFlags]
899
- # @return [void]
900
- def add_flag(flag) end
901
-
902
- # Returns true if no attributes are set.
903
- # @return [true,false]
904
- def is_default; end
905
- alias_method :default?, :is_default
906
-
907
- # Returns the float mode.
908
- # @return [TextBoxAttrFloatStyle]
909
- def get_float_mode; end
910
- alias_method :float_mode, :get_float_mode
911
-
912
- # Sets the float mode.
913
- # @param mode [TextBoxAttrFloatStyle]
914
- # @return [void]
915
- def set_float_mode(mode) end
916
- alias_method :float_mode=, :set_float_mode
917
-
918
- # Returns true if float mode is active.
919
- # @return [true,false]
920
- def has_float_mode; end
921
- alias_method :has_float_mode?, :has_float_mode
922
-
923
- # Returns true if this object is floating.
924
- # @return [true,false]
925
- def is_floating; end
926
- alias_method :floating?, :is_floating
927
-
928
- # Returns the clear mode - whether to wrap text after object.
929
- # Currently unimplemented.
930
- # @return [TextBoxAttrClearStyle]
931
- def get_clear_mode; end
932
- alias_method :clear_mode, :get_clear_mode
933
-
934
- # Set the clear mode.
935
- # Currently unimplemented.
936
- # @param mode [TextBoxAttrClearStyle]
937
- # @return [void]
938
- def set_clear_mode(mode) end
939
- alias_method :clear_mode=, :set_clear_mode
940
-
941
- # Returns true if we have a clear flag.
942
- # @return [true,false]
943
- def has_clear_mode; end
944
- alias_method :has_clear_mode?, :has_clear_mode
945
-
946
- # Returns the collapse mode - whether to collapse borders.
947
- # @return [TextBoxAttrCollapseMode]
948
- def get_collapse_borders; end
949
- alias_method :collapse_borders, :get_collapse_borders
950
-
951
- # Sets the collapse mode - whether to collapse borders.
952
- # @param collapse [TextBoxAttrCollapseMode]
953
- # @return [void]
954
- def set_collapse_borders(collapse) end
955
- alias_method :collapse_borders=, :set_collapse_borders
956
-
957
- # Returns true if the collapse borders flag is present.
958
- # @return [true,false]
959
- def has_collapse_borders; end
960
- alias_method :has_collapse_borders?, :has_collapse_borders
961
-
962
- # Returns the whitespace mode.
963
- # @return [TextBoxAttrWhitespaceMode]
964
- def get_whitespace_mode; end
965
- alias_method :whitespace_mode, :get_whitespace_mode
966
-
967
- # Sets the whitespace mode.
968
- # @param whitespace [TextBoxAttrWhitespaceMode]
969
- # @return [void]
970
- def set_whitespace_mode(whitespace) end
971
- alias_method :whitespace_mode=, :set_whitespace_mode
972
-
973
- # Returns true if the whitespace flag is present.
974
- # @return [true,false]
975
- def has_whitespace_mode; end
976
- alias_method :has_whitespace_mode?, :has_whitespace_mode
977
-
978
- # Returns true if the corner radius flag is present.
979
- # @return [true,false]
980
- def has_corner_radius; end
981
- alias_method :has_corner_radius?, :has_corner_radius
982
-
983
- # @overload get_corner_radius()
984
- # Returns the corner radius value.
985
- # @return [Wx::TextAttrDimension]
986
- # @overload get_corner_radius()
987
- # @return [Wx::TextAttrDimension]
988
- def get_corner_radius(*args) end
989
- alias_method :corner_radius, :get_corner_radius
990
-
991
- # Sets the corner radius value.
992
- # @param dim [Wx::TextAttrDimension]
993
- # @return [void]
994
- def set_corner_radius(dim) end
995
- alias_method :corner_radius=, :set_corner_radius
996
-
997
- # Returns the vertical alignment.
998
- # @return [TextBoxAttrVerticalAlignment]
999
- def get_vertical_alignment; end
1000
- alias_method :vertical_alignment, :get_vertical_alignment
1001
-
1002
- # Sets the vertical alignment.
1003
- # @param verticalAlignment [TextBoxAttrVerticalAlignment]
1004
- # @return [void]
1005
- def set_vertical_alignment(verticalAlignment) end
1006
- alias_method :vertical_alignment=, :set_vertical_alignment
1007
-
1008
- # Returns true if a vertical alignment flag is present.
1009
- # @return [true,false]
1010
- def has_vertical_alignment; end
1011
- alias_method :has_vertical_alignment?, :has_vertical_alignment
1012
-
1013
- # @overload get_margins()
1014
- # Returns the margin values.
1015
- # @return [Wx::TextAttrDimensions]
1016
- # @overload get_margins()
1017
- # @return [Wx::TextAttrDimensions]
1018
- def get_margins(*args) end
1019
- alias_method :margins, :get_margins
1020
-
1021
- # @overload get_left_margin()
1022
- # Returns the left margin.
1023
- # @return [Wx::TextAttrDimension]
1024
- # @overload get_left_margin()
1025
- # @return [Wx::TextAttrDimension]
1026
- def get_left_margin(*args) end
1027
- alias_method :left_margin, :get_left_margin
1028
-
1029
- # @overload get_right_margin()
1030
- # Returns the right margin.
1031
- # @return [Wx::TextAttrDimension]
1032
- # @overload get_right_margin()
1033
- # @return [Wx::TextAttrDimension]
1034
- def get_right_margin(*args) end
1035
- alias_method :right_margin, :get_right_margin
1036
-
1037
- # @overload get_top_margin()
1038
- # Returns the top margin.
1039
- # @return [Wx::TextAttrDimension]
1040
- # @overload get_top_margin()
1041
- # @return [Wx::TextAttrDimension]
1042
- def get_top_margin(*args) end
1043
- alias_method :top_margin, :get_top_margin
1044
-
1045
- # @overload get_bottom_margin()
1046
- # Returns the bottom margin.
1047
- # @return [Wx::TextAttrDimension]
1048
- # @overload get_bottom_margin()
1049
- # @return [Wx::TextAttrDimension]
1050
- def get_bottom_margin(*args) end
1051
- alias_method :bottom_margin, :get_bottom_margin
1052
-
1053
- # @overload get_position()
1054
- # Returns the position.
1055
- # @return [Wx::TextAttrDimensions]
1056
- # @overload get_position()
1057
- # @return [Wx::TextAttrDimensions]
1058
- def get_position(*args) end
1059
- alias_method :position, :get_position
1060
-
1061
- # @overload get_left()
1062
- # Returns the left position.
1063
- # @return [Wx::TextAttrDimension]
1064
- # @overload get_left()
1065
- # @return [Wx::TextAttrDimension]
1066
- def get_left(*args) end
1067
- alias_method :left, :get_left
1068
-
1069
- # @overload get_right()
1070
- # Returns the right position.
1071
- # @return [Wx::TextAttrDimension]
1072
- # @overload get_right()
1073
- # @return [Wx::TextAttrDimension]
1074
- def get_right(*args) end
1075
- alias_method :right, :get_right
1076
-
1077
- # @overload get_top()
1078
- # Returns the top position.
1079
- # @return [Wx::TextAttrDimension]
1080
- # @overload get_top()
1081
- # @return [Wx::TextAttrDimension]
1082
- def get_top(*args) end
1083
- alias_method :top, :get_top
1084
-
1085
- # @overload get_bottom()
1086
- # Returns the bottom position.
1087
- # @return [Wx::TextAttrDimension]
1088
- # @overload get_bottom()
1089
- # @return [Wx::TextAttrDimension]
1090
- def get_bottom(*args) end
1091
- alias_method :bottom, :get_bottom
1092
-
1093
- # @overload get_padding()
1094
- # Returns the padding values.
1095
- # @return [Wx::TextAttrDimensions]
1096
- # @overload get_padding()
1097
- # @return [Wx::TextAttrDimensions]
1098
- def get_padding(*args) end
1099
- alias_method :padding, :get_padding
1100
-
1101
- # @overload get_left_padding()
1102
- # Returns the left padding value.
1103
- # @return [Wx::TextAttrDimension]
1104
- # @overload get_left_padding()
1105
- # @return [Wx::TextAttrDimension]
1106
- def get_left_padding(*args) end
1107
- alias_method :left_padding, :get_left_padding
1108
-
1109
- # @overload get_right_padding()
1110
- # Returns the right padding value.
1111
- # @return [Wx::TextAttrDimension]
1112
- # @overload get_right_padding()
1113
- # @return [Wx::TextAttrDimension]
1114
- def get_right_padding(*args) end
1115
- alias_method :right_padding, :get_right_padding
1116
-
1117
- # @overload get_top_padding()
1118
- # Returns the top padding value.
1119
- # @return [Wx::TextAttrDimension]
1120
- # @overload get_top_padding()
1121
- # @return [Wx::TextAttrDimension]
1122
- def get_top_padding(*args) end
1123
- alias_method :top_padding, :get_top_padding
1124
-
1125
- # @overload get_bottom_padding()
1126
- # Returns the bottom padding value.
1127
- # @return [Wx::TextAttrDimension]
1128
- # @overload get_bottom_padding()
1129
- # @return [Wx::TextAttrDimension]
1130
- def get_bottom_padding(*args) end
1131
- alias_method :bottom_padding, :get_bottom_padding
1132
-
1133
- # @overload get_border()
1134
- # Returns the borders.
1135
- # @return [Wx::RTC::TextAttrBorders]
1136
- # @overload get_border()
1137
- # @return [Wx::RTC::TextAttrBorders]
1138
- def get_border(*args) end
1139
- alias_method :border, :get_border
1140
-
1141
- # @overload get_left_border()
1142
- # Returns the left border.
1143
- # @return [Wx::RTC::TextAttrBorder]
1144
- # @overload get_left_border()
1145
- # @return [Wx::RTC::TextAttrBorder]
1146
- def get_left_border(*args) end
1147
- alias_method :left_border, :get_left_border
1148
-
1149
- # @overload get_top_border()
1150
- # Returns the top border.
1151
- # @return [Wx::RTC::TextAttrBorder]
1152
- # @overload get_top_border()
1153
- # @return [Wx::RTC::TextAttrBorder]
1154
- def get_top_border(*args) end
1155
- alias_method :top_border, :get_top_border
1156
-
1157
- # @overload get_right_border()
1158
- # Returns the right border.
1159
- # @return [Wx::RTC::TextAttrBorder]
1160
- # @overload get_right_border()
1161
- # @return [Wx::RTC::TextAttrBorder]
1162
- def get_right_border(*args) end
1163
- alias_method :right_border, :get_right_border
1164
-
1165
- # @overload get_bottom_border()
1166
- # Returns the bottom border.
1167
- # @return [Wx::RTC::TextAttrBorder]
1168
- # @overload get_bottom_border()
1169
- # @return [Wx::RTC::TextAttrBorder]
1170
- def get_bottom_border(*args) end
1171
- alias_method :bottom_border, :get_bottom_border
1172
-
1173
- # @overload get_outline()
1174
- # Returns the outline.
1175
- # @return [Wx::RTC::TextAttrBorders]
1176
- # @overload get_outline()
1177
- # @return [Wx::RTC::TextAttrBorders]
1178
- def get_outline(*args) end
1179
- alias_method :outline, :get_outline
1180
-
1181
- # @overload get_left_outline()
1182
- # Returns the left outline.
1183
- # @return [Wx::RTC::TextAttrBorder]
1184
- # @overload get_left_outline()
1185
- # @return [Wx::RTC::TextAttrBorder]
1186
- def get_left_outline(*args) end
1187
- alias_method :left_outline, :get_left_outline
1188
-
1189
- # @overload get_top_outline()
1190
- # Returns the top outline.
1191
- # @return [Wx::RTC::TextAttrBorder]
1192
- # @overload get_top_outline()
1193
- # @return [Wx::RTC::TextAttrBorder]
1194
- def get_top_outline(*args) end
1195
- alias_method :top_outline, :get_top_outline
1196
-
1197
- # @overload get_right_outline()
1198
- # Returns the right outline.
1199
- # @return [Wx::RTC::TextAttrBorder]
1200
- # @overload get_right_outline()
1201
- # @return [Wx::RTC::TextAttrBorder]
1202
- def get_right_outline(*args) end
1203
- alias_method :right_outline, :get_right_outline
1204
-
1205
- # @overload get_bottom_outline()
1206
- # Returns the bottom outline.
1207
- # @return [Wx::RTC::TextAttrBorder]
1208
- # @overload get_bottom_outline()
1209
- # @return [Wx::RTC::TextAttrBorder]
1210
- def get_bottom_outline(*args) end
1211
- alias_method :bottom_outline, :get_bottom_outline
1212
-
1213
- # @overload get_size()
1214
- # Returns the object size.
1215
- # @return [Wx::TextAttrSize]
1216
- # @overload get_size()
1217
- # @return [Wx::TextAttrSize]
1218
- def get_size(*args) end
1219
- alias_method :size, :get_size
1220
-
1221
- # @overload get_min_size()
1222
- # Returns the object minimum size.
1223
- # @return [Wx::TextAttrSize]
1224
- # @overload get_min_size()
1225
- # @return [Wx::TextAttrSize]
1226
- def get_min_size(*args) end
1227
- alias_method :min_size, :get_min_size
1228
-
1229
- # @overload get_max_size()
1230
- # Returns the object maximum size.
1231
- # @return [Wx::TextAttrSize]
1232
- # @overload get_max_size()
1233
- # @return [Wx::TextAttrSize]
1234
- def get_max_size(*args) end
1235
- alias_method :max_size, :get_max_size
1236
-
1237
- # Sets the object size.
1238
- # @param sz [Wx::TextAttrSize]
1239
- # @return [void]
1240
- def set_size(sz) end
1241
- alias_method :size=, :set_size
1242
-
1243
- # Sets the object minimum size.
1244
- # @param sz [Wx::TextAttrSize]
1245
- # @return [void]
1246
- def set_min_size(sz) end
1247
- alias_method :min_size=, :set_min_size
1248
-
1249
- # Sets the object maximum size.
1250
- # @param sz [Wx::TextAttrSize]
1251
- # @return [void]
1252
- def set_max_size(sz) end
1253
- alias_method :max_size=, :set_max_size
1254
-
1255
- # @overload get_width()
1256
- # Returns the object width.
1257
- # @return [Wx::TextAttrDimension]
1258
- # @overload get_width()
1259
- # @return [Wx::TextAttrDimension]
1260
- def get_width(*args) end
1261
- alias_method :width, :get_width
1262
-
1263
- # @overload get_height()
1264
- # Returns the object height.
1265
- # @return [Wx::TextAttrDimension]
1266
- # @overload get_height()
1267
- # @return [Wx::TextAttrDimension]
1268
- def get_height(*args) end
1269
- alias_method :height, :get_height
1270
-
1271
- # Returns the box style name.
1272
- # @return [Wx::String]
1273
- def get_box_style_name; end
1274
- alias_method :box_style_name, :get_box_style_name
1275
-
1276
- # Sets the box style name.
1277
- # @param name [String]
1278
- # @return [void]
1279
- def set_box_style_name(name) end
1280
- alias_method :box_style_name=, :set_box_style_name
1281
-
1282
- # Returns true if the box style name is present.
1283
- # @return [true,false]
1284
- def has_box_style_name; end
1285
- alias_method :has_box_style_name?, :has_box_style_name
1286
-
1287
- # @overload get_shadow()
1288
- # Returns the box shadow attributes.
1289
- # @return [Wx::TextAttrShadow]
1290
- # @overload get_shadow()
1291
- # @return [Wx::TextAttrShadow]
1292
- def get_shadow(*args) end
1293
- alias_method :shadow, :get_shadow
1294
-
1295
- end # TextBoxAttr
1296
-
1297
- # A class representing enhanced attributes for rich text objects.
1298
- # This adds a {Wx::RTC::TextBoxAttr} member to the basic {Wx::TextAttr} class.
1299
- # ===
1300
- #
1301
- # Category: Rich Text
1302
- # @see Wx::TextAttr
1303
- # @see Wx::RTC::TextBoxAttr
1304
- # @see Wx::RTC::RichTextCtrl
1305
- #
1306
- #
1307
- class RichTextAttr < TextAttr
1308
-
1309
- # @overload initialize(attr)
1310
- # Constructor taking a {Wx::TextAttr}.
1311
- # @param attr [Wx::TextAttr]
1312
- # @return [Wx::RTC::RichTextAttr]
1313
- # @overload initialize(attr)
1314
- # Copy constructor.
1315
- # @param attr [Wx::RTC::RichTextAttr]
1316
- # @return [Wx::RTC::RichTextAttr]
1317
- # @overload initialize()
1318
- # Default constructor.
1319
- # @return [Wx::RTC::RichTextAttr]
1320
- def initialize(*args) end
1321
-
1322
- # Copy function.
1323
- # @param attr [Wx::RTC::RichTextAttr]
1324
- # @return [void]
1325
- def copy(attr) end
1326
-
1327
- # Equality test.
1328
- # @param attr [Wx::RTC::RichTextAttr]
1329
- # @return [true,false]
1330
- def ==(attr) end
1331
-
1332
- # Partial equality test.
1333
- # If weakTest is true, attributes of this object do not have to be present if those attributes of attr are present. If weakTest is false, the function will fail if an attribute is present in attr but not in this object.
1334
- # @param attr [Wx::RTC::RichTextAttr]
1335
- # @param weakTest [true,false]
1336
- # @return [true,false]
1337
- def eq_partial(attr, weakTest=true) end
1338
-
1339
- # Merges the given attributes.
1340
- # If compareWith is non-NULL, then it will be used to mask out those attributes that are the same in style and compareWith, for situations where we don't want to explicitly set inherited attributes.
1341
- # @param style [Wx::RTC::RichTextAttr]
1342
- # @param compareWith [Wx::RTC::RichTextAttr]
1343
- # @return [true,false]
1344
- def apply(style, compareWith=nil) end
1345
-
1346
- # Collects the attributes that are common to a range of content, building up a note of which attributes are absent in some objects and which clash in some objects.
1347
- # @param attr [Wx::RTC::RichTextAttr]
1348
- # @param clashingAttr [Wx::RTC::RichTextAttr]
1349
- # @param absentAttr [Wx::RTC::RichTextAttr]
1350
- # @return [void]
1351
- def collect_common_attributes(attr, clashingAttr, absentAttr) end
1352
-
1353
- # Removes the specified attributes from this object.
1354
- # @param attr [Wx::RTC::RichTextAttr]
1355
- # @return [true,false]
1356
- def remove_style(attr) end
1357
-
1358
- # @overload get_text_box_attr()
1359
- # Returns the text box attributes.
1360
- # @return [Wx::RTC::TextBoxAttr]
1361
- # @overload get_text_box_attr()
1362
- # @return [Wx::RTC::TextBoxAttr]
1363
- def get_text_box_attr(*args) end
1364
- alias_method :text_box_attr, :get_text_box_attr
1365
-
1366
- # Set the text box attributes.
1367
- # @param attr [Wx::RTC::TextBoxAttr]
1368
- # @return [void]
1369
- def set_text_box_attr(attr) end
1370
- alias_method :text_box_attr=, :set_text_box_attr
1371
-
1372
- # Returns true if no attributes are set.
1373
- # @return [true,false]
1374
- def is_default; end
1375
- alias_method :default?, :is_default
1376
-
1377
- end # RichTextAttr
1378
-
1379
9
  # This is a kind of paragraph layout box, used to represent the whole buffer.
1380
10
  # ===
1381
11
  #
1382
12
  # Category: Rich Text
1383
- # @see Wx::RichTextParagraphLayoutBox
13
+ # @see Wx::RTC::RichTextParagraphLayoutBox
1384
14
  # @see Wx::RTC::RichTextCtrl
1385
15
  #
1386
16
  #
1387
- class RichTextBuffer < Object
17
+ #
18
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
19
+ class RichTextBuffer < RichTextParagraphLayoutBox
1388
20
 
1389
21
  # @overload initialize()
1390
22
  # Default constructor.
@@ -1398,42 +30,38 @@ module Wx::RTC
1398
30
  # Sets style sheet, if any.
1399
31
  # This will allow the application to use named character and paragraph styles found in the style sheet.
1400
32
  # Neither the buffer nor the control owns the style sheet so must be deleted by the application.
1401
- # @param styleSheet [Wx::RichTextStyleSheet]
33
+ # @param styleSheet [Wx::RTC::RichTextStyleSheet]
1402
34
  # @return [void]
1403
35
  def set_style_sheet(styleSheet) end
1404
36
  alias_method :style_sheet=, :set_style_sheet
1405
37
 
1406
38
  # Returns the style sheet.
1407
- # @return [Wx::RichTextStyleSheet]
39
+ # @return [Wx::RTC::RichTextStyleSheet]
1408
40
  def get_style_sheet; end
1409
41
  alias_method :style_sheet, :get_style_sheet
1410
42
 
1411
43
  # Sets the style sheet and sends a notification of the change.
1412
- # @param sheet [Wx::RichTextStyleSheet]
1413
- # @return [true,false]
44
+ # @param sheet [Wx::RTC::RichTextStyleSheet]
45
+ # @return [Boolean]
1414
46
  def set_style_sheet_and_notify(sheet) end
1415
47
  alias_method :style_sheet_and_notify=, :set_style_sheet_and_notify
1416
48
 
1417
49
  # Pushes the style sheet to the top of the style sheet stack.
1418
- # @param styleSheet [Wx::RichTextStyleSheet]
1419
- # @return [true,false]
50
+ # @param styleSheet [Wx::RTC::RichTextStyleSheet]
51
+ # @return [Boolean]
1420
52
  def push_style_sheet(styleSheet) end
1421
53
 
1422
54
  # Pops the style sheet from the top of the style sheet stack.
1423
- # @return [Wx::RichTextStyleSheet]
55
+ # @return [Wx::RTC::RichTextStyleSheet]
1424
56
  def pop_style_sheet; end
1425
57
 
1426
- # @overload get_font_table()
1427
- # Returns the table storing fonts, for quick access and font reuse.
1428
- # @return [Wx::RichTextFontTable]
1429
- # @overload get_font_table()
1430
- # Returns the table storing fonts, for quick access and font reuse.
1431
- # @return [Wx::RichTextFontTable]
1432
- def get_font_table(*args) end
58
+ # Returns the table storing fonts, for quick access and font reuse.
59
+ # @return [Wx::RTC::RichTextFontTable]
60
+ def get_font_table; end
1433
61
  alias_method :font_table, :get_font_table
1434
62
 
1435
63
  # Sets table storing fonts, for quick access and font reuse.
1436
- # @param table [Wx::RichTextFontTable]
64
+ # @param table [Wx::RTC::RichTextFontTable]
1437
65
  # @return [void]
1438
66
  def set_font_table(table) end
1439
67
  alias_method :font_table=, :set_font_table
@@ -1473,24 +101,24 @@ module Wx::RTC
1473
101
  # Loads content from a stream or file.
1474
102
  # Not all handlers will implement file loading.
1475
103
  # @param filename [String]
1476
- # @param type [RichTextFileType]
1477
- # @return [true,false]
104
+ # @param type [Wx::RichTextFileType]
105
+ # @return [Boolean]
1478
106
  # @overload load_file(stream, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)
1479
- # @param stream [IO,Wx::InputStream]
1480
- # @param type [RichTextFileType]
1481
- # @return [true,false]
107
+ # @param stream [Wx::InputStream]
108
+ # @param type [Wx::RichTextFileType]
109
+ # @return [Boolean]
1482
110
  def load_file(*args) end
1483
111
 
1484
112
  # @overload save_file(filename, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)
1485
113
  # Saves content to a stream or file.
1486
114
  # Not all handlers will implement file saving.
1487
115
  # @param filename [String]
1488
- # @param type [RichTextFileType]
1489
- # @return [true,false]
116
+ # @param type [Wx::RichTextFileType]
117
+ # @return [Boolean]
1490
118
  # @overload save_file(stream, type=Wx::RTC::RichTextFileType::RICHTEXT_TYPE_ANY)
1491
- # @param stream [IO,Wx::OutputStream]
1492
- # @param type [RichTextFileType]
1493
- # @return [true,false]
119
+ # @param stream [Wx::OutputStream]
120
+ # @param type [Wx::RichTextFileType]
121
+ # @return [Boolean]
1494
122
  def save_file(*args) end
1495
123
 
1496
124
  # Sets the handler flags, controlling loading and saving.
@@ -1514,61 +142,56 @@ module Wx::RTC
1514
142
  # Note that this may not work properly if combining commands that delete or insert content, changing ranges for subsequent actions.
1515
143
  # cmdName should be the name of the combined command that will appear next to Undo and Redo in the edit menu.
1516
144
  # @param cmdName [String]
1517
- # @return [true,false]
145
+ # @return [Boolean]
1518
146
  def begin_batch_undo(cmdName) end
1519
147
 
1520
148
  # End collapsing undo/redo commands.
1521
- # @return [true,false]
149
+ # @return [Boolean]
1522
150
  def end_batch_undo; end
1523
151
 
1524
152
  # Returns true if we are collapsing commands.
1525
- # @return [true,false]
153
+ # @return [Boolean]
1526
154
  def batching_undo; end
1527
155
 
1528
- # Submit the action immediately, or delay according to whether collapsing is on.
1529
- # @param action [Wx::RichTextAction]
1530
- # @return [true,false]
1531
- def submit_action(action) end
1532
-
1533
156
  # Begin suppressing undo/redo commands.
1534
157
  # The way undo is suppressed may be implemented differently by each command. If not dealt with by a command implementation, then it will be implemented automatically by not storing the command in the undo history when the action is submitted to the command processor.
1535
- # @return [true,false]
158
+ # @return [Boolean]
1536
159
  def begin_suppress_undo; end
1537
160
 
1538
161
  # End suppressing undo/redo commands.
1539
- # @return [true,false]
162
+ # @return [Boolean]
1540
163
  def end_suppress_undo; end
1541
164
 
1542
165
  # Are we suppressing undo??
1543
- # @return [true,false]
166
+ # @return [Boolean]
1544
167
  def suppressing_undo; end
1545
168
 
1546
169
  # Copy the range to the clipboard.
1547
170
  # @param range [Range]
1548
- # @return [true,false]
171
+ # @return [Boolean]
1549
172
  def copy_to_clipboard(range) end
1550
173
 
1551
174
  # Paste the clipboard content to the buffer.
1552
175
  # @param position [Integer]
1553
- # @return [true,false]
176
+ # @return [Boolean]
1554
177
  def paste_from_clipboard(position) end
1555
178
 
1556
179
  # Returns true if we can paste from the clipboard.
1557
- # @return [true,false]
180
+ # @return [Boolean]
1558
181
  def can_paste_from_clipboard; end
1559
182
  alias_method :can_paste_from_clipboard?, :can_paste_from_clipboard
1560
183
 
1561
184
  # Begin using a style.
1562
185
  # @param style [Wx::RTC::RichTextAttr]
1563
- # @return [true,false]
186
+ # @return [Boolean]
1564
187
  def begin_style(style) end
1565
188
 
1566
189
  # End the style.
1567
- # @return [true,false]
190
+ # @return [Boolean]
1568
191
  def end_style; end
1569
192
 
1570
193
  # End all styles.
1571
- # @return [true,false]
194
+ # @return [Boolean]
1572
195
  def end_all_styles; end
1573
196
 
1574
197
  # Clears the style stack.
@@ -1581,63 +204,63 @@ module Wx::RTC
1581
204
  alias_method :style_stack_size, :get_style_stack_size
1582
205
 
1583
206
  # Begins using bold.
1584
- # @return [true,false]
207
+ # @return [Boolean]
1585
208
  def begin_bold; end
1586
209
 
1587
210
  # Ends using bold.
1588
- # @return [true,false]
211
+ # @return [Boolean]
1589
212
  def end_bold; end
1590
213
 
1591
214
  # Begins using italic.
1592
- # @return [true,false]
215
+ # @return [Boolean]
1593
216
  def begin_italic; end
1594
217
 
1595
218
  # Ends using italic.
1596
- # @return [true,false]
219
+ # @return [Boolean]
1597
220
  def end_italic; end
1598
221
 
1599
222
  # Begins using underline.
1600
- # @return [true,false]
223
+ # @return [Boolean]
1601
224
  def begin_underline; end
1602
225
 
1603
226
  # Ends using underline.
1604
- # @return [true,false]
227
+ # @return [Boolean]
1605
228
  def end_underline; end
1606
229
 
1607
230
  # Begins using point size.
1608
231
  # @param pointSize [Integer]
1609
- # @return [true,false]
232
+ # @return [Boolean]
1610
233
  def begin_font_size(pointSize) end
1611
234
 
1612
235
  # Ends using point size.
1613
- # @return [true,false]
236
+ # @return [Boolean]
1614
237
  def end_font_size; end
1615
238
 
1616
239
  # Begins using this font.
1617
240
  # @param font [Wx::Font,Wx::FontInfo]
1618
- # @return [true,false]
241
+ # @return [Boolean]
1619
242
  def begin_font(font) end
1620
243
 
1621
244
  # Ends using a font.
1622
- # @return [true,false]
245
+ # @return [Boolean]
1623
246
  def end_font; end
1624
247
 
1625
248
  # Begins using this colour.
1626
249
  # @param colour [Wx::Colour,String,Symbol]
1627
- # @return [true,false]
250
+ # @return [Boolean]
1628
251
  def begin_text_colour(colour) end
1629
252
 
1630
253
  # Ends using a colour.
1631
- # @return [true,false]
254
+ # @return [Boolean]
1632
255
  def end_text_colour; end
1633
256
 
1634
257
  # Begins using alignment.
1635
- # @param alignment [TextAttrAlignment]
1636
- # @return [true,false]
258
+ # @param alignment [Wx::TextAttrAlignment]
259
+ # @return [Boolean]
1637
260
  def begin_alignment(alignment) end
1638
261
 
1639
262
  # Ends alignment.
1640
- # @return [true,false]
263
+ # @return [Boolean]
1641
264
  def end_alignment; end
1642
265
 
1643
266
  # Begins using leftIndent for the left indent, and optionally leftSubIndent for the sub-indent.
@@ -1645,41 +268,41 @@ module Wx::RTC
1645
268
  # The sub-indent is an offset from the left of the paragraph, and is used for all but the first line in a paragraph. A positive value will cause the first line to appear to the left of the subsequent lines, and a negative value will cause the first line to be indented relative to the subsequent lines.
1646
269
  # @param leftIndent [Integer]
1647
270
  # @param leftSubIndent [Integer]
1648
- # @return [true,false]
271
+ # @return [Boolean]
1649
272
  def begin_left_indent(leftIndent, leftSubIndent=0) end
1650
273
 
1651
274
  # Ends left indent.
1652
- # @return [true,false]
275
+ # @return [Boolean]
1653
276
  def end_left_indent; end
1654
277
 
1655
278
  # Begins a right indent, specified in tenths of a millimetre.
1656
279
  # @param rightIndent [Integer]
1657
- # @return [true,false]
280
+ # @return [Boolean]
1658
281
  def begin_right_indent(rightIndent) end
1659
282
 
1660
283
  # Ends right indent.
1661
- # @return [true,false]
284
+ # @return [Boolean]
1662
285
  def end_right_indent; end
1663
286
 
1664
287
  # Begins paragraph spacing; pass the before-paragraph and after-paragraph spacing in tenths of a millimetre.
1665
288
  # @param before [Integer]
1666
289
  # @param after [Integer]
1667
- # @return [true,false]
290
+ # @return [Boolean]
1668
291
  def begin_paragraph_spacing(before, after) end
1669
292
 
1670
293
  # Ends paragraph spacing.
1671
- # @return [true,false]
294
+ # @return [Boolean]
1672
295
  def end_paragraph_spacing; end
1673
296
 
1674
297
  # Begins line spacing using the specified value.
1675
298
  # spacing is a multiple, where 10 means single-spacing, 15 means 1.5 spacing, and 20 means double spacing.
1676
299
  # The {Wx::TextAttrLineSpacing} enumeration values are defined for convenience.
1677
300
  # @param lineSpacing [Integer]
1678
- # @return [true,false]
301
+ # @return [Boolean]
1679
302
  def begin_line_spacing(lineSpacing) end
1680
303
 
1681
304
  # Ends line spacing.
1682
- # @return [true,false]
305
+ # @return [Boolean]
1683
306
  def end_line_spacing; end
1684
307
 
1685
308
  # Begins numbered bullet.
@@ -1690,11 +313,11 @@ module Wx::RTC
1690
313
  # @param leftIndent [Integer]
1691
314
  # @param leftSubIndent [Integer]
1692
315
  # @param bulletStyle [Integer]
1693
- # @return [true,false]
316
+ # @return [Boolean]
1694
317
  def begin_numbered_bullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle=(Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_ARABIC|Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_PERIOD)) end
1695
318
 
1696
319
  # Ends numbered bullet.
1697
- # @return [true,false]
320
+ # @return [Boolean]
1698
321
  def end_numbered_bullet; end
1699
322
 
1700
323
  # Begins applying a symbol bullet, using a character from the current font.
@@ -1703,11 +326,11 @@ module Wx::RTC
1703
326
  # @param leftIndent [Integer]
1704
327
  # @param leftSubIndent [Integer]
1705
328
  # @param bulletStyle [Integer]
1706
- # @return [true,false]
329
+ # @return [Boolean]
1707
330
  def begin_symbol_bullet(symbol, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_SYMBOL) end
1708
331
 
1709
332
  # Ends symbol bullet.
1710
- # @return [true,false]
333
+ # @return [Boolean]
1711
334
  def end_symbol_bullet; end
1712
335
 
1713
336
  # Begins applying a standard bullet, using one of the standard bullet names (currently <code>standard/circle</code> or <code>standard/square</code>.
@@ -1716,29 +339,29 @@ module Wx::RTC
1716
339
  # @param leftIndent [Integer]
1717
340
  # @param leftSubIndent [Integer]
1718
341
  # @param bulletStyle [Integer]
1719
- # @return [true,false]
342
+ # @return [Boolean]
1720
343
  def begin_standard_bullet(bulletName, leftIndent, leftSubIndent, bulletStyle=Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_STANDARD) end
1721
344
 
1722
345
  # Ends standard bullet.
1723
- # @return [true,false]
346
+ # @return [Boolean]
1724
347
  def end_standard_bullet; end
1725
348
 
1726
349
  # Begins named character style.
1727
350
  # @param characterStyle [String]
1728
- # @return [true,false]
351
+ # @return [Boolean]
1729
352
  def begin_character_style(characterStyle) end
1730
353
 
1731
354
  # Ends named character style.
1732
- # @return [true,false]
355
+ # @return [Boolean]
1733
356
  def end_character_style; end
1734
357
 
1735
358
  # Begins named paragraph style.
1736
359
  # @param paragraphStyle [String]
1737
- # @return [true,false]
360
+ # @return [Boolean]
1738
361
  def begin_paragraph_style(paragraphStyle) end
1739
362
 
1740
363
  # Ends named character style.
1741
- # @return [true,false]
364
+ # @return [Boolean]
1742
365
  def end_paragraph_style; end
1743
366
 
1744
367
  # Begins named list style.
@@ -1746,35 +369,35 @@ module Wx::RTC
1746
369
  # @param listStyle [String]
1747
370
  # @param level [Integer]
1748
371
  # @param number [Integer]
1749
- # @return [true,false]
372
+ # @return [Boolean]
1750
373
  def begin_list_style(listStyle, level=1, number=1) end
1751
374
 
1752
375
  # Ends named character style.
1753
- # @return [true,false]
376
+ # @return [Boolean]
1754
377
  def end_list_style; end
1755
378
 
1756
379
  # Begins applying {Wx::TextAttrFlags::TEXT_ATTR_URL} to the content.
1757
380
  # Pass a URL and optionally, a character style to apply, since it is common to mark a URL with a familiar style such as blue text with underlining.
1758
381
  # @param url [String]
1759
382
  # @param characterStyle [String]
1760
- # @return [true,false]
383
+ # @return [Boolean]
1761
384
  def begin_url(url, characterStyle=('')) end
1762
385
 
1763
386
  # Ends URL.
1764
- # @return [true,false]
387
+ # @return [Boolean]
1765
388
  def end_url; end
1766
389
 
1767
390
  # Adds an event handler.
1768
391
  # A buffer associated with a control has the control as the only event handler, but the application is free to add more if further notification is required. All handlers are notified of an event originating from the buffer, such as the replacement of a style sheet during loading.
1769
392
  # The buffer never deletes any of the event handlers, unless {Wx::RTC::RichTextBuffer#remove_event_handler} is called with true as the second argument.
1770
393
  # @param handler [Wx::EvtHandler]
1771
- # @return [true,false]
394
+ # @return [Boolean]
1772
395
  def add_event_handler(handler) end
1773
396
 
1774
397
  # Removes an event handler from the buffer's list of handlers, deleting the object if deleteHandler is true.
1775
398
  # @param handler [Wx::EvtHandler]
1776
- # @param deleteHandler [true,false]
1777
- # @return [true,false]
399
+ # @param deleteHandler [Boolean]
400
+ # @return [Boolean]
1778
401
  def remove_event_handler(handler, deleteHandler=false) end
1779
402
 
1780
403
  # Clear event handlers.
@@ -1784,8 +407,8 @@ module Wx::RTC
1784
407
  # Send event to event handlers.
1785
408
  # If sendToAll is true, will send to all event handlers, otherwise will stop at the first successful one.
1786
409
  # @param event [Wx::Event]
1787
- # @param sendToAll [true,false]
1788
- # @return [true,false]
410
+ # @param sendToAll [Boolean]
411
+ # @return [Boolean]
1789
412
  def send_event(event, sendToAll=true) end
1790
413
 
1791
414
  # Hit-testing: returns a flag indicating hit test details, plus information about position.
@@ -1793,13 +416,13 @@ module Wx::RTC
1793
416
  # 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).
1794
417
  # One of the {Wx::RTC::RichTextHitTestFlags} values.
1795
418
  # @param dc [Wx::DC]
1796
- # @param context [Wx::RichTextDrawingContext]
419
+ # @param context [Wx::RTC::RichTextDrawingContext]
1797
420
  # @param pt [Array(Integer, Integer), Wx::Point]
1798
- # @param textPosition [long]
1799
- # @param obj [Wx::RichTextObject]
1800
- # @param contextObj [Wx::RichTextObject]
421
+ # @param textPosition [Integer]
422
+ # @param obj [Wx::RTC::RichTextObject]
423
+ # @param contextObj [Wx::RTC::RichTextObject]
1801
424
  # @param flags [Integer]
1802
- # @return [Integer]
425
+ # @return [Array(Integer,Integer)]
1803
426
  def hit_test(dc, context, pt, textPosition, obj, contextObj, flags=0) end
1804
427
 
1805
428
  # Copies the buffer.
@@ -1808,15 +431,15 @@ module Wx::RTC
1808
431
  def copy(obj) end
1809
432
 
1810
433
  # Clones the buffer.
1811
- # @return [Wx::RichTextObject]
434
+ # @return [Wx::RTC::RichTextObject]
1812
435
  def clone; end
1813
436
 
1814
437
  # Submits a command to insert paragraphs.
1815
438
  # @param pos [Integer]
1816
- # @param paragraphs [Wx::RichTextParagraphLayoutBox]
439
+ # @param paragraphs [Wx::RTC::RichTextParagraphLayoutBox]
1817
440
  # @param ctrl [Wx::RTC::RichTextCtrl]
1818
441
  # @param flags [Integer]
1819
- # @return [true,false]
442
+ # @return [Boolean]
1820
443
  def insert_paragraphs_with_undo(pos, paragraphs, ctrl, flags=0) end
1821
444
 
1822
445
  # Submits a command to insert the given text.
@@ -1824,46 +447,46 @@ module Wx::RTC
1824
447
  # @param text [String]
1825
448
  # @param ctrl [Wx::RTC::RichTextCtrl]
1826
449
  # @param flags [Integer]
1827
- # @return [true,false]
450
+ # @return [Boolean]
1828
451
  def insert_text_with_undo(pos, text, ctrl, flags=0) end
1829
452
 
1830
453
  # Submits a command to insert a newline.
1831
454
  # @param pos [Integer]
1832
455
  # @param ctrl [Wx::RTC::RichTextCtrl]
1833
456
  # @param flags [Integer]
1834
- # @return [true,false]
457
+ # @return [Boolean]
1835
458
  def insert_newline_with_undo(pos, ctrl, flags=0) end
1836
459
 
1837
460
  # Submits a command to insert the given image.
1838
461
  # @param pos [Integer]
1839
- # @param imageBlock [Wx::RichTextImageBlock]
462
+ # @param imageBlock [Wx::RTC::RichTextImageBlock]
1840
463
  # @param ctrl [Wx::RTC::RichTextCtrl]
1841
464
  # @param flags [Integer]
1842
465
  # @param textAttr [Wx::RTC::RichTextAttr]
1843
- # @return [true,false]
466
+ # @return [Boolean]
1844
467
  def insert_image_with_undo(pos, imageBlock, ctrl, flags=0, textAttr=(Wx::RichTextAttr.new())) end
1845
468
 
1846
469
  # Submits a command to insert an object.
1847
470
  # @param pos [Integer]
1848
- # @param object [Wx::RichTextObject]
471
+ # @param object [Wx::RTC::RichTextObject]
1849
472
  # @param ctrl [Wx::RTC::RichTextCtrl]
1850
473
  # @param flags [Integer]
1851
- # @return [Wx::RichTextObject]
474
+ # @return [Wx::RTC::RichTextObject]
1852
475
  def insert_object_with_undo(pos, object, ctrl, flags) end
1853
476
 
1854
477
  # Submits a command to delete this range.
1855
478
  # @param range [Range]
1856
479
  # @param ctrl [Wx::RTC::RichTextCtrl]
1857
- # @return [true,false]
480
+ # @return [Boolean]
1858
481
  def delete_range_with_undo(range, ctrl) end
1859
482
 
1860
483
  # Mark modified.
1861
- # @param modify [true,false]
484
+ # @param modify [Boolean]
1862
485
  # @return [void]
1863
486
  def modify(modify=true) end
1864
487
 
1865
488
  # Returns true if the buffer was modified.
1866
- # @return [true,false]
489
+ # @return [Boolean]
1867
490
  def is_modified; end
1868
491
  alias_method :modified?, :is_modified
1869
492
 
@@ -1887,10 +510,6 @@ module Wx::RTC
1887
510
  def set_scale(scale) end
1888
511
  alias_method :scale=, :set_scale
1889
512
 
1890
- # Returns the file handlers.
1891
- # @return [Wx::List]
1892
- def self.get_handlers; end
1893
-
1894
513
  # Adds a file handler to the end.
1895
514
  # @param handler [Wx::RTC::RichTextFileHandler]
1896
515
  # @return [void]
@@ -1903,7 +522,7 @@ module Wx::RTC
1903
522
 
1904
523
  # Removes a file handler.
1905
524
  # @param name [String]
1906
- # @return [true,false]
525
+ # @return [Boolean]
1907
526
  def self.remove_handler(name) end
1908
527
 
1909
528
  # @overload self.find_handler(name)
@@ -1913,25 +532,25 @@ module Wx::RTC
1913
532
  # @overload self.find_handler(extension, imageType)
1914
533
  # Finds a file handler by extension and type.
1915
534
  # @param extension [String]
1916
- # @param imageType [RichTextFileType]
535
+ # @param imageType [Wx::RichTextFileType]
1917
536
  # @return [Wx::RTC::RichTextFileHandler]
1918
537
  # @overload self.find_handler(imageType)
1919
538
  # Finds a handler by type.
1920
- # @param imageType [RichTextFileType]
539
+ # @param imageType [Wx::RichTextFileType]
1921
540
  # @return [Wx::RTC::RichTextFileHandler]
1922
541
  def self.find_handler(*args) end
1923
542
 
1924
543
  # Finds a handler by filename or, if supplied, type.
1925
544
  # @param filename [String]
1926
- # @param imageType [RichTextFileType]
545
+ # @param imageType [Wx::RichTextFileType]
1927
546
  # @return [Wx::RTC::RichTextFileHandler]
1928
547
  def self.find_handler_filename_or_type(filename, imageType) end
1929
548
 
1930
549
  # Gets a wildcard incorporating all visible handlers.
1931
550
  # If types is present, it will be filled with the file type corresponding to each filter. This can be used to determine the type to pass to LoadFile given a selected filter.
1932
- # @param combine [true,false]
1933
- # @param save [true,false]
1934
- # @param types [Wx::ArrayInt]
551
+ # @param combine [Boolean]
552
+ # @param save [Boolean]
553
+ # @param types [Array,nil]
1935
554
  # @return [String]
1936
555
  def self.get_ext_wildcard(combine=false, save=false, types=nil) end
1937
556
 
@@ -1944,46 +563,38 @@ module Wx::RTC
1944
563
  # @return [void]
1945
564
  def self.init_standard_handlers; end
1946
565
 
1947
- # Returns the drawing handlers.
1948
- # @return [Wx::List]
1949
- def self.get_drawing_handlers; end
1950
-
1951
566
  # Adds a drawing handler to the end.
1952
- # @param handler [Wx::RichTextDrawingHandler]
567
+ # @param handler [Wx::RTC::RichTextDrawingHandler]
1953
568
  # @return [void]
1954
569
  def self.add_drawing_handler(handler) end
1955
570
 
1956
571
  # Inserts a drawing handler at the front.
1957
- # @param handler [Wx::RichTextDrawingHandler]
572
+ # @param handler [Wx::RTC::RichTextDrawingHandler]
1958
573
  # @return [void]
1959
574
  def self.insert_drawing_handler(handler) end
1960
575
 
1961
576
  # Removes a drawing handler.
1962
577
  # @param name [String]
1963
- # @return [true,false]
578
+ # @return [Boolean]
1964
579
  def self.remove_drawing_handler(name) end
1965
580
 
1966
581
  # Finds a drawing handler by name.
1967
582
  # @param name [String]
1968
- # @return [Wx::RichTextDrawingHandler]
583
+ # @return [Wx::RTC::RichTextDrawingHandler]
1969
584
  def self.find_drawing_handler(name) end
1970
585
 
1971
586
  # Clean up drawing handlers.
1972
587
  # @return [void]
1973
588
  def self.clean_up_drawing_handlers; end
1974
589
 
1975
- # Returns the field types.
1976
- # @return [Wx::RichTextFieldTypeHashMap]
1977
- def self.get_field_types; end
1978
-
1979
590
  # Adds a field type.
1980
591
  #
1981
592
  # @see Wx::RTC::RichTextBuffer.remove_field_type
1982
593
  # @see Wx::RTC::RichTextBuffer.find_field_type
1983
- # @see Wx::RichTextField
1984
- # @see Wx::RichTextFieldType
1985
- # @see Wx::RichTextFieldTypeStandard
1986
- # @param fieldType [Wx::RichTextFieldType]
594
+ # @see Wx::RTC::RichTextField
595
+ # @see Wx::RTC::RichTextFieldType
596
+ # @see Wx::RTC::RichTextFieldTypeStandard
597
+ # @param fieldType [Wx::RTC::RichTextFieldType]
1987
598
  # @return [void]
1988
599
  def self.add_field_type(fieldType) end
1989
600
 
@@ -1991,38 +602,28 @@ module Wx::RTC
1991
602
  #
1992
603
  # @see Wx::RTC::RichTextBuffer.add_field_type
1993
604
  # @see Wx::RTC::RichTextBuffer.find_field_type
1994
- # @see Wx::RichTextField
1995
- # @see Wx::RichTextFieldType
1996
- # @see Wx::RichTextFieldTypeStandard
605
+ # @see Wx::RTC::RichTextField
606
+ # @see Wx::RTC::RichTextFieldType
607
+ # @see Wx::RTC::RichTextFieldTypeStandard
1997
608
  # @param name [String]
1998
- # @return [true,false]
609
+ # @return [Boolean]
1999
610
  def self.remove_field_type(name) end
2000
611
 
2001
612
  # Finds a field type by name.
2002
613
  #
2003
614
  # @see Wx::RTC::RichTextBuffer.remove_field_type
2004
615
  # @see Wx::RTC::RichTextBuffer.add_field_type
2005
- # @see Wx::RichTextField
2006
- # @see Wx::RichTextFieldType
2007
- # @see Wx::RichTextFieldTypeStandard
616
+ # @see Wx::RTC::RichTextField
617
+ # @see Wx::RTC::RichTextFieldType
618
+ # @see Wx::RTC::RichTextFieldTypeStandard
2008
619
  # @param name [String]
2009
- # @return [Wx::RichTextFieldType]
620
+ # @return [Wx::RTC::RichTextFieldType]
2010
621
  def self.find_field_type(name) end
2011
622
 
2012
623
  # Cleans up field types.
2013
624
  # @return [void]
2014
625
  def self.clean_up_field_types; end
2015
626
 
2016
- # Returns the renderer object.
2017
- # @return [Wx::RichTextRenderer]
2018
- def self.get_renderer; end
2019
-
2020
- # Sets renderer as the object to be used to render certain aspects of the content, such as bullets.
2021
- # You can override default rendering by deriving a new class from {Wx::RichTextRenderer} or {Wx::RichTextStdRenderer}, overriding one or more virtual functions, and setting an instance of the class using this function.
2022
- # @param renderer [Wx::RichTextRenderer]
2023
- # @return [void]
2024
- def self.set_renderer(renderer) end
2025
-
2026
627
  # Returns the minimum margin between bullet and paragraph in 10ths of a mm.
2027
628
  # @return [Integer]
2028
629
  def self.get_bullet_right_margin; end
@@ -2043,16 +644,503 @@ module Wx::RTC
2043
644
 
2044
645
  # Returns the floating layout mode.
2045
646
  # The default is true, where objects are laid out according to their floating status.
2046
- # @return [true,false]
647
+ # @return [Boolean]
2047
648
  def self.get_floating_layout_mode; end
2048
649
 
2049
650
  # Sets the floating layout mode.
2050
651
  # Pass false to speed up editing by not performing floating layout. This setting affects all buffers.
2051
- # @param mode [true,false]
652
+ # @param mode [Boolean]
2052
653
  # @return [void]
2053
654
  def self.set_floating_layout_mode(mode) end
2054
655
 
2055
656
  end # RichTextBuffer
2056
657
 
658
+ # Manages quick access to a pool of fonts for rendering rich text.
659
+ # ===
660
+ #
661
+ # Category: Rich Text
662
+ # @see Wx::RTC::RichTextBuffer
663
+ # @see Wx::RTC::RichTextCtrl
664
+ #
665
+ #
666
+ class RichTextFontTable < Object
667
+
668
+ # @overload initialize()
669
+ # Default constructor.
670
+ # @return [Wx::RTC::RichTextFontTable]
671
+ # @overload initialize(table)
672
+ # Copy constructor.
673
+ # @param table [Wx::RTC::RichTextFontTable]
674
+ # @return [Wx::RTC::RichTextFontTable]
675
+ def initialize(*args) end
676
+
677
+ # Returns true if the font table is valid.
678
+ # @return [Boolean]
679
+ def is_ok; end
680
+ alias_method :ok?, :is_ok
681
+
682
+ # Finds a font for the given attribute object.
683
+ # @param fontSpec [Wx::RTC::RichTextAttr]
684
+ # @return [Wx::Font]
685
+ def find_font(fontSpec) end
686
+
687
+ # Clears the font table.
688
+ # @return [void]
689
+ def clear; end
690
+
691
+ # Equality operator.
692
+ # @param table [Wx::RTC::RichTextFontTable]
693
+ # @return [Boolean]
694
+ def ==(table) end
695
+
696
+ # Set the font scale factor.
697
+ # @param fontScale [Float]
698
+ # @return [void]
699
+ def set_font_scale(fontScale) end
700
+ alias_method :font_scale=, :set_font_scale
701
+
702
+ end # RichTextFontTable
703
+
704
+ # The base class for custom field types.
705
+ # Each type definition handles one field type. Override functions to provide drawing, layout, updating and property editing functionality for a field.
706
+ # Register field types on application initialisation with the static function {Wx::RTC::RichTextBuffer.add_field_type}. They will be deleted automatically on application exit.
707
+ # ===
708
+ #
709
+ # Category: Rich Text
710
+ # @see Wx::RTC::RichTextFieldTypeStandard
711
+ # @see Wx::RTC::RichTextField
712
+ # @see Wx::RTC::RichTextCtrl
713
+ #
714
+ #
715
+ class RichTextFieldType < Object
716
+
717
+ # @overload initialize(name=(''))
718
+ # Creates a field type definition.
719
+ # @param name [String]
720
+ # @return [Wx::RTC::RichTextFieldType]
721
+ # @overload initialize(fieldType)
722
+ # Copy constructor.
723
+ # @param fieldType [Wx::RTC::RichTextFieldType]
724
+ # @return [Wx::RTC::RichTextFieldType]
725
+ def initialize(*args) end
726
+
727
+ # @param fieldType [Wx::RTC::RichTextFieldType]
728
+ # @return [void]
729
+ def copy(fieldType) end
730
+
731
+ # Draw the item, within the given range.
732
+ # Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
733
+ # @param obj [Wx::RTC::RichTextField]
734
+ # @param dc [Wx::DC]
735
+ # @param context [Wx::RTC::RichTextDrawingContext]
736
+ # @param range [Range]
737
+ # @param selection [Wx::RTC::RichTextSelection]
738
+ # @param rect [Wx::Rect]
739
+ # @param descent [Integer]
740
+ # @param style [Integer]
741
+ # @return [Boolean]
742
+ def draw(obj, dc, context, range, selection, rect, descent, style) end
743
+
744
+ # Lay the item out at the specified position with the given size constraint.
745
+ # 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).
746
+ # @param obj [Wx::RTC::RichTextField]
747
+ # @param dc [Wx::DC]
748
+ # @param context [Wx::RTC::RichTextDrawingContext]
749
+ # @param rect [Wx::Rect]
750
+ # @param parentRect [Wx::Rect]
751
+ # @param style [Integer]
752
+ # @return [Boolean]
753
+ def layout(obj, dc, context, rect, parentRect, style) end
754
+
755
+ # Returns the object size for the given range.
756
+ # Returns false if the range is invalid for this object.
757
+ # @param obj [Wx::RTC::RichTextField]
758
+ # @param range [Range]
759
+ # @param size [Array(Integer, Integer), Wx::Size]
760
+ # @param descent [Integer]
761
+ # @param dc [Wx::DC]
762
+ # @param context [Wx::RTC::RichTextDrawingContext]
763
+ # @param flags [Integer]
764
+ # @param position [Array(Integer, Integer), Wx::Point]
765
+ # @param parentSize [Array(Integer, Integer), Wx::Size]
766
+ # @param partialExtents [Array,nil]
767
+ # @return [Array(Boolean,Integer)]
768
+ def get_range_size(obj, range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
769
+ alias_method :range_size, :get_range_size
770
+
771
+ # Returns true if we can edit the object's properties via a GUI.
772
+ # @param obj [Wx::RTC::RichTextField]
773
+ # @return [Boolean]
774
+ def can_edit_properties(obj) end
775
+ alias_method :can_edit_properties?, :can_edit_properties
776
+
777
+ # Edits the object's properties via a GUI.
778
+ # @param obj [Wx::RTC::RichTextField]
779
+ # @param parent [Wx::Window]
780
+ # @param buffer [Wx::RTC::RichTextBuffer]
781
+ # @return [Boolean]
782
+ def edit_properties(obj, parent, buffer) end
783
+
784
+ # Returns the label to be used for the properties context menu item.
785
+ # @param obj [Wx::RTC::RichTextField]
786
+ # @return [String]
787
+ def get_properties_menu_label(obj) end
788
+ alias_method :properties_menu_label, :get_properties_menu_label
789
+
790
+ # Update the field.
791
+ # This would typically expand the field to its value, if this is a dynamically changing and/or composite field.
792
+ # @param buffer [Wx::RTC::RichTextBuffer]
793
+ # @param obj [Wx::RTC::RichTextField]
794
+ # @return [Boolean]
795
+ def update_field(buffer, obj) end
796
+
797
+ # Returns true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
798
+ # @param obj [Wx::RTC::RichTextField]
799
+ # @return [Boolean]
800
+ def is_top_level(obj) end
801
+ alias_method :top_level?, :is_top_level
802
+
803
+ # Sets the field type name.
804
+ # There should be a unique name per field type object.
805
+ # @param name [String]
806
+ # @return [void]
807
+ def set_name(name) end
808
+ alias_method :name=, :set_name
809
+
810
+ # Returns the field type name.
811
+ # There should be a unique name per field type object.
812
+ # @return [String]
813
+ def get_name; end
814
+ alias_method :name, :get_name
815
+
816
+ end # RichTextFieldType
817
+
818
+ # A field type that can handle fields with text or bitmap labels, with a small range of styles for implementing rectangular fields and fields that can be used for start and end tags.
819
+ # The border, text and background colours can be customised; the default is white text on a black background.
820
+ # The following display styles can be used.
821
+ # === Styles
822
+ #
823
+ # This class supports the following styles:
824
+ #
825
+ # - {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_COMPOSITE}: Creates a composite field; you will probably need to derive a new class to implement UpdateField.
826
+ #
827
+ # - {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_RECTANGLE}: Shows a rounded rectangle background.
828
+ #
829
+ # - {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_NO_BORDER}: Suppresses the background and border; mostly used with a bitmap label.
830
+ #
831
+ # - {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_START_TAG}: Shows a start tag background, with the pointy end facing right.
832
+ #
833
+ # - {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_END_TAG}: Shows an end tag background, with the pointy end facing left.
834
+ #
835
+ # ===
836
+ #
837
+ # Category: Rich Text
838
+ # @see Wx::RTC::RichTextFieldType
839
+ # @see Wx::RTC::RichTextField
840
+ # @see Wx::RTC::RichTextBuffer
841
+ # @see Wx::RTC::RichTextCtrl
842
+ #
843
+ #
844
+ class RichTextFieldTypeStandard < RichTextFieldType
845
+
846
+ #
847
+ #
848
+ RICHTEXT_FIELD_STYLE_COMPOSITE = 1
849
+
850
+ #
851
+ #
852
+ RICHTEXT_FIELD_STYLE_RECTANGLE = 2
853
+
854
+ #
855
+ #
856
+ RICHTEXT_FIELD_STYLE_NO_BORDER = 4
857
+
858
+ #
859
+ #
860
+ RICHTEXT_FIELD_STYLE_START_TAG = 8
861
+
862
+ #
863
+ #
864
+ RICHTEXT_FIELD_STYLE_END_TAG = 16
865
+
866
+ # @overload initialize(name, label, displayStyle=Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_RECTANGLE)
867
+ # Constructor, creating a field type definition with a text label.
868
+ # @param name [String] The name of the type definition. This must be unique, and is the type name used when adding a field to a control.
869
+ # @param label [String] The text label to be shown on the field.
870
+ # @param displayStyle [Integer] The display style: one of {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_RECTANGLE}, {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_NO_BORDER}, {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_START_TAG}, {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_END_TAG}.
871
+ # @return [Wx::RTC::RichTextFieldTypeStandard]
872
+ # @overload initialize(name, bitmap, displayStyle=Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_NO_BORDER)
873
+ # Constructor, creating a field type definition with a bitmap label.
874
+ # @param name [String] The name of the type definition. This must be unique, and is the type name used when adding a field to a control.
875
+ # @param bitmap [Wx::Bitmap] The bitmap label to be shown on the field.
876
+ # @param displayStyle [Integer] The display style: one of {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_RECTANGLE}, {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_NO_BORDER}, {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_START_TAG}, {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_END_TAG}.
877
+ # @return [Wx::RTC::RichTextFieldTypeStandard]
878
+ # @overload initialize()
879
+ # The default constructor.
880
+ # @return [Wx::RTC::RichTextFieldTypeStandard]
881
+ # @overload initialize(field)
882
+ # The copy constructor.
883
+ # @param field [Wx::RTC::RichTextFieldTypeStandard]
884
+ # @return [Wx::RTC::RichTextFieldTypeStandard]
885
+ def initialize(*args) end
886
+
887
+ # Initialises the object.
888
+ # @return [void]
889
+ def init; end
890
+
891
+ # Copies the object.
892
+ # @param field [Wx::RTC::RichTextFieldTypeStandard]
893
+ # @return [void]
894
+ def copy(field) end
895
+
896
+ # Draw the item, within the given range.
897
+ # Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
898
+ # @param obj [Wx::RTC::RichTextField]
899
+ # @param dc [Wx::DC]
900
+ # @param context [Wx::RTC::RichTextDrawingContext]
901
+ # @param range [Range]
902
+ # @param selection [Wx::RTC::RichTextSelection]
903
+ # @param rect [Wx::Rect]
904
+ # @param descent [Integer]
905
+ # @param style [Integer]
906
+ # @return [Boolean]
907
+ def draw(obj, dc, context, range, selection, rect, descent, style) end
908
+
909
+ # Lay the item out at the specified position with the given size constraint.
910
+ # 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).
911
+ # @param obj [Wx::RTC::RichTextField]
912
+ # @param dc [Wx::DC]
913
+ # @param context [Wx::RTC::RichTextDrawingContext]
914
+ # @param rect [Wx::Rect]
915
+ # @param parentRect [Wx::Rect]
916
+ # @param style [Integer]
917
+ # @return [Boolean]
918
+ def layout(obj, dc, context, rect, parentRect, style) end
919
+
920
+ # Returns the object size for the given range.
921
+ # Returns false if the range is invalid for this object.
922
+ # @param obj [Wx::RTC::RichTextField]
923
+ # @param range [Range]
924
+ # @param size [Array(Integer, Integer), Wx::Size]
925
+ # @param descent [Integer]
926
+ # @param dc [Wx::DC]
927
+ # @param context [Wx::RTC::RichTextDrawingContext]
928
+ # @param flags [Integer]
929
+ # @param position [Array(Integer, Integer), Wx::Point]
930
+ # @param parentSize [Array(Integer, Integer), Wx::Size]
931
+ # @param partialExtents [Array,nil]
932
+ # @return [Array(Boolean,Integer)]
933
+ def get_range_size(obj, range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
934
+ alias_method :range_size, :get_range_size
935
+
936
+ # Get the size of the field, given the label, font size, and so on.
937
+ # @param obj [Wx::RTC::RichTextField]
938
+ # @param dc [Wx::DC]
939
+ # @param context [Wx::RTC::RichTextDrawingContext]
940
+ # @param style [Integer]
941
+ # @return [Wx::Size]
942
+ def get_size(obj, dc, context, style) end
943
+ alias_method :size, :get_size
944
+
945
+ # Returns true if the display type is {Wx::RTC::RichTextFieldTypeStandard::RICHTEXT_FIELD_STYLE_COMPOSITE}, false otherwise.
946
+ # @param obj [Wx::RTC::RichTextField]
947
+ # @return [Boolean]
948
+ def is_top_level(obj) end
949
+ alias_method :top_level?, :is_top_level
950
+
951
+ # Sets the text label for fields of this type.
952
+ # @param label [String]
953
+ # @return [void]
954
+ def set_label(label) end
955
+ alias_method :label=, :set_label
956
+
957
+ # Returns the text label for fields of this type.
958
+ # @return [Wx::String]
959
+ def get_label; end
960
+ alias_method :label, :get_label
961
+
962
+ # Sets the bitmap label for fields of this type.
963
+ # @param bitmap [Wx::Bitmap]
964
+ # @return [void]
965
+ def set_bitmap(bitmap) end
966
+ alias_method :bitmap=, :set_bitmap
967
+
968
+ # Gets the bitmap label for fields of this type.
969
+ # @return [Wx::Bitmap]
970
+ def get_bitmap; end
971
+ alias_method :bitmap, :get_bitmap
972
+
973
+ # Gets the display style for fields of this type.
974
+ # @return [Integer]
975
+ def get_display_style; end
976
+ alias_method :display_style, :get_display_style
977
+
978
+ # Sets the display style for fields of this type.
979
+ # @param displayStyle [Integer]
980
+ # @return [void]
981
+ def set_display_style(displayStyle) end
982
+ alias_method :display_style=, :set_display_style
983
+
984
+ # Gets the font used for drawing the text label.
985
+ # @return [Wx::Font,Wx::FontInfo]
986
+ def get_font; end
987
+ alias_method :font, :get_font
988
+
989
+ # Sets the font used for drawing the text label.
990
+ # @param font [Wx::Font,Wx::FontInfo]
991
+ # @return [void]
992
+ def set_font(font) end
993
+ alias_method :font=, :set_font
994
+
995
+ # Gets the colour used for drawing the text label.
996
+ # @return [Wx::Colour,String,Symbol]
997
+ def get_text_colour; end
998
+ alias_method :text_colour, :get_text_colour
999
+
1000
+ # Sets the colour used for drawing the text label.
1001
+ # @param colour [Wx::Colour,String,Symbol]
1002
+ # @return [void]
1003
+ def set_text_colour(colour) end
1004
+ alias_method :text_colour=, :set_text_colour
1005
+
1006
+ # Gets the colour used for drawing the field border.
1007
+ # @return [Wx::Colour,String,Symbol]
1008
+ def get_border_colour; end
1009
+ alias_method :border_colour, :get_border_colour
1010
+
1011
+ # Sets the colour used for drawing the field border.
1012
+ # @param colour [Wx::Colour,String,Symbol]
1013
+ # @return [void]
1014
+ def set_border_colour(colour) end
1015
+ alias_method :border_colour=, :set_border_colour
1016
+
1017
+ # Gets the colour used for drawing the field background.
1018
+ # @return [Wx::Colour,String,Symbol]
1019
+ def get_background_colour; end
1020
+ alias_method :background_colour, :get_background_colour
1021
+
1022
+ # Sets the colour used for drawing the field background.
1023
+ # @param colour [Wx::Colour,String,Symbol]
1024
+ # @return [void]
1025
+ def set_background_colour(colour) end
1026
+ alias_method :background_colour=, :set_background_colour
1027
+
1028
+ # Sets the vertical padding (the distance between the border and the text).
1029
+ # @param padding [Integer]
1030
+ # @return [void]
1031
+ def set_vertical_padding(padding) end
1032
+ alias_method :vertical_padding=, :set_vertical_padding
1033
+
1034
+ # Gets the vertical padding (the distance between the border and the text).
1035
+ # @return [Integer]
1036
+ def get_vertical_padding; end
1037
+ alias_method :vertical_padding, :get_vertical_padding
1038
+
1039
+ # Sets the horizontal padding (the distance between the border and the text).
1040
+ # @param padding [Integer]
1041
+ # @return [void]
1042
+ def set_horizontal_padding(padding) end
1043
+ alias_method :horizontal_padding=, :set_horizontal_padding
1044
+
1045
+ # Sets the horizontal padding (the distance between the border and the text).
1046
+ # @return [Integer]
1047
+ def get_horizontal_padding; end
1048
+ alias_method :horizontal_padding, :get_horizontal_padding
1049
+
1050
+ # Sets the horizontal margin surrounding the field object.
1051
+ # @param margin [Integer]
1052
+ # @return [void]
1053
+ def set_horizontal_margin(margin) end
1054
+ alias_method :horizontal_margin=, :set_horizontal_margin
1055
+
1056
+ # Gets the horizontal margin surrounding the field object.
1057
+ # @return [Integer]
1058
+ def get_horizontal_margin; end
1059
+ alias_method :horizontal_margin, :get_horizontal_margin
1060
+
1061
+ # Sets the vertical margin surrounding the field object.
1062
+ # @param margin [Integer]
1063
+ # @return [void]
1064
+ def set_vertical_margin(margin) end
1065
+ alias_method :vertical_margin=, :set_vertical_margin
1066
+
1067
+ # Gets the vertical margin surrounding the field object.
1068
+ # @return [Integer]
1069
+ def get_vertical_margin; end
1070
+ alias_method :vertical_margin, :get_vertical_margin
1071
+
1072
+ end # RichTextFieldTypeStandard
1073
+
1074
+ # The base class for custom drawing handlers.
1075
+ # Currently, drawing handlers can provide virtual attributes.
1076
+ # ===
1077
+ #
1078
+ # Category: Rich Text
1079
+ # @see Wx::RTC::RichTextBuffer
1080
+ # @see Wx::RTC::RichTextCtrl
1081
+ #
1082
+ #
1083
+ class RichTextDrawingHandler < Object
1084
+
1085
+ # Creates a drawing handler object.
1086
+ # @param name [String]
1087
+ # @return [Wx::RTC::RichTextDrawingHandler]
1088
+ def initialize(name=('')) end
1089
+
1090
+ # Returns true if this object has virtual attributes that we can provide.
1091
+ # @param obj [Wx::RTC::RichTextObject]
1092
+ # @return [Boolean]
1093
+ def has_virtual_attributes(obj) end
1094
+ alias_method :has_virtual_attributes?, :has_virtual_attributes
1095
+
1096
+ # Provides virtual attributes that we can provide.
1097
+ # @param attr [Wx::RTC::RichTextAttr]
1098
+ # @param obj [Wx::RTC::RichTextObject]
1099
+ # @return [Boolean]
1100
+ def get_virtual_attributes(attr, obj) end
1101
+ alias_method :virtual_attributes, :get_virtual_attributes
1102
+
1103
+ # Gets the count for mixed virtual attributes for individual positions within the object.
1104
+ # For example, individual characters within a text object may require special highlighting.
1105
+ # @param obj [Wx::RTC::RichTextObject]
1106
+ # @return [Integer]
1107
+ def get_virtual_subobject_attributes_count(obj) end
1108
+ alias_method :virtual_subobject_attributes_count, :get_virtual_subobject_attributes_count
1109
+
1110
+ # Gets the mixed virtual attributes for individual positions within the object.
1111
+ # For example, individual characters within a text object may require special highlighting. Returns the number of virtual attributes found.
1112
+ # @param obj [Wx::RTC::RichTextObject]
1113
+ # @param positions [Array]
1114
+ # @param attributes [Array]
1115
+ # @return [Integer]
1116
+ def get_virtual_subobject_attributes(obj, positions, attributes) end
1117
+ alias_method :virtual_subobject_attributes, :get_virtual_subobject_attributes
1118
+
1119
+ # Do we have virtual text for this object? Virtual text allows an application to replace characters in an object for editing and display purposes, for example for highlighting special characters.
1120
+ # @param obj [Wx::RTC::RichTextPlainText]
1121
+ # @return [Boolean]
1122
+ def has_virtual_text(obj) end
1123
+ alias_method :has_virtual_text?, :has_virtual_text
1124
+
1125
+ # Gets the virtual text for this object.
1126
+ # @param obj [Wx::RTC::RichTextPlainText]
1127
+ # @param text [String]
1128
+ # @return [Boolean]
1129
+ def get_virtual_text(obj, text) end
1130
+ alias_method :virtual_text, :get_virtual_text
1131
+
1132
+ # Sets the name of the handler.
1133
+ # @param name [String]
1134
+ # @return [void]
1135
+ def set_name(name) end
1136
+ alias_method :name=, :set_name
1137
+
1138
+ # Returns the name of the handler.
1139
+ # @return [String]
1140
+ def get_name; end
1141
+ alias_method :name, :get_name
1142
+
1143
+ end # RichTextDrawingHandler
1144
+
2057
1145
 
2058
1146
  end