mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
LibGUI: Refactor the keyboard activation code a bit to use WeakPtr<GWidget>.
This commit is contained in:
parent
41bcabd9aa
commit
da475ce3f5
6 changed files with 43 additions and 39 deletions
|
@ -133,8 +133,8 @@ private:
|
|||
|
||||
void paint_keybinds();
|
||||
|
||||
void find_keyboard_selectable();
|
||||
void find_keyboard_selectable_children(GWidget* widget, Vector<GWidget*>& potential_keybind_widgets);
|
||||
void collect_keyboard_activation_targets();
|
||||
|
||||
Retained<GraphicsBitmap> create_backing_bitmap(const Size&);
|
||||
void set_current_backing_bitmap(GraphicsBitmap&, bool flush_immediately = false);
|
||||
void flip(const Vector<Rect, 32>& dirty_rects);
|
||||
|
@ -167,5 +167,5 @@ private:
|
|||
bool m_keybind_mode { false };
|
||||
String m_entered_keybind;
|
||||
size_t m_max_keybind_length { 0 };
|
||||
HashMap<String, GWidget*> m_hashed_potential_keybind_widgets;
|
||||
HashMap<String, WeakPtr<GWidget>> m_keyboard_activation_targets;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue