Merge pull request #76027 from AThousandShips/focus_direction

Expose finding valid focus neighbors of a `Control` by side
This commit is contained in:
Rémi Verschelde 2023-09-25 17:17:33 +02:00
commit 3408aab7c6
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 15 additions and 0 deletions

View file

@ -527,6 +527,7 @@ public:
Control *find_next_valid_focus() const;
Control *find_prev_valid_focus() const;
Control *find_valid_focus_neighbor(Side p_size) const;
void set_focus_neighbor(Side p_side, const NodePath &p_neighbor);
NodePath get_focus_neighbor(Side p_side) const;