2024-05-22 21:48:11 +03:00
|
|
|
/*
|
|
|
|
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 HistoryItem;
|
|
|
|
|
2024-09-10 14:14:37 +04:00
|
|
|
namespace style {
|
|
|
|
struct FlatLabel;
|
|
|
|
} // namespace style
|
|
|
|
|
2024-06-20 09:48:11 +04:00
|
|
|
namespace Main {
|
|
|
|
class Session;
|
|
|
|
} // namespace Main
|
|
|
|
|
2024-05-24 20:48:01 +03:00
|
|
|
namespace Payments {
|
|
|
|
struct CreditsFormData;
|
|
|
|
} // namespace Payments
|
|
|
|
|
2024-05-22 21:48:11 +03:00
|
|
|
namespace Ui {
|
|
|
|
|
2024-09-10 14:14:37 +04:00
|
|
|
class RpWidget;
|
2024-05-22 21:48:11 +03:00
|
|
|
class GenericBox;
|
2024-09-10 14:14:37 +04:00
|
|
|
class FlatLabel;
|
2024-05-22 21:48:11 +03:00
|
|
|
|
|
|
|
void SendCreditsBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
2024-05-25 01:36:17 +03:00
|
|
|
std::shared_ptr<Payments::CreditsFormData> data,
|
|
|
|
Fn<void()> sent);
|
2024-05-22 21:48:11 +03:00
|
|
|
|
2024-06-20 09:48:11 +04:00
|
|
|
[[nodiscard]] TextWithEntities CreditsEmoji(
|
|
|
|
not_null<Main::Session*> session);
|
|
|
|
|
2024-06-24 22:21:52 +04:00
|
|
|
[[nodiscard]] TextWithEntities CreditsEmojiSmall(
|
|
|
|
not_null<Main::Session*> session);
|
|
|
|
|
2024-09-10 14:14:37 +04:00
|
|
|
not_null<FlatLabel*> SetButtonMarkedLabel(
|
|
|
|
not_null<RpWidget*> button,
|
|
|
|
rpl::producer<TextWithEntities> text,
|
|
|
|
Fn<std::any(Fn<void()> update)> context,
|
|
|
|
const style::FlatLabel &st,
|
|
|
|
std::optional<QColor> textFg = {});
|
|
|
|
|
|
|
|
not_null<FlatLabel*> SetButtonMarkedLabel(
|
|
|
|
not_null<RpWidget*> button,
|
|
|
|
rpl::producer<TextWithEntities> text,
|
|
|
|
not_null<Main::Session*> session,
|
|
|
|
const style::FlatLabel &st,
|
|
|
|
std::optional<QColor> textFg = {});
|
|
|
|
|
2024-05-22 21:48:11 +03:00
|
|
|
} // namespace Ui
|