2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-23 10:47:11 +00:00
tdesktop/Telegram/SourceFiles/boxes/send_credits_box.h

61 lines
1.4 KiB
C
Raw Normal View History

/*
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
namespace Main {
class Session;
} // namespace Main
namespace Payments {
struct CreditsFormData;
} // namespace Payments
namespace Ui {
2024-09-10 14:14:37 +04:00
class RpWidget;
class GenericBox;
2024-09-10 14:14:37 +04:00
class FlatLabel;
void SendCreditsBox(
not_null<Ui::GenericBox*> box,
std::shared_ptr<Payments::CreditsFormData> data,
Fn<void()> sent);
[[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,
2025-03-07 14:17:39 +04:00
Text::MarkedContext context,
2024-09-10 14:14:37 +04:00
const style::FlatLabel &st,
2024-12-26 10:10:44 +04:00
const style::color *textFg = nullptr);
2024-09-10 14:14:37 +04:00
not_null<FlatLabel*> SetButtonMarkedLabel(
not_null<RpWidget*> button,
rpl::producer<TextWithEntities> text,
not_null<Main::Session*> session,
const style::FlatLabel &st,
2024-12-26 10:10:44 +04:00
const style::color *textFg = nullptr);
2024-09-10 14:14:37 +04:00
2025-03-04 14:13:39 +04:00
void SendStarsForm(
2024-09-17 18:59:24 +04:00
not_null<Main::Session*> session,
std::shared_ptr<Payments::CreditsFormData> data,
Fn<void(std::optional<QString>)> done);
} // namespace Ui