TmpMenu/src/gui.hpp

37 lines
547 B
C++
Raw Normal View History

2019-03-21 20:18:31 +01:00
#pragma once
#include "common.hpp"
namespace big
{
class gui
{
public:
gui();
virtual ~gui();
gui(const gui&) = delete;
gui(gui&&) noexcept = delete;
gui& operator=(const gui&) = delete;
gui& operator=(gui&&) noexcept = delete;
bool is_open();
void toggle(bool toggle);
2019-03-21 20:18:31 +01:00
void dx_init();
void dx_on_tick();
void script_on_tick();
static void script_func();
void wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
private:
void toggle_mouse();
private:
bool m_is_open;
2019-03-21 20:18:31 +01:00
};
inline gui* g_gui;
2019-03-21 20:18:31 +01:00
}