wxruby3 0.9.0.pre.rc.2-x64-mingw-ucrt → 0.9.0-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (703) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +30 -8
  3. data/README.md +3 -3
  4. data/ext/mkrf_conf_bingem.rb +4 -1
  5. data/ext/wxbase32u_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  7. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  20. data/lib/wx/accessors.rb +10 -2
  21. data/lib/wx/aui/auifloatframe.rb +20 -0
  22. data/lib/wx/aui/auimanager.rb +3 -0
  23. data/lib/wx/aui/auinotebook.rb +17 -0
  24. data/lib/wx/aui/events/evt_list.rb +7 -7
  25. data/lib/wx/aui/require.rb +5 -1
  26. data/lib/wx/aui.rb +4 -1
  27. data/lib/wx/core/acceleratortable.rb +8 -0
  28. data/lib/wx/core/animation.rb +8 -0
  29. data/lib/wx/core/app.rb +8 -0
  30. data/lib/wx/core/array_ext.rb +7 -0
  31. data/lib/wx/core/art_locator.rb +7 -0
  32. data/lib/wx/core/artprovider.rb +9 -0
  33. data/lib/wx/core/bitmap.rb +16 -4
  34. data/lib/wx/core/bitmap_combobox.rb +7 -0
  35. data/lib/wx/core/brush.rb +7 -0
  36. data/lib/wx/core/busycursor.rb +9 -0
  37. data/lib/wx/core/choice.rb +7 -0
  38. data/lib/wx/core/choicedlg.rb +7 -0
  39. data/lib/wx/core/clientdc.rb +9 -0
  40. data/lib/wx/core/clipboard.rb +8 -0
  41. data/lib/wx/core/collapsible_pane.rb +8 -1
  42. data/lib/wx/core/colour.rb +8 -0
  43. data/lib/wx/core/combo_ctrl.rb +110 -0
  44. data/lib/wx/core/combobox.rb +7 -0
  45. data/lib/wx/core/config.rb +303 -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 +14 -0
  57. data/lib/wx/core/events/evt_list.rb +76 -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 +49 -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 +26 -13
  75. data/lib/wx/core/locale.rb +8 -0
  76. data/lib/wx/core/log.rb +114 -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 +19 -15
  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 +7 -0
  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 +12 -0
  129. data/lib/wx/doc/event_blocker.rb +6 -0
  130. data/lib/wx/doc/event_loop.rb +13 -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/00_starting.md +6 -6
  134. data/lib/wx/doc/extra/01_packages.md +52 -51
  135. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  136. data/lib/wx/doc/extra/05_event-handling.md +37 -12
  137. data/lib/wx/doc/extra/06_geometry.md +5 -5
  138. data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
  139. data/lib/wx/doc/extra/09_exceptions.md +2 -2
  140. data/lib/wx/doc/extra/10_art.md +18 -12
  141. data/lib/wx/doc/extra/11_drawing_and_dc.md +8 -8
  142. data/lib/wx/doc/font.rb +7 -1
  143. data/lib/wx/doc/font_data.rb +16 -0
  144. data/lib/wx/doc/functions.rb +60 -24
  145. data/lib/wx/doc/gc_dc.rb +7 -1
  146. data/lib/wx/doc/gdi_common.rb +8 -1
  147. data/lib/wx/doc/gen/about_dialog_info.rb +10 -10
  148. data/lib/wx/doc/gen/accelerator.rb +8 -13
  149. data/lib/wx/doc/gen/accessible.rb +27 -23
  150. data/lib/wx/doc/gen/activity_indicator.rb +7 -7
  151. data/lib/wx/doc/gen/animation.rb +20 -20
  152. data/lib/wx/doc/gen/animation_ctrl.rb +14 -13
  153. data/lib/wx/doc/gen/any_button.rb +3 -3
  154. data/lib/wx/doc/gen/app.rb +25 -88
  155. data/lib/wx/doc/gen/app_traits.rb +381 -0
  156. data/lib/wx/doc/gen/art_provider.rb +64 -4
  157. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  158. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  159. data/lib/wx/doc/gen/aui/aui_manager.rb +57 -41
  160. data/lib/wx/doc/gen/aui/aui_manager_event.rb +16 -10
  161. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +19 -20
  162. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +7 -7
  163. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +12 -12
  164. data/lib/wx/doc/gen/aui/aui_notebook.rb +136 -26
  165. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  166. data/lib/wx/doc/gen/aui/aui_pane_info.rb +95 -95
  167. data/lib/wx/doc/gen/aui/aui_tab_art.rb +17 -17
  168. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +61 -46
  169. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +18 -18
  170. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +6 -6
  171. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +11 -11
  172. data/lib/wx/doc/gen/aui/event_list.rb +7 -0
  173. data/lib/wx/doc/gen/banner_window.rb +98 -0
  174. data/lib/wx/doc/gen/bitmap.rb +56 -81
  175. data/lib/wx/doc/gen/bitmap_button.rb +13 -9
  176. data/lib/wx/doc/gen/bitmap_combo_box.rb +14 -9
  177. data/lib/wx/doc/gen/book_ctrl_base.rb +20 -16
  178. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  179. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  180. data/lib/wx/doc/gen/brush.rb +24 -12
  181. data/lib/wx/doc/gen/busy_info.rb +1 -1
  182. data/lib/wx/doc/gen/button.rb +23 -11
  183. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  184. data/lib/wx/doc/gen/calendar_ctrl.rb +34 -22
  185. data/lib/wx/doc/gen/calendar_date_attr.rb +13 -13
  186. data/lib/wx/doc/gen/calendar_event.rb +4 -10
  187. data/lib/wx/doc/gen/caret.rb +6 -6
  188. data/lib/wx/doc/gen/check_box.rb +19 -15
  189. data/lib/wx/doc/gen/check_list_box.rb +10 -9
  190. data/lib/wx/doc/gen/choice.rb +10 -9
  191. data/lib/wx/doc/gen/choicebook.rb +13 -7
  192. data/lib/wx/doc/gen/client_dc.rb +1 -1
  193. data/lib/wx/doc/gen/clipboard.rb +10 -10
  194. data/lib/wx/doc/gen/collapsible_pane.rb +13 -10
  195. data/lib/wx/doc/gen/collapsible_pane_event.rb +5 -4
  196. data/lib/wx/doc/gen/colour.rb +42 -32
  197. data/lib/wx/doc/gen/colour_dialog.rb +12 -12
  198. data/lib/wx/doc/gen/colour_picker_ctrl.rb +16 -10
  199. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  200. data/lib/wx/doc/gen/combo_box.rb +29 -20
  201. data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
  202. data/lib/wx/doc/gen/command_link_button.rb +110 -0
  203. data/lib/wx/doc/gen/config_base.rb +10 -0
  204. data/lib/wx/doc/gen/context_help_button.rb +7 -6
  205. data/lib/wx/doc/gen/control.rb +12 -9
  206. data/lib/wx/doc/gen/control_with_items.rb +5 -5
  207. data/lib/wx/doc/gen/core.rb +8 -5
  208. data/lib/wx/doc/gen/cursor.rb +18 -18
  209. data/lib/wx/doc/gen/data_format.rb +5 -5
  210. data/lib/wx/doc/gen/data_object.rb +32 -25
  211. data/lib/wx/doc/gen/date_event.rb +3 -3
  212. data/lib/wx/doc/gen/date_picker_ctrl.rb +16 -11
  213. data/lib/wx/doc/gen/dc.rb +162 -74
  214. data/lib/wx/doc/gen/defs.rb +16 -16
  215. data/lib/wx/doc/gen/dialog.rb +65 -22
  216. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  217. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +3 -3
  218. data/lib/wx/doc/gen/dir_picker_ctrl.rb +17 -12
  219. data/lib/wx/doc/gen/drag_drop.rb +26 -52
  220. data/lib/wx/doc/gen/drag_image.rb +13 -38
  221. data/lib/wx/doc/gen/editable_list_box.rb +9 -5
  222. data/lib/wx/doc/gen/event.rb +55 -32
  223. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  224. data/lib/wx/doc/gen/event_filter.rb +5 -2
  225. data/lib/wx/doc/gen/event_list.rb +117 -19
  226. data/lib/wx/doc/gen/events.rb +351 -215
  227. data/lib/wx/doc/gen/evt_handler.rb +8 -8
  228. data/lib/wx/doc/gen/ext_help_controller.rb +9 -9
  229. data/lib/wx/doc/gen/file_dialog.rb +20 -9
  230. data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
  231. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
  232. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  233. data/lib/wx/doc/gen/file_picker_ctrl.rb +19 -11
  234. data/lib/wx/doc/gen/file_system.rb +250 -0
  235. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  236. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  237. data/lib/wx/doc/gen/find_replace_dialog.rb +2 -2
  238. data/lib/wx/doc/gen/flex_grid_sizer.rb +16 -10
  239. data/lib/wx/doc/gen/font.rb +90 -94
  240. data/lib/wx/doc/gen/font_data.rb +15 -11
  241. data/lib/wx/doc/gen/font_dialog.rb +5 -5
  242. data/lib/wx/doc/gen/font_picker_ctrl.rb +11 -7
  243. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  244. data/lib/wx/doc/gen/frame.rb +36 -27
  245. data/lib/wx/doc/gen/fs_file.rb +65 -38
  246. data/lib/wx/doc/gen/gauge.rb +14 -10
  247. data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
  248. data/lib/wx/doc/gen/gcdc.rb +5 -1
  249. data/lib/wx/doc/gen/gdi_common.rb +43 -41
  250. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  251. data/lib/wx/doc/gen/generic_dir_ctrl.rb +19 -13
  252. data/lib/wx/doc/gen/graphics_context.rb +320 -88
  253. data/lib/wx/doc/gen/graphics_object.rb +48 -102
  254. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +4 -2
  255. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +41 -56
  256. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +3 -1
  257. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +3 -1
  258. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +4 -2
  259. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +3 -1
  260. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
  261. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +3 -1
  262. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +3 -1
  263. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
  264. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +19 -14
  265. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +3 -1
  266. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +3 -1
  267. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +3 -1
  268. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +3 -1
  269. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +3 -1
  270. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +3 -1
  271. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +15 -13
  272. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +3 -1
  273. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +3 -1
  274. data/lib/wx/doc/gen/grid/grid_ctrl.rb +446 -189
  275. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  276. data/lib/wx/doc/gen/grid/grid_event.rb +26 -9
  277. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +15 -11
  278. data/lib/wx/doc/gen/grid/grid_size_event.rb +13 -7
  279. data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -8
  280. data/lib/wx/doc/gen/grid/grid_table_base.rb +21 -21
  281. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  282. data/lib/wx/doc/gen/grid_bag_sizer.rb +15 -15
  283. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  284. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  285. data/lib/wx/doc/gen/header_ctrl.rb +755 -0
  286. data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
  287. data/lib/wx/doc/gen/help_controller.rb +25 -19
  288. data/lib/wx/doc/gen/help_provider.rb +3 -3
  289. data/lib/wx/doc/gen/html/html_cell.rb +100 -59
  290. data/lib/wx/doc/gen/html/html_cell_event.rb +7 -5
  291. data/lib/wx/doc/gen/html/html_easy_printing.rb +14 -9
  292. data/lib/wx/doc/gen/html/html_help_controller.rb +60 -46
  293. data/lib/wx/doc/gen/html/html_help_data.rb +5 -5
  294. data/lib/wx/doc/gen/html/html_help_window.rb +33 -35
  295. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  296. data/lib/wx/doc/gen/html/html_list_box.rb +21 -13
  297. data/lib/wx/doc/gen/html/html_printout.rb +16 -6
  298. data/lib/wx/doc/gen/html/html_window.rb +54 -39
  299. data/lib/wx/doc/gen/hyperlink_ctrl.rb +15 -10
  300. data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
  301. data/lib/wx/doc/gen/icon.rb +24 -24
  302. data/lib/wx/doc/gen/icon_location.rb +1 -1
  303. data/lib/wx/doc/gen/image.rb +164 -114
  304. data/lib/wx/doc/gen/image_list.rb +24 -30
  305. data/lib/wx/doc/gen/info_bar.rb +152 -0
  306. data/lib/wx/doc/gen/keyboard_state.rb +24 -24
  307. data/lib/wx/doc/gen/list_box.rb +40 -31
  308. data/lib/wx/doc/gen/list_ctrl.rb +223 -167
  309. data/lib/wx/doc/gen/list_event.rb +25 -3
  310. data/lib/wx/doc/gen/listbook.rb +13 -7
  311. data/lib/wx/doc/gen/locale.rb +22 -71
  312. data/lib/wx/doc/gen/log.rb +133 -106
  313. data/lib/wx/doc/gen/mdi_client_window.rb +3 -3
  314. data/lib/wx/doc/gen/mdi_frame.rb +23 -17
  315. data/lib/wx/doc/gen/media_ctrl.rb +22 -19
  316. data/lib/wx/doc/gen/media_event.rb +8 -2
  317. data/lib/wx/doc/gen/memory_dc.rb +26 -33
  318. data/lib/wx/doc/gen/menu.rb +24 -25
  319. data/lib/wx/doc/gen/menu_bar.rb +11 -28
  320. data/lib/wx/doc/gen/menu_item.rb +127 -46
  321. data/lib/wx/doc/gen/message_dialog.rb +54 -36
  322. data/lib/wx/doc/gen/mini_frame.rb +14 -5
  323. data/lib/wx/doc/gen/mouse_state.rb +51 -11
  324. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  325. data/lib/wx/doc/gen/non_owned_window.rb +8 -9
  326. data/lib/wx/doc/gen/notebook.rb +27 -22
  327. data/lib/wx/doc/gen/number_entry_dialog.rb +3 -3
  328. data/lib/wx/doc/gen/object.rb +3 -14
  329. data/lib/wx/doc/gen/palette.rb +15 -17
  330. data/lib/wx/doc/gen/panel.rb +8 -7
  331. data/lib/wx/doc/gen/pen.rb +50 -37
  332. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +3 -3
  333. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +17 -17
  334. data/lib/wx/doc/gen/pg/pg_cell.rb +13 -16
  335. data/lib/wx/doc/gen/pg/pg_editor.rb +95 -93
  336. data/lib/wx/doc/gen/pg/pg_multi_button.rb +64 -89
  337. data/lib/wx/doc/gen/pg/pg_properties.rb +379 -349
  338. data/lib/wx/doc/gen/pg/pg_property.rb +260 -307
  339. data/lib/wx/doc/gen/pg/pg_validation_info.rb +3 -3
  340. data/lib/wx/doc/gen/pg/property_grid.rb +49 -49
  341. data/lib/wx/doc/gen/pg/property_grid_event.rb +24 -11
  342. data/lib/wx/doc/gen/pg/property_grid_interface.rb +75 -69
  343. data/lib/wx/doc/gen/pg/property_grid_manager.rb +51 -54
  344. data/lib/wx/doc/gen/pg/property_grid_page.rb +22 -30
  345. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +17 -26
  346. data/lib/wx/doc/gen/picker_base.rb +17 -16
  347. data/lib/wx/doc/gen/platform_info.rb +180 -20
  348. data/lib/wx/doc/gen/popup_window.rb +8 -8
  349. data/lib/wx/doc/gen/progress_dialog.rb +3 -3
  350. data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -18
  351. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  352. data/lib/wx/doc/gen/prt/preview_frame.rb +18 -2
  353. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  354. data/lib/wx/doc/gen/prt/print_data.rb +68 -62
  355. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  356. data/lib/wx/doc/gen/prt/printer.rb +44 -49
  357. data/lib/wx/doc/gen/query_layout_info_event.rb +6 -5
  358. data/lib/wx/doc/gen/radio_box.rb +21 -19
  359. data/lib/wx/doc/gen/radio_button.rb +13 -11
  360. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +67 -67
  361. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +38 -20
  362. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  363. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +22 -15
  364. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +6 -6
  365. data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -11
  366. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +14 -16
  367. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  368. data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -12
  369. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +24 -22
  370. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  371. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +17 -15
  372. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +6 -6
  373. data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
  374. data/lib/wx/doc/gen/rearrange_list.rb +99 -0
  375. data/lib/wx/doc/gen/region.rb +35 -43
  376. data/lib/wx/doc/gen/region_iterator.rb +3 -3
  377. data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
  378. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +626 -1538
  379. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
  380. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
  381. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +488 -503
  382. data/lib/wx/doc/gen/rtc/rich_text_event.rb +31 -12
  383. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +18 -18
  384. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
  385. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +23 -19
  386. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +9 -18
  387. data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
  388. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
  389. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
  390. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +29 -29
  391. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
  392. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
  393. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
  394. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
  395. data/lib/wx/doc/gen/sash_event.rb +8 -6
  396. data/lib/wx/doc/gen/sash_layout_window.rb +13 -11
  397. data/lib/wx/doc/gen/sash_window.rb +14 -9
  398. data/lib/wx/doc/gen/scroll_bar.rb +33 -12
  399. data/lib/wx/doc/gen/scrolled_canvas.rb +49 -37
  400. data/lib/wx/doc/gen/scrolled_control.rb +49 -37
  401. data/lib/wx/doc/gen/scrolled_window.rb +49 -37
  402. data/lib/wx/doc/gen/search_ctrl.rb +20 -13
  403. data/lib/wx/doc/gen/simplebook.rb +7 -7
  404. data/lib/wx/doc/gen/single_choice_dialog.rb +5 -4
  405. data/lib/wx/doc/gen/sizer.rb +69 -73
  406. data/lib/wx/doc/gen/sizer_item.rb +5 -5
  407. data/lib/wx/doc/gen/slider.rb +51 -18
  408. data/lib/wx/doc/gen/spin_button.rb +17 -11
  409. data/lib/wx/doc/gen/spin_ctrl.rb +15 -9
  410. data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
  411. data/lib/wx/doc/gen/spin_double_event.rb +53 -0
  412. data/lib/wx/doc/gen/spin_event.rb +5 -2
  413. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  414. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  415. data/lib/wx/doc/gen/splitter_window.rb +36 -16
  416. data/lib/wx/doc/gen/static_bitmap.rb +9 -9
  417. data/lib/wx/doc/gen/static_box.rb +41 -37
  418. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  419. data/lib/wx/doc/gen/static_line.rb +8 -7
  420. data/lib/wx/doc/gen/static_text.rb +15 -9
  421. data/lib/wx/doc/gen/status_bar.rb +53 -10
  422. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +200 -184
  423. data/lib/wx/doc/gen/stc/styled_text_event.rb +229 -54
  424. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  425. data/lib/wx/doc/gen/svg_file_dc.rb +8 -8
  426. data/lib/wx/doc/gen/system_options.rb +13 -3
  427. data/lib/wx/doc/gen/system_settings.rb +9 -9
  428. data/lib/wx/doc/gen/task_bar_icon.rb +17 -9
  429. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  430. data/lib/wx/doc/gen/text_attr.rb +67 -61
  431. data/lib/wx/doc/gen/text_ctrl.rb +58 -113
  432. data/lib/wx/doc/gen/text_entry.rb +44 -56
  433. data/lib/wx/doc/gen/text_entry_dialog.rb +23 -23
  434. data/lib/wx/doc/gen/text_validator.rb +3 -19
  435. data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -10
  436. data/lib/wx/doc/gen/timer.rb +13 -9
  437. data/lib/wx/doc/gen/timer_event.rb +19 -26
  438. data/lib/wx/doc/gen/tip_provider.rb +3 -3
  439. data/lib/wx/doc/gen/toggle_button.rb +10 -9
  440. data/lib/wx/doc/gen/tool_bar.rb +71 -61
  441. data/lib/wx/doc/gen/tool_tip.rb +2 -10
  442. data/lib/wx/doc/gen/toolbook.rb +12 -9
  443. data/lib/wx/doc/gen/top_level_window.rb +53 -113
  444. data/lib/wx/doc/gen/tree_ctrl.rb +83 -33
  445. data/lib/wx/doc/gen/tree_event.rb +24 -3
  446. data/lib/wx/doc/gen/treebook.rb +20 -16
  447. data/lib/wx/doc/gen/ui_action_simulator.rb +20 -19
  448. data/lib/wx/doc/gen/utils.rb +20 -14
  449. data/lib/wx/doc/gen/v_list_box.rb +11 -11
  450. data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
  451. data/lib/wx/doc/gen/validator.rb +10 -8
  452. data/lib/wx/doc/gen/variant.rb +56 -119
  453. data/lib/wx/doc/gen/window.rb +314 -224
  454. data/lib/wx/doc/gen/window_dc.rb +1 -1
  455. data/lib/wx/doc/gen/with_images.rb +2 -2
  456. data/lib/wx/doc/gen/wizard.rb +21 -8
  457. data/lib/wx/doc/gen/wizard_event.rb +11 -4
  458. data/lib/wx/doc/gen/wizard_page.rb +3 -3
  459. data/lib/wx/doc/gen/wizard_page_simple.rb +8 -8
  460. data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
  461. data/lib/wx/doc/gen/xml_node.rb +13 -13
  462. data/lib/wx/doc/gen/xml_resource.rb +24 -21
  463. data/lib/wx/doc/graphics_context.rb +59 -39
  464. data/lib/wx/doc/grid/grid.rb +16 -1
  465. data/lib/wx/doc/hboxsizer.rb +33 -0
  466. data/lib/wx/doc/help_controller.rb +6 -0
  467. data/lib/wx/doc/html/html_help_controller.rb +6 -0
  468. data/lib/wx/doc/icon.rb +13 -5
  469. data/lib/wx/doc/id_helper.rb +6 -0
  470. data/lib/wx/doc/image.rb +50 -12
  471. data/lib/wx/doc/list_ctrl.rb +38 -0
  472. data/lib/wx/doc/log.rb +45 -0
  473. data/lib/wx/doc/memory_dc.rb +6 -0
  474. data/lib/wx/doc/mirror_dc.rb +6 -0
  475. data/lib/wx/doc/pen.rb +6 -0
  476. data/lib/wx/doc/pg/events.rb +6 -0
  477. data/lib/wx/doc/pg/pg_property.rb +17 -0
  478. data/lib/wx/doc/pg/pgeditor.rb +6 -0
  479. data/lib/wx/doc/pg/property_grid.rb +6 -0
  480. data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
  481. data/lib/wx/doc/progress_dialog.rb +6 -0
  482. data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
  483. data/lib/wx/doc/prt/print_data.rb +6 -0
  484. data/lib/wx/doc/prt/print_dialog.rb +6 -0
  485. data/lib/wx/doc/prt/printer.rb +6 -0
  486. data/lib/wx/doc/prt/printer_dc.rb +8 -2
  487. data/lib/wx/doc/radio_box.rb +6 -0
  488. data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
  489. data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
  490. data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
  491. data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
  492. data/lib/wx/doc/region_iterator.rb +6 -0
  493. data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
  494. data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
  495. data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
  496. data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
  497. data/lib/wx/doc/scaled_dc.rb +7 -1
  498. data/lib/wx/doc/screen_dc.rb +6 -0
  499. data/lib/wx/doc/stock_objects.rb +6 -0
  500. data/lib/wx/doc/stream.rb +6 -0
  501. data/lib/wx/doc/svg_file_dc.rb +6 -0
  502. data/lib/wx/doc/system_settings.rb +6 -0
  503. data/lib/wx/doc/text_validator.rb +18 -0
  504. data/lib/wx/doc/textctrl.rb +89 -0
  505. data/lib/wx/doc/tree_event.rb +20 -0
  506. data/lib/wx/doc/treebook.rb +6 -0
  507. data/lib/wx/doc/v_list_box.rb +6 -0
  508. data/lib/wx/doc/variant.rb +6 -0
  509. data/lib/wx/doc/vboxsizer.rb +33 -0
  510. data/lib/wx/doc/window.rb +6 -0
  511. data/lib/wx/doc/window_disabler.rb +6 -0
  512. data/lib/wx/doc/xml_resource.rb +8 -0
  513. data/lib/wx/global_const.rb +4 -1
  514. data/lib/wx/grid/grid.rb +23 -3
  515. data/lib/wx/grid/keyword_defs.rb +8 -1
  516. data/lib/wx/grid/require.rb +4 -1
  517. data/lib/wx/grid.rb +4 -1
  518. data/lib/wx/helpers.rb +8 -1
  519. data/lib/wx/html/htmlhelpcontroller.rb +29 -3
  520. data/lib/wx/html/htmlwindow.rb +23 -12
  521. data/lib/wx/html/keyword_defs.rb +8 -1
  522. data/lib/wx/html/require.rb +4 -1
  523. data/lib/wx/html/simple_html_listbox.rb +3 -0
  524. data/lib/wx/html.rb +4 -1
  525. data/lib/wx/keyword_ctors.rb +22 -3
  526. data/lib/wx/keyword_defs.rb +55 -3
  527. data/lib/wx/pg/events.rb +4 -1
  528. data/lib/wx/pg/keyword_defs.rb +8 -1
  529. data/lib/wx/pg/pg_editor.rb +3 -0
  530. data/lib/wx/pg/pg_properties.rb +4 -1
  531. data/lib/wx/pg/pg_property.rb +18 -5
  532. data/lib/wx/pg/property_grid.rb +4 -1
  533. data/lib/wx/pg/property_grid_interface.rb +3 -0
  534. data/lib/wx/pg/require.rb +4 -1
  535. data/lib/wx/pg.rb +4 -1
  536. data/lib/wx/prt/keyword_defs.rb +8 -1
  537. data/lib/wx/prt/page_setup_dialog.rb +3 -0
  538. data/lib/wx/prt/previewframe.rb +5 -0
  539. data/lib/wx/prt/require.rb +4 -1
  540. data/lib/wx/prt.rb +4 -1
  541. data/lib/wx/rbn/events.rb +4 -1
  542. data/lib/wx/rbn/keyword_defs.rb +8 -1
  543. data/lib/wx/rbn/require.rb +5 -1
  544. data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
  545. data/lib/wx/rbn/ribbon_bar.rb +3 -0
  546. data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
  547. data/lib/wx/rbn/ribbon_control.rb +3 -0
  548. data/lib/wx/rbn/ribbon_gallery.rb +10 -0
  549. data/lib/wx/rbn/ribbon_page.rb +3 -0
  550. data/lib/wx/rbn/ribbon_panel.rb +3 -0
  551. data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
  552. data/lib/wx/rbn.rb +4 -1
  553. data/lib/wx/rtc/ext.rb +4 -1
  554. data/lib/wx/rtc/keyword_defs.rb +18 -7
  555. data/lib/wx/rtc/require.rb +8 -1
  556. data/lib/wx/rtc/richtext_buffer.rb +36 -0
  557. data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
  558. data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
  559. data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
  560. data/lib/wx/rtc.rb +5 -1
  561. data/lib/wx/stc/keyword_defs.rb +8 -1
  562. data/lib/wx/stc/require.rb +4 -1
  563. data/lib/wx/stc.rb +4 -1
  564. data/lib/wx/version.rb +5 -1
  565. data/lib/wx/wxruby/base.rb +4 -1
  566. data/lib/wx/wxruby/cmd/sampler.rb +4 -1
  567. data/lib/wx/wxruby/cmd/test.rb +4 -1
  568. data/lib/wx.rb +4 -1
  569. data/lib/wxruby_aui.so +0 -0
  570. data/lib/wxruby_core.so +0 -0
  571. data/lib/wxruby_grid.so +0 -0
  572. data/lib/wxruby_html.so +0 -0
  573. data/lib/wxruby_pg.so +0 -0
  574. data/lib/wxruby_prt.so +0 -0
  575. data/lib/wxruby_rbn.so +0 -0
  576. data/lib/wxruby_rtc.so +0 -0
  577. data/lib/wxruby_stc.so +0 -0
  578. data/rakelib/install.rb +4 -1
  579. data/rakelib/lib/config/cygwin.rb +4 -1
  580. data/rakelib/lib/config/linux.rb +4 -1
  581. data/rakelib/lib/config/macosx.rb +5 -2
  582. data/rakelib/lib/config/mingw.rb +4 -1
  583. data/rakelib/lib/config/netbsd.rb +4 -1
  584. data/rakelib/lib/config/unixish.rb +10 -7
  585. data/rakelib/lib/config.rb +7 -2
  586. data/rakelib/lib/ext/enum_chain.rb +4 -1
  587. data/rakelib/prepost.rake +4 -1
  588. data/rakelib/prepost.rb +4 -1
  589. data/samples/aui/aui.rb +8 -3
  590. data/samples/bigdemo/bigdemo.rb +9 -2
  591. data/samples/bigdemo/run.rb +9 -2
  592. data/samples/bigdemo/utils.rb +9 -1
  593. data/samples/calendar/calendar.rb +9 -4
  594. data/samples/caret/caret.rb +8 -3
  595. data/samples/controls/books.rb +8 -2
  596. data/samples/controls/controls.rb +33 -77
  597. data/samples/controls/get_item_sample.rb +8 -2
  598. data/samples/controls/htlbox.rb +10 -3
  599. data/samples/dialogs/dialogs.rb +9 -4
  600. data/samples/dialogs/wizard.rb +8 -3
  601. data/samples/dragdrop/dragdrop.rb +8 -3
  602. data/samples/drawing/bitmap.rb +8 -3
  603. data/samples/drawing/bitmap_image.rb +8 -3
  604. data/samples/drawing/graphics_drawing.rb +44 -33
  605. data/samples/drawing/image_prt.rb +8 -2
  606. data/samples/drawing/maths_images.rb +8 -3
  607. data/samples/drawing/rmagic_bitmap_image.rb +8 -3
  608. data/samples/etc/choice.rb +8 -3
  609. data/samples/etc/miniframe.rb +8 -3
  610. data/samples/etc/sash.rb +8 -3
  611. data/samples/etc/scrollwin.rb +8 -3
  612. data/samples/etc/system_settings.rb +8 -3
  613. data/samples/event/activation.rb +8 -3
  614. data/samples/event/event.rb +8 -3
  615. data/samples/event/threaded.rb +8 -3
  616. data/samples/event/update_ui_event.rb +8 -3
  617. data/samples/grid/grid.rb +9 -3
  618. data/samples/grid/gridtablebase.rb +8 -3
  619. data/samples/html/html.rb +8 -3
  620. data/samples/mdi/mdi.rb +8 -3
  621. data/samples/minimal/minimal.rb +8 -3
  622. data/samples/minimal/nothing.rb +8 -3
  623. data/samples/printing/printing.rb +8 -3
  624. data/samples/printing/printing2.rb +8 -2
  625. data/samples/propgrid/propgrid.rb +4 -1
  626. data/samples/propgrid/propgrid_minimal.rb +4 -2
  627. data/samples/propgrid/sample_props.rb +4 -1
  628. data/samples/ribbon/ribbon.rb +4 -1
  629. data/samples/sampler/editor.rb +4 -1
  630. data/samples/sampler/ext.rb +4 -1
  631. data/samples/sampler/sample.rb +13 -4
  632. data/samples/sampler/stc_editor.rb +4 -1
  633. data/samples/sampler/txt_editor.rb +4 -1
  634. data/samples/sampler.rb +11 -3
  635. data/samples/splash/splash.rb +4 -2
  636. data/samples/text/art/richtext/alignleft.xpm +24 -0
  637. data/samples/text/art/richtext/alignright.xpm +24 -0
  638. data/samples/text/art/richtext/bold.xpm +24 -0
  639. data/samples/text/art/richtext/centre.xpm +24 -0
  640. data/samples/text/art/richtext/copy.xpm +45 -0
  641. data/samples/text/art/richtext/cut.xpm +47 -0
  642. data/samples/text/art/richtext/font.xpm +25 -0
  643. data/samples/text/art/richtext/idea.xpm +47 -0
  644. data/samples/text/art/richtext/indentless.xpm +25 -0
  645. data/samples/text/art/richtext/indentmore.xpm +25 -0
  646. data/samples/text/art/richtext/italic.xpm +25 -0
  647. data/samples/text/art/richtext/open.xpm +58 -0
  648. data/samples/text/art/richtext/paste.xpm +47 -0
  649. data/samples/text/art/richtext/redo.xpm +59 -0
  650. data/samples/text/art/richtext/save.xpm +43 -0
  651. data/samples/text/art/richtext/smiley.xpm +42 -0
  652. data/samples/text/art/richtext/underline.xpm +25 -0
  653. data/samples/text/art/richtext/undo.xpm +59 -0
  654. data/samples/text/art/richtext/zebra.xpm +409 -0
  655. data/samples/text/rich_textctrl.rb +8 -3
  656. data/samples/text/richtext.rb +1824 -0
  657. data/samples/text/scintilla.rb +8 -3
  658. data/samples/text/textctrl.rb +21 -4
  659. data/samples/text/tn_richtext.png +0 -0
  660. data/samples/text/unicode.rb +9 -4
  661. data/samples/treectrl/treectrl.rb +10 -5
  662. data/samples/xrc/custom_xrc_sample.rb +8 -3
  663. data/samples/xrc/xrc_sample.rb +8 -3
  664. data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
  665. data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
  666. data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
  667. data/tests/lib/item_container_tests.rb +3 -0
  668. data/tests/lib/text_entry_tests.rb +3 -0
  669. data/tests/lib/wxapp_runner.rb +3 -0
  670. data/tests/lib/wxframe_runner.rb +81 -3
  671. data/tests/test_app_event_filter.rb +3 -0
  672. data/tests/test_app_traits.rb +33 -0
  673. data/tests/test_art.rb +31 -0
  674. data/tests/test_art_provider.rb +3 -0
  675. data/tests/test_aui.rb +65 -0
  676. data/tests/test_basic.rb +5 -1
  677. data/tests/test_box_sizer.rb +164 -0
  678. data/tests/test_clipboard.rb +3 -0
  679. data/tests/test_config.rb +150 -0
  680. data/tests/test_dc.rb +3 -0
  681. data/tests/test_dialog.rb +3 -0
  682. data/tests/test_event_handling.rb +3 -0
  683. data/tests/test_events.rb +3 -0
  684. data/tests/test_ext_controls.rb +286 -3
  685. data/tests/test_file_dialog.rb +55 -0
  686. data/tests/test_font.rb +8 -5
  687. data/tests/test_gdi_object.rb +3 -0
  688. data/tests/test_geometry.rb +4 -0
  689. data/tests/test_grid_sizer.rb +151 -0
  690. data/tests/test_intl.rb +3 -0
  691. data/tests/test_item_data.rb +3 -0
  692. data/tests/test_list_ctrl.rb +56 -0
  693. data/tests/test_log.rb +226 -0
  694. data/tests/test_proof_check.rb +52 -0
  695. data/tests/test_richtext.rb +204 -0
  696. data/tests/test_std_controls.rb +99 -31
  697. data/tests/test_timer.rb +98 -0
  698. data/tests/test_variant.rb +3 -0
  699. data/tests/test_window.rb +10 -8
  700. data/tests/testapp.rb +4 -0
  701. data/tests/testapp_noframe.rb +4 -0
  702. metadata +87 -3
  703. data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
