mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
rewrite for UI
This commit is contained in:
parent
c3366e9df9
commit
e58cbc6278
35
switcher.h
35
switcher.h
|
|
@ -1,35 +0,0 @@
|
|||
#pragma once
|
||||
#include "settings.h"
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
#include <thread>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Switcher {
|
||||
public:
|
||||
bool getIsRunning();
|
||||
void firstLoad();
|
||||
void load();
|
||||
void start();
|
||||
void stop();
|
||||
void openUI();
|
||||
string getSettingsFilePath();
|
||||
void setSettingsFilePath(string path);
|
||||
thread switcherThread;
|
||||
~Switcher();
|
||||
private:
|
||||
bool isRunning = true;
|
||||
Settings settings;
|
||||
map<string, Data> settingsMap;
|
||||
pair<vector<string>, vector<string>> sceneRoundTrip;
|
||||
vector<string> pauseScenes;
|
||||
vector<string> ignoreNames;
|
||||
void switcherThreadFunc();
|
||||
bool isWindowFullscreen();
|
||||
string GetActiveWindowTitle();
|
||||
pair<int, int> getCursorXY();
|
||||
mutex mtx;
|
||||
condition_variable terminate;
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user