#pragma once #include "StringEncoding.h" #include "TextFormat.h" #include #ifndef NOMINMAX #define NOMINMAX #endif #include 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