mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-15 04:07:36 +00:00
VisualBuilder: Add a way to dump the current form to the debugger.
This commit is contained in:
@@ -300,6 +300,19 @@ void VBForm::mousemove_event(GMouseEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
void VBForm::dump()
|
||||
{
|
||||
dbgprintf("[Form]\n");
|
||||
dbgprintf("Name=%s\n", m_name.characters());
|
||||
dbgprintf("\n");
|
||||
int i = 0;
|
||||
for (auto& widget : m_widgets) {
|
||||
dbgprintf("[Widget %d]\n", i++);
|
||||
widget->dump();
|
||||
dbgprintf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
void VBForm::mouseup_event(GMouseEvent& event)
|
||||
{
|
||||
if (event.button() == GMouseButton::Left) {
|
||||
|
||||
Reference in New Issue
Block a user