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