mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
HackStudio: Allow moving widgets around using the CursorTool
You can now move the widgets around, either by themselves or in group selections, by dragging them with the cursor tool. :^)
This commit is contained in:
parent
f6576c4b7c
commit
567769eb2f
Notes:
sideshowbarker
2024-07-19 11:16:39 +09:00
Author: https://github.com/awesomekling
Commit: 567769eb2f
4 changed files with 79 additions and 8 deletions
|
@ -60,6 +60,15 @@ public:
|
|||
m_widgets.clear();
|
||||
}
|
||||
|
||||
template<typename Callback>
|
||||
void for_each(Callback callback)
|
||||
{
|
||||
for (auto& it : m_widgets) {
|
||||
if (callback(*it) == IterationDecision::Break)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
WidgetSelection() {}
|
||||
private:
|
||||
HashTable<GWidget*> m_widgets;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue