mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
22 lines
421 B
C++
22 lines
421 B
C++
#pragma once
|
|
|
|
#include "messages/Image.hpp"
|
|
|
|
namespace chatterino {
|
|
class TooltipPreviewImage
|
|
{
|
|
public:
|
|
static TooltipPreviewImage &instance();
|
|
void setImage(ImagePtr image);
|
|
|
|
TooltipPreviewImage(const TooltipPreviewImage &) = delete;
|
|
|
|
private:
|
|
TooltipPreviewImage();
|
|
|
|
private:
|
|
ImagePtr image_ = nullptr;
|
|
std::vector<pajlada::Signals::ScopedConnection> connections_;
|
|
};
|
|
} // namespace chatterino
|