2026-04-25 16:11:01 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
2026-04-27 23:18:04 +08:00
|
|
|
#include "System/Win32StringEncoding.h"
|
2026-04-27 19:16:08 +08:00
|
|
|
#include "TextFormat.h"
|
2026-04-25 16:11:01 +08:00
|
|
|
|
2026-04-25 16:46:01 +08:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
|
|
#ifndef NOMINMAX
|
|
|
|
|
#define NOMINMAX
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
|
|
namespace XCEngine::UI::Editor::App::EditorWindowSupport {
|
2026-04-25 16:11:01 +08:00
|
|
|
|
|
|
|
|
inline constexpr unsigned int kDefaultDpi = 96u;
|
|
|
|
|
inline constexpr float kBaseDpiScale = 96.0f;
|
|
|
|
|
inline constexpr float kBorderlessTitleBarFontSize = 12.0f;
|
|
|
|
|
|
2026-04-25 16:46:01 +08:00
|
|
|
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
|