Exposed find_next_valid_focus and find_prev_valid_focus.
(cherry picked from commit 3e94c23fa5
)
This commit is contained in:
parent
22bb9fcd82
commit
349f25429b
2 changed files with 16 additions and 0 deletions
|
@ -215,6 +215,20 @@
|
|||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
<method name="find_next_valid_focus" qualifiers="const">
|
||||
<return type="Control">
|
||||
</return>
|
||||
<description>
|
||||
Finds the next (below in the tree) [Control] that can receive the focus.
|
||||
</description>
|
||||
</method>
|
||||
<method name="find_prev_valid_focus" qualifiers="const">
|
||||
<return type="Control">
|
||||
</return>
|
||||
<description>
|
||||
Finds the previous (above in the tree) [Control] that can receive the focus.
|
||||
</description>
|
||||
</method>
|
||||
<method name="force_drag">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
|
|
@ -2865,6 +2865,8 @@ void Control::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("has_focus"), &Control::has_focus);
|
||||
ClassDB::bind_method(D_METHOD("grab_focus"), &Control::grab_focus);
|
||||
ClassDB::bind_method(D_METHOD("release_focus"), &Control::release_focus);
|
||||
ClassDB::bind_method(D_METHOD("find_prev_valid_focus"), &Control::find_prev_valid_focus);
|
||||
ClassDB::bind_method(D_METHOD("find_next_valid_focus"), &Control::find_next_valid_focus);
|
||||
ClassDB::bind_method(D_METHOD("get_focus_owner"), &Control::get_focus_owner);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_h_size_flags", "flags"), &Control::set_h_size_flags);
|
||||
|
|
Loading…
Reference in a new issue