33 grid* parent_grid =
nullptr;
35 parent_grid =
g->find_widget<
grid>(
id,
false,
false);
42 parent_grid =
dynamic_cast<grid*
>(parent_grid->
parent());
std::unique_ptr< widget > swap_child(const std::string &id, std::unique_ptr< widget > w, const bool recurse, widget *new_parent=nullptr)
Exchanges a child in the grid.
std::string id
Text to match against addon_info.tags()
void swap_grid(grid *g, grid *content_grid, std::unique_ptr< widget > widget, const std::string &id)
Swaps an item in a grid for another one.