1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 10:15:07 +00:00

VisualBuilder: Add a way to dump the current form to the debugger.

This commit is contained in:
Andreas Kling 2019-05-07 23:28:35 +02:00
parent 5b0c0847ef
commit 5e733d47a3
5 changed files with 27 additions and 0 deletions

View file

@ -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) {