ZaStoGram_desktop/Telegram/SourceFiles/boxes/star_gift_preview_box.h
John Preston 935c22f0dc Share gift card backgrounds and credits icon painting
Task: 2026/10/31/share-gift-card-backgrounds-and-credit-icon-painting
2026-11-02 22:56:27 +04:00

35 lines
866 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 Data {
struct StarGift;
struct UniqueGift;
struct UniqueGiftAttributes;
enum class GiftAttributeIdType;
} // namespace Data
namespace Window {
class SessionController;
} // namespace Window
namespace Ui {
class GenericBox;
void StarGiftPreviewBox(
not_null<GenericBox*> box,
const QString &title,
Data::UniqueGiftAttributes attributes,
Data::GiftAttributeIdType tab,
std::shared_ptr<Data::UniqueGift> selected);
[[nodiscard]] QImage GenerateGiftCardBackground(QSize single, QMargins extend);
void PaintGiftCardBackground(QPainter &p, const QImage &background, QRect rect);
} // namespace Ui