reVeno/Source/Veno/GUI/GUIParts/Sidebar/VenoLogo.cpp

35 lines
574 B
C++
Raw Normal View History

2020-06-14 21:14:28 +02:00
//
// Created by versustune on 14.06.20.
//
#include "VenoLogo.h"
VenoLogo* VenoLogo::instance = nullptr;
VenoLogo* VenoLogo::getInstance ()
{
if (instance == nullptr)
{
instance = new VenoLogo();
}
return instance;
}
VenoLogo::VenoLogo ()
{
MemoryOutputStream mo;
auto result = ImageCache::getFromMemory(BinaryData::LogoVeNo_png, BinaryData::LogoVeNo_pngSize);
realLogo = result;
2020-06-14 21:14:28 +02:00
}
Image VenoLogo::getLogo ()
{
return getInstance()->realLogo;
}
void VenoLogo::deleteInstance ()
{
delete instance;
instance = nullptr;
2020-06-14 21:14:28 +02:00
}