2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-23 02:37:11 +00:00
tdesktop/Telegram/SourceFiles/ui/widgets/label_with_custom_emoji.h

36 lines
719 B
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
template <typename Object>
class object_ptr;
namespace Main {
class Session;
} // namespace Main
namespace style {
struct FlatLabel;
} // namespace style
2025-03-07 14:17:39 +04:00
namespace Ui::Text {
struct MarkedContext;
} // namespace Ui::Text
namespace Ui {
2025-03-07 14:17:39 +04:00
class FlatLabel;
[[nodiscard]] object_ptr<Ui::FlatLabel> CreateLabelWithCustomEmoji(
QWidget *parent,
rpl::producer<TextWithEntities> &&text,
2025-03-07 14:17:39 +04:00
Text::MarkedContext context,
const style::FlatLabel &st);
} // namespace Ui