mirror-chatterino2/windowmanager.h
2017-04-14 17:47:28 +02:00

40 lines
665 B
C++

#ifndef WINDOWS_H
#define WINDOWS_H
#include "widgets/mainwindow.h"
#include <mutex>
namespace chatterino {
class WindowManager
{
public:
static WindowManager &getInstance()
{
return instance;
}
void layoutVisibleChatWidgets(Channel *channel = nullptr);
void repaintVisibleChatWidgets(Channel *channel = nullptr);
void repaintGifEmotes();
void updateAll();
widgets::MainWindow &getMainWindow();
void load();
void save();
private:
static WindowManager instance;
WindowManager();
std::mutex _windowMutex;
widgets::MainWindow *_mainWindow;
};
} // namespace chatterino
#endif // WINDOWS_H