This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
NFRev1/NothinFancy/src/include/Application.h

29 lines
582 B
C++

#pragma once
#include "Config.h"
#include <Windows.h>
namespace nf {
class Application {
public:
Application(Config& conf);
Application() = delete;
Application(Application& other) = delete;
Config& getConfig();
void showWindow(bool show);
~Application();
private:
void registerWindowClass();
void toggleFullscreen();
RECT getWindowRect();
static LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
Config m_currentConfig;
HINSTANCE m_hInst;
LPCWSTR m_wclassName;
HWND m_window;
WINDOWPLACEMENT m_wndPlacement;
};
}