wxruby3 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (541) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS.md +32 -25
  3. data/INSTALL.md +21 -6
  4. data/README.md +5 -5
  5. data/assets/repo-social-preview.odg +0 -0
  6. data/assets/repo-social-preview.xcf +0 -0
  7. data/ext/wxruby3/include/wxRubyApp.h +58 -45
  8. data/ext/wxruby3/include/wxruby-runtime.h +78 -1
  9. data/ext/wxruby3/swig/common.i +2 -2
  10. data/ext/wxruby3/swig/custom/director.swg +2 -2
  11. data/ext/wxruby3/swig/custom/rubyprimtypes.swg +59 -15
  12. data/ext/wxruby3/swig/custom/rubyrun.swg +4 -0
  13. data/ext/wxruby3/swig/custom/rubytracking.swg +4 -0
  14. data/ext/wxruby3/swig/custom/swiglabels.swg +129 -0
  15. data/ext/wxruby3/swig/custom/swigrun.swg +15 -0
  16. data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +20 -0
  17. data/ext/wxruby3/swig/mark_free_impl.i +154 -88
  18. data/ext/wxruby3/swig/memory_management.i +1 -0
  19. data/ext/wxruby3/swig/wx.i +73 -44
  20. data/lib/wx/aui/events/evt_list.rb +148 -0
  21. data/lib/wx/aui/require.rb +0 -1
  22. data/lib/wx/core/calendar_ctrl.rb +15 -0
  23. data/lib/wx/core/clipboard.rb +9 -13
  24. data/lib/wx/core/config.rb +1 -1
  25. data/lib/wx/core/events/evt_list.rb +1458 -0
  26. data/lib/wx/core/font/encoding.rb +113 -0
  27. data/lib/wx/core/generic_validator.rb +83 -31
  28. data/lib/wx/core/tipwindow.rb +16 -0
  29. data/lib/wx/core/variant.rb +6 -0
  30. data/lib/wx/doc/aui/auitabctrl.rb +35 -0
  31. data/lib/wx/doc/config.rb +2 -2
  32. data/lib/wx/doc/functions.rb +1 -1
  33. data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
  34. data/lib/wx/doc/gen/accelerator.rb +178 -0
  35. data/lib/wx/doc/gen/activity_indicator.rb +83 -0
  36. data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
  37. data/lib/wx/doc/gen/animation.rb +275 -0
  38. data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
  39. data/lib/wx/doc/gen/any_button.rb +191 -0
  40. data/lib/wx/doc/gen/app.rb +463 -0
  41. data/lib/wx/doc/gen/app_traits.rb +396 -0
  42. data/lib/wx/doc/gen/art_provider.rb +605 -0
  43. data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
  44. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
  45. data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
  46. data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
  47. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
  48. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
  49. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
  50. data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
  51. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
  52. data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
  53. data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
  54. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
  55. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
  56. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
  57. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
  58. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
  59. data/lib/wx/doc/gen/aui/event_list.rb +179 -0
  60. data/lib/wx/doc/gen/banner_window.rb +124 -0
  61. data/lib/wx/doc/gen/bitmap.rb +731 -0
  62. data/lib/wx/doc/gen/bitmap_button.rb +123 -0
  63. data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
  64. data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
  65. data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
  66. data/lib/wx/doc/gen/box_sizer.rb +85 -0
  67. data/lib/wx/doc/gen/brush.rb +251 -0
  68. data/lib/wx/doc/gen/busy_info.rb +157 -0
  69. data/lib/wx/doc/gen/button.rb +182 -0
  70. data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
  71. data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
  72. data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
  73. data/lib/wx/doc/gen/calendar_event.rb +147 -0
  74. data/lib/wx/doc/gen/caret.rb +97 -0
  75. data/lib/wx/doc/gen/check_box.rb +175 -0
  76. data/lib/wx/doc/gen/check_list_box.rb +121 -0
  77. data/lib/wx/doc/gen/choice.rb +175 -0
  78. data/lib/wx/doc/gen/choicebook.rb +116 -0
  79. data/lib/wx/doc/gen/client_dc.rb +43 -0
  80. data/lib/wx/doc/gen/clipboard.rb +144 -0
  81. data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
  82. data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
  83. data/lib/wx/doc/gen/colour.rb +333 -0
  84. data/lib/wx/doc/gen/colour_dialog.rb +190 -0
  85. data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
  86. data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
  87. data/lib/wx/doc/gen/combo_box.rb +292 -0
  88. data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
  89. data/lib/wx/doc/gen/command_link_button.rb +134 -0
  90. data/lib/wx/doc/gen/config_base.rb +10 -0
  91. data/lib/wx/doc/gen/context_help_button.rb +109 -0
  92. data/lib/wx/doc/gen/control.rb +277 -0
  93. data/lib/wx/doc/gen/control_with_items.rb +253 -0
  94. data/lib/wx/doc/gen/core.rb +45 -0
  95. data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
  96. data/lib/wx/doc/gen/cursor.rb +193 -0
  97. data/lib/wx/doc/gen/data_format.rb +85 -0
  98. data/lib/wx/doc/gen/data_object.rb +436 -0
  99. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  100. data/lib/wx/doc/gen/date_event.rb +49 -0
  101. data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
  102. data/lib/wx/doc/gen/dc.rb +1631 -0
  103. data/lib/wx/doc/gen/dc_overlay.rb +102 -0
  104. data/lib/wx/doc/gen/defs.rb +2802 -0
  105. data/lib/wx/doc/gen/dial_up_event.rb +45 -0
  106. data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
  107. data/lib/wx/doc/gen/dialog.rb +541 -0
  108. data/lib/wx/doc/gen/dir_dialog.rb +164 -0
  109. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
  110. data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
  111. data/lib/wx/doc/gen/display.rb +238 -0
  112. data/lib/wx/doc/gen/drag_drop.rb +299 -0
  113. data/lib/wx/doc/gen/drag_image.rb +116 -0
  114. data/lib/wx/doc/gen/editable_list_box.rb +109 -0
  115. data/lib/wx/doc/gen/event.rb +990 -0
  116. data/lib/wx/doc/gen/event_blocker.rb +50 -0
  117. data/lib/wx/doc/gen/event_filter.rb +92 -0
  118. data/lib/wx/doc/gen/event_list.rb +1644 -0
  119. data/lib/wx/doc/gen/events.rb +2809 -0
  120. data/lib/wx/doc/gen/evt_handler.rb +229 -0
  121. data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
  122. data/lib/wx/doc/gen/file_ctrl.rb +231 -0
  123. data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
  124. data/lib/wx/doc/gen/file_dialog.rb +353 -0
  125. data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
  126. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
  127. data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
  128. data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
  129. data/lib/wx/doc/gen/file_system.rb +232 -0
  130. data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
  131. data/lib/wx/doc/gen/find_replace_data.rb +60 -0
  132. data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
  133. data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
  134. data/lib/wx/doc/gen/font.rb +1379 -0
  135. data/lib/wx/doc/gen/font_data.rb +151 -0
  136. data/lib/wx/doc/gen/font_dialog.rb +88 -0
  137. data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
  138. data/lib/wx/doc/gen/font_picker_event.rb +65 -0
  139. data/lib/wx/doc/gen/frame.rb +352 -0
  140. data/lib/wx/doc/gen/fs_file.rb +337 -0
  141. data/lib/wx/doc/gen/functions.rb +10 -0
  142. data/lib/wx/doc/gen/gauge.rb +157 -0
  143. data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
  144. data/lib/wx/doc/gen/gcdc.rb +46 -0
  145. data/lib/wx/doc/gen/gdi_common.rb +1271 -0
  146. data/lib/wx/doc/gen/gdi_object.rb +31 -0
  147. data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
  148. data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
  149. data/lib/wx/doc/gen/geometry.rb +661 -0
  150. data/lib/wx/doc/gen/graphics_context.rb +1184 -0
  151. data/lib/wx/doc/gen/graphics_object.rb +750 -0
  152. data/lib/wx/doc/gen/grid/event_list.rb +191 -0
  153. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
  154. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
  155. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
  156. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
  157. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
  158. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
  159. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
  160. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
  161. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
  162. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
  163. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
  164. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
  165. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
  166. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
  167. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
  168. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
  169. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
  170. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
  171. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
  172. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
  173. data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
  174. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
  175. data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
  176. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
  177. data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
  178. data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
  179. data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
  180. data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
  181. data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
  182. data/lib/wx/doc/gen/grid_sizer.rb +195 -0
  183. data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
  184. data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
  185. data/lib/wx/doc/gen/header_ctrl.rb +880 -0
  186. data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
  187. data/lib/wx/doc/gen/help_controller.rb +195 -0
  188. data/lib/wx/doc/gen/help_provider.rb +98 -0
  189. data/lib/wx/doc/gen/html/event_list.rb +38 -0
  190. data/lib/wx/doc/gen/html/html_cell.rb +536 -0
  191. data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
  192. data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
  193. data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
  194. data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
  195. data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
  196. data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
  197. data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
  198. data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
  199. data/lib/wx/doc/gen/html/html_printout.rb +109 -0
  200. data/lib/wx/doc/gen/html/html_window.rb +461 -0
  201. data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
  202. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  203. data/lib/wx/doc/gen/icon.rb +267 -0
  204. data/lib/wx/doc/gen/icon_location.rb +40 -0
  205. data/lib/wx/doc/gen/image.rb +1371 -0
  206. data/lib/wx/doc/gen/image_list.rb +168 -0
  207. data/lib/wx/doc/gen/info_bar.rb +195 -0
  208. data/lib/wx/doc/gen/keyboard_state.rb +140 -0
  209. data/lib/wx/doc/gen/list_box.rb +304 -0
  210. data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
  211. data/lib/wx/doc/gen/list_event.rb +208 -0
  212. data/lib/wx/doc/gen/listbook.rb +116 -0
  213. data/lib/wx/doc/gen/locale.rb +4293 -0
  214. data/lib/wx/doc/gen/log.rb +603 -0
  215. data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
  216. data/lib/wx/doc/gen/mdi_frame.rb +324 -0
  217. data/lib/wx/doc/gen/media_ctrl.rb +269 -0
  218. data/lib/wx/doc/gen/media_event.rb +117 -0
  219. data/lib/wx/doc/gen/memory_dc.rb +174 -0
  220. data/lib/wx/doc/gen/menu.rb +509 -0
  221. data/lib/wx/doc/gen/menu_bar.rb +287 -0
  222. data/lib/wx/doc/gen/menu_item.rb +362 -0
  223. data/lib/wx/doc/gen/message_dialog.rb +238 -0
  224. data/lib/wx/doc/gen/mini_frame.rb +108 -0
  225. data/lib/wx/doc/gen/mirror_dc.rb +22 -0
  226. data/lib/wx/doc/gen/mouse_state.rb +150 -0
  227. data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
  228. data/lib/wx/doc/gen/non_owned_window.rb +49 -0
  229. data/lib/wx/doc/gen/notebook.rb +278 -0
  230. data/lib/wx/doc/gen/num_validator.rb +37 -0
  231. data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
  232. data/lib/wx/doc/gen/object.rb +59 -0
  233. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
  234. data/lib/wx/doc/gen/paint_dc.rb +27 -0
  235. data/lib/wx/doc/gen/palette.rb +92 -0
  236. data/lib/wx/doc/gen/panel.rb +127 -0
  237. data/lib/wx/doc/gen/pen.rb +511 -0
  238. data/lib/wx/doc/gen/persistence_manager.rb +135 -0
  239. data/lib/wx/doc/gen/persistent_object.rb +52 -0
  240. data/lib/wx/doc/gen/persistent_window.rb +241 -0
  241. data/lib/wx/doc/gen/pg/event_list.rb +106 -0
  242. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
  243. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
  244. data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
  245. data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
  246. data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
  247. data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
  248. data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
  249. data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
  250. data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
  251. data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
  252. data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
  253. data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
  254. data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
  255. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
  256. data/lib/wx/doc/gen/picker_base.rb +152 -0
  257. data/lib/wx/doc/gen/platform_info.rb +622 -0
  258. data/lib/wx/doc/gen/popup_window.rb +107 -0
  259. data/lib/wx/doc/gen/progress_dialog.rb +100 -0
  260. data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
  261. data/lib/wx/doc/gen/prt/event_list.rb +17 -0
  262. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
  263. data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
  264. data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
  265. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
  266. data/lib/wx/doc/gen/prt/print_data.rb +804 -0
  267. data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
  268. data/lib/wx/doc/gen/prt/printer.rb +518 -0
  269. data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
  270. data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
  271. data/lib/wx/doc/gen/radio_box.rb +306 -0
  272. data/lib/wx/doc/gen/radio_button.rb +159 -0
  273. data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
  274. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
  275. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
  276. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
  277. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
  278. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
  279. data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
  280. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
  281. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
  282. data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
  283. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
  284. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
  285. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
  286. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
  287. data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
  288. data/lib/wx/doc/gen/rearrange_list.rb +123 -0
  289. data/lib/wx/doc/gen/region.rb +380 -0
  290. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  291. data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
  292. data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
  293. data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
  294. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
  295. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
  296. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
  297. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
  298. data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
  299. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
  300. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
  301. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
  302. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
  303. data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
  304. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
  305. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
  306. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
  307. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
  308. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
  309. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
  310. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
  311. data/lib/wx/doc/gen/sash_event.rb +147 -0
  312. data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
  313. data/lib/wx/doc/gen/sash_window.rb +171 -0
  314. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  315. data/lib/wx/doc/gen/screen_dc.rb +30 -0
  316. data/lib/wx/doc/gen/scroll_bar.rb +204 -0
  317. data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
  318. data/lib/wx/doc/gen/scrolled_control.rb +410 -0
  319. data/lib/wx/doc/gen/scrolled_window.rb +430 -0
  320. data/lib/wx/doc/gen/search_ctrl.rb +159 -0
  321. data/lib/wx/doc/gen/secret_store.rb +116 -0
  322. data/lib/wx/doc/gen/simplebook.rb +110 -0
  323. data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
  324. data/lib/wx/doc/gen/sizer.rb +945 -0
  325. data/lib/wx/doc/gen/sizer_item.rb +244 -0
  326. data/lib/wx/doc/gen/slider.rb +342 -0
  327. data/lib/wx/doc/gen/spin_button.rb +157 -0
  328. data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
  329. data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
  330. data/lib/wx/doc/gen/spin_double_event.rb +55 -0
  331. data/lib/wx/doc/gen/spin_event.rb +51 -0
  332. data/lib/wx/doc/gen/splash_screen.rb +113 -0
  333. data/lib/wx/doc/gen/splitter_event.rb +99 -0
  334. data/lib/wx/doc/gen/splitter_window.rb +498 -0
  335. data/lib/wx/doc/gen/static_bitmap.rb +256 -0
  336. data/lib/wx/doc/gen/static_box.rb +180 -0
  337. data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
  338. data/lib/wx/doc/gen/static_line.rb +83 -0
  339. data/lib/wx/doc/gen/static_text.rb +127 -0
  340. data/lib/wx/doc/gen/status_bar.rb +290 -0
  341. data/lib/wx/doc/gen/stc/event_list.rb +221 -0
  342. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
  343. data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
  344. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
  345. data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
  346. data/lib/wx/doc/gen/system_options.rb +129 -0
  347. data/lib/wx/doc/gen/system_settings.rb +507 -0
  348. data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
  349. data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
  350. data/lib/wx/doc/gen/text_attr.rb +756 -0
  351. data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
  352. data/lib/wx/doc/gen/text_entry.rb +441 -0
  353. data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
  354. data/lib/wx/doc/gen/text_validator.rb +245 -0
  355. data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
  356. data/lib/wx/doc/gen/timer.rb +119 -0
  357. data/lib/wx/doc/gen/timer_event.rb +68 -0
  358. data/lib/wx/doc/gen/tip_provider.rb +63 -0
  359. data/lib/wx/doc/gen/tip_window.rb +51 -0
  360. data/lib/wx/doc/gen/toggle_button.rb +182 -0
  361. data/lib/wx/doc/gen/tool_bar.rb +890 -0
  362. data/lib/wx/doc/gen/tool_tip.rb +86 -0
  363. data/lib/wx/doc/gen/toolbook.rb +118 -0
  364. data/lib/wx/doc/gen/top_level_window.rb +497 -0
  365. data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
  366. data/lib/wx/doc/gen/tree_event.rb +127 -0
  367. data/lib/wx/doc/gen/treebook.rb +180 -0
  368. data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
  369. data/lib/wx/doc/gen/utils.rb +273 -0
  370. data/lib/wx/doc/gen/v_list_box.rb +272 -0
  371. data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
  372. data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
  373. data/lib/wx/doc/gen/validator.rb +68 -0
  374. data/lib/wx/doc/gen/variant.rb +294 -0
  375. data/lib/wx/doc/gen/window.rb +2917 -0
  376. data/lib/wx/doc/gen/window_dc.rb +38 -0
  377. data/lib/wx/doc/gen/window_disabler.rb +30 -0
  378. data/lib/wx/doc/gen/with_images.rb +84 -0
  379. data/lib/wx/doc/gen/wizard.rb +257 -0
  380. data/lib/wx/doc/gen/wizard_event.rb +113 -0
  381. data/lib/wx/doc/gen/wizard_page.rb +65 -0
  382. data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
  383. data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
  384. data/lib/wx/doc/gen/xml_node.rb +316 -0
  385. data/lib/wx/doc/gen/xml_resource.rb +320 -0
  386. data/lib/wx/doc/generic_validator.rb +5 -0
  387. data/lib/wx/doc/pg/pg_property.rb +5 -0
  388. data/lib/wx/doc/tip_window.rb +18 -6
  389. data/lib/wx/doc/variant.rb +30 -0
  390. data/lib/wx/grid/events/evt_list.rb +166 -0
  391. data/lib/wx/html/events/evt_list.rb +27 -0
  392. data/lib/wx/html/simple_html_listbox.rb +46 -33
  393. data/lib/wx/keyword_defs.rb +9 -0
  394. data/lib/wx/pg/events/evt_list.rb +73 -0
  395. data/lib/wx/pg/pg_property.rb +85 -52
  396. data/lib/wx/pg/property_grid_interface.rb +12 -2
  397. data/lib/wx/rbn/events/evt_list.rb +102 -0
  398. data/lib/wx/rtc/events/evt_list.rb +98 -0
  399. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  400. data/lib/wx/stc/events/evt_list.rb +178 -0
  401. data/lib/wx/version.rb +1 -1
  402. data/lib/wx/wxruby/cmd/setup.rb +6 -0
  403. data/rakelib/configure.rb +9 -0
  404. data/rakelib/gem.rake +84 -66
  405. data/rakelib/gem.rb +4 -20
  406. data/rakelib/lib/config/linux.rb +1 -1
  407. data/rakelib/lib/config/macosx.rb +15 -1
  408. data/rakelib/lib/config/pkgman/linux.rb +7 -2
  409. data/rakelib/lib/config/unixish.rb +3 -3
  410. data/rakelib/lib/config.rb +19 -8
  411. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  412. data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
  413. data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
  414. data/rakelib/lib/core/include/swigrun.inc +189 -0
  415. data/rakelib/lib/core/package.rb +3 -1
  416. data/rakelib/lib/core/spec.rb +1 -1
  417. data/rakelib/lib/director/accelerator.rb +1 -1
  418. data/rakelib/lib/director/animation.rb +1 -0
  419. data/rakelib/lib/director/app_traits.rb +1 -1
  420. data/rakelib/lib/director/aui_manager.rb +21 -14
  421. data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
  422. data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
  423. data/rakelib/lib/director/aui_notebook.rb +20 -3
  424. data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
  425. data/rakelib/lib/director/bitmap_combobox.rb +4 -2
  426. data/rakelib/lib/director/calendar_ctrl.rb +72 -14
  427. data/rakelib/lib/director/clipboard.rb +2 -0
  428. data/rakelib/lib/director/data_object.rb +15 -7
  429. data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
  430. data/rakelib/lib/director/display.rb +81 -0
  431. data/rakelib/lib/director/event.rb +33 -16
  432. data/rakelib/lib/director/event_handler.rb +27 -2
  433. data/rakelib/lib/director/functions.rb +9 -0
  434. data/rakelib/lib/director/geometry.rb +5 -0
  435. data/rakelib/lib/director/grid_ctrl.rb +123 -28
  436. data/rakelib/lib/director/help_provider.rb +1 -1
  437. data/rakelib/lib/director/html_listbox.rb +30 -4
  438. data/rakelib/lib/director/hvscrolled.rb +154 -0
  439. data/rakelib/lib/director/image_list.rb +1 -0
  440. data/rakelib/lib/director/mdi_frame.rb +4 -0
  441. data/rakelib/lib/director/menu.rb +56 -15
  442. data/rakelib/lib/director/menu_bar.rb +62 -0
  443. data/rakelib/lib/director/menu_item.rb +7 -1
  444. data/rakelib/lib/director/num_validator.rb +27 -0
  445. data/rakelib/lib/director/numeric_property_validator.rb +9 -0
  446. data/rakelib/lib/director/persistent_window.rb +16 -0
  447. data/rakelib/lib/director/pgproperty.rb +3 -2
  448. data/rakelib/lib/director/popup_window.rb +2 -0
  449. data/rakelib/lib/director/preview_frame.rb +29 -6
  450. data/rakelib/lib/director/printer.rb +59 -5
  451. data/rakelib/lib/director/property_grid.rb +37 -18
  452. data/rakelib/lib/director/property_grid_interface.rb +10 -8
  453. data/rakelib/lib/director/property_grid_manager.rb +99 -39
  454. data/rakelib/lib/director/property_grid_page.rb +60 -0
  455. data/rakelib/lib/director/rich_tooltip.rb +22 -0
  456. data/rakelib/lib/director/richtext_ctrl.rb +5 -0
  457. data/rakelib/lib/director/richtext_object.rb +13 -4
  458. data/rakelib/lib/director/richtext_style_listbox.rb +11 -2
  459. data/rakelib/lib/director/scrolled_t.rb +3 -0
  460. data/rakelib/lib/director/searchctrl.rb +1 -0
  461. data/rakelib/lib/director/task_bar_icon.rb +14 -8
  462. data/rakelib/lib/director/text_validator.rb +9 -0
  463. data/rakelib/lib/director/tip_window.rb +117 -6
  464. data/rakelib/lib/director/tool_bar.rb +6 -0
  465. data/rakelib/lib/director/top_level_window.rb +0 -1
  466. data/rakelib/lib/director/utils.rb +3 -1
  467. data/rakelib/lib/director/validator.rb +12 -0
  468. data/rakelib/lib/director/variant.rb +64 -20
  469. data/rakelib/lib/director/vlistbox.rb +29 -22
  470. data/rakelib/lib/director/window.rb +12 -2
  471. data/rakelib/lib/director/xml_resource.rb +6 -0
  472. data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
  473. data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
  474. data/rakelib/lib/generate/doc.rb +12 -7
  475. data/rakelib/lib/generate/interface.rb +16 -1
  476. data/rakelib/lib/specs/interfaces.rb +6 -2
  477. data/rakelib/lib/swig_runner.rb +12 -12
  478. data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
  479. data/rakelib/lib/typemap/common.rb +3 -3
  480. data/rakelib/lib/typemap/print_page_range.rb +32 -8
  481. data/samples/art/wxruby-512x512.png +0 -0
  482. data/samples/calendar/calendar.rb +64 -1
  483. data/samples/dialogs/dialogs.rb +172 -0
  484. data/samples/dialogs/tip.xpm +157 -0
  485. data/samples/drawing/maths_images.rb +1 -1
  486. data/samples/event/event.rb +1 -1
  487. data/samples/printing/printing2.rb +1 -1
  488. data/samples/sampler.rb +26 -8
  489. data/samples/text/textctrl.rb +2 -2
  490. data/samples/treectrl/treectrl.rb +2 -2
  491. data/tests/lib/leaked_process_event_exception_test.rb +1 -1
  492. data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
  493. data/tests/lib/wxapp_runner.rb +31 -41
  494. data/tests/lib/wxframe_runner.rb +23 -11
  495. data/tests/lib/wxrb_test.rb +58 -0
  496. data/tests/test_app_event_filter.rb +1 -1
  497. data/tests/test_app_exit_exception.rb +3 -3
  498. data/tests/test_app_init_exception.rb +3 -3
  499. data/tests/test_app_traits.rb +24 -21
  500. data/tests/test_art.rb +7 -7
  501. data/tests/test_art_provider.rb +1 -1
  502. data/tests/test_basic.rb +2 -2
  503. data/tests/test_book_controls.rb +1 -1
  504. data/tests/test_box_sizer.rb +1 -1
  505. data/tests/test_clipboard.rb +5 -5
  506. data/tests/test_combo_ctrl.rb +2 -2
  507. data/tests/test_config.rb +11 -1
  508. data/tests/test_dc.rb +1 -1
  509. data/tests/test_dialog.rb +1 -1
  510. data/tests/test_event_handling.rb +1 -1
  511. data/tests/test_events.rb +1 -1
  512. data/tests/test_exceptions.rb +2 -2
  513. data/tests/test_ext_controls.rb +10 -10
  514. data/tests/test_file_dialog.rb +1 -1
  515. data/tests/test_font.rb +1 -1
  516. data/tests/test_gdi_object.rb +1 -1
  517. data/tests/test_geometry.rb +2 -2
  518. data/tests/test_grid_sizer.rb +2 -2
  519. data/tests/test_intl.rb +1 -1
  520. data/tests/test_item_data.rb +12 -12
  521. data/tests/test_list_ctrl.rb +1 -1
  522. data/tests/test_log.rb +2 -2
  523. data/tests/test_media_ctrl.rb +1 -1
  524. data/tests/test_menu.rb +114 -43
  525. data/tests/test_proof_check.rb +1 -1
  526. data/tests/test_propgrid.rb +857 -0
  527. data/tests/test_richtext.rb +10 -24
  528. data/tests/test_secret_store.rb +1 -1
  529. data/tests/test_sizer.rb +1 -1
  530. data/tests/test_std_controls.rb +8 -8
  531. data/tests/test_styled_text_ctrl.rb +1 -1
  532. data/tests/test_timer.rb +1 -1
  533. data/tests/test_tree_ctrl.rb +1 -1
  534. data/tests/test_validators.rb +79 -36
  535. data/tests/test_variant.rb +1 -1
  536. data/tests/test_window.rb +11 -11
  537. data/tests/testapp.rb +2 -2
  538. data/tests/testapp_noframe.rb +2 -2
  539. metadata +402 -12
  540. data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
  541. data/rakelib/lib/director/hvscrolled_window.rb +0 -140
