Refine editor host boundary

This commit is contained in:
2026-04-27 22:21:40 +08:00
parent 9428fec350
commit 520413fa0d
82 changed files with 119 additions and 106 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include "StringEncoding.h"
#include "TextFormat.h"
#include <string_view>
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
namespace XCEngine::UI::Editor::App::EditorWindowSupport {
inline constexpr unsigned int kDefaultDpi = 96u;
inline constexpr float kBaseDpiScale = 96.0f;
inline constexpr float kBorderlessTitleBarFontSize = 12.0f;
UINT QuerySystemDpi();
UINT QueryWindowDpi(HWND hwnd);
bool ResolveVerboseRuntimeTraceEnabled();
void LogRuntimeTrace(std::string_view channel, std::string_view message);
using App::TruncateText;
using App::WideToUtf8;
} // namespace XCEngine::UI::Editor::App::EditorWindowSupport