This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/gui.hpp

39 lines
638 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 restore_default_style();
2019-03-21 20:18:31 +01:00
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;
ImGuiStyle m_default_config;
2019-03-21 20:18:31 +01:00
};
inline gui* g_gui;
2019-03-21 20:18:31 +01:00
}