@@ -0,0 +1,1033 @@
1
+ # :stopdoc:
2
+ # This file is automatically generated by the WXRuby3 documentation
3
+ # generator. Do not alter this file.
4
+ # :startdoc:
5
+
6
+
7
+ module Wx
8
+
9
+ #
10
+ TE_NO_VSCROLL = 2
11
+
12
+ #
13
+ TE_READONLY = 16
14
+
15
+ #
16
+ TE_MULTILINE = 32
17
+
18
+ #
19
+ TE_PROCESS_TAB = 64
20
+
21
+ #
22
+ TE_LEFT = 0
23
+
24
+ #
25
+ TE_CENTER = 256
26
+
27
+ #
28
+ TE_RIGHT = 512
29
+
30
+ #
31
+ TE_CENTRE = 256
32
+
33
+ #
34
+ TE_RICH = 128
35
+
36
+ #
37
+ TE_PROCESS_ENTER = 1024
38
+
39
+ #
40
+ TE_PASSWORD = 2048
41
+
42
+ #
43
+ TE_AUTO_URL = 4096
44
+
45
+ #
46
+ TE_NOHIDESEL = 8192
47
+
48
+ #
49
+ TE_DONTWRAP = 1073741824
50
+
51
+ #
52
+ TE_CHARWRAP = 16384
53
+
54
+ #
55
+ TE_WORDWRAP = 1
56
+
57
+ #
58
+ TE_BESTWRAP = 0
59
+
60
+ #
61
+ TE_RICH2 = 32768
62
+
63
+ # File types supported by {Wx::TextCtrl#load_file} and {Wx::TextCtrl#save_file}.
64
+ #
65
+ #
66
+ #
67
+ class TextCtrlFileType < Wx::Enum
68
+
69
+ # Format determined by file extension when loading/saving the control's content.
70
+ #
71
+ TEXT_TYPE_ANY = Wx::TextCtrlFileType.new(0)
72
+
73
+ # Plain Text Format.
74
+ #
75
+ TEXT_TYPE_PLAIN = Wx::TextCtrlFileType.new(1)
76
+
77
+ # Rich Text Format.
78
+ #
79
+ TEXT_TYPE_RTF = Wx::TextCtrlFileType.new(2)
80
+
81
+ end # TextCtrlFileType
82
+
83
+ # One of the following values can be passed to {Wx::TextAttr#set_alignment} to determine paragraph alignment.
84
+ #
85
+ #
86
+ #
87
+ class TextAttrAlignment < Wx::Enum
88
+
89
+ #
90
+ #
91
+ TEXT_ALIGNMENT_DEFAULT = Wx::TextAttrAlignment.new(0)
92
+
93
+ #
94
+ #
95
+ TEXT_ALIGNMENT_LEFT = Wx::TextAttrAlignment.new(1)
96
+
97
+ #
98
+ #
99
+ TEXT_ALIGNMENT_CENTRE = Wx::TextAttrAlignment.new(2)
100
+
101
+ #
102
+ #
103
+ TEXT_ALIGNMENT_CENTER = Wx::TextAttrAlignment.new(2)
104
+
105
+ #
106
+ #
107
+ TEXT_ALIGNMENT_RIGHT = Wx::TextAttrAlignment.new(3)
108
+
109
+ # {Wx::TextAttrAlignment::TEXT_ALIGNMENT_JUSTIFIED} is implemented for {Wx::TextCtrl} under WXMSW, WXOSX and WXGTK.
110
+ #
111
+ TEXT_ALIGNMENT_JUSTIFIED = Wx::TextAttrAlignment.new(4)
112
+
113
+ end # TextAttrAlignment
114
+
115
+ # The following values are passed in a bitlist to {Wx::TextAttr#set_flags} to determine what attributes will be considered when setting the attributes for a text control.
116
+ #
117
+ #
118
+ #
119
+ class TextAttrFlags < Wx::Enum
120
+
121
+ #
122
+ #
123
+ TEXT_ATTR_TEXT_COLOUR = Wx::TextAttrFlags.new(1)
124
+
125
+ #
126
+ #
127
+ TEXT_ATTR_BACKGROUND_COLOUR = Wx::TextAttrFlags.new(2)
128
+
129
+ #
130
+ #
131
+ TEXT_ATTR_FONT_FACE = Wx::TextAttrFlags.new(4)
132
+
133
+ #
134
+ #
135
+ TEXT_ATTR_FONT_POINT_SIZE = Wx::TextAttrFlags.new(8)
136
+
137
+ #
138
+ #
139
+ TEXT_ATTR_FONT_PIXEL_SIZE = Wx::TextAttrFlags.new(268435456)
140
+
141
+ #
142
+ #
143
+ TEXT_ATTR_FONT_WEIGHT = Wx::TextAttrFlags.new(16)
144
+
145
+ #
146
+ #
147
+ TEXT_ATTR_FONT_ITALIC = Wx::TextAttrFlags.new(32)
148
+
149
+ #
150
+ #
151
+ TEXT_ATTR_FONT_UNDERLINE = Wx::TextAttrFlags.new(64)
152
+
153
+ #
154
+ #
155
+ TEXT_ATTR_FONT_STRIKETHROUGH = Wx::TextAttrFlags.new(134217728)
156
+
157
+ #
158
+ #
159
+ TEXT_ATTR_FONT_ENCODING = Wx::TextAttrFlags.new(33554432)
160
+
161
+ #
162
+ #
163
+ TEXT_ATTR_FONT_FAMILY = Wx::TextAttrFlags.new(67108864)
164
+
165
+ #
166
+ #
167
+ TEXT_ATTR_FONT_SIZE = Wx::TextAttrFlags.new(268435464)
168
+
169
+ # Defined as the combination of all <code>wxTEXT_ATTR_FONT_*</code> values above.
170
+ #
171
+ TEXT_ATTR_FONT = Wx::TextAttrFlags.new(503316604)
172
+
173
+ #
174
+ #
175
+ TEXT_ATTR_ALIGNMENT = Wx::TextAttrFlags.new(128)
176
+
177
+ #
178
+ #
179
+ TEXT_ATTR_LEFT_INDENT = Wx::TextAttrFlags.new(256)
180
+
181
+ #
182
+ #
183
+ TEXT_ATTR_RIGHT_INDENT = Wx::TextAttrFlags.new(512)
184
+
185
+ #
186
+ #
187
+ TEXT_ATTR_TABS = Wx::TextAttrFlags.new(1024)
188
+
189
+ #
190
+ #
191
+ TEXT_ATTR_PARA_SPACING_AFTER = Wx::TextAttrFlags.new(2048)
192
+
193
+ #
194
+ #
195
+ TEXT_ATTR_PARA_SPACING_BEFORE = Wx::TextAttrFlags.new(4096)
196
+
197
+ #
198
+ #
199
+ TEXT_ATTR_LINE_SPACING = Wx::TextAttrFlags.new(8192)
200
+
201
+ #
202
+ #
203
+ TEXT_ATTR_CHARACTER_STYLE_NAME = Wx::TextAttrFlags.new(16384)
204
+
205
+ #
206
+ #
207
+ TEXT_ATTR_PARAGRAPH_STYLE_NAME = Wx::TextAttrFlags.new(32768)
208
+
209
+ #
210
+ #
211
+ TEXT_ATTR_LIST_STYLE_NAME = Wx::TextAttrFlags.new(65536)
212
+
213
+ #
214
+ #
215
+ TEXT_ATTR_BULLET_STYLE = Wx::TextAttrFlags.new(131072)
216
+
217
+ #
218
+ #
219
+ TEXT_ATTR_BULLET_NUMBER = Wx::TextAttrFlags.new(262144)
220
+
221
+ #
222
+ #
223
+ TEXT_ATTR_BULLET_TEXT = Wx::TextAttrFlags.new(524288)
224
+
225
+ #
226
+ #
227
+ TEXT_ATTR_BULLET_NAME = Wx::TextAttrFlags.new(1048576)
228
+
229
+ # Defined as the combination of all <code>wxTEXT_ATTR_BULLET_*</code> values above.
230
+ #
231
+ TEXT_ATTR_BULLET = Wx::TextAttrFlags.new(1966080)
232
+
233
+ #
234
+ #
235
+ TEXT_ATTR_URL = Wx::TextAttrFlags.new(2097152)
236
+
237
+ #
238
+ #
239
+ TEXT_ATTR_PAGE_BREAK = Wx::TextAttrFlags.new(4194304)
240
+
241
+ #
242
+ #
243
+ TEXT_ATTR_EFFECTS = Wx::TextAttrFlags.new(8388608)
244
+
245
+ #
246
+ #
247
+ TEXT_ATTR_OUTLINE_LEVEL = Wx::TextAttrFlags.new(16777216)
248
+
249
+ #
250
+ #
251
+ TEXT_ATTR_AVOID_PAGE_BREAK_BEFORE = Wx::TextAttrFlags.new(536870912)
252
+
253
+ #
254
+ #
255
+ TEXT_ATTR_AVOID_PAGE_BREAK_AFTER = Wx::TextAttrFlags.new(1073741824)
256
+
257
+ # Combines the styles {Wx::TextAttrFlags::TEXT_ATTR_FONT}, {Wx::TextAttrFlags::TEXT_ATTR_EFFECTS}, {Wx::TextAttrFlags::TEXT_ATTR_BACKGROUND_COLOUR}, {Wx::TextAttrFlags::TEXT_ATTR_TEXT_COLOUR}, {Wx::TextAttrFlags::TEXT_ATTR_CHARACTER_STYLE_NAME}, {Wx::TextAttrFlags::TEXT_ATTR_URL}.
258
+ #
259
+ TEXT_ATTR_CHARACTER = Wx::TextAttrFlags.new(513818751)
260
+
261
+ # Combines all the styles regarding text paragraphs.
262
+ #
263
+ TEXT_ATTR_PARAGRAPH = Wx::TextAttrFlags.new(1633664896)
264
+
265
+ # Combines all previous values.
266
+ #
267
+ TEXT_ATTR_ALL = Wx::TextAttrFlags.new(2147483647)
268
+
269
+ end # TextAttrFlags
270
+
271
+ # Styles for {Wx::TextAttr#set_bullet_style}.
272
+ #
273
+ # They can be combined together as a bitlist.
274
+ #
275
+ class TextAttrBulletStyle < Wx::Enum
276
+
277
+ #
278
+ #
279
+ TEXT_ATTR_BULLET_STYLE_NONE = Wx::TextAttrBulletStyle.new(0)
280
+
281
+ #
282
+ #
283
+ TEXT_ATTR_BULLET_STYLE_ARABIC = Wx::TextAttrBulletStyle.new(1)
284
+
285
+ #
286
+ #
287
+ TEXT_ATTR_BULLET_STYLE_LETTERS_UPPER = Wx::TextAttrBulletStyle.new(2)
288
+
289
+ #
290
+ #
291
+ TEXT_ATTR_BULLET_STYLE_LETTERS_LOWER = Wx::TextAttrBulletStyle.new(4)
292
+
293
+ #
294
+ #
295
+ TEXT_ATTR_BULLET_STYLE_ROMAN_UPPER = Wx::TextAttrBulletStyle.new(8)
296
+
297
+ #
298
+ #
299
+ TEXT_ATTR_BULLET_STYLE_ROMAN_LOWER = Wx::TextAttrBulletStyle.new(16)
300
+
301
+ #
302
+ #
303
+ TEXT_ATTR_BULLET_STYLE_SYMBOL = Wx::TextAttrBulletStyle.new(32)
304
+
305
+ # {Wx::TextAttrBulletStyle::TEXT_ATTR_BULLET_STYLE_BITMAP} is unimplemented.
306
+ #
307
+ TEXT_ATTR_BULLET_STYLE_BITMAP = Wx::TextAttrBulletStyle.new(64)
308
+
309
+ #
310
+ #
311
+ TEXT_ATTR_BULLET_STYLE_PARENTHESES = Wx::TextAttrBulletStyle.new(128)
312
+
313
+ #
314
+ #
315
+ TEXT_ATTR_BULLET_STYLE_PERIOD = Wx::TextAttrBulletStyle.new(256)
316
+
317
+ #
318
+ #
319
+ TEXT_ATTR_BULLET_STYLE_STANDARD = Wx::TextAttrBulletStyle.new(512)
320
+
321
+ #
322
+ #
323
+ TEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS = Wx::TextAttrBulletStyle.new(1024)
324
+
325
+ #
326
+ #
327
+ TEXT_ATTR_BULLET_STYLE_OUTLINE = Wx::TextAttrBulletStyle.new(2048)
328
+
329
+ #
330
+ #
331
+ TEXT_ATTR_BULLET_STYLE_ALIGN_LEFT = Wx::TextAttrBulletStyle.new(0)
332
+
333
+ #
334
+ #
335
+ TEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT = Wx::TextAttrBulletStyle.new(4096)
336
+
337
+ #
338
+ #
339
+ TEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE = Wx::TextAttrBulletStyle.new(8192)
340
+
341
+ #
342
+ #
343
+ TEXT_ATTR_BULLET_STYLE_CONTINUATION = Wx::TextAttrBulletStyle.new(16384)
344
+
345
+ end # TextAttrBulletStyle
346
+
347
+ # Styles for {Wx::TextAttr#set_text_effects}.
348
+ #
349
+ # They can be combined together as a bitlist.
350
+ # Of these, only {Wx::TextAttrEffects::TEXT_ATTR_EFFECT_CAPITALS}, {Wx::TextAttrEffects::TEXT_ATTR_EFFECT_STRIKETHROUGH}, {Wx::TextAttrEffects::TEXT_ATTR_EFFECT_SUPERSCRIPT} and {Wx::TextAttrEffects::TEXT_ATTR_EFFECT_SUBSCRIPT} are implemented.
351
+ #
352
+ class TextAttrEffects < Wx::Enum
353
+
354
+ #
355
+ #
356
+ TEXT_ATTR_EFFECT_NONE = Wx::TextAttrEffects.new(0)
357
+
358
+ #
359
+ #
360
+ TEXT_ATTR_EFFECT_CAPITALS = Wx::TextAttrEffects.new(1)
361
+
362
+ #
363
+ #
364
+ TEXT_ATTR_EFFECT_SMALL_CAPITALS = Wx::TextAttrEffects.new(2)
365
+
366
+ #
367
+ #
368
+ TEXT_ATTR_EFFECT_STRIKETHROUGH = Wx::TextAttrEffects.new(4)
369
+
370
+ #
371
+ #
372
+ TEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH = Wx::TextAttrEffects.new(8)
373
+
374
+ #
375
+ #
376
+ TEXT_ATTR_EFFECT_SHADOW = Wx::TextAttrEffects.new(16)
377
+
378
+ #
379
+ #
380
+ TEXT_ATTR_EFFECT_EMBOSS = Wx::TextAttrEffects.new(32)
381
+
382
+ #
383
+ #
384
+ TEXT_ATTR_EFFECT_OUTLINE = Wx::TextAttrEffects.new(64)
385
+
386
+ #
387
+ #
388
+ TEXT_ATTR_EFFECT_ENGRAVE = Wx::TextAttrEffects.new(128)
389
+
390
+ #
391
+ #
392
+ TEXT_ATTR_EFFECT_SUPERSCRIPT = Wx::TextAttrEffects.new(256)
393
+
394
+ #
395
+ #
396
+ TEXT_ATTR_EFFECT_SUBSCRIPT = Wx::TextAttrEffects.new(512)
397
+
398
+ #
399
+ #
400
+ TEXT_ATTR_EFFECT_RTL = Wx::TextAttrEffects.new(1024)
401
+
402
+ #
403
+ #
404
+ TEXT_ATTR_EFFECT_SUPPRESS_HYPHENATION = Wx::TextAttrEffects.new(4096)
405
+
406
+ end # TextAttrEffects
407
+
408
+ # Convenience line spacing values; see {Wx::TextAttr#set_line_spacing}.
409
+ #
410
+ #
411
+ #
412
+ class TextAttrLineSpacing < Wx::Enum
413
+
414
+ #
415
+ #
416
+ TEXT_ATTR_LINE_SPACING_NORMAL = Wx::TextAttrLineSpacing.new(10)
417
+
418
+ #
419
+ #
420
+ TEXT_ATTR_LINE_SPACING_HALF = Wx::TextAttrLineSpacing.new(15)
421
+
422
+ #
423
+ #
424
+ TEXT_ATTR_LINE_SPACING_TWICE = Wx::TextAttrLineSpacing.new(20)
425
+
426
+ end # TextAttrLineSpacing
427
+
428
+ # Underline types that can be used in {Wx::TextAttr#set_font_underline}.
429
+ #
430
+ #
431
+ #
432
+ class TextAttrUnderlineType < Wx::Enum
433
+
434
+ #
435
+ #
436
+ TEXT_ATTR_UNDERLINE_NONE = Wx::TextAttrUnderlineType.new(0)
437
+
438
+ #
439
+ #
440
+ TEXT_ATTR_UNDERLINE_SOLID = Wx::TextAttrUnderlineType.new(1)
441
+
442
+ #
443
+ #
444
+ TEXT_ATTR_UNDERLINE_DOUBLE = Wx::TextAttrUnderlineType.new(2)
445
+
446
+ #
447
+ #
448
+ TEXT_ATTR_UNDERLINE_SPECIAL = Wx::TextAttrUnderlineType.new(3)
449
+
450
+ end # TextAttrUnderlineType
451
+
452
+ # Describes the possible return values of {Wx::TextCtrl#hit_test}.
453
+ #
454
+ # The element names correspond to the relationship between the point asked for and the character returned, e.g. {Wx::TextCtrlHitTestResult::TE_HT_BEFORE} means that the point is before (leftward or upward) it and so on.
455
+ #
456
+ class TextCtrlHitTestResult < Wx::Enum
457
+
458
+ # Indicates that {Wx::TextCtrl#hit_test} is not implemented on this platform.
459
+ #
460
+ TE_HT_UNKNOWN = Wx::TextCtrlHitTestResult.new(-2)
461
+
462
+ # The point is before the character returned.
463
+ #
464
+ TE_HT_BEFORE = Wx::TextCtrlHitTestResult.new(-1)
465
+
466
+ # The point is directly on the character returned.
467
+ #
468
+ TE_HT_ON_TEXT = Wx::TextCtrlHitTestResult.new(0)
469
+
470
+ # The point is below the last line of the control.
471
+ #
472
+ TE_HT_BELOW = Wx::TextCtrlHitTestResult.new(1)
473
+
474
+ # The point is beyond the end of line containing the character returned.
475
+ #
476
+ TE_HT_BEYOND = Wx::TextCtrlHitTestResult.new(2)
477
+
478
+ end # TextCtrlHitTestResult
479
+
480
+ #
481
+ #
482
+ EVT_TEXT = 10206
483
+
484
+ #
485
+ #
486
+ EVT_TEXT_ENTER = 10207
487
+
488
+ #
489
+ #
490
+ EVT_TEXT_URL = 10208
491
+
492
+ #
493
+ #
494
+ EVT_TEXT_MAXLEN = 10209
495
+
496
+ # A text control allows text to be displayed and edited.
497
+ #
498
+ # It may be single line or multi-line. Notice that a lot of methods of the text controls are found in the base {Wx::TextEntry} class which is a common base class for {Wx::TextCtrl} and other controls using a single line text entry field (e.g. {Wx::ComboBox}).
499
+ # ### Styles
500
+ #
501
+ # This class supports the following styles:
502
+ #
503
+ # - {Wx::TE_PROCESS_ENTER}: The control will generate the event {Wx::EVT_TEXT_ENTER} that can be handled by the program. Otherwise, i.e. either if this style not specified at all, or it is used, but there is no event handler for this event or the event handler called {Wx::Event#skip} to avoid overriding the default handling, pressing Enter key is either processed internally by the control or used to activate the default button of the dialog, if any.
504
+ #
505
+ # - {Wx::TE_PROCESS_TAB}: Normally, TAB key is used for keyboard navigation and pressing it in a control switches focus to the next one. With this style, this won't happen and if the TAB is not otherwise processed (e.g. by {Wx::EVT_CHAR} event handler), a literal TAB character is inserted into the control. Notice that this style has no effect for single-line text controls when using WXGTK.
506
+ #
507
+ # - {Wx::TE_MULTILINE}: The text control allows multiple lines. If this style is not specified, line break characters should not be used in the controls value.
508
+ #
509
+ # - {Wx::TE_PASSWORD}: The text will be echoed as asterisks.
510
+ #
511
+ # - {Wx::TE_READONLY}: The text will not be user-editable.
512
+ #
513
+ # - {Wx::TE_RICH}: Use rich text control under MSW, this allows having more than 64KB of text in the control. This style is ignored under other platforms and it is recommended to use {Wx::TE_RICH2} instead of it under MSW.
514
+ #
515
+ # - {Wx::TE_RICH2}: Use rich text control version 2.0 or higher under MSW, this style is ignored under other platforms. Note that this style may be turned on automatically even if it is not used explicitly when creating a text control with a long (i.e. much more than 64KiB) initial text, as creating the control would simply fail in this case under MSW if neither this style nor {Wx::TE_RICH} is used.
516
+ #
517
+ # - {Wx::TE_AUTO_URL}: Highlight the URLs and generate the {Wx::TextUrlEvents} when mouse events occur over them.
518
+ #
519
+ # - {Wx::TE_NOHIDESEL}: By default, the Windows text control doesn't show the selection when it doesn't have focus - use this style to force it to always show it. It doesn't do anything under other platforms.
520
+ #
521
+ # - {Wx::HSCROLL}: A horizontal scrollbar will be created and used, so that text won't be wrapped.
522
+ #
523
+ # - {Wx::TE_NO_VSCROLL}: For multiline controls only: vertical scrollbar will never be created. This limits the amount of text which can be entered into the control to what can be displayed in it under WXMSW but not under WXGTK or WXOSX. Currently not implemented for the other platforms.
524
+ #
525
+ # - {Wx::TE_LEFT}: The text in the control will be left-justified (default).
526
+ #
527
+ # - {Wx::TE_CENTRE}: The text in the control will be centered (WXMSW, WXGTK, WXOSX).
528
+ #
529
+ # - {Wx::TE_RIGHT}: The text in the control will be right-justified (WXMSW, WXGTK, WXOSX).
530
+ #
531
+ # - {Wx::TE_DONTWRAP}: Same as {Wx::HSCROLL} style: don't wrap at all, show horizontal scrollbar instead.
532
+ #
533
+ # - {Wx::TE_CHARWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at any position ({Wx::Univ}, WXGTK, WXOSX).
534
+ #
535
+ # - {Wx::TE_WORDWRAP}: For multiline controls only: wrap the lines too long to be shown entirely at word boundaries ({Wx::Univ}, WXMSW, WXGTK, WXOSX).
536
+ #
537
+ # - {Wx::TE_BESTWRAP}: For multiline controls only: wrap the lines at word boundaries or at any other character if there are words longer than the window width (this is the default).
538
+ #
539
+ # - {Wx::TE_CAPITALIZE}: On PocketPC and Smartphone, causes the first letter to be capitalized.
540
+ #
541
+ # Note that alignment styles ({Wx::TE_LEFT}, {Wx::TE_CENTRE} and {Wx::TE_RIGHT}) can be changed dynamically after control creation on WXMSW, WXGTK and WXOSX. {Wx::TE_READONLY}, {Wx::TE_PASSWORD} and wrapping styles can be dynamically changed under WXGTK but not WXMSW. The other styles can be only set during control creation.
542
+ #
543
+ # ## wxTextCtrl Text Format
544
+ # The multiline text controls always store the text as a sequence of lines separated by <code>'\n'</code> characters, i.e. in the Unix text format even on non-Unix platforms. This allows the user code to ignore the differences between the platforms but at a price: the indices in the control such as those returned by {Wx::TextCtrl#get_insertion_point} or {Wx::TextCtrl#get_selection} can <b>not</b> be used as indices into the string returned by {Wx::TextCtrl#get_value} as they're going to be slightly off for platforms using <code>"\\r\\n"</code> as separator (as Windows does).
545
+ # Instead, if you need to obtain a substring between the 2 indices obtained from the control with the help of the functions mentioned above, you should use {Wx::TextCtrl#get_range}. And the indices themselves can only be passed to other methods, for example {Wx::TextCtrl#set_insertion_point} or {Wx::TextCtrl#set_selection}.
546
+ # To summarize: never use the indices returned by (multiline) {Wx::TextCtrl} as indices into the string it contains, but only as arguments to be passed back to the other {Wx::TextCtrl} methods. This problem doesn't arise for single-line platforms however where the indices in the control do correspond to the positions in the value string.
547
+ #
548
+ # ## wxTextCtrl Positions and Coordinates
549
+ # It is possible to use either linear positions, i.e. roughly (but not always exactly, as explained in the previous section) the index of the character in the text contained in the control or X-Y coordinates, i.e. column and line of the character when working with this class and it provides the functions {Wx::TextCtrl#position_to_xy} and {Wx::TextCtrl#xy_to_position} to convert between the two.
550
+ # Additionally, a position in the control can be converted to its coordinates in pixels using {Wx::TextCtrl#position_to_coords} which can be useful to e.g. show a popup menu near the given character. And, in the other direction, {Wx::TextCtrl#hit_test} can be used to find the character under, or near, the given pixel coordinates.
551
+ # To be more precise, positions actually refer to the gaps between characters and not the characters themselves. Thus, position 0 is the one before the very first character in the control and so is a valid position even when the control is empty. And if the control contains a single character, it has two valid positions: 0 before this character and 1 after it. This, when the documentation of various functions mentions "invalid position", it doesn't consider the position just after the last character of the line to be invalid, only the positions beyond that one (e.g. 2 and greater in the single character example) are actually invalid.
552
+ #
553
+ # ## wxTextCtrl Styles.
554
+ # Multi-line text controls support styling, i.e. provide a possibility to set colours and font for individual characters in it (note that under Windows {Wx::TE_RICH} style is required for style support). To use the styles you can either call {Wx::TextCtrl#set_default_style} before inserting the text or call {Wx::TextCtrl#set_style} later to change the style of the text already in the control (the first solution is much more efficient).
555
+ # In either case, if the style doesn't specify some of the attributes (for example you only want to set the text colour but without changing the font nor the text background), the values of the default style will be used for them. If there is no default style, the attributes of the text control itself are used.
556
+ # So the following code correctly describes what it does: the second call to {Wx::TextCtrl#set_default_style} doesn't change the text foreground colour (which stays red) while the last one doesn't change the background colour (which stays grey):
557
+ #
558
+ # ```ruby
559
+ # text.set_default_style(Wx::TextAttr.new(Wx::RED))
560
+ # text.append_text("Red text\n")
561
+ # text.set_default_style(Wx::TextAttr.new(Wx::NULL_COLOUR, Wx::LIGHT_GREY))
562
+ # text.append_text("Red on grey text\n")
563
+ # text.set_default_style(Wx::TextAttr.new(Wx::BLUE))
564
+ # text.append_text("Blue on grey text\n")
565
+ # ```
566
+ #
567
+ # ## Event Handling.
568
+ # The following commands are processed by default event handlers in {Wx::TextCtrl}: {Wx::StandardID::ID_CUT}, {Wx::StandardID::ID_COPY}, {Wx::StandardID::ID_PASTE}, {Wx::StandardID::ID_UNDO}, {Wx::StandardID::ID_REDO}. The associated UI update events are also processed automatically, when the control has the focus.
569
+ # ### Events emitted by this class
570
+ #
571
+ # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
572
+ # Event handler methods for events emitted by this class:
573
+ #
574
+ # - {Wx::EvtHandler#evt_text}(id, meth = nil, &block): Respond to a {Wx::EVT_TEXT} event, generated when the text changes. Notice that this event will be sent when the text controls contents changes whether this is due to user input or comes from the program itself (for example, if {Wx::TextCtrl#set_value} is called); see {Wx::TextCtrl#change_value} for a function which does not send this event. This event is however not sent during the control creation.
575
+ #
576
+ # - {Wx::EvtHandler#evt_text_enter}(id, meth = nil, &block): Respond to a {Wx::EVT_TEXT_ENTER} event, generated when enter is pressed in a text control which must have {Wx::TE_PROCESS_ENTER} style for this event to be generated.
577
+ #
578
+ # - {Wx::EvtHandler#evt_text_url}(id, meth = nil, &block): A mouse event occurred over an URL in the text control.
579
+ #
580
+ # - {Wx::EvtHandler#evt_text_maxlen}(id, meth = nil, &block): This event is generated when the user tries to enter more text into the control than the limit set by {Wx::TextCtrl#set_max_length}, see its description.
581
+ #
582
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> WXMSW Appearance
583
+ # </td><td> WXGTK Appearance
584
+ # </td><td> WXOSX Appearance
585
+ # </td></tr></table></div>
586
+ # @see Wx::TextCtrl#create
587
+ # @see Wx::Validator
588
+ #
589
+ #
590
+ class TextCtrl < Control
591
+
592
+ include Wx::TextEntry
593
+
594
+ # Sets the content of a multiline text control from a Pango markup buffer.
595
+ #
596
+ # This offers more granular control of content formatting, as well as a significant performance benefit with larger content.
597
+ # This is the GTK equivalent of {Wx::TextCtrl#set_rtf_value}.
598
+ # This functionality is only available in GTK versions greater than 3.16, the function does nothing and returns false when using older GTK version, the application should handle this case and fall back to some other way of setting the control contents.
599
+ # Availability: only available for the WXGTK port.
600
+ # @param str [String]
601
+ # @return [Boolean]
602
+ # @wxrb_require WXGTK
603
+ def gtk_set_pango_markup(str) end
604
+
605
+ # @overload initialize()
606
+ # Default ctor.
607
+ # @return [Wx::TextCtrl]
608
+ # @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR)
609
+ # Constructor, creating and showing a text control.
610
+ #
611
+ # <div class="wxrb-remark">
612
+ # <b>Remark:</b>
613
+ # <p>The horizontal scrollbar ({Wx::HSCROLL} style flag) will only be created for multi-line text controls. Without a horizontal scrollbar, text lines that don't fit in the control's size will be wrapped (but no newline character is inserted). Single line controls don't have a horizontal scrollbar, the text is automatically scrolled so that the insertion point is always visible.
614
+ # </p>
615
+ # </div>
616
+ # @see Wx::TextCtrl#create
617
+ # @see Wx::Validator
618
+ # @param parent [Wx::Window] Parent window. Should not be nil.
619
+ # @param id [Integer] Control identifier. A value of -1 denotes a default value.
620
+ # @param value [String] Default text value.
621
+ # @param pos [Array(Integer, Integer), Wx::Point] Text control position.
622
+ # @param size [Array(Integer, Integer), Wx::Size] Text control size.
623
+ # @param style [Integer] Window style. See {Wx::TextCtrl}.
624
+ # @param validator [Wx::Validator] Window validator.
625
+ # @param name [String] Window name.
626
+ # @return [Wx::TextCtrl]
627
+ # @overload initialize(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR, &block)
628
+ # Constructor, creating and showing a text control.
629
+ #
630
+ # <div class="wxrb-remark">
631
+ # <b>Remark:</b>
632
+ # <p>The horizontal scrollbar ({Wx::HSCROLL} style flag) will only be created for multi-line text controls. Without a horizontal scrollbar, text lines that don't fit in the control's size will be wrapped (but no newline character is inserted). Single line controls don't have a horizontal scrollbar, the text is automatically scrolled so that the insertion point is always visible.
633
+ # </p>
634
+ # </div>
635
+ # @see Wx::TextCtrl#create
636
+ # @see Wx::Validator
637
+ # @param parent [Wx::Window] Parent window. Should not be nil.
638
+ # @param id [Integer] Control identifier. A value of -1 denotes a default value.
639
+ # @param value [String] Default text value.
640
+ # @param pos [Array(Integer, Integer), Wx::Point] Text control position.
641
+ # @param size [Array(Integer, Integer), Wx::Size] Text control size.
642
+ # @param style [Integer] Window style. See {Wx::TextCtrl}.
643
+ # @param validator [Wx::Validator] Window validator.
644
+ # @param name [String] Window name.
645
+ # @yieldparam [Wx::TextCtrl] win new instance
646
+ # @return [Wx::TextCtrl]
647
+ def initialize(*args) end
648
+
649
+ # Creates the text control for two-step construction.
650
+ #
651
+ # This method should be called if the default constructor was used for the control creation. Its parameters have the same meaning as for the non-default constructor.
652
+ # @param parent [Wx::Window]
653
+ # @param id [Integer]
654
+ # @param value [String]
655
+ # @param pos [Array(Integer, Integer), Wx::Point]
656
+ # @param size [Array(Integer, Integer), Wx::Size]
657
+ # @param style [Integer]
658
+ # @param validator [Wx::Validator]
659
+ # @param name [String]
660
+ # @return [Boolean]
661
+ def create(parent, id, value=(''), pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::TEXT_CTRL_NAME_STR) end
662
+
663
+ # Resets the internal modified flag as if the current changes had been saved.
664
+ # @return [void]
665
+ def discard_edits; end
666
+
667
+ # Delete the undo history.
668
+ #
669
+ # Currently only implemented in WXMSW (for controls using {Wx::TE_RICH2} style only), WXOSX and {Wx::Qt} (for multiline text controls only in both of these ports), does nothing in the other ports or for the controls not using the appropriate styles.
670
+ # @return [void]
671
+ def empty_undo_buffer; end
672
+
673
+ # This function inserts into the control the character which would have been inserted if the given key event had occurred in the text control.
674
+ #
675
+ # The event object should be the same as the one passed to EVT_KEY_DOWN handler previously by wxWidgets. Please note that this function doesn't currently work correctly for all keys under any platform but MSW.
676
+ # true if the event resulted in a change to the control, false otherwise.
677
+ # @param event [Wx::KeyEvent]
678
+ # @return [Boolean]
679
+ def emulate_key_press(event) end
680
+
681
+ # Returns the style currently used for the new text.
682
+ #
683
+ #
684
+ # @see Wx::TextCtrl#set_default_style
685
+ # @return [Wx::TextAttr]
686
+ def get_default_style; end
687
+ alias_method :default_style, :get_default_style
688
+
689
+ # Gets the length of the specified line, not including any trailing newline character(s).
690
+ #
691
+ # The length of the line, or -1 if lineNo was invalid.
692
+ # @param lineNo [Integer] Line number (starting from zero).
693
+ # @return [Integer]
694
+ def get_line_length(lineNo) end
695
+ alias_method :line_length, :get_line_length
696
+
697
+ # Returns the contents of a given line in the text control, not including any trailing newline character(s).
698
+ #
699
+ # The contents of the line.
700
+ # @param lineNo [Integer] The line number, starting from zero.
701
+ # @return [String]
702
+ def get_line_text(lineNo) end
703
+ alias_method :line_text, :get_line_text
704
+
705
+ # Returns the number of lines in the text control buffer.
706
+ #
707
+ # The returned number is the number of logical lines, i.e. just the count of the number of newline characters in the control + 1, for WXGTK and WXOSX/Cocoa ports while it is the number of physical lines, i.e. the count of lines actually shown in the control, in WXMSW. Because of this discrepancy, it is not recommended to use this function.
708
+ #
709
+ # <div class="wxrb-remark">
710
+ # <b>Remark:</b>
711
+ # <p>Note that even empty text controls have one line (where the insertion point is), so {Wx::TextCtrl#get_number_of_lines} never returns 0.
712
+ # </p>
713
+ # </div>
714
+ # @return [Integer]
715
+ def get_number_of_lines; end
716
+ alias_method :number_of_lines, :get_number_of_lines
717
+
718
+ # Returns the style at this position in the text control.
719
+ #
720
+ # Not all platforms support this function.
721
+ # true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).
722
+ # @see Wx::TextCtrl#set_style
723
+ # @see Wx::TextAttr
724
+ # @param position [Integer]
725
+ # @param style [Wx::TextAttr]
726
+ # @return [Boolean]
727
+ def get_style(position, style) end
728
+ alias_method :style, :get_style
729
+
730
+ # Returns true if text controls support reading and writing RTF (Rich Text Format).
731
+ #
732
+ # This function only returns true in WXOSX (for multiline contrls) and WXMSW (for rich controls), which are the only ports implementing RTF support in {Wx::TextCtrl}.
733
+ # @see Wx::TextCtrl#get_rtf_value
734
+ # @see Wx::TextCtrl#set_rtf_value
735
+ # @return [Boolean]
736
+ def is_rtf_supported; end
737
+ alias_method :rtf_supported?, :is_rtf_supported
738
+
739
+ # Returns the content of a multiline text control as RTF (Rich Text Formatted) text.
740
+ #
741
+ # Don't call this function unless {Wx::TextCtrl#is_rtf_supported} returns true, as it asserts if called in this case (and returns an empty string).
742
+ # @see Wx::TextCtrl#set_rtf_value
743
+ # @return [String]
744
+ def get_rtf_value; end
745
+ alias_method :rtf_value, :get_rtf_value
746
+
747
+ # Sets the content of a multiline text control from an RTF (Rich Text Formatted) buffer.
748
+ #
749
+ # This offers more granular control of content formatting, as well as a significant performance benefit with larger content. This also provides the ability to read an RTF file and move it directly into the control.
750
+ # Don't call this function unless {Wx::TextCtrl#is_rtf_supported} returns true, as it asserts if called in this case.
751
+ # @see page_samples_text for a usage example.
752
+ #
753
+ # @see Wx::TextCtrl#get_rtf_value
754
+ # @param val [String]
755
+ # @return [void]
756
+ def set_rtf_value(val) end
757
+ alias_method :rtf_value=, :set_rtf_value
758
+
759
+ # Searches for a string in the control, using the provided search options.
760
+ #
761
+ # The range of the match will be returned as a {Wx::TextSearchResult}, which will contain -1 values if no match was found.
762
+ # @param search [Wx::TextSearch]
763
+ # @return [Wx::TextSearchResult]
764
+ def search_text(search) end
765
+
766
+ # Finds the row and column of the character at the specified point.
767
+ #
768
+ # If the return code is not {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} the row and column of the character closest to this position are returned, otherwise the output parameters are not modified.
769
+ # Please note that this function is currently only implemented in {Wx::Univ}, WXMSW and WXGTK ports and always returns {Wx::TextCtrlHitTestResult::TE_HT_UNKNOWN} in the other ports.
770
+ # @see Wx::TextCtrl#position_to_xy
771
+ # @see Wx::TextCtrl#xy_to_position
772
+ # @param pt [Array(Integer, Integer), Wx::Point] The position of the point to check, in window device coordinates.
773
+ # @return [Array(Wx::TextCtrlHitTestResult,Integer,Integer)]
774
+ def hit_test(pt) end
775
+
776
+ # Returns true if the text has been modified by user.
777
+ #
778
+ # Note that calling {Wx::TextCtrl#set_value} doesn't make the control modified.
779
+ # @see Wx::TextCtrl#mark_dirty
780
+ # @return [Boolean]
781
+ def is_modified; end
782
+ alias_method :modified?, :is_modified
783
+
784
+ # Returns true if this is a multi line edit control and false otherwise.
785
+ #
786
+ #
787
+ # @see Wx::TextCtrl#is_single_line
788
+ # @return [Boolean]
789
+ def is_multi_line; end
790
+ alias_method :multi_line?, :is_multi_line
791
+
792
+ # Returns true if this is a single line edit control and false otherwise.
793
+ #
794
+ #
795
+ # @see Wx::TextCtrl#is_single_line
796
+ # @see Wx::TextCtrl#is_multi_line
797
+ # @return [Boolean]
798
+ def is_single_line; end
799
+ alias_method :single_line?, :is_single_line
800
+
801
+ # Loads and displays the named file, if it exists.
802
+ #
803
+ # true if successful, false otherwise.
804
+ # @param filename [String] The filename of the file to load.
805
+ # @param fileType [Integer] One of the values of {Wx::TextCtrlFileType} enum, specifying the type of file to load. Default value and plain text are supported on all platforms, while {Wx::TextCtrlFileType::TEXT_TYPE_RTF} is only supported in WXOSX currently.
806
+ # @return [Boolean]
807
+ def load_file(filename, fileType=Wx::TextCtrlFileType::TEXT_TYPE_ANY) end
808
+
809
+ # Mark text as modified (dirty).
810
+ #
811
+ #
812
+ # @see Wx::TextCtrl#is_modified
813
+ # @return [void]
814
+ def mark_dirty; end
815
+
816
+ # This event handler function implements default drag and drop behaviour, which is to load the first dropped file into the control.
817
+ #
818
+ # <div class="wxrb-remark">
819
+ # <b>Remark:</b>
820
+ # <p>This is not implemented on non-Windows platforms.
821
+ # </p>
822
+ # </div>
823
+ # @see Wx::DropFilesEvent
824
+ # @param event [Wx::DropFilesEvent] The drop files event.
825
+ # @return [void]
826
+ def on_drop_files(event) end
827
+
828
+ # Converts given position to a zero-based column, line number pair.
829
+ #
830
+ # true on success, false on failure (most likely due to a too large position parameter).
831
+ # @see Wx::TextCtrl#xy_to_position
832
+ # @param pos [Integer] Position.
833
+ # @return [Array(Integer, Integer), nil]
834
+ def position_to_xy(pos) end
835
+
836
+ # Converts given text position to client coordinates in pixels.
837
+ #
838
+ # This function allows finding where is the character at the given position displayed in the text control.
839
+ # Availability: only available for the WXMSW, WXGTK ports. . Additionally, WXGTK only implements this method for multiline controls and {Wx::DEFAULT_POSITION} is always returned for the single line ones.
840
+ #
841
+ # On success returns a {Wx::Point} which contains client coordinates for the given position in pixels, otherwise returns {Wx::DEFAULT_POSITION}.
842
+ # @see Wx::TextCtrl#xy_to_position
843
+ # @see Wx::TextCtrl#position_to_xy
844
+ # @param pos [Integer] Text position in 0 to {Wx::TextCtrl#get_last_position} range (inclusive).
845
+ # @return [Wx::Point]
846
+ # @wxrb_require WXMSW|WXGTK
847
+ def position_to_coords(pos) end
848
+
849
+ # Saves the contents of the control in a text file.
850
+ #
851
+ # true if the operation was successful, false otherwise.
852
+ # @param filename [String] The name of the file in which to save the text.
853
+ # @param fileType [Integer] One of the values of {Wx::TextCtrlFileType} enum, specifying the type of file to save as. Default value and plain text are supported on all platforms, while {Wx::TextCtrlFileType::TEXT_TYPE_RTF} is only supported in WXOSX currently.
854
+ # @return [Boolean]
855
+ def save_file(filename=(''), fileType=Wx::TextCtrlFileType::TEXT_TYPE_ANY) end
856
+
857
+ # Changes the default style to use for the new text which is going to be added to the control.
858
+ #
859
+ # This applies both to the text added programmatically using {Wx::TextCtrl#write_text} or {Wx::TextCtrl#append_text} and to the text entered by the user interactively.
860
+ # If either of the font, foreground, or background colour is not set in style, the values of the previous default style are used for them. If the previous default style didn't set them either, the global font or colours of the text control itself are used as fall back.
861
+ # However if the style parameter is the default {Wx::TextAttr}, then the default style is just reset (instead of being combined with the new style which wouldn't change it at all).
862
+ #
863
+ # true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).
864
+ # @see Wx::TextCtrl#get_default_style
865
+ # @param style [Wx::TextAttr] The style for the new text.
866
+ # @return [Boolean]
867
+ def set_default_style(style) end
868
+ alias_method :default_style=, :set_default_style
869
+
870
+ # Marks the control as being modified by the user or not.
871
+ #
872
+ #
873
+ # @see Wx::TextCtrl#mark_dirty
874
+ # @see Wx::TextCtrl#discard_edits
875
+ # @param modified [Boolean]
876
+ # @return [void]
877
+ def set_modified(modified) end
878
+ alias_method :modified=, :set_modified
879
+
880
+ # Changes the style of the given range.
881
+ #
882
+ # If any attribute within style is not set, the corresponding attribute from {Wx::TextCtrl#get_default_style} is used.
883
+ #
884
+ # true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).
885
+ # @see Wx::TextCtrl#get_style
886
+ # @see Wx::TextAttr
887
+ # @param start [Integer] The start of the range to change.
888
+ # @param end_ [Integer]
889
+ # @param style [Wx::TextAttr] The new style for the range.
890
+ # @return [Boolean]
891
+ def set_style(start, end_, style) end
892
+
893
+ # Makes the line containing the given position visible.
894
+ # @param pos [Integer] The position that should be visible.
895
+ # @return [void]
896
+ def show_position(pos) end
897
+
898
+ # Converts the given zero based column and line number to a position.
899
+ #
900
+ # The position value, or -1 if x or y was invalid.
901
+ # @param x [Integer] The column number.
902
+ # @param y [Integer] The line number.
903
+ # @return [Integer]
904
+ def xy_to_position(x, y) end
905
+
906
+ end # TextCtrl
907
+
908
+ # Search options for {Wx::TextCtrl#search_text}.
909
+ #
910
+ # This is a builder class, where property functions can be called during construction. For example:
911
+ #
912
+ # ```
913
+ # wxTextSearchResult result =
914
+ # textctrl->SearchText(wxTextSearch(L"Institutional Research").
915
+ # SearchDirection(wxTextSearch::Direction::Down).
916
+ # MatchCase().
917
+ # MatchWholeWord());
918
+ # ```
919
+ #
920
+ #
921
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
922
+ class TextSearch < ::Object
923
+
924
+ # One of the following values can be passed to {Wx::TextSearch#search_direction} to control direction when searching a {Wx::TextCtrl}.
925
+ #
926
+ #
927
+ #
928
+ class Direction < Wx::Enum
929
+
930
+ #
931
+ #
932
+ Down = Wx::TextSearch::Direction.new(0)
933
+
934
+ #
935
+ #
936
+ Up = Wx::TextSearch::Direction.new(1)
937
+
938
+ end # Direction
939
+
940
+ #
941
+ #
942
+ #
943
+ # @return [String]
944
+ def get_search_value; end
945
+
946
+ #
947
+ #
948
+ #
949
+ # @return [Integer]
950
+ def get_starting_position; end
951
+
952
+ #
953
+ #
954
+ #
955
+ # @return [Boolean]
956
+ def match_case?; end
957
+
958
+ #
959
+ #
960
+ #
961
+ # @return [Boolean]
962
+ def whole_word?; end
963
+
964
+ #
965
+ #
966
+ #
967
+ # @return [Wx::URLDataObject::Direction]
968
+ def get_direction; end
969
+
970
+ # The string to search for.
971
+ # @param text [String]
972
+ # @return [Wx::TextSearch]
973
+ def initialize(text) end
974
+
975
+ # The string to search for.
976
+ # @param value [String]
977
+ # @return [Wx::TextSearch]
978
+ def search_value(value) end
979
+
980
+ # Whether the search should match case (i.e., be case sensitive).
981
+ #
982
+ # By default, this is false; search will be case insensitive.
983
+ # @param matchCase [Boolean]
984
+ # @return [Wx::TextSearch]
985
+ def match_case(matchCase=true) end
986
+
987
+ # Whether the search should match the whole word.
988
+ #
989
+ # By default, this is false; searching will not match by whole word.
990
+ # @param matchWholeWord [Boolean]
991
+ # @return [Wx::TextSearch]
992
+ def match_whole_word(matchWholeWord=true) end
993
+
994
+ # Whether the search should go up or down in the text control.
995
+ #
996
+ # By default, search will go downward.
997
+ # @param direction [Wx::TextSearch::Direction]
998
+ # @return [Wx::TextSearch]
999
+ def search_direction(direction) end
1000
+
1001
+ # Where the search should start from.
1002
+ #
1003
+ # By default, if searching down, then the search will start at 0. If searching up, then will start at the end of control.
1004
+ # @param startPosition [Integer]
1005
+ # @return [Wx::TextSearch]
1006
+ def start(startPosition) end
1007
+
1008
+ end # TextSearch
1009
+
1010
+ # Result from {Wx::TextCtrl#search_text}, specifying the range of the found text.
1011
+ #
1012
+ # Range values will be {Wx::NOT_FOUND} if a match was not found.
1013
+ #
1014
+ #
1015
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1016
+ class TextSearchResult < ::Object
1017
+
1018
+ #
1019
+ #
1020
+ #
1021
+ # @return [Integer]
1022
+ def start; end
1023
+
1024
+ #
1025
+ #
1026
+ #
1027
+ # @return [Integer]
1028
+ def end_; end
1029
+
1030
+ end # TextSearchResult
1031
+
1032
+
1033
+ end