label_with_custom_emoji.h 719 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. template <typename Object>
  9. class object_ptr;
  10. namespace Main {
  11. class Session;
  12. } // namespace Main
  13. namespace style {
  14. struct FlatLabel;
  15. } // namespace style
  16. namespace Ui::Text {
  17. struct MarkedContext;
  18. } // namespace Ui::Text
  19. namespace Ui {
  20. class FlatLabel;
  21. [[nodiscard]] object_ptr<Ui::FlatLabel> CreateLabelWithCustomEmoji(
  22. QWidget *parent,
  23. rpl::producer<TextWithEntities> &&text,
  24. Text::MarkedContext context,
  25. const style::FlatLabel &st);
  26. } // namespace Ui