AyuGramDesktop/Telegram/SourceFiles/ui/widgets/label_with_custom_emoji.h
2025-03-07 19:03:40 +04:00

35 lines
719 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
template <typename Object>
class object_ptr;
namespace Main {
class Session;
} // namespace Main
namespace style {
struct FlatLabel;
} // namespace style
namespace Ui::Text {
struct MarkedContext;
} // namespace Ui::Text
namespace Ui {
class FlatLabel;
[[nodiscard]] object_ptr<Ui::FlatLabel> CreateLabelWithCustomEmoji(
QWidget *parent,
rpl::producer<TextWithEntities> &&text,
Text::MarkedContext context,
const style::FlatLabel &st);
} // namespace Ui