ui: Use borderless window on Windows

This commit is contained in:
WerWolv
2021-08-18 22:36:46 +02:00
parent 48f27c2174
commit b66304fc91
15 changed files with 360 additions and 86 deletions

View File

@@ -8,9 +8,12 @@
#include <hex/helpers/utils.hpp>
#include <hex/views/view.hpp>
#include <imgui_imhex_extensions.h>
struct GLFWwindow;
struct ImGuiSettingsHandler;
namespace hex {
class Window {
@@ -28,6 +31,10 @@ namespace hex {
bool setFont(const std::filesystem::path &font_path);
private:
void setupNativeWindow();
void updateNativeWindow();
void drawTitleBar();
void frameBegin();
void frame();
void frameEnd();
@@ -47,14 +54,18 @@ namespace hex {
bool m_demoWindowOpen = false;
bool m_layoutConfigured = false;
std::string m_windowTitle;
double m_lastFrameTime;
bool m_prevKeysDown[512];
std::string m_availableUpdate;
u32 m_bannerWidth = 0, m_bannerHeight = 0;
void *m_bannerTexture = nullptr;
ImGui::Texture m_bannerTexture;
ImGui::Texture m_logoTexture;
std::filesystem::path m_safetyBackupPath;
};