tdesktop/Telegram/SourceFiles/history/view/media/history_view_large_emoji.h

46 lines
978 B
C
Raw Normal View History

2019-08-02 18:19:14 +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
#include "history/view/media/history_view_media_unwrapped.h"
#include "ui/text/text_isolated_emoji.h"
namespace Data {
struct FileOrigin;
} // namespace Data
namespace Lottie {
class SinglePlayer;
} // namespace Lottie
namespace HistoryView {
class LargeEmoji final : public UnwrappedMedia::Content {
public:
LargeEmoji(
not_null<Element*> parent,
2019-08-05 11:44:40 +00:00
const Ui::Text::IsolatedEmoji &emoji);
2019-08-02 18:19:14 +00:00
QSize size() override;
void draw(Painter &p, const QRect &r, bool selected) override;
2019-08-06 11:27:11 +00:00
bool alwaysShowOutTimestamp() override {
return true;
}
2019-08-02 18:19:14 +00:00
private:
const not_null<Element*> _parent;
2019-08-05 11:44:40 +00:00
const std::array<
std::shared_ptr<Image>,
Ui::Text::kIsolatedEmojiLimit> _images;
2019-08-02 18:19:14 +00:00
QSize _size;
};
} // namespace HistoryView