ZaStoGram_desktop/Telegram/SourceFiles/tgw/tgw_painter_clips.h
John Preston 0d79409730 Check widget display lists and backend requests before Qt
Task: 2026/11/14/check-widget-display-lists-and-backend-requests-before-qt
2026-11-19 23:17:09 +04:00

21 lines
568 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
class QPainter;
namespace Tgw {
inline constexpr auto kClipHistoryEntryBytes = int64(192);
[[nodiscard]] bool ShortensClipHistory();
void ShortenClipHistory(QPainter &painter);
[[nodiscard]] int64 ClipBaseBytes(const QPainter &painter);
[[nodiscard]] int64 ClipDataBytes(QPainter &painter);
} // namespace Tgw