Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (19 sloc) 0.569 kb
#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);
};
Jump to Line
Something went wrong with that request. Please try again.