mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
40 lines
664 B
C++
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
|