fix focus locking bug
This commit is contained in:
parent
c82ad3c150
commit
1bbce78a2e
8 changed files with 33 additions and 20 deletions
|
|
@ -25,13 +25,16 @@ namespace tp {
|
|||
void clean();
|
||||
|
||||
void updateTreeToProcess(Widget* root);
|
||||
void handleFocusChanges(Widget* root, EventHandler& events);
|
||||
void handleFocusChanges(Widget* active, Widget* prevActive);
|
||||
Widget* findFocusWidget(Widget* root, EventHandler& events);
|
||||
|
||||
void findFocusWidget(Widget* iter, Widget** focus, const Vec2F& pointer);
|
||||
void findMouseFocusWidget(Widget* iter, Widget** focus, const Vec2F& pointer);
|
||||
static void getWidgetPath(Widget* widget, std::vector<Widget*>& out);
|
||||
void processActiveTree(Widget* iter, EventHandler& events, Vec2F pos);
|
||||
void processFocusItems(EventHandler& events);
|
||||
|
||||
Widget* getFocusWidget() { return mInFocusWidget; }
|
||||
|
||||
private:
|
||||
static void procWidget(Widget* widget, EventHandler& events, bool withEvents = false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue