tdesktop/Telegram/SourceFiles/ui/toasts/common_toasts.h

28 lines
603 B
C
Raw Normal View History

2018-06-02 14:29:21 +00:00
/*
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
2018-06-02 14:29:21 +00:00
#include "ui/text/text_entity.h"
#include "base/weak_ptr.h"
namespace Ui {
namespace Toast {
class Instance;
} // namespace Toast
struct MultilineToastArgs {
QWidget *parentOverride = nullptr;
TextWithEntities text;
2021-02-11 14:46:46 +00:00
crl::time duration = 0;
};
base::weak_ptr<Toast::Instance> ShowMultilineToast(
MultilineToastArgs &&args);
} // namespace Ui