2017-12-13 18:10:48 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-12-13 18:10:48 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-12-13 18:10:48 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2017-12-19 16:57:42 +00:00
|
|
|
namespace Ui {
|
2017-12-13 18:10:48 +00:00
|
|
|
|
|
|
|
struct GroupMediaLayout {
|
|
|
|
QRect geometry;
|
|
|
|
RectParts sides = RectPart::None;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::vector<GroupMediaLayout> LayoutMediaGroup(
|
|
|
|
const std::vector<QSize> &sizes,
|
|
|
|
int maxWidth,
|
|
|
|
int minWidth,
|
|
|
|
int spacing);
|
|
|
|
|
2017-12-19 16:57:42 +00:00
|
|
|
RectParts GetCornersFromSides(RectParts sides);
|
|
|
|
QSize GetImageScaleSizeForGeometry(QSize original, QSize geometry);
|
|
|
|
|
|
|
|
} // namespace Ui
|