Files
tdesktop/Telegram/SourceFiles/ui/chat/torn_edge.h
John Preston 1926d9bfa1 Show update notices for unsupported messages and blocks
Task: 2026/08/08/present-unsupported-messages-and-blocks
2026-08-10 21:24:40 +04:00

27 lines
577 B
C++

/*
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
*/
#pragma once
namespace Ui {
struct TornEdgeCache {
int width = 0;
QImage maskTop;
QImage maskBottom;
QImage patternCacheTop;
QImage patternCacheBottom;
QImage solidCacheTop;
QImage solidCacheBottom;
QColor solidColorTop;
QColor solidColorBottom;
};
void ValidateTornEdges(TornEdgeCache &cache, int width);
} // namespace Ui