method bind TextEdit::set_line() added
(cherry picked from commit b9acf1cedf
)
This commit is contained in:
parent
87de81258d
commit
1a39b4ea22
|
@ -354,6 +354,17 @@
|
||||||
If [code]true[/code], hides the line of the specified index.
|
If [code]true[/code], hides the line of the specified index.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="set_line">
|
||||||
|
<return type="void">
|
||||||
|
</return>
|
||||||
|
<argument index="0" name="line" type="int">
|
||||||
|
</argument>
|
||||||
|
<argument index="1" name="new_text" type="String">
|
||||||
|
</argument>
|
||||||
|
<description>
|
||||||
|
Sets the text for a specific line.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="toggle_fold_line">
|
<method name="toggle_fold_line">
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
|
|
|
@ -7034,6 +7034,7 @@ void TextEdit::_bind_methods() {
|
||||||
ClassDB::bind_method(D_METHOD("get_line_count"), &TextEdit::get_line_count);
|
ClassDB::bind_method(D_METHOD("get_line_count"), &TextEdit::get_line_count);
|
||||||
ClassDB::bind_method(D_METHOD("get_text"), &TextEdit::get_text);
|
ClassDB::bind_method(D_METHOD("get_text"), &TextEdit::get_text);
|
||||||
ClassDB::bind_method(D_METHOD("get_line", "line"), &TextEdit::get_line);
|
ClassDB::bind_method(D_METHOD("get_line", "line"), &TextEdit::get_line);
|
||||||
|
ClassDB::bind_method(D_METHOD("set_line", "line", "new_text"), &TextEdit::set_line);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("center_viewport_to_cursor"), &TextEdit::center_viewport_to_cursor);
|
ClassDB::bind_method(D_METHOD("center_viewport_to_cursor"), &TextEdit::center_viewport_to_cursor);
|
||||||
ClassDB::bind_method(D_METHOD("cursor_set_column", "column", "adjust_viewport"), &TextEdit::cursor_set_column, DEFVAL(true));
|
ClassDB::bind_method(D_METHOD("cursor_set_column", "column", "adjust_viewport"), &TextEdit::cursor_set_column, DEFVAL(true));
|
||||||
|
|
Loading…
Reference in New Issue