diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2017-11-11 16:07:17 -0200 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2017-11-11 22:14:14 -0200 |
commit | 920f3f6546d419fb26d2612490bcfb719d5bc06e (patch) | |
tree | df0ee3c985035b6d2ea8e100b680deee361a92be /doc/classes | |
parent | fc299b4f370d586b75e1ae4f394cd3759ea4ae49 (diff) |
Added "is_readonly()" to TextEdit and made it a property.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/TextEdit.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index e7f94b5826..0af11eec31 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -259,6 +259,13 @@ <description> </description> </method> + <method name="is_readonly" qualifiers="const"> ++ <return type="bool"> ++ </return> ++ <description> ++ Return true if the text editor is in read-only mode (see [method set_readonly]). ++ </description> ++ </method> <method name="is_selection_active" qualifiers="const"> <return type="bool"> </return> @@ -458,6 +465,9 @@ </method> </methods> <members> + <member name="readonly" type="bool" setter="set_readonly" getter="is_readonly"> + If [code]true[/code] read-only mode is enabled. Existing text cannot be modified and new text cannot be added. + </member> <member name="caret_blink" type="bool" setter="cursor_set_blink_enabled" getter="cursor_get_blink_enabled"> </member> <member name="caret_blink_speed" type="float" setter="cursor_set_blink_speed" getter="cursor_get_blink_speed"> |