loading_element.h 868 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 style {
  11. struct FlatLabel;
  12. struct PeerListItem;
  13. struct DialogRow;
  14. } // namespace style
  15. namespace Ui {
  16. class RpWidget;
  17. object_ptr<Ui::RpWidget> CreateLoadingTextWidget(
  18. not_null<Ui::RpWidget*> parent,
  19. const style::FlatLabel &st,
  20. int lines,
  21. rpl::producer<bool> rtl);
  22. object_ptr<Ui::RpWidget> CreateLoadingPeerListItemWidget(
  23. not_null<Ui::RpWidget*> parent,
  24. const style::PeerListItem &st,
  25. int lines);
  26. object_ptr<Ui::RpWidget> CreateLoadingDialogRowWidget(
  27. not_null<Ui::RpWidget*> parent,
  28. const style::DialogRow &st,
  29. int lines);
  30. } // namespace Ui