@@ -0,0 +1,2849 @@
1
+ # :stopdoc:
2
+ # This file is automatically generated by the WXRuby3 documentation
3
+ # generator. Do not alter this file.
4
+ # :startdoc:
5
+
6
+
7
+ module Wx::RTC
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
+ # This is the base for drawable rich text objects.
542
+ # ===
543
+ #
544
+ # Category: Rich Text
545
+ # @see Wx::RTC::RichTextBuffer
546
+ # @see Wx::RTC::RichTextCtrl
547
+ #
548
+ #
549
+ #
550
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
551
+ class RichTextObject < Object
552
+
553
+ # Constructor, taking an optional parent pointer.
554
+ # @param parent [Wx::RTC::RichTextObject]
555
+ # @return [Wx::RTC::RichTextObject]
556
+ def initialize(parent=nil) end
557
+
558
+ # Draw the item, within the given range.
559
+ # Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
560
+ # @param dc [Wx::DC]
561
+ # @param context [Wx::RTC::RichTextDrawingContext]
562
+ # @param range [Range]
563
+ # @param selection [Wx::RTC::RichTextSelection]
564
+ # @param rect [Wx::Rect]
565
+ # @param descent [Integer]
566
+ # @param style [Integer]
567
+ # @return [Boolean]
568
+ def draw(dc, context, range, selection, rect, descent, style) end
569
+
570
+ # Lay the item out at the specified position with the given size constraint.
571
+ # 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).
572
+ # @param dc [Wx::DC]
573
+ # @param context [Wx::RTC::RichTextDrawingContext]
574
+ # @param rect [Wx::Rect]
575
+ # @param parentRect [Wx::Rect]
576
+ # @param style [Integer]
577
+ # @return [Boolean]
578
+ def layout(dc, context, rect, parentRect, style) end
579
+
580
+ # Hit-testing: returns a flag indicating hit test details, plus information about position.
581
+ # contextObj is returned to specify what object position is relevant to, since otherwise there's an ambiguity. @ obj might not be a child of contextObj, since we may be referring to the container itself if we have no hit on a child - for example if we click outside an object.
582
+ # 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).
583
+ # One of the {Wx::RTC::RichTextHitTestFlags} values.
584
+ # @param dc [Wx::DC]
585
+ # @param context [Wx::RTC::RichTextDrawingContext]
586
+ # @param pt [Array(Integer, Integer), Wx::Point]
587
+ # @param textPosition [Integer]
588
+ # @param obj [Wx::RTC::RichTextObject]
589
+ # @param contextObj [Wx::RTC::RichTextObject]
590
+ # @param flags [Integer]
591
+ # @return [Array(Integer,Integer)]
592
+ def hit_test(dc, context, pt, textPosition, obj, contextObj, flags=0) end
593
+
594
+ # Finds the absolute position and row height for the given character position.
595
+ # @param dc [Wx::DC]
596
+ # @param context [Wx::RTC::RichTextDrawingContext]
597
+ # @param index [Integer]
598
+ # @param pt [Array(Integer, Integer), Wx::Point]
599
+ # @param forceLineStart [Boolean]
600
+ # @return [Array(Boolean,Integer)]
601
+ def find_position(dc, context, index, pt, forceLineStart) end
602
+
603
+ # Returns the best size, i.e. the ideal starting size for this object irrespective of available space.
604
+ # For a short text string, it will be the size that exactly encloses the text. For a longer string, it might use the parent width for example.
605
+ # @return [Wx::Size]
606
+ def get_best_size; end
607
+ alias_method :best_size, :get_best_size
608
+
609
+ # Returns the object size for the given range.
610
+ # Returns false if the range is invalid for this object.
611
+ # @param range [Range]
612
+ # @param size [Array(Integer, Integer), Wx::Size]
613
+ # @param descent [Integer]
614
+ # @param dc [Wx::DC]
615
+ # @param context [Wx::RTC::RichTextDrawingContext]
616
+ # @param flags [Integer]
617
+ # @param position [Array(Integer, Integer), Wx::Point]
618
+ # @param parentSize [Array(Integer, Integer), Wx::Size]
619
+ # @param partialExtents [Array,nil]
620
+ # @return [Array(Boolean,Integer)]
621
+ def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
622
+ alias_method :range_size, :get_range_size
623
+
624
+ # Do a split from pos, returning an object containing the second part, and setting the first part in 'this'.
625
+ # @param pos [Integer]
626
+ # @return [Wx::RTC::RichTextObject]
627
+ def do_split(pos) end
628
+
629
+ # Calculates the range of the object.
630
+ # By default, guess that the object is 1 unit long.
631
+ # @param start [Integer]
632
+ # @param end_ [Integer]
633
+ # @return [Integer]
634
+ def calculate_range(start, end_) end
635
+
636
+ # Deletes the given range.
637
+ # @param range [Range]
638
+ # @return [Boolean]
639
+ def delete_range(range) end
640
+
641
+ # Returns true if the object is empty.
642
+ # @return [Boolean]
643
+ def is_empty; end
644
+ alias_method :empty?, :is_empty
645
+
646
+ # Returns true if this class of object is floatable.
647
+ # @return [Boolean]
648
+ def is_floatable; end
649
+ alias_method :floatable?, :is_floatable
650
+
651
+ # Returns true if this object is currently floating.
652
+ # @return [Boolean]
653
+ def is_floating; end
654
+ alias_method :floating?, :is_floating
655
+
656
+ # Returns the floating direction.
657
+ # @return [Integer]
658
+ def get_float_direction; end
659
+ alias_method :float_direction, :get_float_direction
660
+
661
+ # Returns any text in this object for the given range.
662
+ # @param range [Range]
663
+ # @return [String]
664
+ def get_text_for_range(range) end
665
+ alias_method :text_for_range, :get_text_for_range
666
+
667
+ # Returns true if this object can merge itself with the given one.
668
+ # @param object [Wx::RTC::RichTextObject]
669
+ # @param context [Wx::RTC::RichTextDrawingContext]
670
+ # @return [Boolean]
671
+ def can_merge(object, context) end
672
+ alias_method :can_merge?, :can_merge
673
+
674
+ # Returns true if this object merged itself with the given one.
675
+ # The calling code will then delete the given object.
676
+ # @param object [Wx::RTC::RichTextObject]
677
+ # @param context [Wx::RTC::RichTextDrawingContext]
678
+ # @return [Boolean]
679
+ def merge(object, context) end
680
+
681
+ # Returns true if this object can potentially be split, by virtue of having different virtual attributes for individual sub-objects.
682
+ # @param context [Wx::RTC::RichTextDrawingContext]
683
+ # @return [Boolean]
684
+ def can_split(context) end
685
+ alias_method :can_split?, :can_split
686
+
687
+ # Returns the final object in the split objects if this object was split due to differences between sub-object virtual attributes.
688
+ # Returns itself if it was not split.
689
+ # @param context [Wx::RTC::RichTextDrawingContext]
690
+ # @return [Wx::RTC::RichTextObject]
691
+ def split(context) end
692
+
693
+ # Dump object data to the given output stream for debugging.
694
+ # @param stream [IO,Wx::OutputStream]
695
+ # @return [void]
696
+ def dump(stream) end
697
+
698
+ # Returns true if we can edit the object's properties via a GUI.
699
+ # @return [Boolean]
700
+ def can_edit_properties; end
701
+ alias_method :can_edit_properties?, :can_edit_properties
702
+
703
+ # Edits the object's properties via a GUI.
704
+ # @param parent [Wx::Window]
705
+ # @param buffer [Wx::RTC::RichTextBuffer]
706
+ # @return [Boolean]
707
+ def edit_properties(parent, buffer) end
708
+
709
+ # Returns the label to be used for the properties context menu item.
710
+ # @return [String]
711
+ def get_properties_menu_label; end
712
+ alias_method :properties_menu_label, :get_properties_menu_label
713
+
714
+ # Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject is possible.
715
+ # For example, containers supporting text, such as a text box object, can accept the focus, but a table can't (set the focus to individual cells instead).
716
+ # @return [Boolean]
717
+ def accepts_focus; end
718
+
719
+ # Imports this object from XML.
720
+ # @param buffer [Wx::RTC::RichTextBuffer]
721
+ # @param node [Wx::XmlNode]
722
+ # @param handler [Wx::RTC::RichTextXMLHandler]
723
+ # @param recurse [Boolean]
724
+ # @return [Array(Boolean,Boolean)]
725
+ def import_from_xml(buffer, node, handler, recurse) end
726
+
727
+ # Returns true if this object takes note of paragraph attributes (text and image objects don't).
728
+ # @return [Boolean]
729
+ def uses_paragraph_attributes; end
730
+
731
+ # Returns the XML node name of this object.
732
+ # This must be overridden for {Wx::XmlNode}-base XML export to work.
733
+ # @return [String]
734
+ def get_xml_node_name; end
735
+ alias_method :xml_node_name, :get_xml_node_name
736
+
737
+ # Invalidates the object at the given range.
738
+ # With no argument, invalidates the whole object.
739
+ # @param invalidRange [Range]
740
+ # @return [void]
741
+ def invalidate(invalidRange=Wx::RICHTEXT_ALL) end
742
+
743
+ # Returns true if this object can handle the selections of its children, fOr example a table.
744
+ # Required for composite selection handling to work.
745
+ # @return [Boolean]
746
+ def handles_child_selections; end
747
+
748
+ # Returns a selection object specifying the selections between start and end character positions.
749
+ # For example, a table would deduce what cells (of range length 1) are selected when dragging across the table.
750
+ # @param start [Integer]
751
+ # @param end_ [Integer]
752
+ # @return [Wx::RTC::RichTextSelection]
753
+ def get_selection(start, end_) end
754
+ alias_method :selection, :get_selection
755
+
756
+ # Gets the cached object size as calculated by Layout.
757
+ # @return [Wx::Size]
758
+ def get_cached_size; end
759
+ alias_method :cached_size, :get_cached_size
760
+
761
+ # Sets the cached object size as calculated by Layout.
762
+ # @param sz [Array(Integer, Integer), Wx::Size]
763
+ # @return [void]
764
+ def set_cached_size(sz) end
765
+ alias_method :cached_size=, :set_cached_size
766
+
767
+ # Gets the maximum object size as calculated by Layout.
768
+ # This allows us to fit an object to its contents or allocate extra space if required.
769
+ # @return [Wx::Size]
770
+ def get_max_size; end
771
+ alias_method :max_size, :get_max_size
772
+
773
+ # Sets the maximum object size as calculated by Layout.
774
+ # This allows us to fit an object to its contents or allocate extra space if required.
775
+ # @param sz [Array(Integer, Integer), Wx::Size]
776
+ # @return [void]
777
+ def set_max_size(sz) end
778
+ alias_method :max_size=, :set_max_size
779
+
780
+ # Gets the minimum object size as calculated by Layout.
781
+ # This allows us to constrain an object to its absolute minimum size if necessary.
782
+ # @return [Wx::Size]
783
+ def get_min_size; end
784
+ alias_method :min_size, :get_min_size
785
+
786
+ # Sets the minimum object size as calculated by Layout.
787
+ # This allows us to constrain an object to its absolute minimum size if necessary.
788
+ # @param sz [Array(Integer, Integer), Wx::Size]
789
+ # @return [void]
790
+ def set_min_size(sz) end
791
+ alias_method :min_size=, :set_min_size
792
+
793
+ # Gets the 'natural' size for an object.
794
+ # For an image, it would be the image size.
795
+ # @return [Wx::RTC::TextAttrSize]
796
+ def get_natural_size; end
797
+ alias_method :natural_size, :get_natural_size
798
+
799
+ # Returns the object position in pixels.
800
+ # @return [Wx::Point]
801
+ def get_position; end
802
+ alias_method :position, :get_position
803
+
804
+ # Sets the object position in pixels.
805
+ # @param pos [Array(Integer, Integer), Wx::Point]
806
+ # @return [void]
807
+ def set_position(pos) end
808
+ alias_method :position=, :set_position
809
+
810
+ # Returns the absolute object position, by traversing up the child/parent hierarchy.
811
+ # TODO: may not be needed, if all object positions are in fact relative to the top of the coordinate space.
812
+ # @return [Wx::Point]
813
+ def get_absolute_position; end
814
+ alias_method :absolute_position, :get_absolute_position
815
+
816
+ # Returns the rectangle enclosing the object.
817
+ # @return [Wx::Rect]
818
+ def get_rect; end
819
+ alias_method :rect, :get_rect
820
+
821
+ # Sets the object's range within its container.
822
+ # @param range [Range]
823
+ # @return [void]
824
+ def set_range(range) end
825
+ alias_method :range=, :set_range
826
+
827
+ # Returns the object's range.
828
+ # @return [Wx::RichTextRange]
829
+ def get_range; end
830
+ alias_method :range, :get_range
831
+
832
+ # Set the object's own range, for a top-level object with its own position space.
833
+ # @param range [Range]
834
+ # @return [void]
835
+ def set_own_range(range) end
836
+ alias_method :own_range=, :set_own_range
837
+
838
+ # Returns the object's own range (valid if top-level).
839
+ # @return [Wx::RichTextRange]
840
+ def get_own_range; end
841
+ alias_method :own_range, :get_own_range
842
+
843
+ # Returns the object's own range only if a top-level object.
844
+ # @return [Range]
845
+ def get_own_range_if_top_level; end
846
+ alias_method :own_range_if_top_level, :get_own_range_if_top_level
847
+
848
+ # Returns true if this object is composite.
849
+ # @return [Boolean]
850
+ def is_composite; end
851
+ alias_method :composite?, :is_composite
852
+
853
+ # Returns true if no user editing can be done inside the object.
854
+ # This returns true for simple objects, false for most composite objects, but true for fields, which if composite, should not be user-edited.
855
+ # @return [Boolean]
856
+ def is_atomic; end
857
+ alias_method :atomic?, :is_atomic
858
+
859
+ # Returns a pointer to the parent object.
860
+ # @return [Wx::RTC::RichTextObject]
861
+ def get_parent; end
862
+ alias_method :parent, :get_parent
863
+
864
+ # Sets the pointer to the parent object.
865
+ # @param parent [Wx::RTC::RichTextObject]
866
+ # @return [void]
867
+ def set_parent(parent) end
868
+ alias_method :parent=, :set_parent
869
+
870
+ # Returns the top-level container of this object.
871
+ # May return itself if it's a container; use GetParentContainer to return a different container.
872
+ # @return [Wx::RTC::RichTextParagraphLayoutBox]
873
+ def get_container; end
874
+ alias_method :container, :get_container
875
+
876
+ # Returns the top-level container of this object.
877
+ # Returns a different container than itself, unless there's no parent, in which case it will return NULL.
878
+ # @return [Wx::RTC::RichTextParagraphLayoutBox]
879
+ def get_parent_container; end
880
+ alias_method :parent_container, :get_parent_container
881
+
882
+ # @overload set_margins(margin)
883
+ # Set the margin around the object, in pixels.
884
+ # @param margin [Integer]
885
+ # @return [void]
886
+ # @overload set_margins(leftMargin, rightMargin, topMargin, bottomMargin)
887
+ # Set the margin around the object, in pixels.
888
+ # @param leftMargin [Integer]
889
+ # @param rightMargin [Integer]
890
+ # @param topMargin [Integer]
891
+ # @param bottomMargin [Integer]
892
+ # @return [void]
893
+ def set_margins(*args) end
894
+ alias_method :margins=, :set_margins
895
+
896
+ # Returns the left margin of the object, in pixels.
897
+ # @return [Integer]
898
+ def get_left_margin; end
899
+ alias_method :left_margin, :get_left_margin
900
+
901
+ # Returns the right margin of the object, in pixels.
902
+ # @return [Integer]
903
+ def get_right_margin; end
904
+ alias_method :right_margin, :get_right_margin
905
+
906
+ # Returns the top margin of the object, in pixels.
907
+ # @return [Integer]
908
+ def get_top_margin; end
909
+ alias_method :top_margin, :get_top_margin
910
+
911
+ # Returns the bottom margin of the object, in pixels.
912
+ # @return [Integer]
913
+ def get_bottom_margin; end
914
+ alias_method :bottom_margin, :get_bottom_margin
915
+
916
+ # Calculates the available content space in the given rectangle, given the margins, border and padding specified in the object's attributes.
917
+ # @param dc [Wx::DC]
918
+ # @param context [Wx::RTC::RichTextDrawingContext]
919
+ # @param outerRect [Wx::Rect]
920
+ # @return [Wx::Rect]
921
+ def get_available_content_area(dc, context, outerRect) end
922
+ alias_method :available_content_area, :get_available_content_area
923
+
924
+ # Lays out the object first with a given amount of space, and then if no width was specified in attr, lays out the object again using the minimum size.
925
+ # availableParentSpace is the maximum space for the object, whereas availableContainerSpace is the container with which relative positions and sizes should be computed. For example, a text box whose space has already been constrained in a previous layout pass to availableParentSpace, but should have a width of 50% of availableContainerSpace. (If these two rects were the same, a 2nd pass could see the object getting too small.)
926
+ # @param dc [Wx::DC]
927
+ # @param context [Wx::RTC::RichTextDrawingContext]
928
+ # @param buffer [Wx::RTC::RichTextBuffer]
929
+ # @param parentAttr [Wx::RTC::RichTextAttr]
930
+ # @param attr [Wx::RTC::RichTextAttr]
931
+ # @param availableParentSpace [Wx::Rect]
932
+ # @param availableContainerSpace [Wx::Rect]
933
+ # @param style [Integer]
934
+ # @return [Boolean]
935
+ def layout_to_best_size(dc, context, buffer, parentAttr, attr, availableParentSpace, availableContainerSpace, style) end
936
+
937
+ # Adjusts the attributes for virtual attribute provision, collapsed borders, etc.
938
+ # @param attr [Wx::RTC::RichTextAttr]
939
+ # @param context [Wx::RTC::RichTextDrawingContext]
940
+ # @return [Boolean]
941
+ def adjust_attributes(attr, context) end
942
+
943
+ # Sets the object's attributes.
944
+ # @param attr [Wx::RTC::RichTextAttr]
945
+ # @return [void]
946
+ def set_attributes(attr) end
947
+ alias_method :attributes=, :set_attributes
948
+
949
+ # Returns the object's attributes.
950
+ # @return [Wx::RTC::RichTextAttr]
951
+ def get_attributes; end
952
+ alias_method :attributes, :get_attributes
953
+
954
+ # Returns the object's properties.
955
+ # @return [Wx::RTC::RichTextProperties]
956
+ def get_properties; end
957
+ alias_method :properties, :get_properties
958
+
959
+ # Sets the object's properties.
960
+ # @param props [Wx::RTC::RichTextProperties]
961
+ # @return [void]
962
+ def set_properties(props) end
963
+ alias_method :properties=, :set_properties
964
+
965
+ # Sets the stored descent value.
966
+ # @param descent [Integer]
967
+ # @return [void]
968
+ def set_descent(descent) end
969
+ alias_method :descent=, :set_descent
970
+
971
+ # Returns the stored descent value.
972
+ # @return [Integer]
973
+ def get_descent; end
974
+ alias_method :descent, :get_descent
975
+
976
+ # Returns the containing buffer.
977
+ # @return [Wx::RTC::RichTextBuffer]
978
+ def get_buffer; end
979
+ alias_method :buffer, :get_buffer
980
+
981
+ # Sets the identifying name for this object as a property using the "name" key.
982
+ # @param name [String]
983
+ # @return [void]
984
+ def set_name(name) end
985
+ alias_method :name=, :set_name
986
+
987
+ # Returns the identifying name for this object from the properties, using the "name" key.
988
+ # @return [String]
989
+ def get_name; end
990
+ alias_method :name, :get_name
991
+
992
+ # Returns true if this object is top-level, i.e. contains its own paragraphs, such as a text box.
993
+ # @return [Boolean]
994
+ def is_top_level; end
995
+ alias_method :top_level?, :is_top_level
996
+
997
+ # Returns true if the object will be shown, false otherwise.
998
+ # @return [Boolean]
999
+ def is_shown; end
1000
+ alias_method :shown?, :is_shown
1001
+
1002
+ # Call to show or hide this object.
1003
+ # This function does not cause the content to be laid out or redrawn.
1004
+ # @param show [Boolean]
1005
+ # @return [void]
1006
+ def show(show) end
1007
+
1008
+ # Clones the object.
1009
+ # @return [Wx::RTC::RichTextObject]
1010
+ def clone; end
1011
+
1012
+ # Copies the object.
1013
+ # @param obj [Wx::RTC::RichTextObject]
1014
+ # @return [void]
1015
+ def copy(obj) end
1016
+
1017
+ # Reference-counting allows us to use the same object in multiple lists (not yet used).
1018
+ # @return [void]
1019
+ def reference; end
1020
+
1021
+ # Reference-counting allows us to use the same object in multiple lists (not yet used).
1022
+ # @return [void]
1023
+ def dereference; end
1024
+
1025
+ # Moves the object recursively, by adding the offset from old to new.
1026
+ # @param pt [Array(Integer, Integer), Wx::Point]
1027
+ # @return [void]
1028
+ def move(pt) end
1029
+
1030
+ # Converts units in tenths of a millimetre to device units.
1031
+ # @param dc [Wx::DC]
1032
+ # @param units [Integer]
1033
+ # @return [Integer]
1034
+ def convert_tenths_mm_to_pixels(dc, units) end
1035
+
1036
+ # Converts units in tenths of a millimetre to device units.
1037
+ # @param ppi [Integer]
1038
+ # @param units [Integer]
1039
+ # @param scale [Float]
1040
+ # @return [Integer]
1041
+ def self.convert_tenths_mm_to_pixels(ppi, units, scale=1.0) end
1042
+
1043
+ # Convert units in pixels to tenths of a millimetre.
1044
+ # @param dc [Wx::DC]
1045
+ # @param pixels [Integer]
1046
+ # @return [Integer]
1047
+ def convert_pixels_to_tenths_mm(dc, pixels) end
1048
+
1049
+ # Convert units in pixels to tenths of a millimetre.
1050
+ # @param ppi [Integer]
1051
+ # @param pixels [Integer]
1052
+ # @param scale [Float]
1053
+ # @return [Integer]
1054
+ def self.convert_pixels_to_tenths_mm(ppi, pixels, scale=1.0) end
1055
+
1056
+ # Draws the borders and background for the given rectangle and attributes.
1057
+ # boxRect is taken to be the outer margin box, not the box around the content.
1058
+ # @param dc [Wx::DC]
1059
+ # @param buffer [Wx::RTC::RichTextBuffer]
1060
+ # @param attr [Wx::RTC::RichTextAttr]
1061
+ # @param boxRect [Wx::Rect]
1062
+ # @param flags [Integer]
1063
+ # @param obj [Wx::RTC::RichTextObject]
1064
+ # @return [Boolean]
1065
+ def self.draw_box_attributes(dc, buffer, attr, boxRect, flags=0, obj=nil) end
1066
+
1067
+ # Draws a border.
1068
+ # @param dc [Wx::DC]
1069
+ # @param buffer [Wx::RTC::RichTextBuffer]
1070
+ # @param attr [Wx::RTC::RichTextAttr]
1071
+ # @param borders [Wx::RTC::TextAttrBorders]
1072
+ # @param rect [Wx::Rect]
1073
+ # @param flags [Integer]
1074
+ # @return [Boolean]
1075
+ def self.draw_border(dc, buffer, attr, borders, rect, flags=0) end
1076
+
1077
+ # Returns the various rectangles of the box model in pixels.
1078
+ # You can either specify contentRect (inner) or marginRect (outer), and the other must be the default rectangle (no width or height). Note that the outline doesn't affect the position of the rectangle, it's drawn in whatever space is available.
1079
+ # @param dc [Wx::DC]
1080
+ # @param buffer [Wx::RTC::RichTextBuffer]
1081
+ # @param attr [Wx::RTC::RichTextAttr]
1082
+ # @param marginRect [Wx::Rect]
1083
+ # @param borderRect [Wx::Rect]
1084
+ # @param contentRect [Wx::Rect]
1085
+ # @param paddingRect [Wx::Rect]
1086
+ # @param outlineRect [Wx::Rect]
1087
+ # @return [Boolean]
1088
+ def self.get_box_rects(dc, buffer, attr, marginRect, borderRect, contentRect, paddingRect, outlineRect) end
1089
+
1090
+ # Returns the total margin for the object in pixels, taking into account margin, padding and border size.
1091
+ # @param dc [Wx::DC]
1092
+ # @param buffer [Wx::RTC::RichTextBuffer]
1093
+ # @param attr [Wx::RTC::RichTextAttr]
1094
+ # @return [Array(Boolean,Integer,Integer,Integer,Integer)]
1095
+ def self.get_total_margin(dc, buffer, attr) end
1096
+
1097
+ # Returns the rectangle which the child has available to it given restrictions specified in the child attribute, e.g.
1098
+ # 50% width of the parent, 400 pixels, x position 20% of the parent, etc. availableContainerSpace might be a parent that the cell has to compute its width relative to. E.g. a cell that's 50% of its parent.
1099
+ # @param dc [Wx::DC]
1100
+ # @param buffer [Wx::RTC::RichTextBuffer]
1101
+ # @param parentAttr [Wx::RTC::RichTextAttr]
1102
+ # @param childAttr [Wx::RTC::RichTextAttr]
1103
+ # @param availableParentSpace [Wx::Rect]
1104
+ # @param availableContainerSpace [Wx::Rect]
1105
+ # @return [Wx::Rect]
1106
+ def self.adjust_available_space(dc, buffer, parentAttr, childAttr, availableParentSpace, availableContainerSpace) end
1107
+
1108
+ end # RichTextObject
1109
+
1110
+ # This object represents a single piece of text.
1111
+ # ===
1112
+ #
1113
+ # Category: Rich Text
1114
+ # @see Wx::RTC::RichTextBuffer
1115
+ # @see Wx::RTC::RichTextCtrl
1116
+ #
1117
+ #
1118
+ #
1119
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1120
+ class RichTextPlainText < RichTextObject
1121
+
1122
+ # @overload initialize(text=(''), parent=nil, style=nil)
1123
+ # Constructor.
1124
+ # @param text [String]
1125
+ # @param parent [Wx::RTC::RichTextObject]
1126
+ # @param style [Wx::RTC::RichTextAttr]
1127
+ # @return [Wx::RTC::RichTextPlainText]
1128
+ # @overload initialize(obj)
1129
+ # Copy constructor.
1130
+ # @param obj [Wx::RTC::RichTextPlainText]
1131
+ # @return [Wx::RTC::RichTextPlainText]
1132
+ def initialize(*args) end
1133
+
1134
+ # Draw the item, within the given range.
1135
+ # Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
1136
+ # @param dc [Wx::DC]
1137
+ # @param context [Wx::RTC::RichTextDrawingContext]
1138
+ # @param range [Range]
1139
+ # @param selection [Wx::RTC::RichTextSelection]
1140
+ # @param rect [Wx::Rect]
1141
+ # @param descent [Integer]
1142
+ # @param style [Integer]
1143
+ # @return [Boolean]
1144
+ def draw(dc, context, range, selection, rect, descent, style) end
1145
+
1146
+ # Lay the item out at the specified position with the given size constraint.
1147
+ # 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).
1148
+ # @param dc [Wx::DC]
1149
+ # @param context [Wx::RTC::RichTextDrawingContext]
1150
+ # @param rect [Wx::Rect]
1151
+ # @param parentRect [Wx::Rect]
1152
+ # @param style [Integer]
1153
+ # @return [Boolean]
1154
+ def layout(dc, context, rect, parentRect, style) end
1155
+
1156
+ # Returns the object size for the given range.
1157
+ # Returns false if the range is invalid for this object.
1158
+ # @param range [Range]
1159
+ # @param size [Array(Integer, Integer), Wx::Size]
1160
+ # @param descent [Integer]
1161
+ # @param dc [Wx::DC]
1162
+ # @param context [Wx::RTC::RichTextDrawingContext]
1163
+ # @param flags [Integer]
1164
+ # @param position [Array(Integer, Integer), Wx::Point]
1165
+ # @param parentSize [Array(Integer, Integer), Wx::Size]
1166
+ # @param partialExtents [Array,nil]
1167
+ # @return [Array(Boolean,Integer)]
1168
+ def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end
1169
+ alias_method :range_size, :get_range_size
1170
+
1171
+ # Returns any text in this object for the given range.
1172
+ # @param range [Range]
1173
+ # @return [String]
1174
+ def get_text_for_range(range) end
1175
+ alias_method :text_for_range, :get_text_for_range
1176
+
1177
+ # Do a split from pos, returning an object containing the second part, and setting the first part in 'this'.
1178
+ # @param pos [Integer]
1179
+ # @return [Wx::RTC::RichTextObject]
1180
+ def do_split(pos) end
1181
+
1182
+ # Calculates the range of the object.
1183
+ # By default, guess that the object is 1 unit long.
1184
+ # @param start [Integer]
1185
+ # @param end_ [Integer]
1186
+ # @return [Integer]
1187
+ def calculate_range(start, end_) end
1188
+
1189
+ # Deletes the given range.
1190
+ # @param range [Range]
1191
+ # @return [Boolean]
1192
+ def delete_range(range) end
1193
+
1194
+ # Returns true if the object is empty.
1195
+ # @return [Boolean]
1196
+ def is_empty; end
1197
+ alias_method :empty?, :is_empty
1198
+
1199
+ # Returns true if this object can merge itself with the given one.
1200
+ # @param object [Wx::RTC::RichTextObject]
1201
+ # @param context [Wx::RTC::RichTextDrawingContext]
1202
+ # @return [Boolean]
1203
+ def can_merge(object, context) end
1204
+ alias_method :can_merge?, :can_merge
1205
+
1206
+ # Returns true if this object merged itself with the given one.
1207
+ # The calling code will then delete the given object.
1208
+ # @param object [Wx::RTC::RichTextObject]
1209
+ # @param context [Wx::RTC::RichTextDrawingContext]
1210
+ # @return [Boolean]
1211
+ def merge(object, context) end
1212
+
1213
+ # Returns true if this object can potentially be split, by virtue of having different virtual attributes for individual sub-objects.
1214
+ # @param context [Wx::RTC::RichTextDrawingContext]
1215
+ # @return [Boolean]
1216
+ def can_split(context) end
1217
+ alias_method :can_split?, :can_split
1218
+
1219
+ # Returns the final object in the split objects if this object was split due to differences between sub-object virtual attributes.
1220
+ # Returns itself if it was not split.
1221
+ # @param context [Wx::RTC::RichTextDrawingContext]
1222
+ # @return [Wx::RTC::RichTextObject]
1223
+ def split(context) end
1224
+
1225
+ # Dump object data to the given output stream for debugging.
1226
+ # @param stream [IO,Wx::OutputStream]
1227
+ # @return [void]
1228
+ def dump(stream) end
1229
+
1230
+ # Get the first position from pos that has a line break character.
1231
+ # @param pos [Integer]
1232
+ # @return [Integer]
1233
+ def get_first_line_break_position(pos) end
1234
+ alias_method :first_line_break_position, :get_first_line_break_position
1235
+
1236
+ # Does this object take note of paragraph attributes? Text and image objects don't.
1237
+ # @return [Boolean]
1238
+ def uses_paragraph_attributes; end
1239
+
1240
+ # Imports this object from XML.
1241
+ # @param buffer [Wx::RTC::RichTextBuffer]
1242
+ # @param node [Wx::XmlNode]
1243
+ # @param handler [Wx::RTC::RichTextXMLHandler]
1244
+ # @param recurse [Boolean]
1245
+ # @return [Array(Boolean,Boolean)]
1246
+ def import_from_xml(buffer, node, handler, recurse) end
1247
+
1248
+ # Returns the XML node name of this object.
1249
+ # This must be overridden for {Wx::XmlNode}-base XML export to work.
1250
+ # @return [String]
1251
+ def get_xml_node_name; end
1252
+ alias_method :xml_node_name, :get_xml_node_name
1253
+
1254
+ # Returns the text.
1255
+ # @return [Wx::String]
1256
+ def get_text; end
1257
+ alias_method :text, :get_text
1258
+
1259
+ # Sets the text.
1260
+ # @param text [String]
1261
+ # @return [void]
1262
+ def set_text(text) end
1263
+ alias_method :text=, :set_text
1264
+
1265
+ # @param obj [Wx::RTC::RichTextPlainText]
1266
+ # @return [void]
1267
+ def copy(obj) end
1268
+
1269
+ # Clones the object.
1270
+ # @return [Wx::RTC::RichTextObject]
1271
+ def clone; end
1272
+
1273
+ end # RichTextPlainText
1274
+
1275
+ # A class for passing information to drawing and measuring functions.
1276
+ # ===
1277
+ #
1278
+ # Category: Rich Text
1279
+ # @see Wx::RTC::RichTextBuffer
1280
+ # @see Wx::RTC::RichTextCtrl
1281
+ #
1282
+ #
1283
+ #
1284
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1285
+ class RichTextDrawingContext < Object
1286
+
1287
+ # Pass the buffer to the context so the context can retrieve information such as virtual attributes.
1288
+ # @param buffer [Wx::RTC::RichTextBuffer]
1289
+ # @return [Wx::RTC::RichTextDrawingContext]
1290
+ def initialize(buffer) end
1291
+
1292
+ # @return [void]
1293
+ def init; end
1294
+
1295
+ # Does this object have virtual attributes? Virtual attributes can be provided for visual cues without affecting the actual styling.
1296
+ # @param obj [Wx::RTC::RichTextObject]
1297
+ # @return [Boolean]
1298
+ def has_virtual_attributes(obj) end
1299
+ alias_method :has_virtual_attributes?, :has_virtual_attributes
1300
+
1301
+ # Returns the virtual attributes for this object.
1302
+ # Virtual attributes can be provided for visual cues without affecting the actual styling.
1303
+ # @param obj [Wx::RTC::RichTextObject]
1304
+ # @return [Wx::RTC::RichTextAttr]
1305
+ def get_virtual_attributes(obj) end
1306
+ alias_method :virtual_attributes, :get_virtual_attributes
1307
+
1308
+ # Applies any virtual attributes relevant to this object.
1309
+ # @param attr [Wx::RTC::RichTextAttr]
1310
+ # @param obj [Wx::RTC::RichTextObject]
1311
+ # @return [Boolean]
1312
+ def apply_virtual_attributes(attr, obj) end
1313
+
1314
+ # Gets the count for mixed virtual attributes for individual positions within the object.
1315
+ # For example, individual characters within a text object may require special highlighting.
1316
+ # @param obj [Wx::RTC::RichTextObject]
1317
+ # @return [Integer]
1318
+ def get_virtual_subobject_attributes_count(obj) end
1319
+ alias_method :virtual_subobject_attributes_count, :get_virtual_subobject_attributes_count
1320
+
1321
+ # Gets the mixed virtual attributes for individual positions within the object.
1322
+ # For example, individual characters within a text object may require special highlighting. The function is passed the count returned by GetVirtualSubobjectAttributesCount.
1323
+ # @param obj [Wx::RTC::RichTextObject]
1324
+ # @param positions [Array<Integer>]
1325
+ # @param attributes [Array]
1326
+ # @return [Integer]
1327
+ def get_virtual_subobject_attributes(obj, positions, attributes) end
1328
+ alias_method :virtual_subobject_attributes, :get_virtual_subobject_attributes
1329
+
1330
+ # 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.
1331
+ # @param obj [Wx::RTC::RichTextPlainText]
1332
+ # @return [Boolean]
1333
+ def has_virtual_text(obj) end
1334
+ alias_method :has_virtual_text?, :has_virtual_text
1335
+
1336
+ # Gets the virtual text for this object.
1337
+ # @param obj [Wx::RTC::RichTextPlainText]
1338
+ # @param text [String]
1339
+ # @return [Boolean]
1340
+ def get_virtual_text(obj, text) end
1341
+ alias_method :virtual_text, :get_virtual_text
1342
+
1343
+ # Enables virtual attribute processing.
1344
+ # @param b [Boolean]
1345
+ # @return [void]
1346
+ def enable_virtual_attributes(b) end
1347
+
1348
+ # Returns true if virtual attribute processing is enabled.
1349
+ # @return [Boolean]
1350
+ def get_virtual_attributes_enabled; end
1351
+ alias_method :virtual_attributes_enabled, :get_virtual_attributes_enabled
1352
+
1353
+ # Enable or disable images.
1354
+ # @param b [Boolean]
1355
+ # @return [void]
1356
+ def enable_images(b) end
1357
+
1358
+ # Returns true if images are enabled.
1359
+ # @return [Boolean]
1360
+ def get_images_enabled; end
1361
+ alias_method :images_enabled, :get_images_enabled
1362
+
1363
+ # Set laying out flag.
1364
+ # @param b [Boolean]
1365
+ # @return [void]
1366
+ def set_laying_out(b) end
1367
+ alias_method :laying_out=, :set_laying_out
1368
+
1369
+ # Returns true if laying out.
1370
+ # @return [Boolean]
1371
+ def get_laying_out; end
1372
+ alias_method :laying_out, :get_laying_out
1373
+
1374
+ # Enable or disable delayed image loading.
1375
+ # @param b [Boolean]
1376
+ # @return [void]
1377
+ def enable_delayed_image_loading(b) end
1378
+
1379
+ # Returns true if delayed image loading is enabled.
1380
+ # @return [Boolean]
1381
+ def get_delayed_image_loading; end
1382
+ alias_method :delayed_image_loading, :get_delayed_image_loading
1383
+
1384
+ end # RichTextDrawingContext
1385
+
1386
+ # A class representing enhanced attributes for rich text objects.
1387
+ # This adds a {Wx::RTC::TextBoxAttr} member to the basic {Wx::TextAttr} class.
1388
+ # ===
1389
+ #
1390
+ # Category: Rich Text
1391
+ # @see Wx::TextAttr
1392
+ # @see Wx::RTC::TextBoxAttr
1393
+ # @see Wx::RTC::RichTextCtrl
1394
+ #
1395
+ #
1396
+ #
1397
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1398
+ class RichTextAttr < TextAttr
1399
+
1400
+ # @overload initialize(attr)
1401
+ # Constructor taking a {Wx::TextAttr}.
1402
+ # @param attr [Wx::TextAttr]
1403
+ # @return [Wx::RTC::RichTextAttr]
1404
+ # @overload initialize(attr)
1405
+ # Copy constructor.
1406
+ # @param attr [Wx::RTC::RichTextAttr]
1407
+ # @return [Wx::RTC::RichTextAttr]
1408
+ # @overload initialize()
1409
+ # Default constructor.
1410
+ # @return [Wx::RTC::RichTextAttr]
1411
+ def initialize(*args) end
1412
+
1413
+ # Copy function.
1414
+ # @param attr [Wx::RTC::RichTextAttr]
1415
+ # @return [void]
1416
+ def copy(attr) end
1417
+
1418
+ # Equality test.
1419
+ # @param attr [Wx::RTC::RichTextAttr]
1420
+ # @return [Boolean]
1421
+ def ==(attr) end
1422
+
1423
+ # Partial equality test.
1424
+ # 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.
1425
+ # @param attr [Wx::RTC::RichTextAttr]
1426
+ # @param weakTest [Boolean]
1427
+ # @return [Boolean]
1428
+ def eq_partial(attr, weakTest=true) end
1429
+
1430
+ # Merges the given attributes.
1431
+ # 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.
1432
+ # @param style [Wx::RTC::RichTextAttr]
1433
+ # @param compareWith [Wx::RTC::RichTextAttr]
1434
+ # @return [Boolean]
1435
+ def apply(style, compareWith=nil) end
1436
+
1437
+ # 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.
1438
+ # @param attr [Wx::RTC::RichTextAttr]
1439
+ # @param clashingAttr [Wx::RTC::RichTextAttr]
1440
+ # @param absentAttr [Wx::RTC::RichTextAttr]
1441
+ # @return [void]
1442
+ def collect_common_attributes(attr, clashingAttr, absentAttr) end
1443
+
1444
+ # Removes the specified attributes from this object.
1445
+ # @param attr [Wx::RTC::RichTextAttr]
1446
+ # @return [Boolean]
1447
+ def remove_style(attr) end
1448
+
1449
+ # @return [Wx::RTC::TextBoxAttr]
1450
+ def get_text_box_attr; end
1451
+ alias_method :text_box_attr, :get_text_box_attr
1452
+
1453
+ # Set the text box attributes.
1454
+ # @param attr [Wx::RTC::TextBoxAttr]
1455
+ # @return [void]
1456
+ def set_text_box_attr(attr) end
1457
+ alias_method :text_box_attr=, :set_text_box_attr
1458
+
1459
+ # Returns true if no attributes are set.
1460
+ # @return [Boolean]
1461
+ def is_default; end
1462
+ alias_method :default?, :is_default
1463
+
1464
+ end # RichTextAttr
1465
+
1466
+ # A class representing the box attributes of a rich text object.
1467
+ # ===
1468
+ #
1469
+ # Category: Rich Text
1470
+ # @see Wx::RTC::RichTextAttr
1471
+ # @see Wx::RTC::RichTextCtrl
1472
+ #
1473
+ #
1474
+ #
1475
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1476
+ class TextBoxAttr < ::Object
1477
+
1478
+ # @overload initialize()
1479
+ # Default constructor.
1480
+ # @return [Wx::RTC::TextBoxAttr]
1481
+ # @overload initialize(attr)
1482
+ # Copy constructor.
1483
+ # @param attr [Wx::RTC::TextBoxAttr]
1484
+ # @return [Wx::RTC::TextBoxAttr]
1485
+ def initialize(*args) end
1486
+
1487
+ # Initialises this object.
1488
+ # @return [void]
1489
+ def init; end
1490
+
1491
+ # Resets this object.
1492
+ # @return [void]
1493
+ def reset; end
1494
+
1495
+ # Equality test.
1496
+ # @param attr [Wx::RTC::TextBoxAttr]
1497
+ # @return [Boolean]
1498
+ def ==(attr) end
1499
+
1500
+ # Partial equality test, ignoring unset attributes.
1501
+ # 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.
1502
+ # @param attr [Wx::RTC::TextBoxAttr]
1503
+ # @param weakTest [Boolean]
1504
+ # @return [Boolean]
1505
+ def eq_partial(attr, weakTest=true) end
1506
+
1507
+ # Merges the given attributes.
1508
+ # 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.
1509
+ # @param style [Wx::RTC::TextBoxAttr]
1510
+ # @param compareWith [Wx::RTC::TextBoxAttr]
1511
+ # @return [Boolean]
1512
+ def apply(style, compareWith=nil) end
1513
+
1514
+ # 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.
1515
+ # @param attr [Wx::RTC::TextBoxAttr]
1516
+ # @param clashingAttr [Wx::RTC::TextBoxAttr]
1517
+ # @param absentAttr [Wx::RTC::TextBoxAttr]
1518
+ # @return [void]
1519
+ def collect_common_attributes(attr, clashingAttr, absentAttr) end
1520
+
1521
+ # Removes the specified attributes from this object.
1522
+ # @param attr [Wx::RTC::TextBoxAttr]
1523
+ # @return [Boolean]
1524
+ def remove_style(attr) end
1525
+
1526
+ # Sets the flags.
1527
+ # @param flags [Integer]
1528
+ # @return [void]
1529
+ def set_flags(flags) end
1530
+ alias_method :flags=, :set_flags
1531
+
1532
+ # Returns the flags.
1533
+ # @return [Integer]
1534
+ def get_flags; end
1535
+ alias_method :flags, :get_flags
1536
+
1537
+ # Is this flag present?
1538
+ # @param flag [Wx::TextBoxAttrFlags]
1539
+ # @return [Boolean]
1540
+ def has_flag(flag) end
1541
+ alias_method :has_flag?, :has_flag
1542
+
1543
+ # Removes this flag.
1544
+ # @param flag [Wx::TextBoxAttrFlags]
1545
+ # @return [void]
1546
+ def remove_flag(flag) end
1547
+
1548
+ # Adds this flag.
1549
+ # @param flag [Wx::TextBoxAttrFlags]
1550
+ # @return [void]
1551
+ def add_flag(flag) end
1552
+
1553
+ # Returns true if no attributes are set.
1554
+ # @return [Boolean]
1555
+ def is_default; end
1556
+ alias_method :default?, :is_default
1557
+
1558
+ # Returns the float mode.
1559
+ # @return [Wx::TextBoxAttrFloatStyle]
1560
+ def get_float_mode; end
1561
+ alias_method :float_mode, :get_float_mode
1562
+
1563
+ # Sets the float mode.
1564
+ # @param mode [Wx::TextBoxAttrFloatStyle]
1565
+ # @return [void]
1566
+ def set_float_mode(mode) end
1567
+ alias_method :float_mode=, :set_float_mode
1568
+
1569
+ # Returns true if float mode is active.
1570
+ # @return [Boolean]
1571
+ def has_float_mode; end
1572
+ alias_method :has_float_mode?, :has_float_mode
1573
+
1574
+ # Returns true if this object is floating.
1575
+ # @return [Boolean]
1576
+ def is_floating; end
1577
+ alias_method :floating?, :is_floating
1578
+
1579
+ # Returns the clear mode - whether to wrap text after object.
1580
+ # Currently unimplemented.
1581
+ # @return [Wx::TextBoxAttrClearStyle]
1582
+ def get_clear_mode; end
1583
+ alias_method :clear_mode, :get_clear_mode
1584
+
1585
+ # Set the clear mode.
1586
+ # Currently unimplemented.
1587
+ # @param mode [Wx::TextBoxAttrClearStyle]
1588
+ # @return [void]
1589
+ def set_clear_mode(mode) end
1590
+ alias_method :clear_mode=, :set_clear_mode
1591
+
1592
+ # Returns true if we have a clear flag.
1593
+ # @return [Boolean]
1594
+ def has_clear_mode; end
1595
+ alias_method :has_clear_mode?, :has_clear_mode
1596
+
1597
+ # Returns the collapse mode - whether to collapse borders.
1598
+ # @return [Wx::TextBoxAttrCollapseMode]
1599
+ def get_collapse_borders; end
1600
+ alias_method :collapse_borders, :get_collapse_borders
1601
+
1602
+ # Sets the collapse mode - whether to collapse borders.
1603
+ # @param collapse [Wx::TextBoxAttrCollapseMode]
1604
+ # @return [void]
1605
+ def set_collapse_borders(collapse) end
1606
+ alias_method :collapse_borders=, :set_collapse_borders
1607
+
1608
+ # Returns true if the collapse borders flag is present.
1609
+ # @return [Boolean]
1610
+ def has_collapse_borders; end
1611
+ alias_method :has_collapse_borders?, :has_collapse_borders
1612
+
1613
+ # Returns the whitespace mode.
1614
+ # @return [Wx::TextBoxAttrWhitespaceMode]
1615
+ def get_whitespace_mode; end
1616
+ alias_method :whitespace_mode, :get_whitespace_mode
1617
+
1618
+ # Sets the whitespace mode.
1619
+ # @param whitespace [Wx::TextBoxAttrWhitespaceMode]
1620
+ # @return [void]
1621
+ def set_whitespace_mode(whitespace) end
1622
+ alias_method :whitespace_mode=, :set_whitespace_mode
1623
+
1624
+ # Returns true if the whitespace flag is present.
1625
+ # @return [Boolean]
1626
+ def has_whitespace_mode; end
1627
+ alias_method :has_whitespace_mode?, :has_whitespace_mode
1628
+
1629
+ # Returns true if the corner radius flag is present.
1630
+ # @return [Boolean]
1631
+ def has_corner_radius; end
1632
+ alias_method :has_corner_radius?, :has_corner_radius
1633
+
1634
+ # Returns the corner radius value.
1635
+ # @return [Wx::RTC::TextAttrDimension]
1636
+ def get_corner_radius; end
1637
+ alias_method :corner_radius, :get_corner_radius
1638
+
1639
+ # Sets the corner radius value.
1640
+ # @param dim [Wx::RTC::TextAttrDimension]
1641
+ # @return [void]
1642
+ def set_corner_radius(dim) end
1643
+ alias_method :corner_radius=, :set_corner_radius
1644
+
1645
+ # Returns the vertical alignment.
1646
+ # @return [Wx::TextBoxAttrVerticalAlignment]
1647
+ def get_vertical_alignment; end
1648
+ alias_method :vertical_alignment, :get_vertical_alignment
1649
+
1650
+ # Sets the vertical alignment.
1651
+ # @param verticalAlignment [Wx::TextBoxAttrVerticalAlignment]
1652
+ # @return [void]
1653
+ def set_vertical_alignment(verticalAlignment) end
1654
+ alias_method :vertical_alignment=, :set_vertical_alignment
1655
+
1656
+ # Returns true if a vertical alignment flag is present.
1657
+ # @return [Boolean]
1658
+ def has_vertical_alignment; end
1659
+ alias_method :has_vertical_alignment?, :has_vertical_alignment
1660
+
1661
+ # @return [Wx::RTC::TextAttrDimensions]
1662
+ def get_margins; end
1663
+ alias_method :margins, :get_margins
1664
+
1665
+ # @return [Wx::RTC::TextAttrDimension]
1666
+ def get_left_margin; end
1667
+ alias_method :left_margin, :get_left_margin
1668
+
1669
+ # @return [Wx::RTC::TextAttrDimension]
1670
+ def get_right_margin; end
1671
+ alias_method :right_margin, :get_right_margin
1672
+
1673
+ # @return [Wx::RTC::TextAttrDimension]
1674
+ def get_top_margin; end
1675
+ alias_method :top_margin, :get_top_margin
1676
+
1677
+ # @return [Wx::RTC::TextAttrDimension]
1678
+ def get_bottom_margin; end
1679
+ alias_method :bottom_margin, :get_bottom_margin
1680
+
1681
+ # @return [Wx::RTC::TextAttrDimensions]
1682
+ def get_position; end
1683
+ alias_method :position, :get_position
1684
+
1685
+ # @return [Wx::RTC::TextAttrDimension]
1686
+ def get_left; end
1687
+ alias_method :left, :get_left
1688
+
1689
+ # @return [Wx::RTC::TextAttrDimension]
1690
+ def get_right; end
1691
+ alias_method :right, :get_right
1692
+
1693
+ # @return [Wx::RTC::TextAttrDimension]
1694
+ def get_top; end
1695
+ alias_method :top, :get_top
1696
+
1697
+ # @return [Wx::RTC::TextAttrDimension]
1698
+ def get_bottom; end
1699
+ alias_method :bottom, :get_bottom
1700
+
1701
+ # @return [Wx::RTC::TextAttrDimensions]
1702
+ def get_padding; end
1703
+ alias_method :padding, :get_padding
1704
+
1705
+ # @return [Wx::RTC::TextAttrDimension]
1706
+ def get_left_padding; end
1707
+ alias_method :left_padding, :get_left_padding
1708
+
1709
+ # @return [Wx::RTC::TextAttrDimension]
1710
+ def get_right_padding; end
1711
+ alias_method :right_padding, :get_right_padding
1712
+
1713
+ # @return [Wx::RTC::TextAttrDimension]
1714
+ def get_top_padding; end
1715
+ alias_method :top_padding, :get_top_padding
1716
+
1717
+ # @return [Wx::RTC::TextAttrDimension]
1718
+ def get_bottom_padding; end
1719
+ alias_method :bottom_padding, :get_bottom_padding
1720
+
1721
+ # @return [Wx::RTC::TextAttrBorders]
1722
+ def get_border; end
1723
+ alias_method :border, :get_border
1724
+
1725
+ # @return [Wx::RTC::TextAttrBorder]
1726
+ def get_left_border; end
1727
+ alias_method :left_border, :get_left_border
1728
+
1729
+ # @return [Wx::RTC::TextAttrBorder]
1730
+ def get_top_border; end
1731
+ alias_method :top_border, :get_top_border
1732
+
1733
+ # @return [Wx::RTC::TextAttrBorder]
1734
+ def get_right_border; end
1735
+ alias_method :right_border, :get_right_border
1736
+
1737
+ # @return [Wx::RTC::TextAttrBorder]
1738
+ def get_bottom_border; end
1739
+ alias_method :bottom_border, :get_bottom_border
1740
+
1741
+ # @return [Wx::RTC::TextAttrBorders]
1742
+ def get_outline; end
1743
+ alias_method :outline, :get_outline
1744
+
1745
+ # @return [Wx::RTC::TextAttrBorder]
1746
+ def get_left_outline; end
1747
+ alias_method :left_outline, :get_left_outline
1748
+
1749
+ # @return [Wx::RTC::TextAttrBorder]
1750
+ def get_top_outline; end
1751
+ alias_method :top_outline, :get_top_outline
1752
+
1753
+ # @return [Wx::RTC::TextAttrBorder]
1754
+ def get_right_outline; end
1755
+ alias_method :right_outline, :get_right_outline
1756
+
1757
+ # @return [Wx::RTC::TextAttrBorder]
1758
+ def get_bottom_outline; end
1759
+ alias_method :bottom_outline, :get_bottom_outline
1760
+
1761
+ # @return [Wx::RTC::TextAttrSize]
1762
+ def get_size; end
1763
+ alias_method :size, :get_size
1764
+
1765
+ # @return [Wx::RTC::TextAttrSize]
1766
+ def get_min_size; end
1767
+ alias_method :min_size, :get_min_size
1768
+
1769
+ # @return [Wx::RTC::TextAttrSize]
1770
+ def get_max_size; end
1771
+ alias_method :max_size, :get_max_size
1772
+
1773
+ # Sets the object size.
1774
+ # @param sz [Wx::RTC::TextAttrSize]
1775
+ # @return [void]
1776
+ def set_size(sz) end
1777
+ alias_method :size=, :set_size
1778
+
1779
+ # Sets the object minimum size.
1780
+ # @param sz [Wx::RTC::TextAttrSize]
1781
+ # @return [void]
1782
+ def set_min_size(sz) end
1783
+ alias_method :min_size=, :set_min_size
1784
+
1785
+ # Sets the object maximum size.
1786
+ # @param sz [Wx::RTC::TextAttrSize]
1787
+ # @return [void]
1788
+ def set_max_size(sz) end
1789
+ alias_method :max_size=, :set_max_size
1790
+
1791
+ # @return [Wx::RTC::TextAttrDimension]
1792
+ def get_width; end
1793
+ alias_method :width, :get_width
1794
+
1795
+ # @return [Wx::RTC::TextAttrDimension]
1796
+ def get_height; end
1797
+ alias_method :height, :get_height
1798
+
1799
+ # Returns the box style name.
1800
+ # @return [Wx::String]
1801
+ def get_box_style_name; end
1802
+ alias_method :box_style_name, :get_box_style_name
1803
+
1804
+ # Sets the box style name.
1805
+ # @param name [String]
1806
+ # @return [void]
1807
+ def set_box_style_name(name) end
1808
+ alias_method :box_style_name=, :set_box_style_name
1809
+
1810
+ # Returns true if the box style name is present.
1811
+ # @return [Boolean]
1812
+ def has_box_style_name; end
1813
+ alias_method :has_box_style_name?, :has_box_style_name
1814
+
1815
+ # @return [Wx::RTC::TextAttrShadow]
1816
+ def get_shadow; end
1817
+ alias_method :shadow, :get_shadow
1818
+
1819
+ end # TextBoxAttr
1820
+
1821
+ # A class representing a rich text dimension, including units and position.
1822
+ # ===
1823
+ #
1824
+ # Category: Rich Text
1825
+ # @see Wx::RTC::RichTextAttr
1826
+ # @see Wx::RTC::RichTextCtrl
1827
+ # @see Wx::RTC::TextAttrDimensions
1828
+ #
1829
+ #
1830
+ #
1831
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1832
+ class TextAttrDimension < ::Object
1833
+
1834
+ # @overload initialize()
1835
+ # Default constructor.
1836
+ # @return [Wx::RTC::TextAttrDimension]
1837
+ # @overload initialize(value, units=Wx::RTC::TextAttrUnits::TEXT_ATTR_UNITS_TENTHS_MM)
1838
+ # Constructor taking value and units flag.
1839
+ # @param value [Integer]
1840
+ # @param units [Wx::TextAttrUnits]
1841
+ # @return [Wx::RTC::TextAttrDimension]
1842
+ def initialize(*args) end
1843
+
1844
+ # Resets the dimension value and flags.
1845
+ # @return [void]
1846
+ def reset; end
1847
+
1848
+ # Partial equality test.
1849
+ # If weakTest is true, attributes of this object do not have to be present if those attributes of dim are present. If weakTest is false, the function will fail if an attribute is present in dim but not in this object.
1850
+ # @param dim [Wx::RTC::TextAttrDimension]
1851
+ # @param weakTest [Boolean]
1852
+ # @return [Boolean]
1853
+ def eq_partial(dim, weakTest=true) end
1854
+
1855
+ # Apply the dimension, but not those identical to compareWith if present.
1856
+ # @param dim [Wx::RTC::TextAttrDimension]
1857
+ # @param compareWith [Wx::RTC::TextAttrDimension]
1858
+ # @return [Boolean]
1859
+ def apply(dim, compareWith=nil) end
1860
+
1861
+ # 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.
1862
+ # @param attr [Wx::RTC::TextAttrDimension]
1863
+ # @param clashingAttr [Wx::RTC::TextAttrDimension]
1864
+ # @param absentAttr [Wx::RTC::TextAttrDimension]
1865
+ # @return [void]
1866
+ def collect_common_attributes(attr, clashingAttr, absentAttr) end
1867
+
1868
+ # Equality operator.
1869
+ # @param dim [Wx::RTC::TextAttrDimension]
1870
+ # @return [Boolean]
1871
+ def ==(dim) end
1872
+
1873
+ # Returns the integer value of the dimension.
1874
+ # @return [Integer]
1875
+ def get_value; end
1876
+ alias_method :value, :get_value
1877
+
1878
+ # Returns the floating-pointing value of the dimension in mm.
1879
+ # @return [Float]
1880
+ def get_value_mm; end
1881
+ alias_method :value_mm, :get_value_mm
1882
+
1883
+ # Sets the value of the dimension in mm.
1884
+ # @param value [Float]
1885
+ # @return [void]
1886
+ def set_value_mm(value) end
1887
+ alias_method :value_mm=, :set_value_mm
1888
+
1889
+ # @overload set_value(value)
1890
+ # Sets the integer value of the dimension.
1891
+ # @param value [Integer]
1892
+ # @return [void]
1893
+ # @overload set_value(value, flags)
1894
+ # Sets the integer value of the dimension, passing dimension flags.
1895
+ # @param value [Integer]
1896
+ # @param flags [Wx::TextAttrDimensionFlags]
1897
+ # @return [void]
1898
+ # @overload set_value(value, units)
1899
+ # Sets the integer value and units.
1900
+ # @param value [Integer]
1901
+ # @param units [Wx::TextAttrUnits]
1902
+ # @return [void]
1903
+ # @overload set_value(dim)
1904
+ # Sets the dimension.
1905
+ # @param dim [Wx::RTC::TextAttrDimension]
1906
+ # @return [void]
1907
+ def set_value(*args) end
1908
+ alias_method :value=, :set_value
1909
+
1910
+ # Gets the units of the dimension.
1911
+ # @return [Wx::TextAttrUnits]
1912
+ def get_units; end
1913
+ alias_method :units, :get_units
1914
+
1915
+ # Sets the units of the dimension.
1916
+ # @param units [Wx::TextAttrUnits]
1917
+ # @return [void]
1918
+ def set_units(units) end
1919
+ alias_method :units=, :set_units
1920
+
1921
+ # Gets the position flags.
1922
+ # @return [Wx::TextBoxAttrPosition]
1923
+ def get_position; end
1924
+ alias_method :position, :get_position
1925
+
1926
+ # Sets the position flags.
1927
+ # @param pos [Wx::TextBoxAttrPosition]
1928
+ # @return [void]
1929
+ def set_position(pos) end
1930
+ alias_method :position=, :set_position
1931
+
1932
+ # Returns true if the dimension is valid.
1933
+ # @return [Boolean]
1934
+ def is_valid; end
1935
+ alias_method :valid?, :is_valid
1936
+
1937
+ # Sets the valid flag.
1938
+ # @param b [Boolean]
1939
+ # @return [void]
1940
+ def set_valid(b) end
1941
+ alias_method :valid=, :set_valid
1942
+
1943
+ # Gets the dimension flags.
1944
+ # @return [Wx::TextAttrDimensionFlags]
1945
+ def get_flags; end
1946
+ alias_method :flags, :get_flags
1947
+
1948
+ # Sets the dimension flags.
1949
+ # @param flags [Wx::TextAttrDimensionFlags]
1950
+ # @return [void]
1951
+ def set_flags(flags) end
1952
+ alias_method :flags=, :set_flags
1953
+
1954
+ end # TextAttrDimension
1955
+
1956
+ # A class for left, right, top and bottom dimensions.
1957
+ # ===
1958
+ #
1959
+ # Category: Rich Text
1960
+ # @see Wx::RTC::RichTextAttr
1961
+ # @see Wx::RTC::RichTextCtrl
1962
+ # @see Wx::RTC::TextAttrDimension
1963
+ #
1964
+ #
1965
+ #
1966
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1967
+ class TextAttrDimensions < ::Object
1968
+
1969
+ # Default constructor.
1970
+ # @return [Wx::RTC::TextAttrDimensions]
1971
+ def initialize; end
1972
+
1973
+ # Resets the value and flags for all dimensions.
1974
+ # @return [void]
1975
+ def reset; end
1976
+
1977
+ # Equality operator.
1978
+ # @param dims [Wx::RTC::TextAttrDimensions]
1979
+ # @return [Boolean]
1980
+ def ==(dims) end
1981
+
1982
+ # Partial equality test.
1983
+ # If weakTest is true, attributes of this object do not have to be present if those attributes of dims are present. If weakTest is false, the function will fail if an attribute is present in dims but not in this object.
1984
+ # @param dims [Wx::RTC::TextAttrDimensions]
1985
+ # @param weakTest [Boolean]
1986
+ # @return [Boolean]
1987
+ def eq_partial(dims, weakTest=true) end
1988
+
1989
+ # Apply to 'this', but not if the same as compareWith.
1990
+ # @param dims [Wx::RTC::TextAttrDimensions]
1991
+ # @param compareWith [Wx::RTC::TextAttrDimensions]
1992
+ # @return [Boolean]
1993
+ def apply(dims, compareWith=nil) end
1994
+
1995
+ # 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.
1996
+ # @param attr [Wx::RTC::TextAttrDimensions]
1997
+ # @param clashingAttr [Wx::RTC::TextAttrDimensions]
1998
+ # @param absentAttr [Wx::RTC::TextAttrDimensions]
1999
+ # @return [void]
2000
+ def collect_common_attributes(attr, clashingAttr, absentAttr) end
2001
+
2002
+ # Remove specified attributes from this object.
2003
+ # @param attr [Wx::RTC::TextAttrDimensions]
2004
+ # @return [Boolean]
2005
+ def remove_style(attr) end
2006
+
2007
+ # Gets the left dimension.
2008
+ # @return [Wx::RTC::TextAttrDimension]
2009
+ def get_left; end
2010
+ alias_method :left, :get_left
2011
+
2012
+ # Gets the right dimension.
2013
+ # @return [Wx::RTC::TextAttrDimension]
2014
+ def get_right; end
2015
+ alias_method :right, :get_right
2016
+
2017
+ # Gets the top dimension.
2018
+ # @return [Wx::RTC::TextAttrDimension]
2019
+ def get_top; end
2020
+ alias_method :top, :get_top
2021
+
2022
+ # Gets the bottom dimension.
2023
+ # @return [Wx::RTC::TextAttrDimension]
2024
+ def get_bottom; end
2025
+ alias_method :bottom, :get_bottom
2026
+
2027
+ # Are all dimensions valid?
2028
+ # @return [Boolean]
2029
+ def is_valid; end
2030
+ alias_method :valid?, :is_valid
2031
+
2032
+ end # TextAttrDimensions
2033
+
2034
+ # A class representing a shadow.
2035
+ # ===
2036
+ #
2037
+ # Category: Rich Text
2038
+ # @see Wx::RTC::RichTextAttr
2039
+ # @see Wx::RTC::RichTextCtrl
2040
+ #
2041
+ #
2042
+ #
2043
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
2044
+ class TextAttrShadow < ::Object
2045
+
2046
+ # Default constructor.
2047
+ # @return [Wx::RTC::TextAttrShadow]
2048
+ def initialize; end
2049
+
2050
+ # Equality operator.
2051
+ # @param shadow [Wx::RTC::TextAttrShadow]
2052
+ # @return [Boolean]
2053
+ def ==(shadow) end
2054
+
2055
+ # Resets the shadow.
2056
+ # @return [void]
2057
+ def reset; end
2058
+
2059
+ # Partial equality test.
2060
+ # 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.
2061
+ # @param shadow [Wx::RTC::TextAttrShadow]
2062
+ # @param weakTest [Boolean]
2063
+ # @return [Boolean]
2064
+ def eq_partial(shadow, weakTest=true) end
2065
+
2066
+ # Applies the border to this object, but not if the same as compareWith.
2067
+ # @param shadow [Wx::RTC::TextAttrShadow]
2068
+ # @param compareWith [Wx::RTC::TextAttrShadow]
2069
+ # @return [Boolean]
2070
+ def apply(shadow, compareWith=nil) end
2071
+
2072
+ # Removes the specified attributes from this object.
2073
+ # @param attr [Wx::RTC::TextAttrShadow]
2074
+ # @return [Boolean]
2075
+ def remove_style(attr) end
2076
+
2077
+ # 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.
2078
+ # @param attr [Wx::RTC::TextAttrShadow]
2079
+ # @param clashingAttr [Wx::RTC::TextAttrShadow]
2080
+ # @param absentAttr [Wx::RTC::TextAttrShadow]
2081
+ # @return [void]
2082
+ def collect_common_attributes(attr, clashingAttr, absentAttr) end
2083
+
2084
+ # @overload set_colour(colour)
2085
+ # Sets the shadow colour.
2086
+ # @param colour [Integer]
2087
+ # @return [void]
2088
+ # @overload set_colour(colour)
2089
+ # Sets the shadow colour.
2090
+ # @param colour [Wx::Colour,String,Symbol]
2091
+ # @return [void]
2092
+ def set_colour(*args) end
2093
+ alias_method :colour=, :set_colour
2094
+
2095
+ # Gets the colour as a long.
2096
+ # @return [Integer]
2097
+ def get_colour_long; end
2098
+ alias_method :colour_long, :get_colour_long
2099
+
2100
+ # Gets the colour.
2101
+ # @return [Wx::Colour]
2102
+ def get_colour; end
2103
+ alias_method :colour, :get_colour
2104
+
2105
+ # True if the shadow has a valid colour.
2106
+ # @return [Boolean]
2107
+ def has_colour; end
2108
+ alias_method :has_colour?, :has_colour
2109
+
2110
+ # @return [Wx::RTC::TextAttrDimension]
2111
+ def get_offset_x; end
2112
+ alias_method :offset_x, :get_offset_x
2113
+
2114
+ # Sets the shadow horizontal offset.
2115
+ # @param offset [Wx::RTC::TextAttrDimension]
2116
+ # @return [void]
2117
+ def set_offset_x(offset) end
2118
+ alias_method :offset_x=, :set_offset_x
2119
+
2120
+ # @return [Wx::RTC::TextAttrDimension]
2121
+ def get_offset_y; end
2122
+ alias_method :offset_y, :get_offset_y
2123
+
2124
+ # Sets the shadow vertical offset.
2125
+ # @param offset [Wx::RTC::TextAttrDimension]
2126
+ # @return [void]
2127
+ def set_offset_y(offset) end
2128
+ alias_method :offset_y=, :set_offset_y
2129
+
2130
+ # @return [Wx::RTC::TextAttrDimension]
2131
+ def get_spread; end
2132
+ alias_method :spread, :get_spread
2133
+
2134
+ # Sets the shadow spread size.
2135
+ # @param spread [Wx::RTC::TextAttrDimension]
2136
+ # @return [void]
2137
+ def set_spread(spread) end
2138
+ alias_method :spread=, :set_spread
2139
+
2140
+ # @return [Wx::RTC::TextAttrDimension]
2141
+ def get_blur_distance; end
2142
+ alias_method :blur_distance, :get_blur_distance
2143
+
2144
+ # Sets the shadow blur distance.
2145
+ # @param blur [Wx::RTC::TextAttrDimension]
2146
+ # @return [void]
2147
+ def set_blur_distance(blur) end
2148
+ alias_method :blur_distance=, :set_blur_distance
2149
+
2150
+ # @return [Wx::RTC::TextAttrDimension]
2151
+ def get_opacity; end
2152
+ alias_method :opacity, :get_opacity
2153
+
2154
+ # Returns true if the dimension is valid.
2155
+ # @return [Boolean]
2156
+ def is_valid; end
2157
+ alias_method :valid?, :is_valid
2158
+
2159
+ # Sets the valid flag.
2160
+ # @param b [Boolean]
2161
+ # @return [void]
2162
+ def set_valid(b) end
2163
+ alias_method :valid=, :set_valid
2164
+
2165
+ # Returns the border flags.
2166
+ # @return [Integer]
2167
+ def get_flags; end
2168
+ alias_method :flags, :get_flags
2169
+
2170
+ # Sets the border flags.
2171
+ # @param flags [Integer]
2172
+ # @return [void]
2173
+ def set_flags(flags) end
2174
+ alias_method :flags=, :set_flags
2175
+
2176
+ # Adds a border flag.
2177
+ # @param flag [Integer]
2178
+ # @return [void]
2179
+ def add_flag(flag) end
2180
+
2181
+ # Removes a border flag.
2182
+ # @param flag [Integer]
2183
+ # @return [void]
2184
+ def remove_flag(flag) end
2185
+
2186
+ # Sets the shadow opacity.
2187
+ # @param opacity [Wx::RTC::TextAttrDimension]
2188
+ # @return [void]
2189
+ def set_opacity(opacity) end
2190
+ alias_method :opacity=, :set_opacity
2191
+
2192
+ # True if the shadow has no attributes set.
2193
+ # @return [Boolean]
2194
+ def is_default; end
2195
+ alias_method :default?, :is_default
2196
+
2197
+ end # TextAttrShadow
2198
+
2199
+ # A class representing a rich text object border.
2200
+ # ===
2201
+ #
2202
+ # Category: Rich Text
2203
+ # @see Wx::RTC::RichTextAttr
2204
+ # @see Wx::RTC::RichTextCtrl
2205
+ # @see wxRichTextAttrBorders
2206
+ #
2207
+ #
2208
+ #
2209
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
2210
+ class TextAttrBorder < ::Object
2211
+
2212
+ # Default constructor.
2213
+ # @return [Wx::RTC::TextAttrBorder]
2214
+ def initialize; end
2215
+
2216
+ # Equality operator.
2217
+ # @param border [Wx::RTC::TextAttrBorder]
2218
+ # @return [Boolean]
2219
+ def ==(border) end
2220
+
2221
+ # Resets the border style, colour, width and flags.
2222
+ # @return [void]
2223
+ def reset; end
2224
+
2225
+ # Partial equality test.
2226
+ # 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.
2227
+ # @param border [Wx::RTC::TextAttrBorder]
2228
+ # @param weakTest [Boolean]
2229
+ # @return [Boolean]
2230
+ def eq_partial(border, weakTest=true) end
2231
+
2232
+ # Applies the border to this object, but not if the same as compareWith.
2233
+ # @param border [Wx::RTC::TextAttrBorder]
2234
+ # @param compareWith [Wx::RTC::TextAttrBorder]
2235
+ # @return [Boolean]
2236
+ def apply(border, compareWith=nil) end
2237
+
2238
+ # Removes the specified attributes from this object.
2239
+ # @param attr [Wx::RTC::TextAttrBorder]
2240
+ # @return [Boolean]
2241
+ def remove_style(attr) end
2242
+
2243
+ # 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.
2244
+ # @param attr [Wx::RTC::TextAttrBorder]
2245
+ # @param clashingAttr [Wx::RTC::TextAttrBorder]
2246
+ # @param absentAttr [Wx::RTC::TextAttrBorder]
2247
+ # @return [void]
2248
+ def collect_common_attributes(attr, clashingAttr, absentAttr) end
2249
+
2250
+ # Sets the border style.
2251
+ # @param style [Integer]
2252
+ # @return [void]
2253
+ def set_style(style) end
2254
+ alias_method :style=, :set_style
2255
+
2256
+ # Gets the border style.
2257
+ # @return [Integer]
2258
+ def get_style; end
2259
+ alias_method :style, :get_style
2260
+
2261
+ # @overload set_colour(colour)
2262
+ # Sets the border colour.
2263
+ # @param colour [Integer]
2264
+ # @return [void]
2265
+ # @overload set_colour(colour)
2266
+ # Sets the border colour.
2267
+ # @param colour [Wx::Colour,String,Symbol]
2268
+ # @return [void]
2269
+ def set_colour(*args) end
2270
+ alias_method :colour=, :set_colour
2271
+
2272
+ # Gets the colour as a long.
2273
+ # @return [Integer]
2274
+ def get_colour_long; end
2275
+ alias_method :colour_long, :get_colour_long
2276
+
2277
+ # Gets the colour.
2278
+ # @return [Wx::Colour]
2279
+ def get_colour; end
2280
+ alias_method :colour, :get_colour
2281
+
2282
+ # @return [Wx::RTC::TextAttrDimension]
2283
+ def get_width; end
2284
+ alias_method :width, :get_width
2285
+
2286
+ # @overload set_width(width)
2287
+ # Sets the border width.
2288
+ # @param width [Wx::RTC::TextAttrDimension]
2289
+ # @return [void]
2290
+ # @overload set_width(value, units=Wx::RTC::TextAttrUnits::TEXT_ATTR_UNITS_TENTHS_MM)
2291
+ # Sets the border width.
2292
+ # @param value [Integer]
2293
+ # @param units [Wx::TextAttrUnits]
2294
+ # @return [void]
2295
+ def set_width(*args) end
2296
+ alias_method :width=, :set_width
2297
+
2298
+ # True if the border has a valid style.
2299
+ # @return [Boolean]
2300
+ def has_style; end
2301
+ alias_method :has_style?, :has_style
2302
+
2303
+ # True if the border has a valid colour.
2304
+ # @return [Boolean]
2305
+ def has_colour; end
2306
+ alias_method :has_colour?, :has_colour
2307
+
2308
+ # True if the border has a valid width.
2309
+ # @return [Boolean]
2310
+ def has_width; end
2311
+ alias_method :has_width?, :has_width
2312
+
2313
+ # True if the border is valid.
2314
+ # @return [Boolean]
2315
+ def is_valid; end
2316
+ alias_method :valid?, :is_valid
2317
+
2318
+ # True if the border has no attributes set.
2319
+ # @return [Boolean]
2320
+ def is_default; end
2321
+ alias_method :default?, :is_default
2322
+
2323
+ # Set the valid flag for this border.
2324
+ # @return [void]
2325
+ def make_valid; end
2326
+
2327
+ # Returns the border flags.
2328
+ # @return [Integer]
2329
+ def get_flags; end
2330
+ alias_method :flags, :get_flags
2331
+
2332
+ # Sets the border flags.
2333
+ # @param flags [Integer]
2334
+ # @return [void]
2335
+ def set_flags(flags) end
2336
+ alias_method :flags=, :set_flags
2337
+
2338
+ # Adds a border flag.
2339
+ # @param flag [Integer]
2340
+ # @return [void]
2341
+ def add_flag(flag) end
2342
+
2343
+ # Removes a border flag.
2344
+ # @param flag [Integer]
2345
+ # @return [void]
2346
+ def remove_flag(flag) end
2347
+
2348
+ end # TextAttrBorder
2349
+
2350
+ # A class representing a rich text object's borders.
2351
+ # ===
2352
+ #
2353
+ # Category: Rich Text
2354
+ # @see Wx::RTC::RichTextAttr
2355
+ # @see Wx::RTC::RichTextCtrl
2356
+ # @see wxRichTextAttrBorder
2357
+ #
2358
+ #
2359
+ #
2360
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
2361
+ class TextAttrBorders < ::Object
2362
+
2363
+ # Default constructor.
2364
+ # @return [Wx::RTC::TextAttrBorders]
2365
+ def initialize; end
2366
+
2367
+ # Equality operator.
2368
+ # @param borders [Wx::RTC::TextAttrBorders]
2369
+ # @return [Boolean]
2370
+ def ==(borders) end
2371
+
2372
+ # Sets the style of all borders.
2373
+ # @param style [Integer]
2374
+ # @return [void]
2375
+ def set_style(style) end
2376
+ alias_method :style=, :set_style
2377
+
2378
+ # @overload set_colour(colour)
2379
+ # Sets colour of all borders.
2380
+ # @param colour [Integer]
2381
+ # @return [void]
2382
+ # @overload set_colour(colour)
2383
+ # Sets the colour for all borders.
2384
+ # @param colour [Wx::Colour,String,Symbol]
2385
+ # @return [void]
2386
+ def set_colour(*args) end
2387
+ alias_method :colour=, :set_colour
2388
+
2389
+ # @overload set_width(width)
2390
+ # Sets the width of all borders.
2391
+ # @param width [Wx::RTC::TextAttrDimension]
2392
+ # @return [void]
2393
+ # @overload set_width(value, units=Wx::RTC::TextAttrUnits::TEXT_ATTR_UNITS_TENTHS_MM)
2394
+ # Sets the width of all borders.
2395
+ # @param value [Integer]
2396
+ # @param units [Wx::TextAttrUnits]
2397
+ # @return [void]
2398
+ def set_width(*args) end
2399
+ alias_method :width=, :set_width
2400
+
2401
+ # Resets all borders.
2402
+ # @return [void]
2403
+ def reset; end
2404
+
2405
+ # Partial equality test.
2406
+ # 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.
2407
+ # @param borders [Wx::RTC::TextAttrBorders]
2408
+ # @param weakTest [Boolean]
2409
+ # @return [Boolean]
2410
+ def eq_partial(borders, weakTest=true) end
2411
+
2412
+ # Applies border to this object, but not if the same as compareWith.
2413
+ # @param borders [Wx::RTC::TextAttrBorders]
2414
+ # @param compareWith [Wx::RTC::TextAttrBorders]
2415
+ # @return [Boolean]
2416
+ def apply(borders, compareWith=nil) end
2417
+
2418
+ # Removes the specified attributes from this object.
2419
+ # @param attr [Wx::RTC::TextAttrBorders]
2420
+ # @return [Boolean]
2421
+ def remove_style(attr) end
2422
+
2423
+ # 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.
2424
+ # @param attr [Wx::RTC::TextAttrBorders]
2425
+ # @param clashingAttr [Wx::RTC::TextAttrBorders]
2426
+ # @param absentAttr [Wx::RTC::TextAttrBorders]
2427
+ # @return [void]
2428
+ def collect_common_attributes(attr, clashingAttr, absentAttr) end
2429
+
2430
+ # Returns true if at least one border is valid.
2431
+ # @return [Boolean]
2432
+ def is_valid; end
2433
+ alias_method :valid?, :is_valid
2434
+
2435
+ # Returns the left border.
2436
+ # @return [Wx::RTC::TextAttrBorder]
2437
+ def get_left; end
2438
+ alias_method :left, :get_left
2439
+
2440
+ # Returns the right border.
2441
+ # @return [Wx::RTC::TextAttrBorder]
2442
+ def get_right; end
2443
+ alias_method :right, :get_right
2444
+
2445
+ # Returns the top border.
2446
+ # @return [Wx::RTC::TextAttrBorder]
2447
+ def get_top; end
2448
+ alias_method :top, :get_top
2449
+
2450
+ # Returns the bottom border.
2451
+ # @return [Wx::RTC::TextAttrBorder]
2452
+ def get_bottom; end
2453
+ alias_method :bottom, :get_bottom
2454
+
2455
+ end # TextAttrBorders
2456
+
2457
+ # A class for representing width and height.
2458
+ # ===
2459
+ #
2460
+ # Category: Rich Text
2461
+ # @see Wx::RTC::RichTextAttr
2462
+ # @see Wx::RTC::RichTextCtrl
2463
+ # @see Wx::RTC::TextAttrDimension
2464
+ #
2465
+ #
2466
+ #
2467
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
2468
+ class TextAttrSize < ::Object
2469
+
2470
+ # Default constructor.
2471
+ # @return [Wx::RTC::TextAttrSize]
2472
+ def initialize; end
2473
+
2474
+ # Resets the width and height dimensions.
2475
+ # @return [void]
2476
+ def reset; end
2477
+
2478
+ # Equality operator.
2479
+ # @param size [Wx::RTC::TextAttrSize]
2480
+ # @return [Boolean]
2481
+ def ==(size) end
2482
+
2483
+ # Partial equality test.
2484
+ # If weakTest is true, attributes of this object do not have to be present if those attributes of size are present. If weakTest is false, the function will fail if an attribute is present in size but not in this object.
2485
+ # @param size [Wx::RTC::TextAttrSize]
2486
+ # @param weakTest [Boolean]
2487
+ # @return [Boolean]
2488
+ def eq_partial(size, weakTest=true) end
2489
+
2490
+ # Apply to this object, but not if the same as compareWith.
2491
+ # @param dims [Wx::RTC::TextAttrSize]
2492
+ # @param compareWith [Wx::RTC::TextAttrSize]
2493
+ # @return [Boolean]
2494
+ def apply(dims, compareWith=nil) end
2495
+
2496
+ # 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.
2497
+ # @param attr [Wx::RTC::TextAttrSize]
2498
+ # @param clashingAttr [Wx::RTC::TextAttrSize]
2499
+ # @param absentAttr [Wx::RTC::TextAttrSize]
2500
+ # @return [void]
2501
+ def collect_common_attributes(attr, clashingAttr, absentAttr) end
2502
+
2503
+ # Removes the specified attributes from this object.
2504
+ # @param attr [Wx::RTC::TextAttrSize]
2505
+ # @return [Boolean]
2506
+ def remove_style(attr) end
2507
+
2508
+ # @return [Wx::RTC::TextAttrDimension]
2509
+ def get_width; end
2510
+ alias_method :width, :get_width
2511
+
2512
+ # @overload set_width(value, flags)
2513
+ # Sets the width.
2514
+ # @param value [Integer]
2515
+ # @param flags [Wx::TextAttrDimensionFlags]
2516
+ # @return [void]
2517
+ # @overload set_width(value, units)
2518
+ # Sets the width.
2519
+ # @param value [Integer]
2520
+ # @param units [Wx::TextAttrUnits]
2521
+ # @return [void]
2522
+ # @overload set_width(dim)
2523
+ # Sets the width.
2524
+ # @param dim [Wx::RTC::TextAttrDimension]
2525
+ # @return [void]
2526
+ def set_width(*args) end
2527
+ alias_method :width=, :set_width
2528
+
2529
+ # @return [Wx::RTC::TextAttrDimension]
2530
+ def get_height; end
2531
+ alias_method :height, :get_height
2532
+
2533
+ # @overload set_height(value, flags)
2534
+ # Sets the height.
2535
+ # @param value [Integer]
2536
+ # @param flags [Wx::TextAttrDimensionFlags]
2537
+ # @return [void]
2538
+ # @overload set_height(value, units)
2539
+ # Sets the height.
2540
+ # @param value [Integer]
2541
+ # @param units [Wx::TextAttrUnits]
2542
+ # @return [void]
2543
+ # @overload set_height(dim)
2544
+ # Sets the height.
2545
+ # @param dim [Wx::RTC::TextAttrDimension]
2546
+ # @return [void]
2547
+ def set_height(*args) end
2548
+ alias_method :height=, :set_height
2549
+
2550
+ # Is the size valid?
2551
+ # @return [Boolean]
2552
+ def is_valid; end
2553
+ alias_method :valid?, :is_valid
2554
+
2555
+ end # TextAttrSize
2556
+
2557
+ # Stores selection information.
2558
+ # The selection does not have to be contiguous, though currently non-contiguous selections are only supported for a range of table cells (a geometric block of cells can consist of a set of non-contiguous positions).
2559
+ # The selection consists of an array of ranges, and the container that is the context for the selection. It follows that a single selection object can only represent ranges with the same parent container.
2560
+ # ===
2561
+ #
2562
+ # Category: Rich Text
2563
+ # @see Wx::RTC::RichTextBuffer
2564
+ # @see Wx::RTC::RichTextCtrl
2565
+ #
2566
+ #
2567
+ #
2568
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
2569
+ class RichTextSelection < ::Object
2570
+
2571
+ # @overload initialize(sel)
2572
+ # Copy constructor.
2573
+ # @param sel [Wx::RTC::RichTextSelection]
2574
+ # @return [Wx::RTC::RichTextSelection]
2575
+ # @overload initialize(range, container)
2576
+ # Creates a selection from a range and a container.
2577
+ # @param range [Range]
2578
+ # @param container [Wx::RTC::RichTextParagraphLayoutBox]
2579
+ # @return [Wx::RTC::RichTextSelection]
2580
+ # @overload initialize()
2581
+ # Default constructor.
2582
+ # @return [Wx::RTC::RichTextSelection]
2583
+ def initialize(*args) end
2584
+
2585
+ # Resets the selection.
2586
+ # @return [void]
2587
+ def reset; end
2588
+
2589
+ # @overload set(range, container)
2590
+ # Sets the selection.
2591
+ # @param range [Range]
2592
+ # @param container [Wx::RTC::RichTextParagraphLayoutBox]
2593
+ # @return [void]
2594
+ # @overload set(ranges, container)
2595
+ # Sets the selections from an array of ranges and a container object.
2596
+ # @param ranges [Array<Range>]
2597
+ # @param container [Wx::RTC::RichTextParagraphLayoutBox]
2598
+ # @return [void]
2599
+ def set(*args) end
2600
+
2601
+ # Adds a range to the selection.
2602
+ # @param range [Range]
2603
+ # @return [void]
2604
+ def add(range) end
2605
+
2606
+ # Copies from sel.
2607
+ # @param sel [Wx::RTC::RichTextSelection]
2608
+ # @return [void]
2609
+ def copy(sel) end
2610
+
2611
+ # Equality operator.
2612
+ # @param sel [Wx::RTC::RichTextSelection]
2613
+ # @return [Boolean]
2614
+ def ==(sel) end
2615
+
2616
+ # Returns the selection ranges.
2617
+ # @return [Array<Range>]
2618
+ def get_ranges; end
2619
+ alias_method :ranges, :get_ranges
2620
+
2621
+ # Sets the selection ranges.
2622
+ # @param ranges [Array<Range>]
2623
+ # @return [void]
2624
+ def set_ranges(ranges) end
2625
+ alias_method :ranges=, :set_ranges
2626
+
2627
+ # Returns the number of ranges in the selection.
2628
+ # @return [Integer]
2629
+ def get_count; end
2630
+ alias_method :count, :get_count
2631
+
2632
+ # @overload get_range(i)
2633
+ # Returns the range at the given index.
2634
+ # @param i [Integer]
2635
+ # @return [Range]
2636
+ # @overload get_range()
2637
+ # Returns the first range if there is one, otherwise {Wx::RICHTEXT_NO_SELECTION}.
2638
+ # @return [Range]
2639
+ def get_range(*args) end
2640
+ alias_method :range, :get_range
2641
+
2642
+ # Sets a single range.
2643
+ # @param range [Range]
2644
+ # @return [void]
2645
+ def set_range(range) end
2646
+ alias_method :range=, :set_range
2647
+
2648
+ # Returns the container for which the selection is valid.
2649
+ # @return [Wx::RTC::RichTextParagraphLayoutBox]
2650
+ def get_container; end
2651
+ alias_method :container, :get_container
2652
+
2653
+ # Sets the container for which the selection is valid.
2654
+ # @param container [Wx::RTC::RichTextParagraphLayoutBox]
2655
+ # @return [void]
2656
+ def set_container(container) end
2657
+ alias_method :container=, :set_container
2658
+
2659
+ # Returns true if the selection is valid.
2660
+ # @return [Boolean]
2661
+ def is_valid; end
2662
+ alias_method :valid?, :is_valid
2663
+
2664
+ # Returns the selection appropriate to the specified object, if any; returns an empty array if none at the level of the object's container.
2665
+ # @param obj [Wx::RTC::RichTextObject]
2666
+ # @return [Array<Range>]
2667
+ def get_selection_for_object(obj) end
2668
+ alias_method :selection_for_object, :get_selection_for_object
2669
+
2670
+ # @overload within_selection(pos, obj)
2671
+ # Returns true if the given position is within the selection.
2672
+ # @param pos [Integer]
2673
+ # @param obj [Wx::RTC::RichTextObject]
2674
+ # @return [Boolean]
2675
+ # @overload within_selection(pos)
2676
+ # Returns true if the given position is within the selection.
2677
+ # @param pos [Integer]
2678
+ # @return [Boolean]
2679
+ def within_selection(*args) end
2680
+
2681
+ # @overload self.within_selection(pos, ranges)
2682
+ # Returns true if the given position is within the selection range.
2683
+ # @param pos [Integer]
2684
+ # @param ranges [Array<Range>]
2685
+ # @return [Boolean]
2686
+ # @overload self.within_selection(range, ranges)
2687
+ # Returns true if the given range is within the selection range.
2688
+ # @param range [Range]
2689
+ # @param ranges [Array<Range>]
2690
+ # @return [Boolean]
2691
+ def self.within_selection(*args) end
2692
+
2693
+ end # RichTextSelection
2694
+
2695
+ # A simple property class using {Wx::Variants}.
2696
+ # This is used to give each rich text object the ability to store custom properties that can be used by the application.
2697
+ # ===
2698
+ #
2699
+ # Category: Rich Text
2700
+ # @see Wx::RTC::RichTextBuffer
2701
+ # @see Wx::RTC::RichTextObject
2702
+ # @see Wx::RTC::RichTextCtrl
2703
+ #
2704
+ #
2705
+ #
2706
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
2707
+ class RichTextProperties < Object
2708
+
2709
+ # @overload initialize()
2710
+ # Default constructor.
2711
+ # @return [Wx::RTC::RichTextProperties]
2712
+ # @overload initialize(props)
2713
+ # Copy constructor.
2714
+ # @param props [Wx::RTC::RichTextProperties]
2715
+ # @return [Wx::RTC::RichTextProperties]
2716
+ def initialize(*args) end
2717
+
2718
+ # Equality operator.
2719
+ # @param props [Wx::RTC::RichTextProperties]
2720
+ # @return [Boolean]
2721
+ def ==(props) end
2722
+
2723
+ # Copies from props.
2724
+ # @param props [Wx::RTC::RichTextProperties]
2725
+ # @return [void]
2726
+ def copy(props) end
2727
+
2728
+ # Clears the properties.
2729
+ # @return [void]
2730
+ def clear; end
2731
+
2732
+ # Returns the array of variants implementing the properties.
2733
+ # @return [Array<Wx::Variant>]
2734
+ def get_properties; end
2735
+ alias_method :properties, :get_properties
2736
+
2737
+ # Sets the array of variants.
2738
+ # @param props [Array<Wx::Variant>]
2739
+ # @return [void]
2740
+ def set_properties(props) end
2741
+ alias_method :properties=, :set_properties
2742
+
2743
+ # Returns all the property names.
2744
+ # @return [Array<String>]
2745
+ def get_property_names; end
2746
+ alias_method :property_names, :get_property_names
2747
+
2748
+ # Returns a count of the properties.
2749
+ # @return [Integer]
2750
+ def get_count; end
2751
+ alias_method :count, :get_count
2752
+
2753
+ # Returns true if the given property is found.
2754
+ # @param name [String]
2755
+ # @return [Boolean]
2756
+ def has_property(name) end
2757
+ alias_method :has_property?, :has_property
2758
+
2759
+ # Finds the given property.
2760
+ # @param name [String]
2761
+ # @return [Integer]
2762
+ def find(name) end
2763
+
2764
+ # Removes the given property.
2765
+ # @param name [String]
2766
+ # @return [Boolean]
2767
+ def remove(name) end
2768
+
2769
+ # Gets the property variant by name.
2770
+ # @param name [String]
2771
+ # @return [Wx::Variant]
2772
+ def get_property(name) end
2773
+ alias_method :property, :get_property
2774
+
2775
+ # Finds or creates a property with the given name, returning a pointer to the variant.
2776
+ # @param name [String]
2777
+ # @return [Wx::Variant]
2778
+ def find_or_create_property(name) end
2779
+
2780
+ # Gets the value of the named property as a string.
2781
+ # @param name [String]
2782
+ # @return [String]
2783
+ def get_property_string(name) end
2784
+ alias_method :property_string, :get_property_string
2785
+
2786
+ # Gets the value of the named property as a long integer.
2787
+ # @param name [String]
2788
+ # @return [Integer]
2789
+ def get_property_long(name) end
2790
+ alias_method :property_long, :get_property_long
2791
+
2792
+ # Gets the value of the named property as a boolean.
2793
+ # @param name [String]
2794
+ # @return [Boolean]
2795
+ def get_property_bool(name) end
2796
+ alias_method :property_bool, :get_property_bool
2797
+
2798
+ # Gets the value of the named property as a double.
2799
+ # @param name [String]
2800
+ # @return [Float]
2801
+ def get_property_double(name) end
2802
+ alias_method :property_double, :get_property_double
2803
+
2804
+ # @overload set_property(variant)
2805
+ # Sets the property by passing a variant which contains a name and value.
2806
+ # @param variant [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
2807
+ # @return [void]
2808
+ # @overload set_property(name, variant)
2809
+ # Sets a property by name and variant.
2810
+ # @param name [String]
2811
+ # @param variant [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
2812
+ # @return [void]
2813
+ # @overload set_property(name, value)
2814
+ # Sets a property by name and string value.
2815
+ # @param name [String]
2816
+ # @param value [String]
2817
+ # @return [void]
2818
+ # @overload set_property(name, value)
2819
+ # Sets property by name and long integer value.
2820
+ # @param name [String]
2821
+ # @param value [Integer]
2822
+ # @return [void]
2823
+ # @overload set_property(name, value)
2824
+ # Sets property by name and double value.
2825
+ # @param name [String]
2826
+ # @param value [Float]
2827
+ # @return [void]
2828
+ # @overload set_property(name, value)
2829
+ # Sets property by name and boolean value.
2830
+ # @param name [String]
2831
+ # @param value [Boolean]
2832
+ # @return [void]
2833
+ def set_property(*args) end
2834
+ alias_method :property=, :set_property
2835
+
2836
+ # Removes the given properties from these properties.
2837
+ # @param properties [Wx::RTC::RichTextProperties]
2838
+ # @return [void]
2839
+ def remove_properties(properties) end
2840
+
2841
+ # Merges the given properties with these properties.
2842
+ # @param properties [Wx::RTC::RichTextProperties]
2843
+ # @return [void]
2844
+ def merge_properties(properties) end
2845
+
2846
+ end # RichTextProperties
2847
+
2848
+
2849
+ end