MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / saveLayout

Method saveLayout

src/ui/widget.cpp:619–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619void Widget::saveLayout()
620{
621 if (!m_id.empty()) {
622 LayoutIO* io = manager()->getLayoutIO();
623 if (io) {
624 std::stringstream s;
625 SaveLayoutEvent ev(this, s);
626 onSaveLayout(ev);
627
628 std::string layout = s.str();
629 if (!layout.empty())
630 io->saveLayout(this, layout);
631 }
632 }
633
634 // Do for all children
635 for (auto child : m_children)
636 child->saveLayout();
637}
638
639void Widget::setDecorativeWidgetBounds()
640{

Callers

nothing calls this directly

Calls 3

getLayoutIOMethod · 0.80
emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected