AyuGramDesktop/Telegram/SourceFiles/ui/effects/loading_element.h
2024-05-30 21:35:06 +04:00

39 lines
868 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 style {
struct FlatLabel;
struct PeerListItem;
struct DialogRow;
} // namespace style
namespace Ui {
class RpWidget;
object_ptr<Ui::RpWidget> CreateLoadingTextWidget(
not_null<Ui::RpWidget*> parent,
const style::FlatLabel &st,
int lines,
rpl::producer<bool> rtl);
object_ptr<Ui::RpWidget> CreateLoadingPeerListItemWidget(
not_null<Ui::RpWidget*> parent,
const style::PeerListItem &st,
int lines);
object_ptr<Ui::RpWidget> CreateLoadingDialogRowWidget(
not_null<Ui::RpWidget*> parent,
const style::DialogRow &st,
int lines);
} // namespace Ui