TextEdit.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="TextEdit" inherits="Control" version="3.4">
  3. <brief_description>
  4. Multiline text editing control.
  5. </brief_description>
  6. <description>
  7. TextEdit is meant for editing large, multiline text. It also has facilities for editing code, such as syntax highlighting support and multiple levels of undo/redo.
  8. [b]Note:[/b] When holding down [code]Alt[/code], the vertical scroll wheel will scroll 5 times as fast as it would normally do. This also works in the Godot script editor.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="add_color_region">
  14. <return type="void">
  15. </return>
  16. <argument index="0" name="begin_key" type="String">
  17. </argument>
  18. <argument index="1" name="end_key" type="String">
  19. </argument>
  20. <argument index="2" name="color" type="Color">
  21. </argument>
  22. <argument index="3" name="line_only" type="bool" default="false">
  23. </argument>
  24. <description>
  25. Adds color region (given the delimiters) and its colors.
  26. </description>
  27. </method>
  28. <method name="add_keyword_color">
  29. <return type="void">
  30. </return>
  31. <argument index="0" name="keyword" type="String">
  32. </argument>
  33. <argument index="1" name="color" type="Color">
  34. </argument>
  35. <description>
  36. Adds a [code]keyword[/code] and its [Color].
  37. </description>
  38. </method>
  39. <method name="can_fold" qualifiers="const">
  40. <return type="bool">
  41. </return>
  42. <argument index="0" name="line" type="int">
  43. </argument>
  44. <description>
  45. Returns if the given line is foldable, that is, it has indented lines right below it.
  46. </description>
  47. </method>
  48. <method name="center_viewport_to_cursor">
  49. <return type="void">
  50. </return>
  51. <description>
  52. Centers the viewport on the line the editing cursor is at. This also resets the [member scroll_horizontal] value to [code]0[/code].
  53. </description>
  54. </method>
  55. <method name="clear_colors">
  56. <return type="void">
  57. </return>
  58. <description>
  59. Clears all custom syntax coloring information previously added with [method add_color_region] or [method add_keyword_color].
  60. </description>
  61. </method>
  62. <method name="clear_undo_history">
  63. <return type="void">
  64. </return>
  65. <description>
  66. Clears the undo history.
  67. </description>
  68. </method>
  69. <method name="copy">
  70. <return type="void">
  71. </return>
  72. <description>
  73. Copy's the current text selection.
  74. </description>
  75. </method>
  76. <method name="cursor_get_column" qualifiers="const">
  77. <return type="int">
  78. </return>
  79. <description>
  80. Returns the column the editing cursor is at.
  81. </description>
  82. </method>
  83. <method name="cursor_get_line" qualifiers="const">
  84. <return type="int">
  85. </return>
  86. <description>
  87. Returns the line the editing cursor is at.
  88. </description>
  89. </method>
  90. <method name="cursor_set_column">
  91. <return type="void">
  92. </return>
  93. <argument index="0" name="column" type="int">
  94. </argument>
  95. <argument index="1" name="adjust_viewport" type="bool" default="true">
  96. </argument>
  97. <description>
  98. Moves the cursor at the specified [code]column[/code] index.
  99. If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport will center at the cursor position after the move occurs.
  100. </description>
  101. </method>
  102. <method name="cursor_set_line">
  103. <return type="void">
  104. </return>
  105. <argument index="0" name="line" type="int">
  106. </argument>
  107. <argument index="1" name="adjust_viewport" type="bool" default="true">
  108. </argument>
  109. <argument index="2" name="can_be_hidden" type="bool" default="true">
  110. </argument>
  111. <argument index="3" name="wrap_index" type="int" default="0">
  112. </argument>
  113. <description>
  114. Moves the cursor at the specified [code]line[/code] index.
  115. If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport will center at the cursor position after the move occurs.
  116. If [code]can_be_hidden[/code] is set to [code]true[/code], the specified [code]line[/code] can be hidden using [method set_line_as_hidden].
  117. </description>
  118. </method>
  119. <method name="cut">
  120. <return type="void">
  121. </return>
  122. <description>
  123. Cut's the current selection.
  124. </description>
  125. </method>
  126. <method name="deselect">
  127. <return type="void">
  128. </return>
  129. <description>
  130. Deselects the current selection.
  131. </description>
  132. </method>
  133. <method name="fold_all_lines">
  134. <return type="void">
  135. </return>
  136. <description>
  137. Folds all lines that are possible to be folded (see [method can_fold]).
  138. </description>
  139. </method>
  140. <method name="fold_line">
  141. <return type="void">
  142. </return>
  143. <argument index="0" name="line" type="int">
  144. </argument>
  145. <description>
  146. Folds the given line, if possible (see [method can_fold]).
  147. </description>
  148. </method>
  149. <method name="get_breakpoints" qualifiers="const">
  150. <return type="Array">
  151. </return>
  152. <description>
  153. Returns an array containing the line number of each breakpoint.
  154. </description>
  155. </method>
  156. <method name="get_keyword_color" qualifiers="const">
  157. <return type="Color">
  158. </return>
  159. <argument index="0" name="keyword" type="String">
  160. </argument>
  161. <description>
  162. Returns the [Color] of the specified [code]keyword[/code].
  163. </description>
  164. </method>
  165. <method name="get_line" qualifiers="const">
  166. <return type="String">
  167. </return>
  168. <argument index="0" name="line" type="int">
  169. </argument>
  170. <description>
  171. Returns the text of a specific line.
  172. </description>
  173. </method>
  174. <method name="get_line_count" qualifiers="const">
  175. <return type="int">
  176. </return>
  177. <description>
  178. Returns the amount of total lines in the text.
  179. </description>
  180. </method>
  181. <method name="get_menu" qualifiers="const">
  182. <return type="PopupMenu">
  183. </return>
  184. <description>
  185. Returns the [PopupMenu] of this [TextEdit]. By default, this menu is displayed when right-clicking on the [TextEdit].
  186. </description>
  187. </method>
  188. <method name="get_selection_from_column" qualifiers="const">
  189. <return type="int">
  190. </return>
  191. <description>
  192. Returns the selection begin column.
  193. </description>
  194. </method>
  195. <method name="get_selection_from_line" qualifiers="const">
  196. <return type="int">
  197. </return>
  198. <description>
  199. Returns the selection begin line.
  200. </description>
  201. </method>
  202. <method name="get_selection_text" qualifiers="const">
  203. <return type="String">
  204. </return>
  205. <description>
  206. Returns the text inside the selection.
  207. </description>
  208. </method>
  209. <method name="get_selection_to_column" qualifiers="const">
  210. <return type="int">
  211. </return>
  212. <description>
  213. Returns the selection end column.
  214. </description>
  215. </method>
  216. <method name="get_selection_to_line" qualifiers="const">
  217. <return type="int">
  218. </return>
  219. <description>
  220. Returns the selection end line.
  221. </description>
  222. </method>
  223. <method name="get_word_under_cursor" qualifiers="const">
  224. <return type="String">
  225. </return>
  226. <description>
  227. Returns a [String] text with the word under the caret (text cursor) location.
  228. </description>
  229. </method>
  230. <method name="has_keyword_color" qualifiers="const">
  231. <return type="bool">
  232. </return>
  233. <argument index="0" name="keyword" type="String">
  234. </argument>
  235. <description>
  236. Returns whether the specified [code]keyword[/code] has a color set to it or not.
  237. </description>
  238. </method>
  239. <method name="insert_text_at_cursor">
  240. <return type="void">
  241. </return>
  242. <argument index="0" name="text" type="String">
  243. </argument>
  244. <description>
  245. Insert the specified text at the cursor position.
  246. </description>
  247. </method>
  248. <method name="is_folded" qualifiers="const">
  249. <return type="bool">
  250. </return>
  251. <argument index="0" name="line" type="int">
  252. </argument>
  253. <description>
  254. Returns whether the line at the specified index is folded or not.
  255. </description>
  256. </method>
  257. <method name="is_line_hidden" qualifiers="const">
  258. <return type="bool">
  259. </return>
  260. <argument index="0" name="line" type="int">
  261. </argument>
  262. <description>
  263. Returns whether the line at the specified index is hidden or not.
  264. </description>
  265. </method>
  266. <method name="is_line_set_as_bookmark" qualifiers="const">
  267. <return type="bool">
  268. </return>
  269. <argument index="0" name="line" type="int">
  270. </argument>
  271. <description>
  272. Returns [code]true[/code] when the specified [code]line[/code] is bookmarked.
  273. </description>
  274. </method>
  275. <method name="is_line_set_as_breakpoint" qualifiers="const">
  276. <return type="bool">
  277. </return>
  278. <argument index="0" name="line" type="int">
  279. </argument>
  280. <description>
  281. Returns [code]true[/code] when the specified [code]line[/code] has a breakpoint.
  282. </description>
  283. </method>
  284. <method name="is_line_set_as_safe" qualifiers="const">
  285. <return type="bool">
  286. </return>
  287. <argument index="0" name="line" type="int">
  288. </argument>
  289. <description>
  290. Returns [code]true[/code] when the specified [code]line[/code] is marked as safe.
  291. </description>
  292. </method>
  293. <method name="is_selection_active" qualifiers="const">
  294. <return type="bool">
  295. </return>
  296. <description>
  297. Returns [code]true[/code] if the selection is active.
  298. </description>
  299. </method>
  300. <method name="menu_option">
  301. <return type="void">
  302. </return>
  303. <argument index="0" name="option" type="int">
  304. </argument>
  305. <description>
  306. Triggers a right-click menu action by the specified index. See [enum MenuItems] for a list of available indexes.
  307. </description>
  308. </method>
  309. <method name="paste">
  310. <return type="void">
  311. </return>
  312. <description>
  313. Paste the current selection.
  314. </description>
  315. </method>
  316. <method name="redo">
  317. <return type="void">
  318. </return>
  319. <description>
  320. Perform redo operation.
  321. </description>
  322. </method>
  323. <method name="remove_breakpoints">
  324. <return type="void">
  325. </return>
  326. <description>
  327. Removes all the breakpoints. This will not fire the [signal breakpoint_toggled] signal.
  328. </description>
  329. </method>
  330. <method name="search" qualifiers="const">
  331. <return type="PoolIntArray">
  332. </return>
  333. <argument index="0" name="key" type="String">
  334. </argument>
  335. <argument index="1" name="flags" type="int">
  336. </argument>
  337. <argument index="2" name="from_line" type="int">
  338. </argument>
  339. <argument index="3" name="from_column" type="int">
  340. </argument>
  341. <description>
  342. Perform a search inside the text. Search flags can be specified in the [enum SearchFlags] enum.
  343. Returns an empty [code]PoolIntArray[/code] if no result was found. Otherwise, the result line and column can be accessed at indices specified in the [enum SearchResult] enum, e.g:
  344. [codeblock]
  345. var result = search(key, flags, line, column)
  346. if result.size() &gt; 0:
  347. # Result found.
  348. var res_line = result[TextEdit.SEARCH_RESULT_LINE]
  349. var res_column = result[TextEdit.SEARCH_RESULT_COLUMN]
  350. [/codeblock]
  351. </description>
  352. </method>
  353. <method name="select">
  354. <return type="void">
  355. </return>
  356. <argument index="0" name="from_line" type="int">
  357. </argument>
  358. <argument index="1" name="from_column" type="int">
  359. </argument>
  360. <argument index="2" name="to_line" type="int">
  361. </argument>
  362. <argument index="3" name="to_column" type="int">
  363. </argument>
  364. <description>
  365. Perform selection, from line/column to line/column.
  366. If [member selecting_enabled] is [code]false[/code], no selection will occur.
  367. </description>
  368. </method>
  369. <method name="select_all">
  370. <return type="void">
  371. </return>
  372. <description>
  373. Select all the text.
  374. If [member selecting_enabled] is [code]false[/code], no selection will occur.
  375. </description>
  376. </method>
  377. <method name="set_line">
  378. <return type="void">
  379. </return>
  380. <argument index="0" name="line" type="int">
  381. </argument>
  382. <argument index="1" name="new_text" type="String">
  383. </argument>
  384. <description>
  385. Sets the text for a specific line.
  386. </description>
  387. </method>
  388. <method name="set_line_as_bookmark">
  389. <return type="void">
  390. </return>
  391. <argument index="0" name="line" type="int">
  392. </argument>
  393. <argument index="1" name="bookmark" type="bool">
  394. </argument>
  395. <description>
  396. Bookmarks the [code]line[/code] if [code]bookmark[/code] is true. Deletes the bookmark if [code]bookmark[/code] is false.
  397. Bookmarks are shown in the [member breakpoint_gutter].
  398. </description>
  399. </method>
  400. <method name="set_line_as_breakpoint">
  401. <return type="void">
  402. </return>
  403. <argument index="0" name="line" type="int">
  404. </argument>
  405. <argument index="1" name="breakpoint" type="bool">
  406. </argument>
  407. <description>
  408. Adds or removes the breakpoint in [code]line[/code]. Breakpoints are shown in the [member breakpoint_gutter].
  409. </description>
  410. </method>
  411. <method name="set_line_as_hidden">
  412. <return type="void">
  413. </return>
  414. <argument index="0" name="line" type="int">
  415. </argument>
  416. <argument index="1" name="enable" type="bool">
  417. </argument>
  418. <description>
  419. If [code]true[/code], hides the line of the specified index.
  420. </description>
  421. </method>
  422. <method name="set_line_as_safe">
  423. <return type="void">
  424. </return>
  425. <argument index="0" name="line" type="int">
  426. </argument>
  427. <argument index="1" name="safe" type="bool">
  428. </argument>
  429. <description>
  430. If [code]true[/code], marks the [code]line[/code] as safe.
  431. This will show the line number with the color provided in the [code]safe_line_number_color[/code] theme property.
  432. </description>
  433. </method>
  434. <method name="toggle_fold_line">
  435. <return type="void">
  436. </return>
  437. <argument index="0" name="line" type="int">
  438. </argument>
  439. <description>
  440. Toggle the folding of the code block at the given line.
  441. </description>
  442. </method>
  443. <method name="undo">
  444. <return type="void">
  445. </return>
  446. <description>
  447. Perform undo operation.
  448. </description>
  449. </method>
  450. <method name="unfold_line">
  451. <return type="void">
  452. </return>
  453. <argument index="0" name="line" type="int">
  454. </argument>
  455. <description>
  456. Unfolds the given line, if folded.
  457. </description>
  458. </method>
  459. <method name="unhide_all_lines">
  460. <return type="void">
  461. </return>
  462. <description>
  463. Unhide all lines that were previously set to hidden by [method set_line_as_hidden].
  464. </description>
  465. </method>
  466. </methods>
  467. <members>
  468. <member name="breakpoint_gutter" type="bool" setter="set_breakpoint_gutter_enabled" getter="is_breakpoint_gutter_enabled" default="false">
  469. If [code]true[/code], the breakpoint gutter is visible.
  470. </member>
  471. <member name="caret_blink" type="bool" setter="cursor_set_blink_enabled" getter="cursor_get_blink_enabled" default="false">
  472. If [code]true[/code], the caret (visual cursor) blinks.
  473. </member>
  474. <member name="caret_blink_speed" type="float" setter="cursor_set_blink_speed" getter="cursor_get_blink_speed" default="0.65">
  475. Duration (in seconds) of a caret's blinking cycle.
  476. </member>
  477. <member name="caret_block_mode" type="bool" setter="cursor_set_block_mode" getter="cursor_is_block_mode" default="false">
  478. If [code]true[/code], the caret displays as a rectangle.
  479. If [code]false[/code], the caret displays as a bar.
  480. </member>
  481. <member name="caret_moving_by_right_click" type="bool" setter="set_right_click_moves_caret" getter="is_right_click_moving_caret" default="true">
  482. If [code]true[/code], a right-click moves the cursor at the mouse position before displaying the context menu.
  483. If [code]false[/code], the context menu disregards mouse location.
  484. </member>
  485. <member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled" default="true">
  486. If [code]true[/code], a right-click displays the context menu.
  487. </member>
  488. <member name="draw_spaces" type="bool" setter="set_draw_spaces" getter="is_drawing_spaces" default="false">
  489. If [code]true[/code], the "space" character will have a visible representation.
  490. </member>
  491. <member name="draw_tabs" type="bool" setter="set_draw_tabs" getter="is_drawing_tabs" default="false">
  492. If [code]true[/code], the "tab" character will have a visible representation.
  493. </member>
  494. <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" override="true" enum="Control.FocusMode" default="2" />
  495. <member name="fold_gutter" type="bool" setter="set_draw_fold_gutter" getter="is_drawing_fold_gutter" default="false">
  496. If [code]true[/code], the fold gutter is visible. This enables folding groups of indented lines.
  497. </member>
  498. <member name="hiding_enabled" type="bool" setter="set_hiding_enabled" getter="is_hiding_enabled" default="false">
  499. If [code]true[/code], all lines that have been set to hidden by [method set_line_as_hidden], will not be visible.
  500. </member>
  501. <member name="highlight_all_occurrences" type="bool" setter="set_highlight_all_occurrences" getter="is_highlight_all_occurrences_enabled" default="false">
  502. If [code]true[/code], all occurrences of the selected text will be highlighted.
  503. </member>
  504. <member name="highlight_current_line" type="bool" setter="set_highlight_current_line" getter="is_highlight_current_line_enabled" default="false">
  505. If [code]true[/code], the line containing the cursor is highlighted.
  506. </member>
  507. <member name="minimap_draw" type="bool" setter="draw_minimap" getter="is_drawing_minimap" default="false">
  508. If [code]true[/code], a minimap is shown, providing an outline of your source code.
  509. </member>
  510. <member name="minimap_width" type="int" setter="set_minimap_width" getter="get_minimap_width" default="80">
  511. The width, in pixels, of the minimap.
  512. </member>
  513. <member name="mouse_default_cursor_shape" type="int" setter="set_default_cursor_shape" getter="get_default_cursor_shape" override="true" enum="Control.CursorShape" default="1" />
  514. <member name="override_selected_font_color" type="bool" setter="set_override_selected_font_color" getter="is_overriding_selected_font_color" default="false">
  515. If [code]true[/code], custom [code]font_color_selected[/code] will be used for selected text.
  516. </member>
  517. <member name="readonly" type="bool" setter="set_readonly" getter="is_readonly" default="false">
  518. If [code]true[/code], read-only mode is enabled. Existing text cannot be modified and new text cannot be added.
  519. </member>
  520. <member name="scroll_horizontal" type="int" setter="set_h_scroll" getter="get_h_scroll" default="0">
  521. If there is a horizontal scrollbar, this determines the current horizontal scroll value in pixels.
  522. </member>
  523. <member name="scroll_vertical" type="float" setter="set_v_scroll" getter="get_v_scroll" default="0.0">
  524. If there is a vertical scrollbar, this determines the current vertical scroll value in line numbers, starting at 0 for the top line.
  525. </member>
  526. <member name="selecting_enabled" type="bool" setter="set_selecting_enabled" getter="is_selecting_enabled" default="true">
  527. If [code]true[/code], text can be selected.
  528. If [code]false[/code], text can not be selected by the user or by the [method select] or [method select_all] methods.
  529. </member>
  530. <member name="shortcut_keys_enabled" type="bool" setter="set_shortcut_keys_enabled" getter="is_shortcut_keys_enabled" default="true">
  531. If [code]true[/code], shortcut keys for context menu items are enabled, even if the context menu is disabled.
  532. </member>
  533. <member name="show_line_numbers" type="bool" setter="set_show_line_numbers" getter="is_show_line_numbers_enabled" default="false">
  534. If [code]true[/code], line numbers are displayed to the left of the text.
  535. </member>
  536. <member name="smooth_scrolling" type="bool" setter="set_smooth_scroll_enable" getter="is_smooth_scroll_enabled" default="false">
  537. If [code]true[/code], sets the [code]step[/code] of the scrollbars to [code]0.25[/code] which results in smoother scrolling.
  538. </member>
  539. <member name="syntax_highlighting" type="bool" setter="set_syntax_coloring" getter="is_syntax_coloring_enabled" default="false">
  540. If [code]true[/code], any custom color properties that have been set for this [TextEdit] will be visible.
  541. </member>
  542. <member name="text" type="String" setter="set_text" getter="get_text" default="&quot;&quot;">
  543. String value of the [TextEdit].
  544. </member>
  545. <member name="v_scroll_speed" type="float" setter="set_v_scroll_speed" getter="get_v_scroll_speed" default="80.0">
  546. Vertical scroll sensitivity.
  547. </member>
  548. <member name="virtual_keyboard_enabled" type="bool" setter="set_virtual_keyboard_enabled" getter="is_virtual_keyboard_enabled" default="true">
  549. If [code]true[/code], the native virtual keyboard is shown when focused on platforms that support it.
  550. </member>
  551. <member name="wrap_enabled" type="bool" setter="set_wrap_enabled" getter="is_wrap_enabled" default="false">
  552. If [code]true[/code], enables text wrapping when it goes beyond the edge of what is visible.
  553. </member>
  554. </members>
  555. <signals>
  556. <signal name="breakpoint_toggled">
  557. <argument index="0" name="row" type="int">
  558. </argument>
  559. <description>
  560. Emitted when a breakpoint is placed via the breakpoint gutter.
  561. </description>
  562. </signal>
  563. <signal name="cursor_changed">
  564. <description>
  565. Emitted when the cursor changes.
  566. </description>
  567. </signal>
  568. <signal name="info_clicked">
  569. <argument index="0" name="row" type="int">
  570. </argument>
  571. <argument index="1" name="info" type="String">
  572. </argument>
  573. <description>
  574. Emitted when the info icon is clicked.
  575. </description>
  576. </signal>
  577. <signal name="request_completion">
  578. <description>
  579. </description>
  580. </signal>
  581. <signal name="symbol_lookup">
  582. <argument index="0" name="symbol" type="String">
  583. </argument>
  584. <argument index="1" name="row" type="int">
  585. </argument>
  586. <argument index="2" name="column" type="int">
  587. </argument>
  588. <description>
  589. </description>
  590. </signal>
  591. <signal name="text_changed">
  592. <description>
  593. Emitted when the text changes.
  594. </description>
  595. </signal>
  596. </signals>
  597. <constants>
  598. <constant name="SEARCH_MATCH_CASE" value="1" enum="SearchFlags">
  599. Match case when searching.
  600. </constant>
  601. <constant name="SEARCH_WHOLE_WORDS" value="2" enum="SearchFlags">
  602. Match whole words when searching.
  603. </constant>
  604. <constant name="SEARCH_BACKWARDS" value="4" enum="SearchFlags">
  605. Search from end to beginning.
  606. </constant>
  607. <constant name="SEARCH_RESULT_COLUMN" value="0" enum="SearchResult">
  608. Used to access the result column from [method search].
  609. </constant>
  610. <constant name="SEARCH_RESULT_LINE" value="1" enum="SearchResult">
  611. Used to access the result line from [method search].
  612. </constant>
  613. <constant name="MENU_CUT" value="0" enum="MenuItems">
  614. Cuts (copies and clears) the selected text.
  615. </constant>
  616. <constant name="MENU_COPY" value="1" enum="MenuItems">
  617. Copies the selected text.
  618. </constant>
  619. <constant name="MENU_PASTE" value="2" enum="MenuItems">
  620. Pastes the clipboard text over the selected text (or at the cursor's position).
  621. </constant>
  622. <constant name="MENU_CLEAR" value="3" enum="MenuItems">
  623. Erases the whole [TextEdit] text.
  624. </constant>
  625. <constant name="MENU_SELECT_ALL" value="4" enum="MenuItems">
  626. Selects the whole [TextEdit] text.
  627. </constant>
  628. <constant name="MENU_UNDO" value="5" enum="MenuItems">
  629. Undoes the previous action.
  630. </constant>
  631. <constant name="MENU_REDO" value="6" enum="MenuItems">
  632. Redoes the previous action.
  633. </constant>
  634. <constant name="MENU_MAX" value="7" enum="MenuItems">
  635. Represents the size of the [enum MenuItems] enum.
  636. </constant>
  637. </constants>
  638. <theme_items>
  639. <theme_item name="background_color" type="Color" default="Color( 0, 0, 0, 0 )">
  640. Sets the background [Color] of this [TextEdit]. [member syntax_highlighting] has to be enabled.
  641. </theme_item>
  642. <theme_item name="bookmark_color" type="Color" default="Color( 0.08, 0.49, 0.98, 1 )">
  643. Sets the [Color] of the bookmark marker. [member syntax_highlighting] has to be enabled.
  644. </theme_item>
  645. <theme_item name="brace_mismatch_color" type="Color" default="Color( 1, 0.2, 0.2, 1 )">
  646. </theme_item>
  647. <theme_item name="breakpoint_color" type="Color" default="Color( 0.8, 0.8, 0.4, 0.2 )">
  648. Sets the [Color] of the breakpoints. [member breakpoint_gutter] has to be enabled.
  649. </theme_item>
  650. <theme_item name="caret_background_color" type="Color" default="Color( 0, 0, 0, 1 )">
  651. </theme_item>
  652. <theme_item name="caret_color" type="Color" default="Color( 0.88, 0.88, 0.88, 1 )">
  653. </theme_item>
  654. <theme_item name="code_folding_color" type="Color" default="Color( 0.8, 0.8, 0.8, 0.8 )">
  655. </theme_item>
  656. <theme_item name="completion" type="StyleBox">
  657. </theme_item>
  658. <theme_item name="completion_background_color" type="Color" default="Color( 0.17, 0.16, 0.2, 1 )">
  659. </theme_item>
  660. <theme_item name="completion_existing_color" type="Color" default="Color( 0.87, 0.87, 0.87, 0.13 )">
  661. </theme_item>
  662. <theme_item name="completion_font_color" type="Color" default="Color( 0.67, 0.67, 0.67, 1 )">
  663. </theme_item>
  664. <theme_item name="completion_lines" type="int" default="7">
  665. </theme_item>
  666. <theme_item name="completion_max_width" type="int" default="50">
  667. </theme_item>
  668. <theme_item name="completion_scroll_color" type="Color" default="Color( 1, 1, 1, 1 )">
  669. </theme_item>
  670. <theme_item name="completion_scroll_width" type="int" default="3">
  671. </theme_item>
  672. <theme_item name="completion_selected_color" type="Color" default="Color( 0.26, 0.26, 0.27, 1 )">
  673. </theme_item>
  674. <theme_item name="current_line_color" type="Color" default="Color( 0.25, 0.25, 0.26, 0.8 )">
  675. Sets the [Color] of the breakpoints. [member breakpoint_gutter] has to be enabled.
  676. </theme_item>
  677. <theme_item name="executing_line_color" type="Color" default="Color( 0.2, 0.8, 0.2, 0.4 )">
  678. </theme_item>
  679. <theme_item name="focus" type="StyleBox">
  680. </theme_item>
  681. <theme_item name="fold" type="Texture">
  682. </theme_item>
  683. <theme_item name="folded" type="Texture">
  684. </theme_item>
  685. <theme_item name="font" type="Font">
  686. Sets the default [Font].
  687. </theme_item>
  688. <theme_item name="font_color" type="Color" default="Color( 0.88, 0.88, 0.88, 1 )">
  689. Sets the font [Color].
  690. </theme_item>
  691. <theme_item name="font_color_readonly" type="Color" default="Color( 0.88, 0.88, 0.88, 0.5 )">
  692. </theme_item>
  693. <theme_item name="font_color_selected" type="Color" default="Color( 0, 0, 0, 1 )">
  694. Sets the [Color] of the selected text. [member override_selected_font_color] has to be enabled.
  695. </theme_item>
  696. <theme_item name="function_color" type="Color" default="Color( 0.4, 0.64, 0.81, 1 )">
  697. </theme_item>
  698. <theme_item name="line_number_color" type="Color" default="Color( 0.67, 0.67, 0.67, 0.4 )">
  699. Sets the [Color] of the line numbers. [member show_line_numbers] has to be enabled.
  700. </theme_item>
  701. <theme_item name="line_spacing" type="int" default="4">
  702. Sets the spacing between the lines.
  703. </theme_item>
  704. <theme_item name="mark_color" type="Color" default="Color( 1, 0.4, 0.4, 0.4 )">
  705. Sets the [Color] of marked text.
  706. </theme_item>
  707. <theme_item name="member_variable_color" type="Color" default="Color( 0.9, 0.31, 0.35, 1 )">
  708. </theme_item>
  709. <theme_item name="normal" type="StyleBox">
  710. Sets the [StyleBox] of this [TextEdit].
  711. </theme_item>
  712. <theme_item name="number_color" type="Color" default="Color( 0.92, 0.58, 0.2, 1 )">
  713. </theme_item>
  714. <theme_item name="read_only" type="StyleBox">
  715. Sets the [StyleBox] of this [TextEdit] when [member readonly] is enabled.
  716. </theme_item>
  717. <theme_item name="safe_line_number_color" type="Color" default="Color( 0.67, 0.78, 0.67, 0.6 )">
  718. </theme_item>
  719. <theme_item name="selection_color" type="Color" default="Color( 0.49, 0.49, 0.49, 1 )">
  720. Sets the highlight [Color] of text selections.
  721. </theme_item>
  722. <theme_item name="space" type="Texture">
  723. </theme_item>
  724. <theme_item name="symbol_color" type="Color" default="Color( 0.94, 0.94, 0.94, 1 )">
  725. </theme_item>
  726. <theme_item name="tab" type="Texture">
  727. Sets a custom [Texture] for tab text characters.
  728. </theme_item>
  729. <theme_item name="word_highlighted_color" type="Color" default="Color( 0.8, 0.9, 0.9, 0.15 )">
  730. Sets the highlight [Color] of multiple occurrences. [member highlight_all_occurrences] has to be enabled.
  731. </theme_item>
  732. </theme_items>
  733. </class>