mirror-chatterino2/windowmanager.h
2017-04-13 19:25:33 +02:00

40 lines
664 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