Files
XCEngine/editor/app/Host/Win32/Windowing/EditorWindowSupport.h
2026-04-27 22:21:40 +08:00

29 lines
654 B
C++

#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