wxruby3 1.7.0 → 1.8.1

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 (522) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +27 -2
  3. data/README.md +15 -15
  4. data/ext/wxruby3/include/wxRubyApp.h +145 -46
  5. data/ext/wxruby3/include/wxruby-ComboPopup.h +25 -8
  6. data/ext/wxruby3/include/wxruby-GCTracking.h +262 -0
  7. data/ext/wxruby3/include/wxruby-MBConv.h +190 -0
  8. data/ext/wxruby3/include/wxruby-SharedEventHandler.h +183 -0
  9. data/ext/wxruby3/include/wxruby-SharedPtr.h +104 -0
  10. data/ext/wxruby3/include/wxruby-runtime.h +29 -0
  11. data/ext/wxruby3/swig/custom/rubytracking.swg +8 -22
  12. data/ext/wxruby3/swig/custom/wx_ruby_shared_ptr.i +434 -0
  13. data/ext/wxruby3/swig/custom/wx_shared_ptr.i +431 -0
  14. data/ext/wxruby3/swig/mark_free_impl.i +7 -132
  15. data/ext/wxruby3/swig/memory_management.i +8 -44
  16. data/ext/wxruby3/swig/wx.i +46 -73
  17. data/lib/wx/core/const.rb +0 -1
  18. data/lib/wx/core/context_help.rb +17 -0
  19. data/lib/wx/core/cursor.rb +1 -0
  20. data/lib/wx/core/helpcontrollerhelpprovider.rb +10 -2
  21. data/lib/wx/core/mbconv.rb +11 -0
  22. data/lib/wx/core/media_ctrl.rb +31 -0
  23. data/lib/wx/core/top_level_window.rb +7 -0
  24. data/lib/wx/core.rb +6 -0
  25. data/lib/wx/doc/art_provider.rb +17 -0
  26. data/lib/wx/doc/context_help.rb +42 -0
  27. data/lib/wx/doc/core.rb +0 -5
  28. data/lib/wx/doc/functions.rb +10 -0
  29. data/lib/wx/doc/html/html_help_controller.rb +23 -1
  30. data/lib/wx/doc/mbconv.rb +108 -0
  31. data/lib/wx/doc/rt/shared_event_handler.rb +49 -0
  32. data/lib/wx/doc/rt/thread_event.rb +28 -0
  33. data/lib/wx/doc/stream.rb +7 -3
  34. data/lib/wx/doc/webview.rb +40 -0
  35. data/lib/wx/helpers.rb +1 -1
  36. data/lib/wx/html/htmlhelpcontroller.rb +10 -0
  37. data/lib/wx/keyword_defs.rb +11 -0
  38. data/lib/wx/rt/require.rb +8 -0
  39. data/lib/wx/rt/thread_event.rb +14 -0
  40. data/lib/wx/rt.rb +16 -0
  41. data/lib/wx/version.rb +1 -1
  42. data/lib/wx/web/require.rb +8 -0
  43. data/lib/wx/web/webview.rb +106 -0
  44. data/lib/wx/web.rb +17 -0
  45. data/lib/wx/wxruby/cmd/setup.rb +15 -0
  46. data/lib/wx/wxruby/cmd/test.rb +8 -2
  47. data/lib/wx.rb +2 -0
  48. data/rakelib/configure.rb +24 -0
  49. data/rakelib/gem.rb +3 -2
  50. data/rakelib/install.rb +54 -27
  51. data/rakelib/lib/config/macosx.rb +7 -5
  52. data/rakelib/lib/config/mingw.rb +66 -5
  53. data/rakelib/lib/config/pkgman/linux.rb +4 -2
  54. data/rakelib/lib/config/pkgman/mingw.rb +1 -1
  55. data/rakelib/lib/config/unixish.rb +4 -2
  56. data/rakelib/lib/config.rb +37 -3
  57. data/rakelib/lib/core/include/client_data.inc +38 -17
  58. data/rakelib/lib/core/include/funcall.inc +1 -1
  59. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  60. data/rakelib/lib/core/include/swigrubyrun.inc +14 -26
  61. data/rakelib/lib/core/package.rb +0 -2
  62. data/rakelib/lib/director/app.rb +1 -8
  63. data/rakelib/lib/director/art_provider.rb +7 -3
  64. data/rakelib/lib/director/comboctrl.rb +0 -7
  65. data/rakelib/lib/director/context_help_button.rb +35 -2
  66. data/rakelib/lib/director/derived_dc.rb +41 -32
  67. data/rakelib/lib/director/editable_listbox.rb +10 -8
  68. data/rakelib/lib/director/event_handler.rb +32 -28
  69. data/rakelib/lib/director/fs_file.rb +38 -10
  70. data/rakelib/lib/director/functions.rb +8 -0
  71. data/rakelib/lib/director/grid_cell_attr.rb +1 -3
  72. data/rakelib/lib/director/grid_cell_editor.rb +14 -12
  73. data/rakelib/lib/director/grid_cell_renderer.rb +11 -8
  74. data/rakelib/lib/director/grid_ctrl.rb +140 -121
  75. data/rakelib/lib/director/help_controller.rb +70 -2
  76. data/rakelib/lib/director/mb_conv.rb +30 -0
  77. data/rakelib/lib/director/menu.rb +92 -42
  78. data/rakelib/lib/director/menu_bar.rb +84 -45
  79. data/rakelib/lib/director/menu_item.rb +2 -2
  80. data/rakelib/lib/director/persistence_manager.rb +3 -2
  81. data/rakelib/lib/director/preview_frame.rb +2 -2
  82. data/rakelib/lib/director/ribbon_page.rb +11 -0
  83. data/rakelib/lib/director/richtext_buffer.rb +5 -2
  84. data/rakelib/lib/director/shared_evt_handler.rb +30 -0
  85. data/rakelib/lib/director/sizer.rb +8 -17
  86. data/rakelib/lib/director/sizer_item.rb +3 -4
  87. data/rakelib/lib/director/task_bar_icon.rb +7 -7
  88. data/rakelib/lib/director/thread_event.rb +33 -0
  89. data/rakelib/lib/director/top_level_window.rb +12 -4
  90. data/rakelib/lib/director/validator.rb +3 -1
  91. data/rakelib/lib/director/variant.rb +16 -12
  92. data/rakelib/lib/director/webview.rb +166 -0
  93. data/rakelib/lib/director/webview_event.rb +37 -0
  94. data/rakelib/lib/director/webview_handler.rb +63 -0
  95. data/rakelib/lib/generate/doc/thread_event.yaml +20 -0
  96. data/rakelib/lib/generate/doc/web_view.yaml +135 -0
  97. data/rakelib/lib/generate/doc/web_view_event.yaml +38 -0
  98. data/rakelib/lib/generate/doc/web_view_handler.yaml +58 -0
  99. data/rakelib/lib/specs/interfaces.rb +14 -2
  100. data/rakelib/lib/typemap/common.rb +34 -1
  101. data/rakelib/lib/typemap/mb_conv.rb +58 -0
  102. data/rakelib/prepost.rake +23 -31
  103. data/rakelib/prepost.rb +20 -0
  104. data/samples/event/threaded.rb +295 -42
  105. data/samples/event/tn_threaded.png +0 -0
  106. data/samples/help/doc/back.gif +0 -0
  107. data/samples/help/doc/contents.gif +0 -0
  108. data/samples/help/doc/cshelp.txt +9 -0
  109. data/samples/help/doc/doc.chm +0 -0
  110. data/samples/help/doc/doc.cnt +8 -0
  111. data/samples/help/doc/doc.h +7 -0
  112. data/samples/help/doc/doc.hhc +40 -0
  113. data/samples/help/doc/doc.hhk +31 -0
  114. data/samples/help/doc/doc.hhp +33 -0
  115. data/samples/help/doc/doc.hpj +21 -0
  116. data/samples/help/doc/doc.htm +27 -0
  117. data/samples/help/doc/doc1.htm +24 -0
  118. data/samples/help/doc/doc2.htm +12 -0
  119. data/samples/help/doc/doc3.htm +12 -0
  120. data/samples/help/doc/doc4.htm +12 -0
  121. data/samples/help/doc/doc5.htm +14 -0
  122. data/samples/help/doc/forward.gif +0 -0
  123. data/samples/help/doc/up.gif +0 -0
  124. data/samples/help/doc.chm +0 -0
  125. data/samples/help/doc.chw +0 -0
  126. data/samples/help/doc.zip +0 -0
  127. data/samples/help/help.rb +352 -0
  128. data/samples/help/tn_help.png +0 -0
  129. data/samples/webview/handler_advanced.html +55 -0
  130. data/samples/webview/tn_webview.png +0 -0
  131. data/samples/webview/webview.rb +1264 -0
  132. data/tests/assets/handler_advanced.html +55 -0
  133. data/tests/assets/test.zip +0 -0
  134. data/tests/lib/text_entry_tests.rb +2 -2
  135. data/tests/lib/wxapp_runner.rb +40 -0
  136. data/tests/lib/wxframe_runner.rb +17 -2
  137. data/tests/test_art.rb +8 -8
  138. data/tests/test_clipboard.rb +4 -4
  139. data/tests/test_config.rb +6 -6
  140. data/tests/test_exceptions.rb +8 -6
  141. data/tests/test_ext_controls.rb +3 -3
  142. data/tests/test_file_dialog.rb +5 -5
  143. data/tests/test_font.rb +7 -7
  144. data/tests/test_grid_ctrl.rb +133 -0
  145. data/tests/test_help.rb +88 -0
  146. data/tests/test_intl.rb +1 -1
  147. data/tests/test_media_ctrl.rb +14 -6
  148. data/tests/test_menu.rb +94 -86
  149. data/tests/test_persistence.rb +1 -1
  150. data/tests/test_proof_check.rb +5 -5
  151. data/tests/test_propgrid.rb +1 -1
  152. data/tests/test_shared_event_handler.rb +141 -0
  153. data/tests/test_std_controls.rb +5 -5
  154. data/tests/test_webview.rb +492 -0
  155. data/tests/test_window.rb +3 -3
  156. metadata +66 -368
  157. data/assets/repo-social-preview.odg +0 -0
  158. data/assets/repo-social-preview.xcf +0 -0
  159. data/lib/wx/aui/events/evt_list.rb +0 -148
  160. data/lib/wx/core/events/evt_list.rb +0 -1458
  161. data/lib/wx/core/font/encoding.rb +0 -113
  162. data/lib/wx/doc/gen/about_dialog_info.rb +0 -330
  163. data/lib/wx/doc/gen/accelerator.rb +0 -178
  164. data/lib/wx/doc/gen/activity_indicator.rb +0 -83
  165. data/lib/wx/doc/gen/affine_matrix2d.rb +0 -284
  166. data/lib/wx/doc/gen/animation.rb +0 -275
  167. data/lib/wx/doc/gen/animation_ctrl.rb +0 -300
  168. data/lib/wx/doc/gen/any_button.rb +0 -191
  169. data/lib/wx/doc/gen/app.rb +0 -463
  170. data/lib/wx/doc/gen/app_traits.rb +0 -396
  171. data/lib/wx/doc/gen/art_provider.rb +0 -605
  172. data/lib/wx/doc/gen/aui/aui_dock_art.rb +0 -455
  173. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +0 -54
  174. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -847
  175. data/lib/wx/doc/gen/aui/aui_manager_event.rb +0 -131
  176. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +0 -180
  177. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +0 -59
  178. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +0 -130
  179. data/lib/wx/doc/gen/aui/aui_notebook.rb +0 -631
  180. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +0 -233
  181. data/lib/wx/doc/gen/aui/aui_pane_info.rb +0 -769
  182. data/lib/wx/doc/gen/aui/aui_tab_art.rb +0 -352
  183. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +0 -14
  184. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +0 -510
  185. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +0 -340
  186. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +0 -244
  187. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +0 -257
  188. data/lib/wx/doc/gen/aui/event_list.rb +0 -179
  189. data/lib/wx/doc/gen/banner_window.rb +0 -124
  190. data/lib/wx/doc/gen/bitmap.rb +0 -731
  191. data/lib/wx/doc/gen/bitmap_button.rb +0 -123
  192. data/lib/wx/doc/gen/bitmap_combo_box.rb +0 -221
  193. data/lib/wx/doc/gen/book_ctrl_base.rb +0 -273
  194. data/lib/wx/doc/gen/book_ctrl_event.rb +0 -66
  195. data/lib/wx/doc/gen/box_sizer.rb +0 -85
  196. data/lib/wx/doc/gen/brush.rb +0 -251
  197. data/lib/wx/doc/gen/busy_info.rb +0 -157
  198. data/lib/wx/doc/gen/button.rb +0 -182
  199. data/lib/wx/doc/gen/calculate_layout_event.rb +0 -62
  200. data/lib/wx/doc/gen/calendar_ctrl.rb +0 -505
  201. data/lib/wx/doc/gen/calendar_date_attr.rb +0 -138
  202. data/lib/wx/doc/gen/calendar_event.rb +0 -147
  203. data/lib/wx/doc/gen/caret.rb +0 -97
  204. data/lib/wx/doc/gen/check_box.rb +0 -175
  205. data/lib/wx/doc/gen/check_list_box.rb +0 -121
  206. data/lib/wx/doc/gen/choice.rb +0 -175
  207. data/lib/wx/doc/gen/choicebook.rb +0 -116
  208. data/lib/wx/doc/gen/client_dc.rb +0 -43
  209. data/lib/wx/doc/gen/clipboard.rb +0 -144
  210. data/lib/wx/doc/gen/collapsible_pane.rb +0 -138
  211. data/lib/wx/doc/gen/collapsible_pane_event.rb +0 -46
  212. data/lib/wx/doc/gen/colour.rb +0 -333
  213. data/lib/wx/doc/gen/colour_dialog.rb +0 -190
  214. data/lib/wx/doc/gen/colour_picker_ctrl.rb +0 -110
  215. data/lib/wx/doc/gen/colour_picker_event.rb +0 -77
  216. data/lib/wx/doc/gen/combo_box.rb +0 -292
  217. data/lib/wx/doc/gen/combo_ctrl.rb +0 -662
  218. data/lib/wx/doc/gen/command_link_button.rb +0 -134
  219. data/lib/wx/doc/gen/config_base.rb +0 -10
  220. data/lib/wx/doc/gen/context_help_button.rb +0 -109
  221. data/lib/wx/doc/gen/control.rb +0 -277
  222. data/lib/wx/doc/gen/control_with_items.rb +0 -253
  223. data/lib/wx/doc/gen/core.rb +0 -45
  224. data/lib/wx/doc/gen/credential_entry_dialog.rb +0 -137
  225. data/lib/wx/doc/gen/cursor.rb +0 -193
  226. data/lib/wx/doc/gen/data_format.rb +0 -85
  227. data/lib/wx/doc/gen/data_object.rb +0 -436
  228. data/lib/wx/doc/gen/data_object_simple_base.rb +0 -10
  229. data/lib/wx/doc/gen/date_event.rb +0 -49
  230. data/lib/wx/doc/gen/date_picker_ctrl.rb +0 -161
  231. data/lib/wx/doc/gen/dc.rb +0 -1631
  232. data/lib/wx/doc/gen/dc_overlay.rb +0 -102
  233. data/lib/wx/doc/gen/defs.rb +0 -2802
  234. data/lib/wx/doc/gen/dial_up_event.rb +0 -45
  235. data/lib/wx/doc/gen/dial_up_manager.rb +0 -149
  236. data/lib/wx/doc/gen/dialog.rb +0 -541
  237. data/lib/wx/doc/gen/dir_dialog.rb +0 -164
  238. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +0 -90
  239. data/lib/wx/doc/gen/dir_picker_ctrl.rb +0 -125
  240. data/lib/wx/doc/gen/display.rb +0 -238
  241. data/lib/wx/doc/gen/drag_drop.rb +0 -299
  242. data/lib/wx/doc/gen/drag_image.rb +0 -116
  243. data/lib/wx/doc/gen/editable_list_box.rb +0 -109
  244. data/lib/wx/doc/gen/event.rb +0 -990
  245. data/lib/wx/doc/gen/event_blocker.rb +0 -50
  246. data/lib/wx/doc/gen/event_filter.rb +0 -92
  247. data/lib/wx/doc/gen/event_list.rb +0 -1644
  248. data/lib/wx/doc/gen/events.rb +0 -2809
  249. data/lib/wx/doc/gen/evt_handler.rb +0 -229
  250. data/lib/wx/doc/gen/ext_help_controller.rb +0 -109
  251. data/lib/wx/doc/gen/file_ctrl.rb +0 -231
  252. data/lib/wx/doc/gen/file_ctrl_event.rb +0 -83
  253. data/lib/wx/doc/gen/file_dialog.rb +0 -353
  254. data/lib/wx/doc/gen/file_dialog_custom_control.rb +0 -165
  255. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +0 -158
  256. data/lib/wx/doc/gen/file_dir_picker_event.rb +0 -100
  257. data/lib/wx/doc/gen/file_picker_ctrl.rb +0 -132
  258. data/lib/wx/doc/gen/file_system.rb +0 -232
  259. data/lib/wx/doc/gen/find_dialog_event.rb +0 -126
  260. data/lib/wx/doc/gen/find_replace_data.rb +0 -60
  261. data/lib/wx/doc/gen/find_replace_dialog.rb +0 -58
  262. data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -199
  263. data/lib/wx/doc/gen/font.rb +0 -1379
  264. data/lib/wx/doc/gen/font_data.rb +0 -151
  265. data/lib/wx/doc/gen/font_dialog.rb +0 -88
  266. data/lib/wx/doc/gen/font_picker_ctrl.rb +0 -143
  267. data/lib/wx/doc/gen/font_picker_event.rb +0 -65
  268. data/lib/wx/doc/gen/frame.rb +0 -352
  269. data/lib/wx/doc/gen/fs_file.rb +0 -337
  270. data/lib/wx/doc/gen/functions.rb +0 -10
  271. data/lib/wx/doc/gen/gauge.rb +0 -157
  272. data/lib/wx/doc/gen/gb_sizer_item.rb +0 -68
  273. data/lib/wx/doc/gen/gcdc.rb +0 -46
  274. data/lib/wx/doc/gen/gdi_common.rb +0 -1271
  275. data/lib/wx/doc/gen/gdi_object.rb +0 -31
  276. data/lib/wx/doc/gen/generic_about_dialog.rb +0 -140
  277. data/lib/wx/doc/gen/generic_dir_ctrl.rb +0 -223
  278. data/lib/wx/doc/gen/geometry.rb +0 -661
  279. data/lib/wx/doc/gen/graphics_context.rb +0 -1184
  280. data/lib/wx/doc/gen/graphics_object.rb +0 -750
  281. data/lib/wx/doc/gen/grid/event_list.rb +0 -191
  282. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -40
  283. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -280
  284. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -35
  285. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -37
  286. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -49
  287. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -35
  288. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -46
  289. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -38
  290. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -45
  291. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -40
  292. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -197
  293. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -39
  294. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -44
  295. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -45
  296. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -79
  297. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -46
  298. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -35
  299. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -108
  300. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -35
  301. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -49
  302. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -3002
  303. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +0 -95
  304. data/lib/wx/doc/gen/grid/grid_event.rb +0 -129
  305. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +0 -104
  306. data/lib/wx/doc/gen/grid/grid_size_event.rb +0 -85
  307. data/lib/wx/doc/gen/grid/grid_string_table.rb +0 -142
  308. data/lib/wx/doc/gen/grid/grid_table_base.rb +0 -317
  309. data/lib/wx/doc/gen/grid/grid_table_message.rb +0 -81
  310. data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -323
  311. data/lib/wx/doc/gen/grid_sizer.rb +0 -195
  312. data/lib/wx/doc/gen/gui_event_loop.rb +0 -159
  313. data/lib/wx/doc/gen/h_scrolled_window.rb +0 -562
  314. data/lib/wx/doc/gen/header_ctrl.rb +0 -880
  315. data/lib/wx/doc/gen/header_ctrl_event.rb +0 -133
  316. data/lib/wx/doc/gen/help_controller.rb +0 -195
  317. data/lib/wx/doc/gen/help_provider.rb +0 -98
  318. data/lib/wx/doc/gen/html/event_list.rb +0 -38
  319. data/lib/wx/doc/gen/html/html_cell.rb +0 -536
  320. data/lib/wx/doc/gen/html/html_cell_event.rb +0 -69
  321. data/lib/wx/doc/gen/html/html_data_object.rb +0 -42
  322. data/lib/wx/doc/gen/html/html_easy_printing.rb +0 -203
  323. data/lib/wx/doc/gen/html/html_help_controller.rb +0 -340
  324. data/lib/wx/doc/gen/html/html_help_data.rb +0 -159
  325. data/lib/wx/doc/gen/html/html_help_window.rb +0 -258
  326. data/lib/wx/doc/gen/html/html_link_event.rb +0 -41
  327. data/lib/wx/doc/gen/html/html_list_box.rb +0 -346
  328. data/lib/wx/doc/gen/html/html_printout.rb +0 -109
  329. data/lib/wx/doc/gen/html/html_window.rb +0 -461
  330. data/lib/wx/doc/gen/hyperlink_ctrl.rb +0 -311
  331. data/lib/wx/doc/gen/hyperlink_event.rb +0 -44
  332. data/lib/wx/doc/gen/icon.rb +0 -267
  333. data/lib/wx/doc/gen/icon_location.rb +0 -40
  334. data/lib/wx/doc/gen/image.rb +0 -1371
  335. data/lib/wx/doc/gen/image_list.rb +0 -168
  336. data/lib/wx/doc/gen/info_bar.rb +0 -195
  337. data/lib/wx/doc/gen/keyboard_state.rb +0 -140
  338. data/lib/wx/doc/gen/list_box.rb +0 -304
  339. data/lib/wx/doc/gen/list_ctrl.rb +0 -1774
  340. data/lib/wx/doc/gen/list_event.rb +0 -208
  341. data/lib/wx/doc/gen/listbook.rb +0 -116
  342. data/lib/wx/doc/gen/locale.rb +0 -4293
  343. data/lib/wx/doc/gen/log.rb +0 -603
  344. data/lib/wx/doc/gen/mdi_client_window.rb +0 -47
  345. data/lib/wx/doc/gen/mdi_frame.rb +0 -324
  346. data/lib/wx/doc/gen/media_ctrl.rb +0 -269
  347. data/lib/wx/doc/gen/media_event.rb +0 -117
  348. data/lib/wx/doc/gen/memory_dc.rb +0 -174
  349. data/lib/wx/doc/gen/menu.rb +0 -509
  350. data/lib/wx/doc/gen/menu_bar.rb +0 -287
  351. data/lib/wx/doc/gen/menu_item.rb +0 -362
  352. data/lib/wx/doc/gen/message_dialog.rb +0 -238
  353. data/lib/wx/doc/gen/mini_frame.rb +0 -108
  354. data/lib/wx/doc/gen/mirror_dc.rb +0 -22
  355. data/lib/wx/doc/gen/mouse_state.rb +0 -150
  356. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -80
  357. data/lib/wx/doc/gen/non_owned_window.rb +0 -49
  358. data/lib/wx/doc/gen/notebook.rb +0 -278
  359. data/lib/wx/doc/gen/num_validator.rb +0 -37
  360. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -93
  361. data/lib/wx/doc/gen/object.rb +0 -59
  362. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +0 -395
  363. data/lib/wx/doc/gen/paint_dc.rb +0 -27
  364. data/lib/wx/doc/gen/palette.rb +0 -92
  365. data/lib/wx/doc/gen/panel.rb +0 -127
  366. data/lib/wx/doc/gen/pen.rb +0 -511
  367. data/lib/wx/doc/gen/persistence_manager.rb +0 -135
  368. data/lib/wx/doc/gen/persistent_object.rb +0 -52
  369. data/lib/wx/doc/gen/persistent_window.rb +0 -241
  370. data/lib/wx/doc/gen/pg/event_list.rb +0 -106
  371. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +0 -54
  372. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +0 -292
  373. data/lib/wx/doc/gen/pg/pg_cell.rb +0 -177
  374. data/lib/wx/doc/gen/pg/pg_editor.rb +0 -721
  375. data/lib/wx/doc/gen/pg/pg_multi_button.rb +0 -152
  376. data/lib/wx/doc/gen/pg/pg_properties.rb +0 -2829
  377. data/lib/wx/doc/gen/pg/pg_property.rb +0 -2078
  378. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -344
  379. data/lib/wx/doc/gen/pg/property_grid.rb +0 -740
  380. data/lib/wx/doc/gen/pg/property_grid_event.rb +0 -184
  381. data/lib/wx/doc/gen/pg/property_grid_interface.rb +0 -1098
  382. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -415
  383. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -354
  384. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -165
  385. data/lib/wx/doc/gen/picker_base.rb +0 -152
  386. data/lib/wx/doc/gen/platform_info.rb +0 -622
  387. data/lib/wx/doc/gen/popup_window.rb +0 -107
  388. data/lib/wx/doc/gen/progress_dialog.rb +0 -100
  389. data/lib/wx/doc/gen/property_sheet_dialog.rb +0 -216
  390. data/lib/wx/doc/gen/prt/event_list.rb +0 -17
  391. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +0 -44
  392. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -30
  393. data/lib/wx/doc/gen/prt/preview_frame.rb +0 -78
  394. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +0 -151
  395. data/lib/wx/doc/gen/prt/print_data.rb +0 -804
  396. data/lib/wx/doc/gen/prt/print_dialog.rb +0 -55
  397. data/lib/wx/doc/gen/prt/printer.rb +0 -518
  398. data/lib/wx/doc/gen/prt/printer_dc.rb +0 -37
  399. data/lib/wx/doc/gen/query_layout_info_event.rb +0 -106
  400. data/lib/wx/doc/gen/radio_box.rb +0 -306
  401. data/lib/wx/doc/gen/radio_button.rb +0 -159
  402. data/lib/wx/doc/gen/rbn/event_list.rb +0 -136
  403. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +0 -1132
  404. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +0 -308
  405. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +0 -45
  406. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +0 -458
  407. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +0 -63
  408. data/lib/wx/doc/gen/rbn/ribbon_control.rb +0 -143
  409. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +0 -229
  410. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +0 -55
  411. data/lib/wx/doc/gen/rbn/ribbon_page.rb +0 -174
  412. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +0 -270
  413. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +0 -45
  414. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +0 -360
  415. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +0 -42
  416. data/lib/wx/doc/gen/rearrange_ctrl.rb +0 -78
  417. data/lib/wx/doc/gen/rearrange_list.rb +0 -123
  418. data/lib/wx/doc/gen/region.rb +0 -380
  419. data/lib/wx/doc/gen/region_iterator.rb +0 -76
  420. data/lib/wx/doc/gen/rich_tool_tip.rb +0 -154
  421. data/lib/wx/doc/gen/rtc/event_list.rb +0 -125
  422. data/lib/wx/doc/gen/rtc/rich_text_box.rb +0 -445
  423. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +0 -1188
  424. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +0 -41
  425. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +0 -538
  426. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -2103
  427. data/lib/wx/doc/gen/rtc/rich_text_event.rb +0 -173
  428. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +0 -181
  429. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +0 -319
  430. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +0 -193
  431. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -102
  432. data/lib/wx/doc/gen/rtc/rich_text_image.rb +0 -337
  433. data/lib/wx/doc/gen/rtc/rich_text_object.rb +0 -2922
  434. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +0 -1240
  435. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +0 -258
  436. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +0 -344
  437. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +0 -227
  438. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -59
  439. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +0 -169
  440. data/lib/wx/doc/gen/sash_event.rb +0 -147
  441. data/lib/wx/doc/gen/sash_layout_window.rb +0 -232
  442. data/lib/wx/doc/gen/sash_window.rb +0 -171
  443. data/lib/wx/doc/gen/scaled_dc.rb +0 -10
  444. data/lib/wx/doc/gen/screen_dc.rb +0 -30
  445. data/lib/wx/doc/gen/scroll_bar.rb +0 -204
  446. data/lib/wx/doc/gen/scrolled_canvas.rb +0 -410
  447. data/lib/wx/doc/gen/scrolled_control.rb +0 -410
  448. data/lib/wx/doc/gen/scrolled_window.rb +0 -430
  449. data/lib/wx/doc/gen/search_ctrl.rb +0 -159
  450. data/lib/wx/doc/gen/secret_store.rb +0 -116
  451. data/lib/wx/doc/gen/simplebook.rb +0 -110
  452. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -89
  453. data/lib/wx/doc/gen/sizer.rb +0 -945
  454. data/lib/wx/doc/gen/sizer_item.rb +0 -244
  455. data/lib/wx/doc/gen/slider.rb +0 -342
  456. data/lib/wx/doc/gen/spin_button.rb +0 -157
  457. data/lib/wx/doc/gen/spin_ctrl.rb +0 -231
  458. data/lib/wx/doc/gen/spin_ctrl_double.rb +0 -192
  459. data/lib/wx/doc/gen/spin_double_event.rb +0 -55
  460. data/lib/wx/doc/gen/spin_event.rb +0 -51
  461. data/lib/wx/doc/gen/splash_screen.rb +0 -113
  462. data/lib/wx/doc/gen/splitter_event.rb +0 -99
  463. data/lib/wx/doc/gen/splitter_window.rb +0 -498
  464. data/lib/wx/doc/gen/static_bitmap.rb +0 -256
  465. data/lib/wx/doc/gen/static_box.rb +0 -180
  466. data/lib/wx/doc/gen/static_box_sizer.rb +0 -85
  467. data/lib/wx/doc/gen/static_line.rb +0 -83
  468. data/lib/wx/doc/gen/static_text.rb +0 -127
  469. data/lib/wx/doc/gen/status_bar.rb +0 -290
  470. data/lib/wx/doc/gen/stc/event_list.rb +0 -221
  471. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -4474
  472. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -8762
  473. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -129
  474. data/lib/wx/doc/gen/svg_file_dc.rb +0 -164
  475. data/lib/wx/doc/gen/system_options.rb +0 -129
  476. data/lib/wx/doc/gen/system_settings.rb +0 -507
  477. data/lib/wx/doc/gen/task_bar_icon.rb +0 -127
  478. data/lib/wx/doc/gen/task_bar_icon_event.rb +0 -88
  479. data/lib/wx/doc/gen/text_attr.rb +0 -756
  480. data/lib/wx/doc/gen/text_ctrl.rb +0 -1033
  481. data/lib/wx/doc/gen/text_entry.rb +0 -441
  482. data/lib/wx/doc/gen/text_entry_dialog.rb +0 -220
  483. data/lib/wx/doc/gen/text_validator.rb +0 -245
  484. data/lib/wx/doc/gen/time_picker_ctrl.rb +0 -128
  485. data/lib/wx/doc/gen/timer.rb +0 -119
  486. data/lib/wx/doc/gen/timer_event.rb +0 -68
  487. data/lib/wx/doc/gen/tip_provider.rb +0 -63
  488. data/lib/wx/doc/gen/tip_window.rb +0 -51
  489. data/lib/wx/doc/gen/toggle_button.rb +0 -182
  490. data/lib/wx/doc/gen/tool_bar.rb +0 -890
  491. data/lib/wx/doc/gen/tool_tip.rb +0 -86
  492. data/lib/wx/doc/gen/toolbook.rb +0 -118
  493. data/lib/wx/doc/gen/top_level_window.rb +0 -497
  494. data/lib/wx/doc/gen/tree_ctrl.rb +0 -1052
  495. data/lib/wx/doc/gen/tree_event.rb +0 -127
  496. data/lib/wx/doc/gen/treebook.rb +0 -180
  497. data/lib/wx/doc/gen/ui_action_simulator.rb +0 -109
  498. data/lib/wx/doc/gen/utils.rb +0 -273
  499. data/lib/wx/doc/gen/v_list_box.rb +0 -272
  500. data/lib/wx/doc/gen/v_scrolled_canvas.rb +0 -195
  501. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -191
  502. data/lib/wx/doc/gen/validator.rb +0 -68
  503. data/lib/wx/doc/gen/variant.rb +0 -294
  504. data/lib/wx/doc/gen/window.rb +0 -2917
  505. data/lib/wx/doc/gen/window_dc.rb +0 -38
  506. data/lib/wx/doc/gen/window_disabler.rb +0 -30
  507. data/lib/wx/doc/gen/with_images.rb +0 -84
  508. data/lib/wx/doc/gen/wizard.rb +0 -257
  509. data/lib/wx/doc/gen/wizard_event.rb +0 -113
  510. data/lib/wx/doc/gen/wizard_page.rb +0 -65
  511. data/lib/wx/doc/gen/wizard_page_simple.rb +0 -88
  512. data/lib/wx/doc/gen/wrap_sizer.rb +0 -79
  513. data/lib/wx/doc/gen/xml_node.rb +0 -316
  514. data/lib/wx/doc/gen/xml_resource.rb +0 -320
  515. data/lib/wx/grid/events/evt_list.rb +0 -166
  516. data/lib/wx/html/events/evt_list.rb +0 -27
  517. data/lib/wx/pg/events/evt_list.rb +0 -73
  518. data/lib/wx/rbn/events/evt_list.rb +0 -102
  519. data/lib/wx/rtc/events/evt_list.rb +0 -98
  520. data/lib/wx/rtc/ext/rich_text_ctrl.rb +0 -24
  521. data/lib/wx/stc/events/evt_list.rb +0 -178
  522. data/samples/art/wxruby-512x512.png +0 -0
@@ -1,1033 +0,0 @@
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