Skip to content

class_textedit

reduz edited this page Feb 23, 2014 · 10 revisions

TextEdit

Inherits: Control\n\n

Brief Description

Multiline text editing control.

Member Functions

Signals

  • ** text_changed ** ( )
  • ** cursor_changed ** ( )
  • ** request_completion ** ( String keyword, int line )

Numeric Constants

  • SEARCH_MATCH_CASE = 1 - Match case when searching.
  • SEARCH_WHOLE_WORDS = 2 - Match whole words when searching.
  • SEARCH_BACKWARDS = 4 - Search from end to begining.

Description

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.

Member Function Description

  • void ** set_readonly ** ( bool enable ) \ Set the text editor as read-only. Text can be displayed but not edited.
  • void ** set_wrap ** ( bool enable ) \ Enable text wrapping when it goes beyond he edge of what is visible.
  • void ** set_max_chars ** ( int amount ) \ Set the maximum amount of characters editable.
  • void ** cut ** ( ) \ Cut the current selection.
  • void ** copy ** ( ) \ Copy the current selection.
  • void ** paste ** ( ) \ Paste the current selection.
  • void ** select_all ** ( ) \ Select all the text.
  • void ** select ** ( int from_line, int from_column, int to_line, int to_column ) \ Perform selection, from line/column to line/column.
  • IntArray ** search ** ( String flags, int from_line, int from_column, int to_line ) const \ Perform a search inside the text. Search flags can be specified in the SEARCH_* enum.
  • void ** undo ** ( ) \ Perform undo operation.
  • void ** redo ** ( ) \ Perform redo operation.
  • void ** set_custom_bg_color ** ( Color color ) \ Set a custom background color. A background color with alpha==0 disables this.
  • void ** clear_colors ** ( ) \ Clear all the syntax coloring information.

Clone this wiki locally