mirror-chatterino2/src/singletons/TooltipPreviewImage.hpp

21 lines
467 B
C++
Raw Normal View History

#pragma once
#include "messages/Image.hpp"
namespace chatterino {
class TooltipPreviewImage {
public:
static TooltipPreviewImage &getInstance();
void setImage(ImagePtr image);
TooltipPreviewImage(const TooltipPreviewImage&) = delete;
private:
TooltipPreviewImage();
private:
ImagePtr image_ = nullptr;
std::vector<pajlada::Signals::ScopedConnection> connections_;
};
} // namespace chatterino