Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 569 Bytes
#pragma once
#include <Windows.h>
class WindowManager {
static WindowManager instance;
bool captureCursor, cursorVisible;
bool borderlessFullscreen;
RECT prevWindowRect;
long prevStyle, prevExStyle;
public:
static WindowManager& get() {
return instance;
}
WindowManager() : captureCursor(false), cursorVisible(true), borderlessFullscreen(false) { }
void applyCursorCapture();
void toggleCursorCapture();
void toggleCursorVisibility();
void toggleBorderlessFullscreen();
void resize(unsigned clientW, unsigned clientH);
};