/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "ui/grouped_layout_geometry.h" #include "ui/grouped_layout.h" namespace Ui { std::vector LayoutMediaGroupGeometry( const std::vector &sizes, int maxWidth, int minWidth, int spacing) { const auto layout = LayoutMediaGroup(sizes, maxWidth, minWidth, spacing); auto result = std::vector(); result.reserve(layout.size()); for (const auto &part : layout) { result.push_back(part.geometry); } return result; } } // namespace Ui